@openez-graph/cli 1.0.3 → 1.3.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 +46 -37
- package/dist/CHANGELOG.md +68 -0
- package/dist/cli.cjs +6094 -2467
- package/dist/registry-template.sqlite +0 -0
- package/dist/web/assets/{WorkspaceGraph-C7MlKPGF.js → WorkspaceGraph-BKsjhxlB.js} +1 -1
- package/dist/web/assets/index-BFGg8xfE.js +372 -0
- package/dist/web/index.html +1 -1
- package/package.json +2 -1
- package/dist/web/assets/index-BMNDu0y4.js +0 -367
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
var sb=t=>{throw TypeError(t)};var ah=(t,a,r)=>a.has(t)||sb("Cannot "+r);var O=(t,a,r)=>(ah(t,a,"read from private field"),r?r.call(t):a.get(t)),pe=(t,a,r)=>a.has(t)?sb("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,r),oe=(t,a,r,i)=>(ah(t,a,"write to private field"),i?i.call(t,r):a.set(t,r),r),_e=(t,a,r)=>(ah(t,a,"access private method"),r);var kc=(t,a,r,i)=>({set _(o){oe(t,a,o,r)},get _(){return O(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 u=Object.getOwnPropertyDescriptor(i,o);u&&Object.defineProperty(t,o,u.get?u:{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 u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function xm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sh={exports:{}},Hl={};/**
|
|
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 rb;function lE(){if(rb)return Hl;rb=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:t,type:i,key:f,ref:o!==void 0?o:null,props:u}}return Hl.Fragment=a,Hl.jsx=r,Hl.jsxs=r,Hl}var ib;function oE(){return ib||(ib=1,sh.exports=lE()),sh.exports}var c=oE(),rh={exports:{}},je={};/**
|
|
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 lb;function cE(){if(lb)return je;lb=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"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function j(L){return L===null||typeof L!="object"?null:(L=x&&L[x]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,E={};function _(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}_.prototype.isReactComponent={},_.prototype.setState=function(L,Z){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,Z,"setState")},_.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function C(){}C.prototype=_.prototype;function T(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}var A=T.prototype=new C;A.constructor=T,b(A,_.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function P(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(L,Z,re){var ie=re.ref;return{$$typeof:t,type:L,key:Z,ref:ie!==void 0?ie:null,props:re}}function q(L,Z){return z(L.type,Z,L.props)}function K(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ne(L){var Z={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return Z[re]})}var se=/\/+/g;function te(L,Z){return typeof L=="object"&&L!==null&&L.key!=null?ne(""+L.key):Z.toString(36)}function ce(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(P,P):(L.status="pending",L.then(function(Z){L.status==="pending"&&(L.status="fulfilled",L.value=Z)},function(Z){L.status==="pending"&&(L.status="rejected",L.reason=Z)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function F(L,Z,re,ie,le){var he=typeof L;(he==="undefined"||he==="boolean")&&(L=null);var xe=!1;if(L===null)xe=!0;else switch(he){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(L.$$typeof){case t:case a:xe=!0;break;case v:return xe=L._init,F(xe(L._payload),Z,re,ie,le)}}if(xe)return le=le(L),xe=ie===""?"."+te(L,0):ie,B(le)?(re="",xe!=null&&(re=xe.replace(se,"$&/")+"/"),F(le,Z,re,"",function(Ut){return Ut})):le!=null&&(K(le)&&(le=q(le,re+(le.key==null||L&&L.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+xe)),Z.push(le)),1;xe=0;var Be=ie===""?".":ie+":";if(B(L))for(var ve=0;ve<L.length;ve++)ie=L[ve],he=Be+te(ie,ve),xe+=F(ie,Z,re,he,le);else if(ve=j(L),typeof ve=="function")for(L=ve.call(L),ve=0;!(ie=L.next()).done;)ie=ie.value,he=Be+te(ie,ve++),xe+=F(ie,Z,re,he,le);else if(he==="object"){if(typeof L.then=="function")return F(ce(L),Z,re,ie,le);throw Z=String(L),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function V(L,Z,re){if(L==null)return L;var ie=[],le=0;return F(L,ie,"","",function(he){return Z.call(re,he,le++)}),ie}function ee(L){if(L._status===-1){var Z=L._result;Z=Z(),Z.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=Z)}if(L._status===1)return L._result.default;throw L._result}var ye=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ae={map:V,forEach:function(L,Z,re){V(L,function(){Z.apply(this,arguments)},re)},count:function(L){var Z=0;return V(L,function(){Z++}),Z},toArray:function(L){return V(L,function(Z){return Z})||[]},only:function(L){if(!K(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return je.Activity=y,je.Children=ae,je.Component=_,je.Fragment=r,je.Profiler=o,je.PureComponent=T,je.StrictMode=i,je.Suspense=g,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,je.__COMPILER_RUNTIME={__proto__:null,c:function(L){return k.H.useMemoCache(L)}},je.cache=function(L){return function(){return L.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(L,Z,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ie=b({},L.props),le=L.key;if(Z!=null)for(he in Z.key!==void 0&&(le=""+Z.key),Z)!D.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),Be=0;Be<he;Be++)xe[Be]=arguments[Be+2];ie.children=xe}return z(L.type,le,ie)},je.createContext=function(L){return L={$$typeof:f,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:u,_context:L},L},je.createElement=function(L,Z,re){var ie,le={},he=null;if(Z!=null)for(ie in Z.key!==void 0&&(he=""+Z.key),Z)D.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 Be=Array(xe),ve=0;ve<xe;ve++)Be[ve]=arguments[ve+2];le.children=Be}if(L&&L.defaultProps)for(ie in xe=L.defaultProps,xe)le[ie]===void 0&&(le[ie]=xe[ie]);return z(L,he,le)},je.createRef=function(){return{current:null}},je.forwardRef=function(L){return{$$typeof:m,render:L}},je.isValidElement=K,je.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:ee}},je.memo=function(L,Z){return{$$typeof:p,type:L,compare:Z===void 0?null:Z}},je.startTransition=function(L){var Z=k.T,re={};k.T=re;try{var ie=L(),le=k.S;le!==null&&le(re,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(P,ye)}catch(he){ye(he)}finally{Z!==null&&re.types!==null&&(Z.types=re.types),k.T=Z}},je.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},je.use=function(L){return k.H.use(L)},je.useActionState=function(L,Z,re){return k.H.useActionState(L,Z,re)},je.useCallback=function(L,Z){return k.H.useCallback(L,Z)},je.useContext=function(L){return k.H.useContext(L)},je.useDebugValue=function(){},je.useDeferredValue=function(L,Z){return k.H.useDeferredValue(L,Z)},je.useEffect=function(L,Z){return k.H.useEffect(L,Z)},je.useEffectEvent=function(L){return k.H.useEffectEvent(L)},je.useId=function(){return k.H.useId()},je.useImperativeHandle=function(L,Z,re){return k.H.useImperativeHandle(L,Z,re)},je.useInsertionEffect=function(L,Z){return k.H.useInsertionEffect(L,Z)},je.useLayoutEffect=function(L,Z){return k.H.useLayoutEffect(L,Z)},je.useMemo=function(L,Z){return k.H.useMemo(L,Z)},je.useOptimistic=function(L,Z){return k.H.useOptimistic(L,Z)},je.useReducer=function(L,Z,re){return k.H.useReducer(L,Z,re)},je.useRef=function(L){return k.H.useRef(L)},je.useState=function(L){return k.H.useState(L)},je.useSyncExternalStore=function(L,Z,re){return k.H.useSyncExternalStore(L,Z,re)},je.useTransition=function(){return k.H.useTransition()},je.version="19.2.7",je}var ob;function co(){return ob||(ob=1,rh.exports=cE()),rh.exports}var N=co();const xr=xm(N),Sm=iE({__proto__:null,default:xr},[N]);var ih={exports:{}},ql={},lh={exports:{}},oh={};/**
|
|
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 cb;function uE(){return cb||(cb=1,(function(t){function a(F,V){var ee=F.length;F.push(V);e:for(;0<ee;){var ye=ee-1>>>1,ae=F[ye];if(0<o(ae,V))F[ye]=V,F[ee]=ae,ee=ye;else break e}}function r(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],ee=F.pop();if(ee!==V){F[0]=ee;e:for(var ye=0,ae=F.length,L=ae>>>1;ye<L;){var Z=2*(ye+1)-1,re=F[Z],ie=Z+1,le=F[ie];if(0>o(re,ee))ie<ae&&0>o(le,re)?(F[ye]=le,F[ie]=ee,ye=ie):(F[ye]=re,F[Z]=ee,ye=Z);else if(ie<ae&&0>o(le,ee))F[ye]=le,F[ie]=ee,ye=ie;else break e}}return V}function o(F,V){var ee=F.sortIndex-V.sortIndex;return ee!==0?ee:F.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var g=[],p=[],v=1,y=null,x=3,j=!1,w=!1,b=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(F){for(var V=r(p);V!==null;){if(V.callback===null)i(p);else if(V.startTime<=F)i(p),V.sortIndex=V.expirationTime,a(g,V);else break;V=r(p)}}function B(F){if(b=!1,A(F),!w)if(r(g)!==null)w=!0,P||(P=!0,ne());else{var V=r(p);V!==null&&ce(B,V.startTime-F)}}var P=!1,k=-1,D=5,z=-1;function q(){return E?!0:!(t.unstable_now()-z<D)}function K(){if(E=!1,P){var F=t.unstable_now();z=F;var V=!0;try{e:{w=!1,b&&(b=!1,C(k),k=-1),j=!0;var ee=x;try{t:{for(A(F),y=r(g);y!==null&&!(y.expirationTime>F&&q());){var ye=y.callback;if(typeof ye=="function"){y.callback=null,x=y.priorityLevel;var ae=ye(y.expirationTime<=F);if(F=t.unstable_now(),typeof ae=="function"){y.callback=ae,A(F),V=!0;break t}y===r(g)&&i(g),A(F)}else i(g);y=r(g)}if(y!==null)V=!0;else{var L=r(p);L!==null&&ce(B,L.startTime-F),V=!1}}break e}finally{y=null,x=ee,j=!1}V=void 0}}finally{V?ne():P=!1}}}var ne;if(typeof T=="function")ne=function(){T(K)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,te=se.port2;se.port1.onmessage=K,ne=function(){te.postMessage(null)}}else ne=function(){_(K,0)};function ce(F,V){k=_(function(){F(t.unstable_now())},V)}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(F){F.callback=null},t.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<F?Math.floor(1e3/F):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(F){switch(x){case 1:case 2:case 3:var V=3;break;default:V=x}var ee=x;x=V;try{return F()}finally{x=ee}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ee=x;x=F;try{return V()}finally{x=ee}},t.unstable_scheduleCallback=function(F,V,ee){var ye=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,F){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,F={id:v++,callback:V,priorityLevel:F,startTime:ee,expirationTime:ae,sortIndex:-1},ee>ye?(F.sortIndex=ee,a(p,F),r(g)===null&&F===r(p)&&(b?(C(k),k=-1):b=!0,ce(B,ee-ye))):(F.sortIndex=ae,a(g,F),w||j||(w=!0,P||(P=!0,ne()))),F},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(F){var V=x;return function(){var ee=x;x=V;try{return F.apply(this,arguments)}finally{x=ee}}}})(oh)),oh}var ub;function dE(){return ub||(ub=1,lh.exports=uE()),lh.exports}var ch={exports:{}},Dt={};/**
|
|
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 db;function fE(){if(db)return Dt;db=1;var t=co();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" 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 u(g,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:g,containerInfo:p,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Dt.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(g,p,null,v)},Dt.flushSync=function(g){var p=f.T,v=i.p;try{if(f.T=null,i.p=2,g)return g()}finally{f.T=p,i.p=v,i.d.f()}},Dt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(g,p))},Dt.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},Dt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?i.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:j}):v==="script"&&i.d.X(g,{crossOrigin:y,integrity:x,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);i.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(g)},Dt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin);i.d.L(g,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dt.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);i.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(g)},Dt.requestFormReset=function(g){i.d.r(g)},Dt.unstable_batchedUpdates=function(g,p){return g(p)},Dt.useFormState=function(g,p,v){return f.H.useFormState(g,p,v)},Dt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Dt.version="19.2.7",Dt}var fb;function c0(){if(fb)return ch.exports;fb=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(),ch.exports=fE(),ch.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 hb;function hE(){if(hb)return ql;hb=1;var t=dE(),a=co(),r=c0();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 u(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 m(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(u(e)!==e)throw Error(i(188))}function p(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(i(188));return n!==e?null:e}for(var s=e,l=n;;){var d=s.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===s)return g(d),e;if(h===l)return g(d),n;h=h.sibling}throw Error(i(188))}if(s.return!==l.return)s=d,l=h;else{for(var S=!1,R=d.child;R;){if(R===s){S=!0,s=d,l=h;break}if(R===l){S=!0,l=d,s=h;break}R=R.sibling}if(!S){for(R=h.child;R;){if(R===s){S=!0,s=h,l=d;break}if(R===l){S=!0,l=h,s=d;break}R=R.sibling}if(!S)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,x=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=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"),B=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||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 b:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case B:return"Suspense";case P:return"SuspenseList";case z: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 D:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var ce=Array.isArray,F=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],ae=-1;function L(e){return{current:e}}function Z(e){0>ae||(e.current=ye[ae],ye[ae]=null,ae--)}function re(e,n){ae++,ye[ae]=e.current,e.current=n}var ie=L(null),le=L(null),he=L(null),xe=L(null);function Be(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)?Cv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Cv(n),e=_v(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),re(ie,e)}function ve(){Z(ie),Z(le),Z(he)}function Ut(e){e.memoizedState!==null&&re(xe,e);var n=ie.current,s=_v(n,e.type);n!==s&&(re(le,e),re(ie,s))}function Nt(e){le.current===e&&(Z(ie),Z(le)),xe.current===e&&(Z(xe),Bl._currentValue=ee)}var Mt,Pt;function St(e){if(Mt===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Mt=n&&n[1]||"",Pt=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Mt+e+Pt}var zs=!1;function Ha(e,n){if(!e||zs)return"";zs=!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 Q=Y}Reflect.construct(e,[],W)}else{try{W.call()}catch(Y){Q=Y}e.call(W.prototype)}}else{try{throw Error()}catch(Y){Q=Y}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(Y){if(Y&&Q&&typeof Y.stack=="string")return[Y.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),S=h[0],R=h[1];if(S&&R){var M=S.split(`
|
|
44
|
+
`),I=R.split(`
|
|
45
|
+
`);for(d=l=0;l<M.length&&!M[l].includes("DetermineComponentFrameRoot");)l++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(l===M.length||d===I.length)for(l=M.length-1,d=I.length-1;1<=l&&0<=d&&M[l]!==I[d];)d--;for(;1<=l&&0<=d;l--,d--)if(M[l]!==I[d]){if(l!==1||d!==1)do if(l--,d--,0>d||M[l]!==I[d]){var $=`
|
|
46
|
+
`+M[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=d);break}}}finally{zs=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?St(s):""}function Rr(e,n){switch(e.tag){case 26:case 27:case 5:return St(e.type);case 16:return St("Lazy");case 13:return e.child!==n&&n!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Ha(e.type,!1);case 11:return Ha(e.type.render,!1);case 1:return Ha(e.type,!0);case 31:return St("Activity");default:return""}}function Bn(e){try{var n="",s=null;do n+=Rr(e,s),s=e,e=e.return;while(e);return n}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var wn=Object.prototype.hasOwnProperty,Un=t.unstable_scheduleCallback,$i=t.unstable_cancelCallback,mo=t.unstable_shouldYield,Gu=t.unstable_requestPaint,Ot=t.unstable_now,Ve=t.unstable_getCurrentPriorityLevel,Rt=t.unstable_ImmediatePriority,Yn=t.unstable_UserBlockingPriority,Cr=t.unstable_NormalPriority,HS=t.unstable_LowPriority,lp=t.unstable_IdlePriority,qS=t.log,GS=t.unstable_setDisableYieldValue,Ki=null,an=null;function qa(e){if(typeof qS=="function"&&GS(e),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Ki,e)}catch{}}var sn=Math.clz32?Math.clz32:VS,IS=Math.log,QS=Math.LN2;function VS(e){return e>>>=0,e===0?32:31-(IS(e)/QS|0)|0}var po=256,go=262144,yo=4194304;function Bs(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 vo(e,n,s){var l=e.pendingLanes;if(l===0)return 0;var d=0,h=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var R=l&134217727;return R!==0?(l=R&~h,l!==0?d=Bs(l):(S&=R,S!==0?d=Bs(S):s||(s=R&~e,s!==0&&(d=Bs(s))))):(R=l&~h,R!==0?d=Bs(R):S!==0?d=Bs(S):s||(s=l&~e,s!==0&&(d=Bs(s)))),d===0?0:n!==0&&n!==d&&(n&h)===0&&(h=d&-d,s=n&-n,h>=s||h===32&&(s&4194048)!==0)?n:d}function Zi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function YS(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 op(){var e=yo;return yo<<=1,(yo&62914560)===0&&(yo=4194304),e}function Iu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Xi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $S(e,n,s,l,d,h){var S=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,M=e.expirationTimes,I=e.hiddenUpdates;for(s=S&~s;0<s;){var $=31-sn(s),W=1<<$;R[$]=0,M[$]=-1;var Q=I[$];if(Q!==null)for(I[$]=null,$=0;$<Q.length;$++){var Y=Q[$];Y!==null&&(Y.lane&=-536870913)}s&=~W}l!==0&&cp(e,l,0),h!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=h&~(S&~n))}function cp(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-sn(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function up(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-sn(s),d=1<<l;d&n|e[l]&n&&(e[l]|=n),s&=~d}}function dp(e,n){var s=n&-n;return s=(s&42)!==0?1:Qu(s),(s&(e.suspendedLanes|n))!==0?0:s}function Qu(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 Vu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fp(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Xv(e.type))}function hp(e,n){var s=V.p;try{return V.p=e,n()}finally{V.p=s}}var Ga=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Ga,It="__reactProps$"+Ga,_r="__reactContainer$"+Ga,Yu="__reactEvents$"+Ga,KS="__reactListeners$"+Ga,ZS="__reactHandles$"+Ga,mp="__reactResources$"+Ga,Wi="__reactMarker$"+Ga;function $u(e){delete e[Ct],delete e[It],delete e[Yu],delete e[KS],delete e[ZS]}function Ar(e){var n=e[Ct];if(n)return n;for(var s=e.parentNode;s;){if(n=s[_r]||s[Ct]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Lv(e);e!==null;){if(s=e[Ct])return s;e=Lv(e)}return n}e=s,s=e.parentNode}return null}function Tr(e){if(e=e[Ct]||e[_r]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ji(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function kr(e){var n=e[mp];return n||(n=e[mp]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function wt(e){e[Wi]=!0}var pp=new Set,gp={};function Us(e,n){Mr(e,n),Mr(e+"Capture",n)}function Mr(e,n){for(gp[e]=n,e=0;e<n.length;e++)pp.add(n[e])}var XS=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]*$"),yp={},vp={};function WS(e){return wn.call(vp,e)?!0:wn.call(yp,e)?!1:XS.test(e)?vp[e]=!0:(yp[e]=!0,!1)}function bo(e,n,s){if(WS(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 xo(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 ca(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 jn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function JS(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 d=l.get,h=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(S){s=""+S,h.call(this,S)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(S){s=""+S},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ku(e){if(!e._valueTracker){var n=bp(e)?"checked":"value";e._valueTracker=JS(e,n,""+e[n])}}function xp(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=bp(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function So(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 ew=/[\n"\\]/g;function En(e){return e.replace(ew,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zu(e,n,s,l,d,h,S,R){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),n!=null?S==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+jn(n)):e.value!==""+jn(n)&&(e.value=""+jn(n)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),n!=null?Xu(e,S,jn(n)):s!=null?Xu(e,S,jn(s)):l!=null&&e.removeAttribute("value"),d==null&&h!=null&&(e.defaultChecked=!!h),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+jn(R):e.removeAttribute("name")}function Sp(e,n,s,l,d,h,S,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)){Ku(e);return}s=s!=null?""+jn(s):"",n=n!=null?""+jn(n):s,R||n===e.value||(e.value=n),e.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=R?e.checked:!!l,e.defaultChecked=!!l,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),Ku(e)}function Xu(e,n,s){n==="number"&&So(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Or(e,n,s,l){if(e=e.options,n){n={};for(var d=0;d<s.length;d++)n["$"+s[d]]=!0;for(s=0;s<e.length;s++)d=n.hasOwnProperty("$"+e[s].value),e[s].selected!==d&&(e[s].selected=d),d&&l&&(e[s].defaultSelected=!0)}else{for(s=""+jn(s),n=null,d=0;d<e.length;d++){if(e[d].value===s){e[d].selected=!0,l&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function wp(e,n,s){if(n!=null&&(n=""+jn(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+jn(s):""}function jp(e,n,s,l){if(n==null){if(l!=null){if(s!=null)throw Error(i(92));if(ce(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),n=s}s=jn(n),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),Ku(e)}function Dr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var tw=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 Ep(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||tw.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function Np(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 d in n)l=n[d],n.hasOwnProperty(d)&&s[d]!==l&&Ep(e,d,l)}else for(var h in n)n.hasOwnProperty(h)&&Ep(e,h,n[h])}function Wu(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 nw=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"]]),aw=/^[\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 wo(e){return aw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var Ju=null;function ed(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lr=null,zr=null;function Rp(e){var n=Tr(e);if(n&&(e=n.stateNode)){var s=e[It]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zu(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="'+En(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var d=l[It]||null;if(!d)throw Error(i(90));Zu(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<s.length;n++)l=s[n],l.form===e.form&&xp(l)}break e;case"textarea":wp(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&Or(e,!!s.multiple,n,!1)}}}var td=!1;function Cp(e,n,s){if(td)return e(n,s);td=!0;try{var l=e(n);return l}finally{if(td=!1,(Lr!==null||zr!==null)&&(cc(),Lr&&(n=Lr,e=zr,zr=Lr=null,Rp(n),e)))for(n=0;n<e.length;n++)Rp(e[n])}}function el(e,n){var s=e.stateNode;if(s===null)return null;var l=s[It]||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 da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nd=!1;if(da)try{var tl={};Object.defineProperty(tl,"passive",{get:function(){nd=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{nd=!1}var Ia=null,ad=null,jo=null;function _p(){if(jo)return jo;var e,n=ad,s=n.length,l,d="value"in Ia?Ia.value:Ia.textContent,h=d.length;for(e=0;e<s&&n[e]===d[e];e++);var S=s-e;for(l=1;l<=S&&n[s-l]===d[h-l];l++);return jo=d.slice(e,1<l?1-l:void 0)}function Eo(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 No(){return!0}function Ap(){return!1}function Qt(e){function n(s,l,d,h,S){this._reactName=s,this._targetInst=d,this.type=l,this.nativeEvent=h,this.target=S,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)?No:Ap,this.isPropagationStopped=Ap,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=No)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),n}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=Qt(Ps),nl=y({},Ps,{view:0,detail:0}),sw=Qt(nl),sd,rd,al,Co=y({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ld,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!==al&&(al&&e.type==="mousemove"?(sd=e.screenX-al.screenX,rd=e.screenY-al.screenY):rd=sd=0,al=e),sd)},movementY:function(e){return"movementY"in e?e.movementY:rd}}),Tp=Qt(Co),rw=y({},Co,{dataTransfer:0}),iw=Qt(rw),lw=y({},nl,{relatedTarget:0}),id=Qt(lw),ow=y({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=Qt(ow),uw=y({},Ps,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dw=Qt(uw),fw=y({},Ps,{data:0}),kp=Qt(fw),hw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mw={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"},pw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gw(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=pw[e])?!!n[e]:!1}function ld(){return gw}var yw=y({},nl,{key:function(e){if(e.key){var n=hw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ld,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vw=Qt(yw),bw=y({},Co,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mp=Qt(bw),xw=y({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ld}),Sw=Qt(xw),ww=y({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),jw=Qt(ww),Ew=y({},Co,{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}),Nw=Qt(Ew),Rw=y({},Ps,{newState:0,oldState:0}),Cw=Qt(Rw),_w=[9,13,27,32],od=da&&"CompositionEvent"in window,sl=null;da&&"documentMode"in document&&(sl=document.documentMode);var Aw=da&&"TextEvent"in window&&!sl,Op=da&&(!od||sl&&8<sl&&11>=sl),Dp=" ",Lp=!1;function zp(e,n){switch(e){case"keyup":return _w.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function Tw(e,n){switch(e){case"compositionend":return Bp(n);case"keypress":return n.which!==32?null:(Lp=!0,Dp);case"textInput":return e=n.data,e===Dp&&Lp?null:e;default:return null}}function kw(e,n){if(Br)return e==="compositionend"||!od&&zp(e,n)?(e=_p(),jo=ad=Ia=null,Br=!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 Op&&n.locale!=="ko"?null:n.data;default:return null}}var Mw={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 Up(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Mw[e.type]:n==="textarea"}function Pp(e,n,s,l){Lr?zr?zr.push(l):zr=[l]:Lr=l,n=gc(n,"onChange"),0<n.length&&(s=new Ro("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var rl=null,il=null;function Ow(e){Sv(e,0)}function _o(e){var n=Ji(e);if(xp(n))return e}function Fp(e,n){if(e==="change")return n}var Hp=!1;if(da){var cd;if(da){var ud="oninput"in document;if(!ud){var qp=document.createElement("div");qp.setAttribute("oninput","return;"),ud=typeof qp.oninput=="function"}cd=ud}else cd=!1;Hp=cd&&(!document.documentMode||9<document.documentMode)}function Gp(){rl&&(rl.detachEvent("onpropertychange",Ip),il=rl=null)}function Ip(e){if(e.propertyName==="value"&&_o(il)){var n=[];Pp(n,il,e,ed(e)),Cp(Ow,n)}}function Dw(e,n,s){e==="focusin"?(Gp(),rl=n,il=s,rl.attachEvent("onpropertychange",Ip)):e==="focusout"&&Gp()}function Lw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _o(il)}function zw(e,n){if(e==="click")return _o(n)}function Bw(e,n){if(e==="input"||e==="change")return _o(n)}function Uw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var rn=typeof Object.is=="function"?Object.is:Uw;function ll(e,n){if(rn(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 d=s[l];if(!wn.call(n,d)||!rn(e[d],n[d]))return!1}return!0}function Qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vp(e,n){var s=Qp(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=Qp(s)}}function Yp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Yp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $p(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=So(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=So(e.document)}return n}function dd(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 Pw=da&&"documentMode"in document&&11>=document.documentMode,Ur=null,fd=null,ol=null,hd=!1;function Kp(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;hd||Ur==null||Ur!==So(l)||(l=Ur,"selectionStart"in l&&dd(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}),ol&&ll(ol,l)||(ol=l,l=gc(fd,"onSelect"),0<l.length&&(n=new Ro("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Ur)))}function Fs(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var Pr={animationend:Fs("Animation","AnimationEnd"),animationiteration:Fs("Animation","AnimationIteration"),animationstart:Fs("Animation","AnimationStart"),transitionrun:Fs("Transition","TransitionRun"),transitionstart:Fs("Transition","TransitionStart"),transitioncancel:Fs("Transition","TransitionCancel"),transitionend:Fs("Transition","TransitionEnd")},md={},Zp={};da&&(Zp=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Hs(e){if(md[e])return md[e];if(!Pr[e])return e;var n=Pr[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Zp)return md[e]=n[s];return e}var Xp=Hs("animationend"),Wp=Hs("animationiteration"),Jp=Hs("animationstart"),Fw=Hs("transitionrun"),Hw=Hs("transitionstart"),qw=Hs("transitioncancel"),eg=Hs("transitionend"),tg=new Map,pd="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(" ");pd.push("scrollEnd");function Pn(e,n){tg.set(e,n),Us(n,[e])}var Ao=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)},Nn=[],Fr=0,gd=0;function To(){for(var e=Fr,n=gd=Fr=0;n<e;){var s=Nn[n];Nn[n++]=null;var l=Nn[n];Nn[n++]=null;var d=Nn[n];Nn[n++]=null;var h=Nn[n];if(Nn[n++]=null,l!==null&&d!==null){var S=l.pending;S===null?d.next=d:(d.next=S.next,S.next=d),l.pending=d}h!==0&&ng(s,d,h)}}function ko(e,n,s,l){Nn[Fr++]=e,Nn[Fr++]=n,Nn[Fr++]=s,Nn[Fr++]=l,gd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function yd(e,n,s,l){return ko(e,n,s,l),Mo(e)}function qs(e,n){return ko(e,null,null,n),Mo(e)}function ng(e,n,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var d=!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||(d=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,d&&n!==null&&(d=31-sn(s),e=h.hiddenUpdates,l=e[d],l===null?e[d]=[n]:l.push(n),n.lane=s|536870912),h):null}function Mo(e){if(50<Tl)throw Tl=0,Cf=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Hr={};function Gw(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 ln(e,n,s,l){return new Gw(e,n,s,l)}function vd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fa(e,n){var s=e.alternate;return s===null?(s=ln(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 ag(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 Oo(e,n,s,l,d,h){var S=0;if(l=e,typeof e=="function")vd(e)&&(S=1);else if(typeof e=="string")S=$j(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=ln(31,s,n,d),e.elementType=z,e.lanes=h,e;case b:return Gs(s.children,d,h,n);case E:S=8,d|=24;break;case _:return e=ln(12,s,n,d|2),e.elementType=_,e.lanes=h,e;case B:return e=ln(13,s,n,d),e.elementType=B,e.lanes=h,e;case P:return e=ln(19,s,n,d),e.elementType=P,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:S=10;break e;case C:S=9;break e;case A:S=11;break e;case k:S=14;break e;case D:S=16,l=null;break e}S=29,s=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=ln(S,s,n,d),n.elementType=e,n.type=l,n.lanes=h,n}function Gs(e,n,s,l){return e=ln(7,e,l,n),e.lanes=s,e}function bd(e,n,s){return e=ln(6,e,null,n),e.lanes=s,e}function sg(e){var n=ln(18,null,null,0);return n.stateNode=e,n}function xd(e,n,s){return n=ln(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var rg=new WeakMap;function Rn(e,n){if(typeof e=="object"&&e!==null){var s=rg.get(e);return s!==void 0?s:(n={value:e,source:n,stack:Bn(n)},rg.set(e,n),n)}return{value:e,source:n,stack:Bn(n)}}var qr=[],Gr=0,Do=null,cl=0,Cn=[],_n=0,Qa=null,$n=1,Kn="";function ha(e,n){qr[Gr++]=cl,qr[Gr++]=Do,Do=e,cl=n}function ig(e,n,s){Cn[_n++]=$n,Cn[_n++]=Kn,Cn[_n++]=Qa,Qa=e;var l=$n;e=Kn;var d=32-sn(l)-1;l&=~(1<<d),s+=1;var h=32-sn(n)+d;if(30<h){var S=d-d%5;h=(l&(1<<S)-1).toString(32),l>>=S,d-=S,$n=1<<32-sn(n)+d|s<<d|l,Kn=h+e}else $n=1<<h|s<<d|l,Kn=e}function Sd(e){e.return!==null&&(ha(e,1),ig(e,1,0))}function wd(e){for(;e===Do;)Do=qr[--Gr],qr[Gr]=null,cl=qr[--Gr],qr[Gr]=null;for(;e===Qa;)Qa=Cn[--_n],Cn[_n]=null,Kn=Cn[--_n],Cn[_n]=null,$n=Cn[--_n],Cn[_n]=null}function lg(e,n){Cn[_n++]=$n,Cn[_n++]=Kn,Cn[_n++]=Qa,$n=n.id,Kn=n.overflow,Qa=e}var _t=null,We=null,Le=!1,Va=null,An=!1,jd=Error(i(519));function Ya(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ul(Rn(n,e)),jd}function og(e){var n=e.stateNode,s=e.type,l=e.memoizedProps;switch(n[Ct]=e,n[It]=l,s){case"dialog":ke("cancel",n),ke("close",n);break;case"iframe":case"object":case"embed":ke("load",n);break;case"video":case"audio":for(s=0;s<Ml.length;s++)ke(Ml[s],n);break;case"source":ke("error",n);break;case"img":case"image":case"link":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"input":ke("invalid",n),Sp(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",n);break;case"textarea":ke("invalid",n),jp(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||Nv(n.textContent,s)?(l.popover!=null&&(ke("beforetoggle",n),ke("toggle",n)),l.onScroll!=null&&ke("scroll",n),l.onScrollEnd!=null&&ke("scrollend",n),l.onClick!=null&&(n.onclick=ua),n=!0):n=!1,n||Ya(e,!0)}function cg(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:_t=_t.return}}function Ir(e){if(e!==_t)return!1;if(!Le)return cg(e),Le=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||qf(e.type,e.memoizedProps)),s=!s),s&&We&&Ya(e),cg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=Dv(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=Dv(e)}else n===27?(n=We,ls(e.type)?(e=Yf,Yf=null,We=e):We=n):We=_t?kn(e.stateNode.nextSibling):null;return!0}function Is(){We=_t=null,Le=!1}function Ed(){var e=Va;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Va=null),e}function ul(e){Va===null?Va=[e]:Va.push(e)}var Nd=L(null),Qs=null,ma=null;function $a(e,n,s){re(Nd,n._currentValue),n._currentValue=s}function pa(e){e._currentValue=Nd.current,Z(Nd)}function Rd(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 Cd(e,n,s,l){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var h=d.dependencies;if(h!==null){var S=d.child;h=h.firstContext;e:for(;h!==null;){var R=h;h=d;for(var M=0;M<n.length;M++)if(R.context===n[M]){h.lanes|=s,R=h.alternate,R!==null&&(R.lanes|=s),Rd(h.return,s,e),l||(S=null);break e}h=R.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(i(341));S.lanes|=s,h=S.alternate,h!==null&&(h.lanes|=s),Rd(S,s,e),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===e){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function Qr(e,n,s,l){e=null;for(var d=n,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var R=d.type;rn(d.pendingProps.value,S.value)||(e!==null?e.push(R):e=[R])}}else if(d===xe.current){if(S=d.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Bl):e=[Bl])}d=d.return}e!==null&&Cd(n,e,s,l),n.flags|=262144}function Lo(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vs(e){Qs=e,ma=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return ug(Qs,e)}function zo(e,n){return Qs===null&&Vs(e),ug(e,n)}function ug(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},ma===null){if(e===null)throw Error(i(308));ma=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ma=ma.next=n;return s}var Iw=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()})}},Qw=t.unstable_scheduleCallback,Vw=t.unstable_NormalPriority,ut={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _d(){return{controller:new Iw,data:new Map,refCount:0}}function dl(e){e.refCount--,e.refCount===0&&Qw(Vw,function(){e.controller.abort()})}var fl=null,Ad=0,Vr=0,Yr=null;function Yw(e,n){if(fl===null){var s=fl=[];Ad=0,Vr=Of(),Yr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Ad++,n.then(dg,dg),n}function dg(){if(--Ad===0&&fl!==null){Yr!==null&&(Yr.status="fulfilled");var e=fl;fl=null,Vr=0,Yr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function $w(e,n){var s=[],l={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var d=0;d<s.length;d++)(0,s[d])(n)},function(d){for(l.status="rejected",l.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),l}var fg=F.S;F.S=function(e,n){Ky=Ot(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Yw(e,n),fg!==null&&fg(e,n)};var Ys=L(null);function Td(){var e=Ys.current;return e!==null?e:Ze.pooledCache}function Bo(e,n){n===null?re(Ys,Ys.current):re(Ys,n.pool)}function hg(){var e=Td();return e===null?null:{parent:ut._currentValue,pool:e}}var $r=Error(i(460)),kd=Error(i(474)),Uo=Error(i(542)),Po={then:function(){}};function mg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pg(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(ua,ua),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,yg(e),e;default:if(typeof n.status=="string")n.then(ua,ua);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=l}},function(l){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,yg(e),e}throw Ks=n,$r}}function $s(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ks=s,$r):s}}var Ks=null;function gg(){if(Ks===null)throw Error(i(459));var e=Ks;return Ks=null,e}function yg(e){if(e===$r||e===Uo)throw Error(i(483))}var Kr=null,hl=0;function Fo(e){var n=hl;return hl+=1,Kr===null&&(Kr=[]),pg(Kr,e,n)}function ml(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ho(e,n){throw n.$$typeof===x?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function vg(e){function n(H,U){if(e){var G=H.deletions;G===null?(H.deletions=[U],H.flags|=16):G.push(U)}}function s(H,U){if(!e)return null;for(;U!==null;)n(H,U),U=U.sibling;return null}function l(H){for(var U=new Map;H!==null;)H.key!==null?U.set(H.key,H):U.set(H.index,H),H=H.sibling;return U}function d(H,U){return H=fa(H,U),H.index=0,H.sibling=null,H}function h(H,U,G){return H.index=G,e?(G=H.alternate,G!==null?(G=G.index,G<U?(H.flags|=67108866,U):G):(H.flags|=67108866,U)):(H.flags|=1048576,U)}function S(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function R(H,U,G,X){return U===null||U.tag!==6?(U=bd(G,H.mode,X),U.return=H,U):(U=d(U,G),U.return=H,U)}function M(H,U,G,X){var ge=G.type;return ge===b?$(H,U,G.props.children,X,G.key):U!==null&&(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&$s(ge)===U.type)?(U=d(U,G.props),ml(U,G),U.return=H,U):(U=Oo(G.type,G.key,G.props,null,H.mode,X),ml(U,G),U.return=H,U)}function I(H,U,G,X){return U===null||U.tag!==4||U.stateNode.containerInfo!==G.containerInfo||U.stateNode.implementation!==G.implementation?(U=xd(G,H.mode,X),U.return=H,U):(U=d(U,G.children||[]),U.return=H,U)}function $(H,U,G,X,ge){return U===null||U.tag!==7?(U=Gs(G,H.mode,X,ge),U.return=H,U):(U=d(U,G),U.return=H,U)}function W(H,U,G){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=bd(""+U,H.mode,G),U.return=H,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return G=Oo(U.type,U.key,U.props,null,H.mode,G),ml(G,U),G.return=H,G;case w:return U=xd(U,H.mode,G),U.return=H,U;case D:return U=$s(U),W(H,U,G)}if(ce(U)||ne(U))return U=Gs(U,H.mode,G,null),U.return=H,U;if(typeof U.then=="function")return W(H,Fo(U),G);if(U.$$typeof===T)return W(H,zo(H,U),G);Ho(H,U)}return null}function Q(H,U,G,X){var ge=U!==null?U.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ge!==null?null:R(H,U,""+G,X);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return G.key===ge?M(H,U,G,X):null;case w:return G.key===ge?I(H,U,G,X):null;case D:return G=$s(G),Q(H,U,G,X)}if(ce(G)||ne(G))return ge!==null?null:$(H,U,G,X,null);if(typeof G.then=="function")return Q(H,U,Fo(G),X);if(G.$$typeof===T)return Q(H,U,zo(H,G),X);Ho(H,G)}return null}function Y(H,U,G,X,ge){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return H=H.get(G)||null,R(U,H,""+X,ge);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case j:return H=H.get(X.key===null?G:X.key)||null,M(U,H,X,ge);case w:return H=H.get(X.key===null?G:X.key)||null,I(U,H,X,ge);case D:return X=$s(X),Y(H,U,G,X,ge)}if(ce(X)||ne(X))return H=H.get(G)||null,$(U,H,X,ge,null);if(typeof X.then=="function")return Y(H,U,G,Fo(X),ge);if(X.$$typeof===T)return Y(H,U,G,zo(U,X),ge);Ho(U,X)}return null}function fe(H,U,G,X){for(var ge=null,Ue=null,me=U,Ce=U=0,De=null;me!==null&&Ce<G.length;Ce++){me.index>Ce?(De=me,me=null):De=me.sibling;var Pe=Q(H,me,G[Ce],X);if(Pe===null){me===null&&(me=De);break}e&&me&&Pe.alternate===null&&n(H,me),U=h(Pe,U,Ce),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe,me=De}if(Ce===G.length)return s(H,me),Le&&ha(H,Ce),ge;if(me===null){for(;Ce<G.length;Ce++)me=W(H,G[Ce],X),me!==null&&(U=h(me,U,Ce),Ue===null?ge=me:Ue.sibling=me,Ue=me);return Le&&ha(H,Ce),ge}for(me=l(me);Ce<G.length;Ce++)De=Y(me,H,Ce,G[Ce],X),De!==null&&(e&&De.alternate!==null&&me.delete(De.key===null?Ce:De.key),U=h(De,U,Ce),Ue===null?ge=De:Ue.sibling=De,Ue=De);return e&&me.forEach(function(fs){return n(H,fs)}),Le&&ha(H,Ce),ge}function be(H,U,G,X){if(G==null)throw Error(i(151));for(var ge=null,Ue=null,me=U,Ce=U=0,De=null,Pe=G.next();me!==null&&!Pe.done;Ce++,Pe=G.next()){me.index>Ce?(De=me,me=null):De=me.sibling;var fs=Q(H,me,Pe.value,X);if(fs===null){me===null&&(me=De);break}e&&me&&fs.alternate===null&&n(H,me),U=h(fs,U,Ce),Ue===null?ge=fs:Ue.sibling=fs,Ue=fs,me=De}if(Pe.done)return s(H,me),Le&&ha(H,Ce),ge;if(me===null){for(;!Pe.done;Ce++,Pe=G.next())Pe=W(H,Pe.value,X),Pe!==null&&(U=h(Pe,U,Ce),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return Le&&ha(H,Ce),ge}for(me=l(me);!Pe.done;Ce++,Pe=G.next())Pe=Y(me,H,Ce,Pe.value,X),Pe!==null&&(e&&Pe.alternate!==null&&me.delete(Pe.key===null?Ce:Pe.key),U=h(Pe,U,Ce),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return e&&me.forEach(function(rE){return n(H,rE)}),Le&&ha(H,Ce),ge}function Ke(H,U,G,X){if(typeof G=="object"&&G!==null&&G.type===b&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case j:e:{for(var ge=G.key;U!==null;){if(U.key===ge){if(ge=G.type,ge===b){if(U.tag===7){s(H,U.sibling),X=d(U,G.props.children),X.return=H,H=X;break e}}else if(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&$s(ge)===U.type){s(H,U.sibling),X=d(U,G.props),ml(X,G),X.return=H,H=X;break e}s(H,U);break}else n(H,U);U=U.sibling}G.type===b?(X=Gs(G.props.children,H.mode,X,G.key),X.return=H,H=X):(X=Oo(G.type,G.key,G.props,null,H.mode,X),ml(X,G),X.return=H,H=X)}return S(H);case w:e:{for(ge=G.key;U!==null;){if(U.key===ge)if(U.tag===4&&U.stateNode.containerInfo===G.containerInfo&&U.stateNode.implementation===G.implementation){s(H,U.sibling),X=d(U,G.children||[]),X.return=H,H=X;break e}else{s(H,U);break}else n(H,U);U=U.sibling}X=xd(G,H.mode,X),X.return=H,H=X}return S(H);case D:return G=$s(G),Ke(H,U,G,X)}if(ce(G))return fe(H,U,G,X);if(ne(G)){if(ge=ne(G),typeof ge!="function")throw Error(i(150));return G=ge.call(G),be(H,U,G,X)}if(typeof G.then=="function")return Ke(H,U,Fo(G),X);if(G.$$typeof===T)return Ke(H,U,zo(H,G),X);Ho(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,U!==null&&U.tag===6?(s(H,U.sibling),X=d(U,G),X.return=H,H=X):(s(H,U),X=bd(G,H.mode,X),X.return=H,H=X),S(H)):s(H,U)}return function(H,U,G,X){try{hl=0;var ge=Ke(H,U,G,X);return Kr=null,ge}catch(me){if(me===$r||me===Uo)throw me;var Ue=ln(29,me,null,H.mode);return Ue.lanes=X,Ue.return=H,Ue}finally{}}}var Zs=vg(!0),bg=vg(!1),Ka=!1;function Md(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Od(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 Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Fe&2)!==0){var d=l.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,n=Mo(e),ng(e,null,s),n}return ko(e,l,n,s),Mo(e)}function pl(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,up(e,s)}}function Dd(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var d=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var S={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?d=h=S:h=h.next=S,s=s.next}while(s!==null);h===null?d=h=n:h=h.next=n}else d=h=n;s={baseState:l.baseState,firstBaseUpdate:d,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 Ld=!1;function gl(){if(Ld){var e=Yr;if(e!==null)throw e}}function yl(e,n,s,l){Ld=!1;var d=e.updateQueue;Ka=!1;var h=d.firstBaseUpdate,S=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var M=R,I=M.next;M.next=null,S===null?h=I:S.next=I,S=M;var $=e.alternate;$!==null&&($=$.updateQueue,R=$.lastBaseUpdate,R!==S&&(R===null?$.firstBaseUpdate=I:R.next=I,$.lastBaseUpdate=M))}if(h!==null){var W=d.baseState;S=0,$=I=M=null,R=h;do{var Q=R.lane&-536870913,Y=Q!==R.lane;if(Y?(Oe&Q)===Q:(l&Q)===Q){Q!==0&&Q===Vr&&(Ld=!0),$!==null&&($=$.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var fe=e,be=R;Q=n;var Ke=s;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){W=fe.call(Ke,W,Q);break e}W=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,Q=typeof fe=="function"?fe.call(Ke,W,Q):fe,Q==null)break e;W=y({},W,Q);break e;case 2:Ka=!0}}Q=R.callback,Q!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=d.callbacks,Y===null?d.callbacks=[Q]:Y.push(Q))}else Y={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},$===null?(I=$=Y,M=W):$=$.next=Y,S|=Q;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,d.lastBaseUpdate=Y,d.shared.pending=null}}while(!0);$===null&&(M=W),d.baseState=M,d.firstBaseUpdate=I,d.lastBaseUpdate=$,h===null&&(d.shared.lanes=0),ns|=S,e.lanes=S,e.memoizedState=W}}function xg(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function Sg(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)xg(s[e],n)}var Zr=L(null),qo=L(0);function wg(e,n){e=Ea,re(qo,e),re(Zr,n),Ea=e|n.baseLanes}function zd(){re(qo,Ea),re(Zr,Zr.current)}function Bd(){Ea=qo.current,Z(Zr),Z(qo)}var on=L(null),Tn=null;function Wa(e){var n=e.alternate;re(ot,ot.current&1),re(on,e),Tn===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(Tn=e)}function Ud(e){re(ot,ot.current),re(on,e),Tn===null&&(Tn=e)}function jg(e){e.tag===22?(re(ot,ot.current),re(on,e),Tn===null&&(Tn=e)):Ja()}function Ja(){re(ot,ot.current),re(on,on.current)}function cn(e){Z(on),Tn===e&&(Tn=null),Z(ot)}var ot=L(0);function Go(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Qf(s)||Vf(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 ga=0,Re=null,Ye=null,dt=null,Io=!1,Xr=!1,Xs=!1,Qo=0,vl=0,Wr=null,Kw=0;function rt(){throw Error(i(321))}function Pd(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!rn(e[s],n[s]))return!1;return!0}function Fd(e,n,s,l,d,h){return ga=h,Re=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=e===null||e.memoizedState===null?iy:tf,Xs=!1,h=s(l,d),Xs=!1,Xr&&(h=Ng(n,s,l,d)),Eg(e),h}function Eg(e){F.H=Sl;var n=Ye!==null&&Ye.next!==null;if(ga=0,dt=Ye=Re=null,Io=!1,vl=0,Wr=null,n)throw Error(i(300));e===null||ft||(e=e.dependencies,e!==null&&Lo(e)&&(ft=!0))}function Ng(e,n,s,l){Re=e;var d=0;do{if(Xr&&(Wr=null),vl=0,Xr=!1,25<=d)throw Error(i(301));if(d+=1,dt=Ye=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}F.H=ly,h=n(s,l)}while(Xr);return h}function Zw(){var e=F.H,n=e.useState()[0];return n=typeof n.then=="function"?bl(n):n,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Re.flags|=1024),n}function Hd(){var e=Qo!==0;return Qo=0,e}function qd(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function Gd(e){if(Io){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Io=!1}ga=0,dt=Ye=Re=null,Xr=!1,vl=Qo=0,Wr=null}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Re.memoizedState=dt=e:dt=dt.next=e,dt}function ct(){if(Ye===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var n=dt===null?Re.memoizedState:dt.next;if(n!==null)dt=n,Ye=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},dt===null?Re.memoizedState=dt=e:dt=dt.next=e}return dt}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bl(e){var n=vl;return vl+=1,Wr===null&&(Wr=[]),e=pg(Wr,e,n),n=Re,(dt===null?n.memoizedState:dt.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?iy:tf),e}function Yo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bl(e);if(e.$$typeof===T)return At(e)}throw Error(i(438,String(e)))}function Id(e){var n=null,s=Re.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Vo(),Re.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]=q;return n.index++,s}function ya(e,n){return typeof n=="function"?n(e):n}function $o(e){var n=ct();return Qd(n,Ye,e)}function Qd(e,n,s){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=s;var d=e.baseQueue,h=l.pending;if(h!==null){if(d!==null){var S=d.next;d.next=h.next,h.next=S}n.baseQueue=d=h,l.pending=null}if(h=e.baseState,d===null)e.memoizedState=h;else{n=d.next;var R=S=null,M=null,I=n,$=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(Oe&W)===W:(ga&W)===W){var Q=I.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===Vr&&($=!0);else if((ga&Q)===Q){I=I.next,Q===Vr&&($=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(R=M=W,S=h):M=M.next=W,Re.lanes|=Q,ns|=Q;W=I.action,Xs&&s(h,W),h=I.hasEagerState?I.eagerState:s(h,W)}else Q={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(R=M=Q,S=h):M=M.next=Q,Re.lanes|=W,ns|=W;I=I.next}while(I!==null&&I!==n);if(M===null?S=h:M.next=R,!rn(h,e.memoizedState)&&(ft=!0,$&&(s=Yr,s!==null)))throw s;e.memoizedState=h,e.baseState=S,e.baseQueue=M,l.lastRenderedState=h}return d===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Vd(e){var n=ct(),s=n.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,d=s.pending,h=n.memoizedState;if(d!==null){s.pending=null;var S=d=d.next;do h=e(h,S.action),S=S.next;while(S!==d);rn(h,n.memoizedState)||(ft=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),s.lastRenderedState=h}return[h,l]}function Rg(e,n,s){var l=Re,d=ct(),h=Le;if(h){if(s===void 0)throw Error(i(407));s=s()}else s=n();var S=!rn((Ye||d).memoizedState,s);if(S&&(d.memoizedState=s,ft=!0),d=d.queue,Kd(Ag.bind(null,l,d,e),[e]),d.getSnapshot!==n||S||dt!==null&&dt.memoizedState.tag&1){if(l.flags|=2048,Jr(9,{destroy:void 0},_g.bind(null,l,d,s,n),null),Ze===null)throw Error(i(349));h||(ga&127)!==0||Cg(l,n,s)}return s}function Cg(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=Re.updateQueue,n===null?(n=Vo(),Re.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function _g(e,n,s,l){n.value=s,n.getSnapshot=l,Tg(n)&&kg(e)}function Ag(e,n,s){return s(function(){Tg(n)&&kg(e)})}function Tg(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!rn(e,s)}catch{return!0}}function kg(e){var n=qs(e,2);n!==null&&Zt(n,e,2)}function Yd(e){var n=Ft();if(typeof e=="function"){var s=e;if(e=s(),Xs){qa(!0);try{s()}finally{qa(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},n}function Mg(e,n,s,l){return e.baseState=s,Qd(e,Ye,typeof l=="function"?l:ya)}function Xw(e,n,s,l,d){if(Xo(e))throw Error(i(485));if(e=n.action,e!==null){var h={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){h.listeners.push(S)}};F.T!==null?s(!0):h.isTransition=!1,l(h),s=n.pending,s===null?(h.next=n.pending=h,Og(n,h)):(h.next=s.next,n.pending=s.next=h)}}function Og(e,n){var s=n.action,l=n.payload,d=e.state;if(n.isTransition){var h=F.T,S={};F.T=S;try{var R=s(d,l),M=F.S;M!==null&&M(S,R),Dg(e,n,R)}catch(I){$d(e,n,I)}finally{h!==null&&S.types!==null&&(h.types=S.types),F.T=h}}else try{h=s(d,l),Dg(e,n,h)}catch(I){$d(e,n,I)}}function Dg(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Lg(e,n,l)},function(l){return $d(e,n,l)}):Lg(e,n,s)}function Lg(e,n,s){n.status="fulfilled",n.value=s,zg(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Og(e,s)))}function $d(e,n,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=s,zg(n),n=n.next;while(n!==l)}e.action=null}function zg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Bg(e,n){return n}function Ug(e,n){if(Le){var s=Ze.formState;if(s!==null){e:{var l=Re;if(Le){if(We){t:{for(var d=We,h=An;d.nodeType!==8;){if(!h){d=null;break t}if(d=kn(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){We=kn(d.nextSibling),l=d.data==="F!";break e}}Ya(l)}l=!1}l&&(n=s[0])}}return s=Ft(),s.memoizedState=s.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bg,lastRenderedState:n},s.queue=l,s=ay.bind(null,Re,l),l.dispatch=s,l=Yd(!1),h=ef.bind(null,Re,!1,l.queue),l=Ft(),d={state:n,dispatch:null,action:e,pending:null},l.queue=d,s=Xw.bind(null,Re,d,h,s),d.dispatch=s,l.memoizedState=e,[n,s,!1]}function Pg(e){var n=ct();return Fg(n,Ye,e)}function Fg(e,n,s){if(n=Qd(e,n,Bg)[0],e=$o(ya)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=bl(n)}catch(S){throw S===$r?Uo:S}else l=n;n=ct();var d=n.queue,h=d.dispatch;return s!==n.memoizedState&&(Re.flags|=2048,Jr(9,{destroy:void 0},Ww.bind(null,d,s),null)),[l,h,e]}function Ww(e,n){e.action=n}function Hg(e){var n=ct(),s=Ye;if(s!==null)return Fg(n,s,e);ct(),n=n.memoizedState,s=ct();var l=s.queue.dispatch;return s.memoizedState=e,[n,l,!1]}function Jr(e,n,s,l){return e={tag:e,create:s,deps:l,inst:n,next:null},n=Re.updateQueue,n===null&&(n=Vo(),Re.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 qg(){return ct().memoizedState}function Ko(e,n,s,l){var d=Ft();Re.flags|=e,d.memoizedState=Jr(1|n,{destroy:void 0},s,l===void 0?null:l)}function Zo(e,n,s,l){var d=ct();l=l===void 0?null:l;var h=d.memoizedState.inst;Ye!==null&&l!==null&&Pd(l,Ye.memoizedState.deps)?d.memoizedState=Jr(n,h,s,l):(Re.flags|=e,d.memoizedState=Jr(1|n,h,s,l))}function Gg(e,n){Ko(8390656,8,e,n)}function Kd(e,n){Zo(2048,8,e,n)}function Jw(e){Re.flags|=4;var n=Re.updateQueue;if(n===null)n=Vo(),Re.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function Ig(e){var n=ct().memoizedState;return Jw({ref:n,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Qg(e,n){return Zo(4,2,e,n)}function Vg(e,n){return Zo(4,4,e,n)}function Yg(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 $g(e,n,s){s=s!=null?s.concat([e]):null,Zo(4,4,Yg.bind(null,n,e),s)}function Zd(){}function Kg(e,n){var s=ct();n=n===void 0?null:n;var l=s.memoizedState;return n!==null&&Pd(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function Zg(e,n){var s=ct();n=n===void 0?null:n;var l=s.memoizedState;if(n!==null&&Pd(n,l[1]))return l[0];if(l=e(),Xs){qa(!0);try{e()}finally{qa(!1)}}return s.memoizedState=[l,n],l}function Xd(e,n,s){return s===void 0||(ga&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=Xy(),Re.lanes|=e,ns|=e,s)}function Xg(e,n,s,l){return rn(s,n)?s:Zr.current!==null?(e=Xd(e,s,l),rn(e,n)||(ft=!0),e):(ga&42)===0||(ga&1073741824)!==0&&(Oe&261930)===0?(ft=!0,e.memoizedState=s):(e=Xy(),Re.lanes|=e,ns|=e,n)}function Wg(e,n,s,l,d){var h=V.p;V.p=h!==0&&8>h?h:8;var S=F.T,R={};F.T=R,ef(e,!1,n,s);try{var M=d(),I=F.S;if(I!==null&&I(R,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var $=$w(M,l);xl(e,n,$,fn(e))}else xl(e,n,l,fn(e))}catch(W){xl(e,n,{then:function(){},status:"rejected",reason:W},fn())}finally{V.p=h,S!==null&&R.types!==null&&(S.types=R.types),F.T=S}}function ej(){}function Wd(e,n,s,l){if(e.tag!==5)throw Error(i(476));var d=Jg(e).queue;Wg(e,d,n,ee,s===null?ej:function(){return ey(e),s(l)})}function Jg(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:ya,lastRenderedState:ee},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function ey(e){var n=Jg(e);n.next===null&&(n=e.alternate.memoizedState),xl(e,n.next.queue,{},fn())}function Jd(){return At(Bl)}function ty(){return ct().memoizedState}function ny(){return ct().memoizedState}function tj(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=fn();e=Za(s);var l=Xa(n,e,s);l!==null&&(Zt(l,n,s),pl(l,n,s)),n={cache:_d()},e.payload=n;return}n=n.return}}function nj(e,n,s){var l=fn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Xo(e)?sy(n,s):(s=yd(e,n,s,l),s!==null&&(Zt(s,e,l),ry(s,n,l)))}function ay(e,n,s){var l=fn();xl(e,n,s,l)}function xl(e,n,s,l){var d={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Xo(e))sy(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var S=n.lastRenderedState,R=h(S,s);if(d.hasEagerState=!0,d.eagerState=R,rn(R,S))return ko(e,n,d,0),Ze===null&&To(),!1}catch{}finally{}if(s=yd(e,n,d,l),s!==null)return Zt(s,e,l),ry(s,n,l),!0}return!1}function ef(e,n,s,l){if(l={lane:2,revertLane:Of(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xo(e)){if(n)throw Error(i(479))}else n=yd(e,s,l,2),n!==null&&Zt(n,e,2)}function Xo(e){var n=e.alternate;return e===Re||n!==null&&n===Re}function sy(e,n){Xr=Io=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function ry(e,n,s){if((s&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,up(e,s)}}var Sl={readContext:At,use:Yo,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Sl.useEffectEvent=rt;var iy={readContext:At,use:Yo,useCallback:function(e,n){return Ft().memoizedState=[e,n===void 0?null:n],e},useContext:At,useEffect:Gg,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Ko(4194308,4,Yg.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Ko(4194308,4,e,n)},useInsertionEffect:function(e,n){Ko(4,2,e,n)},useMemo:function(e,n){var s=Ft();n=n===void 0?null:n;var l=e();if(Xs){qa(!0);try{e()}finally{qa(!1)}}return s.memoizedState=[l,n],l},useReducer:function(e,n,s){var l=Ft();if(s!==void 0){var d=s(n);if(Xs){qa(!0);try{s(n)}finally{qa(!1)}}}else d=n;return l.memoizedState=l.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},l.queue=e,e=e.dispatch=nj.bind(null,Re,e),[l.memoizedState,e]},useRef:function(e){var n=Ft();return e={current:e},n.memoizedState=e},useState:function(e){e=Yd(e);var n=e.queue,s=ay.bind(null,Re,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Zd,useDeferredValue:function(e,n){var s=Ft();return Xd(s,e,n)},useTransition:function(){var e=Yd(!1);return e=Wg.bind(null,Re,e.queue,!0,!1),Ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var l=Re,d=Ft();if(Le){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),Ze===null)throw Error(i(349));(Oe&127)!==0||Cg(l,n,s)}d.memoizedState=s;var h={value:s,getSnapshot:n};return d.queue=h,Gg(Ag.bind(null,l,h,e),[e]),l.flags|=2048,Jr(9,{destroy:void 0},_g.bind(null,l,h,s,n),null),s},useId:function(){var e=Ft(),n=Ze.identifierPrefix;if(Le){var s=Kn,l=$n;s=(l&~(1<<32-sn(l)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Qo++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=Kw++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Jd,useFormState:Ug,useActionState:Ug,useOptimistic:function(e){var n=Ft();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=ef.bind(null,Re,!0,s),s.dispatch=n,[e,n]},useMemoCache:Id,useCacheRefresh:function(){return Ft().memoizedState=tj.bind(null,Re)},useEffectEvent:function(e){var n=Ft(),s={impl:e};return n.memoizedState=s,function(){if((Fe&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},tf={readContext:At,use:Yo,useCallback:Kg,useContext:At,useEffect:Kd,useImperativeHandle:$g,useInsertionEffect:Qg,useLayoutEffect:Vg,useMemo:Zg,useReducer:$o,useRef:qg,useState:function(){return $o(ya)},useDebugValue:Zd,useDeferredValue:function(e,n){var s=ct();return Xg(s,Ye.memoizedState,e,n)},useTransition:function(){var e=$o(ya)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:bl(e),n]},useSyncExternalStore:Rg,useId:ty,useHostTransitionStatus:Jd,useFormState:Pg,useActionState:Pg,useOptimistic:function(e,n){var s=ct();return Mg(s,Ye,e,n)},useMemoCache:Id,useCacheRefresh:ny};tf.useEffectEvent=Ig;var ly={readContext:At,use:Yo,useCallback:Kg,useContext:At,useEffect:Kd,useImperativeHandle:$g,useInsertionEffect:Qg,useLayoutEffect:Vg,useMemo:Zg,useReducer:Vd,useRef:qg,useState:function(){return Vd(ya)},useDebugValue:Zd,useDeferredValue:function(e,n){var s=ct();return Ye===null?Xd(s,e,n):Xg(s,Ye.memoizedState,e,n)},useTransition:function(){var e=Vd(ya)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:bl(e),n]},useSyncExternalStore:Rg,useId:ty,useHostTransitionStatus:Jd,useFormState:Hg,useActionState:Hg,useOptimistic:function(e,n){var s=ct();return Ye!==null?Mg(s,Ye,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Id,useCacheRefresh:ny};ly.useEffectEvent=Ig;function nf(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 af={enqueueSetState:function(e,n,s){e=e._reactInternals;var l=fn(),d=Za(l);d.payload=n,s!=null&&(d.callback=s),n=Xa(e,d,l),n!==null&&(Zt(n,e,l),pl(n,e,l))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=fn(),d=Za(l);d.tag=1,d.payload=n,s!=null&&(d.callback=s),n=Xa(e,d,l),n!==null&&(Zt(n,e,l),pl(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=fn(),l=Za(s);l.tag=2,n!=null&&(l.callback=n),n=Xa(e,l,s),n!==null&&(Zt(n,e,s),pl(n,e,s))}};function oy(e,n,s,l,d,h,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,S):n.prototype&&n.prototype.isPureReactComponent?!ll(s,l)||!ll(d,h):!0}function cy(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&&af.enqueueReplaceState(n,n.state,null)}function Ws(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 d in e)s[d]===void 0&&(s[d]=e[d])}return s}function uy(e){Ao(e)}function dy(e){console.error(e)}function fy(e){Ao(e)}function Wo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function hy(e,n,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function sf(e,n,s){return s=Za(s),s.tag=3,s.payload={element:null},s.callback=function(){Wo(e,n)},s}function my(e){return e=Za(e),e.tag=3,e}function py(e,n,s,l){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var h=l.value;e.payload=function(){return d(h)},e.callback=function(){hy(n,s,l)}}var S=s.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){hy(n,s,l),typeof d!="function"&&(as===null?as=new Set([this]):as.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function aj(e,n,s,l,d){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=s.alternate,n!==null&&Qr(n,s,d,!0),s=on.current,s!==null){switch(s.tag){case 31:case 13:return Tn===null?uc():s.alternate===null&&it===0&&(it=3),s.flags&=-257,s.flags|=65536,s.lanes=d,l===Po?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([l]):n.add(l),Tf(e,l,d)),!1;case 22:return s.flags|=65536,l===Po?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)),Tf(e,l,d)),!1}throw Error(i(435,s.tag))}return Tf(e,l,d),uc(),!1}if(Le)return n=on.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,l!==jd&&(e=Error(i(422),{cause:l}),ul(Rn(e,s)))):(l!==jd&&(n=Error(i(423),{cause:l}),ul(Rn(n,s))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,l=Rn(l,s),d=sf(e.stateNode,l,d),Dd(e,d),it!==4&&(it=2)),!1;var h=Error(i(520),{cause:l});if(h=Rn(h,s),Al===null?Al=[h]:Al.push(h),it!==4&&(it=2),n===null)return!0;l=Rn(l,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=d&-d,s.lanes|=e,e=sf(s.stateNode,l,e),Dd(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"&&(as===null||!as.has(h))))return s.flags|=65536,d&=-d,s.lanes|=d,d=my(d),py(d,e,s,l),Dd(s,d),!1}s=s.return}while(s!==null);return!1}var rf=Error(i(461)),ft=!1;function Tt(e,n,s,l){n.child=e===null?bg(n,null,s,l):Zs(n,e.child,s,l)}function gy(e,n,s,l,d){s=s.render;var h=n.ref;if("ref"in l){var S={};for(var R in l)R!=="ref"&&(S[R]=l[R])}else S=l;return Vs(n),l=Fd(e,n,s,S,h,d),R=Hd(),e!==null&&!ft?(qd(e,n,d),va(e,n,d)):(Le&&R&&Sd(n),n.flags|=1,Tt(e,n,l,d),n.child)}function yy(e,n,s,l,d){if(e===null){var h=s.type;return typeof h=="function"&&!vd(h)&&h.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=h,vy(e,n,h,l,d)):(e=Oo(s.type,null,l,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!mf(e,d)){var S=h.memoizedProps;if(s=s.compare,s=s!==null?s:ll,s(S,l)&&e.ref===n.ref)return va(e,n,d)}return n.flags|=1,e=fa(h,l),e.ref=n.ref,e.return=n,n.child=e}function vy(e,n,s,l,d){if(e!==null){var h=e.memoizedProps;if(ll(h,l)&&e.ref===n.ref)if(ft=!1,n.pendingProps=l=h,mf(e,d))(e.flags&131072)!==0&&(ft=!0);else return n.lanes=e.lanes,va(e,n,d)}return lf(e,n,s,l,d)}function by(e,n,s,l){var d=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,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~h}else l=0,n.child=null;return xy(e,n,h,s,l)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bo(n,h!==null?h.cachePool:null),h!==null?wg(n,h):zd(),jg(n);else return l=n.lanes=536870912,xy(e,n,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(Bo(n,h.cachePool),wg(n,h),Ja(),n.memoizedState=null):(e!==null&&Bo(n,null),zd(),Ja());return Tt(e,n,d,s),n.child}function wl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function xy(e,n,s,l,d){var h=Td();return h=h===null?null:{parent:ut._currentValue,pool:h},n.memoizedState={baseLanes:s,cachePool:h},e!==null&&Bo(n,null),zd(),jg(n),e!==null&&Qr(e,n,l,!0),n.childLanes=d,null}function Jo(e,n){return n=tc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Sy(e,n,s){return Zs(n,e.child,null,s),e=Jo(n,n.pendingProps),e.flags|=2,cn(n),n.memoizedState=null,e}function sj(e,n,s){var l=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(l.mode==="hidden")return e=Jo(n,l),n.lanes=536870912,wl(null,e);if(Ud(n),(e=We)?(e=Ov(e,An),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:$n,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},s=sg(e),s.return=n,n.child=s,_t=n,We=null)):e=null,e===null)throw Ya(n);return n.lanes=536870912,null}return Jo(n,l)}var h=e.memoizedState;if(h!==null){var S=h.dehydrated;if(Ud(n),d)if(n.flags&256)n.flags&=-257,n=Sy(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(ft||Qr(e,n,s,!1),d=(s&e.childLanes)!==0,ft||d){if(l=Ze,l!==null&&(S=dp(l,s),S!==0&&S!==h.retryLane))throw h.retryLane=S,qs(e,S),Zt(l,e,S),rf;uc(),n=Sy(e,n,s)}else e=h.treeContext,We=kn(S.nextSibling),_t=n,Le=!0,Va=null,An=!1,e!==null&&lg(n,e),n=Jo(n,l),n.flags|=4096;return n}return e=fa(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ec(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 lf(e,n,s,l,d){return Vs(n),s=Fd(e,n,s,l,void 0,d),l=Hd(),e!==null&&!ft?(qd(e,n,d),va(e,n,d)):(Le&&l&&Sd(n),n.flags|=1,Tt(e,n,s,d),n.child)}function wy(e,n,s,l,d,h){return Vs(n),n.updateQueue=null,s=Ng(n,l,s,d),Eg(e),l=Hd(),e!==null&&!ft?(qd(e,n,h),va(e,n,h)):(Le&&l&&Sd(n),n.flags|=1,Tt(e,n,s,h),n.child)}function jy(e,n,s,l,d){if(Vs(n),n.stateNode===null){var h=Hr,S=s.contextType;typeof S=="object"&&S!==null&&(h=At(S)),h=new s(l,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=af,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=l,h.state=n.memoizedState,h.refs={},Md(n),S=s.contextType,h.context=typeof S=="object"&&S!==null?At(S):Hr,h.state=n.memoizedState,S=s.getDerivedStateFromProps,typeof S=="function"&&(nf(n,s,S,l),h.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(S=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),S!==h.state&&af.enqueueReplaceState(h,h.state,null),yl(n,l,h,d),gl(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){h=n.stateNode;var R=n.memoizedProps,M=Ws(s,R);h.props=M;var I=h.context,$=s.contextType;S=Hr,typeof $=="object"&&$!==null&&(S=At($));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!==S)&&cy(n,h,l,S),Ka=!1;var Q=n.memoizedState;h.state=Q,yl(n,l,h,d),gl(),I=n.memoizedState,R||Q!==I||Ka?(typeof W=="function"&&(nf(n,s,W,l),I=n.memoizedState),(M=Ka||oy(n,s,M,l,Q,I,S))?($||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=S,l=M):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{h=n.stateNode,Od(e,n),S=n.memoizedProps,$=Ws(s,S),h.props=$,W=n.pendingProps,Q=h.context,I=s.contextType,M=Hr,typeof I=="object"&&I!==null&&(M=At(I)),R=s.getDerivedStateFromProps,(I=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==W||Q!==M)&&cy(n,h,l,M),Ka=!1,Q=n.memoizedState,h.state=Q,yl(n,l,h,d),gl();var Y=n.memoizedState;S!==W||Q!==Y||Ka||e!==null&&e.dependencies!==null&&Lo(e.dependencies)?(typeof R=="function"&&(nf(n,s,R,l),Y=n.memoizedState),($=Ka||oy(n,s,$,l,Q,Y,M)||e!==null&&e.dependencies!==null&&Lo(e.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,Y,M),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,Y,M)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=Y),h.props=l,h.state=Y,h.context=M,l=$):(typeof h.componentDidUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),l=!1)}return h=l,ec(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=Zs(n,e.child,null,d),n.child=Zs(n,null,s,d)):Tt(e,n,s,d),n.memoizedState=h.state,e=n.child):e=va(e,n,d),e}function Ey(e,n,s,l){return Is(),n.flags|=256,Tt(e,n,s,l),n.child}var of={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cf(e){return{baseLanes:e,cachePool:hg()}}function uf(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=dn),e}function Ny(e,n,s){var l=n.pendingProps,d=!1,h=(n.flags&128)!==0,S;if((S=h)||(S=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),S&&(d=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(d?Wa(n):Ja(),(e=We)?(e=Ov(e,An),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:$n,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},s=sg(e),s.return=n,n.child=s,_t=n,We=null)):e=null,e===null)throw Ya(n);return Vf(e)?n.lanes=32:n.lanes=536870912,null}var R=l.children;return l=l.fallback,d?(Ja(),d=n.mode,R=tc({mode:"hidden",children:R},d),l=Gs(l,d,s,null),R.return=n,l.return=n,R.sibling=l,n.child=R,l=n.child,l.memoizedState=cf(s),l.childLanes=uf(e,S,s),n.memoizedState=of,wl(null,l)):(Wa(n),df(n,R))}var M=e.memoizedState;if(M!==null&&(R=M.dehydrated,R!==null)){if(h)n.flags&256?(Wa(n),n.flags&=-257,n=ff(e,n,s)):n.memoizedState!==null?(Ja(),n.child=e.child,n.flags|=128,n=null):(Ja(),R=l.fallback,d=n.mode,l=tc({mode:"visible",children:l.children},d),R=Gs(R,d,s,null),R.flags|=2,l.return=n,R.return=n,l.sibling=R,n.child=l,Zs(n,e.child,null,s),l=n.child,l.memoizedState=cf(s),l.childLanes=uf(e,S,s),n.memoizedState=of,n=wl(null,l));else if(Wa(n),Vf(R)){if(S=R.nextSibling&&R.nextSibling.dataset,S)var I=S.dgst;S=I,l=Error(i(419)),l.stack="",l.digest=S,ul({value:l,source:null,stack:null}),n=ff(e,n,s)}else if(ft||Qr(e,n,s,!1),S=(s&e.childLanes)!==0,ft||S){if(S=Ze,S!==null&&(l=dp(S,s),l!==0&&l!==M.retryLane))throw M.retryLane=l,qs(e,l),Zt(S,e,l),rf;Qf(R)||uc(),n=ff(e,n,s)}else Qf(R)?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,We=kn(R.nextSibling),_t=n,Le=!0,Va=null,An=!1,e!==null&&lg(n,e),n=df(n,l.children),n.flags|=4096);return n}return d?(Ja(),R=l.fallback,d=n.mode,M=e.child,I=M.sibling,l=fa(M,{mode:"hidden",children:l.children}),l.subtreeFlags=M.subtreeFlags&65011712,I!==null?R=fa(I,R):(R=Gs(R,d,s,null),R.flags|=2),R.return=n,l.return=n,l.sibling=R,n.child=l,wl(null,l),l=n.child,R=e.child.memoizedState,R===null?R=cf(s):(d=R.cachePool,d!==null?(M=ut._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=hg(),R={baseLanes:R.baseLanes|s,cachePool:d}),l.memoizedState=R,l.childLanes=uf(e,S,s),n.memoizedState=of,wl(e.child,l)):(Wa(n),s=e.child,e=s.sibling,s=fa(s,{mode:"visible",children:l.children}),s.return=n,s.sibling=null,e!==null&&(S=n.deletions,S===null?(n.deletions=[e],n.flags|=16):S.push(e)),n.child=s,n.memoizedState=null,s)}function df(e,n){return n=tc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function tc(e,n){return e=ln(22,e,null,n),e.lanes=0,e}function ff(e,n,s){return Zs(n,e.child,null,s),e=df(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ry(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Rd(e.return,n,s)}function hf(e,n,s,l,d,h){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:d,treeForkCount:h}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=l,S.tail=s,S.tailMode=d,S.treeForkCount=h)}function Cy(e,n,s){var l=n.pendingProps,d=l.revealOrder,h=l.tail;l=l.children;var S=ot.current,R=(S&2)!==0;if(R?(S=S&1|2,n.flags|=128):S&=1,re(ot,S),Tt(e,n,l,s),l=Le?cl:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ry(e,s,n);else if(e.tag===19)Ry(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(d){case"forwards":for(s=n.child,d=null;s!==null;)e=s.alternate,e!==null&&Go(e)===null&&(d=s),s=s.sibling;s=d,s===null?(d=n.child,n.child=null):(d=s.sibling,s.sibling=null),hf(n,!1,d,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Go(e)===null){n.child=d;break}e=d.sibling,d.sibling=s,s=d,d=e}hf(n,!0,s,null,h,l);break;case"together":hf(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function va(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),ns|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(Qr(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=fa(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=fa(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function mf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Lo(e)))}function rj(e,n,s){switch(n.tag){case 3:Be(n,n.stateNode.containerInfo),$a(n,ut,e.memoizedState.cache),Is();break;case 27:case 5:Ut(n);break;case 4:Be(n,n.stateNode.containerInfo);break;case 10:$a(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ud(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Wa(n),n.flags|=128,null):(s&n.child.childLanes)!==0?Ny(e,n,s):(Wa(n),e=va(e,n,s),e!==null?e.sibling:null);Wa(n);break;case 19:var d=(e.flags&128)!==0;if(l=(s&n.childLanes)!==0,l||(Qr(e,n,s,!1),l=(s&n.childLanes)!==0),d){if(l)return Cy(e,n,s);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),re(ot,ot.current),l)break;return null;case 22:return n.lanes=0,by(e,n,s,n.pendingProps);case 24:$a(n,ut,e.memoizedState.cache)}return va(e,n,s)}function _y(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)ft=!0;else{if(!mf(e,s)&&(n.flags&128)===0)return ft=!1,rj(e,n,s);ft=(e.flags&131072)!==0}else ft=!1,Le&&(n.flags&1048576)!==0&&ig(n,cl,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=$s(n.elementType),n.type=e,typeof e=="function")vd(e)?(l=Ws(e,l),n.tag=1,n=jy(null,n,e,l,s)):(n.tag=0,n=lf(null,n,e,l,s));else{if(e!=null){var d=e.$$typeof;if(d===A){n.tag=11,n=gy(null,n,e,l,s);break e}else if(d===k){n.tag=14,n=yy(null,n,e,l,s);break e}}throw n=te(e)||e,Error(i(306,n,""))}}return n;case 0:return lf(e,n,n.type,n.pendingProps,s);case 1:return l=n.type,d=Ws(l,n.pendingProps),jy(e,n,l,d,s);case 3:e:{if(Be(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var h=n.memoizedState;d=h.element,Od(e,n),yl(n,l,null,s);var S=n.memoizedState;if(l=S.cache,$a(n,ut,l),l!==h.cache&&Cd(n,[ut],s,!0),gl(),l=S.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Ey(e,n,l,s);break e}else if(l!==d){d=Rn(Error(i(424)),n),ul(d),n=Ey(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(We=kn(e.firstChild),_t=n,Le=!0,Va=null,An=!0,s=bg(n,null,l,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Is(),l===d){n=va(e,n,s);break e}Tt(e,n,l,s)}n=n.child}return n;case 26:return ec(e,n),e===null?(s=Pv(n.type,null,n.pendingProps,null))?n.memoizedState=s:Le||(s=n.type,e=n.pendingProps,l=yc(he.current).createElement(s),l[Ct]=n,l[It]=e,kt(l,s,e),wt(l),n.stateNode=l):n.memoizedState=Pv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ut(n),e===null&&Le&&(l=n.stateNode=zv(n.type,n.pendingProps,he.current),_t=n,An=!0,d=We,ls(n.type)?(Yf=d,We=kn(l.firstChild)):We=d),Tt(e,n,n.pendingProps.children,s),ec(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((d=l=We)&&(l=Lj(l,n.type,n.pendingProps,An),l!==null?(n.stateNode=l,_t=n,We=kn(l.firstChild),An=!1,d=!0):d=!1),d||Ya(n)),Ut(n),d=n.type,h=n.pendingProps,S=e!==null?e.memoizedProps:null,l=h.children,qf(d,h)?l=null:S!==null&&qf(d,S)&&(n.flags|=32),n.memoizedState!==null&&(d=Fd(e,n,Zw,null,null,s),Bl._currentValue=d),ec(e,n),Tt(e,n,l,s),n.child;case 6:return e===null&&Le&&((e=s=We)&&(s=zj(s,n.pendingProps,An),s!==null?(n.stateNode=s,_t=n,We=null,e=!0):e=!1),e||Ya(n)),null;case 13:return Ny(e,n,s);case 4:return Be(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Zs(n,null,l,s):Tt(e,n,l,s),n.child;case 11:return gy(e,n,n.type,n.pendingProps,s);case 7:return Tt(e,n,n.pendingProps,s),n.child;case 8:return Tt(e,n,n.pendingProps.children,s),n.child;case 12:return Tt(e,n,n.pendingProps.children,s),n.child;case 10:return l=n.pendingProps,$a(n,n.type,l.value),Tt(e,n,l.children,s),n.child;case 9:return d=n.type._context,l=n.pendingProps.children,Vs(n),d=At(d),l=l(d),n.flags|=1,Tt(e,n,l,s),n.child;case 14:return yy(e,n,n.type,n.pendingProps,s);case 15:return vy(e,n,n.type,n.pendingProps,s);case 19:return Cy(e,n,s);case 31:return sj(e,n,s);case 22:return by(e,n,s,n.pendingProps);case 24:return Vs(n),l=At(ut),e===null?(d=Td(),d===null&&(d=Ze,h=_d(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=s),d=h),n.memoizedState={parent:l,cache:d},Md(n),$a(n,ut,d)):((e.lanes&s)!==0&&(Od(e,n),yl(n,null,null,s),gl()),d=e.memoizedState,h=n.memoizedState,d.parent!==l?(d={parent:l,cache:l},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),$a(n,ut,l)):(l=h.cache,$a(n,ut,l),l!==d.cache&&Cd(n,[ut],s,!0))),Tt(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function ba(e){e.flags|=4}function pf(e,n,s,l,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(tv())e.flags|=8192;else throw Ks=Po,kd}else e.flags&=-16777217}function Ay(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Iv(n))if(tv())e.flags|=8192;else throw Ks=Po,kd}function nc(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?op():536870912,e.lanes|=n,ai|=n)}function jl(e,n){if(!Le)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 Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var d=e.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function ij(e,n,s){var l=n.pendingProps;switch(wd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return s=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),pa(ut),ve(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ir(n)?ba(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ed())),Je(n),null;case 26:var d=n.type,h=n.memoizedState;return e===null?(ba(n),h!==null?(Je(n),Ay(n,h)):(Je(n),pf(n,d,null,l,s))):h?h!==e.memoizedState?(ba(n),Je(n),Ay(n,h)):(Je(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&ba(n),Je(n),pf(n,d,e,l,s)),null;case 27:if(Nt(n),s=he.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ba(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Je(n),null}e=ie.current,Ir(n)?og(n):(e=zv(d,l,s),n.stateNode=e,ba(n))}return Je(n),null;case 5:if(Nt(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ba(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Je(n),null}if(h=ie.current,Ir(n))og(n);else{var S=yc(he.current);switch(h){case 1:h=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=S.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?S.createElement("select",{is:l.is}):S.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?S.createElement(d,{is:l.is}):S.createElement(d)}}h[Ct]=n,h[It]=l;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)h.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.stateNode=h;e:switch(kt(h,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ba(n)}}return Je(n),pf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&ba(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=he.current,Ir(n)){if(e=n.stateNode,s=n.memoizedProps,l=null,d=_t,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}e[Ct]=n,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Nv(e.nodeValue,s)),e||Ya(n,!0)}else e=yc(e).createTextNode(l),e[Ct]=n,n.stateNode=e}return Je(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(l=Ir(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[Ct]=n}else Is(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),e=!1}else s=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(cn(n),n):(cn(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Je(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Ir(n),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Ct]=n}else Is(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),d=!1}else d=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(cn(n),n):(cn(n),null)}return cn(n),(n.flags&128)!==0?(n.lanes=s,n):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=n.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),nc(n,n.updateQueue),Je(n),null);case 4:return ve(),e===null&&Bf(n.stateNode.containerInfo),Je(n),null;case 10:return pa(n.type),Je(n),null;case 19:if(Z(ot),l=n.memoizedState,l===null)return Je(n),null;if(d=(n.flags&128)!==0,h=l.rendering,h===null)if(d)jl(l,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Go(e),h!==null){for(n.flags|=128,jl(l,!1),e=h.updateQueue,n.updateQueue=e,nc(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)ag(s,e),s=s.sibling;return re(ot,ot.current&1|2),Le&&ha(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Ot()>lc&&(n.flags|=128,d=!0,jl(l,!1),n.lanes=4194304)}else{if(!d)if(e=Go(h),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,nc(n,e),jl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Le)return Je(n),null}else 2*Ot()-l.renderingStartTime>lc&&s!==536870912&&(n.flags|=128,d=!0,jl(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=Ot(),e.sibling=null,s=ot.current,re(ot,d?s&1|2:s&1),Le&&ha(n,l.treeForkCount),e):(Je(n),null);case 22:case 23:return cn(n),Bd(),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&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),s=n.updateQueue,s!==null&&nc(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(Ys),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),pa(ut),Je(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function lj(e,n){switch(wd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return pa(ut),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Nt(n),null;case 31:if(n.memoizedState!==null){if(cn(n),n.alternate===null)throw Error(i(340));Is()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(cn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Is()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Z(ot),null;case 4:return ve(),null;case 10:return pa(n.type),null;case 22:case 23:return cn(n),Bd(),e!==null&&Z(Ys),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return pa(ut),null;case 25:return null;default:return null}}function Ty(e,n){switch(wd(n),n.tag){case 3:pa(ut),ve();break;case 26:case 27:case 5:Nt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&cn(n);break;case 13:cn(n);break;case 19:Z(ot);break;case 10:pa(n.type);break;case 22:case 23:cn(n),Bd(),e!==null&&Z(Ys);break;case 24:pa(ut)}}function El(e,n){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var d=l.next;s=d;do{if((s.tag&e)===e){l=void 0;var h=s.create,S=s.inst;l=h(),S.destroy=l}s=s.next}while(s!==d)}}catch(R){Ge(n,n.return,R)}}function es(e,n,s){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&e)===e){var S=l.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,d=n;var M=s,I=R;try{I()}catch($){Ge(d,M,$)}}}l=l.next}while(l!==h)}}catch($){Ge(n,n.return,$)}}function ky(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{Sg(n,s)}catch(l){Ge(e,e.return,l)}}}function My(e,n,s){s.props=Ws(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ge(e,n,l)}}function Nl(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(d){Ge(e,n,d)}}function Zn(e,n){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(d){Ge(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){Ge(e,n,d)}else s.current=null}function Oy(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(d){Ge(e,e.return,d)}}function gf(e,n,s){try{var l=e.stateNode;Aj(l,e.type,s,n),l[It]=n}catch(d){Ge(e,e.return,d)}}function Dy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ls(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dy(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&&ls(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 vf(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=ua));else if(l!==4&&(l===27&&ls(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(vf(e,n,s),e=e.sibling;e!==null;)vf(e,n,s),e=e.sibling}function ac(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&&ls(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(ac(e,n,s),e=e.sibling;e!==null;)ac(e,n,s),e=e.sibling}function Ly(e){var n=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);kt(n,l,s),n[Ct]=e,n[It]=s}catch(h){Ge(e,e.return,h)}}var xa=!1,ht=!1,bf=!1,zy=typeof WeakSet=="function"?WeakSet:Set,jt=null;function oj(e,n){if(e=e.containerInfo,Ff=Ec,e=$p(e),dd(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 d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var S=0,R=-1,M=-1,I=0,$=0,W=e,Q=null;t:for(;;){for(var Y;W!==s||d!==0&&W.nodeType!==3||(R=S+d),W!==h||l!==0&&W.nodeType!==3||(M=S+l),W.nodeType===3&&(S+=W.nodeValue.length),(Y=W.firstChild)!==null;)Q=W,W=Y;for(;;){if(W===e)break t;if(Q===s&&++I===d&&(R=S),Q===h&&++$===l&&(M=S),(Y=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=Y}s=R===-1||M===-1?null:{start:R,end:M}}else s=null}s=s||{start:0,end:0}}else s=null;for(Hf={focusedElem:e,selectionRange:s},Ec=!1,jt=n;jt!==null;)if(n=jt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,jt=e;else for(;jt!==null;){switch(n=jt,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++)d=e[s],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=n,d=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var fe=Ws(s.type,d);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)If(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(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,jt=e;break}jt=n.return}}function By(e,n,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:wa(e,s),l&4&&El(5,s);break;case 1:if(wa(e,s),l&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(S){Ge(s,s.return,S)}else{var d=Ws(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(S){Ge(s,s.return,S)}}l&64&&ky(s),l&512&&Nl(s,s.return);break;case 3:if(wa(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{Sg(e,n)}catch(S){Ge(s,s.return,S)}}break;case 27:n===null&&l&4&&Ly(s);case 26:case 5:wa(e,s),n===null&&l&4&&Oy(s),l&512&&Nl(s,s.return);break;case 12:wa(e,s);break;case 31:wa(e,s),l&4&&Fy(e,s);break;case 13:wa(e,s),l&4&&Hy(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=yj.bind(null,s),Bj(e,s))));break;case 22:if(l=s.memoizedState!==null||xa,!l){n=n!==null&&n.memoizedState!==null||ht,d=xa;var h=ht;xa=l,(ht=n)&&!h?ja(e,s,(s.subtreeFlags&8772)!==0):wa(e,s),xa=d,ht=h}break;case 30:break;default:wa(e,s)}}function Uy(e){var n=e.alternate;n!==null&&(e.alternate=null,Uy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&$u(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 et=null,Vt=!1;function Sa(e,n,s){for(s=s.child;s!==null;)Py(e,n,s),s=s.sibling}function Py(e,n,s){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Ki,s)}catch{}switch(s.tag){case 26:ht||Zn(s,n),Sa(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ht||Zn(s,n);var l=et,d=Vt;ls(s.type)&&(et=s.stateNode,Vt=!1),Sa(e,n,s),Dl(s.stateNode),et=l,Vt=d;break;case 5:ht||Zn(s,n);case 6:if(l=et,d=Vt,et=null,Sa(e,n,s),et=l,Vt=d,et!==null)if(Vt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(s.stateNode)}catch(h){Ge(s,n,h)}else try{et.removeChild(s.stateNode)}catch(h){Ge(s,n,h)}break;case 18:et!==null&&(Vt?(e=et,kv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),di(e)):kv(et,s.stateNode));break;case 4:l=et,d=Vt,et=s.stateNode.containerInfo,Vt=!0,Sa(e,n,s),et=l,Vt=d;break;case 0:case 11:case 14:case 15:es(2,s,n),ht||es(4,s,n),Sa(e,n,s);break;case 1:ht||(Zn(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"&&My(s,n,l)),Sa(e,n,s);break;case 21:Sa(e,n,s);break;case 22:ht=(l=ht)||s.memoizedState!==null,Sa(e,n,s),ht=l;break;default:Sa(e,n,s)}}function Fy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{di(e)}catch(s){Ge(n,n.return,s)}}}function Hy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{di(e)}catch(s){Ge(n,n.return,s)}}function cj(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new zy),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new zy),n;default:throw Error(i(435,e.tag))}}function sc(e,n){var s=cj(e);n.forEach(function(l){if(!s.has(l)){s.add(l);var d=vj.bind(null,e,l);l.then(d,d)}})}function Yt(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var d=s[l],h=e,S=n,R=S;e:for(;R!==null;){switch(R.tag){case 27:if(ls(R.type)){et=R.stateNode,Vt=!1;break e}break;case 5:et=R.stateNode,Vt=!1;break e;case 3:case 4:et=R.stateNode.containerInfo,Vt=!0;break e}R=R.return}if(et===null)throw Error(i(160));Py(h,S,d),et=null,Vt=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)qy(n,e),n=n.sibling}var Fn=null;function qy(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(n,e),$t(e),l&4&&(es(3,e,e.return),El(3,e),es(5,e,e.return));break;case 1:Yt(n,e),$t(e),l&512&&(ht||s===null||Zn(s,s.return)),l&64&&xa&&(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 d=Fn;if(Yt(n,e),$t(e),l&512&&(ht||s===null||Zn(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,d=d.ownerDocument||d;t:switch(l){case"title":h=d.getElementsByTagName("title")[0],(!h||h[Wi]||h[Ct]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(l),d.head.insertBefore(h,d.querySelector("head > title"))),kt(h,l,s),h[Ct]=e,wt(h),l=h;break e;case"link":var S=qv("link","href",d).get(l+(s.href||""));if(S){for(var R=0;R<S.length;R++)if(h=S[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)){S.splice(R,1);break t}}h=d.createElement(l),kt(h,l,s),d.head.appendChild(h);break;case"meta":if(S=qv("meta","content",d).get(l+(s.content||""))){for(R=0;R<S.length;R++)if(h=S[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)){S.splice(R,1);break t}}h=d.createElement(l),kt(h,l,s),d.head.appendChild(h);break;default:throw Error(i(468,l))}h[Ct]=e,wt(h),l=h}e.stateNode=l}else Gv(d,e.type,e.stateNode);else e.stateNode=Hv(d,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?Gv(d,e.type,e.stateNode):Hv(d,l,e.memoizedProps)):l===null&&e.stateNode!==null&&gf(e,e.memoizedProps,s.memoizedProps)}break;case 27:Yt(n,e),$t(e),l&512&&(ht||s===null||Zn(s,s.return)),s!==null&&l&4&&gf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Yt(n,e),$t(e),l&512&&(ht||s===null||Zn(s,s.return)),e.flags&32){d=e.stateNode;try{Dr(d,"")}catch(fe){Ge(e,e.return,fe)}}l&4&&e.stateNode!=null&&(d=e.memoizedProps,gf(e,d,s!==null?s.memoizedProps:d)),l&1024&&(bf=!0);break;case 6:if(Yt(n,e),$t(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(xc=null,d=Fn,Fn=vc(n.containerInfo),Yt(n,e),Fn=d,$t(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{di(n.containerInfo)}catch(fe){Ge(e,e.return,fe)}bf&&(bf=!1,Gy(e));break;case 4:l=Fn,Fn=vc(e.stateNode.containerInfo),Yt(n,e),$t(e),Fn=l;break;case 12:Yt(n,e),$t(e);break;case 31:Yt(n,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 13:Yt(n,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ic=Ot()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 22:d=e.memoizedState!==null;var M=s!==null&&s.memoizedState!==null,I=xa,$=ht;if(xa=I||d,ht=$||M,Yt(n,e),ht=$,xa=I,$t(e),l&8192)e:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(s===null||M||xa||ht||Js(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){M=s=n;try{if(h=M.stateNode,d)S=h.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{R=M.stateNode;var W=M.memoizedProps.style,Q=W!=null&&W.hasOwnProperty("display")?W.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Ge(M,M.return,fe)}}}else if(n.tag===6){if(s===null){M=n;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Ge(M,M.return,fe)}}}else if(n.tag===18){if(s===null){M=n;try{var Y=M.stateNode;d?Mv(Y,!0):Mv(M.stateNode,!1)}catch(fe){Ge(M,M.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,sc(e,s))));break;case 19:Yt(n,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 30:break;case 21:break;default:Yt(n,e),$t(e)}}function $t(e){var n=e.flags;if(n&2){try{for(var s,l=e.return;l!==null;){if(Dy(l)){s=l;break}l=l.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var d=s.stateNode,h=yf(e);ac(e,h,d);break;case 5:var S=s.stateNode;s.flags&32&&(Dr(S,""),s.flags&=-33);var R=yf(e);ac(e,R,S);break;case 3:case 4:var M=s.stateNode.containerInfo,I=yf(e);vf(e,I,M);break;default:throw Error(i(161))}}catch($){Ge(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Gy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Gy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function wa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)By(e,n.alternate,n),n=n.sibling}function Js(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:es(4,n,n.return),Js(n);break;case 1:Zn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&My(n,n.return,s),Js(n);break;case 27:Dl(n.stateNode);case 26:case 5:Zn(n,n.return),Js(n);break;case 22:n.memoizedState===null&&Js(n);break;case 30:Js(n);break;default:Js(n)}e=e.sibling}}function ja(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,d=e,h=n,S=h.flags;switch(h.tag){case 0:case 11:case 15:ja(d,h,s),El(4,h);break;case 1:if(ja(d,h,s),l=h,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){Ge(l,l.return,I)}if(l=h,d=l.updateQueue,d!==null){var R=l.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)xg(M[d],R)}catch(I){Ge(l,l.return,I)}}s&&S&64&&ky(h),Nl(h,h.return);break;case 27:Ly(h);case 26:case 5:ja(d,h,s),s&&l===null&&S&4&&Oy(h),Nl(h,h.return);break;case 12:ja(d,h,s);break;case 31:ja(d,h,s),s&&S&4&&Fy(d,h);break;case 13:ja(d,h,s),s&&S&4&&Hy(d,h);break;case 22:h.memoizedState===null&&ja(d,h,s),Nl(h,h.return);break;case 30:break;default:ja(d,h,s)}n=n.sibling}}function xf(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&&dl(s))}function Sf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&dl(e))}function Hn(e,n,s,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Iy(e,n,s,l),n=n.sibling}function Iy(e,n,s,l){var d=n.flags;switch(n.tag){case 0:case 11:case 15:Hn(e,n,s,l),d&2048&&El(9,n);break;case 1:Hn(e,n,s,l);break;case 3:Hn(e,n,s,l),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&dl(e)));break;case 12:if(d&2048){Hn(e,n,s,l),e=n.stateNode;try{var h=n.memoizedProps,S=h.id,R=h.onPostCommit;typeof R=="function"&&R(S,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ge(n,n.return,M)}}else Hn(e,n,s,l);break;case 31:Hn(e,n,s,l);break;case 13:Hn(e,n,s,l);break;case 23:break;case 22:h=n.stateNode,S=n.alternate,n.memoizedState!==null?h._visibility&2?Hn(e,n,s,l):Rl(e,n):h._visibility&2?Hn(e,n,s,l):(h._visibility|=2,ei(e,n,s,l,(n.subtreeFlags&10256)!==0||!1)),d&2048&&xf(S,n);break;case 24:Hn(e,n,s,l),d&2048&&Sf(n.alternate,n);break;default:Hn(e,n,s,l)}}function ei(e,n,s,l,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,S=n,R=s,M=l,I=S.flags;switch(S.tag){case 0:case 11:case 15:ei(h,S,R,M,d),El(8,S);break;case 23:break;case 22:var $=S.stateNode;S.memoizedState!==null?$._visibility&2?ei(h,S,R,M,d):Rl(h,S):($._visibility|=2,ei(h,S,R,M,d)),d&&I&2048&&xf(S.alternate,S);break;case 24:ei(h,S,R,M,d),d&&I&2048&&Sf(S.alternate,S);break;default:ei(h,S,R,M,d)}n=n.sibling}}function Rl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,l=n,d=l.flags;switch(l.tag){case 22:Rl(s,l),d&2048&&xf(l.alternate,l);break;case 24:Rl(s,l),d&2048&&Sf(l.alternate,l);break;default:Rl(s,l)}n=n.sibling}}var Cl=8192;function ti(e,n,s){if(e.subtreeFlags&Cl)for(e=e.child;e!==null;)Qy(e,n,s),e=e.sibling}function Qy(e,n,s){switch(e.tag){case 26:ti(e,n,s),e.flags&Cl&&e.memoizedState!==null&&Kj(s,Fn,e.memoizedState,e.memoizedProps);break;case 5:ti(e,n,s);break;case 3:case 4:var l=Fn;Fn=vc(e.stateNode.containerInfo),ti(e,n,s),Fn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Cl,Cl=16777216,ti(e,n,s),Cl=l):ti(e,n,s));break;default:ti(e,n,s)}}function Vy(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 _l(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];jt=l,$y(l,e)}Vy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yy(e),e=e.sibling}function Yy(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&es(9,e,e.return);break;case 3:_l(e);break;case 12:_l(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,rc(e)):_l(e);break;default:_l(e)}}function rc(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];jt=l,$y(l,e)}Vy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:es(8,n,n.return),rc(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,rc(n));break;default:rc(n)}e=e.sibling}}function $y(e,n){for(;jt!==null;){var s=jt;switch(s.tag){case 0:case 11:case 15:es(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:dl(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,jt=l;else e:for(s=e;jt!==null;){l=jt;var d=l.sibling,h=l.return;if(Uy(l),l===s){jt=null;break e}if(d!==null){d.return=h,jt=d;break e}jt=h}}}var uj={getCacheForType:function(e){var n=At(ut),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return At(ut).controller.signal}},dj=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Ze=null,Te=null,Oe=0,qe=0,un=null,ts=!1,ni=!1,wf=!1,Ea=0,it=0,ns=0,er=0,jf=0,dn=0,ai=0,Al=null,Kt=null,Ef=!1,ic=0,Ky=0,lc=1/0,oc=null,as=null,gt=0,ss=null,si=null,Na=0,Nf=0,Rf=null,Zy=null,Tl=0,Cf=null;function fn(){return(Fe&2)!==0&&Oe!==0?Oe&-Oe:F.T!==null?Of():fp()}function Xy(){if(dn===0)if((Oe&536870912)===0||Le){var e=go;go<<=1,(go&3932160)===0&&(go=262144),dn=e}else dn=536870912;return e=on.current,e!==null&&(e.flags|=32),dn}function Zt(e,n,s){(e===Ze&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ri(e,0),rs(e,Oe,dn,!1)),Xi(e,s),((Fe&2)===0||e!==Ze)&&(e===Ze&&((Fe&2)===0&&(er|=s),it===4&&rs(e,Oe,dn,!1)),Xn(e))}function Wy(e,n,s){if((Fe&6)!==0)throw Error(i(327));var l=!s&&(n&127)===0&&(n&e.expiredLanes)===0||Zi(e,n),d=l?mj(e,n):Af(e,n,!0),h=l;do{if(d===0){ni&&!l&&rs(e,n,0,!1);break}else{if(s=e.current.alternate,h&&!fj(s)){d=Af(e,n,!1),h=!1;continue}if(d===2){if(h=n,e.errorRecoveryDisabledLanes&h)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var R=e;d=Al;var M=R.current.memoizedState.isDehydrated;if(M&&(ri(R,S).flags|=256),S=Af(R,S,!1),S!==2){if(wf&&!M){R.errorRecoveryDisabledLanes|=h,er|=h,d=4;break e}h=Kt,Kt=d,h!==null&&(Kt===null?Kt=h:Kt.push.apply(Kt,h))}d=S}if(h=!1,d!==2)continue}}if(d===1){ri(e,0),rs(e,n,0,!0);break}e:{switch(l=e,h=d,h){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:rs(l,n,dn,!ts);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=ic+300-Ot(),10<d)){if(rs(l,n,dn,!ts),vo(l,0,!0)!==0)break e;Na=n,l.timeoutHandle=Av(Jy.bind(null,l,s,Kt,oc,Ef,n,dn,er,ai,ts,h,"Throttled",-0,0),d);break e}Jy(l,s,Kt,oc,Ef,n,dn,er,ai,ts,h,null,-0,0)}}break}while(!0);Xn(e)}function Jy(e,n,s,l,d,h,S,R,M,I,$,W,Q,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:ua},Qy(n,h,W);var fe=(h&62914560)===h?ic-Ot():(h&4194048)===h?Ky-Ot():0;if(fe=Zj(W,fe),fe!==null){Na=h,e.cancelPendingCommit=fe(lv.bind(null,e,n,h,s,l,d,S,R,M,$,W,null,Q,Y)),rs(e,h,S,!I);return}}lv(e,n,h,s,l,d,S,R,M)}function fj(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 d=s[l],h=d.getSnapshot;d=d.value;try{if(!rn(h(),d))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 rs(e,n,s,l){n&=~jf,n&=~er,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var d=n;0<d;){var h=31-sn(d),S=1<<h;l[h]=-1,d&=~S}s!==0&&cp(e,s,n)}function cc(){return(Fe&6)===0?(kl(0),!1):!0}function _f(){if(Te!==null){if(qe===0)var e=Te.return;else e=Te,ma=Qs=null,Gd(e),Kr=null,hl=0,e=Te;for(;e!==null;)Ty(e.alternate,e),e=e.return;Te=null}}function ri(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,Mj(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Na=0,_f(),Ze=e,Te=s=fa(e.current,null),Oe=n,qe=0,un=null,ts=!1,ni=Zi(e,n),wf=!1,ai=dn=jf=er=ns=it=0,Kt=Al=null,Ef=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var d=31-sn(l),h=1<<d;n|=e[d],l&=~h}return Ea=n,To(),s}function ev(e,n){Re=null,F.H=Sl,n===$r||n===Uo?(n=gg(),qe=3):n===kd?(n=gg(),qe=4):qe=n===rf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,un=n,Te===null&&(it=1,Wo(e,Rn(n,e.current)))}function tv(){var e=on.current;return e===null?!0:(Oe&4194048)===Oe?Tn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===Tn:!1}function nv(){var e=F.H;return F.H=Sl,e===null?Sl:e}function av(){var e=F.A;return F.A=uj,e}function uc(){it=4,ts||(Oe&4194048)!==Oe&&on.current!==null||(ni=!0),(ns&134217727)===0&&(er&134217727)===0||Ze===null||rs(Ze,Oe,dn,!1)}function Af(e,n,s){var l=Fe;Fe|=2;var d=nv(),h=av();(Ze!==e||Oe!==n)&&(oc=null,ri(e,n)),n=!1;var S=it;e:do try{if(qe!==0&&Te!==null){var R=Te,M=un;switch(qe){case 8:_f(),S=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(n=!0);var I=qe;if(qe=0,un=null,ii(e,R,M,I),s&&ni){S=0;break e}break;default:I=qe,qe=0,un=null,ii(e,R,M,I)}}hj(),S=it;break}catch($){ev(e,$)}while(!0);return n&&e.shellSuspendCounter++,ma=Qs=null,Fe=l,F.H=d,F.A=h,Te===null&&(Ze=null,Oe=0,To()),S}function hj(){for(;Te!==null;)sv(Te)}function mj(e,n){var s=Fe;Fe|=2;var l=nv(),d=av();Ze!==e||Oe!==n?(oc=null,lc=Ot()+500,ri(e,n)):ni=Zi(e,n);e:do try{if(qe!==0&&Te!==null){n=Te;var h=un;t:switch(qe){case 1:qe=0,un=null,ii(e,n,h,1);break;case 2:case 9:if(mg(h)){qe=0,un=null,rv(n);break}n=function(){qe!==2&&qe!==9||Ze!==e||(qe=7),Xn(e)},h.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:mg(h)?(qe=0,un=null,rv(n)):(qe=0,un=null,ii(e,n,h,7));break;case 5:var S=null;switch(Te.tag){case 26:S=Te.memoizedState;case 5:case 27:var R=Te;if(S?Iv(S):R.stateNode.complete){qe=0,un=null;var M=R.sibling;if(M!==null)Te=M;else{var I=R.return;I!==null?(Te=I,dc(I)):Te=null}break t}}qe=0,un=null,ii(e,n,h,5);break;case 6:qe=0,un=null,ii(e,n,h,6);break;case 8:_f(),it=6;break e;default:throw Error(i(462))}}pj();break}catch($){ev(e,$)}while(!0);return ma=Qs=null,F.H=l,F.A=d,Fe=s,Te!==null?0:(Ze=null,Oe=0,To(),it)}function pj(){for(;Te!==null&&!mo();)sv(Te)}function sv(e){var n=_y(e.alternate,e,Ea);e.memoizedProps=e.pendingProps,n===null?dc(e):Te=n}function rv(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=wy(s,n,n.pendingProps,n.type,void 0,Oe);break;case 11:n=wy(s,n,n.pendingProps,n.type.render,n.ref,Oe);break;case 5:Gd(n);default:Ty(s,n),n=Te=ag(n,Ea),n=_y(s,n,Ea)}e.memoizedProps=e.pendingProps,n===null?dc(e):Te=n}function ii(e,n,s,l){ma=Qs=null,Gd(n),Kr=null,hl=0;var d=n.return;try{if(aj(e,d,n,s,Oe)){it=1,Wo(e,Rn(s,e.current)),Te=null;return}}catch(h){if(d!==null)throw Te=d,h;it=1,Wo(e,Rn(s,e.current)),Te=null;return}n.flags&32768?(Le||l===1?e=!0:ni||(Oe&536870912)!==0?e=!1:(ts=e=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),iv(n,e)):dc(n)}function dc(e){var n=e;do{if((n.flags&32768)!==0){iv(n,ts);return}e=n.return;var s=ij(n.alternate,n,Ea);if(s!==null){Te=s;return}if(n=n.sibling,n!==null){Te=n;return}Te=n=e}while(n!==null);it===0&&(it=5)}function iv(e,n){do{var s=lj(e.alternate,e);if(s!==null){s.flags&=32767,Te=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){Te=e;return}Te=e=s}while(e!==null);it=6,Te=null}function lv(e,n,s,l,d,h,S,R,M){e.cancelPendingCommit=null;do fc();while(gt!==0);if((Fe&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(h=n.lanes|n.childLanes,h|=gd,$S(e,s,h,S,R,M),e===Ze&&(Te=Ze=null,Oe=0),si=n,ss=e,Na=s,Nf=h,Rf=d,Zy=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bj(Cr,function(){return fv(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=F.T,F.T=null,d=V.p,V.p=2,S=Fe,Fe|=4;try{oj(e,n,s)}finally{Fe=S,V.p=d,F.T=l}}gt=1,ov(),cv(),uv()}}function ov(){if(gt===1){gt=0;var e=ss,n=si,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=F.T,F.T=null;var l=V.p;V.p=2;var d=Fe;Fe|=4;try{qy(n,e);var h=Hf,S=$p(e.containerInfo),R=h.focusedElem,M=h.selectionRange;if(S!==R&&R&&R.ownerDocument&&Yp(R.ownerDocument.documentElement,R)){if(M!==null&&dd(R)){var I=M.start,$=M.end;if($===void 0&&($=I),"selectionStart"in R)R.selectionStart=I,R.selectionEnd=Math.min($,R.value.length);else{var W=R.ownerDocument||document,Q=W&&W.defaultView||window;if(Q.getSelection){var Y=Q.getSelection(),fe=R.textContent.length,be=Math.min(M.start,fe),Ke=M.end===void 0?be:Math.min(M.end,fe);!Y.extend&&be>Ke&&(S=Ke,Ke=be,be=S);var H=Vp(R,be),U=Vp(R,Ke);if(H&&U&&(Y.rangeCount!==1||Y.anchorNode!==H.node||Y.anchorOffset!==H.offset||Y.focusNode!==U.node||Y.focusOffset!==U.offset)){var G=W.createRange();G.setStart(H.node,H.offset),Y.removeAllRanges(),be>Ke?(Y.addRange(G),Y.extend(U.node,U.offset)):(G.setEnd(U.node,U.offset),Y.addRange(G))}}}}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 X=W[R];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ec=!!Ff,Hf=Ff=null}finally{Fe=d,V.p=l,F.T=s}}e.current=n,gt=2}}function cv(){if(gt===2){gt=0;var e=ss,n=si,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=F.T,F.T=null;var l=V.p;V.p=2;var d=Fe;Fe|=4;try{By(e,n.alternate,n)}finally{Fe=d,V.p=l,F.T=s}}gt=3}}function uv(){if(gt===4||gt===3){gt=0,Gu();var e=ss,n=si,s=Na,l=Zy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?gt=5:(gt=0,si=ss=null,dv(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(as=null),Vu(s),n=n.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Ki,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=F.T,d=V.p,V.p=2,F.T=null;try{for(var h=e.onRecoverableError,S=0;S<l.length;S++){var R=l[S];h(R.value,{componentStack:R.stack})}}finally{F.T=n,V.p=d}}(Na&3)!==0&&fc(),Xn(e),d=e.pendingLanes,(s&261930)!==0&&(d&42)!==0?e===Cf?Tl++:(Tl=0,Cf=e):Tl=0,kl(0)}}function dv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,dl(n)))}function fc(){return ov(),cv(),uv(),fv()}function fv(){if(gt!==5)return!1;var e=ss,n=Nf;Nf=0;var s=Vu(Na),l=F.T,d=V.p;try{V.p=32>s?32:s,F.T=null,s=Rf,Rf=null;var h=ss,S=Na;if(gt=0,si=ss=null,Na=0,(Fe&6)!==0)throw Error(i(331));var R=Fe;if(Fe|=4,Yy(h.current),Iy(h,h.current,S,s),Fe=R,kl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Ki,h)}catch{}return!0}finally{V.p=d,F.T=l,dv(e,n)}}function hv(e,n,s){n=Rn(s,n),n=sf(e.stateNode,n,2),e=Xa(e,n,2),e!==null&&(Xi(e,2),Xn(e))}function Ge(e,n,s){if(e.tag===3)hv(e,e,s);else for(;n!==null;){if(n.tag===3){hv(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(as===null||!as.has(l))){e=Rn(s,e),s=my(2),l=Xa(n,s,2),l!==null&&(py(s,l,n,e),Xi(l,2),Xn(l));break}}n=n.return}}function Tf(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new dj;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(s)||(wf=!0,d.add(s),e=gj.bind(null,e,n,s),n.then(e,e))}function gj(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ze===e&&(Oe&s)===s&&(it===4||it===3&&(Oe&62914560)===Oe&&300>Ot()-ic?(Fe&2)===0&&ri(e,0):jf|=s,ai===Oe&&(ai=0)),Xn(e)}function mv(e,n){n===0&&(n=op()),e=qs(e,n),e!==null&&(Xi(e,n),Xn(e))}function yj(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),mv(e,s)}function vj(e,n){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(s=d.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),mv(e,s)}function bj(e,n){return Un(e,n)}var hc=null,li=null,kf=!1,mc=!1,Mf=!1,is=0;function Xn(e){e!==li&&e.next===null&&(li===null?hc=li=e:li=li.next=e),mc=!0,kf||(kf=!0,Sj())}function kl(e,n){if(!Mf&&mc){Mf=!0;do for(var s=!1,l=hc;l!==null;){if(e!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var S=l.suspendedLanes,R=l.pingedLanes;h=(1<<31-sn(42|e)+1)-1,h&=d&~(S&~R),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,vv(l,h))}else h=Oe,h=vo(l,l===Ze?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Zi(l,h)||(s=!0,vv(l,h));l=l.next}while(s);Mf=!1}}function xj(){pv()}function pv(){mc=kf=!1;var e=0;is!==0&&kj()&&(e=is);for(var n=Ot(),s=null,l=hc;l!==null;){var d=l.next,h=gv(l,n);h===0?(l.next=null,s===null?hc=d:s.next=d,d===null&&(li=s)):(s=l,(e!==0||(h&3)!==0)&&(mc=!0)),l=d}gt!==0&>!==5||kl(e),is!==0&&(is=0)}function gv(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var S=31-sn(h),R=1<<S,M=d[S];M===-1?((R&s)===0||(R&l)!==0)&&(d[S]=YS(R,n)):M<=n&&(e.expiredLanes|=R),h&=~R}if(n=Ze,s=Oe,s=vo(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===n&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&$i(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Zi(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(l!==null&&$i(l),Vu(s)){case 2:case 8:s=Yn;break;case 32:s=Cr;break;case 268435456:s=lp;break;default:s=Cr}return l=yv.bind(null,e),s=Un(s,l),e.callbackPriority=n,e.callbackNode=s,n}return l!==null&&l!==null&&$i(l),e.callbackPriority=2,e.callbackNode=null,2}function yv(e,n){if(gt!==0&>!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(fc()&&e.callbackNode!==s)return null;var l=Oe;return l=vo(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Wy(e,l,n),gv(e,Ot()),e.callbackNode!=null&&e.callbackNode===s?yv.bind(null,e):null)}function vv(e,n){if(fc())return null;Wy(e,n,!0)}function Sj(){Oj(function(){(Fe&6)!==0?Un(Rt,xj):pv()})}function Of(){if(is===0){var e=Vr;e===0&&(e=po,po<<=1,(po&261888)===0&&(po=256)),is=e}return is}function bv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wo(""+e)}function xv(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 wj(e,n,s,l,d){if(n==="submit"&&s&&s.stateNode===d){var h=bv((d[It]||null).action),S=l.submitter;S&&(n=(n=S[It]||null)?bv(n.formAction):S.getAttribute("formAction"),n!==null&&(h=n,S=null));var R=new Ro("action","action",null,l,d);e.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(is!==0){var M=S?xv(d,S):new FormData(d);Wd(s,{pending:!0,data:M,method:d.method,action:h},null,M)}}else typeof h=="function"&&(R.preventDefault(),M=S?xv(d,S):new FormData(d),Wd(s,{pending:!0,data:M,method:d.method,action:h},h,M))},currentTarget:d}]})}}for(var Df=0;Df<pd.length;Df++){var Lf=pd[Df],jj=Lf.toLowerCase(),Ej=Lf[0].toUpperCase()+Lf.slice(1);Pn(jj,"on"+Ej)}Pn(Xp,"onAnimationEnd"),Pn(Wp,"onAnimationIteration"),Pn(Jp,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(Fw,"onTransitionRun"),Pn(Hw,"onTransitionStart"),Pn(qw,"onTransitionCancel"),Pn(eg,"onTransitionEnd"),Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"]),Us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Us("onBeforeInput",["compositionend","keypress","textInput","paste"]),Us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ml="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(" "),Nj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ml));function Sv(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],d=l.event;l=l.listeners;e:{var h=void 0;if(n)for(var S=l.length-1;0<=S;S--){var R=l[S],M=R.instance,I=R.currentTarget;if(R=R.listener,M!==h&&d.isPropagationStopped())break e;h=R,d.currentTarget=I;try{h(d)}catch($){Ao($)}d.currentTarget=null,h=M}else for(S=0;S<l.length;S++){if(R=l[S],M=R.instance,I=R.currentTarget,R=R.listener,M!==h&&d.isPropagationStopped())break e;h=R,d.currentTarget=I;try{h(d)}catch($){Ao($)}d.currentTarget=null,h=M}}}}function ke(e,n){var s=n[Yu];s===void 0&&(s=n[Yu]=new Set);var l=e+"__bubble";s.has(l)||(wv(n,e,2,!1),s.add(l))}function zf(e,n,s){var l=0;n&&(l|=4),wv(s,e,l,n)}var pc="_reactListening"+Math.random().toString(36).slice(2);function Bf(e){if(!e[pc]){e[pc]=!0,pp.forEach(function(s){s!=="selectionchange"&&(Nj.has(s)||zf(s,!1,e),zf(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[pc]||(n[pc]=!0,zf("selectionchange",!1,n))}}function wv(e,n,s,l){switch(Xv(n)){case 2:var d=Jj;break;case 8:d=eE;break;default:d=Wf}s=d.bind(null,n,s,e),d=void 0,!nd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?e.addEventListener(n,s,{capture:!0,passive:d}):e.addEventListener(n,s,!0):d!==void 0?e.addEventListener(n,s,{passive:d}):e.addEventListener(n,s,!1)}function Uf(e,n,s,l,d){var h=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var S=l.tag;if(S===3||S===4){var R=l.stateNode.containerInfo;if(R===d)break;if(S===4)for(S=l.return;S!==null;){var M=S.tag;if((M===3||M===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;R!==null;){if(S=Ar(R),S===null)return;if(M=S.tag,M===5||M===6||M===26||M===27){l=h=S;continue e}R=R.parentNode}}l=l.return}Cp(function(){var I=h,$=ed(s),W=[];e:{var Q=tg.get(e);if(Q!==void 0){var Y=Ro,fe=e;switch(e){case"keypress":if(Eo(s)===0)break e;case"keydown":case"keyup":Y=vw;break;case"focusin":fe="focus",Y=id;break;case"focusout":fe="blur",Y=id;break;case"beforeblur":case"afterblur":Y=id;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=Tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Sw;break;case Xp:case Wp:case Jp:Y=cw;break;case eg:Y=jw;break;case"scroll":case"scrollend":Y=sw;break;case"wheel":Y=Nw;break;case"copy":case"cut":case"paste":Y=dw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Mp;break;case"toggle":case"beforetoggle":Y=Cw}var be=(n&4)!==0,Ke=!be&&(e==="scroll"||e==="scrollend"),H=be?Q!==null?Q+"Capture":null:Q;be=[];for(var U=I,G;U!==null;){var X=U;if(G=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||G===null||H===null||(X=el(U,H),X!=null&&be.push(Ol(U,X,G))),Ke)break;U=U.return}0<be.length&&(Q=new Y(Q,fe,null,s,$),W.push({event:Q,listeners:be}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",Q&&s!==Ju&&(fe=s.relatedTarget||s.fromElement)&&(Ar(fe)||fe[_r]))break e;if((Y||Q)&&(Q=$.window===$?$:(Q=$.ownerDocument)?Q.defaultView||Q.parentWindow:window,Y?(fe=s.relatedTarget||s.toElement,Y=I,fe=fe?Ar(fe):null,fe!==null&&(Ke=u(fe),be=fe.tag,fe!==Ke||be!==5&&be!==27&&be!==6)&&(fe=null)):(Y=null,fe=I),Y!==fe)){if(be=Tp,X="onMouseLeave",H="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(be=Mp,X="onPointerLeave",H="onPointerEnter",U="pointer"),Ke=Y==null?Q:Ji(Y),G=fe==null?Q:Ji(fe),Q=new be(X,U+"leave",Y,s,$),Q.target=Ke,Q.relatedTarget=G,X=null,Ar($)===I&&(be=new be(H,U+"enter",fe,s,$),be.target=G,be.relatedTarget=Ke,X=be),Ke=X,Y&&fe)t:{for(be=Rj,H=Y,U=fe,G=0,X=H;X;X=be(X))G++;X=0;for(var ge=U;ge;ge=be(ge))X++;for(;0<G-X;)H=be(H),G--;for(;0<X-G;)U=be(U),X--;for(;G--;){if(H===U||U!==null&&H===U.alternate){be=H;break t}H=be(H),U=be(U)}be=null}else be=null;Y!==null&&jv(W,Q,Y,be,!1),fe!==null&&Ke!==null&&jv(W,Ke,fe,be,!0)}}e:{if(Q=I?Ji(I):window,Y=Q.nodeName&&Q.nodeName.toLowerCase(),Y==="select"||Y==="input"&&Q.type==="file")var Ue=Fp;else if(Up(Q))if(Hp)Ue=Bw;else{Ue=Lw;var me=Dw}else Y=Q.nodeName,!Y||Y.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?I&&Wu(I.elementType)&&(Ue=Fp):Ue=zw;if(Ue&&(Ue=Ue(e,I))){Pp(W,Ue,s,$);break e}me&&me(e,Q,I),e==="focusout"&&I&&Q.type==="number"&&I.memoizedProps.value!=null&&Xu(Q,"number",Q.value)}switch(me=I?Ji(I):window,e){case"focusin":(Up(me)||me.contentEditable==="true")&&(Ur=me,fd=I,ol=null);break;case"focusout":ol=fd=Ur=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,Kp(W,s,$);break;case"selectionchange":if(Pw)break;case"keydown":case"keyup":Kp(W,s,$)}var Ce;if(od)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Br?zp(e,s)&&(De="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(De="onCompositionStart");De&&(Op&&s.locale!=="ko"&&(Br||De!=="onCompositionStart"?De==="onCompositionEnd"&&Br&&(Ce=_p()):(Ia=$,ad="value"in Ia?Ia.value:Ia.textContent,Br=!0)),me=gc(I,De),0<me.length&&(De=new kp(De,e,null,s,$),W.push({event:De,listeners:me}),Ce?De.data=Ce:(Ce=Bp(s),Ce!==null&&(De.data=Ce)))),(Ce=Aw?Tw(e,s):kw(e,s))&&(De=gc(I,"onBeforeInput"),0<De.length&&(me=new kp("onBeforeInput","beforeinput",null,s,$),W.push({event:me,listeners:De}),me.data=Ce)),wj(W,e,I,s,$)}Sv(W,n)})}function Ol(e,n,s){return{instance:e,listener:n,currentTarget:s}}function gc(e,n){for(var s=n+"Capture",l=[];e!==null;){var d=e,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=el(e,s),d!=null&&l.unshift(Ol(e,d,h)),d=el(e,n),d!=null&&l.push(Ol(e,d,h))),e.tag===3)return l;e=e.return}return[]}function Rj(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jv(e,n,s,l,d){for(var h=n._reactName,S=[];s!==null&&s!==l;){var R=s,M=R.alternate,I=R.stateNode;if(R=R.tag,M!==null&&M===l)break;R!==5&&R!==26&&R!==27||I===null||(M=I,d?(I=el(s,h),I!=null&&S.unshift(Ol(s,I,M))):d||(I=el(s,h),I!=null&&S.push(Ol(s,I,M)))),s=s.return}S.length!==0&&e.push({event:n,listeners:S})}var Cj=/\r\n?/g,_j=/\u0000|\uFFFD/g;function Ev(e){return(typeof e=="string"?e:""+e).replace(Cj,`
|
|
49
|
+
`).replace(_j,"")}function Nv(e,n){return n=Ev(n),Ev(e)===n}function $e(e,n,s,l,d,h){switch(s){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Dr(e,""+l);break;case"className":xo(e,"class",l);break;case"tabIndex":xo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xo(e,s,l);break;case"style":Np(e,l,h);break;case"data":if(n!=="object"){xo(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=wo(""+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"&&$e(e,n,"name",d.name,d,null),$e(e,n,"formEncType",d.formEncType,d,null),$e(e,n,"formMethod",d.formMethod,d,null),$e(e,n,"formTarget",d.formTarget,d,null)):($e(e,n,"encType",d.encType,d,null),$e(e,n,"method",d.method,d,null),$e(e,n,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=wo(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=ua);break;case"onScroll":l!=null&&ke("scroll",e);break;case"onScrollEnd":l!=null&&ke("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(d.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=wo(""+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":ke("beforetoggle",e),ke("toggle",e),bo(e,"popover",l);break;case"xlinkActuate":ca(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ca(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ca(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ca(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ca(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ca(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ca(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ca(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ca(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":bo(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=nw.get(s)||s,bo(e,s,l))}}function Pf(e,n,s,l,d,h){switch(s){case"style":Np(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(d.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&Dr(e,""+l);break;case"onScroll":l!=null&&ke("scroll",e);break;case"onScrollEnd":l!=null&&ke("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gp.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),n=s.slice(2,d?s.length-7:void 0),h=e[It]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(n,h,d),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,l,d);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):bo(e,s,l)}}}function kt(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var l=!1,d=!1,h;for(h in s)if(s.hasOwnProperty(h)){var S=s[h];if(S!=null)switch(h){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:$e(e,n,h,S,s,null)}}d&&$e(e,n,"srcSet",s.srcSet,s,null),l&&$e(e,n,"src",s.src,s,null);return;case"input":ke("invalid",e);var R=h=S=d=null,M=null,I=null;for(l in s)if(s.hasOwnProperty(l)){var $=s[l];if($!=null)switch(l){case"name":d=$;break;case"type":S=$;break;case"checked":M=$;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:$e(e,n,l,$,s,null)}}Sp(e,h,R,M,I,S,d,!1);return;case"select":ke("invalid",e),l=S=h=null;for(d in s)if(s.hasOwnProperty(d)&&(R=s[d],R!=null))switch(d){case"value":h=R;break;case"defaultValue":S=R;break;case"multiple":l=R;default:$e(e,n,d,R,s,null)}n=h,s=S,e.multiple=!!l,n!=null?Or(e,!!l,n,!1):s!=null&&Or(e,!!l,s,!0);return;case"textarea":ke("invalid",e),h=d=l=null;for(S in s)if(s.hasOwnProperty(S)&&(R=s[S],R!=null))switch(S){case"value":l=R;break;case"defaultValue":d=R;break;case"children":h=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:$e(e,n,S,R,s,null)}jp(e,l,d,h);return;case"option":for(M in s)if(s.hasOwnProperty(M)&&(l=s[M],l!=null))switch(M){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:$e(e,n,M,l,s,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(l=0;l<Ml.length;l++)ke(Ml[l],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("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:$e(e,n,I,l,s,null)}return;default:if(Wu(n)){for($ in s)s.hasOwnProperty($)&&(l=s[$],l!==void 0&&Pf(e,n,$,l,s,void 0));return}}for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null&&$e(e,n,R,l,s,null))}function Aj(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 d=null,h=null,S=null,R=null,M=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":M=W;default:l.hasOwnProperty(Y)||$e(e,n,Y,null,l,W)}}for(var Q in l){var Y=l[Q];if(W=s[Q],l.hasOwnProperty(Q)&&(Y!=null||W!=null))switch(Q){case"type":h=Y;break;case"name":d=Y;break;case"checked":I=Y;break;case"defaultChecked":$=Y;break;case"value":S=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:Y!==W&&$e(e,n,Q,Y,l,W)}}Zu(e,S,R,M,I,$,h,d);return;case"select":Y=S=R=Q=null;for(h in s)if(M=s[h],s.hasOwnProperty(h)&&M!=null)switch(h){case"value":break;case"multiple":Y=M;default:l.hasOwnProperty(h)||$e(e,n,h,null,l,M)}for(d in l)if(h=l[d],M=s[d],l.hasOwnProperty(d)&&(h!=null||M!=null))switch(d){case"value":Q=h;break;case"defaultValue":R=h;break;case"multiple":S=h;default:h!==M&&$e(e,n,d,h,l,M)}n=R,s=S,l=Y,Q!=null?Or(e,!!s,Q,!1):!!l!=!!s&&(n!=null?Or(e,!!s,n,!0):Or(e,!!s,s?[]:"",!1));return;case"textarea":Y=Q=null;for(R in s)if(d=s[R],s.hasOwnProperty(R)&&d!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:$e(e,n,R,null,l,d)}for(S in l)if(d=l[S],h=s[S],l.hasOwnProperty(S)&&(d!=null||h!=null))switch(S){case"value":Q=d;break;case"defaultValue":Y=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==h&&$e(e,n,S,d,l,h)}wp(e,Q,Y);return;case"option":for(var fe in s)if(Q=s[fe],s.hasOwnProperty(fe)&&Q!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:$e(e,n,fe,null,l,Q)}for(M in l)if(Q=l[M],Y=s[M],l.hasOwnProperty(M)&&Q!==Y&&(Q!=null||Y!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:$e(e,n,M,Q,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)Q=s[be],s.hasOwnProperty(be)&&Q!=null&&!l.hasOwnProperty(be)&&$e(e,n,be,null,l,Q);for(I in l)if(Q=l[I],Y=s[I],l.hasOwnProperty(I)&&Q!==Y&&(Q!=null||Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,n));break;default:$e(e,n,I,Q,l,Y)}return;default:if(Wu(n)){for(var Ke in s)Q=s[Ke],s.hasOwnProperty(Ke)&&Q!==void 0&&!l.hasOwnProperty(Ke)&&Pf(e,n,Ke,void 0,l,Q);for($ in l)Q=l[$],Y=s[$],!l.hasOwnProperty($)||Q===Y||Q===void 0&&Y===void 0||Pf(e,n,$,Q,l,Y);return}}for(var H in s)Q=s[H],s.hasOwnProperty(H)&&Q!=null&&!l.hasOwnProperty(H)&&$e(e,n,H,null,l,Q);for(W in l)Q=l[W],Y=s[W],!l.hasOwnProperty(W)||Q===Y||Q==null&&Y==null||$e(e,n,W,Q,l,Y)}function Rv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tj(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var d=s[l],h=d.transferSize,S=d.initiatorType,R=d.duration;if(h&&R&&Rv(S)){for(S=0,R=d.responseEnd,l+=1;l<s.length;l++){var M=s[l],I=M.startTime;if(I>R)break;var $=M.transferSize,W=M.initiatorType;$&&Rv(W)&&(M=M.responseEnd,S+=$*(M<R?1:(R-I)/(M-I)))}if(--l,n+=8*(h+S)/(d.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 Ff=null,Hf=null;function yc(e){return e.nodeType===9?e:e.ownerDocument}function Cv(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 _v(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 qf(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 Gf=null;function kj(){var e=window.event;return e&&e.type==="popstate"?e===Gf?!1:(Gf=e,!0):(Gf=null,!1)}var Av=typeof setTimeout=="function"?setTimeout:void 0,Mj=typeof clearTimeout=="function"?clearTimeout:void 0,Tv=typeof Promise=="function"?Promise:void 0,Oj=typeof queueMicrotask=="function"?queueMicrotask:typeof Tv<"u"?function(e){return Tv.resolve(null).then(e).catch(Dj)}:Av;function Dj(e){setTimeout(function(){throw e})}function ls(e){return e==="head"}function kv(e,n){var s=n,l=0;do{var d=s.nextSibling;if(e.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(d),di(n);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Dl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Dl(s);for(var h=s.firstChild;h;){var S=h.nextSibling,R=h.nodeName;h[Wi]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=S}}else s==="body"&&Dl(e.ownerDocument.body);s=d}while(s);di(n)}function Mv(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 If(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":If(s),$u(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Lj(e,n,s,l){for(;e.nodeType===1;){var d=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Wi])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!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=kn(e.nextSibling),e===null)break}return null}function zj(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=kn(e.nextSibling),e===null))return null;return e}function Ov(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=kn(e.nextSibling),e===null))return null;return e}function Qf(e){return e.data==="$?"||e.data==="$~"}function Vf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Bj(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 kn(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 Yf=null;function Dv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return kn(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Lv(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 zv(e,n,s){switch(n=yc(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 Dl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);$u(e)}var Mn=new Map,Bv=new Set;function vc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=V.d;V.d={f:Uj,r:Pj,D:Fj,C:Hj,L:qj,m:Gj,X:Qj,S:Ij,M:Vj};function Uj(){var e=Ra.f(),n=cc();return e||n}function Pj(e){var n=Tr(e);n!==null&&n.tag===5&&n.type==="form"?ey(n):Ra.r(e)}var oi=typeof document>"u"?null:document;function Uv(e,n,s){var l=oi;if(l&&typeof n=="string"&&n){var d=En(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),Bv.has(d)||(Bv.add(d),e={rel:e,crossOrigin:s,href:n},l.querySelector(d)===null&&(n=l.createElement("link"),kt(n,"link",e),wt(n),l.head.appendChild(n)))}}function Fj(e){Ra.D(e),Uv("dns-prefetch",e,null)}function Hj(e,n){Ra.C(e,n),Uv("preconnect",e,n)}function qj(e,n,s){Ra.L(e,n,s);var l=oi;if(l&&e&&n){var d='link[rel="preload"][as="'+En(n)+'"]';n==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+En(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+En(s.imageSizes)+'"]')):d+='[href="'+En(e)+'"]';var h=d;switch(n){case"style":h=ci(e);break;case"script":h=ui(e)}Mn.has(h)||(e=y({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),Mn.set(h,e),l.querySelector(d)!==null||n==="style"&&l.querySelector(Ll(h))||n==="script"&&l.querySelector(zl(h))||(n=l.createElement("link"),kt(n,"link",e),wt(n),l.head.appendChild(n)))}}function Gj(e,n){Ra.m(e,n);var s=oi;if(s&&e){var l=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+En(l)+'"][href="'+En(e)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ui(e)}if(!Mn.has(h)&&(e=y({rel:"modulepreload",href:e},n),Mn.set(h,e),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(zl(h)))return}l=s.createElement("link"),kt(l,"link",e),wt(l),s.head.appendChild(l)}}}function Ij(e,n,s){Ra.S(e,n,s);var l=oi;if(l&&e){var d=kr(l).hoistableStyles,h=ci(e);n=n||"default";var S=d.get(h);if(!S){var R={loading:0,preload:null};if(S=l.querySelector(Ll(h)))R.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},s),(s=Mn.get(h))&&$f(e,s);var M=S=l.createElement("link");wt(M),kt(M,"link",e),M._p=new Promise(function(I,$){M.onload=I,M.onerror=$}),M.addEventListener("load",function(){R.loading|=1}),M.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bc(S,n,l)}S={type:"stylesheet",instance:S,count:1,state:R},d.set(h,S)}}}function Qj(e,n){Ra.X(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,d=ui(e),h=l.get(d);h||(h=s.querySelector(zl(d)),h||(e=y({src:e,async:!0},n),(n=Mn.get(d))&&Kf(e,n),h=s.createElement("script"),wt(h),kt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Vj(e,n){Ra.M(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,d=ui(e),h=l.get(d);h||(h=s.querySelector(zl(d)),h||(e=y({src:e,async:!0,type:"module"},n),(n=Mn.get(d))&&Kf(e,n),h=s.createElement("script"),wt(h),kt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Pv(e,n,s,l){var d=(d=he.current)?vc(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ci(s.href),s=kr(d).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=ci(s.href);var h=kr(d).hoistableStyles,S=h.get(e);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,S),(h=d.querySelector(Ll(e)))&&!h._p&&(S.instance=h,S.state.loading=5),Mn.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},Mn.set(e,s),h||Yj(d,e,s,S.state))),n&&l===null)throw Error(i(528,""));return S}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=ui(s),s=kr(d).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 ci(e){return'href="'+En(e)+'"'}function Ll(e){return'link[rel="stylesheet"]['+e+"]"}function Fv(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Yj(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}),kt(n,"link",s),wt(n),e.head.appendChild(n))}function ui(e){return'[src="'+En(e)+'"]'}function zl(e){return"script[async]"+e}function Hv(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+En(s.href)+'"]');if(l)return n.instance=l,wt(l),l;var d=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),wt(l),kt(l,"style",d),bc(l,s.precedence,e),n.instance=l;case"stylesheet":d=ci(s.href);var h=e.querySelector(Ll(d));if(h)return n.state.loading|=4,n.instance=h,wt(h),h;l=Fv(s),(d=Mn.get(d))&&$f(l,d),h=(e.ownerDocument||e).createElement("link"),wt(h);var S=h;return S._p=new Promise(function(R,M){S.onload=R,S.onerror=M}),kt(h,"link",l),n.state.loading|=4,bc(h,s.precedence,e),n.instance=h;case"script":return h=ui(s.src),(d=e.querySelector(zl(h)))?(n.instance=d,wt(d),d):(l=s,(d=Mn.get(h))&&(l=y({},s),Kf(l,d)),e=e.ownerDocument||e,d=e.createElement("script"),wt(d),kt(d,"link",l),e.head.appendChild(d),n.instance=d);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,bc(l,s.precedence,e));return n.instance}function bc(e,n,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,S=0;S<l.length;S++){var R=l[S];if(R.dataset.precedence===n)h=R;else if(h!==d)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function $f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Kf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var xc=null;function qv(e,n,s){if(xc===null){var l=new Map,d=xc=new Map;d.set(s,l)}else d=xc,l=d.get(s),l||(l=new Map,d.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),d=0;d<s.length;d++){var h=s[d];if(!(h[Wi]||h[Ct]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var S=h.getAttribute(n)||"";S=e+S;var R=l.get(S);R?R.push(h):l.set(S,[h])}}return l}function Gv(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function $j(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 Iv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Kj(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 d=ci(l.href),h=n.querySelector(Ll(d));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Sc.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=h,wt(h);return}h=n.ownerDocument||n,l=Fv(l),(d=Mn.get(d))&&$f(l,d),h=h.createElement("link"),wt(h);var S=h;S._p=new Promise(function(R,M){S.onload=R,S.onerror=M}),kt(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=Sc.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var Zf=0;function Zj(e,n){return e.stylesheets&&e.count===0&&jc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Zf===0&&(Zf=62500*Tj());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Zf?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function Sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wc=null;function jc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wc=new Map,n.forEach(Xj,e),wc=null,Sc.call(e))}function Xj(e,n){if(!(n.state.loading&4)){var s=wc.get(e);if(s)var l=s.get(null);else{s=new Map,wc.set(e,s);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var S=d[h];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(s.set(S.dataset.precedence,S),l=S)}l&&s.set(null,l)}d=n.instance,S=d.getAttribute("data-precedence"),h=s.get(S)||l,h===l&&s.set(null,d),s.set(S,d),this.count++,l=Sc.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),h?h.parentNode.insertBefore(d,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var Bl={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Wj(e,n,s,l,d,h,S,R,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Qv(e,n,s,l,d,h,S,R,M,I,$,W){return e=new Wj(e,n,s,S,M,I,$,W,R),n=1,h===!0&&(n|=24),h=ln(3,null,null,n),e.current=h,h.stateNode=e,n=_d(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:n},Md(h),e}function Vv(e){return e?(e=Hr,e):Hr}function Yv(e,n,s,l,d,h){d=Vv(d),l.context===null?l.context=d:l.pendingContext=d,l=Za(n),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Xa(e,l,n),s!==null&&(Zt(s,e,n),pl(s,e,n))}function $v(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function Xf(e,n){$v(e,n),(e=e.alternate)&&$v(e,n)}function Kv(e){if(e.tag===13||e.tag===31){var n=qs(e,67108864);n!==null&&Zt(n,e,67108864),Xf(e,67108864)}}function Zv(e){if(e.tag===13||e.tag===31){var n=fn();n=Qu(n);var s=qs(e,n);s!==null&&Zt(s,e,n),Xf(e,n)}}var Ec=!0;function Jj(e,n,s,l){var d=F.T;F.T=null;var h=V.p;try{V.p=2,Wf(e,n,s,l)}finally{V.p=h,F.T=d}}function eE(e,n,s,l){var d=F.T;F.T=null;var h=V.p;try{V.p=8,Wf(e,n,s,l)}finally{V.p=h,F.T=d}}function Wf(e,n,s,l){if(Ec){var d=Jf(l);if(d===null)Uf(e,n,l,Nc,s),Wv(e,l);else if(nE(d,e,n,s,l))l.stopPropagation();else if(Wv(e,l),n&4&&-1<tE.indexOf(e)){for(;d!==null;){var h=Tr(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=Bs(h.pendingLanes);if(S!==0){var R=h;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var M=1<<31-sn(S);R.entanglements[1]|=M,S&=~M}Xn(h),(Fe&6)===0&&(lc=Ot()+500,kl(0))}}break;case 31:case 13:R=qs(h,2),R!==null&&Zt(R,h,2),cc(),Xf(h,2)}if(h=Jf(l),h===null&&Uf(e,n,l,Nc,s),h===d)break;d=h}d!==null&&l.stopPropagation()}else Uf(e,n,l,null,s)}}function Jf(e){return e=ed(e),eh(e)}var Nc=null;function eh(e){if(Nc=null,e=Ar(e),e!==null){var n=u(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=m(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 Nc=e,null}function Xv(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(Ve()){case Rt:return 2;case Yn:return 8;case Cr:case HS:return 32;case lp:return 268435456;default:return 32}default:return 32}}var th=!1,os=null,cs=null,us=null,Ul=new Map,Pl=new Map,ds=[],tE="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 Wv(e,n){switch(e){case"focusin":case"focusout":os=null;break;case"dragenter":case"dragleave":cs=null;break;case"mouseover":case"mouseout":us=null;break;case"pointerover":case"pointerout":Ul.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(n.pointerId)}}function Fl(e,n,s,l,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[d]},n!==null&&(n=Tr(n),n!==null&&Kv(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function nE(e,n,s,l,d){switch(n){case"focusin":return os=Fl(os,e,n,s,l,d),!0;case"dragenter":return cs=Fl(cs,e,n,s,l,d),!0;case"mouseover":return us=Fl(us,e,n,s,l,d),!0;case"pointerover":var h=d.pointerId;return Ul.set(h,Fl(Ul.get(h)||null,e,n,s,l,d)),!0;case"gotpointercapture":return h=d.pointerId,Pl.set(h,Fl(Pl.get(h)||null,e,n,s,l,d)),!0}return!1}function Jv(e){var n=Ar(e.target);if(n!==null){var s=u(n);if(s!==null){if(n=s.tag,n===13){if(n=f(s),n!==null){e.blockedOn=n,hp(e.priority,function(){Zv(s)});return}}else if(n===31){if(n=m(s),n!==null){e.blockedOn=n,hp(e.priority,function(){Zv(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 Rc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Jf(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Ju=l,s.target.dispatchEvent(l),Ju=null}else return n=Tr(s),n!==null&&Kv(n),e.blockedOn=s,!1;n.shift()}return!0}function eb(e,n,s){Rc(e)&&s.delete(n)}function aE(){th=!1,os!==null&&Rc(os)&&(os=null),cs!==null&&Rc(cs)&&(cs=null),us!==null&&Rc(us)&&(us=null),Ul.forEach(eb),Pl.forEach(eb)}function Cc(e,n){e.blockedOn===n&&(e.blockedOn=null,th||(th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,aE)))}var _c=null;function tb(e){_c!==e&&(_c=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){_c===e&&(_c=null);for(var n=0;n<e.length;n+=3){var s=e[n],l=e[n+1],d=e[n+2];if(typeof l!="function"){if(eh(l||s)===null)continue;break}var h=Tr(s);h!==null&&(e.splice(n,3),n-=3,Wd(h,{pending:!0,data:d,method:s.method,action:l},l,d))}}))}function di(e){function n(M){return Cc(M,e)}os!==null&&Cc(os,e),cs!==null&&Cc(cs,e),us!==null&&Cc(us,e),Ul.forEach(n),Pl.forEach(n);for(var s=0;s<ds.length;s++){var l=ds[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ds.length&&(s=ds[0],s.blockedOn===null);)Jv(s),s.blockedOn===null&&ds.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var d=s[l],h=s[l+1],S=d[It]||null;if(typeof h=="function")S||tb(s);else if(S){var R=null;if(h&&h.hasAttribute("formAction")){if(d=h,S=h[It]||null)R=S.formAction;else if(eh(d)!==null)continue}else R=S.action;typeof R=="function"?s[l+1]=R:(s.splice(l,3),l-=3),tb(s)}}}function nb(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=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,d=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),d!==null&&(d(),d=null)}}}function nh(e){this._internalRoot=e}Ac.prototype.render=nh.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var s=n.current,l=fn();Yv(s,l,e,n,null,null)},Ac.prototype.unmount=nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Yv(e.current,2,null,e,null,null),cc(),n[_r]=null}};function Ac(e){this._internalRoot=e}Ac.prototype.unstable_scheduleHydration=function(e){if(e){var n=fp();e={blockedOn:null,target:e,priority:n};for(var s=0;s<ds.length&&n!==0&&n<ds[s].priority;s++);ds.splice(s,0,e),s===0&&Jv(e)}};var ab=a.version;if(ab!=="19.2.7")throw Error(i(527,ab,"19.2.7"));V.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=p(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var sE={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{Ki=Tc.inject(sE),an=Tc}catch{}}return ql.createRoot=function(e,n){if(!o(e))throw Error(i(299));var s=!1,l="",d=uy,h=dy,S=fy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=Qv(e,1,!1,null,null,s,l,null,d,h,S,nb),e[_r]=n.current,Bf(e),new nh(n)},ql.hydrateRoot=function(e,n,s){if(!o(e))throw Error(i(299));var l=!1,d="",h=uy,S=dy,R=fy,M=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(S=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.formState!==void 0&&(M=s.formState)),n=Qv(e,1,!0,n,s??null,l,d,M,h,S,R,nb),n.context=Vv(null),s=n.current,l=fn(),l=Qu(l),d=Za(l),d.callback=null,Xa(s,d,l),s=l,n.current.lanes=s,Xi(n,s),Xn(n),e[_r]=n.current,Bf(e),new Ac(n)},ql.version="19.2.7",ql}var mb;function mE(){if(mb)return ih.exports;mb=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(),ih.exports=hE(),ih.exports}var pE=mE();const gE=xm(pE);var Yl=typeof window<"u"?N.useLayoutEffect:N.useEffect;function uh(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 yE(t,a,r={},i={}){N.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([u])=>{a(u)},r);return o.observe(t.current),()=>{o.disconnect()}},[a,r,i.disabled,t])}function vE(t){const a=N.useRef(null);return N.useImperativeHandle(t,()=>a.current,[]),a}const u0=!1;function Kl(t){return t[t.length-1]}function bE(t){return typeof t=="function"}function sr(t,a){return bE(t)?t(a):t}const d0=Object.prototype.hasOwnProperty,pb=Object.prototype.propertyIsEnumerable;function f0(t){for(const a in t)if(d0.call(t,a))return!0;return!1}const xE=()=>Object.create(null),tr=(t,a)=>rr(t,a,xE);function rr(t,a,r=()=>({}),i=0){if(t===a)return t;if(i>500)return a;const o=a,u=vb(t)&&vb(o);if(!u&&!(au(t)&&au(o)))return o;const f=u?t:gb(t);if(!f)return o;const m=u?o:gb(o);if(!m)return o;const g=f.length,p=m.length,v=u?new Array(p):r();let y=0;for(let x=0;x<p;x++){const j=u?x:m[x],w=t[j],b=o[j];if(w===b){v[j]=w,(u?x<g:d0.call(t,j))&&y++;continue}if(w===null||b===null||typeof w!="object"||typeof b!="object"){v[j]=b;continue}const E=rr(w,b,r,i+1);v[j]=E,E===w&&y++}return g===p&&y===g?t:v}function gb(t){const a=Object.getOwnPropertyNames(t);for(const o of a)if(!pb.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(!pb.call(t,o))return!1;i.push(o)}return i}function au(t){if(!yb(t))return!1;const a=t.constructor;if(typeof a>"u")return!0;const r=a.prototype;return!(!yb(r)||!r.hasOwnProperty("isPrototypeOf"))}function yb(t){return Object.prototype.toString.call(t)==="[object Object]"}function vb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function yr(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(!yr(t[i],a[i],r))return!1;return!0}if(au(t)&&au(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)&&!yr(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 u=0;for(const f in a)if((!i||a[f]!==void 0)&&(u++,u>o||!yr(t[f],a[f],r)))return!1;return o===u}return!1}function Li(t){let a,r;const i=new Promise((o,u)=>{a=o,r=u});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 Zl(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function SE(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function bb(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 SE(a)}const wE=["http:","https:","mailto:","tel:"];function su(t,a){if(!t)return!1;try{const r=new URL(t);return!a.has(r.protocol)}catch{return!1}}function Gl(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+=bb(t.slice(r,o.index))+o[0],r=a.lastIndex;i=i+bb(r?t.slice(r):t);let u=!1;return i.startsWith("//")&&(u=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:u}}function jE(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function EE(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 La(){throw new Error("Invariant failed")}function Xl(t){const a=new Map;let r,i;const o=u=>{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,i&&(i.next=u,u.prev=i)):(u.next.prev=void 0,r=u.next,u.next=void 0,i&&(u.prev=i,i.next=u)),i=u)};return{get(u){const f=a.get(u);if(f)return o(f),f.value},set(u,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 m=a.get(u);if(m)m.value=f,o(m);else{const g={key:u,value:f,prev:i};i&&(i.next=g),i=g,r||(r=g),a.set(u,g)}},clear(){a.clear(),r=void 0,i=void 0}}}const Cs=4,h0=5;function NE(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 m0(t,a,r=new Uint16Array(6)){const i=t.indexOf("/",a),o=i===-1?t.length:i,u=t.substring(a,o);if(!u||!u.includes("$"))return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r;if(u==="$"){const m=t.length;return r[0]=2,r[1]=a,r[2]=a,r[3]=m,r[4]=m,r[5]=m,r}if(u.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=NE(u);if(f){const[m,g]=f,p=u.charCodeAt(m+1);if(p===45){if(m+2<u.length&&u.charCodeAt(m+2)===36){const v=m+3,y=g;if(v<y)return r[0]=3,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=o,r}}else if(p===36){const v=m+1,y=m+2;return y===g?(r[0]=2,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=t.length,r):(r[0]=1,r[1]=a+m,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 wu(t,a,r,i,o,u,f){var g,p,v,y,x,j,w,b,E,_;f==null||f(r);let m=i;{const C=r.fullPath??r.from,T=C.length,A=((g=r.options)==null?void 0:g.caseSensitive)??t,B=((v=(p=r.options)==null?void 0:p.params)==null?void 0:v.parse)??((y=r.options)==null?void 0:y.parseParams);for(;m<T;){const k=m0(C,m,a);let D;const z=m,q=k[5];switch(m=q+1,u++,k[0]){case 0:{const K=C.substring(k[2],k[3]);if(A){const ne=(x=o.static)==null?void 0:x.get(K);if(ne)D=ne;else{o.static??(o.static=new Map);const se=ir(r.fullPath??r.from);se.parent=o,se.depth=u,D=se,o.static.set(K,se)}}else{const ne=K.toLowerCase(),se=(j=o.staticInsensitive)==null?void 0:j.get(ne);if(se)D=se;else{o.staticInsensitive??(o.staticInsensitive=new Map);const te=ir(r.fullPath??r.from);te.parent=o,te.depth=u,D=te,o.staticInsensitive.set(ne,te)}}break}case 1:{const K=C.substring(z,k[1]),ne=C.substring(k[4],q),se=A&&!!(K||ne),te=K?se?K:K.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,F=!B&&((w=o.dynamic)==null?void 0:w.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(F)D=F;else{const V=fh(1,r.fullPath??r.from,se,te,ce);D=V,V.depth=u,V.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(V)}break}case 3:{const K=C.substring(z,k[1]),ne=C.substring(k[4],q),se=A&&!!(K||ne),te=K?se?K:K.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,F=!B&&((b=o.optional)==null?void 0:b.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(F)D=F;else{const V=fh(3,r.fullPath??r.from,se,te,ce);D=V,V.parent=o,V.depth=u,o.optional??(o.optional=[]),o.optional.push(V)}break}case 2:{const K=C.substring(z,k[1]),ne=C.substring(k[4],q),se=A&&!!(K||ne),te=K?se?K:K.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,F=fh(2,r.fullPath??r.from,se,te,ce);D=F,F.parent=o,F.depth=u,o.wildcard??(o.wildcard=[]),o.wildcard.push(F)}}o=D}if(B&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const k=ir(r.fullPath??r.from);k.kind=h0,k.parent=o,u++,k.depth=u,o.pathless??(o.pathless=[]),o.pathless.push(k),o=k}const P=(r.path||!r.children)&&!r.isRoot;if(P&&C.endsWith("/")){const k=ir(r.fullPath??r.from);k.kind=Cs,k.parent=o,u++,k.depth=u,o.index=k,o=k}o.parse=B??null,o.priority=((_=(E=r.options)==null?void 0:E.params)==null?void 0:_.priority)??0,P&&!o.route&&(o.route=r,o.fullPath=r.fullPath??r.from)}if(r.children)for(const C of r.children)wu(t,a,C,m,o,u,f)}function dh(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 ys(t){var a,r,i;if(t.pathless)for(const o of t.pathless)ys(o);if(t.static)for(const o of t.static.values())ys(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())ys(o);if((a=t.dynamic)!=null&&a.length){t.dynamic.sort(dh);for(const o of t.dynamic)ys(o)}if((r=t.optional)!=null&&r.length){t.optional.sort(dh);for(const o of t.optional)ys(o)}if((i=t.wildcard)!=null&&i.length){t.wildcard.sort(dh);for(const o of t.wildcard)ys(o)}}function ir(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 fh(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 RE(t,a){const r=ir("/"),i=new Uint16Array(6);for(const o of t)wu(!1,i,o,1,r,0);ys(r),a.masksTree=r,a.flatCache=Xl(1e3)}function CE(t,a){t||(t="/");const r=a.flatCache.get(t);if(r)return r;const i=wm(t,a.masksTree);return a.flatCache.set(t,i),i}function _E(t,a,r,i,o){t||(t="/"),i||(i="/");const u=a?`case\0${t}`:t;let f=o.singleCache.get(u);return f||(f=ir("/"),wu(a,new Uint16Array(6),{from:t},1,f,0),o.singleCache.set(u,f)),wm(i,f,r)}function AE(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 u;try{u=wm(t,a.segmentTree,r)}catch(f){if(f instanceof URIError)u=null;else throw f}return u&&(u.branch=g0(u.route)),a.matchCache.set(i,u),u}function TE(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function kE(t,a=!1,r){const i=ir(t.fullPath),o=new Uint16Array(6),u={},f={};let m=0;return wu(a,o,t,1,i,0,g=>{if(r==null||r(g,m),g.id in u&&La(),u[g.id]=g,m!==0&&g.path){const p=TE(g.fullPath);(!f[p]||g.fullPath.endsWith("/"))&&(f[p]=g)}m++}),ys(i),{processedTree:{segmentTree:i,singleCache:Xl(1e3),matchCache:Xl(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:f}}function wm(t,a,r=!1){const i=t.split("/"),o=OE(t,i,a,r);if(!o)return null;const[u]=p0(t,i,o);return{route:o.node.route,rawParams:u}}function p0(t,a,r){var v,y,x,j,w,b,E,_,C,T;const i=ME(r.node);let o=null;const u=Object.create(null);let f=((v=r.extract)==null?void 0:v.part)??0,m=((y=r.extract)==null?void 0:y.node)??0,g=((x=r.extract)==null?void 0:x.path)??0,p=((j=r.extract)==null?void 0:j.segment)??0;for(;m<i.length;f++,m++,g++,p++){const A=i[m];if(A.kind===Cs)break;if(A.kind===h0){p--,f--,g--;continue}const B=a[f],P=g;if(B&&(g+=B.length),A.kind===1){o??(o=r.node.fullPath.split("/"));const k=o[p],D=((w=A.prefix)==null?void 0:w.length)??0;if(k.charCodeAt(D)===123){const z=((b=A.suffix)==null?void 0:b.length)??0,q=k.substring(D+2,k.length-z-1),K=B.substring(D,B.length-z);u[q]=decodeURIComponent(K)}else{const z=k.substring(1);u[z]=decodeURIComponent(B)}}else if(A.kind===3){if(r.skipped&1<<m){f--,g=P-1;continue}o??(o=r.node.fullPath.split("/"));const k=o[p],D=((E=A.prefix)==null?void 0:E.length)??0,z=((_=A.suffix)==null?void 0:_.length)??0,q=k.substring(D+3,k.length-z-1),K=A.suffix||A.prefix?B.substring(D,B.length-z):B;K&&(u[q]=decodeURIComponent(K))}else if(A.kind===2){const k=A,D=t.substring(P+(((C=k.prefix)==null?void 0:C.length)??0),t.length-(((T=k.suffix)==null?void 0:T.length)??0)),z=decodeURIComponent(D);u["*"]=z,u._splat=z;break}}return r.rawParams&&Object.assign(u,r.rawParams),[u,{part:f,node:m,path:g,segment:p}]}function g0(t){const a=[t];for(;t.parentRoute;)t=t.parentRoute,a.push(t);return a.reverse(),a}function ME(t){const a=Array(t.depth+1);do a[t.depth]=t,t=t.parent;while(t);return a}function OE(t,a,r,i){if(t==="/"&&r.index)return{node:r.index,skipped:0};const o=!Kl(a),u=o&&t!=="/",f=a.length-(o?1:0),m=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,p=null;for(;m.length;){const v=m.pop(),{node:y,index:x,skipped:j,depth:w,statics:b,dynamics:E,optionals:_}=v;let{extract:C,rawParams:T}=v;if(y.kind===2&&y.route&&!Oc(p,v))continue;if(y.parse){if(!xb(t,a,v))continue;T=v.rawParams,C=v.extract}i&&y.route&&y.kind!==Cs&&Oc(g,v)&&(g=v);const A=x===f;if(A&&(y.route&&(!u||y.kind===Cs||y.kind===2)&&Oc(p,v)&&(p=v),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const B=A?void 0:a[x];let P;if(A&&y.index){const k={node:y.index,index:x,skipped:j,depth:w+1,statics:b,dynamics:E,optionals:_,extract:C,rawParams:T};let D=!0;if(y.index.parse&&(xb(t,a,k)||(D=!1)),D){if(!E&&!_&&!j&&DE(b,f))return k;Oc(p,k)&&(p=k)}}if(y.wildcard)for(let k=y.wildcard.length-1;k>=0;k--){const D=y.wildcard[k],{prefix:z,suffix:q}=D;if(!(z&&(A||!(D.caseSensitive?B:P??(P=B.toLowerCase())).startsWith(z)))){if(q){if(A)continue;const K=a.slice(x).join("/").slice(-q.length);if((D.caseSensitive?K:K.toLowerCase())!==q)continue}m.push({node:D,index:f,skipped:j,depth:w+1,statics:b,dynamics:E,optionals:_,extract:C,rawParams:T})}}if(y.optional){const k=j|1<<w,D=w+1;for(let z=y.optional.length-1;z>=0;z--){const q=y.optional[z];m.push({node:q,index:x,skipped:k,depth:D,statics:b,dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A)for(let z=y.optional.length-1;z>=0;z--){const q=y.optional[z],{prefix:K,suffix:ne}=q;if(K||ne){const se=q.caseSensitive?B:P??(P=B.toLowerCase());if(K&&!se.startsWith(K)||ne&&!se.endsWith(ne))continue}m.push({node:q,index:x+1,skipped:j,depth:D,statics:b,dynamics:E,optionals:_+Mc(f,x),extract:C,rawParams:T})}}if(!A&&y.dynamic&&B)for(let k=y.dynamic.length-1;k>=0;k--){const D=y.dynamic[k],{prefix:z,suffix:q}=D;if(z||q){const K=D.caseSensitive?B:P??(P=B.toLowerCase());if(z&&!K.startsWith(z)||q&&!K.endsWith(q))continue}m.push({node:D,index:x+1,skipped:j,depth:w+1,statics:b,dynamics:E+Mc(f,x),optionals:_,extract:C,rawParams:T})}if(!A&&y.staticInsensitive){const k=y.staticInsensitive.get(P??(P=B.toLowerCase()));k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:b+Mc(f,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A&&y.static){const k=y.static.get(B);k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:b+Mc(f,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(y.pathless){const k=w+1;for(let D=y.pathless.length-1;D>=0;D--){const z=y.pathless[D];m.push({node:z,index:x,skipped:j,depth:k,statics:b,dynamics:E,optionals:_,extract:C,rawParams:T})}}}if(p)return p;if(i&&g){let v=g.index;for(let x=0;x<g.index;x++)v+=a[x].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 Mc(t,a){return 2**(t-a-1)}function DE(t,a){return t===2**(a-1)-1}function xb(t,a,r){let i,o;try{[i,o]=p0(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 Oc(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===Cs)>(t.node.kind===Cs)||a.node.kind===Cs==(t.node.kind===Cs)&&a.depth>t.depth))):!0}function $c(t){return jm(t.filter(a=>a!==void 0).join("/"))}function jm(t){return t.replace(/\/{2,}/g,"/")}function y0(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Da(t){const a=t.length;return a>1&&t[a-1]==="/"?t.replace(/\/{1,}$/,""):t}function v0(t){return Da(y0(t))}function ru(t,a){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${a}/`?t.slice(0,-1):t}function LE(t,a,r){return ru(t,r)===ru(a,r)}function zE({base:t,to:a,trailingSlash:r="never",cache:i}){const o=a.startsWith("/"),u=!o&&a===".";let f;if(i){f=o?a:u?t:t+"\0"+a;const p=i.get(f);if(p)return p}let m;if(u)m=t.split("/");else if(o)m=a.split("/");else{for(m=t.split("/");m.length>1&&Kl(m)==="";)m.pop();const p=a.split("/");for(let v=0,y=p.length;v<y;v++){const x=p[v];x===""?v?v===y-1&&m.push(x):m=[x]:x===".."?m.pop():x==="."||m.push(x)}}m.length>1&&(Kl(m)===""?r==="never"&&m.pop():r==="always"&&m.push(""));const g=jm(m.join("/"))||"/";return f&&i&&i.set(f,g),g}function BE(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,u=>a.get(u)??u)}function hh(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=>wb(o,r)).join("/"):wb(i,r)}function Sb({path:t,params:a,decoder:r,...i}){let o=!1;const u=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:u,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:u,isMissingParams:o};const f=t.length;let m=0,g,p="";for(;m<f;){const v=m;g=m0(t,v,g);const y=g[5];if(m=y+1,v===y)continue;const x=g[0];if(x===0){p+="/"+t.substring(v,y);continue}if(x===2){const j=a._splat;u._splat=j,u["*"]=j;const w=t.substring(v,g[1]),b=t.substring(g[4],y);if(!j){o=!0,(w||b)&&(p+="/"+w+b);continue}const E=hh("_splat",a,r);p+="/"+w+E+b;continue}if(x===1){const j=t.substring(g[2],g[3]);!o&&!(j in a)&&(o=!0),u[j]=a[j];const w=t.substring(v,g[1]),b=t.substring(g[4],y),E=hh(j,a,r)??"undefined";p+="/"+w+E+b;continue}if(x===3){const j=t.substring(g[2],g[3]),w=a[j];if(w==null)continue;u[j]=w;const b=t.substring(v,g[1]),E=t.substring(g[4],y),_=hh(j,a,r)??"";p+="/"+b+_+E;continue}}return t.endsWith("/")&&(p+="/"),{usedParams:u,interpolatedPath:p||"/",isMissingParams:o}}function wb(t,a){const r=encodeURIComponent(t);return(a==null?void 0:a(r))??r}function zt(t){return(t==null?void 0:t.isNotFound)===!0}function UE(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 mh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function PE(t){const a=new URLSearchParams(t),r=Object.create(null);for(const[i,o]of a.entries()){const u=r[i];u==null?r[i]=mh(o):Array.isArray(u)?u.push(mh(o)):r[i]=[u,mh(o)]}return r}const FE=qE(JSON.parse),HE=GE(JSON.stringify,JSON.parse);function qE(t){return a=>{a[0]==="?"&&(a=a.substring(1));const r=PE(a);for(const i in r){const o=r[i];if(typeof o=="string")try{r[i]=t(o)}catch{}}return r}}function GE(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 u=UE(o,i);return u?`?${u}`:""}}const vr="__root__";function IE(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 en(t){return t instanceof Response&&!!t.options}const Fh=t=>{var a;if(!t.rendered)return t.rendered=!0,(a=t.onReady)==null?void 0:a.call(t)},QE=t=>t.stores.matchesId.get().some(a=>{var r;return(r=t.stores.matchStores.get(a))==null?void 0:r.get()._forcePending}),ju=(t,a)=>!!(t.preload&&!t.router.stores.matchStores.has(a)),br=(t,a,r=!0)=>{const i={...t.router.options.context??{}},o=r?a:a-1;for(let u=0;u<=o;u++){const f=t.matches[u];if(!f)continue;const m=t.router.getMatch(f.id);m&&Object.assign(i,m.__routeContext,m.__beforeLoadContext)}return i},jb=(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 u=r?t.matches.findIndex(f=>f.routeId===r):t.firstBadMatchIndex??t.matches.length-1;u<0&&(u=o);for(let f=u;f>=0;f--){const m=t.matches[f];if(t.router.looseRoutesById[m.routeId].options.notFoundComponent)return f}return r?u:o},_s=(t,a,r)=>{var i,o,u;if(!(!en(r)&&!zt(r)))throw en(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:en(r)?"redirected":zt(r)?"notFound":f.status==="pending"?"success":f.status,context:br(t,a.index),isFetching:!1,error:r})),zt(r)&&!r.routeId&&(r.routeId=a.routeId),(u=a._nonReactive.loadPromise)==null||u.resolve()),en(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r))),r},b0=(t,a)=>{const r=t.router.getMatch(a);return!!(!r||r._nonReactive.dehydrated)},Eb=(t,a,r)=>{const i=br(t,r);t.updateMatch(a,o=>({...o,context:i}))},Il=(t,a,r)=>{var f,m;const{id:i,routeId:o}=t.matches[a],u=t.router.looseRoutesById[o];if(r instanceof Promise)throw r;t.firstBadMatchIndex??(t.firstBadMatchIndex=a),_s(t,t.router.getMatch(i),r);try{(m=(f=u.options).onError)==null||m.call(f,r)}catch(g){r=g,_s(t,t.router.getMatch(i),r)}t.updateMatch(i,g=>{var p,v;return(p=g._nonReactive.beforeLoadPromise)==null||p.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&&!en(r)&&!zt(r)&&(t.serialError??(t.serialError=r))},x0=(t,a,r,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const o=r.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!ju(t,a)&&(r.options.loader||r.options.beforeLoad||w0(r))&&typeof o=="number"&&o!==1/0&&(r.options.pendingComponent??((u=t.router.options)==null?void 0:u.defaultPendingComponent))){const f=setTimeout(()=>{Fh(t)},o);i._nonReactive.pendingTimeout=f}},VE=(t,a,r)=>{const i=t.router.getMatch(a);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;x0(t,a,r,i);const o=()=>{const u=t.router.getMatch(a);u.preload&&(u.status==="redirected"||u.status==="notFound")&&_s(t,u,u.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(o):o()},YE=(t,a,r,i)=>{const o=t.router.getMatch(a);let u=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Li(()=>{u==null||u.resolve(),u=void 0});const{paramsError:f,searchError:m}=o;f&&Il(t,r,f),m&&Il(t,r,m),x0(t,a,i,o);const g=new AbortController;let p=!1;const v=()=>{p||(p=!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,B=>({...B,isFetching:!1}))};if(!i.options.beforeLoad){t.router.batch(()=>{v(),y()});return}o._nonReactive.beforeLoadPromise=Li();const x={...br(t,r,!1),...o.__routeContext},{search:j,params:w,cause:b}=o,E=ju(t,a),_={search:j,abortController:g,params:w,preload:E,context:x,location:t.location,navigate:A=>t.router.navigate({...A,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:E?"preload":b,matches:t.matches,routeId:i.id,...t.router.options.additionalContext},C=A=>{if(A===void 0){t.router.batch(()=>{v(),y()});return}(en(A)||zt(A))&&(v(),Il(t,r,A)),t.router.batch(()=>{v(),t.updateMatch(a,B=>({...B,__beforeLoadContext:A})),y()})};let T;try{if(T=i.options.beforeLoad(_),Zl(T))return v(),T.catch(A=>{Il(t,r,A)}).then(C)}catch(A){v(),Il(t,r,A)}C(T)},$E=(t,a)=>{const{id:r,routeId:i}=t.matches[a],o=t.router.looseRoutesById[i],u=()=>m(),f=()=>YE(t,r,a,o),m=()=>{if(b0(t,r))return;const g=VE(t,r,o);return Zl(g)?g.then(f):f()};return u()},KE=(t,a,r)=>{var u,f,m,g,p,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=(u=r.options).head)==null?void 0:f.call(u,o),(g=(m=r.options).scripts)==null?void 0:g.call(m,o),(v=(p=r.options).headers)==null?void 0:v.call(p,o)]).then(([y,x,j])=>({meta:y==null?void 0:y.meta,links:y==null?void 0:y.links,headScripts:y==null?void 0:y.scripts,headers:j,scripts:x,styles:y==null?void 0:y.styles}))},S0=(t,a,r,i,o)=>{const u=a[i-1],{params:f,loaderDeps:m,abortController:g,cause:p}=t.router.getMatch(r),v=br(t,i),y=ju(t,r);return{params:f,deps:m,preload:!!y,parentMatchPromise:u,abortController:g,context:v,location:t.location,navigate:x=>t.router.navigate({...x,_fromLocation:t.location}),cause:y?"preload":p,route:o,...t.router.options.additionalContext}},Nb=async(t,a,r,i,o)=>{var u,f,m,g,p;try{const v=t.router.getMatch(r);try{(!(u0??t.router.isServer)||v.ssr===!0)&&Wl(o);const y=o.options.loader,x=typeof y=="function"?y:y==null?void 0:y.handler,j=x==null?void 0:x(S0(t,a,r,i,o)),w=!!x&&Zl(j);if((w||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||v._nonReactive.minPendingPromise)&&t.updateMatch(r,E=>({...E,isFetching:"loader"})),x){const E=w?await j:j;_s(t,t.router.getMatch(r),E),E!==void 0&&t.updateMatch(r,_=>({..._,loaderData:E}))}o._lazyPromise&&await o._lazyPromise;const b=v._nonReactive.minPendingPromise;b&&await b,o._componentsPromise&&await o._componentsPromise,t.updateMatch(r,E=>({...E,error:void 0,context:br(t,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let x=y;if((x==null?void 0:x.name)==="AbortError"){if(v.abortController.signal.aborted){(u=v._nonReactive.loaderPromise)==null||u.resolve(),v._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,w=>({...w,status:w.status==="pending"?"success":w.status,isFetching:!1,context:br(t,i)}));return}const j=v._nonReactive.minPendingPromise;j&&await j,zt(y)&&await((m=(f=o.options.notFoundComponent)==null?void 0:f.preload)==null?void 0:m.call(f)),_s(t,t.router.getMatch(r),y);try{(p=(g=o.options).onError)==null||p.call(g,y)}catch(w){x=w,_s(t,t.router.getMatch(r),w)}!en(x)&&!zt(x)&&await Wl(o,["errorComponent"]),t.updateMatch(r,w=>({...w,error:x,context:br(t,i),status:"error",isFetching:!1}))}}catch(v){const y=t.router.getMatch(r);y&&(y._nonReactive.loaderPromise=void 0),_s(t,y,v)}},ZE=async(t,a,r)=>{var j,w,b,E;async function i(_,C,T,A,B){const P=Date.now()-C.updatedAt,k=_?B.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:B.options.staleTime??t.router.options.defaultStaleTime??0,D=B.options.shouldReload,z=typeof D=="function"?D(S0(t,a,o,r,B)):D,{status:q,invalid:K}=A,ne=P>=k&&(!!t.forceStaleReload||A.cause==="enter"||T!==void 0&&T!==A.id);f=q==="success"&&(K||(z??ne)),_&&B.options.preload===!1||(f&&!t.sync&&v?(m=!0,(async()=>{var se,te;try{await Nb(t,a,o,r,B);const ce=t.router.getMatch(o);(se=ce._nonReactive.loaderPromise)==null||se.resolve(),(te=ce._nonReactive.loadPromise)==null||te.resolve(),ce._nonReactive.loaderPromise=void 0,ce._nonReactive.loadPromise=void 0}catch(ce){en(ce)&&await t.router.navigate(ce.options)}})()):q!=="success"||f?await Nb(t,a,o,r,B):Eb(t,o,r))}const{id:o,routeId:u}=t.matches[r];let f=!1,m=!1;const g=t.router.looseRoutesById[u],p=g.options.loader,v=((typeof p=="function"||p==null?void 0:p.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(b0(t,o)){if(!t.router.getMatch(o))return t.matches[r];Eb(t,o,r)}else{const _=t.router.getMatch(o),C=t.router.stores.matchesId.get()[r],T=((j=C&&t.router.stores.matchStores.get(C)||null)==null?void 0:j.routeId)===u?C:(w=t.router.stores.matches.get().find(B=>B.routeId===u))==null?void 0:w.id,A=ju(t,o);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!t.sync&&!_.preload&&v)return _;await _._nonReactive.loaderPromise;const B=t.router.getMatch(o),P=B._nonReactive.error||B.error;P&&_s(t,B,P),B.status==="pending"&&await i(A,_,T,B,g)}else{const B=A&&!t.router.stores.matchStores.has(o),P=t.router.getMatch(o);P._nonReactive.loaderPromise=Li(),B!==P.preload&&t.updateMatch(o,k=>({...k,preload:B})),await i(A,_,T,P,g)}}const y=t.router.getMatch(o);m||((b=y._nonReactive.loaderPromise)==null||b.resolve(),(E=y._nonReactive.loadPromise)==null||E.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,m||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const x=m?y.isFetching:!1;return x!==y.isFetching||y.invalid!==!1?(t.updateMatch(o,_=>({..._,isFetching:x,invalid:!1})),t.router.getMatch(o)):y};async function Rb(t){var x,j;const a=t,r=[];QE(a.router)&&Fh(a);let i;for(let w=0;w<a.matches.length;w++){try{const b=$E(a,w);Zl(b)&&await b}catch(b){if(en(b))throw b;if(zt(b))i=b;else if(!a.preload)throw b;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,u=i&&!a.preload?jb(a,i):void 0,f=i&&a.preload?0:u!==void 0?Math.min(u+1,o):o;let m,g;for(let w=0;w<f;w++)r.push(ZE(a,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const b of w){if(b.status!=="rejected")continue;const E=b.reason;if(en(E))throw E;zt(E)?m??(m=E):g??(g=E)}if(g!==void 0)throw g}const p=m??(i&&!a.preload?i:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!p&&i&&a.preload)return a.matches;if(p){const w=jb(a,p);w===void 0&&La();const b=a.matches[w],E=a.router.looseRoutesById[b.routeId],_=(x=a.router.options)==null?void 0:x.defaultNotFoundComponent;!E.options.notFoundComponent&&_&&(E.options.notFoundComponent=_),p.routeId=b.routeId;const C=b.routeId===a.router.routeTree.id;a.updateMatch(b.id,T=>({...T,...C?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),v=w,await Wl(E,["notFoundComponent"])}else if(!a.preload){const w=a.matches[0];w.globalNotFound||(j=a.router.getMatch(w.id))!=null&&j.globalNotFound&&a.updateMatch(w.id,b=>({...b,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const w=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Wl(w,["errorComponent"])}for(let w=0;w<=v;w++){const{id:b,routeId:E}=a.matches[w],_=a.router.looseRoutesById[E];try{const C=KE(a,b,_);if(C){const T=await C;a.updateMatch(b,A=>({...A,...T}))}}catch(C){console.error(`Error executing head for route ${E}:`,C)}}const y=Fh(a);if(Zl(y)&&await y,p)throw p;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function Cb(t,a){const r=a.map(i=>{var o,u;return(u=(o=t.options[i])==null?void 0:o.preload)==null?void 0:u.call(o)}).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Wl(t,a=Kc){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(i=>{const{id:o,...u}=i.options;Object.assign(t.options,u),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const r=()=>t._componentsLoaded?void 0:a===Kc?(()=>{if(t._componentsPromise===void 0){const i=Cb(t,Kc);i?t._componentsPromise=i.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():Cb(t,a);return t._lazyPromise?t._lazyPromise.then(r):r()}function w0(t){var a;for(const r of Kc)if((a=t.options[r])!=null&&a.preload)return!0;return!1}const Kc=["component","errorComponent","pendingComponent","notFoundComponent"];function XE(t){return{input:({url:a})=>{for(const r of t)a=Hh(r,a);return a},output:({url:a})=>{for(let r=t.length-1;r>=0;r--)a=j0(t[r],a);return a}}}function WE(t){const a=v0(t.basepath),r=`/${a}`,i=t.caseSensitive?r:r.toLowerCase(),o=`${i}/`;return{input:({url:u})=>{const f=t.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===i?u.pathname="/":f.startsWith(o)&&(u.pathname=u.pathname.slice(r.length)),u},output:({url:u})=>(u.pathname=$c(["/",a,u.pathname]),u)}}function Hh(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 j0(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 JE(t,a){const{createMutableStore:r,createReadonlyStore:i,batch:o,init:u}=a,f=new Map,m=new Map,g=new Map,p=r(t.status),v=r(t.loadedAt),y=r(t.isLoading),x=r(t.isTransitioning),j=r(t.location),w=r(t.resolvedLocation),b=r(t.statusCode),E=r(t.redirect),_=r([]),C=r([]),T=r([]),A=i(()=>ph(f,_.get())),B=i(()=>ph(m,C.get())),P=i(()=>ph(g,T.get())),k=i(()=>_.get()[0]),D=i(()=>_.get().some(V=>{var ee;return((ee=f.get(V))==null?void 0:ee.get().status)==="pending"})),z=i(()=>{var V;return{locationHref:j.get().href,resolvedLocationHref:(V=w.get())==null?void 0:V.href,status:p.get()}}),q=i(()=>({status:p.get(),loadedAt:v.get(),isLoading:y.get(),isTransitioning:x.get(),matches:A.get(),location:j.get(),resolvedLocation:w.get(),statusCode:b.get(),redirect:E.get()})),K=Xl(64);function ne(V){let ee=K.get(V);return ee||(ee=i(()=>{const ye=_.get();for(const ae of ye){const L=f.get(ae);if(L&&L.routeId===V)return L.get()}}),K.set(V,ee)),ee}const se={status:p,loadedAt:v,isLoading:y,isTransitioning:x,location:j,resolvedLocation:w,statusCode:b,redirect:E,matchesId:_,pendingIds:C,cachedIds:T,matches:A,pendingMatches:B,cachedMatches:P,firstId:k,hasPending:D,matchRouteDeps:z,matchStores:f,pendingMatchStores:m,cachedMatchStores:g,__store:q,getRouteMatchStore:ne,setMatches:te,setPending:ce,setCached:F};te(t.matches),u==null||u(se);function te(V){gh(V,f,_,r,o)}function ce(V){gh(V,m,C,r,o)}function F(V){gh(V,g,T,r,o)}return se}function ph(t,a){const r=[];for(const i of a){const o=t.get(i);o&&r.push(o.get())}return r}function gh(t,a,r,i,o){const u=t.map(m=>m.id),f=new Set(u);o(()=>{for(const m of a.keys())f.has(m)||a.delete(m);for(const m of t){const g=a.get(m.id);if(!g){const p=i(m);p.routeId=m.routeId,a.set(m.id,p);continue}g.routeId=m.routeId,g.get()!==m&&g.set(m)}EE(r.get(),u)||r.set(u)})}var As="__TSR_index",_b="popstate",Ab="beforeunload";function e2(t){let a=t.getLocation();const r=new Set,i=f=>{a=t.getLocation(),r.forEach(m=>m({location:a,action:f}))},o=f=>{t.notifyOnIndexChange??!0?i(f):a=t.getLocation()},u=async({task:f,navigateOpts:m,...g})=>{var y,x;if((m==null?void 0:m.ignoreBlocker)??!1){f();return}const p=((y=t.getBlockers)==null?void 0:y.call(t))??[],v=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&p.length&&v)for(const j of p){const w=iu(g.path,g.state);if(await j.blockerFn({currentLocation:a,nextLocation:w,action:g.type})){(x=t.onBlocked)==null||x.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,m,g)=>{const p=a.state[As];m=Tb(p+1,m),u({task:()=>{t.pushState(f,m),i({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:f,state:m})},replace:(f,m,g)=>{const p=a.state[As];m=Tb(p,m),u({task:()=>{t.replaceState(f,m),i({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:f,state:m})},go:(f,m)=>{u({task:()=>{t.go(f),o({type:"GO",index:f})},navigateOpts:m,type:"GO"})},back:f=>{u({task:()=>{t.back((f==null?void 0:f.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:f,type:"BACK"})},forward:f=>{u({task:()=>{t.forward((f==null?void 0:f.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:f,type:"FORWARD"})},canGoBack:()=>a.state[As]!==0,createHref:f=>t.createHref(f),block:f=>{var g;if(!t.setBlockers)return()=>{};const m=((g=t.getBlockers)==null?void 0:g.call(t))??[];return t.setBlockers([...m,f]),()=>{var v,y;const p=((v=t.getBlockers)==null?void 0:v.call(t))??[];(y=t.setBlockers)==null||y.call(t,p.filter(x=>x!==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 Tb(t,a){a||(a={});const r=Em();return{...a,key:r,__TSR_key:r,[As]:t}}function t2(t){var D,z;const a=typeof document<"u"?window:void 0,r=a.history.pushState,i=a.history.replaceState;let o=[];const u=()=>o,f=q=>o=q,m=(q=>q),g=(()=>iu(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((D=a.history.state)!=null&&D.__TSR_key)&&!((z=a.history.state)!=null&&z.key)){const q=Em();a.history.replaceState({[As]:0,key:q,__TSR_key:q},"")}let p=g(),v,y=!1,x=!1,j=!1,w=!1;const b=()=>p;let E,_;const C=()=>{E&&(k._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),k._ignoreSubscribers=!1,E=void 0,_=void 0,v=void 0)},T=(q,K,ne)=>{const se=m(K);_||(v=p),p=iu(K,ne),E={href:se,state:ne,isPush:(E==null?void 0:E.isPush)||q==="push"},_||(_=Promise.resolve().then(()=>C()))},A=q=>{p=g(),k.notify({type:q})},B=async()=>{if(x){x=!1;return}const q=g(),K=q.state[As]-p.state[As],ne=K===1,se=K===-1,te=!ne&&!se||y;y=!1;const ce=te?"GO":se?"BACK":"FORWARD",F=te?{type:"GO",index:K}:{type:se?"BACK":"FORWARD"};if(j)j=!1;else{const V=u();if(typeof document<"u"&&V.length){for(const ee of V)if(await ee.blockerFn({currentLocation:p,nextLocation:q,action:ce})){x=!0,a.history.go(1),k.notify(F);return}}}p=g(),k.notify(F)},P=q=>{if(w){w=!1;return}let K=!1;const ne=u();if(typeof document<"u"&&ne.length)for(const se of ne){const te=se.enableBeforeUnload??!0;if(te===!0){K=!0;break}if(typeof te=="function"&&te()===!0){K=!0;break}}if(K)return q.preventDefault(),q.returnValue=""},k=e2({getLocation:b,getLength:()=>a.history.length,pushState:(q,K)=>T("push",q,K),replaceState:(q,K)=>T("replace",q,K),back:q=>(q&&(j=!0),w=!0,a.history.back()),forward:q=>{q&&(j=!0),w=!0,a.history.forward()},go:q=>{y=!0,a.history.go(q)},createHref:q=>m(q),flush:C,destroy:()=>{a.history.pushState=r,a.history.replaceState=i,a.removeEventListener(Ab,P,{capture:!0}),a.removeEventListener(_b,B)},onBlocked:()=>{v&&p!==v&&(p=v)},getBlockers:u,setBlockers:f,notifyOnIndexChange:!1});return a.addEventListener(Ab,P,{capture:!0}),a.addEventListener(_b,B),a.history.pushState=function(...q){const K=r.apply(a.history,q);return k._ignoreSubscribers||A("PUSH"),K},a.history.replaceState=function(...q){const K=i.apply(a.history,q);return k._ignoreSubscribers||A("REPLACE"),K},k}function n2(t){let a=t.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function iu(t,a){const r=n2(t),i=r.indexOf("#"),o=r.indexOf("?"),u=Em();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||{[As]:0,key:u,__TSR_key:u}}}function Em(){return(Math.random()+1).toString(36).substring(7)}function vi(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 qh=new WeakMap;var a2=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)??"/",u=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=BE(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=t2()),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=Xl(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=JE(r2(this.latestLocation),y),g2(this)}let m=!1;const g=this.options.basepath??"/",p=this.options.rewrite;if(u||o!==g||f!==p){this.basepath=g;const y=[],x=v0(g);x&&x!=="/"&&y.push(WE({basepath:g})),p&&y.push(p),this.rewrite=y.length===0?void 0:y.length===1?y[0]:XE(y),this.history&&this.updateLatestLocation(),m=!0}m&&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=kE(this.routeTree,this.options.caseSensitive,(i,o)=>{i.init({originalIndex:o})});return this.options.routeMasks&&RE(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:p,hash:v,href:y,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const _=this.options.parseSearch(p),C=this.options.stringifySearch(_);return{href:g+C+v,publicHref:g+C+v,pathname:Gl(g).path,external:!1,searchStr:C,search:tr(i==null?void 0:i.search,_),hash:Gl(v.slice(1)).path,state:rr(i==null?void 0:i.state,x)}}const j=new URL(y,this.origin),w=Hh(this.rewrite,j),b=this.options.parseSearch(w.search),E=this.options.stringifySearch(b);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:y,pathname:Gl(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:E,search:tr(i==null?void 0:i.search,b),hash:Gl(w.hash.slice(1)).path,state:rr(i==null?void 0:i.state,x)}},u=o(r),{__tempLocation:f,__tempKey:m}=u.state;if(f&&(!m||m===this.tempLocationKey)){const g=o(f);return g.state.key=u.state.key,g.state.__TSR_key=u.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:u}}return u},this.resolvePathWithBase=(r,i)=>zE({base:r,to:i.includes("//")?jm(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=>i2({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=(u={})=>{var K,ne;const f=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(f);u.from;const g=u.unsafeRelative==="path"?f.pathname:u.from??m.fullPath,p=u.to?`${u.to}`:void 0,v=m.search,y=Object.assign(Object.create(null),m.params),x=(p==null?void 0:p.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),j=p?this.resolvePathWithBase(x,p):x,w=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?y:Object.assign(y,sr(u.params,y)),b=this.routesByPath[Da(j)];let E;if(b)E=this.getRouteBranch(b);else if(j.includes("$"))E=[];else{const se=this.getMatchedRoutes(j);E=se.matchedRoutes,this.options.notFoundRoute&&(!se.foundRoute||se.foundRoute.path!=="/"&&se.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&f0(w))for(const se of E){const te=((K=se.options.params)==null?void 0:K.stringify)??se.options.stringifyParams;if(te)try{Object.assign(w,te(w))}catch{}}const _=r.leaveParams?j:Gl(Sb({path:j,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={};E.forEach(te=>{if(te.options.validateSearch)try{Object.assign(se,Zc(te.options.validateSearch,{...se,...C}))}catch{}}),C=se}C=l2({search:C,dest:u,destRoutes:E,_includeValidateSearch:r._includeValidateSearch}),C=tr(v,C);const T=this.options.stringifySearch(C),A=u.hash===!0?f.hash:u.hash?sr(u.hash,f.hash):void 0,B=A?`#${A}`:"";let P=u.state===!0?f.state:u.state?sr(u.state,f.state):{};P=rr(f.state,P);const k=`${_}${T}${B}`;let D,z,q=!1;if(this.rewrite){const se=new URL(k,this.origin),te=j0(this.rewrite,se);D=se.href.replace(se.origin,""),te.origin!==this.origin?(z=te.href,q=!0):z=te.pathname+te.search+te.hash}else D=jE(k),z=D;return{publicHref:z,href:D,pathname:_,search:C,searchStr:T,state:P,hash:A??"",external:q,unmaskOnReload:u.unmaskOnReload}},o=(u={},f)=>{const m=i(u);let g=f?i(f):void 0;if(!g){const p=Object.create(null);if(this.options.routeMasks){const v=CE(m.pathname,this.processedTree);if(v){Object.assign(p,v.rawParams);const{from:y,params:x,...j}=v.route,w=x===!1||x===null?Object.create(null):(x??!0)===!0?p:Object.assign(p,sr(x,p));f={from:r.from,...j,params:w},g=i(f)}}}return g&&(m.maskedLocation=g),m};return r.mask?o(r,{from:r.from,...r.mask}):o(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:i,...o})=>{let u;const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const v=yr(o.state,this.latestLocation.state);return p.forEach(y=>{delete o.state[y]}),v},m=Da(this.latestLocation.href)===Da(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Li(()=>{g==null||g.resolve(),g=void 0}),m&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...y}=o;p&&(y={...p,state:{...p.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,u=o.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(u?{action:{type:u}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:i,hashScrollIntoView:o,viewTransition:u,ignoreBlocker:f,href:m,...g}={})=>{if(m){const y=this.history.location.state.__TSR_index,x=iu(m,{__TSR_index:r?y:y+1}),j=new URL(x.pathname,this.origin);g.to=Hh(this.rewrite,j).pathname,g.search=this.options.parseSearch(x.search),g.hash=x.hash.slice(1)}const p=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const v=this.commitLocation({...p,viewTransition:u,replace:r,resetScroll:i,hashScrollIntoView:o,ignoreBlocker:f});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:r,reloadDocument:i,href:o,publicHref:u,...f})=>{var g,p;let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!i&&(i=!0),i){if(r!==void 0||!o){const y=this.buildLocation({to:r,...f});o=o??y.publicHref,u=u??y.publicHref}const v=!m&&u?u:o;if(su(v,this.protocolAllowlist))return Promise.resolve();if(!f.ignoreBlocker){const y=((p=(g=this.history).getBlockers)==null?void 0:p.call(g))??[];for(const x of y)if(x!=null&&x.blockerFn&&await x.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(u=>u.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 p;const i=(p=r==null?void 0:r.action)==null?void 0:p.type;let o,u,f;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(f=new Promise(v=>{this.startTransition(async()=>{var y;try{this.beforeLoad(),i?qh.set(this.latestLocation,i):qh.delete(this.latestLocation);const x=this.latestLocation,j=vi(x,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...j}),this.emit({type:"onBeforeLoad",...j}),await Rb({router:this,sync:r==null?void 0:r.sync,forceStaleReload:m.href===x.href,matches:this.stores.pendingMatches.get(),location:x,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var C,T;let w=null,b=null,E=null,_=null;this.batch(()=>{const A=this.stores.pendingMatches.get(),B=A.length,P=this.stores.matches.get();w=B?P.filter(z=>!this.stores.pendingMatchStores.has(z.id)):null;const k=new Set;for(const z of this.stores.pendingMatchStores.values())z.routeId&&k.add(z.routeId);const D=new Set;for(const z of this.stores.matchStores.values())z.routeId&&D.add(z.routeId);b=B?P.filter(z=>!k.has(z.routeId)):null,E=B?A.filter(z=>!D.has(z.routeId)):null,_=B?A.filter(z=>D.has(z.routeId)):P,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),B&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(z=>z.status!=="error"&&z.status!=="notFound"&&z.status!=="redirected")]),this.clearExpiredCache())});for(const[A,B]of[[b,"onLeave"],[E,"onEnter"],[_,"onStay"]])if(A)for(const P of A)(T=(C=this.looseRoutesById[P.routeId].options)[B])==null||T.call(C,P)})})}})}catch(x){en(x)?(o=x,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):zt(x)&&(u=x);const j=o?o.status:u?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(j),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 u=this.latestLocation,f=this.stores.resolvedLocation.get(),m=typeof i.types=="function"?i.types(vi(u,f)):i.types;if(m===!1){r();return}o={update:r,types:m}}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 u=this.stores.matchStores.get(r);if(u){u.set(i);return}const f=this.stores.cachedMatchStores.get(r);if(f){const m=i(f.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(g=>g.filter(p=>p!==r)):f.set(m)}})},this.getMatch=r=>{var i,o,u;return((i=this.stores.cachedMatchStores.get(r))==null?void 0:i.get())??((o=this.stores.pendingMatchStores.get(r))==null?void 0:o.get())??((u=this.stores.matchStores.get(r))==null?void 0:u.get())},this.invalidate=r=>{const i=o=>{var u;return((u=r==null?void 0:r.filter)==null?void 0:u.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),u=this.getParsedLocationHref(o);r.options.href=u,r.headers.set("Location",u)}else if(i)try{const o=new URL(i);if(this.origin&&o.origin===this.origin){const u=o.pathname+o.search+o.hash;r.options.href=u,r.headers.set("Location",u)}}catch{}if(r.options.href&&!r.options._builtLocation&&su(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 u=this.looseRoutesById[o.routeId];if(!u.options.loader)return!0;const f=(o.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:r-o.updatedAt>=f};this.clearCache({filter:i})},this.loadRouteChunk=Wl,this.preloadRoute=async r=>{const i=r._builtLocation??this.buildLocation(r);let o=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:r});const u=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),f=new Set([...u,...this.stores.cachedIds.get()]),m=o.filter(g=>!f.has(g.id));if(m.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...m])}try{return o=await Rb({router:this,matches:o,location:i,preload:!0,updateMatch:(g,p)=>{u.has(g)?o=o.map(v=>v.id===g?p(v):v):this.updateMatch(g,p)}}),o}catch(g){if(en(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:i});zt(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},u=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(),m=_E(u.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!m||r.params&&!yr(m.rawParams,r.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?yr(f.search,u.search,{partial:!0})?m.rawParams:!1:m.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??HE,parseSearch:t.parseSearch??FE,protocolAllowlist:t.protocolAllowlist??wE}),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=g0(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:u}=r,f=!1;(i?i.path!=="/"&&o["**"]:Da(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:f=!0);const m=f?c2(this.options.notFoundMode,u):void 0,g=new Array(u.length),p=new Map;for(const x of this.stores.matchStores.values())x.routeId&&p.set(x.routeId,x.get());for(let x=0;x<u.length;x++){const j=u[x],w=g[x-1];let b,E,_;{const te=(w==null?void 0:w.search)??t.search,ce=(w==null?void 0:w._strictSearch)??void 0;try{const F=Zc(j.options.validateSearch,{...te})??void 0;b={...te,...F},E={...ce,...F},_=void 0}catch(F){let V=F;if(F instanceof lu||(V=new lu(F.message,{cause:F})),a!=null&&a.throwOnError)throw V;b=te,E={},_=V}}const C=((y=(v=j.options).loaderDeps)==null?void 0:y.call(v,{search:b}))??"",T=C?JSON.stringify(C):"",{interpolatedPath:A,usedParams:B}=Sb({path:j.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),P=j.id+A+T,k=this.getMatch(P),D=p.get(j.id),z=(k==null?void 0:k._strictParams)??B;let q;if(!k)try{kb(j,z)}catch(te){if(zt(te)||en(te)?q=te:q=new s2(te.message,{cause:te}),a!=null&&a.throwOnError)throw q}Object.assign(o,z);const K=D?"stay":"enter";let ne;if(k)ne={...k,cause:K,params:(D==null?void 0:D.params)??o,_strictParams:z,search:tr(D?D.search:k.search,b),_strictSearch:E};else{const te=j.options.loader||j.options.beforeLoad||j.lazyFn||w0(j)?"pending":"success";ne={id:P,ssr:j.options.ssr,index:x,routeId:j.id,params:(D==null?void 0:D.params)??o,_strictParams:z,pathname:A,updatedAt:Date.now(),search:D?tr(D.search,b):b,_strictSearch:E,searchError:void 0,status:te,isFetching:!1,error:void 0,paramsError:q,__routeContext:void 0,_nonReactive:{loadPromise:Li()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:K,loaderDeps:D?rr(D.loaderDeps,C):C,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:j.options.staticData||{},fullPath:j.fullPath}}a!=null&&a.preload||(ne.globalNotFound=m===j.id),ne.searchError=_;const se=this.getParentContext(w);ne.context={...se,...ne.__routeContext,...ne.__beforeLoadContext},g[x]=ne}for(let x=0;x<g.length;x++){const j=g[x],w=this.looseRoutesById[j.routeId],b=this.getMatch(j.id),E=p.get(j.routeId);if(j.params=E?tr(E.params,o):o,!b){const _=g[x-1],C=this.getParentContext(_);if(w.options.context){const T={deps:j.loaderDeps,params:j.params,context:C??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:j.cause,abortController:j.abortController,preload:!!j.preload,matches:g,routeId:w.id};j.__routeContext=w.options.context(T)??void 0}j.context={...C,...j.__routeContext,...j.__beforeLoadContext}}}return g}matchRoutesLightweight(t){var p;const{matchedRoutes:a,routeParams:r}=this.getMatchedRoutes(t.pathname),i=Kl(a),o={...t.search};for(const v of a)try{Object.assign(o,Zc(v.options.validateSearch,o))}catch{}const u=Kl(this.stores.matchesId.get()),f=u&&((p=this.stores.matchStores.get(u))==null?void 0:p.get()),m=f&&f.routeId===i.id&&f.pathname===t.pathname;let g;if(m)g=f.params;else{const v=Object.assign(Object.create(null),r);for(const y of a)try{kb(y,v)}catch{}g=v}return{matchedRoutes:a,fullPath:i.fullPath,search:o,params:g}}},lu=class extends Error{},s2=class extends Error{};function r2(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Zc(t,a){if(t==null)return{};if("~standard"in t){const r=t["~standard"].validate(a);if(r instanceof Promise)throw new lu("Async validation not supported");if(r.issues)throw new lu(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 i2({pathname:t,routesById:a,processedTree:r}){const i=Object.create(null),o=Da(t);let u;const f=AE(o,r,!0);return f&&(u=f.route,Object.assign(i,f.rawParams)),{matchedRoutes:(f==null?void 0:f.branch)||[a.__root__],routeParams:i,foundRoute:u}}function l2({search:t,dest:a,destRoutes:r,_includeValidateSearch:i}){return o2(r)(t,a,i??!1)}function o2(t){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of t){if("search"in u.options)(o=u.options.search)!=null&&o.middlewares&&a.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const f=({search:m,next:g})=>{let p=m;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(p=u.options.preSearchFilters.reduce((y,x)=>x(y),m));const v=g(p);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((y,x)=>x(y),v):v};a.middlewares.push(f)}if(u.options.validateSearch){const f=({search:m,next:g})=>{const p=g(m);if(!a._includeValidateSearch)return p;try{return{...p,...Zc(u.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(f)}}const r=({search:u})=>{const f=a.dest;return f.search?f.search===!0?u:sr(f.search,u):{}};a.middlewares.push(r);const i=(u,f,m)=>{if(u>=m.length)return f;const g=m[u];return g({search:f,next:v=>i(u+1,v,m)})};return function(f,m,g){return a.dest=m,a._includeValidateSearch=g,i(0,f,a.middlewares)}}function c2(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 vr}function kb(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 u2(){try{return sessionStorage}catch{return}}const d2="tsr-scroll-restoration-v1_3",bi=u2();function f2(){try{return JSON.parse((bi==null?void 0:bi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function h2(){try{bi==null||bi.setItem(d2,JSON.stringify(ms))}catch{}}const ms=f2(),Mb="data-scroll-restoration-id",m2=t=>t.state.__TSR_key||t.href;function p2(t){const a=t.getAttribute(Mb);if(a)return`[${Mb}="${a}"]`;let r="",i=t,o;for(;o=i.parentNode;){let u=1,f=i;for(;f=f.previousElementSibling;)u++;const m=`${i.localName}:nth-child(${u})`;r=r?`${m} > ${r}`:m,i=o}return r}let Dc=!1;const gi="window";function Gh(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Ob(t){const a=[];for(const r of t){if(r===gi)continue;const i=Gh(r);i&&a.push(i)}return a}function g2(t,a){if(t.options.scrollRestoration&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,Dc=!1;const r=t.options.getScrollRestorationKey||m2,i=new Map,o=(m,g,p)=>{const v=i.get(m)||{};v.scrollX=g,v.scrollY=p,i.set(m,v)};history.scrollRestoration="manual";const u=m=>{if(!(Dc||!t.isScrollRestoring))if(m.target===document)o(gi,scrollX,scrollY);else{const g=m.target;o(g,g.scrollLeft,g.scrollTop)}},f=m=>{if(!t.isScrollRestoring)return;const g=ms[m]||(ms[m]={});for(const[p,v]of i)p===gi?g[gi]=v:p.isConnected&&(g[p2(p)]=v)};document.addEventListener("scroll",u,!0),t.subscribe("onBeforeLoad",m=>{m.fromLocation&&f(r(m.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{f(r(t.stores.resolvedLocation.get()??t.stores.location.get())),h2()}),t.subscribe("onRendered",m=>{var w;const g=t.options.scrollRestorationBehavior,p=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 x=r(m.toLocation),j=m.fromLocation&&r(m.fromLocation);if(t.isScrollRestoring&&j&&j!==x){const b=ms[j];if(b){let E=ms[x];for(const _ in b){if(_===gi){if(v)continue}else{const C=Gh(_);if(!C||v&&p&&(y??(y=Ob(p)),y.includes(C)))continue}E||(E=ms[x]={}),E[_]??(E[_]=b[_])}}}Dc=!0;try{const b=m.toLocation.hash,E=m.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(v){const C=qh.get(m.toLocation),T=b&&E&&(C==="PUSH"||C==="REPLACE"),A=t.isScrollRestoring?ms[x]:void 0;if(A)for(const B in A){const{scrollX:P,scrollY:k}=A[B];if(B===gi){if(T)continue;scrollTo({top:k,left:P,behavior:g}),_=!0}else{const D=Gh(B);D&&(D.scrollLeft=P,D.scrollTop=k)}}if(!_&&!b){const B={top:0,left:0,behavior:g};if(scrollTo(B),p){y??(y=Ob(p));for(const P of y)P.scrollTo(B)}}}!_&&b&&E&&((w=document.getElementById(b))==null||w.scrollIntoView(E))}finally{Dc=!1}})}const y2="Error preloading route! ☝️";var E0=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,p;this.originalIndex=a.originalIndex;const r=this.options,i=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(p=(g=this.options).getParentRoute)==null?void 0:p.call(g),i?this._path=vr:this.parentRoute||La();let o=i?vr:r==null?void 0:r.path;o&&o!=="/"&&(o=y0(o));const u=(r==null?void 0:r.id)||o;let f=i?vr:$c([this.parentRoute.id==="__root__"?"":this.parentRoute.id,u]);o==="__root__"&&(o="/"),f!=="__root__"&&(f=$c(["/",f]));const m=f==="__root__"?"/":$c([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=m,this._to=Da(m)},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=>IE({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.")}},v2=class extends E0{constructor(t){super(t)}};function Nm(t){const a=t.errorComponent??Rm;return c.jsx(b2,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:i})=>r?N.createElement(a,{error:r,reset:i}):t.children})}var b2=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 Rm({error:t}){const[a,r]=N.useState(!1);return c.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c.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"})]}),c.jsx("div",{style:{height:".25rem"}}),a?c.jsx("div",{children:c.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?c.jsx("code",{children:t.message}):null})}):null]})}function x2({children:t,fallback:a=null}){return N0()?c.jsx(xr.Fragment,{children:t}):c.jsx(xr.Fragment,{children:a})}function N0(){return xr.useSyncExternalStore(S2,()=>!0,()=>!1)}function S2(){return()=>{}}var R0=N.createContext(null);function xn(t){return N.useContext(R0)}var Eu=N.createContext(void 0),w2=N.createContext(void 0),tt=(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))(tt||{});function j2({update:t,notify:a,unwatched:r}){return{link:i,unlink:o,propagate:u,checkDirty:f,shallowPropagate:m};function i(p,v,y){const x=v.depsTail;if(x!==void 0&&x.dep===p)return;const j=x!==void 0?x.nextDep:v.deps;if(j!==void 0&&j.dep===p){j.version=y,v.depsTail=j;return}const w=p.subsTail;if(w!==void 0&&w.version===y&&w.sub===v)return;const b=v.depsTail=p.subsTail={version:y,dep:p,sub:v,prevDep:x,nextDep:j,prevSub:w,nextSub:void 0};j!==void 0&&(j.prevDep=b),x!==void 0?x.nextDep=b:v.deps=b,w!==void 0?w.nextSub=b:p.subs=b}function o(p,v=p.sub){const y=p.dep,x=p.prevDep,j=p.nextDep,w=p.nextSub,b=p.prevSub;return j!==void 0?j.prevDep=x:v.depsTail=x,x!==void 0?x.nextDep=j:v.deps=j,w!==void 0?w.prevSub=b:y.subsTail=b,b!==void 0?b.nextSub=w:(y.subs=w)===void 0&&r(y),j}function u(p){let v=p.nextSub,y;e:do{const x=p.sub;let j=x.flags;if(j&60?j&12?j&4?!(j&48)&&g(p,x)?(x.flags=j|40,j&=1):j=0:x.flags=j&-9|32:j=0:x.flags=j|32,j&2&&a(x),j&1){const w=x.subs;if(w!==void 0){const b=(p=w).nextSub;b!==void 0&&(y={value:v,prev:y},v=b);continue}}if((p=v)!==void 0){v=p.nextSub;continue}for(;y!==void 0;)if(p=y.value,y=y.prev,p!==void 0){v=p.nextSub;continue e}break}while(!0)}function f(p,v){let y,x=0,j=!1;e:do{const w=p.dep,b=w.flags;if(v.flags&16)j=!0;else if((b&17)===17){if(t(w)){const E=w.subs;E.nextSub!==void 0&&m(E),j=!0}}else if((b&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(y={value:p,prev:y}),p=w.deps,v=w,++x;continue}if(!j){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;x--;){const E=v.subs,_=E.nextSub!==void 0;if(_?(p=y.value,y=y.prev):p=E,j){if(t(v)){_&&m(E),v=p.sub;continue}j=!1}else v.flags&=-33;v=p.sub;const C=p.nextDep;if(C!==void 0){p=C;continue e}}return j}while(!0)}function m(p){do{const v=p.sub,y=v.flags;(y&48)===32&&(v.flags=y|16,(y&6)===2&&a(v))}while((p=p.nextSub)!==void 0)}function g(p,v){let y=v.depsTail;for(;y!==void 0;){if(y===p)return!0;y=y.prevDep}return!1}}function E2(t,a,r){var u,f,m;const i=typeof t=="object",o=i?t:void 0;return{next:(u=i?t.next:t)==null?void 0:u.bind(o),error:(f=i?t.error:a)==null?void 0:f.bind(o),complete:(m=i?t.complete:r)==null?void 0:m.bind(o)}}const Ih=[];let Xc=0;const{link:Db,unlink:N2,propagate:R2,checkDirty:C0,shallowPropagate:Lb}=j2({update(t){return t._update()},notify(t){Ih[Qh++]=t,t.flags&=~tt.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=tt.Mutable|tt.Dirty,ou(t))}});let Lc=0,Qh=0,Jn,Vh=0;function _0(t){try{++Vh,t()}finally{--Vh||A0()}}function ou(t){const a=t.depsTail;let r=a!==void 0?a.nextDep:t.deps;for(;r!==void 0;)r=N2(r,t)}function A0(){if(!(Vh>0)){for(;Lc<Qh;){const t=Ih[Lc];Ih[Lc++]=void 0,t.notify()}Lc=0,Qh=0}}function zb(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?tt.None:tt.Mutable,get(){return Jn!==void 0&&Db(o,Jn,Xc),o._snapshot},subscribe(u){const f=E2(u),m={current:!1},g=C2(()=>{var p;o.get(),m.current?(p=f.next)==null||p.call(f,o._snapshot):m.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(u){const f=Jn,m=(a==null?void 0:a.compare)??Object.is;if(r)Jn=o,++Xc,o.depsTail=void 0;else if(u===void 0)return!1;r&&(o.flags=tt.Mutable|tt.RecursedCheck);try{const g=o._snapshot,p=typeof u=="function"?u(g):u===void 0&&r?i(g):u;return g===void 0||!m(g,p)?(o._snapshot=p,!0):!1}finally{Jn=f,r&&(o.flags&=~tt.RecursedCheck),ou(o)}}};return r?(o.flags=tt.Mutable|tt.Dirty,o.get=function(){const u=o.flags;if(u&tt.Dirty||u&tt.Pending&&C0(o.deps,o)){if(o._update()){const f=o.subs;f!==void 0&&Lb(f)}}else u&tt.Pending&&(o.flags=u&~tt.Pending);return Jn!==void 0&&Db(o,Jn,Xc),o._snapshot}):o.set=function(u){if(o._update(u)){const f=o.subs;f!==void 0&&(R2(f),Lb(f),A0())}},o}function C2(t){const a=()=>{const i=Jn;Jn=r,++Xc,r.depsTail=void 0,r.flags=tt.Watching|tt.RecursedCheck;try{return t()}finally{Jn=i,r.flags&=~tt.RecursedCheck,ou(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:tt.Watching|tt.RecursedCheck,notify(){const i=this.flags;i&tt.Dirty||i&tt.Pending&&C0(this.deps,this)?a():this.flags=tt.Watching},stop(){this.flags=tt.None,this.depsTail=void 0,ou(this)}};return a(),r}var yh={exports:{}},vh={},bh={exports:{}},xh={};/**
|
|
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 Bb;function _2(){if(Bb)return xh;Bb=1;var t=co();function a(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var r=typeof Object.is=="function"?Object.is:a,i=t.useState,o=t.useEffect,u=t.useLayoutEffect,f=t.useDebugValue;function m(y,x){var j=x(),w=i({inst:{value:j,getSnapshot:x}}),b=w[0].inst,E=w[1];return u(function(){b.value=j,b.getSnapshot=x,g(b)&&E({inst:b})},[y,j,x]),o(function(){return g(b)&&E({inst:b}),y(function(){g(b)&&E({inst:b})})},[y]),f(j),j}function g(y){var x=y.getSnapshot;y=y.value;try{var j=x();return!r(y,j)}catch{return!0}}function p(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return xh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,xh}var Ub;function A2(){return Ub||(Ub=1,bh.exports=_2()),bh.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 Pb;function T2(){if(Pb)return vh;Pb=1;var t=co(),a=A2();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:r,o=a.useSyncExternalStore,u=t.useRef,f=t.useEffect,m=t.useMemo,g=t.useDebugValue;return vh.useSyncExternalStoreWithSelector=function(p,v,y,x,j){var w=u(null);if(w.current===null){var b={hasValue:!1,value:null};w.current=b}else b=w.current;w=m(function(){function _(P){if(!C){if(C=!0,T=P,P=x(P),j!==void 0&&b.hasValue){var k=b.value;if(j(k,P))return A=k}return A=P}if(k=A,i(T,P))return k;var D=x(P);return j!==void 0&&j(k,D)?(T=P,k):(T=P,A=D)}var C=!1,T,A,B=y===void 0?null:y;return[function(){return _(v())},B===null?void 0:function(){return _(B())}]},[v,y,x,j]);var E=o(p,w[0],w[1]);return f(function(){b.hasValue=!0,b.value=E},[E]),g(E),E},vh}var Fb;function k2(){return Fb||(Fb=1,yh.exports=T2()),yh.exports}var M2=k2();function O2(t,a){return t===a}function tn(t,a,r=O2){const i=N.useCallback(f=>{if(!t)return()=>{};const{unsubscribe:m}=t.subscribe(f);return m},[t]),o=N.useCallback(()=>t==null?void 0:t.get(),[t]);return M2.useSyncExternalStoreWithSelector(i,o,o,a,r)}var D2={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Er(t){const a=xn(),r=N.useContext(t.from?w2:Eu),i=t.from??r,o=i?t.from?a.stores.getRouteMatchStore(i):a.stores.matchStores.get(i):void 0,u=N.useRef(void 0);return tn(o??D2,f=>{if((t.shouldThrow??!0)&&!f&&La(),f===void 0)return;const m=t.select?t.select(f):f;if(t.structuralSharing??a.options.defaultStructuralSharing){const g=rr(u.current,m);return u.current=g,g}return m})}function T0(t){return Er({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.loaderData):a.loaderData})}function k0(t){const{select:a,...r}=t;return Er({...r,select:i=>a?a(i.loaderDeps):i.loaderDeps})}function Nu(t){return Er({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 Gi(t){return Er({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.search):a.search})}function Cm(t){const a=xn();return N.useCallback(r=>a.navigate({...r,from:r.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,a])}function M0(t){return Er({...t,select:a=>t.select?t.select(a.context):a.context})}var Ru=c0();const L2=xm(Ru);function z2(t,a){const r=xn(),i=vE(a),{activeProps:o,inactiveProps:u,activeOptions:f,to:m,preload:g,preloadDelay:p,preloadIntentProximity:v,hashScrollIntoView:y,replace:x,startTransition:j,resetScroll:w,viewTransition:b,children:E,target:_,disabled:C,style:T,className:A,onClick:B,onBlur:P,onFocus:k,onMouseEnter:D,onMouseLeave:z,onTouchStart:q,ignoreBlocker:K,params:ne,search:se,hash:te,state:ce,mask:F,reloadDocument:V,unsafeRelative:ee,from:ye,_fromLocation:ae,...L}=t,Z=N0(),re=N.useMemo(()=>t,[r,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),ie=tn(r.stores.location,Ve=>Ve,(Ve,Rt)=>Ve.href===Rt.href),le=N.useMemo(()=>{const Ve={_fromLocation:ie,...re};return r.buildLocation(Ve)},[r,ie,re]),he=le.maskedLocation?le.maskedLocation.publicHref:le.publicHref,xe=le.maskedLocation?le.maskedLocation.external:le.external,Be=N.useMemo(()=>q2(he,xe,r.history,C),[C,xe,he,r.history]),ve=N.useMemo(()=>{if(Be!=null&&Be.external)return su(Be.href,r.protocolAllowlist)?void 0:Be.href;if(!G2(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),su(m,r.protocolAllowlist)?void 0:m}catch{}},[m,Be,r.protocolAllowlist]),Ut=N.useMemo(()=>{if(ve)return!1;if(f!=null&&f.exact){if(!LE(ie.pathname,le.pathname,r.basepath))return!1}else{const Ve=ru(ie.pathname,r.basepath),Rt=ru(le.pathname,r.basepath);if(!(Ve.startsWith(Rt)&&(Ve.length===Rt.length||Ve[Rt.length]==="/")))return!1}return((f==null?void 0:f.includeSearch)??!0)&&!yr(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,ve,Z,le.hash,le.pathname,le.search,r.basepath]),Nt=Ut?sr(o,{})??B2:Sh,Mt=Ut?Sh:sr(u,{})??Sh,Pt=[A,Nt.className,Mt.className].filter(Boolean).join(" "),St=(T||Nt.style||Mt.style)&&{...T,...Nt.style,...Mt.style},[zs,Ha]=N.useState(!1),Rr=N.useRef(!1),Bn=t.reloadDocument||ve?!1:g??r.options.defaultPreload,wn=p??r.options.defaultPreloadDelay??0,Un=N.useCallback(()=>{r.preloadRoute({...re,_builtLocation:le}).catch(Ve=>{console.warn(Ve),console.warn(y2)})},[r,re,le]);yE(i,N.useCallback(Ve=>{Ve!=null&&Ve.isIntersecting&&Un()},[Un]),H2,{disabled:!!C||Bn!=="viewport"}),N.useEffect(()=>{Rr.current||!C&&Bn==="render"&&(Un(),Rr.current=!0)},[C,Un,Bn]);const $i=Ve=>{const Rt=Ve.currentTarget.getAttribute("target"),Yn=_!==void 0?_:Rt;if(!C&&!I2(Ve)&&!Ve.defaultPrevented&&(!Yn||Yn==="_self")&&Ve.button===0){Ve.preventDefault(),Ru.flushSync(()=>{Ha(!0)});const Cr=r.subscribe("onResolved",()=>{Cr(),Ha(!1)});r.navigate({...re,replace:x,resetScroll:w,hashScrollIntoView:y,startTransition:j,viewTransition:b,ignoreBlocker:K})}};if(ve)return{...L,ref:i,href:ve,...E&&{children:E},..._&&{target:_},...C&&{disabled:C},...T&&{style:T},...A&&{className:A},...B&&{onClick:B},...P&&{onBlur:P},...k&&{onFocus:k},...D&&{onMouseEnter:D},...z&&{onMouseLeave:z},...q&&{onTouchStart:q}};const mo=Ve=>{if(C||Bn!=="intent")return;if(!wn){Un();return}const Rt=Ve.currentTarget;if(Ql.has(Rt))return;const Yn=setTimeout(()=>{Ql.delete(Rt),Un()},wn);Ql.set(Rt,Yn)},Gu=Ve=>{C||Bn!=="intent"||Un()},Ot=Ve=>{if(C||!Bn||!wn)return;const Rt=Ve.currentTarget,Yn=Ql.get(Rt);Yn&&(clearTimeout(Yn),Ql.delete(Rt))};return{...L,...Nt,...Mt,href:Be==null?void 0:Be.href,ref:i,onClick:fi([B,$i]),onBlur:fi([P,Ot]),onFocus:fi([k,mo]),onMouseEnter:fi([D,mo]),onMouseLeave:fi([z,Ot]),onTouchStart:fi([q,Gu]),disabled:!!C,target:_,...St&&{style:St},...Pt&&{className:Pt},...C&&U2,...Ut&&P2,...Z&&zs&&F2}}var Sh={},B2={className:"active"},U2={role:"link","aria-disabled":!0},P2={"data-status":"active","aria-current":"page"},F2={"data-transitioning":"transitioning"},Ql=new WeakMap,H2={rootMargin:"100px"},fi=t=>a=>{for(const r of t)if(r){if(a.defaultPrevented)return;r(a)}};function q2(t,a,r,i){if(!i)return a?{href:t,external:!0}:{href:r.createHref(t)||"/",external:!1}}function G2(t){if(typeof t!="string")return!1;const a=t.charCodeAt(0);return a===47?t.charCodeAt(1)!==47:a===46}var bt=N.forwardRef((t,a)=>{const{_asChild:r,...i}=t,{type:o,...u}=z2(i,a),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;if(!r){const{disabled:m,...g}=u;return N.createElement("a",g,f)}return N.createElement(r,u,f)});function I2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Q2=class extends E0{constructor(a){super(a),this.useMatch=r=>Er({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>M0({...r,from:this.id}),this.useSearch=r=>Gi({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>Nu({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>k0({...r,from:this.id}),this.useLoaderData=r=>T0({...r,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=xr.forwardRef((r,i)=>c.jsx(bt,{ref:i,from:this.fullPath,...r}))}};function V2(t){return new Q2(t)}function Y2(){return t=>K2(t)}var $2=class extends v2{constructor(t){super(t),this.useMatch=a=>Er({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>M0({...a,from:this.id}),this.useSearch=a=>Gi({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>Nu({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>k0({...a,from:this.id}),this.useLoaderData=a=>T0({...a,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=xr.forwardRef((a,r)=>c.jsx(bt,{ref:r,from:this.fullPath,...a}))}};function K2(t){return new $2(t)}function Sn(t){return new Z2(t,{silent:!0}).createRoute}var Z2=class{constructor(t,a){this.path=t,this.createRoute=r=>{const i=V2(r);return i.isRoot=!1,i},this.silent=a==null?void 0:a.silent}};function X2(t){const a=xn(),r=`not-found-${tn(a.stores.location,i=>i.pathname)}-${tn(a.stores.status,i=>i)}`;return c.jsx(Nm,{getResetKey:()=>r,onCatch:(i,o)=>{var u;if(zt(i))(u=t.onCatch)==null||u.call(t,i,o);else throw i},errorComponent:({error:i})=>{var o;if(zt(i))return(o=t.fallback)==null?void 0:o.call(t,i);throw i},children:t.children})}function W2(){return c.jsx("p",{children:"Not Found"})}function yi(t){return c.jsx(c.Fragment,{children:t.children})}function O0(t,a,r){return a.options.notFoundComponent?c.jsx(a.options.notFoundComponent,{...r}):t.options.defaultNotFoundComponent?c.jsx(t.options.defaultNotFoundComponent,{...r}):c.jsx(W2,{})}function J2(t){return null}function eN(){return J2(xn()),null}var D0=N.memo(function({matchId:a}){const r=xn(),i=r.stores.matchStores.get(a);i||La();const o=tn(r.stores.loadedAt,f=>f),u=tn(i,f=>f);return c.jsx(tN,{router:r,matchId:a,resetKey:o,matchState:N.useMemo(()=>{var g;const f=u.routeId,m=(g=r.routesById[f].parentRoute)==null?void 0:g.id;return{routeId:f,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:m}},[u._displayPending,u.routeId,u.ssr,r.routesById])})});function tN({router:t,matchId:a,resetKey:r,matchState:i}){var w,b;const o=t.routesById[i.routeId],u=o.options.pendingComponent??t.options.defaultPendingComponent,f=u?c.jsx(u,{}):null,m=o.options.errorComponent??t.options.defaultErrorComponent,g=o.options.onCatch??t.options.defaultOnCatch,p=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??u??(((b=o.options.errorComponent)==null?void 0:b.preload)||v))?N.Suspense:yi,x=m?Nm:yi,j=p?X2:yi;return c.jsxs(o.isRoot?o.options.shellComponent??yi:yi,{children:[c.jsx(Eu.Provider,{value:a,children:c.jsx(y,{fallback:f,children:c.jsx(x,{getResetKey:()=>r,errorComponent:m||Rm,onCatch:(E,_)=>{if(zt(E))throw E.routeId??(E.routeId=i.routeId),E;g==null||g(E,_)},children:c.jsx(j,{fallback:E=>{if(E.routeId??(E.routeId=i.routeId),!p||E.routeId&&E.routeId!==i.routeId||!E.routeId&&!o.isRoot)throw E;return N.createElement(p,E)},children:v||i._displayPending?c.jsx(x2,{fallback:f,children:c.jsx(Hb,{matchId:a})}):c.jsx(Hb,{matchId:a})})})})}),i.parentRouteId===vr?c.jsxs(c.Fragment,{children:[c.jsx(nN,{resetKey:r}),t.options.scrollRestoration&&u0?c.jsx(eN,{}):null]}):null]})}function nN({resetKey:t}){const a=xn(),r=N.useRef(void 0);return Yl(()=>{const i=a.latestLocation.href;(r.current===void 0||r.current!==i)&&(a.emit({type:"onRendered",...vi(a.stores.location.get(),a.stores.resolvedLocation.get())}),r.current=i)},[a.latestLocation.state.__TSR_key,t,a]),null}var Hb=N.memo(function({matchId:a}){const r=xn(),i=(v,y)=>{var x;return((x=r.getMatch(v.id))==null?void 0:x._nonReactive[y])??v._nonReactive[y]},o=r.stores.matchStores.get(a);o||La();const u=tn(o,v=>v),f=u.routeId,m=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:u.loaderDeps,params:u._strictParams,search:u._strictSearch});return v?JSON.stringify(v):void 0},[f,u.loaderDeps,u._strictParams,u._strictSearch,r.options.defaultRemountDeps,r.routesById]),p=N.useMemo(()=>{const v=m.options.component??r.options.defaultComponent;return v?c.jsx(v,{},g):c.jsx(Cu,{})},[g,m.options.component,r.options.defaultComponent]);if(u._displayPending)throw i(u,"displayPendingPromise");if(u._forcePending)throw i(u,"minPendingPromise");if(u.status==="pending"){const v=m.options.pendingMinMs??r.options.defaultPendingMinMs;if(v){const y=r.getMatch(u.id);if(y&&!y._nonReactive.minPendingPromise){const x=Li();y._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),y._nonReactive.minPendingPromise=void 0},v)}}throw i(u,"loadPromise")}if(u.status==="notFound")return zt(u.error)||La(),O0(r,m,u.error);if(u.status==="redirected")throw en(u.error)||La(),i(u,"loadPromise");if(u.status==="error")throw u.error;return p}),Cu=N.memo(function(){const a=xn(),r=N.useContext(Eu);let i,o=!1,u;{const p=r?a.stores.matchStores.get(r):void 0;[i,o]=tn(p,v=>[v==null?void 0:v.routeId,(v==null?void 0:v.globalNotFound)??!1]),u=tn(a.stores.matchesId,v=>v[v.findIndex(y=>y===r)+1])}const f=i?a.routesById[i]:void 0,m=a.options.defaultPendingComponent?c.jsx(a.options.defaultPendingComponent,{}):null;if(o)return f||La(),O0(a,f,void 0);if(!u)return null;const g=c.jsx(D0,{matchId:u});return i===vr?c.jsx(N.Suspense,{fallback:m,children:g}):g});function aN(){const t=xn(),a=N.useRef({router:t,mounted:!1}),[r,i]=N.useState(!1),o=tn(t.stores.isLoading,y=>y),u=tn(t.stores.hasPending,y=>y),f=uh(o),m=o||r||u,g=uh(m),p=o||u,v=uh(p);return t.startTransition=y=>{i(!0),N.startTransition(()=>{y(),i(!1)})},N.useEffect(()=>{const y=t.history.subscribe(t.load),x=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Da(t.latestLocation.publicHref)!==Da(x.publicHref)&&t.commitLocation({...x,replace:!0}),()=>{y()}},[t,t.history]),Yl(()=>{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(x){console.error(x)}})()},[t]),Yl(()=>{f&&!o&&t.emit({type:"onLoad",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[f,t,o]),Yl(()=>{v&&!p&&t.emit({type:"onBeforeRouteMount",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[p,v,t]),Yl(()=>{if(g&&!m){const y=vi(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...y}),_0(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[m,g,t]),null}function sN(){const t=xn(),a=t.routesById[vr].options.pendingComponent??t.options.defaultPendingComponent,r=a?c.jsx(a,{}):null,i=c.jsxs(typeof document<"u"&&t.ssr?yi:N.Suspense,{fallback:r,children:[c.jsx(aN,{}),c.jsx(rN,{})]});return t.options.InnerWrap?c.jsx(t.options.InnerWrap,{children:i}):i}function rN(){const t=xn(),a=tn(t.stores.firstId,o=>o),r=tn(t.stores.loadedAt,o=>o),i=a?c.jsx(D0,{matchId:a}):null;return c.jsx(Eu.Provider,{value:a,children:t.options.disableGlobalCatchBoundary?i:c.jsx(Nm,{getResetKey:()=>r,errorComponent:Rm,onCatch:void 0,children:i})})}function iN(){const t=xn();return tn(t.stores.matchRouteDeps,a=>a),N.useCallback(a=>{const{pending:r,caseSensitive:i,fuzzy:o,includeSearch:u,...f}=a;return t.matchRoute(f,{pending:r,caseSensitive:i,fuzzy:o,includeSearch:u})},[t])}var lN=t=>({createMutableStore:zb,createReadonlyStore:zb,batch:_0}),oN=t=>new cN(t),cN=class extends a2{constructor(t){super(t,lN)}};function uN({router:t,children:a,...r}){f0(r)&&t.update({...t.options,...r,context:{...t.options.context,...r.context}});const i=c.jsx(R0.Provider,{value:t,children:a});return t.options.Wrap?c.jsx(t.options.Wrap,{children:i}):i}function dN({router:t,...a}){return c.jsx(uN,{router:t,...a,children:c.jsx(sN,{})})}var Ii=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(){}},or,vs,wi,Wx,fN=(Wx=class extends Ii{constructor(){super();pe(this,or);pe(this,vs);pe(this,wi);oe(this,wi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){O(this,vs)||this.setEventListener(O(this,wi))}onUnsubscribe(){var a;this.hasListeners()||((a=O(this,vs))==null||a.call(this),oe(this,vs,void 0))}setEventListener(a){var r;oe(this,wi,a),(r=O(this,vs))==null||r.call(this),oe(this,vs,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){O(this,or)!==a&&(oe(this,or,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof O(this,or)=="boolean"?O(this,or):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},or=new WeakMap,vs=new WeakMap,wi=new WeakMap,Wx),_m=new fN,hN={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},bs,bm,Jx,mN=(Jx=class{constructor(){pe(this,bs,hN);pe(this,bm,!1)}setTimeoutProvider(t){oe(this,bs,t)}setTimeout(t,a){return O(this,bs).setTimeout(t,a)}clearTimeout(t){O(this,bs).clearTimeout(t)}setInterval(t,a){return O(this,bs).setInterval(t,a)}clearInterval(t){O(this,bs).clearInterval(t)}},bs=new WeakMap,bm=new WeakMap,Jx),lr=new mN;function pN(t){setTimeout(t,0)}var gN=typeof window>"u"||"Deno"in globalThis;function qt(){}function yN(t,a){return typeof t=="function"?t(a):t}function Yh(t){return typeof t=="number"&&t>=0&&t!==1/0}function L0(t,a){return Math.max(t+(a||0)-Date.now(),0)}function Ts(t,a){return typeof t=="function"?t(a):t}function pn(t,a){return typeof t=="function"?t(a):t}function qb(t,a){const{type:r="all",exact:i,fetchStatus:o,predicate:u,queryKey:f,stale:m}=t;if(f){if(i){if(a.queryHash!==Am(f,a.options))return!1}else if(!Jl(a.queryKey,f))return!1}if(r!=="all"){const g=a.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||u&&!u(a))}function Gb(t,a){const{exact:r,status:i,predicate:o,mutationKey:u}=t;if(u){if(!a.options.mutationKey)return!1;if(r){if(Sr(a.options.mutationKey)!==Sr(u))return!1}else if(!Jl(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function Am(t,a){return((a==null?void 0:a.queryKeyHashFn)||Sr)(t)}function Sr(t){return JSON.stringify(t,(a,r)=>$h(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Jl(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(r=>Jl(t[r],a[r])):!1}var vN=Object.prototype.hasOwnProperty;function z0(t,a,r=0){if(t===a)return t;if(r>500)return a;const i=Ib(t)&&Ib(a);if(!i&&!($h(t)&&$h(a)))return a;const u=(i?t:Object.keys(t)).length,f=i?a:Object.keys(a),m=f.length,g=i?new Array(m):{};let p=0;for(let v=0;v<m;v++){const y=i?v:f[v],x=t[y],j=a[y];if(x===j){g[y]=x,(i?v<u:vN.call(t,y))&&p++;continue}if(x===null||j===null||typeof x!="object"||typeof j!="object"){g[y]=j;continue}const w=z0(x,j,r+1);g[y]=w,w===x&&p++}return u===m&&p===u?t:g}function cu(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 Ib(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function $h(t){if(!Qb(t))return!1;const a=t.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Qb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Qb(t){return Object.prototype.toString.call(t)==="[object Object]"}function bN(t){return new Promise(a=>{lr.setTimeout(a,t)})}function Kh(t,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,a):r.structuralSharing!==!1?z0(t,a):a}function xN(t,a,r=0){const i=[...t,a];return r&&i.length>r?i.slice(1):i}function SN(t,a,r=0){const i=[a,...t];return r&&i.length>r?i.slice(0,-1):i}var Tm=Symbol();function B0(t,a){return!t.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!t.queryFn||t.queryFn===Tm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function km(t,a){return typeof t=="function"?t(...a):!!t}function wN(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 eo=(()=>{let t=()=>gN;return{isServer(){return t()},setIsServer(a){t=a}}})();function Zh(){let t,a;const r=new Promise((o,u)=>{t=o,a=u});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 jN=pN;function EN(){let t=[],a=0,r=m=>{m()},i=m=>{m()},o=jN;const u=m=>{a?t.push(m):o(()=>{r(m)})},f=()=>{const m=t;t=[],m.length&&o(()=>{i(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||f()}return g},batchCalls:m=>(...g)=>{u(()=>{m(...g)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{o=m}}}var vt=EN(),ji,xs,Ei,e0,NN=(e0=class extends Ii{constructor(){super();pe(this,ji,!0);pe(this,xs);pe(this,Ei);oe(this,Ei,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(){O(this,xs)||this.setEventListener(O(this,Ei))}onUnsubscribe(){var a;this.hasListeners()||((a=O(this,xs))==null||a.call(this),oe(this,xs,void 0))}setEventListener(a){var r;oe(this,Ei,a),(r=O(this,xs))==null||r.call(this),oe(this,xs,a(this.setOnline.bind(this)))}setOnline(a){O(this,ji)!==a&&(oe(this,ji,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return O(this,ji)}},ji=new WeakMap,xs=new WeakMap,Ei=new WeakMap,e0),uu=new NN;function RN(t){return Math.min(1e3*2**t,3e4)}function U0(t){return(t??"online")==="online"?uu.isOnline():!0}var Xh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function P0(t){let a=!1,r=0,i;const o=Zh(),u=()=>o.status!=="pending",f=b=>{var E;if(!u()){const _=new Xh(b);x(_),(E=t.onCancel)==null||E.call(t,_)}},m=()=>{a=!0},g=()=>{a=!1},p=()=>_m.isFocused()&&(t.networkMode==="always"||uu.isOnline())&&t.canRun(),v=()=>U0(t.networkMode)&&t.canRun(),y=b=>{u()||(i==null||i(),o.resolve(b))},x=b=>{u()||(i==null||i(),o.reject(b))},j=()=>new Promise(b=>{var E;i=_=>{(u()||p())&&b(_)},(E=t.onPause)==null||E.call(t)}).then(()=>{var b;i=void 0,u()||(b=t.onContinue)==null||b.call(t)}),w=()=>{if(u())return;let b;const E=r===0?t.initialPromise:void 0;try{b=E??t.fn()}catch(_){b=Promise.reject(_)}Promise.resolve(b).then(y).catch(_=>{var P;if(u())return;const C=t.retry??(eo.isServer()?0:3),T=t.retryDelay??RN,A=typeof T=="function"?T(r,_):T,B=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(a||!B){x(_);return}r++,(P=t.onFail)==null||P.call(t,r,_),bN(A).then(()=>p()?void 0:j()).then(()=>{a?x(_):w()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(i==null||i(),o),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?w():j().then(w),o)}}var cr,t0,F0=(t0=class{constructor(){pe(this,cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yh(this.gcTime)&&oe(this,cr,lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(eo.isServer()?1/0:300*1e3))}clearGcTimeout(){O(this,cr)!==void 0&&(lr.clearTimeout(O(this,cr)),oe(this,cr,void 0))}},cr=new WeakMap,t0);function CN(t){return{onFetch:(a,r)=>{var v,y,x,j,w;const i=a.options,o=(x=(y=(v=a.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,u=((j=a.state.data)==null?void 0:j.pages)||[],f=((w=a.state.data)==null?void 0:w.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let b=!1;const E=T=>{wN(T,()=>a.signal,()=>b=!0)},_=B0(a.options,a.fetchOptions),C=async(T,A,B)=>{if(b)return Promise.reject(a.signal.reason);if(A==null&&T.pages.length)return Promise.resolve(T);const k=(()=>{const K={client:a.client,queryKey:a.queryKey,pageParam:A,direction:B?"backward":"forward",meta:a.options.meta};return E(K),K})(),D=await _(k),{maxPages:z}=a.options,q=B?SN:xN;return{pages:q(T.pages,D,z),pageParams:q(T.pageParams,A,z)}};if(o&&u.length){const T=o==="backward",A=T?_N:Vb,B={pages:u,pageParams:f},P=A(i,B);m=await C(B,P,T)}else{const T=t??u.length;do{const A=g===0?f[0]??i.initialPageParam:Vb(i,m);if(g>0&&A==null)break;m=await C(m,A),g++}while(g<T)}return m};a.options.persister?a.fetchFn=()=>{var b,E;return(E=(b=a.options).persister)==null?void 0:E.call(b,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=p}}}function Vb(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 _N(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 Ni,ur,Ri,On,dr,Et,so,fr,mn,H0,_a,n0,AN=(n0=class extends F0{constructor(a){super();pe(this,mn);pe(this,Ni);pe(this,ur);pe(this,Ri);pe(this,On);pe(this,dr);pe(this,Et);pe(this,so);pe(this,fr);oe(this,fr,!1),oe(this,so,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,dr,a.client),oe(this,On,O(this,dr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,ur,$b(this.options)),this.state=a.state??O(this,ur),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return O(this,Ni)}get promise(){var a;return(a=O(this,Et))==null?void 0:a.promise}setOptions(a){if(this.options={...O(this,so),...a},a!=null&&a._type&&oe(this,Ni,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=$b(this.options);r.data!==void 0&&(this.setState(Yb(r.data,r.dataUpdatedAt)),oe(this,ur,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,On).remove(this)}setData(a,r){const i=Kh(this.state.data,a,this.options);return _e(this,mn,_a).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a){_e(this,mn,_a).call(this,{type:"setState",state:a})}cancel(a){var i,o;const r=(i=O(this,Et))==null?void 0:i.promise;return(o=O(this,Et))==null||o.cancel(a),r?r.then(qt).catch(qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return O(this,ur)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>pn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Ts(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:!L0(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=O(this,Et))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=O(this,Et))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),O(this,On).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(O(this,Et)&&(O(this,fr)||_e(this,mn,H0).call(this)?O(this,Et).cancel({revert:!0}):O(this,Et).cancelRetry()),this.scheduleGc()),O(this,On).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_e(this,mn,_a).call(this,{type:"invalidate"})}async fetch(a,r){var p,v,y,x,j,w,b,E,_,C,T;if(this.state.fetchStatus!=="idle"&&((p=O(this,Et))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(O(this,Et))return O(this,Et).continueRetry(),O(this,Et).promise}if(a&&this.setOptions(a),!this.options.queryFn){const A=this.observers.find(B=>B.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(oe(this,fr,!0),i.signal)})},u=()=>{const A=B0(this.options,r),P=(()=>{const k={client:O(this,dr),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return oe(this,fr,!1),this.options.persister?this.options.persister(A,P,this):A(P)},m=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:O(this,dr),state:this.state,fetchFn:u};return o(A),A})(),g=O(this,Ni)==="infinite"?CN(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),oe(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=m.fetchOptions)==null?void 0:v.meta))&&_e(this,mn,_a).call(this,{type:"fetch",meta:(y=m.fetchOptions)==null?void 0:y.meta}),oe(this,Et,P0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:A=>{A instanceof Xh&&A.revert&&this.setState({...O(this,Ri),fetchStatus:"idle"}),i.abort()},onFail:(A,B)=>{_e(this,mn,_a).call(this,{type:"failed",failureCount:A,error:B})},onPause:()=>{_e(this,mn,_a).call(this,{type:"pause"})},onContinue:()=>{_e(this,mn,_a).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const A=await O(this,Et).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(j=(x=O(this,On).config).onSuccess)==null||j.call(x,A,this),(b=(w=O(this,On).config).onSettled)==null||b.call(w,A,this.state.error,this),A}catch(A){if(A instanceof Xh){if(A.silent)return O(this,Et).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw _e(this,mn,_a).call(this,{type:"error",error:A}),(_=(E=O(this,On).config).onError)==null||_.call(E,A,this),(T=(C=O(this,On).config).onSettled)==null||T.call(C,this.state.data,A,this),A}finally{this.scheduleGc()}}},Ni=new WeakMap,ur=new WeakMap,Ri=new WeakMap,On=new WeakMap,dr=new WeakMap,Et=new WeakMap,so=new WeakMap,fr=new WeakMap,mn=new WeakSet,H0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},_a=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,...q0(i.data,this.options),fetchMeta:a.meta??null};case"success":const o={...i,...Yb(a.data,a.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return oe(this,Ri,a.manual?o:void 0),o;case"error":const u=a.error;return{...i,error:u,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),vt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,On).notify({query:this,type:"updated",action:a})})},n0);function q0(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:U0(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Yb(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $b(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 Xt,ze,ro,Ht,hr,Ci,Aa,Ss,io,_i,Ai,mr,pr,ws,Ti,He,$l,Wh,Jh,em,tm,nm,am,sm,G0,a0,TN=(a0=class extends Ii{constructor(a,r){super();pe(this,He);pe(this,Xt);pe(this,ze);pe(this,ro);pe(this,Ht);pe(this,hr);pe(this,Ci);pe(this,Aa);pe(this,Ss);pe(this,io);pe(this,_i);pe(this,Ai);pe(this,mr);pe(this,pr);pe(this,ws);pe(this,Ti,new Set);this.options=r,oe(this,Xt,a),oe(this,Ss,null),oe(this,Aa,Zh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,ze).addObserver(this),Kb(O(this,ze),this.options)?_e(this,He,$l).call(this):this.updateResult(),_e(this,He,tm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rm(O(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rm(O(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_e(this,He,nm).call(this),_e(this,He,am).call(this),O(this,ze).removeObserver(this)}setOptions(a){const r=this.options,i=O(this,ze);if(this.options=O(this,Xt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pn(this.options.enabled,O(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_e(this,He,sm).call(this),O(this,ze).setOptions(this.options),r._defaulted&&!cu(this.options,r)&&O(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,ze),observer:this});const o=this.hasListeners();o&&Zb(O(this,ze),i,this.options,r)&&_e(this,He,$l).call(this),this.updateResult(),o&&(O(this,ze)!==i||pn(this.options.enabled,O(this,ze))!==pn(r.enabled,O(this,ze))||Ts(this.options.staleTime,O(this,ze))!==Ts(r.staleTime,O(this,ze)))&&_e(this,He,Wh).call(this);const u=_e(this,He,Jh).call(this);o&&(O(this,ze)!==i||pn(this.options.enabled,O(this,ze))!==pn(r.enabled,O(this,ze))||u!==O(this,ws))&&_e(this,He,em).call(this,u)}getOptimisticResult(a){const r=O(this,Xt).getQueryCache().build(O(this,Xt),a),i=this.createResult(r,a);return MN(this,i)&&(oe(this,Ht,i),oe(this,Ci,this.options),oe(this,hr,O(this,ze).state)),i}getCurrentResult(){return O(this,Ht)}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&&O(this,Aa).status==="pending"&&O(this,Aa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(a){O(this,Ti).add(a)}getCurrentQuery(){return O(this,ze)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=O(this,Xt).defaultQueryOptions(a),i=O(this,Xt).getQueryCache().build(O(this,Xt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return _e(this,He,$l).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Ht)))}createResult(a,r){var z;const i=O(this,ze),o=this.options,u=O(this,Ht),f=O(this,hr),m=O(this,Ci),p=a!==i?a.state:O(this,ro),{state:v}=a;let y={...v},x=!1,j;if(r._optimisticResults){const q=this.hasListeners(),K=!q&&Kb(a,r),ne=q&&Zb(a,i,r,o);(K||ne)&&(y={...y,...q0(v.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:E}=y;j=y.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&E==="pending"){let q;u!=null&&u.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(q=u.data,_=!0):q=typeof r.placeholderData=="function"?r.placeholderData((z=O(this,Ai))==null?void 0:z.state.data,O(this,Ai)):r.placeholderData,q!==void 0&&(E="success",j=Kh(u==null?void 0:u.data,q,r),x=!0)}if(r.select&&j!==void 0&&!_)if(u&&j===(f==null?void 0:f.data)&&r.select===O(this,io))j=O(this,_i);else try{oe(this,io,r.select),j=r.select(j),j=Kh(u==null?void 0:u.data,j,r),oe(this,_i,j),oe(this,Ss,null)}catch(q){oe(this,Ss,q)}O(this,Ss)&&(w=O(this,Ss),j=O(this,_i),b=Date.now(),E="error");const C=y.fetchStatus==="fetching",T=E==="pending",A=E==="error",B=T&&C,P=j!==void 0,D={status:E,fetchStatus:y.fetchStatus,isPending:T,isSuccess:E==="success",isError:A,isInitialLoading:B,isLoading:B,data:j,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:A&&!P,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:A&&P,isStale:Mm(a,r),refetch:this.refetch,promise:O(this,Aa),isEnabled:pn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const q=D.data!==void 0,K=D.status==="error"&&!q,ne=ce=>{K?ce.reject(D.error):q&&ce.resolve(D.data)},se=()=>{const ce=oe(this,Aa,D.promise=Zh());ne(ce)},te=O(this,Aa);switch(te.status){case"pending":a.queryHash===i.queryHash&&ne(te);break;case"fulfilled":(K||D.data!==te.value)&&se();break;case"rejected":(!K||D.error!==te.reason)&&se();break}}return D}updateResult(){const a=O(this,Ht),r=this.createResult(O(this,ze),this.options);if(oe(this,hr,O(this,ze).state),oe(this,Ci,this.options),O(this,hr).data!==void 0&&oe(this,Ai,O(this,ze)),cu(r,a))return;oe(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!O(this,Ti).size)return!0;const f=new Set(u??O(this,Ti));return this.options.throwOnError&&f.add("error"),Object.keys(O(this,Ht)).some(m=>{const g=m;return O(this,Ht)[g]!==a[g]&&f.has(g)})};_e(this,He,G0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_e(this,He,tm).call(this)}},Xt=new WeakMap,ze=new WeakMap,ro=new WeakMap,Ht=new WeakMap,hr=new WeakMap,Ci=new WeakMap,Aa=new WeakMap,Ss=new WeakMap,io=new WeakMap,_i=new WeakMap,Ai=new WeakMap,mr=new WeakMap,pr=new WeakMap,ws=new WeakMap,Ti=new WeakMap,He=new WeakSet,$l=function(a){_e(this,He,sm).call(this);let r=O(this,ze).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(qt)),r},Wh=function(){_e(this,He,nm).call(this);const a=Ts(this.options.staleTime,O(this,ze));if(eo.isServer()||O(this,Ht).isStale||!Yh(a))return;const i=L0(O(this,Ht).dataUpdatedAt,a)+1;oe(this,mr,lr.setTimeout(()=>{O(this,Ht).isStale||this.updateResult()},i))},Jh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,ze)):this.options.refetchInterval)??!1},em=function(a){_e(this,He,am).call(this),oe(this,ws,a),!(eo.isServer()||pn(this.options.enabled,O(this,ze))===!1||!Yh(O(this,ws))||O(this,ws)===0)&&oe(this,pr,lr.setInterval(()=>{(this.options.refetchIntervalInBackground||_m.isFocused())&&_e(this,He,$l).call(this)},O(this,ws)))},tm=function(){_e(this,He,Wh).call(this),_e(this,He,em).call(this,_e(this,He,Jh).call(this))},nm=function(){O(this,mr)!==void 0&&(lr.clearTimeout(O(this,mr)),oe(this,mr,void 0))},am=function(){O(this,pr)!==void 0&&(lr.clearInterval(O(this,pr)),oe(this,pr,void 0))},sm=function(){const a=O(this,Xt).getQueryCache().build(O(this,Xt),this.options);if(a===O(this,ze))return;const r=O(this,ze);oe(this,ze,a),oe(this,ro,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},G0=function(a){vt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(O(this,Ht))}),O(this,Xt).getQueryCache().notify({query:O(this,ze),type:"observerResultsUpdated"})})},a0);function kN(t,a){return pn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&pn(a.retryOnMount,t)===!1)}function Kb(t,a){return kN(t,a)||t.state.data!==void 0&&rm(t,a,a.refetchOnMount)}function rm(t,a,r){if(pn(a.enabled,t)!==!1&&Ts(a.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&Mm(t,a)}return!1}function Zb(t,a,r,i){return(t!==a||pn(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Mm(t,r)}function Mm(t,a){return pn(a.enabled,t)!==!1&&t.isStaleByTime(Ts(a.staleTime,t))}function MN(t,a){return!cu(t.getCurrentResult(),a)}var lo,ea,Lt,gr,ta,ps,s0,ON=(s0=class extends F0{constructor(a){super();pe(this,ta);pe(this,lo);pe(this,ea);pe(this,Lt);pe(this,gr);oe(this,lo,a.client),this.mutationId=a.mutationId,oe(this,Lt,a.mutationCache),oe(this,ea,[]),this.state=a.state||I0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){O(this,ea).includes(a)||(O(this,ea).push(a),this.clearGcTimeout(),O(this,Lt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,ea,O(this,ea).filter(r=>r!==a)),this.scheduleGc(),O(this,Lt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){O(this,ea).length||(this.state.status==="pending"?this.scheduleGc():O(this,Lt).remove(this))}continue(){var a;return((a=O(this,gr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var f,m,g,p,v,y,x,j,w,b,E,_,C,T,A,B,P,k;const r=()=>{_e(this,ta,ps).call(this,{type:"continue"})},i={client:O(this,lo),meta:this.options.meta,mutationKey:this.options.mutationKey};oe(this,gr,P0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,i):Promise.reject(new Error("No mutationFn found")),onFail:(D,z)=>{_e(this,ta,ps).call(this,{type:"failed",failureCount:D,error:z})},onPause:()=>{_e(this,ta,ps).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Lt).canRun(this)}));const o=this.state.status==="pending",u=!O(this,gr).canStart();try{if(o)r();else{_e(this,ta,ps).call(this,{type:"pending",variables:a,isPaused:u}),O(this,Lt).config.onMutate&&await O(this,Lt).config.onMutate(a,this,i);const z=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,a,i));z!==this.state.context&&_e(this,ta,ps).call(this,{type:"pending",context:z,variables:a,isPaused:u})}const D=await O(this,gr).start();return await((p=(g=O(this,Lt).config).onSuccess)==null?void 0:p.call(g,D,a,this.state.context,this,i)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,D,a,this.state.context,i)),await((j=(x=O(this,Lt).config).onSettled)==null?void 0:j.call(x,D,null,this.state.variables,this.state.context,this,i)),await((b=(w=this.options).onSettled)==null?void 0:b.call(w,D,null,a,this.state.context,i)),_e(this,ta,ps).call(this,{type:"success",data:D}),D}catch(D){try{await((_=(E=O(this,Lt).config).onError)==null?void 0:_.call(E,D,a,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((T=(C=this.options).onError)==null?void 0:T.call(C,D,a,this.state.context,i))}catch(z){Promise.reject(z)}try{await((B=(A=O(this,Lt).config).onSettled)==null?void 0:B.call(A,void 0,D,this.state.variables,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((k=(P=this.options).onSettled)==null?void 0:k.call(P,void 0,D,a,this.state.context,i))}catch(z){Promise.reject(z)}throw _e(this,ta,ps).call(this,{type:"error",error:D}),D}finally{O(this,Lt).runNext(this)}}},lo=new WeakMap,ea=new WeakMap,Lt=new WeakMap,gr=new WeakMap,ta=new WeakSet,ps=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),vt.batch(()=>{O(this,ea).forEach(i=>{i.onMutationUpdate(a)}),O(this,Lt).notify({mutation:this,type:"updated",action:a})})},s0);function I0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ta,qn,oo,r0,DN=(r0=class extends Ii{constructor(a={}){super();pe(this,Ta);pe(this,qn);pe(this,oo);this.config=a,oe(this,Ta,new Set),oe(this,qn,new Map),oe(this,oo,0)}build(a,r,i){const o=new ON({client:a,mutationCache:this,mutationId:++kc(this,oo)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){O(this,Ta).add(a);const r=zc(a);if(typeof r=="string"){const i=O(this,qn).get(r);i?i.push(a):O(this,qn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(O(this,Ta).delete(a)){const r=zc(a);if(typeof r=="string"){const i=O(this,qn).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&O(this,qn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=zc(a);if(typeof r=="string"){const i=O(this,qn).get(r),o=i==null?void 0:i.find(u=>u.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=zc(a);if(typeof r=="string"){const o=(i=O(this,qn).get(r))==null?void 0:i.find(u=>u!==a&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{O(this,Ta).forEach(a=>{this.notify({type:"removed",mutation:a})}),O(this,Ta).clear(),O(this,qn).clear()})}getAll(){return Array.from(O(this,Ta))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>Gb(r,i))}findAll(a={}){return this.getAll().filter(r=>Gb(a,r))}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(a.map(r=>r.continue().catch(qt))))}},Ta=new WeakMap,qn=new WeakMap,oo=new WeakMap,r0);function zc(t){var a;return(a=t.options.scope)==null?void 0:a.id}var ka,js,Wt,Ma,za,Wc,im,i0,LN=(i0=class extends Ii{constructor(r,i){super();pe(this,za);pe(this,ka);pe(this,js);pe(this,Wt);pe(this,Ma);oe(this,ka,r),this.setOptions(i),this.bindMethods(),_e(this,za,Wc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=O(this,ka).defaultMutationOptions(r),cu(this.options,i)||O(this,ka).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Wt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Sr(i.mutationKey)!==Sr(this.options.mutationKey)?this.reset():((o=O(this,Wt))==null?void 0:o.state.status)==="pending"&&O(this,Wt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=O(this,Wt))==null||r.removeObserver(this)}onMutationUpdate(r){_e(this,za,Wc).call(this),_e(this,za,im).call(this,r)}getCurrentResult(){return O(this,js)}reset(){var r;(r=O(this,Wt))==null||r.removeObserver(this),oe(this,Wt,void 0),_e(this,za,Wc).call(this),_e(this,za,im).call(this)}mutate(r,i){var o;return oe(this,Ma,i),(o=O(this,Wt))==null||o.removeObserver(this),oe(this,Wt,O(this,ka).getMutationCache().build(O(this,ka),this.options)),O(this,Wt).addObserver(this),O(this,Wt).execute(r)}},ka=new WeakMap,js=new WeakMap,Wt=new WeakMap,Ma=new WeakMap,za=new WeakSet,Wc=function(){var i;const r=((i=O(this,Wt))==null?void 0:i.state)??I0();oe(this,js,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},im=function(r){vt.batch(()=>{var i,o,u,f,m,g,p,v;if(O(this,Ma)&&this.hasListeners()){const y=O(this,js).variables,x=O(this,js).context,j={client:O(this,ka),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(o=(i=O(this,Ma)).onSuccess)==null||o.call(i,r.data,y,x,j)}catch(w){Promise.reject(w)}try{(f=(u=O(this,Ma)).onSettled)==null||f.call(u,r.data,null,y,x,j)}catch(w){Promise.reject(w)}}else if((r==null?void 0:r.type)==="error"){try{(g=(m=O(this,Ma)).onError)==null||g.call(m,r.error,y,x,j)}catch(w){Promise.reject(w)}try{(v=(p=O(this,Ma)).onSettled)==null||v.call(p,void 0,r.error,y,x,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(y=>{y(O(this,js))})})},i0),na,l0,zN=(l0=class extends Ii{constructor(a={}){super();pe(this,na);this.config=a,oe(this,na,new Map)}build(a,r,i){const o=r.queryKey,u=r.queryHash??Am(o,r);let f=this.get(u);return f||(f=new AN({client:a,queryKey:o,queryHash:u,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(f)),f}add(a){O(this,na).has(a.queryHash)||(O(this,na).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=O(this,na).get(a.queryHash);r&&(a.destroy(),r===a&&O(this,na).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){vt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return O(this,na).get(a)}getAll(){return[...O(this,na).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>qb(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>qb(a,i)):r}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},na=new WeakMap,l0),lt,Es,Ns,ki,Mi,Rs,Oi,Di,o0,BN=(o0=class{constructor(t={}){pe(this,lt);pe(this,Es);pe(this,Ns);pe(this,ki);pe(this,Mi);pe(this,Rs);pe(this,Oi);pe(this,Di);oe(this,lt,t.queryCache||new zN),oe(this,Es,t.mutationCache||new DN),oe(this,Ns,t.defaultOptions||{}),oe(this,ki,new Map),oe(this,Mi,new Map),oe(this,Rs,0)}mount(){kc(this,Rs)._++,O(this,Rs)===1&&(oe(this,Oi,_m.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,lt).onFocus())})),oe(this,Di,uu.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,lt).onOnline())})))}unmount(){var t,a;kc(this,Rs)._--,O(this,Rs)===0&&((t=O(this,Oi))==null||t.call(this),oe(this,Oi,void 0),(a=O(this,Di))==null||a.call(this),oe(this,Di,void 0))}isFetching(t){return O(this,lt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return O(this,Es).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=O(this,lt).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),r=O(this,lt).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Ts(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(t){return O(this,lt).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=O(this,lt).get(i.queryHash),u=o==null?void 0:o.state.data,f=yN(a,u);if(f!==void 0)return O(this,lt).build(this,i).setData(f,{...r,manual:!0})}setQueriesData(t,a,r){return vt.batch(()=>O(this,lt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=O(this,lt).get(a.queryHash))==null?void 0:r.state}removeQueries(t){const a=O(this,lt);vt.batch(()=>{a.findAll(t).forEach(r=>{a.remove(r)})})}resetQueries(t,a){const r=O(this,lt);return vt.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const r={revert:!0,...a},i=vt.batch(()=>O(this,lt).findAll(t).map(o=>o.cancel(r)));return Promise.all(i).then(qt).catch(qt)}invalidateQueries(t,a={}){return vt.batch(()=>(O(this,lt).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=vt.batch(()=>O(this,lt).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,r);return r.throwOnError||(u=u.catch(qt)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(qt)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const r=O(this,lt).build(this,a);return r.isStaleByTime(Ts(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(qt).catch(qt)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(qt).catch(qt)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return uu.isOnline()?O(this,Es).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,lt)}getMutationCache(){return O(this,Es)}getDefaultOptions(){return O(this,Ns)}setDefaultOptions(t){oe(this,Ns,t)}setQueryDefaults(t,a){O(this,ki).set(Sr(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...O(this,ki).values()],r={};return a.forEach(i=>{Jl(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,a){O(this,Mi).set(Sr(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...O(this,Mi).values()],r={};return a.forEach(i=>{Jl(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const a={...O(this,Ns).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=Am(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===Tm&&(a.enabled=!1),a}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...O(this,Ns).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){O(this,lt).clear(),O(this,Es).clear()}},lt=new WeakMap,Es=new WeakMap,Ns=new WeakMap,ki=new WeakMap,Mi=new WeakMap,Rs=new WeakMap,Oi=new WeakMap,Di=new WeakMap,o0),Q0=N.createContext(void 0),Ds=t=>{const a=N.useContext(Q0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},UN=({client:t,children:a})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(Q0.Provider,{value:t,children:a})),V0=N.createContext(!1),PN=()=>N.useContext(V0);V0.Provider;function FN(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var HN=N.createContext(FN()),qN=()=>N.useContext(HN),GN=(t,a,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?km(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(a.isReset()||(t.retryOnMount=!1))},IN=t=>{N.useEffect(()=>{t.clearReset()},[t])},QN=({result:t,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||km(r,[t.error,i])),VN=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))}},YN=(t,a)=>t.isLoading&&t.isFetching&&!a,$N=(t,a)=>(t==null?void 0:t.suspense)&&a.isPending,Xb=(t,a,r)=>a.fetchOptimistic(t).catch(()=>{r.clearReset()});function KN(t,a,r){var j,w,b,E;const i=PN(),o=qN(),u=Ds(),f=u.defaultQueryOptions(t);(w=(j=u.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||w.call(j,f);const m=u.getQueryCache().get(f.queryHash),g=t.subscribed!==!1;f._optimisticResults=i?"isRestoring":g?"optimistic":void 0,VN(f),GN(f,o,m),IN(o);const p=!u.getQueryCache().get(f.queryHash),[v]=N.useState(()=>new a(u,f)),y=v.getOptimisticResult(f),x=!i&&g;if(N.useSyncExternalStore(N.useCallback(_=>{const C=x?v.subscribe(vt.batchCalls(_)):qt;return v.updateResult(),C},[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),N.useEffect(()=>{v.setOptions(f)},[f,v]),$N(f,y))throw Xb(f,v,o);if(QN({result:y,errorResetBoundary:o,throwOnError:f.throwOnError,query:m,suspense:f.suspense}))throw y.error;if((E=(b=u.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||E.call(b,f,y),f.experimental_prefetchInRender&&!eo.isServer()&&YN(y,i)){const _=p?Xb(f,v,o):m==null?void 0:m.promise;_==null||_.catch(qt).finally(()=>{v.updateResult()})}return f.notifyOnChangeProps?y:v.trackResult(y)}function bn(t,a){return KN(t,TN)}function zi(t,a){const r=Ds(),[i]=N.useState(()=>new LN(r,t));N.useEffect(()=>{i.setOptions(t)},[i,t]);const o=N.useSyncExternalStore(N.useCallback(f=>i.subscribe(vt.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=N.useCallback((f,m)=>{i.mutate(f,m).catch(qt)},[i]);if(o.error&&km(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}/**
|
|
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 ZN=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XN=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),Wb=t=>{const a=XN(t);return a.charAt(0).toUpperCase()+a.slice(1)},Y0=(...t)=>t.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),WN=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 JN={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 eR=N.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:u,iconNode:f,...m},g)=>N.createElement("svg",{ref:g,...JN,width:a,height:a,stroke:t,strokeWidth:i?Number(r)*24/Number(a):r,className:Y0("lucide",o),...!u&&!WN(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,v])=>N.createElement(p,v)),...Array.isArray(u)?u:[u]]));/**
|
|
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 Me=(t,a)=>{const r=N.forwardRef(({className:i,...o},u)=>N.createElement(eR,{ref:u,iconNode:a,className:Y0(`lucide-${ZN(Wb(t))}`,`lucide-${t}`,i),...o}));return r.displayName=Wb(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 tR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],lm=Me("arrow-right",tR);/**
|
|
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 nR=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],aR=Me("brain",nR);/**
|
|
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 sR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bi=Me("chevron-left",sR);/**
|
|
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 rR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jb=Me("chevron-right",rR);/**
|
|
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 iR=[["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"}]],$0=Me("circle-alert",iR);/**
|
|
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 lR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],K0=Me("circle-check",lR);/**
|
|
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 oR=[["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"}]],ex=Me("circle-x",oR);/**
|
|
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 cR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],uR=Me("clock",cR);/**
|
|
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 dR=[["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"}]],fR=Me("database-zap",dR);/**
|
|
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 hR=[["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"}]],mR=Me("database",hR);/**
|
|
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 pR=[["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"}]],gR=Me("file-code-2",pR);/**
|
|
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 yR=[["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"}]],_u=Me("file-text",yR);/**
|
|
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 vR=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],bR=Me("files",vR);/**
|
|
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 xR=[["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"}]],SR=Me("folder-kanban",xR);/**
|
|
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 wR=[["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"}]],om=Me("folder-open",wR);/**
|
|
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 jR=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Z0=Me("gauge",jR);/**
|
|
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 ER=[["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"}]],tx=Me("git-branch",ER);/**
|
|
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 NR=[["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"}]],RR=Me("globe",NR);/**
|
|
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 CR=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],_R=Me("history",CR);/**
|
|
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 AR=[["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"}]],X0=Me("layers",AR);/**
|
|
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 TR=[["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"}]],kR=Me("layout-dashboard",TR);/**
|
|
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 MR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],to=Me("loader-circle",MR);/**
|
|
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 OR=[["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"}]],DR=Me("message-square",OR);/**
|
|
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 LR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],zR=Me("moon",LR);/**
|
|
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 BR=[["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"}]],UR=Me("network",BR);/**
|
|
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 PR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],FR=Me("panel-left",PR);/**
|
|
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 HR=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],qR=Me("pin",HR);/**
|
|
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 GR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],cm=Me("plus",GR);/**
|
|
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 IR=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],QR=Me("refresh-cw",IR);/**
|
|
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 VR=[["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"}]],YR=Me("scroll-text",VR);/**
|
|
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 $R=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Au=Me("search",$R);/**
|
|
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 KR=[["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"}]],ZR=Me("settings",KR);/**
|
|
246
|
+
* @license lucide-react v0.511.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const XR=[["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"}]],WR=Me("sun",XR);/**
|
|
251
|
+
* @license lucide-react v0.511.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const JR=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Tu=Me("trash-2",JR);/**
|
|
256
|
+
* @license lucide-react v0.511.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const eC=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Om=Me("trending-down",eC);/**
|
|
261
|
+
* @license lucide-react v0.511.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const tC=[["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"}]],W0=Me("triangle-alert",tC);/**
|
|
266
|
+
* @license lucide-react v0.511.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const nC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ui=Me("x",nC),aC="/api";async function mt(t,a){const r=await fetch(`${aC}${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 xt={getDashboard:()=>mt("/dashboard"),listWorkspaces:()=>mt("/workspaces"),getWorkspace:t=>mt(`/workspaces/${t}`),createWorkspace:t=>mt("/workspaces",{method:"POST",body:JSON.stringify(t)}),deleteWorkspace:t=>mt(`/workspaces/${t}`,{method:"DELETE"}),pinWorkspace:(t,a)=>mt(`/workspaces/${t}/pin`,{method:"PATCH",body:JSON.stringify({pinned:a})}),getWorkspaceGraph:t=>mt(`/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)),mt(`/documents?${a}`)},runQuery:t=>mt("/query",{method:"POST",body:JSON.stringify(t)}),startIndexRun:(t,a)=>mt(`/workspaces/${t}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:t=>mt(`/workspaces/${t}/index`),validatePath:t=>mt("/validate-path",{method:"POST",body:JSON.stringify({rootPath:t})}),getChangelog:()=>mt("/changelog"),getMemories:(t={})=>{const a=new URLSearchParams;return t.q&&a.set("q",t.q),t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),mt(`/memories?${a}`)},getMemory:t=>mt(`/memories/${t}`),createMemory:t=>mt("/memories",{method:"POST",body:JSON.stringify(t)}),deleteMemory:t=>mt(`/memories/${t}`,{method:"DELETE"}),getMetrics:t=>mt(t?`/metrics?workspaceId=${t}`:"/metrics"),getEmbeddingConfig:()=>mt("/settings/embedding"),updateEmbeddingConfig:t=>mt("/settings/embedding",{method:"PUT",body:JSON.stringify(t)})},Dm={queryKey:["dashboard"],queryFn:xt.getDashboard},Lm={queryKey:["workspaces"],queryFn:xt.listWorkspaces},Pi=t=>({queryKey:["workspace",t],queryFn:()=>xt.getWorkspace(t)}),J0=t=>({queryKey:["workspace-graph",t],queryFn:()=>xt.getWorkspaceGraph(t)}),du=(t,a)=>({queryKey:["documents",t,a],queryFn:()=>xt.getDocuments({limit:a,offset:(t-1)*a})}),e1={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},sC={queryKey:["settings","embedding"],queryFn:()=>xt.getEmbeddingConfig(),staleTime:0},fu=(t,a)=>({queryKey:["memories",t,a],queryFn:()=>xt.getMemories({limit:a,offset:(t-1)*a})}),rC=t=>({queryKey:["memories","search",t],queryFn:()=>xt.getMemories({q:t,limit:100})}),zm=t=>({queryKey:["metrics",t??"default"],queryFn:()=>xt.getMetrics(t),staleTime:3e4}),Gt=10;function iC(t,a){const r=Math.max(1,Math.ceil(t.length/Gt));return{paged:t.slice((a-1)*Gt,a*Gt),totalPages:r}}function Bm({currentPage:t,totalPages:a,basePath:r}){return a<=1?null:c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[t>1?c.jsxs(bt,{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:[c.jsx(Bi,{className:"h-3.5 w-3.5"}),"Previous"]}):c.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:[c.jsx(Bi,{className:"h-3.5 w-3.5"}),"Previous"]}),c.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",t," of ",a]}),t<a?c.jsxs(bt,{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",c.jsx(Jb,{className:"h-3.5 w-3.5"})]}):c.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",c.jsx(Jb,{className:"h-3.5 w-3.5"})]})]})}function t1(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=t1(t[a]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function uo(){for(var t,a,r=0,i="",o=arguments.length;r<o;r++)(t=arguments[r])&&(a=t1(t))&&(i&&(i+=" "),i+=a);return i}const nx=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ax=uo,ku=(t,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return ax(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:u}=a,f=Object.keys(o).map(p=>{const v=r==null?void 0:r[p],y=u==null?void 0:u[p];if(v===null)return null;const x=nx(v)||nx(y);return o[p][x]}),m=r&&Object.entries(r).reduce((p,v)=>{let[y,x]=v;return x===void 0||(p[y]=x),p},{}),g=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((p,v)=>{let{class:y,className:x,...j}=v;return Object.entries(j).every(w=>{let[b,E]=w;return Array.isArray(E)?E.includes({...u,...m}[b]):{...u,...m}[b]===E})?[...p,y,x]:p},[]);return ax(t,f,g,r==null?void 0:r.class,r==null?void 0:r.className)},lC=(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},oC=(t,a)=>({classGroupId:t,validator:a}),n1=(t=new Map,a=null,r)=>({nextPart:t,validators:a,classGroupId:r}),hu="-",sx=[],cC="arbitrary..",uC=t=>{const a=fC(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return dC(f);const m=f.split(hu),g=m[0]===""&&m.length>1?1:0;return a1(m,g,a)},getConflictingClassGroupIds:(f,m)=>{if(m){const g=i[f],p=r[f];return g?p?lC(p,g):g:p||sx}return r[f]||sx}}},a1=(t,a,r)=>{if(t.length-a===0)return r.classGroupId;const o=t[a],u=r.nextPart.get(o);if(u){const p=a1(t,a+1,u);if(p)return p}const f=r.validators;if(f===null)return;const m=a===0?t.join(hu):t.slice(a).join(hu),g=f.length;for(let p=0;p<g;p++){const v=f[p];if(v.validator(m))return v.classGroupId}},dC=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?cC+i:void 0})(),fC=t=>{const{theme:a,classGroups:r}=t;return hC(r,a)},hC=(t,a)=>{const r=n1();for(const i in t){const o=t[i];Um(o,r,i,a)}return r},Um=(t,a,r,i)=>{const o=t.length;for(let u=0;u<o;u++){const f=t[u];mC(f,a,r,i)}},mC=(t,a,r,i)=>{if(typeof t=="string"){pC(t,a,r);return}if(typeof t=="function"){gC(t,a,r,i);return}yC(t,a,r,i)},pC=(t,a,r)=>{const i=t===""?a:s1(a,t);i.classGroupId=r},gC=(t,a,r,i)=>{if(vC(t)){Um(t(i),a,r,i);return}a.validators===null&&(a.validators=[]),a.validators.push(oC(r,t))},yC=(t,a,r,i)=>{const o=Object.entries(t),u=o.length;for(let f=0;f<u;f++){const[m,g]=o[f];Um(g,s1(a,m),r,i)}},s1=(t,a)=>{let r=t;const i=a.split(hu),o=i.length;for(let u=0;u<o;u++){const f=i[u];let m=r.nextPart.get(f);m||(m=n1(),r.nextPart.set(f,m)),r=m}return r},vC=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,bC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),i=Object.create(null);const o=(u,f)=>{r[u]=f,a++,a>t&&(a=0,i=r,r=Object.create(null))};return{get(u){let f=r[u];if(f!==void 0)return f;if((f=i[u])!==void 0)return o(u,f),f},set(u,f){u in r?r[u]=f:o(u,f)}}},um="!",rx=":",xC=[],ix=(t,a,r,i,o)=>({modifiers:t,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:i,isExternal:o}),SC=t=>{const{prefix:a,experimentalParseClassName:r}=t;let i=o=>{const u=[];let f=0,m=0,g=0,p;const v=o.length;for(let b=0;b<v;b++){const E=o[b];if(f===0&&m===0){if(E===rx){u.push(o.slice(g,b)),g=b+1;continue}if(E==="/"){p=b;continue}}E==="["?f++:E==="]"?f--:E==="("?m++:E===")"&&m--}const y=u.length===0?o:o.slice(g);let x=y,j=!1;y.endsWith(um)?(x=y.slice(0,-1),j=!0):y.startsWith(um)&&(x=y.slice(1),j=!0);const w=p&&p>g?p-g:void 0;return ix(u,j,x,w)};if(a){const o=a+rx,u=i;i=f=>f.startsWith(o)?u(f.slice(o.length)):ix(xC,!1,f,void 0,!0)}if(r){const o=i;i=u=>r({className:u,parseClassName:o})}return i},wC=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((r,i)=>{a.set(r,1e6+i)}),r=>{const i=[];let o=[];for(let u=0;u<r.length;u++){const f=r[u],m=f[0]==="[",g=a.has(f);m||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}},jC=t=>({cache:bC(t.cacheSize),parseClassName:SC(t),sortModifiers:wC(t),postfixLookupClassGroupIds:EC(t),...uC(t)}),EC=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},NC=/\s+/,RC=(t,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:u,postfixLookupClassGroupIds:f}=a,m=[],g=t.trim().split(NC);let p="";for(let v=g.length-1;v>=0;v-=1){const y=g[v],{isExternal:x,modifiers:j,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:E}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let _=!!E,C;if(_){const k=b.substring(0,E);C=i(k);const D=C&&f[C]?i(b):void 0;D&&D!==C&&(C=D,_=!1)}else C=i(b);if(!C){if(!_){p=y+(p.length>0?" "+p:p);continue}if(C=i(b),!C){p=y+(p.length>0?" "+p:p);continue}_=!1}const T=j.length===0?"":j.length===1?j[0]:u(j).join(":"),A=w?T+um:T,B=A+C;if(m.indexOf(B)>-1)continue;m.push(B);const P=o(C,_);for(let k=0;k<P.length;++k){const D=P[k];m.push(A+D)}p=y+(p.length>0?" "+p:p)}return p},CC=(...t)=>{let a=0,r,i,o="";for(;a<t.length;)(r=t[a++])&&(i=r1(r))&&(o&&(o+=" "),o+=i);return o},r1=t=>{if(typeof t=="string")return t;let a,r="";for(let i=0;i<t.length;i++)t[i]&&(a=r1(t[i]))&&(r&&(r+=" "),r+=a);return r},_C=(t,...a)=>{let r,i,o,u;const f=g=>{const p=a.reduce((v,y)=>y(v),t());return r=jC(p),i=r.cache.get,o=r.cache.set,u=m,m(g)},m=g=>{const p=i(g);if(p)return p;const v=RC(g,r);return o(g,v),v};return u=f,(...g)=>u(CC(...g))},AC=[],yt=t=>{const a=r=>r[t]||AC;return a.isThemeGetter=!0,a},i1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,l1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MC=/\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$/,OC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hs=t=>TC.test(t),Ae=t=>!!t&&!Number.isNaN(Number(t)),Wn=t=>!!t&&Number.isInteger(Number(t)),wh=t=>t.endsWith("%")&&Ae(t.slice(0,-1)),Ca=t=>kC.test(t),o1=()=>!0,zC=t=>MC.test(t)&&!OC.test(t),Pm=()=>!1,BC=t=>DC.test(t),UC=t=>LC.test(t),PC=t=>!ue(t)&&!de(t),FC=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)),HC=t=>Ls(t,d1,Pm),ue=t=>i1.test(t),nr=t=>Ls(t,f1,zC),lx=t=>Ls(t,KC,Ae),qC=t=>Ls(t,m1,o1),GC=t=>Ls(t,h1,Pm),ox=t=>Ls(t,c1,Pm),IC=t=>Ls(t,u1,UC),Bc=t=>Ls(t,p1,BC),de=t=>l1.test(t),Vl=t=>Nr(t,f1),QC=t=>Nr(t,h1),cx=t=>Nr(t,c1),VC=t=>Nr(t,d1),YC=t=>Nr(t,u1),Uc=t=>Nr(t,p1,!0),$C=t=>Nr(t,m1,!0),Ls=(t,a,r)=>{const i=i1.exec(t);return i?i[1]?a(i[1]):r(i[2]):!1},Nr=(t,a,r=!1)=>{const i=l1.exec(t);return i?i[1]?a(i[1]):r:!1},c1=t=>t==="position"||t==="percentage",u1=t=>t==="image"||t==="url",d1=t=>t==="length"||t==="size"||t==="bg-size",f1=t=>t==="length",KC=t=>t==="number",h1=t=>t==="family-name",m1=t=>t==="number"||t==="weight",p1=t=>t==="shadow",ZC=()=>{const t=yt("color"),a=yt("font"),r=yt("text"),i=yt("font-weight"),o=yt("tracking"),u=yt("leading"),f=yt("breakpoint"),m=yt("container"),g=yt("spacing"),p=yt("radius"),v=yt("shadow"),y=yt("inset-shadow"),x=yt("text-shadow"),j=yt("drop-shadow"),w=yt("blur"),b=yt("perspective"),E=yt("aspect"),_=yt("ease"),C=yt("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"],B=()=>[...A(),de,ue],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[de,ue,g],z=()=>[hs,"full","auto",...D()],q=()=>[Wn,"none","subgrid",de,ue],K=()=>["auto",{span:["full",Wn,de,ue]},Wn,de,ue],ne=()=>[Wn,"auto",de,ue],se=()=>["auto","min","max","fr",de,ue],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...D()],V=()=>[hs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ee=()=>[hs,"screen","full","dvw","lvw","svw","min","max","fit",...D()],ye=()=>[hs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],ae=()=>[t,de,ue],L=()=>[...A(),cx,ox,{position:[de,ue]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",VC,HC,{size:[de,ue]}],ie=()=>[wh,Vl,nr],le=()=>["","none","full",p,de,ue],he=()=>["",Ae,Vl,nr],xe=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Ae,wh,cx,ox],Ut=()=>["","none",w,de,ue],Nt=()=>["none",Ae,de,ue],Mt=()=>["none",Ae,de,ue],Pt=()=>[Ae,de,ue],St=()=>[hs,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ca],breakpoint:[Ca],color:[o1],container:[Ca],"drop-shadow":[Ca],ease:["in","out","in-out"],font:[PC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ca],shadow:[Ca],spacing:["px",Ae],text:[Ca],"text-shadow":[Ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hs,ue,de,E]}],container:["container"],"container-type":[{"@container":["","normal","size",de,ue]}],"container-named":[FC],columns:[{columns:[Ae,ue,de,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Wn,"auto",de,ue]}],basis:[{basis:[hs,"full","auto",m,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,hs,"auto","initial","none",ue]}],grow:[{grow:["",Ae,de,ue]}],shrink:[{shrink:["",Ae,de,ue]}],order:[{order:[Wn,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:K()}],"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:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...ye()]}],"min-block-size":[{"min-block":["auto",...ye()]}],"max-block-size":[{"max-block":["none",...ye()]}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,Vl,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,$C,qC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wh,ue]}],"font-family":[{font:[QC,GC,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":[Ae,"none",de,lx]}],leading:[{leading:[u,...D()]}],"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:[Ae,"from-font","auto",de,nr]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[Ae,"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:D()}],"tab-size":[{tab:[Wn,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:L()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wn,de,ue],radial:["",de,ue],conic:[Wn,de,ue]},YC,IC]}],"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":[Ae,de,ue]}],"outline-w":[{outline:["",Ae,Vl,nr]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",v,Uc,Bc]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",y,Uc,Bc]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[Ae,nr]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",x,Uc,Bc]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[Ae,de,ue]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"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":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"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":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"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":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"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":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"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":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"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":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"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":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"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":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"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:L()}],"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:Ut()}],brightness:[{brightness:[Ae,de,ue]}],contrast:[{contrast:[Ae,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",j,Uc,Bc]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",Ae,de,ue]}],"hue-rotate":[{"hue-rotate":[Ae,de,ue]}],invert:[{invert:["",Ae,de,ue]}],saturate:[{saturate:[Ae,de,ue]}],sepia:[{sepia:["",Ae,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":Ut()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ae,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"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:[Ae,"initial",de,ue]}],ease:[{ease:["linear","initial",_,de,ue]}],delay:[{delay:[Ae,de,ue]}],animate:[{animate:["none",C,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,de,ue]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Nt()}],"rotate-x":[{"rotate-x":Nt()}],"rotate-y":[{"rotate-y":Nt()}],"rotate-z":[{"rotate-z":Nt()}],scale:[{scale:Mt()}],"scale-x":[{"scale-x":Mt()}],"scale-y":[{"scale-y":Mt()}],"scale-z":[{"scale-z":Mt()}],"scale-3d":["scale-3d"],skew:[{skew:Pt()}],"skew-x":[{"skew-x":Pt()}],"skew-y":[{"skew-y":Pt()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],zoom:[{zoom:[Wn,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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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:[Ae,Vl,nr,lx]}],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"]}},g1=_C(ZC);function pt(...t){return g1(uo(t))}const XC=ku("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 Bt({className:t,variant:a,...r}){return c.jsx("div",{className:pt(XC({variant:a}),t),...r})}const y1=ku("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"}}),nt=N.forwardRef(({className:t,variant:a,size:r,...i},o)=>c.jsx("button",{className:pt(y1({variant:a,size:r,className:t})),ref:o,...i}));nt.displayName="Button";const Ee=({className:t,...a})=>c.jsx("section",{className:pt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a}),Ie=({className:t,...a})=>c.jsx("div",{className:pt("flex flex-col space-y-1.5 p-6",t),...a}),Qe=({className:t,...a})=>c.jsx("h3",{className:pt("text-2xl font-semibold leading-none tracking-tight",t),...a}),jh=({className:t,...a})=>c.jsx("p",{className:pt("text-sm text-muted-foreground",t),...a}),Ne=({className:t,...a})=>c.jsx("div",{className:pt("p-6 pt-0",t),...a}),WC=({className:t,children:a,...r})=>c.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}),yn=N.forwardRef(({className:t,type:a,...r},i)=>c.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}));yn.displayName="Input";const Xe=N.forwardRef(({className:t,...a},r)=>c.jsx("label",{ref:r,className:pt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...a}));Xe.displayName="Label";const ux=({className:t,...a})=>c.jsx("select",{className:pt("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a}),Dn=N.forwardRef(({className:t,...a},r)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:r,className:pt("w-full caption-bottom text-sm",t),...a})}));Dn.displayName="Table";const Ln=N.forwardRef(({className:t,...a},r)=>c.jsx("thead",{ref:r,className:pt("[&_tr]:border-b",t),...a}));Ln.displayName="TableHeader";const zn=N.forwardRef(({className:t,...a},r)=>c.jsx("tbody",{ref:r,className:pt("[&_tr:last-child]:border-0",t),...a}));zn.displayName="TableBody";const JC=N.forwardRef(({className:t,...a},r)=>c.jsx("tfoot",{ref:r,className:pt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a}));JC.displayName="TableFooter";const at=N.forwardRef(({className:t,...a},r)=>c.jsx("tr",{ref:r,className:pt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a}));at.displayName="TableRow";const Se=N.forwardRef(({className:t,...a},r)=>c.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}));Se.displayName="TableHead";const we=N.forwardRef(({className:t,...a},r)=>c.jsx("td",{ref:r,className:pt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a}));we.displayName="TableCell";const e_=N.forwardRef(({className:t,...a},r)=>c.jsx("caption",{ref:r,className:pt("mt-4 text-sm text-muted-foreground",t),...a}));e_.displayName="TableCaption";const mu=({className:t,...a})=>c.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 Jt(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 dx(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function Fm(...t){return a=>{let r=!1;const i=t.map(o=>{const u=dx(o,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let o=0;o<i.length;o++){const u=i[o];typeof u=="function"?u():dx(t[o],null)}}}}function Qn(...t){return N.useCallback(Fm(...t),t)}function t_(t,a){const r=N.createContext(a),i=u=>{const{children:f,...m}=u,g=N.useMemo(()=>m,Object.values(m));return c.jsx(r.Provider,{value:g,children:f})};i.displayName=t+"Provider";function o(u){const f=N.useContext(r);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[i,o]}function Hm(t,a=[]){let r=[];function i(u,f){const m=N.createContext(f),g=r.length;r=[...r,f];const p=y=>{var _;const{scope:x,children:j,...w}=y,b=((_=x==null?void 0:x[t])==null?void 0:_[g])||m,E=N.useMemo(()=>w,Object.values(w));return c.jsx(b.Provider,{value:E,children:j})};p.displayName=u+"Provider";function v(y,x){var b;const j=((b=x==null?void 0:x[t])==null?void 0:b[g])||m,w=N.useContext(j);if(w)return w;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,v]}const o=()=>{const u=r.map(f=>N.createContext(f));return function(m){const g=(m==null?void 0:m[t])||u;return N.useMemo(()=>({[`__scope${t}`]:{...m,[t]:g}}),[m,g])}};return o.scopeName=t,[i,n_(o,...a)]}function n_(...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(u){const f=i.reduce((m,{useScope:g,scopeName:p})=>{const y=g(u)[`__scope${p}`];return{...m,...y}},{});return N.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return r.scopeName=a.scopeName,r}function v1(t){const a=a_(t),r=N.forwardRef((i,o)=>{const{children:u,...f}=i,m=N.Children.toArray(u),g=m.find(r_);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...f,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...f,ref:o,children:u})});return r.displayName=`${t}.Slot`,r}function a_(t){const a=N.forwardRef((r,i)=>{const{children:o,...u}=r;if(N.isValidElement(o)){const f=l_(o),m=i_(u,o.props);return o.type!==N.Fragment&&(m.ref=i?Fm(i,f):f),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var b1=Symbol("radix.slottable");function s_(t){const a=({children:r})=>c.jsx(c.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=b1,a}function r_(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===b1}function i_(t,a){const r={...a};for(const i in a){const o=t[i],u=a[i];/^on[A-Z]/.test(i)?o&&u?r[i]=(...m)=>{const g=u(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...u}:i==="className"&&(r[i]=[o,u].filter(Boolean).join(" "))}return{...t,...r}}function l_(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 o_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=o_.reduce((t,a)=>{const r=v1(`Primitive.${a}`),i=N.forwardRef((o,u)=>{const{asChild:f,...m}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{});function c_(t,a){t&&Ru.flushSync(()=>t.dispatchEvent(a))}function Fi(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 u_(t,a=globalThis==null?void 0:globalThis.document){const r=Fi(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 d_="DismissableLayer",dm="dismissableLayer.update",f_="dismissableLayer.pointerDownOutside",h_="dismissableLayer.focusOutside",fx,x1=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qm=N.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:f,onDismiss:m,...g}=t,p=N.useContext(x1),[v,y]=N.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=N.useState({}),w=Qn(a,k=>y(k)),b=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(E),C=v?b.indexOf(v):-1,T=p.layersWithOutsidePointerEventsDisabled.size>0,A=C>=_,B=g_(k=>{const D=k.target,z=[...p.branches].some(q=>q.contains(D));!A||z||(o==null||o(k),f==null||f(k),k.defaultPrevented||m==null||m())},x),P=y_(k=>{const D=k.target;[...p.branches].some(q=>q.contains(D))||(u==null||u(k),f==null||f(k),k.defaultPrevented||m==null||m())},x);return u_(k=>{C===p.layers.size-1&&(i==null||i(k),!k.defaultPrevented&&m&&(k.preventDefault(),m()))},x),N.useEffect(()=>{if(v)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(fx=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),hx(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=fx)}},[v,x,r,p]),N.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),hx())},[v,p]),N.useEffect(()=>{const k=()=>j({});return document.addEventListener(dm,k),()=>document.removeEventListener(dm,k)},[]),c.jsx(nn.div,{...g,ref:w,style:{pointerEvents:T?A?"auto":"none":void 0,...t.style},onFocusCapture:Jt(t.onFocusCapture,P.onFocusCapture),onBlurCapture:Jt(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Jt(t.onPointerDownCapture,B.onPointerDownCapture)})});qm.displayName=d_;var m_="DismissableLayerBranch",p_=N.forwardRef((t,a)=>{const r=N.useContext(x1),i=N.useRef(null),o=Qn(a,i);return N.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),c.jsx(nn.div,{...t,ref:o})});p_.displayName=m_;function g_(t,a=globalThis==null?void 0:globalThis.document){const r=Fi(t),i=N.useRef(!1),o=N.useRef(()=>{});return N.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let g=function(){S1(f_,r,p,{discrete:!0})};const p={originalEvent:m};m.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",u)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",u),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function y_(t,a=globalThis==null?void 0:globalThis.document){const r=Fi(t),i=N.useRef(!1);return N.useEffect(()=>{const o=u=>{u.target&&!i.current&&S1(h_,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function hx(){const t=new CustomEvent(dm);document.dispatchEvent(t)}function S1(t,a,r,{discrete:i}){const o=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(t,a,{once:!0}),i?c_(o,u):o.dispatchEvent(u)}var ks=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},v_=Sm[" useId ".trim().toString()]||(()=>{}),b_=0;function Jc(t){const[a,r]=N.useState(v_());return ks(()=>{r(i=>i??String(b_++))},[t]),t||(a?`radix-${a}`:"")}const x_=["top","right","bottom","left"],Ms=Math.min,gn=Math.max,pu=Math.round,Pc=Math.floor,ia=t=>({x:t,y:t}),S_={left:"right",right:"left",bottom:"top",top:"bottom"};function fm(t,a,r){return gn(t,Ms(a,r))}function Ba(t,a){return typeof t=="function"?t(a):t}function Ua(t){return t.split("-")[0]}function Qi(t){return t.split("-")[1]}function Gm(t){return t==="x"?"y":"x"}function Im(t){return t==="y"?"height":"width"}function sa(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function Qm(t){return Gm(sa(t))}function w_(t,a,r){r===void 0&&(r=!1);const i=Qi(t),o=Qm(t),u=Im(o);let f=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=gu(f)),[f,gu(f)]}function j_(t){const a=gu(t);return[hm(t),a,hm(a)]}function hm(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const mx=["left","right"],px=["right","left"],E_=["top","bottom"],N_=["bottom","top"];function R_(t,a,r){switch(t){case"top":case"bottom":return r?a?px:mx:a?mx:px;case"left":case"right":return a?E_:N_;default:return[]}}function C_(t,a,r,i){const o=Qi(t);let u=R_(Ua(t),r==="start",i);return o&&(u=u.map(f=>f+"-"+o),a&&(u=u.concat(u.map(hm)))),u}function gu(t){const a=Ua(t);return S_[a]+t.slice(a.length)}function __(t){return{top:0,right:0,bottom:0,left:0,...t}}function w1(t){return typeof t!="number"?__(t):{top:t,right:t,bottom:t,left:t}}function yu(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 gx(t,a,r){let{reference:i,floating:o}=t;const u=sa(a),f=Qm(a),m=Im(f),g=Ua(a),p=u==="y",v=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,x=i[m]/2-o[m]/2;let j;switch(g){case"top":j={x:v,y:i.y-o.height};break;case"bottom":j={x:v,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y};break;case"left":j={x:i.x-o.width,y};break;default:j={x:i.x,y:i.y}}switch(Qi(a)){case"start":j[f]-=x*(r&&p?-1:1);break;case"end":j[f]+=x*(r&&p?-1:1);break}return j}async function A_(t,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:u,rects:f,elements:m,strategy:g}=t,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:j=0}=Ba(a,t),w=w1(j),E=m[x?y==="floating"?"reference":"floating":y],_=yu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(E)))==null||r?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:p,rootBoundary:v,strategy:g})),C=y==="floating"?{x:i,y:o,width:f.floating.width,height:f.floating.height}:f.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),A=await(u.isElement==null?void 0:u.isElement(T))?await(u.getScale==null?void 0:u.getScale(T))||{x:1,y:1}:{x:1,y:1},B=yu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:C,offsetParent:T,strategy:g}):C);return{top:(_.top-B.top+w.top)/A.y,bottom:(B.bottom-_.bottom+w.bottom)/A.y,left:(_.left-B.left+w.left)/A.x,right:(B.right-_.right+w.right)/A.x}}const T_=50,k_=async(t,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:u=[],platform:f}=r,m=f.detectOverflow?f:{...f,detectOverflow:A_},g=await(f.isRTL==null?void 0:f.isRTL(a));let p=await f.getElementRects({reference:t,floating:a,strategy:o}),{x:v,y}=gx(p,i,g),x=i,j=0;const w={};for(let b=0;b<u.length;b++){const E=u[b];if(!E)continue;const{name:_,fn:C}=E,{x:T,y:A,data:B,reset:P}=await C({x:v,y,initialPlacement:i,placement:x,strategy:o,middlewareData:w,rects:p,platform:m,elements:{reference:t,floating:a}});v=T??v,y=A??y,w[_]={...w[_],...B},P&&j<T_&&(j++,typeof P=="object"&&(P.placement&&(x=P.placement),P.rects&&(p=P.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:o}):P.rects),{x:v,y}=gx(p,x,g)),b=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}},M_=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:i,placement:o,rects:u,platform:f,elements:m,middlewareData:g}=a,{element:p,padding:v=0}=Ba(t,a)||{};if(p==null)return{};const y=w1(v),x={x:r,y:i},j=Qm(o),w=Im(j),b=await f.getDimensions(p),E=j==="y",_=E?"top":"left",C=E?"bottom":"right",T=E?"clientHeight":"clientWidth",A=u.reference[w]+u.reference[j]-x[j]-u.floating[w],B=x[j]-u.reference[j],P=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let k=P?P[T]:0;(!k||!await(f.isElement==null?void 0:f.isElement(P)))&&(k=m.floating[T]||u.floating[w]);const D=A/2-B/2,z=k/2-b[w]/2-1,q=Ms(y[_],z),K=Ms(y[C],z),ne=q,se=k-b[w]-K,te=k/2-b[w]/2+D,ce=fm(ne,te,se),F=!g.arrow&&Qi(o)!=null&&te!==ce&&u.reference[w]/2-(te<ne?q:K)-b[w]/2<0,V=F?te<ne?te-ne:te-se:0;return{[j]:x[j]+V,data:{[j]:ce,centerOffset:te-ce-V,...F&&{alignmentOffset:V}},reset:F}}}),O_=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,i;const{placement:o,middlewareData:u,rects:f,initialPlacement:m,platform:g,elements:p}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...E}=Ba(t,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Ua(o),C=sa(m),T=Ua(m)===m,A=await(g.isRTL==null?void 0:g.isRTL(p.floating)),B=x||(T||!b?[gu(m)]:j_(m)),P=w!=="none";!x&&P&&B.push(...C_(m,b,w,A));const k=[m,...B],D=await g.detectOverflow(a,E),z=[];let q=((i=u.flip)==null?void 0:i.overflows)||[];if(v&&z.push(D[_]),y){const te=w_(o,f,A);z.push(D[te[0]],D[te[1]])}if(q=[...q,{placement:o,overflows:z}],!z.every(te=>te<=0)){var K,ne;const te=(((K=u.flip)==null?void 0:K.index)||0)+1,ce=k[te];if(ce&&(!(y==="alignment"?C!==sa(ce):!1)||q.every(ee=>sa(ee.placement)===C?ee.overflows[0]>0:!0)))return{data:{index:te,overflows:q},reset:{placement:ce}};let F=(ne=q.filter(V=>V.overflows[0]<=0).sort((V,ee)=>V.overflows[1]-ee.overflows[1])[0])==null?void 0:ne.placement;if(!F)switch(j){case"bestFit":{var se;const V=(se=q.filter(ee=>{if(P){const ye=sa(ee.placement);return ye===C||ye==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ye=>ye>0).reduce((ye,ae)=>ye+ae,0)]).sort((ee,ye)=>ee[1]-ye[1])[0])==null?void 0:se[0];V&&(F=V);break}case"initialPlacement":F=m;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function yx(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function vx(t){return x_.some(a=>t[a]>=0)}const D_=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r,platform:i}=a,{strategy:o="referenceHidden",...u}=Ba(t,a);switch(o){case"referenceHidden":{const f=await i.detectOverflow(a,{...u,elementContext:"reference"}),m=yx(f,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:vx(m)}}}case"escaped":{const f=await i.detectOverflow(a,{...u,altBoundary:!0}),m=yx(f,r.floating);return{data:{escapedOffsets:m,escaped:vx(m)}}}default:return{}}}}},j1=new Set(["left","top"]);async function L_(t,a){const{placement:r,platform:i,elements:o}=t,u=await(i.isRTL==null?void 0:i.isRTL(o.floating)),f=Ua(r),m=Qi(r),g=sa(r)==="y",p=j1.has(f)?-1:1,v=u&&g?-1:1,y=Ba(a,t);let{mainAxis:x,crossAxis:j,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof w=="number"&&(j=m==="end"?w*-1:w),g?{x:j*v,y:x*p}:{x:x*p,y:j*v}}const z_=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,i;const{x:o,y:u,placement:f,middlewareData:m}=a,g=await L_(a,t);return f===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+g.x,y:u+g.y,data:{...g,placement:f}}}}},B_=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:i,placement:o,platform:u}=a,{mainAxis:f=!0,crossAxis:m=!1,limiter:g={fn:_=>{let{x:C,y:T}=_;return{x:C,y:T}}},...p}=Ba(t,a),v={x:r,y:i},y=await u.detectOverflow(a,p),x=sa(Ua(o)),j=Gm(x);let w=v[j],b=v[x];if(f){const _=j==="y"?"top":"left",C=j==="y"?"bottom":"right",T=w+y[_],A=w-y[C];w=fm(T,w,A)}if(m){const _=x==="y"?"top":"left",C=x==="y"?"bottom":"right",T=b+y[_],A=b-y[C];b=fm(T,b,A)}const E=g.fn({...a,[j]:w,[x]:b});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[j]:f,[x]:m}}}}}},U_=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:i,placement:o,rects:u,middlewareData:f}=a,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=Ba(t,a),v={x:r,y:i},y=sa(o),x=Gm(y);let j=v[x],w=v[y];const b=Ba(m,a),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(g){const T=x==="y"?"height":"width",A=u.reference[x]-u.floating[T]+E.mainAxis,B=u.reference[x]+u.reference[T]-E.mainAxis;j<A?j=A:j>B&&(j=B)}if(p){var _,C;const T=x==="y"?"width":"height",A=j1.has(Ua(o)),B=u.reference[y]-u.floating[T]+(A&&((_=f.offset)==null?void 0:_[y])||0)+(A?0:E.crossAxis),P=u.reference[y]+u.reference[T]+(A?0:((C=f.offset)==null?void 0:C[y])||0)-(A?E.crossAxis:0);w<B?w=B:w>P&&(w=P)}return{[x]:j,[y]:w}}}},P_=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,i;const{placement:o,rects:u,platform:f,elements:m}=a,{apply:g=()=>{},...p}=Ba(t,a),v=await f.detectOverflow(a,p),y=Ua(o),x=Qi(o),j=sa(o)==="y",{width:w,height:b}=u.floating;let E,_;y==="top"||y==="bottom"?(E=y,_=x===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,E=x==="end"?"top":"bottom");const C=b-v.top-v.bottom,T=w-v.left-v.right,A=Ms(b-v[E],C),B=Ms(w-v[_],T),P=!a.middlewareData.shift;let k=A,D=B;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(D=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(k=C),P&&!x){const q=gn(v.left,0),K=gn(v.right,0),ne=gn(v.top,0),se=gn(v.bottom,0);j?D=w-2*(q!==0||K!==0?q+K:gn(v.left,v.right)):k=b-2*(ne!==0||se!==0?ne+se:gn(v.top,v.bottom))}await g({...a,availableWidth:D,availableHeight:k});const z=await f.getDimensions(m.floating);return w!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Mu(){return typeof window<"u"}function Vi(t){return E1(t)?(t.nodeName||"").toLowerCase():"#document"}function vn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function oa(t){var a;return(a=(E1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function E1(t){return Mu()?t instanceof Node||t instanceof vn(t).Node:!1}function Gn(t){return Mu()?t instanceof Element||t instanceof vn(t).Element:!1}function Pa(t){return Mu()?t instanceof HTMLElement||t instanceof vn(t).HTMLElement:!1}function bx(t){return!Mu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof vn(t).ShadowRoot}function fo(t){const{overflow:a,overflowX:r,overflowY:i,display:o}=In(t);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&o!=="inline"&&o!=="contents"}function F_(t){return/^(table|td|th)$/.test(Vi(t))}function Ou(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const H_=/transform|translate|scale|rotate|perspective|filter/,q_=/paint|layout|strict|content/,ar=t=>!!t&&t!=="none";let Eh;function Vm(t){const a=Gn(t)?In(t):t;return ar(a.transform)||ar(a.translate)||ar(a.scale)||ar(a.rotate)||ar(a.perspective)||!Ym()&&(ar(a.backdropFilter)||ar(a.filter))||H_.test(a.willChange||"")||q_.test(a.contain||"")}function G_(t){let a=Os(t);for(;Pa(a)&&!Hi(a);){if(Vm(a))return a;if(Ou(a))return null;a=Os(a)}return null}function Ym(){return Eh==null&&(Eh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Eh}function Hi(t){return/^(html|body|#document)$/.test(Vi(t))}function In(t){return vn(t).getComputedStyle(t)}function Du(t){return Gn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Os(t){if(Vi(t)==="html")return t;const a=t.assignedSlot||t.parentNode||bx(t)&&t.host||oa(t);return bx(a)?a.host:a}function N1(t){const a=Os(t);return Hi(a)?t.ownerDocument?t.ownerDocument.body:t.body:Pa(a)&&fo(a)?a:N1(a)}function no(t,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=N1(t),u=o===((i=t.ownerDocument)==null?void 0:i.body),f=vn(o);if(u){const m=mm(f);return a.concat(f,f.visualViewport||[],fo(o)?o:[],m&&r?no(m):[])}else return a.concat(o,no(o,[],r))}function mm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function R1(t){const a=In(t);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=Pa(t),u=o?t.offsetWidth:r,f=o?t.offsetHeight:i,m=pu(r)!==u||pu(i)!==f;return m&&(r=u,i=f),{width:r,height:i,$:m}}function $m(t){return Gn(t)?t:t.contextElement}function xi(t){const a=$m(t);if(!Pa(a))return ia(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:u}=R1(a);let f=(u?pu(r.width):r.width)/i,m=(u?pu(r.height):r.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const I_=ia(0);function C1(t){const a=vn(t);return!Ym()||!a.visualViewport?I_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Q_(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==vn(t)?!1:a}function wr(t,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),u=$m(t);let f=ia(1);a&&(i?Gn(i)&&(f=xi(i)):f=xi(t));const m=Q_(u,r,i)?C1(u):ia(0);let g=(o.left+m.x)/f.x,p=(o.top+m.y)/f.y,v=o.width/f.x,y=o.height/f.y;if(u){const x=vn(u),j=i&&Gn(i)?vn(i):i;let w=x,b=mm(w);for(;b&&i&&j!==w;){const E=xi(b),_=b.getBoundingClientRect(),C=In(b),T=_.left+(b.clientLeft+parseFloat(C.paddingLeft))*E.x,A=_.top+(b.clientTop+parseFloat(C.paddingTop))*E.y;g*=E.x,p*=E.y,v*=E.x,y*=E.y,g+=T,p+=A,w=vn(b),b=mm(w)}}return yu({width:v,height:y,x:g,y:p})}function Lu(t,a){const r=Du(t).scrollLeft;return a?a.left+r:wr(oa(t)).left+r}function _1(t,a){const r=t.getBoundingClientRect(),i=r.left+a.scrollLeft-Lu(t,r),o=r.top+a.scrollTop;return{x:i,y:o}}function V_(t){let{elements:a,rect:r,offsetParent:i,strategy:o}=t;const u=o==="fixed",f=oa(i),m=a?Ou(a.floating):!1;if(i===f||m&&u)return r;let g={scrollLeft:0,scrollTop:0},p=ia(1);const v=ia(0),y=Pa(i);if((y||!y&&!u)&&((Vi(i)!=="body"||fo(f))&&(g=Du(i)),y)){const j=wr(i);p=xi(i),v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}const x=f&&!y&&!u?_1(f,g):ia(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+v.x+x.x,y:r.y*p.y-g.scrollTop*p.y+v.y+x.y}}function Y_(t){return Array.from(t.getClientRects())}function $_(t){const a=oa(t),r=Du(t),i=t.ownerDocument.body,o=gn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=gn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+Lu(t);const m=-r.scrollTop;return In(i).direction==="rtl"&&(f+=gn(a.clientWidth,i.clientWidth)-o),{width:o,height:u,x:f,y:m}}const xx=25;function K_(t,a){const r=vn(t),i=oa(t),o=r.visualViewport;let u=i.clientWidth,f=i.clientHeight,m=0,g=0;if(o){u=o.width,f=o.height;const v=Ym();(!v||v&&a==="fixed")&&(m=o.offsetLeft,g=o.offsetTop)}const p=Lu(i);if(p<=0){const v=i.ownerDocument,y=v.body,x=getComputedStyle(y),j=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,w=Math.abs(i.clientWidth-y.clientWidth-j);w<=xx&&(u-=w)}else p<=xx&&(u+=p);return{width:u,height:f,x:m,y:g}}function Z_(t,a){const r=wr(t,!0,a==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,u=Pa(t)?xi(t):ia(1),f=t.clientWidth*u.x,m=t.clientHeight*u.y,g=o*u.x,p=i*u.y;return{width:f,height:m,x:g,y:p}}function Sx(t,a,r){let i;if(a==="viewport")i=K_(t,r);else if(a==="document")i=$_(oa(t));else if(Gn(a))i=Z_(a,r);else{const o=C1(t);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return yu(i)}function A1(t,a){const r=Os(t);return r===a||!Gn(r)||Hi(r)?!1:In(r).position==="fixed"||A1(r,a)}function X_(t,a){const r=a.get(t);if(r)return r;let i=no(t,[],!1).filter(m=>Gn(m)&&Vi(m)!=="body"),o=null;const u=In(t).position==="fixed";let f=u?Os(t):t;for(;Gn(f)&&!Hi(f);){const m=In(f),g=Vm(f);!g&&m.position==="fixed"&&(o=null),(u?!g&&!o:!g&&m.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||fo(f)&&!g&&A1(t,f))?i=i.filter(v=>v!==f):o=m,f=Os(f)}return a.set(t,i),i}function W_(t){let{element:a,boundary:r,rootBoundary:i,strategy:o}=t;const f=[...r==="clippingAncestors"?Ou(a)?[]:X_(a,this._c):[].concat(r),i],m=Sx(a,f[0],o);let g=m.top,p=m.right,v=m.bottom,y=m.left;for(let x=1;x<f.length;x++){const j=Sx(a,f[x],o);g=gn(j.top,g),p=Ms(j.right,p),v=Ms(j.bottom,v),y=gn(j.left,y)}return{width:p-y,height:v-g,x:y,y:g}}function J_(t){const{width:a,height:r}=R1(t);return{width:a,height:r}}function eA(t,a,r){const i=Pa(a),o=oa(a),u=r==="fixed",f=wr(t,!0,u,a);let m={scrollLeft:0,scrollTop:0};const g=ia(0);function p(){g.x=Lu(o)}if(i||!i&&!u)if((Vi(a)!=="body"||fo(o))&&(m=Du(a)),i){const j=wr(a,!0,u,a);g.x=j.x+a.clientLeft,g.y=j.y+a.clientTop}else o&&p();u&&!i&&o&&p();const v=o&&!i&&!u?_1(o,m):ia(0),y=f.left+m.scrollLeft-g.x-v.x,x=f.top+m.scrollTop-g.y-v.y;return{x:y,y:x,width:f.width,height:f.height}}function Nh(t){return In(t).position==="static"}function wx(t,a){if(!Pa(t)||In(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return oa(t)===r&&(r=r.ownerDocument.body),r}function T1(t,a){const r=vn(t);if(Ou(t))return r;if(!Pa(t)){let o=Os(t);for(;o&&!Hi(o);){if(Gn(o)&&!Nh(o))return o;o=Os(o)}return r}let i=wx(t,a);for(;i&&F_(i)&&Nh(i);)i=wx(i,a);return i&&Hi(i)&&Nh(i)&&!Vm(i)?r:i||G_(t)||r}const tA=async function(t){const a=this.getOffsetParent||T1,r=this.getDimensions,i=await r(t.floating);return{reference:eA(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function nA(t){return In(t).direction==="rtl"}const aA={convertOffsetParentRelativeRectToViewportRelativeRect:V_,getDocumentElement:oa,getClippingRect:W_,getOffsetParent:T1,getElementRects:tA,getClientRects:Y_,getDimensions:J_,getScale:xi,isElement:Gn,isRTL:nA};function k1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function sA(t,a){let r=null,i;const o=oa(t);function u(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function f(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),u();const p=t.getBoundingClientRect(),{left:v,top:y,width:x,height:j}=p;if(m||a(),!x||!j)return;const w=Pc(y),b=Pc(o.clientWidth-(v+x)),E=Pc(o.clientHeight-(y+j)),_=Pc(v),T={rootMargin:-w+"px "+-b+"px "+-E+"px "+-_+"px",threshold:gn(0,Ms(1,g))||1};let A=!0;function B(P){const k=P[0].intersectionRatio;if(k!==g){if(!A)return f();k?f(!1,k):i=setTimeout(()=>{f(!1,1e-7)},1e3)}k===1&&!k1(p,t.getBoundingClientRect())&&f(),A=!1}try{r=new IntersectionObserver(B,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(B,T)}r.observe(t)}return f(!0),u}function rA(t,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,p=$m(t),v=o||u?[...p?no(p):[],...a?no(a):[]]:[];v.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const y=p&&m?sA(p,r):null;let x=-1,j=null;f&&(j=new ResizeObserver(_=>{let[C]=_;C&&C.target===p&&j&&a&&(j.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),p&&!g&&j.observe(p),a&&j.observe(a));let w,b=g?wr(t):null;g&&E();function E(){const _=wr(t);b&&!k1(b,_)&&r(),b=_,w=requestAnimationFrame(E)}return r(),()=>{var _;v.forEach(C=>{o&&C.removeEventListener("scroll",r),u&&C.removeEventListener("resize",r)}),y==null||y(),(_=j)==null||_.disconnect(),j=null,g&&cancelAnimationFrame(w)}}const iA=z_,lA=B_,oA=O_,cA=P_,uA=D_,jx=M_,dA=U_,fA=(t,a,r)=>{const i=new Map,o={platform:aA,...r},u={...o.platform,_c:i};return k_(t,a,{...o,platform:u})};var hA=typeof document<"u",mA=function(){},eu=hA?N.useLayoutEffect:mA;function vu(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(!vu(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 u=o[i];if(!(u==="_owner"&&t.$$typeof)&&!vu(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function M1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ex(t,a){const r=M1(t);return Math.round(a*r)/r}function Rh(t){const a=N.useRef(t);return eu(()=>{a.current=t}),a}function pA(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:u,floating:f}={},transform:m=!0,whileElementsMounted:g,open:p}=t,[v,y]=N.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[x,j]=N.useState(i);vu(x,i)||j(i);const[w,b]=N.useState(null),[E,_]=N.useState(null),C=N.useCallback(ee=>{ee!==P.current&&(P.current=ee,b(ee))},[]),T=N.useCallback(ee=>{ee!==k.current&&(k.current=ee,_(ee))},[]),A=u||w,B=f||E,P=N.useRef(null),k=N.useRef(null),D=N.useRef(v),z=g!=null,q=Rh(g),K=Rh(o),ne=Rh(p),se=N.useCallback(()=>{if(!P.current||!k.current)return;const ee={placement:a,strategy:r,middleware:x};K.current&&(ee.platform=K.current),fA(P.current,k.current,ee).then(ye=>{const ae={...ye,isPositioned:ne.current!==!1};te.current&&!vu(D.current,ae)&&(D.current=ae,Ru.flushSync(()=>{y(ae)}))})},[x,a,r,K,ne]);eu(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,y(ee=>({...ee,isPositioned:!1})))},[p]);const te=N.useRef(!1);eu(()=>(te.current=!0,()=>{te.current=!1}),[]),eu(()=>{if(A&&(P.current=A),B&&(k.current=B),A&&B){if(q.current)return q.current(A,B,se);se()}},[A,B,se,q,z]);const ce=N.useMemo(()=>({reference:P,floating:k,setReference:C,setFloating:T}),[C,T]),F=N.useMemo(()=>({reference:A,floating:B}),[A,B]),V=N.useMemo(()=>{const ee={position:r,left:0,top:0};if(!F.floating)return ee;const ye=Ex(F.floating,v.x),ae=Ex(F.floating,v.y);return m?{...ee,transform:"translate("+ye+"px, "+ae+"px)",...M1(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:ae}},[r,m,F.floating,v.x,v.y]);return N.useMemo(()=>({...v,update:se,refs:ce,elements:F,floatingStyles:V}),[v,se,ce,F,V])}const gA=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?jx({element:i.current,padding:o}).fn(r):{}:i?jx({element:i,padding:o}).fn(r):{}}}},yA=(t,a)=>{const r=iA(t);return{name:r.name,fn:r.fn,options:[t,a]}},vA=(t,a)=>{const r=lA(t);return{name:r.name,fn:r.fn,options:[t,a]}},bA=(t,a)=>({fn:dA(t).fn,options:[t,a]}),xA=(t,a)=>{const r=oA(t);return{name:r.name,fn:r.fn,options:[t,a]}},SA=(t,a)=>{const r=cA(t);return{name:r.name,fn:r.fn,options:[t,a]}},wA=(t,a)=>{const r=uA(t);return{name:r.name,fn:r.fn,options:[t,a]}},jA=(t,a)=>{const r=gA(t);return{name:r.name,fn:r.fn,options:[t,a]}};var EA="Arrow",O1=N.forwardRef((t,a)=>{const{children:r,width:i=10,height:o=5,...u}=t;return c.jsx(nn.svg,{...u,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});O1.displayName=EA;var NA=O1;function RA(t){const[a,r]=N.useState(void 0);return ks(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let f,m;if("borderBoxSize"in u){const g=u.borderBoxSize,p=Array.isArray(g)?g[0]:g;f=p.inlineSize,m=p.blockSize}else f=t.offsetWidth,m=t.offsetHeight;r({width:f,height:m})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),a}var Km="Popper",[D1,L1]=Hm(Km),[CA,z1]=D1(Km),B1=t=>{const{__scopePopper:a,children:r}=t,[i,o]=N.useState(null);return c.jsx(CA,{scope:a,anchor:i,onAnchorChange:o,children:r})};B1.displayName=Km;var U1="PopperAnchor",P1=N.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:i,...o}=t,u=z1(U1,r),f=N.useRef(null),m=Qn(a,f),g=N.useRef(null);return N.useEffect(()=>{const p=g.current;g.current=(i==null?void 0:i.current)||f.current,p!==g.current&&u.onAnchorChange(g.current)}),i?null:c.jsx(nn.div,{...o,ref:m})});P1.displayName=U1;var Zm="PopperContent",[_A,AA]=D1(Zm),F1=N.forwardRef((t,a)=>{var xe,Be,ve,Ut,Nt,Mt;const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:u="center",alignOffset:f=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:j="optimized",onPlaced:w,...b}=t,E=z1(Zm,r),[_,C]=N.useState(null),T=Qn(a,Pt=>C(Pt)),[A,B]=N.useState(null),P=RA(A),k=(P==null?void 0:P.width)??0,D=(P==null?void 0:P.height)??0,z=i+(u!=="center"?"-"+u:""),q=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},K=Array.isArray(p)?p:[p],ne=K.length>0,se={padding:q,boundary:K.filter(kA),altBoundary:ne},{refs:te,floatingStyles:ce,placement:F,isPositioned:V,middlewareData:ee}=pA({strategy:"fixed",placement:z,whileElementsMounted:(...Pt)=>rA(...Pt,{animationFrame:j==="always"}),elements:{reference:E.anchor},middleware:[yA({mainAxis:o+D,alignmentAxis:f}),g&&vA({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?bA():void 0,...se}),g&&xA({...se}),SA({...se,apply:({elements:Pt,rects:St,availableWidth:zs,availableHeight:Ha})=>{const{width:Rr,height:Bn}=St.reference,wn=Pt.floating.style;wn.setProperty("--radix-popper-available-width",`${zs}px`),wn.setProperty("--radix-popper-available-height",`${Ha}px`),wn.setProperty("--radix-popper-anchor-width",`${Rr}px`),wn.setProperty("--radix-popper-anchor-height",`${Bn}px`)}}),A&&jA({element:A,padding:m}),MA({arrowWidth:k,arrowHeight:D}),x&&wA({strategy:"referenceHidden",...se})]}),[ye,ae]=G1(F),L=Fi(w);ks(()=>{V&&(L==null||L())},[V,L]);const Z=(xe=ee.arrow)==null?void 0:xe.x,re=(Be=ee.arrow)==null?void 0:Be.y,ie=((ve=ee.arrow)==null?void 0:ve.centerOffset)!==0,[le,he]=N.useState();return ks(()=>{_&&he(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:V?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(Ut=ee.transformOrigin)==null?void 0:Ut.x,(Nt=ee.transformOrigin)==null?void 0:Nt.y].join(" "),...((Mt=ee.hide)==null?void 0:Mt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(_A,{scope:r,placedSide:ye,onArrowChange:B,arrowX:Z,arrowY:re,shouldHideArrow:ie,children:c.jsx(nn.div,{"data-side":ye,"data-align":ae,...b,ref:T,style:{...b.style,animation:V?void 0:"none"}})})})});F1.displayName=Zm;var H1="PopperArrow",TA={top:"bottom",right:"left",bottom:"top",left:"right"},q1=N.forwardRef(function(a,r){const{__scopePopper:i,...o}=a,u=AA(H1,i),f=TA[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:c.jsx(NA,{...o,ref:r,style:{...o.style,display:"block"}})})});q1.displayName=H1;function kA(t){return t!==null}var MA=t=>({name:"transformOrigin",options:t,fn(a){var E,_,C;const{placement:r,rects:i,middlewareData:o}=a,f=((E=o.arrow)==null?void 0:E.centerOffset)!==0,m=f?0:t.arrowWidth,g=f?0:t.arrowHeight,[p,v]=G1(r),y={start:"0%",center:"50%",end:"100%"}[v],x=(((_=o.arrow)==null?void 0:_.x)??0)+m/2,j=(((C=o.arrow)==null?void 0:C.y)??0)+g/2;let w="",b="";return p==="bottom"?(w=f?y:`${x}px`,b=`${-g}px`):p==="top"?(w=f?y:`${x}px`,b=`${i.floating.height+g}px`):p==="right"?(w=`${-g}px`,b=f?y:`${j}px`):p==="left"&&(w=`${i.floating.width+g}px`,b=f?y:`${j}px`),{data:{x:w,y:b}}}});function G1(t){const[a,r="center"]=t.split("-");return[a,r]}var OA=B1,DA=P1,LA=F1,zA=q1,BA="Portal",Xm=N.forwardRef((t,a)=>{var m;const{container:r,...i}=t,[o,u]=N.useState(!1);ks(()=>u(!0),[]);const f=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return f?L2.createPortal(c.jsx(nn.div,{...i,ref:a}),f):null});Xm.displayName=BA;function UA(t,a){return N.useReducer((r,i)=>a[r][i]??r,t)}var Yi=t=>{const{present:a,children:r}=t,i=PA(a),o=typeof r=="function"?r({present:i.isPresent}):N.Children.only(r),u=Qn(i.ref,FA(o));return typeof r=="function"||i.isPresent?N.cloneElement(o,{ref:u}):null};Yi.displayName="Presence";function PA(t){const[a,r]=N.useState(),i=N.useRef(null),o=N.useRef(t),u=N.useRef("none"),f=t?"mounted":"unmounted",[m,g]=UA(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const p=Fc(i.current);u.current=m==="mounted"?p:"none"},[m]),ks(()=>{const p=i.current,v=o.current;if(v!==t){const x=u.current,j=Fc(p);t?g("MOUNT"):j==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(v&&x!==j?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),ks(()=>{if(a){let p;const v=a.ownerDocument.defaultView??window,y=j=>{const b=Fc(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&b&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},x=j=>{j.target===a&&(u.current=Fc(i.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(p),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:N.useCallback(p=>{i.current=p?getComputedStyle(p):null,r(p)},[])}}function Fc(t){return(t==null?void 0:t.animationName)||"none"}function FA(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 HA=Sm[" useInsertionEffect ".trim().toString()]||ks;function I1({prop:t,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,u,f]=qA({defaultProp:a,onChange:r}),m=t!==void 0,g=m?t:o;{const v=N.useRef(t!==void 0);N.useEffect(()=>{const y=v.current;y!==m&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=m},[m,i])}const p=N.useCallback(v=>{var y;if(m){const x=GA(v)?v(t):v;x!==t&&((y=f.current)==null||y.call(f,x))}else u(v)},[m,t,u,f]);return[g,p]}function qA({defaultProp:t,onChange:a}){const[r,i]=N.useState(t),o=N.useRef(r),u=N.useRef(a);return HA(()=>{u.current=a},[a]),N.useEffect(()=>{var f;o.current!==r&&((f=u.current)==null||f.call(u,r),o.current=r)},[r,o]),[r,i,u]}function GA(t){return typeof t=="function"}var IA=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"}),QA="VisuallyHidden",Q1=N.forwardRef((t,a)=>c.jsx(nn.span,{...t,ref:a,style:{...IA,...t.style}}));Q1.displayName=QA;var VA=Q1,[zu]=Hm("Tooltip",[L1]),Bu=L1(),V1="TooltipProvider",YA=700,pm="tooltip.open",[$A,Wm]=zu(V1),Y1=t=>{const{__scopeTooltip:a,delayDuration:r=YA,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:u}=t,f=N.useRef(!0),m=N.useRef(!1),g=N.useRef(0);return N.useEffect(()=>{const p=g.current;return()=>window.clearTimeout(p)},[]),c.jsx($A,{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:m,onPointerInTransitChange:N.useCallback(p=>{m.current=p},[]),disableHoverableContent:o,children:u})};Y1.displayName=V1;var ao="Tooltip",[KA,ho]=zu(ao),$1=t=>{const{__scopeTooltip:a,children:r,open:i,defaultOpen:o,onOpenChange:u,disableHoverableContent:f,delayDuration:m}=t,g=Wm(ao,t.__scopeTooltip),p=Bu(a),[v,y]=N.useState(null),x=Jc(),j=N.useRef(0),w=f??g.disableHoverableContent,b=m??g.delayDuration,E=N.useRef(!1),[_,C]=I1({prop:i,defaultProp:o??!1,onChange:k=>{k?(g.onOpen(),document.dispatchEvent(new CustomEvent(pm))):g.onClose(),u==null||u(k)},caller:ao}),T=N.useMemo(()=>_?E.current?"delayed-open":"instant-open":"closed",[_]),A=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,E.current=!1,C(!0)},[C]),B=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,C(!1)},[C]),P=N.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{E.current=!0,C(!0),j.current=0},b)},[b,C]);return N.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),c.jsx(OA,{...p,children:c.jsx(KA,{scope:a,contentId:x,open:_,stateAttribute:T,trigger:v,onTriggerChange:y,onTriggerEnter:N.useCallback(()=>{g.isOpenDelayedRef.current?P():A()},[g.isOpenDelayedRef,P,A]),onTriggerLeave:N.useCallback(()=>{w?B():(window.clearTimeout(j.current),j.current=0)},[B,w]),onOpen:A,onClose:B,disableHoverableContent:w,children:r})})};$1.displayName=ao;var gm="TooltipTrigger",K1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=ho(gm,r),u=Wm(gm,r),f=Bu(r),m=N.useRef(null),g=Qn(a,m,o.onTriggerChange),p=N.useRef(!1),v=N.useRef(!1),y=N.useCallback(()=>p.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),c.jsx(DA,{asChild:!0,...f,children:c.jsx(nn.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:g,onPointerMove:Jt(t.onPointerMove,x=>{x.pointerType!=="touch"&&!v.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Jt(t.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Jt(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Jt(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Jt(t.onBlur,o.onClose),onClick:Jt(t.onClick,o.onClose)})})});K1.displayName=gm;var Jm="TooltipPortal",[ZA,XA]=zu(Jm,{forceMount:void 0}),Z1=t=>{const{__scopeTooltip:a,forceMount:r,children:i,container:o}=t,u=ho(Jm,a);return c.jsx(ZA,{scope:a,forceMount:r,children:c.jsx(Yi,{present:r||u.open,children:c.jsx(Xm,{asChild:!0,container:o,children:i})})})};Z1.displayName=Jm;var qi="TooltipContent",X1=N.forwardRef((t,a)=>{const r=XA(qi,t.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...u}=t,f=ho(qi,t.__scopeTooltip);return c.jsx(Yi,{present:i||f.open,children:f.disableHoverableContent?c.jsx(W1,{side:o,...u,ref:a}):c.jsx(WA,{side:o,...u,ref:a})})}),WA=N.forwardRef((t,a)=>{const r=ho(qi,t.__scopeTooltip),i=Wm(qi,t.__scopeTooltip),o=N.useRef(null),u=Qn(a,o),[f,m]=N.useState(null),{trigger:g,onClose:p}=r,v=o.current,{onPointerInTransitChange:y}=i,x=N.useCallback(()=>{m(null),y(!1)},[y]),j=N.useCallback((w,b)=>{const E=w.currentTarget,_={x:w.clientX,y:w.clientY},C=nT(_,E.getBoundingClientRect()),T=aT(_,C),A=sT(b.getBoundingClientRect()),B=iT([...T,...A]);m(B),y(!0)},[y]);return N.useEffect(()=>()=>x(),[x]),N.useEffect(()=>{if(g&&v){const w=E=>j(E,v),b=E=>j(E,g);return g.addEventListener("pointerleave",w),v.addEventListener("pointerleave",b),()=>{g.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",b)}}},[g,v,j,x]),N.useEffect(()=>{if(f){const w=b=>{const E=b.target,_={x:b.clientX,y:b.clientY},C=(g==null?void 0:g.contains(E))||(v==null?void 0:v.contains(E)),T=!rT(_,f);C?x():T&&(x(),p())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[g,v,f,p,x]),c.jsx(W1,{...t,ref:u})}),[JA,eT]=zu(ao,{isInside:!1}),tT=s_("TooltipContent"),W1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:f,...m}=t,g=ho(qi,r),p=Bu(r),{onClose:v}=g;return N.useEffect(()=>(document.addEventListener(pm,v),()=>document.removeEventListener(pm,v)),[v]),N.useEffect(()=>{if(g.trigger){const y=x=>{const j=x.target;j!=null&&j.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),c.jsx(qm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:c.jsxs(LA,{"data-state":g.stateAttribute,...p,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(tT,{children:i}),c.jsx(JA,{scope:r,isInside:!0,children:c.jsx(VA,{id:g.contentId,role:"tooltip",children:o||i})})]})})});X1.displayName=qi;var J1="TooltipArrow",eS=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=Bu(r);return eT(J1,r).isInside?null:c.jsx(zA,{...o,...i,ref:a})});eS.displayName=J1;function nT(t,a){const r=Math.abs(a.top-t.y),i=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),u=Math.abs(a.left-t.x);switch(Math.min(r,i,o,u)){case u:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function aT(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 sT(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 rT(t,a){const{x:r,y:i}=t;let o=!1;for(let u=0,f=a.length-1;u<a.length;f=u++){const m=a[u],g=a[f],p=m.x,v=m.y,y=g.x,x=g.y;v>i!=x>i&&r<(y-p)*(i-v)/(x-v)+p&&(o=!o)}return o}function iT(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),lT(a)}function lT(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 u=a[a.length-1],f=a[a.length-2];if((u.x-f.x)*(o.y-f.y)>=(u.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 u=r[r.length-1],f=r[r.length-2];if((u.x-f.x)*(o.y-f.y)>=(u.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 oT=Y1,cT=$1,uT=K1,dT=Z1,fT=X1,hT=eS;function st(...t){return g1(uo(t))}function mT({delayDuration:t=0,...a}){return c.jsx(oT,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function pT({...t}){return c.jsx(cT,{"data-slot":"tooltip",...t})}function gT({...t}){return c.jsx(uT,{"data-slot":"tooltip-trigger",...t})}function yT({className:t,sideOffset:a=0,children:r,...i}){return c.jsx(dT,{children:c.jsxs(fT,{"data-slot":"tooltip-content",sideOffset:a,className:st("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,c.jsx(hT,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}var vT=Symbol.for("react.lazy"),bu=Sm[" use ".trim().toString()];function bT(t){return typeof t=="object"&&t!==null&&"then"in t}function tS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===vT&&"_payload"in t&&bT(t._payload)}function nS(t){const a=xT(t),r=N.forwardRef((i,o)=>{let{children:u,...f}=i;tS(u)&&typeof bu=="function"&&(u=bu(u._payload));const m=N.Children.toArray(u),g=m.find(wT);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...f,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...f,ref:o,children:u})});return r.displayName=`${t}.Slot`,r}var ep=nS("Slot");function xT(t){const a=N.forwardRef((r,i)=>{let{children:o,...u}=r;if(tS(o)&&typeof bu=="function"&&(o=bu(o._payload)),N.isValidElement(o)){const f=ET(o),m=jT(u,o.props);return o.type!==N.Fragment&&(m.ref=i?Fm(i,f):f),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var ST=Symbol("radix.slottable");function wT(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ST}function jT(t,a){const r={...a};for(const i in a){const o=t[i],u=a[i];/^on[A-Z]/.test(i)?o&&u?r[i]=(...m)=>{const g=u(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...u}:i==="className"&&(r[i]=[o,u].filter(Boolean).join(" "))}return{...t,...r}}function ET(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 Ch=768;function NT(){const[t,a]=N.useState(void 0);return N.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Ch-1}px)`),i=()=>{a(window.innerWidth<Ch)};return r.addEventListener("change",i),a(window.innerWidth<Ch),()=>r.removeEventListener("change",i)},[]),!!t}const RT=ku("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 aS({className:t,variant:a="default",size:r="default",asChild:i=!1,...o}){const u=i?ep:"button";return c.jsx(u,{"data-slot":"button","data-variant":a,"data-size":r,className:st(RT({variant:a,size:r,className:t})),...o})}var CT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_T=CT.reduce((t,a)=>{const r=nS(`Primitive.${a}`),i=N.forwardRef((o,u)=>{const{asChild:f,...m}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{}),AT="Separator",Nx="horizontal",TT=["horizontal","vertical"],sS=N.forwardRef((t,a)=>{const{decorative:r,orientation:i=Nx,...o}=t,u=kT(i)?i:Nx,m=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return c.jsx(_T.div,{"data-orientation":u,...m,...o,ref:a})});sS.displayName=AT;function kT(t){return TT.includes(t)}var MT=sS;function OT({className:t,orientation:a="horizontal",decorative:r=!0,...i}){return c.jsx(MT,{"data-slot":"separator",decorative:r,orientation:a,className:st("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",t),...i})}var _h="focusScope.autoFocusOnMount",Ah="focusScope.autoFocusOnUnmount",Rx={bubbles:!1,cancelable:!0},DT="FocusScope",rS=N.forwardRef((t,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...f}=t,[m,g]=N.useState(null),p=Fi(o),v=Fi(u),y=N.useRef(null),x=Qn(a,b=>g(b)),j=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(i){let b=function(T){if(j.paused||!m)return;const A=T.target;m.contains(A)?y.current=A:gs(y.current,{select:!0})},E=function(T){if(j.paused||!m)return;const A=T.relatedTarget;A!==null&&(m.contains(A)||gs(y.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const B of T)B.removedNodes.length>0&&gs(m)};document.addEventListener("focusin",b),document.addEventListener("focusout",E);const C=new MutationObserver(_);return m&&C.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",E),C.disconnect()}}},[i,m,j.paused]),N.useEffect(()=>{if(m){_x.add(j);const b=document.activeElement;if(!m.contains(b)){const _=new CustomEvent(_h,Rx);m.addEventListener(_h,p),m.dispatchEvent(_),_.defaultPrevented||(LT(FT(iS(m)),{select:!0}),document.activeElement===b&&gs(m))}return()=>{m.removeEventListener(_h,p),setTimeout(()=>{const _=new CustomEvent(Ah,Rx);m.addEventListener(Ah,v),m.dispatchEvent(_),_.defaultPrevented||gs(b??document.body,{select:!0}),m.removeEventListener(Ah,v),_x.remove(j)},0)}}},[m,p,v,j]);const w=N.useCallback(b=>{if(!r&&!i||j.paused)return;const E=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(E&&_){const C=b.currentTarget,[T,A]=zT(C);T&&A?!b.shiftKey&&_===A?(b.preventDefault(),r&&gs(T,{select:!0})):b.shiftKey&&_===T&&(b.preventDefault(),r&&gs(A,{select:!0})):_===C&&b.preventDefault()}},[r,i,j.paused]);return c.jsx(nn.div,{tabIndex:-1,...f,ref:x,onKeyDown:w})});rS.displayName=DT;function LT(t,{select:a=!1}={}){const r=document.activeElement;for(const i of t)if(gs(i,{select:a}),document.activeElement!==r)return}function zT(t){const a=iS(t),r=Cx(a,t),i=Cx(a.reverse(),t);return[r,i]}function iS(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 Cx(t,a){for(const r of t)if(!BT(r,{upTo:a}))return r}function BT(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 UT(t){return t instanceof HTMLInputElement&&"select"in t}function gs(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UT(t)&&a&&t.select()}}var _x=PT();function PT(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=Ax(t,a),t.unshift(a)},remove(a){var r;t=Ax(t,a),(r=t[0])==null||r.resume()}}}function Ax(t,a){const r=[...t],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function FT(t){return t.filter(a=>a.tagName!=="A")}var Th=0;function HT(){N.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Tx()),document.body.insertAdjacentElement("beforeend",t[1]??Tx()),Th++,()=>{Th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Th--}},[])}function Tx(){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 aa=function(){return aa=Object.assign||function(a){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])}return a},aa.apply(this,arguments)};function lS(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 qT(t,a,r){if(r||arguments.length===2)for(var i=0,o=a.length,u;i<o;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return t.concat(u||Array.prototype.slice.call(a))}var tu="right-scroll-bar-position",nu="width-before-scroll-bar",GT="with-scroll-bars-hidden",IT="--removed-body-scroll-bar-size";function kh(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function QT(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 VT=typeof window<"u"?N.useLayoutEffect:N.useEffect,kx=new WeakMap;function YT(t,a){var r=QT(null,function(i){return t.forEach(function(o){return kh(o,i)})});return VT(function(){var i=kx.get(r);if(i){var o=new Set(i),u=new Set(t),f=r.current;o.forEach(function(m){u.has(m)||kh(m,null)}),u.forEach(function(m){o.has(m)||kh(m,f)})}kx.set(r,t)},[t]),r}function $T(t){return t}function KT(t,a){a===void 0&&(a=$T);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(u){var f=a(u,i);return r.push(f),function(){r=r.filter(function(m){return m!==f})}},assignSyncMedium:function(u){for(i=!0;r.length;){var f=r;r=[],f.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){i=!0;var f=[];if(r.length){var m=r;r=[],m.forEach(u),f=r}var g=function(){var v=f;f=[],v.forEach(u)},p=function(){return Promise.resolve().then(g)};p(),r={push:function(v){f.push(v),p()},filter:function(v){return f=f.filter(v),r}}}};return o}function ZT(t){t===void 0&&(t={});var a=KT(null);return a.options=aa({async:!0,ssr:!1},t),a}var oS=function(t){var a=t.sideCar,r=lS(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,aa({},r))};oS.isSideCarExport=!0;function XT(t,a){return t.useMedium(a),oS}var cS=ZT(),Mh=function(){},Uu=N.forwardRef(function(t,a){var r=N.useRef(null),i=N.useState({onScrollCapture:Mh,onWheelCapture:Mh,onTouchMoveCapture:Mh}),o=i[0],u=i[1],f=t.forwardProps,m=t.children,g=t.className,p=t.removeScrollBar,v=t.enabled,y=t.shards,x=t.sideCar,j=t.noRelative,w=t.noIsolation,b=t.inert,E=t.allowPinchZoom,_=t.as,C=_===void 0?"div":_,T=t.gapMode,A=lS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=x,P=YT([r,a]),k=aa(aa({},A),o);return N.createElement(N.Fragment,null,v&&N.createElement(B,{sideCar:cS,removeScrollBar:p,shards:y,noRelative:j,noIsolation:w,inert:b,setCallbacks:u,allowPinchZoom:!!E,lockRef:r,gapMode:T}),f?N.cloneElement(N.Children.only(m),aa(aa({},k),{ref:P})):N.createElement(C,aa({},k,{className:g,ref:P}),m))});Uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uu.classNames={fullWidth:nu,zeroRight:tu};var WT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=WT();return a&&t.setAttribute("nonce",a),t}function ek(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function tk(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var nk=function(){var t=0,a=null;return{add:function(r){t==0&&(a=JT())&&(ek(a,r),tk(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},ak=function(){var t=nk();return function(a,r){N.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},uS=function(){var t=ak(),a=function(r){var i=r.styles,o=r.dynamic;return t(i,o),null};return a},sk={left:0,top:0,right:0,gap:0},Oh=function(t){return parseInt(t||"",10)||0},rk=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[Oh(r),Oh(i),Oh(o)]},ik=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return sk;var a=rk(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])}},lk=uS(),Si="data-scroll-locked",ok=function(t,a,r,i){var o=t.left,u=t.top,f=t.right,m=t.gap;return r===void 0&&(r="margin"),`
|
|
271
|
+
.`.concat(GT,` {
|
|
272
|
+
overflow: hidden `).concat(i,`;
|
|
273
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
274
|
+
}
|
|
275
|
+
body[`).concat(Si,`] {
|
|
276
|
+
overflow: hidden `).concat(i,`;
|
|
277
|
+
overscroll-behavior: contain;
|
|
278
|
+
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
279
|
+
padding-left: `.concat(o,`px;
|
|
280
|
+
padding-top: `).concat(u,`px;
|
|
281
|
+
padding-right: `).concat(f,`px;
|
|
282
|
+
margin-left:0;
|
|
283
|
+
margin-top:0;
|
|
284
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
285
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.`).concat(tu,` {
|
|
289
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.`).concat(nu,` {
|
|
293
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.`).concat(tu," .").concat(tu,` {
|
|
297
|
+
right: 0 `).concat(i,`;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.`).concat(nu," .").concat(nu,` {
|
|
301
|
+
margin-right: 0 `).concat(i,`;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
body[`).concat(Si,`] {
|
|
305
|
+
`).concat(IT,": ").concat(m,`px;
|
|
306
|
+
}
|
|
307
|
+
`)},Mx=function(){var t=parseInt(document.body.getAttribute(Si)||"0",10);return isFinite(t)?t:0},ck=function(){N.useEffect(function(){return document.body.setAttribute(Si,(Mx()+1).toString()),function(){var t=Mx()-1;t<=0?document.body.removeAttribute(Si):document.body.setAttribute(Si,t.toString())}},[])},uk=function(t){var a=t.noRelative,r=t.noImportant,i=t.gapMode,o=i===void 0?"margin":i;ck();var u=N.useMemo(function(){return ik(o)},[o]);return N.createElement(lk,{styles:ok(u,!a,o,r?"":"!important")})},ym=!1;if(typeof window<"u")try{var Hc=Object.defineProperty({},"passive",{get:function(){return ym=!0,!0}});window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{ym=!1}var hi=ym?{passive:!1}:!1,dk=function(t){return t.tagName==="TEXTAREA"},dS=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!dk(t)&&r[a]==="visible")},fk=function(t){return dS(t,"overflowY")},hk=function(t){return dS(t,"overflowX")},Ox=function(t,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=fS(t,i);if(o){var u=hS(t,i),f=u[1],m=u[2];if(f>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},mk=function(t){var a=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[a,r,i]},pk=function(t){var a=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[a,r,i]},fS=function(t,a){return t==="v"?fk(a):hk(a)},hS=function(t,a){return t==="v"?mk(a):pk(a)},gk=function(t,a){return t==="h"&&a==="rtl"?-1:1},yk=function(t,a,r,i,o){var u=gk(t,window.getComputedStyle(a).direction),f=u*i,m=r.target,g=a.contains(m),p=!1,v=f>0,y=0,x=0;do{if(!m)break;var j=hS(t,m),w=j[0],b=j[1],E=j[2],_=b-E-u*w;(w||_)&&fS(t,m)&&(y+=_,x+=w);var C=m.parentNode;m=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!g&&m!==document.body||g&&(a.contains(m)||a===m));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(p=!0),p},qc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Dx=function(t){return[t.deltaX,t.deltaY]},Lx=function(t){return t&&"current"in t?t.current:t},vk=function(t,a){return t[0]===a[0]&&t[1]===a[1]},bk=function(t){return`
|
|
308
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
309
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
310
|
+
`)},xk=0,mi=[];function Sk(t){var a=N.useRef([]),r=N.useRef([0,0]),i=N.useRef(),o=N.useState(xk++)[0],u=N.useState(uS)[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 b=qT([t.lockRef.current],(t.shards||[]).map(Lx),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=N.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!f.current.allowPinchZoom;var _=qc(b),C=r.current,T="deltaX"in b?b.deltaX:C[0]-_[0],A="deltaY"in b?b.deltaY:C[1]-_[1],B,P=b.target,k=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in b&&k==="h"&&P.type==="range")return!1;var D=window.getSelection(),z=D&&D.anchorNode,q=z?z===P||z.contains(P):!1;if(q)return!1;var K=Ox(k,P);if(!K)return!0;if(K?B=k:(B=k==="v"?"h":"v",K=Ox(k,P)),!K)return!1;if(!i.current&&"changedTouches"in b&&(T||A)&&(i.current=B),!B)return!0;var ne=i.current||B;return yk(ne,E,b,ne==="h"?T:A)},[]),g=N.useCallback(function(b){var E=b;if(!(!mi.length||mi[mi.length-1]!==u)){var _="deltaY"in E?Dx(E):qc(E),C=a.current.filter(function(B){return B.name===E.type&&(B.target===E.target||E.target===B.shadowParent)&&vk(B.delta,_)})[0];if(C&&C.should){E.cancelable&&E.preventDefault();return}if(!C){var T=(f.current.shards||[]).map(Lx).filter(Boolean).filter(function(B){return B.contains(E.target)}),A=T.length>0?m(E,T[0]):!f.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),p=N.useCallback(function(b,E,_,C){var T={name:b,delta:E,target:_,should:C,shadowParent:wk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(A){return A!==T})},1)},[]),v=N.useCallback(function(b){r.current=qc(b),i.current=void 0},[]),y=N.useCallback(function(b){p(b.type,Dx(b),b.target,m(b,t.lockRef.current))},[]),x=N.useCallback(function(b){p(b.type,qc(b),b.target,m(b,t.lockRef.current))},[]);N.useEffect(function(){return mi.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",g,hi),document.addEventListener("touchmove",g,hi),document.addEventListener("touchstart",v,hi),function(){mi=mi.filter(function(b){return b!==u}),document.removeEventListener("wheel",g,hi),document.removeEventListener("touchmove",g,hi),document.removeEventListener("touchstart",v,hi)}},[]);var j=t.removeScrollBar,w=t.inert;return N.createElement(N.Fragment,null,w?N.createElement(u,{styles:bk(o)}):null,j?N.createElement(uk,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function wk(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const jk=XT(cS,Sk);var mS=N.forwardRef(function(t,a){return N.createElement(Uu,aa({},t,{ref:a,sideCar:jk}))});mS.classNames=Uu.classNames;var Ek=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},pi=new WeakMap,Gc=new WeakMap,Ic={},Dh=0,pS=function(t){return t&&(t.host||pS(t.parentNode))},Nk=function(t,a){return a.map(function(r){if(t.contains(r))return r;var i=pS(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})},Rk=function(t,a,r,i){var o=Nk(a,Array.isArray(t)?t:[t]);Ic[r]||(Ic[r]=new WeakMap);var u=Ic[r],f=[],m=new Set,g=new Set(o),p=function(y){!y||m.has(y)||(m.add(y),p(y.parentNode))};o.forEach(p);var v=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(x){if(m.has(x))v(x);else try{var j=x.getAttribute(i),w=j!==null&&j!=="false",b=(pi.get(x)||0)+1,E=(u.get(x)||0)+1;pi.set(x,b),u.set(x,E),f.push(x),b===1&&w&&Gc.set(x,!0),E===1&&x.setAttribute(r,"true"),w||x.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",x,_)}})};return v(a),m.clear(),Dh++,function(){f.forEach(function(y){var x=pi.get(y)-1,j=u.get(y)-1;pi.set(y,x),u.set(y,j),x||(Gc.has(y)||y.removeAttribute(i),Gc.delete(y)),j||y.removeAttribute(r)}),Dh--,Dh||(pi=new WeakMap,pi=new WeakMap,Gc=new WeakMap,Ic={})}},Ck=function(t,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),o=Ek(t);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),Rk(i,o,r,"aria-hidden")):function(){return null}},Pu="Dialog",[gS]=Hm(Pu),[_k,Vn]=gS(Pu),yS=t=>{const{__scopeDialog:a,children:r,open:i,defaultOpen:o,onOpenChange:u,modal:f=!0}=t,m=N.useRef(null),g=N.useRef(null),[p,v]=I1({prop:i,defaultProp:o??!1,onChange:u,caller:Pu});return c.jsx(_k,{scope:a,triggerRef:m,contentRef:g,contentId:Jc(),titleId:Jc(),descriptionId:Jc(),open:p,onOpenChange:v,onOpenToggle:N.useCallback(()=>v(y=>!y),[v]),modal:f,children:r})};yS.displayName=Pu;var vS="DialogTrigger",Ak=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Vn(vS,r),u=Qn(a,o.triggerRef);return c.jsx(nn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ap(o.open),...i,ref:u,onClick:Jt(t.onClick,o.onOpenToggle)})});Ak.displayName=vS;var tp="DialogPortal",[Tk,bS]=gS(tp,{forceMount:void 0}),xS=t=>{const{__scopeDialog:a,forceMount:r,children:i,container:o}=t,u=Vn(tp,a);return c.jsx(Tk,{scope:a,forceMount:r,children:N.Children.map(i,f=>c.jsx(Yi,{present:r||u.open,children:c.jsx(Xm,{asChild:!0,container:o,children:f})}))})};xS.displayName=tp;var xu="DialogOverlay",SS=N.forwardRef((t,a)=>{const r=bS(xu,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,u=Vn(xu,t.__scopeDialog);return u.modal?c.jsx(Yi,{present:i||u.open,children:c.jsx(Mk,{...o,ref:a})}):null});SS.displayName=xu;var kk=v1("DialogOverlay.RemoveScroll"),Mk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Vn(xu,r);return c.jsx(mS,{as:kk,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(nn.div,{"data-state":ap(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),jr="DialogContent",wS=N.forwardRef((t,a)=>{const r=bS(jr,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,u=Vn(jr,t.__scopeDialog);return c.jsx(Yi,{present:i||u.open,children:u.modal?c.jsx(Ok,{...o,ref:a}):c.jsx(Dk,{...o,ref:a})})});wS.displayName=jr;var Ok=N.forwardRef((t,a)=>{const r=Vn(jr,t.__scopeDialog),i=N.useRef(null),o=Qn(a,r.contentRef,i);return N.useEffect(()=>{const u=i.current;if(u)return Ck(u)},[]),c.jsx(jS,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Jt(t.onCloseAutoFocus,u=>{var f;u.preventDefault(),(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Jt(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&u.preventDefault()}),onFocusOutside:Jt(t.onFocusOutside,u=>u.preventDefault())})}),Dk=N.forwardRef((t,a)=>{const r=Vn(jr,t.__scopeDialog),i=N.useRef(!1),o=N.useRef(!1);return c.jsx(jS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var f,m;(f=t.onCloseAutoFocus)==null||f.call(t,u),u.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),u.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:u=>{var g,p;(g=t.onInteractOutside)==null||g.call(t,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const f=u.target;((p=r.triggerRef.current)==null?void 0:p.contains(f))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),jS=N.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:u,...f}=t,m=Vn(jr,r),g=N.useRef(null),p=Qn(a,g);return HT(),c.jsxs(c.Fragment,{children:[c.jsx(rS,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(qm,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":ap(m.open),...f,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Lk,{titleId:m.titleId}),c.jsx(Bk,{contentRef:g,descriptionId:m.descriptionId})]})]})}),np="DialogTitle",ES=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Vn(np,r);return c.jsx(nn.h2,{id:o.titleId,...i,ref:a})});ES.displayName=np;var NS="DialogDescription",RS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Vn(NS,r);return c.jsx(nn.p,{id:o.descriptionId,...i,ref:a})});RS.displayName=NS;var CS="DialogClose",_S=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Vn(CS,r);return c.jsx(nn.button,{type:"button",...i,ref:a,onClick:Jt(t.onClick,()=>o.onOpenChange(!1))})});_S.displayName=CS;function ap(t){return t?"open":"closed"}var AS="DialogTitleWarning",[P3,TS]=t_(AS,{contentName:jr,titleName:np,docsSlug:"dialog"}),Lk=({titleId:t})=>{const a=TS(AS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
311
|
+
|
|
312
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
313
|
+
|
|
314
|
+
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},zk="DialogDescriptionWarning",Bk=({contentRef:t,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${TS(zk).contentName}}.`;return N.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(i))},[i,t,a]),null},Uk=yS,Pk=xS,Fk=SS,Hk=wS,qk=ES,Gk=RS,Ik=_S;function Qk({...t}){return c.jsx(Uk,{"data-slot":"sheet",...t})}function Vk({...t}){return c.jsx(Pk,{"data-slot":"sheet-portal",...t})}function Yk({className:t,...a}){return c.jsx(Fk,{"data-slot":"sheet-overlay",className:st("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 $k({className:t,children:a,side:r="right",showCloseButton:i=!0,...o}){return c.jsxs(Vk,{children:[c.jsx(Yk,{}),c.jsxs(Hk,{"data-slot":"sheet-content","data-side":r,className:st("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&&c.jsx(Ik,{"data-slot":"sheet-close",asChild:!0,children:c.jsxs(aS,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[c.jsx(Ui,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Kk({className:t,...a}){return c.jsx("div",{"data-slot":"sheet-header",className:st("flex flex-col gap-0.5 p-4",t),...a})}function Zk({className:t,...a}){return c.jsx(qk,{"data-slot":"sheet-title",className:st("font-heading text-base font-medium text-foreground",t),...a})}function Xk({className:t,...a}){return c.jsx(Gk,{"data-slot":"sheet-description",className:st("text-sm text-muted-foreground",t),...a})}const Wk="sidebar_state",Jk=3600*24*7,eM="16rem",tM="18rem",nM="3rem",aM="b",kS=N.createContext(null);function sp(){const t=N.useContext(kS);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function sM({defaultOpen:t=!0,open:a,onOpenChange:r,className:i,style:o,children:u,...f}){const m=NT(),[g,p]=N.useState(!1),[v,y]=N.useState(t),x=a??v,j=N.useCallback(_=>{const C=typeof _=="function"?_(x):_;r?r(C):y(C),document.cookie=`${Wk}=${C}; path=/; max-age=${Jk}`},[r,x]),w=N.useCallback(()=>m?p(_=>!_):j(_=>!_),[m,j,p]);N.useEffect(()=>{const _=C=>{C.key===aM&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),w())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[w]);const b=x?"expanded":"collapsed",E=N.useMemo(()=>({state:b,open:x,setOpen:j,isMobile:m,openMobile:g,setOpenMobile:p,toggleSidebar:w}),[b,x,j,m,g,p,w]);return c.jsx(kS.Provider,{value:E,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":eM,"--sidebar-width-icon":nM,...o},className:st("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...f,children:u})})}function rM({side:t="left",variant:a="sidebar",collapsible:r="offcanvas",className:i,children:o,dir:u,...f}){const{isMobile:m,state:g,openMobile:p,setOpenMobile:v}=sp();return r==="none"?c.jsx("div",{"data-slot":"sidebar",className:st("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...f,children:o}):m?c.jsx(Qk,{open:p,onOpenChange:v,...f,children:c.jsxs($k,{dir:u,"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":tM},side:t,children:[c.jsxs(Kk,{className:"sr-only",children:[c.jsx(Zk,{children:"Sidebar"}),c.jsx(Xk,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.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:[c.jsx("div",{"data-slot":"sidebar-gap",className:st("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)")}),c.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:st("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:c.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 iM({className:t,onClick:a,...r}){const{toggleSidebar:i}=sp();return c.jsxs(aS,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:st(t),onClick:o=>{a==null||a(o),i()},...r,children:[c.jsx(FR,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function lM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:st("flex flex-col gap-2 p-2",t),...a})}function oM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:st("flex flex-col gap-2 p-2",t),...a})}function zx({className:t,...a}){return c.jsx(OT,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:st("mx-2 w-auto bg-sidebar-border",t),...a})}function cM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:st("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function Lh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:st("relative flex w-full min-w-0 flex-col p-2",t),...a})}function Bx({className:t,asChild:a=!1,...r}){const i=a?ep:"div";return c.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:st("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 zh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:st("w-full text-sm",t),...a})}function Qc({className:t,...a}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:st("flex w-full min-w-0 flex-col gap-0.5",t),...a})}function MS({className:t,...a}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:st("group/menu-item relative",t),...a})}const uM=ku("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 OS({asChild:t=!1,isActive:a=!1,variant:r="default",size:i="default",tooltip:o,className:u,...f}){const m=t?ep:"button",{isMobile:g,state:p}=sp(),v=c.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":a,className:st(uM({variant:r,size:i}),u),...f});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(pT,{children:[c.jsx(gT,{asChild:!0,children:v}),c.jsx(yT,{side:"right",align:"center",hidden:p!=="collapsed"||g,...o})]})):v}const DS=N.createContext(null);function LS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ux(t){return t==="system"?LS():t}function dM({children:t,defaultTheme:a="dark"}){const[r,i]=N.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,u]=N.useState(()=>Ux(r)),f=N.useCallback(m=>{i(g=>{const p=typeof m=="function"?m(g):m;return localStorage.setItem("theme",p),p})},[]);return N.useEffect(()=>{const m=Ux(r);u(m),document.documentElement.classList.toggle("dark",m==="dark")},[r]),N.useEffect(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(r==="system"){const p=LS();u(p),document.documentElement.classList.toggle("dark",p==="dark")}};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[r]),c.jsx(DS.Provider,{value:{theme:r,resolvedTheme:o,setTheme:f},children:t})}function fM(){const t=N.useContext(DS);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function hM(){const{theme:t,resolvedTheme:a,setTheme:r}=fM();return c.jsxs(nt,{variant:"ghost",size:"icon",onClick:()=>r((a??t)==="light"?"dark":"light"),className:"h-8 w-8",children:[c.jsx(WR,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),c.jsx(zR,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),c.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const mM=[{href:"/",label:"Overview",icon:kR,query:Dm},{href:"/workspaces",label:"Workspaces",icon:SR,query:Lm},{href:"/benchmark",label:"Benchmark",icon:Z0}],pM=[{href:"/query",label:"Query",icon:YR},{href:"/documents",label:"Documents",icon:_u,query:()=>du(1,Gt)},{href:"/memories",label:"Memories",icon:aR,query:()=>fu(1,Gt)}],gM=[{href:"/changelog",label:"Changelog",icon:_R},{href:"/settings",label:"Settings",icon:ZR,query:e1}];function Bh({href:t,label:a,icon:r,query:i}){const o=Ds(),f=iN()({to:t,fuzzy:t!=="/"}),m=()=>{if(!i)return;const g=typeof i=="function"?i():i;o.prefetchQuery(g)};return c.jsx(MS,{children:c.jsx(OS,{asChild:!0,isActive:!!f,tooltip:a,children:c.jsxs(bt,{to:t,onMouseEnter:m,children:[c.jsx(r,{className:"h-4 w-4"}),c.jsx("span",{children:a})]})})})}function yM(){return c.jsxs(rM,{collapsible:"icon",children:[c.jsx(lM,{children:c.jsx(Qc,{children:c.jsx(MS,{children:c.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[c.jsx(OS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:c.jsxs(bt,{to:"/",className:"flex items-center gap-3",children:[c.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),c.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:c.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",c.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),c.jsx(iM,{}),c.jsx(hM,{})]})})})}),c.jsxs(cM,{children:[c.jsxs(Lh,{children:[c.jsx(Bx,{children:"Navigation"}),c.jsx(zh,{children:c.jsx(Qc,{children:mM.map(t=>c.jsx(Bh,{...t},t.href))})})]}),c.jsx(zx,{}),c.jsxs(Lh,{children:[c.jsx(Bx,{children:"Debug"}),c.jsx(zh,{children:c.jsx(Qc,{children:pM.map(t=>c.jsx(Bh,{...t},t.href))})})]}),c.jsx(zx,{}),c.jsx(Lh,{children:c.jsx(zh,{children:c.jsx(Qc,{children:gM.map(t=>c.jsx(Bh,{...t},t.href))})})})]}),c.jsx(oM,{children:c.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const Fa=Y2()({component:vM});function vM(){return c.jsx(dM,{defaultTheme:"dark",children:c.jsx(mT,{children:c.jsx(sM,{children:c.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[c.jsx(yM,{}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:c.jsx(Cu,{})})]})})})})}const bM=Sn("/workspaces")({component:()=>c.jsx(Cu,{})}),xM=Sn("/settings")({component:CM}),SM=`{
|
|
315
|
+
"mcpServers": {
|
|
316
|
+
"openez-graph": {
|
|
317
|
+
"command": "pnpm",
|
|
318
|
+
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}`,wM=`{
|
|
322
|
+
"mcpServers": {
|
|
323
|
+
"openez-graph": {
|
|
324
|
+
"command": "pnpm",
|
|
325
|
+
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}`,jM=`{
|
|
329
|
+
"mcpServers": {
|
|
330
|
+
"openez-graph": {
|
|
331
|
+
"command": "pnpm",
|
|
332
|
+
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}`,EM=`{
|
|
336
|
+
"mcp": {
|
|
337
|
+
"servers": {
|
|
338
|
+
"openez-graph": {
|
|
339
|
+
"type": "local",
|
|
340
|
+
"command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}`;function Vc({label:t,value:a}){return c.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:t}),c.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??c.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function NM({children:t}){return c.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:t})}function Yc({name:t,configPath:a,config:r}){return c.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t}),c.jsx(Bt,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",c.jsx(NM,{children:a})]}),c.jsx(WC,{children:r})]})}function RM(){const t=Ds(),{data:a,isLoading:r}=bn(sC),[i,o]=N.useState("none"),[u,f]=N.useState(""),[m,g]=N.useState(""),[p,v]=N.useState("text-embedding-3-small"),[y,x]=N.useState("http://localhost:11434"),[j,w]=N.useState("bge-m3"),b=(a==null?void 0:a.localModels)??[],E=b[0]??"jina-code-static-256",[_,C]=N.useState(E);N.useEffect(()=>{a&&(o(a.provider),f(a.openaiApiKey==="****"?"":a.openaiApiKey),g(a.openaiBaseUrl),v(a.openaiModel),x(a.ollamaBaseUrl),w(a.ollamaModel),C(a.localModels.includes(a.localModel)?a.localModel:E))},[a,E]);const T=zi({mutationFn:P=>xt.updateEmbeddingConfig(P),onSuccess:()=>{t.invalidateQueries({queryKey:["settings","embedding"]})}}),A=()=>T.reset(),B=()=>{const P={};i!==(a==null?void 0:a.provider)&&(P["embedding.provider"]=i),i==="openai"&&(u&&u!=="****"&&(P["embedding.openai_api_key"]=u),m!==((a==null?void 0:a.openaiBaseUrl)??"")&&(P["embedding.openai_base_url"]=m),p!==(a==null?void 0:a.openaiModel)&&(P["embedding.openai_model"]=p)),i==="ollama"&&(y!==(a==null?void 0:a.ollamaBaseUrl)&&(P["embedding.ollama_base_url"]=y),j!==(a==null?void 0:a.ollamaModel)&&(P["embedding.ollama_model"]=j)),i==="local"&&_!==(a==null?void 0:a.localModel)&&(P["embedding.local_model"]=_),Object.keys(P).length!==0&&T.mutate(P)};return r||!a?c.jsx("p",{className:"text-sm text-muted-foreground",children:r?"Loading...":"Unable to load embedding configuration."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"provider",children:"Embedding Provider"}),c.jsxs(ux,{id:"provider",value:i,onChange:P=>{A(),o(P.target.value)},children:[c.jsx("option",{value:"none",children:"none (disabled — FTS only)"}),c.jsx("option",{value:"openai",children:"OpenAI"}),c.jsx("option",{value:"ollama",children:"Ollama (local)"}),c.jsx("option",{value:"local",children:"OpenEZ local (jina-code-static-256)"})]})]}),i==="openai"&&c.jsxs("div",{className:"space-y-4 border-l-2 border-border pl-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"openai-key",children:"API Key"}),c.jsx(yn,{id:"openai-key",type:"password",placeholder:(a==null?void 0:a.openaiApiKey)==="****"?"•••• (stored, type to replace)":"sk-...",value:u,onChange:P=>{A(),f(P.target.value)}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"openai-base",children:"Base URL (optional)"}),c.jsx(yn,{id:"openai-base",placeholder:"https://api.openai.com/v1",value:m,onChange:P=>{A(),g(P.target.value)}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"openai-model",children:"Model"}),c.jsx(yn,{id:"openai-model",placeholder:"text-embedding-3-small",value:p,onChange:P=>{A(),v(P.target.value)}})]})]}),i==="ollama"&&c.jsxs("div",{className:"space-y-4 border-l-2 border-border pl-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"ollama-url",children:"Base URL"}),c.jsx(yn,{id:"ollama-url",placeholder:"http://localhost:11434",value:y,onChange:P=>{A(),x(P.target.value)}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"ollama-model",children:"Model"}),c.jsx(yn,{id:"ollama-model",placeholder:"bge-m3",value:j,onChange:P=>{A(),w(P.target.value)}})]})]}),i==="local"&&c.jsxs("div",{className:"space-y-2 border-l-2 border-border pl-4",children:[c.jsx(Xe,{htmlFor:"local-model",children:"Model preset"}),c.jsx(ux,{id:"local-model",value:_,onChange:P=>{A(),C(P.target.value)},children:b.map(P=>c.jsx("option",{value:P,children:P},P))}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Run ",c.jsx("code",{children:"openez embed [path]"})," after saving to download once and create vectors."]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(nt,{onClick:B,disabled:T.isPending,children:T.isPending?"Saving...":"Save"}),T.isSuccess&&c.jsxs("span",{className:"text-sm text-green-600",children:["Saved!",i==="local"?" Run embed to create vectors.":""]}),T.isError&&c.jsxs("span",{className:"text-sm text-red-600",children:["Error: ",T.error instanceof Error?T.error.message:"unknown"]}),a&&a.dbOverrides.length>0&&c.jsxs(Bt,{variant:"secondary",className:"text-xs",children:[a.dbOverrides.length," DB override",a.dbOverrides.length>1?"s":""]})]})]})}function CM(){const{data:t}=bn(e1);return c.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Settings"}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"Configure embedding provider for vector search."})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Embedding Configuration"})}),c.jsx(Ne,{children:c.jsx(RM,{})})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Environment Fallbacks"})}),c.jsx(Ne,{className:"p-0",children:c.jsxs("div",{className:"px-6 pb-2",children:[c.jsx(Vc,{label:"EMBEDDING_PROVIDER",value:t==null?void 0:t.EMBEDDING_PROVIDER}),c.jsx(Vc,{label:"OPENAI_BASE_URL",value:(t==null?void 0:t.OPENAI_BASE_URL)??"default"}),c.jsx(Vc,{label:"OPENAI_EMBEDDING_MODEL",value:t==null?void 0:t.OPENAI_EMBEDDING_MODEL}),c.jsx(Vc,{label:"OLLAMA_EMBEDDING_MODEL",value:t==null?void 0:t.OLLAMA_EMBEDDING_MODEL})]})})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"MCP Server Setup"})}),c.jsxs(Ne,{className:"flex flex-col gap-4",children:[c.jsx(Yc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:SM}),c.jsx(Yc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:wM}),c.jsx(Yc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:jM}),c.jsx(Yc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:EM})]})]})]})}var _M=Object.create,Fu=Object.defineProperty,AM=Object.defineProperties,TM=Object.getOwnPropertyDescriptor,kM=Object.getOwnPropertyDescriptors,zS=Object.getOwnPropertyNames,Su=Object.getOwnPropertySymbols,MM=Object.getPrototypeOf,rp=Object.prototype.hasOwnProperty,BS=Object.prototype.propertyIsEnumerable,Px=(t,a,r)=>a in t?Fu(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,la=(t,a)=>{for(var r in a||(a={}))rp.call(a,r)&&Px(t,r,a[r]);if(Su)for(var r of Su(a))BS.call(a,r)&&Px(t,r,a[r]);return t},Hu=(t,a)=>AM(t,kM(a)),US=(t,a)=>{var r={};for(var i in t)rp.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&Su)for(var i of Su(t))a.indexOf(i)<0&&BS.call(t,i)&&(r[i]=t[i]);return r},OM=(t,a)=>function(){return a||(0,t[zS(t)[0]])((a={exports:{}}).exports,a),a.exports},DM=(t,a)=>{for(var r in a)Fu(t,r,{get:a[r],enumerable:!0})},LM=(t,a,r,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of zS(a))!rp.call(t,o)&&o!==r&&Fu(t,o,{get:()=>a[o],enumerable:!(i=TM(a,o))||i.enumerable});return t},zM=(t,a,r)=>(r=t!=null?_M(MM(t)):{},LM(!t||!t.__esModule?Fu(r,"default",{value:t,enumerable:!0}):r,t)),BM=OM({"../../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,u={},f={util:{encode:function w(b){return b instanceof m?new m(b.type,w(b.content),b.alias):Array.isArray(b)?b.map(w):b.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(b,E){E=E||{};var _,C;switch(f.util.type(b)){case"Object":if(C=f.util.objId(b),E[C])return E[C];_={},E[C]=_;for(var T in b)b.hasOwnProperty(T)&&(_[T]=w(b[T],E));return _;case"Array":return C=f.util.objId(b),E[C]?E[C]:(_=[],E[C]=_,b.forEach(function(A,B){_[B]=w(A,E)}),_);default:return b}},getLanguage:function(w){for(;w;){var b=i.exec(w.className);if(b)return b[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,b){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+b)},isActive:function(w,b,E){for(var _="no-"+b;w;){var C=w.classList;if(C.contains(b))return!0;if(C.contains(_))return!1;w=w.parentElement}return!!E}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,b){var E=f.util.clone(f.languages[w]);for(var _ in b)E[_]=b[_];return E},insertBefore:function(w,b,E,_){_=_||f.languages;var C=_[w],T={};for(var A in C)if(C.hasOwnProperty(A)){if(A==b)for(var B in E)E.hasOwnProperty(B)&&(T[B]=E[B]);E.hasOwnProperty(A)||(T[A]=C[A])}var P=_[w];return _[w]=T,f.languages.DFS(f.languages,function(k,D){D===P&&k!=w&&(this[k]=T)}),T},DFS:function w(b,E,_,C){C=C||{};var T=f.util.objId;for(var A in b)if(b.hasOwnProperty(A)){E.call(b,A,b[A],_||A);var B=b[A],P=f.util.type(B);P==="Object"&&!C[T(B)]?(C[T(B)]=!0,w(B,E,null,C)):P==="Array"&&!C[T(B)]&&(C[T(B)]=!0,w(B,E,A,C))}}},plugins:{},highlight:function(w,b,E){var _={code:w,grammar:b,language:E};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",_),m.stringify(f.util.encode(_.tokens),_.language)},tokenize:function(w,b){var E=b.rest;if(E){for(var _ in E)b[_]=E[_];delete b.rest}var C=new v;return y(C,C.head,w),p(w,C,b,C.head,0),j(C)},hooks:{all:{},add:function(w,b){var E=f.hooks.all;E[w]=E[w]||[],E[w].push(b)},run:function(w,b){var E=f.hooks.all[w];if(!(!E||!E.length))for(var _=0,C;C=E[_++];)C(b)}},Token:m};function m(w,b,E,_){this.type=w,this.content=b,this.alias=E,this.length=(_||"").length|0}m.stringify=function w(b,E){if(typeof b=="string")return b;if(Array.isArray(b)){var _="";return b.forEach(function(P){_+=w(P,E)}),_}var C={type:b.type,content:w(b.content,E),tag:"span",classes:["token",b.type],attributes:{},language:E},T=b.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 B in C.attributes)A+=" "+B+'="'+(C.attributes[B]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+A+">"+C.content+"</"+C.tag+">"};function g(w,b,E,_){w.lastIndex=b;var C=w.exec(E);if(C&&_&&C[1]){var T=C[1].length;C.index+=T,C[0]=C[0].slice(T)}return C}function p(w,b,E,_,C,T){for(var A in E)if(!(!E.hasOwnProperty(A)||!E[A])){var B=E[A];B=Array.isArray(B)?B:[B];for(var P=0;P<B.length;++P){if(T&&T.cause==A+","+P)return;var k=B[P],D=k.inside,z=!!k.lookbehind,q=!!k.greedy,K=k.alias;if(q&&!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,ce=C;te!==b.tail&&!(T&&ce>=T.reach);ce+=te.value.length,te=te.next){var F=te.value;if(b.length>w.length)return;if(!(F instanceof m)){var V=1,ee;if(q){if(ee=g(se,ce,w,z),!ee||ee.index>=w.length)break;var Z=ee.index,ye=ee.index+ee[0].length,ae=ce;for(ae+=te.value.length;Z>=ae;)te=te.next,ae+=te.value.length;if(ae-=te.value.length,ce=ae,te.value instanceof m)continue;for(var L=te;L!==b.tail&&(ae<ye||typeof L.value=="string");L=L.next)V++,ae+=L.value.length;V--,F=w.slice(ce,ae),ee.index-=ce}else if(ee=g(se,0,F,z),!ee)continue;var Z=ee.index,re=ee[0],ie=F.slice(0,Z),le=F.slice(Z+re.length),he=ce+F.length;T&&he>T.reach&&(T.reach=he);var xe=te.prev;ie&&(xe=y(b,xe,ie),ce+=ie.length),x(b,xe,V);var Be=new m(A,D?f.tokenize(re,D):re,K,re);if(te=y(b,xe,Be),le&&y(b,te,le),V>1){var ve={cause:A+","+P,reach:he};p(w,b,E,te.prev,ce,ve),T&&ve.reach>T.reach&&(T.reach=ve.reach)}}}}}}function v(){var w={value:null,prev:null,next:null},b={value:null,prev:w,next:null};w.next=b,this.head=w,this.tail=b,this.length=0}function y(w,b,E){var _=b.next,C={value:E,prev:b,next:_};return b.next=C,_.prev=C,w.length++,C}function x(w,b,E){for(var _=b.next,C=0;C<E&&_!==w.tail;C++)_=_.next;b.next=_,_.prev=b,w.length-=C}function j(w){for(var b=[],E=w.head.next;E!==w.tail;)b.push(E.value),E=E.next;return b}return f})();a.exports=r,r.default=r}}),J=zM(BM());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 u=function(y){y.inside||(y.inside={}),y.inside.rest=i},f="doc-comment";if(m=t.languages[o]){var m,g=m[f];if((g=g||(m=t.languages.insertBefore(o,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[f])instanceof RegExp&&(g=m[f]={pattern:g}),Array.isArray(g))for(var p=0,v=g.length;p<v;p++)g[p]instanceof RegExp&&(g[p]={pattern:g[p]}),u(g[p]);else u(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}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function f(m,g){g=(g||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return m});return RegExp(p,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+"|"+u+")"})),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(u),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(p){return p=p.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),u=/\|?[ \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+u+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+u+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+u+"$"),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(p){["url","bold","italic","strike","code-snippet"].forEach(function(v){p!==v&&(t.languages.markdown[p].inside.content.inside[v]=t.languages.markdown[v])})}),t.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function v(y){if(y&&typeof y!="string")for(var x=0,j=y.length;x<j;x++){var w,b=y[x];b.type!=="code"?v(b.content):(w=b.content[1],b=b.content[3],w&&b&&w.type==="code-language"&&b.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()),b.alias?typeof b.alias=="string"?b.alias=[b.alias,w]:b.alias.push(w):b.alias=[w]))}})(p.tokens)}),t.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var v="",y=0,x=p.classes.length;y<x;y++){var j=p.classes[y],j=/language-(.+)/.exec(j);if(j){v=j[1];break}}var w,b=t.languages[v];b?p.content=t.highlight((function(E){return E=E.replace(f,""),E=E.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)):m[C]||_})})(p.content),b,v):v&&v!=="none"&&t.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,t.plugins.autoloader.loadLanguages(v,function(){var E=document.getElementById(w);E&&(E.innerHTML=t.highlight(E.textContent,t.languages[v],v))}))}}),RegExp(t.languages.markup.tag.pattern.source,"gi")),m={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 u=x(/^\($/,/^\)$/);if(u===-1)continue;for(;r<u;r++){var f=v(0);f.type==="variable"&&(j(f,"variable-input"),o.push(f.content))}r=u+1}if(y(["punctuation","property-query"])&&v(0).content==="{"&&(r++,j(v(0),"property-mutation"),0<o.length)){var m=x(/^\{$/,/^\}$/);if(m!==-1)for(var g=r;g<m;g++){var p=a[g];p.type==="variable"&&0<=o.indexOf(p.content)&&j(p,"variable-input")}}}}function v(w){return a[r+w]}function y(w,b){b=b||0;for(var E=0;E<w.length;E++){var _=v(E+b);if(!_||_.type!==w[E])return}return 1}function x(w,b){for(var E=1,_=r;_<a.length;_++){var C=a[_],T=C.content;if(C.type==="punctuation"&&typeof T=="string"){if(w.test(T))E++;else if(b.test(T)&&--E===0)return _}}return-1}function j(w,b){var E=w.alias;E?Array.isArray(E)||(w.alias=E=[E]):w.alias=E=[],E.push(b)}}),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"],u=i.pattern.source;function f(y,x){if(t.languages[y])return{pattern:RegExp("((?:"+x+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function m(y,x,j){return y={code:y,grammar:x,language:j},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,x,j){var E=t.tokenize(y,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,b={},E=m(E.map(function(C){if(typeof C=="string")return C;for(var T,A,C=C.content;y.indexOf((A=w++,T="___"+j.toUpperCase()+"_"+A+"___"))!==-1;);return b[T]=C,T}).join(""),x,j),_=Object.keys(b);return w=0,(function C(T){for(var A=0;A<T.length;A++){if(w>=_.length)return;var B,P,k,D,z,q,K,ne=T[A];typeof ne=="string"||typeof ne.content=="string"?(B=_[w],(K=(q=typeof ne=="string"?ne:ne.content).indexOf(B))!==-1&&(++w,P=q.substring(0,K),z=b[B],k=void 0,(D={})["interpolation-punctuation"]=o,(D=t.tokenize(z,D)).length===3&&((k=[1,1]).push.apply(k,m(D[1],t.languages.javascript,"javascript")),D.splice.apply(D,k)),k=new t.Token("interpolation",D,i.alias,z),D=q.substring(K+B.length),z=[],P&&z.push(P),z.push(k),D&&(C(q=[D]),z.push.apply(z,q)),typeof ne=="string"?(T.splice.apply(T,[A,1].concat(z)),A+=z.length-1):ne.content=z)):(K=ne.content,Array.isArray(K)?C(K):C([K]))}})(E),new t.Token(j,E,"language-"+j,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 p={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 p&&(function x(j){for(var w=0,b=j.length;w<b;w++){var E,_,C,T=j[w];typeof T!="string"&&(E=T.content,Array.isArray(E)?T.type==="template-string"?(T=E[1],E.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])&&(E[1]=g(_,C,T))):x(E):typeof E!="string"&&x([E]))}})(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,m){return RegExp(f.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}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 u=r[i],o=t.languages.javascript[u],u=(o=t.util.type(o)==="RegExp"?t.languages.javascript[u]={pattern:o}:o).inside||{};(o.inside=u)["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 u(g,p){return g=g.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(g,p)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",a),t.languages.jsx.tag.pattern=u(/<\/?(?:[\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:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function f(g){for(var p=[],v=0;v<g.length;v++){var y=g[v],x=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===m(y.content[0].content[1])&&p.pop():y.content[y.content.length-1].content!=="/>"&&p.push({tagName:m(y.content[0].content[1]),openedBraces:0}):0<p.length&&y.type==="punctuation"&&y.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?p[p.length-1].openedBraces--:x=!0),(x||typeof y=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(x=m(y),v<g.length-1&&(typeof g[v+1]=="string"||g[v+1].type==="plain-text")&&(x+=m(g[v+1]),g.splice(v+1,1)),0<v&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(x=m(g[v-1])+x,g.splice(v-1,1),v--),g[v]=new t.Token("plain-text",x,null,x)),y.content&&typeof y.content!="string"&&f(y.content)}}var m=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(m).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 vm={};DM(vm,{dracula:()=>PM,duotoneDark:()=>HM,duotoneLight:()=>GM,github:()=>QM,gruvboxMaterialDark:()=>xO,gruvboxMaterialLight:()=>wO,jettwaveDark:()=>fO,jettwaveLight:()=>mO,nightOwl:()=>YM,nightOwlLight:()=>KM,oceanicNext:()=>XM,okaidia:()=>JM,oneDark:()=>gO,oneLight:()=>vO,palenight:()=>tO,shadesOfPurple:()=>aO,synthwave84:()=>rO,ultramin:()=>lO,vsDark:()=>PS,vsLight:()=>uO});var UM={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)"}}]},PM=UM,FM={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"}}]},HM=FM,qM={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"}}]},GM=qM,IM={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"}}]},QM=IM,VM={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)"}}]},YM=VM,$M={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)"}}]},KM=$M,hn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},ZM={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:hn.keyword}},{types:["attr-value"],style:{color:hn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:hn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:hn.primitive}},{types:["boolean"],style:{color:hn.boolean}},{types:["tag"],style:{color:hn.tag}},{types:["string"],style:{color:hn.string}},{types:["punctuation"],style:{color:hn.string}},{types:["selector","char","builtin","inserted"],style:{color:hn.char}},{types:["function"],style:{color:hn.function}},{types:["operator","entity","url","variable"],style:{color:hn.variable}},{types:["keyword"],style:{color:hn.keyword}},{types:["atrule","class-name"],style:{color:hn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},XM=ZM,WM={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"}}]},JM=WM,eO={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)"}}]},tO=eO,nO={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)"}}]},aO=nO,sO={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"}}]},rO=sO,iO={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=iO,oO={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)"}}]},PS=oO,cO={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=cO,dO={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"}}]},fO=dO,hO={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"}}]},mO=hO,pO={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%)"}}]},gO=pO,yO={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%)"}}]},vO=yO,bO={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"}}]},xO=bO,SO={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"}}]},wO=SO,jO=t=>N.useCallback(a=>{var r=a,{className:i,style:o,line:u}=r,f=US(r,["className","style","line"]);const m=Hu(la({},f),{className:uo("token-line",i)});return typeof t=="object"&&"plain"in t&&(m.style=t.plain),typeof o=="object"&&(m.style=la(la({},m.style||{}),o)),m},[t]),EO=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:u,style:f}=i,m=US(i,["token","className","style"]);const g=Hu(la({},m),{className:uo("token",...o.types,u),children:o.content,style:a(o)});return f!=null&&(g.style=la(la({},g.style||{}),f)),g},[a])},NO=/\r\n|\r|\n/,Fx=t=>{t.length===0?t.push({types:["plain"],content:`
|
|
345
|
+
`,empty:!0}):t.length===1&&t[0].content===""&&(t[0].content=`
|
|
346
|
+
`,t[0].empty=!0)},Hx=(t,a)=>{const r=t.length;return r>0&&t[r-1]===a?t:t.concat(a)},RO=t=>{const a=[[]],r=[t],i=[0],o=[t.length];let u=0,f=0,m=[];const g=[m];for(;f>-1;){for(;(u=i[f]++)<o[f];){let p,v=a[f];const x=r[f][u];if(typeof x=="string"?(v=f>0?v:["plain"],p=x):(v=Hx(v,x.type),x.alias&&(v=Hx(v,x.alias)),p=x.content),typeof p!="string"){f++,a.push(v),r.push(p),i.push(0),o.push(p.length);continue}const j=p.split(NO),w=j.length;m.push({types:v,content:j[0]});for(let b=1;b<w;b++)Fx(m),g.push(m=[]),m.push({types:v,content:j[b]})}f--,a.pop(),r.pop(),i.pop(),o.pop()}return Fx(m),g},qx=RO,CO=({prism:t,code:a,grammar:r,language:i})=>N.useMemo(()=>{if(r==null)return qx([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),qx(o.tokens)},[a,r,i,t]),_O=(t,a)=>{const{plain:r}=t,i=t.styles.reduce((o,u)=>{const{languages:f,style:m}=u;return f&&!f.includes(a)||u.types.forEach(g=>{const p=la(la({},o[g]),m);o[g]=p}),o},{});return i.root=r,i.plain=Hu(la({},r),{backgroundColor:void 0}),i},AO=_O,TO=({children:t,language:a,code:r,theme:i,prism:o})=>{const u=a.toLowerCase(),f=AO(i,u),m=jO(f),g=EO(f),p=o.languages[u],v=CO({prism:o,language:u,code:r,grammar:p});return t({tokens:v,className:`prism-code language-${u}`,style:f!=null?f.root:{},getLineProps:m,getTokenProps:g})},kO=t=>N.createElement(TO,Hu(la({},t),{prism:t.prism||J,theme:t.theme||PS,code:t.code,language:t.language}));/*! Bundled license information:
|
|
347
|
+
|
|
348
|
+
prismjs/prism.js:
|
|
349
|
+
(**
|
|
350
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
351
|
+
*
|
|
352
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
353
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
354
|
+
* @namespace
|
|
355
|
+
* @public
|
|
356
|
+
*)
|
|
357
|
+
*/const MO={...vm.nightOwl,styles:vm.nightOwl.styles.map(t=>({...t,style:Object.fromEntries(Object.entries(t.style??{}).filter(([a])=>a!=="background"&&a!=="backgroundColor"))}))};function OO(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 DO(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 LO(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(u=>u.code.trim().length>0)}function Uh({code:t,language:a}){return c.jsx(kO,{theme:MO,code:t,language:a,children:({className:r,style:i,tokens:o,getLineProps:u,getTokenProps:f})=>c.jsx("pre",{className:`${r} text-xs overflow-x-auto p-3 m-0`,style:{...i,background:"transparent"},children:o.map((m,g)=>{const p=u({line:m,key:g});return c.jsxs("div",{...p,className:`${p.className} table-row`,children:[c.jsx("span",{className:"table-cell pr-3 text-right select-none opacity-30 text-xs",children:g+1}),c.jsx("span",{className:"table-cell",children:m.map((v,y)=>c.jsx("span",{...f({token:v,key:y})},y))})]},g)})})})}function zO({raw:t}){const a=OO(t);return a.length===0?c.jsx("pre",{className:"text-sm whitespace-pre-wrap font-mono bg-muted/30 rounded-md p-4 overflow-x-auto",children:t}):c.jsx("div",{className:"flex flex-col gap-4",children:a.map((r,i)=>{const o=DO(r.path),u=o==="markdown"?LO(r.code):null;return c.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(_u,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("span",{className:"font-mono text-xs truncate",children:r.path}),c.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[":",r.startLine,"-",r.endLine]})]}),c.jsx(Bt,{variant:"outline",className:"text-xs shrink-0",children:r.score})]}),u?u.map((f,m)=>f.fenced?c.jsx("div",{className:"bg-muted/30 border-y border-border/50",children:c.jsx(Uh,{code:f.code,language:f.language})},m):c.jsx(Uh,{code:f.code,language:"markdown"},m)):c.jsx(Uh,{code:r.code,language:o})]},i)})})}const BO=Sn("/query")({component:UO,validateSearch:t=>({workspaceId:t.workspaceId??""})}),Ph={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function Gx(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 UO(){const{workspaceId:t}=Gi({from:"/query"}),[a,r]=N.useState(Ph),[i,o]=N.useState(!1);async function u(p){p.preventDefault(),o(!0),r({...Ph,error:null});try{const v=new FormData(p.currentTarget),y=await xt.runQuery({workspaceId:String(v.get("workspaceId")??"").trim(),query:String(v.get("query")??"").trim()});r({...y,error:null})}catch(v){r({...Ph,error:v instanceof Error?v.message:"Query failed"})}finally{o(!1)}}const f=a.graphNodes.filter(p=>p.type==="file"),m=a.graphNodes.filter(p=>p.type==="symbol");a.graphNodes.filter(p=>p.type==="chunk");const g=t.trim().length>0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g&&c.jsx(bt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(nt,{variant:"ghost",size:"icon",children:c.jsx(Bi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h1",{children:"Query"}),c.jsx("p",{className:"muted text-sm",children:"Test the retrieval flow against the indexed workspace."})]})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{className:"text-base",children:"Query interface"})}),c.jsx(Ne,{children:c.jsxs("form",{onSubmit:u,className:"query-form",children:[c.jsxs("div",{className:"field",children:[c.jsx(Xe,{htmlFor:"workspaceId",children:"Workspace ID"}),c.jsx(yn,{id:"workspaceId",name:"workspaceId",defaultValue:t,placeholder:"openez"})]}),c.jsxs("div",{className:"field",children:[c.jsx(Xe,{htmlFor:"query",children:"Query"}),c.jsx(mu,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),c.jsx(nt,{type:"submit",disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(to,{className:"h-4 w-4 animate-spin"})," Running..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Au,{className:"h-4 w-4"})," Run query"]})}),a.error&&c.jsx("p",{className:"text-sm text-destructive mt-2",children:a.error})]})})]}),a.answerContext&&c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{className:"text-base",children:"Context"})}),c.jsx(Ne,{children:c.jsx(zO,{raw:a.answerContext})})]}),a.sources.length>0&&c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{className:"text-base",children:"Sources"})}),c.jsx(Ne,{children:c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Lines"}),c.jsx(Se,{children:"Score"}),c.jsx(Se,{children:"Reason"})]})}),c.jsx(zn,{children:a.sources.map(p=>c.jsxs(at,{children:[c.jsx(we,{className:"font-mono text-xs",children:p.path}),c.jsxs(we,{children:[p.startLine??"?","-",p.endLine??"?"]}),c.jsx(we,{children:p.score.toFixed(3)}),c.jsx(we,{children:p.reason})]},`${p.path}-${p.startLine}-${p.endLine}`))})]})})]}),a.graphNodes.length>0&&c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsxs(Qe,{className:"text-base flex items-center gap-2",children:[c.jsx(UR,{className:"h-4 w-4"})," Graph Relationships"]})}),c.jsxs(Ne,{className:"grid gap-4",children:[f.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:f.map(p=>c.jsxs(Bt,{variant:"outline",className:Gx("file"),children:[c.jsx(_u,{className:"h-3 w-3 mr-1"})," ",p.label]},p.id))})]}),m.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(p=>c.jsx(Bt,{variant:"outline",className:Gx("symbol"),children:p.label},p.id))})]}),a.graphEdges.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),c.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((p,v)=>{const y=a.graphNodes.find(j=>j.id===p.from_node_id),x=a.graphNodes.find(j=>j.id===p.to_node_id);return c.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[c.jsx("span",{className:"truncate max-w-50 font-mono",children:(y==null?void 0:y.label)??p.from_node_id.slice(0,8)}),c.jsx(lm,{className:"h-3 w-3 shrink-0"}),c.jsx(Bt,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:p.type}),c.jsx(lm,{className:"h-3 w-3 shrink-0"}),c.jsx("span",{className:"truncate max-w-50 font-mono",children:(x==null?void 0:x.label)??p.to_node_id.slice(0,8)})]},v)})})]})]})]})]})}function ra(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const Ix={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},Qx={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function PO(t){return Ix[t]??Ix.default}function FO(t){return Qx[t]??Qx.default}const HO=Sn("/memories")({loader:({context:t})=>t.queryClient.ensureQueryData(fu(1,Gt)),component:qO,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function qO(){const t=Ds(),{page:a}=Gi({from:"/memories"}),[r,i]=N.useState(""),[o,u]=N.useState(""),[f,m]=N.useState(!1),[g,p]=N.useState(null);N.useEffect(()=>{const C=setTimeout(()=>u(r),300);return()=>clearTimeout(C)},[r]);const v=o.trim().length>0,y=v?rC(o):fu(a,Gt),{data:x,isLoading:j}=bn({...y,placeholderData:C=>C}),w=v?1:Math.max(1,Math.ceil(((x==null?void 0:x.totalCount)??0)/Gt));N.useEffect(()=>{if(!v){const C=a+1;C<=w&&t.prefetchQuery(fu(C,Gt))}},[a,w,t,v]);const b=zi({mutationFn:C=>xt.deleteMemory(C),onSuccess:()=>{t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]}),p(null)}}),E=(x==null?void 0:x.items)??[],_=(x==null?void 0:x.totalCount)??0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Memories"}),c.jsx("p",{className:"muted text-sm",children:"Technical decisions and agent notes persisted across sessions."})]}),c.jsxs(nt,{onClick:()=>m(!0),size:"sm",children:[c.jsx(cm,{className:"h-4 w-4 mr-1"}),"New Memory"]})]}),c.jsx(Ee,{className:"mb-4",children:c.jsx(Ne,{className:"pt-4",children:c.jsxs("div",{className:"relative",children:[c.jsx(Au,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),c.jsx(yn,{placeholder:"Search memories by title or content...",value:r,onChange:C=>i(C.target.value),className:"pl-9"}),r&&c.jsx("button",{onClick:()=>i(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:c.jsx(Ui,{className:"h-4 w-4"})})]})})}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:v?`Search results (${E.length})`:`Memories (${_})`})}),c.jsx(Ne,{children:j?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):E.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:v?"No memories match your search.":"No memories yet. Create one to get started."}):c.jsxs(c.Fragment,{children:[c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Title"}),c.jsx(Se,{children:"Tags"}),c.jsx(Se,{children:"Source"}),c.jsx(Se,{children:"Updated"}),c.jsx(Se,{className:"w-10"})]})}),c.jsx(zn,{children:E.map(C=>c.jsxs(at,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>p(C),children:[c.jsx(we,{className:"font-medium",children:C.title}),c.jsx(we,{children:c.jsx("div",{className:"flex gap-1 flex-wrap",children:C.tags.length===0?c.jsx("span",{className:"text-xs text-muted-foreground",children:"—"}):C.tags.map(T=>c.jsx(Bt,{variant:"secondary",className:"text-xs",children:T},T))})}),c.jsx(we,{children:c.jsx(Bt,{variant:"outline",className:"text-xs",children:C.source})}),c.jsx(we,{className:"text-muted-foreground text-sm",children:ra(C.updatedAt)}),c.jsx(we,{children:c.jsx("button",{onClick:T=>{T.stopPropagation(),b.mutate(C.id)},className:"text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(Tu,{className:"h-4 w-4"})})})]},C.id))})]}),!v&&c.jsx(Bm,{currentPage:a,totalPages:w,basePath:"/memories"})]})})]}),f&&c.jsx(GO,{onClose:()=>m(!1),onCreated:()=>{m(!1),t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]})}}),g&&c.jsx(IO,{memory:g,onClose:()=>p(null),onDelete:()=>b.mutate(g.id),deleting:b.isPending})]})}function GO({onClose:t,onCreated:a}){const[r,i]=N.useState(""),[o,u]=N.useState(""),[f,m]=N.useState(""),[g,p]=N.useState(null),v=zi({mutationFn:()=>xt.createMemory({title:r.trim(),content:o.trim(),tags:f.split(",").map(x=>x.trim()).filter(Boolean)}),onSuccess:x=>{x.ok&&x.data?a():p("Failed to create memory")},onError:x=>p(x.message)}),y=x=>{if(x.preventDefault(),!r.trim()||!o.trim()){p("Title and content are required");return}v.mutate()};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:t,children:c.jsxs(Ee,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:x=>x.stopPropagation(),children:[c.jsx(Ie,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Qe,{children:"New Memory"}),c.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Ui,{className:"h-4 w-4"})})]})}),c.jsx(Ne,{children:c.jsxs("form",{onSubmit:y,className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(Xe,{htmlFor:"memory-title",children:"Title"}),c.jsx(yn,{id:"memory-title",value:r,onChange:x=>i(x.target.value),placeholder:"e.g. Use SQLite WAL mode for all workspaces",autoFocus:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(Xe,{htmlFor:"memory-content",children:"Content"}),c.jsx(mu,{id:"memory-content",value:o,onChange:x=>u(x.target.value),placeholder:"Describe the technical decision or note...",rows:6})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(Xe,{htmlFor:"memory-tags",children:"Tags (comma-separated)"}),c.jsx(yn,{id:"memory-tags",value:f,onChange:x=>m(x.target.value),placeholder:"e.g. architecture, storage, decision"})]}),g&&c.jsx("p",{className:"text-sm text-destructive",children:g}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(nt,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),c.jsx(nt,{type:"submit",disabled:v.isPending,children:v.isPending?"Creating...":"Create"})]})]})})]})})}function IO({memory:t,onClose:a,onDelete:r,deleting:i}){return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:a,children:c.jsxs(Ee,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:o=>o.stopPropagation(),children:[c.jsx(Ie,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Qe,{children:t.title}),c.jsx("button",{onClick:a,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Ui,{className:"h-4 w-4"})})]})}),c.jsx(Ne,{children:c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex gap-2 flex-wrap",children:[t.tags.map(o=>c.jsx(Bt,{variant:"secondary",className:"text-xs",children:o},o)),c.jsx(Bt,{variant:"outline",className:"text-xs",children:t.source})]}),c.jsx("div",{className:"text-sm whitespace-pre-wrap",children:t.content}),c.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:[c.jsxs("div",{children:["Created: ",ra(t.createdAt)]}),c.jsxs("div",{children:["Updated: ",ra(t.updatedAt)]})]}),c.jsxs(nt,{variant:"destructive",size:"sm",onClick:r,disabled:i,children:[c.jsx(Tu,{className:"h-4 w-4 mr-1"}),i?"Deleting...":"Delete"]})]})]})})]})})}const QO=Sn("/documents")({loader:({context:t})=>t.queryClient.ensureQueryData(du(1,Gt)),component:VO,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function VO(){const t=Ds(),{page:a}=Gi({from:"/documents"}),{data:r,isLoading:i}=bn({...du(a,Gt),placeholderData:m=>m}),o=Math.max(1,Math.ceil(((r==null?void 0:r.totalCount)??0)/Gt)),f=(a-1)*Gt+((r==null?void 0:r.items.length)??0);return N.useEffect(()=>{const m=a+1;m<=o&&t.prefetchQuery(du(m,Gt))},[a,o,t]),c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Documents"}),c.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Documents"})}),c.jsx(Ne,{children:i?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",f," of ",(r==null?void 0:r.totalCount)??0," documents"]}),c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Kind"}),c.jsx(Se,{children:"Language"}),c.jsx(Se,{children:"Updated"})]})}),c.jsx(zn,{children:((r==null?void 0:r.items)??[]).map(m=>c.jsxs(at,{children:[c.jsx(we,{children:m.path}),c.jsx(we,{children:m.kind}),c.jsx(we,{children:m.language??"-"}),c.jsx(we,{className:"text-muted-foreground",children:ra(m.updatedAt)})]},m.id))})]}),c.jsx(Bm,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const YO=Sn("/changelog")({component:$O});function $O(){const{data:t,isLoading:a,error:r}=bn({queryKey:["changelog"],queryFn:()=>xt.getChangelog()});if(a)return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Loading..."})]});if(r||!(t!=null&&t.content))return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx(Ee,{children:c.jsx(Ne,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:r?r.message:"No changelog found."})})})]});const i=KO(t.content);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Release history for OpenEZ Graph."})]}),c.jsx("div",{className:"flex flex-col gap-4",children:i.map(o=>c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Qe,{className:"text-base font-mono",children:o.version}),o.date&&c.jsx("span",{className:"text-xs text-muted-foreground",children:o.date}),o.summary&&c.jsx("span",{className:"text-sm text-muted-foreground",children:o.summary})]})}),c.jsx(Ne,{children:c.jsx("div",{className:"flex flex-col gap-3",children:o.groups.map(u=>c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-1.5 uppercase tracking-wider",children:u.label}),c.jsx("ul",{className:"flex flex-col gap-1",children:u.items.map((f,m)=>c.jsxs("li",{className:"text-sm flex gap-2",children:[c.jsx("span",{className:"text-muted-foreground shrink-0",children:"•"}),c.jsx("span",{children:f})]},m))})]},u.label))})})]},o.version))})]})}function KO(t){var f,m;const a=[],r=/^##\s+\[([^\]]+)\](?:\s*-\s*(\d{4}-\d{2}-\d{2}))?(.*)$/gm,i=["Added","Changed","Deprecated","Removed","Fixed","Security"];let o;const u=[];for(;(o=r.exec(t))!==null;)u.push({version:o[1],date:((f=o[2])==null?void 0:f.trim())||void 0,summary:((m=o[3])==null?void 0:m.trim())||void 0,start:o.index+o[0].length});for(let g=0;g<u.length;g++){const p=g+1<u.length?t.indexOf("## ",u[g+1].start-200):t.length,v=t.slice(u[g].start,p>u[g].start?p:t.length).trim(),y=[],x=new RegExp(`^###\\s+(${i.join("|")})\\s*$`,"gm");let j;const w=[];for(;(j=x.exec(v))!==null;)w.push({label:j[1],start:j.index+j[0].length});if(w.length===0){const b=v.split(`
|
|
358
|
+
`).filter(E=>E.trim().startsWith("-")).map(E=>E.trim().slice(1).trim());b.length>0&&y.push({label:"Changes",items:b})}else for(let b=0;b<w.length;b++){const E=b+1<w.length?v.indexOf("### ",w[b+1].start-10):v.length,C=v.slice(w[b].start,E>w[b].start?E:v.length).trim().split(`
|
|
359
|
+
`).filter(T=>T.trim().startsWith("-")).map(T=>T.trim().slice(1).trim());C.length>0&&y.push({label:w[b].label,items:C})}a.push({version:u[g].version,date:u[g].date,summary:u[g].summary,groups:y})}return a}const ZO=Sn("/benchmark")({component:XO});function XO(){const{data:t,isLoading:a,error:r}=bn(zm());if(a)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading measured retrieval data..."})});if(r)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"text-destructive",children:r.message})});if(!t)return null;const i=[{label:"Code queries",value:t.totalQueries.toLocaleString(),detail:"Recorded code_query calls",icon:Z0},{label:"Response tokens",value:t.totalTokensReturned.toLocaleString(),detail:"Serialized responses",icon:fR},{label:"Context avoided",value:t.totalTokensSaved.toLocaleString(),detail:"Evidence-based estimate",icon:Om},{label:"Candidate files",value:t.totalFilesScanned.toLocaleString(),detail:"Ranked retrieval candidates",icon:bR}];return c.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[c.jsxs("header",{className:"border-b pb-5",children:[c.jsx(Bt,{variant:"secondary",className:"mb-3",children:"Live workspace telemetry"}),c.jsx("h1",{children:"Agent retrieval evidence"}),c.jsx("p",{className:"muted mt-1",children:"Measured MCP payload size and the indexed full-file context it replaces."})]}),c.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:i.map(({label:o,value:u,detail:f,icon:m},g)=>c.jsxs("div",{className:`min-w-0 p-5 ${g>0?"border-t sm:border-l sm:border-t-0":""}`,children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[c.jsx("span",{children:o}),c.jsx(m,{className:"h-4 w-4 text-foreground"})]}),c.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:u}),c.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:f})]},o))}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ee,{children:[c.jsxs(Ie,{children:[c.jsx(Qe,{children:"Measurement method"}),c.jsx(jh,{children:t.metricMethod})]}),c.jsxs(Ne,{className:"space-y-3 text-sm",children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Response tokens"})," are counted from the complete serialized MCP response."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Context avoided"})," equals all indexed tokens in selected full files minus response tokens, floored at zero."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Candidate files"})," means ranked retrieval candidates; it is not a claim about SQLite files physically scanned."]})]})]}),c.jsxs(Ee,{children:[c.jsxs(Ie,{children:[c.jsx(Qe,{children:"What this does not prove"}),c.jsx(jh,{children:"Token efficiency and retrieval correctness are separate checks."})]}),c.jsxs(Ne,{className:"space-y-3 text-sm text-muted-foreground",children:[c.jsx("p",{children:"These numbers do not claim that an agent completed a task correctly."}),c.jsx("p",{children:"Recall and MRR must come from a dated, reproducible retrieval run; they are no longer hard-coded into this dashboard."}),c.jsx("p",{children:"Agent task completion should be compared separately against the same tasks using direct file reads."})]})]})]}),c.jsxs(Ee,{children:[c.jsxs(Ie,{children:[c.jsx(Qe,{children:"Recent code queries"}),c.jsx(jh,{children:"Latest evidence recorded for the active workspace."})]}),c.jsx(Ne,{children:t.recentQueries.length===0?c.jsx("p",{className:"muted",children:"No MCP query metrics recorded yet."}):c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Response tokens"}),c.jsx(Se,{children:"Context avoided"}),c.jsx(Se,{children:"Candidates"})]})}),c.jsx(zn,{children:t.recentQueries.map(o=>c.jsxs(at,{children:[c.jsx(we,{className:"max-w-[320px] truncate font-medium",children:o.query}),c.jsx(we,{children:o.resultCount}),c.jsx(we,{children:o.tokensReturned.toLocaleString()}),c.jsx(we,{children:o.tokensSaved.toLocaleString()}),c.jsx(we,{children:o.filesScanned})]},o.id))})]})})]})]})}const WO=Sn("/")({loader:async({context:t})=>{await t.queryClient.ensureQueryData(Dm)},component:JO});function JO(){var o;const{data:t,isLoading:a,error:r}=bn(Dm),{data:i}=bn(zm((o=t==null?void 0:t.workspace)==null?void 0:o.id));return a?c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})}):r?c.jsx("div",{className:"page",children:c.jsx("p",{className:"text-destructive",children:r.message})}):t?c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:t.workspace.name}),c.jsx("p",{className:"muted",children:t.workspace.root})]}),c.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:c.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx(Bt,{variant:"secondary",className:"mb-3",children:"Live code_query telemetry"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Measured agent context"}),c.jsx("p",{className:"muted mt-1 text-sm",children:"Actual serialized MCP responses compared with the indexed full files they replace."})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:(i==null?void 0:i.totalQueries)??0})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Response tokens"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:((i==null?void 0:i.totalTokensReturned)??0).toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Context avoided"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:((i==null?void 0:i.totalTokensSaved)??0).toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Candidate files"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:(i==null?void 0:i.totalFilesScanned)??0})]})]}),c.jsxs(bt,{to:"/benchmark",className:y1({variant:"outline",className:"shrink-0"}),children:["Method details ",c.jsx(lm,{className:"h-4 w-4"})]})]})}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Index state"})}),c.jsxs(Ne,{className:"grid gap-3",children:[c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Documents"}),c.jsx("strong",{children:t.stats.documents})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Chunks"}),c.jsx("strong",{children:t.stats.chunks})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph nodes"}),c.jsx("strong",{children:t.stats.graphNodes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph edges"}),c.jsx("strong",{children:t.stats.graphEdges})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Memories"}),c.jsx("strong",{children:t.stats.memories})]})]})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Latest runs"})}),c.jsx(Ne,{children:t.recentRuns.length===0?c.jsx("p",{className:"muted",children:"No index runs recorded yet."}):c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Files"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(zn,{children:t.recentRuns.map(u=>c.jsxs(at,{children:[c.jsx(we,{children:u.mode}),c.jsx(we,{children:u.status}),c.jsxs(we,{children:[u.filesUpdated,"/",u.filesScanned]}),c.jsx(we,{children:ra(u.startedAt)})]},u.id))})]})})]})]}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Recent documents"})}),c.jsx(Ne,{children:c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Kind"})]})}),c.jsx(zn,{children:t.recentDocuments.map(u=>c.jsxs(at,{children:[c.jsx(we,{children:u.path}),c.jsx(we,{children:u.kind})]},u.id))})]})})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"Recent memories"})}),c.jsx(Ne,{children:c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Title"}),c.jsx(Se,{children:"Source"})]})}),c.jsx(zn,{children:t.recentMemories.map(u=>c.jsxs(at,{children:[c.jsx(we,{children:u.title}),c.jsx(we,{children:u.source})]},u.id))})]})})]})]}),i&&i.totalQueries>0&&c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsxs(Qe,{className:"flex items-center gap-2",children:[c.jsx(Om,{className:"h-4 w-4 text-emerald-600"}),"Agent context evidence"]})}),c.jsxs(Ne,{children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Total queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.totalQueries})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens returned"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.totalTokensReturned.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Estimated context avoided"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums text-emerald-600",children:i.totalTokensSaved.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Avg tokens/query"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.avgTokensPerQuery.toLocaleString()})]})]}),c.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:"Context avoided is an estimate: token count of selected full files minus the serialized MCP response, floored at zero."}),i.recentQueries.length>0&&c.jsxs(Dn,{className:"mt-4",children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Tokens"}),c.jsx(Se,{children:"Avoided estimate"}),c.jsx(Se,{children:"Candidates"})]})}),c.jsx(zn,{children:i.recentQueries.map(u=>c.jsxs(at,{children:[c.jsx(we,{className:"font-medium max-w-[200px] truncate",children:u.query}),c.jsx(we,{children:u.resultCount}),c.jsx(we,{children:u.tokensReturned.toLocaleString()}),c.jsx(we,{className:"text-emerald-600",children:u.tokensSaved.toLocaleString()}),c.jsx(we,{children:u.filesScanned})]},u.id))})]})]})]})]}):null}const e3={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function Oa({status:t,className:a}){return c.jsx(Bt,{variant:e3[t]??"outline",className:a,children:t})}const t3=Sn("/workspaces/")({loader:({context:t})=>t.queryClient.ensureQueryData(Lm),component:n3,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function n3(){const t=Ds(),{page:a}=Gi({from:"/workspaces/"}),{data:r,isLoading:i,error:o}=bn(Lm),[u,f]=N.useState(null),[m,g]=N.useState(null),p=zi({mutationFn:async({id:b,pinned:E})=>{const _=await xt.pinWorkspace(b,E);if(!_.success)throw new Error(_.error??"Failed to update pin");return _},onSuccess:()=>t.invalidateQueries({queryKey:["workspaces"]})}),v=zi({mutationFn:async b=>{const E=await xt.deleteWorkspace(b);if(!E.success)throw new Error(E.error??"Failed to delete workspace");return E},onSuccess:b=>{t.invalidateQueries({queryKey:["workspaces"]}),t.invalidateQueries({queryKey:["dashboard"]}),b.report&&(!b.report.dataDirRemoved||b.report.warnings.length>0)?g(b.report):(f(null),g(null))}});if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(o||r&&!r.ok){const b=r&&!r.ok?r:null;return c.jsxs("div",{className:"page",children:[c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),c.jsx(Ee,{className:"border-destructive",children:c.jsxs(Ne,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(W0,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),b&&"error"in b&&c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:b.error})]})})]})}const y=(r==null?void 0:r.data)??[],x=Math.max(1,Math.ceil(y.length/Gt)),j=Math.min(a,x),{paged:w}=iC(y,j);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),c.jsx(bt,{to:"/workspaces/new",children:c.jsxs(nt,{children:[c.jsx(cm,{className:"h-4 w-4"}),"New Workspace"]})})]}),y.length===0?c.jsx(Ee,{children:c.jsxs(Ne,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(om,{className:"h-12 w-12 text-muted-foreground mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),c.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),c.jsx(bt,{to:"/workspaces/new",children:c.jsxs(nt,{children:[c.jsx(cm,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",w.length," of ",y.length," workspaces"]}),c.jsx("div",{className:"space-y-4",children:w.map(b=>{var E,_;return c.jsx(Ee,{className:"hover:bg-muted/50 transition-colors",children:c.jsxs(Ne,{className:"p-4",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs(bt,{to:"/workspaces/$workspaceId",params:{workspaceId:b.id},className:"flex-1 min-w-0",onMouseEnter:()=>t.prefetchQuery(Pi(b.id)),children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h2",{className:"text-lg font-medium truncate",children:b.name}),c.jsx(Oa,{status:b.status})]}),c.jsx("p",{className:"muted text-sm truncate mb-3",children:b.rootPath}),c.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(X0,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[b.documentCount??0," docs"]})]}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Au,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[b.chunkCount??0," chunks"]})]}),(b.nodeCount??0)>0&&c.jsx("div",{className:"flex items-center gap-1.5",children:c.jsxs("span",{className:"text-muted-foreground",children:[b.nodeCount," nodes"]})})]})]}),c.jsxs("div",{className:"text-right text-sm",children:[c.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[c.jsx("button",{title:b.pinnedAt?"Unpin workspace":"Pin workspace",onClick:()=>{p.mutate({id:b.id,pinned:!b.pinnedAt})},disabled:p.isPending&&((E=p.variables)==null?void 0:E.id)===b.id,className:b.pinnedAt?"text-primary":"text-muted-foreground hover:text-foreground transition-colors",children:c.jsx(qR,{className:`h-4 w-4 ${b.pinnedAt?"fill-current":""}`})}),c.jsx("button",{title:"Delete workspace",onClick:()=>{f(b)},className:"text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(Tu,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"flex gap-2 mb-1",children:[c.jsx(Oa,{status:b.indexingStatus}),c.jsx(Oa,{status:b.graphStatus})]}),c.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",ra(b.lastIndexedAt)]})]})]}),p.isError&&((_=p.variables)==null?void 0:_.id)===b.id&&c.jsx("p",{className:"text-sm text-destructive mt-2",children:p.error instanceof Error?p.error.message:"Failed to update pin"})]})},b.id)})}),c.jsx(Bm,{currentPage:j,totalPages:x,basePath:"/workspaces/"})]}),u&&c.jsx(a3,{workspace:u,onClose:()=>{f(null),g(null)},onConfirm:()=>v.mutate(u.id),deleting:v.isPending,error:v.isError?v.error instanceof Error?v.error.message:"Failed to delete workspace":null,report:m})]})}function a3({workspace:t,onClose:a,onConfirm:r,deleting:i,error:o,report:u}){const f=N.useId(),m=N.useRef(null),g=N.useRef(null);return N.useEffect(()=>{var v;const p=document.activeElement;return(v=g.current)==null||v.focus(),()=>{var y;(y=p==null?void 0:p.focus)==null||y.call(p)}},[]),N.useEffect(()=>{const p=m.current;if(!p)return;const v=y=>{if(y.key==="Escape"){y.stopPropagation(),a();return}if(y.key!=="Tab")return;const x=p.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(x.length===0)return;const j=x[0],w=x[x.length-1],b=document.activeElement;y.shiftKey&&(b===j||!p.contains(b))?(y.preventDefault(),w.focus()):!y.shiftKey&&b===w&&(y.preventDefault(),j.focus())};return p.addEventListener("keydown",v),()=>p.removeEventListener("keydown",v)},[a]),c.jsx("div",{ref:m,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:a,children:c.jsxs(Ee,{role:"dialog","aria-modal":"true","aria-labelledby":f,className:"w-full max-w-md",onClick:p=>p.stopPropagation(),children:[c.jsx(Ie,{children:c.jsx(Qe,{id:f,children:"Delete workspace"})}),c.jsx(Ne,{children:c.jsxs("div",{className:"flex flex-col gap-4",children:[u?c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-sm",children:u.dataDirRemoved?"Workspace removed, but with warnings:":"Workspace was removed from the registry, but the data directory could not be fully deleted:"}),c.jsx("ul",{className:"text-sm text-destructive list-disc list-inside space-y-1 break-words",children:u.warnings.map((p,v)=>c.jsx("li",{children:p},v))}),!u.dataDirRemoved&&c.jsx("p",{className:"text-sm",children:"You can retry deletion later — the workspace remains accessible for another attempt."})]}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm break-words",children:["Delete ",c.jsx("span",{className:"font-medium",children:t.name}),"? The registry entry and ",c.jsxs("code",{className:"text-xs break-all",children:[t.rootPath,"/.openez"]})," will be permanently deleted. Project source code is not touched."]}),o&&c.jsx("p",{className:"text-sm text-destructive",children:o})]}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(nt,{ref:g,variant:"outline",size:"sm",onClick:a,disabled:i,children:u?"Close":"Cancel"}),!u&&c.jsxs(nt,{variant:"destructive",size:"sm",onClick:r,disabled:i,children:[c.jsx(Tu,{className:"h-4 w-4 mr-1"}),i?"Deleting...":"Delete"]})]})]})})]})})}const s3=Sn("/workspaces/new")({component:r3}),Vx=`src/**/*.{ts,tsx,js,jsx}
|
|
360
|
+
app/**/*.{ts,tsx}
|
|
361
|
+
pages/**/*.{ts,tsx}
|
|
362
|
+
lib/**/*.{ts,tsx}
|
|
363
|
+
**/*.md`,Yx=`node_modules/**
|
|
364
|
+
**/node_modules/**
|
|
365
|
+
.next/**
|
|
366
|
+
dist/**
|
|
367
|
+
build/**
|
|
368
|
+
.git/**
|
|
369
|
+
coverage/**
|
|
370
|
+
**/.turbo/**`;function r3(){const t=Cm(),[a,r]=N.useState(!1),[i,o]=N.useState(null),[u,f]=N.useState(null),[m,g]=N.useState(null);async function p(y){if(!y.trim()){f(null),g(null);return}try{const x=await xt.validatePath(y);f(x.valid),g(x.valid?null:x.error??"Invalid path")}catch{f(!1),g("Validation failed")}}async function v(y){y.preventDefault(),r(!0),o(null);try{const x=new FormData(y.currentTarget),j=await xt.createWorkspace({name:x.get("name"),rootPath:x.get("rootPath"),includeGlobs:(x.get("includeGlobs")||Vx).split(`
|
|
371
|
+
`).map(w=>w.trim()).filter(Boolean),excludeGlobs:(x.get("excludeGlobs")||Yx).split(`
|
|
372
|
+
`).map(w=>w.trim()).filter(Boolean)});j.success&&j.workspace?t({to:"/workspaces/$workspaceId",params:{workspaceId:j.workspace.id}}):o(j.error??"Failed to create workspace")}catch(x){o(x instanceof Error?x.message:"Failed to create workspace")}finally{r(!1)}}return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[c.jsx(bt,{to:"/workspaces",search:{page:1},children:c.jsx(nt,{variant:"ghost",size:"icon",children:c.jsx(Bi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{children:"New Workspace"}),c.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),c.jsx("form",{onSubmit:v,children:c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(om,{className:"h-5 w-5 text-muted-foreground"}),c.jsx(Qe,{children:"Workspace Configuration"})]})}),c.jsxs(Ne,{className:"space-y-8",children:[i&&c.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:i}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(Xe,{htmlFor:"name",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(RR,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),c.jsx(yn,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),c.jsxs("div",{children:[c.jsx(Xe,{htmlFor:"rootPath",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(om,{className:"h-3.5 w-3.5"}),"Root Path"]})}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(yn,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:y=>p(y.target.value),className:"pr-10"}),u===!0&&c.jsx(K0,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),u===!1&&c.jsx(ex,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),c.jsx(nt,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const y=document.getElementById("rootPath");y!=null&&y.value&&p(y.value)},children:"Validate"})]}),m&&c.jsx("p",{className:"mt-2 text-xs text-destructive",children:m}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(Xe,{htmlFor:"includeGlobs",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(gR,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),c.jsx(mu,{id:"includeGlobs",name:"includeGlobs",defaultValue:Vx,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),c.jsxs("div",{children:[c.jsxs(Xe,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(ex,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),c.jsx(Bt,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),c.jsx(mu,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Yx,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),c.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[c.jsx(bt,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:c.jsx(nt,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),c.jsxs(nt,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&c.jsx(to,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const i3=Sn("/workspaces/$workspaceId")({component:l3});function l3(){return c.jsx(Cu,{})}const o3=Sn("/workspaces/$workspaceId/")({loader:async({context:t,params:a})=>{await t.queryClient.ensureQueryData(Pi(a.workspaceId))},component:c3});function $x({status:t}){return t==="running"?c.jsx(to,{className:"h-4 w-4 animate-spin text-muted-foreground"}):t==="completed"?c.jsx(K0,{className:"h-4 w-4 text-primary"}):t==="failed"?c.jsx($0,{className:"h-4 w-4 text-destructive"}):c.jsx(uR,{className:"h-4 w-4 text-muted-foreground"})}function Kx(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 c3(){const{workspaceId:t}=Nu({from:"/workspaces/$workspaceId"}),a=Ds(),{data:r,isLoading:i}=bn(Pi(t)),{data:o}=bn(zm(t)),u=zi({mutationFn:()=>xt.startIndexRun(t,"full"),onSettled:async()=>{await Promise.all([a.invalidateQueries({queryKey:["workspace",t]}),a.invalidateQueries({queryKey:["workspace-graph",t]}),a.invalidateQueries({queryKey:["workspaces"]})])}}),f=()=>{a.prefetchQuery(Pi(t))};if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(!r||!r.ok)return c.jsx("div",{className:"page",children:c.jsx(Ee,{className:"border-destructive",children:c.jsxs(Ne,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(W0,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:r&&"error"in r?r.error:"Unknown error"})]})})});const m=r.data;if(!m)return c.jsx("div",{className:"page",children:c.jsx(Ee,{children:c.jsxs(Ne,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),c.jsx("p",{className:"muted",children:"Workspace not found."}),c.jsx(bt,{to:"/workspaces",search:{page:1},children:c.jsx(nt,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const g=m.nodeCount>0||m.edgeCount>0,p=m.indexingStatus==="completed";return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx(bt,{to:"/workspaces",search:{page:1},children:c.jsx(nt,{variant:"ghost",size:"icon",children:c.jsx(Bi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{children:m.name}),c.jsx(Oa,{status:m.status})]}),c.jsx("p",{className:"muted text-sm",children:m.rootPath})]})]}),c.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[c.jsx(Ee,{children:c.jsx(Ne,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(_u,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.documentCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),c.jsx(Ee,{children:c.jsx(Ne,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(X0,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.chunkCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),c.jsx(Ee,{children:c.jsx(Ne,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(tx,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.nodeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),c.jsx(Ee,{children:c.jsx(Ne,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(mR,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.edgeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),c.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[c.jsx(bt,{to:"/query",search:{workspaceId:t},onMouseEnter:f,children:c.jsxs(nt,{variant:"outline",children:[c.jsx(DR,{className:"h-4 w-4"})," Try Query"]})}),p&&c.jsx(bt,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:t},children:c.jsxs(nt,{variant:"secondary",children:[c.jsx(tx,{className:"h-4 w-4"}),g?"Open Graph":"Build & Open Graph"]})})]}),c.jsxs(Ee,{className:"mb-6",children:[c.jsx(Ie,{className:"pb-3",children:c.jsx(Qe,{className:"text-base",children:"Indexing Control"})}),c.jsxs(Ne,{className:"space-y-3",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),c.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[c.jsxs("div",{children:["openez index ",m.rootPath]}),c.jsxs("div",{children:["openez status ",m.rootPath]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs(nt,{variant:"outline",disabled:u.isPending,onClick:()=>u.mutate(),children:[c.jsx(QR,{className:`h-4 w-4 ${u.isPending?"animate-spin":""}`}),u.isPending?"Reindexing...":"Reindex workspace"]}),u.isError&&c.jsx("span",{className:"text-sm text-destructive",children:u.error instanceof Error?u.error.message:"Reindex failed"})]})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[c.jsxs(Ee,{children:[c.jsx(Ie,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Qe,{className:"text-base",children:"Indexing"}),c.jsx(Oa,{status:m.indexingStatus})]})}),c.jsx(Ne,{children:m.latestIndexRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx($x,{status:m.latestIndexRun.status}),c.jsxs("span",{className:"text-sm",children:[m.latestIndexRun.mode," — ",m.latestIndexRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.filesScanned})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.filesUpdated})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.chunksWritten??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.embeddingsWritten??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",ra(m.latestIndexRun.startedAt),m.latestIndexRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Kx(m.latestIndexRun.startedAt,m.latestIndexRun.finishedAt)]})]}),m.latestIndexRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:m.latestIndexRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Qe,{className:"text-base",children:"Graph"}),c.jsx(Oa,{status:m.graphStatus})]})}),c.jsx(Ne,{children:m.latestGraphRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx($x,{status:m.latestGraphRun.status}),c.jsxs("span",{className:"text-sm",children:[m.latestGraphRun.mode," — ",m.latestGraphRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",c.jsx("span",{className:"font-medium",children:m.latestGraphRun.nodesCreated??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",c.jsx("span",{className:"font-medium",children:m.latestGraphRun.edgesCreated??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",ra(m.latestGraphRun.startedAt),m.latestGraphRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Kx(m.latestGraphRun.startedAt,m.latestGraphRun.finishedAt)]})]}),m.latestGraphRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:m.latestGraphRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:m.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),o&&o.totalQueries>0&&c.jsxs(Ee,{className:"mb-6",children:[c.jsx(Ie,{className:"pb-3",children:c.jsxs(Qe,{className:"flex items-center gap-2 text-base",children:[c.jsx(Om,{className:"h-4 w-4 text-emerald-600"}),"Token Savings"]})}),c.jsxs(Ne,{children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4 mb-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Total queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.totalQueries})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens returned"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.totalTokensReturned.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens saved"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums text-emerald-600",children:o.totalTokensSaved.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Avg tokens/query"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.avgTokensPerQuery.toLocaleString()})]})]}),o.recentQueries.length>0&&c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Tokens"}),c.jsx(Se,{children:"Saved"}),c.jsx(Se,{children:"Files"})]})}),c.jsx(zn,{children:o.recentQueries.map(v=>c.jsxs(at,{children:[c.jsx(we,{className:"font-medium max-w-50 truncate",children:v.query}),c.jsx(we,{children:v.resultCount}),c.jsx(we,{children:v.tokensReturned.toLocaleString()}),c.jsx(we,{className:"text-emerald-600",children:v.tokensSaved.toLocaleString()}),c.jsx(we,{children:v.filesScanned})]},v.id))})]})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{className:"text-base",children:"Recent Index Runs"})}),c.jsx(Ne,{children:m.recentIndexRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Files"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(zn,{children:m.recentIndexRuns.map(v=>c.jsxs(at,{children:[c.jsx(we,{children:v.mode}),c.jsx(we,{children:c.jsx(Oa,{status:v.status})}),c.jsxs(we,{children:[v.filesUpdated,"/",v.filesScanned]}),c.jsx(we,{className:"text-muted-foreground",children:ra(v.startedAt)})]},v.id))})]})})]}),c.jsxs(Ee,{children:[c.jsx(Ie,{children:c.jsx(Qe,{className:"text-base",children:"Recent Graph Runs"})}),c.jsx(Ne,{children:m.recentGraphRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):c.jsxs(Dn,{children:[c.jsx(Ln,{children:c.jsxs(at,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Nodes"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(zn,{children:m.recentGraphRuns.map(v=>c.jsxs(at,{children:[c.jsx(we,{children:v.mode}),c.jsx(we,{children:c.jsx(Oa,{status:v.status})}),c.jsx(we,{children:v.nodesCreated}),c.jsx(we,{className:"text-muted-foreground",children:ra(v.startedAt)})]},v.id))})]})})]})]}),m.lastError&&c.jsx(Ee,{className:"mt-4 border-destructive",children:c.jsx(Ne,{className:"p-4",children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx($0,{className:"h-4 w-4 text-destructive mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:m.lastError})]})]})})})]})}const u3="modulepreload",d3=function(t){return"/"+t},Zx={},f3=function(a,r,i){let o=Promise.resolve();if(r&&r.length>0){let f=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=f(r.map(p=>{if(p=d3(p),p in Zx)return;Zx[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":u3,v||(x.as="script"),x.crossOrigin="",x.href=p,g&&x.setAttribute("nonce",g),document.head.appendChild(x),v)return new Promise((j,w)=>{x.addEventListener("load",j),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return o.then(f=>{for(const m of f||[])m.status==="rejected"&&u(m.reason);return a().catch(u)})};function h3({nodeTypes:t,edgeTypes:a}){return c.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),t.map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:PO(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:FO(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]})]})}const m3=N.lazy(()=>f3(()=>import("./WorkspaceGraph-BKsjhxlB.js"),[]).then(t=>({default:t.WorkspaceGraph})));function p3({graphData:t}){const[a,r]=N.useState(!1),[i,o]=N.useState(null),[u,f]=N.useState(""),[m,g]=N.useState(()=>new Set(t.nodeTypes)),[p,v]=N.useState(()=>new Set(t.edgeTypes)),[y,x]=N.useState(null),[j,w]=N.useState(null);N.useEffect(()=>{r(!0)},[]);const b=N.useMemo(()=>{const z=new Map;for(const q of t.nodes)z.set(q.id,q);return z},[t.nodes]),E=N.useMemo(()=>{const z=new Map;for(const q of t.edges){const K=z.get(q.target);K?K.push(q):z.set(q.target,[q])}return z},[t.edges]),_=N.useMemo(()=>{const z=new Map;for(const q of t.edges){const K=z.get(q.source);K?K.push(q):z.set(q.source,[q])}return z},[t.edges]),C=N.useMemo(()=>{if(!i)return null;const z=E.get(i)??[],q=_.get(i)??[];return{incoming:z,outgoing:q}},[i,E,_]),T=N.useMemo(()=>t.nodes.filter(z=>!(u&&!z.label.toLowerCase().includes(u.toLowerCase())||m.size>0&&!m.has(z.type))),[t.nodes,u,m]),A=N.useMemo(()=>{const z=new Set(T.map(q=>q.id));return t.edges.filter(q=>!(!z.has(q.source)||!z.has(q.target)||p.size>0&&!p.has(q.type)))},[t.edges,T,p]),B=N.useCallback(z=>{if(!z){o(null),w(null);return}o(z),w(b.get(z)??null)},[b]),P=N.useCallback(z=>{x(z)},[]),k=z=>{const q=new Set(m);q.has(z)?q.delete(z):q.add(z),g(q)},D=z=>{const q=new Set(p);q.has(z)?q.delete(z):q.add(z),v(q)};return a?c.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[c.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:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{htmlFor:"search",className:"text-xs",children:"Search"}),c.jsxs("div",{className:"relative",children:[c.jsx(Au,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),c.jsx(yn,{id:"search",placeholder:"Node label...",value:u,onChange:z=>f(z.target.value),className:"pl-8 h-8 text-sm"}),u&&c.jsx("button",{type:"button",onClick:()=>f(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Ui,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{className:"text-xs",children:"Node Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.nodeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>k(z),"aria-pressed":m.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Xe,{className:"text-xs",children:"Edge Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.edgeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>D(z),"aria-pressed":p.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"pt-2 border-t",children:[c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",T.length.toLocaleString()," of"," ",t.totalNodes.toLocaleString()," nodes"]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[A.length.toLocaleString()," of ",t.totalEdges.toLocaleString()," ","edges"]}),t.totalNodes>t.nodes.length&&c.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[t.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),c.jsx("div",{className:"pt-2 border-t",children:c.jsx(h3,{nodeTypes:t.nodeTypes,edgeTypes:t.edgeTypes})})]})}),c.jsxs("div",{className:"absolute inset-0",children:[c.jsx(N.Suspense,{fallback:c.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph renderer..."})]})}),children:c.jsx(m3,{nodes:T,edges:A,selectedNodeId:i,onNodeClick:B,onNodeHover:P,className:"absolute inset-0"})}),y&&!i&&(()=>{const z=b.get(y);return z?c.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:[c.jsx("p",{className:"text-sm font-medium",children:z.label}),c.jsx("p",{className:"text-xs text-muted-foreground",children:z.type})]}):null})()]}),j&&c.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:[c.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[c.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),c.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),w(null)},className:"text-muted-foreground hover:text-foreground",children:c.jsx(Ui,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"p-4 space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Label"}),c.jsx("p",{className:"text-sm font-mono break-all",children:j.label})]}),c.jsxs("div",{children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Type"}),c.jsx("p",{className:"text-sm",children:c.jsx(Bt,{variant:"outline",children:j.type})})]}),c.jsxs("div",{children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Degree"}),c.jsxs("p",{className:"text-sm",children:[j.degree," connections"]})]}),j.path&&c.jsxs("div",{children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Path"}),c.jsx("p",{className:"text-sm font-mono text-xs break-all",children:j.path})]}),(j.startLine||j.endLine)&&c.jsxs("div",{children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Lines"}),c.jsxs("p",{className:"text-sm font-mono",children:[j.startLine??"?","-",j.endLine??"?"]})]})]}),C&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsxs(Xe,{className:"text-xs text-muted-foreground",children:["Connections (",C.incoming.length+C.outgoing.length,")"]}),C.incoming.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),C.incoming.slice(0,5).map(z=>{const q=b.get(z.source);return c.jsxs("button",{type:"button",onClick:()=>B(z.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??z.source})]},z.id)})]}),C.outgoing.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),C.outgoing.slice(0,5).map(z=>{const q=b.get(z.target);return c.jsxs("button",{type:"button",onClick:()=>B(z.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??z.target})]},z.id)})]})]}),Object.keys(j.metadata??{}).length>0&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsx(Xe,{className:"text-xs text-muted-foreground",children:"Metadata"}),c.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(j.metadata,null,2)})]})]})]})]}):c.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph interface..."})]})})}const g3=Sn("/workspaces/$workspaceId/graph")({loader:async({context:t,params:a})=>{await Promise.all([t.queryClient.ensureQueryData(Pi(a.workspaceId)),t.queryClient.ensureQueryData(J0(a.workspaceId))])},component:y3});function y3(){const{workspaceId:t}=Nu({from:"/workspaces/$workspaceId/graph"}),{data:a}=bn(Pi(t)),{data:r}=bn(J0(t));if(!(a!=null&&a.ok))return c.jsx("div",{className:"page",children:c.jsx(Ee,{className:"border-destructive",children:c.jsx(Ne,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const i=a.data;if(!i)return c.jsx("div",{className:"page",children:c.jsx(Ee,{children:c.jsx(Ne,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!r&&r.nodes.length>0;return c.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[c.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(bt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(nt,{variant:"ghost",size:"icon",children:c.jsx(Bi,{className:"h-4 w-4"})})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),c.jsx(Bt,{variant:"outline",children:i.name})]}),c.jsx("p",{className:"text-xs text-muted-foreground",children:r?c.jsxs(c.Fragment,{children:[r.totalNodes.toLocaleString()," nodes ·"," ",r.totalEdges.toLocaleString()," edges"]}):c.jsx(c.Fragment,{children:"No graph data"})})]})]}),c.jsx(Oa,{status:i.graphStatus})]})}),o?r&&r.nodes.length>0?c.jsx(p3,{graphData:r}):null:c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs(Ee,{className:"max-w-md",children:[c.jsx(Ie,{children:c.jsx(Qe,{children:"No Graph Data"})}),c.jsxs(Ne,{className:"space-y-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),c.jsx(bt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(nt,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const qu=bM.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>Fa}),v3=xM.update({id:"/settings",path:"/settings",getParentRoute:()=>Fa}),b3=BO.update({id:"/query",path:"/query",getParentRoute:()=>Fa}),x3=HO.update({id:"/memories",path:"/memories",getParentRoute:()=>Fa}),S3=QO.update({id:"/documents",path:"/documents",getParentRoute:()=>Fa}),w3=YO.update({id:"/changelog",path:"/changelog",getParentRoute:()=>Fa}),j3=ZO.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>Fa}),E3=WO.update({id:"/",path:"/",getParentRoute:()=>Fa}),N3=t3.update({id:"/",path:"/",getParentRoute:()=>qu}),R3=s3.update({id:"/new",path:"/new",getParentRoute:()=>qu}),ip=i3.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>qu}),C3=o3.update({id:"/",path:"/",getParentRoute:()=>ip}),_3=g3.update({id:"/graph",path:"/graph",getParentRoute:()=>ip}),A3={WorkspacesWorkspaceIdGraphRoute:_3,WorkspacesWorkspaceIdIndexRoute:C3},T3=ip._addFileChildren(A3),k3={WorkspacesWorkspaceIdRoute:T3,WorkspacesNewRoute:R3,WorkspacesIndexRoute:N3},M3=qu._addFileChildren(k3),O3={IndexRoute:E3,BenchmarkRoute:j3,ChangelogRoute:w3,DocumentsRoute:S3,MemoriesRoute:x3,QueryRoute:b3,SettingsRoute:v3,WorkspacesRoute:M3},D3=Fa._addFileChildren(O3)._addFileTypes(),FS=new BN({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),L3=oN({routeTree:D3,context:{queryClient:FS}}),Xx=document.getElementById("root");Xx.innerHTML||gE.createRoot(Xx).render(c.jsx(xr.StrictMode,{children:c.jsx(UN,{client:FS,children:c.jsx(dN,{router:L3})})}));export{PO as a,FO as g,c as j,N as r};
|