@openez-graph/cli 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/cli.cjs +2043 -1723
- package/dist/web/assets/{WorkspaceGraph-CAcqFy5e.js → WorkspaceGraph-CCcuZFwT.js} +1 -1
- package/dist/web/assets/index-Bno_za8P.js +362 -0
- package/dist/web/assets/index-CCFMIXkF.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-DZcSIcyw.js +0 -345
- package/dist/web/assets/index-QcWaShR4.css +0 -1
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
var Qv=t=>{throw TypeError(t)};var Qf=(t,a,r)=>a.has(t)||Qv("Cannot "+r);var U=(t,a,r)=>(Qf(t,a,"read from private field"),r?r.call(t):a.get(t)),ve=(t,a,r)=>a.has(t)?Qv("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,r),ce=(t,a,r,i)=>(Qf(t,a,"write to private field"),i?i.call(t,r):a.set(t,r),r),Ae=(t,a,r)=>(Qf(t,a,"access private method"),r);var Nc=(t,a,r,i)=>({set _(o){ce(t,a,o,r)},get _(){return U(t,a,i)}});function IE(t,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const d=Object.getOwnPropertyDescriptor(i,o);d&&Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(o){if(o.ep)return;o.ep=!0;const d=r(o);fetch(o.href,d)}})();function up(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yf={exports:{}},Al={};/**
|
|
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 Yv;function VE(){if(Yv)return Al;Yv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,d){var f=null;if(d!==void 0&&(f=""+d),o.key!==void 0&&(f=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:t,type:i,key:f,ref:o!==void 0?o:null,props:d}}return Al.Fragment=a,Al.jsx=r,Al.jsxs=r,Al}var $v;function QE(){return $v||($v=1,Yf.exports=VE()),Yf.exports}var u=QE(),$f={exports:{}},Se={};/**
|
|
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 Xv;function YE(){if(Xv)return Se;Xv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function E(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,j={};function _(D,Z,re){this.props=D,this.context=Z,this.refs=j,this.updater=re||w}_.prototype.isReactComponent={},_.prototype.setState=function(D,Z){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,Z,"setState")},_.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=_.prototype;function T(D,Z,re){this.props=D,this.context=Z,this.refs=j,this.updater=re||w}var A=T.prototype=new C;A.constructor=T,x(A,_.prototype),A.isPureReactComponent=!0;var z=Array.isArray;function G(){}var k={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function L(D,Z,re){var ie=re.ref;return{$$typeof:t,type:D,key:Z,ref:ie!==void 0?ie:null,props:re}}function F(D,Z){return L(D.type,Z,D.props)}function X(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ne(D){var Z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(re){return Z[re]})}var se=/\/+/g;function te(D,Z){return typeof D=="object"&&D!==null&&D.key!=null?ne(""+D.key):Z.toString(36)}function oe(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(G,G):(D.status="pending",D.then(function(Z){D.status==="pending"&&(D.status="fulfilled",D.value=Z)},function(Z){D.status==="pending"&&(D.status="rejected",D.reason=Z)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function P(D,Z,re,ie,le){var he=typeof D;(he==="undefined"||he==="boolean")&&(D=null);var xe=!1;if(D===null)xe=!0;else switch(he){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(D.$$typeof){case t:case a:xe=!0;break;case v:return xe=D._init,P(xe(D._payload),Z,re,ie,le)}}if(xe)return le=le(D),xe=ie===""?"."+te(D,0):ie,z(le)?(re="",xe!=null&&(re=xe.replace(se,"$&/")+"/"),P(le,Z,re,"",function(zt){return zt})):le!=null&&(X(le)&&(le=F(le,re+(le.key==null||D&&D.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+xe)),Z.push(le)),1;xe=0;var Oe=ie===""?".":ie+":";if(z(D))for(var ye=0;ye<D.length;ye++)ie=D[ye],he=Oe+te(ie,ye),xe+=P(ie,Z,re,he,le);else if(ye=E(D),typeof ye=="function")for(D=ye.call(D),ye=0;!(ie=D.next()).done;)ie=ie.value,he=Oe+te(ie,ye++),xe+=P(ie,Z,re,he,le);else if(he==="object"){if(typeof D.then=="function")return P(oe(D),Z,re,ie,le);throw Z=String(D),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function Q(D,Z,re){if(D==null)return D;var ie=[],le=0;return P(D,ie,"","",function(he){return Z.call(re,he,le++)}),ie}function ee(D){if(D._status===-1){var Z=D._result;Z=Z(),Z.then(function(re){(D._status===0||D._status===-1)&&(D._status=1,D._result=re)},function(re){(D._status===0||D._status===-1)&&(D._status=2,D._result=re)}),D._status===-1&&(D._status=0,D._result=Z)}if(D._status===1)return D._result.default;throw D._result}var ge=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},ae={map:Q,forEach:function(D,Z,re){Q(D,function(){Z.apply(this,arguments)},re)},count:function(D){var Z=0;return Q(D,function(){Z++}),Z},toArray:function(D){return Q(D,function(Z){return Z})||[]},only:function(D){if(!X(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Se.Activity=y,Se.Children=ae,Se.Component=_,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=T,Se.StrictMode=i,Se.Suspense=g,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Se.__COMPILER_RUNTIME={__proto__:null,c:function(D){return k.H.useMemoCache(D)}},Se.cache=function(D){return function(){return D.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(D,Z,re){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ie=x({},D.props),le=D.key;if(Z!=null)for(he in Z.key!==void 0&&(le=""+Z.key),Z)!M.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(ie[he]=Z[he]);var he=arguments.length-2;if(he===1)ie.children=re;else if(1<he){for(var xe=Array(he),Oe=0;Oe<he;Oe++)xe[Oe]=arguments[Oe+2];ie.children=xe}return L(D.type,le,ie)},Se.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:d,_context:D},D},Se.createElement=function(D,Z,re){var ie,le={},he=null;if(Z!=null)for(ie in Z.key!==void 0&&(he=""+Z.key),Z)M.call(Z,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(le[ie]=Z[ie]);var xe=arguments.length-2;if(xe===1)le.children=re;else if(1<xe){for(var Oe=Array(xe),ye=0;ye<xe;ye++)Oe[ye]=arguments[ye+2];le.children=Oe}if(D&&D.defaultProps)for(ie in xe=D.defaultProps,xe)le[ie]===void 0&&(le[ie]=xe[ie]);return L(D,he,le)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(D){return{$$typeof:p,render:D}},Se.isValidElement=X,Se.lazy=function(D){return{$$typeof:v,_payload:{_status:-1,_result:D},_init:ee}},Se.memo=function(D,Z){return{$$typeof:m,type:D,compare:Z===void 0?null:Z}},Se.startTransition=function(D){var Z=k.T,re={};k.T=re;try{var ie=D(),le=k.S;le!==null&&le(re,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(G,ge)}catch(he){ge(he)}finally{Z!==null&&re.types!==null&&(Z.types=re.types),k.T=Z}},Se.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Se.use=function(D){return k.H.use(D)},Se.useActionState=function(D,Z,re){return k.H.useActionState(D,Z,re)},Se.useCallback=function(D,Z){return k.H.useCallback(D,Z)},Se.useContext=function(D){return k.H.useContext(D)},Se.useDebugValue=function(){},Se.useDeferredValue=function(D,Z){return k.H.useDeferredValue(D,Z)},Se.useEffect=function(D,Z){return k.H.useEffect(D,Z)},Se.useEffectEvent=function(D){return k.H.useEffectEvent(D)},Se.useId=function(){return k.H.useId()},Se.useImperativeHandle=function(D,Z,re){return k.H.useImperativeHandle(D,Z,re)},Se.useInsertionEffect=function(D,Z){return k.H.useInsertionEffect(D,Z)},Se.useLayoutEffect=function(D,Z){return k.H.useLayoutEffect(D,Z)},Se.useMemo=function(D,Z){return k.H.useMemo(D,Z)},Se.useOptimistic=function(D,Z){return k.H.useOptimistic(D,Z)},Se.useReducer=function(D,Z,re){return k.H.useReducer(D,Z,re)},Se.useRef=function(D){return k.H.useRef(D)},Se.useState=function(D){return k.H.useState(D)},Se.useSyncExternalStore=function(D,Z,re){return k.H.useSyncExternalStore(D,Z,re)},Se.useTransition=function(){return k.H.useTransition()},Se.version="19.2.7",Se}var Zv;function eo(){return Zv||(Zv=1,$f.exports=YE()),$f.exports}var N=eo();const dr=up(N),dp=IE({__proto__:null,default:dr},[N]);var Xf={exports:{}},Tl={},Zf={exports:{}},Kf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Kv;function $E(){return Kv||(Kv=1,(function(t){function a(P,Q){var ee=P.length;P.push(Q);e:for(;0<ee;){var ge=ee-1>>>1,ae=P[ge];if(0<o(ae,Q))P[ge]=Q,P[ee]=ae,ee=ge;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var Q=P[0],ee=P.pop();if(ee!==Q){P[0]=ee;e:for(var ge=0,ae=P.length,D=ae>>>1;ge<D;){var Z=2*(ge+1)-1,re=P[Z],ie=Z+1,le=P[ie];if(0>o(re,ee))ie<ae&&0>o(le,re)?(P[ge]=le,P[ie]=ee,ge=ie):(P[ge]=re,P[Z]=ee,ge=Z);else if(ie<ae&&0>o(le,ee))P[ge]=le,P[ie]=ee,ge=ie;else break e}}return Q}function o(P,Q){var ee=P.sortIndex-Q.sortIndex;return ee!==0?ee:P.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();t.unstable_now=function(){return f.now()-p}}var g=[],m=[],v=1,y=null,S=3,E=!1,w=!1,x=!1,j=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(P){for(var Q=r(m);Q!==null;){if(Q.callback===null)i(m);else if(Q.startTime<=P)i(m),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=r(m)}}function z(P){if(x=!1,A(P),!w)if(r(g)!==null)w=!0,G||(G=!0,ne());else{var Q=r(m);Q!==null&&oe(z,Q.startTime-P)}}var G=!1,k=-1,M=5,L=-1;function F(){return j?!0:!(t.unstable_now()-L<M)}function X(){if(j=!1,G){var P=t.unstable_now();L=P;var Q=!0;try{e:{w=!1,x&&(x=!1,C(k),k=-1),E=!0;var ee=S;try{t:{for(A(P),y=r(g);y!==null&&!(y.expirationTime>P&&F());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,S=y.priorityLevel;var ae=ge(y.expirationTime<=P);if(P=t.unstable_now(),typeof ae=="function"){y.callback=ae,A(P),Q=!0;break t}y===r(g)&&i(g),A(P)}else i(g);y=r(g)}if(y!==null)Q=!0;else{var D=r(m);D!==null&&oe(z,D.startTime-P),Q=!1}}break e}finally{y=null,S=ee,E=!1}Q=void 0}}finally{Q?ne():G=!1}}}var ne;if(typeof T=="function")ne=function(){T(X)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,te=se.port2;se.port1.onmessage=X,ne=function(){te.postMessage(null)}}else ne=function(){_(X,0)};function oe(P,Q){k=_(function(){P(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(P){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var ee=S;S=Q;try{return P()}finally{S=ee}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(P,Q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ee=S;S=P;try{return Q()}finally{S=ee}},t.unstable_scheduleCallback=function(P,Q,ee){var ge=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,P){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=ee+ae,P={id:v++,callback:Q,priorityLevel:P,startTime:ee,expirationTime:ae,sortIndex:-1},ee>ge?(P.sortIndex=ee,a(m,P),r(g)===null&&P===r(m)&&(x?(C(k),k=-1):x=!0,oe(z,ee-ge))):(P.sortIndex=ae,a(g,P),w||E||(w=!0,G||(G=!0,ne()))),P},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(P){var Q=S;return function(){var ee=S;S=Q;try{return P.apply(this,arguments)}finally{S=ee}}}})(Kf)),Kf}var Wv;function XE(){return Wv||(Wv=1,Zf.exports=$E()),Zf.exports}var Wf={exports:{}},kt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Jv;function ZE(){if(Jv)return kt;Jv=1;var t=eo();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:g,containerInfo:m,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kt.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return d(g,m,null,v)},kt.flushSync=function(g){var m=f.T,v=i.p;try{if(f.T=null,i.p=2,g)return g()}finally{f.T=m,i.p=v,i.d.f()}},kt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(g,m))},kt.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},kt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,y=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?i.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:E}):v==="script"&&i.d.X(g,{crossOrigin:y,integrity:S,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},kt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);i.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(g)},kt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=p(v,m.crossOrigin);i.d.L(g,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},kt.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);i.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(g)},kt.requestFormReset=function(g){i.d.r(g)},kt.unstable_batchedUpdates=function(g,m){return g(m)},kt.useFormState=function(g,m,v){return f.H.useFormState(g,m,v)},kt.useFormStatus=function(){return f.H.useHostTransitionStatus()},kt.version="19.2.7",kt}var eb;function Xx(){if(eb)return Wf.exports;eb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Wf.exports=ZE(),Wf.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var tb;function KE(){if(tb)return Tl;tb=1;var t=XE(),a=eo(),r=Xx();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(i(188))}function m(e){var n=e.alternate;if(!n){if(n=d(e),n===null)throw Error(i(188));return n!==e?null:e}for(var s=e,l=n;;){var c=s.return;if(c===null)break;var h=c.alternate;if(h===null){if(l=c.return,l!==null){s=l;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===s)return g(c),e;if(h===l)return g(c),n;h=h.sibling}throw Error(i(188))}if(s.return!==l.return)s=c,l=h;else{for(var b=!1,R=c.child;R;){if(R===s){b=!0,s=c,l=h;break}if(R===l){b=!0,l=c,s=h;break}R=R.sibling}if(!b){for(R=h.child;R;){if(R===s){b=!0,s=h,l=c;break}if(R===l){b=!0,l=h,s=c;break}R=R.sibling}if(!b)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case _:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case T:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case A:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case M:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var oe=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],ae=-1;function D(e){return{current:e}}function Z(e){0>ae||(e.current=ge[ae],ge[ae]=null,ae--)}function re(e,n){ae++,ge[ae]=e.current,e.current=n}var ie=D(null),le=D(null),he=D(null),xe=D(null);function Oe(e,n){switch(re(he,n),re(le,e),re(ie,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?mv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=mv(n),e=gv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),re(ie,e)}function ye(){Z(ie),Z(le),Z(he)}function zt(e){e.memoizedState!==null&&re(xe,e);var n=ie.current,s=gv(n,e.type);n!==s&&(re(le,e),re(ie,s))}function xt(e){le.current===e&&(Z(ie),Z(le)),xe.current===e&&(Z(xe),Rl._currentValue=ee)}var At,Bt;function mt(e){if(At===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);At=n&&n[1]||"",Bt=-1<s.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+At+e+Bt}var Ns=!1;function Oa(e,n){if(!e||Ns)return"";Ns=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Y){var V=Y}Reflect.construct(e,[],W)}else{try{W.call()}catch(Y){V=Y}e.call(W.prototype)}}else{try{throw Error()}catch(Y){V=Y}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(Y){if(Y&&V&&typeof Y.stack=="string")return[Y.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),b=h[0],R=h[1];if(b&&R){var O=b.split(`
|
|
44
|
-
`),I=R.split(`
|
|
45
|
-
`);for(c=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;if(l===O.length||c===I.length)for(l=O.length-1,c=I.length-1;1<=l&&0<=c&&O[l]!==I[c];)c--;for(;1<=l&&0<=c;l--,c--)if(O[l]!==I[c]){if(l!==1||c!==1)do if(l--,c--,0>c||O[l]!==I[c]){var $=`
|
|
46
|
-
`+O[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=c);break}}}finally{Ns=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?mt(s):""}function vr(e,n){switch(e.tag){case 26:case 27:case 5:return mt(e.type);case 16:return mt("Lazy");case 13:return e.child!==n&&n!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Oa(e.type,!1);case 11:return Oa(e.type.render,!1);case 1:return Oa(e.type,!0);case 31:return mt("Activity");default:return""}}function _n(e){try{var n="",s=null;do n+=vr(e,s),s=e,e=e.return;while(e);return n}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var mn=Object.prototype.hasOwnProperty,Cn=t.unstable_scheduleCallback,zi=t.unstable_cancelCallback,oo=t.unstable_shouldYield,Ou=t.unstable_requestPaint,Tt=t.unstable_now,qe=t.unstable_getCurrentPriorityLevel,St=t.unstable_ImmediatePriority,Pn=t.unstable_UserBlockingPriority,br=t.unstable_NormalPriority,RS=t.unstable_LowPriority,Xp=t.unstable_IdlePriority,NS=t.log,_S=t.unstable_setDisableYieldValue,Bi=null,Jt=null;function Ma(e){if(typeof NS=="function"&&_S(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Bi,e)}catch{}}var en=Math.clz32?Math.clz32:TS,CS=Math.log,AS=Math.LN2;function TS(e){return e>>>=0,e===0?32:31-(CS(e)/AS|0)|0}var co=256,uo=262144,fo=4194304;function _s(e){var n=e&42;if(n!==0)return n;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 ho(e,n,s){var l=e.pendingLanes;if(l===0)return 0;var c=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=l&134217727;return R!==0?(l=R&~h,l!==0?c=_s(l):(b&=R,b!==0?c=_s(b):s||(s=R&~e,s!==0&&(c=_s(s))))):(R=l&~h,R!==0?c=_s(R):b!==0?c=_s(b):s||(s=l&~e,s!==0&&(c=_s(s)))),c===0?0:n!==0&&n!==c&&(n&h)===0&&(h=c&-c,s=n&-n,h>=s||h===32&&(s&4194048)!==0)?n:c}function Ui(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function kS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zp(){var e=fo;return fo<<=1,(fo&62914560)===0&&(fo=4194304),e}function Mu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Pi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function OS(e,n,s,l,c,h){var b=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var R=e.entanglements,O=e.expirationTimes,I=e.hiddenUpdates;for(s=b&~s;0<s;){var $=31-en(s),W=1<<$;R[$]=0,O[$]=-1;var V=I[$];if(V!==null)for(I[$]=null,$=0;$<V.length;$++){var Y=V[$];Y!==null&&(Y.lane&=-536870913)}s&=~W}l!==0&&Kp(e,l,0),h!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function Kp(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-en(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function Wp(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-en(s),c=1<<l;c&n|e[l]&n&&(e[l]|=n),s&=~c}}function Jp(e,n){var s=n&-n;return s=(s&42)!==0?1:Du(s),(s&(e.suspendedLanes|n))!==0?0:s}function Du(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 Lu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function em(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Pv(e.type))}function tm(e,n){var s=Q.p;try{return Q.p=e,n()}finally{Q.p=s}}var Da=Math.random().toString(36).slice(2),wt="__reactFiber$"+Da,Ht="__reactProps$"+Da,xr="__reactContainer$"+Da,zu="__reactEvents$"+Da,MS="__reactListeners$"+Da,DS="__reactHandles$"+Da,nm="__reactResources$"+Da,Hi="__reactMarker$"+Da;function Bu(e){delete e[wt],delete e[Ht],delete e[zu],delete e[MS],delete e[DS]}function Sr(e){var n=e[wt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[xr]||s[wt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Ev(e);e!==null;){if(s=e[wt])return s;e=Ev(e)}return n}e=s,s=e.parentNode}return null}function wr(e){if(e=e[wt]||e[xr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Fi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function Er(e){var n=e[nm];return n||(n=e[nm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[Hi]=!0}var am=new Set,sm={};function Cs(e,n){jr(e,n),jr(e+"Capture",n)}function jr(e,n){for(sm[e]=n,e=0;e<n.length;e++)am.add(n[e])}var LS=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]*$"),rm={},im={};function zS(e){return mn.call(im,e)?!0:mn.call(rm,e)?!1:LS.test(e)?im[e]=!0:(rm[e]=!0,!1)}function po(e,n,s){if(zS(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function mo(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function ta(e,n,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+l)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function BS(e,n,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,h=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){s=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(b){s=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Uu(e){if(!e._valueTracker){var n=lm(e)?"checked":"value";e._valueTracker=BS(e,n,""+e[n])}}function om(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=lm(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function go(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 US=/[\n"\\]/g;function yn(e){return e.replace(US,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Pu(e,n,s,l,c,h,b,R){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+gn(n)):e.value!==""+gn(n)&&(e.value=""+gn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Hu(e,b,gn(n)):s!=null?Hu(e,b,gn(s)):l!=null&&e.removeAttribute("value"),c==null&&h!=null&&(e.defaultChecked=!!h),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+gn(R):e.removeAttribute("name")}function cm(e,n,s,l,c,h,b,R){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Uu(e);return}s=s!=null?""+gn(s):"",n=n!=null?""+gn(n):s,R||n===e.value||(e.value=n),e.defaultValue=n}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=R?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Uu(e)}function Hu(e,n,s){n==="number"&&go(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Rr(e,n,s,l){if(e=e.options,n){n={};for(var c=0;c<s.length;c++)n["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=n.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&l&&(e[s].defaultSelected=!0)}else{for(s=""+gn(s),n=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function um(e,n,s){if(n!=null&&(n=""+gn(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+gn(s):""}function dm(e,n,s,l){if(n==null){if(l!=null){if(s!=null)throw Error(i(92));if(oe(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),n=s}s=gn(n),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),Uu(e)}function Nr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var PS=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 fm(e,n,s){var l=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,s):typeof s!="number"||s===0||PS.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function hm(e,n,s){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in n)l=n[c],n.hasOwnProperty(c)&&s[c]!==l&&fm(e,c,l)}else for(var h in n)n.hasOwnProperty(h)&&fm(e,h,n[h])}function Fu(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 HS=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"]]),FS=/^[\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 yo(e){return FS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Gu=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _r=null,Cr=null;function pm(e){var n=wr(e);if(n&&(e=n.stateNode)){var s=e[Ht]||null;e:switch(e=n.stateNode,n.type){case"input":if(Pu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+yn(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var c=l[Ht]||null;if(!c)throw Error(i(90));Pu(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<s.length;n++)l=s[n],l.form===e.form&&om(l)}break e;case"textarea":um(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&Rr(e,!!s.multiple,n,!1)}}}var Iu=!1;function mm(e,n,s){if(Iu)return e(n,s);Iu=!0;try{var l=e(n);return l}finally{if(Iu=!1,(_r!==null||Cr!==null)&&(sc(),_r&&(n=_r,e=Cr,Cr=_r=null,pm(n),e)))for(n=0;n<e.length;n++)pm(e[n])}}function Gi(e,n){var s=e.stateNode;if(s===null)return null;var l=s[Ht]||null;if(l===null)return null;s=l[n];e:switch(n){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(s&&typeof s!="function")throw Error(i(231,n,typeof s));return s}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(aa)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Vu=!1}var La=null,Qu=null,vo=null;function gm(){if(vo)return vo;var e,n=Qu,s=n.length,l,c="value"in La?La.value:La.textContent,h=c.length;for(e=0;e<s&&n[e]===c[e];e++);var b=s-e;for(l=1;l<=b&&n[s-l]===c[h-l];l++);return vo=c.slice(e,1<l?1-l:void 0)}function bo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function xo(){return!0}function ym(){return!1}function Ft(e){function n(s,l,c,h,b){this._reactName=s,this._targetInst=c,this.type=l,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(s=e[R],this[R]=s?s(h):h[R]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?xo:ym,this.isPropagationStopped=ym,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=xo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=xo)},persist:function(){},isPersistent:xo}),n}var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},So=Ft(As),Ii=y({},As,{view:0,detail:0}),GS=Ft(Ii),Yu,$u,Vi,wo=y({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,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!==Vi&&(Vi&&e.type==="mousemove"?(Yu=e.screenX-Vi.screenX,$u=e.screenY-Vi.screenY):$u=Yu=0,Vi=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:$u}}),vm=Ft(wo),qS=y({},wo,{dataTransfer:0}),IS=Ft(qS),VS=y({},Ii,{relatedTarget:0}),Xu=Ft(VS),QS=y({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),YS=Ft(QS),$S=y({},As,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XS=Ft($S),ZS=y({},As,{data:0}),bm=Ft(ZS),KS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WS={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"},JS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ew(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=JS[e])?!!n[e]:!1}function Zu(){return ew}var tw=y({},Ii,{key:function(e){if(e.key){var n=KS[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?WS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(e){return e.type==="keypress"?bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nw=Ft(tw),aw=y({},wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=Ft(aw),sw=y({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),rw=Ft(sw),iw=y({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=Ft(iw),ow=y({},wo,{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}),cw=Ft(ow),uw=y({},As,{newState:0,oldState:0}),dw=Ft(uw),fw=[9,13,27,32],Ku=aa&&"CompositionEvent"in window,Qi=null;aa&&"documentMode"in document&&(Qi=document.documentMode);var hw=aa&&"TextEvent"in window&&!Qi,Sm=aa&&(!Ku||Qi&&8<Qi&&11>=Qi),wm=" ",Em=!1;function jm(e,n){switch(e){case"keyup":return fw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function pw(e,n){switch(e){case"compositionend":return Rm(n);case"keypress":return n.which!==32?null:(Em=!0,wm);case"textInput":return e=n.data,e===wm&&Em?null:e;default:return null}}function mw(e,n){if(Ar)return e==="compositionend"||!Ku&&jm(e,n)?(e=gm(),vo=Qu=La=null,Ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Sm&&n.locale!=="ko"?null:n.data;default:return null}}var gw={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 Nm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gw[e.type]:n==="textarea"}function _m(e,n,s,l){_r?Cr?Cr.push(l):Cr=[l]:_r=l,n=dc(n,"onChange"),0<n.length&&(s=new So("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var Yi=null,$i=null;function yw(e){cv(e,0)}function Eo(e){var n=Fi(e);if(om(n))return e}function Cm(e,n){if(e==="change")return n}var Am=!1;if(aa){var Wu;if(aa){var Ju="oninput"in document;if(!Ju){var Tm=document.createElement("div");Tm.setAttribute("oninput","return;"),Ju=typeof Tm.oninput=="function"}Wu=Ju}else Wu=!1;Am=Wu&&(!document.documentMode||9<document.documentMode)}function km(){Yi&&(Yi.detachEvent("onpropertychange",Om),$i=Yi=null)}function Om(e){if(e.propertyName==="value"&&Eo($i)){var n=[];_m(n,$i,e,qu(e)),mm(yw,n)}}function vw(e,n,s){e==="focusin"?(km(),Yi=n,$i=s,Yi.attachEvent("onpropertychange",Om)):e==="focusout"&&km()}function bw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Eo($i)}function xw(e,n){if(e==="click")return Eo(n)}function Sw(e,n){if(e==="input"||e==="change")return Eo(n)}function ww(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var tn=typeof Object.is=="function"?Object.is:ww;function Xi(e,n){if(tn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var c=s[l];if(!mn.call(n,c)||!tn(e[c],n[c]))return!1}return!0}function Mm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dm(e,n){var s=Mm(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=n&&l>=n)return{node:s,offset:n-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Mm(s)}}function Lm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Lm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function zm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=go(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=go(e.document)}return n}function ed(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Ew=aa&&"documentMode"in document&&11>=document.documentMode,Tr=null,td=null,Zi=null,nd=!1;function Bm(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;nd||Tr==null||Tr!==go(l)||(l=Tr,"selectionStart"in l&&ed(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}),Zi&&Xi(Zi,l)||(Zi=l,l=dc(td,"onSelect"),0<l.length&&(n=new So("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Tr)))}function Ts(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var kr={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionrun:Ts("Transition","TransitionRun"),transitionstart:Ts("Transition","TransitionStart"),transitioncancel:Ts("Transition","TransitionCancel"),transitionend:Ts("Transition","TransitionEnd")},ad={},Um={};aa&&(Um=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function ks(e){if(ad[e])return ad[e];if(!kr[e])return e;var n=kr[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Um)return ad[e]=n[s];return e}var Pm=ks("animationend"),Hm=ks("animationiteration"),Fm=ks("animationstart"),jw=ks("transitionrun"),Rw=ks("transitionstart"),Nw=ks("transitioncancel"),Gm=ks("transitionend"),qm=new Map,sd="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(" ");sd.push("scrollEnd");function An(e,n){qm.set(e,n),Cs(n,[e])}var jo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},vn=[],Or=0,rd=0;function Ro(){for(var e=Or,n=rd=Or=0;n<e;){var s=vn[n];vn[n++]=null;var l=vn[n];vn[n++]=null;var c=vn[n];vn[n++]=null;var h=vn[n];if(vn[n++]=null,l!==null&&c!==null){var b=l.pending;b===null?c.next=c:(c.next=b.next,b.next=c),l.pending=c}h!==0&&Im(s,c,h)}}function No(e,n,s,l){vn[Or++]=e,vn[Or++]=n,vn[Or++]=s,vn[Or++]=l,rd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function id(e,n,s,l){return No(e,n,s,l),_o(e)}function Os(e,n){return No(e,null,null,n),_o(e)}function Im(e,n,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var c=!1,h=e.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(c=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,c&&n!==null&&(c=31-en(s),e=h.hiddenUpdates,l=e[c],l===null?e[c]=[n]:l.push(n),n.lane=s|536870912),h):null}function _o(e){if(50<vl)throw vl=0,gf=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Mr={};function _w(e,n,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,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 nn(e,n,s,l){return new _w(e,n,s,l)}function ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,n){var s=e.alternate;return s===null?(s=nn(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Vm(e,n){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Co(e,n,s,l,c,h){var b=0;if(l=e,typeof e=="function")ld(e)&&(b=1);else if(typeof e=="string")b=OE(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=nn(31,s,n,c),e.elementType=L,e.lanes=h,e;case x:return Ms(s.children,c,h,n);case j:b=8,c|=24;break;case _:return e=nn(12,s,n,c|2),e.elementType=_,e.lanes=h,e;case z:return e=nn(13,s,n,c),e.elementType=z,e.lanes=h,e;case G:return e=nn(19,s,n,c),e.elementType=G,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:b=10;break e;case C:b=9;break e;case A:b=11;break e;case k:b=14;break e;case M:b=16,l=null;break e}b=29,s=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=nn(b,s,n,c),n.elementType=e,n.type=l,n.lanes=h,n}function Ms(e,n,s,l){return e=nn(7,e,l,n),e.lanes=s,e}function od(e,n,s){return e=nn(6,e,null,n),e.lanes=s,e}function Qm(e){var n=nn(18,null,null,0);return n.stateNode=e,n}function cd(e,n,s){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Ym=new WeakMap;function bn(e,n){if(typeof e=="object"&&e!==null){var s=Ym.get(e);return s!==void 0?s:(n={value:e,source:n,stack:_n(n)},Ym.set(e,n),n)}return{value:e,source:n,stack:_n(n)}}var Dr=[],Lr=0,Ao=null,Ki=0,xn=[],Sn=0,za=null,Hn=1,Fn="";function ra(e,n){Dr[Lr++]=Ki,Dr[Lr++]=Ao,Ao=e,Ki=n}function $m(e,n,s){xn[Sn++]=Hn,xn[Sn++]=Fn,xn[Sn++]=za,za=e;var l=Hn;e=Fn;var c=32-en(l)-1;l&=~(1<<c),s+=1;var h=32-en(n)+c;if(30<h){var b=c-c%5;h=(l&(1<<b)-1).toString(32),l>>=b,c-=b,Hn=1<<32-en(n)+c|s<<c|l,Fn=h+e}else Hn=1<<h|s<<c|l,Fn=e}function ud(e){e.return!==null&&(ra(e,1),$m(e,1,0))}function dd(e){for(;e===Ao;)Ao=Dr[--Lr],Dr[Lr]=null,Ki=Dr[--Lr],Dr[Lr]=null;for(;e===za;)za=xn[--Sn],xn[Sn]=null,Fn=xn[--Sn],xn[Sn]=null,Hn=xn[--Sn],xn[Sn]=null}function Xm(e,n){xn[Sn++]=Hn,xn[Sn++]=Fn,xn[Sn++]=za,Hn=n.id,Fn=n.overflow,za=e}var Et=null,Xe=null,Te=!1,Ba=null,wn=!1,fd=Error(i(519));function Ua(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wi(bn(n,e)),fd}function Zm(e){var n=e.stateNode,s=e.type,l=e.memoizedProps;switch(n[wt]=e,n[Ht]=l,s){case"dialog":Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":case"embed":Ne("load",n);break;case"video":case"audio":for(s=0;s<xl.length;s++)Ne(xl[s],n);break;case"source":Ne("error",n);break;case"img":case"image":case"link":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"input":Ne("invalid",n),cm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ne("invalid",n);break;case"textarea":Ne("invalid",n),dm(n,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||l.suppressHydrationWarning===!0||hv(n.textContent,s)?(l.popover!=null&&(Ne("beforetoggle",n),Ne("toggle",n)),l.onScroll!=null&&Ne("scroll",n),l.onScrollEnd!=null&&Ne("scrollend",n),l.onClick!=null&&(n.onclick=na),n=!0):n=!1,n||Ua(e,!0)}function Km(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:Et=Et.return}}function zr(e){if(e!==Et)return!1;if(!Te)return Km(e),Te=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||kf(e.type,e.memoizedProps)),s=!s),s&&Xe&&Ua(e),Km(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=wv(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=wv(e)}else n===27?(n=Xe,Wa(e.type)?(e=zf,zf=null,Xe=e):Xe=n):Xe=Et?jn(e.stateNode.nextSibling):null;return!0}function Ds(){Xe=Et=null,Te=!1}function hd(){var e=Ba;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),Ba=null),e}function Wi(e){Ba===null?Ba=[e]:Ba.push(e)}var pd=D(null),Ls=null,ia=null;function Pa(e,n,s){re(pd,n._currentValue),n._currentValue=s}function la(e){e._currentValue=pd.current,Z(pd)}function md(e,n,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===s)break;e=e.return}}function gd(e,n,s,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var h=c.dependencies;if(h!==null){var b=c.child;h=h.firstContext;e:for(;h!==null;){var R=h;h=c;for(var O=0;O<n.length;O++)if(R.context===n[O]){h.lanes|=s,R=h.alternate,R!==null&&(R.lanes|=s),md(h.return,s,e),l||(b=null);break e}h=R.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(i(341));b.lanes|=s,h=b.alternate,h!==null&&(h.lanes|=s),md(b,s,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function Br(e,n,s,l){e=null;for(var c=n,h=!1;c!==null;){if(!h){if((c.flags&524288)!==0)h=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var R=c.type;tn(c.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(c===xe.current){if(b=c.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Rl):e=[Rl])}c=c.return}e!==null&&gd(n,e,s,l),n.flags|=262144}function To(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zs(e){Ls=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Wm(Ls,e)}function ko(e,n){return Ls===null&&zs(e),Wm(e,n)}function Wm(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},ia===null){if(e===null)throw Error(i(308));ia=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ia=ia.next=n;return s}var Cw=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},Aw=t.unstable_scheduleCallback,Tw=t.unstable_NormalPriority,lt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yd(){return{controller:new Cw,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&Aw(Tw,function(){e.controller.abort()})}var el=null,vd=0,Ur=0,Pr=null;function kw(e,n){if(el===null){var s=el=[];vd=0,Ur=wf(),Pr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return vd++,n.then(Jm,Jm),n}function Jm(){if(--vd===0&&el!==null){Pr!==null&&(Pr.status="fulfilled");var e=el;el=null,Ur=0,Pr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Ow(e,n){var s=[],l={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var c=0;c<s.length;c++)(0,s[c])(n)},function(c){for(l.status="rejected",l.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),l}var eg=P.S;P.S=function(e,n){By=Tt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&kw(e,n),eg!==null&&eg(e,n)};var Bs=D(null);function bd(){var e=Bs.current;return e!==null?e:$e.pooledCache}function Oo(e,n){n===null?re(Bs,Bs.current):re(Bs,n.pool)}function tg(){var e=bd();return e===null?null:{parent:lt._currentValue,pool:e}}var Hr=Error(i(460)),xd=Error(i(474)),Mo=Error(i(542)),Do={then:function(){}};function ng(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ag(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(na,na),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,rg(e),e;default:if(typeof n.status=="string")n.then(na,na);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=l}},function(l){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,rg(e),e}throw Ps=n,Hr}}function Us(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ps=s,Hr):s}}var Ps=null;function sg(){if(Ps===null)throw Error(i(459));var e=Ps;return Ps=null,e}function rg(e){if(e===Hr||e===Mo)throw Error(i(483))}var Fr=null,tl=0;function Lo(e){var n=tl;return tl+=1,Fr===null&&(Fr=[]),ag(Fr,e,n)}function nl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function zo(e,n){throw n.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function ig(e){function n(H,B){if(e){var q=H.deletions;q===null?(H.deletions=[B],H.flags|=16):q.push(B)}}function s(H,B){if(!e)return null;for(;B!==null;)n(H,B),B=B.sibling;return null}function l(H){for(var B=new Map;H!==null;)H.key!==null?B.set(H.key,H):B.set(H.index,H),H=H.sibling;return B}function c(H,B){return H=sa(H,B),H.index=0,H.sibling=null,H}function h(H,B,q){return H.index=q,e?(q=H.alternate,q!==null?(q=q.index,q<B?(H.flags|=67108866,B):q):(H.flags|=67108866,B)):(H.flags|=1048576,B)}function b(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function R(H,B,q,K){return B===null||B.tag!==6?(B=od(q,H.mode,K),B.return=H,B):(B=c(B,q),B.return=H,B)}function O(H,B,q,K){var me=q.type;return me===x?$(H,B,q.props.children,K,q.key):B!==null&&(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===M&&Us(me)===B.type)?(B=c(B,q.props),nl(B,q),B.return=H,B):(B=Co(q.type,q.key,q.props,null,H.mode,K),nl(B,q),B.return=H,B)}function I(H,B,q,K){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=cd(q,H.mode,K),B.return=H,B):(B=c(B,q.children||[]),B.return=H,B)}function $(H,B,q,K,me){return B===null||B.tag!==7?(B=Ms(q,H.mode,K,me),B.return=H,B):(B=c(B,q),B.return=H,B)}function W(H,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=od(""+B,H.mode,q),B.return=H,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case E:return q=Co(B.type,B.key,B.props,null,H.mode,q),nl(q,B),q.return=H,q;case w:return B=cd(B,H.mode,q),B.return=H,B;case M:return B=Us(B),W(H,B,q)}if(oe(B)||ne(B))return B=Ms(B,H.mode,q,null),B.return=H,B;if(typeof B.then=="function")return W(H,Lo(B),q);if(B.$$typeof===T)return W(H,ko(H,B),q);zo(H,B)}return null}function V(H,B,q,K){var me=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return me!==null?null:R(H,B,""+q,K);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return q.key===me?O(H,B,q,K):null;case w:return q.key===me?I(H,B,q,K):null;case M:return q=Us(q),V(H,B,q,K)}if(oe(q)||ne(q))return me!==null?null:$(H,B,q,K,null);if(typeof q.then=="function")return V(H,B,Lo(q),K);if(q.$$typeof===T)return V(H,B,ko(H,q),K);zo(H,q)}return null}function Y(H,B,q,K,me){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return H=H.get(q)||null,R(B,H,""+K,me);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case E:return H=H.get(K.key===null?q:K.key)||null,O(B,H,K,me);case w:return H=H.get(K.key===null?q:K.key)||null,I(B,H,K,me);case M:return K=Us(K),Y(H,B,q,K,me)}if(oe(K)||ne(K))return H=H.get(q)||null,$(B,H,K,me,null);if(typeof K.then=="function")return Y(H,B,q,Lo(K),me);if(K.$$typeof===T)return Y(H,B,q,ko(B,K),me);zo(B,K)}return null}function fe(H,B,q,K){for(var me=null,Le=null,pe=B,Ee=B=0,Ce=null;pe!==null&&Ee<q.length;Ee++){pe.index>Ee?(Ce=pe,pe=null):Ce=pe.sibling;var ze=V(H,pe,q[Ee],K);if(ze===null){pe===null&&(pe=Ce);break}e&&pe&&ze.alternate===null&&n(H,pe),B=h(ze,B,Ee),Le===null?me=ze:Le.sibling=ze,Le=ze,pe=Ce}if(Ee===q.length)return s(H,pe),Te&&ra(H,Ee),me;if(pe===null){for(;Ee<q.length;Ee++)pe=W(H,q[Ee],K),pe!==null&&(B=h(pe,B,Ee),Le===null?me=pe:Le.sibling=pe,Le=pe);return Te&&ra(H,Ee),me}for(pe=l(pe);Ee<q.length;Ee++)Ce=Y(pe,H,Ee,q[Ee],K),Ce!==null&&(e&&Ce.alternate!==null&&pe.delete(Ce.key===null?Ee:Ce.key),B=h(Ce,B,Ee),Le===null?me=Ce:Le.sibling=Ce,Le=Ce);return e&&pe.forEach(function(as){return n(H,as)}),Te&&ra(H,Ee),me}function be(H,B,q,K){if(q==null)throw Error(i(151));for(var me=null,Le=null,pe=B,Ee=B=0,Ce=null,ze=q.next();pe!==null&&!ze.done;Ee++,ze=q.next()){pe.index>Ee?(Ce=pe,pe=null):Ce=pe.sibling;var as=V(H,pe,ze.value,K);if(as===null){pe===null&&(pe=Ce);break}e&&pe&&as.alternate===null&&n(H,pe),B=h(as,B,Ee),Le===null?me=as:Le.sibling=as,Le=as,pe=Ce}if(ze.done)return s(H,pe),Te&&ra(H,Ee),me;if(pe===null){for(;!ze.done;Ee++,ze=q.next())ze=W(H,ze.value,K),ze!==null&&(B=h(ze,B,Ee),Le===null?me=ze:Le.sibling=ze,Le=ze);return Te&&ra(H,Ee),me}for(pe=l(pe);!ze.done;Ee++,ze=q.next())ze=Y(pe,H,Ee,ze.value,K),ze!==null&&(e&&ze.alternate!==null&&pe.delete(ze.key===null?Ee:ze.key),B=h(ze,B,Ee),Le===null?me=ze:Le.sibling=ze,Le=ze);return e&&pe.forEach(function(qE){return n(H,qE)}),Te&&ra(H,Ee),me}function Qe(H,B,q,K){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case E:e:{for(var me=q.key;B!==null;){if(B.key===me){if(me=q.type,me===x){if(B.tag===7){s(H,B.sibling),K=c(B,q.props.children),K.return=H,H=K;break e}}else if(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===M&&Us(me)===B.type){s(H,B.sibling),K=c(B,q.props),nl(K,q),K.return=H,H=K;break e}s(H,B);break}else n(H,B);B=B.sibling}q.type===x?(K=Ms(q.props.children,H.mode,K,q.key),K.return=H,H=K):(K=Co(q.type,q.key,q.props,null,H.mode,K),nl(K,q),K.return=H,H=K)}return b(H);case w:e:{for(me=q.key;B!==null;){if(B.key===me)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){s(H,B.sibling),K=c(B,q.children||[]),K.return=H,H=K;break e}else{s(H,B);break}else n(H,B);B=B.sibling}K=cd(q,H.mode,K),K.return=H,H=K}return b(H);case M:return q=Us(q),Qe(H,B,q,K)}if(oe(q))return fe(H,B,q,K);if(ne(q)){if(me=ne(q),typeof me!="function")throw Error(i(150));return q=me.call(q),be(H,B,q,K)}if(typeof q.then=="function")return Qe(H,B,Lo(q),K);if(q.$$typeof===T)return Qe(H,B,ko(H,q),K);zo(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(s(H,B.sibling),K=c(B,q),K.return=H,H=K):(s(H,B),K=od(q,H.mode,K),K.return=H,H=K),b(H)):s(H,B)}return function(H,B,q,K){try{tl=0;var me=Qe(H,B,q,K);return Fr=null,me}catch(pe){if(pe===Hr||pe===Mo)throw pe;var Le=nn(29,pe,null,H.mode);return Le.lanes=K,Le.return=H,Le}finally{}}}var Hs=ig(!0),lg=ig(!1),Ha=!1;function Sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var c=l.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n,n=_o(e),Im(e,null,s),n}return No(e,l,n,s),_o(e)}function al(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,Wp(e,s)}}function Ed(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var c=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var b={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?c=h=b:h=h.next=b,s=s.next}while(s!==null);h===null?c=h=n:h=h.next=n}else c=h=n;s={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var jd=!1;function sl(){if(jd){var e=Pr;if(e!==null)throw e}}function rl(e,n,s,l){jd=!1;var c=e.updateQueue;Ha=!1;var h=c.firstBaseUpdate,b=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var O=R,I=O.next;O.next=null,b===null?h=I:b.next=I,b=O;var $=e.alternate;$!==null&&($=$.updateQueue,R=$.lastBaseUpdate,R!==b&&(R===null?$.firstBaseUpdate=I:R.next=I,$.lastBaseUpdate=O))}if(h!==null){var W=c.baseState;b=0,$=I=O=null,R=h;do{var V=R.lane&-536870913,Y=V!==R.lane;if(Y?(_e&V)===V:(l&V)===V){V!==0&&V===Ur&&(jd=!0),$!==null&&($=$.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var fe=e,be=R;V=n;var Qe=s;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){W=fe.call(Qe,W,V);break e}W=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,V=typeof fe=="function"?fe.call(Qe,W,V):fe,V==null)break e;W=y({},W,V);break e;case 2:Ha=!0}}V=R.callback,V!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=c.callbacks,Y===null?c.callbacks=[V]:Y.push(V))}else Y={lane:V,tag:R.tag,payload:R.payload,callback:R.callback,next:null},$===null?(I=$=Y,O=W):$=$.next=Y,b|=V;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,c.lastBaseUpdate=Y,c.shared.pending=null}}while(!0);$===null&&(O=W),c.baseState=O,c.firstBaseUpdate=I,c.lastBaseUpdate=$,h===null&&(c.shared.lanes=0),Ya|=b,e.lanes=b,e.memoizedState=W}}function og(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function cg(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)og(s[e],n)}var Gr=D(null),Bo=D(0);function ug(e,n){e=ga,re(Bo,e),re(Gr,n),ga=e|n.baseLanes}function Rd(){re(Bo,ga),re(Gr,Gr.current)}function Nd(){ga=Bo.current,Z(Gr),Z(Bo)}var an=D(null),En=null;function qa(e){var n=e.alternate;re(at,at.current&1),re(an,e),En===null&&(n===null||Gr.current!==null||n.memoizedState!==null)&&(En=e)}function _d(e){re(at,at.current),re(an,e),En===null&&(En=e)}function dg(e){e.tag===22?(re(at,at.current),re(an,e),En===null&&(En=e)):Ia()}function Ia(){re(at,at.current),re(an,an.current)}function sn(e){Z(an),En===e&&(En=null),Z(at)}var at=D(0);function Uo(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Df(s)||Lf(s)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var oa=0,we=null,Ie=null,ot=null,Po=!1,qr=!1,Fs=!1,Ho=0,il=0,Ir=null,Mw=0;function et(){throw Error(i(321))}function Cd(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!tn(e[s],n[s]))return!1;return!0}function Ad(e,n,s,l,c,h){return oa=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?$g:Id,Fs=!1,h=s(l,c),Fs=!1,qr&&(h=hg(n,s,l,c)),fg(e),h}function fg(e){P.H=cl;var n=Ie!==null&&Ie.next!==null;if(oa=0,ot=Ie=we=null,Po=!1,il=0,Ir=null,n)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&To(e)&&(ct=!0))}function hg(e,n,s,l){we=e;var c=0;do{if(qr&&(Ir=null),il=0,qr=!1,25<=c)throw Error(i(301));if(c+=1,ot=Ie=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}P.H=Xg,h=n(s,l)}while(qr);return h}function Dw(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?ll(n):n,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(we.flags|=1024),n}function Td(){var e=Ho!==0;return Ho=0,e}function kd(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function Od(e){if(Po){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Po=!1}oa=0,ot=Ie=we=null,qr=!1,il=Ho=0,Ir=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?we.memoizedState=ot=e:ot=ot.next=e,ot}function st(){if(Ie===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var n=ot===null?we.memoizedState:ot.next;if(n!==null)ot=n,Ie=e;else{if(e===null)throw we.alternate===null?Error(i(467)):Error(i(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},ot===null?we.memoizedState=ot=e:ot=ot.next=e}return ot}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ll(e){var n=il;return il+=1,Ir===null&&(Ir=[]),e=ag(Ir,e,n),n=we,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?$g:Id),e}function Go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ll(e);if(e.$$typeof===T)return jt(e)}throw Error(i(438,String(e)))}function Md(e){var n=null,s=we.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var l=we.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Fo(),we.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),l=0;l<e;l++)s[l]=F;return n.index++,s}function ca(e,n){return typeof n=="function"?n(e):n}function qo(e){var n=st();return Dd(n,Ie,e)}function Dd(e,n,s){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=s;var c=e.baseQueue,h=l.pending;if(h!==null){if(c!==null){var b=c.next;c.next=h.next,h.next=b}n.baseQueue=c=h,l.pending=null}if(h=e.baseState,c===null)e.memoizedState=h;else{n=c.next;var R=b=null,O=null,I=n,$=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(_e&W)===W:(oa&W)===W){var V=I.revertLane;if(V===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===Ur&&($=!0);else if((oa&V)===V){I=I.next,V===Ur&&($=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(R=O=W,b=h):O=O.next=W,we.lanes|=V,Ya|=V;W=I.action,Fs&&s(h,W),h=I.hasEagerState?I.eagerState:s(h,W)}else V={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(R=O=V,b=h):O=O.next=V,we.lanes|=W,Ya|=W;I=I.next}while(I!==null&&I!==n);if(O===null?b=h:O.next=R,!tn(h,e.memoizedState)&&(ct=!0,$&&(s=Pr,s!==null)))throw s;e.memoizedState=h,e.baseState=b,e.baseQueue=O,l.lastRenderedState=h}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ld(e){var n=st(),s=n.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,c=s.pending,h=n.memoizedState;if(c!==null){s.pending=null;var b=c=c.next;do h=e(h,b.action),b=b.next;while(b!==c);tn(h,n.memoizedState)||(ct=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),s.lastRenderedState=h}return[h,l]}function pg(e,n,s){var l=we,c=st(),h=Te;if(h){if(s===void 0)throw Error(i(407));s=s()}else s=n();var b=!tn((Ie||c).memoizedState,s);if(b&&(c.memoizedState=s,ct=!0),c=c.queue,Ud(yg.bind(null,l,c,e),[e]),c.getSnapshot!==n||b||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,Vr(9,{destroy:void 0},gg.bind(null,l,c,s,n),null),$e===null)throw Error(i(349));h||(oa&127)!==0||mg(l,n,s)}return s}function mg(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=we.updateQueue,n===null?(n=Fo(),we.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function gg(e,n,s,l){n.value=s,n.getSnapshot=l,vg(n)&&bg(e)}function yg(e,n,s){return s(function(){vg(n)&&bg(e)})}function vg(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!tn(e,s)}catch{return!0}}function bg(e){var n=Os(e,2);n!==null&&Qt(n,e,2)}function zd(e){var n=Ut();if(typeof e=="function"){var s=e;if(e=s(),Fs){Ma(!0);try{s()}finally{Ma(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},n}function xg(e,n,s,l){return e.baseState=s,Dd(e,Ie,typeof l=="function"?l:ca)}function Lw(e,n,s,l,c){if(Qo(e))throw Error(i(485));if(e=n.action,e!==null){var h={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};P.T!==null?s(!0):h.isTransition=!1,l(h),s=n.pending,s===null?(h.next=n.pending=h,Sg(n,h)):(h.next=s.next,n.pending=s.next=h)}}function Sg(e,n){var s=n.action,l=n.payload,c=e.state;if(n.isTransition){var h=P.T,b={};P.T=b;try{var R=s(c,l),O=P.S;O!==null&&O(b,R),wg(e,n,R)}catch(I){Bd(e,n,I)}finally{h!==null&&b.types!==null&&(h.types=b.types),P.T=h}}else try{h=s(c,l),wg(e,n,h)}catch(I){Bd(e,n,I)}}function wg(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Eg(e,n,l)},function(l){return Bd(e,n,l)}):Eg(e,n,s)}function Eg(e,n,s){n.status="fulfilled",n.value=s,jg(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Sg(e,s)))}function Bd(e,n,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=s,jg(n),n=n.next;while(n!==l)}e.action=null}function jg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Rg(e,n){return n}function Ng(e,n){if(Te){var s=$e.formState;if(s!==null){e:{var l=we;if(Te){if(Xe){t:{for(var c=Xe,h=wn;c.nodeType!==8;){if(!h){c=null;break t}if(c=jn(c.nextSibling),c===null){c=null;break t}}h=c.data,c=h==="F!"||h==="F"?c:null}if(c){Xe=jn(c.nextSibling),l=c.data==="F!";break e}}Ua(l)}l=!1}l&&(n=s[0])}}return s=Ut(),s.memoizedState=s.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rg,lastRenderedState:n},s.queue=l,s=Vg.bind(null,we,l),l.dispatch=s,l=zd(!1),h=qd.bind(null,we,!1,l.queue),l=Ut(),c={state:n,dispatch:null,action:e,pending:null},l.queue=c,s=Lw.bind(null,we,c,h,s),c.dispatch=s,l.memoizedState=e,[n,s,!1]}function _g(e){var n=st();return Cg(n,Ie,e)}function Cg(e,n,s){if(n=Dd(e,n,Rg)[0],e=qo(ca)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=ll(n)}catch(b){throw b===Hr?Mo:b}else l=n;n=st();var c=n.queue,h=c.dispatch;return s!==n.memoizedState&&(we.flags|=2048,Vr(9,{destroy:void 0},zw.bind(null,c,s),null)),[l,h,e]}function zw(e,n){e.action=n}function Ag(e){var n=st(),s=Ie;if(s!==null)return Cg(n,s,e);st(),n=n.memoizedState,s=st();var l=s.queue.dispatch;return s.memoizedState=e,[n,l,!1]}function Vr(e,n,s,l){return e={tag:e,create:s,deps:l,inst:n,next:null},n=we.updateQueue,n===null&&(n=Fo(),we.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,n.lastEffect=e),e}function Tg(){return st().memoizedState}function Io(e,n,s,l){var c=Ut();we.flags|=e,c.memoizedState=Vr(1|n,{destroy:void 0},s,l===void 0?null:l)}function Vo(e,n,s,l){var c=st();l=l===void 0?null:l;var h=c.memoizedState.inst;Ie!==null&&l!==null&&Cd(l,Ie.memoizedState.deps)?c.memoizedState=Vr(n,h,s,l):(we.flags|=e,c.memoizedState=Vr(1|n,h,s,l))}function kg(e,n){Io(8390656,8,e,n)}function Ud(e,n){Vo(2048,8,e,n)}function Bw(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Fo(),we.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function Og(e){var n=st().memoizedState;return Bw({ref:n,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Mg(e,n){return Vo(4,2,e,n)}function Dg(e,n){return Vo(4,4,e,n)}function Lg(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function zg(e,n,s){s=s!=null?s.concat([e]):null,Vo(4,4,Lg.bind(null,n,e),s)}function Pd(){}function Bg(e,n){var s=st();n=n===void 0?null:n;var l=s.memoizedState;return n!==null&&Cd(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function Ug(e,n){var s=st();n=n===void 0?null:n;var l=s.memoizedState;if(n!==null&&Cd(n,l[1]))return l[0];if(l=e(),Fs){Ma(!0);try{e()}finally{Ma(!1)}}return s.memoizedState=[l,n],l}function Hd(e,n,s){return s===void 0||(oa&1073741824)!==0&&(_e&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=Py(),we.lanes|=e,Ya|=e,s)}function Pg(e,n,s,l){return tn(s,n)?s:Gr.current!==null?(e=Hd(e,s,l),tn(e,n)||(ct=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(_e&261930)===0?(ct=!0,e.memoizedState=s):(e=Py(),we.lanes|=e,Ya|=e,n)}function Hg(e,n,s,l,c){var h=Q.p;Q.p=h!==0&&8>h?h:8;var b=P.T,R={};P.T=R,qd(e,!1,n,s);try{var O=c(),I=P.S;if(I!==null&&I(R,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var $=Ow(O,l);ol(e,n,$,on(e))}else ol(e,n,l,on(e))}catch(W){ol(e,n,{then:function(){},status:"rejected",reason:W},on())}finally{Q.p=h,b!==null&&R.types!==null&&(b.types=R.types),P.T=b}}function Uw(){}function Fd(e,n,s,l){if(e.tag!==5)throw Error(i(476));var c=Fg(e).queue;Hg(e,c,n,ee,s===null?Uw:function(){return Gg(e),s(l)})}function Fg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ee},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Gg(e){var n=Fg(e);n.next===null&&(n=e.alternate.memoizedState),ol(e,n.next.queue,{},on())}function Gd(){return jt(Rl)}function qg(){return st().memoizedState}function Ig(){return st().memoizedState}function Pw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=on();e=Fa(s);var l=Ga(n,e,s);l!==null&&(Qt(l,n,s),al(l,n,s)),n={cache:yd()},e.payload=n;return}n=n.return}}function Hw(e,n,s){var l=on();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Qo(e)?Qg(n,s):(s=id(e,n,s,l),s!==null&&(Qt(s,e,l),Yg(s,n,l)))}function Vg(e,n,s){var l=on();ol(e,n,s,l)}function ol(e,n,s,l){var c={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Qo(e))Qg(n,c);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,R=h(b,s);if(c.hasEagerState=!0,c.eagerState=R,tn(R,b))return No(e,n,c,0),$e===null&&Ro(),!1}catch{}finally{}if(s=id(e,n,c,l),s!==null)return Qt(s,e,l),Yg(s,n,l),!0}return!1}function qd(e,n,s,l){if(l={lane:2,revertLane:wf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qo(e)){if(n)throw Error(i(479))}else n=id(e,s,l,2),n!==null&&Qt(n,e,2)}function Qo(e){var n=e.alternate;return e===we||n!==null&&n===we}function Qg(e,n){qr=Po=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function Yg(e,n,s){if((s&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,Wp(e,s)}}var cl={readContext:jt,use:Go,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};cl.useEffectEvent=et;var $g={readContext:jt,use:Go,useCallback:function(e,n){return Ut().memoizedState=[e,n===void 0?null:n],e},useContext:jt,useEffect:kg,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Io(4194308,4,Lg.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Io(4194308,4,e,n)},useInsertionEffect:function(e,n){Io(4,2,e,n)},useMemo:function(e,n){var s=Ut();n=n===void 0?null:n;var l=e();if(Fs){Ma(!0);try{e()}finally{Ma(!1)}}return s.memoizedState=[l,n],l},useReducer:function(e,n,s){var l=Ut();if(s!==void 0){var c=s(n);if(Fs){Ma(!0);try{s(n)}finally{Ma(!1)}}}else c=n;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=Hw.bind(null,we,e),[l.memoizedState,e]},useRef:function(e){var n=Ut();return e={current:e},n.memoizedState=e},useState:function(e){e=zd(e);var n=e.queue,s=Vg.bind(null,we,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Pd,useDeferredValue:function(e,n){var s=Ut();return Hd(s,e,n)},useTransition:function(){var e=zd(!1);return e=Hg.bind(null,we,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var l=we,c=Ut();if(Te){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),$e===null)throw Error(i(349));(_e&127)!==0||mg(l,n,s)}c.memoizedState=s;var h={value:s,getSnapshot:n};return c.queue=h,kg(yg.bind(null,l,h,e),[e]),l.flags|=2048,Vr(9,{destroy:void 0},gg.bind(null,l,h,s,n),null),s},useId:function(){var e=Ut(),n=$e.identifierPrefix;if(Te){var s=Fn,l=Hn;s=(l&~(1<<32-en(l)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Ho++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=Mw++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Gd,useFormState:Ng,useActionState:Ng,useOptimistic:function(e){var n=Ut();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=qd.bind(null,we,!0,s),s.dispatch=n,[e,n]},useMemoCache:Md,useCacheRefresh:function(){return Ut().memoizedState=Pw.bind(null,we)},useEffectEvent:function(e){var n=Ut(),s={impl:e};return n.memoizedState=s,function(){if((Ue&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},Id={readContext:jt,use:Go,useCallback:Bg,useContext:jt,useEffect:Ud,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Ug,useReducer:qo,useRef:Tg,useState:function(){return qo(ca)},useDebugValue:Pd,useDeferredValue:function(e,n){var s=st();return Pg(s,Ie.memoizedState,e,n)},useTransition:function(){var e=qo(ca)[0],n=st().memoizedState;return[typeof e=="boolean"?e:ll(e),n]},useSyncExternalStore:pg,useId:qg,useHostTransitionStatus:Gd,useFormState:_g,useActionState:_g,useOptimistic:function(e,n){var s=st();return xg(s,Ie,e,n)},useMemoCache:Md,useCacheRefresh:Ig};Id.useEffectEvent=Og;var Xg={readContext:jt,use:Go,useCallback:Bg,useContext:jt,useEffect:Ud,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Ug,useReducer:Ld,useRef:Tg,useState:function(){return Ld(ca)},useDebugValue:Pd,useDeferredValue:function(e,n){var s=st();return Ie===null?Hd(s,e,n):Pg(s,Ie.memoizedState,e,n)},useTransition:function(){var e=Ld(ca)[0],n=st().memoizedState;return[typeof e=="boolean"?e:ll(e),n]},useSyncExternalStore:pg,useId:qg,useHostTransitionStatus:Gd,useFormState:Ag,useActionState:Ag,useOptimistic:function(e,n){var s=st();return Ie!==null?xg(s,Ie,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Md,useCacheRefresh:Ig};Xg.useEffectEvent=Og;function Vd(e,n,s,l){n=e.memoizedState,s=s(l,n),s=s==null?n:y({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Qd={enqueueSetState:function(e,n,s){e=e._reactInternals;var l=on(),c=Fa(l);c.payload=n,s!=null&&(c.callback=s),n=Ga(e,c,l),n!==null&&(Qt(n,e,l),al(n,e,l))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=on(),c=Fa(l);c.tag=1,c.payload=n,s!=null&&(c.callback=s),n=Ga(e,c,l),n!==null&&(Qt(n,e,l),al(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=on(),l=Fa(s);l.tag=2,n!=null&&(l.callback=n),n=Ga(e,l,s),n!==null&&(Qt(n,e,s),al(n,e,s))}};function Zg(e,n,s,l,c,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,b):n.prototype&&n.prototype.isPureReactComponent?!Xi(s,l)||!Xi(c,h):!0}function Kg(e,n,s,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,l),n.state!==e&&Qd.enqueueReplaceState(n,n.state,null)}function Gs(e,n){var s=n;if("ref"in n){s={};for(var l in n)l!=="ref"&&(s[l]=n[l])}if(e=e.defaultProps){s===n&&(s=y({},s));for(var c in e)s[c]===void 0&&(s[c]=e[c])}return s}function Wg(e){jo(e)}function Jg(e){console.error(e)}function ey(e){jo(e)}function Yo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function ty(e,n,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Yd(e,n,s){return s=Fa(s),s.tag=3,s.payload={element:null},s.callback=function(){Yo(e,n)},s}function ny(e){return e=Fa(e),e.tag=3,e}function ay(e,n,s,l){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var h=l.value;e.payload=function(){return c(h)},e.callback=function(){ty(n,s,l)}}var b=s.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){ty(n,s,l),typeof c!="function"&&($a===null?$a=new Set([this]):$a.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function Fw(e,n,s,l,c){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=s.alternate,n!==null&&Br(n,s,c,!0),s=an.current,s!==null){switch(s.tag){case 31:case 13:return En===null?rc():s.alternate===null&&tt===0&&(tt=3),s.flags&=-257,s.flags|=65536,s.lanes=c,l===Do?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([l]):n.add(l),bf(e,l,c)),!1;case 22:return s.flags|=65536,l===Do?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([l]):s.add(l)),bf(e,l,c)),!1}throw Error(i(435,s.tag))}return bf(e,l,c),rc(),!1}if(Te)return n=an.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,l!==fd&&(e=Error(i(422),{cause:l}),Wi(bn(e,s)))):(l!==fd&&(n=Error(i(423),{cause:l}),Wi(bn(n,s))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=bn(l,s),c=Yd(e.stateNode,l,c),Ed(e,c),tt!==4&&(tt=2)),!1;var h=Error(i(520),{cause:l});if(h=bn(h,s),yl===null?yl=[h]:yl.push(h),tt!==4&&(tt=2),n===null)return!0;l=bn(l,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=c&-c,s.lanes|=e,e=Yd(s.stateNode,l,e),Ed(s,e),!1;case 1:if(n=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&($a===null||!$a.has(h))))return s.flags|=65536,c&=-c,s.lanes|=c,c=ny(c),ay(c,e,s,l),Ed(s,c),!1}s=s.return}while(s!==null);return!1}var $d=Error(i(461)),ct=!1;function Rt(e,n,s,l){n.child=e===null?lg(n,null,s,l):Hs(n,e.child,s,l)}function sy(e,n,s,l,c){s=s.render;var h=n.ref;if("ref"in l){var b={};for(var R in l)R!=="ref"&&(b[R]=l[R])}else b=l;return zs(n),l=Ad(e,n,s,b,h,c),R=Td(),e!==null&&!ct?(kd(e,n,c),ua(e,n,c)):(Te&&R&&ud(n),n.flags|=1,Rt(e,n,l,c),n.child)}function ry(e,n,s,l,c){if(e===null){var h=s.type;return typeof h=="function"&&!ld(h)&&h.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=h,iy(e,n,h,l,c)):(e=Co(s.type,null,l,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!nf(e,c)){var b=h.memoizedProps;if(s=s.compare,s=s!==null?s:Xi,s(b,l)&&e.ref===n.ref)return ua(e,n,c)}return n.flags|=1,e=sa(h,l),e.ref=n.ref,e.return=n,n.child=e}function iy(e,n,s,l,c){if(e!==null){var h=e.memoizedProps;if(Xi(h,l)&&e.ref===n.ref)if(ct=!1,n.pendingProps=l=h,nf(e,c))(e.flags&131072)!==0&&(ct=!0);else return n.lanes=e.lanes,ua(e,n,c)}return Xd(e,n,s,l,c)}function ly(e,n,s,l){var c=l.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|s:s,e!==null){for(l=n.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~h}else l=0,n.child=null;return oy(e,n,h,s,l)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Oo(n,h!==null?h.cachePool:null),h!==null?ug(n,h):Rd(),dg(n);else return l=n.lanes=536870912,oy(e,n,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(Oo(n,h.cachePool),ug(n,h),Ia(),n.memoizedState=null):(e!==null&&Oo(n,null),Rd(),Ia());return Rt(e,n,c,s),n.child}function ul(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function oy(e,n,s,l,c){var h=bd();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:s,cachePool:h},e!==null&&Oo(n,null),Rd(),dg(n),e!==null&&Br(e,n,l,!0),n.childLanes=c,null}function $o(e,n){return n=Zo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function cy(e,n,s){return Hs(n,e.child,null,s),e=$o(n,n.pendingProps),e.flags|=2,sn(n),n.memoizedState=null,e}function Gw(e,n,s){var l=n.pendingProps,c=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Te){if(l.mode==="hidden")return e=$o(n,l),n.lanes=536870912,ul(null,e);if(_d(n),(e=Xe)?(e=Sv(e,wn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:za!==null?{id:Hn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},s=Qm(e),s.return=n,n.child=s,Et=n,Xe=null)):e=null,e===null)throw Ua(n);return n.lanes=536870912,null}return $o(n,l)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(_d(n),c)if(n.flags&256)n.flags&=-257,n=cy(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(ct||Br(e,n,s,!1),c=(s&e.childLanes)!==0,ct||c){if(l=$e,l!==null&&(b=Jp(l,s),b!==0&&b!==h.retryLane))throw h.retryLane=b,Os(e,b),Qt(l,e,b),$d;rc(),n=cy(e,n,s)}else e=h.treeContext,Xe=jn(b.nextSibling),Et=n,Te=!0,Ba=null,wn=!1,e!==null&&Xm(n,e),n=$o(n,l),n.flags|=4096;return n}return e=sa(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Xo(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function Xd(e,n,s,l,c){return zs(n),s=Ad(e,n,s,l,void 0,c),l=Td(),e!==null&&!ct?(kd(e,n,c),ua(e,n,c)):(Te&&l&&ud(n),n.flags|=1,Rt(e,n,s,c),n.child)}function uy(e,n,s,l,c,h){return zs(n),n.updateQueue=null,s=hg(n,l,s,c),fg(e),l=Td(),e!==null&&!ct?(kd(e,n,h),ua(e,n,h)):(Te&&l&&ud(n),n.flags|=1,Rt(e,n,s,h),n.child)}function dy(e,n,s,l,c){if(zs(n),n.stateNode===null){var h=Mr,b=s.contextType;typeof b=="object"&&b!==null&&(h=jt(b)),h=new s(l,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Qd,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=l,h.state=n.memoizedState,h.refs={},Sd(n),b=s.contextType,h.context=typeof b=="object"&&b!==null?jt(b):Mr,h.state=n.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(Vd(n,s,b,l),h.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Qd.enqueueReplaceState(h,h.state,null),rl(n,l,h,c),sl(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){h=n.stateNode;var R=n.memoizedProps,O=Gs(s,R);h.props=O;var I=h.context,$=s.contextType;b=Mr,typeof $=="object"&&$!==null&&(b=jt($));var W=s.getDerivedStateFromProps;$=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,$||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(R||I!==b)&&Kg(n,h,l,b),Ha=!1;var V=n.memoizedState;h.state=V,rl(n,l,h,c),sl(),I=n.memoizedState,R||V!==I||Ha?(typeof W=="function"&&(Vd(n,s,W,l),I=n.memoizedState),(O=Ha||Zg(n,s,O,l,V,I,b))?($||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),h.props=l,h.state=I,h.context=b,l=O):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{h=n.stateNode,wd(e,n),b=n.memoizedProps,$=Gs(s,b),h.props=$,W=n.pendingProps,V=h.context,I=s.contextType,O=Mr,typeof I=="object"&&I!==null&&(O=jt(I)),R=s.getDerivedStateFromProps,(I=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==W||V!==O)&&Kg(n,h,l,O),Ha=!1,V=n.memoizedState,h.state=V,rl(n,l,h,c),sl();var Y=n.memoizedState;b!==W||V!==Y||Ha||e!==null&&e.dependencies!==null&&To(e.dependencies)?(typeof R=="function"&&(Vd(n,s,R,l),Y=n.memoizedState),($=Ha||Zg(n,s,$,l,V,Y,O)||e!==null&&e.dependencies!==null&&To(e.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,Y,O),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,Y,O)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=Y),h.props=l,h.state=Y,h.context=O,l=$):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),l=!1)}return h=l,Xo(e,n),l=(n.flags&128)!==0,h||l?(h=n.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&l?(n.child=Hs(n,e.child,null,c),n.child=Hs(n,null,s,c)):Rt(e,n,s,c),n.memoizedState=h.state,e=n.child):e=ua(e,n,c),e}function fy(e,n,s,l){return Ds(),n.flags|=256,Rt(e,n,s,l),n.child}var Zd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kd(e){return{baseLanes:e,cachePool:tg()}}function Wd(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=ln),e}function hy(e,n,s){var l=n.pendingProps,c=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Te){if(c?qa(n):Ia(),(e=Xe)?(e=Sv(e,wn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:za!==null?{id:Hn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},s=Qm(e),s.return=n,n.child=s,Et=n,Xe=null)):e=null,e===null)throw Ua(n);return Lf(e)?n.lanes=32:n.lanes=536870912,null}var R=l.children;return l=l.fallback,c?(Ia(),c=n.mode,R=Zo({mode:"hidden",children:R},c),l=Ms(l,c,s,null),R.return=n,l.return=n,R.sibling=l,n.child=R,l=n.child,l.memoizedState=Kd(s),l.childLanes=Wd(e,b,s),n.memoizedState=Zd,ul(null,l)):(qa(n),Jd(n,R))}var O=e.memoizedState;if(O!==null&&(R=O.dehydrated,R!==null)){if(h)n.flags&256?(qa(n),n.flags&=-257,n=ef(e,n,s)):n.memoizedState!==null?(Ia(),n.child=e.child,n.flags|=128,n=null):(Ia(),R=l.fallback,c=n.mode,l=Zo({mode:"visible",children:l.children},c),R=Ms(R,c,s,null),R.flags|=2,l.return=n,R.return=n,l.sibling=R,n.child=l,Hs(n,e.child,null,s),l=n.child,l.memoizedState=Kd(s),l.childLanes=Wd(e,b,s),n.memoizedState=Zd,n=ul(null,l));else if(qa(n),Lf(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var I=b.dgst;b=I,l=Error(i(419)),l.stack="",l.digest=b,Wi({value:l,source:null,stack:null}),n=ef(e,n,s)}else if(ct||Br(e,n,s,!1),b=(s&e.childLanes)!==0,ct||b){if(b=$e,b!==null&&(l=Jp(b,s),l!==0&&l!==O.retryLane))throw O.retryLane=l,Os(e,l),Qt(b,e,l),$d;Df(R)||rc(),n=ef(e,n,s)}else Df(R)?(n.flags|=192,n.child=e.child,n=null):(e=O.treeContext,Xe=jn(R.nextSibling),Et=n,Te=!0,Ba=null,wn=!1,e!==null&&Xm(n,e),n=Jd(n,l.children),n.flags|=4096);return n}return c?(Ia(),R=l.fallback,c=n.mode,O=e.child,I=O.sibling,l=sa(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,I!==null?R=sa(I,R):(R=Ms(R,c,s,null),R.flags|=2),R.return=n,l.return=n,l.sibling=R,n.child=l,ul(null,l),l=n.child,R=e.child.memoizedState,R===null?R=Kd(s):(c=R.cachePool,c!==null?(O=lt._currentValue,c=c.parent!==O?{parent:O,pool:O}:c):c=tg(),R={baseLanes:R.baseLanes|s,cachePool:c}),l.memoizedState=R,l.childLanes=Wd(e,b,s),n.memoizedState=Zd,ul(e.child,l)):(qa(n),s=e.child,e=s.sibling,s=sa(s,{mode:"visible",children:l.children}),s.return=n,s.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=s,n.memoizedState=null,s)}function Jd(e,n){return n=Zo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Zo(e,n){return e=nn(22,e,null,n),e.lanes=0,e}function ef(e,n,s){return Hs(n,e.child,null,s),e=Jd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function py(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),md(e.return,n,s)}function tf(e,n,s,l,c,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:c,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=s,b.tailMode=c,b.treeForkCount=h)}function my(e,n,s){var l=n.pendingProps,c=l.revealOrder,h=l.tail;l=l.children;var b=at.current,R=(b&2)!==0;if(R?(b=b&1|2,n.flags|=128):b&=1,re(at,b),Rt(e,n,l,s),l=Te?Ki:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&py(e,s,n);else if(e.tag===19)py(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(s=n.child,c=null;s!==null;)e=s.alternate,e!==null&&Uo(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=n.child,n.child=null):(c=s.sibling,s.sibling=null),tf(n,!1,c,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Uo(e)===null){n.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}tf(n,!0,s,null,h,l);break;case"together":tf(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function ua(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),Ya|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(Br(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,s=sa(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=sa(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function nf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&To(e)))}function qw(e,n,s){switch(n.tag){case 3:Oe(n,n.stateNode.containerInfo),Pa(n,lt,e.memoizedState.cache),Ds();break;case 27:case 5:zt(n);break;case 4:Oe(n,n.stateNode.containerInfo);break;case 10:Pa(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,_d(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(qa(n),n.flags|=128,null):(s&n.child.childLanes)!==0?hy(e,n,s):(qa(n),e=ua(e,n,s),e!==null?e.sibling:null);qa(n);break;case 19:var c=(e.flags&128)!==0;if(l=(s&n.childLanes)!==0,l||(Br(e,n,s,!1),l=(s&n.childLanes)!==0),c){if(l)return my(e,n,s);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),re(at,at.current),l)break;return null;case 22:return n.lanes=0,ly(e,n,s,n.pendingProps);case 24:Pa(n,lt,e.memoizedState.cache)}return ua(e,n,s)}function gy(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)ct=!0;else{if(!nf(e,s)&&(n.flags&128)===0)return ct=!1,qw(e,n,s);ct=(e.flags&131072)!==0}else ct=!1,Te&&(n.flags&1048576)!==0&&$m(n,Ki,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=Us(n.elementType),n.type=e,typeof e=="function")ld(e)?(l=Gs(e,l),n.tag=1,n=dy(null,n,e,l,s)):(n.tag=0,n=Xd(null,n,e,l,s));else{if(e!=null){var c=e.$$typeof;if(c===A){n.tag=11,n=sy(null,n,e,l,s);break e}else if(c===k){n.tag=14,n=ry(null,n,e,l,s);break e}}throw n=te(e)||e,Error(i(306,n,""))}}return n;case 0:return Xd(e,n,n.type,n.pendingProps,s);case 1:return l=n.type,c=Gs(l,n.pendingProps),dy(e,n,l,c,s);case 3:e:{if(Oe(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var h=n.memoizedState;c=h.element,wd(e,n),rl(n,l,null,s);var b=n.memoizedState;if(l=b.cache,Pa(n,lt,l),l!==h.cache&&gd(n,[lt],s,!0),sl(),l=b.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=fy(e,n,l,s);break e}else if(l!==c){c=bn(Error(i(424)),n),Wi(c),n=fy(e,n,l,s);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=jn(e.firstChild),Et=n,Te=!0,Ba=null,wn=!0,s=lg(n,null,l,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ds(),l===c){n=ua(e,n,s);break e}Rt(e,n,l,s)}n=n.child}return n;case 26:return Xo(e,n),e===null?(s=_v(n.type,null,n.pendingProps,null))?n.memoizedState=s:Te||(s=n.type,e=n.pendingProps,l=fc(he.current).createElement(s),l[wt]=n,l[Ht]=e,Nt(l,s,e),gt(l),n.stateNode=l):n.memoizedState=_v(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return zt(n),e===null&&Te&&(l=n.stateNode=jv(n.type,n.pendingProps,he.current),Et=n,wn=!0,c=Xe,Wa(n.type)?(zf=c,Xe=jn(l.firstChild)):Xe=c),Rt(e,n,n.pendingProps.children,s),Xo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Te&&((c=l=Xe)&&(l=bE(l,n.type,n.pendingProps,wn),l!==null?(n.stateNode=l,Et=n,Xe=jn(l.firstChild),wn=!1,c=!0):c=!1),c||Ua(n)),zt(n),c=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,l=h.children,kf(c,h)?l=null:b!==null&&kf(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=Ad(e,n,Dw,null,null,s),Rl._currentValue=c),Xo(e,n),Rt(e,n,l,s),n.child;case 6:return e===null&&Te&&((e=s=Xe)&&(s=xE(s,n.pendingProps,wn),s!==null?(n.stateNode=s,Et=n,Xe=null,e=!0):e=!1),e||Ua(n)),null;case 13:return hy(e,n,s);case 4:return Oe(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Hs(n,null,l,s):Rt(e,n,l,s),n.child;case 11:return sy(e,n,n.type,n.pendingProps,s);case 7:return Rt(e,n,n.pendingProps,s),n.child;case 8:return Rt(e,n,n.pendingProps.children,s),n.child;case 12:return Rt(e,n,n.pendingProps.children,s),n.child;case 10:return l=n.pendingProps,Pa(n,n.type,l.value),Rt(e,n,l.children,s),n.child;case 9:return c=n.type._context,l=n.pendingProps.children,zs(n),c=jt(c),l=l(c),n.flags|=1,Rt(e,n,l,s),n.child;case 14:return ry(e,n,n.type,n.pendingProps,s);case 15:return iy(e,n,n.type,n.pendingProps,s);case 19:return my(e,n,s);case 31:return Gw(e,n,s);case 22:return ly(e,n,s,n.pendingProps);case 24:return zs(n),l=jt(lt),e===null?(c=bd(),c===null&&(c=$e,h=yd(),c.pooledCache=h,h.refCount++,h!==null&&(c.pooledCacheLanes|=s),c=h),n.memoizedState={parent:l,cache:c},Sd(n),Pa(n,lt,c)):((e.lanes&s)!==0&&(wd(e,n),rl(n,null,null,s),sl()),c=e.memoizedState,h=n.memoizedState,c.parent!==l?(c={parent:l,cache:l},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Pa(n,lt,l)):(l=h.cache,Pa(n,lt,l),l!==c.cache&&gd(n,[lt],s,!0))),Rt(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function da(e){e.flags|=4}function af(e,n,s,l,c){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(qy())e.flags|=8192;else throw Ps=Do,xd}else e.flags&=-16777217}function yy(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ov(n))if(qy())e.flags|=8192;else throw Ps=Do,xd}function Ko(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Zp():536870912,e.lanes|=n,Xr|=n)}function dl(e,n){if(!Te)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ze(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function Iw(e,n,s){var l=n.pendingProps;switch(dd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(n),null;case 1:return Ze(n),null;case 3:return s=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),la(lt),ye(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(zr(n)?da(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,hd())),Ze(n),null;case 26:var c=n.type,h=n.memoizedState;return e===null?(da(n),h!==null?(Ze(n),yy(n,h)):(Ze(n),af(n,c,null,l,s))):h?h!==e.memoizedState?(da(n),Ze(n),yy(n,h)):(Ze(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&da(n),Ze(n),af(n,c,e,l,s)),null;case 27:if(xt(n),s=he.current,c=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&da(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}e=ie.current,zr(n)?Zm(n):(e=jv(c,l,s),n.stateNode=e,da(n))}return Ze(n),null;case 5:if(xt(n),c=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&da(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}if(h=ie.current,zr(n))Zm(n);else{var b=fc(he.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?b.createElement(c,{is:l.is}):b.createElement(c)}}h[wt]=n,h[Ht]=l;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(Nt(h,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&da(n)}}return Ze(n),af(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&da(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=he.current,zr(n)){if(e=n.stateNode,s=n.memoizedProps,l=null,c=Et,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[wt]=n,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||hv(e.nodeValue,s)),e||Ua(n,!0)}else e=fc(e).createTextNode(l),e[wt]=n,n.stateNode=e}return Ze(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(l=zr(n),s!==null){if(e===null){if(!l)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[wt]=n}else Ds(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),e=!1}else s=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(sn(n),n):(sn(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Ze(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=zr(n),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[wt]=n}else Ds(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),c=!1}else c=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(sn(n),n):(sn(n),null)}return sn(n),(n.flags&128)!==0?(n.lanes=s,n):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=n.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==c&&(l.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),Ko(n,n.updateQueue),Ze(n),null);case 4:return ye(),e===null&&Nf(n.stateNode.containerInfo),Ze(n),null;case 10:return la(n.type),Ze(n),null;case 19:if(Z(at),l=n.memoizedState,l===null)return Ze(n),null;if(c=(n.flags&128)!==0,h=l.rendering,h===null)if(c)dl(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Uo(e),h!==null){for(n.flags|=128,dl(l,!1),e=h.updateQueue,n.updateQueue=e,Ko(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)Vm(s,e),s=s.sibling;return re(at,at.current&1|2),Te&&ra(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Tt()>nc&&(n.flags|=128,c=!0,dl(l,!1),n.lanes=4194304)}else{if(!c)if(e=Uo(h),e!==null){if(n.flags|=128,c=!0,e=e.updateQueue,n.updateQueue=e,Ko(n,e),dl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Te)return Ze(n),null}else 2*Tt()-l.renderingStartTime>nc&&s!==536870912&&(n.flags|=128,c=!0,dl(l,!1),n.lanes=4194304);l.isBackwards?(h.sibling=n.child,n.child=h):(e=l.last,e!==null?e.sibling=h:n.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Tt(),e.sibling=null,s=at.current,re(at,c?s&1|2:s&1),Te&&ra(n,l.treeForkCount),e):(Ze(n),null);case 22:case 23:return sn(n),Nd(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(s&536870912)!==0&&(n.flags&128)===0&&(Ze(n),n.subtreeFlags&6&&(n.flags|=8192)):Ze(n),s=n.updateQueue,s!==null&&Ko(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==s&&(n.flags|=2048),e!==null&&Z(Bs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),la(lt),Ze(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function Vw(e,n){switch(dd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return la(lt),ye(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return xt(n),null;case 31:if(n.memoizedState!==null){if(sn(n),n.alternate===null)throw Error(i(340));Ds()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(sn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Ds()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Z(at),null;case 4:return ye(),null;case 10:return la(n.type),null;case 22:case 23:return sn(n),Nd(),e!==null&&Z(Bs),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return la(lt),null;case 25:return null;default:return null}}function vy(e,n){switch(dd(n),n.tag){case 3:la(lt),ye();break;case 26:case 27:case 5:xt(n);break;case 4:ye();break;case 31:n.memoizedState!==null&&sn(n);break;case 13:sn(n);break;case 19:Z(at);break;case 10:la(n.type);break;case 22:case 23:sn(n),Nd(),e!==null&&Z(Bs);break;case 24:la(lt)}}function fl(e,n){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var c=l.next;s=c;do{if((s.tag&e)===e){l=void 0;var h=s.create,b=s.inst;l=h(),b.destroy=l}s=s.next}while(s!==c)}}catch(R){Ge(n,n.return,R)}}function Va(e,n,s){try{var l=n.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var h=c.next;l=h;do{if((l.tag&e)===e){var b=l.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,c=n;var O=s,I=R;try{I()}catch($){Ge(c,O,$)}}}l=l.next}while(l!==h)}}catch($){Ge(n,n.return,$)}}function by(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{cg(n,s)}catch(l){Ge(e,e.return,l)}}}function xy(e,n,s){s.props=Gs(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ge(e,n,l)}}function hl(e,n){try{var s=e.ref;if(s!==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 s=="function"?e.refCleanup=s(l):s.current=l}}catch(c){Ge(e,n,c)}}function Gn(e,n){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(c){Ge(e,n,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Ge(e,n,c)}else s.current=null}function Sy(e){var n=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(c){Ge(e,e.return,c)}}function sf(e,n,s){try{var l=e.stateNode;hE(l,e.type,s,n),l[Ht]=n}catch(c){Ge(e,e.return,c)}}function wy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wy(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&&Wa(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 lf(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=na));else if(l!==4&&(l===27&&Wa(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(lf(e,n,s),e=e.sibling;e!==null;)lf(e,n,s),e=e.sibling}function Wo(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(l!==4&&(l===27&&Wa(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Wo(e,n,s),e=e.sibling;e!==null;)Wo(e,n,s),e=e.sibling}function Ey(e){var n=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Nt(n,l,s),n[wt]=e,n[Ht]=s}catch(h){Ge(e,e.return,h)}}var fa=!1,ut=!1,of=!1,jy=typeof WeakSet=="function"?WeakSet:Set,yt=null;function Qw(e,n){if(e=e.containerInfo,Af=bc,e=zm(e),ed(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var b=0,R=-1,O=-1,I=0,$=0,W=e,V=null;t:for(;;){for(var Y;W!==s||c!==0&&W.nodeType!==3||(R=b+c),W!==h||l!==0&&W.nodeType!==3||(O=b+l),W.nodeType===3&&(b+=W.nodeValue.length),(Y=W.firstChild)!==null;)V=W,W=Y;for(;;){if(W===e)break t;if(V===s&&++I===c&&(R=b),V===h&&++$===l&&(O=b),(Y=W.nextSibling)!==null)break;W=V,V=W.parentNode}W=Y}s=R===-1||O===-1?null:{start:R,end:O}}else s=null}s=s||{start:0,end:0}}else s=null;for(Tf={focusedElem:e,selectionRange:s},bc=!1,yt=n;yt!==null;)if(n=yt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,yt=e;else for(;yt!==null;){switch(n=yt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)c=e[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=n,c=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var fe=Gs(s.type,c);e=l.getSnapshotBeforeUpdate(fe,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ge(s,s.return,be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)Mf(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,yt=e;break}yt=n.return}}function Ry(e,n,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:pa(e,s),l&4&&fl(5,s);break;case 1:if(pa(e,s),l&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(b){Ge(s,s.return,b)}else{var c=Gs(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(c,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(s,s.return,b)}}l&64&&by(s),l&512&&hl(s,s.return);break;case 3:if(pa(e,s),l&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{cg(e,n)}catch(b){Ge(s,s.return,b)}}break;case 27:n===null&&l&4&&Ey(s);case 26:case 5:pa(e,s),n===null&&l&4&&Sy(s),l&512&&hl(s,s.return);break;case 12:pa(e,s);break;case 31:pa(e,s),l&4&&Cy(e,s);break;case 13:pa(e,s),l&4&&Ay(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=tE.bind(null,s),SE(e,s))));break;case 22:if(l=s.memoizedState!==null||fa,!l){n=n!==null&&n.memoizedState!==null||ut,c=fa;var h=ut;fa=l,(ut=n)&&!h?ma(e,s,(s.subtreeFlags&8772)!==0):pa(e,s),fa=c,ut=h}break;case 30:break;default:pa(e,s)}}function Ny(e){var n=e.alternate;n!==null&&(e.alternate=null,Ny(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Bu(n)),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 Ke=null,Gt=!1;function ha(e,n,s){for(s=s.child;s!==null;)_y(e,n,s),s=s.sibling}function _y(e,n,s){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Bi,s)}catch{}switch(s.tag){case 26:ut||Gn(s,n),ha(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ut||Gn(s,n);var l=Ke,c=Gt;Wa(s.type)&&(Ke=s.stateNode,Gt=!1),ha(e,n,s),wl(s.stateNode),Ke=l,Gt=c;break;case 5:ut||Gn(s,n);case 6:if(l=Ke,c=Gt,Ke=null,ha(e,n,s),Ke=l,Gt=c,Ke!==null)if(Gt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(s.stateNode)}catch(h){Ge(s,n,h)}else try{Ke.removeChild(s.stateNode)}catch(h){Ge(s,n,h)}break;case 18:Ke!==null&&(Gt?(e=Ke,bv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ai(e)):bv(Ke,s.stateNode));break;case 4:l=Ke,c=Gt,Ke=s.stateNode.containerInfo,Gt=!0,ha(e,n,s),Ke=l,Gt=c;break;case 0:case 11:case 14:case 15:Va(2,s,n),ut||Va(4,s,n),ha(e,n,s);break;case 1:ut||(Gn(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"&&xy(s,n,l)),ha(e,n,s);break;case 21:ha(e,n,s);break;case 22:ut=(l=ut)||s.memoizedState!==null,ha(e,n,s),ut=l;break;default:ha(e,n,s)}}function Cy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(s){Ge(n,n.return,s)}}}function Ay(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(s){Ge(n,n.return,s)}}function Yw(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new jy),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new jy),n;default:throw Error(i(435,e.tag))}}function Jo(e,n){var s=Yw(e);n.forEach(function(l){if(!s.has(l)){s.add(l);var c=nE.bind(null,e,l);l.then(c,c)}})}function qt(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var c=s[l],h=e,b=n,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(Wa(R.type)){Ke=R.stateNode,Gt=!1;break e}break;case 5:Ke=R.stateNode,Gt=!1;break e;case 3:case 4:Ke=R.stateNode.containerInfo,Gt=!0;break e}R=R.return}if(Ke===null)throw Error(i(160));_y(h,b,c),Ke=null,Gt=!1,h=c.alternate,h!==null&&(h.return=null),c.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Ty(n,e),n=n.sibling}var Tn=null;function Ty(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qt(n,e),It(e),l&4&&(Va(3,e,e.return),fl(3,e),Va(5,e,e.return));break;case 1:qt(n,e),It(e),l&512&&(ut||s===null||Gn(s,s.return)),l&64&&fa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var c=Tn;if(qt(n,e),It(e),l&512&&(ut||s===null||Gn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":h=c.getElementsByTagName("title")[0],(!h||h[Hi]||h[wt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=c.createElement(l),c.head.insertBefore(h,c.querySelector("head > title"))),Nt(h,l,s),h[wt]=e,gt(h),l=h;break e;case"link":var b=Tv("link","href",c).get(l+(s.href||""));if(b){for(var R=0;R<b.length;R++)if(h=b[R],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){b.splice(R,1);break t}}h=c.createElement(l),Nt(h,l,s),c.head.appendChild(h);break;case"meta":if(b=Tv("meta","content",c).get(l+(s.content||""))){for(R=0;R<b.length;R++)if(h=b[R],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){b.splice(R,1);break t}}h=c.createElement(l),Nt(h,l,s),c.head.appendChild(h);break;default:throw Error(i(468,l))}h[wt]=e,gt(h),l=h}e.stateNode=l}else kv(c,e.type,e.stateNode);else e.stateNode=Av(c,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?kv(c,e.type,e.stateNode):Av(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&sf(e,e.memoizedProps,s.memoizedProps)}break;case 27:qt(n,e),It(e),l&512&&(ut||s===null||Gn(s,s.return)),s!==null&&l&4&&sf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(qt(n,e),It(e),l&512&&(ut||s===null||Gn(s,s.return)),e.flags&32){c=e.stateNode;try{Nr(c,"")}catch(fe){Ge(e,e.return,fe)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,sf(e,c,s!==null?s.memoizedProps:c)),l&1024&&(of=!0);break;case 6:if(qt(n,e),It(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(fe){Ge(e,e.return,fe)}}break;case 3:if(mc=null,c=Tn,Tn=hc(n.containerInfo),qt(n,e),Tn=c,It(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{ai(n.containerInfo)}catch(fe){Ge(e,e.return,fe)}of&&(of=!1,ky(e));break;case 4:l=Tn,Tn=hc(e.stateNode.containerInfo),qt(n,e),It(e),Tn=l;break;case 12:qt(n,e),It(e);break;case 31:qt(n,e),It(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Jo(e,l)));break;case 13:qt(n,e),It(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(tc=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Jo(e,l)));break;case 22:c=e.memoizedState!==null;var O=s!==null&&s.memoizedState!==null,I=fa,$=ut;if(fa=I||c,ut=$||O,qt(n,e),ut=$,fa=I,It(e),l&8192)e:for(n=e.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(s===null||O||fa||ut||qs(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){O=s=n;try{if(h=O.stateNode,c)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=O.stateNode;var W=O.memoizedProps.style,V=W!=null&&W.hasOwnProperty("display")?W.display:null;R.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(fe){Ge(O,O.return,fe)}}}else if(n.tag===6){if(s===null){O=n;try{O.stateNode.nodeValue=c?"":O.memoizedProps}catch(fe){Ge(O,O.return,fe)}}}else if(n.tag===18){if(s===null){O=n;try{var Y=O.stateNode;c?xv(Y,!0):xv(O.stateNode,!1)}catch(fe){Ge(O,O.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Jo(e,s))));break;case 19:qt(n,e),It(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Jo(e,l)));break;case 30:break;case 21:break;default:qt(n,e),It(e)}}function It(e){var n=e.flags;if(n&2){try{for(var s,l=e.return;l!==null;){if(wy(l)){s=l;break}l=l.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var c=s.stateNode,h=rf(e);Wo(e,h,c);break;case 5:var b=s.stateNode;s.flags&32&&(Nr(b,""),s.flags&=-33);var R=rf(e);Wo(e,R,b);break;case 3:case 4:var O=s.stateNode.containerInfo,I=rf(e);lf(e,I,O);break;default:throw Error(i(161))}}catch($){Ge(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ky(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ky(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function pa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Ry(e,n.alternate,n),n=n.sibling}function qs(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Va(4,n,n.return),qs(n);break;case 1:Gn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&xy(n,n.return,s),qs(n);break;case 27:wl(n.stateNode);case 26:case 5:Gn(n,n.return),qs(n);break;case 22:n.memoizedState===null&&qs(n);break;case 30:qs(n);break;default:qs(n)}e=e.sibling}}function ma(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,c=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:ma(c,h,s),fl(4,h);break;case 1:if(ma(c,h,s),l=h,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(I){Ge(l,l.return,I)}if(l=h,c=l.updateQueue,c!==null){var R=l.stateNode;try{var O=c.shared.hiddenCallbacks;if(O!==null)for(c.shared.hiddenCallbacks=null,c=0;c<O.length;c++)og(O[c],R)}catch(I){Ge(l,l.return,I)}}s&&b&64&&by(h),hl(h,h.return);break;case 27:Ey(h);case 26:case 5:ma(c,h,s),s&&l===null&&b&4&&Sy(h),hl(h,h.return);break;case 12:ma(c,h,s);break;case 31:ma(c,h,s),s&&b&4&&Cy(c,h);break;case 13:ma(c,h,s),s&&b&4&&Ay(c,h);break;case 22:h.memoizedState===null&&ma(c,h,s),hl(h,h.return);break;case 30:break;default:ma(c,h,s)}n=n.sibling}}function cf(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Ji(s))}function uf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ji(e))}function kn(e,n,s,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Oy(e,n,s,l),n=n.sibling}function Oy(e,n,s,l){var c=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n,s,l),c&2048&&fl(9,n);break;case 1:kn(e,n,s,l);break;case 3:kn(e,n,s,l),c&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ji(e)));break;case 12:if(c&2048){kn(e,n,s,l),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,R=h.onPostCommit;typeof R=="function"&&R(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Ge(n,n.return,O)}}else kn(e,n,s,l);break;case 31:kn(e,n,s,l);break;case 13:kn(e,n,s,l);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?kn(e,n,s,l):pl(e,n):h._visibility&2?kn(e,n,s,l):(h._visibility|=2,Qr(e,n,s,l,(n.subtreeFlags&10256)!==0||!1)),c&2048&&cf(b,n);break;case 24:kn(e,n,s,l),c&2048&&uf(n.alternate,n);break;default:kn(e,n,s,l)}}function Qr(e,n,s,l,c){for(c=c&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,R=s,O=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:Qr(h,b,R,O,c),fl(8,b);break;case 23:break;case 22:var $=b.stateNode;b.memoizedState!==null?$._visibility&2?Qr(h,b,R,O,c):pl(h,b):($._visibility|=2,Qr(h,b,R,O,c)),c&&I&2048&&cf(b.alternate,b);break;case 24:Qr(h,b,R,O,c),c&&I&2048&&uf(b.alternate,b);break;default:Qr(h,b,R,O,c)}n=n.sibling}}function pl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,l=n,c=l.flags;switch(l.tag){case 22:pl(s,l),c&2048&&cf(l.alternate,l);break;case 24:pl(s,l),c&2048&&uf(l.alternate,l);break;default:pl(s,l)}n=n.sibling}}var ml=8192;function Yr(e,n,s){if(e.subtreeFlags&ml)for(e=e.child;e!==null;)My(e,n,s),e=e.sibling}function My(e,n,s){switch(e.tag){case 26:Yr(e,n,s),e.flags&ml&&e.memoizedState!==null&&ME(s,Tn,e.memoizedState,e.memoizedProps);break;case 5:Yr(e,n,s);break;case 3:case 4:var l=Tn;Tn=hc(e.stateNode.containerInfo),Yr(e,n,s),Tn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ml,ml=16777216,Yr(e,n,s),ml=l):Yr(e,n,s));break;default:Yr(e,n,s)}}function Dy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function gl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];yt=l,zy(l,e)}Dy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ly(e),e=e.sibling}function Ly(e){switch(e.tag){case 0:case 11:case 15:gl(e),e.flags&2048&&Va(9,e,e.return);break;case 3:gl(e);break;case 12:gl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,ec(e)):gl(e);break;default:gl(e)}}function ec(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];yt=l,zy(l,e)}Dy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Va(8,n,n.return),ec(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,ec(n));break;default:ec(n)}e=e.sibling}}function zy(e,n){for(;yt!==null;){var s=yt;switch(s.tag){case 0:case 11:case 15:Va(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ji(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,yt=l;else e:for(s=e;yt!==null;){l=yt;var c=l.sibling,h=l.return;if(Ny(l),l===s){yt=null;break e}if(c!==null){c.return=h,yt=c;break e}yt=h}}}var $w={getCacheForType:function(e){var n=jt(lt),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return jt(lt).controller.signal}},Xw=typeof WeakMap=="function"?WeakMap:Map,Ue=0,$e=null,Re=null,_e=0,Fe=0,rn=null,Qa=!1,$r=!1,df=!1,ga=0,tt=0,Ya=0,Is=0,ff=0,ln=0,Xr=0,yl=null,Vt=null,hf=!1,tc=0,By=0,nc=1/0,ac=null,$a=null,dt=0,Xa=null,Zr=null,ya=0,pf=0,mf=null,Uy=null,vl=0,gf=null;function on(){return(Ue&2)!==0&&_e!==0?_e&-_e:P.T!==null?wf():em()}function Py(){if(ln===0)if((_e&536870912)===0||Te){var e=uo;uo<<=1,(uo&3932160)===0&&(uo=262144),ln=e}else ln=536870912;return e=an.current,e!==null&&(e.flags|=32),ln}function Qt(e,n,s){(e===$e&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Kr(e,0),Za(e,_e,ln,!1)),Pi(e,s),((Ue&2)===0||e!==$e)&&(e===$e&&((Ue&2)===0&&(Is|=s),tt===4&&Za(e,_e,ln,!1)),qn(e))}function Hy(e,n,s){if((Ue&6)!==0)throw Error(i(327));var l=!s&&(n&127)===0&&(n&e.expiredLanes)===0||Ui(e,n),c=l?Ww(e,n):vf(e,n,!0),h=l;do{if(c===0){$r&&!l&&Za(e,n,0,!1);break}else{if(s=e.current.alternate,h&&!Zw(s)){c=vf(e,n,!1),h=!1;continue}if(c===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var R=e;c=yl;var O=R.current.memoizedState.isDehydrated;if(O&&(Kr(R,b).flags|=256),b=vf(R,b,!1),b!==2){if(df&&!O){R.errorRecoveryDisabledLanes|=h,Is|=h,c=4;break e}h=Vt,Vt=c,h!==null&&(Vt===null?Vt=h:Vt.push.apply(Vt,h))}c=b}if(h=!1,c!==2)continue}}if(c===1){Kr(e,0),Za(e,n,0,!0);break}e:{switch(l=e,h=c,h){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Za(l,n,ln,!Qa);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(c=tc+300-Tt(),10<c)){if(Za(l,n,ln,!Qa),ho(l,0,!0)!==0)break e;ya=n,l.timeoutHandle=yv(Fy.bind(null,l,s,Vt,ac,hf,n,ln,Is,Xr,Qa,h,"Throttled",-0,0),c);break e}Fy(l,s,Vt,ac,hf,n,ln,Is,Xr,Qa,h,null,-0,0)}}break}while(!0);qn(e)}function Fy(e,n,s,l,c,h,b,R,O,I,$,W,V,Y){if(e.timeoutHandle=-1,W=n.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},My(n,h,W);var fe=(h&62914560)===h?tc-Tt():(h&4194048)===h?By-Tt():0;if(fe=DE(W,fe),fe!==null){ya=h,e.cancelPendingCommit=fe(Xy.bind(null,e,n,h,s,l,c,b,R,O,$,W,null,V,Y)),Za(e,h,b,!I);return}}Xy(e,n,h,s,l,c,b,R,O)}function Zw(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var c=s[l],h=c.getSnapshot;c=c.value;try{if(!tn(h(),c))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Za(e,n,s,l){n&=~ff,n&=~Is,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var c=n;0<c;){var h=31-en(c),b=1<<h;l[h]=-1,c&=~b}s!==0&&Kp(e,s,n)}function sc(){return(Ue&6)===0?(bl(0),!1):!0}function yf(){if(Re!==null){if(Fe===0)var e=Re.return;else e=Re,ia=Ls=null,Od(e),Fr=null,tl=0,e=Re;for(;e!==null;)vy(e.alternate,e),e=e.return;Re=null}}function Kr(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,gE(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),ya=0,yf(),$e=e,Re=s=sa(e.current,null),_e=n,Fe=0,rn=null,Qa=!1,$r=Ui(e,n),df=!1,Xr=ln=ff=Is=Ya=tt=0,Vt=yl=null,hf=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var c=31-en(l),h=1<<c;n|=e[c],l&=~h}return ga=n,Ro(),s}function Gy(e,n){we=null,P.H=cl,n===Hr||n===Mo?(n=sg(),Fe=3):n===xd?(n=sg(),Fe=4):Fe=n===$d?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,rn=n,Re===null&&(tt=1,Yo(e,bn(n,e.current)))}function qy(){var e=an.current;return e===null?!0:(_e&4194048)===_e?En===null:(_e&62914560)===_e||(_e&536870912)!==0?e===En:!1}function Iy(){var e=P.H;return P.H=cl,e===null?cl:e}function Vy(){var e=P.A;return P.A=$w,e}function rc(){tt=4,Qa||(_e&4194048)!==_e&&an.current!==null||($r=!0),(Ya&134217727)===0&&(Is&134217727)===0||$e===null||Za($e,_e,ln,!1)}function vf(e,n,s){var l=Ue;Ue|=2;var c=Iy(),h=Vy();($e!==e||_e!==n)&&(ac=null,Kr(e,n)),n=!1;var b=tt;e:do try{if(Fe!==0&&Re!==null){var R=Re,O=rn;switch(Fe){case 8:yf(),b=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(n=!0);var I=Fe;if(Fe=0,rn=null,Wr(e,R,O,I),s&&$r){b=0;break e}break;default:I=Fe,Fe=0,rn=null,Wr(e,R,O,I)}}Kw(),b=tt;break}catch($){Gy(e,$)}while(!0);return n&&e.shellSuspendCounter++,ia=Ls=null,Ue=l,P.H=c,P.A=h,Re===null&&($e=null,_e=0,Ro()),b}function Kw(){for(;Re!==null;)Qy(Re)}function Ww(e,n){var s=Ue;Ue|=2;var l=Iy(),c=Vy();$e!==e||_e!==n?(ac=null,nc=Tt()+500,Kr(e,n)):$r=Ui(e,n);e:do try{if(Fe!==0&&Re!==null){n=Re;var h=rn;t:switch(Fe){case 1:Fe=0,rn=null,Wr(e,n,h,1);break;case 2:case 9:if(ng(h)){Fe=0,rn=null,Yy(n);break}n=function(){Fe!==2&&Fe!==9||$e!==e||(Fe=7),qn(e)},h.then(n,n);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:ng(h)?(Fe=0,rn=null,Yy(n)):(Fe=0,rn=null,Wr(e,n,h,7));break;case 5:var b=null;switch(Re.tag){case 26:b=Re.memoizedState;case 5:case 27:var R=Re;if(b?Ov(b):R.stateNode.complete){Fe=0,rn=null;var O=R.sibling;if(O!==null)Re=O;else{var I=R.return;I!==null?(Re=I,ic(I)):Re=null}break t}}Fe=0,rn=null,Wr(e,n,h,5);break;case 6:Fe=0,rn=null,Wr(e,n,h,6);break;case 8:yf(),tt=6;break e;default:throw Error(i(462))}}Jw();break}catch($){Gy(e,$)}while(!0);return ia=Ls=null,P.H=l,P.A=c,Ue=s,Re!==null?0:($e=null,_e=0,Ro(),tt)}function Jw(){for(;Re!==null&&!oo();)Qy(Re)}function Qy(e){var n=gy(e.alternate,e,ga);e.memoizedProps=e.pendingProps,n===null?ic(e):Re=n}function Yy(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=uy(s,n,n.pendingProps,n.type,void 0,_e);break;case 11:n=uy(s,n,n.pendingProps,n.type.render,n.ref,_e);break;case 5:Od(n);default:vy(s,n),n=Re=Vm(n,ga),n=gy(s,n,ga)}e.memoizedProps=e.pendingProps,n===null?ic(e):Re=n}function Wr(e,n,s,l){ia=Ls=null,Od(n),Fr=null,tl=0;var c=n.return;try{if(Fw(e,c,n,s,_e)){tt=1,Yo(e,bn(s,e.current)),Re=null;return}}catch(h){if(c!==null)throw Re=c,h;tt=1,Yo(e,bn(s,e.current)),Re=null;return}n.flags&32768?(Te||l===1?e=!0:$r||(_e&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=an.current,l!==null&&l.tag===13&&(l.flags|=16384))),$y(n,e)):ic(n)}function ic(e){var n=e;do{if((n.flags&32768)!==0){$y(n,Qa);return}e=n.return;var s=Iw(n.alternate,n,ga);if(s!==null){Re=s;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=e}while(n!==null);tt===0&&(tt=5)}function $y(e,n){do{var s=Vw(e.alternate,e);if(s!==null){s.flags&=32767,Re=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){Re=e;return}Re=e=s}while(e!==null);tt=6,Re=null}function Xy(e,n,s,l,c,h,b,R,O){e.cancelPendingCommit=null;do lc();while(dt!==0);if((Ue&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(h=n.lanes|n.childLanes,h|=rd,OS(e,s,h,b,R,O),e===$e&&(Re=$e=null,_e=0),Zr=n,Xa=e,ya=s,pf=h,mf=c,Uy=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,aE(br,function(){return ev(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,c=Q.p,Q.p=2,b=Ue,Ue|=4;try{Qw(e,n,s)}finally{Ue=b,Q.p=c,P.T=l}}dt=1,Zy(),Ky(),Wy()}}function Zy(){if(dt===1){dt=0;var e=Xa,n=Zr,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var l=Q.p;Q.p=2;var c=Ue;Ue|=4;try{Ty(n,e);var h=Tf,b=zm(e.containerInfo),R=h.focusedElem,O=h.selectionRange;if(b!==R&&R&&R.ownerDocument&&Lm(R.ownerDocument.documentElement,R)){if(O!==null&&ed(R)){var I=O.start,$=O.end;if($===void 0&&($=I),"selectionStart"in R)R.selectionStart=I,R.selectionEnd=Math.min($,R.value.length);else{var W=R.ownerDocument||document,V=W&&W.defaultView||window;if(V.getSelection){var Y=V.getSelection(),fe=R.textContent.length,be=Math.min(O.start,fe),Qe=O.end===void 0?be:Math.min(O.end,fe);!Y.extend&&be>Qe&&(b=Qe,Qe=be,be=b);var H=Dm(R,be),B=Dm(R,Qe);if(H&&B&&(Y.rangeCount!==1||Y.anchorNode!==H.node||Y.anchorOffset!==H.offset||Y.focusNode!==B.node||Y.focusOffset!==B.offset)){var q=W.createRange();q.setStart(H.node,H.offset),Y.removeAllRanges(),be>Qe?(Y.addRange(q),Y.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Y.addRange(q))}}}}for(W=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&W.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<W.length;R++){var K=W[R];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}bc=!!Af,Tf=Af=null}finally{Ue=c,Q.p=l,P.T=s}}e.current=n,dt=2}}function Ky(){if(dt===2){dt=0;var e=Xa,n=Zr,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var l=Q.p;Q.p=2;var c=Ue;Ue|=4;try{Ry(e,n.alternate,n)}finally{Ue=c,Q.p=l,P.T=s}}dt=3}}function Wy(){if(dt===4||dt===3){dt=0,Ou();var e=Xa,n=Zr,s=ya,l=Uy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,Zr=Xa=null,Jy(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&($a=null),Lu(s),n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Bi,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=P.T,c=Q.p,Q.p=2,P.T=null;try{for(var h=e.onRecoverableError,b=0;b<l.length;b++){var R=l[b];h(R.value,{componentStack:R.stack})}}finally{P.T=n,Q.p=c}}(ya&3)!==0&&lc(),qn(e),c=e.pendingLanes,(s&261930)!==0&&(c&42)!==0?e===gf?vl++:(vl=0,gf=e):vl=0,bl(0)}}function Jy(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ji(n)))}function lc(){return Zy(),Ky(),Wy(),ev()}function ev(){if(dt!==5)return!1;var e=Xa,n=pf;pf=0;var s=Lu(ya),l=P.T,c=Q.p;try{Q.p=32>s?32:s,P.T=null,s=mf,mf=null;var h=Xa,b=ya;if(dt=0,Zr=Xa=null,ya=0,(Ue&6)!==0)throw Error(i(331));var R=Ue;if(Ue|=4,Ly(h.current),Oy(h,h.current,b,s),Ue=R,bl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Bi,h)}catch{}return!0}finally{Q.p=c,P.T=l,Jy(e,n)}}function tv(e,n,s){n=bn(s,n),n=Yd(e.stateNode,n,2),e=Ga(e,n,2),e!==null&&(Pi(e,2),qn(e))}function Ge(e,n,s){if(e.tag===3)tv(e,e,s);else for(;n!==null;){if(n.tag===3){tv(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($a===null||!$a.has(l))){e=bn(s,e),s=ny(2),l=Ga(n,s,2),l!==null&&(ay(s,l,n,e),Pi(l,2),qn(l));break}}n=n.return}}function bf(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new Xw;var c=new Set;l.set(n,c)}else c=l.get(n),c===void 0&&(c=new Set,l.set(n,c));c.has(s)||(df=!0,c.add(s),e=eE.bind(null,e,n,s),n.then(e,e))}function eE(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,$e===e&&(_e&s)===s&&(tt===4||tt===3&&(_e&62914560)===_e&&300>Tt()-tc?(Ue&2)===0&&Kr(e,0):ff|=s,Xr===_e&&(Xr=0)),qn(e)}function nv(e,n){n===0&&(n=Zp()),e=Os(e,n),e!==null&&(Pi(e,n),qn(e))}function tE(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),nv(e,s)}function nE(e,n){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),nv(e,s)}function aE(e,n){return Cn(e,n)}var oc=null,Jr=null,xf=!1,cc=!1,Sf=!1,Ka=0;function qn(e){e!==Jr&&e.next===null&&(Jr===null?oc=Jr=e:Jr=Jr.next=e),cc=!0,xf||(xf=!0,rE())}function bl(e,n){if(!Sf&&cc){Sf=!0;do for(var s=!1,l=oc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var h=0;else{var b=l.suspendedLanes,R=l.pingedLanes;h=(1<<31-en(42|e)+1)-1,h&=c&~(b&~R),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,iv(l,h))}else h=_e,h=ho(l,l===$e?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Ui(l,h)||(s=!0,iv(l,h));l=l.next}while(s);Sf=!1}}function sE(){av()}function av(){cc=xf=!1;var e=0;Ka!==0&&mE()&&(e=Ka);for(var n=Tt(),s=null,l=oc;l!==null;){var c=l.next,h=sv(l,n);h===0?(l.next=null,s===null?oc=c:s.next=c,c===null&&(Jr=s)):(s=l,(e!==0||(h&3)!==0)&&(cc=!0)),l=c}dt!==0&&dt!==5||bl(e),Ka!==0&&(Ka=0)}function sv(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-en(h),R=1<<b,O=c[b];O===-1?((R&s)===0||(R&l)!==0)&&(c[b]=kS(R,n)):O<=n&&(e.expiredLanes|=R),h&=~R}if(n=$e,s=_e,s=ho(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===n&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&zi(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Ui(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(l!==null&&zi(l),Lu(s)){case 2:case 8:s=Pn;break;case 32:s=br;break;case 268435456:s=Xp;break;default:s=br}return l=rv.bind(null,e),s=Cn(s,l),e.callbackPriority=n,e.callbackNode=s,n}return l!==null&&l!==null&&zi(l),e.callbackPriority=2,e.callbackNode=null,2}function rv(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(lc()&&e.callbackNode!==s)return null;var l=_e;return l=ho(e,e===$e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hy(e,l,n),sv(e,Tt()),e.callbackNode!=null&&e.callbackNode===s?rv.bind(null,e):null)}function iv(e,n){if(lc())return null;Hy(e,n,!0)}function rE(){yE(function(){(Ue&6)!==0?Cn(St,sE):av()})}function wf(){if(Ka===0){var e=Ur;e===0&&(e=co,co<<=1,(co&261888)===0&&(co=256)),Ka=e}return Ka}function lv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yo(""+e)}function ov(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function iE(e,n,s,l,c){if(n==="submit"&&s&&s.stateNode===c){var h=lv((c[Ht]||null).action),b=l.submitter;b&&(n=(n=b[Ht]||null)?lv(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var R=new So("action","action",null,l,c);e.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ka!==0){var O=b?ov(c,b):new FormData(c);Fd(s,{pending:!0,data:O,method:c.method,action:h},null,O)}}else typeof h=="function"&&(R.preventDefault(),O=b?ov(c,b):new FormData(c),Fd(s,{pending:!0,data:O,method:c.method,action:h},h,O))},currentTarget:c}]})}}for(var Ef=0;Ef<sd.length;Ef++){var jf=sd[Ef],lE=jf.toLowerCase(),oE=jf[0].toUpperCase()+jf.slice(1);An(lE,"on"+oE)}An(Pm,"onAnimationEnd"),An(Hm,"onAnimationIteration"),An(Fm,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(jw,"onTransitionRun"),An(Rw,"onTransitionStart"),An(Nw,"onTransitionCancel"),An(Gm,"onTransitionEnd"),jr("onMouseEnter",["mouseout","mouseover"]),jr("onMouseLeave",["mouseout","mouseover"]),jr("onPointerEnter",["pointerout","pointerover"]),jr("onPointerLeave",["pointerout","pointerover"]),Cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xl="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(" "),cE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xl));function cv(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],c=l.event;l=l.listeners;e:{var h=void 0;if(n)for(var b=l.length-1;0<=b;b--){var R=l[b],O=R.instance,I=R.currentTarget;if(R=R.listener,O!==h&&c.isPropagationStopped())break e;h=R,c.currentTarget=I;try{h(c)}catch($){jo($)}c.currentTarget=null,h=O}else for(b=0;b<l.length;b++){if(R=l[b],O=R.instance,I=R.currentTarget,R=R.listener,O!==h&&c.isPropagationStopped())break e;h=R,c.currentTarget=I;try{h(c)}catch($){jo($)}c.currentTarget=null,h=O}}}}function Ne(e,n){var s=n[zu];s===void 0&&(s=n[zu]=new Set);var l=e+"__bubble";s.has(l)||(uv(n,e,2,!1),s.add(l))}function Rf(e,n,s){var l=0;n&&(l|=4),uv(s,e,l,n)}var uc="_reactListening"+Math.random().toString(36).slice(2);function Nf(e){if(!e[uc]){e[uc]=!0,am.forEach(function(s){s!=="selectionchange"&&(cE.has(s)||Rf(s,!1,e),Rf(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[uc]||(n[uc]=!0,Rf("selectionchange",!1,n))}}function uv(e,n,s,l){switch(Pv(n)){case 2:var c=BE;break;case 8:c=UE;break;default:c=Ff}s=c.bind(null,n,s,e),c=void 0,!Vu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(n,s,{capture:!0,passive:c}):e.addEventListener(n,s,!0):c!==void 0?e.addEventListener(n,s,{passive:c}):e.addEventListener(n,s,!1)}function _f(e,n,s,l,c){var h=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var R=l.stateNode.containerInfo;if(R===c)break;if(b===4)for(b=l.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;R!==null;){if(b=Sr(R),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){l=h=b;continue e}R=R.parentNode}}l=l.return}mm(function(){var I=h,$=qu(s),W=[];e:{var V=qm.get(e);if(V!==void 0){var Y=So,fe=e;switch(e){case"keypress":if(bo(s)===0)break e;case"keydown":case"keyup":Y=nw;break;case"focusin":fe="focus",Y=Xu;break;case"focusout":fe="blur",Y=Xu;break;case"beforeblur":case"afterblur":Y=Xu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=IS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=rw;break;case Pm:case Hm:case Fm:Y=YS;break;case Gm:Y=lw;break;case"scroll":case"scrollend":Y=GS;break;case"wheel":Y=cw;break;case"copy":case"cut":case"paste":Y=XS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=xm;break;case"toggle":case"beforetoggle":Y=dw}var be=(n&4)!==0,Qe=!be&&(e==="scroll"||e==="scrollend"),H=be?V!==null?V+"Capture":null:V;be=[];for(var B=I,q;B!==null;){var K=B;if(q=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||q===null||H===null||(K=Gi(B,H),K!=null&&be.push(Sl(B,K,q))),Qe)break;B=B.return}0<be.length&&(V=new Y(V,fe,null,s,$),W.push({event:V,listeners:be}))}}if((n&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",V&&s!==Gu&&(fe=s.relatedTarget||s.fromElement)&&(Sr(fe)||fe[xr]))break e;if((Y||V)&&(V=$.window===$?$:(V=$.ownerDocument)?V.defaultView||V.parentWindow:window,Y?(fe=s.relatedTarget||s.toElement,Y=I,fe=fe?Sr(fe):null,fe!==null&&(Qe=d(fe),be=fe.tag,fe!==Qe||be!==5&&be!==27&&be!==6)&&(fe=null)):(Y=null,fe=I),Y!==fe)){if(be=vm,K="onMouseLeave",H="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(be=xm,K="onPointerLeave",H="onPointerEnter",B="pointer"),Qe=Y==null?V:Fi(Y),q=fe==null?V:Fi(fe),V=new be(K,B+"leave",Y,s,$),V.target=Qe,V.relatedTarget=q,K=null,Sr($)===I&&(be=new be(H,B+"enter",fe,s,$),be.target=q,be.relatedTarget=Qe,K=be),Qe=K,Y&&fe)t:{for(be=uE,H=Y,B=fe,q=0,K=H;K;K=be(K))q++;K=0;for(var me=B;me;me=be(me))K++;for(;0<q-K;)H=be(H),q--;for(;0<K-q;)B=be(B),K--;for(;q--;){if(H===B||B!==null&&H===B.alternate){be=H;break t}H=be(H),B=be(B)}be=null}else be=null;Y!==null&&dv(W,V,Y,be,!1),fe!==null&&Qe!==null&&dv(W,Qe,fe,be,!0)}}e:{if(V=I?Fi(I):window,Y=V.nodeName&&V.nodeName.toLowerCase(),Y==="select"||Y==="input"&&V.type==="file")var Le=Cm;else if(Nm(V))if(Am)Le=Sw;else{Le=bw;var pe=vw}else Y=V.nodeName,!Y||Y.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?I&&Fu(I.elementType)&&(Le=Cm):Le=xw;if(Le&&(Le=Le(e,I))){_m(W,Le,s,$);break e}pe&&pe(e,V,I),e==="focusout"&&I&&V.type==="number"&&I.memoizedProps.value!=null&&Hu(V,"number",V.value)}switch(pe=I?Fi(I):window,e){case"focusin":(Nm(pe)||pe.contentEditable==="true")&&(Tr=pe,td=I,Zi=null);break;case"focusout":Zi=td=Tr=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,Bm(W,s,$);break;case"selectionchange":if(Ew)break;case"keydown":case"keyup":Bm(W,s,$)}var Ee;if(Ku)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Ar?jm(e,s)&&(Ce="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Sm&&s.locale!=="ko"&&(Ar||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Ar&&(Ee=gm()):(La=$,Qu="value"in La?La.value:La.textContent,Ar=!0)),pe=dc(I,Ce),0<pe.length&&(Ce=new bm(Ce,e,null,s,$),W.push({event:Ce,listeners:pe}),Ee?Ce.data=Ee:(Ee=Rm(s),Ee!==null&&(Ce.data=Ee)))),(Ee=hw?pw(e,s):mw(e,s))&&(Ce=dc(I,"onBeforeInput"),0<Ce.length&&(pe=new bm("onBeforeInput","beforeinput",null,s,$),W.push({event:pe,listeners:Ce}),pe.data=Ee)),iE(W,e,I,s,$)}cv(W,n)})}function Sl(e,n,s){return{instance:e,listener:n,currentTarget:s}}function dc(e,n){for(var s=n+"Capture",l=[];e!==null;){var c=e,h=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||h===null||(c=Gi(e,s),c!=null&&l.unshift(Sl(e,c,h)),c=Gi(e,n),c!=null&&l.push(Sl(e,c,h))),e.tag===3)return l;e=e.return}return[]}function uE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dv(e,n,s,l,c){for(var h=n._reactName,b=[];s!==null&&s!==l;){var R=s,O=R.alternate,I=R.stateNode;if(R=R.tag,O!==null&&O===l)break;R!==5&&R!==26&&R!==27||I===null||(O=I,c?(I=Gi(s,h),I!=null&&b.unshift(Sl(s,I,O))):c||(I=Gi(s,h),I!=null&&b.push(Sl(s,I,O)))),s=s.return}b.length!==0&&e.push({event:n,listeners:b})}var dE=/\r\n?/g,fE=/\u0000|\uFFFD/g;function fv(e){return(typeof e=="string"?e:""+e).replace(dE,`
|
|
49
|
-
`).replace(fE,"")}function hv(e,n){return n=fv(n),fv(e)===n}function Ve(e,n,s,l,c,h){switch(s){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Nr(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Nr(e,""+l);break;case"className":mo(e,"class",l);break;case"tabIndex":mo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":mo(e,s,l);break;case"style":hm(e,l,h);break;case"data":if(n!=="object"){mo(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=yo(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"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 h=="function"&&(s==="formAction"?(n!=="input"&&Ve(e,n,"name",c.name,c,null),Ve(e,n,"formEncType",c.formEncType,c,null),Ve(e,n,"formMethod",c.formMethod,c,null),Ve(e,n,"formTarget",c.formTarget,c,null)):(Ve(e,n,"encType",c.encType,c,null),Ve(e,n,"method",c.method,c,null),Ve(e,n,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=yo(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=s}}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}s=yo(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+l):e.removeAttribute(s);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(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),po(e,"popover",l);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":po(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=HS.get(s)||s,po(e,s,l))}}function Cf(e,n,s,l,c,h){switch(s){case"style":hm(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Nr(e,l):(typeof l=="number"||typeof l=="bigint")&&Nr(e,""+l);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),n=s.slice(2,c?s.length-7:void 0),h=e[Ht]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(n,h,c),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,l,c);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):po(e,s,l)}}}function Nt(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var l=!1,c=!1,h;for(h in s)if(s.hasOwnProperty(h)){var b=s[h];if(b!=null)switch(h){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,h,b,s,null)}}c&&Ve(e,n,"srcSet",s.srcSet,s,null),l&&Ve(e,n,"src",s.src,s,null);return;case"input":Ne("invalid",e);var R=h=b=c=null,O=null,I=null;for(l in s)if(s.hasOwnProperty(l)){var $=s[l];if($!=null)switch(l){case"name":c=$;break;case"type":b=$;break;case"checked":O=$;break;case"defaultChecked":I=$;break;case"value":h=$;break;case"defaultValue":R=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:Ve(e,n,l,$,s,null)}}cm(e,h,R,O,I,b,c,!1);return;case"select":Ne("invalid",e),l=b=h=null;for(c in s)if(s.hasOwnProperty(c)&&(R=s[c],R!=null))switch(c){case"value":h=R;break;case"defaultValue":b=R;break;case"multiple":l=R;default:Ve(e,n,c,R,s,null)}n=h,s=b,e.multiple=!!l,n!=null?Rr(e,!!l,n,!1):s!=null&&Rr(e,!!l,s,!0);return;case"textarea":Ne("invalid",e),h=c=l=null;for(b in s)if(s.hasOwnProperty(b)&&(R=s[b],R!=null))switch(b){case"value":l=R;break;case"defaultValue":c=R;break;case"children":h=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ve(e,n,b,R,s,null)}dm(e,l,c,h);return;case"option":for(O in s)if(s.hasOwnProperty(O)&&(l=s[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ve(e,n,O,l,s,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(l=0;l<xl.length;l++)Ne(xl[l],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(I in s)if(s.hasOwnProperty(I)&&(l=s[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,I,l,s,null)}return;default:if(Fu(n)){for($ in s)s.hasOwnProperty($)&&(l=s[$],l!==void 0&&Cf(e,n,$,l,s,void 0));return}}for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null&&Ve(e,n,R,l,s,null))}function hE(e,n,s,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,h=null,b=null,R=null,O=null,I=null,$=null;for(Y in s){var W=s[Y];if(s.hasOwnProperty(Y)&&W!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":O=W;default:l.hasOwnProperty(Y)||Ve(e,n,Y,null,l,W)}}for(var V in l){var Y=l[V];if(W=s[V],l.hasOwnProperty(V)&&(Y!=null||W!=null))switch(V){case"type":h=Y;break;case"name":c=Y;break;case"checked":I=Y;break;case"defaultChecked":$=Y;break;case"value":b=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:Y!==W&&Ve(e,n,V,Y,l,W)}}Pu(e,b,R,O,I,$,h,c);return;case"select":Y=b=R=V=null;for(h in s)if(O=s[h],s.hasOwnProperty(h)&&O!=null)switch(h){case"value":break;case"multiple":Y=O;default:l.hasOwnProperty(h)||Ve(e,n,h,null,l,O)}for(c in l)if(h=l[c],O=s[c],l.hasOwnProperty(c)&&(h!=null||O!=null))switch(c){case"value":V=h;break;case"defaultValue":R=h;break;case"multiple":b=h;default:h!==O&&Ve(e,n,c,h,l,O)}n=R,s=b,l=Y,V!=null?Rr(e,!!s,V,!1):!!l!=!!s&&(n!=null?Rr(e,!!s,n,!0):Rr(e,!!s,s?[]:"",!1));return;case"textarea":Y=V=null;for(R in s)if(c=s[R],s.hasOwnProperty(R)&&c!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ve(e,n,R,null,l,c)}for(b in l)if(c=l[b],h=s[b],l.hasOwnProperty(b)&&(c!=null||h!=null))switch(b){case"value":V=c;break;case"defaultValue":Y=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==h&&Ve(e,n,b,c,l,h)}um(e,V,Y);return;case"option":for(var fe in s)if(V=s[fe],s.hasOwnProperty(fe)&&V!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ve(e,n,fe,null,l,V)}for(O in l)if(V=l[O],Y=s[O],l.hasOwnProperty(O)&&V!==Y&&(V!=null||Y!=null))switch(O){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ve(e,n,O,V,l,Y)}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 be in s)V=s[be],s.hasOwnProperty(be)&&V!=null&&!l.hasOwnProperty(be)&&Ve(e,n,be,null,l,V);for(I in l)if(V=l[I],Y=s[I],l.hasOwnProperty(I)&&V!==Y&&(V!=null||Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,n));break;default:Ve(e,n,I,V,l,Y)}return;default:if(Fu(n)){for(var Qe in s)V=s[Qe],s.hasOwnProperty(Qe)&&V!==void 0&&!l.hasOwnProperty(Qe)&&Cf(e,n,Qe,void 0,l,V);for($ in l)V=l[$],Y=s[$],!l.hasOwnProperty($)||V===Y||V===void 0&&Y===void 0||Cf(e,n,$,V,l,Y);return}}for(var H in s)V=s[H],s.hasOwnProperty(H)&&V!=null&&!l.hasOwnProperty(H)&&Ve(e,n,H,null,l,V);for(W in l)V=l[W],Y=s[W],!l.hasOwnProperty(W)||V===Y||V==null&&Y==null||Ve(e,n,W,V,l,Y)}function pv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var c=s[l],h=c.transferSize,b=c.initiatorType,R=c.duration;if(h&&R&&pv(b)){for(b=0,R=c.responseEnd,l+=1;l<s.length;l++){var O=s[l],I=O.startTime;if(I>R)break;var $=O.transferSize,W=O.initiatorType;$&&pv(W)&&(O=O.responseEnd,b+=$*(O<R?1:(R-I)/(O-I)))}if(--l,n+=8*(h+b)/(c.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Af=null,Tf=null;function fc(e){return e.nodeType===9?e:e.ownerDocument}function mv(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 gv(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function kf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Of=null;function mE(){var e=window.event;return e&&e.type==="popstate"?e===Of?!1:(Of=e,!0):(Of=null,!1)}var yv=typeof setTimeout=="function"?setTimeout:void 0,gE=typeof clearTimeout=="function"?clearTimeout:void 0,vv=typeof Promise=="function"?Promise:void 0,yE=typeof queueMicrotask=="function"?queueMicrotask:typeof vv<"u"?function(e){return vv.resolve(null).then(e).catch(vE)}:yv;function vE(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function bv(e,n){var s=n,l=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(c),ai(n);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")wl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,wl(s);for(var h=s.firstChild;h;){var b=h.nextSibling,R=h.nodeName;h[Hi]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=b}}else s==="body"&&wl(e.ownerDocument.body);s=c}while(s);ai(n)}function xv(e,n){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function Mf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Mf(s),Bu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function bE(e,n,s,l){for(;e.nodeType===1;){var c=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Hi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function xE(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=jn(e.nextSibling),e===null))return null;return e}function Sv(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jn(e.nextSibling),e===null))return null;return e}function Df(e){return e.data==="$?"||e.data==="$~"}function Lf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function SE(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var l=function(){n(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function jn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var zf=null;function wv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return jn(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Ev(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function jv(e,n,s){switch(n=fc(s),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Bu(e)}var Rn=new Map,Rv=new Set;function hc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Q.d;Q.d={f:wE,r:EE,D:jE,C:RE,L:NE,m:_E,X:AE,S:CE,M:TE};function wE(){var e=va.f(),n=sc();return e||n}function EE(e){var n=wr(e);n!==null&&n.tag===5&&n.type==="form"?Gg(n):va.r(e)}var ei=typeof document>"u"?null:document;function Nv(e,n,s){var l=ei;if(l&&typeof n=="string"&&n){var c=yn(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Rv.has(c)||(Rv.add(c),e={rel:e,crossOrigin:s,href:n},l.querySelector(c)===null&&(n=l.createElement("link"),Nt(n,"link",e),gt(n),l.head.appendChild(n)))}}function jE(e){va.D(e),Nv("dns-prefetch",e,null)}function RE(e,n){va.C(e,n),Nv("preconnect",e,n)}function NE(e,n,s){va.L(e,n,s);var l=ei;if(l&&e&&n){var c='link[rel="preload"][as="'+yn(n)+'"]';n==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+yn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+yn(s.imageSizes)+'"]')):c+='[href="'+yn(e)+'"]';var h=c;switch(n){case"style":h=ti(e);break;case"script":h=ni(e)}Rn.has(h)||(e=y({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),Rn.set(h,e),l.querySelector(c)!==null||n==="style"&&l.querySelector(El(h))||n==="script"&&l.querySelector(jl(h))||(n=l.createElement("link"),Nt(n,"link",e),gt(n),l.head.appendChild(n)))}}function _E(e,n){va.m(e,n);var s=ei;if(s&&e){var l=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+yn(l)+'"][href="'+yn(e)+'"]',h=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ni(e)}if(!Rn.has(h)&&(e=y({rel:"modulepreload",href:e},n),Rn.set(h,e),s.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(jl(h)))return}l=s.createElement("link"),Nt(l,"link",e),gt(l),s.head.appendChild(l)}}}function CE(e,n,s){va.S(e,n,s);var l=ei;if(l&&e){var c=Er(l).hoistableStyles,h=ti(e);n=n||"default";var b=c.get(h);if(!b){var R={loading:0,preload:null};if(b=l.querySelector(El(h)))R.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},s),(s=Rn.get(h))&&Bf(e,s);var O=b=l.createElement("link");gt(O),Nt(O,"link",e),O._p=new Promise(function(I,$){O.onload=I,O.onerror=$}),O.addEventListener("load",function(){R.loading|=1}),O.addEventListener("error",function(){R.loading|=2}),R.loading|=4,pc(b,n,l)}b={type:"stylesheet",instance:b,count:1,state:R},c.set(h,b)}}}function AE(e,n){va.X(e,n);var s=ei;if(s&&e){var l=Er(s).hoistableScripts,c=ni(e),h=l.get(c);h||(h=s.querySelector(jl(c)),h||(e=y({src:e,async:!0},n),(n=Rn.get(c))&&Uf(e,n),h=s.createElement("script"),gt(h),Nt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function TE(e,n){va.M(e,n);var s=ei;if(s&&e){var l=Er(s).hoistableScripts,c=ni(e),h=l.get(c);h||(h=s.querySelector(jl(c)),h||(e=y({src:e,async:!0,type:"module"},n),(n=Rn.get(c))&&Uf(e,n),h=s.createElement("script"),gt(h),Nt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function _v(e,n,s,l){var c=(c=he.current)?hc(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ti(s.href),s=Er(c).hoistableStyles,l=s.get(n),l||(l={type:"style",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ti(s.href);var h=Er(c).hoistableStyles,b=h.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=c.querySelector(El(e)))&&!h._p&&(b.instance=h,b.state.loading=5),Rn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Rn.set(e,s),h||kE(c,e,s,b.state))),n&&l===null)throw Error(i(528,""));return b}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ni(s),s=Er(c).hoistableScripts,l=s.get(n),l||(l={type:"script",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ti(e){return'href="'+yn(e)+'"'}function El(e){return'link[rel="stylesheet"]['+e+"]"}function Cv(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function kE(e,n,s,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Nt(n,"link",s),gt(n),e.head.appendChild(n))}function ni(e){return'[src="'+yn(e)+'"]'}function jl(e){return"script[async]"+e}function Av(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+yn(s.href)+'"]');if(l)return n.instance=l,gt(l),l;var c=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),gt(l),Nt(l,"style",c),pc(l,s.precedence,e),n.instance=l;case"stylesheet":c=ti(s.href);var h=e.querySelector(El(c));if(h)return n.state.loading|=4,n.instance=h,gt(h),h;l=Cv(s),(c=Rn.get(c))&&Bf(l,c),h=(e.ownerDocument||e).createElement("link"),gt(h);var b=h;return b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),Nt(h,"link",l),n.state.loading|=4,pc(h,s.precedence,e),n.instance=h;case"script":return h=ni(s.src),(c=e.querySelector(jl(h)))?(n.instance=c,gt(c),c):(l=s,(c=Rn.get(h))&&(l=y({},s),Uf(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),gt(c),Nt(c,"link",l),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,pc(l,s.precedence,e));return n.instance}function pc(e,n,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,h=c,b=0;b<l.length;b++){var R=l[b];if(R.dataset.precedence===n)h=R;else if(h!==c)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function Bf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Uf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var mc=null;function Tv(e,n,s){if(mc===null){var l=new Map,c=mc=new Map;c.set(s,l)}else c=mc,l=c.get(s),l||(l=new Map,c.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),c=0;c<s.length;c++){var h=s[c];if(!(h[Hi]||h[wt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var R=l.get(b);R?R.push(h):l.set(b,[h])}}return l}function kv(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function OE(e,n,s){if(s===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ov(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ME(e,n,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=ti(l.href),h=n.querySelector(El(c));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=gc.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=h,gt(h);return}h=n.ownerDocument||n,l=Cv(l),(c=Rn.get(c))&&Bf(l,c),h=h.createElement("link"),gt(h);var b=h;b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),Nt(h,"link",l),s.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=gc.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var Pf=0;function DE(e,n){return e.stylesheets&&e.count===0&&vc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&vc(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Pf===0&&(Pf=62500*pE());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vc(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Pf?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function gc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yc=null;function vc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yc=new Map,n.forEach(LE,e),yc=null,gc.call(e))}function LE(e,n){if(!(n.state.loading&4)){var s=yc.get(e);if(s)var l=s.get(null);else{s=new Map,yc.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<c.length;h++){var b=c[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(s.set(b.dataset.precedence,b),l=b)}l&&s.set(null,l)}c=n.instance,b=c.getAttribute("data-precedence"),h=s.get(b)||l,h===l&&s.set(null,c),s.set(b,c),this.count++,l=gc.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),h?h.parentNode.insertBefore(c,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var Rl={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function zE(e,n,s,l,c,h,b,R,O){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=Mu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mu(0),this.hiddenUpdates=Mu(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Mv(e,n,s,l,c,h,b,R,O,I,$,W){return e=new zE(e,n,s,b,O,I,$,W,R),n=1,h===!0&&(n|=24),h=nn(3,null,null,n),e.current=h,h.stateNode=e,n=yd(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:n},Sd(h),e}function Dv(e){return e?(e=Mr,e):Mr}function Lv(e,n,s,l,c,h){c=Dv(c),l.context===null?l.context=c:l.pendingContext=c,l=Fa(n),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Ga(e,l,n),s!==null&&(Qt(s,e,n),al(s,e,n))}function zv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function Hf(e,n){zv(e,n),(e=e.alternate)&&zv(e,n)}function Bv(e){if(e.tag===13||e.tag===31){var n=Os(e,67108864);n!==null&&Qt(n,e,67108864),Hf(e,67108864)}}function Uv(e){if(e.tag===13||e.tag===31){var n=on();n=Du(n);var s=Os(e,n);s!==null&&Qt(s,e,n),Hf(e,n)}}var bc=!0;function BE(e,n,s,l){var c=P.T;P.T=null;var h=Q.p;try{Q.p=2,Ff(e,n,s,l)}finally{Q.p=h,P.T=c}}function UE(e,n,s,l){var c=P.T;P.T=null;var h=Q.p;try{Q.p=8,Ff(e,n,s,l)}finally{Q.p=h,P.T=c}}function Ff(e,n,s,l){if(bc){var c=Gf(l);if(c===null)_f(e,n,l,xc,s),Hv(e,l);else if(HE(c,e,n,s,l))l.stopPropagation();else if(Hv(e,l),n&4&&-1<PE.indexOf(e)){for(;c!==null;){var h=wr(c);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=_s(h.pendingLanes);if(b!==0){var R=h;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var O=1<<31-en(b);R.entanglements[1]|=O,b&=~O}qn(h),(Ue&6)===0&&(nc=Tt()+500,bl(0))}}break;case 31:case 13:R=Os(h,2),R!==null&&Qt(R,h,2),sc(),Hf(h,2)}if(h=Gf(l),h===null&&_f(e,n,l,xc,s),h===c)break;c=h}c!==null&&l.stopPropagation()}else _f(e,n,l,null,s)}}function Gf(e){return e=qu(e),qf(e)}var xc=null;function qf(e){if(xc=null,e=Sr(e),e!==null){var n=d(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=f(n),e!==null)return e;e=null}else if(s===31){if(e=p(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return xc=e,null}function Pv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qe()){case St:return 2;case Pn:return 8;case br:case RS:return 32;case Xp:return 268435456;default:return 32}default:return 32}}var If=!1,Ja=null,es=null,ts=null,Nl=new Map,_l=new Map,ns=[],PE="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 Hv(e,n){switch(e){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":es=null;break;case"mouseover":case"mouseout":ts=null;break;case"pointerover":case"pointerout":Nl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(n.pointerId)}}function Cl(e,n,s,l,c,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[c]},n!==null&&(n=wr(n),n!==null&&Bv(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function HE(e,n,s,l,c){switch(n){case"focusin":return Ja=Cl(Ja,e,n,s,l,c),!0;case"dragenter":return es=Cl(es,e,n,s,l,c),!0;case"mouseover":return ts=Cl(ts,e,n,s,l,c),!0;case"pointerover":var h=c.pointerId;return Nl.set(h,Cl(Nl.get(h)||null,e,n,s,l,c)),!0;case"gotpointercapture":return h=c.pointerId,_l.set(h,Cl(_l.get(h)||null,e,n,s,l,c)),!0}return!1}function Fv(e){var n=Sr(e.target);if(n!==null){var s=d(n);if(s!==null){if(n=s.tag,n===13){if(n=f(s),n!==null){e.blockedOn=n,tm(e.priority,function(){Uv(s)});return}}else if(n===31){if(n=p(s),n!==null){e.blockedOn=n,tm(e.priority,function(){Uv(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Sc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Gf(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Gu=l,s.target.dispatchEvent(l),Gu=null}else return n=wr(s),n!==null&&Bv(n),e.blockedOn=s,!1;n.shift()}return!0}function Gv(e,n,s){Sc(e)&&s.delete(n)}function FE(){If=!1,Ja!==null&&Sc(Ja)&&(Ja=null),es!==null&&Sc(es)&&(es=null),ts!==null&&Sc(ts)&&(ts=null),Nl.forEach(Gv),_l.forEach(Gv)}function wc(e,n){e.blockedOn===n&&(e.blockedOn=null,If||(If=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,FE)))}var Ec=null;function qv(e){Ec!==e&&(Ec=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ec===e&&(Ec=null);for(var n=0;n<e.length;n+=3){var s=e[n],l=e[n+1],c=e[n+2];if(typeof l!="function"){if(qf(l||s)===null)continue;break}var h=wr(s);h!==null&&(e.splice(n,3),n-=3,Fd(h,{pending:!0,data:c,method:s.method,action:l},l,c))}}))}function ai(e){function n(O){return wc(O,e)}Ja!==null&&wc(Ja,e),es!==null&&wc(es,e),ts!==null&&wc(ts,e),Nl.forEach(n),_l.forEach(n);for(var s=0;s<ns.length;s++){var l=ns[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ns.length&&(s=ns[0],s.blockedOn===null);)Fv(s),s.blockedOn===null&&ns.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var c=s[l],h=s[l+1],b=c[Ht]||null;if(typeof h=="function")b||qv(s);else if(b){var R=null;if(h&&h.hasAttribute("formAction")){if(c=h,b=h[Ht]||null)R=b.formAction;else if(qf(c)!==null)continue}else R=b.action;typeof R=="function"?s[l+1]=R:(s.splice(l,3),l-=3),qv(s)}}}function Iv(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return c=b})},focusReset:"manual",scroll:"manual"})}function n(){c!==null&&(c(),c=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),c!==null&&(c(),c=null)}}}function Vf(e){this._internalRoot=e}jc.prototype.render=Vf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var s=n.current,l=on();Lv(s,l,e,n,null,null)},jc.prototype.unmount=Vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Lv(e.current,2,null,e,null,null),sc(),n[xr]=null}};function jc(e){this._internalRoot=e}jc.prototype.unstable_scheduleHydration=function(e){if(e){var n=em();e={blockedOn:null,target:e,priority:n};for(var s=0;s<ns.length&&n!==0&&n<ns[s].priority;s++);ns.splice(s,0,e),s===0&&Fv(e)}};var Vv=a.version;if(Vv!=="19.2.7")throw Error(i(527,Vv,"19.2.7"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=m(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var GE={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{Bi=Rc.inject(GE),Jt=Rc}catch{}}return Tl.createRoot=function(e,n){if(!o(e))throw Error(i(299));var s=!1,l="",c=Wg,h=Jg,b=ey;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Mv(e,1,!1,null,null,s,l,null,c,h,b,Iv),e[xr]=n.current,Nf(e),new Vf(n)},Tl.hydrateRoot=function(e,n,s){if(!o(e))throw Error(i(299));var l=!1,c="",h=Wg,b=Jg,R=ey,O=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.formState!==void 0&&(O=s.formState)),n=Mv(e,1,!0,n,s??null,l,c,O,h,b,R,Iv),n.context=Dv(null),s=n.current,l=on(),l=Du(l),c=Fa(l),c.callback=null,Ga(s,c,l),s=l,n.current.lanes=s,Pi(n,s),qn(n),e[xr]=n.current,Nf(e),new jc(n)},Tl.version="19.2.7",Tl}var nb;function WE(){if(nb)return Xf.exports;nb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Xf.exports=KE(),Xf.exports}var JE=WE();const ej=up(JE);var zl=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Jf(t){const a=N.useRef({value:t,prev:null}),r=a.current.value;return t!==r&&(a.current={value:t,prev:r}),a.current.prev}function tj(t,a,r={},i={}){N.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([d])=>{a(d)},r);return o.observe(t.current),()=>{o.disconnect()}},[a,r,i.disabled,t])}function nj(t){const a=N.useRef(null);return N.useImperativeHandle(t,()=>a.current,[]),a}const Zx=!1;function Ul(t){return t[t.length-1]}function aj(t){return typeof t=="function"}function $s(t,a){return aj(t)?t(a):t}const Kx=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable;function Wx(t){for(const a in t)if(Kx.call(t,a))return!0;return!1}const sj=()=>Object.create(null),Vs=(t,a)=>Xs(t,a,sj);function Xs(t,a,r=()=>({}),i=0){if(t===a)return t;if(i>500)return a;const o=a,d=ib(t)&&ib(o);if(!d&&!(Zc(t)&&Zc(o)))return o;const f=d?t:sb(t);if(!f)return o;const p=d?o:sb(o);if(!p)return o;const g=f.length,m=p.length,v=d?new Array(m):r();let y=0;for(let S=0;S<m;S++){const E=d?S:p[S],w=t[E],x=o[E];if(w===x){v[E]=w,(d?S<g:Kx.call(t,E))&&y++;continue}if(w===null||x===null||typeof w!="object"||typeof x!="object"){v[E]=x;continue}const j=Xs(w,x,r,i+1);v[E]=j,j===w&&y++}return g===m&&y===g?t:v}function sb(t){const a=Object.getOwnPropertyNames(t);for(const o of a)if(!ab.call(t,o))return!1;const r=Object.getOwnPropertySymbols(t);if(r.length===0)return a;const i=a;for(const o of r){if(!ab.call(t,o))return!1;i.push(o)}return i}function Zc(t){if(!rb(t))return!1;const a=t.constructor;if(typeof a>"u")return!0;const r=a.prototype;return!(!rb(r)||!r.hasOwnProperty("isPrototypeOf"))}function rb(t){return Object.prototype.toString.call(t)==="[object Object]"}function ib(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function or(t,a,r){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(Array.isArray(t)&&Array.isArray(a)){if(t.length!==a.length)return!1;for(let i=0,o=t.length;i<o;i++)if(!or(t[i],a[i],r))return!1;return!0}if(Zc(t)&&Zc(a)){const i=(r==null?void 0:r.ignoreUndefined)??!0;if(r!=null&&r.partial){for(const f in a)if((!i||a[f]!==void 0)&&!or(t[f],a[f],r))return!1;return!0}let o=0;if(!i)o=Object.keys(t).length;else for(const f in t)t[f]!==void 0&&o++;let d=0;for(const f in a)if((!i||a[f]!==void 0)&&(d++,d>o||!or(t[f],a[f],r)))return!1;return o===d}return!1}function _i(t){let a,r;const i=new Promise((o,d)=>{a=o,r=d});return i.status="pending",i.resolve=o=>{i.status="resolved",i.value=o,a(o),t==null||t(o)},i.reject=o=>{i.status="rejected",r(o)},i}function Pl(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function rj(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function lb(t){let a;try{a=decodeURI(t)}catch{a=t.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return rj(a)}const ij=["http:","https:","mailto:","tel:"];function Kc(t,a){if(!t)return!1;try{const r=new URL(t);return!a.has(r.protocol)}catch{return!1}}function kl(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let r=0,i="",o;for(;(o=a.exec(t))!==null;)i+=lb(t.slice(r,o.index))+o[0],r=a.lastIndex;i=i+lb(r?t.slice(r):t);let d=!1;return i.startsWith("//")&&(d=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:d}}function lj(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function oj(t,a){if(t===a)return!0;if(t.length!==a.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==a[r])return!1;return!0}function Ra(){throw new Error("Invariant failed")}function Hl(t){const a=new Map;let r,i;const o=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,i&&(i.next=d,d.prev=i)):(d.next.prev=void 0,r=d.next,d.next=void 0,i&&(d.prev=i,i.next=d)),i=d)};return{get(d){const f=a.get(d);if(f)return o(f),f.value},set(d,f){if(a.size>=t&&r){const g=r;a.delete(g.key),g.next&&(r=g.next,g.next.prev=void 0),g===i&&(i=void 0)}const p=a.get(d);if(p)p.value=f,o(p);else{const g={key:d,value:f,prev:i};i&&(i.next=g),i=g,r||(r=g),a.set(d,g)}},clear(){a.clear(),r=void 0,i=void 0}}}const ys=4,Jx=5;function cj(t){const a=t.indexOf("{");if(a===-1)return null;const r=t.indexOf("}",a);return r===-1||a+1>=t.length?null:[a,r]}function e0(t,a,r=new Uint16Array(6)){const i=t.indexOf("/",a),o=i===-1?t.length:i,d=t.substring(a,o);if(!d||!d.includes("$"))return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r;if(d==="$"){const p=t.length;return r[0]=2,r[1]=a,r[2]=a,r[3]=p,r[4]=p,r[5]=p,r}if(d.charCodeAt(0)===36)return r[0]=1,r[1]=a,r[2]=a+1,r[3]=o,r[4]=o,r[5]=o,r;const f=cj(d);if(f){const[p,g]=f,m=d.charCodeAt(p+1);if(m===45){if(p+2<d.length&&d.charCodeAt(p+2)===36){const v=p+3,y=g;if(v<y)return r[0]=3,r[1]=a+p,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=o,r}}else if(m===36){const v=p+1,y=p+2;return y===g?(r[0]=2,r[1]=a+p,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=t.length,r):(r[0]=1,r[1]=a+p,r[2]=a+y,r[3]=a+g,r[4]=a+g+1,r[5]=o,r)}}return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r}function fu(t,a,r,i,o,d,f){var g,m,v,y,S,E,w,x,j,_;f==null||f(r);let p=i;{const C=r.fullPath??r.from,T=C.length,A=((g=r.options)==null?void 0:g.caseSensitive)??t,z=((v=(m=r.options)==null?void 0:m.params)==null?void 0:v.parse)??((y=r.options)==null?void 0:y.parseParams);for(;p<T;){const k=e0(C,p,a);let M;const L=p,F=k[5];switch(p=F+1,d++,k[0]){case 0:{const X=C.substring(k[2],k[3]);if(A){const ne=(S=o.static)==null?void 0:S.get(X);if(ne)M=ne;else{o.static??(o.static=new Map);const se=Zs(r.fullPath??r.from);se.parent=o,se.depth=d,M=se,o.static.set(X,se)}}else{const ne=X.toLowerCase(),se=(E=o.staticInsensitive)==null?void 0:E.get(ne);if(se)M=se;else{o.staticInsensitive??(o.staticInsensitive=new Map);const te=Zs(r.fullPath??r.from);te.parent=o,te.depth=d,M=te,o.staticInsensitive.set(ne,te)}}break}case 1:{const X=C.substring(L,k[1]),ne=C.substring(k[4],F),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,oe=ne?se?ne:ne.toLowerCase():void 0,P=!z&&((w=o.dynamic)==null?void 0:w.find(Q=>!Q.parse&&Q.caseSensitive===se&&Q.prefix===te&&Q.suffix===oe));if(P)M=P;else{const Q=th(1,r.fullPath??r.from,se,te,oe);M=Q,Q.depth=d,Q.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(Q)}break}case 3:{const X=C.substring(L,k[1]),ne=C.substring(k[4],F),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,oe=ne?se?ne:ne.toLowerCase():void 0,P=!z&&((x=o.optional)==null?void 0:x.find(Q=>!Q.parse&&Q.caseSensitive===se&&Q.prefix===te&&Q.suffix===oe));if(P)M=P;else{const Q=th(3,r.fullPath??r.from,se,te,oe);M=Q,Q.parent=o,Q.depth=d,o.optional??(o.optional=[]),o.optional.push(Q)}break}case 2:{const X=C.substring(L,k[1]),ne=C.substring(k[4],F),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,oe=ne?se?ne:ne.toLowerCase():void 0,P=th(2,r.fullPath??r.from,se,te,oe);M=P,P.parent=o,P.depth=d,o.wildcard??(o.wildcard=[]),o.wildcard.push(P)}}o=M}if(z&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const k=Zs(r.fullPath??r.from);k.kind=Jx,k.parent=o,d++,k.depth=d,o.pathless??(o.pathless=[]),o.pathless.push(k),o=k}const G=(r.path||!r.children)&&!r.isRoot;if(G&&C.endsWith("/")){const k=Zs(r.fullPath??r.from);k.kind=ys,k.parent=o,d++,k.depth=d,o.index=k,o=k}o.parse=z??null,o.priority=((_=(j=r.options)==null?void 0:j.params)==null?void 0:_.priority)??0,G&&!o.route&&(o.route=r,o.fullPath=r.fullPath??r.from)}if(r.children)for(const C of r.children)fu(t,a,C,p,o,d,f)}function eh(t,a){if(t.parse&&!a.parse)return-1;if(!t.parse&&a.parse)return 1;if(t.parse&&a.parse&&(t.priority||a.priority))return a.priority-t.priority;if(t.prefix&&a.prefix&&t.prefix!==a.prefix){if(t.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(t.prefix))return 1}if(t.suffix&&a.suffix&&t.suffix!==a.suffix){if(t.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(t.suffix))return 1}return t.prefix&&!a.prefix?-1:!t.prefix&&a.prefix?1:t.suffix&&!a.suffix?-1:!t.suffix&&a.suffix?1:t.caseSensitive&&!a.caseSensitive?-1:!t.caseSensitive&&a.caseSensitive?1:0}function os(t){var a,r,i;if(t.pathless)for(const o of t.pathless)os(o);if(t.static)for(const o of t.static.values())os(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())os(o);if((a=t.dynamic)!=null&&a.length){t.dynamic.sort(eh);for(const o of t.dynamic)os(o)}if((r=t.optional)!=null&&r.length){t.optional.sort(eh);for(const o of t.optional)os(o)}if((i=t.wildcard)!=null&&i.length){t.wildcard.sort(eh);for(const o of t.wildcard)os(o)}}function Zs(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function th(t,a,r,i,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0,caseSensitive:r,prefix:i,suffix:o}}function uj(t,a){const r=Zs("/"),i=new Uint16Array(6);for(const o of t)fu(!1,i,o,1,r,0);os(r),a.masksTree=r,a.flatCache=Hl(1e3)}function dj(t,a){t||(t="/");const r=a.flatCache.get(t);if(r)return r;const i=fp(t,a.masksTree);return a.flatCache.set(t,i),i}function fj(t,a,r,i,o){t||(t="/"),i||(i="/");const d=a?`case\0${t}`:t;let f=o.singleCache.get(d);return f||(f=Zs("/"),fu(a,new Uint16Array(6),{from:t},1,f,0),o.singleCache.set(d,f)),fp(i,f,r)}function hj(t,a,r=!1){const i=r?t:`nofuzz\0${t}`,o=a.matchCache.get(i);if(o!==void 0)return o;t||(t="/");let d;try{d=fp(t,a.segmentTree,r)}catch(f){if(f instanceof URIError)d=null;else throw f}return d&&(d.branch=n0(d.route)),a.matchCache.set(i,d),d}function pj(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function mj(t,a=!1,r){const i=Zs(t.fullPath),o=new Uint16Array(6),d={},f={};let p=0;return fu(a,o,t,1,i,0,g=>{if(r==null||r(g,p),g.id in d&&Ra(),d[g.id]=g,p!==0&&g.path){const m=pj(g.fullPath);(!f[m]||g.fullPath.endsWith("/"))&&(f[m]=g)}p++}),os(i),{processedTree:{segmentTree:i,singleCache:Hl(1e3),matchCache:Hl(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:f}}function fp(t,a,r=!1){const i=t.split("/"),o=yj(t,i,a,r);if(!o)return null;const[d]=t0(t,i,o);return{route:o.node.route,rawParams:d}}function t0(t,a,r){var v,y,S,E,w,x,j,_,C,T;const i=gj(r.node);let o=null;const d=Object.create(null);let f=((v=r.extract)==null?void 0:v.part)??0,p=((y=r.extract)==null?void 0:y.node)??0,g=((S=r.extract)==null?void 0:S.path)??0,m=((E=r.extract)==null?void 0:E.segment)??0;for(;p<i.length;f++,p++,g++,m++){const A=i[p];if(A.kind===ys)break;if(A.kind===Jx){m--,f--,g--;continue}const z=a[f],G=g;if(z&&(g+=z.length),A.kind===1){o??(o=r.node.fullPath.split("/"));const k=o[m],M=((w=A.prefix)==null?void 0:w.length)??0;if(k.charCodeAt(M)===123){const L=((x=A.suffix)==null?void 0:x.length)??0,F=k.substring(M+2,k.length-L-1),X=z.substring(M,z.length-L);d[F]=decodeURIComponent(X)}else{const L=k.substring(1);d[L]=decodeURIComponent(z)}}else if(A.kind===3){if(r.skipped&1<<p){f--,g=G-1;continue}o??(o=r.node.fullPath.split("/"));const k=o[m],M=((j=A.prefix)==null?void 0:j.length)??0,L=((_=A.suffix)==null?void 0:_.length)??0,F=k.substring(M+3,k.length-L-1),X=A.suffix||A.prefix?z.substring(M,z.length-L):z;X&&(d[F]=decodeURIComponent(X))}else if(A.kind===2){const k=A,M=t.substring(G+(((C=k.prefix)==null?void 0:C.length)??0),t.length-(((T=k.suffix)==null?void 0:T.length)??0)),L=decodeURIComponent(M);d["*"]=L,d._splat=L;break}}return r.rawParams&&Object.assign(d,r.rawParams),[d,{part:f,node:p,path:g,segment:m}]}function n0(t){const a=[t];for(;t.parentRoute;)t=t.parentRoute,a.push(t);return a.reverse(),a}function gj(t){const a=Array(t.depth+1);do a[t.depth]=t,t=t.parent;while(t);return a}function yj(t,a,r,i){if(t==="/"&&r.index)return{node:r.index,skipped:0};const o=!Ul(a),d=o&&t!=="/",f=a.length-(o?1:0),p=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,m=null;for(;p.length;){const v=p.pop(),{node:y,index:S,skipped:E,depth:w,statics:x,dynamics:j,optionals:_}=v;let{extract:C,rawParams:T}=v;if(y.kind===2&&y.route&&!Cc(m,v))continue;if(y.parse){if(!ob(t,a,v))continue;T=v.rawParams,C=v.extract}i&&y.route&&y.kind!==ys&&Cc(g,v)&&(g=v);const A=S===f;if(A&&(y.route&&(!d||y.kind===ys||y.kind===2)&&Cc(m,v)&&(m=v),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const z=A?void 0:a[S];let G;if(A&&y.index){const k={node:y.index,index:S,skipped:E,depth:w+1,statics:x,dynamics:j,optionals:_,extract:C,rawParams:T};let M=!0;if(y.index.parse&&(ob(t,a,k)||(M=!1)),M){if(!j&&!_&&!E&&vj(x,f))return k;Cc(m,k)&&(m=k)}}if(y.wildcard)for(let k=y.wildcard.length-1;k>=0;k--){const M=y.wildcard[k],{prefix:L,suffix:F}=M;if(!(L&&(A||!(M.caseSensitive?z:G??(G=z.toLowerCase())).startsWith(L)))){if(F){if(A)continue;const X=a.slice(S).join("/").slice(-F.length);if((M.caseSensitive?X:X.toLowerCase())!==F)continue}p.push({node:M,index:f,skipped:E,depth:w+1,statics:x,dynamics:j,optionals:_,extract:C,rawParams:T})}}if(y.optional){const k=E|1<<w,M=w+1;for(let L=y.optional.length-1;L>=0;L--){const F=y.optional[L];p.push({node:F,index:S,skipped:k,depth:M,statics:x,dynamics:j,optionals:_,extract:C,rawParams:T})}if(!A)for(let L=y.optional.length-1;L>=0;L--){const F=y.optional[L],{prefix:X,suffix:ne}=F;if(X||ne){const se=F.caseSensitive?z:G??(G=z.toLowerCase());if(X&&!se.startsWith(X)||ne&&!se.endsWith(ne))continue}p.push({node:F,index:S+1,skipped:E,depth:M,statics:x,dynamics:j,optionals:_+_c(f,S),extract:C,rawParams:T})}}if(!A&&y.dynamic&&z)for(let k=y.dynamic.length-1;k>=0;k--){const M=y.dynamic[k],{prefix:L,suffix:F}=M;if(L||F){const X=M.caseSensitive?z:G??(G=z.toLowerCase());if(L&&!X.startsWith(L)||F&&!X.endsWith(F))continue}p.push({node:M,index:S+1,skipped:E,depth:w+1,statics:x,dynamics:j+_c(f,S),optionals:_,extract:C,rawParams:T})}if(!A&&y.staticInsensitive){const k=y.staticInsensitive.get(G??(G=z.toLowerCase()));k&&p.push({node:k,index:S+1,skipped:E,depth:w+1,statics:x+_c(f,S),dynamics:j,optionals:_,extract:C,rawParams:T})}if(!A&&y.static){const k=y.static.get(z);k&&p.push({node:k,index:S+1,skipped:E,depth:w+1,statics:x+_c(f,S),dynamics:j,optionals:_,extract:C,rawParams:T})}if(y.pathless){const k=w+1;for(let M=y.pathless.length-1;M>=0;M--){const L=y.pathless[M];p.push({node:L,index:S,skipped:E,depth:k,statics:x,dynamics:j,optionals:_,extract:C,rawParams:T})}}}if(m)return m;if(i&&g){let v=g.index;for(let S=0;S<g.index;S++)v+=a[S].length;const y=v===t.length?"/":t.slice(v);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(y),g}return null}function _c(t,a){return 2**(t-a-1)}function vj(t,a){return t===2**(a-1)-1}function ob(t,a,r){let i,o;try{[i,o]=t0(t,a,r)}catch{return null}if(r.rawParams=i,r.extract=o,!r.node.parse)return!0;try{if(r.node.parse(i)===!1)return null}catch{}return!0}function Cc(t,a){return t?a.statics>t.statics||a.statics===t.statics&&(a.dynamics>t.dynamics||a.dynamics===t.dynamics&&(a.optionals>t.optionals||a.optionals===t.optionals&&((a.node.kind===ys)>(t.node.kind===ys)||a.node.kind===ys==(t.node.kind===ys)&&a.depth>t.depth))):!0}function Gc(t){return hp(t.filter(a=>a!==void 0).join("/"))}function hp(t){return t.replace(/\/{2,}/g,"/")}function a0(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function ja(t){const a=t.length;return a>1&&t[a-1]==="/"?t.replace(/\/{1,}$/,""):t}function s0(t){return ja(a0(t))}function Wc(t,a){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${a}/`?t.slice(0,-1):t}function bj(t,a,r){return Wc(t,r)===Wc(a,r)}function xj({base:t,to:a,trailingSlash:r="never",cache:i}){const o=a.startsWith("/"),d=!o&&a===".";let f;if(i){f=o?a:d?t:t+"\0"+a;const m=i.get(f);if(m)return m}let p;if(d)p=t.split("/");else if(o)p=a.split("/");else{for(p=t.split("/");p.length>1&&Ul(p)==="";)p.pop();const m=a.split("/");for(let v=0,y=m.length;v<y;v++){const S=m[v];S===""?v?v===y-1&&p.push(S):p=[S]:S===".."?p.pop():S==="."||p.push(S)}}p.length>1&&(Ul(p)===""?r==="never"&&p.pop():r==="always"&&p.push(""));const g=hp(p.join("/"))||"/";return f&&i&&i.set(f,g),g}function Sj(t){const a=new Map(t.map(o=>[encodeURIComponent(o),o])),r=Array.from(a.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(r,"g");return o=>o.replace(i,d=>a.get(d)??d)}function nh(t,a,r){const i=a[t];return typeof i!="string"?i:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(o=>ub(o,r)).join("/"):ub(i,r)}function cb({path:t,params:a,decoder:r,...i}){let o=!1;const d=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:d,isMissingParams:o};const f=t.length;let p=0,g,m="";for(;p<f;){const v=p;g=e0(t,v,g);const y=g[5];if(p=y+1,v===y)continue;const S=g[0];if(S===0){m+="/"+t.substring(v,y);continue}if(S===2){const E=a._splat;d._splat=E,d["*"]=E;const w=t.substring(v,g[1]),x=t.substring(g[4],y);if(!E){o=!0,(w||x)&&(m+="/"+w+x);continue}const j=nh("_splat",a,r);m+="/"+w+j+x;continue}if(S===1){const E=t.substring(g[2],g[3]);!o&&!(E in a)&&(o=!0),d[E]=a[E];const w=t.substring(v,g[1]),x=t.substring(g[4],y),j=nh(E,a,r)??"undefined";m+="/"+w+j+x;continue}if(S===3){const E=t.substring(g[2],g[3]),w=a[E];if(w==null)continue;d[E]=w;const x=t.substring(v,g[1]),j=t.substring(g[4],y),_=nh(E,a,r)??"";m+="/"+x+_+j;continue}}return t.endsWith("/")&&(m+="/"),{usedParams:d,interpolatedPath:m||"/",isMissingParams:o}}function ub(t,a){const r=encodeURIComponent(t);return(a==null?void 0:a(r))??r}function Lt(t){return(t==null?void 0:t.isNotFound)===!0}function wj(t,a=String){const r=new URLSearchParams;for(const i in t){const o=t[i];o!==void 0&&r.set(i,a(o))}return r.toString()}function ah(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Ej(t){const a=new URLSearchParams(t),r=Object.create(null);for(const[i,o]of a.entries()){const d=r[i];d==null?r[i]=ah(o):Array.isArray(d)?d.push(ah(o)):r[i]=[d,ah(o)]}return r}const jj=Nj(JSON.parse),Rj=_j(JSON.stringify,JSON.parse);function Nj(t){return a=>{a[0]==="?"&&(a=a.substring(1));const r=Ej(a);for(const i in r){const o=r[i];if(typeof o=="string")try{r[i]=t(o)}catch{}}return r}}function _j(t,a){const r=typeof a=="function";function i(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(r&&typeof o=="string")try{return a(o),t(o)}catch{}return o}return o=>{const d=wj(o,i);return d?`?${d}`:""}}const cr="__root__";function Cj(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const a=new Headers(t.headers);t.href&&a.get("Location")===null&&a.set("Location",t.href);const r=new Response(null,{status:t.statusCode,headers:a});if(r.options=t,t.throw)throw r;return r}function Zt(t){return t instanceof Response&&!!t.options}const Ah=t=>{var a;if(!t.rendered)return t.rendered=!0,(a=t.onReady)==null?void 0:a.call(t)},Aj=t=>t.stores.matchesId.get().some(a=>{var r;return(r=t.stores.matchStores.get(a))==null?void 0:r.get()._forcePending}),hu=(t,a)=>!!(t.preload&&!t.router.stores.matchStores.has(a)),ur=(t,a,r=!0)=>{const i={...t.router.options.context??{}},o=r?a:a-1;for(let d=0;d<=o;d++){const f=t.matches[d];if(!f)continue;const p=t.router.getMatch(f.id);p&&Object.assign(i,p.__routeContext,p.__beforeLoadContext)}return i},db=(t,a)=>{if(!t.matches.length)return;const r=a.routeId,i=t.matches.findIndex(f=>f.routeId===t.router.routeTree.id),o=i>=0?i:0;let d=r?t.matches.findIndex(f=>f.routeId===r):t.firstBadMatchIndex??t.matches.length-1;d<0&&(d=o);for(let f=d;f>=0;f--){const p=t.matches[f];if(t.router.looseRoutesById[p.routeId].options.notFoundComponent)return f}return r?d:o},vs=(t,a,r)=>{var i,o,d;if(!(!Zt(r)&&!Lt(r)))throw Zt(r)&&r.redirectHandled&&!r.options.reloadDocument||(a&&((i=a._nonReactive.beforeLoadPromise)==null||i.resolve(),(o=a._nonReactive.loaderPromise)==null||o.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=r,t.updateMatch(a.id,f=>({...f,status:Zt(r)?"redirected":Lt(r)?"notFound":f.status==="pending"?"success":f.status,context:ur(t,a.index),isFetching:!1,error:r})),Lt(r)&&!r.routeId&&(r.routeId=a.routeId),(d=a._nonReactive.loadPromise)==null||d.resolve()),Zt(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r))),r},r0=(t,a)=>{const r=t.router.getMatch(a);return!!(!r||r._nonReactive.dehydrated)},fb=(t,a,r)=>{const i=ur(t,r);t.updateMatch(a,o=>({...o,context:i}))},Ol=(t,a,r)=>{var f,p;const{id:i,routeId:o}=t.matches[a],d=t.router.looseRoutesById[o];if(r instanceof Promise)throw r;t.firstBadMatchIndex??(t.firstBadMatchIndex=a),vs(t,t.router.getMatch(i),r);try{(p=(f=d.options).onError)==null||p.call(f,r)}catch(g){r=g,vs(t,t.router.getMatch(i),r)}t.updateMatch(i,g=>{var m,v;return(m=g._nonReactive.beforeLoadPromise)==null||m.resolve(),g._nonReactive.beforeLoadPromise=void 0,(v=g._nonReactive.loadPromise)==null||v.resolve(),{...g,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!t.preload&&!Zt(r)&&!Lt(r)&&(t.serialError??(t.serialError=r))},i0=(t,a,r,i)=>{var d;if(i._nonReactive.pendingTimeout!==void 0)return;const o=r.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!hu(t,a)&&(r.options.loader||r.options.beforeLoad||o0(r))&&typeof o=="number"&&o!==1/0&&(r.options.pendingComponent??((d=t.router.options)==null?void 0:d.defaultPendingComponent))){const f=setTimeout(()=>{Ah(t)},o);i._nonReactive.pendingTimeout=f}},Tj=(t,a,r)=>{const i=t.router.getMatch(a);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;i0(t,a,r,i);const o=()=>{const d=t.router.getMatch(a);d.preload&&(d.status==="redirected"||d.status==="notFound")&&vs(t,d,d.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(o):o()},kj=(t,a,r,i)=>{const o=t.router.getMatch(a);let d=o._nonReactive.loadPromise;o._nonReactive.loadPromise=_i(()=>{d==null||d.resolve(),d=void 0});const{paramsError:f,searchError:p}=o;f&&Ol(t,r,f),p&&Ol(t,r,p),i0(t,a,i,o);const g=new AbortController;let m=!1;const v=()=>{m||(m=!0,t.updateMatch(a,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,abortController:g})))},y=()=>{var A;(A=o._nonReactive.beforeLoadPromise)==null||A.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(a,z=>({...z,isFetching:!1}))};if(!i.options.beforeLoad){t.router.batch(()=>{v(),y()});return}o._nonReactive.beforeLoadPromise=_i();const S={...ur(t,r,!1),...o.__routeContext},{search:E,params:w,cause:x}=o,j=hu(t,a),_={search:E,abortController:g,params:w,preload:j,context:S,location:t.location,navigate:A=>t.router.navigate({...A,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:j?"preload":x,matches:t.matches,routeId:i.id,...t.router.options.additionalContext},C=A=>{if(A===void 0){t.router.batch(()=>{v(),y()});return}(Zt(A)||Lt(A))&&(v(),Ol(t,r,A)),t.router.batch(()=>{v(),t.updateMatch(a,z=>({...z,__beforeLoadContext:A})),y()})};let T;try{if(T=i.options.beforeLoad(_),Pl(T))return v(),T.catch(A=>{Ol(t,r,A)}).then(C)}catch(A){v(),Ol(t,r,A)}C(T)},Oj=(t,a)=>{const{id:r,routeId:i}=t.matches[a],o=t.router.looseRoutesById[i],d=()=>p(),f=()=>kj(t,r,a,o),p=()=>{if(r0(t,r))return;const g=Tj(t,r,o);return Pl(g)?g.then(f):f()};return d()},Mj=(t,a,r)=>{var d,f,p,g,m,v;const i=t.router.getMatch(a);if(!i||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(f=(d=r.options).head)==null?void 0:f.call(d,o),(g=(p=r.options).scripts)==null?void 0:g.call(p,o),(v=(m=r.options).headers)==null?void 0:v.call(m,o)]).then(([y,S,E])=>({meta:y==null?void 0:y.meta,links:y==null?void 0:y.links,headScripts:y==null?void 0:y.scripts,headers:E,scripts:S,styles:y==null?void 0:y.styles}))},l0=(t,a,r,i,o)=>{const d=a[i-1],{params:f,loaderDeps:p,abortController:g,cause:m}=t.router.getMatch(r),v=ur(t,i),y=hu(t,r);return{params:f,deps:p,preload:!!y,parentMatchPromise:d,abortController:g,context:v,location:t.location,navigate:S=>t.router.navigate({...S,_fromLocation:t.location}),cause:y?"preload":m,route:o,...t.router.options.additionalContext}},hb=async(t,a,r,i,o)=>{var d,f,p,g,m;try{const v=t.router.getMatch(r);try{(!(Zx??t.router.isServer)||v.ssr===!0)&&Fl(o);const y=o.options.loader,S=typeof y=="function"?y:y==null?void 0:y.handler,E=S==null?void 0:S(l0(t,a,r,i,o)),w=!!S&&Pl(E);if((w||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||v._nonReactive.minPendingPromise)&&t.updateMatch(r,j=>({...j,isFetching:"loader"})),S){const j=w?await E:E;vs(t,t.router.getMatch(r),j),j!==void 0&&t.updateMatch(r,_=>({..._,loaderData:j}))}o._lazyPromise&&await o._lazyPromise;const x=v._nonReactive.minPendingPromise;x&&await x,o._componentsPromise&&await o._componentsPromise,t.updateMatch(r,j=>({...j,error:void 0,context:ur(t,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let S=y;if((S==null?void 0:S.name)==="AbortError"){if(v.abortController.signal.aborted){(d=v._nonReactive.loaderPromise)==null||d.resolve(),v._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,w=>({...w,status:w.status==="pending"?"success":w.status,isFetching:!1,context:ur(t,i)}));return}const E=v._nonReactive.minPendingPromise;E&&await E,Lt(y)&&await((p=(f=o.options.notFoundComponent)==null?void 0:f.preload)==null?void 0:p.call(f)),vs(t,t.router.getMatch(r),y);try{(m=(g=o.options).onError)==null||m.call(g,y)}catch(w){S=w,vs(t,t.router.getMatch(r),w)}!Zt(S)&&!Lt(S)&&await Fl(o,["errorComponent"]),t.updateMatch(r,w=>({...w,error:S,context:ur(t,i),status:"error",isFetching:!1}))}}catch(v){const y=t.router.getMatch(r);y&&(y._nonReactive.loaderPromise=void 0),vs(t,y,v)}},Dj=async(t,a,r)=>{var E,w,x,j;async function i(_,C,T,A,z){const G=Date.now()-C.updatedAt,k=_?z.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:z.options.staleTime??t.router.options.defaultStaleTime??0,M=z.options.shouldReload,L=typeof M=="function"?M(l0(t,a,o,r,z)):M,{status:F,invalid:X}=A,ne=G>=k&&(!!t.forceStaleReload||A.cause==="enter"||T!==void 0&&T!==A.id);f=F==="success"&&(X||(L??ne)),_&&z.options.preload===!1||(f&&!t.sync&&v?(p=!0,(async()=>{var se,te;try{await hb(t,a,o,r,z);const oe=t.router.getMatch(o);(se=oe._nonReactive.loaderPromise)==null||se.resolve(),(te=oe._nonReactive.loadPromise)==null||te.resolve(),oe._nonReactive.loaderPromise=void 0,oe._nonReactive.loadPromise=void 0}catch(oe){Zt(oe)&&await t.router.navigate(oe.options)}})()):F!=="success"||f?await hb(t,a,o,r,z):fb(t,o,r))}const{id:o,routeId:d}=t.matches[r];let f=!1,p=!1;const g=t.router.looseRoutesById[d],m=g.options.loader,v=((typeof m=="function"||m==null?void 0:m.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(r0(t,o)){if(!t.router.getMatch(o))return t.matches[r];fb(t,o,r)}else{const _=t.router.getMatch(o),C=t.router.stores.matchesId.get()[r],T=((E=C&&t.router.stores.matchStores.get(C)||null)==null?void 0:E.routeId)===d?C:(w=t.router.stores.matches.get().find(z=>z.routeId===d))==null?void 0:w.id,A=hu(t,o);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!t.sync&&!_.preload&&v)return _;await _._nonReactive.loaderPromise;const z=t.router.getMatch(o),G=z._nonReactive.error||z.error;G&&vs(t,z,G),z.status==="pending"&&await i(A,_,T,z,g)}else{const z=A&&!t.router.stores.matchStores.has(o),G=t.router.getMatch(o);G._nonReactive.loaderPromise=_i(),z!==G.preload&&t.updateMatch(o,k=>({...k,preload:z})),await i(A,_,T,G,g)}}const y=t.router.getMatch(o);p||((x=y._nonReactive.loaderPromise)==null||x.resolve(),(j=y._nonReactive.loadPromise)==null||j.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,p||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const S=p?y.isFetching:!1;return S!==y.isFetching||y.invalid!==!1?(t.updateMatch(o,_=>({..._,isFetching:S,invalid:!1})),t.router.getMatch(o)):y};async function pb(t){var S,E;const a=t,r=[];Aj(a.router)&&Ah(a);let i;for(let w=0;w<a.matches.length;w++){try{const x=Oj(a,w);Pl(x)&&await x}catch(x){if(Zt(x))throw x;if(Lt(x))i=x;else if(!a.preload)throw x;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,d=i&&!a.preload?db(a,i):void 0,f=i&&a.preload?0:d!==void 0?Math.min(d+1,o):o;let p,g;for(let w=0;w<f;w++)r.push(Dj(a,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const x of w){if(x.status!=="rejected")continue;const j=x.reason;if(Zt(j))throw j;Lt(j)?p??(p=j):g??(g=j)}if(g!==void 0)throw g}const m=p??(i&&!a.preload?i:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!m&&i&&a.preload)return a.matches;if(m){const w=db(a,m);w===void 0&&Ra();const x=a.matches[w],j=a.router.looseRoutesById[x.routeId],_=(S=a.router.options)==null?void 0:S.defaultNotFoundComponent;!j.options.notFoundComponent&&_&&(j.options.notFoundComponent=_),m.routeId=x.routeId;const C=x.routeId===a.router.routeTree.id;a.updateMatch(x.id,T=>({...T,...C?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),v=w,await Fl(j,["notFoundComponent"])}else if(!a.preload){const w=a.matches[0];w.globalNotFound||(E=a.router.getMatch(w.id))!=null&&E.globalNotFound&&a.updateMatch(w.id,x=>({...x,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const w=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Fl(w,["errorComponent"])}for(let w=0;w<=v;w++){const{id:x,routeId:j}=a.matches[w],_=a.router.looseRoutesById[j];try{const C=Mj(a,x,_);if(C){const T=await C;a.updateMatch(x,A=>({...A,...T}))}}catch(C){console.error(`Error executing head for route ${j}:`,C)}}const y=Ah(a);if(Pl(y)&&await y,m)throw m;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function mb(t,a){const r=a.map(i=>{var o,d;return(d=(o=t.options[i])==null?void 0:o.preload)==null?void 0:d.call(o)}).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Fl(t,a=qc){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(i=>{const{id:o,...d}=i.options;Object.assign(t.options,d),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const r=()=>t._componentsLoaded?void 0:a===qc?(()=>{if(t._componentsPromise===void 0){const i=mb(t,qc);i?t._componentsPromise=i.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():mb(t,a);return t._lazyPromise?t._lazyPromise.then(r):r()}function o0(t){var a;for(const r of qc)if((a=t.options[r])!=null&&a.preload)return!0;return!1}const qc=["component","errorComponent","pendingComponent","notFoundComponent"];function Lj(t){return{input:({url:a})=>{for(const r of t)a=Th(r,a);return a},output:({url:a})=>{for(let r=t.length-1;r>=0;r--)a=c0(t[r],a);return a}}}function zj(t){const a=s0(t.basepath),r=`/${a}`,i=t.caseSensitive?r:r.toLowerCase(),o=`${i}/`;return{input:({url:d})=>{const f=t.caseSensitive?d.pathname:d.pathname.toLowerCase();return f===i?d.pathname="/":f.startsWith(o)&&(d.pathname=d.pathname.slice(r.length)),d},output:({url:d})=>(d.pathname=Gc(["/",a,d.pathname]),d)}}function Th(t,a){var i;const r=(i=t==null?void 0:t.input)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function c0(t,a){var i;const r=(i=t==null?void 0:t.output)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function Bj(t,a){const{createMutableStore:r,createReadonlyStore:i,batch:o,init:d}=a,f=new Map,p=new Map,g=new Map,m=r(t.status),v=r(t.loadedAt),y=r(t.isLoading),S=r(t.isTransitioning),E=r(t.location),w=r(t.resolvedLocation),x=r(t.statusCode),j=r(t.redirect),_=r([]),C=r([]),T=r([]),A=i(()=>sh(f,_.get())),z=i(()=>sh(p,C.get())),G=i(()=>sh(g,T.get())),k=i(()=>_.get()[0]),M=i(()=>_.get().some(Q=>{var ee;return((ee=f.get(Q))==null?void 0:ee.get().status)==="pending"})),L=i(()=>{var Q;return{locationHref:E.get().href,resolvedLocationHref:(Q=w.get())==null?void 0:Q.href,status:m.get()}}),F=i(()=>({status:m.get(),loadedAt:v.get(),isLoading:y.get(),isTransitioning:S.get(),matches:A.get(),location:E.get(),resolvedLocation:w.get(),statusCode:x.get(),redirect:j.get()})),X=Hl(64);function ne(Q){let ee=X.get(Q);return ee||(ee=i(()=>{const ge=_.get();for(const ae of ge){const D=f.get(ae);if(D&&D.routeId===Q)return D.get()}}),X.set(Q,ee)),ee}const se={status:m,loadedAt:v,isLoading:y,isTransitioning:S,location:E,resolvedLocation:w,statusCode:x,redirect:j,matchesId:_,pendingIds:C,cachedIds:T,matches:A,pendingMatches:z,cachedMatches:G,firstId:k,hasPending:M,matchRouteDeps:L,matchStores:f,pendingMatchStores:p,cachedMatchStores:g,__store:F,getRouteMatchStore:ne,setMatches:te,setPending:oe,setCached:P};te(t.matches),d==null||d(se);function te(Q){rh(Q,f,_,r,o)}function oe(Q){rh(Q,p,C,r,o)}function P(Q){rh(Q,g,T,r,o)}return se}function sh(t,a){const r=[];for(const i of a){const o=t.get(i);o&&r.push(o.get())}return r}function rh(t,a,r,i,o){const d=t.map(p=>p.id),f=new Set(d);o(()=>{for(const p of a.keys())f.has(p)||a.delete(p);for(const p of t){const g=a.get(p.id);if(!g){const m=i(p);m.routeId=p.routeId,a.set(p.id,m);continue}g.routeId=p.routeId,g.get()!==p&&g.set(p)}oj(r.get(),d)||r.set(d)})}var bs="__TSR_index",gb="popstate",yb="beforeunload";function Uj(t){let a=t.getLocation();const r=new Set,i=f=>{a=t.getLocation(),r.forEach(p=>p({location:a,action:f}))},o=f=>{t.notifyOnIndexChange??!0?i(f):a=t.getLocation()},d=async({task:f,navigateOpts:p,...g})=>{var y,S;if((p==null?void 0:p.ignoreBlocker)??!1){f();return}const m=((y=t.getBlockers)==null?void 0:y.call(t))??[],v=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&m.length&&v)for(const E of m){const w=Jc(g.path,g.state);if(await E.blockerFn({currentLocation:a,nextLocation:w,action:g.type})){(S=t.onBlocked)==null||S.call(t);return}}f()};return{get location(){return a},get length(){return t.getLength()},subscribers:r,subscribe:f=>(r.add(f),()=>{r.delete(f)}),push:(f,p,g)=>{const m=a.state[bs];p=vb(m+1,p),d({task:()=>{t.pushState(f,p),i({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:f,state:p})},replace:(f,p,g)=>{const m=a.state[bs];p=vb(m,p),d({task:()=>{t.replaceState(f,p),i({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:f,state:p})},go:(f,p)=>{d({task:()=>{t.go(f),o({type:"GO",index:f})},navigateOpts:p,type:"GO"})},back:f=>{d({task:()=>{t.back((f==null?void 0:f.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:f,type:"BACK"})},forward:f=>{d({task:()=>{t.forward((f==null?void 0:f.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:f,type:"FORWARD"})},canGoBack:()=>a.state[bs]!==0,createHref:f=>t.createHref(f),block:f=>{var g;if(!t.setBlockers)return()=>{};const p=((g=t.getBlockers)==null?void 0:g.call(t))??[];return t.setBlockers([...p,f]),()=>{var v,y;const m=((v=t.getBlockers)==null?void 0:v.call(t))??[];(y=t.setBlockers)==null||y.call(t,m.filter(S=>S!==f))}},flush:()=>{var f;return(f=t.flush)==null?void 0:f.call(t)},destroy:()=>{var f;return(f=t.destroy)==null?void 0:f.call(t)},notify:i}}function vb(t,a){a||(a={});const r=pp();return{...a,key:r,__TSR_key:r,[bs]:t}}function Pj(t){var M,L;const a=typeof document<"u"?window:void 0,r=a.history.pushState,i=a.history.replaceState;let o=[];const d=()=>o,f=F=>o=F,p=(F=>F),g=(()=>Jc(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((M=a.history.state)!=null&&M.__TSR_key)&&!((L=a.history.state)!=null&&L.key)){const F=pp();a.history.replaceState({[bs]:0,key:F,__TSR_key:F},"")}let m=g(),v,y=!1,S=!1,E=!1,w=!1;const x=()=>m;let j,_;const C=()=>{j&&(k._ignoreSubscribers=!0,(j.isPush?a.history.pushState:a.history.replaceState)(j.state,"",j.href),k._ignoreSubscribers=!1,j=void 0,_=void 0,v=void 0)},T=(F,X,ne)=>{const se=p(X);_||(v=m),m=Jc(X,ne),j={href:se,state:ne,isPush:(j==null?void 0:j.isPush)||F==="push"},_||(_=Promise.resolve().then(()=>C()))},A=F=>{m=g(),k.notify({type:F})},z=async()=>{if(S){S=!1;return}const F=g(),X=F.state[bs]-m.state[bs],ne=X===1,se=X===-1,te=!ne&&!se||y;y=!1;const oe=te?"GO":se?"BACK":"FORWARD",P=te?{type:"GO",index:X}:{type:se?"BACK":"FORWARD"};if(E)E=!1;else{const Q=d();if(typeof document<"u"&&Q.length){for(const ee of Q)if(await ee.blockerFn({currentLocation:m,nextLocation:F,action:oe})){S=!0,a.history.go(1),k.notify(P);return}}}m=g(),k.notify(P)},G=F=>{if(w){w=!1;return}let X=!1;const ne=d();if(typeof document<"u"&&ne.length)for(const se of ne){const te=se.enableBeforeUnload??!0;if(te===!0){X=!0;break}if(typeof te=="function"&&te()===!0){X=!0;break}}if(X)return F.preventDefault(),F.returnValue=""},k=Uj({getLocation:x,getLength:()=>a.history.length,pushState:(F,X)=>T("push",F,X),replaceState:(F,X)=>T("replace",F,X),back:F=>(F&&(E=!0),w=!0,a.history.back()),forward:F=>{F&&(E=!0),w=!0,a.history.forward()},go:F=>{y=!0,a.history.go(F)},createHref:F=>p(F),flush:C,destroy:()=>{a.history.pushState=r,a.history.replaceState=i,a.removeEventListener(yb,G,{capture:!0}),a.removeEventListener(gb,z)},onBlocked:()=>{v&&m!==v&&(m=v)},getBlockers:d,setBlockers:f,notifyOnIndexChange:!1});return a.addEventListener(yb,G,{capture:!0}),a.addEventListener(gb,z),a.history.pushState=function(...F){const X=r.apply(a.history,F);return k._ignoreSubscribers||A("PUSH"),X},a.history.replaceState=function(...F){const X=i.apply(a.history,F);return k._ignoreSubscribers||A("REPLACE"),X},k}function Hj(t){let a=t.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function Jc(t,a){const r=Hj(t),i=r.indexOf("#"),o=r.indexOf("?"),d=pp();return{href:r,pathname:r.substring(0,i>0?o>0?Math.min(i,o):i:o>0?o:r.length),hash:i>-1?r.substring(i):"",search:o>-1?r.slice(o,i===-1?void 0:i):"",state:a||{[bs]:0,key:d,__TSR_key:d}}}function pp(){return(Math.random()+1).toString(36).substring(7)}function ui(t,a){const r=a,i=t;return{fromLocation:r,toLocation:i,pathChanged:(r==null?void 0:r.pathname)!==i.pathname,hrefChanged:(r==null?void 0:r.href)!==i.href,hashChanged:(r==null?void 0:r.hash)!==i.hash}}const kh=new WeakMap;var Fj=class{constructor(t,a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=r=>r(),this.update=r=>{var v;const i=this.options,o=this.basepath??(i==null?void 0:i.basepath)??"/",d=this.basepath===void 0,f=i==null?void 0:i.rewrite;if(this.options={...i,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Sj(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Pj()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=Hl(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=Bj(qj(this.latestLocation),y),e2(this)}let p=!1;const g=this.options.basepath??"/",m=this.options.rewrite;if(d||o!==g||f!==m){this.basepath=g;const y=[],S=s0(g);S&&S!=="/"&&y.push(zj({basepath:g})),m&&y.push(m),this.rewrite=y.length===0?void 0:y.length===1?y[0]:Lj(y),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const r=mj(this.routeTree,this.options.caseSensitive,(i,o)=>{i.init({originalIndex:o})});return this.options.routeMasks&&uj(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,i)=>{const o={eventType:r,fn:i};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=r=>{this.subscribers.forEach(i=>{i.eventType===r.type&&i.fn(r)})},this.parseLocation=(r,i)=>{const o=({pathname:g,search:m,hash:v,href:y,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const _=this.options.parseSearch(m),C=this.options.stringifySearch(_);return{href:g+C+v,publicHref:g+C+v,pathname:kl(g).path,external:!1,searchStr:C,search:Vs(i==null?void 0:i.search,_),hash:kl(v.slice(1)).path,state:Xs(i==null?void 0:i.state,S)}}const E=new URL(y,this.origin),w=Th(this.rewrite,E),x=this.options.parseSearch(w.search),j=this.options.stringifySearch(x);return w.search=j,{href:w.href.replace(w.origin,""),publicHref:y,pathname:kl(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:j,search:Vs(i==null?void 0:i.search,x),hash:kl(w.hash.slice(1)).path,state:Xs(i==null?void 0:i.state,S)}},d=o(r),{__tempLocation:f,__tempKey:p}=d.state;if(f&&(!p||p===this.tempLocationKey)){const g=o(f);return g.state.key=d.state.key,g.state.__TSR_key=d.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:d}}return d},this.resolvePathWithBase=(r,i)=>xj({base:r,to:i.includes("//")?hp(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,i,o)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:i},o):this.matchRoutesInternal(r,i),this.getMatchedRoutes=r=>Ij({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const i=this.getMatch(r);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{var o;if(this.stores.pendingMatchStores.has(r))return;const i=(o=this.stores.matchStores.get(r))==null?void 0:o.get();i&&(i.status==="pending"||i.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const i=(d={})=>{var X,ne;const f=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(f);d.from;const g=d.unsafeRelative==="path"?f.pathname:d.from??p.fullPath,m=d.to?`${d.to}`:void 0,v=p.search,y=Object.assign(Object.create(null),p.params),S=(m==null?void 0:m.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),E=m?this.resolvePathWithBase(S,m):S,w=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?y:Object.assign(y,$s(d.params,y)),x=this.routesByPath[ja(E)];let j;if(x)j=this.getRouteBranch(x);else if(E.includes("$"))j=[];else{const se=this.getMatchedRoutes(E);j=se.matchedRoutes,this.options.notFoundRoute&&(!se.foundRoute||se.foundRoute.path!=="/"&&se.routeParams["**"])&&(j=[...j,this.options.notFoundRoute])}if(j.length&&Wx(w))for(const se of j){const te=((X=se.options.params)==null?void 0:X.stringify)??se.options.stringifyParams;if(te)try{Object.assign(w,te(w))}catch{}}const _=r.leaveParams?E:kl(cb({path:E,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=v;if(r._includeValidateSearch&&((ne=this.options.search)!=null&&ne.strict)){const se={};j.forEach(te=>{if(te.options.validateSearch)try{Object.assign(se,Ic(te.options.validateSearch,{...se,...C}))}catch{}}),C=se}C=Vj({search:C,dest:d,destRoutes:j,_includeValidateSearch:r._includeValidateSearch}),C=Vs(v,C);const T=this.options.stringifySearch(C),A=d.hash===!0?f.hash:d.hash?$s(d.hash,f.hash):void 0,z=A?`#${A}`:"";let G=d.state===!0?f.state:d.state?$s(d.state,f.state):{};G=Xs(f.state,G);const k=`${_}${T}${z}`;let M,L,F=!1;if(this.rewrite){const se=new URL(k,this.origin),te=c0(this.rewrite,se);M=se.href.replace(se.origin,""),te.origin!==this.origin?(L=te.href,F=!0):L=te.pathname+te.search+te.hash}else M=lj(k),L=M;return{publicHref:L,href:M,pathname:_,search:C,searchStr:T,state:G,hash:A??"",external:F,unmaskOnReload:d.unmaskOnReload}},o=(d={},f)=>{const p=i(d);let g=f?i(f):void 0;if(!g){const m=Object.create(null);if(this.options.routeMasks){const v=dj(p.pathname,this.processedTree);if(v){Object.assign(m,v.rawParams);const{from:y,params:S,...E}=v.route,w=S===!1||S===null?Object.create(null):(S??!0)===!0?m:Object.assign(m,$s(S,m));f={from:r.from,...E,params:w},g=i(f)}}}return g&&(p.maskedLocation=g),p};return r.mask?o(r,{from:r.from,...r.mask}):o(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:i,...o})=>{let d;const f=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const v=or(o.state,this.latestLocation.state);return m.forEach(y=>{delete o.state[y]}),v},p=ja(this.latestLocation.href)===ja(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=_i(()=>{g==null||g.resolve(),g=void 0}),p&&f())this.load();else{let{maskedLocation:m,hashScrollIntoView:v,...y}=o;m&&(y={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,d=o.replace?"REPLACE":"PUSH",this.history[d==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(d?{action:{type:d}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:i,hashScrollIntoView:o,viewTransition:d,ignoreBlocker:f,href:p,...g}={})=>{if(p){const y=this.history.location.state.__TSR_index,S=Jc(p,{__TSR_index:r?y:y+1}),E=new URL(S.pathname,this.origin);g.to=Th(this.rewrite,E).pathname,g.search=this.options.parseSearch(S.search),g.hash=S.hash.slice(1)}const m=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const v=this.commitLocation({...m,viewTransition:d,replace:r,resetScroll:i,hashScrollIntoView:o,ignoreBlocker:f});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:r,reloadDocument:i,href:o,publicHref:d,...f})=>{var g,m;let p=!1;if(o)try{new URL(`${o}`),p=!0}catch{}if(p&&!i&&(i=!0),i){if(r!==void 0||!o){const y=this.buildLocation({to:r,...f});o=o??y.publicHref,d=d??y.publicHref}const v=!p&&d?d:o;if(Kc(v,this.protocolAllowlist))return Promise.resolve();if(!f.ignoreBlocker){const y=((m=(g=this.history).getBlockers)==null?void 0:m.call(g))??[];for(const S of y)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...f,href:o,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(o=>!r.some(d=>d.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(r),this.stores.setCached(i)})},this.load=async r=>{var m;const i=(m=r==null?void 0:r.action)==null?void 0:m.type;let o,d,f;const p=this.stores.resolvedLocation.get()??this.stores.location.get();for(f=new Promise(v=>{this.startTransition(async()=>{var y;try{this.beforeLoad(),i?kh.set(this.latestLocation,i):kh.delete(this.latestLocation);const S=this.latestLocation,E=ui(S,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...E}),this.emit({type:"onBeforeLoad",...E}),await pb({router:this,sync:r==null?void 0:r.sync,forceStaleReload:p.href===S.href,matches:this.stores.pendingMatches.get(),location:S,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var C,T;let w=null,x=null,j=null,_=null;this.batch(()=>{const A=this.stores.pendingMatches.get(),z=A.length,G=this.stores.matches.get();w=z?G.filter(L=>!this.stores.pendingMatchStores.has(L.id)):null;const k=new Set;for(const L of this.stores.pendingMatchStores.values())L.routeId&&k.add(L.routeId);const M=new Set;for(const L of this.stores.matchStores.values())L.routeId&&M.add(L.routeId);x=z?G.filter(L=>!k.has(L.routeId)):null,j=z?A.filter(L=>!M.has(L.routeId)):null,_=z?A.filter(L=>M.has(L.routeId)):G,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),z&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(L=>L.status!=="error"&&L.status!=="notFound"&&L.status!=="redirected")]),this.clearExpiredCache())});for(const[A,z]of[[x,"onLeave"],[j,"onEnter"],[_,"onStay"]])if(A)for(const G of A)(T=(C=this.looseRoutesById[G.routeId].options)[z])==null||T.call(C,G)})})}})}catch(S){Zt(S)?(o=S,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Lt(S)&&(d=S);const E=o?o.status:d?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(E),this.stores.redirect.set(o)})}this.latestLoadPromise===f&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(v=>v.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=r=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,f=this.stores.resolvedLocation.get(),p=typeof i.types=="function"?i.types(ui(d,f)):i.types;if(p===!1){r();return}o={update:r,types:p}}else o=r;document.startViewTransition(o)}else r()},this.updateMatch=(r,i)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(r);if(o){o.set(i);return}const d=this.stores.matchStores.get(r);if(d){d.set(i);return}const f=this.stores.cachedMatchStores.get(r);if(f){const p=i(f.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(g=>g.filter(m=>m!==r)):f.set(p)}})},this.getMatch=r=>{var i,o,d;return((i=this.stores.cachedMatchStores.get(r))==null?void 0:i.get())??((o=this.stores.pendingMatchStores.get(r))==null?void 0:o.get())??((d=this.stores.matchStores.get(r))==null?void 0:d.get())},this.invalidate=r=>{const i=o=>{var d;return((d=r==null?void 0:r.filter)==null?void 0:d.call(r,o))??!0?{...o,invalid:!0,...r!=null&&r.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const i=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const o=r.options._builtLocation??this.buildLocation(r.options),d=this.getParsedLocationHref(o);r.options.href=d,r.headers.set("Location",d)}else if(i)try{const o=new URL(i);if(this.origin&&o.origin===this.origin){const d=o.pathname+o.search+o.hash;r.options.href=d,r.headers.set("Location",d)}}catch{}if(r.options.href&&!r.options._builtLocation&&Kc(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const i=r==null?void 0:r.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!i(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),i=o=>{const d=this.looseRoutesById[o.routeId];if(!d.options.loader)return!0;const f=(o.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:r-o.updatedAt>=f};this.clearCache({filter:i})},this.loadRouteChunk=Fl,this.preloadRoute=async r=>{const i=r._builtLocation??this.buildLocation(r);let o=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:r});const d=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),f=new Set([...d,...this.stores.cachedIds.get()]),p=o.filter(g=>!f.has(g.id));if(p.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...p])}try{return o=await pb({router:this,matches:o,location:i,preload:!0,updateMatch:(g,m)=>{d.has(g)?o=o.map(v=>v.id===g?m(v):v):this.updateMatch(g,m)}}),o}catch(g){if(Zt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:i});Lt(g)||console.error(g);return}},this.matchRoute=(r,i)=>{const o={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},d=this.buildLocation(o);if(i!=null&&i.pending&&this.stores.status.get()!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=fj(d.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!p||r.params&&!or(p.rawParams,r.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?or(f.search,d.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Rj,parseSearch:t.parseSearch??jj,protocolAllowlist:t.protocolAllowlist??ij}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:a,processedTree:r}){this.routesById=t,this.routesByPath=a,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(t){let a=this.routeBranchCache.get(t);return a||(a=n0(t),this.routeBranchCache.set(t,a)),a}get looseRoutesById(){return this.routesById}getParentContext(t){return t!=null&&t.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,a){var v,y;const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:o}=r;let{matchedRoutes:d}=r,f=!1;(i?i.path!=="/"&&o["**"]:ja(t.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:f=!0);const p=f?Yj(this.options.notFoundMode,d):void 0,g=new Array(d.length),m=new Map;for(const S of this.stores.matchStores.values())S.routeId&&m.set(S.routeId,S.get());for(let S=0;S<d.length;S++){const E=d[S],w=g[S-1];let x,j,_;{const te=(w==null?void 0:w.search)??t.search,oe=(w==null?void 0:w._strictSearch)??void 0;try{const P=Ic(E.options.validateSearch,{...te})??void 0;x={...te,...P},j={...oe,...P},_=void 0}catch(P){let Q=P;if(P instanceof eu||(Q=new eu(P.message,{cause:P})),a!=null&&a.throwOnError)throw Q;x=te,j={},_=Q}}const C=((y=(v=E.options).loaderDeps)==null?void 0:y.call(v,{search:x}))??"",T=C?JSON.stringify(C):"",{interpolatedPath:A,usedParams:z}=cb({path:E.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),G=E.id+A+T,k=this.getMatch(G),M=m.get(E.id),L=(k==null?void 0:k._strictParams)??z;let F;if(!k)try{bb(E,L)}catch(te){if(Lt(te)||Zt(te)?F=te:F=new Gj(te.message,{cause:te}),a!=null&&a.throwOnError)throw F}Object.assign(o,L);const X=M?"stay":"enter";let ne;if(k)ne={...k,cause:X,params:(M==null?void 0:M.params)??o,_strictParams:L,search:Vs(M?M.search:k.search,x),_strictSearch:j};else{const te=E.options.loader||E.options.beforeLoad||E.lazyFn||o0(E)?"pending":"success";ne={id:G,ssr:E.options.ssr,index:S,routeId:E.id,params:(M==null?void 0:M.params)??o,_strictParams:L,pathname:A,updatedAt:Date.now(),search:M?Vs(M.search,x):x,_strictSearch:j,searchError:void 0,status:te,isFetching:!1,error:void 0,paramsError:F,__routeContext:void 0,_nonReactive:{loadPromise:_i()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:M?Xs(M.loaderDeps,C):C,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:E.options.staticData||{},fullPath:E.fullPath}}a!=null&&a.preload||(ne.globalNotFound=p===E.id),ne.searchError=_;const se=this.getParentContext(w);ne.context={...se,...ne.__routeContext,...ne.__beforeLoadContext},g[S]=ne}for(let S=0;S<g.length;S++){const E=g[S],w=this.looseRoutesById[E.routeId],x=this.getMatch(E.id),j=m.get(E.routeId);if(E.params=j?Vs(j.params,o):o,!x){const _=g[S-1],C=this.getParentContext(_);if(w.options.context){const T={deps:E.loaderDeps,params:E.params,context:C??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:E.cause,abortController:E.abortController,preload:!!E.preload,matches:g,routeId:w.id};E.__routeContext=w.options.context(T)??void 0}E.context={...C,...E.__routeContext,...E.__beforeLoadContext}}}return g}matchRoutesLightweight(t){var m;const{matchedRoutes:a,routeParams:r}=this.getMatchedRoutes(t.pathname),i=Ul(a),o={...t.search};for(const v of a)try{Object.assign(o,Ic(v.options.validateSearch,o))}catch{}const d=Ul(this.stores.matchesId.get()),f=d&&((m=this.stores.matchStores.get(d))==null?void 0:m.get()),p=f&&f.routeId===i.id&&f.pathname===t.pathname;let g;if(p)g=f.params;else{const v=Object.assign(Object.create(null),r);for(const y of a)try{bb(y,v)}catch{}g=v}return{matchedRoutes:a,fullPath:i.fullPath,search:o,params:g}}},eu=class extends Error{},Gj=class extends Error{};function qj(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Ic(t,a){if(t==null)return{};if("~standard"in t){const r=t["~standard"].validate(a);if(r instanceof Promise)throw new eu("Async validation not supported");if(r.issues)throw new eu(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in t?t.parse(a):typeof t=="function"?t(a):{}}function Ij({pathname:t,routesById:a,processedTree:r}){const i=Object.create(null),o=ja(t);let d;const f=hj(o,r,!0);return f&&(d=f.route,Object.assign(i,f.rawParams)),{matchedRoutes:(f==null?void 0:f.branch)||[a.__root__],routeParams:i,foundRoute:d}}function Vj({search:t,dest:a,destRoutes:r,_includeValidateSearch:i}){return Qj(r)(t,a,i??!1)}function Qj(t){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const d of t){if("search"in d.options)(o=d.options.search)!=null&&o.middlewares&&a.middlewares.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const f=({search:p,next:g})=>{let m=p;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(m=d.options.preSearchFilters.reduce((y,S)=>S(y),p));const v=g(m);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((y,S)=>S(y),v):v};a.middlewares.push(f)}if(d.options.validateSearch){const f=({search:p,next:g})=>{const m=g(p);if(!a._includeValidateSearch)return m;try{return{...m,...Ic(d.options.validateSearch,m)??void 0}}catch{return m}};a.middlewares.push(f)}}const r=({search:d})=>{const f=a.dest;return f.search?f.search===!0?d:$s(f.search,d):{}};a.middlewares.push(r);const i=(d,f,p)=>{if(d>=p.length)return f;const g=p[d];return g({search:f,next:v=>i(d+1,v,p)})};return function(f,p,g){return a.dest=p,a._includeValidateSearch=g,i(0,f,a.middlewares)}}function Yj(t,a){if(t!=="root")for(let r=a.length-1;r>=0;r--){const i=a[r];if(i.children)return i.id}return cr}function bb(t,a){var i;const r=((i=t.options.params)==null?void 0:i.parse)??t.options.parseParams;if(r){const o=r(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}function $j(){try{return sessionStorage}catch{return}}const Xj="tsr-scroll-restoration-v1_3",di=$j();function Zj(){try{return JSON.parse((di==null?void 0:di.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function Kj(){try{di==null||di.setItem(Xj,JSON.stringify(rs))}catch{}}const rs=Zj(),xb="data-scroll-restoration-id",Wj=t=>t.state.__TSR_key||t.href;function Jj(t){const a=t.getAttribute(xb);if(a)return`[${xb}="${a}"]`;let r="",i=t,o;for(;o=i.parentNode;){let d=1,f=i;for(;f=f.previousElementSibling;)d++;const p=`${i.localName}:nth-child(${d})`;r=r?`${p} > ${r}`:p,i=o}return r}let Ac=!1;const oi="window";function Oh(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Sb(t){const a=[];for(const r of t){if(r===oi)continue;const i=Oh(r);i&&a.push(i)}return a}function e2(t,a){if(t.options.scrollRestoration&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,Ac=!1;const r=t.options.getScrollRestorationKey||Wj,i=new Map,o=(p,g,m)=>{const v=i.get(p)||{};v.scrollX=g,v.scrollY=m,i.set(p,v)};history.scrollRestoration="manual";const d=p=>{if(!(Ac||!t.isScrollRestoring))if(p.target===document)o(oi,scrollX,scrollY);else{const g=p.target;o(g,g.scrollLeft,g.scrollTop)}},f=p=>{if(!t.isScrollRestoring)return;const g=rs[p]||(rs[p]={});for(const[m,v]of i)m===oi?g[oi]=v:m.isConnected&&(g[Jj(m)]=v)};document.addEventListener("scroll",d,!0),t.subscribe("onBeforeLoad",p=>{p.fromLocation&&f(r(p.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{f(r(t.stores.resolvedLocation.get()??t.stores.location.get())),Kj()}),t.subscribe("onRendered",p=>{var w;const g=t.options.scrollRestorationBehavior,m=t.options.scrollToTopSelectors,v=t.resetNextScroll;let y;if(i.clear(),v||(t.resetNextScroll=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const S=r(p.toLocation),E=p.fromLocation&&r(p.fromLocation);if(t.isScrollRestoring&&E&&E!==S){const x=rs[E];if(x){let j=rs[S];for(const _ in x){if(_===oi){if(v)continue}else{const C=Oh(_);if(!C||v&&m&&(y??(y=Sb(m)),y.includes(C)))continue}j||(j=rs[S]={}),j[_]??(j[_]=x[_])}}}Ac=!0;try{const x=p.toLocation.hash,j=p.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(v){const C=kh.get(p.toLocation),T=x&&j&&(C==="PUSH"||C==="REPLACE"),A=t.isScrollRestoring?rs[S]:void 0;if(A)for(const z in A){const{scrollX:G,scrollY:k}=A[z];if(z===oi){if(T)continue;scrollTo({top:k,left:G,behavior:g}),_=!0}else{const M=Oh(z);M&&(M.scrollLeft=G,M.scrollTop=k)}}if(!_&&!x){const z={top:0,left:0,behavior:g};if(scrollTo(z),m){y??(y=Sb(m));for(const G of y)G.scrollTo(z)}}}!_&&x&&j&&((w=document.getElementById(x))==null||w.scrollIntoView(j))}finally{Ac=!1}})}const t2="Error preloading route! ☝️";var u0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=a=>{var g,m;this.originalIndex=a.originalIndex;const r=this.options,i=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(m=(g=this.options).getParentRoute)==null?void 0:m.call(g),i?this._path=cr:this.parentRoute||Ra();let o=i?cr:r==null?void 0:r.path;o&&o!=="/"&&(o=a0(o));const d=(r==null?void 0:r.id)||o;let f=i?cr:Gc([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);o==="__root__"&&(o="/"),f!=="__root__"&&(f=Gc(["/",f]));const p=f==="__root__"?"/":Gc([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=p,this._to=ja(p)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>Cj({from:this.fullPath,...a}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},n2=class extends u0{constructor(t){super(t)}};function mp(t){const a=t.errorComponent??gp;return u.jsx(a2,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:i})=>r?N.createElement(a,{error:r,reset:i}):t.children})}var a2=class extends N.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,a){const r=t.getResetKey();return a.error&&a.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,a){this.props.onCatch&&this.props.onCatch(t,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function gp({error:t}){const[a,r]=N.useState(!1);return u.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[u.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),u.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(i=>!i),children:a?"Hide Error":"Show Error"})]}),u.jsx("div",{style:{height:".25rem"}}),a?u.jsx("div",{children:u.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?u.jsx("code",{children:t.message}):null})}):null]})}function s2({children:t,fallback:a=null}){return d0()?u.jsx(dr.Fragment,{children:t}):u.jsx(dr.Fragment,{children:a})}function d0(){return dr.useSyncExternalStore(r2,()=>!0,()=>!1)}function r2(){return()=>{}}var f0=N.createContext(null);function pn(t){return N.useContext(f0)}var pu=N.createContext(void 0),i2=N.createContext(void 0),We=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(We||{});function l2({update:t,notify:a,unwatched:r}){return{link:i,unlink:o,propagate:d,checkDirty:f,shallowPropagate:p};function i(m,v,y){const S=v.depsTail;if(S!==void 0&&S.dep===m)return;const E=S!==void 0?S.nextDep:v.deps;if(E!==void 0&&E.dep===m){E.version=y,v.depsTail=E;return}const w=m.subsTail;if(w!==void 0&&w.version===y&&w.sub===v)return;const x=v.depsTail=m.subsTail={version:y,dep:m,sub:v,prevDep:S,nextDep:E,prevSub:w,nextSub:void 0};E!==void 0&&(E.prevDep=x),S!==void 0?S.nextDep=x:v.deps=x,w!==void 0?w.nextSub=x:m.subs=x}function o(m,v=m.sub){const y=m.dep,S=m.prevDep,E=m.nextDep,w=m.nextSub,x=m.prevSub;return E!==void 0?E.prevDep=S:v.depsTail=S,S!==void 0?S.nextDep=E:v.deps=E,w!==void 0?w.prevSub=x:y.subsTail=x,x!==void 0?x.nextSub=w:(y.subs=w)===void 0&&r(y),E}function d(m){let v=m.nextSub,y;e:do{const S=m.sub;let E=S.flags;if(E&60?E&12?E&4?!(E&48)&&g(m,S)?(S.flags=E|40,E&=1):E=0:S.flags=E&-9|32:E=0:S.flags=E|32,E&2&&a(S),E&1){const w=S.subs;if(w!==void 0){const x=(m=w).nextSub;x!==void 0&&(y={value:v,prev:y},v=x);continue}}if((m=v)!==void 0){v=m.nextSub;continue}for(;y!==void 0;)if(m=y.value,y=y.prev,m!==void 0){v=m.nextSub;continue e}break}while(!0)}function f(m,v){let y,S=0,E=!1;e:do{const w=m.dep,x=w.flags;if(v.flags&16)E=!0;else if((x&17)===17){if(t(w)){const j=w.subs;j.nextSub!==void 0&&p(j),E=!0}}else if((x&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(y={value:m,prev:y}),m=w.deps,v=w,++S;continue}if(!E){const j=m.nextDep;if(j!==void 0){m=j;continue}}for(;S--;){const j=v.subs,_=j.nextSub!==void 0;if(_?(m=y.value,y=y.prev):m=j,E){if(t(v)){_&&p(j),v=m.sub;continue}E=!1}else v.flags&=-33;v=m.sub;const C=m.nextDep;if(C!==void 0){m=C;continue e}}return E}while(!0)}function p(m){do{const v=m.sub,y=v.flags;(y&48)===32&&(v.flags=y|16,(y&6)===2&&a(v))}while((m=m.nextSub)!==void 0)}function g(m,v){let y=v.depsTail;for(;y!==void 0;){if(y===m)return!0;y=y.prevDep}return!1}}function o2(t,a,r){var d,f,p;const i=typeof t=="object",o=i?t:void 0;return{next:(d=i?t.next:t)==null?void 0:d.bind(o),error:(f=i?t.error:a)==null?void 0:f.bind(o),complete:(p=i?t.complete:r)==null?void 0:p.bind(o)}}const Mh=[];let Vc=0;const{link:wb,unlink:c2,propagate:u2,checkDirty:h0,shallowPropagate:Eb}=l2({update(t){return t._update()},notify(t){Mh[Dh++]=t,t.flags&=~We.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=We.Mutable|We.Dirty,tu(t))}});let Tc=0,Dh=0,Vn,Lh=0;function p0(t){try{++Lh,t()}finally{--Lh||m0()}}function tu(t){const a=t.depsTail;let r=a!==void 0?a.nextDep:t.deps;for(;r!==void 0;)r=c2(r,t)}function m0(){if(!(Lh>0)){for(;Tc<Dh;){const t=Mh[Tc];Mh[Tc++]=void 0,t.notify()}Tc=0,Dh=0}}function jb(t,a){const r=typeof t=="function",i=t,o={_snapshot:r?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?We.None:We.Mutable,get(){return Vn!==void 0&&wb(o,Vn,Vc),o._snapshot},subscribe(d){const f=o2(d),p={current:!1},g=d2(()=>{var m;o.get(),p.current?(m=f.next)==null||m.call(f,o._snapshot):p.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(d){const f=Vn,p=(a==null?void 0:a.compare)??Object.is;if(r)Vn=o,++Vc,o.depsTail=void 0;else if(d===void 0)return!1;r&&(o.flags=We.Mutable|We.RecursedCheck);try{const g=o._snapshot,m=typeof d=="function"?d(g):d===void 0&&r?i(g):d;return g===void 0||!p(g,m)?(o._snapshot=m,!0):!1}finally{Vn=f,r&&(o.flags&=~We.RecursedCheck),tu(o)}}};return r?(o.flags=We.Mutable|We.Dirty,o.get=function(){const d=o.flags;if(d&We.Dirty||d&We.Pending&&h0(o.deps,o)){if(o._update()){const f=o.subs;f!==void 0&&Eb(f)}}else d&We.Pending&&(o.flags=d&~We.Pending);return Vn!==void 0&&wb(o,Vn,Vc),o._snapshot}):o.set=function(d){if(o._update(d)){const f=o.subs;f!==void 0&&(u2(f),Eb(f),m0())}},o}function d2(t){const a=()=>{const i=Vn;Vn=r,++Vc,r.depsTail=void 0,r.flags=We.Watching|We.RecursedCheck;try{return t()}finally{Vn=i,r.flags&=~We.RecursedCheck,tu(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:We.Watching|We.RecursedCheck,notify(){const i=this.flags;i&We.Dirty||i&We.Pending&&h0(this.deps,this)?a():this.flags=We.Watching},stop(){this.flags=We.None,this.depsTail=void 0,tu(this)}};return a(),r}var ih={exports:{}},lh={},oh={exports:{}},ch={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* use-sync-external-store-shim.production.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var Rb;function f2(){if(Rb)return ch;Rb=1;var t=eo();function a(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var r=typeof Object.is=="function"?Object.is:a,i=t.useState,o=t.useEffect,d=t.useLayoutEffect,f=t.useDebugValue;function p(y,S){var E=S(),w=i({inst:{value:E,getSnapshot:S}}),x=w[0].inst,j=w[1];return d(function(){x.value=E,x.getSnapshot=S,g(x)&&j({inst:x})},[y,E,S]),o(function(){return g(x)&&j({inst:x}),y(function(){g(x)&&j({inst:x})})},[y]),f(E),E}function g(y){var S=y.getSnapshot;y=y.value;try{var E=S();return!r(y,E)}catch{return!0}}function m(y,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return ch.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,ch}var Nb;function h2(){return Nb||(Nb=1,oh.exports=f2()),oh.exports}/**
|
|
58
|
-
* @license React
|
|
59
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var _b;function p2(){if(_b)return lh;_b=1;var t=eo(),a=h2();function r(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var i=typeof Object.is=="function"?Object.is:r,o=a.useSyncExternalStore,d=t.useRef,f=t.useEffect,p=t.useMemo,g=t.useDebugValue;return lh.useSyncExternalStoreWithSelector=function(m,v,y,S,E){var w=d(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=p(function(){function _(G){if(!C){if(C=!0,T=G,G=S(G),E!==void 0&&x.hasValue){var k=x.value;if(E(k,G))return A=k}return A=G}if(k=A,i(T,G))return k;var M=S(G);return E!==void 0&&E(k,M)?(T=G,k):(T=G,A=M)}var C=!1,T,A,z=y===void 0?null:y;return[function(){return _(v())},z===null?void 0:function(){return _(z())}]},[v,y,S,E]);var j=o(m,w[0],w[1]);return f(function(){x.hasValue=!0,x.value=j},[j]),g(j),j},lh}var Cb;function m2(){return Cb||(Cb=1,ih.exports=p2()),ih.exports}var g2=m2();function y2(t,a){return t===a}function Kt(t,a,r=y2){const i=N.useCallback(f=>{if(!t)return()=>{};const{unsubscribe:p}=t.subscribe(f);return p},[t]),o=N.useCallback(()=>t==null?void 0:t.get(),[t]);return g2.useSyncExternalStoreWithSelector(i,o,o,a,r)}var v2={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function mr(t){const a=pn(),r=N.useContext(t.from?i2:pu),i=t.from??r,o=i?t.from?a.stores.getRouteMatchStore(i):a.stores.matchStores.get(i):void 0,d=N.useRef(void 0);return Kt(o??v2,f=>{if((t.shouldThrow??!0)&&!f&&Ra(),f===void 0)return;const p=t.select?t.select(f):f;if(t.structuralSharing??a.options.defaultStructuralSharing){const g=Xs(d.current,p);return d.current=g,g}return p})}function g0(t){return mr({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.loaderData):a.loaderData})}function y0(t){const{select:a,...r}=t;return mr({...r,select:i=>a?a(i.loaderDeps):i.loaderDeps})}function mu(t){return mr({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:a=>{const r=t.strict===!1?a.params:a._strictParams;return t.select?t.select(r):r}})}function to(t){return mr({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.search):a.search})}function yp(t){const a=pn();return N.useCallback(r=>a.navigate({...r,from:r.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,a])}function v0(t){return mr({...t,select:a=>t.select?t.select(a.context):a.context})}var gu=Xx();const b2=up(gu);function x2(t,a){const r=pn(),i=nj(a),{activeProps:o,inactiveProps:d,activeOptions:f,to:p,preload:g,preloadDelay:m,preloadIntentProximity:v,hashScrollIntoView:y,replace:S,startTransition:E,resetScroll:w,viewTransition:x,children:j,target:_,disabled:C,style:T,className:A,onClick:z,onBlur:G,onFocus:k,onMouseEnter:M,onMouseLeave:L,onTouchStart:F,ignoreBlocker:X,params:ne,search:se,hash:te,state:oe,mask:P,reloadDocument:Q,unsafeRelative:ee,from:ge,_fromLocation:ae,...D}=t,Z=d0(),re=N.useMemo(()=>t,[r,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),ie=Kt(r.stores.location,qe=>qe,(qe,St)=>qe.href===St.href),le=N.useMemo(()=>{const qe={_fromLocation:ie,...re};return r.buildLocation(qe)},[r,ie,re]),he=le.maskedLocation?le.maskedLocation.publicHref:le.publicHref,xe=le.maskedLocation?le.maskedLocation.external:le.external,Oe=N.useMemo(()=>N2(he,xe,r.history,C),[C,xe,he,r.history]),ye=N.useMemo(()=>{if(Oe!=null&&Oe.external)return Kc(Oe.href,r.protocolAllowlist)?void 0:Oe.href;if(!_2(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),Kc(p,r.protocolAllowlist)?void 0:p}catch{}},[p,Oe,r.protocolAllowlist]),zt=N.useMemo(()=>{if(ye)return!1;if(f!=null&&f.exact){if(!bj(ie.pathname,le.pathname,r.basepath))return!1}else{const qe=Wc(ie.pathname,r.basepath),St=Wc(le.pathname,r.basepath);if(!(qe.startsWith(St)&&(qe.length===St.length||qe[St.length]==="/")))return!1}return((f==null?void 0:f.includeSearch)??!0)&&!or(ie.search,le.search,{partial:!(f!=null&&f.exact),ignoreUndefined:!(f!=null&&f.explicitUndefined)})?!1:f!=null&&f.includeHash?Z&&ie.hash===le.hash:!0},[f==null?void 0:f.exact,f==null?void 0:f.explicitUndefined,f==null?void 0:f.includeHash,f==null?void 0:f.includeSearch,ie,ye,Z,le.hash,le.pathname,le.search,r.basepath]),xt=zt?$s(o,{})??S2:uh,At=zt?uh:$s(d,{})??uh,Bt=[A,xt.className,At.className].filter(Boolean).join(" "),mt=(T||xt.style||At.style)&&{...T,...xt.style,...At.style},[Ns,Oa]=N.useState(!1),vr=N.useRef(!1),_n=t.reloadDocument||ye?!1:g??r.options.defaultPreload,mn=m??r.options.defaultPreloadDelay??0,Cn=N.useCallback(()=>{r.preloadRoute({...re,_builtLocation:le}).catch(qe=>{console.warn(qe),console.warn(t2)})},[r,re,le]);tj(i,N.useCallback(qe=>{qe!=null&&qe.isIntersecting&&Cn()},[Cn]),R2,{disabled:!!C||_n!=="viewport"}),N.useEffect(()=>{vr.current||!C&&_n==="render"&&(Cn(),vr.current=!0)},[C,Cn,_n]);const zi=qe=>{const St=qe.currentTarget.getAttribute("target"),Pn=_!==void 0?_:St;if(!C&&!C2(qe)&&!qe.defaultPrevented&&(!Pn||Pn==="_self")&&qe.button===0){qe.preventDefault(),gu.flushSync(()=>{Oa(!0)});const br=r.subscribe("onResolved",()=>{br(),Oa(!1)});r.navigate({...re,replace:S,resetScroll:w,hashScrollIntoView:y,startTransition:E,viewTransition:x,ignoreBlocker:X})}};if(ye)return{...D,ref:i,href:ye,...j&&{children:j},..._&&{target:_},...C&&{disabled:C},...T&&{style:T},...A&&{className:A},...z&&{onClick:z},...G&&{onBlur:G},...k&&{onFocus:k},...M&&{onMouseEnter:M},...L&&{onMouseLeave:L},...F&&{onTouchStart:F}};const oo=qe=>{if(C||_n!=="intent")return;if(!mn){Cn();return}const St=qe.currentTarget;if(Ml.has(St))return;const Pn=setTimeout(()=>{Ml.delete(St),Cn()},mn);Ml.set(St,Pn)},Ou=qe=>{C||_n!=="intent"||Cn()},Tt=qe=>{if(C||!_n||!mn)return;const St=qe.currentTarget,Pn=Ml.get(St);Pn&&(clearTimeout(Pn),Ml.delete(St))};return{...D,...xt,...At,href:Oe==null?void 0:Oe.href,ref:i,onClick:si([z,zi]),onBlur:si([G,Tt]),onFocus:si([k,oo]),onMouseEnter:si([M,oo]),onMouseLeave:si([L,Tt]),onTouchStart:si([F,Ou]),disabled:!!C,target:_,...mt&&{style:mt},...Bt&&{className:Bt},...C&&w2,...zt&&E2,...Z&&Ns&&j2}}var uh={},S2={className:"active"},w2={role:"link","aria-disabled":!0},E2={"data-status":"active","aria-current":"page"},j2={"data-transitioning":"transitioning"},Ml=new WeakMap,R2={rootMargin:"100px"},si=t=>a=>{for(const r of t)if(r){if(a.defaultPrevented)return;r(a)}};function N2(t,a,r,i){if(!i)return a?{href:t,external:!0}:{href:r.createHref(t)||"/",external:!1}}function _2(t){if(typeof t!="string")return!1;const a=t.charCodeAt(0);return a===47?t.charCodeAt(1)!==47:a===46}var ht=N.forwardRef((t,a)=>{const{_asChild:r,...i}=t,{type:o,...d}=x2(i,a),f=typeof i.children=="function"?i.children({isActive:d["data-status"]==="active"}):i.children;if(!r){const{disabled:p,...g}=d;return N.createElement("a",g,f)}return N.createElement(r,d,f)});function C2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var A2=class extends u0{constructor(a){super(a),this.useMatch=r=>mr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>v0({...r,from:this.id}),this.useSearch=r=>to({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>mu({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>y0({...r,from:this.id}),this.useLoaderData=r=>g0({...r,from:this.id}),this.useNavigate=()=>yp({from:this.fullPath}),this.Link=dr.forwardRef((r,i)=>u.jsx(ht,{ref:i,from:this.fullPath,...r}))}};function T2(t){return new A2(t)}function k2(){return t=>M2(t)}var O2=class extends n2{constructor(t){super(t),this.useMatch=a=>mr({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>v0({...a,from:this.id}),this.useSearch=a=>to({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>mu({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>y0({...a,from:this.id}),this.useLoaderData=a=>g0({...a,from:this.id}),this.useNavigate=()=>yp({from:this.fullPath}),this.Link=dr.forwardRef((a,r)=>u.jsx(ht,{ref:r,from:this.fullPath,...a}))}};function M2(t){return new O2(t)}function zn(t){return new D2(t,{silent:!0}).createRoute}var D2=class{constructor(t,a){this.path=t,this.createRoute=r=>{const i=T2(r);return i.isRoot=!1,i},this.silent=a==null?void 0:a.silent}};function L2(t){const a=pn(),r=`not-found-${Kt(a.stores.location,i=>i.pathname)}-${Kt(a.stores.status,i=>i)}`;return u.jsx(mp,{getResetKey:()=>r,onCatch:(i,o)=>{var d;if(Lt(i))(d=t.onCatch)==null||d.call(t,i,o);else throw i},errorComponent:({error:i})=>{var o;if(Lt(i))return(o=t.fallback)==null?void 0:o.call(t,i);throw i},children:t.children})}function z2(){return u.jsx("p",{children:"Not Found"})}function ci(t){return u.jsx(u.Fragment,{children:t.children})}function b0(t,a,r){return a.options.notFoundComponent?u.jsx(a.options.notFoundComponent,{...r}):t.options.defaultNotFoundComponent?u.jsx(t.options.defaultNotFoundComponent,{...r}):u.jsx(z2,{})}function B2(t){return null}function U2(){return B2(pn()),null}var x0=N.memo(function({matchId:a}){const r=pn(),i=r.stores.matchStores.get(a);i||Ra();const o=Kt(r.stores.loadedAt,f=>f),d=Kt(i,f=>f);return u.jsx(P2,{router:r,matchId:a,resetKey:o,matchState:N.useMemo(()=>{var g;const f=d.routeId,p=(g=r.routesById[f].parentRoute)==null?void 0:g.id;return{routeId:f,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:p}},[d._displayPending,d.routeId,d.ssr,r.routesById])})});function P2({router:t,matchId:a,resetKey:r,matchState:i}){var w,x;const o=t.routesById[i.routeId],d=o.options.pendingComponent??t.options.defaultPendingComponent,f=d?u.jsx(d,{}):null,p=o.options.errorComponent??t.options.defaultErrorComponent,g=o.options.onCatch??t.options.defaultOnCatch,m=o.isRoot?o.options.notFoundComponent??((w=t.options.notFoundRoute)==null?void 0:w.options.component):o.options.notFoundComponent,v=i.ssr===!1||i.ssr==="data-only",y=(!o.isRoot||o.options.wrapInSuspense||v)&&(o.options.wrapInSuspense??d??(((x=o.options.errorComponent)==null?void 0:x.preload)||v))?N.Suspense:ci,S=p?mp:ci,E=m?L2:ci;return u.jsxs(o.isRoot?o.options.shellComponent??ci:ci,{children:[u.jsx(pu.Provider,{value:a,children:u.jsx(y,{fallback:f,children:u.jsx(S,{getResetKey:()=>r,errorComponent:p||gp,onCatch:(j,_)=>{if(Lt(j))throw j.routeId??(j.routeId=i.routeId),j;g==null||g(j,_)},children:u.jsx(E,{fallback:j=>{if(j.routeId??(j.routeId=i.routeId),!m||j.routeId&&j.routeId!==i.routeId||!j.routeId&&!o.isRoot)throw j;return N.createElement(m,j)},children:v||i._displayPending?u.jsx(s2,{fallback:f,children:u.jsx(Ab,{matchId:a})}):u.jsx(Ab,{matchId:a})})})})}),i.parentRouteId===cr?u.jsxs(u.Fragment,{children:[u.jsx(H2,{resetKey:r}),t.options.scrollRestoration&&Zx?u.jsx(U2,{}):null]}):null]})}function H2({resetKey:t}){const a=pn(),r=N.useRef(void 0);return zl(()=>{const i=a.latestLocation.href;(r.current===void 0||r.current!==i)&&(a.emit({type:"onRendered",...ui(a.stores.location.get(),a.stores.resolvedLocation.get())}),r.current=i)},[a.latestLocation.state.__TSR_key,t,a]),null}var Ab=N.memo(function({matchId:a}){const r=pn(),i=(v,y)=>{var S;return((S=r.getMatch(v.id))==null?void 0:S._nonReactive[y])??v._nonReactive[y]},o=r.stores.matchStores.get(a);o||Ra();const d=Kt(o,v=>v),f=d.routeId,p=r.routesById[f],g=N.useMemo(()=>{var y;const v=(y=r.routesById[f].options.remountDeps??r.options.defaultRemountDeps)==null?void 0:y({routeId:f,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return v?JSON.stringify(v):void 0},[f,d.loaderDeps,d._strictParams,d._strictSearch,r.options.defaultRemountDeps,r.routesById]),m=N.useMemo(()=>{const v=p.options.component??r.options.defaultComponent;return v?u.jsx(v,{},g):u.jsx(yu,{})},[g,p.options.component,r.options.defaultComponent]);if(d._displayPending)throw i(d,"displayPendingPromise");if(d._forcePending)throw i(d,"minPendingPromise");if(d.status==="pending"){const v=p.options.pendingMinMs??r.options.defaultPendingMinMs;if(v){const y=r.getMatch(d.id);if(y&&!y._nonReactive.minPendingPromise){const S=_i();y._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),y._nonReactive.minPendingPromise=void 0},v)}}throw i(d,"loadPromise")}if(d.status==="notFound")return Lt(d.error)||Ra(),b0(r,p,d.error);if(d.status==="redirected")throw Zt(d.error)||Ra(),i(d,"loadPromise");if(d.status==="error")throw d.error;return m}),yu=N.memo(function(){const a=pn(),r=N.useContext(pu);let i,o=!1,d;{const m=r?a.stores.matchStores.get(r):void 0;[i,o]=Kt(m,v=>[v==null?void 0:v.routeId,(v==null?void 0:v.globalNotFound)??!1]),d=Kt(a.stores.matchesId,v=>v[v.findIndex(y=>y===r)+1])}const f=i?a.routesById[i]:void 0,p=a.options.defaultPendingComponent?u.jsx(a.options.defaultPendingComponent,{}):null;if(o)return f||Ra(),b0(a,f,void 0);if(!d)return null;const g=u.jsx(x0,{matchId:d});return i===cr?u.jsx(N.Suspense,{fallback:p,children:g}):g});function F2(){const t=pn(),a=N.useRef({router:t,mounted:!1}),[r,i]=N.useState(!1),o=Kt(t.stores.isLoading,y=>y),d=Kt(t.stores.hasPending,y=>y),f=Jf(o),p=o||r||d,g=Jf(p),m=o||d,v=Jf(m);return t.startTransition=y=>{i(!0),N.startTransition(()=>{y(),i(!1)})},N.useEffect(()=>{const y=t.history.subscribe(t.load),S=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ja(t.latestLocation.publicHref)!==ja(S.publicHref)&&t.commitLocation({...S,replace:!0}),()=>{y()}},[t,t.history]),zl(()=>{if(typeof window<"u"&&t.ssr||a.current.router===t&&a.current.mounted)return;a.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(S){console.error(S)}})()},[t]),zl(()=>{f&&!o&&t.emit({type:"onLoad",...ui(t.stores.location.get(),t.stores.resolvedLocation.get())})},[f,t,o]),zl(()=>{v&&!m&&t.emit({type:"onBeforeRouteMount",...ui(t.stores.location.get(),t.stores.resolvedLocation.get())})},[m,v,t]),zl(()=>{if(g&&!p){const y=ui(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...y}),p0(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[p,g,t]),null}function G2(){const t=pn(),a=t.routesById[cr].options.pendingComponent??t.options.defaultPendingComponent,r=a?u.jsx(a,{}):null,i=u.jsxs(typeof document<"u"&&t.ssr?ci:N.Suspense,{fallback:r,children:[u.jsx(F2,{}),u.jsx(q2,{})]});return t.options.InnerWrap?u.jsx(t.options.InnerWrap,{children:i}):i}function q2(){const t=pn(),a=Kt(t.stores.firstId,o=>o),r=Kt(t.stores.loadedAt,o=>o),i=a?u.jsx(x0,{matchId:a}):null;return u.jsx(pu.Provider,{value:a,children:t.options.disableGlobalCatchBoundary?i:u.jsx(mp,{getResetKey:()=>r,errorComponent:gp,onCatch:void 0,children:i})})}function I2(){const t=pn();return Kt(t.stores.matchRouteDeps,a=>a),N.useCallback(a=>{const{pending:r,caseSensitive:i,fuzzy:o,includeSearch:d,...f}=a;return t.matchRoute(f,{pending:r,caseSensitive:i,fuzzy:o,includeSearch:d})},[t])}var V2=t=>({createMutableStore:jb,createReadonlyStore:jb,batch:p0}),Q2=t=>new Y2(t),Y2=class extends Fj{constructor(t){super(t,V2)}};function $2({router:t,children:a,...r}){Wx(r)&&t.update({...t.options,...r,context:{...t.options.context,...r.context}});const i=u.jsx(f0.Provider,{value:t,children:a});return t.options.Wrap?u.jsx(t.options.Wrap,{children:i}):i}function X2({router:t,...a}){return u.jsx($2,{router:t,...a,children:u.jsx(G2,{})})}var no=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Js,cs,pi,Px,Z2=(Px=class extends no{constructor(){super();ve(this,Js);ve(this,cs);ve(this,pi);ce(this,pi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){U(this,cs)||this.setEventListener(U(this,pi))}onUnsubscribe(){var a;this.hasListeners()||((a=U(this,cs))==null||a.call(this),ce(this,cs,void 0))}setEventListener(a){var r;ce(this,pi,a),(r=U(this,cs))==null||r.call(this),ce(this,cs,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){U(this,Js)!==a&&(ce(this,Js,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof U(this,Js)=="boolean"?U(this,Js):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Js=new WeakMap,cs=new WeakMap,pi=new WeakMap,Px),vp=new Z2,K2={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},us,cp,Hx,W2=(Hx=class{constructor(){ve(this,us,K2);ve(this,cp,!1)}setTimeoutProvider(t){ce(this,us,t)}setTimeout(t,a){return U(this,us).setTimeout(t,a)}clearTimeout(t){U(this,us).clearTimeout(t)}setInterval(t,a){return U(this,us).setInterval(t,a)}clearInterval(t){U(this,us).clearInterval(t)}},us=new WeakMap,cp=new WeakMap,Hx),Ks=new W2;function J2(t){setTimeout(t,0)}var eR=typeof window>"u"||"Deno"in globalThis;function $t(){}function tR(t,a){return typeof t=="function"?t(a):t}function zh(t){return typeof t=="number"&&t>=0&&t!==1/0}function S0(t,a){return Math.max(t+(a||0)-Date.now(),0)}function xs(t,a){return typeof t=="function"?t(a):t}function dn(t,a){return typeof t=="function"?t(a):t}function Tb(t,a){const{type:r="all",exact:i,fetchStatus:o,predicate:d,queryKey:f,stale:p}=t;if(f){if(i){if(a.queryHash!==bp(f,a.options))return!1}else if(!ql(a.queryKey,f))return!1}if(r!=="all"){const g=a.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof p=="boolean"&&a.isStale()!==p||o&&o!==a.state.fetchStatus||d&&!d(a))}function kb(t,a){const{exact:r,status:i,predicate:o,mutationKey:d}=t;if(d){if(!a.options.mutationKey)return!1;if(r){if(Gl(a.options.mutationKey)!==Gl(d))return!1}else if(!ql(a.options.mutationKey,d))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function bp(t,a){return((a==null?void 0:a.queryKeyHashFn)||Gl)(t)}function Gl(t){return JSON.stringify(t,(a,r)=>Uh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function ql(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(r=>ql(t[r],a[r])):!1}var nR=Object.prototype.hasOwnProperty;function w0(t,a,r=0){if(t===a)return t;if(r>500)return a;const i=Ob(t)&&Ob(a);if(!i&&!(Uh(t)&&Uh(a)))return a;const d=(i?t:Object.keys(t)).length,f=i?a:Object.keys(a),p=f.length,g=i?new Array(p):{};let m=0;for(let v=0;v<p;v++){const y=i?v:f[v],S=t[y],E=a[y];if(S===E){g[y]=S,(i?v<d:nR.call(t,y))&&m++;continue}if(S===null||E===null||typeof S!="object"||typeof E!="object"){g[y]=E;continue}const w=w0(S,E,r+1);g[y]=w,w===S&&m++}return d===p&&m===d?t:g}function Bh(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const r in t)if(t[r]!==a[r])return!1;return!0}function Ob(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Uh(t){if(!Mb(t))return!1;const a=t.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Mb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Mb(t){return Object.prototype.toString.call(t)==="[object Object]"}function aR(t){return new Promise(a=>{Ks.setTimeout(a,t)})}function Ph(t,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,a):r.structuralSharing!==!1?w0(t,a):a}function sR(t,a,r=0){const i=[...t,a];return r&&i.length>r?i.slice(1):i}function rR(t,a,r=0){const i=[a,...t];return r&&i.length>r?i.slice(0,-1):i}var xp=Symbol();function E0(t,a){return!t.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!t.queryFn||t.queryFn===xp?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function j0(t,a){return typeof t=="function"?t(...a):!!t}function iR(t,a,r){let i=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=a()),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var Il=(()=>{let t=()=>eR;return{isServer(){return t()},setIsServer(a){t=a}}})();function Hh(){let t,a;const r=new Promise((o,d)=>{t=o,a=d});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}var lR=J2;function oR(){let t=[],a=0,r=p=>{p()},i=p=>{p()},o=lR;const d=p=>{a?t.push(p):o(()=>{r(p)})},f=()=>{const p=t;t=[],p.length&&o(()=>{i(()=>{p.forEach(g=>{r(g)})})})};return{batch:p=>{let g;a++;try{g=p()}finally{a--,a||f()}return g},batchCalls:p=>(...g)=>{d(()=>{p(...g)})},schedule:d,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{i=p},setScheduler:p=>{o=p}}}var Ct=oR(),mi,ds,gi,Fx,cR=(Fx=class extends no{constructor(){super();ve(this,mi,!0);ve(this,ds);ve(this,gi);ce(this,gi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){U(this,ds)||this.setEventListener(U(this,gi))}onUnsubscribe(){var a;this.hasListeners()||((a=U(this,ds))==null||a.call(this),ce(this,ds,void 0))}setEventListener(a){var r;ce(this,gi,a),(r=U(this,ds))==null||r.call(this),ce(this,ds,a(this.setOnline.bind(this)))}setOnline(a){U(this,mi)!==a&&(ce(this,mi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return U(this,mi)}},mi=new WeakMap,ds=new WeakMap,gi=new WeakMap,Fx),nu=new cR;function uR(t){return Math.min(1e3*2**t,3e4)}function R0(t){return(t??"online")==="online"?nu.isOnline():!0}var Fh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function N0(t){let a=!1,r=0,i;const o=Hh(),d=()=>o.status!=="pending",f=x=>{var j;if(!d()){const _=new Fh(x);S(_),(j=t.onCancel)==null||j.call(t,_)}},p=()=>{a=!0},g=()=>{a=!1},m=()=>vp.isFocused()&&(t.networkMode==="always"||nu.isOnline())&&t.canRun(),v=()=>R0(t.networkMode)&&t.canRun(),y=x=>{d()||(i==null||i(),o.resolve(x))},S=x=>{d()||(i==null||i(),o.reject(x))},E=()=>new Promise(x=>{var j;i=_=>{(d()||m())&&x(_)},(j=t.onPause)==null||j.call(t)}).then(()=>{var x;i=void 0,d()||(x=t.onContinue)==null||x.call(t)}),w=()=>{if(d())return;let x;const j=r===0?t.initialPromise:void 0;try{x=j??t.fn()}catch(_){x=Promise.reject(_)}Promise.resolve(x).then(y).catch(_=>{var G;if(d())return;const C=t.retry??(Il.isServer()?0:3),T=t.retryDelay??uR,A=typeof T=="function"?T(r,_):T,z=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(a||!z){S(_);return}r++,(G=t.onFail)==null||G.call(t,r,_),aR(A).then(()=>m()?void 0:E()).then(()=>{a?S(_):w()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(i==null||i(),o),cancelRetry:p,continueRetry:g,canStart:v,start:()=>(v()?w():E().then(w),o)}}var er,Gx,_0=(Gx=class{constructor(){ve(this,er)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.gcTime)&&ce(this,er,Ks.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Il.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,er)!==void 0&&(Ks.clearTimeout(U(this,er)),ce(this,er,void 0))}},er=new WeakMap,Gx);function dR(t){return{onFetch:(a,r)=>{var v,y,S,E,w;const i=a.options,o=(S=(y=(v=a.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:S.direction,d=((E=a.state.data)==null?void 0:E.pages)||[],f=((w=a.state.data)==null?void 0:w.pageParams)||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let x=!1;const j=T=>{iR(T,()=>a.signal,()=>x=!0)},_=E0(a.options,a.fetchOptions),C=async(T,A,z)=>{if(x)return Promise.reject(a.signal.reason);if(A==null&&T.pages.length)return Promise.resolve(T);const k=(()=>{const X={client:a.client,queryKey:a.queryKey,pageParam:A,direction:z?"backward":"forward",meta:a.options.meta};return j(X),X})(),M=await _(k),{maxPages:L}=a.options,F=z?rR:sR;return{pages:F(T.pages,M,L),pageParams:F(T.pageParams,A,L)}};if(o&&d.length){const T=o==="backward",A=T?fR:Db,z={pages:d,pageParams:f},G=A(i,z);p=await C(z,G,T)}else{const T=t??d.length;do{const A=g===0?f[0]??i.initialPageParam:Db(i,p);if(g>0&&A==null)break;p=await C(p,A),g++}while(g<T)}return p};a.options.persister?a.fetchFn=()=>{var x,j;return(j=(x=a.options).persister)==null?void 0:j.call(x,m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=m}}}function Db(t,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?t.getNextPageParam(a[i],a,r[i],r):void 0}function fR(t,{pages:a,pageParams:r}){var i;return a.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,a[0],a,r[0],r):void 0}var yi,tr,vi,Nn,nr,vt,Xl,ar,un,C0,xa,qx,hR=(qx=class extends _0{constructor(a){super();ve(this,un);ve(this,yi);ve(this,tr);ve(this,vi);ve(this,Nn);ve(this,nr);ve(this,vt);ve(this,Xl);ve(this,ar);ce(this,ar,!1),ce(this,Xl,a.defaultOptions),this.setOptions(a.options),this.observers=[],ce(this,nr,a.client),ce(this,Nn,U(this,nr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,ce(this,tr,zb(this.options)),this.state=a.state??U(this,tr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return U(this,yi)}get promise(){var a;return(a=U(this,vt))==null?void 0:a.promise}setOptions(a){if(this.options={...U(this,Xl),...a},a!=null&&a._type&&ce(this,yi,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=zb(this.options);r.data!==void 0&&(this.setState(Lb(r.data,r.dataUpdatedAt)),ce(this,tr,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Nn).remove(this)}setData(a,r){const i=Ph(this.state.data,a,this.options);return Ae(this,un,xa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a){Ae(this,un,xa).call(this,{type:"setState",state:a})}cancel(a){var i,o;const r=(i=U(this,vt))==null?void 0:i.promise;return(o=U(this,vt))==null||o.cancel(a),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,tr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>dn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xp||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>xs(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!S0(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=U(this,vt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=U(this,vt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),U(this,Nn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(U(this,vt)&&(U(this,ar)||Ae(this,un,C0).call(this)?U(this,vt).cancel({revert:!0}):U(this,vt).cancelRetry()),this.scheduleGc()),U(this,Nn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,un,xa).call(this,{type:"invalidate"})}async fetch(a,r){var m,v,y,S,E,w,x,j,_,C,T;if(this.state.fetchStatus!=="idle"&&((m=U(this,vt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(U(this,vt))return U(this,vt).continueRetry(),U(this,vt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const A=this.observers.find(z=>z.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ce(this,ar,!0),i.signal)})},d=()=>{const A=E0(this.options,r),G=(()=>{const k={client:U(this,nr),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return ce(this,ar,!1),this.options.persister?this.options.persister(A,G,this):A(G)},p=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:U(this,nr),state:this.state,fetchFn:d};return o(A),A})(),g=U(this,yi)==="infinite"?dR(this.options.pages):this.options.behavior;g==null||g.onFetch(p,this),ce(this,vi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=p.fetchOptions)==null?void 0:v.meta))&&Ae(this,un,xa).call(this,{type:"fetch",meta:(y=p.fetchOptions)==null?void 0:y.meta}),ce(this,vt,N0({initialPromise:r==null?void 0:r.initialPromise,fn:p.fetchFn,onCancel:A=>{A instanceof Fh&&A.revert&&this.setState({...U(this,vi),fetchStatus:"idle"}),i.abort()},onFail:(A,z)=>{Ae(this,un,xa).call(this,{type:"failed",failureCount:A,error:z})},onPause:()=>{Ae(this,un,xa).call(this,{type:"pause"})},onContinue:()=>{Ae(this,un,xa).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const A=await U(this,vt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(E=(S=U(this,Nn).config).onSuccess)==null||E.call(S,A,this),(x=(w=U(this,Nn).config).onSettled)==null||x.call(w,A,this.state.error,this),A}catch(A){if(A instanceof Fh){if(A.silent)return U(this,vt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Ae(this,un,xa).call(this,{type:"error",error:A}),(_=(j=U(this,Nn).config).onError)==null||_.call(j,A,this),(T=(C=U(this,Nn).config).onSettled)==null||T.call(C,this.state.data,A,this),A}finally{this.scheduleGc()}}},yi=new WeakMap,tr=new WeakMap,vi=new WeakMap,Nn=new WeakMap,nr=new WeakMap,vt=new WeakMap,Xl=new WeakMap,ar=new WeakMap,un=new WeakSet,C0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},xa=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...A0(i.data,this.options),fetchMeta:a.meta??null};case"success":const o={...i,...Lb(a.data,a.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,vi,a.manual?o:void 0),o;case"error":const d=a.error;return{...i,error:d,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),Ct.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),U(this,Nn).notify({query:this,type:"updated",action:a})})},qx);function A0(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R0(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Lb(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zb(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,r=a!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Yt,ke,Zl,Pt,sr,bi,Sa,fs,Kl,xi,Si,rr,ir,hs,wi,He,Bl,Gh,qh,Ih,Vh,Qh,Yh,$h,T0,Ix,pR=(Ix=class extends no{constructor(a,r){super();ve(this,He);ve(this,Yt);ve(this,ke);ve(this,Zl);ve(this,Pt);ve(this,sr);ve(this,bi);ve(this,Sa);ve(this,fs);ve(this,Kl);ve(this,xi);ve(this,Si);ve(this,rr);ve(this,ir);ve(this,hs);ve(this,wi,new Set);this.options=r,ce(this,Yt,a),ce(this,fs,null),ce(this,Sa,Hh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,ke).addObserver(this),Bb(U(this,ke),this.options)?Ae(this,He,Bl).call(this):this.updateResult(),Ae(this,He,Vh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xh(U(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xh(U(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,He,Qh).call(this),Ae(this,He,Yh).call(this),U(this,ke).removeObserver(this)}setOptions(a){const r=this.options,i=U(this,ke);if(this.options=U(this,Yt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,U(this,ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,He,$h).call(this),U(this,ke).setOptions(this.options),r._defaulted&&!Bh(this.options,r)&&U(this,Yt).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,ke),observer:this});const o=this.hasListeners();o&&Ub(U(this,ke),i,this.options,r)&&Ae(this,He,Bl).call(this),this.updateResult(),o&&(U(this,ke)!==i||dn(this.options.enabled,U(this,ke))!==dn(r.enabled,U(this,ke))||xs(this.options.staleTime,U(this,ke))!==xs(r.staleTime,U(this,ke)))&&Ae(this,He,Gh).call(this);const d=Ae(this,He,qh).call(this);o&&(U(this,ke)!==i||dn(this.options.enabled,U(this,ke))!==dn(r.enabled,U(this,ke))||d!==U(this,hs))&&Ae(this,He,Ih).call(this,d)}getOptimisticResult(a){const r=U(this,Yt).getQueryCache().build(U(this,Yt),a),i=this.createResult(r,a);return gR(this,i)&&(ce(this,Pt,i),ce(this,bi,this.options),ce(this,sr,U(this,ke).state)),i}getCurrentResult(){return U(this,Pt)}trackResult(a,r){return new Proxy(a,{get:(i,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,Sa).status==="pending"&&U(this,Sa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(a){U(this,wi).add(a)}getCurrentQuery(){return U(this,ke)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=U(this,Yt).defaultQueryOptions(a),i=U(this,Yt).getQueryCache().build(U(this,Yt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Ae(this,He,Bl).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,Pt)))}createResult(a,r){var L;const i=U(this,ke),o=this.options,d=U(this,Pt),f=U(this,sr),p=U(this,bi),m=a!==i?a.state:U(this,Zl),{state:v}=a;let y={...v},S=!1,E;if(r._optimisticResults){const F=this.hasListeners(),X=!F&&Bb(a,r),ne=F&&Ub(a,i,r,o);(X||ne)&&(y={...y,...A0(v.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:x,status:j}=y;E=y.data;let _=!1;if(r.placeholderData!==void 0&&E===void 0&&j==="pending"){let F;d!=null&&d.isPlaceholderData&&r.placeholderData===(p==null?void 0:p.placeholderData)?(F=d.data,_=!0):F=typeof r.placeholderData=="function"?r.placeholderData((L=U(this,Si))==null?void 0:L.state.data,U(this,Si)):r.placeholderData,F!==void 0&&(j="success",E=Ph(d==null?void 0:d.data,F,r),S=!0)}if(r.select&&E!==void 0&&!_)if(d&&E===(f==null?void 0:f.data)&&r.select===U(this,Kl))E=U(this,xi);else try{ce(this,Kl,r.select),E=r.select(E),E=Ph(d==null?void 0:d.data,E,r),ce(this,xi,E),ce(this,fs,null)}catch(F){ce(this,fs,F)}U(this,fs)&&(w=U(this,fs),E=U(this,xi),x=Date.now(),j="error");const C=y.fetchStatus==="fetching",T=j==="pending",A=j==="error",z=T&&C,G=E!==void 0,M={status:j,fetchStatus:y.fetchStatus,isPending:T,isSuccess:j==="success",isError:A,isInitialLoading:z,isLoading:z,data:E,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:x,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:A&&!G,isPaused:y.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:A&&G,isStale:Sp(a,r),refetch:this.refetch,promise:U(this,Sa),isEnabled:dn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const F=M.data!==void 0,X=M.status==="error"&&!F,ne=oe=>{X?oe.reject(M.error):F&&oe.resolve(M.data)},se=()=>{const oe=ce(this,Sa,M.promise=Hh());ne(oe)},te=U(this,Sa);switch(te.status){case"pending":a.queryHash===i.queryHash&&ne(te);break;case"fulfilled":(X||M.data!==te.value)&&se();break;case"rejected":(!X||M.error!==te.reason)&&se();break}}return M}updateResult(){const a=U(this,Pt),r=this.createResult(U(this,ke),this.options);if(ce(this,sr,U(this,ke).state),ce(this,bi,this.options),U(this,sr).data!==void 0&&ce(this,Si,U(this,ke)),Bh(r,a))return;ce(this,Pt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!U(this,wi).size)return!0;const f=new Set(d??U(this,wi));return this.options.throwOnError&&f.add("error"),Object.keys(U(this,Pt)).some(p=>{const g=p;return U(this,Pt)[g]!==a[g]&&f.has(g)})};Ae(this,He,T0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,He,Vh).call(this)}},Yt=new WeakMap,ke=new WeakMap,Zl=new WeakMap,Pt=new WeakMap,sr=new WeakMap,bi=new WeakMap,Sa=new WeakMap,fs=new WeakMap,Kl=new WeakMap,xi=new WeakMap,Si=new WeakMap,rr=new WeakMap,ir=new WeakMap,hs=new WeakMap,wi=new WeakMap,He=new WeakSet,Bl=function(a){Ae(this,He,$h).call(this);let r=U(this,ke).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch($t)),r},Gh=function(){Ae(this,He,Qh).call(this);const a=xs(this.options.staleTime,U(this,ke));if(Il.isServer()||U(this,Pt).isStale||!zh(a))return;const i=S0(U(this,Pt).dataUpdatedAt,a)+1;ce(this,rr,Ks.setTimeout(()=>{U(this,Pt).isStale||this.updateResult()},i))},qh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,ke)):this.options.refetchInterval)??!1},Ih=function(a){Ae(this,He,Yh).call(this),ce(this,hs,a),!(Il.isServer()||dn(this.options.enabled,U(this,ke))===!1||!zh(U(this,hs))||U(this,hs)===0)&&ce(this,ir,Ks.setInterval(()=>{(this.options.refetchIntervalInBackground||vp.isFocused())&&Ae(this,He,Bl).call(this)},U(this,hs)))},Vh=function(){Ae(this,He,Gh).call(this),Ae(this,He,Ih).call(this,Ae(this,He,qh).call(this))},Qh=function(){U(this,rr)!==void 0&&(Ks.clearTimeout(U(this,rr)),ce(this,rr,void 0))},Yh=function(){U(this,ir)!==void 0&&(Ks.clearInterval(U(this,ir)),ce(this,ir,void 0))},$h=function(){const a=U(this,Yt).getQueryCache().build(U(this,Yt),this.options);if(a===U(this,ke))return;const r=U(this,ke);ce(this,ke,a),ce(this,Zl,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},T0=function(a){Ct.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(U(this,Pt))}),U(this,Yt).getQueryCache().notify({query:U(this,ke),type:"observerResultsUpdated"})})},Ix);function mR(t,a){return dn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&dn(a.retryOnMount,t)===!1)}function Bb(t,a){return mR(t,a)||t.state.data!==void 0&&Xh(t,a,a.refetchOnMount)}function Xh(t,a,r){if(dn(a.enabled,t)!==!1&&xs(a.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&Sp(t,a)}return!1}function Ub(t,a,r,i){return(t!==a||dn(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Sp(t,r)}function Sp(t,a){return dn(a.enabled,t)!==!1&&t.isStaleByTime(xs(a.staleTime,t))}function gR(t,a){return!Bh(t.getCurrentResult(),a)}var Wl,Qn,Ot,lr,Yn,is,Vx,yR=(Vx=class extends _0{constructor(a){super();ve(this,Yn);ve(this,Wl);ve(this,Qn);ve(this,Ot);ve(this,lr);ce(this,Wl,a.client),this.mutationId=a.mutationId,ce(this,Ot,a.mutationCache),ce(this,Qn,[]),this.state=a.state||vR(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){U(this,Qn).includes(a)||(U(this,Qn).push(a),this.clearGcTimeout(),U(this,Ot).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){ce(this,Qn,U(this,Qn).filter(r=>r!==a)),this.scheduleGc(),U(this,Ot).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){U(this,Qn).length||(this.state.status==="pending"?this.scheduleGc():U(this,Ot).remove(this))}continue(){var a;return((a=U(this,lr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var f,p,g,m,v,y,S,E,w,x,j,_,C,T,A,z,G,k;const r=()=>{Ae(this,Yn,is).call(this,{type:"continue"})},i={client:U(this,Wl),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,lr,N0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,i):Promise.reject(new Error("No mutationFn found")),onFail:(M,L)=>{Ae(this,Yn,is).call(this,{type:"failed",failureCount:M,error:L})},onPause:()=>{Ae(this,Yn,is).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,Ot).canRun(this)}));const o=this.state.status==="pending",d=!U(this,lr).canStart();try{if(o)r();else{Ae(this,Yn,is).call(this,{type:"pending",variables:a,isPaused:d}),U(this,Ot).config.onMutate&&await U(this,Ot).config.onMutate(a,this,i);const L=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,a,i));L!==this.state.context&&Ae(this,Yn,is).call(this,{type:"pending",context:L,variables:a,isPaused:d})}const M=await U(this,lr).start();return await((m=(g=U(this,Ot).config).onSuccess)==null?void 0:m.call(g,M,a,this.state.context,this,i)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,M,a,this.state.context,i)),await((E=(S=U(this,Ot).config).onSettled)==null?void 0:E.call(S,M,null,this.state.variables,this.state.context,this,i)),await((x=(w=this.options).onSettled)==null?void 0:x.call(w,M,null,a,this.state.context,i)),Ae(this,Yn,is).call(this,{type:"success",data:M}),M}catch(M){try{await((_=(j=U(this,Ot).config).onError)==null?void 0:_.call(j,M,a,this.state.context,this,i))}catch(L){Promise.reject(L)}try{await((T=(C=this.options).onError)==null?void 0:T.call(C,M,a,this.state.context,i))}catch(L){Promise.reject(L)}try{await((z=(A=U(this,Ot).config).onSettled)==null?void 0:z.call(A,void 0,M,this.state.variables,this.state.context,this,i))}catch(L){Promise.reject(L)}try{await((k=(G=this.options).onSettled)==null?void 0:k.call(G,void 0,M,a,this.state.context,i))}catch(L){Promise.reject(L)}throw Ae(this,Yn,is).call(this,{type:"error",error:M}),M}finally{U(this,Ot).runNext(this)}}},Wl=new WeakMap,Qn=new WeakMap,Ot=new WeakMap,lr=new WeakMap,Yn=new WeakSet,is=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ct.batch(()=>{U(this,Qn).forEach(i=>{i.onMutationUpdate(a)}),U(this,Ot).notify({mutation:this,type:"updated",action:a})})},Vx);function vR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wa,Mn,Jl,Qx,bR=(Qx=class extends no{constructor(a={}){super();ve(this,wa);ve(this,Mn);ve(this,Jl);this.config=a,ce(this,wa,new Set),ce(this,Mn,new Map),ce(this,Jl,0)}build(a,r,i){const o=new yR({client:a,mutationCache:this,mutationId:++Nc(this,Jl)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){U(this,wa).add(a);const r=kc(a);if(typeof r=="string"){const i=U(this,Mn).get(r);i?i.push(a):U(this,Mn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(U(this,wa).delete(a)){const r=kc(a);if(typeof r=="string"){const i=U(this,Mn).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&U(this,Mn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=kc(a);if(typeof r=="string"){const i=U(this,Mn).get(r),o=i==null?void 0:i.find(d=>d.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=kc(a);if(typeof r=="string"){const o=(i=U(this,Mn).get(r))==null?void 0:i.find(d=>d!==a&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{U(this,wa).forEach(a=>{this.notify({type:"removed",mutation:a})}),U(this,wa).clear(),U(this,Mn).clear()})}getAll(){return Array.from(U(this,wa))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>kb(r,i))}findAll(a={}){return this.getAll().filter(r=>kb(a,r))}notify(a){Ct.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return Ct.batch(()=>Promise.all(a.map(r=>r.continue().catch($t))))}},wa=new WeakMap,Mn=new WeakMap,Jl=new WeakMap,Qx);function kc(t){var a;return(a=t.options.scope)==null?void 0:a.id}var $n,Yx,xR=(Yx=class extends no{constructor(a={}){super();ve(this,$n);this.config=a,ce(this,$n,new Map)}build(a,r,i){const o=r.queryKey,d=r.queryHash??bp(o,r);let f=this.get(d);return f||(f=new hR({client:a,queryKey:o,queryHash:d,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(f)),f}add(a){U(this,$n).has(a.queryHash)||(U(this,$n).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=U(this,$n).get(a.queryHash);r&&(a.destroy(),r===a&&U(this,$n).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Ct.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return U(this,$n).get(a)}getAll(){return[...U(this,$n).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>Tb(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>Tb(a,i)):r}notify(a){Ct.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},$n=new WeakMap,Yx),nt,ps,ms,Ei,ji,gs,Ri,Ni,$x,SR=($x=class{constructor(t={}){ve(this,nt);ve(this,ps);ve(this,ms);ve(this,Ei);ve(this,ji);ve(this,gs);ve(this,Ri);ve(this,Ni);ce(this,nt,t.queryCache||new xR),ce(this,ps,t.mutationCache||new bR),ce(this,ms,t.defaultOptions||{}),ce(this,Ei,new Map),ce(this,ji,new Map),ce(this,gs,0)}mount(){Nc(this,gs)._++,U(this,gs)===1&&(ce(this,Ri,vp.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,nt).onFocus())})),ce(this,Ni,nu.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,nt).onOnline())})))}unmount(){var t,a;Nc(this,gs)._--,U(this,gs)===0&&((t=U(this,Ri))==null||t.call(this),ce(this,Ri,void 0),(a=U(this,Ni))==null||a.call(this),ce(this,Ni,void 0))}isFetching(t){return U(this,nt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return U(this,ps).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=U(this,nt).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),r=U(this,nt).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(xs(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(t){return U(this,nt).findAll(t).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(t,a,r){const i=this.defaultQueryOptions({queryKey:t}),o=U(this,nt).get(i.queryHash),d=o==null?void 0:o.state.data,f=tR(a,d);if(f!==void 0)return U(this,nt).build(this,i).setData(f,{...r,manual:!0})}setQueriesData(t,a,r){return Ct.batch(()=>U(this,nt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=U(this,nt).get(a.queryHash))==null?void 0:r.state}removeQueries(t){const a=U(this,nt);Ct.batch(()=>{a.findAll(t).forEach(r=>{a.remove(r)})})}resetQueries(t,a){const r=U(this,nt);return Ct.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const r={revert:!0,...a},i=Ct.batch(()=>U(this,nt).findAll(t).map(o=>o.cancel(r)));return Promise.all(i).then($t).catch($t)}invalidateQueries(t,a={}){return Ct.batch(()=>(U(this,nt).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},a)))}refetchQueries(t,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=Ct.batch(()=>U(this,nt).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,r);return r.throwOnError||(d=d.catch($t)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then($t)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const r=U(this,nt).build(this,a);return r.isStaleByTime(xs(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then($t).catch($t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then($t).catch($t)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return nu.isOnline()?U(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,nt)}getMutationCache(){return U(this,ps)}getDefaultOptions(){return U(this,ms)}setDefaultOptions(t){ce(this,ms,t)}setQueryDefaults(t,a){U(this,Ei).set(Gl(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...U(this,Ei).values()],r={};return a.forEach(i=>{ql(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,a){U(this,ji).set(Gl(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...U(this,ji).values()],r={};return a.forEach(i=>{ql(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const a={...U(this,ms).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=bp(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===xp&&(a.enabled=!1),a}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...U(this,ms).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){U(this,nt).clear(),U(this,ps).clear()}},nt=new WeakMap,ps=new WeakMap,ms=new WeakMap,Ei=new WeakMap,ji=new WeakMap,gs=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,$x),k0=N.createContext(void 0),ao=t=>{const a=N.useContext(k0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},wR=({client:t,children:a})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),u.jsx(k0.Provider,{value:t,children:a})),O0=N.createContext(!1),ER=()=>N.useContext(O0);O0.Provider;function jR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var RR=N.createContext(jR()),NR=()=>N.useContext(RR),_R=(t,a,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?j0(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(a.isReset()||(t.retryOnMount=!1))},CR=t=>{N.useEffect(()=>{t.clearReset()},[t])},AR=({result:t,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||j0(r,[t.error,i])),TR=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...o)=>r(i(...o)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},kR=(t,a)=>t.isLoading&&t.isFetching&&!a,OR=(t,a)=>(t==null?void 0:t.suspense)&&a.isPending,Pb=(t,a,r)=>a.fetchOptimistic(t).catch(()=>{r.clearReset()});function MR(t,a,r){var E,w,x,j;const i=ER(),o=NR(),d=ao(),f=d.defaultQueryOptions(t);(w=(E=d.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||w.call(E,f);const p=d.getQueryCache().get(f.queryHash),g=t.subscribed!==!1;f._optimisticResults=i?"isRestoring":g?"optimistic":void 0,TR(f),_R(f,o,p),CR(o);const m=!d.getQueryCache().get(f.queryHash),[v]=N.useState(()=>new a(d,f)),y=v.getOptimisticResult(f),S=!i&&g;if(N.useSyncExternalStore(N.useCallback(_=>{const C=S?v.subscribe(Ct.batchCalls(_)):$t;return v.updateResult(),C},[v,S]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),N.useEffect(()=>{v.setOptions(f)},[f,v]),OR(f,y))throw Pb(f,v,o);if(AR({result:y,errorResetBoundary:o,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw y.error;if((j=(x=d.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||j.call(x,f,y),f.experimental_prefetchInRender&&!Il.isServer()&&kR(y,i)){const _=m?Pb(f,v,o):p==null?void 0:p.promise;_==null||_.catch($t).finally(()=>{v.updateResult()})}return f.notifyOnChangeProps?y:v.trackResult(y)}function fr(t,a){return MR(t,pR)}/**
|
|
66
|
-
* @license lucide-react v0.511.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const DR=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),LR=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),Hb=t=>{const a=LR(t);return a.charAt(0).toUpperCase()+a.slice(1)},M0=(...t)=>t.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),zR=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
71
|
-
* @license lucide-react v0.511.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/var BR={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"};/**
|
|
76
|
-
* @license lucide-react v0.511.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const UR=N.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:d,iconNode:f,...p},g)=>N.createElement("svg",{ref:g,...BR,width:a,height:a,stroke:t,strokeWidth:i?Number(r)*24/Number(a):r,className:M0("lucide",o),...!d&&!zR(p)&&{"aria-hidden":"true"},...p},[...f.map(([m,v])=>N.createElement(m,v)),...Array.isArray(d)?d:[d]]));/**
|
|
81
|
-
* @license lucide-react v0.511.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Be=(t,a)=>{const r=N.forwardRef(({className:i,...o},d)=>N.createElement(UR,{ref:d,iconNode:a,className:M0(`lucide-${DR(Hb(t))}`,`lucide-${t}`,i),...o}));return r.displayName=Hb(t),r};/**
|
|
86
|
-
* @license lucide-react v0.511.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const PR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Zh=Be("arrow-right",PR);/**
|
|
91
|
-
* @license lucide-react v0.511.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const HR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ci=Be("chevron-left",HR);/**
|
|
96
|
-
* @license lucide-react v0.511.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const FR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fb=Be("chevron-right",FR);/**
|
|
101
|
-
* @license lucide-react v0.511.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const GR=[["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"}]],D0=Be("circle-alert",GR);/**
|
|
106
|
-
* @license lucide-react v0.511.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const qR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],so=Be("circle-check",qR);/**
|
|
111
|
-
* @license lucide-react v0.511.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const IR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Gb=Be("circle-x",IR);/**
|
|
116
|
-
* @license lucide-react v0.511.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const VR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],QR=Be("clock-3",VR);/**
|
|
121
|
-
* @license lucide-react v0.511.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const YR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],$R=Be("clock",YR);/**
|
|
126
|
-
* @license lucide-react v0.511.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const XR=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],L0=Be("database-zap",XR);/**
|
|
131
|
-
* @license lucide-react v0.511.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const ZR=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],KR=Be("database",ZR);/**
|
|
136
|
-
* @license lucide-react v0.511.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const WR=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],JR=Be("file-code-2",WR);/**
|
|
141
|
-
* @license lucide-react v0.511.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const eN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],vu=Be("file-text",eN);/**
|
|
146
|
-
* @license lucide-react v0.511.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const tN=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],nN=Be("folder-kanban",tN);/**
|
|
151
|
-
* @license lucide-react v0.511.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const aN=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Kh=Be("folder-open",aN);/**
|
|
156
|
-
* @license lucide-react v0.511.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const sN=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],rN=Be("gauge",sN);/**
|
|
161
|
-
* @license lucide-react v0.511.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const iN=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],lN=Be("git-branch",iN);/**
|
|
166
|
-
* @license lucide-react v0.511.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const oN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],cN=Be("globe",oN);/**
|
|
171
|
-
* @license lucide-react v0.511.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const uN=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],z0=Be("layers",uN);/**
|
|
176
|
-
* @license lucide-react v0.511.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const dN=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],fN=Be("layout-dashboard",dN);/**
|
|
181
|
-
* @license lucide-react v0.511.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const hN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vl=Be("loader-circle",hN);/**
|
|
186
|
-
* @license lucide-react v0.511.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const pN=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],mN=Be("message-square",pN);/**
|
|
191
|
-
* @license lucide-react v0.511.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const gN=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],yN=Be("moon",gN);/**
|
|
196
|
-
* @license lucide-react v0.511.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const vN=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],bN=Be("network",vN);/**
|
|
201
|
-
* @license lucide-react v0.511.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const xN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],SN=Be("panel-left",xN);/**
|
|
206
|
-
* @license lucide-react v0.511.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const wN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qb=Be("plus",wN);/**
|
|
211
|
-
* @license lucide-react v0.511.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const EN=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],jN=Be("scroll-text",EN);/**
|
|
216
|
-
* @license lucide-react v0.511.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const RN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wp=Be("search",RN);/**
|
|
221
|
-
* @license lucide-react v0.511.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const NN=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_N=Be("settings",NN);/**
|
|
226
|
-
* @license lucide-react v0.511.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const CN=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],AN=Be("sun",CN);/**
|
|
231
|
-
* @license lucide-react v0.511.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const TN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],kN=Be("target",TN);/**
|
|
236
|
-
* @license lucide-react v0.511.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const ON=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ep=Be("triangle-alert",ON);/**
|
|
241
|
-
* @license lucide-react v0.511.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const MN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wh=Be("x",MN),DN="/api";async function On(t,a){const r=await fetch(`${DN}${t}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`API error: ${r.status}`)}return r.json()}const Ss={getDashboard:()=>On("/dashboard"),listWorkspaces:()=>On("/workspaces"),getWorkspace:t=>On(`/workspaces/${t}`),createWorkspace:t=>On("/workspaces",{method:"POST",body:JSON.stringify(t)}),deleteWorkspace:t=>On(`/workspaces/${t}`,{method:"DELETE"}),getWorkspaceGraph:t=>On(`/workspaces/${t}/graph`),getDocuments:(t={})=>{const a=new URLSearchParams;return t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),On(`/documents?${a}`)},runQuery:t=>On("/query",{method:"POST",body:JSON.stringify(t)}),startIndexRun:(t,a)=>On(`/workspaces/${t}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:t=>On(`/workspaces/${t}/index`),validatePath:t=>On("/validate-path",{method:"POST",body:JSON.stringify({rootPath:t})})},jp={queryKey:["dashboard"],queryFn:Ss.getDashboard},Rp={queryKey:["workspaces"],queryFn:Ss.listWorkspaces},Ai=t=>({queryKey:["workspace",t],queryFn:()=>Ss.getWorkspace(t)}),bu=t=>({queryKey:["workspace-graph",t],queryFn:()=>Ss.getWorkspaceGraph(t)}),au=(t,a)=>({queryKey:["documents",t,a],queryFn:()=>Ss.getDocuments({limit:a,offset:(t-1)*a})}),B0={queryKey:["settings","env"],queryFn:async()=>{const t=await fetch("/api/settings/env");if(!t.ok)throw new Error(`Failed to fetch env settings: ${t.status} ${t.statusText}`);return t.json()},staleTime:1/0},Zn=10;function LN(t,a){const r=Math.max(1,Math.ceil(t.length/Zn));return{paged:t.slice((a-1)*Zn,a*Zn),totalPages:r}}function U0({currentPage:t,totalPages:a,basePath:r}){return a<=1?null:u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[t>1?u.jsxs(ht,{to:r,search:{page:t-1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:[u.jsx(Ci,{className:"h-3.5 w-3.5"}),"Previous"]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:[u.jsx(Ci,{className:"h-3.5 w-3.5"}),"Previous"]}),u.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",t," of ",a]}),t<a?u.jsxs(ht,{to:r,search:{page:t+1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:["Next",u.jsx(Fb,{className:"h-3.5 w-3.5"})]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:["Next",u.jsx(Fb,{className:"h-3.5 w-3.5"})]})]})}function P0(t){var a,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(r=P0(t[a]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function ro(){for(var t,a,r=0,i="",o=arguments.length;r<o;r++)(t=arguments[r])&&(a=P0(t))&&(i&&(i+=" "),i+=a);return i}const Ib=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Vb=ro,xu=(t,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return Vb(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:d}=a,f=Object.keys(o).map(m=>{const v=r==null?void 0:r[m],y=d==null?void 0:d[m];if(v===null)return null;const S=Ib(v)||Ib(y);return o[m][S]}),p=r&&Object.entries(r).reduce((m,v)=>{let[y,S]=v;return S===void 0||(m[y]=S),m},{}),g=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((m,v)=>{let{class:y,className:S,...E}=v;return Object.entries(E).every(w=>{let[x,j]=w;return Array.isArray(j)?j.includes({...d,...p}[x]):{...d,...p}[x]===j})?[...m,y,S]:m},[]);return Vb(t,f,g,r==null?void 0:r.class,r==null?void 0:r.className)},zN=(t,a)=>{const r=new Array(t.length+a.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<a.length;i++)r[t.length+i]=a[i];return r},BN=(t,a)=>({classGroupId:t,validator:a}),H0=(t=new Map,a=null,r)=>({nextPart:t,validators:a,classGroupId:r}),su="-",Qb=[],UN="arbitrary..",PN=t=>{const a=FN(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return HN(f);const p=f.split(su),g=p[0]===""&&p.length>1?1:0;return F0(p,g,a)},getConflictingClassGroupIds:(f,p)=>{if(p){const g=i[f],m=r[f];return g?m?zN(m,g):g:m||Qb}return r[f]||Qb}}},F0=(t,a,r)=>{if(t.length-a===0)return r.classGroupId;const o=t[a],d=r.nextPart.get(o);if(d){const m=F0(t,a+1,d);if(m)return m}const f=r.validators;if(f===null)return;const p=a===0?t.join(su):t.slice(a).join(su),g=f.length;for(let m=0;m<g;m++){const v=f[m];if(v.validator(p))return v.classGroupId}},HN=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),r=a.indexOf(":"),i=a.slice(0,r);return i?UN+i:void 0})(),FN=t=>{const{theme:a,classGroups:r}=t;return GN(r,a)},GN=(t,a)=>{const r=H0();for(const i in t){const o=t[i];Np(o,r,i,a)}return r},Np=(t,a,r,i)=>{const o=t.length;for(let d=0;d<o;d++){const f=t[d];qN(f,a,r,i)}},qN=(t,a,r,i)=>{if(typeof t=="string"){IN(t,a,r);return}if(typeof t=="function"){VN(t,a,r,i);return}QN(t,a,r,i)},IN=(t,a,r)=>{const i=t===""?a:G0(a,t);i.classGroupId=r},VN=(t,a,r,i)=>{if(YN(t)){Np(t(i),a,r,i);return}a.validators===null&&(a.validators=[]),a.validators.push(BN(r,t))},QN=(t,a,r,i)=>{const o=Object.entries(t),d=o.length;for(let f=0;f<d;f++){const[p,g]=o[f];Np(g,G0(a,p),r,i)}},G0=(t,a)=>{let r=t;const i=a.split(su),o=i.length;for(let d=0;d<o;d++){const f=i[d];let p=r.nextPart.get(f);p||(p=H0(),r.nextPart.set(f,p)),r=p}return r},YN=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,$N=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),i=Object.create(null);const o=(d,f)=>{r[d]=f,a++,a>t&&(a=0,i=r,r=Object.create(null))};return{get(d){let f=r[d];if(f!==void 0)return f;if((f=i[d])!==void 0)return o(d,f),f},set(d,f){d in r?r[d]=f:o(d,f)}}},Jh="!",Yb=":",XN=[],$b=(t,a,r,i,o)=>({modifiers:t,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:i,isExternal:o}),ZN=t=>{const{prefix:a,experimentalParseClassName:r}=t;let i=o=>{const d=[];let f=0,p=0,g=0,m;const v=o.length;for(let x=0;x<v;x++){const j=o[x];if(f===0&&p===0){if(j===Yb){d.push(o.slice(g,x)),g=x+1;continue}if(j==="/"){m=x;continue}}j==="["?f++:j==="]"?f--:j==="("?p++:j===")"&&p--}const y=d.length===0?o:o.slice(g);let S=y,E=!1;y.endsWith(Jh)?(S=y.slice(0,-1),E=!0):y.startsWith(Jh)&&(S=y.slice(1),E=!0);const w=m&&m>g?m-g:void 0;return $b(d,E,S,w)};if(a){const o=a+Yb,d=i;i=f=>f.startsWith(o)?d(f.slice(o.length)):$b(XN,!1,f,void 0,!0)}if(r){const o=i;i=d=>r({className:d,parseClassName:o})}return i},KN=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((r,i)=>{a.set(r,1e6+i)}),r=>{const i=[];let o=[];for(let d=0;d<r.length;d++){const f=r[d],p=f[0]==="[",g=a.has(f);p||g?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(f)):o.push(f)}return o.length>0&&(o.sort(),i.push(...o)),i}},WN=t=>({cache:$N(t.cacheSize),parseClassName:ZN(t),sortModifiers:KN(t),postfixLookupClassGroupIds:JN(t),...PN(t)}),JN=t=>{const a=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let i=0;i<r.length;i++)a[r[i]]=!0;return a},e_=/\s+/,t_=(t,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:d,postfixLookupClassGroupIds:f}=a,p=[],g=t.trim().split(e_);let m="";for(let v=g.length-1;v>=0;v-=1){const y=g[v],{isExternal:S,modifiers:E,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:j}=r(y);if(S){m=y+(m.length>0?" "+m:m);continue}let _=!!j,C;if(_){const k=x.substring(0,j);C=i(k);const M=C&&f[C]?i(x):void 0;M&&M!==C&&(C=M,_=!1)}else C=i(x);if(!C){if(!_){m=y+(m.length>0?" "+m:m);continue}if(C=i(x),!C){m=y+(m.length>0?" "+m:m);continue}_=!1}const T=E.length===0?"":E.length===1?E[0]:d(E).join(":"),A=w?T+Jh:T,z=A+C;if(p.indexOf(z)>-1)continue;p.push(z);const G=o(C,_);for(let k=0;k<G.length;++k){const M=G[k];p.push(A+M)}m=y+(m.length>0?" "+m:m)}return m},n_=(...t)=>{let a=0,r,i,o="";for(;a<t.length;)(r=t[a++])&&(i=q0(r))&&(o&&(o+=" "),o+=i);return o},q0=t=>{if(typeof t=="string")return t;let a,r="";for(let i=0;i<t.length;i++)t[i]&&(a=q0(t[i]))&&(r&&(r+=" "),r+=a);return r},a_=(t,...a)=>{let r,i,o,d;const f=g=>{const m=a.reduce((v,y)=>y(v),t());return r=WN(m),i=r.cache.get,o=r.cache.set,d=p,p(g)},p=g=>{const m=i(g);if(m)return m;const v=t_(g,r);return o(g,v),v};return d=f,(...g)=>d(n_(...g))},s_=[],ft=t=>{const a=r=>r[t]||s_;return a.isThemeGetter=!0,a},I0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,V0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,r_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,i_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l_=/\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$/,o_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,c_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ss=t=>r_.test(t),je=t=>!!t&&!Number.isNaN(Number(t)),In=t=>!!t&&Number.isInteger(Number(t)),dh=t=>t.endsWith("%")&&je(t.slice(0,-1)),ba=t=>i_.test(t),Q0=()=>!0,d_=t=>l_.test(t)&&!o_.test(t),_p=()=>!1,f_=t=>c_.test(t),h_=t=>u_.test(t),p_=t=>!ue(t)&&!de(t),m_=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),g_=t=>Rs(t,X0,_p),ue=t=>I0.test(t),Qs=t=>Rs(t,Z0,d_),Xb=t=>Rs(t,j_,je),y_=t=>Rs(t,W0,Q0),v_=t=>Rs(t,K0,_p),Zb=t=>Rs(t,Y0,_p),b_=t=>Rs(t,$0,h_),Oc=t=>Rs(t,J0,f_),de=t=>V0.test(t),Dl=t=>gr(t,Z0),x_=t=>gr(t,K0),Kb=t=>gr(t,Y0),S_=t=>gr(t,X0),w_=t=>gr(t,$0),Mc=t=>gr(t,J0,!0),E_=t=>gr(t,W0,!0),Rs=(t,a,r)=>{const i=I0.exec(t);return i?i[1]?a(i[1]):r(i[2]):!1},gr=(t,a,r=!1)=>{const i=V0.exec(t);return i?i[1]?a(i[1]):r:!1},Y0=t=>t==="position"||t==="percentage",$0=t=>t==="image"||t==="url",X0=t=>t==="length"||t==="size"||t==="bg-size",Z0=t=>t==="length",j_=t=>t==="number",K0=t=>t==="family-name",W0=t=>t==="number"||t==="weight",J0=t=>t==="shadow",R_=()=>{const t=ft("color"),a=ft("font"),r=ft("text"),i=ft("font-weight"),o=ft("tracking"),d=ft("leading"),f=ft("breakpoint"),p=ft("container"),g=ft("spacing"),m=ft("radius"),v=ft("shadow"),y=ft("inset-shadow"),S=ft("text-shadow"),E=ft("drop-shadow"),w=ft("blur"),x=ft("perspective"),j=ft("aspect"),_=ft("ease"),C=ft("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...A(),de,ue],G=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],M=()=>[de,ue,g],L=()=>[ss,"full","auto",...M()],F=()=>[In,"none","subgrid",de,ue],X=()=>["auto",{span:["full",In,de,ue]},In,de,ue],ne=()=>[In,"auto",de,ue],se=()=>["auto","min","max","fr",de,ue],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...M()],Q=()=>[ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ee=()=>[ss,"screen","full","dvw","lvw","svw","min","max","fit",...M()],ge=()=>[ss,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],ae=()=>[t,de,ue],D=()=>[...A(),Kb,Zb,{position:[de,ue]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",S_,g_,{size:[de,ue]}],ie=()=>[dh,Dl,Qs],le=()=>["","none","full",m,de,ue],he=()=>["",je,Dl,Qs],xe=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[je,dh,Kb,Zb],zt=()=>["","none",w,de,ue],xt=()=>["none",je,de,ue],At=()=>["none",je,de,ue],Bt=()=>[je,de,ue],mt=()=>[ss,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ba],breakpoint:[ba],color:[Q0],container:[ba],"drop-shadow":[ba],ease:["in","out","in-out"],font:[p_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ba],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ba],shadow:[ba],spacing:["px",je],text:[ba],"text-shadow":[ba],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ss,ue,de,j]}],container:["container"],"container-type":[{"@container":["","normal","size",de,ue]}],"container-named":[m_],columns:[{columns:[je,ue,de,p]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[In,"auto",de,ue]}],basis:[{basis:[ss,"full","auto",p,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,ss,"auto","initial","none",ue]}],grow:[{grow:["",je,de,ue]}],shrink:[{shrink:["",je,de,ue]}],order:[{order:[In,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...ge()]}],"min-block-size":[{"min-block":["auto",...ge()]}],"max-block-size":[{"max-block":["none",...ge()]}],w:[{w:[p,"screen",...Q()]}],"min-w":[{"min-w":[p,"screen","none",...Q()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",r,Dl,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,E_,y_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dh,ue]}],"font-family":[{font:[x_,v_,a]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,ue]}],"line-clamp":[{"line-clamp":[je,"none",de,Xb]}],leading:[{leading:[d,...M()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",de,Qs]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[je,"auto",de,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[In,de,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},In,de,ue],radial:["",de,ue],conic:[In,de,ue]},w_,b_]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-bs":[{"border-bs":ae()}],"border-color-be":[{"border-be":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,de,ue]}],"outline-w":[{outline:["",je,Dl,Qs]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",v,Mc,Oc]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",y,Mc,Oc]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[je,Qs]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",S,Mc,Oc]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[je,de,ue]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:zt()}],brightness:[{brightness:[je,de,ue]}],contrast:[{contrast:[je,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",E,Mc,Oc]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",je,de,ue]}],"hue-rotate":[{"hue-rotate":[je,de,ue]}],invert:[{invert:["",je,de,ue]}],saturate:[{saturate:[je,de,ue]}],sepia:[{sepia:["",je,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":zt()}],"backdrop-brightness":[{"backdrop-brightness":[je,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[je,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",je,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[je,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[je,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",je,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",de,ue]}],ease:[{ease:["linear","initial",_,de,ue]}],delay:[{delay:[je,de,ue]}],animate:[{animate:["none",C,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,de,ue]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:At()}],"scale-x":[{"scale-x":At()}],"scale-y":[{"scale-y":At()}],"scale-z":[{"scale-z":At()}],"scale-3d":["scale-3d"],skew:[{skew:Bt()}],"skew-x":[{"skew-x":Bt()}],"skew-y":[{"skew-y":Bt()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],zoom:[{zoom:[In,de,ue]}],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ae()}],"scrollbar-track-color":[{"scrollbar-track":ae()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",de,ue]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[je,Dl,Qs,Xb]}],stroke:[{stroke:["none",...ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},e1=a_(R_);function pt(...t){return e1(ro(t))}const N_=xu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Mt({className:t,variant:a,...r}){return u.jsx("div",{className:pt(N_({variant:a}),t),...r})}const t1=xu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Dt=N.forwardRef(({className:t,variant:a,size:r,...i},o)=>u.jsx("button",{className:pt(t1({variant:a,size:r,className:t})),ref:o,...i}));Dt.displayName="Button";const Me=({className:t,...a})=>u.jsx("section",{className:pt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a}),rt=({className:t,...a})=>u.jsx("div",{className:pt("flex flex-col space-y-1.5 p-6",t),...a}),it=({className:t,...a})=>u.jsx("h3",{className:pt("text-2xl font-semibold leading-none tracking-tight",t),...a}),fh=({className:t,...a})=>u.jsx("p",{className:pt("text-sm text-muted-foreground",t),...a}),De=({className:t,...a})=>u.jsx("div",{className:pt("p-6 pt-0",t),...a}),__=({className:t,children:a,...r})=>u.jsx("pre",{className:pt("rounded-lg border bg-card/50 p-4 overflow-auto text-sm font-mono text-foreground leading-relaxed",t),...r,children:a}),Ql=N.forwardRef(({className:t,type:a,...r},i)=>u.jsx("input",{type:a,className:pt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",t),ref:i,...r}));Ql.displayName="Input";const _t=N.forwardRef(({className:t,...a},r)=>u.jsx("label",{ref:r,className:pt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...a}));_t.displayName="Label";const Na=N.forwardRef(({className:t,...a},r)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:r,className:pt("w-full caption-bottom text-sm",t),...a})}));Na.displayName="Table";const _a=N.forwardRef(({className:t,...a},r)=>u.jsx("thead",{ref:r,className:pt("[&_tr]:border-b",t),...a}));_a.displayName="TableHeader";const Ca=N.forwardRef(({className:t,...a},r)=>u.jsx("tbody",{ref:r,className:pt("[&_tr:last-child]:border-0",t),...a}));Ca.displayName="TableBody";const C_=N.forwardRef(({className:t,...a},r)=>u.jsx("tfoot",{ref:r,className:pt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a}));C_.displayName="TableFooter";const bt=N.forwardRef(({className:t,...a},r)=>u.jsx("tr",{ref:r,className:pt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a}));bt.displayName="TableRow";const Ye=N.forwardRef(({className:t,...a},r)=>u.jsx("th",{ref:r,className:pt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...a}));Ye.displayName="TableHead";const Pe=N.forwardRef(({className:t,...a},r)=>u.jsx("td",{ref:r,className:pt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a}));Pe.displayName="TableCell";const A_=N.forwardRef(({className:t,...a},r)=>u.jsx("caption",{ref:r,className:pt("mt-4 text-sm text-muted-foreground",t),...a}));A_.displayName="TableCaption";const ep=({className:t,...a})=>u.jsx("textarea",{className:pt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",t),...a});function Xt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function Wb(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function Cp(...t){return a=>{let r=!1;const i=t.map(o=>{const d=Wb(o,a);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let o=0;o<i.length;o++){const d=i[o];typeof d=="function"?d():Wb(t[o],null)}}}}function Bn(...t){return N.useCallback(Cp(...t),t)}function T_(t,a){const r=N.createContext(a),i=d=>{const{children:f,...p}=d,g=N.useMemo(()=>p,Object.values(p));return u.jsx(r.Provider,{value:g,children:f})};i.displayName=t+"Provider";function o(d){const f=N.useContext(r);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${t}\``)}return[i,o]}function Ap(t,a=[]){let r=[];function i(d,f){const p=N.createContext(f),g=r.length;r=[...r,f];const m=y=>{var _;const{scope:S,children:E,...w}=y,x=((_=S==null?void 0:S[t])==null?void 0:_[g])||p,j=N.useMemo(()=>w,Object.values(w));return u.jsx(x.Provider,{value:j,children:E})};m.displayName=d+"Provider";function v(y,S){var x;const E=((x=S==null?void 0:S[t])==null?void 0:x[g])||p,w=N.useContext(E);if(w)return w;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${d}\``)}return[m,v]}const o=()=>{const d=r.map(f=>N.createContext(f));return function(p){const g=(p==null?void 0:p[t])||d;return N.useMemo(()=>({[`__scope${t}`]:{...p,[t]:g}}),[p,g])}};return o.scopeName=t,[i,k_(o,...a)]}function k_(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(d){const f=i.reduce((p,{useScope:g,scopeName:m})=>{const y=g(d)[`__scope${m}`];return{...p,...y}},{});return N.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return r.scopeName=a.scopeName,r}function n1(t){const a=O_(t),r=N.forwardRef((i,o)=>{const{children:d,...f}=i,p=N.Children.toArray(d),g=p.find(D_);if(g){const m=g.props.children,v=p.map(y=>y===g?N.Children.count(m)>1?N.Children.only(null):N.isValidElement(m)?m.props.children:null:y);return u.jsx(a,{...f,ref:o,children:N.isValidElement(m)?N.cloneElement(m,void 0,v):null})}return u.jsx(a,{...f,ref:o,children:d})});return r.displayName=`${t}.Slot`,r}function O_(t){const a=N.forwardRef((r,i)=>{const{children:o,...d}=r;if(N.isValidElement(o)){const f=z_(o),p=L_(d,o.props);return o.type!==N.Fragment&&(p.ref=i?Cp(i,f):f),N.cloneElement(o,p)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var a1=Symbol("radix.slottable");function M_(t){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=a1,a}function D_(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===a1}function L_(t,a){const r={...a};for(const i in a){const o=t[i],d=a[i];/^on[A-Z]/.test(i)?o&&d?r[i]=(...p)=>{const g=d(...p);return o(...p),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...d}:i==="className"&&(r[i]=[o,d].filter(Boolean).join(" "))}return{...t,...r}}function z_(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var B_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wt=B_.reduce((t,a)=>{const r=n1(`Primitive.${a}`),i=N.forwardRef((o,d)=>{const{asChild:f,...p}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...p,ref:d})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{});function U_(t,a){t&&gu.flushSync(()=>t.dispatchEvent(a))}function Ti(t){const a=N.useRef(t);return N.useEffect(()=>{a.current=t}),N.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}function P_(t,a=globalThis==null?void 0:globalThis.document){const r=Ti(t);N.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var H_="DismissableLayer",tp="dismissableLayer.update",F_="dismissableLayer.pointerDownOutside",G_="dismissableLayer.focusOutside",Jb,s1=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tp=N.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...g}=t,m=N.useContext(s1),[v,y]=N.useState(null),S=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=N.useState({}),w=Bn(a,k=>y(k)),x=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),_=x.indexOf(j),C=v?x.indexOf(v):-1,T=m.layersWithOutsidePointerEventsDisabled.size>0,A=C>=_,z=V_(k=>{const M=k.target,L=[...m.branches].some(F=>F.contains(M));!A||L||(o==null||o(k),f==null||f(k),k.defaultPrevented||p==null||p())},S),G=Q_(k=>{const M=k.target;[...m.branches].some(F=>F.contains(M))||(d==null||d(k),f==null||f(k),k.defaultPrevented||p==null||p())},S);return P_(k=>{C===m.layers.size-1&&(i==null||i(k),!k.defaultPrevented&&p&&(k.preventDefault(),p()))},S),N.useEffect(()=>{if(v)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Jb=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),ex(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Jb)}},[v,S,r,m]),N.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),ex())},[v,m]),N.useEffect(()=>{const k=()=>E({});return document.addEventListener(tp,k),()=>document.removeEventListener(tp,k)},[]),u.jsx(Wt.div,{...g,ref:w,style:{pointerEvents:T?A?"auto":"none":void 0,...t.style},onFocusCapture:Xt(t.onFocusCapture,G.onFocusCapture),onBlurCapture:Xt(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Xt(t.onPointerDownCapture,z.onPointerDownCapture)})});Tp.displayName=H_;var q_="DismissableLayerBranch",I_=N.forwardRef((t,a)=>{const r=N.useContext(s1),i=N.useRef(null),o=Bn(a,i);return N.useEffect(()=>{const d=i.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),u.jsx(Wt.div,{...t,ref:o})});I_.displayName=q_;function V_(t,a=globalThis==null?void 0:globalThis.document){const r=Ti(t),i=N.useRef(!1),o=N.useRef(()=>{});return N.useEffect(()=>{const d=p=>{if(p.target&&!i.current){let g=function(){r1(F_,r,m,{discrete:!0})};const m={originalEvent:p};p.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=g,a.addEventListener("click",o.current,{once:!0})):g()}else a.removeEventListener("click",o.current);i.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",d),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function Q_(t,a=globalThis==null?void 0:globalThis.document){const r=Ti(t),i=N.useRef(!1);return N.useEffect(()=>{const o=d=>{d.target&&!i.current&&r1(G_,r,{originalEvent:d},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function ex(){const t=new CustomEvent(tp);document.dispatchEvent(t)}function r1(t,a,r,{discrete:i}){const o=r.originalEvent.target,d=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(t,a,{once:!0}),i?U_(o,d):o.dispatchEvent(d)}var ws=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},Y_=dp[" useId ".trim().toString()]||(()=>{}),$_=0;function Qc(t){const[a,r]=N.useState(Y_());return ws(()=>{r(i=>i??String($_++))},[t]),t||(a?`radix-${a}`:"")}const X_=["top","right","bottom","left"],Es=Math.min,fn=Math.max,ru=Math.round,Dc=Math.floor,Wn=t=>({x:t,y:t}),Z_={left:"right",right:"left",bottom:"top",top:"bottom"};function np(t,a,r){return fn(t,Es(a,r))}function Aa(t,a){return typeof t=="function"?t(a):t}function Ta(t){return t.split("-")[0]}function Mi(t){return t.split("-")[1]}function kp(t){return t==="x"?"y":"x"}function Op(t){return t==="y"?"height":"width"}function Kn(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function Mp(t){return kp(Kn(t))}function K_(t,a,r){r===void 0&&(r=!1);const i=Mi(t),o=Mp(t),d=Op(o);let f=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(f=iu(f)),[f,iu(f)]}function W_(t){const a=iu(t);return[ap(t),a,ap(a)]}function ap(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const tx=["left","right"],nx=["right","left"],J_=["top","bottom"],eC=["bottom","top"];function tC(t,a,r){switch(t){case"top":case"bottom":return r?a?nx:tx:a?tx:nx;case"left":case"right":return a?J_:eC;default:return[]}}function nC(t,a,r,i){const o=Mi(t);let d=tC(Ta(t),r==="start",i);return o&&(d=d.map(f=>f+"-"+o),a&&(d=d.concat(d.map(ap)))),d}function iu(t){const a=Ta(t);return Z_[a]+t.slice(a.length)}function aC(t){return{top:0,right:0,bottom:0,left:0,...t}}function i1(t){return typeof t!="number"?aC(t):{top:t,right:t,bottom:t,left:t}}function lu(t){const{x:a,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function ax(t,a,r){let{reference:i,floating:o}=t;const d=Kn(a),f=Mp(a),p=Op(f),g=Ta(a),m=d==="y",v=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,S=i[p]/2-o[p]/2;let E;switch(g){case"top":E={x:v,y:i.y-o.height};break;case"bottom":E={x:v,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y};break;case"left":E={x:i.x-o.width,y};break;default:E={x:i.x,y:i.y}}switch(Mi(a)){case"start":E[f]-=S*(r&&m?-1:1);break;case"end":E[f]+=S*(r&&m?-1:1);break}return E}async function sC(t,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:d,rects:f,elements:p,strategy:g}=t,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:S=!1,padding:E=0}=Aa(a,t),w=i1(E),j=p[S?y==="floating"?"reference":"floating":y],_=lu(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(j)))==null||r?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:m,rootBoundary:v,strategy:g})),C=y==="floating"?{x:i,y:o,width:f.floating.width,height:f.floating.height}:f.reference,T=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),A=await(d.isElement==null?void 0:d.isElement(T))?await(d.getScale==null?void 0:d.getScale(T))||{x:1,y:1}:{x:1,y:1},z=lu(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:C,offsetParent:T,strategy:g}):C);return{top:(_.top-z.top+w.top)/A.y,bottom:(z.bottom-_.bottom+w.bottom)/A.y,left:(_.left-z.left+w.left)/A.x,right:(z.right-_.right+w.right)/A.x}}const rC=50,iC=async(t,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:d=[],platform:f}=r,p=f.detectOverflow?f:{...f,detectOverflow:sC},g=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:t,floating:a,strategy:o}),{x:v,y}=ax(m,i,g),S=i,E=0;const w={};for(let x=0;x<d.length;x++){const j=d[x];if(!j)continue;const{name:_,fn:C}=j,{x:T,y:A,data:z,reset:G}=await C({x:v,y,initialPlacement:i,placement:S,strategy:o,middlewareData:w,rects:m,platform:p,elements:{reference:t,floating:a}});v=T??v,y=A??y,w[_]={...w[_],...z},G&&E<rC&&(E++,typeof G=="object"&&(G.placement&&(S=G.placement),G.rects&&(m=G.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:o}):G.rects),{x:v,y}=ax(m,S,g)),x=-1)}return{x:v,y,placement:S,strategy:o,middlewareData:w}},lC=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:i,placement:o,rects:d,platform:f,elements:p,middlewareData:g}=a,{element:m,padding:v=0}=Aa(t,a)||{};if(m==null)return{};const y=i1(v),S={x:r,y:i},E=Mp(o),w=Op(E),x=await f.getDimensions(m),j=E==="y",_=j?"top":"left",C=j?"bottom":"right",T=j?"clientHeight":"clientWidth",A=d.reference[w]+d.reference[E]-S[E]-d.floating[w],z=S[E]-d.reference[E],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let k=G?G[T]:0;(!k||!await(f.isElement==null?void 0:f.isElement(G)))&&(k=p.floating[T]||d.floating[w]);const M=A/2-z/2,L=k/2-x[w]/2-1,F=Es(y[_],L),X=Es(y[C],L),ne=F,se=k-x[w]-X,te=k/2-x[w]/2+M,oe=np(ne,te,se),P=!g.arrow&&Mi(o)!=null&&te!==oe&&d.reference[w]/2-(te<ne?F:X)-x[w]/2<0,Q=P?te<ne?te-ne:te-se:0;return{[E]:S[E]+Q,data:{[E]:oe,centerOffset:te-oe-Q,...P&&{alignmentOffset:Q}},reset:P}}}),oC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,i;const{placement:o,middlewareData:d,rects:f,initialPlacement:p,platform:g,elements:m}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...j}=Aa(t,a);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const _=Ta(o),C=Kn(p),T=Ta(p)===p,A=await(g.isRTL==null?void 0:g.isRTL(m.floating)),z=S||(T||!x?[iu(p)]:W_(p)),G=w!=="none";!S&&G&&z.push(...nC(p,x,w,A));const k=[p,...z],M=await g.detectOverflow(a,j),L=[];let F=((i=d.flip)==null?void 0:i.overflows)||[];if(v&&L.push(M[_]),y){const te=K_(o,f,A);L.push(M[te[0]],M[te[1]])}if(F=[...F,{placement:o,overflows:L}],!L.every(te=>te<=0)){var X,ne;const te=(((X=d.flip)==null?void 0:X.index)||0)+1,oe=k[te];if(oe&&(!(y==="alignment"?C!==Kn(oe):!1)||F.every(ee=>Kn(ee.placement)===C?ee.overflows[0]>0:!0)))return{data:{index:te,overflows:F},reset:{placement:oe}};let P=(ne=F.filter(Q=>Q.overflows[0]<=0).sort((Q,ee)=>Q.overflows[1]-ee.overflows[1])[0])==null?void 0:ne.placement;if(!P)switch(E){case"bestFit":{var se;const Q=(se=F.filter(ee=>{if(G){const ge=Kn(ee.placement);return ge===C||ge==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ge=>ge>0).reduce((ge,ae)=>ge+ae,0)]).sort((ee,ge)=>ee[1]-ge[1])[0])==null?void 0:se[0];Q&&(P=Q);break}case"initialPlacement":P=p;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function sx(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function rx(t){return X_.some(a=>t[a]>=0)}const cC=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r,platform:i}=a,{strategy:o="referenceHidden",...d}=Aa(t,a);switch(o){case"referenceHidden":{const f=await i.detectOverflow(a,{...d,elementContext:"reference"}),p=sx(f,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:rx(p)}}}case"escaped":{const f=await i.detectOverflow(a,{...d,altBoundary:!0}),p=sx(f,r.floating);return{data:{escapedOffsets:p,escaped:rx(p)}}}default:return{}}}}},l1=new Set(["left","top"]);async function uC(t,a){const{placement:r,platform:i,elements:o}=t,d=await(i.isRTL==null?void 0:i.isRTL(o.floating)),f=Ta(r),p=Mi(r),g=Kn(r)==="y",m=l1.has(f)?-1:1,v=d&&g?-1:1,y=Aa(a,t);let{mainAxis:S,crossAxis:E,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return p&&typeof w=="number"&&(E=p==="end"?w*-1:w),g?{x:E*v,y:S*m}:{x:S*m,y:E*v}}const dC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,i;const{x:o,y:d,placement:f,middlewareData:p}=a,g=await uC(a,t);return f===((r=p.offset)==null?void 0:r.placement)&&(i=p.arrow)!=null&&i.alignmentOffset?{}:{x:o+g.x,y:d+g.y,data:{...g,placement:f}}}}},fC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:i,placement:o,platform:d}=a,{mainAxis:f=!0,crossAxis:p=!1,limiter:g={fn:_=>{let{x:C,y:T}=_;return{x:C,y:T}}},...m}=Aa(t,a),v={x:r,y:i},y=await d.detectOverflow(a,m),S=Kn(Ta(o)),E=kp(S);let w=v[E],x=v[S];if(f){const _=E==="y"?"top":"left",C=E==="y"?"bottom":"right",T=w+y[_],A=w-y[C];w=np(T,w,A)}if(p){const _=S==="y"?"top":"left",C=S==="y"?"bottom":"right",T=x+y[_],A=x-y[C];x=np(T,x,A)}const j=g.fn({...a,[E]:w,[S]:x});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[E]:f,[S]:p}}}}}},hC=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:i,placement:o,rects:d,middlewareData:f}=a,{offset:p=0,mainAxis:g=!0,crossAxis:m=!0}=Aa(t,a),v={x:r,y:i},y=Kn(o),S=kp(y);let E=v[S],w=v[y];const x=Aa(p,a),j=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(g){const T=S==="y"?"height":"width",A=d.reference[S]-d.floating[T]+j.mainAxis,z=d.reference[S]+d.reference[T]-j.mainAxis;E<A?E=A:E>z&&(E=z)}if(m){var _,C;const T=S==="y"?"width":"height",A=l1.has(Ta(o)),z=d.reference[y]-d.floating[T]+(A&&((_=f.offset)==null?void 0:_[y])||0)+(A?0:j.crossAxis),G=d.reference[y]+d.reference[T]+(A?0:((C=f.offset)==null?void 0:C[y])||0)-(A?j.crossAxis:0);w<z?w=z:w>G&&(w=G)}return{[S]:E,[y]:w}}}},pC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,i;const{placement:o,rects:d,platform:f,elements:p}=a,{apply:g=()=>{},...m}=Aa(t,a),v=await f.detectOverflow(a,m),y=Ta(o),S=Mi(o),E=Kn(o)==="y",{width:w,height:x}=d.floating;let j,_;y==="top"||y==="bottom"?(j=y,_=S===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(_=y,j=S==="end"?"top":"bottom");const C=x-v.top-v.bottom,T=w-v.left-v.right,A=Es(x-v[j],C),z=Es(w-v[_],T),G=!a.middlewareData.shift;let k=A,M=z;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(M=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(k=C),G&&!S){const F=fn(v.left,0),X=fn(v.right,0),ne=fn(v.top,0),se=fn(v.bottom,0);E?M=w-2*(F!==0||X!==0?F+X:fn(v.left,v.right)):k=x-2*(ne!==0||se!==0?ne+se:fn(v.top,v.bottom))}await g({...a,availableWidth:M,availableHeight:k});const L=await f.getDimensions(p.floating);return w!==L.width||x!==L.height?{reset:{rects:!0}}:{}}}};function Su(){return typeof window<"u"}function Di(t){return o1(t)?(t.nodeName||"").toLowerCase():"#document"}function hn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function ea(t){var a;return(a=(o1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function o1(t){return Su()?t instanceof Node||t instanceof hn(t).Node:!1}function Dn(t){return Su()?t instanceof Element||t instanceof hn(t).Element:!1}function ka(t){return Su()?t instanceof HTMLElement||t instanceof hn(t).HTMLElement:!1}function ix(t){return!Su()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof hn(t).ShadowRoot}function io(t){const{overflow:a,overflowX:r,overflowY:i,display:o}=Ln(t);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&o!=="inline"&&o!=="contents"}function mC(t){return/^(table|td|th)$/.test(Di(t))}function wu(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const gC=/transform|translate|scale|rotate|perspective|filter/,yC=/paint|layout|strict|content/,Ys=t=>!!t&&t!=="none";let hh;function Dp(t){const a=Dn(t)?Ln(t):t;return Ys(a.transform)||Ys(a.translate)||Ys(a.scale)||Ys(a.rotate)||Ys(a.perspective)||!Lp()&&(Ys(a.backdropFilter)||Ys(a.filter))||gC.test(a.willChange||"")||yC.test(a.contain||"")}function vC(t){let a=js(t);for(;ka(a)&&!ki(a);){if(Dp(a))return a;if(wu(a))return null;a=js(a)}return null}function Lp(){return hh==null&&(hh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hh}function ki(t){return/^(html|body|#document)$/.test(Di(t))}function Ln(t){return hn(t).getComputedStyle(t)}function Eu(t){return Dn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function js(t){if(Di(t)==="html")return t;const a=t.assignedSlot||t.parentNode||ix(t)&&t.host||ea(t);return ix(a)?a.host:a}function c1(t){const a=js(t);return ki(a)?t.ownerDocument?t.ownerDocument.body:t.body:ka(a)&&io(a)?a:c1(a)}function Yl(t,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=c1(t),d=o===((i=t.ownerDocument)==null?void 0:i.body),f=hn(o);if(d){const p=sp(f);return a.concat(f,f.visualViewport||[],io(o)?o:[],p&&r?Yl(p):[])}else return a.concat(o,Yl(o,[],r))}function sp(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function u1(t){const a=Ln(t);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=ka(t),d=o?t.offsetWidth:r,f=o?t.offsetHeight:i,p=ru(r)!==d||ru(i)!==f;return p&&(r=d,i=f),{width:r,height:i,$:p}}function zp(t){return Dn(t)?t:t.contextElement}function fi(t){const a=zp(t);if(!ka(a))return Wn(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:d}=u1(a);let f=(d?ru(r.width):r.width)/i,p=(d?ru(r.height):r.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const bC=Wn(0);function d1(t){const a=hn(t);return!Lp()||!a.visualViewport?bC:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function xC(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==hn(t)?!1:a}function hr(t,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),d=zp(t);let f=Wn(1);a&&(i?Dn(i)&&(f=fi(i)):f=fi(t));const p=xC(d,r,i)?d1(d):Wn(0);let g=(o.left+p.x)/f.x,m=(o.top+p.y)/f.y,v=o.width/f.x,y=o.height/f.y;if(d){const S=hn(d),E=i&&Dn(i)?hn(i):i;let w=S,x=sp(w);for(;x&&i&&E!==w;){const j=fi(x),_=x.getBoundingClientRect(),C=Ln(x),T=_.left+(x.clientLeft+parseFloat(C.paddingLeft))*j.x,A=_.top+(x.clientTop+parseFloat(C.paddingTop))*j.y;g*=j.x,m*=j.y,v*=j.x,y*=j.y,g+=T,m+=A,w=hn(x),x=sp(w)}}return lu({width:v,height:y,x:g,y:m})}function ju(t,a){const r=Eu(t).scrollLeft;return a?a.left+r:hr(ea(t)).left+r}function f1(t,a){const r=t.getBoundingClientRect(),i=r.left+a.scrollLeft-ju(t,r),o=r.top+a.scrollTop;return{x:i,y:o}}function SC(t){let{elements:a,rect:r,offsetParent:i,strategy:o}=t;const d=o==="fixed",f=ea(i),p=a?wu(a.floating):!1;if(i===f||p&&d)return r;let g={scrollLeft:0,scrollTop:0},m=Wn(1);const v=Wn(0),y=ka(i);if((y||!y&&!d)&&((Di(i)!=="body"||io(f))&&(g=Eu(i)),y)){const E=hr(i);m=fi(i),v.x=E.x+i.clientLeft,v.y=E.y+i.clientTop}const S=f&&!y&&!d?f1(f,g):Wn(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-g.scrollLeft*m.x+v.x+S.x,y:r.y*m.y-g.scrollTop*m.y+v.y+S.y}}function wC(t){return Array.from(t.getClientRects())}function EC(t){const a=ea(t),r=Eu(t),i=t.ownerDocument.body,o=fn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),d=fn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+ju(t);const p=-r.scrollTop;return Ln(i).direction==="rtl"&&(f+=fn(a.clientWidth,i.clientWidth)-o),{width:o,height:d,x:f,y:p}}const lx=25;function jC(t,a){const r=hn(t),i=ea(t),o=r.visualViewport;let d=i.clientWidth,f=i.clientHeight,p=0,g=0;if(o){d=o.width,f=o.height;const v=Lp();(!v||v&&a==="fixed")&&(p=o.offsetLeft,g=o.offsetTop)}const m=ju(i);if(m<=0){const v=i.ownerDocument,y=v.body,S=getComputedStyle(y),E=v.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,w=Math.abs(i.clientWidth-y.clientWidth-E);w<=lx&&(d-=w)}else m<=lx&&(d+=m);return{width:d,height:f,x:p,y:g}}function RC(t,a){const r=hr(t,!0,a==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,d=ka(t)?fi(t):Wn(1),f=t.clientWidth*d.x,p=t.clientHeight*d.y,g=o*d.x,m=i*d.y;return{width:f,height:p,x:g,y:m}}function ox(t,a,r){let i;if(a==="viewport")i=jC(t,r);else if(a==="document")i=EC(ea(t));else if(Dn(a))i=RC(a,r);else{const o=d1(t);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return lu(i)}function h1(t,a){const r=js(t);return r===a||!Dn(r)||ki(r)?!1:Ln(r).position==="fixed"||h1(r,a)}function NC(t,a){const r=a.get(t);if(r)return r;let i=Yl(t,[],!1).filter(p=>Dn(p)&&Di(p)!=="body"),o=null;const d=Ln(t).position==="fixed";let f=d?js(t):t;for(;Dn(f)&&!ki(f);){const p=Ln(f),g=Dp(f);!g&&p.position==="fixed"&&(o=null),(d?!g&&!o:!g&&p.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||io(f)&&!g&&h1(t,f))?i=i.filter(v=>v!==f):o=p,f=js(f)}return a.set(t,i),i}function _C(t){let{element:a,boundary:r,rootBoundary:i,strategy:o}=t;const f=[...r==="clippingAncestors"?wu(a)?[]:NC(a,this._c):[].concat(r),i],p=ox(a,f[0],o);let g=p.top,m=p.right,v=p.bottom,y=p.left;for(let S=1;S<f.length;S++){const E=ox(a,f[S],o);g=fn(E.top,g),m=Es(E.right,m),v=Es(E.bottom,v),y=fn(E.left,y)}return{width:m-y,height:v-g,x:y,y:g}}function CC(t){const{width:a,height:r}=u1(t);return{width:a,height:r}}function AC(t,a,r){const i=ka(a),o=ea(a),d=r==="fixed",f=hr(t,!0,d,a);let p={scrollLeft:0,scrollTop:0};const g=Wn(0);function m(){g.x=ju(o)}if(i||!i&&!d)if((Di(a)!=="body"||io(o))&&(p=Eu(a)),i){const E=hr(a,!0,d,a);g.x=E.x+a.clientLeft,g.y=E.y+a.clientTop}else o&&m();d&&!i&&o&&m();const v=o&&!i&&!d?f1(o,p):Wn(0),y=f.left+p.scrollLeft-g.x-v.x,S=f.top+p.scrollTop-g.y-v.y;return{x:y,y:S,width:f.width,height:f.height}}function ph(t){return Ln(t).position==="static"}function cx(t,a){if(!ka(t)||Ln(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return ea(t)===r&&(r=r.ownerDocument.body),r}function p1(t,a){const r=hn(t);if(wu(t))return r;if(!ka(t)){let o=js(t);for(;o&&!ki(o);){if(Dn(o)&&!ph(o))return o;o=js(o)}return r}let i=cx(t,a);for(;i&&mC(i)&&ph(i);)i=cx(i,a);return i&&ki(i)&&ph(i)&&!Dp(i)?r:i||vC(t)||r}const TC=async function(t){const a=this.getOffsetParent||p1,r=this.getDimensions,i=await r(t.floating);return{reference:AC(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function kC(t){return Ln(t).direction==="rtl"}const OC={convertOffsetParentRelativeRectToViewportRelativeRect:SC,getDocumentElement:ea,getClippingRect:_C,getOffsetParent:p1,getElementRects:TC,getClientRects:wC,getDimensions:CC,getScale:fi,isElement:Dn,isRTL:kC};function m1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function MC(t,a){let r=null,i;const o=ea(t);function d(){var p;clearTimeout(i),(p=r)==null||p.disconnect(),r=null}function f(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),d();const m=t.getBoundingClientRect(),{left:v,top:y,width:S,height:E}=m;if(p||a(),!S||!E)return;const w=Dc(y),x=Dc(o.clientWidth-(v+S)),j=Dc(o.clientHeight-(y+E)),_=Dc(v),T={rootMargin:-w+"px "+-x+"px "+-j+"px "+-_+"px",threshold:fn(0,Es(1,g))||1};let A=!0;function z(G){const k=G[0].intersectionRatio;if(k!==g){if(!A)return f();k?f(!1,k):i=setTimeout(()=>{f(!1,1e-7)},1e3)}k===1&&!m1(m,t.getBoundingClientRect())&&f(),A=!1}try{r=new IntersectionObserver(z,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(z,T)}r.observe(t)}return f(!0),d}function DC(t,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,m=zp(t),v=o||d?[...m?Yl(m):[],...a?Yl(a):[]]:[];v.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),d&&_.addEventListener("resize",r)});const y=m&&p?MC(m,r):null;let S=-1,E=null;f&&(E=new ResizeObserver(_=>{let[C]=_;C&&C.target===m&&E&&a&&(E.unobserve(a),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var T;(T=E)==null||T.observe(a)})),r()}),m&&!g&&E.observe(m),a&&E.observe(a));let w,x=g?hr(t):null;g&&j();function j(){const _=hr(t);x&&!m1(x,_)&&r(),x=_,w=requestAnimationFrame(j)}return r(),()=>{var _;v.forEach(C=>{o&&C.removeEventListener("scroll",r),d&&C.removeEventListener("resize",r)}),y==null||y(),(_=E)==null||_.disconnect(),E=null,g&&cancelAnimationFrame(w)}}const LC=dC,zC=fC,BC=oC,UC=pC,PC=cC,ux=lC,HC=hC,FC=(t,a,r)=>{const i=new Map,o={platform:OC,...r},d={...o.platform,_c:i};return iC(t,a,{...o,platform:d})};var GC=typeof document<"u",qC=function(){},Yc=GC?N.useLayoutEffect:qC;function ou(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,i,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!ou(t[i],a[i]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const d=o[i];if(!(d==="_owner"&&t.$$typeof)&&!ou(t[d],a[d]))return!1}return!0}return t!==t&&a!==a}function g1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function dx(t,a){const r=g1(t);return Math.round(a*r)/r}function mh(t){const a=N.useRef(t);return Yc(()=>{a.current=t}),a}function IC(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:d,floating:f}={},transform:p=!0,whileElementsMounted:g,open:m}=t,[v,y]=N.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[S,E]=N.useState(i);ou(S,i)||E(i);const[w,x]=N.useState(null),[j,_]=N.useState(null),C=N.useCallback(ee=>{ee!==G.current&&(G.current=ee,x(ee))},[]),T=N.useCallback(ee=>{ee!==k.current&&(k.current=ee,_(ee))},[]),A=d||w,z=f||j,G=N.useRef(null),k=N.useRef(null),M=N.useRef(v),L=g!=null,F=mh(g),X=mh(o),ne=mh(m),se=N.useCallback(()=>{if(!G.current||!k.current)return;const ee={placement:a,strategy:r,middleware:S};X.current&&(ee.platform=X.current),FC(G.current,k.current,ee).then(ge=>{const ae={...ge,isPositioned:ne.current!==!1};te.current&&!ou(M.current,ae)&&(M.current=ae,gu.flushSync(()=>{y(ae)}))})},[S,a,r,X,ne]);Yc(()=>{m===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,y(ee=>({...ee,isPositioned:!1})))},[m]);const te=N.useRef(!1);Yc(()=>(te.current=!0,()=>{te.current=!1}),[]),Yc(()=>{if(A&&(G.current=A),z&&(k.current=z),A&&z){if(F.current)return F.current(A,z,se);se()}},[A,z,se,F,L]);const oe=N.useMemo(()=>({reference:G,floating:k,setReference:C,setFloating:T}),[C,T]),P=N.useMemo(()=>({reference:A,floating:z}),[A,z]),Q=N.useMemo(()=>{const ee={position:r,left:0,top:0};if(!P.floating)return ee;const ge=dx(P.floating,v.x),ae=dx(P.floating,v.y);return p?{...ee,transform:"translate("+ge+"px, "+ae+"px)",...g1(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ge,top:ae}},[r,p,P.floating,v.x,v.y]);return N.useMemo(()=>({...v,update:se,refs:oe,elements:P,floatingStyles:Q}),[v,se,oe,P,Q])}const VC=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:o}=typeof t=="function"?t(r):t;return i&&a(i)?i.current!=null?ux({element:i.current,padding:o}).fn(r):{}:i?ux({element:i,padding:o}).fn(r):{}}}},QC=(t,a)=>{const r=LC(t);return{name:r.name,fn:r.fn,options:[t,a]}},YC=(t,a)=>{const r=zC(t);return{name:r.name,fn:r.fn,options:[t,a]}},$C=(t,a)=>({fn:HC(t).fn,options:[t,a]}),XC=(t,a)=>{const r=BC(t);return{name:r.name,fn:r.fn,options:[t,a]}},ZC=(t,a)=>{const r=UC(t);return{name:r.name,fn:r.fn,options:[t,a]}},KC=(t,a)=>{const r=PC(t);return{name:r.name,fn:r.fn,options:[t,a]}},WC=(t,a)=>{const r=VC(t);return{name:r.name,fn:r.fn,options:[t,a]}};var JC="Arrow",y1=N.forwardRef((t,a)=>{const{children:r,width:i=10,height:o=5,...d}=t;return u.jsx(Wt.svg,{...d,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});y1.displayName=JC;var eA=y1;function tA(t){const[a,r]=N.useState(void 0);return ws(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const d=o[0];let f,p;if("borderBoxSize"in d){const g=d.borderBoxSize,m=Array.isArray(g)?g[0]:g;f=m.inlineSize,p=m.blockSize}else f=t.offsetWidth,p=t.offsetHeight;r({width:f,height:p})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),a}var Bp="Popper",[v1,b1]=Ap(Bp),[nA,x1]=v1(Bp),S1=t=>{const{__scopePopper:a,children:r}=t,[i,o]=N.useState(null);return u.jsx(nA,{scope:a,anchor:i,onAnchorChange:o,children:r})};S1.displayName=Bp;var w1="PopperAnchor",E1=N.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:i,...o}=t,d=x1(w1,r),f=N.useRef(null),p=Bn(a,f),g=N.useRef(null);return N.useEffect(()=>{const m=g.current;g.current=(i==null?void 0:i.current)||f.current,m!==g.current&&d.onAnchorChange(g.current)}),i?null:u.jsx(Wt.div,{...o,ref:p})});E1.displayName=w1;var Up="PopperContent",[aA,sA]=v1(Up),j1=N.forwardRef((t,a)=>{var xe,Oe,ye,zt,xt,At;const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:w,...x}=t,j=x1(Up,r),[_,C]=N.useState(null),T=Bn(a,Bt=>C(Bt)),[A,z]=N.useState(null),G=tA(A),k=(G==null?void 0:G.width)??0,M=(G==null?void 0:G.height)??0,L=i+(d!=="center"?"-"+d:""),F=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(m)?m:[m],ne=X.length>0,se={padding:F,boundary:X.filter(iA),altBoundary:ne},{refs:te,floatingStyles:oe,placement:P,isPositioned:Q,middlewareData:ee}=IC({strategy:"fixed",placement:L,whileElementsMounted:(...Bt)=>DC(...Bt,{animationFrame:E==="always"}),elements:{reference:j.anchor},middleware:[QC({mainAxis:o+M,alignmentAxis:f}),g&&YC({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?$C():void 0,...se}),g&&XC({...se}),ZC({...se,apply:({elements:Bt,rects:mt,availableWidth:Ns,availableHeight:Oa})=>{const{width:vr,height:_n}=mt.reference,mn=Bt.floating.style;mn.setProperty("--radix-popper-available-width",`${Ns}px`),mn.setProperty("--radix-popper-available-height",`${Oa}px`),mn.setProperty("--radix-popper-anchor-width",`${vr}px`),mn.setProperty("--radix-popper-anchor-height",`${_n}px`)}}),A&&WC({element:A,padding:p}),lA({arrowWidth:k,arrowHeight:M}),S&&KC({strategy:"referenceHidden",...se})]}),[ge,ae]=_1(P),D=Ti(w);ws(()=>{Q&&(D==null||D())},[Q,D]);const Z=(xe=ee.arrow)==null?void 0:xe.x,re=(Oe=ee.arrow)==null?void 0:Oe.y,ie=((ye=ee.arrow)==null?void 0:ye.centerOffset)!==0,[le,he]=N.useState();return ws(()=>{_&&he(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Q?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(zt=ee.transformOrigin)==null?void 0:zt.x,(xt=ee.transformOrigin)==null?void 0:xt.y].join(" "),...((At=ee.hide)==null?void 0:At.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(aA,{scope:r,placedSide:ge,onArrowChange:z,arrowX:Z,arrowY:re,shouldHideArrow:ie,children:u.jsx(Wt.div,{"data-side":ge,"data-align":ae,...x,ref:T,style:{...x.style,animation:Q?void 0:"none"}})})})});j1.displayName=Up;var R1="PopperArrow",rA={top:"bottom",right:"left",bottom:"top",left:"right"},N1=N.forwardRef(function(a,r){const{__scopePopper:i,...o}=a,d=sA(R1,i),f=rA[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(eA,{...o,ref:r,style:{...o.style,display:"block"}})})});N1.displayName=R1;function iA(t){return t!==null}var lA=t=>({name:"transformOrigin",options:t,fn(a){var j,_,C;const{placement:r,rects:i,middlewareData:o}=a,f=((j=o.arrow)==null?void 0:j.centerOffset)!==0,p=f?0:t.arrowWidth,g=f?0:t.arrowHeight,[m,v]=_1(r),y={start:"0%",center:"50%",end:"100%"}[v],S=(((_=o.arrow)==null?void 0:_.x)??0)+p/2,E=(((C=o.arrow)==null?void 0:C.y)??0)+g/2;let w="",x="";return m==="bottom"?(w=f?y:`${S}px`,x=`${-g}px`):m==="top"?(w=f?y:`${S}px`,x=`${i.floating.height+g}px`):m==="right"?(w=`${-g}px`,x=f?y:`${E}px`):m==="left"&&(w=`${i.floating.width+g}px`,x=f?y:`${E}px`),{data:{x:w,y:x}}}});function _1(t){const[a,r="center"]=t.split("-");return[a,r]}var oA=S1,cA=E1,uA=j1,dA=N1,fA="Portal",Pp=N.forwardRef((t,a)=>{var p;const{container:r,...i}=t,[o,d]=N.useState(!1);ws(()=>d(!0),[]);const f=r||o&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?b2.createPortal(u.jsx(Wt.div,{...i,ref:a}),f):null});Pp.displayName=fA;function hA(t,a){return N.useReducer((r,i)=>a[r][i]??r,t)}var Li=t=>{const{present:a,children:r}=t,i=pA(a),o=typeof r=="function"?r({present:i.isPresent}):N.Children.only(r),d=Bn(i.ref,mA(o));return typeof r=="function"||i.isPresent?N.cloneElement(o,{ref:d}):null};Li.displayName="Presence";function pA(t){const[a,r]=N.useState(),i=N.useRef(null),o=N.useRef(t),d=N.useRef("none"),f=t?"mounted":"unmounted",[p,g]=hA(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const m=Lc(i.current);d.current=p==="mounted"?m:"none"},[p]),ws(()=>{const m=i.current,v=o.current;if(v!==t){const S=d.current,E=Lc(m);t?g("MOUNT"):E==="none"||(m==null?void 0:m.display)==="none"?g("UNMOUNT"):g(v&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),ws(()=>{if(a){let m;const v=a.ownerDocument.defaultView??window,y=E=>{const x=Lc(i.current).includes(CSS.escape(E.animationName));if(E.target===a&&x&&(g("ANIMATION_END"),!o.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",m=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},S=E=>{E.target===a&&(d.current=Lc(i.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(m),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:N.useCallback(m=>{i.current=m?getComputedStyle(m):null,r(m)},[])}}function Lc(t){return(t==null?void 0:t.animationName)||"none"}function mA(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var gA=dp[" useInsertionEffect ".trim().toString()]||ws;function C1({prop:t,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,d,f]=yA({defaultProp:a,onChange:r}),p=t!==void 0,g=p?t:o;{const v=N.useRef(t!==void 0);N.useEffect(()=>{const y=v.current;y!==p&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${p?"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.`),v.current=p},[p,i])}const m=N.useCallback(v=>{var y;if(p){const S=vA(v)?v(t):v;S!==t&&((y=f.current)==null||y.call(f,S))}else d(v)},[p,t,d,f]);return[g,m]}function yA({defaultProp:t,onChange:a}){const[r,i]=N.useState(t),o=N.useRef(r),d=N.useRef(a);return gA(()=>{d.current=a},[a]),N.useEffect(()=>{var f;o.current!==r&&((f=d.current)==null||f.call(d,r),o.current=r)},[r,o]),[r,i,d]}function vA(t){return typeof t=="function"}var bA=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"}),xA="VisuallyHidden",A1=N.forwardRef((t,a)=>u.jsx(Wt.span,{...t,ref:a,style:{...bA,...t.style}}));A1.displayName=xA;var SA=A1,[Ru]=Ap("Tooltip",[b1]),Nu=b1(),T1="TooltipProvider",wA=700,rp="tooltip.open",[EA,Hp]=Ru(T1),k1=t=>{const{__scopeTooltip:a,delayDuration:r=wA,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:d}=t,f=N.useRef(!0),p=N.useRef(!1),g=N.useRef(0);return N.useEffect(()=>{const m=g.current;return()=>window.clearTimeout(m)},[]),u.jsx(EA,{scope:a,isOpenDelayedRef:f,delayDuration:r,onOpen:N.useCallback(()=>{window.clearTimeout(g.current),f.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>f.current=!0,i)},[i]),isPointerInTransitRef:p,onPointerInTransitChange:N.useCallback(m=>{p.current=m},[]),disableHoverableContent:o,children:d})};k1.displayName=T1;var $l="Tooltip",[jA,lo]=Ru($l),O1=t=>{const{__scopeTooltip:a,children:r,open:i,defaultOpen:o,onOpenChange:d,disableHoverableContent:f,delayDuration:p}=t,g=Hp($l,t.__scopeTooltip),m=Nu(a),[v,y]=N.useState(null),S=Qc(),E=N.useRef(0),w=f??g.disableHoverableContent,x=p??g.delayDuration,j=N.useRef(!1),[_,C]=C1({prop:i,defaultProp:o??!1,onChange:k=>{k?(g.onOpen(),document.dispatchEvent(new CustomEvent(rp))):g.onClose(),d==null||d(k)},caller:$l}),T=N.useMemo(()=>_?j.current?"delayed-open":"instant-open":"closed",[_]),A=N.useCallback(()=>{window.clearTimeout(E.current),E.current=0,j.current=!1,C(!0)},[C]),z=N.useCallback(()=>{window.clearTimeout(E.current),E.current=0,C(!1)},[C]),G=N.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{j.current=!0,C(!0),E.current=0},x)},[x,C]);return N.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),u.jsx(oA,{...m,children:u.jsx(jA,{scope:a,contentId:S,open:_,stateAttribute:T,trigger:v,onTriggerChange:y,onTriggerEnter:N.useCallback(()=>{g.isOpenDelayedRef.current?G():A()},[g.isOpenDelayedRef,G,A]),onTriggerLeave:N.useCallback(()=>{w?z():(window.clearTimeout(E.current),E.current=0)},[z,w]),onOpen:A,onClose:z,disableHoverableContent:w,children:r})})};O1.displayName=$l;var ip="TooltipTrigger",M1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=lo(ip,r),d=Hp(ip,r),f=Nu(r),p=N.useRef(null),g=Bn(a,p,o.onTriggerChange),m=N.useRef(!1),v=N.useRef(!1),y=N.useCallback(()=>m.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),u.jsx(cA,{asChild:!0,...f,children:u.jsx(Wt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:g,onPointerMove:Xt(t.onPointerMove,S=>{S.pointerType!=="touch"&&!v.current&&!d.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Xt(t.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Xt(t.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Xt(t.onFocus,()=>{m.current||o.onOpen()}),onBlur:Xt(t.onBlur,o.onClose),onClick:Xt(t.onClick,o.onClose)})})});M1.displayName=ip;var Fp="TooltipPortal",[RA,NA]=Ru(Fp,{forceMount:void 0}),D1=t=>{const{__scopeTooltip:a,forceMount:r,children:i,container:o}=t,d=lo(Fp,a);return u.jsx(RA,{scope:a,forceMount:r,children:u.jsx(Li,{present:r||d.open,children:u.jsx(Pp,{asChild:!0,container:o,children:i})})})};D1.displayName=Fp;var Oi="TooltipContent",L1=N.forwardRef((t,a)=>{const r=NA(Oi,t.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...d}=t,f=lo(Oi,t.__scopeTooltip);return u.jsx(Li,{present:i||f.open,children:f.disableHoverableContent?u.jsx(z1,{side:o,...d,ref:a}):u.jsx(_A,{side:o,...d,ref:a})})}),_A=N.forwardRef((t,a)=>{const r=lo(Oi,t.__scopeTooltip),i=Hp(Oi,t.__scopeTooltip),o=N.useRef(null),d=Bn(a,o),[f,p]=N.useState(null),{trigger:g,onClose:m}=r,v=o.current,{onPointerInTransitChange:y}=i,S=N.useCallback(()=>{p(null),y(!1)},[y]),E=N.useCallback((w,x)=>{const j=w.currentTarget,_={x:w.clientX,y:w.clientY},C=kA(_,j.getBoundingClientRect()),T=OA(_,C),A=MA(x.getBoundingClientRect()),z=LA([...T,...A]);p(z),y(!0)},[y]);return N.useEffect(()=>()=>S(),[S]),N.useEffect(()=>{if(g&&v){const w=j=>E(j,v),x=j=>E(j,g);return g.addEventListener("pointerleave",w),v.addEventListener("pointerleave",x),()=>{g.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",x)}}},[g,v,E,S]),N.useEffect(()=>{if(f){const w=x=>{const j=x.target,_={x:x.clientX,y:x.clientY},C=(g==null?void 0:g.contains(j))||(v==null?void 0:v.contains(j)),T=!DA(_,f);C?S():T&&(S(),m())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[g,v,f,m,S]),u.jsx(z1,{...t,ref:d})}),[CA,AA]=Ru($l,{isInside:!1}),TA=M_("TooltipContent"),z1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:d,onPointerDownOutside:f,...p}=t,g=lo(Oi,r),m=Nu(r),{onClose:v}=g;return N.useEffect(()=>(document.addEventListener(rp,v),()=>document.removeEventListener(rp,v)),[v]),N.useEffect(()=>{if(g.trigger){const y=S=>{const E=S.target;E!=null&&E.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),u.jsx(Tp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:u.jsxs(uA,{"data-state":g.stateAttribute,...m,...p,ref:a,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(TA,{children:i}),u.jsx(CA,{scope:r,isInside:!0,children:u.jsx(SA,{id:g.contentId,role:"tooltip",children:o||i})})]})})});L1.displayName=Oi;var B1="TooltipArrow",U1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=Nu(r);return AA(B1,r).isInside?null:u.jsx(dA,{...o,...i,ref:a})});U1.displayName=B1;function kA(t,a){const r=Math.abs(a.top-t.y),i=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),d=Math.abs(a.left-t.x);switch(Math.min(r,i,o,d)){case d:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function OA(t,a,r=5){const i=[];switch(a){case"top":i.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":i.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":i.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":i.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return i}function MA(t){const{top:a,right:r,bottom:i,left:o}=t;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function DA(t,a){const{x:r,y:i}=t;let o=!1;for(let d=0,f=a.length-1;d<a.length;f=d++){const p=a[d],g=a[f],m=p.x,v=p.y,y=g.x,S=g.y;v>i!=S>i&&r<(y-m)*(i-v)/(S-v)+m&&(o=!o)}return o}function LA(t){const a=t.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),zA(a)}function zA(t){if(t.length<=1)return t.slice();const a=[];for(let i=0;i<t.length;i++){const o=t[i];for(;a.length>=2;){const d=a[a.length-1],f=a[a.length-2];if((d.x-f.x)*(o.y-f.y)>=(d.y-f.y)*(o.x-f.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;r.length>=2;){const d=r[r.length-1],f=r[r.length-2];if((d.x-f.x)*(o.y-f.y)>=(d.y-f.y)*(o.x-f.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var BA=k1,UA=O1,PA=M1,HA=D1,FA=L1,GA=U1;function Je(...t){return e1(ro(t))}function qA({delayDuration:t=0,...a}){return u.jsx(BA,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function IA({...t}){return u.jsx(UA,{"data-slot":"tooltip",...t})}function VA({...t}){return u.jsx(PA,{"data-slot":"tooltip-trigger",...t})}function QA({className:t,sideOffset:a=0,children:r,...i}){return u.jsx(HA,{children:u.jsxs(FA,{"data-slot":"tooltip-content",sideOffset:a,className:Je("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 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-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...i,children:[r,u.jsx(GA,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}var YA=Symbol.for("react.lazy"),cu=dp[" use ".trim().toString()];function $A(t){return typeof t=="object"&&t!==null&&"then"in t}function P1(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===YA&&"_payload"in t&&$A(t._payload)}function H1(t){const a=XA(t),r=N.forwardRef((i,o)=>{let{children:d,...f}=i;P1(d)&&typeof cu=="function"&&(d=cu(d._payload));const p=N.Children.toArray(d),g=p.find(KA);if(g){const m=g.props.children,v=p.map(y=>y===g?N.Children.count(m)>1?N.Children.only(null):N.isValidElement(m)?m.props.children:null:y);return u.jsx(a,{...f,ref:o,children:N.isValidElement(m)?N.cloneElement(m,void 0,v):null})}return u.jsx(a,{...f,ref:o,children:d})});return r.displayName=`${t}.Slot`,r}var Gp=H1("Slot");function XA(t){const a=N.forwardRef((r,i)=>{let{children:o,...d}=r;if(P1(o)&&typeof cu=="function"&&(o=cu(o._payload)),N.isValidElement(o)){const f=JA(o),p=WA(d,o.props);return o.type!==N.Fragment&&(p.ref=i?Cp(i,f):f),N.cloneElement(o,p)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var ZA=Symbol("radix.slottable");function KA(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ZA}function WA(t,a){const r={...a};for(const i in a){const o=t[i],d=a[i];/^on[A-Z]/.test(i)?o&&d?r[i]=(...p)=>{const g=d(...p);return o(...p),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...d}:i==="className"&&(r[i]=[o,d].filter(Boolean).join(" "))}return{...t,...r}}function JA(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const gh=768;function eT(){const[t,a]=N.useState(void 0);return N.useEffect(()=>{const r=window.matchMedia(`(max-width: ${gh-1}px)`),i=()=>{a(window.innerWidth<gh)};return r.addEventListener("change",i),a(window.innerWidth<gh),()=>r.removeEventListener("change",i)},[]),!!t}const tT=xu("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 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 [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function F1({className:t,variant:a="default",size:r="default",asChild:i=!1,...o}){const d=i?Gp:"button";return u.jsx(d,{"data-slot":"button","data-variant":a,"data-size":r,className:Je(tT({variant:a,size:r,className:t})),...o})}var nT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aT=nT.reduce((t,a)=>{const r=H1(`Primitive.${a}`),i=N.forwardRef((o,d)=>{const{asChild:f,...p}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...p,ref:d})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{}),sT="Separator",fx="horizontal",rT=["horizontal","vertical"],G1=N.forwardRef((t,a)=>{const{decorative:r,orientation:i=fx,...o}=t,d=iT(i)?i:fx,p=r?{role:"none"}:{"aria-orientation":d==="vertical"?d:void 0,role:"separator"};return u.jsx(aT.div,{"data-orientation":d,...p,...o,ref:a})});G1.displayName=sT;function iT(t){return rT.includes(t)}var lT=G1;function oT({className:t,orientation:a="horizontal",decorative:r=!0,...i}){return u.jsx(lT,{"data-slot":"separator",decorative:r,orientation:a,className:Je("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",t),...i})}var yh="focusScope.autoFocusOnMount",vh="focusScope.autoFocusOnUnmount",hx={bubbles:!1,cancelable:!0},cT="FocusScope",q1=N.forwardRef((t,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:d,...f}=t,[p,g]=N.useState(null),m=Ti(o),v=Ti(d),y=N.useRef(null),S=Bn(a,x=>g(x)),E=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(i){let x=function(T){if(E.paused||!p)return;const A=T.target;p.contains(A)?y.current=A:ls(y.current,{select:!0})},j=function(T){if(E.paused||!p)return;const A=T.relatedTarget;A!==null&&(p.contains(A)||ls(y.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const z of T)z.removedNodes.length>0&&ls(p)};document.addEventListener("focusin",x),document.addEventListener("focusout",j);const C=new MutationObserver(_);return p&&C.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",j),C.disconnect()}}},[i,p,E.paused]),N.useEffect(()=>{if(p){mx.add(E);const x=document.activeElement;if(!p.contains(x)){const _=new CustomEvent(yh,hx);p.addEventListener(yh,m),p.dispatchEvent(_),_.defaultPrevented||(uT(mT(I1(p)),{select:!0}),document.activeElement===x&&ls(p))}return()=>{p.removeEventListener(yh,m),setTimeout(()=>{const _=new CustomEvent(vh,hx);p.addEventListener(vh,v),p.dispatchEvent(_),_.defaultPrevented||ls(x??document.body,{select:!0}),p.removeEventListener(vh,v),mx.remove(E)},0)}}},[p,m,v,E]);const w=N.useCallback(x=>{if(!r&&!i||E.paused)return;const j=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,_=document.activeElement;if(j&&_){const C=x.currentTarget,[T,A]=dT(C);T&&A?!x.shiftKey&&_===A?(x.preventDefault(),r&&ls(T,{select:!0})):x.shiftKey&&_===T&&(x.preventDefault(),r&&ls(A,{select:!0})):_===C&&x.preventDefault()}},[r,i,E.paused]);return u.jsx(Wt.div,{tabIndex:-1,...f,ref:S,onKeyDown:w})});q1.displayName=cT;function uT(t,{select:a=!1}={}){const r=document.activeElement;for(const i of t)if(ls(i,{select:a}),document.activeElement!==r)return}function dT(t){const a=I1(t),r=px(a,t),i=px(a.reverse(),t);return[r,i]}function I1(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function px(t,a){for(const r of t)if(!fT(r,{upTo:a}))return r}function fT(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function hT(t){return t instanceof HTMLInputElement&&"select"in t}function ls(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&hT(t)&&a&&t.select()}}var mx=pT();function pT(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=gx(t,a),t.unshift(a)},remove(a){var r;t=gx(t,a),(r=t[0])==null||r.resume()}}}function gx(t,a){const r=[...t],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function mT(t){return t.filter(a=>a.tagName!=="A")}var bh=0;function gT(){N.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??yx()),document.body.insertAdjacentElement("beforeend",t[1]??yx()),bh++,()=>{bh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),bh--}},[])}function yx(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Xn=function(){return Xn=Object.assign||function(a){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(a[d]=r[d])}return a},Xn.apply(this,arguments)};function V1(t,a){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(r[i[o]]=t[i[o]]);return r}function yT(t,a,r){if(r||arguments.length===2)for(var i=0,o=a.length,d;i<o;i++)(d||!(i in a))&&(d||(d=Array.prototype.slice.call(a,0,i)),d[i]=a[i]);return t.concat(d||Array.prototype.slice.call(a))}var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",vT="with-scroll-bars-hidden",bT="--removed-body-scroll-bar-size";function xh(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function xT(t,a){var r=N.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var ST=typeof window<"u"?N.useLayoutEffect:N.useEffect,vx=new WeakMap;function wT(t,a){var r=xT(null,function(i){return t.forEach(function(o){return xh(o,i)})});return ST(function(){var i=vx.get(r);if(i){var o=new Set(i),d=new Set(t),f=r.current;o.forEach(function(p){d.has(p)||xh(p,null)}),d.forEach(function(p){o.has(p)||xh(p,f)})}vx.set(r,t)},[t]),r}function ET(t){return t}function jT(t,a){a===void 0&&(a=ET);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(d){var f=a(d,i);return r.push(f),function(){r=r.filter(function(p){return p!==f})}},assignSyncMedium:function(d){for(i=!0;r.length;){var f=r;r=[],f.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){i=!0;var f=[];if(r.length){var p=r;r=[],p.forEach(d),f=r}var g=function(){var v=f;f=[],v.forEach(d)},m=function(){return Promise.resolve().then(g)};m(),r={push:function(v){f.push(v),m()},filter:function(v){return f=f.filter(v),r}}}};return o}function RT(t){t===void 0&&(t={});var a=jT(null);return a.options=Xn({async:!0,ssr:!1},t),a}var Q1=function(t){var a=t.sideCar,r=V1(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return N.createElement(i,Xn({},r))};Q1.isSideCarExport=!0;function NT(t,a){return t.useMedium(a),Q1}var Y1=RT(),Sh=function(){},_u=N.forwardRef(function(t,a){var r=N.useRef(null),i=N.useState({onScrollCapture:Sh,onWheelCapture:Sh,onTouchMoveCapture:Sh}),o=i[0],d=i[1],f=t.forwardProps,p=t.children,g=t.className,m=t.removeScrollBar,v=t.enabled,y=t.shards,S=t.sideCar,E=t.noRelative,w=t.noIsolation,x=t.inert,j=t.allowPinchZoom,_=t.as,C=_===void 0?"div":_,T=t.gapMode,A=V1(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,G=wT([r,a]),k=Xn(Xn({},A),o);return N.createElement(N.Fragment,null,v&&N.createElement(z,{sideCar:Y1,removeScrollBar:m,shards:y,noRelative:E,noIsolation:w,inert:x,setCallbacks:d,allowPinchZoom:!!j,lockRef:r,gapMode:T}),f?N.cloneElement(N.Children.only(p),Xn(Xn({},k),{ref:G})):N.createElement(C,Xn({},k,{className:g,ref:G}),p))});_u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_u.classNames={fullWidth:Xc,zeroRight:$c};var _T=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=_T();return a&&t.setAttribute("nonce",a),t}function AT(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function TT(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var kT=function(){var t=0,a=null;return{add:function(r){t==0&&(a=CT())&&(AT(a,r),TT(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},OT=function(){var t=kT();return function(a,r){N.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},$1=function(){var t=OT(),a=function(r){var i=r.styles,o=r.dynamic;return t(i,o),null};return a},MT={left:0,top:0,right:0,gap:0},wh=function(t){return parseInt(t||"",10)||0},DT=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],i=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[wh(r),wh(i),wh(o)]},LT=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return MT;var a=DT(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},zT=$1(),hi="data-scroll-locked",BT=function(t,a,r,i){var o=t.left,d=t.top,f=t.right,p=t.gap;return r===void 0&&(r="margin"),`
|
|
246
|
-
.`.concat(vT,` {
|
|
247
|
-
overflow: hidden `).concat(i,`;
|
|
248
|
-
padding-right: `).concat(p,"px ").concat(i,`;
|
|
249
|
-
}
|
|
250
|
-
body[`).concat(hi,`] {
|
|
251
|
-
overflow: hidden `).concat(i,`;
|
|
252
|
-
overscroll-behavior: contain;
|
|
253
|
-
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
254
|
-
padding-left: `.concat(o,`px;
|
|
255
|
-
padding-top: `).concat(d,`px;
|
|
256
|
-
padding-right: `).concat(f,`px;
|
|
257
|
-
margin-left:0;
|
|
258
|
-
margin-top:0;
|
|
259
|
-
margin-right: `).concat(p,"px ").concat(i,`;
|
|
260
|
-
`),r==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.`).concat($c,` {
|
|
264
|
-
right: `).concat(p,"px ").concat(i,`;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.`).concat(Xc,` {
|
|
268
|
-
margin-right: `).concat(p,"px ").concat(i,`;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.`).concat($c," .").concat($c,` {
|
|
272
|
-
right: 0 `).concat(i,`;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.`).concat(Xc," .").concat(Xc,` {
|
|
276
|
-
margin-right: 0 `).concat(i,`;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
body[`).concat(hi,`] {
|
|
280
|
-
`).concat(bT,": ").concat(p,`px;
|
|
281
|
-
}
|
|
282
|
-
`)},bx=function(){var t=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(t)?t:0},UT=function(){N.useEffect(function(){return document.body.setAttribute(hi,(bx()+1).toString()),function(){var t=bx()-1;t<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,t.toString())}},[])},PT=function(t){var a=t.noRelative,r=t.noImportant,i=t.gapMode,o=i===void 0?"margin":i;UT();var d=N.useMemo(function(){return LT(o)},[o]);return N.createElement(zT,{styles:BT(d,!a,o,r?"":"!important")})},lp=!1;if(typeof window<"u")try{var zc=Object.defineProperty({},"passive",{get:function(){return lp=!0,!0}});window.addEventListener("test",zc,zc),window.removeEventListener("test",zc,zc)}catch{lp=!1}var ri=lp?{passive:!1}:!1,HT=function(t){return t.tagName==="TEXTAREA"},X1=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!HT(t)&&r[a]==="visible")},FT=function(t){return X1(t,"overflowY")},GT=function(t){return X1(t,"overflowX")},xx=function(t,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=Z1(t,i);if(o){var d=K1(t,i),f=d[1],p=d[2];if(f>p)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},qT=function(t){var a=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[a,r,i]},IT=function(t){var a=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[a,r,i]},Z1=function(t,a){return t==="v"?FT(a):GT(a)},K1=function(t,a){return t==="v"?qT(a):IT(a)},VT=function(t,a){return t==="h"&&a==="rtl"?-1:1},QT=function(t,a,r,i,o){var d=VT(t,window.getComputedStyle(a).direction),f=d*i,p=r.target,g=a.contains(p),m=!1,v=f>0,y=0,S=0;do{if(!p)break;var E=K1(t,p),w=E[0],x=E[1],j=E[2],_=x-j-d*w;(w||_)&&Z1(t,p)&&(y+=_,S+=w);var C=p.parentNode;p=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!g&&p!==document.body||g&&(a.contains(p)||a===p));return(v&&Math.abs(y)<1||!v&&Math.abs(S)<1)&&(m=!0),m},Bc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Sx=function(t){return[t.deltaX,t.deltaY]},wx=function(t){return t&&"current"in t?t.current:t},YT=function(t,a){return t[0]===a[0]&&t[1]===a[1]},$T=function(t){return`
|
|
283
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
284
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
285
|
-
`)},XT=0,ii=[];function ZT(t){var a=N.useRef([]),r=N.useRef([0,0]),i=N.useRef(),o=N.useState(XT++)[0],d=N.useState($1)[0],f=N.useRef(t);N.useEffect(function(){f.current=t},[t]),N.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var x=yT([t.lockRef.current],(t.shards||[]).map(wx),!0).filter(Boolean);return x.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var p=N.useCallback(function(x,j){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!f.current.allowPinchZoom;var _=Bc(x),C=r.current,T="deltaX"in x?x.deltaX:C[0]-_[0],A="deltaY"in x?x.deltaY:C[1]-_[1],z,G=x.target,k=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in x&&k==="h"&&G.type==="range")return!1;var M=window.getSelection(),L=M&&M.anchorNode,F=L?L===G||L.contains(G):!1;if(F)return!1;var X=xx(k,G);if(!X)return!0;if(X?z=k:(z=k==="v"?"h":"v",X=xx(k,G)),!X)return!1;if(!i.current&&"changedTouches"in x&&(T||A)&&(i.current=z),!z)return!0;var ne=i.current||z;return QT(ne,j,x,ne==="h"?T:A)},[]),g=N.useCallback(function(x){var j=x;if(!(!ii.length||ii[ii.length-1]!==d)){var _="deltaY"in j?Sx(j):Bc(j),C=a.current.filter(function(z){return z.name===j.type&&(z.target===j.target||j.target===z.shadowParent)&&YT(z.delta,_)})[0];if(C&&C.should){j.cancelable&&j.preventDefault();return}if(!C){var T=(f.current.shards||[]).map(wx).filter(Boolean).filter(function(z){return z.contains(j.target)}),A=T.length>0?p(j,T[0]):!f.current.noIsolation;A&&j.cancelable&&j.preventDefault()}}},[]),m=N.useCallback(function(x,j,_,C){var T={name:x,delta:j,target:_,should:C,shadowParent:KT(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(A){return A!==T})},1)},[]),v=N.useCallback(function(x){r.current=Bc(x),i.current=void 0},[]),y=N.useCallback(function(x){m(x.type,Sx(x),x.target,p(x,t.lockRef.current))},[]),S=N.useCallback(function(x){m(x.type,Bc(x),x.target,p(x,t.lockRef.current))},[]);N.useEffect(function(){return ii.push(d),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",g,ri),document.addEventListener("touchmove",g,ri),document.addEventListener("touchstart",v,ri),function(){ii=ii.filter(function(x){return x!==d}),document.removeEventListener("wheel",g,ri),document.removeEventListener("touchmove",g,ri),document.removeEventListener("touchstart",v,ri)}},[]);var E=t.removeScrollBar,w=t.inert;return N.createElement(N.Fragment,null,w?N.createElement(d,{styles:$T(o)}):null,E?N.createElement(PT,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function KT(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const WT=NT(Y1,ZT);var W1=N.forwardRef(function(t,a){return N.createElement(_u,Xn({},t,{ref:a,sideCar:WT}))});W1.classNames=_u.classNames;var JT=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},li=new WeakMap,Uc=new WeakMap,Pc={},Eh=0,J1=function(t){return t&&(t.host||J1(t.parentNode))},ek=function(t,a){return a.map(function(r){if(t.contains(r))return r;var i=J1(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},tk=function(t,a,r,i){var o=ek(a,Array.isArray(t)?t:[t]);Pc[r]||(Pc[r]=new WeakMap);var d=Pc[r],f=[],p=new Set,g=new Set(o),m=function(y){!y||p.has(y)||(p.add(y),m(y.parentNode))};o.forEach(m);var v=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(S){if(p.has(S))v(S);else try{var E=S.getAttribute(i),w=E!==null&&E!=="false",x=(li.get(S)||0)+1,j=(d.get(S)||0)+1;li.set(S,x),d.set(S,j),f.push(S),x===1&&w&&Uc.set(S,!0),j===1&&S.setAttribute(r,"true"),w||S.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",S,_)}})};return v(a),p.clear(),Eh++,function(){f.forEach(function(y){var S=li.get(y)-1,E=d.get(y)-1;li.set(y,S),d.set(y,E),S||(Uc.has(y)||y.removeAttribute(i),Uc.delete(y)),E||y.removeAttribute(r)}),Eh--,Eh||(li=new WeakMap,li=new WeakMap,Uc=new WeakMap,Pc={})}},nk=function(t,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),o=JT(t);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),tk(i,o,r,"aria-hidden")):function(){return null}},Cu="Dialog",[eS]=Ap(Cu),[ak,Un]=eS(Cu),tS=t=>{const{__scopeDialog:a,children:r,open:i,defaultOpen:o,onOpenChange:d,modal:f=!0}=t,p=N.useRef(null),g=N.useRef(null),[m,v]=C1({prop:i,defaultProp:o??!1,onChange:d,caller:Cu});return u.jsx(ak,{scope:a,triggerRef:p,contentRef:g,contentId:Qc(),titleId:Qc(),descriptionId:Qc(),open:m,onOpenChange:v,onOpenToggle:N.useCallback(()=>v(y=>!y),[v]),modal:f,children:r})};tS.displayName=Cu;var nS="DialogTrigger",sk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Un(nS,r),d=Bn(a,o.triggerRef);return u.jsx(Wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vp(o.open),...i,ref:d,onClick:Xt(t.onClick,o.onOpenToggle)})});sk.displayName=nS;var qp="DialogPortal",[rk,aS]=eS(qp,{forceMount:void 0}),sS=t=>{const{__scopeDialog:a,forceMount:r,children:i,container:o}=t,d=Un(qp,a);return u.jsx(rk,{scope:a,forceMount:r,children:N.Children.map(i,f=>u.jsx(Li,{present:r||d.open,children:u.jsx(Pp,{asChild:!0,container:o,children:f})}))})};sS.displayName=qp;var uu="DialogOverlay",rS=N.forwardRef((t,a)=>{const r=aS(uu,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,d=Un(uu,t.__scopeDialog);return d.modal?u.jsx(Li,{present:i||d.open,children:u.jsx(lk,{...o,ref:a})}):null});rS.displayName=uu;var ik=n1("DialogOverlay.RemoveScroll"),lk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Un(uu,r);return u.jsx(W1,{as:ik,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Wt.div,{"data-state":Vp(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),pr="DialogContent",iS=N.forwardRef((t,a)=>{const r=aS(pr,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,d=Un(pr,t.__scopeDialog);return u.jsx(Li,{present:i||d.open,children:d.modal?u.jsx(ok,{...o,ref:a}):u.jsx(ck,{...o,ref:a})})});iS.displayName=pr;var ok=N.forwardRef((t,a)=>{const r=Un(pr,t.__scopeDialog),i=N.useRef(null),o=Bn(a,r.contentRef,i);return N.useEffect(()=>{const d=i.current;if(d)return nk(d)},[]),u.jsx(lS,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xt(t.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Xt(t.onPointerDownOutside,d=>{const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&d.preventDefault()}),onFocusOutside:Xt(t.onFocusOutside,d=>d.preventDefault())})}),ck=N.forwardRef((t,a)=>{const r=Un(pr,t.__scopeDialog),i=N.useRef(!1),o=N.useRef(!1);return u.jsx(lS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var f,p;(f=t.onCloseAutoFocus)==null||f.call(t,d),d.defaultPrevented||(i.current||(p=r.triggerRef.current)==null||p.focus(),d.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:d=>{var g,m;(g=t.onInteractOutside)==null||g.call(t,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const f=d.target;((m=r.triggerRef.current)==null?void 0:m.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.current&&d.preventDefault()}})}),lS=N.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:d,...f}=t,p=Un(pr,r),g=N.useRef(null),m=Bn(a,g);return gT(),u.jsxs(u.Fragment,{children:[u.jsx(q1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:d,children:u.jsx(Tp,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":Vp(p.open),...f,ref:m,onDismiss:()=>p.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(uk,{titleId:p.titleId}),u.jsx(fk,{contentRef:g,descriptionId:p.descriptionId})]})]})}),Ip="DialogTitle",oS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Un(Ip,r);return u.jsx(Wt.h2,{id:o.titleId,...i,ref:a})});oS.displayName=Ip;var cS="DialogDescription",uS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Un(cS,r);return u.jsx(Wt.p,{id:o.descriptionId,...i,ref:a})});uS.displayName=cS;var dS="DialogClose",fS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Un(dS,r);return u.jsx(Wt.button,{type:"button",...i,ref:a,onClick:Xt(t.onClick,()=>o.onOpenChange(!1))})});fS.displayName=dS;function Vp(t){return t?"open":"closed"}var hS="DialogTitleWarning",[s3,pS]=T_(hS,{contentName:pr,titleName:Ip,docsSlug:"dialog"}),uk=({titleId:t})=>{const a=pS(hS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
286
|
-
|
|
287
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
288
|
-
|
|
289
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return N.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},dk="DialogDescriptionWarning",fk=({contentRef:t,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pS(dk).contentName}}.`;return N.useEffect(()=>{var d;const o=(d=t.current)==null?void 0:d.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(i))},[i,t,a]),null},hk=tS,pk=sS,mk=rS,gk=iS,yk=oS,vk=uS,bk=fS;function xk({...t}){return u.jsx(hk,{"data-slot":"sheet",...t})}function Sk({...t}){return u.jsx(pk,{"data-slot":"sheet-portal",...t})}function wk({className:t,...a}){return u.jsx(mk,{"data-slot":"sheet-overlay",className:Je("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",t),...a})}function Ek({className:t,children:a,side:r="right",showCloseButton:i=!0,...o}){return u.jsxs(Sk,{children:[u.jsx(wk,{}),u.jsxs(gk,{"data-slot":"sheet-content","data-side":r,className:Je("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",t),...o,children:[a,i&&u.jsx(bk,{"data-slot":"sheet-close",asChild:!0,children:u.jsxs(F1,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[u.jsx(Wh,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function jk({className:t,...a}){return u.jsx("div",{"data-slot":"sheet-header",className:Je("flex flex-col gap-0.5 p-4",t),...a})}function Rk({className:t,...a}){return u.jsx(yk,{"data-slot":"sheet-title",className:Je("font-heading text-base font-medium text-foreground",t),...a})}function Nk({className:t,...a}){return u.jsx(vk,{"data-slot":"sheet-description",className:Je("text-sm text-muted-foreground",t),...a})}const _k="sidebar_state",Ck=3600*24*7,Ak="16rem",Tk="18rem",kk="3rem",Ok="b",mS=N.createContext(null);function Qp(){const t=N.useContext(mS);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Mk({defaultOpen:t=!0,open:a,onOpenChange:r,className:i,style:o,children:d,...f}){const p=eT(),[g,m]=N.useState(!1),[v,y]=N.useState(t),S=a??v,E=N.useCallback(_=>{const C=typeof _=="function"?_(S):_;r?r(C):y(C),document.cookie=`${_k}=${C}; path=/; max-age=${Ck}`},[r,S]),w=N.useCallback(()=>p?m(_=>!_):E(_=>!_),[p,E,m]);N.useEffect(()=>{const _=C=>{C.key===Ok&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),w())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[w]);const x=S?"expanded":"collapsed",j=N.useMemo(()=>({state:x,open:S,setOpen:E,isMobile:p,openMobile:g,setOpenMobile:m,toggleSidebar:w}),[x,S,E,p,g,m,w]);return u.jsx(mS.Provider,{value:j,children:u.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ak,"--sidebar-width-icon":kk,...o},className:Je("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...f,children:d})})}function Dk({side:t="left",variant:a="sidebar",collapsible:r="offcanvas",className:i,children:o,dir:d,...f}){const{isMobile:p,state:g,openMobile:m,setOpenMobile:v}=Qp();return r==="none"?u.jsx("div",{"data-slot":"sidebar",className:Je("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...f,children:o}):p?u.jsx(xk,{open:m,onOpenChange:v,...f,children:u.jsxs(Ek,{dir:d,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Tk},side:t,children:[u.jsxs(jk,{className:"sr-only",children:[u.jsx(Rk,{children:"Sidebar"}),u.jsx(Nk,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?r:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[u.jsx("div",{"data-slot":"sidebar-gap",className:Je("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:Je("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...f,children:u.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})}function Lk({className:t,onClick:a,...r}){const{toggleSidebar:i}=Qp();return u.jsxs(F1,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:Je(t),onClick:o=>{a==null||a(o),i()},...r,children:[u.jsx(SN,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function zk({className:t,...a}){return u.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Je("flex flex-col gap-2 p-2",t),...a})}function Bk({className:t,...a}){return u.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Je("flex flex-col gap-2 p-2",t),...a})}function Ex({className:t,...a}){return u.jsx(oT,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:Je("mx-2 w-auto bg-sidebar-border",t),...a})}function Uk({className:t,...a}){return u.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Je("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function jh({className:t,...a}){return u.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Je("relative flex w-full min-w-0 flex-col p-2",t),...a})}function jx({className:t,asChild:a=!1,...r}){const i=a?Gp:"div";return u.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:Je("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",t),...r})}function Rh({className:t,...a}){return u.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:Je("w-full text-sm",t),...a})}function Hc({className:t,...a}){return u.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Je("flex w-full min-w-0 flex-col gap-0.5",t),...a})}function gS({className:t,...a}){return u.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Je("group/menu-item relative",t),...a})}const Pk=xu("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function yS({asChild:t=!1,isActive:a=!1,variant:r="default",size:i="default",tooltip:o,className:d,...f}){const p=t?Gp:"button",{isMobile:g,state:m}=Qp(),v=u.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":a,className:Je(Pk({variant:r,size:i}),d),...f});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(IA,{children:[u.jsx(VA,{asChild:!0,children:v}),u.jsx(QA,{side:"right",align:"center",hidden:m!=="collapsed"||g,...o})]})):v}const vS=N.createContext(null);function bS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Rx(t){return t==="system"?bS():t}function Hk({children:t,defaultTheme:a="dark"}){const[r,i]=N.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,d]=N.useState(()=>Rx(r)),f=N.useCallback(p=>{i(g=>{const m=typeof p=="function"?p(g):p;return localStorage.setItem("theme",m),m})},[]);return N.useEffect(()=>{const p=Rx(r);d(p),document.documentElement.classList.toggle("dark",p==="dark")},[r]),N.useEffect(()=>{const p=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(r==="system"){const m=bS();d(m),document.documentElement.classList.toggle("dark",m==="dark")}};return p.addEventListener("change",g),()=>p.removeEventListener("change",g)},[r]),u.jsx(vS.Provider,{value:{theme:r,resolvedTheme:o,setTheme:f},children:t})}function Fk(){const t=N.useContext(vS);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function Gk(){const{theme:t,resolvedTheme:a,setTheme:r}=Fk();return u.jsxs(Dt,{variant:"ghost",size:"icon",onClick:()=>r((a??t)==="light"?"dark":"light"),className:"h-8 w-8",children:[u.jsx(AN,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(yN,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),u.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const qk=[{href:"/",label:"Overview",icon:fN,query:jp},{href:"/workspaces",label:"Workspaces",icon:nN,query:Rp},{href:"/benchmark",label:"Benchmark",icon:rN}],Ik=[{href:"/query",label:"Query",icon:jN},{href:"/documents",label:"Documents",icon:vu,query:()=>au(1,Zn)}],Vk=[{href:"/settings",label:"Settings",icon:_N,query:B0}];function Nh({href:t,label:a,icon:r,query:i}){const o=ao(),f=I2()({to:t,fuzzy:t!=="/"}),p=()=>{if(!i)return;const g=typeof i=="function"?i():i;o.prefetchQuery(g)};return u.jsx(gS,{children:u.jsx(yS,{asChild:!0,isActive:!!f,tooltip:a,children:u.jsxs(ht,{to:t,onMouseEnter:p,children:[u.jsx(r,{className:"h-4 w-4"}),u.jsx("span",{children:a})]})})})}function Qk(){return u.jsxs(Dk,{collapsible:"icon",children:[u.jsx(zk,{children:u.jsx(Hc,{children:u.jsx(gS,{children:u.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[u.jsx(yS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:u.jsxs(ht,{to:"/",className:"flex items-center gap-3",children:[u.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),u.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:u.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",u.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),u.jsx(Lk,{}),u.jsx(Gk,{})]})})})}),u.jsxs(Uk,{children:[u.jsxs(jh,{children:[u.jsx(jx,{children:"Navigation"}),u.jsx(Rh,{children:u.jsx(Hc,{children:qk.map(t=>u.jsx(Nh,{...t},t.href))})})]}),u.jsx(Ex,{}),u.jsxs(jh,{children:[u.jsx(jx,{children:"Debug"}),u.jsx(Rh,{children:u.jsx(Hc,{children:Ik.map(t=>u.jsx(Nh,{...t},t.href))})})]}),u.jsx(Ex,{}),u.jsx(jh,{children:u.jsx(Rh,{children:u.jsx(Hc,{children:Vk.map(t=>u.jsx(Nh,{...t},t.href))})})})]}),u.jsx(Bk,{children:u.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:u.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const yr=k2()({component:Yk});function Yk(){return u.jsx(Hk,{defaultTheme:"dark",children:u.jsx(qA,{children:u.jsx(Mk,{children:u.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[u.jsx(Qk,{}),u.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:u.jsx(yu,{})})]})})})})}const $k=zn("/workspaces")({component:()=>u.jsx(yu,{})}),Xk=zn("/settings")({component:tO}),Zk=`{
|
|
290
|
-
"mcpServers": {
|
|
291
|
-
"openez-graph": {
|
|
292
|
-
"command": "pnpm",
|
|
293
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}`,Kk=`{
|
|
297
|
-
"mcpServers": {
|
|
298
|
-
"openez-graph": {
|
|
299
|
-
"command": "pnpm",
|
|
300
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}`,Wk=`{
|
|
304
|
-
"mcpServers": {
|
|
305
|
-
"openez-graph": {
|
|
306
|
-
"command": "pnpm",
|
|
307
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}`,Jk=`{
|
|
311
|
-
"mcp": {
|
|
312
|
-
"servers": {
|
|
313
|
-
"openez-graph": {
|
|
314
|
-
"type": "local",
|
|
315
|
-
"command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}`;function Ll({label:t,value:a}){return u.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:t}),u.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??u.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function eO({children:t}){return u.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:t})}function Fc({name:t,configPath:a,config:r}){return u.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t}),u.jsx(Mt,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),u.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",u.jsx(eO,{children:a})]}),u.jsx(__,{children:r})]})}function tO(){const{data:t}=fr(B0);return u.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Settings"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:"Environment-backed provider configuration."})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Configuration"})}),u.jsx(De,{className:"p-0",children:u.jsxs("div",{className:"px-6 pb-2",children:[u.jsx(Ll,{label:"Redis URL",value:"Not used (SQLite is default)"}),u.jsx(Ll,{label:"Embedding provider",value:t==null?void 0:t.EMBEDDING_PROVIDER}),u.jsx(Ll,{label:"OpenAI base URL",value:(t==null?void 0:t.OPENAI_BASE_URL)??"default"}),u.jsx(Ll,{label:"OpenAI model",value:t==null?void 0:t.OPENAI_EMBEDDING_MODEL}),u.jsx(Ll,{label:"Ollama model",value:t==null?void 0:t.OLLAMA_EMBEDDING_MODEL})]})})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"MCP Server Setup"})}),u.jsxs(De,{className:"flex flex-col gap-4",children:[u.jsx(Fc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:Zk}),u.jsx(Fc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:Kk}),u.jsx(Fc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:Wk}),u.jsx(Fc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:Jk})]})]})]})}var nO=Object.create,Au=Object.defineProperty,aO=Object.defineProperties,sO=Object.getOwnPropertyDescriptor,rO=Object.getOwnPropertyDescriptors,xS=Object.getOwnPropertyNames,du=Object.getOwnPropertySymbols,iO=Object.getPrototypeOf,Yp=Object.prototype.hasOwnProperty,SS=Object.prototype.propertyIsEnumerable,Nx=(t,a,r)=>a in t?Au(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,Jn=(t,a)=>{for(var r in a||(a={}))Yp.call(a,r)&&Nx(t,r,a[r]);if(du)for(var r of du(a))SS.call(a,r)&&Nx(t,r,a[r]);return t},Tu=(t,a)=>aO(t,rO(a)),wS=(t,a)=>{var r={};for(var i in t)Yp.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&du)for(var i of du(t))a.indexOf(i)<0&&SS.call(t,i)&&(r[i]=t[i]);return r},lO=(t,a)=>function(){return a||(0,t[xS(t)[0]])((a={exports:{}}).exports,a),a.exports},oO=(t,a)=>{for(var r in a)Au(t,r,{get:a[r],enumerable:!0})},cO=(t,a,r,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of xS(a))!Yp.call(t,o)&&o!==r&&Au(t,o,{get:()=>a[o],enumerable:!(i=sO(a,o))||i.enumerable});return t},uO=(t,a,r)=>(r=t!=null?nO(iO(t)):{},cO(!t||!t.__esModule?Au(r,"default",{value:t,enumerable:!0}):r,t)),dO=lO({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,a){var r=(function(){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,d={},f={util:{encode:function w(x){return x instanceof p?new p(x.type,w(x.content),x.alias):Array.isArray(x)?x.map(w):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(x,j){j=j||{};var _,C;switch(f.util.type(x)){case"Object":if(C=f.util.objId(x),j[C])return j[C];_={},j[C]=_;for(var T in x)x.hasOwnProperty(T)&&(_[T]=w(x[T],j));return _;case"Array":return C=f.util.objId(x),j[C]?j[C]:(_=[],j[C]=_,x.forEach(function(A,z){_[z]=w(A,j)}),_);default:return x}},getLanguage:function(w){for(;w;){var x=i.exec(w.className);if(x)return x[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,x){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+x)},isActive:function(w,x,j){for(var _="no-"+x;w;){var C=w.classList;if(C.contains(x))return!0;if(C.contains(_))return!1;w=w.parentElement}return!!j}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(w,x){var j=f.util.clone(f.languages[w]);for(var _ in x)j[_]=x[_];return j},insertBefore:function(w,x,j,_){_=_||f.languages;var C=_[w],T={};for(var A in C)if(C.hasOwnProperty(A)){if(A==x)for(var z in j)j.hasOwnProperty(z)&&(T[z]=j[z]);j.hasOwnProperty(A)||(T[A]=C[A])}var G=_[w];return _[w]=T,f.languages.DFS(f.languages,function(k,M){M===G&&k!=w&&(this[k]=T)}),T},DFS:function w(x,j,_,C){C=C||{};var T=f.util.objId;for(var A in x)if(x.hasOwnProperty(A)){j.call(x,A,x[A],_||A);var z=x[A],G=f.util.type(z);G==="Object"&&!C[T(z)]?(C[T(z)]=!0,w(z,j,null,C)):G==="Array"&&!C[T(z)]&&(C[T(z)]=!0,w(z,j,A,C))}}},plugins:{},highlight:function(w,x,j){var _={code:w,grammar:x,language:j};if(f.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=f.tokenize(_.code,_.grammar),f.hooks.run("after-tokenize",_),p.stringify(f.util.encode(_.tokens),_.language)},tokenize:function(w,x){var j=x.rest;if(j){for(var _ in j)x[_]=j[_];delete x.rest}var C=new v;return y(C,C.head,w),m(w,C,x,C.head,0),E(C)},hooks:{all:{},add:function(w,x){var j=f.hooks.all;j[w]=j[w]||[],j[w].push(x)},run:function(w,x){var j=f.hooks.all[w];if(!(!j||!j.length))for(var _=0,C;C=j[_++];)C(x)}},Token:p};function p(w,x,j,_){this.type=w,this.content=x,this.alias=j,this.length=(_||"").length|0}p.stringify=function w(x,j){if(typeof x=="string")return x;if(Array.isArray(x)){var _="";return x.forEach(function(G){_+=w(G,j)}),_}var C={type:x.type,content:w(x.content,j),tag:"span",classes:["token",x.type],attributes:{},language:j},T=x.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(C.classes,T):C.classes.push(T)),f.hooks.run("wrap",C);var A="";for(var z in C.attributes)A+=" "+z+'="'+(C.attributes[z]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+A+">"+C.content+"</"+C.tag+">"};function g(w,x,j,_){w.lastIndex=x;var C=w.exec(j);if(C&&_&&C[1]){var T=C[1].length;C.index+=T,C[0]=C[0].slice(T)}return C}function m(w,x,j,_,C,T){for(var A in j)if(!(!j.hasOwnProperty(A)||!j[A])){var z=j[A];z=Array.isArray(z)?z:[z];for(var G=0;G<z.length;++G){if(T&&T.cause==A+","+G)return;var k=z[G],M=k.inside,L=!!k.lookbehind,F=!!k.greedy,X=k.alias;if(F&&!k.pattern.global){var ne=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,ne+"g")}for(var se=k.pattern||k,te=_.next,oe=C;te!==x.tail&&!(T&&oe>=T.reach);oe+=te.value.length,te=te.next){var P=te.value;if(x.length>w.length)return;if(!(P instanceof p)){var Q=1,ee;if(F){if(ee=g(se,oe,w,L),!ee||ee.index>=w.length)break;var Z=ee.index,ge=ee.index+ee[0].length,ae=oe;for(ae+=te.value.length;Z>=ae;)te=te.next,ae+=te.value.length;if(ae-=te.value.length,oe=ae,te.value instanceof p)continue;for(var D=te;D!==x.tail&&(ae<ge||typeof D.value=="string");D=D.next)Q++,ae+=D.value.length;Q--,P=w.slice(oe,ae),ee.index-=oe}else if(ee=g(se,0,P,L),!ee)continue;var Z=ee.index,re=ee[0],ie=P.slice(0,Z),le=P.slice(Z+re.length),he=oe+P.length;T&&he>T.reach&&(T.reach=he);var xe=te.prev;ie&&(xe=y(x,xe,ie),oe+=ie.length),S(x,xe,Q);var Oe=new p(A,M?f.tokenize(re,M):re,X,re);if(te=y(x,xe,Oe),le&&y(x,te,le),Q>1){var ye={cause:A+","+G,reach:he};m(w,x,j,te.prev,oe,ye),T&&ye.reach>T.reach&&(T.reach=ye.reach)}}}}}}function v(){var w={value:null,prev:null,next:null},x={value:null,prev:w,next:null};w.next=x,this.head=w,this.tail=x,this.length=0}function y(w,x,j){var _=x.next,C={value:j,prev:x,next:_};return x.next=C,_.prev=C,w.length++,C}function S(w,x,j){for(var _=x.next,C=0;C<j&&_!==w.tail;C++)_=_.next;x.next=_,_.prev=x,w.length-=C}function E(w){for(var x=[],j=w.head.next;j!==w.tail;)x.push(j.value),j=j.next;return x}return f})();a.exports=r,r.default=r}}),J=uO(dO());J.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},J.languages.markup.tag.inside["attr-value"].inside.entity=J.languages.markup.entity,J.languages.markup.doctype.inside["internal-subset"].inside=J.languages.markup,J.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(J.languages.markup.tag,"addInlined",{value:function(t,i){var r={},r=(r["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:J.languages[i]},r.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}}),i=(r["language-"+i]={pattern:/[\s\S]+/,inside:J.languages[i]},{});i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},J.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(J.languages.markup.tag,"addAttribute",{value:function(t,a){J.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:J.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),J.languages.html=J.languages.markup,J.languages.mathml=J.languages.markup,J.languages.svg=J.languages.markup,J.languages.xml=J.languages.extend("markup",{}),J.languages.ssml=J.languages.xml,J.languages.atom=J.languages.xml,J.languages.rss=J.languages.xml,(function(t){var a={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i="(?:[^\\\\-]|"+r.source+")",i=RegExp(i+"-"+i),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":a,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:r}},"special-escape":a,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(J),J.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},J.languages.javascript=J.languages.extend("clike",{"class-name":[J.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),J.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,J.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:J.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:J.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:J.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:J.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:J.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),J.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:J.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),J.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),J.languages.markup&&(J.languages.markup.tag.addInlined("script","javascript"),J.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),J.languages.js=J.languages.javascript,J.languages.actionscript=J.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),J.languages.actionscript["class-name"].alias="function",delete J.languages.actionscript.parameter,delete J.languages.actionscript["literal-property"],J.languages.markup&&J.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:J.languages.markup}}),(function(t){var a=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:a,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:a,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(J),(function(t){var a=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(r,i){(r=typeof r=="string"?[r]:r).forEach(function(o){var d=function(y){y.inside||(y.inside={}),y.inside.rest=i},f="doc-comment";if(p=t.languages[o]){var p,g=p[f];if((g=g||(p=t.languages.insertBefore(o,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[f])instanceof RegExp&&(g=p[f]={pattern:g}),Array.isArray(g))for(var m=0,v=g.length;m<v;m++)g[m]instanceof RegExp&&(g[m]={pattern:g[m]}),d(g[m]);else d(g)}})}}),a.addSupport(["java","javascript","php"],a)})(J),(function(t){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,a=(t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,t.languages.markup);a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(J),(function(t){var a=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a=(t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+a.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[a,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=a,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:r})})(J),(function(t){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function f(p,g){g=(g||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return p});return RegExp(m,g)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:f(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:f(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:f(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:f(d),lookbehind:!0,greedy:!0},number:{pattern:f(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(J),(function(t){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(m){return m=m.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,f=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+d+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+d+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(v){m!==v&&(t.languages.markdown[m].inside.content.inside[v]=t.languages.markdown[v])})}),t.hooks.add("after-tokenize",function(m){m.language!=="markdown"&&m.language!=="md"||(function v(y){if(y&&typeof y!="string")for(var S=0,E=y.length;S<E;S++){var w,x=y[S];x.type!=="code"?v(x.content):(w=x.content[1],x=x.content[3],w&&x&&w.type==="code-language"&&x.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),x.alias?typeof x.alias=="string"?x.alias=[x.alias,w]:x.alias.push(w):x.alias=[w]))}})(m.tokens)}),t.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var v="",y=0,S=m.classes.length;y<S;y++){var E=m.classes[y],E=/language-(.+)/.exec(E);if(E){v=E[1];break}}var w,x=t.languages[v];x?m.content=t.highlight((function(j){return j=j.replace(f,""),j=j.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_,C){var T;return(C=C.toLowerCase())[0]==="#"?(T=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),g(T)):p[C]||_})})(m.content),x,v):v&&v!=="none"&&t.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),m.attributes.id=w,t.plugins.autoloader.loadLanguages(v,function(){var j=document.getElementById(w);j&&(j.innerHTML=t.highlight(j.textContent,t.languages[v],v))}))}}),RegExp(t.languages.markup.tag.pattern.source,"gi")),p={amp:"&",lt:"<",gt:">",quot:'"'},g=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown})(J),J.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:J.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},J.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var a=t.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),r=0;r<a.length;){var i=a[r++];if(i.type==="keyword"&&i.content==="mutation"){var o=[];if(y(["definition-mutation","punctuation"])&&v(1).content==="("){r+=2;var d=S(/^\($/,/^\)$/);if(d===-1)continue;for(;r<d;r++){var f=v(0);f.type==="variable"&&(E(f,"variable-input"),o.push(f.content))}r=d+1}if(y(["punctuation","property-query"])&&v(0).content==="{"&&(r++,E(v(0),"property-mutation"),0<o.length)){var p=S(/^\{$/,/^\}$/);if(p!==-1)for(var g=r;g<p;g++){var m=a[g];m.type==="variable"&&0<=o.indexOf(m.content)&&E(m,"variable-input")}}}}function v(w){return a[r+w]}function y(w,x){x=x||0;for(var j=0;j<w.length;j++){var _=v(j+x);if(!_||_.type!==w[j])return}return 1}function S(w,x){for(var j=1,_=r;_<a.length;_++){var C=a[_],T=C.content;if(C.type==="punctuation"&&typeof T=="string"){if(w.test(T))j++;else if(x.test(T)&&--j===0)return _}}return-1}function E(w,x){var j=w.alias;j?Array.isArray(j)||(w.alias=j=[j]):w.alias=j=[],j.push(x)}}),J.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(t){var a=t.languages.javascript["template-string"],r=a.pattern.source,i=a.inside.interpolation,o=i.inside["interpolation-punctuation"],d=i.pattern.source;function f(y,S){if(t.languages[y])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function p(y,S,E){return y={code:y,grammar:S,language:E},t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function g(y,S,E){var j=t.tokenize(y,{interpolation:{pattern:RegExp(d),lookbehind:!0}}),w=0,x={},j=p(j.map(function(C){if(typeof C=="string")return C;for(var T,A,C=C.content;y.indexOf((A=w++,T="___"+E.toUpperCase()+"_"+A+"___"))!==-1;);return x[T]=C,T}).join(""),S,E),_=Object.keys(x);return w=0,(function C(T){for(var A=0;A<T.length;A++){if(w>=_.length)return;var z,G,k,M,L,F,X,ne=T[A];typeof ne=="string"||typeof ne.content=="string"?(z=_[w],(X=(F=typeof ne=="string"?ne:ne.content).indexOf(z))!==-1&&(++w,G=F.substring(0,X),L=x[z],k=void 0,(M={})["interpolation-punctuation"]=o,(M=t.tokenize(L,M)).length===3&&((k=[1,1]).push.apply(k,p(M[1],t.languages.javascript,"javascript")),M.splice.apply(M,k)),k=new t.Token("interpolation",M,i.alias,L),M=F.substring(X+z.length),L=[],G&&L.push(G),L.push(k),M&&(C(F=[M]),L.push.apply(L,F)),typeof ne=="string"?(T.splice.apply(T,[A,1].concat(L)),A+=L.length-1):ne.content=L)):(X=ne.content,Array.isArray(X)?C(X):C([X]))}})(j),new t.Token(E,j,"language-"+E,y)}t.languages.javascript["template-string"]=[f("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),f("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),f("svg",/\bsvg/.source),f("markdown",/\b(?:markdown|md)/.source),f("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),f("sql",/\bsql/.source),a].filter(Boolean);var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function v(y){return typeof y=="string"?y:Array.isArray(y)?y.map(v).join(""):v(y.content)}t.hooks.add("after-tokenize",function(y){y.language in m&&(function S(E){for(var w=0,x=E.length;w<x;w++){var j,_,C,T=E[w];typeof T!="string"&&(j=T.content,Array.isArray(j)?T.type==="template-string"?(T=j[1],j.length===3&&typeof T!="string"&&T.type==="embedded-code"&&(_=v(T),T=T.alias,T=Array.isArray(T)?T[0]:T,C=t.languages[T])&&(j[1]=g(_,C,T))):S(j):typeof j!="string"&&S([j]))}})(y.tokens)})})(J),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var a=t.languages.extend("typescript",{});delete a["class-name"],t.languages.typescript["class-name"].inside=a,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),t.languages.ts=t.languages.typescript})(J),(function(t){var a=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,i="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(J),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(J),J.languages.n4js=J.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),J.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),J.languages.n4jsd=J.languages.n4js,(function(t){function a(f,p){return RegExp(f.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),p)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:a(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i<r.length;i++){var d=r[i],o=t.languages.javascript[d],d=(o=t.util.type(o)==="RegExp"?t.languages.javascript[d]={pattern:o}:o).inside||{};(o.inside=d)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(J),(function(t){var a=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function d(g,m){return g=g.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(g,m)}o=d(o).source,t.languages.jsx=t.languages.extend("markup",a),t.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=a.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:d(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function f(g){for(var m=[],v=0;v<g.length;v++){var y=g[v],S=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<m.length&&m[m.length-1].tagName===p(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content!=="/>"&&m.push({tagName:p(y.content[0].content[1]),openedBraces:0}):0<m.length&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:0<m.length&&0<m[m.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:S=!0),(S||typeof y=="string")&&0<m.length&&m[m.length-1].openedBraces===0&&(S=p(y),v<g.length-1&&(typeof g[v+1]=="string"||g[v+1].type==="plain-text")&&(S+=p(g[v+1]),g.splice(v+1,1)),0<v&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(S=p(g[v-1])+S,g.splice(v-1,1),v--),g[v]=new t.Token("plain-text",S,null,S)),y.content&&typeof y.content!="string"&&f(y.content)}}var p=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(p).join(""):""};t.hooks.add("after-tokenize",function(g){g.language!=="jsx"&&g.language!=="tsx"||f(g.tokens)})})(J),(function(t){var a=t.util.clone(t.languages.typescript),a=(t.languages.tsx=t.languages.extend("jsx",a),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],t.languages.tsx.tag);a.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+a.pattern.source+")",a.pattern.flags),a.lookbehind=!0})(J),J.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},J.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=J.languages.swift}),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var a={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:a},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:a},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(J),J.languages.c=J.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),J.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),J.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},J.languages.c.string],char:J.languages.c.char,comment:J.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:J.languages.c}}}}),J.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete J.languages.c.boolean,J.languages.objectivec=J.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete J.languages.objectivec["class-name"],J.languages.objc=J.languages.objectivec,J.languages.reason=J.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),J.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete J.languages.reason.function,(function(t){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(J),J.languages.go=J.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),J.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete J.languages.go["class-name"],(function(t){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return a.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(J),J.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},J.languages.python["string-interpolation"].inside.interpolation.inside.rest=J.languages.python,J.languages.py=J.languages.python,J.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},J.languages.webmanifest=J.languages.json;var op={};oO(op,{dracula:()=>hO,duotoneDark:()=>mO,duotoneLight:()=>yO,github:()=>bO,gruvboxMaterialDark:()=>$O,gruvboxMaterialLight:()=>ZO,jettwaveDark:()=>HO,jettwaveLight:()=>GO,nightOwl:()=>SO,nightOwlLight:()=>EO,oceanicNext:()=>RO,okaidia:()=>_O,oneDark:()=>IO,oneLight:()=>QO,palenight:()=>AO,shadesOfPurple:()=>kO,synthwave84:()=>MO,ultramin:()=>LO,vsDark:()=>ES,vsLight:()=>UO});var fO={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},hO=fO,pO={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},mO=pO,gO={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},yO=gO,vO={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},bO=vO,xO={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},SO=xO,wO={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},EO=wO,cn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},jO={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:cn.keyword}},{types:["attr-value"],style:{color:cn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:cn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:cn.primitive}},{types:["boolean"],style:{color:cn.boolean}},{types:["tag"],style:{color:cn.tag}},{types:["string"],style:{color:cn.string}},{types:["punctuation"],style:{color:cn.string}},{types:["selector","char","builtin","inserted"],style:{color:cn.char}},{types:["function"],style:{color:cn.function}},{types:["operator","entity","url","variable"],style:{color:cn.variable}},{types:["keyword"],style:{color:cn.keyword}},{types:["atrule","class-name"],style:{color:cn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},RO=jO,NO={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},_O=NO,CO={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},AO=CO,TO={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},kO=TO,OO={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},MO=OO,DO={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},LO=DO,zO={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},ES=zO,BO={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},UO=BO,PO={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},HO=PO,FO={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},GO=FO,qO={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},IO=qO,VO={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},QO=VO,YO={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},$O=YO,XO={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},ZO=XO,KO=t=>N.useCallback(a=>{var r=a,{className:i,style:o,line:d}=r,f=wS(r,["className","style","line"]);const p=Tu(Jn({},f),{className:ro("token-line",i)});return typeof t=="object"&&"plain"in t&&(p.style=t.plain),typeof o=="object"&&(p.style=Jn(Jn({},p.style||{}),o)),p},[t]),WO=t=>{const a=N.useCallback(({types:r,empty:i})=>{if(t!=null){{if(r.length===1&&r[0]==="plain")return i!=null?{display:"inline-block"}:void 0;if(r.length===1&&i!=null)return t[r[0]]}return Object.assign(i!=null?{display:"inline-block"}:{},...r.map(o=>t[o]))}},[t]);return N.useCallback(r=>{var i=r,{token:o,className:d,style:f}=i,p=wS(i,["token","className","style"]);const g=Tu(Jn({},p),{className:ro("token",...o.types,d),children:o.content,style:a(o)});return f!=null&&(g.style=Jn(Jn({},g.style||{}),f)),g},[a])},JO=/\r\n|\r|\n/,_x=t=>{t.length===0?t.push({types:["plain"],content:`
|
|
320
|
-
`,empty:!0}):t.length===1&&t[0].content===""&&(t[0].content=`
|
|
321
|
-
`,t[0].empty=!0)},Cx=(t,a)=>{const r=t.length;return r>0&&t[r-1]===a?t:t.concat(a)},eM=t=>{const a=[[]],r=[t],i=[0],o=[t.length];let d=0,f=0,p=[];const g=[p];for(;f>-1;){for(;(d=i[f]++)<o[f];){let m,v=a[f];const S=r[f][d];if(typeof S=="string"?(v=f>0?v:["plain"],m=S):(v=Cx(v,S.type),S.alias&&(v=Cx(v,S.alias)),m=S.content),typeof m!="string"){f++,a.push(v),r.push(m),i.push(0),o.push(m.length);continue}const E=m.split(JO),w=E.length;p.push({types:v,content:E[0]});for(let x=1;x<w;x++)_x(p),g.push(p=[]),p.push({types:v,content:E[x]})}f--,a.pop(),r.pop(),i.pop(),o.pop()}return _x(p),g},Ax=eM,tM=({prism:t,code:a,grammar:r,language:i})=>N.useMemo(()=>{if(r==null)return Ax([a]);const o={code:a,grammar:r,language:i,tokens:[]};return t.hooks.run("before-tokenize",o),o.tokens=t.tokenize(a,r),t.hooks.run("after-tokenize",o),Ax(o.tokens)},[a,r,i,t]),nM=(t,a)=>{const{plain:r}=t,i=t.styles.reduce((o,d)=>{const{languages:f,style:p}=d;return f&&!f.includes(a)||d.types.forEach(g=>{const m=Jn(Jn({},o[g]),p);o[g]=m}),o},{});return i.root=r,i.plain=Tu(Jn({},r),{backgroundColor:void 0}),i},aM=nM,sM=({children:t,language:a,code:r,theme:i,prism:o})=>{const d=a.toLowerCase(),f=aM(i,d),p=KO(f),g=WO(f),m=o.languages[d],v=tM({prism:o,language:d,code:r,grammar:m});return t({tokens:v,className:`prism-code language-${d}`,style:f!=null?f.root:{},getLineProps:p,getTokenProps:g})},rM=t=>N.createElement(sM,Tu(Jn({},t),{prism:t.prism||J,theme:t.theme||ES,code:t.code,language:t.language}));/*! Bundled license information:
|
|
322
|
-
|
|
323
|
-
prismjs/prism.js:
|
|
324
|
-
(**
|
|
325
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
326
|
-
*
|
|
327
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
328
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
329
|
-
* @namespace
|
|
330
|
-
* @public
|
|
331
|
-
*)
|
|
332
|
-
*/const iM={...op.nightOwl,styles:op.nightOwl.styles.map(t=>({...t,style:Object.fromEntries(Object.entries(t.style??{}).filter(([a])=>a!=="background"&&a!=="backgroundColor"))}))};function lM(t){const a=[],r=/\[source:\s*(.+?):(\d+|\?)-(\d+|\?)\s*\|\s*score:\s*([\d.]+)\]\n([\s\S]*?)(?=\n\[source:|$)/g;let i;for(;(i=r.exec(t))!==null;)a.push({path:i[1],startLine:i[2],endLine:i[3],score:i[4],code:i[5].trimEnd()});return a}function oM(t){var i;const a=((i=t.split(".").pop())==null?void 0:i.toLowerCase())??"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",py:"python",go:"go",rs:"rust",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",bash:"bash"}[a]??"text"}function cM(t){const a=[],r=/```(\w+)?\n([\s\S]*?)```/g;let i=0,o;for(;(o=r.exec(t))!==null;)o.index>i&&a.push({language:"markdown",code:t.slice(i,o.index),fenced:!1}),a.push({language:o[1]??"text",code:o[2].trimEnd(),fenced:!0}),i=o.index+o[0].length;return i<t.length&&a.push({language:"markdown",code:t.slice(i),fenced:!1}),a.filter(d=>d.code.trim().length>0)}function _h({code:t,language:a}){return u.jsx(rM,{theme:iM,code:t,language:a,children:({className:r,style:i,tokens:o,getLineProps:d,getTokenProps:f})=>u.jsx("pre",{className:`${r} text-xs overflow-x-auto p-3 m-0`,style:{...i,background:"transparent"},children:o.map((p,g)=>{const m=d({line:p,key:g});return u.jsxs("div",{...m,className:`${m.className} table-row`,children:[u.jsx("span",{className:"table-cell pr-3 text-right select-none opacity-30 text-xs",children:g+1}),u.jsx("span",{className:"table-cell",children:p.map((v,y)=>u.jsx("span",{...f({token:v,key:y})},y))})]},g)})})})}function uM({raw:t}){const a=lM(t);return a.length===0?u.jsx("pre",{className:"text-sm whitespace-pre-wrap font-mono bg-muted/30 rounded-md p-4 overflow-x-auto",children:t}):u.jsx("div",{className:"flex flex-col gap-4",children:a.map((r,i)=>{const o=oM(r.path),d=o==="markdown"?cM(r.code):null;return u.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[u.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u.jsx(vu,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"font-mono text-xs truncate",children:r.path}),u.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[":",r.startLine,"-",r.endLine]})]}),u.jsx(Mt,{variant:"outline",className:"text-xs shrink-0",children:r.score})]}),d?d.map((f,p)=>f.fenced?u.jsx("div",{className:"bg-muted/30 border-y border-border/50",children:u.jsx(_h,{code:f.code,language:f.language})},p):u.jsx(_h,{code:f.code,language:"markdown"},p)):u.jsx(_h,{code:r.code,language:o})]},i)})})}const dM=zn("/query")({component:fM,validateSearch:t=>({workspaceId:t.workspaceId??""})}),Ch={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function Tx(t){switch(t){case"file":return"bg-chart-1/15 text-chart-1 border-chart-1/30";case"chunk":return"bg-chart-2/15 text-chart-2 border-chart-2/30";case"symbol":return"bg-chart-3/15 text-chart-3 border-chart-3/30";case"entity":return"bg-chart-4/15 text-chart-4 border-chart-4/30";default:return"bg-muted text-muted-foreground border-border"}}function fM(){const{workspaceId:t}=to({from:"/query"}),[a,r]=N.useState(Ch),[i,o]=N.useState(!1);async function d(m){m.preventDefault(),o(!0),r({...Ch,error:null});try{const v=new FormData(m.currentTarget),y=await Ss.runQuery({workspaceId:String(v.get("workspaceId")??"").trim(),query:String(v.get("query")??"").trim()});r({...y,error:null})}catch(v){r({...Ch,error:v instanceof Error?v.message:"Query failed"})}finally{o(!1)}}const f=a.graphNodes.filter(m=>m.type==="file"),p=a.graphNodes.filter(m=>m.type==="symbol");a.graphNodes.filter(m=>m.type==="chunk");const g=t.trim().length>0;return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g&&u.jsx(ht,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:u.jsx(Dt,{variant:"ghost",size:"icon",children:u.jsx(Ci,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("h1",{children:"Query"}),u.jsx("p",{className:"muted text-sm",children:"Test the retrieval flow against the indexed workspace."})]})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{className:"text-base",children:"Query interface"})}),u.jsx(De,{children:u.jsxs("form",{onSubmit:d,className:"query-form",children:[u.jsxs("div",{className:"field",children:[u.jsx(_t,{htmlFor:"workspaceId",children:"Workspace ID"}),u.jsx(Ql,{id:"workspaceId",name:"workspaceId",defaultValue:t,placeholder:"openez"})]}),u.jsxs("div",{className:"field",children:[u.jsx(_t,{htmlFor:"query",children:"Query"}),u.jsx(ep,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),u.jsx(Dt,{type:"submit",disabled:i,children:i?u.jsxs(u.Fragment,{children:[u.jsx(Vl,{className:"h-4 w-4 animate-spin"})," Running..."]}):u.jsxs(u.Fragment,{children:[u.jsx(wp,{className:"h-4 w-4"})," Run query"]})}),a.error&&u.jsx("p",{className:"text-sm text-destructive mt-2",children:a.error})]})})]}),a.answerContext&&u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{className:"text-base",children:"Context"})}),u.jsx(De,{children:u.jsx(uM,{raw:a.answerContext})})]}),a.sources.length>0&&u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{className:"text-base",children:"Sources"})}),u.jsx(De,{children:u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Path"}),u.jsx(Ye,{children:"Lines"}),u.jsx(Ye,{children:"Score"}),u.jsx(Ye,{children:"Reason"})]})}),u.jsx(Ca,{children:a.sources.map(m=>u.jsxs(bt,{children:[u.jsx(Pe,{className:"font-mono text-xs",children:m.path}),u.jsxs(Pe,{children:[m.startLine??"?","-",m.endLine??"?"]}),u.jsx(Pe,{children:m.score.toFixed(3)}),u.jsx(Pe,{children:m.reason})]},`${m.path}-${m.startLine}-${m.endLine}`))})]})})]}),a.graphNodes.length>0&&u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsxs(it,{className:"text-base flex items-center gap-2",children:[u.jsx(bN,{className:"h-4 w-4"})," Graph Relationships"]})}),u.jsxs(De,{className:"grid gap-4",children:[f.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:f.map(m=>u.jsxs(Mt,{variant:"outline",className:Tx("file"),children:[u.jsx(vu,{className:"h-3 w-3 mr-1"})," ",m.label]},m.id))})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:p.map(m=>u.jsx(Mt,{variant:"outline",className:Tx("symbol"),children:m.label},m.id))})]}),a.graphEdges.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),u.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((m,v)=>{const y=a.graphNodes.find(E=>E.id===m.from_node_id),S=a.graphNodes.find(E=>E.id===m.to_node_id);return u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx("span",{className:"truncate max-w-50 font-mono",children:(y==null?void 0:y.label)??m.from_node_id.slice(0,8)}),u.jsx(Zh,{className:"h-3 w-3 shrink-0"}),u.jsx(Mt,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:m.type}),u.jsx(Zh,{className:"h-3 w-3 shrink-0"}),u.jsx("span",{className:"truncate max-w-50 font-mono",children:(S==null?void 0:S.label)??m.to_node_id.slice(0,8)})]},v)})})]})]})]})]})}function Ws(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const kx={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},Ox={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function hM(t){return kx[t]??kx.default}function pM(t){return Ox[t]??Ox.default}const mM=zn("/documents")({loader:({context:t})=>t.queryClient.ensureQueryData(au(1,Zn)),component:gM,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function gM(){const t=ao(),{page:a}=to({from:"/documents"}),{data:r,isLoading:i}=fr({...au(a,Zn),placeholderData:p=>p}),o=Math.max(1,Math.ceil(((r==null?void 0:r.totalCount)??0)/Zn)),f=(a-1)*Zn+((r==null?void 0:r.items.length)??0);return N.useEffect(()=>{const p=a+1;p<=o&&t.prefetchQuery(au(p,Zn))},[a,o,t]),u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Documents"}),u.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Documents"})}),u.jsx(De,{children:i?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",f," of ",(r==null?void 0:r.totalCount)??0," documents"]}),u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Path"}),u.jsx(Ye,{children:"Kind"}),u.jsx(Ye,{children:"Language"}),u.jsx(Ye,{children:"Updated"})]})}),u.jsx(Ca,{children:((r==null?void 0:r.items)??[]).map(p=>u.jsxs(bt,{children:[u.jsx(Pe,{children:p.path}),u.jsx(Pe,{children:p.kind}),u.jsx(Pe,{children:p.language??"-"}),u.jsx(Pe,{className:"text-muted-foreground",children:Ws(p.updatedAt)})]},p.id))})]}),u.jsx(U0,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const yM=zn("/benchmark")({component:xM}),vM=[{label:"Recall@5",value:"94.44%",detail:"17 of 18 queries",icon:kN},{label:"MRR",value:"0.7009",detail:"Mean reciprocal rank",icon:L0},{label:"Duplicate paths",value:"0%",detail:"Unique source files",icon:so},{label:"FTS latency",value:"17.85 ms",detail:"Average over 54 runs",icon:QR}],bM=[["Recall@5","94.44%","94.44%"],["MRR","0.7009","0.7009"],["Duplicate path rate","0%","0%"],["Average latency","17.85 ms","112.88 ms"],["Latency p50","11.74 ms","90.45 ms"],["Latency p95","51.22 ms","272.30 ms"],["Average context","2,938 tokens","2,938 tokens"]];function xM(){return u.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[u.jsxs("header",{className:"flex flex-col gap-3 border-b pb-5 sm:flex-row sm:items-end sm:justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:[u.jsxs(Mt,{className:"gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(so,{className:"h-3.5 w-3.5"})," Quality gate passed"]}),u.jsx(Mt,{variant:"outline",children:"2026-07-22"})]}),u.jsx("h1",{children:"Retrieval benchmark"}),u.jsx("p",{className:"muted mt-1",children:"117 files, 632 chunks, 18 queries, 3 iterations per mode."})]}),u.jsxs("div",{className:"text-left text-sm text-muted-foreground sm:text-right",children:[u.jsx("div",{children:"SQLite FTS5 + graph"}),u.jsx("div",{children:"Ollama nomic-embed-text"})]})]}),u.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:vM.map(({label:t,value:a,detail:r,icon:i},o)=>u.jsxs("div",{className:`min-w-0 p-5 ${o===1?"border-t sm:border-l sm:border-t-0":o===2?"border-t sm:border-l-0 xl:border-l xl:border-t-0":o===3?"border-t sm:border-l xl:border-t-0":""}`,children:[u.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[u.jsx("span",{children:t}),u.jsx(i,{className:"h-4 w-4 text-foreground"})]}),u.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:a}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:r})]},t))}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsxs(rt,{children:[u.jsx(it,{className:"text-lg",children:"Quality improvement"}),u.jsx(fh,{children:"Current retrieval compared with the previous baseline."})]}),u.jsxs(De,{className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"Recall@5"}),u.jsx("span",{className:"font-mono tabular-nums",children:"83.33% → 94.44%"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[94.44%] bg-emerald-500"})})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"MRR"}),u.jsx("span",{className:"font-mono tabular-nums",children:"0.6176 → 0.7009"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[70.09%] bg-cyan-500"})})]}),u.jsxs("div",{className:"flex items-center justify-between border-t pt-4 text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Missed queries"}),u.jsx("span",{className:"font-medium tabular-nums",children:"3 → 1"})]})]})]}),u.jsxs(Me,{children:[u.jsxs(rt,{children:[u.jsx(it,{className:"text-lg",children:"Latency cost"}),u.jsx(fh,{children:"Ollama preserves quality but adds local inference time."})]}),u.jsxs(De,{className:"space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"FTS-only"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[16%] bg-cyan-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"17.85 ms"})]}),u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"Ollama"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-full bg-amber-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"112.88 ms"})]}),u.jsxs("div",{className:"flex items-start gap-3 border-t pt-4 text-sm text-muted-foreground",children:[u.jsx(L0,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),u.jsx("p",{children:"FTS-only remains the default. Ollama is used as semantic fallback when lexical search has no result."})]})]})]})]}),u.jsxs(Me,{children:[u.jsxs(rt,{className:"flex-row items-start justify-between gap-4 space-y-0",children:[u.jsxs("div",{children:[u.jsx(it,{className:"text-lg",children:"Mode comparison"}),u.jsx(fh,{children:"54 measured runs per mode on the same local index."})]}),u.jsx(Mt,{variant:"secondary",children:"0% data leakage"})]}),u.jsx(De,{children:u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Metric"}),u.jsx(Ye,{children:"FTS-only"}),u.jsx(Ye,{children:"Ollama embedding"})]})}),u.jsxs(Ca,{children:[bM.map(([t,a,r])=>u.jsxs(bt,{children:[u.jsx(Pe,{className:"font-medium",children:t}),u.jsx(Pe,{className:"font-mono tabular-nums",children:a}),u.jsx(Pe,{className:"font-mono tabular-nums",children:r})]},t)),u.jsxs(bt,{children:[u.jsx(Pe,{className:"font-medium",children:"Quality gate"}),u.jsx(Pe,{children:u.jsx(Mt,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})}),u.jsx(Pe,{children:u.jsx(Mt,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})})]})]})]})})]}),u.jsxs("section",{className:"flex flex-col gap-4 rounded-lg border border-amber-500/30 bg-amber-500/5 p-5 sm:flex-row sm:items-start",children:[u.jsx(Ep,{className:"h-5 w-5 shrink-0 text-amber-500"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("h2",{className:"text-base font-semibold",children:"Remaining miss"}),u.jsx(Mt,{variant:"outline",children:"Rank 7"})]}),u.jsx("p",{className:"mt-2 break-words font-mono text-sm",children:"where are TypeScript symbols extracted?"}),u.jsxs("div",{className:"mt-3 grid gap-1 text-sm text-muted-foreground sm:grid-cols-[92px_1fr]",children:[u.jsx("span",{children:"Expected"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/code.ts"}),u.jsx("span",{children:"Top result"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/languages.ts"})]})]})]})]})}const SM=zn("/")({loader:async({context:t})=>{await t.queryClient.ensureQueryData(jp)},component:wM});function wM(){const{data:t,isLoading:a,error:r}=fr(jp);return a?u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})}):r?u.jsx("div",{className:"page",children:u.jsx("p",{className:"text-destructive",children:r.message})}):t?u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:t.workspace.name}),u.jsx("p",{className:"muted",children:t.workspace.root})]}),u.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:u.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs(Mt,{className:"mb-3 gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(so,{className:"h-3.5 w-3.5"})," Retrieval benchmark passed"]}),u.jsx("h2",{className:"text-lg font-semibold",children:"Measured retrieval quality"}),u.jsx("p",{className:"muted mt-1 text-sm",children:"18 queries, 3 iterations, 54 measured runs per mode."})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Recall@5"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"94.44%"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"MRR"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"0.6565"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries hit"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"17/18"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"FTS average"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"38.68 ms"})]})]}),u.jsxs(ht,{to:"/benchmark",className:t1({variant:"outline",className:"shrink-0"}),children:["Full benchmark ",u.jsx(Zh,{className:"h-4 w-4"})]})]})}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Index state"})}),u.jsxs(De,{className:"grid gap-3",children:[u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Documents"}),u.jsx("strong",{children:t.stats.documents})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Chunks"}),u.jsx("strong",{children:t.stats.chunks})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph nodes"}),u.jsx("strong",{children:t.stats.graphNodes})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph edges"}),u.jsx("strong",{children:t.stats.graphEdges})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Memories"}),u.jsx("strong",{children:t.stats.memories})]})]})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Latest runs"})}),u.jsx(De,{children:t.recentRuns.length===0?u.jsx("p",{className:"muted",children:"No index runs recorded yet."}):u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Mode"}),u.jsx(Ye,{children:"Status"}),u.jsx(Ye,{children:"Files"}),u.jsx(Ye,{children:"Started"})]})}),u.jsx(Ca,{children:t.recentRuns.map(i=>u.jsxs(bt,{children:[u.jsx(Pe,{children:i.mode}),u.jsx(Pe,{children:i.status}),u.jsxs(Pe,{children:[i.filesUpdated,"/",i.filesScanned]}),u.jsx(Pe,{children:Ws(i.startedAt)})]},i.id))})]})})]})]}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Recent documents"})}),u.jsx(De,{children:u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Path"}),u.jsx(Ye,{children:"Kind"})]})}),u.jsx(Ca,{children:t.recentDocuments.map(i=>u.jsxs(bt,{children:[u.jsx(Pe,{children:i.path}),u.jsx(Pe,{children:i.kind})]},i.id))})]})})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{children:"Recent memories"})}),u.jsx(De,{children:u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Title"}),u.jsx(Ye,{children:"Source"})]})}),u.jsx(Ca,{children:t.recentMemories.map(i=>u.jsxs(bt,{children:[u.jsx(Pe,{children:i.title}),u.jsx(Pe,{children:i.source})]},i.id))})]})})]})]})]}):null}const EM={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function Ea({status:t,className:a}){return u.jsx(Mt,{variant:EM[t]??"outline",className:a,children:t})}const jM=zn("/workspaces/")({loader:({context:t})=>t.queryClient.ensureQueryData(Rp),component:RM,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function RM(){const t=ao(),{page:a}=to({from:"/workspaces/"}),{data:r,isLoading:i,error:o}=fr(Rp);if(i)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(o||r&&!r.ok){const m=r&&!r.ok?r:null;return u.jsxs("div",{className:"page",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),u.jsx(Me,{className:"border-destructive",children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(Ep,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),m&&"error"in m&&u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:m.error})]})})]})}const d=(r==null?void 0:r.data)??[],f=Math.max(1,Math.ceil(d.length/Zn)),p=Math.min(a,f),{paged:g}=LN(d,p);return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),u.jsx(ht,{to:"/workspaces/new",children:u.jsxs(Dt,{children:[u.jsx(qb,{className:"h-4 w-4"}),"New Workspace"]})})]}),d.length===0?u.jsx(Me,{children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(Kh,{className:"h-12 w-12 text-muted-foreground mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),u.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),u.jsx(ht,{to:"/workspaces/new",children:u.jsxs(Dt,{children:[u.jsx(qb,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",d.length," workspaces"]}),u.jsx("div",{className:"space-y-4",children:g.map(m=>u.jsx(ht,{to:"/workspaces/$workspaceId",params:{workspaceId:m.id},className:"block",onMouseEnter:()=>t.prefetchQuery(Ai(m.id)),children:u.jsx(Me,{className:"hover:bg-muted/50 transition-colors",children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-start justify-between",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("h2",{className:"text-lg font-medium truncate",children:m.name}),u.jsx(Ea,{status:m.status})]}),u.jsx("p",{className:"muted text-sm truncate mb-3",children:m.rootPath}),u.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(z0,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[m.documentCount??0," docs"]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(wp,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[m.chunkCount??0," chunks"]})]}),(m.nodeCount??0)>0&&u.jsx("div",{className:"flex items-center gap-1.5",children:u.jsxs("span",{className:"text-muted-foreground",children:[m.nodeCount," nodes"]})})]})]}),u.jsxs("div",{className:"text-right text-sm",children:[u.jsxs("div",{className:"flex gap-2 mb-1",children:[u.jsx(Ea,{status:m.indexingStatus}),u.jsx(Ea,{status:m.graphStatus})]}),u.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",Ws(m.lastIndexedAt)]})]})]})})})},m.id))}),u.jsx(U0,{currentPage:p,totalPages:f,basePath:"/workspaces/"})]})]})}const NM=zn("/workspaces/new")({component:_M}),Mx=`src/**/*.{ts,tsx,js,jsx}
|
|
333
|
-
app/**/*.{ts,tsx}
|
|
334
|
-
pages/**/*.{ts,tsx}
|
|
335
|
-
lib/**/*.{ts,tsx}
|
|
336
|
-
**/*.md`,Dx=`node_modules/**
|
|
337
|
-
**/node_modules/**
|
|
338
|
-
.next/**
|
|
339
|
-
dist/**
|
|
340
|
-
build/**
|
|
341
|
-
.git/**
|
|
342
|
-
coverage/**
|
|
343
|
-
**/.turbo/**`;function _M(){const t=yp(),[a,r]=N.useState(!1),[i,o]=N.useState(null),[d,f]=N.useState(null),[p,g]=N.useState(null);async function m(y){if(!y.trim()){f(null),g(null);return}try{const S=await Ss.validatePath(y);f(S.valid),g(S.valid?null:S.error??"Invalid path")}catch{f(!1),g("Validation failed")}}async function v(y){y.preventDefault(),r(!0),o(null);try{const S=new FormData(y.currentTarget),E=await Ss.createWorkspace({name:S.get("name"),rootPath:S.get("rootPath"),includeGlobs:(S.get("includeGlobs")||Mx).split(`
|
|
344
|
-
`).map(w=>w.trim()).filter(Boolean),excludeGlobs:(S.get("excludeGlobs")||Dx).split(`
|
|
345
|
-
`).map(w=>w.trim()).filter(Boolean)});E.success&&E.workspace?t({to:"/workspaces/$workspaceId",params:{workspaceId:E.workspace.id}}):o(E.error??"Failed to create workspace")}catch(S){o(S instanceof Error?S.message:"Failed to create workspace")}finally{r(!1)}}return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[u.jsx(ht,{to:"/workspaces",search:{page:1},children:u.jsx(Dt,{variant:"ghost",size:"icon",children:u.jsx(Ci,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("h1",{children:"New Workspace"}),u.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),u.jsx("form",{onSubmit:v,children:u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Kh,{className:"h-5 w-5 text-muted-foreground"}),u.jsx(it,{children:"Workspace Configuration"})]})}),u.jsxs(De,{className:"space-y-8",children:[i&&u.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:i}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(_t,{htmlFor:"name",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(cN,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),u.jsx(Ql,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),u.jsxs("div",{children:[u.jsx(_t,{htmlFor:"rootPath",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Kh,{className:"h-3.5 w-3.5"}),"Root Path"]})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(Ql,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:y=>m(y.target.value),className:"pr-10"}),d===!0&&u.jsx(so,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),d===!1&&u.jsx(Gb,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),u.jsx(Dt,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const y=document.getElementById("rootPath");y!=null&&y.value&&m(y.value)},children:"Validate"})]}),p&&u.jsx("p",{className:"mt-2 text-xs text-destructive",children:p}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(_t,{htmlFor:"includeGlobs",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(JR,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),u.jsx(ep,{id:"includeGlobs",name:"includeGlobs",defaultValue:Mx,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),u.jsxs("div",{children:[u.jsxs(_t,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Gb,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),u.jsx(Mt,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),u.jsx(ep,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Dx,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),u.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[u.jsx(ht,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:u.jsx(Dt,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),u.jsxs(Dt,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&u.jsx(Vl,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const CM=zn("/workspaces/$workspaceId")({component:AM});function AM(){return u.jsx(yu,{})}const TM=zn("/workspaces/$workspaceId/")({loader:async({context:t,params:a})=>{await t.queryClient.ensureQueryData(Ai(a.workspaceId)),t.queryClient.prefetchQuery(bu(a.workspaceId))},component:kM});function Lx({status:t}){return t==="running"?u.jsx(Vl,{className:"h-4 w-4 animate-spin text-muted-foreground"}):t==="completed"?u.jsx(so,{className:"h-4 w-4 text-primary"}):t==="failed"?u.jsx(D0,{className:"h-4 w-4 text-destructive"}):u.jsx($R,{className:"h-4 w-4 text-muted-foreground"})}function zx(t,a){if(!a)return"Running...";const r=new Date(a).getTime()-new Date(t).getTime();return r<1e3?"<1s":r<6e4?`${Math.round(r/1e3)}s`:`${Math.round(r/6e4)}m ${Math.round(r%6e4/1e3)}s`}function kM(){const{workspaceId:t}=mu({from:"/workspaces/$workspaceId"}),a=ao(),{data:r,isLoading:i}=fr(Ai(t)),o=()=>{a.prefetchQuery(Ai(t))},d=()=>{a.prefetchQuery(bu(t))};if(i)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(!r||!r.ok)return u.jsx("div",{className:"page",children:u.jsx(Me,{className:"border-destructive",children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(Ep,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:r&&"error"in r?r.error:"Unknown error"})]})})});const f=r.data;if(!f)return u.jsx("div",{className:"page",children:u.jsx(Me,{children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),u.jsx("p",{className:"muted",children:"Workspace not found."}),u.jsx(ht,{to:"/workspaces",search:{page:1},children:u.jsx(Dt,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const p=f.nodeCount>0||f.edgeCount>0;return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[u.jsx(ht,{to:"/workspaces",search:{page:1},children:u.jsx(Dt,{variant:"ghost",size:"icon",children:u.jsx(Ci,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h1",{children:f.name}),u.jsx(Ea,{status:f.status})]}),u.jsx("p",{className:"muted text-sm",children:f.rootPath})]})]}),u.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[u.jsx(Me,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(vu,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:f.documentCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),u.jsx(Me,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(z0,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:f.chunkCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),u.jsx(Me,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(lN,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:f.nodeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),u.jsx(Me,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(KR,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:f.edgeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),u.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[u.jsx(ht,{to:"/query",search:{workspaceId:t},onMouseEnter:o,children:u.jsxs(Dt,{variant:"outline",children:[u.jsx(mN,{className:"h-4 w-4"})," Try Query"]})}),p&&u.jsx(ht,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:t},onMouseEnter:d,children:u.jsx(Dt,{variant:"secondary",children:"Open Graph Explorer"})})]}),u.jsxs(Me,{className:"mb-6",children:[u.jsx(rt,{className:"pb-3",children:u.jsx(it,{className:"text-base",children:"Indexing Control"})}),u.jsxs(De,{className:"space-y-3",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),u.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[u.jsxs("div",{children:["openez index ",f.rootPath]}),u.jsxs("div",{children:["openez status ",f.rootPath]})]})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[u.jsxs(Me,{children:[u.jsx(rt,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(it,{className:"text-base",children:"Indexing"}),u.jsx(Ea,{status:f.indexingStatus})]})}),u.jsx(De,{children:f.latestIndexRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Lx,{status:f.latestIndexRun.status}),u.jsxs("span",{className:"text-sm",children:[f.latestIndexRun.mode," —"," ",f.latestIndexRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",u.jsx("span",{className:"font-medium",children:f.latestIndexRun.filesScanned})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",u.jsx("span",{className:"font-medium",children:f.latestIndexRun.filesUpdated})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",u.jsx("span",{className:"font-medium",children:f.latestIndexRun.chunksWritten??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",u.jsx("span",{className:"font-medium",children:f.latestIndexRun.embeddingsWritten??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",Ws(f.latestIndexRun.startedAt),f.latestIndexRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",zx(f.latestIndexRun.startedAt,f.latestIndexRun.finishedAt)]})]}),f.latestIndexRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:f.latestIndexRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),u.jsxs(Me,{children:[u.jsx(rt,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(it,{className:"text-base",children:"Graph"}),u.jsx(Ea,{status:f.graphStatus})]})}),u.jsx(De,{children:f.latestGraphRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Lx,{status:f.latestGraphRun.status}),u.jsxs("span",{className:"text-sm",children:[f.latestGraphRun.mode," —"," ",f.latestGraphRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",u.jsx("span",{className:"font-medium",children:f.latestGraphRun.nodesCreated??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",u.jsx("span",{className:"font-medium",children:f.latestGraphRun.edgesCreated??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",Ws(f.latestGraphRun.startedAt),f.latestGraphRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",zx(f.latestGraphRun.startedAt,f.latestGraphRun.finishedAt)]})]}),f.latestGraphRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:f.latestGraphRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:f.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{className:"text-base",children:"Recent Index Runs"})}),u.jsx(De,{children:f.recentIndexRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Mode"}),u.jsx(Ye,{children:"Status"}),u.jsx(Ye,{children:"Files"}),u.jsx(Ye,{children:"Started"})]})}),u.jsx(Ca,{children:f.recentIndexRuns.map(g=>u.jsxs(bt,{children:[u.jsx(Pe,{children:g.mode}),u.jsx(Pe,{children:u.jsx(Ea,{status:g.status})}),u.jsxs(Pe,{children:[g.filesUpdated,"/",g.filesScanned]}),u.jsx(Pe,{className:"text-muted-foreground",children:Ws(g.startedAt)})]},g.id))})]})})]}),u.jsxs(Me,{children:[u.jsx(rt,{children:u.jsx(it,{className:"text-base",children:"Recent Graph Runs"})}),u.jsx(De,{children:f.recentGraphRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):u.jsxs(Na,{children:[u.jsx(_a,{children:u.jsxs(bt,{children:[u.jsx(Ye,{children:"Mode"}),u.jsx(Ye,{children:"Status"}),u.jsx(Ye,{children:"Nodes"}),u.jsx(Ye,{children:"Started"})]})}),u.jsx(Ca,{children:f.recentGraphRuns.map(g=>u.jsxs(bt,{children:[u.jsx(Pe,{children:g.mode}),u.jsx(Pe,{children:u.jsx(Ea,{status:g.status})}),u.jsx(Pe,{children:g.nodesCreated}),u.jsx(Pe,{className:"text-muted-foreground",children:Ws(g.startedAt)})]},g.id))})]})})]})]}),f.lastError&&u.jsx(Me,{className:"mt-4 border-destructive",children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx(D0,{className:"h-4 w-4 text-destructive mt-0.5"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:f.lastError})]})]})})})]})}const OM="modulepreload",MM=function(t){return"/"+t},Bx={},DM=function(a,r,i){let o=Promise.resolve();if(r&&r.length>0){let f=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));o=f(r.map(m=>{if(m=MM(m),m in Bx)return;Bx[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":OM,v||(S.as="script"),S.crossOrigin="",S.href=m,g&&S.setAttribute("nonce",g),document.head.appendChild(S),v)return new Promise((E,w)=>{S.addEventListener("load",E),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return o.then(f=>{for(const p of f||[])p.status==="rejected"&&d(p.reason);return a().catch(d)})};function LM({nodeTypes:t,edgeTypes:a}){return u.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),t.map(r=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:hM(r)}}),u.jsx("span",{className:"text-muted-foreground",children:r})]},r))]}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(r=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:pM(r)}}),u.jsx("span",{className:"text-muted-foreground",children:r})]},r))]})]})}const zM=N.lazy(()=>DM(()=>import("./WorkspaceGraph-CAcqFy5e.js"),[]).then(t=>({default:t.WorkspaceGraph})));function BM({graphData:t}){const[a,r]=N.useState(!1),[i,o]=N.useState(null),[d,f]=N.useState(""),[p,g]=N.useState(()=>new Set(t.nodeTypes)),[m,v]=N.useState(()=>new Set(t.edgeTypes)),[y,S]=N.useState(null),[E,w]=N.useState(null);N.useEffect(()=>{r(!0)},[]);const x=N.useMemo(()=>{const L=new Map;for(const F of t.nodes)L.set(F.id,F);return L},[t.nodes]),j=N.useMemo(()=>{const L=new Map;for(const F of t.edges){const X=L.get(F.target);X?X.push(F):L.set(F.target,[F])}return L},[t.edges]),_=N.useMemo(()=>{const L=new Map;for(const F of t.edges){const X=L.get(F.source);X?X.push(F):L.set(F.source,[F])}return L},[t.edges]),C=N.useMemo(()=>{if(!i)return null;const L=j.get(i)??[],F=_.get(i)??[];return{incoming:L,outgoing:F}},[i,j,_]),T=N.useMemo(()=>t.nodes.filter(L=>!(d&&!L.label.toLowerCase().includes(d.toLowerCase())||p.size>0&&!p.has(L.type))),[t.nodes,d,p]),A=N.useMemo(()=>{const L=new Set(T.map(F=>F.id));return t.edges.filter(F=>!(!L.has(F.source)||!L.has(F.target)||m.size>0&&!m.has(F.type)))},[t.edges,T,m]),z=N.useCallback(L=>{if(!L){o(null),w(null);return}o(L),w(x.get(L)??null)},[x]),G=N.useCallback(L=>{S(L)},[]),k=L=>{const F=new Set(p);F.has(L)?F.delete(L):F.add(L),g(F)},M=L=>{const F=new Set(m);F.has(L)?F.delete(L):F.add(L),v(F)};return a?u.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"absolute left-3 top-3 z-10 max-h-[calc(100%-1.5rem)] w-64 overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 p-3 shadow-2xl backdrop-blur-xl",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(_t,{htmlFor:"search",className:"text-xs",children:"Search"}),u.jsxs("div",{className:"relative",children:[u.jsx(wp,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),u.jsx(Ql,{id:"search",placeholder:"Node label...",value:d,onChange:L=>f(L.target.value),className:"pl-8 h-8 text-sm"}),d&&u.jsx("button",{type:"button",onClick:()=>f(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:u.jsx(Wh,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(_t,{className:"text-xs",children:"Node Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:t.nodeTypes.map(L=>u.jsx("button",{type:"button",onClick:()=>k(L),"aria-pressed":p.has(L),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(L)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:L},L))})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(_t,{className:"text-xs",children:"Edge Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:t.edgeTypes.map(L=>u.jsx("button",{type:"button",onClick:()=>M(L),"aria-pressed":m.has(L),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(L)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:L},L))})]}),u.jsxs("div",{className:"pt-2 border-t",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",T.length.toLocaleString()," of ",t.totalNodes.toLocaleString()," nodes"]}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:[A.length.toLocaleString()," of ",t.totalEdges.toLocaleString()," edges"]}),t.totalNodes>t.nodes.length&&u.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[t.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),u.jsx("div",{className:"pt-2 border-t",children:u.jsx(LM,{nodeTypes:t.nodeTypes,edgeTypes:t.edgeTypes})})]})}),u.jsxs("div",{className:"absolute inset-0",children:[u.jsx(N.Suspense,{fallback:u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Vl,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph renderer..."})]})}),children:u.jsx(zM,{nodes:T,edges:A,selectedNodeId:i,onNodeClick:z,onNodeHover:G,className:"absolute inset-0"})}),y&&!i&&(()=>{const L=x.get(y);return L?u.jsxs("div",{className:"pointer-events-none absolute bottom-4 left-4 max-w-sm rounded-md border border-white/10 bg-[#202020]/95 px-3 py-2 shadow-xl backdrop-blur-xl",children:[u.jsx("p",{className:"text-sm font-medium",children:L.label}),u.jsx("p",{className:"text-xs text-muted-foreground",children:L.type})]}):null})()]}),E&&u.jsxs("div",{className:"absolute bottom-3 right-3 top-3 z-20 w-[min(20rem,calc(100%-1.5rem))] overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 shadow-2xl backdrop-blur-xl",children:[u.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[u.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),u.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),w(null)},className:"text-muted-foreground hover:text-foreground",children:u.jsx(Wh,{className:"h-4 w-4"})})]}),u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Label"}),u.jsx("p",{className:"text-sm font-mono break-all",children:E.label})]}),u.jsxs("div",{children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Type"}),u.jsx("p",{className:"text-sm",children:u.jsx(Mt,{variant:"outline",children:E.type})})]}),u.jsxs("div",{children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Degree"}),u.jsxs("p",{className:"text-sm",children:[E.degree," connections"]})]}),E.path&&u.jsxs("div",{children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Path"}),u.jsx("p",{className:"text-sm font-mono text-xs break-all",children:E.path})]}),(E.startLine||E.endLine)&&u.jsxs("div",{children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Lines"}),u.jsxs("p",{className:"text-sm font-mono",children:[E.startLine??"?","-",E.endLine??"?"]})]})]}),C&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsxs(_t,{className:"text-xs text-muted-foreground",children:["Connections (",C.incoming.length+C.outgoing.length,")"]}),C.incoming.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),C.incoming.slice(0,5).map(L=>{const F=x.get(L.source);return u.jsxs("button",{type:"button",onClick:()=>z(L.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[L.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(F==null?void 0:F.label)??L.source})]},L.id)})]}),C.outgoing.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),C.outgoing.slice(0,5).map(L=>{const F=x.get(L.target);return u.jsxs("button",{type:"button",onClick:()=>z(L.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[L.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(F==null?void 0:F.label)??L.target})]},L.id)})]})]}),Object.keys(E.metadata??{}).length>0&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsx(_t,{className:"text-xs text-muted-foreground",children:"Metadata"}),u.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(E.metadata,null,2)})]})]})]})]}):u.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Vl,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph interface..."})]})})}const UM=zn("/workspaces/$workspaceId/graph")({loader:async({context:t,params:a})=>{await Promise.all([t.queryClient.ensureQueryData(Ai(a.workspaceId)),t.queryClient.ensureQueryData(bu(a.workspaceId))])},component:PM});function PM(){const{workspaceId:t}=mu({from:"/workspaces/$workspaceId/graph"}),{data:a}=fr(Ai(t)),{data:r}=fr(bu(t));if(!(a!=null&&a.ok))return u.jsx("div",{className:"page",children:u.jsx(Me,{className:"border-destructive",children:u.jsx(De,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const i=a.data;if(!i)return u.jsx("div",{className:"page",children:u.jsx(Me,{children:u.jsx(De,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!r&&r.nodes.length>0;return u.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:u.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(ht,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:u.jsx(Dt,{variant:"ghost",size:"icon",children:u.jsx(Ci,{className:"h-4 w-4"})})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),u.jsx(Mt,{variant:"outline",children:i.name})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:r?u.jsxs(u.Fragment,{children:[r.totalNodes.toLocaleString()," nodes ·"," ",r.totalEdges.toLocaleString()," edges"]}):u.jsx(u.Fragment,{children:"No graph data"})})]})]}),u.jsx(Ea,{status:i.graphStatus})]})}),o?r&&r.nodes.length>0?u.jsx(BM,{graphData:r}):null:u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsxs(Me,{className:"max-w-md",children:[u.jsx(rt,{children:u.jsx(it,{children:"No Graph Data"})}),u.jsxs(De,{className:"space-y-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),u.jsx(ht,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:u.jsx(Dt,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const ku=$k.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>yr}),HM=Xk.update({id:"/settings",path:"/settings",getParentRoute:()=>yr}),FM=dM.update({id:"/query",path:"/query",getParentRoute:()=>yr}),GM=mM.update({id:"/documents",path:"/documents",getParentRoute:()=>yr}),qM=yM.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>yr}),IM=SM.update({id:"/",path:"/",getParentRoute:()=>yr}),VM=jM.update({id:"/",path:"/",getParentRoute:()=>ku}),QM=NM.update({id:"/new",path:"/new",getParentRoute:()=>ku}),$p=CM.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>ku}),YM=TM.update({id:"/",path:"/",getParentRoute:()=>$p}),$M=UM.update({id:"/graph",path:"/graph",getParentRoute:()=>$p}),XM={WorkspacesWorkspaceIdGraphRoute:$M,WorkspacesWorkspaceIdIndexRoute:YM},ZM=$p._addFileChildren(XM),KM={WorkspacesWorkspaceIdRoute:ZM,WorkspacesNewRoute:QM,WorkspacesIndexRoute:VM},WM=ku._addFileChildren(KM),JM={IndexRoute:IM,BenchmarkRoute:qM,DocumentsRoute:GM,QueryRoute:FM,SettingsRoute:HM,WorkspacesRoute:WM},e3=yr._addFileChildren(JM)._addFileTypes(),jS=new SR({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),t3=Q2({routeTree:e3,context:{queryClient:jS}}),Ux=document.getElementById("root");Ux.innerHTML||ej.createRoot(Ux).render(u.jsx(dr.StrictMode,{children:u.jsx(wR,{client:jS,children:u.jsx(X2,{router:t3})})}));export{hM as a,pM as g,u as j,N as r};
|