@dataramen/cli 0.0.33 → 0.0.34

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.
@@ -0,0 +1,310 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=i(o);fetch(o.href,s)}})();function Ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fd={exports:{}},No={};/**
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 L0;function Q2(){if(L0)return No;L0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(l,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:l,key:c,ref:o!==void 0?o:null,props:s}}return No.Fragment=n,No.jsx=i,No.jsxs=i,No}var z0;function P2(){return z0||(z0=1,Fd.exports=Q2()),Fd.exports}var b=P2(),Qd={exports:{}},_e={};/**
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 U0;function I2(){if(U0)return _e;U0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function _(C,I,oe){this.props=C,this.context=I,this.refs=T,this.updater=oe||v}_.prototype.isReactComponent={},_.prototype.setState=function(C,I){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,I,"setState")},_.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function A(){}A.prototype=_.prototype;function N(C,I,oe){this.props=C,this.context=I,this.refs=T,this.updater=oe||v}var R=N.prototype=new A;R.constructor=N,w(R,_.prototype),R.isPureReactComponent=!0;var z=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function $(C,I,oe,O,fe,Te){return oe=Te.ref,{$$typeof:e,type:C,key:I,ref:oe!==void 0?oe:null,props:Te}}function ee(C,I){return $(C.type,I,void 0,void 0,void 0,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function U(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return I[oe]})}var ae=/\/+/g;function te(C,I){return typeof C=="object"&&C!==null&&C.key!=null?U(""+C.key):I.toString(36)}function ue(){}function J(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ue,ue):(C.status="pending",C.then(function(I){C.status==="pending"&&(C.status="fulfilled",C.value=I)},function(I){C.status==="pending"&&(C.status="rejected",C.reason=I)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function se(C,I,oe,O,fe){var Te=typeof C;(Te==="undefined"||Te==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(Te){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case e:case n:ce=!0;break;case m:return ce=C._init,se(ce(C._payload),I,oe,O,fe)}}if(ce)return fe=fe(C),ce=O===""?"."+te(C,0):O,z(fe)?(oe="",ce!=null&&(oe=ce.replace(ae,"$&/")+"/"),se(fe,I,oe,"",function(Ie){return Ie})):fe!=null&&(ie(fe)&&(fe=ee(fe,oe+(fe.key==null||C&&C.key===fe.key?"":(""+fe.key).replace(ae,"$&/")+"/")+ce)),I.push(fe)),1;ce=0;var ct=O===""?".":O+":";if(z(C))for(var Re=0;Re<C.length;Re++)O=C[Re],Te=ct+te(O,Re),ce+=se(O,I,oe,Te,fe);else if(Re=x(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(O=C.next()).done;)O=O.value,Te=ct+te(O,Re++),ce+=se(O,I,oe,Te,fe);else if(Te==="object"){if(typeof C.then=="function")return se(J(C),I,oe,O,fe);throw I=String(C),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return ce}function q(C,I,oe){if(C==null)return C;var O=[],fe=0;return se(C,O,"","",function(Te){return I.call(oe,Te,fe++)}),O}function X(C){if(C._status===-1){var I=C._result;I=I(),I.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe)},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe)}),C._status===-1&&(C._status=0,C._result=I)}if(C._status===1)return C._result.default;throw C._result}var ne=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function pe(){}return _e.Children={map:q,forEach:function(C,I,oe){q(C,function(){I.apply(this,arguments)},oe)},count:function(C){var I=0;return q(C,function(){I++}),I},toArray:function(C){return q(C,function(I){return I})||[]},only:function(C){if(!ie(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},_e.Component=_,_e.Fragment=i,_e.Profiler=o,_e.PureComponent=N,_e.StrictMode=l,_e.Suspense=d,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,_e.__COMPILER_RUNTIME={__proto__:null,c:function(C){return D.H.useMemoCache(C)}},_e.cache=function(C){return function(){return C.apply(null,arguments)}},_e.cloneElement=function(C,I,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var O=w({},C.props),fe=C.key,Te=void 0;if(I!=null)for(ce in I.ref!==void 0&&(Te=void 0),I.key!==void 0&&(fe=""+I.key),I)!L.call(I,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&I.ref===void 0||(O[ce]=I[ce]);var ce=arguments.length-2;if(ce===1)O.children=oe;else if(1<ce){for(var ct=Array(ce),Re=0;Re<ce;Re++)ct[Re]=arguments[Re+2];O.children=ct}return $(C.type,fe,void 0,void 0,Te,O)},_e.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},_e.createElement=function(C,I,oe){var O,fe={},Te=null;if(I!=null)for(O in I.key!==void 0&&(Te=""+I.key),I)L.call(I,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(fe[O]=I[O]);var ce=arguments.length-2;if(ce===1)fe.children=oe;else if(1<ce){for(var ct=Array(ce),Re=0;Re<ce;Re++)ct[Re]=arguments[Re+2];fe.children=ct}if(C&&C.defaultProps)for(O in ce=C.defaultProps,ce)fe[O]===void 0&&(fe[O]=ce[O]);return $(C,Te,void 0,void 0,null,fe)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(C){return{$$typeof:f,render:C}},_e.isValidElement=ie,_e.lazy=function(C){return{$$typeof:m,_payload:{_status:-1,_result:C},_init:X}},_e.memo=function(C,I){return{$$typeof:h,type:C,compare:I===void 0?null:I}},_e.startTransition=function(C){var I=D.T,oe={};D.T=oe;try{var O=C(),fe=D.S;fe!==null&&fe(oe,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(pe,ne)}catch(Te){ne(Te)}finally{D.T=I}},_e.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},_e.use=function(C){return D.H.use(C)},_e.useActionState=function(C,I,oe){return D.H.useActionState(C,I,oe)},_e.useCallback=function(C,I){return D.H.useCallback(C,I)},_e.useContext=function(C){return D.H.useContext(C)},_e.useDebugValue=function(){},_e.useDeferredValue=function(C,I){return D.H.useDeferredValue(C,I)},_e.useEffect=function(C,I,oe){var O=D.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return O.useEffect(C,I)},_e.useId=function(){return D.H.useId()},_e.useImperativeHandle=function(C,I,oe){return D.H.useImperativeHandle(C,I,oe)},_e.useInsertionEffect=function(C,I){return D.H.useInsertionEffect(C,I)},_e.useLayoutEffect=function(C,I){return D.H.useLayoutEffect(C,I)},_e.useMemo=function(C,I){return D.H.useMemo(C,I)},_e.useOptimistic=function(C,I){return D.H.useOptimistic(C,I)},_e.useReducer=function(C,I,oe){return D.H.useReducer(C,I,oe)},_e.useRef=function(C){return D.H.useRef(C)},_e.useState=function(C){return D.H.useState(C)},_e.useSyncExternalStore=function(C,I,oe){return D.H.useSyncExternalStore(C,I,oe)},_e.useTransition=function(){return D.H.useTransition()},_e.version="19.1.0",_e}var B0;function sp(){return B0||(B0=1,Qd.exports=I2()),Qd.exports}var E=sp();const nt=Ca(E);var Pd={exports:{}},jo={},Id={exports:{}},Vd={};/**
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 q0;function V2(){return q0||(q0=1,function(e){function n(q,X){var ne=q.length;q.push(X);e:for(;0<ne;){var pe=ne-1>>>1,C=q[pe];if(0<o(C,X))q[pe]=X,q[ne]=C,ne=pe;else break e}}function i(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var X=q[0],ne=q.pop();if(ne!==X){q[0]=ne;e:for(var pe=0,C=q.length,I=C>>>1;pe<I;){var oe=2*(pe+1)-1,O=q[oe],fe=oe+1,Te=q[fe];if(0>o(O,ne))fe<C&&0>o(Te,O)?(q[pe]=Te,q[fe]=ne,pe=fe):(q[pe]=O,q[oe]=ne,pe=oe);else if(fe<C&&0>o(Te,ne))q[pe]=Te,q[fe]=ne,pe=fe;else break e}}return X}function o(q,X){var ne=q.sortIndex-X.sortIndex;return ne!==0?ne:q.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],m=1,g=null,x=3,v=!1,w=!1,T=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function z(q){for(var X=i(h);X!==null;){if(X.callback===null)l(h);else if(X.startTime<=q)l(h),X.sortIndex=X.expirationTime,n(d,X);else break;X=i(h)}}function D(q){if(T=!1,z(q),!w)if(i(d)!==null)w=!0,L||(L=!0,te());else{var X=i(h);X!==null&&se(D,X.startTime-q)}}var L=!1,$=-1,ee=5,ie=-1;function U(){return _?!0:!(e.unstable_now()-ie<ee)}function ae(){if(_=!1,L){var q=e.unstable_now();ie=q;var X=!0;try{e:{w=!1,T&&(T=!1,N($),$=-1),v=!0;var ne=x;try{t:{for(z(q),g=i(d);g!==null&&!(g.expirationTime>q&&U());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,x=g.priorityLevel;var C=pe(g.expirationTime<=q);if(q=e.unstable_now(),typeof C=="function"){g.callback=C,z(q),X=!0;break t}g===i(d)&&l(d),z(q)}else l(d);g=i(d)}if(g!==null)X=!0;else{var I=i(h);I!==null&&se(D,I.startTime-q),X=!1}}break e}finally{g=null,x=ne,v=!1}X=void 0}}finally{X?te():L=!1}}}var te;if(typeof R=="function")te=function(){R(ae)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,J=ue.port2;ue.port1.onmessage=ae,te=function(){J.postMessage(null)}}else te=function(){A(ae,0)};function se(q,X){$=A(function(){q(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(q){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var ne=x;x=X;try{return q()}finally{x=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(q,X){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=x;x=q;try{return X()}finally{x=ne}},e.unstable_scheduleCallback=function(q,X,ne){var pe=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?pe+ne:pe):ne=pe,q){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ne+C,q={id:m++,callback:X,priorityLevel:q,startTime:ne,expirationTime:C,sortIndex:-1},ne>pe?(q.sortIndex=ne,n(h,q),i(d)===null&&q===i(h)&&(T?(N($),$=-1):T=!0,se(D,ne-pe))):(q.sortIndex=C,n(d,q),w||v||(w=!0,L||(L=!0,te()))),q},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(q){var X=x;return function(){var ne=x;x=X;try{return q.apply(this,arguments)}finally{x=ne}}}}(Vd)),Vd}var H0;function $2(){return H0||(H0=1,Id.exports=V2()),Id.exports}var $d={exports:{}},Wt={};/**
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 F0;function Y2(){if(F0)return Wt;F0=1;var e=sp();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,h,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:d,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Wt.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(d,h,null,m)},Wt.flushSync=function(d){var h=c.T,m=l.p;try{if(c.T=null,l.p=2,d)return d()}finally{c.T=h,l.p=m,l.d.f()}},Wt.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(d,h))},Wt.prefetchDNS=function(d){typeof d=="string"&&l.d.D(d)},Wt.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,g=f(m,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?l.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:v}):m==="script"&&l.d.X(d,{crossOrigin:g,integrity:x,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Wt.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);l.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(d)},Wt.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,g=f(m,h.crossOrigin);l.d.L(d,m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Wt.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);l.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(d)},Wt.requestFormReset=function(d){l.d.r(d)},Wt.unstable_batchedUpdates=function(d,h){return d(h)},Wt.useFormState=function(d,h,m){return c.H.useFormState(d,h,m)},Wt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Wt.version="19.1.0",Wt}var Q0;function Hb(){if(Q0)return $d.exports;Q0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),$d.exports=Y2(),$d.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 P0;function G2(){if(P0)return jo;P0=1;var e=$2(),n=sp(),i=Hb();function l(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var r=t,a=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(a=r.return),t=r.return;while(t)}return r.tag===3?a:null}function c(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(s(t)!==t)throw Error(l(188))}function d(t){var r=t.alternate;if(!r){if(r=s(t),r===null)throw Error(l(188));return r!==t?null:t}for(var a=t,u=r;;){var p=a.return;if(p===null)break;var y=p.alternate;if(y===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===a)return f(p),t;if(y===u)return f(p),r;y=y.sibling}throw Error(l(188))}if(a.return!==u.return)a=p,u=y;else{for(var S=!1,k=p.child;k;){if(k===a){S=!0,a=p,u=y;break}if(k===u){S=!0,u=p,a=y;break}k=k.sibling}if(!S){for(k=y.child;k;){if(k===a){S=!0,a=y,u=p;break}if(k===u){S=!0,u=y,a=p;break}k=k.sibling}if(!S)throw Error(l(189))}}if(a.alternate!==u)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?t:r}function h(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=h(t),r!==null)return r;t=t.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function te(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var ue=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ue?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case D:return"Suspense";case L:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case v:return"Portal";case R:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case z:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return r=t.displayName||null,r!==null?r:J(t.type)||"Memo";case ee:r=t._payload,t=t._init;try{return J(t(r))}catch{}}return null}var se=Array.isArray,q=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},pe=[],C=-1;function I(t){return{current:t}}function oe(t){0>C||(t.current=pe[C],pe[C]=null,C--)}function O(t,r){C++,pe[C]=t.current,t.current=r}var fe=I(null),Te=I(null),ce=I(null),ct=I(null);function Re(t,r){switch(O(ce,r),O(Te,t),O(fe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?u0(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=u0(r),t=c0(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(fe),O(fe,t)}function Ie(){oe(fe),oe(Te),oe(ce)}function Qt(t){t.memoizedState!==null&&O(ct,t);var r=fe.current,a=c0(r,t.type);r!==a&&(O(Te,t),O(fe,a))}function xt(t){Te.current===t&&(oe(fe),oe(Te)),ct.current===t&&(oe(ct),To._currentValue=ne)}var cn=Object.prototype.hasOwnProperty,Jn=e.unstable_scheduleCallback,fn=e.unstable_cancelCallback,ii=e.unstable_shouldYield,Mt=e.unstable_requestPaint,Lt=e.unstable_now,Wn=e.unstable_getCurrentPriorityLevel,xn=e.unstable_ImmediatePriority,Ge=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,Rr=e.unstable_LowPriority,fr=e.unstable_IdlePriority,Nr=e.log,li=e.unstable_setDisableYieldValue,Y=null,W=null;function me(t){if(typeof Nr=="function"&&li(t),W&&typeof W.setStrictMode=="function")try{W.setStrictMode(Y,t)}catch{}}var ge=Math.clz32?Math.clz32:Gt,Be=Math.log,Pt=Math.LN2;function Gt(t){return t>>>=0,t===0?32:31-(Be(t)/Pt|0)|0}var mt=256,yt=4194304;function qe(t){var r=t&42;if(r!==0)return r;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ft(t,r,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,y=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var k=u&134217727;return k!==0?(u=k&~y,u!==0?p=qe(u):(S&=k,S!==0?p=qe(S):a||(a=k&~t,a!==0&&(p=qe(a))))):(k=u&~y,k!==0?p=qe(k):S!==0?p=qe(S):a||(a=u&~t,a!==0&&(p=qe(a)))),p===0?0:r!==0&&r!==p&&(r&y)===0&&(y=p&-p,a=r&-r,y>=a||y===32&&(a&4194048)!==0)?r:p}function zt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Ut(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 ai(){var t=mt;return mt<<=1,(mt&4194048)===0&&(mt=256),t}function jr(){var t=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),t}function dr(t){for(var r=[],a=0;31>a;a++)r.push(t);return r}function Mn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pi(t,r,a,u,p,y){var S=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var k=t.entanglements,j=t.expirationTimes,F=t.hiddenUpdates;for(a=S&~a;0<a;){var G=31-ge(a),Z=1<<G;k[G]=0,j[G]=-1;var Q=F[G];if(Q!==null)for(F[G]=null,G=0;G<Q.length;G++){var P=Q[G];P!==null&&(P.lane&=-536870913)}a&=~Z}u!==0&&Ii(t,u,0),y!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=y&~(S&~r))}function Ii(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var u=31-ge(r);t.entangledLanes|=r,t.entanglements[u]=t.entanglements[u]|1073741824|a&4194090}function wt(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var u=31-ge(a),p=1<<u;p&r|t[u]&r&&(t[u]|=r),a&=~p}}function Kt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ve(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Me(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:O0(t.type))}function ln(t,r){var a=X.p;try{return X.p=t,r()}finally{X.p=a}}var Xt=Math.random().toString(36).slice(2),le="__reactFiber$"+Xt,he="__reactProps$"+Xt,Se="__reactContainer$"+Xt,dt="__reactEvents$"+Xt,Bt="__reactListeners$"+Xt,Ln="__reactHandles$"+Xt,wn="__reactResources$"+Xt,St="__reactMarker$"+Xt;function Zt(t){delete t[le],delete t[he],delete t[dt],delete t[Bt],delete t[Ln]}function Ve(t){var r=t[le];if(r)return r;for(var a=t.parentNode;a;){if(r=a[Se]||a[le]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=p0(t);t!==null;){if(a=t[le])return a;t=p0(t)}return r}t=a,a=t.parentNode}return null}function Sn(t){if(t=t[le]||t[Se]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Vi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function oi(t){var r=t[wn];return r||(r=t[wn]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ct(t){t[St]=!0}var za=new Set,Ua={};function hr(t,r){Dr(t,r),Dr(t+"Capture",r)}function Dr(t,r){for(Ua[t]=r,t=0;t<r.length;t++)za.add(r[t])}var $e=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]*$"),zn={},Cl={};function $i(t){return cn.call(Cl,t)?!0:cn.call(zn,t)?!1:$e.test(t)?Cl[t]=!0:(zn[t]=!0,!1)}function El(t,r,a){if($i(r))if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+a)}}function si(t,r,a){if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+a)}}function Mr(t,r,a,u){if(u===null)t.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(r,a,""+u)}}var Mc,nm;function kl(t){if(Mc===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Mc=r&&r[1]||"",nm=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Mc+t+nm}var Lc=!1;function zc(t,r){if(!t||Lc)return"";Lc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(P){var Q=P}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(P){Q=P}t.call(Z.prototype)}}else{try{throw Error()}catch(P){Q=P}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(P){if(P&&Q&&typeof P.stack=="string")return[P.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),S=y[0],k=y[1];if(S&&k){var j=S.split(`
44
+ `),F=k.split(`
45
+ `);for(p=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;p<F.length&&!F[p].includes("DetermineComponentFrameRoot");)p++;if(u===j.length||p===F.length)for(u=j.length-1,p=F.length-1;1<=u&&0<=p&&j[u]!==F[p];)p--;for(;1<=u&&0<=p;u--,p--)if(j[u]!==F[p]){if(u!==1||p!==1)do if(u--,p--,0>p||j[u]!==F[p]){var G=`
46
+ `+j[u].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=u&&0<=p);break}}}finally{Lc=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?kl(a):""}function zw(t){switch(t.tag){case 26:case 27:case 5:return kl(t.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return zc(t.type,!1);case 11:return zc(t.type.render,!1);case 1:return zc(t.type,!0);case 31:return kl("Activity");default:return""}}function rm(t){try{var r="";do r+=zw(t),t=t.return;while(t);return r}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}function Un(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function im(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Uw(t){var r=im(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),u=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,y=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,y.call(this,S)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ys(t){t._valueTracker||(t._valueTracker=Uw(t))}function lm(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return t&&(u=im(t)?t.checked?"true":"false":t.value),t=u,t!==a?(r.setValue(t),!0):!1}function gs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Bw=/[\n"\\]/g;function Bn(t){return t.replace(Bw,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Uc(t,r,a,u,p,y,S,k){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),r!=null?S==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Un(r)):t.value!==""+Un(r)&&(t.value=""+Un(r)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),r!=null?Bc(t,S,Un(r)):a!=null?Bc(t,S,Un(a)):u!=null&&t.removeAttribute("value"),p==null&&y!=null&&(t.defaultChecked=!!y),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.name=""+Un(k):t.removeAttribute("name")}function am(t,r,a,u,p,y,S,k){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),r!=null||a!=null){if(!(y!=="submit"&&y!=="reset"||r!=null))return;a=a!=null?""+Un(a):"",r=r!=null?""+Un(r):a,k||r===t.value||(t.value=r),t.defaultValue=r}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=k?t.checked:!!u,t.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function Bc(t,r,a){r==="number"&&gs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Tl(t,r,a,u){if(t=t.options,r){r={};for(var p=0;p<a.length;p++)r["$"+a[p]]=!0;for(a=0;a<t.length;a++)p=r.hasOwnProperty("$"+t[a].value),t[a].selected!==p&&(t[a].selected=p),p&&u&&(t[a].defaultSelected=!0)}else{for(a=""+Un(a),r=null,p=0;p<t.length;p++){if(t[p].value===a){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function om(t,r,a){if(r!=null&&(r=""+Un(r),r!==t.value&&(t.value=r),a==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=a!=null?""+Un(a):""}function sm(t,r,a,u){if(r==null){if(u!=null){if(a!=null)throw Error(l(92));if(se(u)){if(1<u.length)throw Error(l(93));u=u[0]}a=u}a==null&&(a=""),r=a}a=Un(r),t.defaultValue=a,u=t.textContent,u===a&&u!==""&&u!==null&&(t.value=u)}function Al(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var qw=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 um(t,r,a){var u=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":u?t.setProperty(r,a):typeof a!="number"||a===0||qw.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function cm(t,r,a){if(r!=null&&typeof r!="object")throw Error(l(62));if(t=t.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in r)u=r[p],r.hasOwnProperty(p)&&a[p]!==u&&um(t,p,u)}else for(var y in r)r.hasOwnProperty(y)&&um(t,y,r[y])}function qc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Hw=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"]]),Fw=/^[\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 bs(t){return Fw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Hc=null;function Fc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _l=null,Ol=null;function fm(t){var r=Sn(t);if(r&&(t=r.stateNode)){var a=t[he]||null;e:switch(t=r.stateNode,r.type){case"input":if(Uc(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Bn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var u=a[r];if(u!==t&&u.form===t.form){var p=u[he]||null;if(!p)throw Error(l(90));Uc(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<a.length;r++)u=a[r],u.form===t.form&&lm(u)}break e;case"textarea":om(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&Tl(t,!!a.multiple,r,!1)}}}var Qc=!1;function dm(t,r,a){if(Qc)return t(r,a);Qc=!0;try{var u=t(r);return u}finally{if(Qc=!1,(_l!==null||Ol!==null)&&(ru(),_l&&(r=_l,t=Ol,Ol=_l=null,fm(r),t)))for(r=0;r<t.length;r++)fm(t[r])}}function Ba(t,r){var a=t.stateNode;if(a===null)return null;var u=a[he]||null;if(u===null)return null;a=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(l(231,r,typeof a));return a}var Lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pc=!1;if(Lr)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{Pc=!1}var ui=null,Ic=null,vs=null;function hm(){if(vs)return vs;var t,r=Ic,a=r.length,u,p="value"in ui?ui.value:ui.textContent,y=p.length;for(t=0;t<a&&r[t]===p[t];t++);var S=a-t;for(u=1;u<=S&&r[a-u]===p[y-u];u++);return vs=p.slice(t,1<u?1-u:void 0)}function xs(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function ws(){return!0}function pm(){return!1}function dn(t){function r(a,u,p,y,S){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=y,this.target=S,this.currentTarget=null;for(var k in t)t.hasOwnProperty(k)&&(a=t[k],this[k]=a?a(y):y[k]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ws:pm,this.isPropagationStopped=pm,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ws)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ws)},persist:function(){},isPersistent:ws}),r}var Yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=dn(Yi),Ha=m({},Yi,{view:0,detail:0}),Qw=dn(Ha),Vc,$c,Fa,Cs=m({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fa&&(Fa&&t.type==="mousemove"?(Vc=t.screenX-Fa.screenX,$c=t.screenY-Fa.screenY):$c=Vc=0,Fa=t),Vc)},movementY:function(t){return"movementY"in t?t.movementY:$c}}),mm=dn(Cs),Pw=m({},Cs,{dataTransfer:0}),Iw=dn(Pw),Vw=m({},Ha,{relatedTarget:0}),Yc=dn(Vw),$w=m({},Yi,{animationName:0,elapsedTime:0,pseudoElement:0}),Yw=dn($w),Gw=m({},Yi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kw=dn(Gw),Xw=m({},Yi,{data:0}),ym=dn(Xw),Zw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jw={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"},Ww={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Ww[t])?!!r[t]:!1}function Gc(){return eS}var tS=m({},Ha,{key:function(t){if(t.key){var r=Zw[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Jw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(t){return t.type==="keypress"?xs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),nS=dn(tS),rS=m({},Cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gm=dn(rS),iS=m({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),lS=dn(iS),aS=m({},Yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oS=dn(aS),sS=m({},Cs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),uS=dn(sS),cS=m({},Yi,{newState:0,oldState:0}),fS=dn(cS),dS=[9,13,27,32],Kc=Lr&&"CompositionEvent"in window,Qa=null;Lr&&"documentMode"in document&&(Qa=document.documentMode);var hS=Lr&&"TextEvent"in window&&!Qa,bm=Lr&&(!Kc||Qa&&8<Qa&&11>=Qa),vm=" ",xm=!1;function wm(t,r){switch(t){case"keyup":return dS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rl=!1;function pS(t,r){switch(t){case"compositionend":return Sm(r);case"keypress":return r.which!==32?null:(xm=!0,vm);case"textInput":return t=r.data,t===vm&&xm?null:t;default:return null}}function mS(t,r){if(Rl)return t==="compositionend"||!Kc&&wm(t,r)?(t=hm(),vs=Ic=ui=null,Rl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return bm&&r.locale!=="ko"?null:r.data;default:return null}}var yS={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 Cm(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!yS[t.type]:r==="textarea"}function Em(t,r,a,u){_l?Ol?Ol.push(u):Ol=[u]:_l=u,r=uu(r,"onChange"),0<r.length&&(a=new Ss("onChange","change",null,a,u),t.push({event:a,listeners:r}))}var Pa=null,Ia=null;function gS(t){i0(t,0)}function Es(t){var r=Vi(t);if(lm(r))return t}function km(t,r){if(t==="change")return r}var Tm=!1;if(Lr){var Xc;if(Lr){var Zc="oninput"in document;if(!Zc){var Am=document.createElement("div");Am.setAttribute("oninput","return;"),Zc=typeof Am.oninput=="function"}Xc=Zc}else Xc=!1;Tm=Xc&&(!document.documentMode||9<document.documentMode)}function _m(){Pa&&(Pa.detachEvent("onpropertychange",Om),Ia=Pa=null)}function Om(t){if(t.propertyName==="value"&&Es(Ia)){var r=[];Em(r,Ia,t,Fc(t)),dm(gS,r)}}function bS(t,r,a){t==="focusin"?(_m(),Pa=r,Ia=a,Pa.attachEvent("onpropertychange",Om)):t==="focusout"&&_m()}function vS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Es(Ia)}function xS(t,r){if(t==="click")return Es(r)}function wS(t,r){if(t==="input"||t==="change")return Es(r)}function SS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Cn=typeof Object.is=="function"?Object.is:SS;function Va(t,r){if(Cn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var a=Object.keys(t),u=Object.keys(r);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!cn.call(r,p)||!Cn(t[p],r[p]))return!1}return!0}function Rm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nm(t,r){var a=Rm(t);t=0;for(var u;a;){if(a.nodeType===3){if(u=t+a.textContent.length,t<=r&&u>=r)return{node:a,offset:r-t};t=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rm(a)}}function jm(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?jm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Dm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=gs(t.document);r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=gs(t.document)}return r}function Jc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var CS=Lr&&"documentMode"in document&&11>=document.documentMode,Nl=null,Wc=null,$a=null,ef=!1;function Mm(t,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ef||Nl==null||Nl!==gs(u)||(u=Nl,"selectionStart"in u&&Jc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),$a&&Va($a,u)||($a=u,u=uu(Wc,"onSelect"),0<u.length&&(r=new Ss("onSelect","select",null,r,a),t.push({event:r,listeners:u}),r.target=Nl)))}function Gi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var jl={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionrun:Gi("Transition","TransitionRun"),transitionstart:Gi("Transition","TransitionStart"),transitioncancel:Gi("Transition","TransitionCancel"),transitionend:Gi("Transition","TransitionEnd")},tf={},Lm={};Lr&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Ki(t){if(tf[t])return tf[t];if(!jl[t])return t;var r=jl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in Lm)return tf[t]=r[a];return t}var zm=Ki("animationend"),Um=Ki("animationiteration"),Bm=Ki("animationstart"),ES=Ki("transitionrun"),kS=Ki("transitionstart"),TS=Ki("transitioncancel"),qm=Ki("transitionend"),Hm=new Map,nf="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(" ");nf.push("scrollEnd");function er(t,r){Hm.set(t,r),hr(r,[t])}var Fm=new WeakMap;function qn(t,r){if(typeof t=="object"&&t!==null){var a=Fm.get(t);return a!==void 0?a:(r={value:t,source:r,stack:rm(r)},Fm.set(t,r),r)}return{value:t,source:r,stack:rm(r)}}var Hn=[],Dl=0,rf=0;function ks(){for(var t=Dl,r=rf=Dl=0;r<t;){var a=Hn[r];Hn[r++]=null;var u=Hn[r];Hn[r++]=null;var p=Hn[r];Hn[r++]=null;var y=Hn[r];if(Hn[r++]=null,u!==null&&p!==null){var S=u.pending;S===null?p.next=p:(p.next=S.next,S.next=p),u.pending=p}y!==0&&Qm(a,p,y)}}function Ts(t,r,a,u){Hn[Dl++]=t,Hn[Dl++]=r,Hn[Dl++]=a,Hn[Dl++]=u,rf|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function lf(t,r,a,u){return Ts(t,r,a,u),As(t)}function Ml(t,r){return Ts(t,null,null,r),As(t)}function Qm(t,r,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,y=t.return;y!==null;)y.childLanes|=a,u=y.alternate,u!==null&&(u.childLanes|=a),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(p=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,p&&r!==null&&(p=31-ge(a),t=y.hiddenUpdates,u=t[p],u===null?t[p]=[r]:u.push(r),r.lane=a|536870912),y):null}function As(t){if(50<bo)throw bo=0,fd=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Ll={};function AS(t,r,a,u){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(t,r,a,u){return new AS(t,r,a,u)}function af(t){return t=t.prototype,!(!t||!t.isReactComponent)}function zr(t,r){var a=t.alternate;return a===null?(a=En(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Pm(t,r){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,r=a.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function _s(t,r,a,u,p,y){var S=0;if(u=t,typeof t=="function")af(t)&&(S=1);else if(typeof t=="string")S=O2(t,a,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ie:return t=En(31,a,r,p),t.elementType=ie,t.lanes=y,t;case w:return Xi(a.children,p,y,r);case T:S=8,p|=24;break;case _:return t=En(12,a,r,p|2),t.elementType=_,t.lanes=y,t;case D:return t=En(13,a,r,p),t.elementType=D,t.lanes=y,t;case L:return t=En(19,a,r,p),t.elementType=L,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case R:S=10;break e;case N:S=9;break e;case z:S=11;break e;case $:S=14;break e;case ee:S=16,u=null;break e}S=29,a=Error(l(130,t===null?"null":typeof t,"")),u=null}return r=En(S,a,r,p),r.elementType=t,r.type=u,r.lanes=y,r}function Xi(t,r,a,u){return t=En(7,t,u,r),t.lanes=a,t}function of(t,r,a){return t=En(6,t,null,r),t.lanes=a,t}function sf(t,r,a){return r=En(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var zl=[],Ul=0,Os=null,Rs=0,Fn=[],Qn=0,Zi=null,Ur=1,Br="";function Ji(t,r){zl[Ul++]=Rs,zl[Ul++]=Os,Os=t,Rs=r}function Im(t,r,a){Fn[Qn++]=Ur,Fn[Qn++]=Br,Fn[Qn++]=Zi,Zi=t;var u=Ur;t=Br;var p=32-ge(u)-1;u&=~(1<<p),a+=1;var y=32-ge(r)+p;if(30<y){var S=p-p%5;y=(u&(1<<S)-1).toString(32),u>>=S,p-=S,Ur=1<<32-ge(r)+p|a<<p|u,Br=y+t}else Ur=1<<y|a<<p|u,Br=t}function uf(t){t.return!==null&&(Ji(t,1),Im(t,1,0))}function cf(t){for(;t===Os;)Os=zl[--Ul],zl[Ul]=null,Rs=zl[--Ul],zl[Ul]=null;for(;t===Zi;)Zi=Fn[--Qn],Fn[Qn]=null,Br=Fn[--Qn],Fn[Qn]=null,Ur=Fn[--Qn],Fn[Qn]=null}var an=null,gt=null,Ye=!1,Wi=null,pr=!1,ff=Error(l(519));function el(t){var r=Error(l(418,""));throw Ka(qn(r,t)),ff}function Vm(t){var r=t.stateNode,a=t.type,u=t.memoizedProps;switch(r[le]=t,r[he]=u,a){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(a=0;a<xo.length;a++)ze(xo[a],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":ze("invalid",r),am(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),ys(r);break;case"select":ze("invalid",r);break;case"textarea":ze("invalid",r),sm(r,u.value,u.defaultValue,u.children),ys(r)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||s0(r.textContent,a)?(u.popover!=null&&(ze("beforetoggle",r),ze("toggle",r)),u.onScroll!=null&&ze("scroll",r),u.onScrollEnd!=null&&ze("scrollend",r),u.onClick!=null&&(r.onclick=cu),r=!0):r=!1,r||el(t)}function $m(t){for(an=t.return;an;)switch(an.tag){case 5:case 13:pr=!1;return;case 27:case 3:pr=!0;return;default:an=an.return}}function Ya(t){if(t!==an)return!1;if(!Ye)return $m(t),Ye=!0,!1;var r=t.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Ad(t.type,t.memoizedProps)),a=!a),a&&gt&&el(t),$m(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(r===0){gt=nr(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}gt=null}}else r===27?(r=gt,ki(t.type)?(t=Nd,Nd=null,gt=t):gt=r):gt=an?nr(t.stateNode.nextSibling):null;return!0}function Ga(){gt=an=null,Ye=!1}function Ym(){var t=Wi;return t!==null&&(mn===null?mn=t:mn.push.apply(mn,t),Wi=null),t}function Ka(t){Wi===null?Wi=[t]:Wi.push(t)}var df=I(null),tl=null,qr=null;function ci(t,r,a){O(df,r._currentValue),r._currentValue=a}function Hr(t){t._currentValue=df.current,oe(df)}function hf(t,r,a){for(;t!==null;){var u=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),t===a)break;t=t.return}}function pf(t,r,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var y=p.dependencies;if(y!==null){var S=p.child;y=y.firstContext;e:for(;y!==null;){var k=y;y=p;for(var j=0;j<r.length;j++)if(k.context===r[j]){y.lanes|=a,k=y.alternate,k!==null&&(k.lanes|=a),hf(y.return,a,t),u||(S=null);break e}y=k.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(l(341));S.lanes|=a,y=S.alternate,y!==null&&(y.lanes|=a),hf(S,a,t),S=null}else S=p.child;if(S!==null)S.return=p;else for(S=p;S!==null;){if(S===t){S=null;break}if(p=S.sibling,p!==null){p.return=S.return,S=p;break}S=S.return}p=S}}function Xa(t,r,a,u){t=null;for(var p=r,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var S=p.alternate;if(S===null)throw Error(l(387));if(S=S.memoizedProps,S!==null){var k=p.type;Cn(p.pendingProps.value,S.value)||(t!==null?t.push(k):t=[k])}}else if(p===ct.current){if(S=p.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(To):t=[To])}p=p.return}t!==null&&pf(r,t,a,u),r.flags|=262144}function Ns(t){for(t=t.firstContext;t!==null;){if(!Cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function nl(t){tl=t,qr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return Gm(tl,t)}function js(t,r){return tl===null&&nl(t),Gm(t,r)}function Gm(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},qr===null){if(t===null)throw Error(l(308));qr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else qr=qr.next=r;return a}var _S=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(a,u){t.push(u)}};this.abort=function(){r.aborted=!0,t.forEach(function(a){return a()})}},OS=e.unstable_scheduleCallback,RS=e.unstable_NormalPriority,jt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return{controller:new _S,data:new Map,refCount:0}}function Za(t){t.refCount--,t.refCount===0&&OS(RS,function(){t.controller.abort()})}var Ja=null,yf=0,Bl=0,ql=null;function NS(t,r){if(Ja===null){var a=Ja=[];yf=0,Bl=bd(),ql={status:"pending",value:void 0,then:function(u){a.push(u)}}}return yf++,r.then(Km,Km),r}function Km(){if(--yf===0&&Ja!==null){ql!==null&&(ql.status="fulfilled");var t=Ja;Ja=null,Bl=0,ql=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function jS(t,r){var a=[],u={status:"pending",value:null,reason:null,then:function(p){a.push(p)}};return t.then(function(){u.status="fulfilled",u.value=r;for(var p=0;p<a.length;p++)(0,a[p])(r)},function(p){for(u.status="rejected",u.reason=p,p=0;p<a.length;p++)(0,a[p])(void 0)}),u}var Xm=q.S;q.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&NS(t,r),Xm!==null&&Xm(t,r)};var rl=I(null);function gf(){var t=rl.current;return t!==null?t:it.pooledCache}function Ds(t,r){r===null?O(rl,rl.current):O(rl,r.pool)}function Zm(){var t=gf();return t===null?null:{parent:jt._currentValue,pool:t}}var Wa=Error(l(460)),Jm=Error(l(474)),Ms=Error(l(542)),bf={then:function(){}};function Wm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ls(){}function ey(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Ls,Ls),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,ny(t),t;default:if(typeof r.status=="string")r.then(Ls,Ls);else{if(t=it,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=r,t.status="pending",t.then(function(u){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=u}},function(u){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,ny(t),t}throw eo=r,Wa}}var eo=null;function ty(){if(eo===null)throw Error(l(459));var t=eo;return eo=null,t}function ny(t){if(t===Wa||t===Ms)throw Error(l(483))}var fi=!1;function vf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function di(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function hi(t,r,a){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Ke&2)!==0){var p=u.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),u.pending=r,r=As(t),Qm(t,null,a),r}return Ts(t,u,r,a),As(t)}function to(t,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,wt(t,a)}}function wf(t,r){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};y===null?p=y=S:y=y.next=S,a=a.next}while(a!==null);y===null?p=y=r:y=y.next=r}else p=y=r;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=r:t.next=r,a.lastBaseUpdate=r}var Sf=!1;function no(){if(Sf){var t=ql;if(t!==null)throw t}}function ro(t,r,a,u){Sf=!1;var p=t.updateQueue;fi=!1;var y=p.firstBaseUpdate,S=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var j=k,F=j.next;j.next=null,S===null?y=F:S.next=F,S=j;var G=t.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==S&&(k===null?G.firstBaseUpdate=F:k.next=F,G.lastBaseUpdate=j))}if(y!==null){var Z=p.baseState;S=0,G=F=j=null,k=y;do{var Q=k.lane&-536870913,P=Q!==k.lane;if(P?(He&Q)===Q:(u&Q)===Q){Q!==0&&Q===Bl&&(Sf=!0),G!==null&&(G=G.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var Ee=t,we=k;Q=r;var et=a;switch(we.tag){case 1:if(Ee=we.payload,typeof Ee=="function"){Z=Ee.call(et,Z,Q);break e}Z=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=we.payload,Q=typeof Ee=="function"?Ee.call(et,Z,Q):Ee,Q==null)break e;Z=m({},Z,Q);break e;case 2:fi=!0}}Q=k.callback,Q!==null&&(t.flags|=64,P&&(t.flags|=8192),P=p.callbacks,P===null?p.callbacks=[Q]:P.push(Q))}else P={lane:Q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?(F=G=P,j=Z):G=G.next=P,S|=Q;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;P=k,k=P.next,P.next=null,p.lastBaseUpdate=P,p.shared.pending=null}}while(!0);G===null&&(j=Z),p.baseState=j,p.firstBaseUpdate=F,p.lastBaseUpdate=G,y===null&&(p.shared.lanes=0),wi|=S,t.lanes=S,t.memoizedState=Z}}function ry(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function iy(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)ry(a[t],r)}var Hl=I(null),zs=I(0);function ly(t,r){t=Yr,O(zs,t),O(Hl,r),Yr=t|r.baseLanes}function Cf(){O(zs,Yr),O(Hl,Hl.current)}function Ef(){Yr=zs.current,oe(Hl),oe(zs)}var pi=0,Ne=null,Je=null,_t=null,Us=!1,Fl=!1,il=!1,Bs=0,io=0,Ql=null,DS=0;function Et(){throw Error(l(321))}function kf(t,r){if(r===null)return!1;for(var a=0;a<r.length&&a<t.length;a++)if(!Cn(t[a],r[a]))return!1;return!0}function Tf(t,r,a,u,p,y){return pi=y,Ne=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,q.H=t===null||t.memoizedState===null?Qy:Py,il=!1,y=a(u,p),il=!1,Fl&&(y=oy(r,a,u,p)),ay(t),y}function ay(t){q.H=Is;var r=Je!==null&&Je.next!==null;if(pi=0,_t=Je=Ne=null,Us=!1,io=0,Ql=null,r)throw Error(l(300));t===null||qt||(t=t.dependencies,t!==null&&Ns(t)&&(qt=!0))}function oy(t,r,a,u){Ne=t;var p=0;do{if(Fl&&(Ql=null),io=0,Fl=!1,25<=p)throw Error(l(301));if(p+=1,_t=Je=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}q.H=HS,y=r(a,u)}while(Fl);return y}function MS(){var t=q.H,r=t.useState()[0];return r=typeof r.then=="function"?lo(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Ne.flags|=1024),r}function Af(){var t=Bs!==0;return Bs=0,t}function _f(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function Of(t){if(Us){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Us=!1}pi=0,_t=Je=Ne=null,Fl=!1,io=Bs=0,Ql=null}function hn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ne.memoizedState=_t=t:_t=_t.next=t,_t}function Ot(){if(Je===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=_t===null?Ne.memoizedState:_t.next;if(r!==null)_t=r,Je=t;else{if(t===null)throw Ne.alternate===null?Error(l(467)):Error(l(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},_t===null?Ne.memoizedState=_t=t:_t=_t.next=t}return _t}function Rf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lo(t){var r=io;return io+=1,Ql===null&&(Ql=[]),t=ey(Ql,t,r),r=Ne,(_t===null?r.memoizedState:_t.next)===null&&(r=r.alternate,q.H=r===null||r.memoizedState===null?Qy:Py),t}function qs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lo(t);if(t.$$typeof===R)return Jt(t)}throw Error(l(438,String(t)))}function Nf(t){var r=null,a=Ne.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Ne.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=Rf(),Ne.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(t),u=0;u<t;u++)a[u]=U;return r.index++,a}function Fr(t,r){return typeof r=="function"?r(t):r}function Hs(t){var r=Ot();return jf(r,Je,t)}function jf(t,r,a){var u=t.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=a;var p=t.baseQueue,y=u.pending;if(y!==null){if(p!==null){var S=p.next;p.next=y.next,y.next=S}r.baseQueue=p=y,u.pending=null}if(y=t.baseState,p===null)t.memoizedState=y;else{r=p.next;var k=S=null,j=null,F=r,G=!1;do{var Z=F.lane&-536870913;if(Z!==F.lane?(He&Z)===Z:(pi&Z)===Z){var Q=F.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),Z===Bl&&(G=!0);else if((pi&Q)===Q){F=F.next,Q===Bl&&(G=!0);continue}else Z={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(k=j=Z,S=y):j=j.next=Z,Ne.lanes|=Q,wi|=Q;Z=F.action,il&&a(y,Z),y=F.hasEagerState?F.eagerState:a(y,Z)}else Q={lane:Z,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(k=j=Q,S=y):j=j.next=Q,Ne.lanes|=Z,wi|=Z;F=F.next}while(F!==null&&F!==r);if(j===null?S=y:j.next=k,!Cn(y,t.memoizedState)&&(qt=!0,G&&(a=ql,a!==null)))throw a;t.memoizedState=y,t.baseState=S,t.baseQueue=j,u.lastRenderedState=y}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Df(t){var r=Ot(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,y=r.memoizedState;if(p!==null){a.pending=null;var S=p=p.next;do y=t(y,S.action),S=S.next;while(S!==p);Cn(y,r.memoizedState)||(qt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),a.lastRenderedState=y}return[y,u]}function sy(t,r,a){var u=Ne,p=Ot(),y=Ye;if(y){if(a===void 0)throw Error(l(407));a=a()}else a=r();var S=!Cn((Je||p).memoizedState,a);S&&(p.memoizedState=a,qt=!0),p=p.queue;var k=fy.bind(null,u,p,t);if(ao(2048,8,k,[t]),p.getSnapshot!==r||S||_t!==null&&_t.memoizedState.tag&1){if(u.flags|=2048,Pl(9,Fs(),cy.bind(null,u,p,a,r),null),it===null)throw Error(l(349));y||(pi&124)!==0||uy(u,r,a)}return a}function uy(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Ne.updateQueue,r===null?(r=Rf(),Ne.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function cy(t,r,a,u){r.value=a,r.getSnapshot=u,dy(r)&&hy(t)}function fy(t,r,a){return a(function(){dy(r)&&hy(t)})}function dy(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Cn(t,a)}catch{return!0}}function hy(t){var r=Ml(t,2);r!==null&&On(r,t,2)}function Mf(t){var r=hn();if(typeof t=="function"){var a=t;if(t=a(),il){me(!0);try{a()}finally{me(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:t},r}function py(t,r,a,u){return t.baseState=a,jf(t,Je,typeof u=="function"?u:Fr)}function LS(t,r,a,u,p){if(Ps(t))throw Error(l(485));if(t=r.action,t!==null){var y={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){y.listeners.push(S)}};q.T!==null?a(!0):y.isTransition=!1,u(y),a=r.pending,a===null?(y.next=r.pending=y,my(r,y)):(y.next=a.next,r.pending=a.next=y)}}function my(t,r){var a=r.action,u=r.payload,p=t.state;if(r.isTransition){var y=q.T,S={};q.T=S;try{var k=a(p,u),j=q.S;j!==null&&j(S,k),yy(t,r,k)}catch(F){Lf(t,r,F)}finally{q.T=y}}else try{y=a(p,u),yy(t,r,y)}catch(F){Lf(t,r,F)}}function yy(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){gy(t,r,u)},function(u){return Lf(t,r,u)}):gy(t,r,a)}function gy(t,r,a){r.status="fulfilled",r.value=a,by(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,my(t,a)))}function Lf(t,r,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,by(r),r=r.next;while(r!==u)}t.action=null}function by(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function vy(t,r){return r}function xy(t,r){if(Ye){var a=it.formState;if(a!==null){e:{var u=Ne;if(Ye){if(gt){t:{for(var p=gt,y=pr;p.nodeType!==8;){if(!y){p=null;break t}if(p=nr(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){gt=nr(p.nextSibling),u=p.data==="F!";break e}}el(u)}u=!1}u&&(r=a[0])}}return a=hn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vy,lastRenderedState:r},a.queue=u,a=qy.bind(null,Ne,u),u.dispatch=a,u=Mf(!1),y=Hf.bind(null,Ne,!1,u.queue),u=hn(),p={state:r,dispatch:null,action:t,pending:null},u.queue=p,a=LS.bind(null,Ne,p,y,a),p.dispatch=a,u.memoizedState=t,[r,a,!1]}function wy(t){var r=Ot();return Sy(r,Je,t)}function Sy(t,r,a){if(r=jf(t,r,vy)[0],t=Hs(Fr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=lo(r)}catch(S){throw S===Wa?Ms:S}else u=r;r=Ot();var p=r.queue,y=p.dispatch;return a!==r.memoizedState&&(Ne.flags|=2048,Pl(9,Fs(),zS.bind(null,p,a),null)),[u,y,t]}function zS(t,r){t.action=r}function Cy(t){var r=Ot(),a=Je;if(a!==null)return Sy(r,a,t);Ot(),r=r.memoizedState,a=Ot();var u=a.queue.dispatch;return a.memoizedState=t,[r,u,!1]}function Pl(t,r,a,u){return t={tag:t,create:a,deps:u,inst:r,next:null},r=Ne.updateQueue,r===null&&(r=Rf(),Ne.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=t.next=t:(u=a.next,a.next=t,t.next=u,r.lastEffect=t),t}function Fs(){return{destroy:void 0,resource:void 0}}function Ey(){return Ot().memoizedState}function Qs(t,r,a,u){var p=hn();u=u===void 0?null:u,Ne.flags|=t,p.memoizedState=Pl(1|r,Fs(),a,u)}function ao(t,r,a,u){var p=Ot();u=u===void 0?null:u;var y=p.memoizedState.inst;Je!==null&&u!==null&&kf(u,Je.memoizedState.deps)?p.memoizedState=Pl(r,y,a,u):(Ne.flags|=t,p.memoizedState=Pl(1|r,y,a,u))}function ky(t,r){Qs(8390656,8,t,r)}function Ty(t,r){ao(2048,8,t,r)}function Ay(t,r){return ao(4,2,t,r)}function _y(t,r){return ao(4,4,t,r)}function Oy(t,r){if(typeof r=="function"){t=t();var a=r(t);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Ry(t,r,a){a=a!=null?a.concat([t]):null,ao(4,4,Oy.bind(null,r,t),a)}function zf(){}function Ny(t,r){var a=Ot();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&kf(r,u[1])?u[0]:(a.memoizedState=[t,r],t)}function jy(t,r){var a=Ot();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&kf(r,u[1]))return u[0];if(u=t(),il){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u}function Uf(t,r,a){return a===void 0||(pi&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=Lg(),Ne.lanes|=t,wi|=t,a)}function Dy(t,r,a,u){return Cn(a,r)?a:Hl.current!==null?(t=Uf(t,a,u),Cn(t,r)||(qt=!0),t):(pi&42)===0?(qt=!0,t.memoizedState=a):(t=Lg(),Ne.lanes|=t,wi|=t,r)}function My(t,r,a,u,p){var y=X.p;X.p=y!==0&&8>y?y:8;var S=q.T,k={};q.T=k,Hf(t,!1,r,a);try{var j=p(),F=q.S;if(F!==null&&F(k,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=jS(j,u);oo(t,r,G,_n(t))}else oo(t,r,u,_n(t))}catch(Z){oo(t,r,{then:function(){},status:"rejected",reason:Z},_n())}finally{X.p=y,q.T=S}}function US(){}function Bf(t,r,a,u){if(t.tag!==5)throw Error(l(476));var p=Ly(t).queue;My(t,p,r,ne,a===null?US:function(){return zy(t),a(u)})}function Ly(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:ne},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function zy(t){var r=Ly(t).next.queue;oo(t,r,{},_n())}function qf(){return Jt(To)}function Uy(){return Ot().memoizedState}function By(){return Ot().memoizedState}function BS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=_n();t=di(a);var u=hi(r,t,a);u!==null&&(On(u,r,a),to(u,r,a)),r={cache:mf()},t.payload=r;return}r=r.return}}function qS(t,r,a){var u=_n();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ps(t)?Hy(r,a):(a=lf(t,r,a,u),a!==null&&(On(a,t,u),Fy(a,r,u)))}function qy(t,r,a){var u=_n();oo(t,r,a,u)}function oo(t,r,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ps(t))Hy(r,p);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var S=r.lastRenderedState,k=y(S,a);if(p.hasEagerState=!0,p.eagerState=k,Cn(k,S))return Ts(t,r,p,0),it===null&&ks(),!1}catch{}finally{}if(a=lf(t,r,p,u),a!==null)return On(a,t,u),Fy(a,r,u),!0}return!1}function Hf(t,r,a,u){if(u={lane:2,revertLane:bd(),action:u,hasEagerState:!1,eagerState:null,next:null},Ps(t)){if(r)throw Error(l(479))}else r=lf(t,a,u,2),r!==null&&On(r,t,2)}function Ps(t){var r=t.alternate;return t===Ne||r!==null&&r===Ne}function Hy(t,r){Fl=Us=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function Fy(t,r,a){if((a&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,wt(t,a)}}var Is={readContext:Jt,use:qs,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et},Qy={readContext:Jt,use:qs,useCallback:function(t,r){return hn().memoizedState=[t,r===void 0?null:r],t},useContext:Jt,useEffect:ky,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,Qs(4194308,4,Oy.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Qs(4194308,4,t,r)},useInsertionEffect:function(t,r){Qs(4,2,t,r)},useMemo:function(t,r){var a=hn();r=r===void 0?null:r;var u=t();if(il){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u},useReducer:function(t,r,a){var u=hn();if(a!==void 0){var p=a(r);if(il){me(!0);try{a(r)}finally{me(!1)}}}else p=r;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=qS.bind(null,Ne,t),[u.memoizedState,t]},useRef:function(t){var r=hn();return t={current:t},r.memoizedState=t},useState:function(t){t=Mf(t);var r=t.queue,a=qy.bind(null,Ne,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:zf,useDeferredValue:function(t,r){var a=hn();return Uf(a,t,r)},useTransition:function(){var t=Mf(!1);return t=My.bind(null,Ne,t.queue,!0,!1),hn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var u=Ne,p=hn();if(Ye){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),it===null)throw Error(l(349));(He&124)!==0||uy(u,r,a)}p.memoizedState=a;var y={value:a,getSnapshot:r};return p.queue=y,ky(fy.bind(null,u,y,t),[t]),u.flags|=2048,Pl(9,Fs(),cy.bind(null,u,y,a,r),null),a},useId:function(){var t=hn(),r=it.identifierPrefix;if(Ye){var a=Br,u=Ur;a=(u&~(1<<32-ge(u)-1)).toString(32)+a,r="«"+r+"R"+a,a=Bs++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=DS++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:qf,useFormState:xy,useActionState:xy,useOptimistic:function(t){var r=hn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Hf.bind(null,Ne,!0,a),a.dispatch=r,[t,r]},useMemoCache:Nf,useCacheRefresh:function(){return hn().memoizedState=BS.bind(null,Ne)}},Py={readContext:Jt,use:qs,useCallback:Ny,useContext:Jt,useEffect:Ty,useImperativeHandle:Ry,useInsertionEffect:Ay,useLayoutEffect:_y,useMemo:jy,useReducer:Hs,useRef:Ey,useState:function(){return Hs(Fr)},useDebugValue:zf,useDeferredValue:function(t,r){var a=Ot();return Dy(a,Je.memoizedState,t,r)},useTransition:function(){var t=Hs(Fr)[0],r=Ot().memoizedState;return[typeof t=="boolean"?t:lo(t),r]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:qf,useFormState:wy,useActionState:wy,useOptimistic:function(t,r){var a=Ot();return py(a,Je,t,r)},useMemoCache:Nf,useCacheRefresh:By},HS={readContext:Jt,use:qs,useCallback:Ny,useContext:Jt,useEffect:Ty,useImperativeHandle:Ry,useInsertionEffect:Ay,useLayoutEffect:_y,useMemo:jy,useReducer:Df,useRef:Ey,useState:function(){return Df(Fr)},useDebugValue:zf,useDeferredValue:function(t,r){var a=Ot();return Je===null?Uf(a,t,r):Dy(a,Je.memoizedState,t,r)},useTransition:function(){var t=Df(Fr)[0],r=Ot().memoizedState;return[typeof t=="boolean"?t:lo(t),r]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:qf,useFormState:Cy,useActionState:Cy,useOptimistic:function(t,r){var a=Ot();return Je!==null?py(a,Je,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Nf,useCacheRefresh:By},Il=null,so=0;function Vs(t){var r=so;return so+=1,Il===null&&(Il=[]),ey(Il,t,r)}function uo(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function $s(t,r){throw r.$$typeof===g?Error(l(525)):(t=Object.prototype.toString.call(r),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Iy(t){var r=t._init;return r(t._payload)}function Vy(t){function r(B,M){if(t){var H=B.deletions;H===null?(B.deletions=[M],B.flags|=16):H.push(M)}}function a(B,M){if(!t)return null;for(;M!==null;)r(B,M),M=M.sibling;return null}function u(B){for(var M=new Map;B!==null;)B.key!==null?M.set(B.key,B):M.set(B.index,B),B=B.sibling;return M}function p(B,M){return B=zr(B,M),B.index=0,B.sibling=null,B}function y(B,M,H){return B.index=H,t?(H=B.alternate,H!==null?(H=H.index,H<M?(B.flags|=67108866,M):H):(B.flags|=67108866,M)):(B.flags|=1048576,M)}function S(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function k(B,M,H,K){return M===null||M.tag!==6?(M=of(H,B.mode,K),M.return=B,M):(M=p(M,H),M.return=B,M)}function j(B,M,H,K){var de=H.type;return de===w?G(B,M,H.props.children,K,H.key):M!==null&&(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Iy(de)===M.type)?(M=p(M,H.props),uo(M,H),M.return=B,M):(M=_s(H.type,H.key,H.props,null,B.mode,K),uo(M,H),M.return=B,M)}function F(B,M,H,K){return M===null||M.tag!==4||M.stateNode.containerInfo!==H.containerInfo||M.stateNode.implementation!==H.implementation?(M=sf(H,B.mode,K),M.return=B,M):(M=p(M,H.children||[]),M.return=B,M)}function G(B,M,H,K,de){return M===null||M.tag!==7?(M=Xi(H,B.mode,K,de),M.return=B,M):(M=p(M,H),M.return=B,M)}function Z(B,M,H){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=of(""+M,B.mode,H),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return H=_s(M.type,M.key,M.props,null,B.mode,H),uo(H,M),H.return=B,H;case v:return M=sf(M,B.mode,H),M.return=B,M;case ee:var K=M._init;return M=K(M._payload),Z(B,M,H)}if(se(M)||te(M))return M=Xi(M,B.mode,H,null),M.return=B,M;if(typeof M.then=="function")return Z(B,Vs(M),H);if(M.$$typeof===R)return Z(B,js(B,M),H);$s(B,M)}return null}function Q(B,M,H,K){var de=M!==null?M.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return de!==null?null:k(B,M,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===de?j(B,M,H,K):null;case v:return H.key===de?F(B,M,H,K):null;case ee:return de=H._init,H=de(H._payload),Q(B,M,H,K)}if(se(H)||te(H))return de!==null?null:G(B,M,H,K,null);if(typeof H.then=="function")return Q(B,M,Vs(H),K);if(H.$$typeof===R)return Q(B,M,js(B,H),K);$s(B,H)}return null}function P(B,M,H,K,de){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return B=B.get(H)||null,k(M,B,""+K,de);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return B=B.get(K.key===null?H:K.key)||null,j(M,B,K,de);case v:return B=B.get(K.key===null?H:K.key)||null,F(M,B,K,de);case ee:var je=K._init;return K=je(K._payload),P(B,M,H,K,de)}if(se(K)||te(K))return B=B.get(H)||null,G(M,B,K,de,null);if(typeof K.then=="function")return P(B,M,H,Vs(K),de);if(K.$$typeof===R)return P(B,M,H,js(M,K),de);$s(M,K)}return null}function Ee(B,M,H,K){for(var de=null,je=null,be=M,Ce=M=0,Ft=null;be!==null&&Ce<H.length;Ce++){be.index>Ce?(Ft=be,be=null):Ft=be.sibling;var Pe=Q(B,be,H[Ce],K);if(Pe===null){be===null&&(be=Ft);break}t&&be&&Pe.alternate===null&&r(B,be),M=y(Pe,M,Ce),je===null?de=Pe:je.sibling=Pe,je=Pe,be=Ft}if(Ce===H.length)return a(B,be),Ye&&Ji(B,Ce),de;if(be===null){for(;Ce<H.length;Ce++)be=Z(B,H[Ce],K),be!==null&&(M=y(be,M,Ce),je===null?de=be:je.sibling=be,je=be);return Ye&&Ji(B,Ce),de}for(be=u(be);Ce<H.length;Ce++)Ft=P(be,B,Ce,H[Ce],K),Ft!==null&&(t&&Ft.alternate!==null&&be.delete(Ft.key===null?Ce:Ft.key),M=y(Ft,M,Ce),je===null?de=Ft:je.sibling=Ft,je=Ft);return t&&be.forEach(function(Ri){return r(B,Ri)}),Ye&&Ji(B,Ce),de}function we(B,M,H,K){if(H==null)throw Error(l(151));for(var de=null,je=null,be=M,Ce=M=0,Ft=null,Pe=H.next();be!==null&&!Pe.done;Ce++,Pe=H.next()){be.index>Ce?(Ft=be,be=null):Ft=be.sibling;var Ri=Q(B,be,Pe.value,K);if(Ri===null){be===null&&(be=Ft);break}t&&be&&Ri.alternate===null&&r(B,be),M=y(Ri,M,Ce),je===null?de=Ri:je.sibling=Ri,je=Ri,be=Ft}if(Pe.done)return a(B,be),Ye&&Ji(B,Ce),de;if(be===null){for(;!Pe.done;Ce++,Pe=H.next())Pe=Z(B,Pe.value,K),Pe!==null&&(M=y(Pe,M,Ce),je===null?de=Pe:je.sibling=Pe,je=Pe);return Ye&&Ji(B,Ce),de}for(be=u(be);!Pe.done;Ce++,Pe=H.next())Pe=P(be,B,Ce,Pe.value,K),Pe!==null&&(t&&Pe.alternate!==null&&be.delete(Pe.key===null?Ce:Pe.key),M=y(Pe,M,Ce),je===null?de=Pe:je.sibling=Pe,je=Pe);return t&&be.forEach(function(F2){return r(B,F2)}),Ye&&Ji(B,Ce),de}function et(B,M,H,K){if(typeof H=="object"&&H!==null&&H.type===w&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var de=H.key;M!==null;){if(M.key===de){if(de=H.type,de===w){if(M.tag===7){a(B,M.sibling),K=p(M,H.props.children),K.return=B,B=K;break e}}else if(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Iy(de)===M.type){a(B,M.sibling),K=p(M,H.props),uo(K,H),K.return=B,B=K;break e}a(B,M);break}else r(B,M);M=M.sibling}H.type===w?(K=Xi(H.props.children,B.mode,K,H.key),K.return=B,B=K):(K=_s(H.type,H.key,H.props,null,B.mode,K),uo(K,H),K.return=B,B=K)}return S(B);case v:e:{for(de=H.key;M!==null;){if(M.key===de)if(M.tag===4&&M.stateNode.containerInfo===H.containerInfo&&M.stateNode.implementation===H.implementation){a(B,M.sibling),K=p(M,H.children||[]),K.return=B,B=K;break e}else{a(B,M);break}else r(B,M);M=M.sibling}K=sf(H,B.mode,K),K.return=B,B=K}return S(B);case ee:return de=H._init,H=de(H._payload),et(B,M,H,K)}if(se(H))return Ee(B,M,H,K);if(te(H)){if(de=te(H),typeof de!="function")throw Error(l(150));return H=de.call(H),we(B,M,H,K)}if(typeof H.then=="function")return et(B,M,Vs(H),K);if(H.$$typeof===R)return et(B,M,js(B,H),K);$s(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,M!==null&&M.tag===6?(a(B,M.sibling),K=p(M,H),K.return=B,B=K):(a(B,M),K=of(H,B.mode,K),K.return=B,B=K),S(B)):a(B,M)}return function(B,M,H,K){try{so=0;var de=et(B,M,H,K);return Il=null,de}catch(be){if(be===Wa||be===Ms)throw be;var je=En(29,be,null,B.mode);return je.lanes=K,je.return=B,je}finally{}}}var Vl=Vy(!0),$y=Vy(!1),Pn=I(null),mr=null;function mi(t){var r=t.alternate;O(Dt,Dt.current&1),O(Pn,t),mr===null&&(r===null||Hl.current!==null||r.memoizedState!==null)&&(mr=t)}function Yy(t){if(t.tag===22){if(O(Dt,Dt.current),O(Pn,t),mr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(mr=t)}}else yi()}function yi(){O(Dt,Dt.current),O(Pn,Pn.current)}function Qr(t){oe(Pn),mr===t&&(mr=null),oe(Dt)}var Dt=I(0);function Ys(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Rd(a)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Ff(t,r,a,u){r=t.memoizedState,a=a(u,r),a=a==null?r:m({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Qf={enqueueSetState:function(t,r,a){t=t._reactInternals;var u=_n(),p=di(u);p.payload=r,a!=null&&(p.callback=a),r=hi(t,p,u),r!==null&&(On(r,t,u),to(r,t,u))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var u=_n(),p=di(u);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=hi(t,p,u),r!==null&&(On(r,t,u),to(r,t,u))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=_n(),u=di(a);u.tag=2,r!=null&&(u.callback=r),r=hi(t,u,a),r!==null&&(On(r,t,a),to(r,t,a))}};function Gy(t,r,a,u,p,y,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,y,S):r.prototype&&r.prototype.isPureReactComponent?!Va(a,u)||!Va(p,y):!0}function Ky(t,r,a,u){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,u),r.state!==t&&Qf.enqueueReplaceState(r,r.state,null)}function ll(t,r){var a=r;if("ref"in r){a={};for(var u in r)u!=="ref"&&(a[u]=r[u])}if(t=t.defaultProps){a===r&&(a=m({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}var Gs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Xy(t){Gs(t)}function Zy(t){console.error(t)}function Jy(t){Gs(t)}function Ks(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function Wy(t,r,a){try{var u=t.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Pf(t,r,a){return a=di(a),a.tag=3,a.payload={element:null},a.callback=function(){Ks(t,r)},a}function eg(t){return t=di(t),t.tag=3,t}function tg(t,r,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var y=u.value;t.payload=function(){return p(y)},t.callback=function(){Wy(r,a,u)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Wy(r,a,u),typeof p!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var k=u.stack;this.componentDidCatch(u.value,{componentStack:k!==null?k:""})})}function FS(t,r,a,u,p){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&Xa(r,a,p,!0),a=Pn.current,a!==null){switch(a.tag){case 13:return mr===null?hd():a.alternate===null&&bt===0&&(bt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===bf?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),md(t,u,p)),!1;case 22:return a.flags|=65536,u===bf?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([u]):a.add(u)),md(t,u,p)),!1}throw Error(l(435,a.tag))}return md(t,u,p),hd(),!1}if(Ye)return r=Pn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,u!==ff&&(t=Error(l(422),{cause:u}),Ka(qn(t,a)))):(u!==ff&&(r=Error(l(423),{cause:u}),Ka(qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=qn(u,a),p=Pf(t.stateNode,u,p),wf(t,p),bt!==4&&(bt=2)),!1;var y=Error(l(520),{cause:u});if(y=qn(y,a),go===null?go=[y]:go.push(y),bt!==4&&(bt=2),r===null)return!0;u=qn(u,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,t=p&-p,a.lanes|=t,t=Pf(a.stateNode,u,t),wf(a,t),!1;case 1:if(r=a.type,y=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Si===null||!Si.has(y))))return a.flags|=65536,p&=-p,a.lanes|=p,p=eg(p),tg(p,t,a,u),wf(a,p),!1}a=a.return}while(a!==null);return!1}var ng=Error(l(461)),qt=!1;function It(t,r,a,u){r.child=t===null?$y(r,null,a,u):Vl(r,t.child,a,u)}function rg(t,r,a,u,p){a=a.render;var y=r.ref;if("ref"in u){var S={};for(var k in u)k!=="ref"&&(S[k]=u[k])}else S=u;return nl(r),u=Tf(t,r,a,S,y,p),k=Af(),t!==null&&!qt?(_f(t,r,p),Pr(t,r,p)):(Ye&&k&&uf(r),r.flags|=1,It(t,r,u,p),r.child)}function ig(t,r,a,u,p){if(t===null){var y=a.type;return typeof y=="function"&&!af(y)&&y.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=y,lg(t,r,y,u,p)):(t=_s(a.type,null,u,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Zf(t,p)){var S=y.memoizedProps;if(a=a.compare,a=a!==null?a:Va,a(S,u)&&t.ref===r.ref)return Pr(t,r,p)}return r.flags|=1,t=zr(y,u),t.ref=r.ref,t.return=r,r.child=t}function lg(t,r,a,u,p){if(t!==null){var y=t.memoizedProps;if(Va(y,u)&&t.ref===r.ref)if(qt=!1,r.pendingProps=u=y,Zf(t,p))(t.flags&131072)!==0&&(qt=!0);else return r.lanes=t.lanes,Pr(t,r,p)}return If(t,r,a,u,p)}function ag(t,r,a){var u=r.pendingProps,p=u.children,y=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=y!==null?y.baseLanes|a:a,t!==null){for(p=r.child=t.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;r.childLanes=y&~u}else r.childLanes=0,r.child=null;return og(t,r,u,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ds(r,y!==null?y.cachePool:null),y!==null?ly(r,y):Cf(),Yy(r);else return r.lanes=r.childLanes=536870912,og(t,r,y!==null?y.baseLanes|a:a,a)}else y!==null?(Ds(r,y.cachePool),ly(r,y),yi(),r.memoizedState=null):(t!==null&&Ds(r,null),Cf(),yi());return It(t,r,p,a),r.child}function og(t,r,a,u){var p=gf();return p=p===null?null:{parent:jt._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},t!==null&&Ds(r,null),Cf(),Yy(r),t!==null&&Xa(t,r,u,!0),null}function Xs(t,r){var a=r.ref;if(a===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(t===null||t.ref!==a)&&(r.flags|=4194816)}}function If(t,r,a,u,p){return nl(r),a=Tf(t,r,a,u,void 0,p),u=Af(),t!==null&&!qt?(_f(t,r,p),Pr(t,r,p)):(Ye&&u&&uf(r),r.flags|=1,It(t,r,a,p),r.child)}function sg(t,r,a,u,p,y){return nl(r),r.updateQueue=null,a=oy(r,u,a,p),ay(t),u=Af(),t!==null&&!qt?(_f(t,r,y),Pr(t,r,y)):(Ye&&u&&uf(r),r.flags|=1,It(t,r,a,y),r.child)}function ug(t,r,a,u,p){if(nl(r),r.stateNode===null){var y=Ll,S=a.contextType;typeof S=="object"&&S!==null&&(y=Jt(S)),y=new a(u,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Qf,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=u,y.state=r.memoizedState,y.refs={},vf(r),S=a.contextType,y.context=typeof S=="object"&&S!==null?Jt(S):Ll,y.state=r.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Ff(r,a,S,u),y.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(S=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),S!==y.state&&Qf.enqueueReplaceState(y,y.state,null),ro(r,u,y,p),no(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(t===null){y=r.stateNode;var k=r.memoizedProps,j=ll(a,k);y.props=j;var F=y.context,G=a.contextType;S=Ll,typeof G=="object"&&G!==null&&(S=Jt(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof y.getSnapshotBeforeUpdate=="function",k=r.pendingProps!==k,G||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(k||F!==S)&&Ky(r,y,u,S),fi=!1;var Q=r.memoizedState;y.state=Q,ro(r,u,y,p),no(),F=r.memoizedState,k||Q!==F||fi?(typeof Z=="function"&&(Ff(r,a,Z,u),F=r.memoizedState),(j=fi||Gy(r,a,j,u,Q,F,S))?(G||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=F),y.props=u,y.state=F,y.context=S,u=j):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{y=r.stateNode,xf(t,r),S=r.memoizedProps,G=ll(a,S),y.props=G,Z=r.pendingProps,Q=y.context,F=a.contextType,j=Ll,typeof F=="object"&&F!==null&&(j=Jt(F)),k=a.getDerivedStateFromProps,(F=typeof k=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==Z||Q!==j)&&Ky(r,y,u,j),fi=!1,Q=r.memoizedState,y.state=Q,ro(r,u,y,p),no();var P=r.memoizedState;S!==Z||Q!==P||fi||t!==null&&t.dependencies!==null&&Ns(t.dependencies)?(typeof k=="function"&&(Ff(r,a,k,u),P=r.memoizedState),(G=fi||Gy(r,a,G,u,Q,P,j)||t!==null&&t.dependencies!==null&&Ns(t.dependencies))?(F||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,P,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,P,j)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=P),y.props=u,y.state=P,y.context=j,u=G):(typeof y.componentDidUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),u=!1)}return y=u,Xs(t,r),u=(r.flags&128)!==0,y||u?(y=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,t!==null&&u?(r.child=Vl(r,t.child,null,p),r.child=Vl(r,null,a,p)):It(t,r,a,p),r.memoizedState=y.state,t=r.child):t=Pr(t,r,p),t}function cg(t,r,a,u){return Ga(),r.flags|=256,It(t,r,a,u),r.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $f(t){return{baseLanes:t,cachePool:Zm()}}function Yf(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=In),t}function fg(t,r,a){var u=r.pendingProps,p=!1,y=(r.flags&128)!==0,S;if((S=y)||(S=t!==null&&t.memoizedState===null?!1:(Dt.current&2)!==0),S&&(p=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ye){if(p?mi(r):yi(),Ye){var k=gt,j;if(j=k){e:{for(j=k,k=pr;j.nodeType!==8;){if(!k){k=null;break e}if(j=nr(j.nextSibling),j===null){k=null;break e}}k=j}k!==null?(r.memoizedState={dehydrated:k,treeContext:Zi!==null?{id:Ur,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},j=En(18,null,null,0),j.stateNode=k,j.return=r,r.child=j,an=r,gt=null,j=!0):j=!1}j||el(r)}if(k=r.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return Rd(k)?r.lanes=32:r.lanes=536870912,null;Qr(r)}return k=u.children,u=u.fallback,p?(yi(),p=r.mode,k=Zs({mode:"hidden",children:k},p),u=Xi(u,p,a,null),k.return=r,u.return=r,k.sibling=u,r.child=k,p=r.child,p.memoizedState=$f(a),p.childLanes=Yf(t,S,a),r.memoizedState=Vf,u):(mi(r),Gf(r,k))}if(j=t.memoizedState,j!==null&&(k=j.dehydrated,k!==null)){if(y)r.flags&256?(mi(r),r.flags&=-257,r=Kf(t,r,a)):r.memoizedState!==null?(yi(),r.child=t.child,r.flags|=128,r=null):(yi(),p=u.fallback,k=r.mode,u=Zs({mode:"visible",children:u.children},k),p=Xi(p,k,a,null),p.flags|=2,u.return=r,p.return=r,u.sibling=p,r.child=u,Vl(r,t.child,null,a),u=r.child,u.memoizedState=$f(a),u.childLanes=Yf(t,S,a),r.memoizedState=Vf,r=p);else if(mi(r),Rd(k)){if(S=k.nextSibling&&k.nextSibling.dataset,S)var F=S.dgst;S=F,u=Error(l(419)),u.stack="",u.digest=S,Ka({value:u,source:null,stack:null}),r=Kf(t,r,a)}else if(qt||Xa(t,r,a,!1),S=(a&t.childLanes)!==0,qt||S){if(S=it,S!==null&&(u=a&-a,u=(u&42)!==0?1:Kt(u),u=(u&(S.suspendedLanes|a))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,Ml(t,u),On(S,t,u),ng;k.data==="$?"||hd(),r=Kf(t,r,a)}else k.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=j.treeContext,gt=nr(k.nextSibling),an=r,Ye=!0,Wi=null,pr=!1,t!==null&&(Fn[Qn++]=Ur,Fn[Qn++]=Br,Fn[Qn++]=Zi,Ur=t.id,Br=t.overflow,Zi=r),r=Gf(r,u.children),r.flags|=4096);return r}return p?(yi(),p=u.fallback,k=r.mode,j=t.child,F=j.sibling,u=zr(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,F!==null?p=zr(F,p):(p=Xi(p,k,a,null),p.flags|=2),p.return=r,u.return=r,u.sibling=p,r.child=u,u=p,p=r.child,k=t.child.memoizedState,k===null?k=$f(a):(j=k.cachePool,j!==null?(F=jt._currentValue,j=j.parent!==F?{parent:F,pool:F}:j):j=Zm(),k={baseLanes:k.baseLanes|a,cachePool:j}),p.memoizedState=k,p.childLanes=Yf(t,S,a),r.memoizedState=Vf,u):(mi(r),a=t.child,t=a.sibling,a=zr(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,t!==null&&(S=r.deletions,S===null?(r.deletions=[t],r.flags|=16):S.push(t)),r.child=a,r.memoizedState=null,a)}function Gf(t,r){return r=Zs({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Zs(t,r){return t=En(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Kf(t,r,a){return Vl(r,t.child,null,a),t=Gf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function dg(t,r,a){t.lanes|=r;var u=t.alternate;u!==null&&(u.lanes|=r),hf(t.return,r,a)}function Xf(t,r,a,u,p){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=a,y.tailMode=p)}function hg(t,r,a){var u=r.pendingProps,p=u.revealOrder,y=u.tail;if(It(t,r,u.children,a),u=Dt.current,(u&2)!==0)u=u&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&dg(t,a,r);else if(t.tag===19)dg(t,a,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(O(Dt,u),p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&Ys(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),Xf(r,!1,p,a,y);break;case"backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Ys(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}Xf(r,!0,a,null,y);break;case"together":Xf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Pr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),wi|=r.lanes,(a&r.childLanes)===0)if(t!==null){if(Xa(t,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(l(153));if(r.child!==null){for(t=r.child,a=zr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=zr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function Zf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ns(t)))}function QS(t,r,a){switch(r.tag){case 3:Re(r,r.stateNode.containerInfo),ci(r,jt,t.memoizedState.cache),Ga();break;case 27:case 5:Qt(r);break;case 4:Re(r,r.stateNode.containerInfo);break;case 10:ci(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(mi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?fg(t,r,a):(mi(r),t=Pr(t,r,a),t!==null?t.sibling:null);mi(r);break;case 19:var p=(t.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||(Xa(t,r,a,!1),u=(a&r.childLanes)!==0),p){if(u)return hg(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),O(Dt,Dt.current),u)break;return null;case 22:case 23:return r.lanes=0,ag(t,r,a);case 24:ci(r,jt,t.memoizedState.cache)}return Pr(t,r,a)}function pg(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)qt=!0;else{if(!Zf(t,a)&&(r.flags&128)===0)return qt=!1,QS(t,r,a);qt=(t.flags&131072)!==0}else qt=!1,Ye&&(r.flags&1048576)!==0&&Im(r,Rs,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var u=r.elementType,p=u._init;if(u=p(u._payload),r.type=u,typeof u=="function")af(u)?(t=ll(u,t),r.tag=1,r=ug(null,r,u,t,a)):(r.tag=0,r=If(null,r,u,t,a));else{if(u!=null){if(p=u.$$typeof,p===z){r.tag=11,r=rg(null,r,u,t,a);break e}else if(p===$){r.tag=14,r=ig(null,r,u,t,a);break e}}throw r=J(u)||u,Error(l(306,r,""))}}return r;case 0:return If(t,r,r.type,r.pendingProps,a);case 1:return u=r.type,p=ll(u,r.pendingProps),ug(t,r,u,p,a);case 3:e:{if(Re(r,r.stateNode.containerInfo),t===null)throw Error(l(387));u=r.pendingProps;var y=r.memoizedState;p=y.element,xf(t,r),ro(r,u,null,a);var S=r.memoizedState;if(u=S.cache,ci(r,jt,u),u!==y.cache&&pf(r,[jt],a,!0),no(),u=S.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=cg(t,r,u,a);break e}else if(u!==p){p=qn(Error(l(424)),r),Ka(p),r=cg(t,r,u,a);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(gt=nr(t.firstChild),an=r,Ye=!0,Wi=null,pr=!0,a=$y(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ga(),u===p){r=Pr(t,r,a);break e}It(t,r,u,a)}r=r.child}return r;case 26:return Xs(t,r),t===null?(a=b0(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ye||(a=r.type,t=r.pendingProps,u=fu(ce.current).createElement(a),u[le]=r,u[he]=t,$t(u,a,t),Ct(u),r.stateNode=u):r.memoizedState=b0(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Qt(r),t===null&&Ye&&(u=r.stateNode=m0(r.type,r.pendingProps,ce.current),an=r,pr=!0,p=gt,ki(r.type)?(Nd=p,gt=nr(u.firstChild)):gt=p),It(t,r,r.pendingProps.children,a),Xs(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ye&&((p=u=gt)&&(u=y2(u,r.type,r.pendingProps,pr),u!==null?(r.stateNode=u,an=r,gt=nr(u.firstChild),pr=!1,p=!0):p=!1),p||el(r)),Qt(r),p=r.type,y=r.pendingProps,S=t!==null?t.memoizedProps:null,u=y.children,Ad(p,y)?u=null:S!==null&&Ad(p,S)&&(r.flags|=32),r.memoizedState!==null&&(p=Tf(t,r,MS,null,null,a),To._currentValue=p),Xs(t,r),It(t,r,u,a),r.child;case 6:return t===null&&Ye&&((t=a=gt)&&(a=g2(a,r.pendingProps,pr),a!==null?(r.stateNode=a,an=r,gt=null,t=!0):t=!1),t||el(r)),null;case 13:return fg(t,r,a);case 4:return Re(r,r.stateNode.containerInfo),u=r.pendingProps,t===null?r.child=Vl(r,null,u,a):It(t,r,u,a),r.child;case 11:return rg(t,r,r.type,r.pendingProps,a);case 7:return It(t,r,r.pendingProps,a),r.child;case 8:return It(t,r,r.pendingProps.children,a),r.child;case 12:return It(t,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,ci(r,r.type,u.value),It(t,r,u.children,a),r.child;case 9:return p=r.type._context,u=r.pendingProps.children,nl(r),p=Jt(p),u=u(p),r.flags|=1,It(t,r,u,a),r.child;case 14:return ig(t,r,r.type,r.pendingProps,a);case 15:return lg(t,r,r.type,r.pendingProps,a);case 19:return hg(t,r,a);case 31:return u=r.pendingProps,a=r.mode,u={mode:u.mode,children:u.children},t===null?(a=Zs(u,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=zr(t.child,u),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return ag(t,r,a);case 24:return nl(r),u=Jt(jt),t===null?(p=gf(),p===null&&(p=it,y=mf(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=a),p=y),r.memoizedState={parent:u,cache:p},vf(r),ci(r,jt,p)):((t.lanes&a)!==0&&(xf(t,r),ro(r,null,null,a),no()),p=t.memoizedState,y=r.memoizedState,p.parent!==u?(p={parent:u,cache:u},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),ci(r,jt,u)):(u=y.cache,ci(r,jt,u),u!==p.cache&&pf(r,[jt],a,!0))),It(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Ir(t){t.flags|=4}function mg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!C0(r)){if(r=Pn.current,r!==null&&((He&4194048)===He?mr!==null:(He&62914560)!==He&&(He&536870912)===0||r!==mr))throw eo=bf,Jm;t.flags|=8192}}function Js(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?jr():536870912,t.lanes|=r,Kl|=r)}function co(t,r){if(!Ye)switch(t.tailMode){case"hidden":r=t.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function ht(t){var r=t.alternate!==null&&t.alternate.child===t.child,a=0,u=0;if(r)for(var p=t.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=a,r}function PS(t,r,a){var u=r.pendingProps;switch(cf(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(r),null;case 1:return ht(r),null;case 3:return a=r.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Hr(jt),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ya(r)?Ir(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Ym())),ht(r),null;case 26:return a=r.memoizedState,t===null?(Ir(r),a!==null?(ht(r),mg(r,a)):(ht(r),r.flags&=-16777217)):a?a!==t.memoizedState?(Ir(r),ht(r),mg(r,a)):(ht(r),r.flags&=-16777217):(t.memoizedProps!==u&&Ir(r),ht(r),r.flags&=-16777217),null;case 27:xt(r),a=ce.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Ir(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ht(r),null}t=fe.current,Ya(r)?Vm(r):(t=m0(p,u,a),r.stateNode=t,Ir(r))}return ht(r),null;case 5:if(xt(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Ir(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ht(r),null}if(t=fe.current,Ya(r))Vm(r);else{switch(p=fu(ce.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(a,{is:u.is}):p.createElement(a)}}t[le]=r,t[he]=u;e:for(p=r.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r.stateNode=t;e:switch($t(t,a,u),a){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Ir(r)}}return ht(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&Ir(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(l(166));if(t=ce.current,Ya(r)){if(t=r.stateNode,a=r.memoizedProps,u=null,p=an,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[le]=r,t=!!(t.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||s0(t.nodeValue,a)),t||el(r)}else t=fu(t).createTextNode(u),t[le]=r,r.stateNode=t}return ht(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Ya(r),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(l(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(l(317));p[le]=r}else Ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),p=!1}else p=Ym(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(Qr(r),r):(Qr(r),null)}if(Qr(r),(r.flags&128)!==0)return r.lanes=a,r;if(a=u!==null,t=t!==null&&t.memoizedState!==null,a){u=r.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var y=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==p&&(u.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),Js(r,r.updateQueue),ht(r),null;case 4:return Ie(),t===null&&Sd(r.stateNode.containerInfo),ht(r),null;case 10:return Hr(r.type),ht(r),null;case 19:if(oe(Dt),p=r.memoizedState,p===null)return ht(r),null;if(u=(r.flags&128)!==0,y=p.rendering,y===null)if(u)co(p,!1);else{if(bt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=Ys(t),y!==null){for(r.flags|=128,co(p,!1),t=y.updateQueue,r.updateQueue=t,Js(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)Pm(a,t),a=a.sibling;return O(Dt,Dt.current&1|2),r.child}t=t.sibling}p.tail!==null&&Lt()>tu&&(r.flags|=128,u=!0,co(p,!1),r.lanes=4194304)}else{if(!u)if(t=Ys(y),t!==null){if(r.flags|=128,u=!0,t=t.updateQueue,r.updateQueue=t,Js(r,t),co(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!Ye)return ht(r),null}else 2*Lt()-p.renderingStartTime>tu&&a!==536870912&&(r.flags|=128,u=!0,co(p,!1),r.lanes=4194304);p.isBackwards?(y.sibling=r.child,r.child=y):(t=p.last,t!==null?t.sibling=y:r.child=y,p.last=y)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Lt(),r.sibling=null,t=Dt.current,O(Dt,u?t&1|2:t&1),r):(ht(r),null);case 22:case 23:return Qr(r),Ef(),u=r.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(a&536870912)!==0&&(r.flags&128)===0&&(ht(r),r.subtreeFlags&6&&(r.flags|=8192)):ht(r),a=r.updateQueue,a!==null&&Js(r,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==a&&(r.flags|=2048),t!==null&&oe(rl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Hr(jt),ht(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function IS(t,r){switch(cf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Hr(jt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return xt(r),null;case 13:if(Qr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Ga()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return oe(Dt),null;case 4:return Ie(),null;case 10:return Hr(r.type),null;case 22:case 23:return Qr(r),Ef(),t!==null&&oe(rl),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Hr(jt),null;case 25:return null;default:return null}}function yg(t,r){switch(cf(r),r.tag){case 3:Hr(jt),Ie();break;case 26:case 27:case 5:xt(r);break;case 4:Ie();break;case 13:Qr(r);break;case 19:oe(Dt);break;case 10:Hr(r.type);break;case 22:case 23:Qr(r),Ef(),t!==null&&oe(rl);break;case 24:Hr(jt)}}function fo(t,r){try{var a=r.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var p=u.next;a=p;do{if((a.tag&t)===t){u=void 0;var y=a.create,S=a.inst;u=y(),S.destroy=u}a=a.next}while(a!==p)}}catch(k){tt(r,r.return,k)}}function gi(t,r,a){try{var u=r.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&t)===t){var S=u.inst,k=S.destroy;if(k!==void 0){S.destroy=void 0,p=r;var j=a,F=k;try{F()}catch(G){tt(p,j,G)}}}u=u.next}while(u!==y)}}catch(G){tt(r,r.return,G)}}function gg(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{iy(r,a)}catch(u){tt(t,t.return,u)}}}function bg(t,r,a){a.props=ll(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){tt(t,r,u)}}function ho(t,r){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof a=="function"?t.refCleanup=a(u):a.current=u}}catch(p){tt(t,r,p)}}function yr(t,r){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){tt(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){tt(t,r,p)}else a.current=null}function vg(t){var r=t.type,a=t.memoizedProps,u=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(p){tt(t,t.return,p)}}function Jf(t,r,a){try{var u=t.stateNode;f2(u,t.type,a,r),u[he]=r}catch(p){tt(t,t.return,p)}}function xg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ki(t.type)||t.tag===4}function Wf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ki(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ed(t,r,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(t),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=cu));else if(u!==4&&(u===27&&ki(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(ed(t,r,a),t=t.sibling;t!==null;)ed(t,r,a),t=t.sibling}function Ws(t,r,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(u!==4&&(u===27&&ki(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Ws(t,r,a),t=t.sibling;t!==null;)Ws(t,r,a),t=t.sibling}function wg(t){var r=t.stateNode,a=t.memoizedProps;try{for(var u=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);$t(r,u,a),r[le]=t,r[he]=a}catch(y){tt(t,t.return,y)}}var Vr=!1,kt=!1,td=!1,Sg=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function VS(t,r){if(t=t.containerInfo,kd=gu,t=Dm(t),Jc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var S=0,k=-1,j=-1,F=0,G=0,Z=t,Q=null;t:for(;;){for(var P;Z!==a||p!==0&&Z.nodeType!==3||(k=S+p),Z!==y||u!==0&&Z.nodeType!==3||(j=S+u),Z.nodeType===3&&(S+=Z.nodeValue.length),(P=Z.firstChild)!==null;)Q=Z,Z=P;for(;;){if(Z===t)break t;if(Q===a&&++F===p&&(k=S),Q===y&&++G===u&&(j=S),(P=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=P}a=k===-1||j===-1?null:{start:k,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Td={focusedElem:t,selectionRange:a},gu=!1,Ht=r;Ht!==null;)if(r=Ht,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Ht=t;else for(;Ht!==null;){switch(r=Ht,y=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,a=r,p=y.memoizedProps,y=y.memoizedState,u=a.stateNode;try{var Ee=ll(a.type,p,a.elementType===a.type);t=u.getSnapshotBeforeUpdate(Ee,y),u.__reactInternalSnapshotBeforeUpdate=t}catch(we){tt(a,a.return,we)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)Od(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Od(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=r.sibling,t!==null){t.return=r.return,Ht=t;break}Ht=r.return}}function Cg(t,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:bi(t,a),u&4&&fo(5,a);break;case 1:if(bi(t,a),u&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(S){tt(a,a.return,S)}else{var p=ll(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(S){tt(a,a.return,S)}}u&64&&gg(a),u&512&&ho(a,a.return);break;case 3:if(bi(t,a),u&64&&(t=a.updateQueue,t!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{iy(t,r)}catch(S){tt(a,a.return,S)}}break;case 27:r===null&&u&4&&wg(a);case 26:case 5:bi(t,a),r===null&&u&4&&vg(a),u&512&&ho(a,a.return);break;case 12:bi(t,a);break;case 13:bi(t,a),u&4&&Tg(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=e2.bind(null,a),b2(t,a))));break;case 22:if(u=a.memoizedState!==null||Vr,!u){r=r!==null&&r.memoizedState!==null||kt,p=Vr;var y=kt;Vr=u,(kt=r)&&!y?vi(t,a,(a.subtreeFlags&8772)!==0):bi(t,a),Vr=p,kt=y}break;case 30:break;default:bi(t,a)}}function Eg(t){var r=t.alternate;r!==null&&(t.alternate=null,Eg(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Zt(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var at=null,pn=!1;function $r(t,r,a){for(a=a.child;a!==null;)kg(t,r,a),a=a.sibling}function kg(t,r,a){if(W&&typeof W.onCommitFiberUnmount=="function")try{W.onCommitFiberUnmount(Y,a)}catch{}switch(a.tag){case 26:kt||yr(a,r),$r(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:kt||yr(a,r);var u=at,p=pn;ki(a.type)&&(at=a.stateNode,pn=!1),$r(t,r,a),So(a.stateNode),at=u,pn=p;break;case 5:kt||yr(a,r);case 6:if(u=at,p=pn,at=null,$r(t,r,a),at=u,pn=p,at!==null)if(pn)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(a.stateNode)}catch(y){tt(a,r,y)}else try{at.removeChild(a.stateNode)}catch(y){tt(a,r,y)}break;case 18:at!==null&&(pn?(t=at,h0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ro(t)):h0(at,a.stateNode));break;case 4:u=at,p=pn,at=a.stateNode.containerInfo,pn=!0,$r(t,r,a),at=u,pn=p;break;case 0:case 11:case 14:case 15:kt||gi(2,a,r),kt||gi(4,a,r),$r(t,r,a);break;case 1:kt||(yr(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&bg(a,r,u)),$r(t,r,a);break;case 21:$r(t,r,a);break;case 22:kt=(u=kt)||a.memoizedState!==null,$r(t,r,a),kt=u;break;default:$r(t,r,a)}}function Tg(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ro(t)}catch(a){tt(r,r.return,a)}}function $S(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Sg),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Sg),r;default:throw Error(l(435,t.tag))}}function nd(t,r){var a=$S(t);r.forEach(function(u){var p=t2.bind(null,t,u);a.has(u)||(a.add(u),u.then(p,p))})}function kn(t,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],y=t,S=r,k=S;e:for(;k!==null;){switch(k.tag){case 27:if(ki(k.type)){at=k.stateNode,pn=!1;break e}break;case 5:at=k.stateNode,pn=!1;break e;case 3:case 4:at=k.stateNode.containerInfo,pn=!0;break e}k=k.return}if(at===null)throw Error(l(160));kg(y,S,p),at=null,pn=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Ag(r,t),r=r.sibling}var tr=null;function Ag(t,r){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:kn(r,t),Tn(t),u&4&&(gi(3,t,t.return),fo(3,t),gi(5,t,t.return));break;case 1:kn(r,t),Tn(t),u&512&&(kt||a===null||yr(a,a.return)),u&64&&Vr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var p=tr;if(kn(r,t),Tn(t),u&512&&(kt||a===null||yr(a,a.return)),u&4){var y=a!==null?a.memoizedState:null;if(u=t.memoizedState,a===null)if(u===null)if(t.stateNode===null){e:{u=t.type,a=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":y=p.getElementsByTagName("title")[0],(!y||y[St]||y[le]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(u),p.head.insertBefore(y,p.querySelector("head > title"))),$t(y,u,a),y[le]=t,Ct(y),u=y;break e;case"link":var S=w0("link","href",p).get(u+(a.href||""));if(S){for(var k=0;k<S.length;k++)if(y=S[k],y.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&y.getAttribute("rel")===(a.rel==null?null:a.rel)&&y.getAttribute("title")===(a.title==null?null:a.title)&&y.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(k,1);break t}}y=p.createElement(u),$t(y,u,a),p.head.appendChild(y);break;case"meta":if(S=w0("meta","content",p).get(u+(a.content||""))){for(k=0;k<S.length;k++)if(y=S[k],y.getAttribute("content")===(a.content==null?null:""+a.content)&&y.getAttribute("name")===(a.name==null?null:a.name)&&y.getAttribute("property")===(a.property==null?null:a.property)&&y.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&y.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(k,1);break t}}y=p.createElement(u),$t(y,u,a),p.head.appendChild(y);break;default:throw Error(l(468,u))}y[le]=t,Ct(y),u=y}t.stateNode=u}else S0(p,t.type,t.stateNode);else t.stateNode=x0(p,u,t.memoizedProps);else y!==u?(y===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):y.count--,u===null?S0(p,t.type,t.stateNode):x0(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Jf(t,t.memoizedProps,a.memoizedProps)}break;case 27:kn(r,t),Tn(t),u&512&&(kt||a===null||yr(a,a.return)),a!==null&&u&4&&Jf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(kn(r,t),Tn(t),u&512&&(kt||a===null||yr(a,a.return)),t.flags&32){p=t.stateNode;try{Al(p,"")}catch(P){tt(t,t.return,P)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Jf(t,p,a!==null?a.memoizedProps:p)),u&1024&&(td=!0);break;case 6:if(kn(r,t),Tn(t),u&4){if(t.stateNode===null)throw Error(l(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(P){tt(t,t.return,P)}}break;case 3:if(pu=null,p=tr,tr=du(r.containerInfo),kn(r,t),tr=p,Tn(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Ro(r.containerInfo)}catch(P){tt(t,t.return,P)}td&&(td=!1,_g(t));break;case 4:u=tr,tr=du(t.stateNode.containerInfo),kn(r,t),Tn(t),tr=u;break;case 12:kn(r,t),Tn(t);break;case 13:kn(r,t),Tn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(sd=Lt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,nd(t,u)));break;case 22:p=t.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,F=Vr,G=kt;if(Vr=F||p,kt=G||j,kn(r,t),kt=G,Vr=F,Tn(t),u&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||j||Vr||kt||al(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){j=a=r;try{if(y=j.stateNode,p)S=y.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{k=j.stateNode;var Z=j.memoizedProps.style,Q=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;k.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(P){tt(j,j.return,P)}}}else if(r.tag===6){if(a===null){j=r;try{j.stateNode.nodeValue=p?"":j.memoizedProps}catch(P){tt(j,j.return,P)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=t.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,nd(t,a))));break;case 19:kn(r,t),Tn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,nd(t,u)));break;case 30:break;case 21:break;default:kn(r,t),Tn(t)}}function Tn(t){var r=t.flags;if(r&2){try{for(var a,u=t.return;u!==null;){if(xg(u)){a=u;break}u=u.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,y=Wf(t);Ws(t,y,p);break;case 5:var S=a.stateNode;a.flags&32&&(Al(S,""),a.flags&=-33);var k=Wf(t);Ws(t,k,S);break;case 3:case 4:var j=a.stateNode.containerInfo,F=Wf(t);ed(t,F,j);break;default:throw Error(l(161))}}catch(G){tt(t,t.return,G)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function _g(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;_g(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function bi(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Cg(t,r.alternate,r),r=r.sibling}function al(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:gi(4,r,r.return),al(r);break;case 1:yr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&bg(r,r.return,a),al(r);break;case 27:So(r.stateNode);case 26:case 5:yr(r,r.return),al(r);break;case 22:r.memoizedState===null&&al(r);break;case 30:al(r);break;default:al(r)}t=t.sibling}}function vi(t,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,p=t,y=r,S=y.flags;switch(y.tag){case 0:case 11:case 15:vi(p,y,a),fo(4,y);break;case 1:if(vi(p,y,a),u=y,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){tt(u,u.return,F)}if(u=y,p=u.updateQueue,p!==null){var k=u.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)ry(j[p],k)}catch(F){tt(u,u.return,F)}}a&&S&64&&gg(y),ho(y,y.return);break;case 27:wg(y);case 26:case 5:vi(p,y,a),a&&u===null&&S&4&&vg(y),ho(y,y.return);break;case 12:vi(p,y,a);break;case 13:vi(p,y,a),a&&S&4&&Tg(p,y);break;case 22:y.memoizedState===null&&vi(p,y,a),ho(y,y.return);break;case 30:break;default:vi(p,y,a)}r=r.sibling}}function rd(t,r){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Za(a))}function id(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Za(t))}function gr(t,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Og(t,r,a,u),r=r.sibling}function Og(t,r,a,u){var p=r.flags;switch(r.tag){case 0:case 11:case 15:gr(t,r,a,u),p&2048&&fo(9,r);break;case 1:gr(t,r,a,u);break;case 3:gr(t,r,a,u),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Za(t)));break;case 12:if(p&2048){gr(t,r,a,u),t=r.stateNode;try{var y=r.memoizedProps,S=y.id,k=y.onPostCommit;typeof k=="function"&&k(S,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){tt(r,r.return,j)}}else gr(t,r,a,u);break;case 13:gr(t,r,a,u);break;case 23:break;case 22:y=r.stateNode,S=r.alternate,r.memoizedState!==null?y._visibility&2?gr(t,r,a,u):po(t,r):y._visibility&2?gr(t,r,a,u):(y._visibility|=2,$l(t,r,a,u,(r.subtreeFlags&10256)!==0)),p&2048&&rd(S,r);break;case 24:gr(t,r,a,u),p&2048&&id(r.alternate,r);break;default:gr(t,r,a,u)}}function $l(t,r,a,u,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=t,S=r,k=a,j=u,F=S.flags;switch(S.tag){case 0:case 11:case 15:$l(y,S,k,j,p),fo(8,S);break;case 23:break;case 22:var G=S.stateNode;S.memoizedState!==null?G._visibility&2?$l(y,S,k,j,p):po(y,S):(G._visibility|=2,$l(y,S,k,j,p)),p&&F&2048&&rd(S.alternate,S);break;case 24:$l(y,S,k,j,p),p&&F&2048&&id(S.alternate,S);break;default:$l(y,S,k,j,p)}r=r.sibling}}function po(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=t,u=r,p=u.flags;switch(u.tag){case 22:po(a,u),p&2048&&rd(u.alternate,u);break;case 24:po(a,u),p&2048&&id(u.alternate,u);break;default:po(a,u)}r=r.sibling}}var mo=8192;function Yl(t){if(t.subtreeFlags&mo)for(t=t.child;t!==null;)Rg(t),t=t.sibling}function Rg(t){switch(t.tag){case 26:Yl(t),t.flags&mo&&t.memoizedState!==null&&N2(tr,t.memoizedState,t.memoizedProps);break;case 5:Yl(t);break;case 3:case 4:var r=tr;tr=du(t.stateNode.containerInfo),Yl(t),tr=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=mo,mo=16777216,Yl(t),mo=r):Yl(t));break;default:Yl(t)}}function Ng(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function yo(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];Ht=u,Dg(u,t)}Ng(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jg(t),t=t.sibling}function jg(t){switch(t.tag){case 0:case 11:case 15:yo(t),t.flags&2048&&gi(9,t,t.return);break;case 3:yo(t);break;case 12:yo(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,eu(t)):yo(t);break;default:yo(t)}}function eu(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];Ht=u,Dg(u,t)}Ng(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:gi(8,r,r.return),eu(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,eu(r));break;default:eu(r)}t=t.sibling}}function Dg(t,r){for(;Ht!==null;){var a=Ht;switch(a.tag){case 0:case 11:case 15:gi(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Za(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,Ht=u;else e:for(a=t;Ht!==null;){u=Ht;var p=u.sibling,y=u.return;if(Eg(u),u===a){Ht=null;break e}if(p!==null){p.return=y,Ht=p;break e}Ht=y}}}var YS={getCacheForType:function(t){var r=Jt(jt),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},GS=typeof WeakMap=="function"?WeakMap:Map,Ke=0,it=null,Le=null,He=0,Xe=0,An=null,xi=!1,Gl=!1,ld=!1,Yr=0,bt=0,wi=0,ol=0,ad=0,In=0,Kl=0,go=null,mn=null,od=!1,sd=0,tu=1/0,nu=null,Si=null,Vt=0,Ci=null,Xl=null,Zl=0,ud=0,cd=null,Mg=null,bo=0,fd=null;function _n(){if((Ke&2)!==0&&He!==0)return He&-He;if(q.T!==null){var t=Bl;return t!==0?t:bd()}return Me()}function Lg(){In===0&&(In=(He&536870912)===0||Ye?ai():536870912);var t=Pn.current;return t!==null&&(t.flags|=32),In}function On(t,r,a){(t===it&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(Jl(t,0),Ei(t,He,In,!1)),Mn(t,a),((Ke&2)===0||t!==it)&&(t===it&&((Ke&2)===0&&(ol|=a),bt===4&&Ei(t,He,In,!1)),br(t))}function zg(t,r,a){if((Ke&6)!==0)throw Error(l(327));var u=!a&&(r&124)===0&&(r&t.expiredLanes)===0||zt(t,r),p=u?ZS(t,r):pd(t,r,!0),y=u;do{if(p===0){Gl&&!u&&Ei(t,r,0,!1);break}else{if(a=t.current.alternate,y&&!KS(a)){p=pd(t,r,!1),y=!1;continue}if(p===2){if(y=r,t.errorRecoveryDisabledLanes&y)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var k=t;p=go;var j=k.current.memoizedState.isDehydrated;if(j&&(Jl(k,S).flags|=256),S=pd(k,S,!1),S!==2){if(ld&&!j){k.errorRecoveryDisabledLanes|=y,ol|=y,p=4;break e}y=mn,mn=p,y!==null&&(mn===null?mn=y:mn.push.apply(mn,y))}p=S}if(y=!1,p!==2)continue}}if(p===1){Jl(t,0),Ei(t,r,0,!0);break}e:{switch(u=t,y=p,y){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Ei(u,r,In,!xi);break e;case 2:mn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=sd+300-Lt(),10<p)){if(Ei(u,r,In,!xi),ft(u,0,!0)!==0)break e;u.timeoutHandle=f0(Ug.bind(null,u,a,mn,nu,od,r,In,ol,Kl,xi,y,2,-0,0),p);break e}Ug(u,a,mn,nu,od,r,In,ol,Kl,xi,y,0,-0,0)}}break}while(!0);br(t)}function Ug(t,r,a,u,p,y,S,k,j,F,G,Z,Q,P){if(t.timeoutHandle=-1,Z=r.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(ko={stylesheets:null,count:0,unsuspend:R2},Rg(r),Z=j2(),Z!==null)){t.cancelPendingCommit=Z(Ig.bind(null,t,r,y,a,u,p,S,k,j,G,1,Q,P)),Ei(t,y,S,!F);return}Ig(t,r,y,a,u,p,S,k,j)}function KS(t){for(var r=t;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var p=a[u],y=p.getSnapshot;p=p.value;try{if(!Cn(y(),p))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ei(t,r,a,u){r&=~ad,r&=~ol,t.suspendedLanes|=r,t.pingedLanes&=~r,u&&(t.warmLanes|=r),u=t.expirationTimes;for(var p=r;0<p;){var y=31-ge(p),S=1<<y;u[y]=-1,p&=~S}a!==0&&Ii(t,a,r)}function ru(){return(Ke&6)===0?(vo(0),!1):!0}function dd(){if(Le!==null){if(Xe===0)var t=Le.return;else t=Le,qr=tl=null,Of(t),Il=null,so=0,t=Le;for(;t!==null;)yg(t.alternate,t),t=t.return;Le=null}}function Jl(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,h2(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),dd(),it=t,Le=a=zr(t.current,null),He=r,Xe=0,An=null,xi=!1,Gl=zt(t,r),ld=!1,Kl=In=ad=ol=wi=bt=0,mn=go=null,od=!1,(r&8)!==0&&(r|=r&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=r;0<u;){var p=31-ge(u),y=1<<p;r|=t[p],u&=~y}return Yr=r,ks(),a}function Bg(t,r){Ne=null,q.H=Is,r===Wa||r===Ms?(r=ty(),Xe=3):r===Jm?(r=ty(),Xe=4):Xe=r===ng?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,An=r,Le===null&&(bt=1,Ks(t,qn(r,t.current)))}function qg(){var t=q.H;return q.H=Is,t===null?Is:t}function Hg(){var t=q.A;return q.A=YS,t}function hd(){bt=4,xi||(He&4194048)!==He&&Pn.current!==null||(Gl=!0),(wi&134217727)===0&&(ol&134217727)===0||it===null||Ei(it,He,In,!1)}function pd(t,r,a){var u=Ke;Ke|=2;var p=qg(),y=Hg();(it!==t||He!==r)&&(nu=null,Jl(t,r)),r=!1;var S=bt;e:do try{if(Xe!==0&&Le!==null){var k=Le,j=An;switch(Xe){case 8:dd(),S=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(r=!0);var F=Xe;if(Xe=0,An=null,Wl(t,k,j,F),a&&Gl){S=0;break e}break;default:F=Xe,Xe=0,An=null,Wl(t,k,j,F)}}XS(),S=bt;break}catch(G){Bg(t,G)}while(!0);return r&&t.shellSuspendCounter++,qr=tl=null,Ke=u,q.H=p,q.A=y,Le===null&&(it=null,He=0,ks()),S}function XS(){for(;Le!==null;)Fg(Le)}function ZS(t,r){var a=Ke;Ke|=2;var u=qg(),p=Hg();it!==t||He!==r?(nu=null,tu=Lt()+500,Jl(t,r)):Gl=zt(t,r);e:do try{if(Xe!==0&&Le!==null){r=Le;var y=An;t:switch(Xe){case 1:Xe=0,An=null,Wl(t,r,y,1);break;case 2:case 9:if(Wm(y)){Xe=0,An=null,Qg(r);break}r=function(){Xe!==2&&Xe!==9||it!==t||(Xe=7),br(t)},y.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Wm(y)?(Xe=0,An=null,Qg(r)):(Xe=0,An=null,Wl(t,r,y,7));break;case 5:var S=null;switch(Le.tag){case 26:S=Le.memoizedState;case 5:case 27:var k=Le;if(!S||C0(S)){Xe=0,An=null;var j=k.sibling;if(j!==null)Le=j;else{var F=k.return;F!==null?(Le=F,iu(F)):Le=null}break t}}Xe=0,An=null,Wl(t,r,y,5);break;case 6:Xe=0,An=null,Wl(t,r,y,6);break;case 8:dd(),bt=6;break e;default:throw Error(l(462))}}JS();break}catch(G){Bg(t,G)}while(!0);return qr=tl=null,q.H=u,q.A=p,Ke=a,Le!==null?0:(it=null,He=0,ks(),bt)}function JS(){for(;Le!==null&&!ii();)Fg(Le)}function Fg(t){var r=pg(t.alternate,t,Yr);t.memoizedProps=t.pendingProps,r===null?iu(t):Le=r}function Qg(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=sg(a,r,r.pendingProps,r.type,void 0,He);break;case 11:r=sg(a,r,r.pendingProps,r.type.render,r.ref,He);break;case 5:Of(r);default:yg(a,r),r=Le=Pm(r,Yr),r=pg(a,r,Yr)}t.memoizedProps=t.pendingProps,r===null?iu(t):Le=r}function Wl(t,r,a,u){qr=tl=null,Of(r),Il=null,so=0;var p=r.return;try{if(FS(t,p,r,a,He)){bt=1,Ks(t,qn(a,t.current)),Le=null;return}}catch(y){if(p!==null)throw Le=p,y;bt=1,Ks(t,qn(a,t.current)),Le=null;return}r.flags&32768?(Ye||u===1?t=!0:Gl||(He&536870912)!==0?t=!1:(xi=t=!0,(u===2||u===9||u===3||u===6)&&(u=Pn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Pg(r,t)):iu(r)}function iu(t){var r=t;do{if((r.flags&32768)!==0){Pg(r,xi);return}t=r.return;var a=PS(r.alternate,r,Yr);if(a!==null){Le=a;return}if(r=r.sibling,r!==null){Le=r;return}Le=r=t}while(r!==null);bt===0&&(bt=5)}function Pg(t,r){do{var a=IS(t.alternate,t);if(a!==null){a.flags&=32767,Le=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){Le=t;return}Le=t=a}while(t!==null);bt=6,Le=null}function Ig(t,r,a,u,p,y,S,k,j){t.cancelPendingCommit=null;do lu();while(Vt!==0);if((Ke&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(y=r.lanes|r.childLanes,y|=rf,Pi(t,a,y,S,k,j),t===it&&(Le=it=null,He=0),Xl=r,Ci=t,Zl=a,ud=y,cd=p,Mg=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,n2(Dn,function(){return Kg(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=q.T,q.T=null,p=X.p,X.p=2,S=Ke,Ke|=4;try{VS(t,r,a)}finally{Ke=S,X.p=p,q.T=u}}Vt=1,Vg(),$g(),Yg()}}function Vg(){if(Vt===1){Vt=0;var t=Ci,r=Xl,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{Ag(r,t);var y=Td,S=Dm(t.containerInfo),k=y.focusedElem,j=y.selectionRange;if(S!==k&&k&&k.ownerDocument&&jm(k.ownerDocument.documentElement,k)){if(j!==null&&Jc(k)){var F=j.start,G=j.end;if(G===void 0&&(G=F),"selectionStart"in k)k.selectionStart=F,k.selectionEnd=Math.min(G,k.value.length);else{var Z=k.ownerDocument||document,Q=Z&&Z.defaultView||window;if(Q.getSelection){var P=Q.getSelection(),Ee=k.textContent.length,we=Math.min(j.start,Ee),et=j.end===void 0?we:Math.min(j.end,Ee);!P.extend&&we>et&&(S=et,et=we,we=S);var B=Nm(k,we),M=Nm(k,et);if(B&&M&&(P.rangeCount!==1||P.anchorNode!==B.node||P.anchorOffset!==B.offset||P.focusNode!==M.node||P.focusOffset!==M.offset)){var H=Z.createRange();H.setStart(B.node,B.offset),P.removeAllRanges(),we>et?(P.addRange(H),P.extend(M.node,M.offset)):(H.setEnd(M.node,M.offset),P.addRange(H))}}}}for(Z=[],P=k;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Z.length;k++){var K=Z[k];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}gu=!!kd,Td=kd=null}finally{Ke=p,X.p=u,q.T=a}}t.current=r,Vt=2}}function $g(){if(Vt===2){Vt=0;var t=Ci,r=Xl,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{Cg(t,r.alternate,r)}finally{Ke=p,X.p=u,q.T=a}}Vt=3}}function Yg(){if(Vt===4||Vt===3){Vt=0,Mt();var t=Ci,r=Xl,a=Zl,u=Mg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Vt=5:(Vt=0,Xl=Ci=null,Gg(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Si=null),ve(a),r=r.stateNode,W&&typeof W.onCommitFiberRoot=="function")try{W.onCommitFiberRoot(Y,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=q.T,p=X.p,X.p=2,q.T=null;try{for(var y=t.onRecoverableError,S=0;S<u.length;S++){var k=u[S];y(k.value,{componentStack:k.stack})}}finally{q.T=r,X.p=p}}(Zl&3)!==0&&lu(),br(t),p=t.pendingLanes,(a&4194090)!==0&&(p&42)!==0?t===fd?bo++:(bo=0,fd=t):bo=0,vo(0)}}function Gg(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Za(r)))}function lu(t){return Vg(),$g(),Yg(),Kg()}function Kg(){if(Vt!==5)return!1;var t=Ci,r=ud;ud=0;var a=ve(Zl),u=q.T,p=X.p;try{X.p=32>a?32:a,q.T=null,a=cd,cd=null;var y=Ci,S=Zl;if(Vt=0,Xl=Ci=null,Zl=0,(Ke&6)!==0)throw Error(l(331));var k=Ke;if(Ke|=4,jg(y.current),Og(y,y.current,S,a),Ke=k,vo(0,!1),W&&typeof W.onPostCommitFiberRoot=="function")try{W.onPostCommitFiberRoot(Y,y)}catch{}return!0}finally{X.p=p,q.T=u,Gg(t,r)}}function Xg(t,r,a){r=qn(a,r),r=Pf(t.stateNode,r,2),t=hi(t,r,2),t!==null&&(Mn(t,2),br(t))}function tt(t,r,a){if(t.tag===3)Xg(t,t,a);else for(;r!==null;){if(r.tag===3){Xg(r,t,a);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Si===null||!Si.has(u))){t=qn(a,t),a=eg(2),u=hi(r,a,2),u!==null&&(tg(a,u,r,t),Mn(u,2),br(u));break}}r=r.return}}function md(t,r,a){var u=t.pingCache;if(u===null){u=t.pingCache=new GS;var p=new Set;u.set(r,p)}else p=u.get(r),p===void 0&&(p=new Set,u.set(r,p));p.has(a)||(ld=!0,p.add(a),t=WS.bind(null,t,r,a),r.then(t,t))}function WS(t,r,a){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,it===t&&(He&a)===a&&(bt===4||bt===3&&(He&62914560)===He&&300>Lt()-sd?(Ke&2)===0&&Jl(t,0):ad|=a,Kl===He&&(Kl=0)),br(t)}function Zg(t,r){r===0&&(r=jr()),t=Ml(t,r),t!==null&&(Mn(t,r),br(t))}function e2(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),Zg(t,a)}function t2(t,r){var a=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(l(314))}u!==null&&u.delete(r),Zg(t,a)}function n2(t,r){return Jn(t,r)}var au=null,ea=null,yd=!1,ou=!1,gd=!1,sl=0;function br(t){t!==ea&&t.next===null&&(ea===null?au=ea=t:ea=ea.next=t),ou=!0,yd||(yd=!0,i2())}function vo(t,r){if(!gd&&ou){gd=!0;do for(var a=!1,u=au;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var y=0;else{var S=u.suspendedLanes,k=u.pingedLanes;y=(1<<31-ge(42|t)+1)-1,y&=p&~(S&~k),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(a=!0,t0(u,y))}else y=He,y=ft(u,u===it?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||zt(u,y)||(a=!0,t0(u,y));u=u.next}while(a);gd=!1}}function r2(){Jg()}function Jg(){ou=yd=!1;var t=0;sl!==0&&(d2()&&(t=sl),sl=0);for(var r=Lt(),a=null,u=au;u!==null;){var p=u.next,y=Wg(u,r);y===0?(u.next=null,a===null?au=p:a.next=p,p===null&&(ea=a)):(a=u,(t!==0||(y&3)!==0)&&(ou=!0)),u=p}vo(t)}function Wg(t,r){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var S=31-ge(y),k=1<<S,j=p[S];j===-1?((k&a)===0||(k&u)!==0)&&(p[S]=Ut(k,r)):j<=r&&(t.expiredLanes|=k),y&=~k}if(r=it,a=He,a=ft(t,t===r?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,a===0||t===r&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&fn(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||zt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(u!==null&&fn(u),ve(a)){case 2:case 8:a=Ge;break;case 32:a=Dn;break;case 268435456:a=fr;break;default:a=Dn}return u=e0.bind(null,t),a=Jn(a,u),t.callbackPriority=r,t.callbackNode=a,r}return u!==null&&u!==null&&fn(u),t.callbackPriority=2,t.callbackNode=null,2}function e0(t,r){if(Vt!==0&&Vt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(lu()&&t.callbackNode!==a)return null;var u=He;return u=ft(t,t===it?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(zg(t,u,r),Wg(t,Lt()),t.callbackNode!=null&&t.callbackNode===a?e0.bind(null,t):null)}function t0(t,r){if(lu())return null;zg(t,r,!0)}function i2(){p2(function(){(Ke&6)!==0?Jn(xn,r2):Jg()})}function bd(){return sl===0&&(sl=ai()),sl}function n0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:bs(""+t)}function r0(t,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,t.id&&a.setAttribute("form",t.id),r.parentNode.insertBefore(a,r),t=new FormData(t),a.parentNode.removeChild(a),t}function l2(t,r,a,u,p){if(r==="submit"&&a&&a.stateNode===p){var y=n0((p[he]||null).action),S=u.submitter;S&&(r=(r=S[he]||null)?n0(r.formAction):S.getAttribute("formAction"),r!==null&&(y=r,S=null));var k=new Ss("action","action",null,u,p);t.push({event:k,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(sl!==0){var j=S?r0(p,S):new FormData(p);Bf(a,{pending:!0,data:j,method:p.method,action:y},null,j)}}else typeof y=="function"&&(k.preventDefault(),j=S?r0(p,S):new FormData(p),Bf(a,{pending:!0,data:j,method:p.method,action:y},y,j))},currentTarget:p}]})}}for(var vd=0;vd<nf.length;vd++){var xd=nf[vd],a2=xd.toLowerCase(),o2=xd[0].toUpperCase()+xd.slice(1);er(a2,"on"+o2)}er(zm,"onAnimationEnd"),er(Um,"onAnimationIteration"),er(Bm,"onAnimationStart"),er("dblclick","onDoubleClick"),er("focusin","onFocus"),er("focusout","onBlur"),er(ES,"onTransitionRun"),er(kS,"onTransitionStart"),er(TS,"onTransitionCancel"),er(qm,"onTransitionEnd"),Dr("onMouseEnter",["mouseout","mouseover"]),Dr("onMouseLeave",["mouseout","mouseover"]),Dr("onPointerEnter",["pointerout","pointerover"]),Dr("onPointerLeave",["pointerout","pointerover"]),hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="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(" "),s2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xo));function i0(t,r){r=(r&4)!==0;for(var a=0;a<t.length;a++){var u=t[a],p=u.event;u=u.listeners;e:{var y=void 0;if(r)for(var S=u.length-1;0<=S;S--){var k=u[S],j=k.instance,F=k.currentTarget;if(k=k.listener,j!==y&&p.isPropagationStopped())break e;y=k,p.currentTarget=F;try{y(p)}catch(G){Gs(G)}p.currentTarget=null,y=j}else for(S=0;S<u.length;S++){if(k=u[S],j=k.instance,F=k.currentTarget,k=k.listener,j!==y&&p.isPropagationStopped())break e;y=k,p.currentTarget=F;try{y(p)}catch(G){Gs(G)}p.currentTarget=null,y=j}}}}function ze(t,r){var a=r[dt];a===void 0&&(a=r[dt]=new Set);var u=t+"__bubble";a.has(u)||(l0(r,t,2,!1),a.add(u))}function wd(t,r,a){var u=0;r&&(u|=4),l0(a,t,u,r)}var su="_reactListening"+Math.random().toString(36).slice(2);function Sd(t){if(!t[su]){t[su]=!0,za.forEach(function(a){a!=="selectionchange"&&(s2.has(a)||wd(a,!1,t),wd(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[su]||(r[su]=!0,wd("selectionchange",!1,r))}}function l0(t,r,a,u){switch(O0(r)){case 2:var p=L2;break;case 8:p=z2;break;default:p=zd}a=p.bind(null,r,a,t),p=void 0,!Pc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(r,a,{capture:!0,passive:p}):t.addEventListener(r,a,!0):p!==void 0?t.addEventListener(r,a,{passive:p}):t.addEventListener(r,a,!1)}function Cd(t,r,a,u,p){var y=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var k=u.stateNode.containerInfo;if(k===p)break;if(S===4)for(S=u.return;S!==null;){var j=S.tag;if((j===3||j===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;k!==null;){if(S=Ve(k),S===null)return;if(j=S.tag,j===5||j===6||j===26||j===27){u=y=S;continue e}k=k.parentNode}}u=u.return}dm(function(){var F=y,G=Fc(a),Z=[];e:{var Q=Hm.get(t);if(Q!==void 0){var P=Ss,Ee=t;switch(t){case"keypress":if(xs(a)===0)break e;case"keydown":case"keyup":P=nS;break;case"focusin":Ee="focus",P=Yc;break;case"focusout":Ee="blur",P=Yc;break;case"beforeblur":case"afterblur":P=Yc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=lS;break;case zm:case Um:case Bm:P=Yw;break;case qm:P=oS;break;case"scroll":case"scrollend":P=Qw;break;case"wheel":P=uS;break;case"copy":case"cut":case"paste":P=Kw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=gm;break;case"toggle":case"beforetoggle":P=fS}var we=(r&4)!==0,et=!we&&(t==="scroll"||t==="scrollend"),B=we?Q!==null?Q+"Capture":null:Q;we=[];for(var M=F,H;M!==null;){var K=M;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||B===null||(K=Ba(M,B),K!=null&&we.push(wo(M,K,H))),et)break;M=M.return}0<we.length&&(Q=new P(Q,Ee,null,a,G),Z.push({event:Q,listeners:we}))}}if((r&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",Q&&a!==Hc&&(Ee=a.relatedTarget||a.fromElement)&&(Ve(Ee)||Ee[Se]))break e;if((P||Q)&&(Q=G.window===G?G:(Q=G.ownerDocument)?Q.defaultView||Q.parentWindow:window,P?(Ee=a.relatedTarget||a.toElement,P=F,Ee=Ee?Ve(Ee):null,Ee!==null&&(et=s(Ee),we=Ee.tag,Ee!==et||we!==5&&we!==27&&we!==6)&&(Ee=null)):(P=null,Ee=F),P!==Ee)){if(we=mm,K="onMouseLeave",B="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(we=gm,K="onPointerLeave",B="onPointerEnter",M="pointer"),et=P==null?Q:Vi(P),H=Ee==null?Q:Vi(Ee),Q=new we(K,M+"leave",P,a,G),Q.target=et,Q.relatedTarget=H,K=null,Ve(G)===F&&(we=new we(B,M+"enter",Ee,a,G),we.target=H,we.relatedTarget=et,K=we),et=K,P&&Ee)t:{for(we=P,B=Ee,M=0,H=we;H;H=ta(H))M++;for(H=0,K=B;K;K=ta(K))H++;for(;0<M-H;)we=ta(we),M--;for(;0<H-M;)B=ta(B),H--;for(;M--;){if(we===B||B!==null&&we===B.alternate)break t;we=ta(we),B=ta(B)}we=null}else we=null;P!==null&&a0(Z,Q,P,we,!1),Ee!==null&&et!==null&&a0(Z,et,Ee,we,!0)}}e:{if(Q=F?Vi(F):window,P=Q.nodeName&&Q.nodeName.toLowerCase(),P==="select"||P==="input"&&Q.type==="file")var de=km;else if(Cm(Q))if(Tm)de=wS;else{de=vS;var je=bS}else P=Q.nodeName,!P||P.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&qc(F.elementType)&&(de=km):de=xS;if(de&&(de=de(t,F))){Em(Z,de,a,G);break e}je&&je(t,Q,F),t==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&Bc(Q,"number",Q.value)}switch(je=F?Vi(F):window,t){case"focusin":(Cm(je)||je.contentEditable==="true")&&(Nl=je,Wc=F,$a=null);break;case"focusout":$a=Wc=Nl=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,Mm(Z,a,G);break;case"selectionchange":if(CS)break;case"keydown":case"keyup":Mm(Z,a,G)}var be;if(Kc)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Rl?wm(t,a)&&(Ce="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(bm&&a.locale!=="ko"&&(Rl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Rl&&(be=hm()):(ui=G,Ic="value"in ui?ui.value:ui.textContent,Rl=!0)),je=uu(F,Ce),0<je.length&&(Ce=new ym(Ce,t,null,a,G),Z.push({event:Ce,listeners:je}),be?Ce.data=be:(be=Sm(a),be!==null&&(Ce.data=be)))),(be=hS?pS(t,a):mS(t,a))&&(Ce=uu(F,"onBeforeInput"),0<Ce.length&&(je=new ym("onBeforeInput","beforeinput",null,a,G),Z.push({event:je,listeners:Ce}),je.data=be)),l2(Z,t,F,a,G)}i0(Z,r)})}function wo(t,r,a){return{instance:t,listener:r,currentTarget:a}}function uu(t,r){for(var a=r+"Capture",u=[];t!==null;){var p=t,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Ba(t,a),p!=null&&u.unshift(wo(t,p,y)),p=Ba(t,r),p!=null&&u.push(wo(t,p,y))),t.tag===3)return u;t=t.return}return[]}function ta(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function a0(t,r,a,u,p){for(var y=r._reactName,S=[];a!==null&&a!==u;){var k=a,j=k.alternate,F=k.stateNode;if(k=k.tag,j!==null&&j===u)break;k!==5&&k!==26&&k!==27||F===null||(j=F,p?(F=Ba(a,y),F!=null&&S.unshift(wo(a,F,j))):p||(F=Ba(a,y),F!=null&&S.push(wo(a,F,j)))),a=a.return}S.length!==0&&t.push({event:r,listeners:S})}var u2=/\r\n?/g,c2=/\u0000|\uFFFD/g;function o0(t){return(typeof t=="string"?t:""+t).replace(u2,`
49
+ `).replace(c2,"")}function s0(t,r){return r=o0(r),o0(t)===r}function cu(){}function We(t,r,a,u,p,y){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Al(t,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Al(t,""+u);break;case"className":si(t,"class",u);break;case"tabIndex":si(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":si(t,a,u);break;case"style":cm(t,u,y);break;case"data":if(r!=="object"){si(t,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||a!=="href")){t.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=bs(""+u),t.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(a,"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 y=="function"&&(a==="formAction"?(r!=="input"&&We(t,r,"name",p.name,p,null),We(t,r,"formEncType",p.formEncType,p,null),We(t,r,"formMethod",p.formMethod,p,null),We(t,r,"formTarget",p.formTarget,p,null)):(We(t,r,"encType",p.encType,p,null),We(t,r,"method",p.method,p,null),We(t,r,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=bs(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=cu);break;case"onScroll":u!=null&&ze("scroll",t);break;case"onScrollEnd":u!=null&&ze("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}a=bs(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,""+u):t.removeAttribute(a);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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":u===!0?t.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,u):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(a,u):t.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(a):t.setAttribute(a,u);break;case"popover":ze("beforetoggle",t),ze("toggle",t),El(t,"popover",u);break;case"xlinkActuate":Mr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Mr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Mr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Mr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Mr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Mr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Mr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Mr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Mr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":El(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Hw.get(a)||a,El(t,a,u))}}function Ed(t,r,a,u,p,y){switch(a){case"style":cm(t,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"children":typeof u=="string"?Al(t,u):(typeof u=="number"||typeof u=="bigint")&&Al(t,""+u);break;case"onScroll":u!=null&&ze("scroll",t);break;case"onScrollEnd":u!=null&&ze("scrollend",t);break;case"onClick":u!=null&&(t.onclick=cu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ua.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),y=t[he]||null,y=y!=null?y[a]:null,typeof y=="function"&&t.removeEventListener(r,y,p),typeof u=="function")){typeof y!="function"&&y!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(r,u,p);break e}a in t?t[a]=u:u===!0?t.setAttribute(a,""):El(t,a,u)}}}function $t(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",t),ze("load",t);var u=!1,p=!1,y;for(y in a)if(a.hasOwnProperty(y)){var S=a[y];if(S!=null)switch(y){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:We(t,r,y,S,a,null)}}p&&We(t,r,"srcSet",a.srcSet,a,null),u&&We(t,r,"src",a.src,a,null);return;case"input":ze("invalid",t);var k=y=S=p=null,j=null,F=null;for(u in a)if(a.hasOwnProperty(u)){var G=a[u];if(G!=null)switch(u){case"name":p=G;break;case"type":S=G;break;case"checked":j=G;break;case"defaultChecked":F=G;break;case"value":y=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,r));break;default:We(t,r,u,G,a,null)}}am(t,y,k,j,F,S,p,!1),ys(t);return;case"select":ze("invalid",t),u=S=y=null;for(p in a)if(a.hasOwnProperty(p)&&(k=a[p],k!=null))switch(p){case"value":y=k;break;case"defaultValue":S=k;break;case"multiple":u=k;default:We(t,r,p,k,a,null)}r=y,a=S,t.multiple=!!u,r!=null?Tl(t,!!u,r,!1):a!=null&&Tl(t,!!u,a,!0);return;case"textarea":ze("invalid",t),y=p=u=null;for(S in a)if(a.hasOwnProperty(S)&&(k=a[S],k!=null))switch(S){case"value":u=k;break;case"defaultValue":p=k;break;case"children":y=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(91));break;default:We(t,r,S,k,a,null)}sm(t,u,p,y),ys(t);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(u=a[j],u!=null))switch(j){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:We(t,r,j,u,a,null)}return;case"dialog":ze("beforetoggle",t),ze("toggle",t),ze("cancel",t),ze("close",t);break;case"iframe":case"object":ze("load",t);break;case"video":case"audio":for(u=0;u<xo.length;u++)ze(xo[u],t);break;case"image":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"embed":case"source":case"link":ze("error",t),ze("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in a)if(a.hasOwnProperty(F)&&(u=a[F],u!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:We(t,r,F,u,a,null)}return;default:if(qc(r)){for(G in a)a.hasOwnProperty(G)&&(u=a[G],u!==void 0&&Ed(t,r,G,u,a,void 0));return}}for(k in a)a.hasOwnProperty(k)&&(u=a[k],u!=null&&We(t,r,k,u,a,null))}function f2(t,r,a,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,S=null,k=null,j=null,F=null,G=null;for(P in a){var Z=a[P];if(a.hasOwnProperty(P)&&Z!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=Z;default:u.hasOwnProperty(P)||We(t,r,P,null,u,Z)}}for(var Q in u){var P=u[Q];if(Z=a[Q],u.hasOwnProperty(Q)&&(P!=null||Z!=null))switch(Q){case"type":y=P;break;case"name":p=P;break;case"checked":F=P;break;case"defaultChecked":G=P;break;case"value":S=P;break;case"defaultValue":k=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,r));break;default:P!==Z&&We(t,r,Q,P,u,Z)}}Uc(t,S,k,j,F,G,y,p);return;case"select":P=S=k=Q=null;for(y in a)if(j=a[y],a.hasOwnProperty(y)&&j!=null)switch(y){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(y)||We(t,r,y,null,u,j)}for(p in u)if(y=u[p],j=a[p],u.hasOwnProperty(p)&&(y!=null||j!=null))switch(p){case"value":Q=y;break;case"defaultValue":k=y;break;case"multiple":S=y;default:y!==j&&We(t,r,p,y,u,j)}r=k,a=S,u=P,Q!=null?Tl(t,!!a,Q,!1):!!u!=!!a&&(r!=null?Tl(t,!!a,r,!0):Tl(t,!!a,a?[]:"",!1));return;case"textarea":P=Q=null;for(k in a)if(p=a[k],a.hasOwnProperty(k)&&p!=null&&!u.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:We(t,r,k,null,u,p)}for(S in u)if(p=u[S],y=a[S],u.hasOwnProperty(S)&&(p!=null||y!=null))switch(S){case"value":Q=p;break;case"defaultValue":P=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(l(91));break;default:p!==y&&We(t,r,S,p,u,y)}om(t,Q,P);return;case"option":for(var Ee in a)if(Q=a[Ee],a.hasOwnProperty(Ee)&&Q!=null&&!u.hasOwnProperty(Ee))switch(Ee){case"selected":t.selected=!1;break;default:We(t,r,Ee,null,u,Q)}for(j in u)if(Q=u[j],P=a[j],u.hasOwnProperty(j)&&Q!==P&&(Q!=null||P!=null))switch(j){case"selected":t.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:We(t,r,j,Q,u,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)Q=a[we],a.hasOwnProperty(we)&&Q!=null&&!u.hasOwnProperty(we)&&We(t,r,we,null,u,Q);for(F in u)if(Q=u[F],P=a[F],u.hasOwnProperty(F)&&Q!==P&&(Q!=null||P!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,r));break;default:We(t,r,F,Q,u,P)}return;default:if(qc(r)){for(var et in a)Q=a[et],a.hasOwnProperty(et)&&Q!==void 0&&!u.hasOwnProperty(et)&&Ed(t,r,et,void 0,u,Q);for(G in u)Q=u[G],P=a[G],!u.hasOwnProperty(G)||Q===P||Q===void 0&&P===void 0||Ed(t,r,G,Q,u,P);return}}for(var B in a)Q=a[B],a.hasOwnProperty(B)&&Q!=null&&!u.hasOwnProperty(B)&&We(t,r,B,null,u,Q);for(Z in u)Q=u[Z],P=a[Z],!u.hasOwnProperty(Z)||Q===P||Q==null&&P==null||We(t,r,Z,Q,u,P)}var kd=null,Td=null;function fu(t){return t.nodeType===9?t:t.ownerDocument}function u0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function c0(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Ad(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var _d=null;function d2(){var t=window.event;return t&&t.type==="popstate"?t===_d?!1:(_d=t,!0):(_d=null,!1)}var f0=typeof setTimeout=="function"?setTimeout:void 0,h2=typeof clearTimeout=="function"?clearTimeout:void 0,d0=typeof Promise=="function"?Promise:void 0,p2=typeof queueMicrotask=="function"?queueMicrotask:typeof d0<"u"?function(t){return d0.resolve(null).then(t).catch(m2)}:f0;function m2(t){setTimeout(function(){throw t})}function ki(t){return t==="head"}function h0(t,r){var a=r,u=0,p=0;do{var y=a.nextSibling;if(t.removeChild(a),y&&y.nodeType===8)if(a=y.data,a==="/$"){if(0<u&&8>u){a=u;var S=t.ownerDocument;if(a&1&&So(S.documentElement),a&2&&So(S.body),a&4)for(a=S.head,So(a),S=a.firstChild;S;){var k=S.nextSibling,j=S.nodeName;S[St]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&S.rel.toLowerCase()==="stylesheet"||a.removeChild(S),S=k}}if(p===0){t.removeChild(y),Ro(r);return}p--}else a==="$"||a==="$?"||a==="$!"?p++:u=a.charCodeAt(0)-48;else u=0;a=y}while(a);Ro(r)}function Od(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Od(a),Zt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function y2(t,r,a,u){for(;t.nodeType===1;){var p=a;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[St])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(y=t.getAttribute("rel"),y==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(y!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=nr(t.nextSibling),t===null)break}return null}function g2(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=nr(t.nextSibling),t===null))return null;return t}function Rd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function b2(t,r){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")r();else{var u=function(){r(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function nr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var Nd=null;function p0(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return t;r--}else a==="/$"&&r++}t=t.previousSibling}return null}function m0(t,r,a){switch(r=fu(a),t){case"html":if(t=r.documentElement,!t)throw Error(l(452));return t;case"head":if(t=r.head,!t)throw Error(l(453));return t;case"body":if(t=r.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function So(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Zt(t)}var Vn=new Map,y0=new Set;function du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Gr=X.d;X.d={f:v2,r:x2,D:w2,C:S2,L:C2,m:E2,X:T2,S:k2,M:A2};function v2(){var t=Gr.f(),r=ru();return t||r}function x2(t){var r=Sn(t);r!==null&&r.tag===5&&r.type==="form"?zy(r):Gr.r(t)}var na=typeof document>"u"?null:document;function g0(t,r,a){var u=na;if(u&&typeof r=="string"&&r){var p=Bn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),y0.has(p)||(y0.add(p),t={rel:t,crossOrigin:a,href:r},u.querySelector(p)===null&&(r=u.createElement("link"),$t(r,"link",t),Ct(r),u.head.appendChild(r)))}}function w2(t){Gr.D(t),g0("dns-prefetch",t,null)}function S2(t,r){Gr.C(t,r),g0("preconnect",t,r)}function C2(t,r,a){Gr.L(t,r,a);var u=na;if(u&&t&&r){var p='link[rel="preload"][as="'+Bn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+Bn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+Bn(a.imageSizes)+'"]')):p+='[href="'+Bn(t)+'"]';var y=p;switch(r){case"style":y=ra(t);break;case"script":y=ia(t)}Vn.has(y)||(t=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Vn.set(y,t),u.querySelector(p)!==null||r==="style"&&u.querySelector(Co(y))||r==="script"&&u.querySelector(Eo(y))||(r=u.createElement("link"),$t(r,"link",t),Ct(r),u.head.appendChild(r)))}}function E2(t,r){Gr.m(t,r);var a=na;if(a&&t){var u=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Bn(u)+'"][href="'+Bn(t)+'"]',y=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ia(t)}if(!Vn.has(y)&&(t=m({rel:"modulepreload",href:t},r),Vn.set(y,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Eo(y)))return}u=a.createElement("link"),$t(u,"link",t),Ct(u),a.head.appendChild(u)}}}function k2(t,r,a){Gr.S(t,r,a);var u=na;if(u&&t){var p=oi(u).hoistableStyles,y=ra(t);r=r||"default";var S=p.get(y);if(!S){var k={loading:0,preload:null};if(S=u.querySelector(Co(y)))k.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Vn.get(y))&&jd(t,a);var j=S=u.createElement("link");Ct(j),$t(j,"link",t),j._p=new Promise(function(F,G){j.onload=F,j.onerror=G}),j.addEventListener("load",function(){k.loading|=1}),j.addEventListener("error",function(){k.loading|=2}),k.loading|=4,hu(S,r,u)}S={type:"stylesheet",instance:S,count:1,state:k},p.set(y,S)}}}function T2(t,r){Gr.X(t,r);var a=na;if(a&&t){var u=oi(a).hoistableScripts,p=ia(t),y=u.get(p);y||(y=a.querySelector(Eo(p)),y||(t=m({src:t,async:!0},r),(r=Vn.get(p))&&Dd(t,r),y=a.createElement("script"),Ct(y),$t(y,"link",t),a.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function A2(t,r){Gr.M(t,r);var a=na;if(a&&t){var u=oi(a).hoistableScripts,p=ia(t),y=u.get(p);y||(y=a.querySelector(Eo(p)),y||(t=m({src:t,async:!0,type:"module"},r),(r=Vn.get(p))&&Dd(t,r),y=a.createElement("script"),Ct(y),$t(y,"link",t),a.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function b0(t,r,a,u){var p=(p=ce.current)?du(p):null;if(!p)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=ra(a.href),a=oi(p).hoistableStyles,u=a.get(r),u||(u={type:"style",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ra(a.href);var y=oi(p).hoistableStyles,S=y.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,S),(y=p.querySelector(Co(t)))&&!y._p&&(S.instance=y,S.state.loading=5),Vn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Vn.set(t,a),y||_2(p,t,a,S.state))),r&&u===null)throw Error(l(528,""));return S}if(r&&u!==null)throw Error(l(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ia(a),a=oi(p).hoistableScripts,u=a.get(r),u||(u={type:"script",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function ra(t){return'href="'+Bn(t)+'"'}function Co(t){return'link[rel="stylesheet"]['+t+"]"}function v0(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function _2(t,r,a,u){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=t.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),$t(r,"link",a),Ct(r),t.head.appendChild(r))}function ia(t){return'[src="'+Bn(t)+'"]'}function Eo(t){return"script[async]"+t}function x0(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var u=t.querySelector('style[data-href~="'+Bn(a.href)+'"]');if(u)return r.instance=u,Ct(u),u;var p=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Ct(u),$t(u,"style",p),hu(u,a.precedence,t),r.instance=u;case"stylesheet":p=ra(a.href);var y=t.querySelector(Co(p));if(y)return r.state.loading|=4,r.instance=y,Ct(y),y;u=v0(a),(p=Vn.get(p))&&jd(u,p),y=(t.ownerDocument||t).createElement("link"),Ct(y);var S=y;return S._p=new Promise(function(k,j){S.onload=k,S.onerror=j}),$t(y,"link",u),r.state.loading|=4,hu(y,a.precedence,t),r.instance=y;case"script":return y=ia(a.src),(p=t.querySelector(Eo(y)))?(r.instance=p,Ct(p),p):(u=a,(p=Vn.get(y))&&(u=m({},a),Dd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Ct(p),$t(p,"link",u),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,hu(u,a.precedence,t));return r.instance}function hu(t,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,y=p,S=0;S<u.length;S++){var k=u[S];if(k.dataset.precedence===r)y=k;else if(y!==p)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function jd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Dd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var pu=null;function w0(t,r,a){if(pu===null){var u=new Map,p=pu=new Map;p.set(a,u)}else p=pu,u=p.get(a),u||(u=new Map,p.set(a,u));if(u.has(t))return u;for(u.set(t,null),a=a.getElementsByTagName(t),p=0;p<a.length;p++){var y=a[p];if(!(y[St]||y[le]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var S=y.getAttribute(r)||"";S=t+S;var k=u.get(S);k?k.push(y):u.set(S,[y])}}return u}function S0(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function O2(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function C0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var ko=null;function R2(){}function N2(t,r,a){if(ko===null)throw Error(l(475));var u=ko;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=ra(a.href),y=t.querySelector(Co(p));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=mu.bind(u),t.then(u,u)),r.state.loading|=4,r.instance=y,Ct(y);return}y=t.ownerDocument||t,a=v0(a),(p=Vn.get(p))&&jd(a,p),y=y.createElement("link"),Ct(y);var S=y;S._p=new Promise(function(k,j){S.onload=k,S.onerror=j}),$t(y,"link",a),r.instance=y}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=mu.bind(u),t.addEventListener("load",r),t.addEventListener("error",r))}}function j2(){if(ko===null)throw Error(l(475));var t=ko;return t.stylesheets&&t.count===0&&Md(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Md(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(a)}}:null}function mu(){if(this.count--,this.count===0){if(this.stylesheets)Md(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yu=null;function Md(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yu=new Map,r.forEach(D2,t),yu=null,mu.call(t))}function D2(t,r){if(!(r.state.loading&4)){var a=yu.get(t);if(a)var u=a.get(null);else{a=new Map,yu.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var S=p[y];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(a.set(S.dataset.precedence,S),u=S)}u&&a.set(null,u)}p=r.instance,S=p.getAttribute("data-precedence"),y=a.get(S)||u,y===u&&a.set(null,p),a.set(S,p),this.count++,u=mu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),y?y.parentNode.insertBefore(p,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var To={$$typeof:R,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function M2(t,r,a,u,p,y,S,k){this.tag=1,this.containerInfo=t,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=dr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dr(0),this.hiddenUpdates=dr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function E0(t,r,a,u,p,y,S,k,j,F,G,Z){return t=new M2(t,r,a,S,k,j,F,Z),r=1,y===!0&&(r|=24),y=En(3,null,null,r),t.current=y,y.stateNode=t,r=mf(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:u,isDehydrated:a,cache:r},vf(y),t}function k0(t){return t?(t=Ll,t):Ll}function T0(t,r,a,u,p,y){p=k0(p),u.context===null?u.context=p:u.pendingContext=p,u=di(r),u.payload={element:a},y=y===void 0?null:y,y!==null&&(u.callback=y),a=hi(t,u,r),a!==null&&(On(a,t,r),to(a,t,r))}function A0(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function Ld(t,r){A0(t,r),(t=t.alternate)&&A0(t,r)}function _0(t){if(t.tag===13){var r=Ml(t,67108864);r!==null&&On(r,t,67108864),Ld(t,67108864)}}var gu=!0;function L2(t,r,a,u){var p=q.T;q.T=null;var y=X.p;try{X.p=2,zd(t,r,a,u)}finally{X.p=y,q.T=p}}function z2(t,r,a,u){var p=q.T;q.T=null;var y=X.p;try{X.p=8,zd(t,r,a,u)}finally{X.p=y,q.T=p}}function zd(t,r,a,u){if(gu){var p=Ud(u);if(p===null)Cd(t,r,u,bu,a),R0(t,u);else if(B2(p,t,r,a,u))u.stopPropagation();else if(R0(t,u),r&4&&-1<U2.indexOf(t)){for(;p!==null;){var y=Sn(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var S=qe(y.pendingLanes);if(S!==0){var k=y;for(k.pendingLanes|=2,k.entangledLanes|=2;S;){var j=1<<31-ge(S);k.entanglements[1]|=j,S&=~j}br(y),(Ke&6)===0&&(tu=Lt()+500,vo(0))}}break;case 13:k=Ml(y,2),k!==null&&On(k,y,2),ru(),Ld(y,2)}if(y=Ud(u),y===null&&Cd(t,r,u,bu,a),y===p)break;p=y}p!==null&&u.stopPropagation()}else Cd(t,r,u,null,a)}}function Ud(t){return t=Fc(t),Bd(t)}var bu=null;function Bd(t){if(bu=null,t=Ve(t),t!==null){var r=s(t);if(r===null)t=null;else{var a=r.tag;if(a===13){if(t=c(r),t!==null)return t;t=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return bu=t,null}function O0(t){switch(t){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(Wn()){case xn:return 2;case Ge:return 8;case Dn:case Rr:return 32;case fr:return 268435456;default:return 32}default:return 32}}var qd=!1,Ti=null,Ai=null,_i=null,Ao=new Map,_o=new Map,Oi=[],U2="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 R0(t,r){switch(t){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":Ao.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(r.pointerId)}}function Oo(t,r,a,u,p,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[p]},r!==null&&(r=Sn(r),r!==null&&_0(r)),t):(t.eventSystemFlags|=u,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function B2(t,r,a,u,p){switch(r){case"focusin":return Ti=Oo(Ti,t,r,a,u,p),!0;case"dragenter":return Ai=Oo(Ai,t,r,a,u,p),!0;case"mouseover":return _i=Oo(_i,t,r,a,u,p),!0;case"pointerover":var y=p.pointerId;return Ao.set(y,Oo(Ao.get(y)||null,t,r,a,u,p)),!0;case"gotpointercapture":return y=p.pointerId,_o.set(y,Oo(_o.get(y)||null,t,r,a,u,p)),!0}return!1}function N0(t){var r=Ve(t.target);if(r!==null){var a=s(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){t.blockedOn=r,ln(t.priority,function(){if(a.tag===13){var u=_n();u=Kt(u);var p=Ml(a,u);p!==null&&On(p,a,u),Ld(a,u)}});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vu(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=Ud(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Hc=u,a.target.dispatchEvent(u),Hc=null}else return r=Sn(a),r!==null&&_0(r),t.blockedOn=a,!1;r.shift()}return!0}function j0(t,r,a){vu(t)&&a.delete(r)}function q2(){qd=!1,Ti!==null&&vu(Ti)&&(Ti=null),Ai!==null&&vu(Ai)&&(Ai=null),_i!==null&&vu(_i)&&(_i=null),Ao.forEach(j0),_o.forEach(j0)}function xu(t,r){t.blockedOn===r&&(t.blockedOn=null,qd||(qd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,q2)))}var wu=null;function D0(t){wu!==t&&(wu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wu===t&&(wu=null);for(var r=0;r<t.length;r+=3){var a=t[r],u=t[r+1],p=t[r+2];if(typeof u!="function"){if(Bd(u||a)===null)continue;break}var y=Sn(a);y!==null&&(t.splice(r,3),r-=3,Bf(y,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}function Ro(t){function r(j){return xu(j,t)}Ti!==null&&xu(Ti,t),Ai!==null&&xu(Ai,t),_i!==null&&xu(_i,t),Ao.forEach(r),_o.forEach(r);for(var a=0;a<Oi.length;a++){var u=Oi[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Oi.length&&(a=Oi[0],a.blockedOn===null);)N0(a),a.blockedOn===null&&Oi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],y=a[u+1],S=p[he]||null;if(typeof y=="function")S||D0(a);else if(S){var k=null;if(y&&y.hasAttribute("formAction")){if(p=y,S=y[he]||null)k=S.formAction;else if(Bd(p)!==null)continue}else k=S.action;typeof k=="function"?a[u+1]=k:(a.splice(u,3),u-=3),D0(a)}}}function Hd(t){this._internalRoot=t}Su.prototype.render=Hd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,u=_n();T0(a,u,t,r,null,null)},Su.prototype.unmount=Hd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;T0(t.current,2,null,t,null,null),ru(),r[Se]=null}};function Su(t){this._internalRoot=t}Su.prototype.unstable_scheduleHydration=function(t){if(t){var r=Me();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Oi.length&&r!==0&&r<Oi[a].priority;a++);Oi.splice(a,0,t),a===0&&N0(t)}};var M0=n.version;if(M0!=="19.1.0")throw Error(l(527,M0,"19.1.0"));X.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=d(r),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var H2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{Y=Cu.inject(H2),W=Cu}catch{}}return jo.createRoot=function(t,r){if(!o(t))throw Error(l(299));var a=!1,u="",p=Xy,y=Zy,S=Jy,k=null;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(k=r.unstable_transitionCallbacks)),r=E0(t,1,!1,null,null,a,u,p,y,S,k,null),t[Se]=r.current,Sd(t),new Hd(r)},jo.hydrateRoot=function(t,r,a){if(!o(t))throw Error(l(299));var u=!1,p="",y=Xy,S=Zy,k=Jy,j=null,F=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(y=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(F=a.formState)),r=E0(t,1,!0,r,a??null,u,p,y,S,k,j,F),r.context=k0(null),a=r.current,u=_n(),u=Kt(u),p=di(u),p.callback=null,hi(a,p,u),a=u,r.current.lanes=a,Mn(r,a),br(r),t[Se]=r.current,Sd(t),new Su(r)},jo.version="19.1.0",jo}var I0;function K2(){if(I0)return Pd.exports;I0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pd.exports=G2(),Pd.exports}var X2=K2();const Z2=Ca(X2);var Do={},V0;function J2(){if(V0)return Do;V0=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.parse=c,Do.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,s=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function c(x,v){const w=new s,T=x.length;if(T<2)return w;const _=(v==null?void 0:v.decode)||m;let A=0;do{const N=x.indexOf("=",A);if(N===-1)break;const R=x.indexOf(";",A),z=R===-1?T:R;if(N>z){A=x.lastIndexOf(";",N-1)+1;continue}const D=f(x,A,N),L=d(x,N,D),$=x.slice(D,L);if(w[$]===void 0){let ee=f(x,N+1,z),ie=d(x,z,ee);const U=_(x.slice(ee,ie));w[$]=U}A=z+1}while(A<T);return w}function f(x,v,w){do{const T=x.charCodeAt(v);if(T!==32&&T!==9)return v}while(++v<w);return w}function d(x,v,w){for(;v>w;){const T=x.charCodeAt(--v);if(T!==32&&T!==9)return v+1}return w}function h(x,v,w){const T=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const _=T(v);if(!n.test(_))throw new TypeError(`argument val is invalid: ${v}`);let A=x+"="+_;if(!w)return A;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);A+="; Max-Age="+w.maxAge}if(w.domain){if(!i.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);A+="; Domain="+w.domain}if(w.path){if(!l.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);A+="; Path="+w.path}if(w.expires){if(!g(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);A+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(A+="; HttpOnly"),w.secure&&(A+="; Secure"),w.partitioned&&(A+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"none":A+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return A}function m(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return o.call(x)==="[object Date]"}return Do}J2();var $0="popstate";function W2(e={}){function n(l,o){let{pathname:s,search:c,hash:f}=l.location;return kh("",{pathname:s,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(l,o){return typeof o=="string"?o:Go(o)}return tC(n,i,null,e)}function st(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function ir(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function eC(){return Math.random().toString(36).substring(2,10)}function Y0(e,n){return{usr:e.state,key:e.key,idx:n}}function kh(e,n,i=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ea(n):n,state:i,key:n&&n.key||l||eC()}}function Go({pathname:e="/",search:n="",hash:i=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Ea(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substring(i),e=e.substring(0,i));let l=e.indexOf("?");l>=0&&(n.search=e.substring(l),e=e.substring(0,l)),e&&(n.pathname=e)}return n}function tC(e,n,i,l={}){let{window:o=document.defaultView,v5Compat:s=!1}=l,c=o.history,f="POP",d=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}function g(){f="POP";let _=m(),A=_==null?null:_-h;h=_,d&&d({action:f,location:T.location,delta:A})}function x(_,A){f="PUSH";let N=kh(T.location,_,A);h=m()+1;let R=Y0(N,h),z=T.createHref(N);try{c.pushState(R,"",z)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;o.location.assign(z)}s&&d&&d({action:f,location:T.location,delta:1})}function v(_,A){f="REPLACE";let N=kh(T.location,_,A);h=m();let R=Y0(N,h),z=T.createHref(N);c.replaceState(R,"",z),s&&d&&d({action:f,location:T.location,delta:0})}function w(_){return nC(_)}let T={get action(){return f},get location(){return e(o,c)},listen(_){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener($0,g),d=_,()=>{o.removeEventListener($0,g),d=null}},createHref(_){return n(o,_)},createURL:w,encodeLocation(_){let A=w(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:v,go(_){return c.go(_)}};return T}function nC(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),st(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Go(e);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function Fb(e,n,i="/"){return rC(e,n,i,!1)}function rC(e,n,i,l){let o=typeof n=="string"?Ea(n):n,s=Jr(o.pathname||"/",i);if(s==null)return null;let c=Qb(e);iC(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=mC(s);f=hC(c[d],h,l)}return f}function Qb(e,n=[],i=[],l=""){let o=(s,c,f)=>{let d={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};d.relativePath.startsWith("/")&&(st(d.relativePath.startsWith(l),`Absolute route path "${d.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(l.length));let h=Zr([l,d.relativePath]),m=i.concat(d);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Qb(s.children,n,m,h)),!(s.path==null&&!s.index)&&n.push({path:h,score:fC(h,s.index),routesMeta:m})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,c);else for(let d of Pb(s.path))o(s,c,d)}),n}function Pb(e){let n=e.split("/");if(n.length===0)return[];let[i,...l]=n,o=i.endsWith("?"),s=i.replace(/\?$/,"");if(l.length===0)return o?[s,""]:[s];let c=Pb(l.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),o&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function iC(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:dC(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var lC=/^:[\w-]+$/,aC=3,oC=2,sC=1,uC=10,cC=-2,G0=e=>e==="*";function fC(e,n){let i=e.split("/"),l=i.length;return i.some(G0)&&(l+=cC),n&&(l+=oC),i.filter(o=>!G0(o)).reduce((o,s)=>o+(lC.test(s)?aC:s===""?sC:uC),l)}function dC(e,n){return e.length===n.length&&e.slice(0,-1).every((l,o)=>l===n[o])?e[e.length-1]-n[n.length-1]:0}function hC(e,n,i=!1){let{routesMeta:l}=e,o={},s="/",c=[];for(let f=0;f<l.length;++f){let d=l[f],h=f===l.length-1,m=s==="/"?n:n.slice(s.length)||"/",g=Vu({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),x=d.route;if(!g&&h&&i&&!l[l.length-1].route.index&&(g=Vu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Zr([s,g.pathname]),pathnameBase:vC(Zr([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=Zr([s,g.pathnameBase]))}return c}function Vu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=pC(e.path,e.caseSensitive,e.end),o=n.match(i);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:l.reduce((h,{paramName:m,isOptional:g},x)=>{if(m==="*"){let w=f[x]||"";c=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=f[x];return g&&!v?h[m]=void 0:h[m]=(v||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function pC(e,n=!1,i=!0){ir(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(l.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),l]}function mC(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ir(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Jr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,l=e.charAt(i);return l&&l!=="/"?null:e.slice(i)||"/"}function yC(e,n="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?Ea(e):e;return{pathname:i?i.startsWith("/")?i:gC(i,n):n,search:xC(l),hash:wC(o)}}function gC(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Yd(e,n,i,l){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bC(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function up(e){let n=bC(e);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function cp(e,n,i,l=!1){let o;typeof e=="string"?o=Ea(e):(o={...e},st(!o.pathname||!o.pathname.includes("?"),Yd("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),Yd("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),Yd("#","search","hash",o)));let s=e===""||o.pathname==="",c=s?"/":o.pathname,f;if(c==null)f=i;else{let g=n.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;o.pathname=x.join("/")}f=g>=0?n[g]:"/"}let d=yC(o,f),h=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&i.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var Zr=e=>e.join("/").replace(/\/\/+/g,"/"),vC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ib=["POST","PUT","PATCH","DELETE"];new Set(Ib);var CC=["GET",...Ib];new Set(CC);var ka=E.createContext(null);ka.displayName="DataRouter";var uc=E.createContext(null);uc.displayName="DataRouterState";var Vb=E.createContext({isTransitioning:!1});Vb.displayName="ViewTransition";var EC=E.createContext(new Map);EC.displayName="Fetchers";var kC=E.createContext(null);kC.displayName="Await";var sr=E.createContext(null);sr.displayName="Navigation";var es=E.createContext(null);es.displayName="Location";var Tr=E.createContext({outlet:null,matches:[],isDataRoute:!1});Tr.displayName="Route";var fp=E.createContext(null);fp.displayName="RouteError";function TC(e,{relative:n}={}){st(Ta(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=E.useContext(sr),{hash:o,pathname:s,search:c}=ts(e,{relative:n}),f=s;return i!=="/"&&(f=s==="/"?i:Zr([i,s])),l.createHref({pathname:f,search:c,hash:o})}function Ta(){return E.useContext(es)!=null}function un(){return st(Ta(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(es).location}var $b="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yb(e){E.useContext(sr).static||E.useLayoutEffect(e)}function qi(){let{isDataRoute:e}=E.useContext(Tr);return e?qC():AC()}function AC(){st(Ta(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(ka),{basename:n,navigator:i}=E.useContext(sr),{matches:l}=E.useContext(Tr),{pathname:o}=un(),s=JSON.stringify(up(l)),c=E.useRef(!1);return Yb(()=>{c.current=!0}),E.useCallback((d,h={})=>{if(ir(c.current,$b),!c.current)return;if(typeof d=="number"){i.go(d);return}let m=cp(d,JSON.parse(s),o,h.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Zr([n,m.pathname])),(h.replace?i.replace:i.push)(m,h.state,h)},[n,i,s,o,e])}E.createContext(null);function ts(e,{relative:n}={}){let{matches:i}=E.useContext(Tr),{pathname:l}=un(),o=JSON.stringify(up(i));return E.useMemo(()=>cp(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function _C(e,n){return Gb(e,n)}function Gb(e,n,i,l){var N;st(Ta(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:s}=E.useContext(sr),{matches:c}=E.useContext(Tr),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let R=g&&g.path||"";Kb(h,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
+
51
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let x=un(),v;if(n){let R=typeof n=="string"?Ea(n):n;st(m==="/"||((N=R.pathname)==null?void 0:N.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${R.pathname}" was given in the \`location\` prop.`),v=R}else v=x;let w=v.pathname||"/",T=w;if(m!=="/"){let R=m.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let _=!s&&i&&i.matches&&i.matches.length>0?i.matches:Fb(e,{pathname:T});ir(g||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ir(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=DC(_&&_.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Zr([m,o.encodeLocation?o.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:Zr([m,o.encodeLocation?o.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,i,l);return n&&A?E.createElement(es.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},A):A}function OC(){let e=BC(),n=SC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},s={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),i?E.createElement("pre",{style:o},i):null,c)}var RC=E.createElement(OC,null),NC=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?E.createElement(Tr.Provider,{value:this.props.routeContext},E.createElement(fp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jC({routeContext:e,match:n,children:i}){let l=E.useContext(ka);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Tr.Provider,{value:e},i)}function DC(e,n=[],i=null,l=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let o=e,s=i==null?void 0:i.errors;if(s!=null){let d=o.findIndex(h=>h.route.id&&(s==null?void 0:s[h.route.id])!==void 0);st(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,f=-1;if(i)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:m,errors:g}=i,x=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||x){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((d,h,m)=>{let g,x=!1,v=null,w=null;i&&(g=s&&h.route.id?s[h.route.id]:void 0,v=h.route.errorElement||RC,c&&(f<0&&m===0?(Kb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===m&&(x=!0,w=h.route.hydrateFallbackElement||null)));let T=n.concat(o.slice(0,m+1)),_=()=>{let A;return g?A=v:x?A=w:h.route.Component?A=E.createElement(h.route.Component,null):h.route.element?A=h.route.element:A=d,E.createElement(jC,{match:h,routeContext:{outlet:d,matches:T,isDataRoute:i!=null},children:A})};return i&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?E.createElement(NC,{location:i.location,revalidation:i.revalidation,component:v,error:g,children:_(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):_()},null)}function dp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function MC(e){let n=E.useContext(ka);return st(n,dp(e)),n}function LC(e){let n=E.useContext(uc);return st(n,dp(e)),n}function zC(e){let n=E.useContext(Tr);return st(n,dp(e)),n}function hp(e){let n=zC(e),i=n.matches[n.matches.length-1];return st(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function UC(){return hp("useRouteId")}function BC(){var l;let e=E.useContext(fp),n=LC("useRouteError"),i=hp("useRouteError");return e!==void 0?e:(l=n.errors)==null?void 0:l[i]}function qC(){let{router:e}=MC("useNavigate"),n=hp("useNavigate"),i=E.useRef(!1);return Yb(()=>{i.current=!0}),E.useCallback(async(o,s={})=>{ir(i.current,$b),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var K0={};function Kb(e,n,i){!n&&!K0[e]&&(K0[e]=!0,ir(!1,i))}E.memo(HC);function HC({routes:e,future:n,state:i}){return Gb(e,void 0,i,n)}function FC({to:e,replace:n,state:i,relative:l}){st(Ta(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(sr);ir(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=E.useContext(Tr),{pathname:c}=un(),f=qi(),d=cp(e,up(s),c,l==="path"),h=JSON.stringify(d);return E.useEffect(()=>{f(JSON.parse(h),{replace:n,state:i,relative:l})},[f,h,l,n,i]),null}function Th(e){st(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function QC({basename:e="/",children:n=null,location:i,navigationType:l="POP",navigator:o,static:s=!1}){st(!Ta(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:o,static:s,future:{}}),[c,o,s]);typeof i=="string"&&(i=Ea(i));let{pathname:d="/",search:h="",hash:m="",state:g=null,key:x="default"}=i,v=E.useMemo(()=>{let w=Jr(d,c);return w==null?null:{location:{pathname:w,search:h,hash:m,state:g,key:x},navigationType:l}},[c,d,h,m,g,x,l]);return ir(v!=null,`<Router basename="${c}"> is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:E.createElement(sr.Provider,{value:f},E.createElement(es.Provider,{children:n,value:v}))}function PC({children:e,location:n}){return _C(Ah(e),n)}function Ah(e,n=[]){let i=[];return E.Children.forEach(e,(l,o)=>{if(!E.isValidElement(l))return;let s=[...n,o];if(l.type===E.Fragment){i.push.apply(i,Ah(l.props.children,s));return}st(l.type===Th,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),st(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||s.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=Ah(l.props.children,s)),i.push(c)}),i}var ju="get",Du="application/x-www-form-urlencoded";function cc(e){return e!=null&&typeof e.tagName=="string"}function IC(e){return cc(e)&&e.tagName.toLowerCase()==="button"}function VC(e){return cc(e)&&e.tagName.toLowerCase()==="form"}function $C(e){return cc(e)&&e.tagName.toLowerCase()==="input"}function YC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GC(e,n){return e.button===0&&(!n||n==="_self")&&!YC(e)}var Eu=null;function KC(){if(Eu===null)try{new FormData(document.createElement("form"),0),Eu=!1}catch{Eu=!0}return Eu}var XC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gd(e){return e!=null&&!XC.has(e)?(ir(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):e}function ZC(e,n){let i,l,o,s,c;if(VC(e)){let f=e.getAttribute("action");l=f?Jr(f,n):null,i=e.getAttribute("method")||ju,o=Gd(e.getAttribute("enctype"))||Du,s=new FormData(e)}else if(IC(e)||$C(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(l=d?Jr(d,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||ju,o=Gd(e.getAttribute("formenctype"))||Gd(f.getAttribute("enctype"))||Du,s=new FormData(f,e),!KC()){let{name:h,type:m,value:g}=e;if(m==="image"){let x=h?`${h}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else h&&s.append(h,g)}}else{if(cc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=ju,l=null,o=Du,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:s,body:c}}function pp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function JC(e,n){if(e.id in n)return n[e.id];try{let i=await import(e.module);return n[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function WC(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function eE(e,n,i){let l=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await JC(s,i);return c.links?c.links():[]}return[]}));return iE(l.flat(1).filter(WC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function X0(e,n,i,l,o,s){let c=(d,h)=>i[h]?d.route.id!==i[h].route.id:!0,f=(d,h)=>{var m;return i[h].pathname!==d.pathname||((m=i[h].route.path)==null?void 0:m.endsWith("*"))&&i[h].params["*"]!==d.params["*"]};return s==="assets"?n.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?n.filter((d,h)=>{var g;let m=l.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let x=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=i[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function tE(e,n,{includeHydrateFallback:i}={}){return nE(e.map(l=>{let o=n.routes[l.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function nE(e){return[...new Set(e)]}function rE(e){let n={},i=Object.keys(e).sort();for(let l of i)n[l]=e[l];return n}function iE(e,n){let i=new Set;return new Set(n),e.reduce((l,o)=>{let s=JSON.stringify(rE(o));return i.has(s)||(i.add(s),l.push({key:s,link:o})),l},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lE=new Set([100,101,204,205]);function aE(e,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname="_root.data":n&&Jr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Xb(){let e=E.useContext(ka);return pp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oE(){let e=E.useContext(uc);return pp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mp=E.createContext(void 0);mp.displayName="FrameworkContext";function Zb(){let e=E.useContext(mp);return pp(e,"You must render this element inside a <HydratedRouter> element"),e}function sE(e,n){let i=E.useContext(mp),[l,o]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=n,x=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=A=>{A.forEach(N=>{c(N.isIntersecting)})},_=new IntersectionObserver(T,{threshold:.5});return x.current&&_.observe(x.current),()=>{_.disconnect()}}},[e]),E.useEffect(()=>{if(l){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[l]);let v=()=>{o(!0)},w=()=>{o(!1),c(!1)};return i?e!=="intent"?[s,x,{}]:[s,x,{onFocus:Mo(f,v),onBlur:Mo(d,w),onMouseEnter:Mo(h,v),onMouseLeave:Mo(m,w),onTouchStart:Mo(g,v)}]:[!1,x,{}]}function Mo(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function uE({page:e,...n}){let{router:i}=Xb(),l=E.useMemo(()=>Fb(i.routes,e,i.basename),[i.routes,e,i.basename]);return l?E.createElement(fE,{page:e,matches:l,...n}):null}function cE(e){let{manifest:n,routeModules:i}=Zb(),[l,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return eE(e,n,i).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,i]),l}function fE({page:e,matches:n,...i}){let l=un(),{manifest:o,routeModules:s}=Zb(),{basename:c}=Xb(),{loaderData:f,matches:d}=oE(),h=E.useMemo(()=>X0(e,n,d,o,l,"data"),[e,n,d,o,l]),m=E.useMemo(()=>X0(e,n,d,o,l,"assets"),[e,n,d,o,l]),g=E.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(n.forEach(A=>{var R;let N=o.routes[A.route.id];!N||!N.hasLoader||(!h.some(z=>z.route.id===A.route.id)&&A.route.id in f&&((R=s[A.route.id])!=null&&R.shouldRevalidate)||N.hasClientLoader?T=!0:w.add(A.route.id))}),w.size===0)return[];let _=aE(e,c);return T&&w.size>0&&_.searchParams.set("_routes",n.filter(A=>w.has(A.route.id)).map(A=>A.route.id).join(",")),[_.pathname+_.search]},[c,f,l,o,h,n,e,s]),x=E.useMemo(()=>tE(m,o),[m,o]),v=cE(m);return E.createElement(E.Fragment,null,g.map(w=>E.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),x.map(w=>E.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),v.map(({key:w,link:T})=>E.createElement("link",{key:w,...T})))}function dE(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var Jb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Jb&&(window.__reactRouterVersion="7.6.0")}catch{}function hE({basename:e,children:n,window:i}){let l=E.useRef();l.current==null&&(l.current=W2({window:i,v5Compat:!0}));let o=l.current,[s,c]=E.useState({action:o.action,location:o.location}),f=E.useCallback(d=>{E.startTransition(()=>c(d))},[c]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.createElement(QC,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var Wb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=E.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:o,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:m,viewTransition:g,...x},v){let{basename:w}=E.useContext(sr),T=typeof h=="string"&&Wb.test(h),_,A=!1;if(typeof h=="string"&&T&&(_=h,Jb))try{let ie=new URL(window.location.href),U=h.startsWith("//")?new URL(ie.protocol+h):new URL(h),ae=Jr(U.pathname,w);U.origin===ie.origin&&ae!=null?h=ae+U.search+U.hash:A=!0}catch{ir(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=TC(h,{relative:o}),[R,z,D]=sE(l,x),L=gE(h,{replace:c,state:f,target:d,preventScrollReset:m,relative:o,viewTransition:g});function $(ie){n&&n(ie),ie.defaultPrevented||L(ie)}let ee=E.createElement("a",{...x,...D,href:_||N,onClick:A||s?n:$,ref:dE(v,z),target:d,"data-discover":!T&&i==="render"?"true":void 0});return R&&!T?E.createElement(E.Fragment,null,ee,E.createElement(uE,{page:N})):ee});ev.displayName="Link";var pE=E.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:l="",end:o=!1,style:s,to:c,viewTransition:f,children:d,...h},m){let g=ts(c,{relative:h.relative}),x=un(),v=E.useContext(uc),{navigator:w,basename:T}=E.useContext(sr),_=v!=null&&SE(g)&&f===!0,A=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,N=x.pathname,R=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(N=N.toLowerCase(),R=R?R.toLowerCase():null,A=A.toLowerCase()),R&&T&&(R=Jr(R,T)||R);const z=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let D=N===A||!o&&N.startsWith(A)&&N.charAt(z)==="/",L=R!=null&&(R===A||!o&&R.startsWith(A)&&R.charAt(A.length)==="/"),$={isActive:D,isPending:L,isTransitioning:_},ee=D?n:void 0,ie;typeof l=="function"?ie=l($):ie=[l,D?"active":null,L?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s($):s;return E.createElement(ev,{...h,"aria-current":ee,className:ie,ref:m,style:U,to:c,viewTransition:f},typeof d=="function"?d($):d)});pE.displayName="NavLink";var mE=E.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:o,state:s,method:c=ju,action:f,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:g,...x},v)=>{let w=xE(),T=wE(f,{relative:h}),_=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&Wb.test(f),N=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let z=R.nativeEvent.submitter,D=(z==null?void 0:z.getAttribute("formmethod"))||c;w(z||R.currentTarget,{fetcherKey:n,method:D,navigate:i,replace:o,state:s,relative:h,preventScrollReset:m,viewTransition:g})};return E.createElement("form",{ref:v,method:_,action:T,onSubmit:l?d:N,...x,"data-discover":!A&&e==="render"?"true":void 0})});mE.displayName="Form";function yE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tv(e){let n=E.useContext(ka);return st(n,yE(e)),n}function gE(e,{target:n,replace:i,state:l,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=qi(),d=un(),h=ts(e,{relative:s});return E.useCallback(m=>{if(GC(m,n)){m.preventDefault();let g=i!==void 0?i:Go(d)===Go(h);f(e,{replace:g,state:l,preventScrollReset:o,relative:s,viewTransition:c})}},[d,f,h,i,l,n,e,o,s,c])}var bE=0,vE=()=>`__${String(++bE)}__`;function xE(){let{router:e}=tv("useSubmit"),{basename:n}=E.useContext(sr),i=UC();return E.useCallback(async(l,o={})=>{let{action:s,method:c,encType:f,formData:d,body:h}=ZC(l,n);if(o.navigate===!1){let m=o.fetcherKey||vE();await e.fetch(m,i,o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:h,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:h,formMethod:o.method||c,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,i])}function wE(e,{relative:n}={}){let{basename:i}=E.useContext(sr),l=E.useContext(Tr);st(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),s={...ts(e||".",{relative:n})},c=un();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(s.pathname=s.pathname==="/"?i:Zr([i,s.pathname])),Go(s)}function SE(e,n={}){let i=E.useContext(Vb);st(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=tv("useViewTransitionState"),o=ts(e,{relative:n.relative});if(!i.isTransitioning)return!1;let s=Jr(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=Jr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Vu(o.pathname,c)!=null||Vu(o.pathname,s)!=null}[...lE];var nv=Hb();const CE=Ca(nv);function _h(e,n){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},_h(e,n)}function Aa(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,_h(e,n)}var _a=function(){function e(){this.listeners=[]}var n=e.prototype;return n.subscribe=function(l){var o=this,s=l||function(){};return this.listeners.push(s),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(c){return c!==s}),o.onUnsubscribe()}},n.hasListeners=function(){return this.listeners.length>0},n.onSubscribe=function(){},n.onUnsubscribe=function(){},e}();function De(){return De=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)({}).hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e},De.apply(null,arguments)}var $u=typeof window>"u";function Yt(){}function EE(e,n){return typeof e=="function"?e(n):e}function Oh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yu(e){return Array.isArray(e)?e:[e]}function rv(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Mu(e,n,i){return ns(e)?typeof n=="function"?De({},i,{queryKey:e,queryFn:n}):De({},n,{queryKey:e}):e}function kE(e,n,i){return ns(e)?typeof n=="function"?De({},i,{mutationKey:e,mutationFn:n}):De({},n,{mutationKey:e}):typeof e=="function"?De({},n,{mutationFn:e}):De({},e)}function ji(e,n,i){return ns(e)?[De({},n,{queryKey:e}),i]:[e||{},n]}function TE(e,n){if(e===!0&&n===!0||e==null&&n==null)return"all";if(e===!1&&n===!1)return"none";var i=e??!n;return i?"active":"inactive"}function Z0(e,n){var i=e.active,l=e.exact,o=e.fetching,s=e.inactive,c=e.predicate,f=e.queryKey,d=e.stale;if(ns(f)){if(l){if(n.queryHash!==yp(f,n.options))return!1}else if(!Gu(n.queryKey,f))return!1}var h=TE(i,s);if(h==="none")return!1;if(h!=="all"){var m=n.isActive();if(h==="active"&&!m||h==="inactive"&&m)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||typeof o=="boolean"&&n.isFetching()!==o||c&&!c(n))}function J0(e,n){var i=e.exact,l=e.fetching,o=e.predicate,s=e.mutationKey;if(ns(s)){if(!n.options.mutationKey)return!1;if(i){if(cl(n.options.mutationKey)!==cl(s))return!1}else if(!Gu(n.options.mutationKey,s))return!1}return!(typeof l=="boolean"&&n.state.status==="loading"!==l||o&&!o(n))}function yp(e,n){var i=(n==null?void 0:n.queryKeyHashFn)||cl;return i(e)}function cl(e){var n=Yu(e);return AE(n)}function AE(e){return JSON.stringify(e,function(n,i){return Rh(i)?Object.keys(i).sort().reduce(function(l,o){return l[o]=i[o],l},{}):i})}function Gu(e,n){return iv(Yu(e),Yu(n))}function iv(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(function(i){return!iv(e[i],n[i])}):!1}function Ku(e,n){if(e===n)return e;var i=Array.isArray(e)&&Array.isArray(n);if(i||Rh(e)&&Rh(n)){for(var l=i?e.length:Object.keys(e).length,o=i?n:Object.keys(n),s=o.length,c=i?[]:{},f=0,d=0;d<s;d++){var h=i?d:o[d];c[h]=Ku(e[h],n[h]),c[h]===e[h]&&f++}return l===s&&f===l?e:c}return n}function _E(e,n){if(e&&!n||n&&!e)return!1;for(var i in e)if(e[i]!==n[i])return!1;return!0}function Rh(e){if(!W0(e))return!1;var n=e.constructor;if(typeof n>"u")return!0;var i=n.prototype;return!(!W0(i)||!i.hasOwnProperty("isPrototypeOf"))}function W0(e){return Object.prototype.toString.call(e)==="[object Object]"}function ns(e){return typeof e=="string"||Array.isArray(e)}function OE(e){return new Promise(function(n){setTimeout(n,e)})}function e1(e){Promise.resolve().then(e).catch(function(n){return setTimeout(function(){throw n})})}function lv(){if(typeof AbortController=="function")return new AbortController}var RE=function(e){Aa(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!$u&&((s=window)!=null&&s.addEventListener)){var c=function(){return o()};return window.addEventListener("visibilitychange",c,!1),window.addEventListener("focus",c,!1),function(){window.removeEventListener("visibilitychange",c),window.removeEventListener("focus",c)}}},l}var i=n.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},i.setEventListener=function(o){var s,c=this;this.setup=o,(s=this.cleanup)==null||s.call(this),this.cleanup=o(function(f){typeof f=="boolean"?c.setFocused(f):c.onFocus()})},i.setFocused=function(o){this.focused=o,o&&this.onFocus()},i.onFocus=function(){this.listeners.forEach(function(o){o()})},i.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},n}(_a),Qo=new RE,NE=function(e){Aa(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!$u&&((s=window)!=null&&s.addEventListener)){var c=function(){return o()};return window.addEventListener("online",c,!1),window.addEventListener("offline",c,!1),function(){window.removeEventListener("online",c),window.removeEventListener("offline",c)}}},l}var i=n.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},i.setEventListener=function(o){var s,c=this;this.setup=o,(s=this.cleanup)==null||s.call(this),this.cleanup=o(function(f){typeof f=="boolean"?c.setOnline(f):c.onOnline()})},i.setOnline=function(o){this.online=o,o&&this.onOnline()},i.onOnline=function(){this.listeners.forEach(function(o){o()})},i.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},n}(_a),Lu=new NE;function jE(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Xu(e){return typeof(e==null?void 0:e.cancel)=="function"}var av=function(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent};function zu(e){return e instanceof av}var ov=function(n){var i=this,l=!1,o,s,c,f;this.abort=n.abort,this.cancel=function(x){return o==null?void 0:o(x)},this.cancelRetry=function(){l=!0},this.continueRetry=function(){l=!1},this.continue=function(){return s==null?void 0:s()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(x,v){c=x,f=v});var d=function(v){i.isResolved||(i.isResolved=!0,n.onSuccess==null||n.onSuccess(v),s==null||s(),c(v))},h=function(v){i.isResolved||(i.isResolved=!0,n.onError==null||n.onError(v),s==null||s(),f(v))},m=function(){return new Promise(function(v){s=v,i.isPaused=!0,n.onPause==null||n.onPause()}).then(function(){s=void 0,i.isPaused=!1,n.onContinue==null||n.onContinue()})},g=function x(){if(!i.isResolved){var v;try{v=n.fn()}catch(w){v=Promise.reject(w)}o=function(T){if(!i.isResolved&&(h(new av(T)),i.abort==null||i.abort(),Xu(v)))try{v.cancel()}catch{}},i.isTransportCancelable=Xu(v),Promise.resolve(v).then(d).catch(function(w){var T,_;if(!i.isResolved){var A=(T=n.retry)!=null?T:3,N=(_=n.retryDelay)!=null?_:jE,R=typeof N=="function"?N(i.failureCount,w):N,z=A===!0||typeof A=="number"&&i.failureCount<A||typeof A=="function"&&A(i.failureCount,w);if(l||!z){h(w);return}i.failureCount++,n.onFail==null||n.onFail(i.failureCount,w),OE(R).then(function(){if(!Qo.isFocused()||!Lu.isOnline())return m()}).then(function(){l?h(w):x()})}})}};g()},DE=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(i){i()},this.batchNotifyFn=function(i){i()}}var n=e.prototype;return n.batch=function(l){var o;this.transactions++;try{o=l()}finally{this.transactions--,this.transactions||this.flush()}return o},n.schedule=function(l){var o=this;this.transactions?this.queue.push(l):e1(function(){o.notifyFn(l)})},n.batchCalls=function(l){var o=this;return function(){for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];o.schedule(function(){l.apply(void 0,c)})}},n.flush=function(){var l=this,o=this.queue;this.queue=[],o.length&&e1(function(){l.batchNotifyFn(function(){o.forEach(function(s){l.notifyFn(s)})})})},n.setNotifyFunction=function(l){this.notifyFn=l},n.setBatchNotifyFunction=function(l){this.batchNotifyFn=l},e}(),ot=new DE,sv=console;function Zu(){return sv}function ME(e){sv=e}var LE=function(){function e(i){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=i.defaultOptions,this.setOptions(i.options),this.observers=[],this.cache=i.cache,this.queryKey=i.queryKey,this.queryHash=i.queryHash,this.initialState=i.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=i.meta,this.scheduleGc()}var n=e.prototype;return n.setOptions=function(l){var o;this.options=De({},this.defaultOptions,l),this.meta=l==null?void 0:l.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},n.setDefaultOptions=function(l){this.defaultOptions=l},n.scheduleGc=function(){var l=this;this.clearGcTimeout(),Oh(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){l.optionalRemove()},this.cacheTime))},n.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},n.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},n.setData=function(l,o){var s,c,f=this.state.data,d=EE(l,f);return(s=(c=this.options).isDataEqual)!=null&&s.call(c,f,d)?d=f:this.options.structuralSharing!==!1&&(d=Ku(f,d)),this.dispatch({data:d,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),d},n.setState=function(l,o){this.dispatch({type:"setState",state:l,setStateOptions:o})},n.cancel=function(l){var o,s=this.promise;return(o=this.retryer)==null||o.cancel(l),s?s.then(Yt).catch(Yt):Promise.resolve()},n.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},n.reset=function(){this.destroy(),this.setState(this.initialState)},n.isActive=function(){return this.observers.some(function(l){return l.options.enabled!==!1})},n.isFetching=function(){return this.state.isFetching},n.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(l){return l.getCurrentResult().isStale})},n.isStaleByTime=function(l){return l===void 0&&(l=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!rv(this.state.dataUpdatedAt,l)},n.onFocus=function(){var l,o=this.observers.find(function(s){return s.shouldFetchOnWindowFocus()});o&&o.refetch(),(l=this.retryer)==null||l.continue()},n.onOnline=function(){var l,o=this.observers.find(function(s){return s.shouldFetchOnReconnect()});o&&o.refetch(),(l=this.retryer)==null||l.continue()},n.addObserver=function(l){this.observers.indexOf(l)===-1&&(this.observers.push(l),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:l}))},n.removeObserver=function(l){this.observers.indexOf(l)!==-1&&(this.observers=this.observers.filter(function(o){return o!==l}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:l}))},n.getObserversCount=function(){return this.observers.length},n.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},n.fetch=function(l,o){var s=this,c,f,d;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var h;return(h=this.retryer)==null||h.continueRetry(),this.promise}}if(l&&this.setOptions(l),!this.options.queryFn){var m=this.observers.find(function(N){return N.options.queryFn});m&&this.setOptions(m.options)}var g=Yu(this.queryKey),x=lv(),v={queryKey:g,pageParam:void 0,meta:this.meta};Object.defineProperty(v,"signal",{enumerable:!0,get:function(){if(x)return s.abortSignalConsumed=!0,x.signal}});var w=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(v)):Promise.reject("Missing queryFn")},T={fetchOptions:o,options:this.options,queryKey:g,state:this.state,fetchFn:w,meta:this.meta};if((c=this.options.behavior)!=null&&c.onFetch){var _;(_=this.options.behavior)==null||_.onFetch(T)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((f=T.fetchOptions)==null?void 0:f.meta)){var A;this.dispatch({type:"fetch",meta:(A=T.fetchOptions)==null?void 0:A.meta})}return this.retryer=new ov({fn:T.fetchFn,abort:x==null||(d=x.abort)==null?void 0:d.bind(x),onSuccess:function(R){s.setData(R),s.cache.config.onSuccess==null||s.cache.config.onSuccess(R,s),s.cacheTime===0&&s.optionalRemove()},onError:function(R){zu(R)&&R.silent||s.dispatch({type:"error",error:R}),zu(R)||(s.cache.config.onError==null||s.cache.config.onError(R,s),Zu().error(R)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(l){var o=this;this.state=this.reducer(this.state,l),ot.batch(function(){o.observers.forEach(function(s){s.onQueryUpdate(l)}),o.cache.notify({query:o,type:"queryUpdated",action:l})})},n.getDefaultState=function(l){var o=typeof l.initialData=="function"?l.initialData():l.initialData,s=typeof l.initialData<"u",c=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0,f=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:f?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:f?"success":"idle"}},n.reducer=function(l,o){var s,c;switch(o.type){case"failed":return De({},l,{fetchFailureCount:l.fetchFailureCount+1});case"pause":return De({},l,{isPaused:!0});case"continue":return De({},l,{isPaused:!1});case"fetch":return De({},l,{fetchFailureCount:0,fetchMeta:(s=o.meta)!=null?s:null,isFetching:!0,isPaused:!1},!l.dataUpdatedAt&&{error:null,status:"loading"});case"success":return De({},l,{data:o.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:(c=o.dataUpdatedAt)!=null?c:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var f=o.error;return zu(f)&&f.revert&&this.revertState?De({},this.revertState):De({},l,{error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return De({},l,{isInvalidated:!0});case"setState":return De({},l,o.state);default:return l}},e}(),zE=function(e){Aa(n,e);function n(l){var o;return o=e.call(this)||this,o.config=l||{},o.queries=[],o.queriesMap={},o}var i=n.prototype;return i.build=function(o,s,c){var f,d=s.queryKey,h=(f=s.queryHash)!=null?f:yp(d,s),m=this.get(h);return m||(m=new LE({cache:this,queryKey:d,queryHash:h,options:o.defaultQueryOptions(s),state:c,defaultOptions:o.getQueryDefaults(d),meta:s.meta}),this.add(m)),m},i.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},i.remove=function(o){var s=this.queriesMap[o.queryHash];s&&(o.destroy(),this.queries=this.queries.filter(function(c){return c!==o}),s===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},i.clear=function(){var o=this;ot.batch(function(){o.queries.forEach(function(s){o.remove(s)})})},i.get=function(o){return this.queriesMap[o]},i.getAll=function(){return this.queries},i.find=function(o,s){var c=ji(o,s),f=c[0];return typeof f.exact>"u"&&(f.exact=!0),this.queries.find(function(d){return Z0(f,d)})},i.findAll=function(o,s){var c=ji(o,s),f=c[0];return Object.keys(f).length>0?this.queries.filter(function(d){return Z0(f,d)}):this.queries},i.notify=function(o){var s=this;ot.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){var o=this;ot.batch(function(){o.queries.forEach(function(s){s.onFocus()})})},i.onOnline=function(){var o=this;ot.batch(function(){o.queries.forEach(function(s){s.onOnline()})})},n}(_a),UE=function(){function e(i){this.options=De({},i.defaultOptions,i.options),this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.observers=[],this.state=i.state||uv(),this.meta=i.meta}var n=e.prototype;return n.setState=function(l){this.dispatch({type:"setState",state:l})},n.addObserver=function(l){this.observers.indexOf(l)===-1&&this.observers.push(l)},n.removeObserver=function(l){this.observers=this.observers.filter(function(o){return o!==l})},n.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Yt).catch(Yt)):Promise.resolve()},n.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},n.execute=function(){var l=this,o,s=this.state.status==="loading",c=Promise.resolve();return s||(this.dispatch({type:"loading",variables:this.options.variables}),c=c.then(function(){l.mutationCache.config.onMutate==null||l.mutationCache.config.onMutate(l.state.variables,l)}).then(function(){return l.options.onMutate==null?void 0:l.options.onMutate(l.state.variables)}).then(function(f){f!==l.state.context&&l.dispatch({type:"loading",context:f,variables:l.state.variables})})),c.then(function(){return l.executeMutation()}).then(function(f){o=f,l.mutationCache.config.onSuccess==null||l.mutationCache.config.onSuccess(o,l.state.variables,l.state.context,l)}).then(function(){return l.options.onSuccess==null?void 0:l.options.onSuccess(o,l.state.variables,l.state.context)}).then(function(){return l.options.onSettled==null?void 0:l.options.onSettled(o,null,l.state.variables,l.state.context)}).then(function(){return l.dispatch({type:"success",data:o}),o}).catch(function(f){return l.mutationCache.config.onError==null||l.mutationCache.config.onError(f,l.state.variables,l.state.context,l),Zu().error(f),Promise.resolve().then(function(){return l.options.onError==null?void 0:l.options.onError(f,l.state.variables,l.state.context)}).then(function(){return l.options.onSettled==null?void 0:l.options.onSettled(void 0,f,l.state.variables,l.state.context)}).then(function(){throw l.dispatch({type:"error",error:f}),f})})},n.executeMutation=function(){var l=this,o;return this.retryer=new ov({fn:function(){return l.options.mutationFn?l.options.mutationFn(l.state.variables):Promise.reject("No mutationFn found")},onFail:function(){l.dispatch({type:"failed"})},onPause:function(){l.dispatch({type:"pause"})},onContinue:function(){l.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},n.dispatch=function(l){var o=this;this.state=BE(this.state,l),ot.batch(function(){o.observers.forEach(function(s){s.onMutationUpdate(l)}),o.mutationCache.notify(o)})},e}();function uv(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function BE(e,n){switch(n.type){case"failed":return De({},e,{failureCount:e.failureCount+1});case"pause":return De({},e,{isPaused:!0});case"continue":return De({},e,{isPaused:!1});case"loading":return De({},e,{context:n.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:n.variables});case"success":return De({},e,{data:n.data,error:null,status:"success",isPaused:!1});case"error":return De({},e,{data:void 0,error:n.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return De({},e,n.state);default:return e}}var qE=function(e){Aa(n,e);function n(l){var o;return o=e.call(this)||this,o.config=l||{},o.mutations=[],o.mutationId=0,o}var i=n.prototype;return i.build=function(o,s,c){var f=new UE({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(s),state:c,defaultOptions:s.mutationKey?o.getMutationDefaults(s.mutationKey):void 0,meta:s.meta});return this.add(f),f},i.add=function(o){this.mutations.push(o),this.notify(o)},i.remove=function(o){this.mutations=this.mutations.filter(function(s){return s!==o}),o.cancel(),this.notify(o)},i.clear=function(){var o=this;ot.batch(function(){o.mutations.forEach(function(s){o.remove(s)})})},i.getAll=function(){return this.mutations},i.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(s){return J0(o,s)})},i.findAll=function(o){return this.mutations.filter(function(s){return J0(o,s)})},i.notify=function(o){var s=this;ot.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){this.resumePausedMutations()},i.onOnline=function(){this.resumePausedMutations()},i.resumePausedMutations=function(){var o=this.mutations.filter(function(s){return s.state.isPaused});return ot.batch(function(){return o.reduce(function(s,c){return s.then(function(){return c.continue().catch(Yt)})},Promise.resolve())})},n}(_a);function HE(){return{onFetch:function(n){n.fetchFn=function(){var i,l,o,s,c,f,d=(i=n.fetchOptions)==null||(l=i.meta)==null?void 0:l.refetchPage,h=(o=n.fetchOptions)==null||(s=o.meta)==null?void 0:s.fetchMore,m=h==null?void 0:h.pageParam,g=(h==null?void 0:h.direction)==="forward",x=(h==null?void 0:h.direction)==="backward",v=((c=n.state.data)==null?void 0:c.pages)||[],w=((f=n.state.data)==null?void 0:f.pageParams)||[],T=lv(),_=T==null?void 0:T.signal,A=w,N=!1,R=n.options.queryFn||function(){return Promise.reject("Missing queryFn")},z=function(J,se,q,X){return A=X?[se].concat(A):[].concat(A,[se]),X?[q].concat(J):[].concat(J,[q])},D=function(J,se,q,X){if(N)return Promise.reject("Cancelled");if(typeof q>"u"&&!se&&J.length)return Promise.resolve(J);var ne={queryKey:n.queryKey,signal:_,pageParam:q,meta:n.meta},pe=R(ne),C=Promise.resolve(pe).then(function(oe){return z(J,q,oe,X)});if(Xu(pe)){var I=C;I.cancel=pe.cancel}return C},L;if(!v.length)L=D([]);else if(g){var $=typeof m<"u",ee=$?m:t1(n.options,v);L=D(v,$,ee)}else if(x){var ie=typeof m<"u",U=ie?m:FE(n.options,v);L=D(v,ie,U,!0)}else(function(){A=[];var ue=typeof n.options.getNextPageParam>"u",J=d&&v[0]?d(v[0],0,v):!0;L=J?D([],ue,w[0]):Promise.resolve(z([],w[0],v[0]));for(var se=function(ne){L=L.then(function(pe){var C=d&&v[ne]?d(v[ne],ne,v):!0;if(C){var I=ue?w[ne]:t1(n.options,pe);return D(pe,ue,I)}return Promise.resolve(z(pe,w[ne],v[ne]))})},q=1;q<v.length;q++)se(q)})();var ae=L.then(function(ue){return{pages:ue,pageParams:A}}),te=ae;return te.cancel=function(){N=!0,T==null||T.abort(),Xu(L)&&L.cancel()},ae}}}}function t1(e,n){return e.getNextPageParam==null?void 0:e.getNextPageParam(n[n.length-1],n)}function FE(e,n){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(n[0],n)}var QE=function(){function e(i){i===void 0&&(i={}),this.queryCache=i.queryCache||new zE,this.mutationCache=i.mutationCache||new qE,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var n=e.prototype;return n.mount=function(){var l=this;this.unsubscribeFocus=Qo.subscribe(function(){Qo.isFocused()&&Lu.isOnline()&&(l.mutationCache.onFocus(),l.queryCache.onFocus())}),this.unsubscribeOnline=Lu.subscribe(function(){Qo.isFocused()&&Lu.isOnline()&&(l.mutationCache.onOnline(),l.queryCache.onOnline())})},n.unmount=function(){var l,o;(l=this.unsubscribeFocus)==null||l.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},n.isFetching=function(l,o){var s=ji(l,o),c=s[0];return c.fetching=!0,this.queryCache.findAll(c).length},n.isMutating=function(l){return this.mutationCache.findAll(De({},l,{fetching:!0})).length},n.getQueryData=function(l,o){var s;return(s=this.queryCache.find(l,o))==null?void 0:s.state.data},n.getQueriesData=function(l){return this.getQueryCache().findAll(l).map(function(o){var s=o.queryKey,c=o.state,f=c.data;return[s,f]})},n.setQueryData=function(l,o,s){var c=Mu(l),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(o,s)},n.setQueriesData=function(l,o,s){var c=this;return ot.batch(function(){return c.getQueryCache().findAll(l).map(function(f){var d=f.queryKey;return[d,c.setQueryData(d,o,s)]})})},n.getQueryState=function(l,o){var s;return(s=this.queryCache.find(l,o))==null?void 0:s.state},n.removeQueries=function(l,o){var s=ji(l,o),c=s[0],f=this.queryCache;ot.batch(function(){f.findAll(c).forEach(function(d){f.remove(d)})})},n.resetQueries=function(l,o,s){var c=this,f=ji(l,o,s),d=f[0],h=f[1],m=this.queryCache,g=De({},d,{active:!0});return ot.batch(function(){return m.findAll(d).forEach(function(x){x.reset()}),c.refetchQueries(g,h)})},n.cancelQueries=function(l,o,s){var c=this,f=ji(l,o,s),d=f[0],h=f[1],m=h===void 0?{}:h;typeof m.revert>"u"&&(m.revert=!0);var g=ot.batch(function(){return c.queryCache.findAll(d).map(function(x){return x.cancel(m)})});return Promise.all(g).then(Yt).catch(Yt)},n.invalidateQueries=function(l,o,s){var c,f,d,h=this,m=ji(l,o,s),g=m[0],x=m[1],v=De({},g,{active:(c=(f=g.refetchActive)!=null?f:g.active)!=null?c:!0,inactive:(d=g.refetchInactive)!=null?d:!1});return ot.batch(function(){return h.queryCache.findAll(g).forEach(function(w){w.invalidate()}),h.refetchQueries(v,x)})},n.refetchQueries=function(l,o,s){var c=this,f=ji(l,o,s),d=f[0],h=f[1],m=ot.batch(function(){return c.queryCache.findAll(d).map(function(x){return x.fetch(void 0,De({},h,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),g=Promise.all(m).then(Yt);return h!=null&&h.throwOnError||(g=g.catch(Yt)),g},n.fetchQuery=function(l,o,s){var c=Mu(l,o,s),f=this.defaultQueryOptions(c);typeof f.retry>"u"&&(f.retry=!1);var d=this.queryCache.build(this,f);return d.isStaleByTime(f.staleTime)?d.fetch(f):Promise.resolve(d.state.data)},n.prefetchQuery=function(l,o,s){return this.fetchQuery(l,o,s).then(Yt).catch(Yt)},n.fetchInfiniteQuery=function(l,o,s){var c=Mu(l,o,s);return c.behavior=HE(),this.fetchQuery(c)},n.prefetchInfiniteQuery=function(l,o,s){return this.fetchInfiniteQuery(l,o,s).then(Yt).catch(Yt)},n.cancelMutations=function(){var l=this,o=ot.batch(function(){return l.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(o).then(Yt).catch(Yt)},n.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},n.executeMutation=function(l){return this.mutationCache.build(this,l).execute()},n.getQueryCache=function(){return this.queryCache},n.getMutationCache=function(){return this.mutationCache},n.getDefaultOptions=function(){return this.defaultOptions},n.setDefaultOptions=function(l){this.defaultOptions=l},n.setQueryDefaults=function(l,o){var s=this.queryDefaults.find(function(c){return cl(l)===cl(c.queryKey)});s?s.defaultOptions=o:this.queryDefaults.push({queryKey:l,defaultOptions:o})},n.getQueryDefaults=function(l){var o;return l?(o=this.queryDefaults.find(function(s){return Gu(l,s.queryKey)}))==null?void 0:o.defaultOptions:void 0},n.setMutationDefaults=function(l,o){var s=this.mutationDefaults.find(function(c){return cl(l)===cl(c.mutationKey)});s?s.defaultOptions=o:this.mutationDefaults.push({mutationKey:l,defaultOptions:o})},n.getMutationDefaults=function(l){var o;return l?(o=this.mutationDefaults.find(function(s){return Gu(l,s.mutationKey)}))==null?void 0:o.defaultOptions:void 0},n.defaultQueryOptions=function(l){if(l!=null&&l._defaulted)return l;var o=De({},this.defaultOptions.queries,this.getQueryDefaults(l==null?void 0:l.queryKey),l,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=yp(o.queryKey,o)),o},n.defaultQueryObserverOptions=function(l){return this.defaultQueryOptions(l)},n.defaultMutationOptions=function(l){return l!=null&&l._defaulted?l:De({},this.defaultOptions.mutations,this.getMutationDefaults(l==null?void 0:l.mutationKey),l,{_defaulted:!0})},n.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),PE=function(e){Aa(n,e);function n(l,o){var s;return s=e.call(this)||this,s.client=l,s.options=o,s.trackedProps=[],s.selectError=null,s.bindMethods(),s.setOptions(o),s}var i=n.prototype;return i.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},i.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),n1(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return Nh(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return Nh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},i.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},i.setOptions=function(o,s){var c=this.options,f=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=c.queryKey),this.updateQuery();var d=this.hasListeners();d&&r1(this.currentQuery,f,this.options,c)&&this.executeFetch(),this.updateResult(s),d&&(this.currentQuery!==f||this.options.enabled!==c.enabled||this.options.staleTime!==c.staleTime)&&this.updateStaleTimeout();var h=this.computeRefetchInterval();d&&(this.currentQuery!==f||this.options.enabled!==c.enabled||h!==this.currentRefetchInterval)&&this.updateRefetchInterval(h)},i.getOptimisticResult=function(o){var s=this.client.defaultQueryObserverOptions(o),c=this.client.getQueryCache().build(this.client,s);return this.createResult(c,s)},i.getCurrentResult=function(){return this.currentResult},i.trackResult=function(o,s){var c=this,f={},d=function(m){c.trackedProps.includes(m)||c.trackedProps.push(m)};return Object.keys(o).forEach(function(h){Object.defineProperty(f,h,{configurable:!1,enumerable:!0,get:function(){return d(h),o[h]}})}),(s.useErrorBoundary||s.suspense)&&d("error"),f},i.getNextResult=function(o){var s=this;return new Promise(function(c,f){var d=s.subscribe(function(h){h.isFetching||(d(),h.isError&&(o!=null&&o.throwOnError)?f(h.error):c(h))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(o){return this.fetch(De({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},i.fetchOptimistic=function(o){var s=this,c=this.client.defaultQueryObserverOptions(o),f=this.client.getQueryCache().build(this.client,c);return f.fetch().then(function(){return s.createResult(f,c)})},i.fetch=function(o){var s=this;return this.executeFetch(o).then(function(){return s.updateResult(),s.currentResult})},i.executeFetch=function(o){this.updateQuery();var s=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(s=s.catch(Yt)),s},i.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!($u||this.currentResult.isStale||!Oh(this.options.staleTime))){var s=rv(this.currentResult.dataUpdatedAt,this.options.staleTime),c=s+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},c)}},i.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},i.updateRefetchInterval=function(o){var s=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!($u||this.options.enabled===!1||!Oh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||Qo.isFocused())&&s.executeFetch()},this.currentRefetchInterval))},i.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},i.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},i.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},i.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},i.createResult=function(o,s){var c=this.currentQuery,f=this.options,d=this.currentResult,h=this.currentResultState,m=this.currentResultOptions,g=o!==c,x=g?o.state:this.currentQueryInitialState,v=g?this.currentResult:this.previousQueryResult,w=o.state,T=w.dataUpdatedAt,_=w.error,A=w.errorUpdatedAt,N=w.isFetching,R=w.status,z=!1,D=!1,L;if(s.optimisticResults){var $=this.hasListeners(),ee=!$&&n1(o,s),ie=$&&r1(o,c,s,f);(ee||ie)&&(N=!0,T||(R="loading"))}if(s.keepPreviousData&&!w.dataUpdateCount&&(v!=null&&v.isSuccess)&&R!=="error")L=v.data,T=v.dataUpdatedAt,R=v.status,z=!0;else if(s.select&&typeof w.data<"u")if(d&&w.data===(h==null?void 0:h.data)&&s.select===this.selectFn)L=this.selectResult;else try{this.selectFn=s.select,L=s.select(w.data),s.structuralSharing!==!1&&(L=Ku(d==null?void 0:d.data,L)),this.selectResult=L,this.selectError=null}catch(te){Zu().error(te),this.selectError=te}else L=w.data;if(typeof s.placeholderData<"u"&&typeof L>"u"&&(R==="loading"||R==="idle")){var U;if(d!=null&&d.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))U=d.data;else if(U=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof U<"u")try{U=s.select(U),s.structuralSharing!==!1&&(U=Ku(d==null?void 0:d.data,U)),this.selectError=null}catch(te){Zu().error(te),this.selectError=te}typeof U<"u"&&(R="success",L=U,D=!0)}this.selectError&&(_=this.selectError,L=this.selectResult,A=Date.now(),R="error");var ae={status:R,isLoading:R==="loading",isSuccess:R==="success",isError:R==="error",isIdle:R==="idle",data:L,dataUpdatedAt:T,error:_,errorUpdatedAt:A,failureCount:w.fetchFailureCount,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>x.dataUpdateCount||w.errorUpdateCount>x.errorUpdateCount,isFetching:N,isRefetching:N&&R!=="loading",isLoadingError:R==="error"&&w.dataUpdatedAt===0,isPlaceholderData:D,isPreviousData:z,isRefetchError:R==="error"&&w.dataUpdatedAt!==0,isStale:gp(o,s),refetch:this.refetch,remove:this.remove};return ae},i.shouldNotifyListeners=function(o,s){if(!s)return!0;var c=this.options,f=c.notifyOnChangeProps,d=c.notifyOnChangePropsExclusions;if(!f&&!d||f==="tracked"&&!this.trackedProps.length)return!0;var h=f==="tracked"?this.trackedProps:f;return Object.keys(o).some(function(m){var g=m,x=o[g]!==s[g],v=h==null?void 0:h.some(function(T){return T===m}),w=d==null?void 0:d.some(function(T){return T===m});return x&&!w&&(!h||v)})},i.updateResult=function(o){var s=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!_E(this.currentResult,s)){var c={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(c.listeners=!0),this.notify(De({},c,o))}},i.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var s=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(s==null||s.removeObserver(this),o.addObserver(this))}},i.onQueryUpdate=function(o){var s={};o.type==="success"?s.onSuccess=!0:o.type==="error"&&!zu(o.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},i.notify=function(o){var s=this;ot.batch(function(){o.onSuccess?(s.options.onSuccess==null||s.options.onSuccess(s.currentResult.data),s.options.onSettled==null||s.options.onSettled(s.currentResult.data,null)):o.onError&&(s.options.onError==null||s.options.onError(s.currentResult.error),s.options.onSettled==null||s.options.onSettled(void 0,s.currentResult.error)),o.listeners&&s.listeners.forEach(function(c){c(s.currentResult)}),o.cache&&s.client.getQueryCache().notify({query:s.currentQuery,type:"observerResultsUpdated"})})},n}(_a);function IE(e,n){return n.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&n.retryOnMount===!1)}function n1(e,n){return IE(e,n)||e.state.dataUpdatedAt>0&&Nh(e,n,n.refetchOnMount)}function Nh(e,n,i){if(n.enabled!==!1){var l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&gp(e,n)}return!1}function r1(e,n,i,l){return i.enabled!==!1&&(e!==n||l.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&gp(e,i)}function gp(e,n){return e.isStaleByTime(n.staleTime)}var VE=function(e){Aa(n,e);function n(l,o){var s;return s=e.call(this)||this,s.client=l,s.setOptions(o),s.bindMethods(),s.updateResult(),s}var i=n.prototype;return i.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},i.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},i.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},i.onMutationUpdate=function(o){this.updateResult();var s={listeners:!0};o.type==="success"?s.onSuccess=!0:o.type==="error"&&(s.onError=!0),this.notify(s)},i.getCurrentResult=function(){return this.currentResult},i.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},i.mutate=function(o,s){return this.mutateOptions=s,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,De({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},i.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:uv(),s=De({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=s},i.notify=function(o){var s=this;ot.batch(function(){s.mutateOptions&&(o.onSuccess?(s.mutateOptions.onSuccess==null||s.mutateOptions.onSuccess(s.currentResult.data,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(s.currentResult.data,null,s.currentResult.variables,s.currentResult.context)):o.onError&&(s.mutateOptions.onError==null||s.mutateOptions.onError(s.currentResult.error,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(void 0,s.currentResult.error,s.currentResult.variables,s.currentResult.context))),o.listeners&&s.listeners.forEach(function(c){c(s.currentResult)})})},n}(_a),$E=CE.unstable_batchedUpdates;ot.setBatchNotifyFunction($E);var YE=console;ME(YE);var i1=nt.createContext(void 0),cv=nt.createContext(!1);function fv(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i1),window.ReactQueryClientContext):i1}var dv=function(){var n=nt.useContext(fv(nt.useContext(cv)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},GE=function(n){var i=n.client,l=n.contextSharing,o=l===void 0?!1:l,s=n.children;nt.useEffect(function(){return i.mount(),function(){i.unmount()}},[i]);var c=fv(o);return nt.createElement(cv.Provider,{value:o},nt.createElement(c.Provider,{value:i},s))};function KE(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var XE=nt.createContext(KE()),ZE=function(){return nt.useContext(XE)};function hv(e,n,i){return typeof n=="function"?n.apply(void 0,i):typeof n=="boolean"?n:!!e}function Ar(e,n,i){var l=nt.useRef(!1),o=nt.useState(0),s=o[1],c=kE(e,n,i),f=dv(),d=nt.useRef();d.current?d.current.setOptions(c):d.current=new VE(f,c);var h=d.current.getCurrentResult();nt.useEffect(function(){l.current=!0;var g=d.current.subscribe(ot.batchCalls(function(){l.current&&s(function(x){return x+1})}));return function(){l.current=!1,g()}},[]);var m=nt.useCallback(function(g,x){d.current.mutate(g,x).catch(Yt)},[]);if(h.error&&hv(void 0,d.current.options.useErrorBoundary,[h.error]))throw h.error;return De({},h,{mutate:m,mutateAsync:h.mutate})}function JE(e,n){var i=nt.useRef(!1),l=nt.useState(0),o=l[1],s=dv(),c=ZE(),f=s.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=ot.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=ot.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=ot.batchCalls(f.onSettled)),f.suspense&&(typeof f.staleTime!="number"&&(f.staleTime=1e3),f.cacheTime===0&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&(c.isReset()||(f.retryOnMount=!1));var d=nt.useState(function(){return new n(s,f)}),h=d[0],m=h.getOptimisticResult(f);if(nt.useEffect(function(){i.current=!0,c.clearReset();var g=h.subscribe(ot.batchCalls(function(){i.current&&o(function(x){return x+1})}));return h.updateResult(),function(){i.current=!1,g()}},[c,h]),nt.useEffect(function(){h.setOptions(f,{listeners:!1})},[f,h]),f.suspense&&m.isLoading)throw h.fetchOptimistic(f).then(function(g){var x=g.data;f.onSuccess==null||f.onSuccess(x),f.onSettled==null||f.onSettled(x,null)}).catch(function(g){c.clearReset(),f.onError==null||f.onError(g),f.onSettled==null||f.onSettled(void 0,g)});if(m.isError&&!c.isReset()&&!m.isFetching&&hv(f.suspense,f.useErrorBoundary,[m.error,h.getCurrentQuery()]))throw m.error;return f.notifyOnChangeProps==="tracked"&&(m=h.trackResult(m,f)),m}function Kn(e,n,i){var l=Mu(e,n,i);return JE(l,PE)}function pv(e,n){return function(){return e.apply(n,arguments)}}const{toString:WE}=Object.prototype,{getPrototypeOf:bp}=Object,{iterator:fc,toStringTag:mv}=Symbol,dc=(e=>n=>{const i=WE.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ur=e=>(e=e.toLowerCase(),n=>dc(n)===e),hc=e=>n=>typeof n===e,{isArray:Oa}=Array,Ko=hc("undefined");function e3(e){return e!==null&&!Ko(e)&&e.constructor!==null&&!Ko(e.constructor)&&gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yv=ur("ArrayBuffer");function t3(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&yv(e.buffer),n}const n3=hc("string"),gn=hc("function"),gv=hc("number"),pc=e=>e!==null&&typeof e=="object",r3=e=>e===!0||e===!1,Uu=e=>{if(dc(e)!=="object")return!1;const n=bp(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(mv in e)&&!(fc in e)},i3=ur("Date"),l3=ur("File"),a3=ur("Blob"),o3=ur("FileList"),s3=e=>pc(e)&&gn(e.pipe),u3=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||gn(e.append)&&((n=dc(e))==="formdata"||n==="object"&&gn(e.toString)&&e.toString()==="[object FormData]"))},c3=ur("URLSearchParams"),[f3,d3,h3,p3]=["ReadableStream","Request","Response","Headers"].map(ur),m3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rs(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let l,o;if(typeof e!="object"&&(e=[e]),Oa(e))for(l=0,o=e.length;l<o;l++)n.call(null,e[l],l,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),c=s.length;let f;for(l=0;l<c;l++)f=s[l],n.call(null,e[f],f,e)}}function bv(e,n){n=n.toLowerCase();const i=Object.keys(e);let l=i.length,o;for(;l-- >0;)if(o=i[l],n===o.toLowerCase())return o;return null}const fl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vv=e=>!Ko(e)&&e!==fl;function jh(){const{caseless:e}=vv(this)&&this||{},n={},i=(l,o)=>{const s=e&&bv(n,o)||o;Uu(n[s])&&Uu(l)?n[s]=jh(n[s],l):Uu(l)?n[s]=jh({},l):Oa(l)?n[s]=l.slice():n[s]=l};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&rs(arguments[l],i);return n}const y3=(e,n,i,{allOwnKeys:l}={})=>(rs(n,(o,s)=>{i&&gn(o)?e[s]=pv(o,i):e[s]=o},{allOwnKeys:l}),e),g3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b3=(e,n,i,l)=>{e.prototype=Object.create(n.prototype,l),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},v3=(e,n,i,l)=>{let o,s,c;const f={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)c=o[s],(!l||l(c,e,n))&&!f[c]&&(n[c]=e[c],f[c]=!0);e=i!==!1&&bp(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},x3=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const l=e.indexOf(n,i);return l!==-1&&l===i},w3=e=>{if(!e)return null;if(Oa(e))return e;let n=e.length;if(!gv(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},S3=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&bp(Uint8Array)),C3=(e,n)=>{const l=(e&&e[fc]).call(e);let o;for(;(o=l.next())&&!o.done;){const s=o.value;n.call(e,s[0],s[1])}},E3=(e,n)=>{let i;const l=[];for(;(i=e.exec(n))!==null;)l.push(i);return l},k3=ur("HTMLFormElement"),T3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,o){return l.toUpperCase()+o}),l1=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),A3=ur("RegExp"),xv=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),l={};rs(i,(o,s)=>{let c;(c=n(o,s,e))!==!1&&(l[s]=c||o)}),Object.defineProperties(e,l)},_3=e=>{xv(e,(n,i)=>{if(gn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=e[i];if(gn(l)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},O3=(e,n)=>{const i={},l=o=>{o.forEach(s=>{i[s]=!0})};return Oa(e)?l(e):l(String(e).split(n)),i},R3=()=>{},N3=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function j3(e){return!!(e&&gn(e.append)&&e[mv]==="FormData"&&e[fc])}const D3=e=>{const n=new Array(10),i=(l,o)=>{if(pc(l)){if(n.indexOf(l)>=0)return;if(!("toJSON"in l)){n[o]=l;const s=Oa(l)?[]:{};return rs(l,(c,f)=>{const d=i(c,o+1);!Ko(d)&&(s[f]=d)}),n[o]=void 0,s}}return l};return i(e,0)},M3=ur("AsyncFunction"),L3=e=>e&&(pc(e)||gn(e))&&gn(e.then)&&gn(e.catch),wv=((e,n)=>e?setImmediate:n?((i,l)=>(fl.addEventListener("message",({source:o,data:s})=>{o===fl&&s===i&&l.length&&l.shift()()},!1),o=>{l.push(o),fl.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",gn(fl.postMessage)),z3=typeof queueMicrotask<"u"?queueMicrotask.bind(fl):typeof process<"u"&&process.nextTick||wv,U3=e=>e!=null&&gn(e[fc]),V={isArray:Oa,isArrayBuffer:yv,isBuffer:e3,isFormData:u3,isArrayBufferView:t3,isString:n3,isNumber:gv,isBoolean:r3,isObject:pc,isPlainObject:Uu,isReadableStream:f3,isRequest:d3,isResponse:h3,isHeaders:p3,isUndefined:Ko,isDate:i3,isFile:l3,isBlob:a3,isRegExp:A3,isFunction:gn,isStream:s3,isURLSearchParams:c3,isTypedArray:S3,isFileList:o3,forEach:rs,merge:jh,extend:y3,trim:m3,stripBOM:g3,inherits:b3,toFlatObject:v3,kindOf:dc,kindOfTest:ur,endsWith:x3,toArray:w3,forEachEntry:C3,matchAll:E3,isHTMLForm:k3,hasOwnProperty:l1,hasOwnProp:l1,reduceDescriptors:xv,freezeMethods:_3,toObjectSet:O3,toCamelCase:T3,noop:R3,toFiniteNumber:N3,findKey:bv,global:fl,isContextDefined:vv,isSpecCompliantForm:j3,toJSONObject:D3,isAsyncFn:M3,isThenable:L3,setImmediate:wv,asap:z3,isIterable:U3};function Ae(e,n,i,l,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),l&&(this.request=l),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Sv=Ae.prototype,Cv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cv[e]={value:e}});Object.defineProperties(Ae,Cv);Object.defineProperty(Sv,"isAxiosError",{value:!0});Ae.from=(e,n,i,l,o,s)=>{const c=Object.create(Sv);return V.toFlatObject(e,c,function(d){return d!==Error.prototype},f=>f!=="isAxiosError"),Ae.call(c,e.message,n,i,l,o),c.cause=e,c.name=e.name,s&&Object.assign(c,s),c};const B3=null;function Dh(e){return V.isPlainObject(e)||V.isArray(e)}function Ev(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function a1(e,n,i){return e?e.concat(n).map(function(o,s){return o=Ev(o),!i&&s?"["+o+"]":o}).join(i?".":""):n}function q3(e){return V.isArray(e)&&!e.some(Dh)}const H3=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function mc(e,n,i){if(!V.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=V.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,_){return!V.isUndefined(_[T])});const l=i.metaTokens,o=i.visitor||m,s=i.dots,c=i.indexes,d=(i.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(V.isDate(w))return w.toISOString();if(!d&&V.isBlob(w))throw new Ae("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(w)||V.isTypedArray(w)?d&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,T,_){let A=w;if(w&&!_&&typeof w=="object"){if(V.endsWith(T,"{}"))T=l?T:T.slice(0,-2),w=JSON.stringify(w);else if(V.isArray(w)&&q3(w)||(V.isFileList(w)||V.endsWith(T,"[]"))&&(A=V.toArray(w)))return T=Ev(T),A.forEach(function(R,z){!(V.isUndefined(R)||R===null)&&n.append(c===!0?a1([T],z,s):c===null?T:T+"[]",h(R))}),!1}return Dh(w)?!0:(n.append(a1(_,T,s),h(w)),!1)}const g=[],x=Object.assign(H3,{defaultVisitor:m,convertValue:h,isVisitable:Dh});function v(w,T){if(!V.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+T.join("."));g.push(w),V.forEach(w,function(A,N){(!(V.isUndefined(A)||A===null)&&o.call(n,A,V.isString(N)?N.trim():N,T,x))===!0&&v(A,T?T.concat(N):[N])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return v(e),n}function o1(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(l){return n[l]})}function vp(e,n){this._pairs=[],e&&mc(e,this,n)}const kv=vp.prototype;kv.append=function(n,i){this._pairs.push([n,i])};kv.toString=function(n){const i=n?function(l){return n.call(this,l,o1)}:o1;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function F3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tv(e,n,i){if(!n)return e;const l=i&&i.encode||F3;V.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let s;if(o?s=o(n,i):s=V.isURLSearchParams(n)?n.toString():new vp(n,i).toString(l),s){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class s1{constructor(){this.handlers=[]}use(n,i,l){return this.handlers.push({fulfilled:n,rejected:i,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){V.forEach(this.handlers,function(l){l!==null&&n(l)})}}const Av={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q3=typeof URLSearchParams<"u"?URLSearchParams:vp,P3=typeof FormData<"u"?FormData:null,I3=typeof Blob<"u"?Blob:null,V3={isBrowser:!0,classes:{URLSearchParams:Q3,FormData:P3,Blob:I3},protocols:["http","https","file","blob","url","data"]},xp=typeof window<"u"&&typeof document<"u",Mh=typeof navigator=="object"&&navigator||void 0,$3=xp&&(!Mh||["ReactNative","NativeScript","NS"].indexOf(Mh.product)<0),Y3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G3=xp&&window.location.href||"http://localhost",K3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xp,hasStandardBrowserEnv:$3,hasStandardBrowserWebWorkerEnv:Y3,navigator:Mh,origin:G3},Symbol.toStringTag,{value:"Module"})),en={...K3,...V3};function X3(e,n){return mc(e,new en.classes.URLSearchParams,Object.assign({visitor:function(i,l,o,s){return en.isNode&&V.isBuffer(i)?(this.append(l,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},n))}function Z3(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function J3(e){const n={},i=Object.keys(e);let l;const o=i.length;let s;for(l=0;l<o;l++)s=i[l],n[s]=e[s];return n}function _v(e){function n(i,l,o,s){let c=i[s++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),d=s>=i.length;return c=!c&&V.isArray(o)?o.length:c,d?(V.hasOwnProp(o,c)?o[c]=[o[c],l]:o[c]=l,!f):((!o[c]||!V.isObject(o[c]))&&(o[c]=[]),n(i,l,o[c],s)&&V.isArray(o[c])&&(o[c]=J3(o[c])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const i={};return V.forEachEntry(e,(l,o)=>{n(Z3(l),o,i,0)}),i}return null}function W3(e,n,i){if(V.isString(e))try{return(n||JSON.parse)(e),V.trim(e)}catch(l){if(l.name!=="SyntaxError")throw l}return(i||JSON.stringify)(e)}const is={transitional:Av,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const l=i.getContentType()||"",o=l.indexOf("application/json")>-1,s=V.isObject(n);if(s&&V.isHTMLForm(n)&&(n=new FormData(n)),V.isFormData(n))return o?JSON.stringify(_v(n)):n;if(V.isArrayBuffer(n)||V.isBuffer(n)||V.isStream(n)||V.isFile(n)||V.isBlob(n)||V.isReadableStream(n))return n;if(V.isArrayBufferView(n))return n.buffer;if(V.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(s){if(l.indexOf("application/x-www-form-urlencoded")>-1)return X3(n,this.formSerializer).toString();if((f=V.isFileList(n))||l.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return mc(f?{"files[]":n}:n,d&&new d,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),W3(n)):n}],transformResponse:[function(n){const i=this.transitional||is.transitional,l=i&&i.forcedJSONParsing,o=this.responseType==="json";if(V.isResponse(n)||V.isReadableStream(n))return n;if(n&&V.isString(n)&&(l&&!this.responseType||o)){const c=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(f){if(c)throw f.name==="SyntaxError"?Ae.from(f,Ae.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{is.headers[e]={}});const e4=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t4=e=>{const n={};let i,l,o;return e&&e.split(`
52
+ `).forEach(function(c){o=c.indexOf(":"),i=c.substring(0,o).trim().toLowerCase(),l=c.substring(o+1).trim(),!(!i||n[i]&&e4[i])&&(i==="set-cookie"?n[i]?n[i].push(l):n[i]=[l]:n[i]=n[i]?n[i]+", "+l:l)}),n},u1=Symbol("internals");function Lo(e){return e&&String(e).trim().toLowerCase()}function Bu(e){return e===!1||e==null?e:V.isArray(e)?e.map(Bu):String(e)}function n4(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=i.exec(e);)n[l[1]]=l[2];return n}const r4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kd(e,n,i,l,o){if(V.isFunction(l))return l.call(this,n,i);if(o&&(n=i),!!V.isString(n)){if(V.isString(l))return n.indexOf(l)!==-1;if(V.isRegExp(l))return l.test(n)}}function i4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,l)=>i.toUpperCase()+l)}function l4(e,n){const i=V.toCamelCase(" "+n);["get","set","has"].forEach(l=>{Object.defineProperty(e,l+i,{value:function(o,s,c){return this[l].call(this,n,o,s,c)},configurable:!0})})}let bn=class{constructor(n){n&&this.set(n)}set(n,i,l){const o=this;function s(f,d,h){const m=Lo(d);if(!m)throw new Error("header name must be a non-empty string");const g=V.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||d]=Bu(f))}const c=(f,d)=>V.forEach(f,(h,m)=>s(h,m,d));if(V.isPlainObject(n)||n instanceof this.constructor)c(n,i);else if(V.isString(n)&&(n=n.trim())&&!r4(n))c(t4(n),i);else if(V.isObject(n)&&V.isIterable(n)){let f={},d,h;for(const m of n){if(!V.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[h=m[0]]=(d=f[h])?V.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}c(f,i)}else n!=null&&s(i,n,l);return this}get(n,i){if(n=Lo(n),n){const l=V.findKey(this,n);if(l){const o=this[l];if(!i)return o;if(i===!0)return n4(o);if(V.isFunction(i))return i.call(this,o,l);if(V.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=Lo(n),n){const l=V.findKey(this,n);return!!(l&&this[l]!==void 0&&(!i||Kd(this,this[l],l,i)))}return!1}delete(n,i){const l=this;let o=!1;function s(c){if(c=Lo(c),c){const f=V.findKey(l,c);f&&(!i||Kd(l,l[f],f,i))&&(delete l[f],o=!0)}}return V.isArray(n)?n.forEach(s):s(n),o}clear(n){const i=Object.keys(this);let l=i.length,o=!1;for(;l--;){const s=i[l];(!n||Kd(this,this[s],s,n,!0))&&(delete this[s],o=!0)}return o}normalize(n){const i=this,l={};return V.forEach(this,(o,s)=>{const c=V.findKey(l,s);if(c){i[c]=Bu(o),delete i[s];return}const f=n?i4(s):String(s).trim();f!==s&&delete i[s],i[f]=Bu(o),l[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return V.forEach(this,(l,o)=>{l!=null&&l!==!1&&(i[o]=n&&V.isArray(l)?l.join(", "):l)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
53
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const l=new this(n);return i.forEach(o=>l.set(o)),l}static accessor(n){const l=(this[u1]=this[u1]={accessors:{}}).accessors,o=this.prototype;function s(c){const f=Lo(c);l[f]||(l4(o,c),l[f]=!0)}return V.isArray(n)?n.forEach(s):s(n),this}};bn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(bn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(l){this[i]=l}}});V.freezeMethods(bn);function Xd(e,n){const i=this||is,l=n||i,o=bn.from(l.headers);let s=l.data;return V.forEach(e,function(f){s=f.call(i,s,o.normalize(),n?n.status:void 0)}),o.normalize(),s}function Ov(e){return!!(e&&e.__CANCEL__)}function Ra(e,n,i){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,n,i),this.name="CanceledError"}V.inherits(Ra,Ae,{__CANCEL__:!0});function Rv(e,n,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?e(i):n(new Ae("Request failed with status code "+i.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function a4(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function o4(e,n){e=e||10;const i=new Array(e),l=new Array(e);let o=0,s=0,c;return n=n!==void 0?n:1e3,function(d){const h=Date.now(),m=l[s];c||(c=h),i[o]=d,l[o]=h;let g=s,x=0;for(;g!==o;)x+=i[g++],g=g%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),h-c<n)return;const v=m&&h-m;return v?Math.round(x*1e3/v):void 0}}function s4(e,n){let i=0,l=1e3/n,o,s;const c=(h,m=Date.now())=>{i=m,o=null,s&&(clearTimeout(s),s=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),g=m-i;g>=l?c(h,m):(o=h,s||(s=setTimeout(()=>{s=null,c(o)},l-g)))},()=>o&&c(o)]}const Ju=(e,n,i=3)=>{let l=0;const o=o4(50,250);return s4(s=>{const c=s.loaded,f=s.lengthComputable?s.total:void 0,d=c-l,h=o(d),m=c<=f;l=c;const g={loaded:c,total:f,progress:f?c/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&m?(f-c)/h:void 0,event:s,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(g)},i)},c1=(e,n)=>{const i=e!=null;return[l=>n[0]({lengthComputable:i,total:e,loaded:l}),n[1]]},f1=e=>(...n)=>V.asap(()=>e(...n)),u4=en.hasStandardBrowserEnv?((e,n)=>i=>(i=new URL(i,en.origin),e.protocol===i.protocol&&e.host===i.host&&(n||e.port===i.port)))(new URL(en.origin),en.navigator&&/(msie|trident)/i.test(en.navigator.userAgent)):()=>!0,c4=en.hasStandardBrowserEnv?{write(e,n,i,l,o,s){const c=[e+"="+encodeURIComponent(n)];V.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),V.isString(l)&&c.push("path="+l),V.isString(o)&&c.push("domain="+o),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function d4(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Nv(e,n,i){let l=!f4(n);return e&&(l||i==!1)?d4(e,n):n}const d1=e=>e instanceof bn?{...e}:e;function yl(e,n){n=n||{};const i={};function l(h,m,g,x){return V.isPlainObject(h)&&V.isPlainObject(m)?V.merge.call({caseless:x},h,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function o(h,m,g,x){if(V.isUndefined(m)){if(!V.isUndefined(h))return l(void 0,h,g,x)}else return l(h,m,g,x)}function s(h,m){if(!V.isUndefined(m))return l(void 0,m)}function c(h,m){if(V.isUndefined(m)){if(!V.isUndefined(h))return l(void 0,h)}else return l(void 0,m)}function f(h,m,g){if(g in n)return l(h,m);if(g in e)return l(void 0,h)}const d={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(h,m,g)=>o(d1(h),d1(m),g,!0)};return V.forEach(Object.keys(Object.assign({},e,n)),function(m){const g=d[m]||o,x=g(e[m],n[m],m);V.isUndefined(x)&&g!==f||(i[m]=x)}),i}const jv=e=>{const n=yl({},e);let{data:i,withXSRFToken:l,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:f}=n;n.headers=c=bn.from(c),n.url=Tv(Nv(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let d;if(V.isFormData(i)){if(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((d=c.getContentType())!==!1){const[h,...m]=d?d.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...m].join("; "))}}if(en.hasStandardBrowserEnv&&(l&&V.isFunction(l)&&(l=l(n)),l||l!==!1&&u4(n.url))){const h=o&&s&&c4.read(s);h&&c.set(o,h)}return n},h4=typeof XMLHttpRequest<"u",p4=h4&&function(e){return new Promise(function(i,l){const o=jv(e);let s=o.data;const c=bn.from(o.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=o,m,g,x,v,w;function T(){v&&v(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function A(){if(!_)return;const R=bn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),D={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:R,config:e,request:_};Rv(function($){i($),T()},function($){l($),T()},D),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(l(new Ae("Request aborted",Ae.ECONNABORTED,e,_)),_=null)},_.onerror=function(){l(new Ae("Network Error",Ae.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const D=o.transitional||Av;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),l(new Ae(z,D.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,_)),_=null},s===void 0&&c.setContentType(null),"setRequestHeader"in _&&V.forEach(c.toJSON(),function(z,D){_.setRequestHeader(D,z)}),V.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),f&&f!=="json"&&(_.responseType=o.responseType),h&&([x,w]=Ju(h,!0),_.addEventListener("progress",x)),d&&_.upload&&([g,v]=Ju(d),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(m=R=>{_&&(l(!R||R.type?new Ra(null,e,_):R),_.abort(),_=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const N=a4(o.url);if(N&&en.protocols.indexOf(N)===-1){l(new Ae("Unsupported protocol "+N+":",Ae.ERR_BAD_REQUEST,e));return}_.send(s||null)})},m4=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let l=new AbortController,o;const s=function(h){if(!o){o=!0,f();const m=h instanceof Error?h:this.reason;l.abort(m instanceof Ae?m:new Ra(m instanceof Error?m.message:m))}};let c=n&&setTimeout(()=>{c=null,s(new Ae(`timeout ${n} of ms exceeded`,Ae.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(s):h.removeEventListener("abort",s)}),e=null)};e.forEach(h=>h.addEventListener("abort",s));const{signal:d}=l;return d.unsubscribe=()=>V.asap(f),d}},y4=function*(e,n){let i=e.byteLength;if(i<n){yield e;return}let l=0,o;for(;l<i;)o=l+n,yield e.slice(l,o),l=o},g4=async function*(e,n){for await(const i of b4(e))yield*y4(i,n)},b4=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:i,value:l}=await n.read();if(i)break;yield l}}finally{await n.cancel()}},h1=(e,n,i,l)=>{const o=g4(e,n);let s=0,c,f=d=>{c||(c=!0,l&&l(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await o.next();if(h){f(),d.close();return}let g=m.byteLength;if(i){let x=s+=g;i(x)}d.enqueue(new Uint8Array(m))}catch(h){throw f(h),h}},cancel(d){return f(d),o.return()}},{highWaterMark:2})},yc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dv=yc&&typeof ReadableStream=="function",v4=yc&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mv=(e,...n)=>{try{return!!e(...n)}catch{return!1}},x4=Dv&&Mv(()=>{let e=!1;const n=new Request(en.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),p1=64*1024,Lh=Dv&&Mv(()=>V.isReadableStream(new Response("").body)),Wu={stream:Lh&&(e=>e.body)};yc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Wu[n]&&(Wu[n]=V.isFunction(e[n])?i=>i[n]():(i,l)=>{throw new Ae(`Response type '${n}' is not supported`,Ae.ERR_NOT_SUPPORT,l)})})})(new Response);const w4=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(en.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await v4(e)).byteLength},S4=async(e,n)=>{const i=V.toFiniteNumber(e.getContentLength());return i??w4(n)},C4=yc&&(async e=>{let{url:n,method:i,data:l,signal:o,cancelToken:s,timeout:c,onDownloadProgress:f,onUploadProgress:d,responseType:h,headers:m,withCredentials:g="same-origin",fetchOptions:x}=jv(e);h=h?(h+"").toLowerCase():"text";let v=m4([o,s&&s.toAbortSignal()],c),w;const T=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let _;try{if(d&&x4&&i!=="get"&&i!=="head"&&(_=await S4(m,l))!==0){let D=new Request(n,{method:"POST",body:l,duplex:"half"}),L;if(V.isFormData(l)&&(L=D.headers.get("content-type"))&&m.setContentType(L),D.body){const[$,ee]=c1(_,Ju(f1(d)));l=h1(D.body,p1,$,ee)}}V.isString(g)||(g=g?"include":"omit");const A="credentials"in Request.prototype;w=new Request(n,{...x,signal:v,method:i.toUpperCase(),headers:m.normalize().toJSON(),body:l,duplex:"half",credentials:A?g:void 0});let N=await fetch(w);const R=Lh&&(h==="stream"||h==="response");if(Lh&&(f||R&&T)){const D={};["status","statusText","headers"].forEach(ie=>{D[ie]=N[ie]});const L=V.toFiniteNumber(N.headers.get("content-length")),[$,ee]=f&&c1(L,Ju(f1(f),!0))||[];N=new Response(h1(N.body,p1,$,()=>{ee&&ee(),T&&T()}),D)}h=h||"text";let z=await Wu[V.findKey(Wu,h)||"text"](N,e);return!R&&T&&T(),await new Promise((D,L)=>{Rv(D,L,{data:z,headers:bn.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:w})})}catch(A){throw T&&T(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Ae("Network Error",Ae.ERR_NETWORK,e,w),{cause:A.cause||A}):Ae.from(A,A&&A.code,e,w)}}),zh={http:B3,xhr:p4,fetch:C4};V.forEach(zh,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const m1=e=>`- ${e}`,E4=e=>V.isFunction(e)||e===null||e===!1,Lv={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:n}=e;let i,l;const o={};for(let s=0;s<n;s++){i=e[s];let c;if(l=i,!E4(i)&&(l=zh[(c=String(i)).toLowerCase()],l===void 0))throw new Ae(`Unknown adapter '${c}'`);if(l)break;o[c||"#"+s]=l}if(!l){const s=Object.entries(o).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
54
+ `+s.map(m1).join(`
55
+ `):" "+m1(s[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return l},adapters:zh};function Zd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ra(null,e)}function y1(e){return Zd(e),e.headers=bn.from(e.headers),e.data=Xd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lv.getAdapter(e.adapter||is.adapter)(e).then(function(l){return Zd(e),l.data=Xd.call(e,e.transformResponse,l),l.headers=bn.from(l.headers),l},function(l){return Ov(l)||(Zd(e),l&&l.response&&(l.response.data=Xd.call(e,e.transformResponse,l.response),l.response.headers=bn.from(l.response.headers))),Promise.reject(l)})}const zv="1.9.0",gc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{gc[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});const g1={};gc.transitional=function(n,i,l){function o(s,c){return"[Axios v"+zv+"] Transitional option '"+s+"'"+c+(l?". "+l:"")}return(s,c,f)=>{if(n===!1)throw new Ae(o(c," has been removed"+(i?" in "+i:"")),Ae.ERR_DEPRECATED);return i&&!g1[c]&&(g1[c]=!0,console.warn(o(c," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(s,c,f):!0}};gc.spelling=function(n){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${n}`),!0)};function k4(e,n,i){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const l=Object.keys(e);let o=l.length;for(;o-- >0;){const s=l[o],c=n[s];if(c){const f=e[s],d=f===void 0||c(f,s,e);if(d!==!0)throw new Ae("option "+s+" must be "+d,Ae.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Ae("Unknown option "+s,Ae.ERR_BAD_OPTION)}}const qu={assertOptions:k4,validators:gc},vr=qu.validators;let hl=class{constructor(n){this.defaults=n||{},this.interceptors={request:new s1,response:new s1}}async request(n,i){try{return await this._request(n,i)}catch(l){if(l instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{l.stack?s&&!String(l.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(l.stack+=`
56
+ `+s):l.stack=s}catch{}}throw l}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=yl(this.defaults,i);const{transitional:l,paramsSerializer:o,headers:s}=i;l!==void 0&&qu.assertOptions(l,{silentJSONParsing:vr.transitional(vr.boolean),forcedJSONParsing:vr.transitional(vr.boolean),clarifyTimeoutError:vr.transitional(vr.boolean)},!1),o!=null&&(V.isFunction(o)?i.paramsSerializer={serialize:o}:qu.assertOptions(o,{encode:vr.function,serialize:vr.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),qu.assertOptions(i,{baseUrl:vr.spelling("baseURL"),withXsrfToken:vr.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=s&&V.merge(s.common,s[i.method]);s&&V.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),i.headers=bn.concat(c,s);const f=[];let d=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(i)===!1||(d=d&&T.synchronous,f.unshift(T.fulfilled,T.rejected))});const h=[];this.interceptors.response.forEach(function(T){h.push(T.fulfilled,T.rejected)});let m,g=0,x;if(!d){const w=[y1.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,h),x=w.length,m=Promise.resolve(i);g<x;)m=m.then(w[g++],w[g++]);return m}x=f.length;let v=i;for(g=0;g<x;){const w=f[g++],T=f[g++];try{v=w(v)}catch(_){T.call(this,_);break}}try{m=y1.call(this,v)}catch(w){return Promise.reject(w)}for(g=0,x=h.length;g<x;)m=m.then(h[g++],h[g++]);return m}getUri(n){n=yl(this.defaults,n);const i=Nv(n.baseURL,n.url,n.allowAbsoluteUrls);return Tv(i,n.params,n.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(n){hl.prototype[n]=function(i,l){return this.request(yl(l||{},{method:n,url:i,data:(l||{}).data}))}});V.forEach(["post","put","patch"],function(n){function i(l){return function(s,c,f){return this.request(yl(f||{},{method:n,headers:l?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}hl.prototype[n]=i(),hl.prototype[n+"Form"]=i(!0)});let T4=class Uv{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const l=this;this.promise.then(o=>{if(!l._listeners)return;let s=l._listeners.length;for(;s-- >0;)l._listeners[s](o);l._listeners=null}),this.promise.then=o=>{let s;const c=new Promise(f=>{l.subscribe(f),s=f}).then(o);return c.cancel=function(){l.unsubscribe(s)},c},n(function(s,c,f){l.reason||(l.reason=new Ra(s,c,f),i(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const n=new AbortController,i=l=>{n.abort(l)};return this.subscribe(i),n.signal.unsubscribe=()=>this.unsubscribe(i),n.signal}static source(){let n;return{token:new Uv(function(o){n=o}),cancel:n}}};function A4(e){return function(i){return e.apply(null,i)}}function _4(e){return V.isObject(e)&&e.isAxiosError===!0}const Uh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uh).forEach(([e,n])=>{Uh[n]=e});function Bv(e){const n=new hl(e),i=pv(hl.prototype.request,n);return V.extend(i,hl.prototype,n,{allOwnKeys:!0}),V.extend(i,n,null,{allOwnKeys:!0}),i.create=function(o){return Bv(yl(e,o))},i}const vt=Bv(is);vt.Axios=hl;vt.CanceledError=Ra;vt.CancelToken=T4;vt.isCancel=Ov;vt.VERSION=zv;vt.toFormData=mc;vt.AxiosError=Ae;vt.Cancel=vt.CanceledError;vt.all=function(n){return Promise.all(n)};vt.spread=A4;vt.isAxiosError=_4;vt.mergeConfig=yl;vt.AxiosHeaders=bn;vt.formToJSON=e=>_v(V.isHTMLForm(e)?new FormData(e):e);vt.getAdapter=Lv.getAdapter;vt.HttpStatusCode=Uh;vt.default=vt;const{Axios:U9,AxiosError:O4,CanceledError:B9,isCancel:q9,CancelToken:H9,VERSION:F9,all:Q9,Cancel:P9,isAxiosError:wp,spread:I9,toFormData:V9,AxiosHeaders:$9,HttpStatusCode:Y9,formToJSON:G9,getAdapter:K9,mergeConfig:X9}=vt,Bh="__access_token__",qv=()=>{try{const e=localStorage.getItem(Bh);return e||void 0}catch{return}},Jd=e=>{e?localStorage.setItem(Bh,e):localStorage.removeItem(Bh)},At=new QE({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(e,n)=>{var i;return wp(n)&&((i=n.response)==null?void 0:i.status)===404?!1:e<3}}}}),R4=()=>vc.post("/auth/logout"),N4=async()=>{const{data:e}=await vc.post("/auth/refresh");return e.data.accessToken},j4=async()=>{const{data:e}=await vc.post("/auth/login");return e.data.accessToken},Wd=()=>{At.invalidateQueries({queryKey:["accessToken"]})},bc=(()=>{let e=Promise.resolve(qv()),n=!1;return{get:async()=>e.then(s=>(Wd(),s)),refresh:()=>(n||(n=!0,e=N4().then(s=>(Jd(s),s)).catch(()=>{Jd(void 0),R4().then(()=>{window.location.reload()})}).finally(()=>{n=!1,Wd()})),e),login:()=>(n||(n=!0,e=j4().then(s=>(Jd(s),s)).finally(()=>{n=!1,Wd()})),e)}})(),Hv=location.hostname.includes("app.dataramen.xyz")?"http://localhost:4466/api":"/api",pt=vt.create({baseURL:Hv,withCredentials:!0});pt.interceptors.request.use(async e=>{const n=await bc.get();return n&&(e.headers.Authorization=`Bearer ${n}`),e});pt.interceptors.response.use(e=>e,e=>(wp(e)&&e.status===401&&bc.refresh(),e));const vc=vt.create({baseURL:Hv,withCredentials:!0}),ei="data-sources",Fv="teams",Ui="auth-user",D4=e=>Kn({queryKey:["project","team",e],queryFn:async()=>{const{data:n}=await pt.get(`/project/team/${e}/files`);return n.data},enabled:!!e}),ls=e=>{const n=["project","team"];return At.invalidateQueries(n)},M4=e=>{const n=["trash","team"];return At.invalidateQueries(n)},L4=(e,n)=>Kn({queryKey:["project",n,"tables",e],queryFn:async()=>{const{data:i}=await pt.get(`/project/team/${n}/query`,{params:{size:20,search:e}});return i.data},enabled:!!n,staleTime:0,keepPreviousData:!0}),z4=(e,n)=>{try{plausible(e,n?{props:n}:void 0)}catch{}},U4=()=>{try{plausible("pageview")}catch{}},ut={event:z4,pageView:U4},xc=e=>Kn([ei,e],async()=>{const{data:n}=await pt.get("/data-sources/"+e);return n.data},{enabled:!!e}),Qv=e=>Kn({queryKey:[ei,e.teamId],queryFn:async()=>{const{data:n}=await pt.get("/data-sources",{params:e});return n.data},enabled:e.teamId!==void 0}),Na=e=>Kn({queryKey:[ei,e,"inspections"],queryFn:async()=>{const{data:n}=await pt.get(`/data-sources/${e}/inspections`);return n.data},enabled:!!e}),B4=()=>Ar(async e=>{const{data:n}=await pt.post("/data-sources",e);return n.data},{onSuccess:()=>{At.invalidateQueries([ei]),ls(),ut.event("Datasource created")},onError:()=>{ut.event("Datasource creation failed")}}),q4=()=>Ar({mutationFn:async({dataSource:e,id:n})=>{const{data:i}=await pt.put(`/data-sources/${n}`,e);return i.data},onSuccess:()=>{At.invalidateQueries([ei]),ls()}}),Pv=()=>Ar({mutationFn:async e=>{await pt.post(`/data-sources/${e}/inspect`)},onSuccess:()=>{At.invalidateQueries([ei]),ut.event("Datasource inspected")}}),H4=()=>Ar({mutationFn:async e=>{await pt.delete(`/data-sources/${e}`)},onSuccess:()=>{At.invalidateQueries([ei]),ls(),ut.event("Datasource deleted")}}),Iv=()=>Kn(["accessToken"],bc.get),Xn=()=>{const{data:e}=Iv();return Kn([Ui],async()=>{const{data:n}=await pt.get("/users");return n.data},{enabled:!!e,retry:(n,i)=>wp(i)&&i.code==="ERR_NETWORK"?!1:n<3})},F4=()=>Ar(async e=>{const{data:n}=await pt.put("/users/team",{teamId:e});return n.data},{onSuccess:e=>{At.setQueryData([Ui],e)}});function Q4(e){const n=[];for(const i of e)for(const l of i.columns)l.ref&&(n.push({id:`${i.tableName}->${l.ref.table}.${l.ref.field}`,name:`${i.tableName} in ${l.ref.table}`,where:`${i.tableName}.${l.name} = ${l.ref.table}.${l.ref.field}`,on:{fromTable:l.ref.table,toTable:i.tableName,fromColumn:l.ref.field,toColumn:l.name}}),n.push({id:`${l.ref.table}->${i.tableName}.${l.name}`,name:`${l.ref.table} in ${i.tableName}`,where:`${l.ref.table}.${l.ref.field} = ${i.tableName}.${l.name}`,on:{fromTable:i.tableName,toTable:l.ref.table,fromColumn:l.name,toColumn:l.ref.field}}));return n}const P4=e=>Kn({queryKey:["hooks",e],queryFn:async()=>{const n=await At.fetchQuery({queryKey:[ei,e,"inspections"],queryFn:async()=>{const{data:i}=await pt.get(`/data-sources/${e}/inspections`);return i.data}});return Q4(n)},enabled:!!e}),Sp=[{value:"=",label:"equals"},{value:"<>",label:"not equal"},{value:">",label:"greater than"},{value:">=",label:"greater than or equal"},{value:"<",label:"less than"},{value:"<=",label:"less than or equal"},{value:"LIKE",label:"contains"},{value:"NOT LIKE",label:"not contains"},{value:"IN",label:"in list"},{value:"NOT IN",label:"not in list"},{value:"IS NULL",label:"is null"},{value:"IS NOT NULL",label:"is not null"}],Po=Sp.reduce((e,n)=>(e[n.value]=n.label,e),{}),b1=Sp.reduce((e,n)=>(e[n.label]=n.value,e),{}),ja=e=>e.map(n=>({label:Po[n],value:n})),I4=ja(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),V4=ja(["=","<>","LIKE","NOT LIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);ja(["=","<>","IS NULL","IS NOT NULL"]);const $4=ja(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);ja(["IS NULL","IS NOT NULL"]);ja(["IN","NOT IN"]);const Vv=e=>e!=="IS NULL"&&e!=="IS NOT NULL",Y4=(e,n)=>Vv(e)?e==="IN"||e==="NOT IN"?n.split(",").map(i=>({value:i.trim(),isColumn:!1})):[{value:n,isColumn:!1}]:[],$v=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],G4=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],K4=["date","time","datetime","timestamp","year","date","time","time without time zone","time with time zone","timestamp","timestamp without time zone","timestamp with time zone","interval"],X4=["date","datetime","timestamp","timestamptz"].reduce((e,n)=>(e[n]=!0,e),{}),zi=e=>e.fn?e.distinct===!0?`${e.fn} distinct ${e.value}`:`${e.fn} ${e.value}`:e.value;function Z4(e,n){if(!e||!n)return{};const i=new Set;for(const o of n)o.table&&i.add(o.table);const l={};for(const o of i){const s=e.find(c=>c.tableName===o);if(s){l[o]=[];const c=s.columns.filter(f=>f.isPrimary);for(const f of c)if(n.find(h=>h.table===o&&h.column===f.name))l[o].push(f.name);else{delete l[o];break}}}return l}function J4(e,n,i){const{data:l}=P4(n),{data:o}=Na(n);return E.useMemo(()=>{const s=Z4(o,e==null?void 0:e.columns);return{name:i,hooks:(()=>{const c=[];if(!l||!e||!e.columns)return c;for(const f of l)(e.tables.includes(f.on.toTable)||e.tables.includes(f.on.fromTable))&&c.push(f);return c})(),availableJoins:(()=>{const c=[];if(!l||!e||!e.columns)return c;for(const f of l)!e.tables.includes(f.on.toTable)&&e.tables.includes(f.on.fromTable)&&c.push(f);return c})(),allColumns:(e==null?void 0:e.allColumns)||[],dataSourceId:n,entities:Object.keys(s),getValue:(c,f)=>{var m;const d=zi(f),h=(m=e==null?void 0:e.columns)==null?void 0:m.findIndex(g=>g.alias===d);if(h!=null&&h>-1)return c[h]},getEntityKey:(c,f)=>s[c].reduce((d,h)=>{var g;const m=(g=e==null?void 0:e.columns)==null?void 0:g.findIndex(x=>x.column===h&&x.table===c);return m!=null&&m>-1&&d.push([h,f[m]]),d},[]),getColumnType:c=>{const f=e==null?void 0:e.allColumns.find(d=>d.full===c);if(f)return f.type}}},[e,n,l,o,i])}function W4(e,n){return E.useMemo(()=>({state:e,setState:n}),[e,n])}function ga(e){return{dataSourceId:e.dataSourceId||"",table:e.table||"",filters:(e==null?void 0:e.filters)||[],joins:(e==null?void 0:e.joins)??[],orderBy:(e==null?void 0:e.orderBy)??[],page:(e==null?void 0:e.page)||0,size:(e==null?void 0:e.size)||50,columns:(e==null?void 0:e.columns)??[],groupBy:(e==null?void 0:e.groupBy)??[],aggregations:(e==null?void 0:e.aggregations)??[]}}const cr=e=>{const n=new Set;let i=e;const l=f=>(n.add(f),()=>n.delete(f)),o=f=>(n.forEach(d=>d(f)),!0),s=f=>{i=typeof f=="function"?f(i):f,o(i)},c=f=>()=>f?f(i):i;return[f=>E.useSyncExternalStore(l,c(f),c(f)),s,{get:()=>i,subscribe:f=>(f(i),l(f))}]};function ek(e,n,i){try{const l=i.getItem(e);if(l)return JSON.parse(l)}catch(l){console.warn("Failed to restore tabs",l)}return n}const Yv=({storage:e=localStorage,localStorageKey:n,initialData:i})=>{const l=cr(ek(n,i,e));return l[2].subscribe(o=>{e.setItem(n,JSON.stringify(o))}),l};let tk={data:""},nk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tk,rk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ik=/\/\*[^]*?\*\/| +/g,v1=/\n+/g,Di=(e,n)=>{let i="",l="",o="";for(let s in e){let c=e[s];s[0]=="@"?s[1]=="i"?i=s+" "+c+";":l+=s[1]=="f"?Di(c,s):s+"{"+Di(c,s[1]=="k"?"":n)+"}":typeof c=="object"?l+=Di(c,n?n.replace(/([^,])+/g,f=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,f):f?f+" "+d:d)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Di.p?Di.p(s,c):s+":"+c+";")}return i+(n&&o?n+"{"+o+"}":o)+l},Kr={},Gv=e=>{if(typeof e=="object"){let n="";for(let i in e)n+=i+Gv(e[i]);return n}return e},lk=(e,n,i,l,o)=>{let s=Gv(e),c=Kr[s]||(Kr[s]=(d=>{let h=0,m=11;for(;h<d.length;)m=101*m+d.charCodeAt(h++)>>>0;return"go"+m})(s));if(!Kr[c]){let d=s!==e?e:(h=>{let m,g,x=[{}];for(;m=rk.exec(h.replace(ik,""));)m[4]?x.shift():m[3]?(g=m[3].replace(v1," ").trim(),x.unshift(x[0][g]=x[0][g]||{})):x[0][m[1]]=m[2].replace(v1," ").trim();return x[0]})(e);Kr[c]=Di(o?{["@keyframes "+c]:d}:d,i?"":"."+c)}let f=i&&Kr.g?Kr.g:null;return i&&(Kr.g=Kr[c]),((d,h,m,g)=>{g?h.data=h.data.replace(g,d):h.data.indexOf(d)===-1&&(h.data=m?d+h.data:h.data+d)})(Kr[c],n,l,f),c},ak=(e,n,i)=>e.reduce((l,o,s)=>{let c=n[s];if(c&&c.call){let f=c(i),d=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=d?"."+d:f&&typeof f=="object"?f.props?"":Di(f,""):f===!1?"":f}return l+o+(c??"")},"");function wc(e){let n=this||{},i=e.call?e(n.p):e;return lk(i.unshift?i.raw?ak(i,[].slice.call(arguments,1),n.p):i.reduce((l,o)=>Object.assign(l,o&&o.call?o(n.p):o),{}):i,nk(n.target),n.g,n.o,n.k)}let Kv,qh,Hh;wc.bind({g:1});let Wr=wc.bind({k:1});function ok(e,n,i,l){Di.p=n,Kv=e,qh=i,Hh=l}function Hi(e,n){let i=this||{};return function(){let l=arguments;function o(s,c){let f=Object.assign({},s),d=f.className||o.className;i.p=Object.assign({theme:qh&&qh()},f),i.o=/ *go\d+/.test(d),f.className=wc.apply(i,l)+(d?" "+d:"");let h=e;return e[0]&&(h=f.as||e,delete f.as),Hh&&h[0]&&Hh(f),Kv(h,f)}return o}}var sk=e=>typeof e=="function",ec=(e,n)=>sk(e)?e(n):e,uk=(()=>{let e=0;return()=>(++e).toString()})(),Xv=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),ck=20,Zv=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,ck)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===n.toast.id?{...s,...n.toast}:s)};case 2:let{toast:i}=n;return Zv(e,{type:e.toasts.find(s=>s.id===i.id)?1:0,toast:i});case 3:let{toastId:l}=n;return{...e,toasts:e.toasts.map(s=>s.id===l||l===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Hu=[],dl={toasts:[],pausedAt:void 0},xl=e=>{dl=Zv(dl,e),Hu.forEach(n=>{n(dl)})},fk={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},dk=(e={})=>{let[n,i]=E.useState(dl),l=E.useRef(dl);E.useEffect(()=>(l.current!==dl&&i(dl),Hu.push(i),()=>{let s=Hu.indexOf(i);s>-1&&Hu.splice(s,1)}),[]);let o=n.toasts.map(s=>{var c,f,d;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((c=e[s.type])==null?void 0:c.removeDelay)||(e==null?void 0:e.removeDelay),duration:s.duration||((f=e[s.type])==null?void 0:f.duration)||(e==null?void 0:e.duration)||fk[s.type],style:{...e.style,...(d=e[s.type])==null?void 0:d.style,...s.style}}});return{...n,toasts:o}},hk=(e,n="blank",i)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...i,id:(i==null?void 0:i.id)||uk()}),as=e=>(n,i)=>{let l=hk(n,e,i);return xl({type:2,toast:l}),l.id},on=(e,n)=>as("blank")(e,n);on.error=as("error");on.success=as("success");on.loading=as("loading");on.custom=as("custom");on.dismiss=e=>{xl({type:3,toastId:e})};on.remove=e=>xl({type:4,toastId:e});on.promise=(e,n,i)=>{let l=on.loading(n.loading,{...i,...i==null?void 0:i.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let s=n.success?ec(n.success,o):void 0;return s?on.success(s,{id:l,...i,...i==null?void 0:i.success}):on.dismiss(l),o}).catch(o=>{let s=n.error?ec(n.error,o):void 0;s?on.error(s,{id:l,...i,...i==null?void 0:i.error}):on.dismiss(l)}),e};var pk=(e,n)=>{xl({type:1,toast:{id:e,height:n}})},mk=()=>{xl({type:5,time:Date.now()})},Io=new Map,yk=1e3,gk=(e,n=yk)=>{if(Io.has(e))return;let i=setTimeout(()=>{Io.delete(e),xl({type:4,toastId:e})},n);Io.set(e,i)},bk=e=>{let{toasts:n,pausedAt:i}=dk(e);E.useEffect(()=>{if(i)return;let s=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let d=(f.duration||0)+f.pauseDuration-(s-f.createdAt);if(d<0){f.visible&&on.dismiss(f.id);return}return setTimeout(()=>on.dismiss(f.id),d)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[n,i]);let l=E.useCallback(()=>{i&&xl({type:6,time:Date.now()})},[i]),o=E.useCallback((s,c)=>{let{reverseOrder:f=!1,gutter:d=8,defaultPosition:h}=c||{},m=n.filter(v=>(v.position||h)===(s.position||h)&&v.height),g=m.findIndex(v=>v.id===s.id),x=m.filter((v,w)=>w<g&&v.visible).length;return m.filter(v=>v.visible).slice(...f?[x+1]:[0,x]).reduce((v,w)=>v+(w.height||0)+d,0)},[n]);return E.useEffect(()=>{n.forEach(s=>{if(s.dismissed)gk(s.id,s.removeDelay);else{let c=Io.get(s.id);c&&(clearTimeout(c),Io.delete(s.id))}})},[n]),{toasts:n,handlers:{updateHeight:pk,startPause:mk,endPause:l,calculateOffset:o}}},vk=Wr`
57
+ from {
58
+ transform: scale(0) rotate(45deg);
59
+ opacity: 0;
60
+ }
61
+ to {
62
+ transform: scale(1) rotate(45deg);
63
+ opacity: 1;
64
+ }`,xk=Wr`
65
+ from {
66
+ transform: scale(0);
67
+ opacity: 0;
68
+ }
69
+ to {
70
+ transform: scale(1);
71
+ opacity: 1;
72
+ }`,wk=Wr`
73
+ from {
74
+ transform: scale(0) rotate(90deg);
75
+ opacity: 0;
76
+ }
77
+ to {
78
+ transform: scale(1) rotate(90deg);
79
+ opacity: 1;
80
+ }`,Sk=Hi("div")`
81
+ width: 20px;
82
+ opacity: 0;
83
+ height: 20px;
84
+ border-radius: 10px;
85
+ background: ${e=>e.primary||"#ff4b4b"};
86
+ position: relative;
87
+ transform: rotate(45deg);
88
+
89
+ animation: ${vk} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
90
+ forwards;
91
+ animation-delay: 100ms;
92
+
93
+ &:after,
94
+ &:before {
95
+ content: '';
96
+ animation: ${xk} 0.15s ease-out forwards;
97
+ animation-delay: 150ms;
98
+ position: absolute;
99
+ border-radius: 3px;
100
+ opacity: 0;
101
+ background: ${e=>e.secondary||"#fff"};
102
+ bottom: 9px;
103
+ left: 4px;
104
+ height: 2px;
105
+ width: 12px;
106
+ }
107
+
108
+ &:before {
109
+ animation: ${wk} 0.15s ease-out forwards;
110
+ animation-delay: 180ms;
111
+ transform: rotate(90deg);
112
+ }
113
+ `,Ck=Wr`
114
+ from {
115
+ transform: rotate(0deg);
116
+ }
117
+ to {
118
+ transform: rotate(360deg);
119
+ }
120
+ `,Ek=Hi("div")`
121
+ width: 12px;
122
+ height: 12px;
123
+ box-sizing: border-box;
124
+ border: 2px solid;
125
+ border-radius: 100%;
126
+ border-color: ${e=>e.secondary||"#e0e0e0"};
127
+ border-right-color: ${e=>e.primary||"#616161"};
128
+ animation: ${Ck} 1s linear infinite;
129
+ `,kk=Wr`
130
+ from {
131
+ transform: scale(0) rotate(45deg);
132
+ opacity: 0;
133
+ }
134
+ to {
135
+ transform: scale(1) rotate(45deg);
136
+ opacity: 1;
137
+ }`,Tk=Wr`
138
+ 0% {
139
+ height: 0;
140
+ width: 0;
141
+ opacity: 0;
142
+ }
143
+ 40% {
144
+ height: 0;
145
+ width: 6px;
146
+ opacity: 1;
147
+ }
148
+ 100% {
149
+ opacity: 1;
150
+ height: 10px;
151
+ }`,Ak=Hi("div")`
152
+ width: 20px;
153
+ opacity: 0;
154
+ height: 20px;
155
+ border-radius: 10px;
156
+ background: ${e=>e.primary||"#61d345"};
157
+ position: relative;
158
+ transform: rotate(45deg);
159
+
160
+ animation: ${kk} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
161
+ forwards;
162
+ animation-delay: 100ms;
163
+ &:after {
164
+ content: '';
165
+ box-sizing: border-box;
166
+ animation: ${Tk} 0.2s ease-out forwards;
167
+ opacity: 0;
168
+ animation-delay: 200ms;
169
+ position: absolute;
170
+ border-right: 2px solid;
171
+ border-bottom: 2px solid;
172
+ border-color: ${e=>e.secondary||"#fff"};
173
+ bottom: 6px;
174
+ left: 6px;
175
+ height: 10px;
176
+ width: 6px;
177
+ }
178
+ `,_k=Hi("div")`
179
+ position: absolute;
180
+ `,Ok=Hi("div")`
181
+ position: relative;
182
+ display: flex;
183
+ justify-content: center;
184
+ align-items: center;
185
+ min-width: 20px;
186
+ min-height: 20px;
187
+ `,Rk=Wr`
188
+ from {
189
+ transform: scale(0.6);
190
+ opacity: 0.4;
191
+ }
192
+ to {
193
+ transform: scale(1);
194
+ opacity: 1;
195
+ }`,Nk=Hi("div")`
196
+ position: relative;
197
+ transform: scale(0.6);
198
+ opacity: 0.4;
199
+ min-width: 20px;
200
+ animation: ${Rk} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
+ forwards;
202
+ `,jk=({toast:e})=>{let{icon:n,type:i,iconTheme:l}=e;return n!==void 0?typeof n=="string"?E.createElement(Nk,null,n):n:i==="blank"?null:E.createElement(Ok,null,E.createElement(Ek,{...l}),i!=="loading"&&E.createElement(_k,null,i==="error"?E.createElement(Sk,{...l}):E.createElement(Ak,{...l})))},Dk=e=>`
203
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
204
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205
+ `,Mk=e=>`
206
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
208
+ `,Lk="0%{opacity:0;} 100%{opacity:1;}",zk="0%{opacity:1;} 100%{opacity:0;}",Uk=Hi("div")`
209
+ display: flex;
210
+ align-items: center;
211
+ background: #fff;
212
+ color: #363636;
213
+ line-height: 1.3;
214
+ will-change: transform;
215
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
216
+ max-width: 350px;
217
+ pointer-events: auto;
218
+ padding: 8px 10px;
219
+ border-radius: 8px;
220
+ `,Bk=Hi("div")`
221
+ display: flex;
222
+ justify-content: center;
223
+ margin: 4px 10px;
224
+ color: inherit;
225
+ flex: 1 1 auto;
226
+ white-space: pre-line;
227
+ `,qk=(e,n)=>{let i=e.includes("top")?1:-1,[l,o]=Xv()?[Lk,zk]:[Dk(i),Mk(i)];return{animation:n?`${Wr(l)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Wr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Hk=E.memo(({toast:e,position:n,style:i,children:l})=>{let o=e.height?qk(e.position||n||"top-center",e.visible):{opacity:0},s=E.createElement(jk,{toast:e}),c=E.createElement(Bk,{...e.ariaProps},ec(e.message,e));return E.createElement(Uk,{className:e.className,style:{...o,...i,...e.style}},typeof l=="function"?l({icon:s,message:c}):E.createElement(E.Fragment,null,s,c))});ok(E.createElement);var Fk=({id:e,className:n,style:i,onHeightUpdate:l,children:o})=>{let s=E.useCallback(c=>{if(c){let f=()=>{let d=c.getBoundingClientRect().height;l(e,d)};f(),new MutationObserver(f).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,l]);return E.createElement("div",{ref:s,className:n,style:i},o)},Qk=(e,n)=>{let i=e.includes("top"),l=i?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Xv()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...l,...o}},Pk=wc`
228
+ z-index: 9999;
229
+ > * {
230
+ pointer-events: auto;
231
+ }
232
+ `,ku=16,Ik=({reverseOrder:e,position:n="top-center",toastOptions:i,gutter:l,children:o,containerStyle:s,containerClassName:c})=>{let{toasts:f,handlers:d}=bk(i);return E.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:ku,left:ku,right:ku,bottom:ku,pointerEvents:"none",...s},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},f.map(h=>{let m=h.position||n,g=d.calculateOffset(h,{reverseOrder:e,gutter:l,defaultPosition:n}),x=Qk(m,g);return E.createElement(Fk,{id:h.id,key:h.id,onHeightUpdate:d.updateHeight,className:h.visible?Pk:"",style:x},h.type==="custom"?ec(h.message,h):o?o(h):E.createElement(Hk,{toast:h,position:m}))}))},Gn=on;const[Sc,Cc,Ec]=Yv({initialData:[],localStorageKey:"open-tabs__v1"}),[Vk,Fh,$k]=Yv({initialData:"",localStorageKey:"active-tabs",storage:sessionStorage}),Xo=(e,n,i=!1)=>{Gk();const l=Yk({label:e,type:"explorer",id:Date.now().toString(36),options:ga(n)});i&&Cp(l.id)},Qh=e=>{const n=$k.get();if(Cc(i=>i.filter(l=>l.id!==e)),n===e){const i=Ec.get();i.length>0?Fh(i[0].id):Fh("")}},Cp=e=>{Fh(e)},Jv=(e,n)=>{Cc(i=>i.map(l=>l.id===e?{...l,label:n}:l))};function Yk(e){return Cc(n=>n?[...n,e]:[e]),e}const x1=20;function Gk(){if(Ec.get().length>=x1){const n=`Maximum ${x1} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw Gn.error(n),new Error(n)}}const Kk="_alert_ac56t_2",Xk="_info_ac56t_2",Zk="_danger_ac56t_2",Jk="_success_ac56t_2",Wk="_warning_ac56t_2",eT="_dark_ac56t_2",la={alert:Kk,info:Xk,danger:Zk,success:Jk,warning:Wk,dark:eT};function Wv(e){var n,i,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(i=Wv(e[n]))&&(l&&(l+=" "),l+=i)}else for(i in e)e[i]&&(l&&(l+=" "),l+=i);return l}function ke(){for(var e,n,i=0,l="",o=arguments.length;i<o;i++)(e=arguments[i])&&(n=Wv(e))&&(l&&(l+=" "),l+=n);return l}const Sr=({variant:e,noRounded:n,className:i,children:l,...o})=>b.jsx("div",{className:ke(la.alert,!n&&"rounded-lg",(e==="info"||!e)&&la.info,e==="danger"&&la.danger,e==="dark"&&la.dark,e==="warning"&&la.warning,e==="success"&&la.success,i),role:"alert",...o,children:l}),tT="_data-store_15ui9_2",nT="_tab_15ui9_2",ex={dataStore:tT,tab:nT},Ph={settings:{path:"settings",name:"⚙️ Settings"}},Tt={home:{path:"/",name:"🏠 Home"},workbench:{path:"/workbench"}},rT=()=>{const e=Sc(),n=qi(),i=s=>{Cp(s.currentTarget.dataset.tabId),n(Tt.workbench.path),ut.event("On open workbench tab [Home]")},l=s=>{s.button===1&&Qh(s.currentTarget.dataset.tabId)},o=()=>{n(Tt.workbench.path),ut.event("On open workbench [Home]")};return b.jsxs("div",{className:"mt-4 card-white",children:[b.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[b.jsx("span",{children:"🛠️ Workbench"}),b.jsx("button",{className:"hotkey",onClick:o,children:"W"})]}),b.jsx("p",{className:"text-sm text-gray-700",children:"Continue your work from where you left."}),b.jsx("div",{className:"flex gap-1 mt-4 flex-wrap",children:e.map(s=>b.jsx("button",{className:ex.tab,onClick:i,"data-tab-id":s.id,onAuxClick:l,"data-tooltip-id":"default","data-tooltip-content":s.label,children:s.label},s.id))})]})},tx=async e=>At.fetchQuery({queryKey:["query",e],queryFn:async()=>{const{data:n}=await pt.get("/queries/"+e);return n.data}}),[iT,eh,lT]=cr(void 0),aT=async()=>new Promise(e=>{eh({onCancel:()=>{eh(void 0),e(void 0)},onConfirm:(n,i,l)=>{eh(void 0),e({dsId:l,id:i,type:n})}})}),Ep=e=>{const n=qi();return E.useCallback(()=>{lT.get()||(aT().then(l=>{(l==null?void 0:l.type)==="table"?(Xo(l.id,ga({table:l.id,dataSourceId:l.dsId}),!0),location.pathname!==Tt.workbench.path&&n(Tt.workbench.path)):(l==null?void 0:l.type)==="query"&&tx(l.id).then(o=>{Xo(o.name,ga(o.opts),!0),location.pathname!==Tt.workbench.path&&n(Tt.workbench.path)})}),ut.event(`On open query search [${e}]`))},[n,e])},oT=()=>{const e=Ep("Home");return b.jsxs("button",{className:"mt-4 bg-white p-4 rounded-lg border border-blue-200",onClick:e,children:[b.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[b.jsx("span",{children:"🔎 Start new query"}),b.jsx("span",{className:"hotkey",children:"N"})]}),b.jsx("p",{className:"text-sm text-left text-gray-700 mb-4",children:"Select a table to start from. You will be able to customize your query later."}),b.jsx("p",{className:"cursor-text text-gray-400 bg-gray-50 rounded-lg p-2 w-full text-left border border-gray-200 truncate",children:"Search table or saved query to start exploring"})]})},sT="_input_1ps78_2",uT="_small_1ps78_2",cT="_content_1ps78_2",fT="_form_1ps78_2",dT="_mode-select_1ps78_2",Ze={input:sT,small:uT,content:cT,form:fT,switch:"_switch_1ps78_2",modeSelect:dT},hT="_modal_12mdb_2",pT="_modal-visible_12mdb_2",mT="_modal-invisible_12mdb_2",yT="_backdrop_12mdb_2",gT="_modal-container_12mdb_2",bT="_close-button_12mdb_2",fa={modal:hT,modalVisible:pT,modalInvisible:mT,backdrop:yT,modalContainer:gT,closeButton:bT},kp=()=>{const e=qi(),{search:n}=un();return{open:o=>{const s=new URLSearchParams(n);s.set("modal",o),e({search:s.toString()})},close:()=>{const o=new URLSearchParams(n);o.delete("modal"),e({search:o.toString()})}}},Fi=e=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},E.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144M368 144L144 368"})),nn=({children:e,backdropClose:n,isVisible:i,onClose:l,onClosed:o,noPadding:s=!1,portal:c=!1})=>{const[f,d]=E.useState(!1),h=()=>{n&&l()},m=x=>{i||getComputedStyle(x.currentTarget).opacity==="0"&&(d(!1),o&&o())};E.useEffect(()=>{i&&d(!0)},[i]);const g=b.jsxs("div",{onTransitionEnd:m,className:ke(fa.modal,i?fa.modalVisible:fa.modalInvisible),children:[b.jsx("div",{onClick:h,className:fa.backdrop}),b.jsx("div",{className:ke(fa.modalContainer,s!==!0&&"p-4"),children:f&&e})]});return c?nv.createPortal(g,document.body):g},vT=({children:e,target:n,backdropClose:i})=>{const{search:l}=un(),{close:o}=kp(),s=new URLSearchParams(l),c=n===s.get("modal");return b.jsx(nn,{isVisible:c,backdropClose:i,onClose:o,children:e})},Zn=({onClick:e})=>{const n=E.useRef(e);return n.current=e,E.useEffect(()=>{const i=l=>{var o;l.key==="Escape"&&((o=n.current)==null||o.call(n))};return window.addEventListener("keyup",i),()=>{window.removeEventListener("keyup",i)}},[]),b.jsx("button",{className:fa.closeButton,onClick:e,children:b.jsx(Fi,{width:20,height:20})})},Tp=e=>{const[n,i]=E.useState(e),[l,o]=E.useState([]),s=E.useRef(e),c=E.useCallback((h,m)=>{i(g=>({...g,[h]:m}))},[]),f=E.useCallback(h=>m=>{m.target.type==="checkbox"?c(h,m.target.checked):c(h,m.target.value),o(g=>g.includes(h)?g:[...g,h])},[c]),d=E.useCallback(()=>{i(s.current),o([])},[]);return[n,{set:c,change:f,reset:d,touched:l}]},xT=({form:e,change:n})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database URL"}),b.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database port"}),b.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"User"}),b.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Password"}),b.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database"}),b.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]})]}),wT=({form:e,change:n})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database URL"}),b.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database port"}),b.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"User"}),b.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Password"}),b.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database"}),b.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,Ze.small),children:[b.jsx("label",{children:"Schema"}),b.jsx("input",{value:e.dbSchema,onChange:n("dbSchema"),className:"input"})]})]}),aa=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],ST=({show:e,onClose:n,dbType:i="postgres"})=>{const l=B4(),o=Pv(),{data:s}=Xn(),[c,{change:f,set:d}]=Tp({name:"",dbType:i,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:"",allowInsert:!1,allowUpdate:!1}),h=async()=>{const w=await l.mutateAsync({...c,dbPort:Number(c.dbPort),teamId:s.teamId,ownerId:s.id});await o.mutateAsync(w.id),n(),ut.event("Create Datasource",{dbType:c.dbType})},m=w=>{d("allowInsert",!w),d("allowUpdate",!w)},g=()=>{n(),ut.event("Cancel Datasource")},x=l.isLoading||o.isLoading,v=!c.allowInsert&&!c.allowUpdate;return b.jsxs(nn,{isVisible:e,onClose:g,children:[b.jsx(Zn,{onClick:g}),b.jsxs(Sr,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",b.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),l.isError&&b.jsx(Sr,{variant:"danger",className:"mb-2",children:b.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),l.isLoading&&b.jsx(Sr,{className:"mb-2",variant:"info",children:"Creating connection"}),o.isLoading&&b.jsx(Sr,{className:"mb-2",variant:"info",children:"Inspecting connection"}),b.jsxs("div",{className:Ze.switch,children:[b.jsxs("label",{className:"button tertiary",children:[b.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:c.dbType===aa[0].tag,onChange:()=>d("dbType",aa[0].tag)}),b.jsx("span",{children:aa[0].label})]}),b.jsxs("label",{className:"button tertiary",children:[b.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:c.dbType===aa[1].tag,onChange:()=>d("dbType",aa[1].tag)}),b.jsx("span",{children:aa[1].label})]})]}),b.jsxs("div",{className:"overflow-y-auto mt-2",children:[b.jsx("div",{className:Ze.content,children:b.jsxs("div",{className:Ze.form,children:[b.jsxs("div",{className:ke(Ze.input,"col-span-2"),children:[b.jsx("label",{children:"Name"}),b.jsx("input",{value:c.name,onChange:f("name"),className:"input"})]}),b.jsxs("div",{className:ke(Ze.input,"col-span-2"),children:[b.jsx("label",{children:"Description"}),b.jsx("textarea",{value:c.description,onChange:f("description"),className:"input"})]}),c.dbType==="mysql"&&b.jsx(xT,{form:c,change:f}),c.dbType==="postgres"&&b.jsx(wT,{form:c,change:f})]})}),b.jsxs("div",{className:"mt-4",children:[b.jsxs("label",{className:Ze.modeSelect,children:[b.jsxs("div",{children:[b.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:v,onChange:()=>m(!0)}),b.jsx("span",{className:"text-sm font-semibold",children:"Production mode"})]}),b.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",b.jsx("strong",{children:"forbidden"}),". You won't be able to insert new rows or edit existing data. Tables in this data source are read-only."]})]}),b.jsxs("label",{className:Ze.modeSelect,children:[b.jsxs("div",{children:[b.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:!v,onChange:()=>m(!1)}),b.jsx("span",{className:"text-sm font-semibold",children:"Dev mode"})]}),b.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",b.jsx("strong",{children:"allowed"}),". You will be able to insert new rows and edit existing data."]})]})]})]}),b.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[b.jsx("button",{onClick:g,className:"button tertiary",disabled:x,children:"Cancel"}),b.jsx("button",{onClick:h,className:"button primary",disabled:x,children:"Create"})]})]})},CT=e=>E.createElement("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"m24.129 23.412-.508-.484c-.251-.331-.518-.624-.809-.891l-.005-.004q-.448-.407-.931-.774-.387-.266-1.064-.641c-.371-.167-.661-.46-.818-.824l-.004-.01-.048-.024c.212-.021.406-.06.592-.115l-.023.006.57-.157c.236-.074.509-.122.792-.133h.006c.298-.012.579-.06.847-.139l-.025.006q.194-.048.399-.109t.351-.109v-.169q-.145-.217-.351-.496c-.131-.178-.278-.333-.443-.468l-.005-.004q-.629-.556-1.303-1.076c-.396-.309-.845-.624-1.311-.916l-.068-.04c-.246-.162-.528-.312-.825-.435l-.034-.012q-.448-.182-.883-.399c-.097-.048-.21-.09-.327-.119l-.011-.002c-.117-.024-.217-.084-.29-.169l-.001-.001c-.138-.182-.259-.389-.355-.609l-.008-.02q-.145-.339-.314-.651-.363-.702-.702-1.427t-.651-1.452q-.217-.484-.399-.967c-.134-.354-.285-.657-.461-.942l.013.023c-.432-.736-.863-1.364-1.331-1.961l.028.038c-.463-.584-.943-1.106-1.459-1.59l-.008-.007c-.509-.478-1.057-.934-1.632-1.356l-.049-.035q-.896-.651-1.96-1.282c-.285-.168-.616-.305-.965-.393l-.026-.006-1.113-.278-.629-.048q-.314-.024-.629-.024c-.148-.078-.275-.171-.387-.279-.11-.105-.229-.204-.353-.295l-.01-.007c-.605-.353-1.308-.676-2.043-.93l-.085-.026c-.193-.113-.425-.179-.672-.179-.176 0-.345.034-.499.095l.009-.003c-.38.151-.67.458-.795.84l-.003.01c-.073.172-.115.371-.115.581 0 .368.13.705.347.968l-.002-.003q.544.725.834 1.14.217.291.448.605c.141.188.266.403.367.63l.008.021c.056.119.105.261.141.407l.003.016q.048.206.121.448.217.556.411 1.14c.141.425.297.785.478 1.128l-.019-.04q.145.266.291.52t.314.496c.065.098.147.179.241.242l.003.002c.099.072.164.185.169.313v.001c-.114.168-.191.369-.217.586l-.001.006c-.035.253-.085.478-.153.695l.008-.03c-.223.666-.351 1.434-.351 2.231 0 .258.013.512.04.763l-.003-.031c.06.958.349 1.838.812 2.6l-.014-.025c.197.295.408.552.641.787.168.188.412.306.684.306.152 0 .296-.037.422-.103l-.005.002c.35-.126.599-.446.617-.827v-.002c.048-.474.12-.898.219-1.312l-.013.067c.024-.063.038-.135.038-.211 0-.015-.001-.03-.002-.045v.002q-.012-.109.133-.206v.048q.145.339.302.677t.326.677c.295.449.608.841.952 1.202l-.003-.003c.345.372.721.706 1.127 1.001l.022.015c.212.162.398.337.566.528l.004.004c.158.186.347.339.56.454l.01.005v-.024h.048c-.039-.087-.102-.157-.18-.205l-.002-.001c-.079-.044-.147-.088-.211-.136l.005.003q-.217-.217-.448-.484t-.423-.508q-.508-.702-.969-1.467t-.871-1.555q-.194-.387-.375-.798t-.351-.798c-.049-.099-.083-.213-.096-.334v-.005c-.006-.115-.072-.214-.168-.265l-.002-.001c-.121.206-.255.384-.408.545l.001-.001c-.159.167-.289.364-.382.58l-.005.013c-.141.342-.244.739-.289 1.154l-.002.019q-.072.641-.145 1.318l-.048.024-.024.024c-.26-.053-.474-.219-.59-.443l-.002-.005q-.182-.351-.326-.69c-.248-.637-.402-1.374-.423-2.144v-.009c-.009-.122-.013-.265-.013-.408 0-.666.105-1.308.299-1.91l-.012.044q.072-.266.314-.896t.097-.871c-.05-.165-.143-.304-.265-.41l-.001-.001c-.122-.106-.233-.217-.335-.335l-.003-.004q-.169-.244-.326-.52t-.278-.544c-.165-.382-.334-.861-.474-1.353l-.022-.089c-.159-.565-.336-1.043-.546-1.503l.026.064c-.111-.252-.24-.47-.39-.669l.006.008q-.244-.326-.436-.617-.244-.314-.484-.605c-.163-.197-.308-.419-.426-.657l-.009-.02c-.048-.097-.09-.21-.119-.327l-.002-.011c-.011-.035-.017-.076-.017-.117 0-.082.024-.159.066-.223l-.001.002c.011-.056.037-.105.073-.145.039-.035.089-.061.143-.072h.002c.085-.055.188-.088.3-.088.084 0 .165.019.236.053l-.003-.001c.219.062.396.124.569.195l-.036-.013q.459.194.847.375c.298.142.552.292.792.459l-.018-.012q.194.121.387.266t.411.291h.339q.387 0 .822.037c.293.023.564.078.822.164l-.024-.007c.481.143.894.312 1.286.515l-.041-.019q.593.302 1.125.641c.589.367 1.098.743 1.577 1.154l-.017-.014c.5.428.954.867 1.38 1.331l.01.012c.416.454.813.947 1.176 1.464l.031.047c.334.472.671 1.018.974 1.584l.042.085c.081.154.163.343.234.536l.011.033q.097.278.217.57.266.605.57 1.221t.57 1.198l.532 1.161c.187.406.396.756.639 1.079l-.011-.015c.203.217.474.369.778.422l.008.001c.368.092.678.196.978.319l-.047-.017c.143.065.327.134.516.195l.04.011c.212.065.396.151.565.259l-.009-.005c.327.183.604.363.868.559l-.021-.015q.411.302.822.57.194.145.651.423t.484.52c-.114-.004-.249-.007-.384-.007-.492 0-.976.032-1.45.094l.056-.006c-.536.072-1.022.203-1.479.39l.04-.014c-.113.049-.248.094-.388.129l-.019.004c-.142.021-.252.135-.266.277v.001c.061.076.11.164.143.26l.002.006c.034.102.075.19.125.272l-.003-.006c.119.211.247.393.391.561l-.004-.005c.141.174.3.325.476.454l.007.005q.244.194.508.399c.161.126.343.25.532.362l.024.013c.284.174.614.34.958.479l.046.016c.374.15.695.324.993.531l-.016-.011q.291.169.58.375t.556.399c.073.072.137.152.191.239l.003.005c.091.104.217.175.36.193h.003v-.048c-.088-.067-.153-.16-.184-.267l-.001-.004c-.025-.102-.062-.191-.112-.273l.002.004zm-18.576-19.205q-.194 0-.363.012c-.115.008-.222.029-.323.063l.009-.003v.024h.048q.097.145.244.326t.266.351l.387.798.048-.024c.113-.082.2-.192.252-.321l.002-.005c.052-.139.082-.301.082-.469 0-.018 0-.036-.001-.054v.003c-.045-.044-.082-.096-.108-.154l-.001-.003-.081-.182c-.053-.084-.127-.15-.214-.192l-.003-.001c-.094-.045-.174-.102-.244-.169z"})),ET=e=>E.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("title",null,"file_type_pgsql"),E.createElement("path",{d:"M29.507,18.773a1.378,1.378,0,0,0-1.144-.921,2.619,2.619,0,0,0-.913.051,8.2,8.2,0,0,1-1.406.185,27.125,27.125,0,0,0,2.872-6.83c.953-3.689.444-5.369-.151-6.13A8.239,8.239,0,0,0,22.121,2a11.773,11.773,0,0,0-3.453.484A12.858,12.858,0,0,0,16.648,2.3a6.565,6.565,0,0,0-3.518.867,16.039,16.039,0,0,0-2.484-.624,7.694,7.694,0,0,0-5.819.924C3.093,4.691,2.289,6.819,2.438,9.792A36.351,36.351,0,0,0,3.844,16.33a22.579,22.579,0,0,0,1.514,3.863A4.786,4.786,0,0,0,7.8,22.742a2.4,2.4,0,0,0,2.379-.516,2.08,2.08,0,0,0,.5.43,3.328,3.328,0,0,0,.944.4,5.069,5.069,0,0,0,3.3-.2c.006.171.011.335.014.477.006.229.013.454.021.665a11.641,11.641,0,0,0,.441,3.3c.016.043.037.107.059.176a3.975,3.975,0,0,0,.991,1.745,2.955,2.955,0,0,0,2.09.777,4.7,4.7,0,0,0,.977-.109A4.592,4.592,0,0,0,22.607,28.1c.811-1.155,1.206-2.894,1.277-5.635.009-.078.018-.152.026-.222l.017-.145.191.017.049,0a7.562,7.562,0,0,0,3.163-.548c.631-.293,2.654-1.361,2.177-2.8"}),E.createElement("path",{d:"M27.689,19.053c-3.163.652-3.38-.418-3.38-.418C27.648,13.68,29.044,7.39,27.839,5.851c-3.286-4.2-8.975-2.213-9.07-2.162l-.031.006a11.28,11.28,0,0,0-2.11-.22,5.212,5.212,0,0,0-3.34,1S3.14.294,3.612,9.733c.1,2.008,2.878,15.194,6.191,11.211,1.211-1.456,2.381-2.688,2.381-2.688a3.071,3.071,0,0,0,2.006.512l.057-.048a2.21,2.21,0,0,0,.023.567c-.854.954-.6,1.121-2.309,1.472-1.726.356-.712.989-.05,1.155a3.508,3.508,0,0,0,3.915-1.272l-.05.2c.334.268.569,1.742.53,3.079a8.481,8.481,0,0,0,.2,2.971c.264.717.526,2.329,2.769,1.849a3.307,3.307,0,0,0,2.98-3.179c.1-1.234.313-1.052.326-2.155l.174-.522c.2-1.673.032-2.213,1.186-1.962l.281.025a6.4,6.4,0,0,0,2.615-.44c1.406-.652,2.239-1.742.853-1.455h0",style:{fill:"#336791"}}),E.createElement("path",{d:"M13.882,10.631a.981.981,0,0,0-.674.1.247.247,0,0,0-.1.164.48.48,0,0,0,.117.314.881.881,0,0,0,.559.349.637.637,0,0,0,.09.006.725.725,0,0,0,.687-.467c.035-.248-.326-.414-.676-.463m9.442.008c-.027-.195-.374-.25-.7-.2s-.647.194-.62.389a.667.667,0,0,0,.62.411.592.592,0,0,0,.083-.006.8.8,0,0,0,.451-.247.5.5,0,0,0,.169-.343",style:{fill:"#fff"}}),E.createElement("path",{d:"M28.741,18.979c-.121-.365-.509-.482-1.154-.349-1.915.4-2.6.121-2.826-.044a26.327,26.327,0,0,0,3.373-7.565,14.374,14.374,0,0,0,.5-3.253,3.513,3.513,0,0,0-.509-2.2,7.482,7.482,0,0,0-6.049-2.825,10.363,10.363,0,0,0-3.5.551,8.717,8.717,0,0,0-1.968-.253,5.684,5.684,0,0,0-3.372.929,15.051,15.051,0,0,0-2.74-.718,6.978,6.978,0,0,0-5.242.805c-1.5,1.064-2.2,2.966-2.061,5.653a35.489,35.489,0,0,0,1.373,6.348c1.07,3.505,2.233,5.49,3.457,5.9a1.548,1.548,0,0,0,.491.081,2.049,2.049,0,0,0,1.563-.886q1.042-1.25,2.155-2.438a3.472,3.472,0,0,0,1.55.417l0,.042q-.14.166-.273.338c-.375.475-.452.574-1.658.823-.343.071-1.254.259-1.267.9-.014.7,1.077.991,1.2,1.022a5.144,5.144,0,0,0,1.249.162,3.634,3.634,0,0,0,2.5-.934,23.674,23.674,0,0,0,.381,5.684,2.854,2.854,0,0,0,2.729,2.1,4.378,4.378,0,0,0,.917-.1,3.462,3.462,0,0,0,3.156-3.212c.177-1.026.481-3.475.624-4.789a3.859,3.859,0,0,0,1.11.137,6.6,6.6,0,0,0,2.519-.48c.712-.331,2-1.141,1.763-1.846ZM24.051,10.1a7.968,7.968,0,0,1-.116,1.107,10.229,10.229,0,0,0-.14,1.3,9.859,9.859,0,0,0,.1,1.47,5.236,5.236,0,0,1-.229,2.986,3.882,3.882,0,0,1-.207-.426c-.058-.141-.185-.368-.359-.681-.68-1.22-2.274-4.078-1.458-5.244.243-.347.86-.7,2.408-.512ZM22.174,3.531a6.617,6.617,0,0,1,5.334,2.522c.975,1.245-.1,6.912-3.205,11.8l-.094-.119-.039-.049a5.524,5.524,0,0,0,.506-3.8,9.114,9.114,0,0,1-.1-1.352,9.572,9.572,0,0,1,.131-1.206,7.614,7.614,0,0,0,.123-1.493.619.619,0,0,0,.013-.21,8.381,8.381,0,0,0-1.912-3.6,8.61,8.61,0,0,0-3.039-2.284,10.246,10.246,0,0,1,2.28-.214ZM9.479,20.654c-.627.754-1.061.61-1.2.562-.928-.31-2.006-2.272-2.955-5.384a35.167,35.167,0,0,1-1.34-6.159c-.12-2.4.462-4.074,1.73-4.974,2.063-1.463,5.456-.587,6.819-.143-.02.019-.04.037-.059.057-2.237,2.259-2.184,6.119-2.178,6.355,0,.091.007.22.018.4a15.969,15.969,0,0,1-.081,3.226A4.08,4.08,0,0,0,11.3,18.007q.133.138.278.262c-.383.41-1.216,1.318-2.1,2.385Zm2.39-3.19a3.3,3.3,0,0,1-.865-2.764,16.7,16.7,0,0,0,.087-3.381c-.006-.095-.011-.178-.014-.243A4.3,4.3,0,0,1,14,10.223a1.188,1.188,0,0,1,.918,1.026c.646,2.989.085,4.234-.365,5.235-.093.206-.181.4-.255.6l-.058.156a10.218,10.218,0,0,0-.368,1.109,2.788,2.788,0,0,1-2-.887Zm.113,4.03a1.733,1.733,0,0,1-.523-.225,2.553,2.553,0,0,1,.557-.166c1.418-.292,1.637-.5,2.116-1.105.11-.139.234-.3.406-.489h0c.256-.287.374-.238.586-.15a.829.829,0,0,1,.408.525.585.585,0,0,1-.05.491A3.1,3.1,0,0,1,11.983,21.495ZM19.406,28.4a2.113,2.113,0,0,1-2.754-1.526,31.129,31.129,0,0,1-.3-6.853.392.392,0,0,0-.017-.124,1.643,1.643,0,0,0-.048-.23,1.589,1.589,0,0,0-.862-1.034,1.216,1.216,0,0,0-.793-.1,9.586,9.586,0,0,1,.342-1.022l.058-.157c.066-.177.148-.36.235-.554.471-1.047,1.117-2.482.416-5.722a2.044,2.044,0,0,0-2.468-1.669A5.694,5.694,0,0,0,11.328,10c-.078.04-.15.078-.216.115A8.244,8.244,0,0,1,13.03,5.163,4.711,4.711,0,0,1,16.6,3.827,7.567,7.567,0,0,1,22.381,6.59,8.774,8.774,0,0,1,23.963,9.3c-1.463-.149-2.458.14-2.962.861-1.1,1.568.6,4.612,1.416,6.075.15.268.279.5.319.6a5.432,5.432,0,0,0,.861,1.387c.077.1.152.189.208.271-.443.128-1.239.423-1.166,1.9-.058.74-.474,4.205-.686,5.43-.279,1.617-.874,2.22-2.548,2.579Zm7.242-8.288a5.714,5.714,0,0,1-1.931.4,2.422,2.422,0,0,1-1.3-.167c-.045-.919.3-1.015.66-1.117.057-.016.112-.032.166-.05a1.353,1.353,0,0,0,.11.08c.639.422,1.78.467,3.39.135l.018,0a4.334,4.334,0,0,1-1.116.72Z",style:{fill:"#fff"}})),kT=e=>E.createElement("svg",{width:1200,height:1227,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"white"})),tc=({size:e,type:n})=>n==="mysql"?b.jsx(CT,{width:e,height:e}):b.jsx(ET,{width:e,height:e}),os=(e,...n)=>e?n.includes(e):!1;var lr=(e=>(e.ADMIN="admin",e.EDITOR="editor",e.READ_ONLY="read_only",e))(lr||{});const TT=()=>{const{data:e}=Xn(),[n,i]=E.useState(void 0),l=o=>{os(e==null?void 0:e.teamRole,lr.ADMIN,lr.EDITOR)?i(o):Gn.error("You don't have permission to connect new data sources in this team"),ut.event(`On create new [${o}]`)};return b.jsxs(b.Fragment,{children:[n&&b.jsx(ST,{show:!0,dbType:n,onClose:()=>i(void 0)}),b.jsxs("button",{disabled:!e,className:ke(ex.dataStore,"card-white"),onClick:()=>l("postgres"),children:[b.jsx(tc,{size:32,type:"postgres"}),b.jsx(tc,{size:32,type:"mysql"}),b.jsx("p",{className:"font-semibold truncate text-gray-800",children:"Connect new data source"})]})]})};function w1(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,o=i.indexOf(n);for(;o!==-1;)l++,o=i.indexOf(n,o+n.length);return l}const sn=Qi(/[A-Za-z]/),tn=Qi(/[\dA-Za-z]/),AT=Qi(/[#-'*+\--9=?A-Z^-~]/);function nc(e){return e!==null&&(e<32||e===127)}const Ih=Qi(/\d/),_T=Qi(/[\dA-Fa-f]/),OT=Qi(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function rt(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const kc=Qi(new RegExp("\\p{P}|\\p{S}","u")),gl=Qi(/\s/);function Qi(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function RT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Tc=function(e){if(e==null)return MT;if(typeof e=="function")return Ac(e);if(typeof e=="object")return Array.isArray(e)?NT(e):jT(e);if(typeof e=="string")return DT(e);throw new Error("Expected function, string, or object as test")};function NT(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=Tc(e[i]);return Ac(l);function l(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function jT(e){const n=e;return Ac(i);function i(l){const o=l;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function DT(e){return Ac(n);function n(i){return i&&i.type===e}}function Ac(e){return n;function n(i,l,o){return!!(LT(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function MT(){return!0}function LT(e){return e!==null&&typeof e=="object"&&"type"in e}const nx=[],zT=!0,Vh=!1,UT="skip";function rx(e,n,i,l){let o;typeof n=="function"&&typeof i!="function"?(l=i,i=n):o=n;const s=Tc(o),c=l?-1:1;f(e,void 0,[])();function f(d,h,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=nx,w,T,_;if((!n||s(d,h,m[m.length-1]||void 0))&&(v=BT(i(d,m)),v[0]===Vh))return v;if("children"in d&&d.children){const A=d;if(A.children&&v[0]!==UT)for(T=(l?A.children.length:-1)+c,_=m.concat(A);T>-1&&T<A.children.length;){const N=A.children[T];if(w=f(N,T,_)(),w[0]===Vh)return w;T=typeof w[1]=="number"?w[1]:T+c}}return v}}}function BT(e){return Array.isArray(e)?e:typeof e=="number"?[zT,e]:e==null?nx:[e]}function qT(e,n,i){const o=Tc((i||{}).ignore||[]),s=HT(n);let c=-1;for(;++c<s.length;)rx(e,"text",f);function f(h,m){let g=-1,x;for(;++g<m.length;){const v=m[g],w=x?x.children:void 0;if(o(v,w?w.indexOf(v):void 0,x))return;x=v}if(x)return d(h,m)}function d(h,m){const g=m[m.length-1],x=s[c][0],v=s[c][1];let w=0;const _=g.children.indexOf(h);let A=!1,N=[];x.lastIndex=0;let R=x.exec(h.value);for(;R;){const z=R.index,D={index:R.index,input:R.input,stack:[...m,h]};let L=v(...R,D);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?x.lastIndex=z+1:(w!==z&&N.push({type:"text",value:h.value.slice(w,z)}),Array.isArray(L)?N.push(...L):L&&N.push(L),w=z+R[0].length,A=!0),!x.global)break;R=x.exec(h.value)}return A?(w<h.value.length&&N.push({type:"text",value:h.value.slice(w)}),g.children.splice(_,1,...N)):N=[h],_+N.length}}function HT(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<i.length;){const o=i[l];n.push([FT(o[0]),QT(o[1])])}return n}function FT(e){return typeof e=="string"?new RegExp(RT(e),"g"):e}function QT(e){return typeof e=="function"?e:function(){return e}}const th="phrasing",nh=["autolink","link","image","label"];function PT(){return{transforms:[XT],enter:{literalAutolink:VT,literalAutolinkEmail:rh,literalAutolinkHttp:rh,literalAutolinkWww:rh},exit:{literalAutolink:KT,literalAutolinkEmail:GT,literalAutolinkHttp:$T,literalAutolinkWww:YT}}}function IT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:th,notInConstruct:nh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:th,notInConstruct:nh},{character:":",before:"[ps]",after:"\\/",inConstruct:th,notInConstruct:nh}]}}function VT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function rh(e){this.config.enter.autolinkProtocol.call(this,e)}function $T(e){this.config.exit.autolinkProtocol.call(this,e)}function YT(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function GT(e){this.config.exit.autolinkEmail.call(this,e)}function KT(e){this.exit(e)}function XT(e){qT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),JT]],{ignore:["link","linkReference"]})}function ZT(e,n,i,l,o){let s="";if(!ix(o)||(/^w/i.test(n)&&(i=n+i,n="",s="http://"),!WT(i)))return!1;const c=eA(i+l);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function JT(e,n,i,l){return!ix(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function WT(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function eA(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let i=n[0],l=i.indexOf(")");const o=w1(e,"(");let s=w1(e,")");for(;l!==-1&&o>s;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),s++;return[e,i]}function ix(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||gl(i)||kc(i))&&(!n||i!==47)}function rr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}lx.peek=uA;function tA(){this.buffer()}function nA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rA(){this.buffer()}function iA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function lA(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=rr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function aA(e){this.exit(e)}function oA(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=rr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function sA(e){this.exit(e)}function uA(){return"["}function lx(e,n,i,l){const o=i.createTracker(l);let s=o.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return s+=o.move(i.safe(i.associationId(e),{after:"]",before:s})),f(),c(),s+=o.move("]"),s}function cA(){return{enter:{gfmFootnoteCallString:tA,gfmFootnoteCall:nA,gfmFootnoteDefinitionLabelString:rA,gfmFootnoteDefinition:iA},exit:{gfmFootnoteCallString:lA,gfmFootnoteCall:aA,gfmFootnoteDefinitionLabelString:oA,gfmFootnoteDefinition:sA}}}function fA(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:lx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,s,c){const f=s.createTracker(c);let d=f.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=f.move(s.safe(s.associationId(l),{before:d,after:"]"})),m(),d+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),d+=f.move((n?`
233
+ `:" ")+s.indentLines(s.containerFlow(l,f.current()),n?ax:dA))),h(),d}}function dA(e,n,i){return n===0?e:ax(e,n,i)}function ax(e,n,i){return(i?"":" ")+e}const hA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ox.peek=bA;function pA(){return{canContainEols:["delete"],enter:{strikethrough:yA},exit:{strikethrough:gA}}}function mA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hA}],handlers:{delete:ox}}}function yA(e){this.enter({type:"delete",children:[]},e)}function gA(e){this.exit(e)}function ox(e,n,i,l){const o=i.createTracker(l),s=i.enter("strikethrough");let c=o.move("~~");return c+=i.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function bA(){return"~"}function vA(e){return e.length}function xA(e,n){const i=n||{},l=(i.align||[]).concat(),o=i.stringLength||vA,s=[],c=[],f=[],d=[];let h=0,m=-1;for(;++m<e.length;){const T=[],_=[];let A=-1;for(e[m].length>h&&(h=e[m].length);++A<e[m].length;){const N=wA(e[m][A]);if(i.alignDelimiters!==!1){const R=o(N);_[A]=R,(d[A]===void 0||R>d[A])&&(d[A]=R)}T.push(N)}c[m]=T,f[m]=_}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<h;)s[g]=S1(l[g]);else{const T=S1(l);for(;++g<h;)s[g]=T}g=-1;const x=[],v=[];for(;++g<h;){const T=s[g];let _="",A="";T===99?(_=":",A=":"):T===108?_=":":T===114&&(A=":");let N=i.alignDelimiters===!1?1:Math.max(1,d[g]-_.length-A.length);const R=_+"-".repeat(N)+A;i.alignDelimiters!==!1&&(N=_.length+N+A.length,N>d[g]&&(d[g]=N),v[g]=N),x[g]=R}c.splice(1,0,x),f.splice(1,0,v),m=-1;const w=[];for(;++m<c.length;){const T=c[m],_=f[m];g=-1;const A=[];for(;++g<h;){const N=T[g]||"";let R="",z="";if(i.alignDelimiters!==!1){const D=d[g]-(_[g]||0),L=s[g];L===114?R=" ".repeat(D):L===99?D%2?(R=" ".repeat(D/2+.5),z=" ".repeat(D/2-.5)):(R=" ".repeat(D/2),z=R):z=" ".repeat(D)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(R),A.push(N),i.alignDelimiters!==!1&&A.push(z),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==h-1)&&A.push("|")}w.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return w.join(`
234
+ `)}function wA(e){return e==null?"":String(e)}function S1(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function SA(e,n,i,l){const o=i.enter("blockquote"),s=i.createTracker(l);s.move("> "),s.shift(2);const c=i.indentLines(i.containerFlow(e,s.current()),CA);return o(),c}function CA(e,n,i){return">"+(i?"":" ")+e}function EA(e,n){return C1(e,n.inConstruct,!0)&&!C1(e,n.notInConstruct,!1)}function C1(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let l=-1;for(;++l<n.length;)if(e.includes(n[l]))return!0;return!1}function E1(e,n,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
235
+ `&&EA(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
236
+ `}function kA(e,n){const i=String(e);let l=i.indexOf(n),o=l,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++s>c&&(c=s):s=1,o=l+n.length,l=i.indexOf(n,o);return c}function TA(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function AA(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function _A(e,n,i,l){const o=AA(i),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(TA(e,i)){const g=i.enter("codeIndented"),x=i.indentLines(s,OA);return g(),x}const f=i.createTracker(l),d=o.repeat(Math.max(kA(s,o)+1,3)),h=i.enter("codeFenced");let m=f.move(d);if(e.lang){const g=i.enter(`codeFencedLang${c}`);m+=f.move(i.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(i.safe(e.meta,{before:m,after:`
237
+ `,encode:["`"],...f.current()})),g()}return m+=f.move(`
238
+ `),s&&(m+=f.move(s+`
239
+ `)),m+=f.move(d),h(),m}function OA(e,n,i){return(i?"":" ")+e}function Ap(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function RA(e,n,i,l){const o=Ap(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const d=i.createTracker(l);let h=d.move("[");return h+=d.move(i.safe(i.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(i.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=i.enter("destinationRaw"),h+=d.move(i.safe(e.url,{before:h,after:e.title?" ":`
240
+ `,...d.current()}))),f(),e.title&&(f=i.enter(`title${s}`),h+=d.move(" "+o),h+=d.move(i.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),c(),h}function NA(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Zo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ba(e){if(e===null||rt(e)||gl(e))return 1;if(kc(e))return 2}function rc(e,n,i){const l=ba(e),o=ba(n);return l===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sx.peek=jA;function sx(e,n,i,l){const o=NA(i),s=i.enter("emphasis"),c=i.createTracker(l),f=c.move(o);let d=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),m=rc(l.before.charCodeAt(l.before.length-1),h,o);m.inside&&(d=Zo(h)+d.slice(1));const g=d.charCodeAt(d.length-1),x=rc(l.after.charCodeAt(0),g,o);x.inside&&(d=d.slice(0,-1)+Zo(g));const v=c.move(o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},f+d+v}function jA(e,n,i){return i.options.emphasis||"*"}function _p(e,n,i,l){let o,s,c;typeof n=="function"?(s=void 0,c=n,o=i):(s=n,c=i,o=l),rx(e,s,f,o);function f(d,h){const m=h[h.length-1],g=m?m.children.indexOf(d):void 0;return c(d,g,m)}}const DA={};function Op(e,n){const i=DA,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return ux(e,l,o)}function ux(e,n,i){if(MA(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return k1(e.children,n,i)}return Array.isArray(e)?k1(e,n,i):""}function k1(e,n,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=ux(e[o],n,i);return l.join("")}function MA(e){return!!(e&&typeof e=="object")}function LA(e,n){let i=!1;return _p(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Vh}),!!((!e.depth||e.depth<3)&&Op(e)&&(n.options.setext||i))}function zA(e,n,i,l){const o=Math.max(Math.min(6,e.depth||1),1),s=i.createTracker(l);if(LA(e,i)){const m=i.enter("headingSetext"),g=i.enter("phrasing"),x=i.containerPhrasing(e,{...s.current(),before:`
241
+ `,after:`
242
+ `});return g(),m(),x+`
243
+ `+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
244
+ `))+1))}const c="#".repeat(o),f=i.enter("headingAtx"),d=i.enter("phrasing");s.move(c+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
245
+ `,...s.current()});return/^[\t ]/.test(h)&&(h=Zo(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,i.options.closeAtx&&(h+=" "+c),d(),f(),h}cx.peek=UA;function cx(e){return e.value||""}function UA(){return"<"}fx.peek=BA;function fx(e,n,i,l){const o=Ap(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const d=i.createTracker(l);let h=d.move("![");return h+=d.move(i.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(i.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=i.enter("destinationRaw"),h+=d.move(i.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=i.enter(`title${s}`),h+=d.move(" "+o),h+=d.move(i.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),h+=d.move(")"),c(),h}function BA(){return"!"}dx.peek=qA;function dx(e,n,i,l){const o=e.referenceType,s=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(l);let d=f.move("![");const h=i.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=m,s(),o==="full"||!h||h!==g?d+=f.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function qA(){return"!"}hx.peek=HA;function hx(e,n,i){let l=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++s<i.unsafe.length;){const c=i.unsafe[s],f=i.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(l);){let h=d.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(d.index+1)}}return o+l+o}function HA(){return"`"}function px(e,n){const i=Op(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}mx.peek=FA;function mx(e,n,i,l){const o=Ap(i),s=o==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,d;if(px(e,i)){const m=i.stack;i.stack=[],f=i.enter("autolink");let g=c.move("<");return g+=c.move(i.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),i.stack=m,g}f=i.enter("link"),d=i.enter("label");let h=c.move("[");return h+=c.move(i.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(i.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=i.enter("destinationRaw"),h+=c.move(i.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=i.enter(`title${s}`),h+=c.move(" "+o),h+=c.move(i.safe(e.title,{before:h,after:o,...c.current()})),h+=c.move(o),d()),h+=c.move(")"),f(),h}function FA(e,n,i){return px(e,i)?"<":"["}yx.peek=QA;function yx(e,n,i,l){const o=e.referenceType,s=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(l);let d=f.move("[");const h=i.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=m,s(),o==="full"||!h||h!==g?d+=f.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function QA(){return"["}function Rp(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function PA(e){const n=Rp(e),i=e.options.bulletOther;if(!i)return n==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+i+"`) to be different");return i}function IA(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function gx(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function VA(e,n,i,l){const o=i.enter("list"),s=i.bulletCurrent;let c=e.ordered?IA(i):Rp(i);const f=e.ordered?c==="."?")":".":PA(i);let d=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(d=!0),gx(i)===c&&m){let g=-1;for(;++g<e.children.length;){const x=e.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),i.bulletCurrent=c;const h=i.containerFlow(e,l);return i.bulletLastUsed=c,i.bulletCurrent=s,o(),h}function $A(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function YA(e,n,i,l){const o=$A(i);let s=i.bulletCurrent||Rp(i);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(l);f.move(s+" ".repeat(c-s.length)),f.shift(c);const d=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,f.current()),m);return d(),h;function m(g,x,v){return x?(v?"":" ".repeat(c))+g:(v?s:s+" ".repeat(c-s.length))+g}}function GA(e,n,i,l){const o=i.enter("paragraph"),s=i.enter("phrasing"),c=i.containerPhrasing(e,l);return s(),o(),c}const KA=Tc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function XA(e,n,i,l){return(e.children.some(function(c){return KA(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function ZA(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}bx.peek=JA;function bx(e,n,i,l){const o=ZA(i),s=i.enter("strong"),c=i.createTracker(l),f=c.move(o+o);let d=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),m=rc(l.before.charCodeAt(l.before.length-1),h,o);m.inside&&(d=Zo(h)+d.slice(1));const g=d.charCodeAt(d.length-1),x=rc(l.after.charCodeAt(0),g,o);x.inside&&(d=d.slice(0,-1)+Zo(g));const v=c.move(o+o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},f+d+v}function JA(e,n,i){return i.options.strong||"*"}function WA(e,n,i,l){return i.safe(e.value,l)}function e_(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function t_(e,n,i){const l=(gx(i)+(i.options.ruleSpaces?" ":"")).repeat(e_(i));return i.options.ruleSpaces?l.slice(0,-1):l}const vx={blockquote:SA,break:E1,code:_A,definition:RA,emphasis:sx,hardBreak:E1,heading:zA,html:cx,image:fx,imageReference:dx,inlineCode:hx,link:mx,linkReference:yx,list:VA,listItem:YA,paragraph:GA,root:XA,strong:bx,text:WA,thematicBreak:t_},T1=document.createElement("i");function Np(e){const n="&"+e+";";T1.innerHTML=n;const i=T1.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function xx(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}const n_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r_(e){return e.replace(n_,i_)}function i_(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),s=o===120||o===88;return xx(i.slice(s?2:1),s?16:10)}return Np(i)||e}function l_(){return{enter:{table:a_,tableData:A1,tableHeader:A1,tableRow:s_},exit:{codeText:u_,table:o_,tableData:ih,tableHeader:ih,tableRow:ih}}}function a_(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function o_(e){this.exit(e),this.data.inTable=void 0}function s_(e){this.enter({type:"tableRow",children:[]},e)}function ih(e){this.exit(e)}function A1(e){this.enter({type:"tableCell",children:[]},e)}function u_(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,c_));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function c_(e,n){return n==="|"?n:e}function f_(e){const n=e||{},i=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,s=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
246
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:d,tableRow:f}};function c(v,w,T,_){return h(m(v,T,_),v.align)}function f(v,w,T,_){const A=g(v,T,_),N=h([A]);return N.slice(0,N.indexOf(`
247
+ `))}function d(v,w,T,_){const A=T.enter("tableCell"),N=T.enter("phrasing"),R=T.containerPhrasing(v,{..._,before:s,after:s});return N(),A(),R}function h(v,w){return xA(v,{align:w,alignDelimiters:l,padding:i,stringLength:o})}function m(v,w,T){const _=v.children;let A=-1;const N=[],R=w.enter("table");for(;++A<_.length;)N[A]=g(_[A],w,T);return R(),N}function g(v,w,T){const _=v.children;let A=-1;const N=[],R=w.enter("tableRow");for(;++A<_.length;)N[A]=d(_[A],v,w,T);return R(),N}function x(v,w,T){let _=vx.inlineCode(v,w,T);return T.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function d_(){return{exit:{taskListCheckValueChecked:_1,taskListCheckValueUnchecked:_1,paragraph:p_}}}function h_(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:m_}}}function _1(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function p_(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const l=i.children[0];if(l&&l.type==="text"){const o=n.children;let s=-1,c;for(;++s<o.length;){const f=o[s];if(f.type==="paragraph"){c=f;break}}c===i&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function m_(e,n,i,l){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=i.createTracker(l);s&&f.move(c);let d=vx.listItem(e,n,i,{...l,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+c}}function y_(){return[PT(),cA(),pA(),l_(),d_()]}function g_(e){return{extensions:[IT(),fA(e),mA(),f_(e),h_()]}}function Nn(e,n,i,l){const o=e.length;let s=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,i=i>0?i:0,l.length<1e4)c=Array.from(l),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);s<l.length;)c=l.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Yn(e,n){return e.length>0?(Nn(e,e.length,0,n),e):n}const O1={}.hasOwnProperty;function wx(e){const n={};let i=-1;for(;++i<e.length;)b_(n,e[i]);return n}function b_(e,n){let i;for(i in n){const o=(O1.call(e,i)?e[i]:void 0)||(e[i]={}),s=n[i];let c;if(s)for(c in s){O1.call(o,c)||(o[c]=[]);const f=s[c];v_(o[c],Array.isArray(f)?f:f?[f]:[])}}}function v_(e,n){let i=-1;const l=[];for(;++i<n.length;)(n[i].add==="after"?e:l).push(n[i]);Nn(e,0,0,l)}const x_={tokenize:T_,partial:!0},Sx={tokenize:A_,partial:!0},Cx={tokenize:__,partial:!0},Ex={tokenize:O_,partial:!0},w_={tokenize:R_,partial:!0},kx={name:"wwwAutolink",tokenize:E_,previous:Ax},Tx={name:"protocolAutolink",tokenize:k_,previous:_x},ti={name:"emailAutolink",tokenize:C_,previous:Ox},_r={};function S_(){return{text:_r}}let ul=48;for(;ul<123;)_r[ul]=ti,ul++,ul===58?ul=65:ul===91&&(ul=97);_r[43]=ti;_r[45]=ti;_r[46]=ti;_r[95]=ti;_r[72]=[ti,Tx];_r[104]=[ti,Tx];_r[87]=[ti,kx];_r[119]=[ti,kx];function C_(e,n,i){const l=this;let o,s;return c;function c(g){return!$h(g)||!Ox.call(l,l.previous)||jp(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return $h(g)?(e.consume(g),f):g===64?(e.consume(g),d):i(g)}function d(g){return g===46?e.check(w_,m,h)(g):g===45||g===95||tn(g)?(s=!0,e.consume(g),d):m(g)}function h(g){return e.consume(g),o=!0,d}function m(g){return s&&o&&sn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):i(g)}}function E_(e,n,i){const l=this;return o;function o(c){return c!==87&&c!==119||!Ax.call(l,l.previous)||jp(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(x_,e.attempt(Sx,e.attempt(Cx,s),i),i)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function k_(e,n,i){const l=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&_x.call(l,l.previous)&&!jp(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):i(g)}function f(g){if(sn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const x=o.toLowerCase();if(x==="http"||x==="https")return e.consume(g),d}return i(g)}function d(g){return g===47?(e.consume(g),s?h:(s=!0,d)):i(g)}function h(g){return g===null||nc(g)||rt(g)||gl(g)||kc(g)?i(g):e.attempt(Sx,e.attempt(Cx,m),i)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function T_(e,n,i){let l=0;return o;function o(c){return(c===87||c===119)&&l<3?(l++,e.consume(c),o):c===46&&l===3?(e.consume(c),s):i(c)}function s(c){return c===null?i(c):n(c)}}function A_(e,n,i){let l,o,s;return c;function c(h){return h===46||h===95?e.check(Ex,d,f)(h):h===null||rt(h)||gl(h)||h!==45&&kc(h)?d(h):(s=!0,e.consume(h),c)}function f(h){return h===95?l=!0:(o=l,l=void 0),e.consume(h),c}function d(h){return o||l||!s?i(h):n(h)}}function __(e,n){let i=0,l=0;return o;function o(c){return c===40?(i++,e.consume(c),o):c===41&&l<i?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Ex,n,s)(c):c===null||rt(c)||gl(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&l++,e.consume(c),o}}function O_(e,n,i){return l;function l(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),l):f===38?(e.consume(f),s):f===93?(e.consume(f),o):f===60||f===null||rt(f)||gl(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||rt(f)||gl(f)?n(f):l(f)}function s(f){return sn(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),l):sn(f)?(e.consume(f),c):i(f)}}function R_(e,n,i){return l;function l(s){return e.consume(s),o}function o(s){return tn(s)?i(s):n(s)}}function Ax(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||rt(e)}function _x(e){return!sn(e)}function Ox(e){return!(e===47||$h(e))}function $h(e){return e===43||e===45||e===46||e===95||tn(e)}function jp(e){let n=e.length,i=!1;for(;n--;){const l=e[n][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}function Da(e){const n=[];let i=-1,l=0,o=0;for(;++i<e.length;){const s=e.charCodeAt(i);let c="";if(s===37&&tn(e.charCodeAt(i+1))&&tn(e.charCodeAt(i+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(i+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),o=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(l,i),encodeURIComponent(c)),l=i+o+1,c=""),o&&(i+=o,o=0)}return n.join("")+e.slice(l)}function _c(e,n,i){const l=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!l.includes(s)&&(n=s(n,i),l.push(s))}return n}const Yh={name:"attention",resolveAll:N_,tokenize:j_};function N_(e,n){let i=-1,l,o,s,c,f,d,h,m;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&n.sliceSerialize(e[l][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;d=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[l][1].end},x={...e[i][1].start};R1(g,-d),R1(x,d),c={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},s={type:d>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[l][1].end={...c.start},e[i][1].start={...f.end},h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=Yn(h,[["enter",e[l][1],n],["exit",e[l][1],n]])),h=Yn(h,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=Yn(h,_c(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),h=Yn(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,h=Yn(h,[["enter",e[i][1],n],["exit",e[i][1],n]])):m=0,Nn(e,l-1,i-l+3,h),i=l+h.length-m-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function j_(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ba(l);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),m=ba(d),g=!m||m===2&&o||i.includes(d),x=!o||o===2&&m||i.includes(l);return h._open=!!(s===42?g:g&&(o||!x)),h._close=!!(s===42?x:x&&(m||!g)),n(d)}}function R1(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const D_={name:"autolink",tokenize:M_};function M_(e,n,i){let l=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(v){return sn(v)?(e.consume(v),c):v===64?i(v):h(v)}function c(v){return v===43||v===45||v===46||tn(v)?(l=1,f(v)):h(v)}function f(v){return v===58?(e.consume(v),l=0,d):(v===43||v===45||v===46||tn(v))&&l++<32?(e.consume(v),f):(l=0,h(v))}function d(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):v===null||v===32||v===60||nc(v)?i(v):(e.consume(v),d)}function h(v){return v===64?(e.consume(v),m):AT(v)?(e.consume(v),h):i(v)}function m(v){return tn(v)?g(v):i(v)}function g(v){return v===46?(e.consume(v),l=0,m):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):x(v)}function x(v){if((v===45||tn(v))&&l++<63){const w=v===45?x:g;return e.consume(v),w}return i(v)}}function Qe(e,n,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Ue(d)?(e.enter(i),f(d)):n(d)}function f(d){return Ue(d)&&s++<o?(e.consume(d),f):(e.exit(i),n(d))}}const ss={partial:!0,tokenize:L_};function L_(e,n,i){return l;function l(s){return Ue(s)?Qe(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||xe(s)?n(s):i(s)}}const Rx={continuation:{tokenize:U_},exit:B_,name:"blockQuote",tokenize:z_};function z_(e,n,i){const l=this;return o;function o(c){if(c===62){const f=l.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return i(c)}function s(c){return Ue(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function U_(e,n,i){const l=this;return o;function o(c){return Ue(c)?Qe(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(Rx,n,i)(c)}}function B_(e){e.exit("blockQuote")}const Nx={name:"characterEscape",tokenize:q_};function q_(e,n,i){return l;function l(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return OT(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(s)}}const jx={name:"characterReference",tokenize:H_};function H_(e,n,i){const l=this;let o=0,s,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=tn,m(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=_T,m):(e.enter("characterReferenceValue"),s=7,c=Ih,m(g))}function m(g){if(g===59&&o){const x=e.exit("characterReferenceValue");return c===tn&&!Np(l.sliceSerialize(x))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&o++<s?(e.consume(g),m):i(g)}}const N1={partial:!0,tokenize:Q_},j1={concrete:!0,name:"codeFenced",tokenize:F_};function F_(e,n,i){const l=this,o={partial:!0,tokenize:D};let s=0,c=0,f;return d;function d(L){return h(L)}function h(L){const $=l.events[l.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===f?(c++,e.consume(L),m):c<3?i(L):(e.exit("codeFencedFenceSequence"),Ue(L)?Qe(e,g,"whitespace")(L):g(L))}function g(L){return L===null||xe(L)?(e.exit("codeFencedFence"),l.interrupt?n(L):e.check(N1,T,z)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||xe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Ue(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,v,"whitespace")(L)):L===96&&L===f?i(L):(e.consume(L),x)}function v(L){return L===null||xe(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||xe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===f?i(L):(e.consume(L),w)}function T(L){return e.attempt(o,z,_)(L)}function _(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A}function A(L){return s>0&&Ue(L)?Qe(e,N,"linePrefix",s+1)(L):N(L)}function N(L){return L===null||xe(L)?e.check(N1,T,z)(L):(e.enter("codeFlowValue"),R(L))}function R(L){return L===null||xe(L)?(e.exit("codeFlowValue"),N(L)):(e.consume(L),R)}function z(L){return e.exit("codeFenced"),n(L)}function D(L,$,ee){let ie=0;return U;function U(se){return L.enter("lineEnding"),L.consume(se),L.exit("lineEnding"),ae}function ae(se){return L.enter("codeFencedFence"),Ue(se)?Qe(L,te,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):te(se)}function te(se){return se===f?(L.enter("codeFencedFenceSequence"),ue(se)):ee(se)}function ue(se){return se===f?(ie++,L.consume(se),ue):ie>=c?(L.exit("codeFencedFenceSequence"),Ue(se)?Qe(L,J,"whitespace")(se):J(se)):ee(se)}function J(se){return se===null||xe(se)?(L.exit("codeFencedFence"),$(se)):ee(se)}}}function Q_(e,n,i){const l=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}const lh={name:"codeIndented",tokenize:I_},P_={partial:!0,tokenize:V_};function I_(e,n,i){const l=this;return o;function o(h){return e.enter("codeIndented"),Qe(e,s,"linePrefix",5)(h)}function s(h){const m=l.events[l.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):i(h)}function c(h){return h===null?d(h):xe(h)?e.attempt(P_,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||xe(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function V_(e,n,i){const l=this;return o;function o(c){return l.parser.lazy[l.now().line]?i(c):xe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Qe(e,s,"linePrefix",5)(c)}function s(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):xe(c)?o(c):i(c)}}const $_={name:"codeText",previous:G_,resolve:Y_,tokenize:K_};function Y_(e){let n=e.length-4,i=3,l,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(l=i;++l<n;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(l=i-1,n++;++l<=n;)o===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(o=l):(l===n||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),n-=l-o-2,l=o+2),o=void 0);return e}function G_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function K_(e,n,i){let l=0,o,s;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),l++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),o=0,m(g)):xe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||xe(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),h)}function m(g){return g===96?(e.consume(g),o++,m):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",h(g))}}class X_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(n,l):n>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(n,i,l){const o=i||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&zo(this.left,l),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),zo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),zo(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);zo(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);zo(this.left,i.reverse())}}}function zo(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function Dx(e){const n={};let i=-1,l,o,s,c,f,d,h;const m=new X_(e);for(;++i<m.length;){for(;i in n;)i=n[i];if(l=m.get(i),i&&l[1].type==="chunkFlow"&&m.get(i-1)[1].type==="listItemPrefix"&&(d=l[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,Z_(m,i)),i=n[i],h=!0);else if(l[1]._container){for(s=i,o=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(l[1].end={...m.get(o)[1].start},f=m.slice(o,i),f.unshift(l),m.splice(o,i-o+1,f))}}return Nn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Z_(e,n){const i=e.get(n)[1],l=e.get(n)[2];let o=n-1;const s=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let m,g,x=-1,v=i,w=0,T=0;const _=[T];for(;v;){for(;e.get(++o)[1]!==v;);s.push(o),v._tokenizer||(m=l.sliceStream(v),v.next||m.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++x<f.length;)f[x][0]==="exit"&&f[x-1][0]==="enter"&&f[x][1].type===f[x-1][1].type&&f[x][1].start.line!==f[x][1].end.line&&(T=x+1,_.push(T),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):_.pop(),x=_.length;x--;){const A=f.slice(_[x],_[x+1]),N=s.pop();d.push([N,N+A.length-1]),e.splice(N,2,A)}for(d.reverse(),x=-1;++x<d.length;)h[w+d[x][0]]=w+d[x][1],w+=d[x][1]-d[x][0]-1;return h}const J_={resolve:eO,tokenize:tO},W_={partial:!0,tokenize:nO};function eO(e){return Dx(e),e}function tO(e,n){let i;return l;function l(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):xe(f)?e.check(W_,c,s)(f):(e.consume(f),o)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function nO(e,n,i){const l=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Qe(e,s,"linePrefix")}function s(c){if(c===null||xe(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(l.parser.constructs.flow,i,n)(c)}}function Mx(e,n,i,l,o,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(A){return A===60?(e.enter(l),e.enter(o),e.enter(s),e.consume(A),e.exit(s),x):A===null||A===32||A===41||nc(A)?i(A):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(A))}function x(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(o),e.exit(l),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===62?(e.exit("chunkString"),e.exit(f),x(A)):A===null||A===60||xe(A)?i(A):(e.consume(A),A===92?w:v)}function w(A){return A===60||A===62||A===92?(e.consume(A),v):v(A)}function T(A){return!m&&(A===null||A===41||rt(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(A)):m<h&&A===40?(e.consume(A),m++,T):A===41?(e.consume(A),m--,T):A===null||A===32||A===40||nc(A)?i(A):(e.consume(A),A===92?_:T)}function _(A){return A===40||A===41||A===92?(e.consume(A),T):T(A)}}function Lx(e,n,i,l,o,s){const c=this;let f=0,d;return h;function h(v){return e.enter(l),e.enter(o),e.consume(v),e.exit(o),e.enter(s),m}function m(v){return f>999||v===null||v===91||v===93&&!d||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(v):v===93?(e.exit(s),e.enter(o),e.consume(v),e.exit(o),e.exit(l),n):xe(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||xe(v)||f++>999?(e.exit("chunkString"),m(v)):(e.consume(v),d||(d=!Ue(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(e.consume(v),f++,g):g(v)}}function zx(e,n,i,l,o,s){let c;return f;function f(x){return x===34||x===39||x===40?(e.enter(l),e.enter(o),e.consume(x),e.exit(o),c=x===40?41:x,d):i(x)}function d(x){return x===c?(e.enter(o),e.consume(x),e.exit(o),e.exit(l),n):(e.enter(s),h(x))}function h(x){return x===c?(e.exit(s),d(c)):x===null?i(x):xe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Qe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===c||x===null||xe(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?g:m)}function g(x){return x===c||x===92?(e.consume(x),m):m(x)}}function Vo(e,n){let i;return l;function l(o){return xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):Ue(o)?Qe(e,l,i?"linePrefix":"lineSuffix")(o):n(o)}}const rO={name:"definition",tokenize:lO},iO={partial:!0,tokenize:aO};function lO(e,n,i){const l=this;let o;return s;function s(v){return e.enter("definition"),c(v)}function c(v){return Lx.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return o=rr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),d):i(v)}function d(v){return rt(v)?Vo(e,h)(v):h(v)}function h(v){return Mx(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return e.attempt(iO,g,g)(v)}function g(v){return Ue(v)?Qe(e,x,"whitespace")(v):x(v)}function x(v){return v===null||xe(v)?(e.exit("definition"),l.parser.defined.push(o),n(v)):i(v)}}function aO(e,n,i){return l;function l(f){return rt(f)?Vo(e,o)(f):i(f)}function o(f){return zx(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ue(f)?Qe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||xe(f)?n(f):i(f)}}const oO={name:"hardBreakEscape",tokenize:sO};function sO(e,n,i){return l;function l(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return xe(s)?(e.exit("hardBreakEscape"),n(s)):i(s)}}const uO={name:"headingAtx",resolve:cO,tokenize:fO};function cO(e,n){let i=e.length-2,l=3,o,s;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},s={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Nn(e,l,i-l+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function fO(e,n,i){let l=0;return o;function o(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&l++<6?(e.consume(m),c):m===null||rt(m)?(e.exit("atxHeadingSequence"),f(m)):i(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||xe(m)?(e.exit("atxHeading"),n(m)):Ue(m)?Qe(e,f,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||rt(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),h)}}const dO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],D1=["pre","script","style","textarea"],hO={concrete:!0,name:"htmlFlow",resolveTo:yO,tokenize:gO},pO={partial:!0,tokenize:vO},mO={partial:!0,tokenize:bO};function yO(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function gO(e,n,i){const l=this;let o,s,c,f,d;return h;function h(O){return m(O)}function m(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),g}function g(O){return O===33?(e.consume(O),x):O===47?(e.consume(O),s=!0,T):O===63?(e.consume(O),o=3,l.interrupt?n:C):sn(O)?(e.consume(O),c=String.fromCharCode(O),_):i(O)}function x(O){return O===45?(e.consume(O),o=2,v):O===91?(e.consume(O),o=5,f=0,w):sn(O)?(e.consume(O),o=4,l.interrupt?n:C):i(O)}function v(O){return O===45?(e.consume(O),l.interrupt?n:C):i(O)}function w(O){const fe="CDATA[";return O===fe.charCodeAt(f++)?(e.consume(O),f===fe.length?l.interrupt?n:te:w):i(O)}function T(O){return sn(O)?(e.consume(O),c=String.fromCharCode(O),_):i(O)}function _(O){if(O===null||O===47||O===62||rt(O)){const fe=O===47,Te=c.toLowerCase();return!fe&&!s&&D1.includes(Te)?(o=1,l.interrupt?n(O):te(O)):dO.includes(c.toLowerCase())?(o=6,fe?(e.consume(O),A):l.interrupt?n(O):te(O)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(O):s?N(O):R(O))}return O===45||tn(O)?(e.consume(O),c+=String.fromCharCode(O),_):i(O)}function A(O){return O===62?(e.consume(O),l.interrupt?n:te):i(O)}function N(O){return Ue(O)?(e.consume(O),N):U(O)}function R(O){return O===47?(e.consume(O),U):O===58||O===95||sn(O)?(e.consume(O),z):Ue(O)?(e.consume(O),R):U(O)}function z(O){return O===45||O===46||O===58||O===95||tn(O)?(e.consume(O),z):D(O)}function D(O){return O===61?(e.consume(O),L):Ue(O)?(e.consume(O),D):R(O)}function L(O){return O===null||O===60||O===61||O===62||O===96?i(O):O===34||O===39?(e.consume(O),d=O,$):Ue(O)?(e.consume(O),L):ee(O)}function $(O){return O===d?(e.consume(O),d=null,ie):O===null||xe(O)?i(O):(e.consume(O),$)}function ee(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||rt(O)?D(O):(e.consume(O),ee)}function ie(O){return O===47||O===62||Ue(O)?R(O):i(O)}function U(O){return O===62?(e.consume(O),ae):i(O)}function ae(O){return O===null||xe(O)?te(O):Ue(O)?(e.consume(O),ae):i(O)}function te(O){return O===45&&o===2?(e.consume(O),q):O===60&&o===1?(e.consume(O),X):O===62&&o===4?(e.consume(O),I):O===63&&o===3?(e.consume(O),C):O===93&&o===5?(e.consume(O),pe):xe(O)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(pO,oe,ue)(O)):O===null||xe(O)?(e.exit("htmlFlowData"),ue(O)):(e.consume(O),te)}function ue(O){return e.check(mO,J,oe)(O)}function J(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),se}function se(O){return O===null||xe(O)?ue(O):(e.enter("htmlFlowData"),te(O))}function q(O){return O===45?(e.consume(O),C):te(O)}function X(O){return O===47?(e.consume(O),c="",ne):te(O)}function ne(O){if(O===62){const fe=c.toLowerCase();return D1.includes(fe)?(e.consume(O),I):te(O)}return sn(O)&&c.length<8?(e.consume(O),c+=String.fromCharCode(O),ne):te(O)}function pe(O){return O===93?(e.consume(O),C):te(O)}function C(O){return O===62?(e.consume(O),I):O===45&&o===2?(e.consume(O),C):te(O)}function I(O){return O===null||xe(O)?(e.exit("htmlFlowData"),oe(O)):(e.consume(O),I)}function oe(O){return e.exit("htmlFlow"),n(O)}}function bO(e,n,i){const l=this;return o;function o(c){return xe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):i(c)}function s(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}function vO(e,n,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ss,n,i)}}const xO={name:"htmlText",tokenize:wO};function wO(e,n,i){const l=this;let o,s,c;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),D):C===63?(e.consume(C),R):sn(C)?(e.consume(C),ee):i(C)}function h(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),s=0,w):sn(C)?(e.consume(C),N):i(C)}function m(C){return C===45?(e.consume(C),v):i(C)}function g(C){return C===null?i(C):C===45?(e.consume(C),x):xe(C)?(c=g,X(C)):(e.consume(C),g)}function x(C){return C===45?(e.consume(C),v):g(C)}function v(C){return C===62?q(C):C===45?x(C):g(C)}function w(C){const I="CDATA[";return C===I.charCodeAt(s++)?(e.consume(C),s===I.length?T:w):i(C)}function T(C){return C===null?i(C):C===93?(e.consume(C),_):xe(C)?(c=T,X(C)):(e.consume(C),T)}function _(C){return C===93?(e.consume(C),A):T(C)}function A(C){return C===62?q(C):C===93?(e.consume(C),A):T(C)}function N(C){return C===null||C===62?q(C):xe(C)?(c=N,X(C)):(e.consume(C),N)}function R(C){return C===null?i(C):C===63?(e.consume(C),z):xe(C)?(c=R,X(C)):(e.consume(C),R)}function z(C){return C===62?q(C):R(C)}function D(C){return sn(C)?(e.consume(C),L):i(C)}function L(C){return C===45||tn(C)?(e.consume(C),L):$(C)}function $(C){return xe(C)?(c=$,X(C)):Ue(C)?(e.consume(C),$):q(C)}function ee(C){return C===45||tn(C)?(e.consume(C),ee):C===47||C===62||rt(C)?ie(C):i(C)}function ie(C){return C===47?(e.consume(C),q):C===58||C===95||sn(C)?(e.consume(C),U):xe(C)?(c=ie,X(C)):Ue(C)?(e.consume(C),ie):q(C)}function U(C){return C===45||C===46||C===58||C===95||tn(C)?(e.consume(C),U):ae(C)}function ae(C){return C===61?(e.consume(C),te):xe(C)?(c=ae,X(C)):Ue(C)?(e.consume(C),ae):ie(C)}function te(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),o=C,ue):xe(C)?(c=te,X(C)):Ue(C)?(e.consume(C),te):(e.consume(C),J)}function ue(C){return C===o?(e.consume(C),o=void 0,se):C===null?i(C):xe(C)?(c=ue,X(C)):(e.consume(C),ue)}function J(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||rt(C)?ie(C):(e.consume(C),J)}function se(C){return C===47||C===62||rt(C)?ie(C):i(C)}function q(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):i(C)}function X(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return Ue(C)?Qe(e,pe,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):pe(C)}function pe(C){return e.enter("htmlTextData"),c(C)}}const Dp={name:"labelEnd",resolveAll:kO,resolveTo:TO,tokenize:AO},SO={tokenize:_O},CO={tokenize:OO},EO={tokenize:RO};function kO(e){let n=-1;const i=[];for(;++n<e.length;){const l=e[n][1];if(i.push(e[n]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",n+=o}}return e.length!==i.length&&Nn(e,0,e.length,i),e}function TO(e,n){let i=e.length,l=0,o,s,c,f;for(;i--;)if(o=e[i][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=i,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(c=i);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Yn(f,e.slice(s+1,s+l+3)),f=Yn(f,[["enter",m,n]]),f=Yn(f,_c(n.parser.constructs.insideSpan.null,e.slice(s+l+4,c-3),n)),f=Yn(f,[["exit",m,n],e[c-2],e[c-1],["exit",h,n]]),f=Yn(f,e.slice(c+1)),f=Yn(f,[["exit",d,n]]),Nn(e,s,e.length,f),e}function AO(e,n,i){const l=this;let o=l.events.length,s,c;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){s=l.events[o][1];break}return f;function f(x){return s?s._inactive?g(x):(c=l.parser.defined.includes(rr(l.sliceSerialize({start:s.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),d):i(x)}function d(x){return x===40?e.attempt(SO,m,c?m:g)(x):x===91?e.attempt(CO,m,c?h:g)(x):c?m(x):g(x)}function h(x){return e.attempt(EO,m,g)(x)}function m(x){return n(x)}function g(x){return s._balanced=!0,i(x)}}function _O(e,n,i){return l;function l(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return rt(g)?Vo(e,s)(g):s(g)}function s(g){return g===41?m(g):Mx(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return rt(g)?Vo(e,d)(g):m(g)}function f(g){return i(g)}function d(g){return g===34||g===39||g===40?zx(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function h(g){return rt(g)?Vo(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):i(g)}}function OO(e,n,i){const l=this;return o;function o(f){return Lx.call(l,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return l.parser.defined.includes(rr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function RO(e,n,i){return l;function l(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):i(s)}}const NO={name:"labelStartImage",resolveAll:Dp.resolveAll,tokenize:jO};function jO(e,n,i){const l=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(f):n(f)}}const DO={name:"labelStartLink",resolveAll:Dp.resolveAll,tokenize:MO};function MO(e,n,i){const l=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):n(c)}}const ah={name:"lineEnding",tokenize:LO};function LO(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qe(e,n,"linePrefix")}}const Fu={name:"thematicBreak",tokenize:zO};function zO(e,n,i){let l=0,o;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return o=h,f(h)}function f(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):l>=3&&(h===null||xe(h))?(e.exit("thematicBreak"),n(h)):i(h)}function d(h){return h===o?(e.consume(h),l++,d):(e.exit("thematicBreakSequence"),Ue(h)?Qe(e,f,"whitespace")(h):f(h))}}const yn={continuation:{tokenize:HO},exit:QO,name:"list",tokenize:qO},UO={partial:!0,tokenize:PO},BO={partial:!0,tokenize:FO};function qO(e,n,i){const l=this,o=l.events[l.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(v){const w=l.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!l.containerState.marker||v===l.containerState.marker:Ih(v)){if(l.containerState.type||(l.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Fu,i,h)(v):h(v);if(!l.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(v)}return i(v)}function d(v){return Ih(v)&&++c<10?(e.consume(v),d):(!l.interrupt||c<2)&&(l.containerState.marker?v===l.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):i(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||v,e.check(ss,l.interrupt?i:m,e.attempt(UO,x,g))}function m(v){return l.containerState.initialBlankLine=!0,s++,x(v)}function g(v){return Ue(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),x):i(v)}function x(v){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function HO(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(ss,o,s);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Qe(e,n,"listItemIndent",l.containerState.size+1)(f)}function s(f){return l.containerState.furtherBlankLines||!Ue(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(BO,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Qe(e,e.attempt(yn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function FO(e,n,i){const l=this;return Qe(e,o,"listItemIndent",l.containerState.size+1);function o(s){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?n(s):i(s)}}function QO(e){e.exit(this.containerState.type)}function PO(e,n,i){const l=this;return Qe(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=l.events[l.events.length-1];return!Ue(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):i(s)}}const M1={name:"setextUnderline",resolveTo:IO,tokenize:VO};function IO(e,n){let i=e.length,l,o,s;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!s&&e[i][1].type==="definition"&&(s=i);const c={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,n]),e.splice(s+1,0,["exit",e[l][1],n]),e[l][1].end={...e[s][1].end}):e[l][1]=c,e.push(["exit",c,n]),e}function VO(e,n,i){const l=this;let o;return s;function s(h){let m=l.events.length,g;for(;m--;)if(l.events[m][1].type!=="lineEnding"&&l.events[m][1].type!=="linePrefix"&&l.events[m][1].type!=="content"){g=l.events[m][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=h,c(h)):i(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===o?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ue(h)?Qe(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||xe(h)?(e.exit("setextHeadingLine"),n(h)):i(h)}}const $O={tokenize:eR,partial:!0};function YO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ZO,continuation:{tokenize:JO},exit:WO}},text:{91:{name:"gfmFootnoteCall",tokenize:XO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GO,resolveTo:KO}}}}function GO(e,n,i){const l=this;let o=l.events.length;const s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;o--;){const d=l.events[o][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return i(d);const h=rr(l.sliceSerialize({start:c.end,end:l.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?i(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function KO(e,n){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[i+1],e[i+2],["enter",l,n],e[i+3],e[i+4],["enter",o,n],["exit",o,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",l,n]];return e.splice(i,e.length-i+1,...f),e}function XO(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!c||g===null||g===91||rt(g))return i(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(rr(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(g)}return rt(g)||(c=!0),s++,e.consume(g),g===92?m:h}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}}function ZO(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s,c=0,f;return d;function d(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):i(w)}function m(w){if(c>999||w===93&&!f||w===null||w===91||rt(w))return i(w);if(w===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return s=rr(l.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return rt(w)||(f=!0),c++,e.consume(w),w===92?g:m}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,m):m(w)}function x(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(s)||o.push(s),Qe(e,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return n(w)}}function JO(e,n,i){return e.check(ss,n,e.attempt($O,n,i))}function WO(e){e.exit("gfmFootnoteDefinition")}function eR(e,n,i){const l=this;return Qe(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=l.events[l.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):i(s)}}function tR(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:s,resolveAll:o};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},x=[["enter",m,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",g,f]],v=f.parser.constructs.insideSpan.null;v&&Nn(x,x.length,0,_c(v,c.slice(h+1,d),f)),Nn(x,x.length,0,[["exit",g,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",m,f]]),Nn(c,h-1,d-h+3,x),d=h+x.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function s(c,f,d){const h=this.previous,m=this.events;let g=0;return x;function x(w){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(w):(c.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const T=ba(h);if(w===126)return g>1?d(w):(c.consume(w),g++,v);if(g<2&&!i)return d(w);const _=c.exit("strikethroughSequenceTemporary"),A=ba(w);return _._open=!A||A===2&&!!T,_._close=!T||T===2&&!!A,f(w)}}}class nR{constructor(){this.map=[]}add(n,i,l){rR(this,n,i,l)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const l=[];for(;i>0;)i-=1,l.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];l.push(n.slice()),n.length=0;let o=l.pop();for(;o;){for(const s of o)n.push(s);o=l.pop()}this.map.length=0}}function rR(e,n,i,l){let o=0;if(!(i===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=i,e.map[o][2].push(...l);return}o+=1}e.map.push([n,i,l])}}function iR(e,n){let i=!1;const l=[];for(;n<e.length;){const o=e[n];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=l.length-1;l[s]=l[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return l}function lR(){return{flow:{null:{name:"table",tokenize:aR,resolveAll:oR}}}}function aR(e,n,i){const l=this;let o=0,s=0,c;return f;function f(U){let ae=l.events.length-1;for(;ae>-1;){const J=l.events[ae][1].type;if(J==="lineEnding"||J==="linePrefix")ae--;else break}const te=ae>-1?l.events[ae][1].type:null,ue=te==="tableHead"||te==="tableRow"?L:d;return ue===L&&l.parser.lazy[l.now().line]?i(U):ue(U)}function d(U){return e.enter("tableHead"),e.enter("tableRow"),h(U)}function h(U){return U===124||(c=!0,s+=1),m(U)}function m(U){return U===null?i(U):xe(U)?s>1?(s=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),v):i(U):Ue(U)?Qe(e,m,"whitespace")(U):(s+=1,c&&(c=!1,o+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),g(U)))}function g(U){return U===null||U===124||rt(U)?(e.exit("data"),m(U)):(e.consume(U),U===92?x:g)}function x(U){return U===92||U===124?(e.consume(U),g):g(U)}function v(U){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(U):(e.enter("tableDelimiterRow"),c=!1,Ue(U)?Qe(e,w,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):w(U))}function w(U){return U===45||U===58?_(U):U===124?(c=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),T):D(U)}function T(U){return Ue(U)?Qe(e,_,"whitespace")(U):_(U)}function _(U){return U===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),A):U===45?(s+=1,A(U)):U===null||xe(U)?z(U):D(U)}function A(U){return U===45?(e.enter("tableDelimiterFiller"),N(U)):D(U)}function N(U){return U===45?(e.consume(U),N):U===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(U))}function R(U){return Ue(U)?Qe(e,z,"whitespace")(U):z(U)}function z(U){return U===124?w(U):U===null||xe(U)?!c||o!==s?D(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(U)):D(U)}function D(U){return i(U)}function L(U){return e.enter("tableRow"),$(U)}function $(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),$):U===null||xe(U)?(e.exit("tableRow"),n(U)):Ue(U)?Qe(e,$,"whitespace")(U):(e.enter("data"),ee(U))}function ee(U){return U===null||U===124||rt(U)?(e.exit("data"),$(U)):(e.consume(U),U===92?ie:ee)}function ie(U){return U===92||U===124?(e.consume(U),ee):ee(U)}}function oR(e,n){let i=-1,l=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,m,g;const x=new nR;for(;++i<e.length;){const v=e[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(f=!1,d!==0&&(L1(x,n,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(i,0,[["enter",h,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(l=!0,g=void 0,s=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(i,0,[["enter",m,n]])),o=w.type==="tableDelimiterRow"?2:m?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Tu(x,n,s,o,void 0,g),s=[0,0,0,0]),c[2]=i)):w.type==="tableCellDivider"&&(l?l=!1:(s[1]!==0&&(c[0]=c[1],g=Tu(x,n,s,o,void 0,g)),s=c,c=[s[1],i,0,0])):w.type==="tableHead"?(f=!0,d=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(d=i,s[1]!==0?(c[0]=c[1],g=Tu(x,n,s,o,i,g)):c[1]!==0&&(g=Tu(x,n,c,o,i,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=i)}for(d!==0&&L1(x,n,d,h,m),x.consume(n.events),i=-1;++i<n.events.length;){const v=n.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=iR(n.events,i))}return e}function Tu(e,n,i,l,o,s){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(s.end=Object.assign({},da(n.events,i[0])),e.add(i[0],0,[["exit",s,n]]));const d=da(n.events,i[1]);if(s={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(i[1],0,[["enter",s,n]]),i[2]!==0){const h=da(n.events,i[2]),m=da(n.events,i[3]),g={type:f,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(i[2],0,[["enter",g,n]]),l!==2){const x=n.events[i[2]],v=n.events[i[3]];if(x[1].end=Object.assign({},v[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,T=i[3]-i[2]-1;e.add(w,T,[])}}e.add(i[3]+1,0,[["exit",g,n]])}return o!==void 0&&(s.end=Object.assign({},da(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function L1(e,n,i,l,o){const s=[],c=da(n.events,i);o&&(o.end=Object.assign({},c),s.push(["exit",o,n])),l.end=Object.assign({},c),s.push(["exit",l,n]),e.add(i+1,0,s)}function da(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const sR={name:"tasklistCheck",tokenize:cR};function uR(){return{text:{91:sR}}}function cR(e,n,i){const l=this;return o;function o(d){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return rt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):i(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(d)}function f(d){return xe(d)?n(d):Ue(d)?e.check({tokenize:fR},n,i)(d):i(d)}}function fR(e,n,i){return Qe(e,l,"whitespace");function l(o){return o===null?i(o):n(o)}}function dR(e){return wx([S_(),YO(),tR(e),lR(),uR()])}const hR={};function pR(e){const n=this,i=e||hR,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(dR(i)),s.push(y_()),c.push(g_(i))}function mR(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const yR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bR={};function z1(e,n){return(bR.jsx?gR:yR).test(e)}const vR=/[ \t\n\f\r]/g;function xR(e){return typeof e=="object"?e.type==="text"?U1(e.value):!1:U1(e)}function U1(e){return e.replace(vR,"")===""}class us{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}us.prototype.normal={};us.prototype.property={};us.prototype.space=void 0;function Ux(e,n){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new us(i,l,n)}function Gh(e){return e.toLowerCase()}class vn{constructor(n,i){this.attribute=i,this.property=n}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let wR=0;const Oe=wl(),Rt=wl(),Kh=wl(),re=wl(),lt=wl(),ma=wl(),Rn=wl();function wl(){return 2**++wR}const Xh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Rt,commaOrSpaceSeparated:Rn,commaSeparated:ma,number:re,overloadedBoolean:Kh,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),oh=Object.keys(Xh);class Mp extends vn{constructor(n,i,l,o){let s=-1;if(super(n,i),B1(this,"space",o),typeof l=="number")for(;++s<oh.length;){const c=oh[s];B1(this,oh[s],(l&Xh[c])===Xh[c])}}}Mp.prototype.defined=!0;function B1(e,n,i){i&&(e[n]=i)}function Ma(e){const n={},i={};for(const[l,o]of Object.entries(e.properties)){const s=new Mp(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),n[l]=s,i[Gh(l)]=l,i[Gh(s.attribute)]=l}return new us(n,i,e.space)}const Bx=Ma({properties:{ariaActiveDescendant:null,ariaAtomic:Rt,ariaAutoComplete:null,ariaBusy:Rt,ariaChecked:Rt,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Rt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Rt,ariaFlowTo:lt,ariaGrabbed:Rt,ariaHasPopup:null,ariaHidden:Rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:re,ariaLive:null,ariaModal:Rt,ariaMultiLine:Rt,ariaMultiSelectable:Rt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:Rt,ariaReadOnly:Rt,ariaRelevant:null,ariaRequired:Rt,ariaRoleDescription:lt,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:Rt,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function qx(e,n){return n in e?e[n]:n}function Hx(e,n){return qx(e,n.toLowerCase())}const SR=Ma({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ma,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:lt,autoFocus:Oe,autoPlay:Oe,blocking:lt,capture:null,charSet:null,checked:Oe,cite:null,className:lt,cols:re,colSpan:null,content:null,contentEditable:Rt,controls:Oe,controlsList:lt,coords:re|ma,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Kh,draggable:Rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:lt,height:re,hidden:Kh,high:re,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:lt,itemRef:lt,itemScope:Oe,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:re,pattern:null,ping:lt,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:lt,required:Oe,reversed:Oe,rows:re,rowSpan:re,sandbox:lt,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:Rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Rt,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:Rt,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:Hx}),CR=Ma({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Rn,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ma,g2:ma,glyphName:ma,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:Rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rn,rev:Rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rn,requiredFeatures:Rn,requiredFonts:Rn,requiredFormats:Rn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:Rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rn,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qx}),Fx=Ma({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Qx=Ma({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Hx}),Px=Ma({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ER={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kR=/[A-Z]/g,q1=/-[a-z]/g,TR=/^data[-\w.:]+$/i;function AR(e,n){const i=Gh(n);let l=n,o=vn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&TR.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(q1,OR);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!q1.test(s)){let c=s.replace(kR,_R);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=Mp}return new o(l,n)}function _R(e){return"-"+e.toLowerCase()}function OR(e){return e.charAt(1).toUpperCase()}const RR=Ux([Bx,SR,Fx,Qx,Px],"html"),Lp=Ux([Bx,CR,Fx,Qx,Px],"svg");function NR(e){return e.join(" ").trim()}var oa={},sh,H1;function jR(){if(H1)return sh;H1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
248
+ `,h="/",m="*",g="",x="comment",v="declaration";sh=function(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var A=1,N=1;function R(ue){var J=ue.match(n);J&&(A+=J.length);var se=ue.lastIndexOf(d);N=~se?ue.length-se:N+ue.length}function z(){var ue={line:A,column:N};return function(J){return J.position=new D(ue),ee(),J}}function D(ue){this.start=ue,this.end={line:A,column:N},this.source=_.source}D.prototype.content=T;function L(ue){var J=new Error(_.source+":"+A+":"+N+": "+ue);if(J.reason=ue,J.filename=_.source,J.line=A,J.column=N,J.source=T,!_.silent)throw J}function $(ue){var J=ue.exec(T);if(J){var se=J[0];return R(se),T=T.slice(se.length),J}}function ee(){$(i)}function ie(ue){var J;for(ue=ue||[];J=U();)J!==!1&&ue.push(J);return ue}function U(){var ue=z();if(!(h!=T.charAt(0)||m!=T.charAt(1))){for(var J=2;g!=T.charAt(J)&&(m!=T.charAt(J)||h!=T.charAt(J+1));)++J;if(J+=2,g===T.charAt(J-1))return L("End of comment missing");var se=T.slice(2,J-2);return N+=2,R(se),T=T.slice(J),N+=2,ue({type:x,comment:se})}}function ae(){var ue=z(),J=$(l);if(J){if(U(),!$(o))return L("property missing ':'");var se=$(s),q=ue({type:v,property:w(J[0].replace(e,g)),value:se?w(se[0].replace(e,g)):g});return $(c),q}}function te(){var ue=[];ie(ue);for(var J;J=ae();)J!==!1&&(ue.push(J),ie(ue));return ue}return ee(),te()};function w(T){return T?T.replace(f,g):g}return sh}var F1;function DR(){if(F1)return oa;F1=1;var e=oa&&oa.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=i;var n=e(jR());function i(l,o){var s=null;if(!l||typeof l!="string")return s;var c=(0,n.default)(l),f=typeof o=="function";return c.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;f?o(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return oa}var Uo={},Q1;function MR(){if(Q1)return Uo;Q1=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(h){return!h||i.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(o,f):h=h.replace(l,f),h.replace(n,c))};return Uo.camelCase=d,Uo}var Bo,P1;function LR(){if(P1)return Bo;P1=1;var e=Bo&&Bo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(DR()),i=MR();function l(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,d){f&&d&&(c[(0,i.camelCase)(f,s)]=d)}),c}return l.default=l,Bo=l,Bo}var zR=LR();const UR=Ca(zR),Ix=Vx("end"),zp=Vx("start");function Vx(e){return n;function n(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function BR(e){const n=zp(e),i=Ix(e);if(n&&i)return{start:n,end:i}}function $o(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?I1(e.position):"start"in e||"end"in e?I1(e):"line"in e||"column"in e?Zh(e):""}function Zh(e){return V1(e&&e.line)+":"+V1(e&&e.column)}function I1(e){return Zh(e&&e.start)+"-"+Zh(e&&e.end)}function V1(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let o="",s={},c=!1;if(i&&("line"in i&&"column"in i?s={place:i}:"start"in i&&"end"in i?s={place:i}:"type"in i?s={ancestors:[i],place:i.position}:s={...i}),typeof n=="string"?o=n:!s.cause&&n&&(c=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof l=="string"){const d=l.indexOf(":");d===-1?s.ruleId=l:(s.source=l.slice(0,d),s.ruleId=l.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=$o(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}rn.prototype.file="";rn.prototype.name="";rn.prototype.reason="";rn.prototype.message="";rn.prototype.stack="";rn.prototype.column=void 0;rn.prototype.line=void 0;rn.prototype.ancestors=void 0;rn.prototype.cause=void 0;rn.prototype.fatal=void 0;rn.prototype.place=void 0;rn.prototype.ruleId=void 0;rn.prototype.source=void 0;const Up={}.hasOwnProperty,qR=new Map,HR=/[A-Z]/g,FR=new Set(["table","tbody","thead","tfoot","tr"]),QR=new Set(["td","th"]),$x="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function PR(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let l;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=ZR(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=XR(i,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:l,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Lp:RR,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=Yx(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function Yx(e,n,i){if(n.type==="element")return IR(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return VR(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return YR(e,n,i);if(n.type==="mdxjsEsm")return $R(e,n);if(n.type==="root")return GR(e,n,i);if(n.type==="text")return KR(e,n)}function IR(e,n,i){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Lp,e.schema=o),e.ancestors.push(n);const s=Kx(e,n.tagName,!1),c=JR(e,n);let f=qp(e,n);return FR.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!xR(d):!0})),Gx(e,c,s,n),Bp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function VR(e,n){if(n.data&&n.data.estree&&e.evaluater){const l=n.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Jo(e,n.position)}function $R(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Jo(e,n.position)}function YR(e,n,i){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=Lp,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:Kx(e,n.name,!0),c=WR(e,n),f=qp(e,n);return Gx(e,c,s,n),Bp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function GR(e,n,i){const l={};return Bp(l,qp(e,n)),e.create(n,e.Fragment,l,i)}function KR(e,n){return n.value}function Gx(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function Bp(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function XR(e,n,i){return l;function l(o,s,c,f){const h=Array.isArray(c.children)?i:n;return f?h(s,c,f):h(s,c)}}function ZR(e,n){return i;function i(l,o,s,c){const f=Array.isArray(s.children),d=zp(l);return n(o,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function JR(e,n){const i={};let l,o;for(o in n.properties)if(o!=="children"&&Up.call(n.properties,o)){const s=eN(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&QR.has(n.tagName)?l=f:i[c]=f}}if(l){const s=i.style||(i.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function WR(e,n){const i={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const s=l.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else Jo(e,n.position);else{const o=l.name;let s;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const f=l.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Jo(e,n.position);else s=l.value===null?!0:l.value;i[o]=s}return i}function qp(e,n){const i=[];let l=-1;const o=e.passKeys?new Map:qR;for(;++l<n.children.length;){const s=n.children[l];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=o.get(d)||0;c=d+"-"+h,o.set(d,h+1)}}const f=Yx(e,s,c);f!==void 0&&i.push(f)}return i}function eN(e,n,i){const l=AR(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?mR(i):NR(i)),l.property==="style"){let o=typeof i=="object"?i:tN(e,String(i));return e.stylePropertyNameCase==="css"&&(o=nN(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?ER[l.property]||l.property:l.attribute,i]}}function tN(e,n){try{return UR(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=$x+"#cannot-parse-style-attribute",o}}function Kx(e,n,i){let l;if(!i)l={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,c;for(;++s<o.length;){const f=z1(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}l=c}else l=z1(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return Up.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);Jo(e)}function Jo(e,n){const i=new rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=$x+"#cannot-handle-mdx-estrees-without-createevaluater",i}function nN(e){const n={};let i;for(i in e)Up.call(e,i)&&(n[rN(i)]=e[i]);return n}function rN(e){let n=e.replace(HR,iN);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function iN(e){return"-"+e.toLowerCase()}const uh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},lN={tokenize:aN};function aN(e){const n=e.attempt(this.parser.constructs.contentInitial,l,o);let i;return n;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=d),i=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return xe(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const oN={tokenize:sN},$1={tokenize:uN};function sN(e){const n=this,i=[];let l=0,o,s,c;return f;function f(R){if(l<i.length){const z=i[l];return n.containerState=z[1],e.attempt(z[0].continuation,d,h)(R)}return h(R)}function d(R){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const z=n.events.length;let D=z,L;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){L=n.events[D][1].end;break}A(l);let $=z;for(;$<n.events.length;)n.events[$][1].end={...L},$++;return Nn(n.events,D+1,0,n.events.slice(z)),n.events.length=$,h(R)}return f(R)}function h(R){if(l===i.length){if(!o)return x(R);if(o.currentConstruct&&o.currentConstruct.concrete)return w(R);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check($1,m,g)(R)}function m(R){return o&&N(),A(l),x(R)}function g(R){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,w(R)}function x(R){return n.containerState={},e.attempt($1,v,w)(R)}function v(R){return l++,i.push([n.currentConstruct,n.containerState]),x(R)}function w(R){if(R===null){o&&N(),A(0),e.consume(R);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),T(R)}function T(R){if(R===null){_(e.exit("chunkFlow"),!0),A(0),e.consume(R);return}return xe(R)?(e.consume(R),_(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(R),T)}function _(R,z){const D=n.sliceStream(R);if(z&&D.push(null),R.previous=s,s&&(s.next=R),s=R,o.defineSkip(R.start),o.write(D),n.parser.lazy[R.start.line]){let L=o.events.length;for(;L--;)if(o.events[L][1].start.offset<c&&(!o.events[L][1].end||o.events[L][1].end.offset>c))return;const $=n.events.length;let ee=$,ie,U;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(ie){U=n.events[ee][1].end;break}ie=!0}for(A(l),L=$;L<n.events.length;)n.events[L][1].end={...U},L++;Nn(n.events,ee+1,0,n.events.slice($)),n.events.length=L}}function A(R){let z=i.length;for(;z-- >R;){const D=i[z];n.containerState=D[1],D[0].exit.call(n,e)}i.length=R}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function uN(e,n,i){return Qe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const cN={tokenize:fN};function fN(e){const n=this,i=e.attempt(ss,l,e.attempt(this.parser.constructs.flowInitial,o,Qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(J_,o)),"linePrefix")));return i;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const dN={resolveAll:Zx()},hN=Xx("string"),pN=Xx("text");function Xx(e){return{resolveAll:Zx(e==="text"?mN:void 0),tokenize:n};function n(i){const l=this,o=this.parser.constructs[e],s=i.attempt(o,c,f);return c;function c(m){return h(m)?s(m):f(m)}function f(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),d}function d(m){return h(m)?(i.exit("data"),s(m)):(i.consume(m),d)}function h(m){if(m===null)return!0;const g=o[m];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(l,l.previous))return!0}return!1}}}function Zx(e){return n;function n(i,l){let o=-1,s;for(;++o<=i.length;)s===void 0?i[o]&&i[o][1].type==="data"&&(s=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==s+2&&(i[s][1].end=i[o-1][1].end,i.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(i,l):i}}function mN(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const l=e[i-1][1],o=n.sliceStream(l);let s=o.length,c=-1,f=0,d;for(;s--;){const h=o[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const h={type:i===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:l.start._bufferIndex+c,_index:l.start._index+s,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...h.start},l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(i,0,["enter",h,n],["exit",h,n]),i+=2)}i++}return e}const yN={42:yn,43:yn,45:yn,48:yn,49:yn,50:yn,51:yn,52:yn,53:yn,54:yn,55:yn,56:yn,57:yn,62:Rx},gN={91:rO},bN={[-2]:lh,[-1]:lh,32:lh},vN={35:uO,42:Fu,45:[M1,Fu],60:hO,61:M1,95:Fu,96:j1,126:j1},xN={38:jx,92:Nx},wN={[-5]:ah,[-4]:ah,[-3]:ah,33:NO,38:jx,42:Yh,60:[D_,xO],91:DO,92:[oO,Nx],93:Dp,95:Yh,96:$_},SN={null:[Yh,dN]},CN={null:[42,95]},EN={null:[]},kN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CN,contentInitial:gN,disable:EN,document:yN,flow:vN,flowInitial:bN,insideSpan:SN,string:xN,text:wN},Symbol.toStringTag,{value:"Module"}));function TN(e,n,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},s=[];let c=[],f=[];const d={attempt:$(D),check:$(L),consume:N,enter:R,exit:z,interrupt:$(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:e,previous:null,sliceSerialize:x,sliceStream:v,write:g};let m=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function g(ae){return c=Yn(c,ae),_(),c[c.length-1]!==null?[]:(ee(n,0),h.events=_c(s,h.events,h),h.events)}function x(ae,te){return _N(v(ae),te)}function v(ae){return AN(c,ae)}function w(){const{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}=l;return{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}}function T(ae){o[ae.line]=ae.column,U()}function _(){let ae;for(;l._index<c.length;){const te=c[l._index];if(typeof te=="string")for(ae=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ae&&l._bufferIndex<te.length;)A(te.charCodeAt(l._bufferIndex));else A(te)}}function A(ae){m=m(ae)}function N(ae){xe(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,U()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=ae}function R(ae,te){const ue=te||{};return ue.type=ae,ue.start=w(),h.events.push(["enter",ue,h]),f.push(ue),ue}function z(ae){const te=f.pop();return te.end=w(),h.events.push(["exit",te,h]),te}function D(ae,te){ee(ae,te.from)}function L(ae,te){te.restore()}function $(ae,te){return ue;function ue(J,se,q){let X,ne,pe,C;return Array.isArray(J)?oe(J):"tokenize"in J?oe([J]):I(J);function I(ce){return ct;function ct(Re){const Ie=Re!==null&&ce[Re],Qt=Re!==null&&ce.null,xt=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Qt)?Qt:Qt?[Qt]:[]];return oe(xt)(Re)}}function oe(ce){return X=ce,ne=0,ce.length===0?q:O(ce[ne])}function O(ce){return ct;function ct(Re){return C=ie(),pe=ce,ce.partial||(h.currentConstruct=ce),ce.name&&h.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(te?Object.assign(Object.create(h),te):h,d,fe,Te)(Re)}}function fe(ce){return ae(pe,C),se}function Te(ce){return C.restore(),++ne<X.length?O(X[ne]):q}}}function ee(ae,te){ae.resolveAll&&!s.includes(ae)&&s.push(ae),ae.resolve&&Nn(h.events,te,h.events.length-te,ae.resolve(h.events.slice(te),h)),ae.resolveTo&&(h.events=ae.resolveTo(h.events,h))}function ie(){const ae=w(),te=h.previous,ue=h.currentConstruct,J=h.events.length,se=Array.from(f);return{from:J,restore:q};function q(){l=ae,h.previous=te,h.currentConstruct=ue,h.events.length=J,f=se,U()}}function U(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function AN(e,n){const i=n.start._index,l=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let c;if(i===o)c=[e[i].slice(l,s)];else{if(c=e.slice(i,o),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function _N(e,n){let i=-1;const l=[];let o;for(;++i<e.length;){const s=e[i];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
249
+ `;break}case-3:{c=`\r
250
+ `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,l.push(c)}return l.join("")}function ON(e){const l={constructs:wx([kN,...(e||{}).extensions||[]]),content:o(lN),defined:[],document:o(oN),flow:o(cN),lazy:{},string:o(hN),text:o(pN)};return l;function o(s){return c;function c(f){return TN(l,s,f)}}}function RN(e){for(;!Dx(e););return e}const Y1=/[\0\t\n\r]/g;function NN(){let e=1,n="",i=!0,l;return o;function o(s,c,f){const d=[];let h,m,g,x,v;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,n="",i&&(s.charCodeAt(0)===65279&&g++,i=void 0);g<s.length;){if(Y1.lastIndex=g,h=Y1.exec(s),x=h&&h.index!==void 0?h.index:s.length,v=s.charCodeAt(x),!h){n=s.slice(g);break}if(v===10&&g===x&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),g<x&&(d.push(s.slice(g,x)),e+=x-g),v){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:l=!0,e=1}g=x+1}return f&&(l&&d.push(-5),n&&d.push(n),d.push(null)),d}}const Jx={}.hasOwnProperty;function jN(e,n,i){return typeof n!="string"&&(i=n,n=void 0),DN(i)(RN(ON(i).document().write(NN()(e,n,!0))))}function DN(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(ii),blockQuote:s(Qt),characterEscape:ie,characterReference:ie,codeFenced:s(xt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(xt,c),codeText:s(cn,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(Jn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(fn),hardBreakEscape:s(Mt),hardBreakTrailing:s(Mt),htmlFlow:s(Lt,c),htmlFlowData:ie,htmlText:s(Lt,c),htmlTextData:ie,image:s(Wn),label:c,link:s(xn),listItem:s(Dn),listItemValue:x,listOrdered:s(Ge,g),listUnordered:s(Ge),paragraph:s(Rr),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ii),strong:s(fr),thematicBreak:s(li)},exit:{atxHeading:d(),atxHeadingSequence:D,autolink:d(),autolinkEmail:Ie,autolinkProtocol:Re,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:ct,codeFenced:d(_),codeFencedFence:T,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:U,codeIndented:d(A),codeText:d(se),codeTextData:U,data:U,definition:d(),definitionDestinationString:z,definitionLabelString:N,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(te),hardBreakTrailing:d(te),htmlFlow:d(ue),htmlFlowData:U,htmlText:d(J),htmlTextData:U,image:d(X),label:pe,labelText:ne,lineEnding:ae,link:d(q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:fe,resourceDestinationString:C,resourceTitleString:I,resource:oe,setextHeading:d(ee),setextHeadingLineSequence:$,setextHeadingText:L,strong:d(),thematicBreak:d()}};Wx(n,(e||{}).mdastExtensions||[]);const i={};return l;function l(Y){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:m,data:i},ge=[];let Be=-1;for(;++Be<Y.length;)if(Y[Be][1].type==="listOrdered"||Y[Be][1].type==="listUnordered")if(Y[Be][0]==="enter")ge.push(Be);else{const Pt=ge.pop();Be=o(Y,Pt,Be)}for(Be=-1;++Be<Y.length;){const Pt=n[Y[Be][0]];Jx.call(Pt,Y[Be][1].type)&&Pt[Y[Be][1].type].call(Object.assign({sliceSerialize:Y[Be][2].sliceSerialize},me),Y[Be][1])}if(me.tokenStack.length>0){const Pt=me.tokenStack[me.tokenStack.length-1];(Pt[1]||G1).call(me,void 0,Pt[0])}for(W.position={start:Ni(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Ni(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<n.transforms.length;)W=n.transforms[Be](W)||W;return W}function o(Y,W,me){let ge=W-1,Be=-1,Pt=!1,Gt,mt,yt,qe;for(;++ge<=me;){const ft=Y[ge];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?Be++:Be--,qe=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(Gt&&!qe&&!Be&&!yt&&(yt=ge),qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qe=void 0}if(!Be&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||Be===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(Gt){let zt=ge;for(mt=void 0;zt--;){const Ut=Y[zt];if(Ut[1].type==="lineEnding"||Ut[1].type==="lineEndingBlank"){if(Ut[0]==="exit")continue;mt&&(Y[mt][1].type="lineEndingBlank",Pt=!0),Ut[1].type="lineEnding",mt=zt}else if(!(Ut[1].type==="linePrefix"||Ut[1].type==="blockQuotePrefix"||Ut[1].type==="blockQuotePrefixWhitespace"||Ut[1].type==="blockQuoteMarker"||Ut[1].type==="listItemIndent"))break}yt&&(!mt||yt<mt)&&(Gt._spread=!0),Gt.end=Object.assign({},mt?Y[mt][1].start:ft[1].end),Y.splice(mt||ge,0,["exit",Gt,ft[2]]),ge++,me++}if(ft[1].type==="listItemPrefix"){const zt={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};Gt=zt,Y.splice(ge,0,["enter",zt,ft[2]]),ge++,me++,yt=void 0,qe=!0}}}return Y[W][1]._spread=Pt,me}function s(Y,W){return me;function me(ge){f.call(this,Y(ge),ge),W&&W.call(this,ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(Y,W,me){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([W,me||void 0]),Y.position={start:Ni(W.start),end:void 0}}function d(Y){return W;function W(me){Y&&Y.call(this,me),h.call(this,me)}}function h(Y,W){const me=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==Y.type&&(W?W.call(this,Y,ge[0]):(ge[1]||G1).call(this,Y,ge[0]));else throw new Error("Cannot close `"+Y.type+"` ("+$o({start:Y.start,end:Y.end})+"): it’s not open");me.position.end=Ni(Y.end)}function m(){return Op(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(Y){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.lang=Y}function w(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.meta=Y}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y.replace(/(\r?\n|\r)$/g,"")}function N(Y){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=rr(this.sliceSerialize(Y)).toLowerCase()}function R(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.title=Y}function z(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.url=Y}function D(Y){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize(Y).length;W.depth=me}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function $(Y){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(Y){const me=this.stack[this.stack.length-1].children;let ge=me[me.length-1];(!ge||ge.type!=="text")&&(ge=Nr(),ge.position={start:Ni(Y.start),end:void 0},me.push(ge)),this.stack.push(ge)}function U(Y){const W=this.stack.pop();W.value+=this.sliceSerialize(Y),W.position.end=Ni(Y.end)}function ae(Y){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=Ni(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(ie.call(this,Y),U.call(this,Y))}function te(){this.data.atHardBreak=!0}function ue(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function J(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function se(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function q(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=W,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function X(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=W,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function ne(Y){const W=this.sliceSerialize(Y),me=this.stack[this.stack.length-2];me.label=r_(W),me.identifier=rr(W).toLowerCase()}function pe(){const Y=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ge=Y.children;me.children=ge}else me.alt=W}function C(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.url=Y}function I(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.title=Y}function oe(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function fe(Y){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=rr(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function Te(Y){this.data.characterReferenceType=Y.type}function ce(Y){const W=this.sliceSerialize(Y),me=this.data.characterReferenceType;let ge;me?(ge=xx(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=Np(W);const Be=this.stack[this.stack.length-1];Be.value+=ge}function ct(Y){const W=this.stack.pop();W.position.end=Ni(Y.end)}function Re(Y){U.call(this,Y);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(Y)}function Ie(Y){U.call(this,Y);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(Y)}function Qt(){return{type:"blockquote",children:[]}}function xt(){return{type:"code",lang:null,meta:null,value:""}}function cn(){return{type:"inlineCode",value:""}}function Jn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fn(){return{type:"emphasis",children:[]}}function ii(){return{type:"heading",depth:0,children:[]}}function Mt(){return{type:"break"}}function Lt(){return{type:"html",value:""}}function Wn(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function Ge(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Dn(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Rr(){return{type:"paragraph",children:[]}}function fr(){return{type:"strong",children:[]}}function Nr(){return{type:"text",value:""}}function li(){return{type:"thematicBreak"}}}function Ni(e){return{line:e.line,column:e.column,offset:e.offset}}function Wx(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?Wx(e,l):MN(e,l)}}function MN(e,n){let i;for(i in n)if(Jx.call(n,i))switch(i){case"canContainEols":{const l=n[i];l&&e[i].push(...l);break}case"transforms":{const l=n[i];l&&e[i].push(...l);break}case"enter":case"exit":{const l=n[i];l&&Object.assign(e[i],l);break}}}function G1(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+$o({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+$o({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+$o({start:n.start,end:n.end})+") is still open")}function LN(e){const n=this;n.parser=i;function i(l){return jN(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function zN(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)}function UN(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
251
+ `}]}function BN(e,n){const i=n.value?n.value+`
252
+ `:"",l={};n.lang&&(l.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function qN(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function HN(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function FN(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=Da(l.toLowerCase()),s=e.footnoteOrder.indexOf(l);let c,f=e.footnoteCounts.get(l);f===void 0?(f=0,e.footnoteOrder.push(l),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(l,f);const d={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function QN(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function PN(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function ew(e,n){const i=n.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+l}];const o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=l:o.push({type:"text",value:l}),o}function IN(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return ew(e,n);const o={src:Da(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function VN(e,n){const i={src:Da(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function $N(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,l),e.applyData(n,l)}function YN(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return ew(e,n);const o={href:Da(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function GN(e,n){const i={href:Da(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function KN(e,n,i){const l=e.all(n),o=i?XN(i):tw(n),s={},c=[];if(typeof n.checked=="boolean"){const m=l[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},l.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const m=l[f];(o||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
253
+ `}),m.type==="element"&&m.tagName==="p"&&!o?c.push(...m.children):c.push(m)}const d=l[l.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
254
+ `});const h={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,h),e.applyData(n,h)}function XN(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let l=-1;for(;!n&&++l<i.length;)n=tw(i[l])}return n}function tw(e){const n=e.spread;return n??e.children.length>1}function ZN(e,n){const i={},l=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++o<l.length;){const c=l[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function JN(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function WN(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function e6(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function t6(e,n){const i=e.all(n),l=i.shift(),o=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],c),o.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=zp(n.children[1]),d=Ix(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function n6(e,n,i){const l=i?i.children:void 0,s=(l?l.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const g=n.children[d],x={},v=c?c[d]:void 0;v&&(x.align=v);let w={type:"element",tagName:s,properties:x,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),h.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,m),e.applyData(n,m)}function r6(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const K1=9,X1=32;function i6(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),o=0;const s=[];for(;l;)s.push(Z1(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(n);return s.push(Z1(n.slice(o),o>0,!1)),s.join("")}function Z1(e,n,i){let l=0,o=e.length;if(n){let s=e.codePointAt(l);for(;s===K1||s===X1;)l++,s=e.codePointAt(l)}if(i){let s=e.codePointAt(o-1);for(;s===K1||s===X1;)o--,s=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function l6(e,n){const i={type:"text",value:i6(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function a6(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const o6={blockquote:zN,break:UN,code:BN,delete:qN,emphasis:HN,footnoteReference:FN,heading:QN,html:PN,imageReference:IN,image:VN,inlineCode:$N,linkReference:YN,link:GN,listItem:KN,list:ZN,paragraph:JN,root:WN,strong:e6,table:t6,tableCell:r6,tableRow:n6,text:l6,thematicBreak:a6,toml:Au,yaml:Au,definition:Au,footnoteDefinition:Au};function Au(){}const nw=-1,Oc=0,Yo=1,ic=2,Hp=3,Fp=4,Qp=5,Pp=6,rw=7,iw=8,J1=typeof self=="object"?self:globalThis,s6=(e,n)=>{const i=(o,s)=>(e.set(s,o),o),l=o=>{if(e.has(o))return e.get(o);const[s,c]=n[o];switch(s){case Oc:case nw:return i(c,o);case Yo:{const f=i([],o);for(const d of c)f.push(l(d));return f}case ic:{const f=i({},o);for(const[d,h]of c)f[l(d)]=l(h);return f}case Hp:return i(new Date(c),o);case Fp:{const{source:f,flags:d}=c;return i(new RegExp(f,d),o)}case Qp:{const f=i(new Map,o);for(const[d,h]of c)f.set(l(d),l(h));return f}case Pp:{const f=i(new Set,o);for(const d of c)f.add(l(d));return f}case rw:{const{name:f,message:d}=c;return i(new J1[f](d),o)}case iw:return i(BigInt(c),o);case"BigInt":return i(Object(BigInt(c)),o);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new J1[s](c),o)};return l},W1=e=>s6(new Map,e)(0),sa="",{toString:u6}={},{keys:c6}=Object,qo=e=>{const n=typeof e;if(n!=="object"||!e)return[Oc,n];const i=u6.call(e).slice(8,-1);switch(i){case"Array":return[Yo,sa];case"Object":return[ic,sa];case"Date":return[Hp,sa];case"RegExp":return[Fp,sa];case"Map":return[Qp,sa];case"Set":return[Pp,sa];case"DataView":return[Yo,i]}return i.includes("Array")?[Yo,i]:i.includes("Error")?[rw,i]:[ic,i]},_u=([e,n])=>e===Oc&&(n==="function"||n==="symbol"),f6=(e,n,i,l)=>{const o=(c,f)=>{const d=l.push(c)-1;return i.set(f,d),d},s=c=>{if(i.has(c))return i.get(c);let[f,d]=qo(c);switch(f){case Oc:{let m=c;switch(d){case"bigint":f=iw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return o([nw],c)}return o([f,m],c)}case Yo:{if(d){let x=c;return d==="DataView"?x=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(x=new Uint8Array(c)),o([d,[...x]],c)}const m=[],g=o([f,m],c);for(const x of c)m.push(s(x));return g}case ic:{if(d)switch(d){case"BigInt":return o([d,c.toString()],c);case"Boolean":case"Number":case"String":return o([d,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],g=o([f,m],c);for(const x of c6(c))(e||!_u(qo(c[x])))&&m.push([s(x),s(c[x])]);return g}case Hp:return o([f,c.toISOString()],c);case Fp:{const{source:m,flags:g}=c;return o([f,{source:m,flags:g}],c)}case Qp:{const m=[],g=o([f,m],c);for(const[x,v]of c)(e||!(_u(qo(x))||_u(qo(v))))&&m.push([s(x),s(v)]);return g}case Pp:{const m=[],g=o([f,m],c);for(const x of c)(e||!_u(qo(x)))&&m.push(s(x));return g}}const{message:h}=c;return o([f,{name:d,message:h}],c)};return s},eb=(e,{json:n,lossy:i}={})=>{const l=[];return f6(!(n||i),!!n,new Map,l)(e),l},lc=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?W1(eb(e,n)):structuredClone(e):(e,n)=>W1(eb(e,n));function d6(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function h6(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function p6(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||d6,l=e.options.footnoteBackLabel||h6,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),g=String(h.identifier).toUpperCase(),x=Da(g.toLowerCase());let v=0;const w=[],T=e.footnoteCounts.get(g);for(;T!==void 0&&++v<=T;){w.length>0&&w.push({type:"text",value:" "});let N=typeof i=="string"?i:i(d,v);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(d,v),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=m[m.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const N=_.children[_.children.length-1];N&&N.type==="text"?N.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else m.push(...w);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(m,!0)};e.patch(h,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...lc(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
255
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
256
+ `}]}}const Jh={}.hasOwnProperty,m6={};function y6(e,n){const i=n||m6,l=new Map,o=new Map,s=new Map,c={...o6,...i.handlers},f={all:h,applyData:b6,definitionById:l,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:d,options:i,patch:g6,wrap:x6};return _p(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?l:o,x=String(m.identifier).toUpperCase();g.has(x)||g.set(x,m)}}),f;function d(m,g){const x=m.type,v=f.handlers[x];if(Jh.call(f.handlers,x)&&v)return v(f,m,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in m){const{children:T,..._}=m,A=lc(_);return A.children=f.all(m),A}return lc(m)}return(f.options.unknownHandler||v6)(f,m,g)}function h(m){const g=[];if("children"in m){const x=m.children;let v=-1;for(;++v<x.length;){const w=f.one(x[v],m);if(w){if(v&&x[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=tb(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=tb(T.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function g6(e,n){e.position&&(n.position=BR(e))}function b6(e,n){let i=n;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const c="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:c}}i.type==="element"&&s&&Object.assign(i.properties,lc(s)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function v6(e,n){const i=n.data||{},l="value"in n&&!(Jh.call(i,"hProperties")||Jh.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function x6(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
257
+ `});++l<e.length;)l&&i.push({type:"text",value:`
258
+ `}),i.push(e[l]);return n&&e.length>0&&i.push({type:"text",value:`
259
+ `}),i}function tb(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function nb(e,n){const i=y6(e,n),l=i.one(e,void 0),o=p6(i),s=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
260
+ `},o),s}function w6(e,n){return e&&"run"in e?async function(i,l){const o=nb(i,{file:l,...n});await e.run(o,l)}:function(i,l){return nb(i,{file:l,...e||n})}}function rb(e){if(e)throw e}var ch,ib;function S6(){if(ib)return ch;ib=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},s=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},c=function(h,m){i&&m.name==="__proto__"?i(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(l)return l(h,m).value}else return;return h[m]};return ch=function d(){var h,m,g,x,v,w,T=arguments[0],_=1,A=arguments.length,N=!1;for(typeof T=="boolean"&&(N=T,T=arguments[1]||{},_=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});_<A;++_)if(h=arguments[_],h!=null)for(m in h)g=f(T,m),x=f(h,m),T!==x&&(N&&x&&(s(x)||(v=o(x)))?(v?(v=!1,w=g&&o(g)?g:[]):w=g&&s(g)?g:{},c(T,{name:m,newValue:d(N,w,x)})):typeof x<"u"&&c(T,{name:m,newValue:x}));return T},ch}var C6=S6();const fh=Ca(C6);function Wh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function E6(){const e=[],n={run:i,use:l};return n;function i(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(d,...h){const m=e[++s];let g=-1;if(d){c(d);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,m?k6(m,f)(...h):c(null,...h)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function k6(e,n){let i;return l;function l(...c){const f=e.length>c.length;let d;f&&c.push(o);try{d=e.apply(this,c)}catch(h){const m=h;if(f&&i)throw m;return o(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,o):d instanceof Error?o(d):s(d))}function o(c,...f){i||(i=!0,n(c,...f))}function s(c){o(null,c)}}const xr={basename:T6,dirname:A6,extname:_6,join:O6,sep:"/"};function T6(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');cs(e);let i=0,l=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){i=o+1;break}}else l<0&&(s=!0,l=o+1);return l<0?"":e.slice(i,l)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){i=o+1;break}}else c<0&&(s=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(l=o):(f=-1,l=c));return i===l?l=c:l<0&&(l=e.length),e.slice(i,l)}function A6(e){if(cs(e),e.length===0)return".";let n=-1,i=e.length,l;for(;--i;)if(e.codePointAt(i)===47){if(l){n=i;break}}else l||(l=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function _6(e){cs(e);let n=e.length,i=-1,l=0,o=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){l=n+1;break}continue}i<0&&(c=!0,i=n+1),f===46?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||i<0||s===0||s===1&&o===i-1&&o===l+1?"":e.slice(o,i)}function O6(...e){let n=-1,i;for(;++n<e.length;)cs(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":R6(i)}function R6(e){cs(e);const n=e.codePointAt(0)===47;let i=N6(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function N6(e,n){let i="",l=0,o=-1,s=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(d=i.lastIndexOf("/"),d!==i.length-1){d<0?(i="",l=0):(i=i.slice(0,d),l=i.length-1-i.lastIndexOf("/")),o=c,s=0;continue}}else if(i.length>0){i="",l=0,o=c,s=0;continue}}n&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),l=c-o-1;o=c,s=0}else f===46&&s>-1?s++:s=-1}return i}function cs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const j6={cwd:D6};function D6(){return"/"}function ep(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function M6(e){if(typeof e=="string")e=new URL(e);else if(!ep(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return L6(e)}function L6(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const l=n.codePointAt(i+2);if(l===70||l===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const dh=["history","path","basename","stem","extname","dirname"];class lw{constructor(n){let i;n?ep(n)?i={path:n}:typeof n=="string"||z6(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":j6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<dh.length;){const s=dh[l];s in i&&i[s]!==void 0&&i[s]!==null&&(this[s]=s==="history"?[...i[s]]:i[s])}let o;for(o in i)dh.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?xr.basename(this.path):void 0}set basename(n){ph(n,"basename"),hh(n,"basename"),this.path=xr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?xr.dirname(this.path):void 0}set dirname(n){lb(this.basename,"dirname"),this.path=xr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?xr.extname(this.path):void 0}set extname(n){if(hh(n,"extname"),lb(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){ep(n)&&(n=M6(n)),ph(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?xr.basename(this.path,this.extname):void 0}set stem(n){ph(n,"stem"),hh(n,"stem"),this.path=xr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,l){const o=this.message(n,i,l);throw o.fatal=!0,o}info(n,i,l){const o=this.message(n,i,l);return o.fatal=void 0,o}message(n,i,l){const o=new rn(n,i,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function hh(e,n){if(e&&e.includes(xr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+xr.sep+"`")}function ph(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function lb(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function z6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const U6=function(e){const l=this.constructor.prototype,o=l[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,l),s},B6={}.hasOwnProperty;class Ip extends U6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=E6()}copy(){const n=new Ip;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(fh(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(gh("data",this.frozen),this.namespace[n]=i,this):B6.call(this.namespace,n)&&this.namespace[n]||void 0:n?(gh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=i.call(n,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Ou(n),l=this.parser||this.Parser;return mh("parse",l),l(String(i),i)}process(n,i){const l=this;return this.freeze(),mh("process",this.parser||this.Parser),yh("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(s,c){const f=Ou(n),d=l.parse(f);l.run(d,f,function(m,g,x){if(m||!g||!x)return h(m);const v=g,w=l.stringify(v,x);F6(w)?x.value=w:x.result=w,h(m,x)});function h(m,g){m||!g?c(m):s?s(g):i(void 0,g)}}}processSync(n){let i=!1,l;return this.freeze(),mh("processSync",this.parser||this.Parser),yh("processSync",this.compiler||this.Compiler),this.process(n,o),ob("processSync","process",i),l;function o(s,c){i=!0,rb(s),l=c}}run(n,i,l){ab(n),this.freeze();const o=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?s(void 0,l):new Promise(s);function s(c,f){const d=Ou(i);o.run(n,d,h);function h(m,g,x){const v=g||n;m?f(m):c?c(v):l(void 0,v,x)}}}runSync(n,i){let l=!1,o;return this.run(n,i,s),ob("runSync","run",l),o;function s(c,f){rb(c),o=f,l=!0}}stringify(n,i){this.freeze();const l=Ou(i),o=this.compiler||this.Compiler;return yh("stringify",o),ab(n),o(n,l)}use(n,...i){const l=this.attachers,o=this.namespace;if(gh("use",this.frozen),n!=null)if(typeof n=="function")d(n,i);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...g]=h;d(m,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(o.settings=fh(!0,o.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const g=h[m];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let g=-1,x=-1;for(;++g<l.length;)if(l[g][0]===h){x=g;break}if(x===-1)l.push([h,...m]);else if(m.length>0){let[v,...w]=m;const T=l[x][1];Wh(T)&&Wh(v)&&(v=fh(!0,T,v)),l[x]=[h,v,...w]}}}}const q6=new Ip().freeze();function mh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function yh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ab(e){if(!Wh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ob(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ou(e){return H6(e)?e:new lw(e)}function H6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function F6(e){return typeof e=="string"||Q6(e)}function Q6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const P6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sb=[],ub={allowDangerousHtml:!0},I6=/^(https?|ircs?|mailto|xmpp)$/i,V6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $6(e){const n=Y6(e),i=G6(e);return K6(n.runSync(n.parse(i),i),e)}function Y6(e){const n=e.rehypePlugins||sb,i=e.remarkPlugins||sb,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ub}:ub;return q6().use(LN).use(i).use(w6,l).use(n)}function G6(e){const n=e.children||"",i=new lw;return typeof n=="string"&&(i.value=n),i}function K6(e,n){const i=n.allowedElements,l=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||X6;for(const m of V6)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+P6+m.id,void 0);return _p(e,h),PR(e,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function h(m,g,x){if(m.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let v;for(v in uh)if(Object.hasOwn(uh,v)&&Object.hasOwn(m.properties,v)){const w=m.properties[v],T=uh[v];(T===null||T.includes(m.tagName))&&(m.properties[v]=d(String(w||""),v,m))}}if(m.type==="element"){let v=i?!i.includes(m.tagName):s?s.includes(m.tagName):!1;if(!v&&l&&typeof g=="number"&&(v=!l(m,g,x)),v&&x&&typeof g=="number")return f&&m.children?x.children.splice(g,1,...m.children):x.children.splice(g,1),g}}}function X6(e){const n=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||l!==-1&&n>l||I6.test(e.slice(0,n))?e:""}const Z6=({children:e,...n})=>b.jsx("code",{className:"bg-gray-100 text-gray-600 px-1.5 py-0.5 rounded text-sm font-mono",...n,children:e}),J6=e=>Array.isArray(e)&&typeof e[0]=="string"?e[0]:typeof e=="string"?e:"",W6=({getText:e})=>{const n=async()=>{await navigator.clipboard.writeText(e()),Gn.success("Copied!")};return b.jsx("button",{onClick:n,className:"text-xs text-white px-2 py-1 rounded hover:bg-gray-600 cursor-pointer",children:"📋"})},ej=({children:e,className:n,...i})=>{const l=(n==null?void 0:n.replace("language-",""))||"";return b.jsxs("div",{className:"mb-4 not-prose",children:[l&&b.jsxs("div",{className:"bg-gray-800 text-gray-300 px-4 py-2 text-sm font-mono rounded-t-md flex justify-between items-center",children:[b.jsx("span",{children:l}),b.jsx(W6,{getText:()=>J6(e).trim()})]}),b.jsx("pre",{className:`bg-gray-900 text-gray-100 p-4 overflow-x-auto ${l?"rounded-b-md":"rounded-md"}`,...i,children:b.jsx("code",{className:"font-mono text-sm",children:e})})]})},tj={code:({className:e,children:n,...i})=>e?b.jsx(ej,{className:e,...i,children:n}):b.jsx(Z6,{...i,children:n}),pre:({children:e})=>b.jsx(b.Fragment,{children:e})},aw=({content:e})=>b.jsx("div",{className:"prose max-w-none",children:b.jsx($6,{remarkPlugins:[pR],components:tj,children:e})}),nj=`# 🍜 DataRamen\r
261
+ \r
262
+ A cozy web GUI for [MySQL](https://www.mysql.com/) and [PostgreSQL](https://www.postgresql.org/), made for developers who like to move fast and stay focused. Connect, explore, and inspect your data effortlessly, no boilerplate, no drag.\r
263
+ \r
264
+ ### Prerequisites\r
265
+ \r
266
+ - Node.js: v22 or higher\r
267
+ - Download & install from the [Node.js website](https://nodejs.org/).\r
268
+ - Verify installation \`node --version\`\r
269
+ \r
270
+ ### Install\r
271
+ \r
272
+ DataRamen requires the companion [@dataramen/cli](https://www.npmjs.com/package/@dataramen/cli) to manage the local server instance.\r
273
+ Install the CLI globally using npm:\r
274
+ \r
275
+ \`\`\`bash\r
276
+ npm install -g @dataramen/cli\r
277
+ \`\`\`\r
278
+ \r
279
+ ### Starting the Server\r
280
+ \r
281
+ Once you have completed [Prerequisites](#prerequisites) and [Install](#install) steps, you can start the server using the following terminal command:\r
282
+ \r
283
+ \`\`\`bash\r
284
+ dataramen start\r
285
+ \`\`\`\r
286
+ `,rj=()=>b.jsx("div",{className:"card-white",children:b.jsx(aw,{content:nj})}),cb={active:!1,version:""};async function ij(){try{const{data:e}=await vc.get("/status",{timeout:500,validateStatus:()=>!0});return(e==null?void 0:e.data)||cb}catch{return cb}}function lj(){const e=At.getQueryState([Ui]);(e==null?void 0:e.status)==="error"&&At.invalidateQueries({queryKey:[Ui]})}function aj(){const e=At.getQueryState([Ui]);(e==null?void 0:e.status)==="success"&&At.resetQueries({queryKey:[Ui]})}const Vp=()=>Kn({queryKey:["local-server-status"],queryFn:ij,onSuccess:({active:e})=>{e?lj():aj()},refetchOnWindowFocus:!0,refetchInterval:(e,n)=>{var i,l;return(l=(i=n==null?void 0:n.state)==null?void 0:i.data)!=null&&l.active?2e4:4e3},retry:!1}),[oj,va]=cr(void 0),sj="flex gap-2 items-center cursor-pointer hover:bg-gray-50 bg-white py-2 px-4 rounded-lg border border-gray-200",uj=()=>{const{data:e}=Xn(),{data:n}=Qv({teamId:e==null?void 0:e.teamId}),i=l=>{va(l),ut.event("On open datasource [Home]")};return!n||n.length===0?null:b.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-1 mt-2",children:n==null?void 0:n.map(l=>b.jsxs("button",{className:sj,onClick:()=>i(l.id),children:[b.jsx(tc,{size:24,type:l.dbType}),b.jsx("p",{className:"font-semibold truncate text-gray-800",children:l.name})]}))})},cj=()=>{const{data:e}=Xn(),n=Sc(),{data:i}=Vp(),{data:l}=Qv({teamId:e==null?void 0:e.teamId}),o=!!l&&l.length>0,s=!!e,c=(i==null?void 0:i.active)===!1;return i?c?b.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:b.jsx("div",{className:"page-content",children:b.jsx(rj,{})})}):b.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:b.jsxs("div",{className:"page-content h-full",children:[s&&!o&&b.jsx(Sr,{variant:"warning",className:"mb-2 font-semibold",children:"Connect at least one datasource to start using DataRamen"}),s&&[b.jsx(TT,{}),b.jsx(uj,{})],o&&b.jsx(oT,{}),s&&n.length>0&&b.jsx(rT,{})]})}):null},fj=()=>{const{data:e}=Iv();return Kn([Fv],async()=>{const{data:n}=await pt.get("/teams");return n.data},{enabled:!!e})},dj=()=>Ar(async e=>{const{data:n}=await pt.post("/teams",e);return n.data},{onSuccess:e=>{At.setQueryData([Fv],n=>n?[...n,e]:[e]),At.invalidateQueries([Ui])}}),hj="_container_i80ui_2",pj={container:hj},mj=()=>{const{data:e}=Xn(),n=F4(),{close:i}=kp(),{data:l}=fj(),o=dj(),{data:s}=Vp(),c=()=>{if(os(e==null?void 0:e.teamRole,lr.ADMIN,lr.EDITOR)){const d=prompt("Team name");d&&o.mutate({name:d})}else Gn.error("You don't have permissions to create new teams on this server")},f=d=>{n.mutate(d.currentTarget.value)};return b.jsxs("div",{className:ke("page-container",pj.container),children:[b.jsx(Zn,{onClick:i}),b.jsxs("div",{className:"form",children:[b.jsx("h2",{className:"text-xl font-semibold",children:"🪪 Team"}),b.jsx("p",{className:"text-sm",children:"You can configure multiple teams. Queries, data sources and workbench tabs are saved per team."}),b.jsxs("div",{className:"flex gap-1",children:[b.jsx("select",{className:"flex-1 input",disabled:n.isLoading,onChange:f,value:e==null?void 0:e.teamId,children:l==null?void 0:l.map(d=>b.jsx("option",{value:d.id,children:d.name},d.id))}),b.jsx("button",{className:"button tertiary",disabled:n.isLoading,onClick:c,children:"Create new team"})]}),b.jsx("h2",{className:"text-xl font-semibold mt-4",children:"🌐 API server"}),b.jsx("div",{className:"flex gap-1",children:b.jsxs("ul",{children:[b.jsxs("li",{children:["🔗 API URL: ","http://localhost:4466"]}),b.jsxs("li",{children:["🏷️ API version: ",s==null?void 0:s.version]}),b.jsx("li",{children:s!=null&&s.active?"✅ Connected":"❌ Not connected"})]})})]})]})},[yj,$p]=cr(void 0),gj=()=>$p(void 0);function pl(e,n){if(e==null)return"";switch(n){case"json":case"jsonb":return JSON.stringify(e,null,2)}if(e===0||e===!1)return e.toString();switch(typeof e){case"string":return e;case"number":case"boolean":return e.toString();default:return JSON.stringify(e)}}const bj=e=>{var i;const n=((i=e.value)==null?void 0:i.map(l=>l.value).join(", "))||"";return`${e.column} ${e.operator} ${n}`},Mi=e=>{let n=e.replace(/[_-]+/g," ");return n=n.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),n=n.toLowerCase().replace(/\b\w/g,i=>i.toUpperCase()),n},vj="_container_1gss1_2",xj="_header_1gss1_2",wj="_fields-container_1gss1_2",Sj="_field-label_1gss1_2",Cj="_actions_1gss1_2",Ho={container:vj,header:xj,fieldsContainer:wj,fieldLabel:Sj,actions:Cj},Ej=({searchAll:e,table:n,datasourceId:i,filters:l,joins:o,orderBy:s,groupBy:c,columns:f,page:d=0,size:h=20})=>Kn({queryKey:["explorer",i,n,d,h,l,o,s,c,f,e],queryFn:async()=>{const{data:m}=await pt.post("/runner/select",{datasourceId:i,table:n,filters:l,joins:o,orderBy:s,page:d,size:h,columns:f,groupBy:c,searchAll:e});return m.data},retry:1,enabled:!!n&&!!i,keepPreviousData:!0,staleTime:0,cacheTime:0}),kj=(e,n,i)=>Kn({queryKey:["entity",e,n,i],queryFn:async()=>{const l=i?i.map(([s,c])=>({column:s,operator:"=",value:[{value:c}],connector:"AND"})):[],{data:o}=await pt.post("/runner/select",{datasourceId:e,table:n,filters:l,size:1,page:0});return o.data},retry:1,enabled:!!n&&!!e&&!!i,staleTime:0,cacheTime:0}),Tj=()=>Ar({mutationFn:async e=>{const{data:n}=await pt.post("/runner/update",e);return n.data}}),Aj=()=>Ar({mutationFn:async e=>{const{data:n}=await pt.post("/runner/insert",e);return n.data}}),Yp=e=>E.useMemo(()=>{var n,i,l;if(e)return e instanceof O4?(n=e.response)!=null&&n.data.error?e.response.data.error:(l=(i=e.response)==null?void 0:i.data)!=null&&l.message?e.response.data.message:e.message:e instanceof Error?e.message:"Undefined error"},[e]),_j=({data:e})=>{const[n,{change:i,touched:l}]=Tp({}),{mutateAsync:o,error:s}=Aj(),c=Yp(s),{data:f}=Na(e.dataSourceId),[d,h]=E.useState(""),m=E.useMemo(()=>f==null?void 0:f.find(v=>v.tableName===e.table),[f,e.table]),g=E.useMemo(()=>{if(!m)return[];if(!d)return m.columns.map(w=>({...w,label:Mi(w.name)}));const v=d.toLowerCase();return m.columns.filter(w=>w.name.toLowerCase().includes(v)).map(w=>({...w,label:Mi(w.name)}))},[d,m]),x=()=>{const v=[];for(const w of l)v.push({value:n[w],column:w});o({datasourceId:e.dataSourceId,table:e.table,values:v}).then(gj)};return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Ho.header,children:[b.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",b.jsx("span",{className:"underline",children:e.table})]}),c&&b.jsx(Sr,{variant:"danger",children:b.jsx("p",{children:c})})]}),b.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:b.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),b.jsx("div",{className:Ho.container,children:b.jsx("div",{className:Ho.fieldsContainer,children:g.map(v=>b.jsxs("label",{className:Ho.fieldLabel,children:[b.jsxs("div",{className:"flex justify-between",children:[b.jsxs("p",{children:[v.isPrimary?"🔐":"🏷️"," ",v.label]}),b.jsxs("p",{className:"text-blue-800 text-sm",children:["[",v.name,": ",v.type,"]"]})]}),b.jsx("input",{className:"input w-full",value:pl(n[v.name]),onChange:i(v.name),placeholder:v.name})]},v.name))})}),b.jsxs("div",{className:Ho.actions,children:[b.jsxs("label",{children:[b.jsx("span",{className:"mr-2",children:"🔎"}),b.jsx("input",{className:"input bg-white!",value:d,onChange:v=>h(v.target.value),placeholder:"Filter columns"})]}),b.jsx("span",{className:"flex-1"}),b.jsx("button",{disabled:!l.length,className:"button primary",onClick:x,children:"Run insert"})]})]})},Oj=()=>{const e=yj(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>$p(void 0);return b.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[b.jsx(Zn,{onClick:l}),n&&b.jsx(_j,{data:n})]})},[Rj,Gp]=cr(void 0),Nj=()=>Gp(void 0),jj="_container_1pgjg_2",Dj="_header_1pgjg_2",Mj="_key_1pgjg_2",Lj="_fields-container_1pgjg_2",zj="_field-label_1pgjg_2",Uj="_actions_1pgjg_2",ua={container:jj,header:Dj,key:Mj,fieldsContainer:Lj,fieldLabel:zj,actions:Uj},Bj=({data:e})=>{const[n,{change:i,set:l,reset:o,touched:s}]=Tp({}),[c,f]=E.useState(""),{data:d,isLoading:h}=kj(e.dataSourceId,e.tableName,e.entityId),{mutateAsync:m,error:g}=Tj(),x=Yp(g),{data:v}=Na(e.dataSourceId),{data:w}=xc(e.dataSourceId),T=E.useMemo(()=>v==null?void 0:v.find(z=>z.tableName===e.tableName),[e.tableName,v]),_=E.useMemo(()=>{if(!T)return[];if(!c)return T.columns.map(D=>({...D,label:Mi(D.name)}));const z=c.toLowerCase();return T.columns.filter(D=>D.name.toLowerCase().includes(z)).map(D=>({...D,label:Mi(D.name)}))},[c,T]);E.useEffect(()=>{const z=d==null?void 0:d.rows[0];if(o(),z&&(d!=null&&d.columns))for(let D=0;D<d.columns.length;D++){const L=d.columns[D];l(L.column,pl(z[D]))}},[d,l,o]);const A=()=>{const z=[];for(const D of s)z.push({value:n[D],column:D});m({datasourceId:e.dataSourceId,table:e.tableName,filters:e.entityId.map(D=>({value:[{value:D[1]}],column:D[0],connector:"AND",operator:"="})),values:z}).then(Nj)},N=e.entityId.map(([z,D])=>`${z} = ${D}`).join(", ")||"",R=!(w!=null&&w.allowUpdate);return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:ua.header,children:[b.jsxs("p",{className:"text-lg font-semibold",children:[R?"View":"Edit"," row in ",b.jsx("span",{className:"underline",children:e==null?void 0:e.tableName})]}),b.jsx("span",{className:ua.key,children:N}),x&&b.jsx(Sr,{variant:"danger",children:b.jsx("p",{children:x})})]}),!R&&b.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:b.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),b.jsx("div",{className:ua.container,children:b.jsx("div",{className:ua.fieldsContainer,children:_.map(z=>b.jsxs("label",{className:ua.fieldLabel,children:[b.jsxs("div",{className:"flex justify-between",children:[b.jsxs("p",{children:[z.isPrimary?"🔐":"🏷️"," ",z.label]}),b.jsxs("p",{className:"text-blue-800 text-sm",children:["[",z.name,": ",z.type,"]"]})]}),b.jsx("input",{disabled:z.isPrimary||h||R,className:"input w-full",value:pl(n[z.name]),onChange:i(z.name),placeholder:z.name})]},z.name))})}),b.jsxs("div",{className:ua.actions,children:[b.jsxs("label",{children:[b.jsx("span",{className:"mr-2",children:"🔎"}),b.jsx("input",{className:"input bg-white!",value:c,onChange:z=>f(z.target.value),placeholder:"Filter columns"})]}),b.jsx("span",{className:"flex-1"}),!R&&b.jsx("button",{disabled:!s.length,className:"button primary",onClick:A,children:"Run update"})]})]})},qj=()=>{const e=Rj(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Gp(void 0);return b.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[b.jsx(Zn,{onClick:l}),n&&b.jsx(Bj,{data:n})]})},[Hj,bh]=cr(void 0),Fj=async e=>new Promise(n=>{bh({message:e,onCancel:()=>{n(!1),bh(void 0)},onConfirm:()=>{n(!0),bh(void 0)}})}),Qj=({confirm:e})=>b.jsxs("div",{children:[b.jsx("p",{children:e.message}),b.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[b.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:e.onConfirm,children:"Confirm"})]})]}),Pj=()=>{const e=Hj(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),b.jsx(nn,{isVisible:!!e,onClose:()=>e==null?void 0:e.onCancel(),onClosed:()=>i(void 0),children:n&&b.jsx(Qj,{confirm:n})})},[Ij,Qu]=cr(void 0),Sl=async(e,n,i)=>new Promise(l=>{Qu({message:e,defaultValue:n,alert:i,onCancel:()=>{Qu(void 0),l(void 0)},onConfirm:o=>{Qu(void 0),l(o)}})}),Vj="_root_12mtw_1",$j={root:Vj},Yj=({data:e})=>{const[n,i]=E.useState("");E.useEffect(()=>{e.defaultValue&&i(e.defaultValue)},[e]);const l=s=>{i(s.target.value)},o=s=>{s.key==="Enter"&&(s.preventDefault(),e.onConfirm(n)),s.key==="Escape"&&(s.preventDefault(),e.onCancel())};return b.jsxs("div",{className:$j.root,children:[b.jsx("h2",{className:"text-xl font-semibold",children:e.message}),e.alert&&b.jsx(Sr,{variant:e.alert.type,className:"mt-2",children:e.alert.message}),b.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:n,onChange:l,onKeyDown:o}),b.jsxs("div",{className:"flex justify-end gap-2",children:[b.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:()=>e.onConfirm(n),children:"Confirm"})]})]})},Gj=()=>{const e=Ij(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),b.jsx(nn,{isVisible:!!e,onClose:()=>Qu(void 0),onClosed:()=>i(void 0),children:n&&b.jsx(Yj,{data:n})})},[Kj,Xj]=cr(void 0),ow=e=>{Xj(e)},Zj="_textarea_13k21_2",Jj={textarea:Zj},Wj=()=>{const e=Kj(),n=()=>{e&&(navigator.clipboard.writeText(e.toString()),Gn.success("Copied!"))},i=()=>ow(void 0);return b.jsxs(nn,{isVisible:!!e,onClose:i,backdropClose:!0,children:[b.jsx("textarea",{className:Jj.textarea,readOnly:!0,defaultValue:e==null?void 0:e.toString()}),b.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[b.jsx("button",{className:"button primary",onClick:n,children:"Copy"}),b.jsx("button",{className:"button tertiary",onClick:i,children:"Close"})]})]})},[e5,sw]=cr(!1),t5="_root_sv9tj_1",n5={root:t5},fb="text-blue-500 underline hover:text-blue-700",r5=()=>{const e=e5(),n=()=>sw(!1);return b.jsxs(nn,{isVisible:e,onClose:n,backdropClose:!0,children:[b.jsx(Zn,{onClick:n}),b.jsxs("div",{className:n5.root,children:[b.jsx("h1",{className:"font-semibold text-xl",children:"Have questions?"}),b.jsx("p",{children:"You can reach me out via:"}),b.jsxs("ul",{className:"mt-2",children:[b.jsx("li",{children:b.jsxs("a",{className:fb,href:"https://x.com/9zemian5",target:"_blank",children:[b.jsx("span",{className:"bg-black inline-flex p-0.5 rounded-sm mr-2 justify-center items-center",children:b.jsx(kT,{width:14,height:14})}),"@9zemian5"]})}),b.jsxs("li",{children:["💌 ",b.jsx("a",{className:fb,href:"mailto:vigo@gmail.com",target:"_blank",children:"Email vigo@gmail.com"})]})]})]})]})},i5="_tabs_wixgx_2",l5="_tab_wixgx_2",a5="_active_wixgx_2",o5="_close-button_wixgx_2",s5="_active-tab_wixgx_2",u5="_tooltip-label_wixgx_2",c5="_tooltip-info-entry_wixgx_2",wr={tabs:i5,tab:l5,active:a5,closeButton:o5,activeTab:s5,tooltipLabel:u5,tooltipInfoEntry:c5},f5="_table_1l7nc_2",d5="_semi-transparent_1l7nc_2",h5="_table-loading_1l7nc_2",p5="_table-empty_1l7nc_2",m5="_table-row-cells_1l7nc_2",y5="_header-cell_1l7nc_2",g5="_header-actions_1l7nc_2",b5="_cell_1l7nc_2",v5="_cell-actions_1l7nc_2",x5="_table-config_1l7nc_2",w5="_table-action_1l7nc_2",S5="_blue_1l7nc_2",C5="_red_1l7nc_2",E5="_options-container_1l7nc_2",k5="_underlying-rows-btn_1l7nc_2",T5="_option-item_1l7nc_2",Fe={table:f5,semiTransparent:d5,tableLoading:h5,tableEmpty:p5,tableRowCells:m5,headerCell:y5,headerActions:g5,cell:b5,cellActions:v5,tableConfig:x5,tableAction:w5,blue:S5,red:C5,optionsContainer:E5,underlyingRowsBtn:k5,optionItem:T5},ni=E.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),Nt=E.createContext({state:ga({}),setState:()=>{}}),ri=E.createContext({}),uw=()=>{const[e,n]=E.useState();return E.useMemo(()=>({show:!!e,position:e,open:l=>{l.preventDefault(),n({x:l.clientX-1,y:l.clientY-1})},close:()=>{n(void 0)}}),[e])},A5=e=>{if(e==="ASC")return"DESC";if(e!=="DESC")return"ASC"},_5=()=>{const{state:e,setState:n}=E.useContext(Nt),i=E.useCallback(l=>{n(o=>{const s=o.orderBy[0];if(s&&s.column===l){const c=A5(s.direction);return c?{...o,orderBy:[{column:l,direction:c}]}:{...o,orderBy:[]}}return{...o,orderBy:[{column:l,direction:"ASC"}]}})},[n]);return{orderBy:e.orderBy,updateOrderBy:i}};function O5(e,n){if(!e&&!n)return!0;if(!e||!n||e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}const cw=()=>{const{state:e,setState:n}=E.useContext(Nt),i=E.useCallback(o=>{n(s=>({...s,filters:[...s.filters,o]}))},[n]),l=E.useCallback(o=>{n(s=>({...s,filters:s.filters.filter(c=>!(o.column===c.column&&o.operator===c.operator&&O5(o.value,c.value)))}))},[n]);return{filters:e.filters,addFilter:i,removeFilter:l}},R5="_drop-container_fxgnu_2",N5="_item_fxgnu_2",db={dropContainer:R5,item:N5},tp=({dataSourceId:e,focusId:n,placeholder:i="Column",onChange:l,value:o,autoFocus:s,allowTables:c})=>{const{data:f}=Na(e),d=E.useRef(null),h=E.useMemo(()=>{if(!f)return[];let A=f;return c&&(A=f.filter(N=>c.includes(N.tableName))),A.flatMap(N=>N.columns.map(R=>{const z=`${N.tableName}.${R.name}`;return{value:z,label:R.name,table:N.tableName,searchValue:z.toLowerCase()}}))},[f,c]),m=E.useMemo(()=>{const A=o.toLowerCase()||"",N=[];for(let R=0;R<h.length&&N.length<10;R++)h[R].searchValue.includes(A)&&N.push(h[R]);return N},[h,o]),[g,x]=E.useState(!1),[v,w]=E.useState(0),T=A=>{var N;if(A.key==="ArrowDown")A.preventDefault(),w(R=>(R+1)%m.length);else if(A.key==="ArrowUp")A.preventDefault(),w(R=>(R-1+m.length)%m.length);else if(A.key==="Enter"&&v>=0&&v<m.length){A.preventDefault();const R=m[v].value;x(!1);const z=h.findIndex(D=>D.value===R)>-1;l(((N=m[v])==null?void 0:N.value)||R,z,!0)}};E.useEffect(()=>{var N;const A=(N=d.current)==null?void 0:N.querySelector('[data-is-active="true"]');A&&A.scrollIntoView({behavior:"smooth",block:"nearest"})},[v]);const _=A=>{const N=A.currentTarget.value,R=h.findIndex(z=>z.value===N)>-1;l(N,R,!1)};return b.jsxs("div",{className:"relative",onFocus:()=>x(!0),onBlur:()=>x(!1),children:[b.jsx("input",{autoFocus:s,onKeyDown:T,value:o,onChange:_,className:ke("input w-full"),placeholder:i,"data-focus":n}),g&&m.length>0&&b.jsx("div",{className:db.dropContainer,ref:d,tabIndex:-1,children:m.map((A,N)=>b.jsxs("div",{className:db.item,"data-is-active":v===N,onMouseDownCapture:R=>{R.preventDefault(),x(!1),l(A.value,!0,!0)},children:[b.jsx("span",{className:"text-xs font-semibold truncate",children:A.table}),b.jsx("p",{className:"truncate text-sm",children:A.label})]},N))})]})},j5="_drop-container_1bgvv_2",D5="_item_1bgvv_2",hb={dropContainer:j5,item:D5};function M5(e){return $v.includes(e)?V4:G4.includes(e)?I4:K4.includes(e)?$4:Sp}const L5=({value:e,onChange:n,autoFocus:i,focusId:l,colType:o})=>{const s=E.useMemo(()=>{const x=e.toLowerCase()||"";return M5(o||"").filter(v=>v.label.includes(x))},[e,o]),c=E.useRef(null),[f,d]=E.useState(!1),[h,m]=E.useState(0),g=x=>{var v;x.key==="ArrowDown"?(x.preventDefault(),m(w=>(w+1)%s.length)):x.key==="ArrowUp"?(x.preventDefault(),m(w=>(w-1+s.length)%s.length)):x.key==="Enter"&&(h>=0&&h<s.length?(x.preventDefault(),d(!1),n(((v=s[h])==null?void 0:v.label)||"",!0)):n(e,!0))};return E.useEffect(()=>{var v;const x=(v=c.current)==null?void 0:v.querySelector('[data-is-active="true"]');x&&x.scrollIntoView({behavior:"smooth",block:"nearest"})},[h]),b.jsxs("div",{className:"relative",children:[b.jsx("input",{onKeyDown:g,value:e,onChange:x=>n(x.target.value,!1),className:ke("input w-full"),placeholder:"Operator",autoFocus:i,onFocus:()=>d(!0),onBlur:()=>d(!1),"data-focus":l}),f&&s.length>0&&b.jsx("ul",{className:hb.dropContainer,ref:c,tabIndex:-1,children:s.map((x,v)=>b.jsx("li",{className:hb.item,"data-is-active":h===v,onMouseDownCapture:w=>{w.preventDefault(),d(!1),n(x.label,!0)},children:x.label},v))})]})},z5="_form-container_xpob5_2",U5={formContainer:z5},B5=e=>e instanceof HTMLElement,q5=()=>{const e=E.useRef(null),n=E.useCallback((i,l=30)=>{setTimeout(()=>{var s;const o=(s=e.current)==null?void 0:s.querySelector(`[data-focus="${i}"]`);B5(o)&&o.focus()},l)},[]);return{containerRef:e,focus:n}},fw=({onClose:e,selectColumn:n="",selectedOperation:i="",focusOn:l})=>{const{addFilter:o}=cw(),{state:s}=E.useContext(Nt),{data:c}=Na(s.dataSourceId),f=E.useMemo(()=>[s.table,...s.joins.map($=>$.table)],[s.table,s.joins]),[d,h]=E.useState({column:n,operator:i,value:"",isMatched:!1}),[m,g]=E.useState(!1),{containerRef:x,focus:v}=q5(),w=E.useMemo(()=>{if(!c)return"";let $=null;for(const ee of c)for(const ie of ee.columns)ee.tableName+"."+ie.name===d.column&&($=ie);return $!=null&&$.type?$.type:""},[d.column,c]);E.useEffect(()=>{l&&v(l)},[v,l]);const T=$=>{const ee=$||d,[ie]=ee.column.split("."),U=b1[ee.operator];if(!ee.column.includes(".")||!ie){Gn.error("Invalid column value: "+ee.column);return}if(!U){Gn.error("Invalid operator: "+ee.operator);return}o({connector:"AND",operator:U,column:ee.column,value:ee.isMatched?[{value:ee.value,isColumn:ee.isMatched}]:Y4(U,ee.value)}),e()},_=$=>{$.key==="Enter"&&T()},A=($,ee,ie)=>{h(U=>({...U,column:$,operator:""})),ie&&v("operator")},N=($,ee)=>{h(ie=>({...ie,operator:$})),g(!1),ee&&v("value")},R=($,ee,ie)=>{ie?T({...d,value:$,isMatched:ee}):h(U=>({...U,value:$,isMatched:ee}))},z=$=>{g($.target.checked),$.target.checked||h(ee=>({...ee,isMatched:!1})),v("value")},D=d.operator.includes("list"),L=d.operator.includes("equal");return b.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,portal:!0,children:[b.jsx(Zn,{onClick:e}),b.jsx("h2",{className:"text-lg font-semibold",children:"Filter"}),b.jsxs("div",{className:U5.formContainer,ref:x,children:[b.jsxs("label",{className:"z-3 w-full",children:[b.jsx("p",{className:"font-semibold text-xs",children:"Column"}),b.jsx(tp,{dataSourceId:s.dataSourceId,onChange:A,value:d.column,allowTables:f,focusId:"column"})]}),b.jsxs("label",{className:"z-2 w-full",children:[b.jsxs("p",{className:"font-semibold text-xs",children:["Operator ",b.jsxs("span",{className:"text-sm text-blue-800",children:["[for ",w,"]"]})]}),b.jsx(L5,{onChange:N,focusId:"operator",colType:w,value:d.operator})]}),Vv(b1[d.operator])&&b.jsxs("label",{className:"z-1 w-full",children:[b.jsx("p",{className:"font-semibold text-xs",children:"Value"}),D||!m||!L?b.jsx("input",{className:"input w-full",placeholder:"Filter value",value:d.value,onKeyPress:_,onChange:$=>R($.currentTarget.value,!1,!1),"data-focus":"value"}):b.jsx(tp,{dataSourceId:s.dataSourceId,onChange:R,value:d.value,allowTables:f,focusId:"value",placeholder:"Insert value or column"})]}),L&&b.jsxs("label",{className:"w-full flex items-center gap-2",children:[b.jsx("input",{type:"checkbox",checked:m,onChange:z}),b.jsx("span",{children:"Value is another column"})]})]}),b.jsx("div",{className:"flex justify-end gap-2 items-center mt-2",children:b.jsx("button",{className:"button primary",onClick:()=>T(),children:"Apply filter"})})]})};function H5(e){var i;const n=(i=e.target)==null?void 0:i.dataset;if(n){if(n.copyCol&&n.copyRow)return{col:parseInt(n.copyCol),row:parseInt(n.copyRow),action:"copy"};if(n.showCol&&n.showRow)return{col:parseInt(n.showCol),row:parseInt(n.showRow),action:"show"};if(n.filterCol&&n.filterRow)return{col:parseInt(n.filterCol),row:parseInt(n.filterRow),action:"filter"}}}function vh(e,n,i){var s,c,f;const l=(c=(s=e==null?void 0:e.rows)==null?void 0:s[n])==null?void 0:c[i],o=(f=e==null?void 0:e.columns)==null?void 0:f[i];return{value:l,column:o}}const F5=()=>{const{data:e}=E.useContext(ri),{getColumnType:n}=E.useContext(ni),{setState:i}=E.useContext(Nt),l=f=>{const{value:d,column:h}=vh(e,f.row,f.col);if(h){const m=pl(d,n(h.full));navigator.clipboard.writeText(m),Gn.success("Copied!")}},o=f=>{const{value:d,column:h}=vh(e,f.row,f.col);if(h){const m=pl(d,n(h.full));ow(m)}},s=f=>{const{value:d,column:h}=vh(e,f.row,f.col);let m=(h==null?void 0:h.full)||"",g;if((h==null?void 0:h.table)===""&&([g,m]=m.split(" ")),m){let x;if(d==null)x={column:m,connector:"AND",operator:"IS NULL"};else{const v=pl(d,n(m));x={column:m,connector:"AND",operator:"=",fn:g,value:[{value:v}]}}i(v=>({...v,filters:[...v.filters,x]}))}};return f=>{const d=H5(f);d&&(d.action==="copy"?l(d):d.action==="show"?o(d):d.action==="filter"&&s(d))}},[Q5,Kp]=cr(void 0),pb=(e,n)=>{Kp({label:e,type:"explorer",id:Date.now().toString(36),options:ga(n)})},np=()=>Kp(void 0),P5="_container_14fjg_2",I5="_content_14fjg_2",V5="_backdrop_14fjg_2",xh={container:P5,content:I5,backdrop:V5},dw=({children:e,handler:n})=>{const i=E.useRef(n.close);i.current=n.close;const l=E.useMemo(()=>{if(!n.position)return;const o={};if(typeof window<"u"){const s=n.position.y>window.innerHeight/2,c=n.position.x>window.innerWidth/2;s?o.bottom=window.innerHeight-n.position.y:o.top=n.position.y,c?o.right=window.innerWidth-n.position.x:o.left=n.position.x}return o},[n]);return E.useEffect(()=>{const o=s=>{s.code==="Escape"&&i.current()};return window.addEventListener("keyup",o),()=>{window.removeEventListener("keyup",o)}},[]),l?b.jsxs("div",{className:xh.container,children:[b.jsx("div",{className:xh.backdrop,onClick:o=>{o.stopPropagation(),o.preventDefault(),n.close()}}),b.jsx("div",{className:xh.content,style:l,children:e})]}):null},$5="_table_ec5ip_2",Y5="_root_ec5ip_2",G5="_content_ec5ip_2",K5="_sub_ec5ip_2",Ru={table:$5,root:Y5,content:G5,sub:K5},hw=({hook:e,onClick:n})=>b.jsxs("button",{className:Ru.root,onClick:n,title:e.where,children:[b.jsx("span",{children:"📄"}),b.jsxs("div",{className:Ru.content,children:[b.jsxs("p",{className:Ru.table,children:[" ",e.on.toTable]}),b.jsxs("span",{className:Ru.sub,children:[e.on.toColumn," = ",e.on.fromTable,".",e.on.fromColumn]})]})]},e.where),pw=(e,n)=>e!=null&&e>n,X5=({handler:e,rowIndex:n})=>{const{hooks:i,entities:l,dataSourceId:o,getEntityKey:s,getValue:c}=E.useContext(ni),{state:f}=E.useContext(Nt),{data:d}=E.useContext(ri),[h,m]=E.useState(""),[g,x]=E.useState(""),v=E.useMemo(()=>d==null?void 0:d.rows[n],[d,n]),w=()=>{v&&(pb("⬇️ "+f.table,{joins:f.joins,table:f.table,dataSourceId:f.dataSourceId,filters:[...f.filters,...f.groupBy.map(z=>({connector:"AND",column:z.value,operator:"=",value:[{value:c(v,z)}]}))]}),e.close())},T=z=>{if(!v)return;const D=c(v,{value:`${z.on.fromTable}.${z.on.fromColumn}`});pb(`${z.on.toColumn} equals ${D}`,{table:z.on.toTable,dataSourceId:o,filters:[{column:z.on.toTable+"."+z.on.toColumn,operator:D==null?"IS NULL":"=",connector:"AND",value:D!=null?[{value:D,isColumn:!1}]:void 0}]}),e.close()},_=z=>{if(!v)return;const D=s(z,v);e.close(),Gp({tableName:z,dataSourceId:o,entityId:D}),e.close()},A=E.useMemo(()=>h?l.filter(z=>z.includes(h)):l,[l,h]),N=E.useMemo(()=>{if(!d)return[];const z=g.toLowerCase();return i.filter(D=>d.columns.some($=>$.column===D.on.fromColumn&&$.table===D.on.fromTable)?D.on.toTable.toLowerCase().includes(z):!1)},[g,i,d]),R=f.groupBy.length>0;return b.jsxs(dw,{handler:e,children:[l.length>0&&b.jsxs("div",{className:Fe.optionsContainer,children:[b.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",children:[b.jsx("span",{className:"font-semibold",children:"📝"}),b.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:h,onChange:z=>m(z.target.value)})]}),b.jsx("div",{className:"flex flex-col",children:pw(A.length,0)?A.map(z=>b.jsx("button",{className:ke(Fe.optionItem,"font-semibold"),onClick:()=>_(z),children:b.jsxs("span",{children:["📄 ",z]})},z)):b.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),i.length>0&&b.jsxs("div",{className:Fe.optionsContainer,children:[b.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[b.jsx("span",{className:"font-semibold",children:"↗️"}),b.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:g,onChange:z=>x(z.target.value)})]}),b.jsx("div",{className:"flex flex-col",children:N.length>0?N.map(z=>b.jsx(hw,{hook:z,onClick:()=>T(z)},z.where)):b.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),R&&b.jsx("button",{onClick:w,className:Fe.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},Z5={ASC:"⬆️",DESC:"⬇️"};function J5(e,n){const i=n(e.full);return i&&$v.includes(i)?Po.LIKE:Po["="]}const W5=()=>{const{data:e}=E.useContext(ri),{getColumnType:n}=E.useContext(ni),{orderBy:i,updateOrderBy:l}=_5(),o=(e==null?void 0:e.columns)||[],s=i[0],[c,f]=E.useState();return b.jsxs("thead",{children:[b.jsx("tr",{children:o.map(d=>b.jsxs("td",{className:Fe.headerCell,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:"text-xs truncate",children:d.table||"-"}),b.jsx("p",{className:"text-sm font-bold truncate",children:d.alias})]}),b.jsxs("div",{className:Fe.headerActions,children:[d.table&&b.jsx("button",{onClick:()=>{f(d)},children:"🔎"}),b.jsx("button",{onClick:()=>l(d.full),children:(s==null?void 0:s.column)===d.full?Z5[s.direction]:"↕️"})]})]},d.full))}),c&&b.jsx(fw,{selectColumn:c.full,selectedOperation:J5(c,n),focusOn:"value",onClose:()=>f(void 0)})]})};function eD({value:e,row:n,col:i}){if(e==="")return b.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(e==null)return b.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const l=pl(e);return b.jsxs(b.Fragment,{children:[b.jsx("span",{"data-row":n,className:"truncate block pointer-events-none",children:l}),b.jsxs("div",{className:Fe.cellActions,children:[b.jsx("button",{"data-copy-col":i,"data-copy-row":n,children:"📋"}),b.jsx("button",{"data-show-col":i,"data-show-row":n,children:"👀"}),b.jsx("button",{"data-filter-col":i,"data-filter-row":n,children:"🔎"})]})]})}const tD=E.memo(({row:e,isLastRow:n,index:i})=>b.jsx("tr",{className:ke(Fe.tableRowCells,n&&"rounded-b-lg"),children:e.map((l,o)=>b.jsx("td",{className:Fe.cell,"data-row":i,children:b.jsx(eD,{value:l,col:o,row:i})},o))})),nD=()=>{var m,g;const{data:e,error:n,isLoading:i,isFetching:l}=E.useContext(ri),o=Yp(n),s=F5(),c=uw(),[f,d]=E.useState(void 0),h=x=>{var T;const v=(T=x.target)==null?void 0:T.dataset,w=v==null?void 0:v.row;w!=null&&(d(parseInt(w)),c.open(x))};return b.jsxs(b.Fragment,{children:[f!=null&&c.show&&b.jsx(X5,{handler:c,rowIndex:f}),o&&b.jsx(Sr,{className:"my-4",variant:"danger",children:o}),i&&b.jsx("div",{className:Fe.tableLoading,children:"Loading data"}),e&&b.jsxs("table",{className:ke(Fe.table,l&&Fe.semiTransparent),onContextMenu:h,onClick:s,children:[b.jsx(W5,{}),b.jsxs("tbody",{children:[((m=e.rows)==null?void 0:m.length)<1&&b.jsx("tr",{className:Fe.tableEmpty,children:b.jsx("td",{colSpan:e.columns.length,children:"No data"})}),(g=e.rows)==null?void 0:g.map((x,v)=>b.jsx(tD,{index:v,row:x,isLastRow:v===e.rows.length-1},v))]})]})]})},rD="_root_1fkqf_2",iD="_root-show_1fkqf_2",lD="_content-desktop_1fkqf_2",aD="_content-mobile_1fkqf_2",oD="_card_1fkqf_2",sD="_cards-list_1fkqf_2",uD="_sub-text_1fkqf_2",cD="_text_1fkqf_2",fD="_section-title_1fkqf_2",dD="_sidebar-action_1fkqf_2",hD="_join-modal_1fkqf_2",pD="_section-container_1fkqf_2",mD="_close-button_1fkqf_2",yD="_expand_1fkqf_2",gD="_section-open-btn_1fkqf_2",bD="_show_1fkqf_2",ye={root:rD,rootShow:iD,contentDesktop:lD,contentMobile:aD,card:oD,cardsList:sD,subText:uD,text:cD,sectionTitle:fD,sidebarAction:dD,joinModal:hD,sectionContainer:pD,closeButton:mD,expand:yD,sectionOpenBtn:gD,show:bD},vD="_container_x28a8_2",xD="_column-label_x28a8_2",wD="_not-active_x28a8_2",Pu={container:vD,columnLabel:xD,notActive:wD};function SD(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}function CD(e){if(!e)return[];const n={};return e.forEach(i=>{n[i.table]?n[i.table].push({value:i.full,label:Mi(i.column),type:i.type}):n[i.table]=[{value:i.full,label:Mi(i.column),type:i.type}],X4[i.type]&&["YEAR","MONTH","DAY"].forEach(l=>{n[i.table].push({value:l+" "+i.full,label:l+" "+Mi(i.column),type:"number",nested:!0})})}),Object.entries(n).reduce((i,[l,o])=>(i.push({name:Mi(l),columns:o}),i),[])}function ED(e,n){const i=n.toLowerCase();return e.map(l=>{const o=l.columns.filter(s=>s.label.toLowerCase().includes(i)||s.value.toLowerCase().includes(i));return{...l,columns:o}}).filter(l=>l.columns.length>0)}const kD=({column:e,selected:n,onCheck:i})=>b.jsxs("label",{className:ke(Pu.columnLabel,n?Pu.active:Pu.notActive,e.nested&&"pl-5!"),children:[b.jsx("input",{type:"checkbox",checked:n[e.value],name:e.value,onChange:i}),b.jsxs("p",{className:"flex justify-between w-full",children:[b.jsx("span",{"data-tooltip-content":e.value,"data-tooltip-id":"default",children:e.label}),b.jsx("span",{className:"text-blue-600",children:e.type})]})]},e.value),mw=({onCancel:e,mode:n})=>{const{allColumns:i}=E.useContext(ni),{state:l,setState:o}=E.useContext(Nt),[s,c]=E.useState(()=>SD(l[n].map(T=>T.fn?T.fn+" "+T.value:T.value))),[f,d]=E.useState(""),h=E.useMemo(()=>CD(i),[i]),m=E.useMemo(()=>f?ED(h,f):h,[f,h]),g=T=>{c(_=>({..._,[T.target.name]:T.target.checked}))},x=T=>{const _=T.target.checked;c(A=>{for(const N of i)A[N.full]=_;return{...A}})},v=()=>{const T=[];for(const[_,A]of Object.entries(s))if(A){const[N,R]=_.split(" ");T.push({value:R||N,fn:R?N:void 0})}o(_=>({..._,[n]:T})),e()},w=E.useMemo(()=>{for(const T of i)if(!s[T.full])return!1;return!0},[s,i]);return b.jsxs(nn,{isVisible:!0,onClose:e,portal:!0,children:[b.jsx(Zn,{onClick:e}),b.jsxs("div",{className:Pu.container,children:[b.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),b.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:f,onChange:T=>d(T.target.value)}),b.jsx("div",{className:"overflow-y-auto",children:m.map(T=>b.jsxs("div",{className:"mt-2",children:[b.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",T.name]}),T.columns.map(_=>b.jsx(kD,{column:_,selected:s,onCheck:g},_.value))]},T.name))}),b.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[b.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[b.jsx("input",{type:"checkbox",checked:w,onChange:x}),b.jsx("span",{children:"Select all"})]}),b.jsx("span",{className:"flex-1"}),b.jsx("button",{className:"button tertiary",onClick:e,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:v,children:"Apply"})]})]})]})},TD="_options-container_1jnwa_2",AD={optionsContainer:TD},wh="COUNT all",_D=({onClose:e})=>{const{dataSourceId:n}=E.useContext(ni),{setState:i}=E.useContext(Nt),{data:l}=E.useContext(ri),[o,s]=E.useState({fn:"",col:""}),c=g=>s({...o,fn:g.currentTarget.value}),f=g=>s({...o,col:g}),d=()=>{const g=o.fn===wh?{value:"*",fn:"COUNT"}:{fn:o.fn,value:o.col,distinct:o.fn==="COUNT"};i(x=>({...x,aggregations:[...x.aggregations,g]})),e()},h=o.fn===wh,m=h?!1:!o.col||!o.fn;return b.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,portal:!0,children:[b.jsx(Zn,{onClick:e}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),b.jsxs("div",{className:AD.optionsContainer,children:[b.jsxs("label",{className:ke(h&&"col-span-2"),children:[b.jsx("p",{className:"font-semibold text-xs",children:"Function"}),b.jsxs("select",{className:"input w-full",value:o.fn,onChange:c,autoFocus:!0,children:[b.jsx("option",{value:"",disabled:!0,children:"Select function"}),b.jsx("option",{value:wh,children:"Count all rows"}),b.jsx("option",{value:"COUNT",children:"Count"}),b.jsx("option",{value:"SUM",children:"Sum"}),b.jsx("option",{value:"MAX",children:"Max"}),b.jsx("option",{value:"MIN",children:"Min"}),b.jsx("option",{value:"AVG",children:"Avg"})]})]}),!h&&b.jsxs("label",{children:[b.jsx("p",{className:"font-semibold text-xs",children:"Column"}),b.jsx(tp,{dataSourceId:n,allowTables:(l==null?void 0:l.tables)||[],onChange:f,value:o.col})]}),b.jsx("button",{className:"button primary",disabled:m,onClick:d,children:"Add"})]})]})]})},OD=(e,n)=>e.type!==n.type||e.on!==n.on||e.table!==n.table,RD=(e,n)=>e.type===n.type&&e.on===n.on&&e.table===n.table,ND=()=>{const{state:e,setState:n}=E.useContext(Nt),i=E.useCallback(l=>{n(o=>{const s=o.joins;if(s.some(f=>RD(f,l))){const f=l.table+".";return{...o,joins:s.filter(d=>OD(d,l)),columns:o.columns.filter(d=>!d.value.startsWith(f)),groupBy:o.groupBy.filter(d=>!d.value.startsWith(f)),orderBy:o.orderBy.filter(d=>!d.column.startsWith(f)),aggregations:o.aggregations.filter(d=>!d.value.startsWith(f)),filters:o.filters.filter(d=>!d.column.startsWith(f))}}return{...o,joins:[...s,l]}})},[n]);return{joins:e.joins,toggle:i}},yw=()=>Ar({mutationFn:async e=>{const{data:n}=await pt.post("/queries",e);return n.data},onSuccess:()=>{At.invalidateQueries(["queries"]),ls(),ut.event("Query created")}}),jD=()=>Ar({mutationFn:async({id:e,payload:n})=>{const{data:i}=await pt.patch("/queries/"+e,n);return i.data},onSuccess:e=>{At.invalidateQueries(["query",e.id]),ls(),M4(),e.isTrash?ut.event("Query trashed"):ut.event("Query updated")}});function gw(e,n){const i={};return Object.entries(e).forEach(([l,o])=>{n.includes(l)||(i[l]=o)}),i}const bw=e=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},E.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})),ha=new Map,DD=e=>{var l,o,s;const n=(o=(l=e.target)==null?void 0:l.tagName)==null?void 0:o.toLowerCase();if(["input","textarea","select"].includes(n)||(s=e.target)!=null&&s.isContentEditable)return;const i=ha.get(e.key.toLowerCase());i&&i.length>0&&i[i.length-1].callback()},MD=(e,n,i="")=>{const l=e.toLowerCase(),o=ha.get(e);return o?ha.set(e,[...o,{callback:n,label:i}]):ha.set(l,[{callback:n,label:i}]),()=>{const s=e.toLowerCase(),c=ha.get(s);c&&ha.set(s,c.filter(f=>f.callback!==n))}};window.addEventListener("keyup",DD);function Cr(e,n,i){const l=E.useRef({callback:n,label:i});l.current.callback=n,E.useEffect(()=>MD(e,()=>{l.current.callback()},l.current.label),[e])}const LD=()=>{const e=Ep("Hotkey"),n=qi(),i=un(),{data:l}=Xn();Cr("n",()=>{l&&e()},"📖 New query"),Cr("w",()=>{if(!l)return;Ec.get().length<1?e():i.pathname!==Tt.workbench.path&&n(Tt.workbench.path)},"🛠️ Open Workbench"),Cr("h",()=>{i.pathname!==Tt.home.path&&n(Tt.home.path)},"🏠 Go home")},fs={tablet:"(min-width: 640px)",laptop:"(min-width: 1024px)"},zD=()=>window.matchMedia(fs.laptop).matches,[UD,BD]=cr(zD()),Iu=()=>BD(e=>!e),mb=e=>window.matchMedia(e).matches;function Rc(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){const[l,o]=E.useState(()=>i?mb(e):n);return E.useLayoutEffect(()=>{const s=window.matchMedia(e);function c(){o(()=>mb(e))}return c(),s.addListener?s.addListener(c):s.addEventListener("change",c),()=>{s.removeListener?s.removeListener(c):s.removeEventListener("change",c)}},[e]),l}const qD="_sidebar_12dvx_2",HD="_sidebar-visible_12dvx_2",FD="_sidebar-container_12dvx_2",QD="_sidebar-invisible_12dvx_2",PD="_backdrop_12dvx_2",Fo={sidebar:qD,sidebarVisible:HD,sidebarContainer:FD,sidebarInvisible:QD,backdrop:PD},vw=({children:e,backdropClose:n,isVisible:i,onClose:l,onClosed:o,contentClassName:s})=>{const[c,f]=E.useState(!1),d=()=>{n&&l()},h=m=>{i||getComputedStyle(m.currentTarget).opacity==="0"&&(f(!1),o&&o())};return E.useEffect(()=>{i&&f(!0)},[i]),b.jsxs("div",{onTransitionEnd:h,className:ke(Fo.sidebar,i?Fo.sidebarVisible:Fo.sidebarInvisible),children:[b.jsx("div",{onClick:d,className:Fo.backdrop}),b.jsx("div",{className:ke(Fo.sidebarContainer,s),children:c&&e})]})},ID=()=>{const e=UD(),n=Rc(fs.laptop);return Cr("o",Iu),n?b.jsxs("div",{className:ke(ye.root,e&&ye.rootShow),children:[b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Customize query [Hotkey O]",className:ye.expand,onClick:Iu,children:"⚙️"}),b.jsxs("div",{className:ye.contentDesktop,children:[b.jsx(gb,{}),b.jsx(yb,{}),b.jsx(Cb,{}),b.jsx(Sb,{}),b.jsx(wb,{}),b.jsx(vb,{}),b.jsx(xb,{}),b.jsx(bb,{})]})]}):b.jsx(vw,{isVisible:e,onClose:Iu,backdropClose:!0,children:b.jsxs("div",{className:ye.contentMobile,children:[b.jsx(gb,{}),b.jsx(yb,{}),b.jsx(Cb,{}),b.jsx(Sb,{}),b.jsx(wb,{}),b.jsx(vb,{}),b.jsx(xb,{}),b.jsx(bb,{})]})})};function ds({onShow:e,show:n,title:i,items:l}){return b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("p",{className:ye.sectionTitle,children:i}),l>0&&b.jsxs("button",{className:ke(ye.sectionOpenBtn,n&&ye.show),onClick:e,children:[b.jsx("span",{children:l}),b.jsx(bw,{width:16,height:16})]})]})}function yb(){const{data:e}=Xn(),{state:n}=E.useContext(Nt),{name:i}=E.useContext(ni),{data:l}=E.useContext(ri),o=yw(),s=()=>{l!=null&&l.query&&(navigator.clipboard.writeText(l==null?void 0:l.query),Gn.success("Query copied to clipboard"))},c=async()=>{const f=gw(n,["size","page"]),d=await Sl("Query name",i);d&&o.mutate({name:d,dataSourceId:n.dataSourceId,opts:f})};return b.jsxs("div",{className:"mb-4 flex justify-end gap-2",children:[b.jsxs("button",{className:ye.sidebarAction,onClick:s,children:[b.jsx("span",{children:"🖋️"}),b.jsx("span",{children:"Copy SQL"})]}),os(e==null?void 0:e.teamRole,lr.EDITOR,lr.ADMIN)&&b.jsxs("button",{className:ye.sidebarAction,onClick:c,children:[b.jsx("span",{children:"💾"}),b.jsx("span",{children:"Save"})]})]})}function gb(){const{state:e}=E.useContext(Nt),{data:n}=xc(e.dataSourceId);return b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx("div",{className:ye.card,children:b.jsxs("div",{children:[b.jsx("p",{className:ye.subText,children:"📄 Table"}),b.jsx("p",{className:ke(ye.text,"text-blue-600"),children:e.table})]})}),b.jsx("div",{className:ke(ye.card,"mt-2"),children:b.jsxs("div",{children:[b.jsx("p",{className:ye.subText,children:"📦 Data source"}),b.jsx("p",{className:ke(ye.text,"text-blue-600"),children:n==null?void 0:n.name})]})})]})}function bb(){const{state:e,setState:n}=E.useContext(Nt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{n(d=>({...d,groupBy:d.groupBy.filter(h=>zi(h)!==f)}))};return Cr("g",()=>{l(f=>!f)},"Group by"),b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx(ds,{title:"📚 Group by",show:o,onShow:()=>s(!o),items:e.groupBy.length}),o&&e.groupBy.length>0&&b.jsx("div",{className:ye.cardsList,children:e.groupBy.map(f=>b.jsxs("div",{className:ye.card,children:[b.jsx("span",{className:ye.text,children:zi(f)}),b.jsx("button",{className:ye.closeButton,onClick:()=>c(zi(f)),children:b.jsx(Fi,{width:20,height:20})})]}))}),b.jsxs("button",{className:ye.sidebarAction,onClick:()=>l(!0),children:[b.jsx("span",{className:"hotkey",children:"G"}),b.jsx("span",{children:"Add group by"})]}),i&&b.jsx(mw,{mode:"groupBy",onCancel:()=>l(!1)})]})}function vb(){const{state:e,setState:n}=E.useContext(Nt),[i,l]=E.useState(!1),[o,s]=E.useState(!1),c=d=>{n(h=>({...h,columns:h.columns.filter(m=>zi(m)!==d)}))},f=e.aggregations.length>0||e.groupBy.length>0;return Cr("c",()=>{f?Gn.error("Columns are ignored when there is at least one aggregation or group by"):l(d=>!d)},"Show/hide columns"),b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx(ds,{title:"👀 Columns",show:o,onShow:()=>s(!o),items:f?0:e.columns.length}),f&&b.jsx(Sr,{variant:"warning",className:"border border-yellow-800 my-2",children:b.jsx("span",{className:ye.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!f&&o&&e.columns.length>0&&b.jsx("div",{className:ye.cardsList,children:e.columns.map(d=>b.jsxs("div",{className:ye.card,children:[b.jsx("span",{className:ye.text,children:zi(d)}),b.jsx("button",{className:ye.closeButton,onClick:()=>c(zi(d)),children:b.jsx(Fi,{width:20,height:20})})]}))}),!f&&b.jsxs("button",{className:ye.sidebarAction,onClick:()=>l(!0),children:[b.jsx("span",{className:"hotkey",children:"C"}),b.jsx("span",{children:"Show/Hide columns"})]}),i&&b.jsx(mw,{mode:"columns",onCancel:()=>l(!1)})]})}function xb(){const{state:e,setState:n}=E.useContext(Nt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{const d=zi(f);n(h=>({...h,aggregations:h.aggregations.filter(m=>m.fn!==f.fn||m.value!==f.value),orderBy:h.orderBy.filter(m=>m.column!==d)}))};return Cr("a",()=>{l(f=>!f)},"Aggregate data"),b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx(ds,{title:"🔢 Aggregations",show:o,onShow:()=>s(!o),items:e.aggregations.length}),o&&e.aggregations.length>0&&b.jsx("div",{className:ye.cardsList,children:e.aggregations.map(f=>b.jsxs("div",{className:ye.card,children:[b.jsxs("span",{className:ye.text,children:[f.fn," ",f.value]}),b.jsx("button",{className:ye.closeButton,onClick:()=>c(f),children:b.jsx(Fi,{width:20,height:20})})]}))}),b.jsxs("button",{className:ye.sidebarAction,onClick:()=>l(!0),children:[b.jsx("span",{className:"hotkey",children:"A"}),b.jsx("span",{children:"Aggregate data"})]}),i&&b.jsx(_D,{onClose:()=>l(!1)})]})}const VD=e=>(e==null?void 0:e.map(n=>n.value).join(", "))||"";function wb(){const{state:e}=E.useContext(Nt),{removeFilter:n}=cw(),[i,l]=E.useState(!1),[o,s]=E.useState(!0);return Cr("f",()=>{l(c=>!c)},"Add new filter"),b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx(ds,{title:"🎚️ Filters",show:o,onShow:()=>s(!o),items:e.filters.length}),o&&e.filters.length>0&&b.jsx("div",{className:ye.cardsList,children:e.filters.map((c,f)=>b.jsxs("div",{className:ye.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:ke(ye.subText,"truncate"),children:c.column}),b.jsxs("p",{className:ke(ye.text,"truncate"),children:[Po[c.operator]," ",VD(c.value)]})]}),b.jsx("button",{className:ye.closeButton,onClick:()=>n(c),children:b.jsx(Fi,{width:20,height:20})})]},f))}),b.jsxs("button",{className:ye.sidebarAction,onClick:()=>l(!0),children:[b.jsx("span",{className:"hotkey",children:"F"}),b.jsx("span",{children:"Add filter"})]}),i&&b.jsx(fw,{onClose:()=>l(!1),focusOn:"column"})]})}function Sb(){const{toggle:e}=ND(),{availableJoins:n}=E.useContext(ni),{state:i}=E.useContext(Nt),[l,o]=E.useState(""),[s,c]=E.useState(!0),[f,d]=E.useState(!1),h=E.useMemo(()=>{const g=l.toLowerCase();return n.filter(x=>x.on.toTable.toLowerCase().includes(g))},[n,l]),m=()=>{d(!1),o("")};return Cr("j",()=>{n.length>0?d(g=>!g):Gn.error("No available tables to join")},"Add new join"),b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx(ds,{title:"📄 Joins",show:s,onShow:()=>c(!s),items:i.joins.length}),s&&i.joins.length>0&&b.jsx("div",{className:ye.cardsList,children:i.joins.map((g,x)=>b.jsxs("div",{className:ye.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsxs("p",{className:ke(ye.subText,"truncate"),children:["on ",g.on]}),b.jsx("p",{className:ye.text,children:g.table})]}),x===i.joins.length-1&&b.jsx("button",{className:ye.closeButton,onClick:()=>e(g),children:b.jsx(Fi,{width:20,height:20})})]},g.table+g.on))}),n.length>0&&b.jsxs("button",{onClick:()=>d(!0),className:ye.sidebarAction,children:[b.jsx("span",{className:"hotkey",children:"J"}),b.jsx("span",{children:"Add table"})]}),b.jsxs(nn,{isVisible:f,onClose:m,portal:!0,children:[b.jsx(Zn,{onClick:m}),b.jsxs("div",{className:ye.joinModal,children:[b.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),b.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:g=>o(g.target.value),value:l}),b.jsx("div",{className:"flex flex-col mt-2",children:h.map(g=>b.jsx(hw,{hook:g,onClick:()=>{e({table:g.on.toTable,type:"LEFT",on:g.where}),d(!1)}},g.where))})]})]})]})}function Cb(){const{state:e,setState:n}=E.useContext(Nt);if(!e.orderBy.length)return null;const i=l=>{n(o=>({...o,orderBy:o.orderBy.filter(s=>s.column!==l.column&&s.direction!==l.direction)}))};return b.jsxs("div",{className:ye.sectionContainer,children:[b.jsx("p",{className:ye.sectionTitle,children:"Order by"}),b.jsx("div",{className:ye.cardsList,children:e.orderBy.map((l,o)=>b.jsxs("div",{className:ye.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:ke(ye.subText,"truncate"),children:l.direction}),b.jsx("p",{className:ye.text,children:l.column})]}),b.jsx("button",{className:ye.closeButton,onClick:()=>i(l),children:b.jsx(Fi,{width:20,height:20})})]},o))})]})}const xw=()=>{const{state:e,setState:n}=E.useContext(Nt),i=E.useCallback(o=>{n(s=>({...s,page:o}))},[n]),l=E.useCallback(o=>{n(s=>({...s,size:o}))},[n]);return{page:e.page,size:e.size,setSize:l,setPage:i}};function $D(){const e=Rc(fs.tablet);return b.jsxs("div",{className:"py-2 flex justify-center gap-2 sticky top-0 left-0",children:[b.jsx(YD,{}),b.jsx(GD,{}),e&&b.jsx(KD,{}),b.jsx(XD,{})]})}function YD(){const{data:e}=Xn(),{dataSourceId:n,name:i}=E.useContext(ni),{data:l}=xc(n),{state:o}=E.useContext(Nt),{refetch:s,data:c}=E.useContext(ri),f=yw(),d=()=>{var g,x;(g=c==null?void 0:c.columns)!=null&&g[0].table&&$p({table:(x=c==null?void 0:c.columns)==null?void 0:x[0].table,dataSourceId:n})},h=()=>{Xo(i,o,!0),np()},m=async()=>{const g=gw(o,["size","page"]),x=await Sl("Query name",i);x&&f.mutate({name:x,dataSourceId:n,opts:g})};return b.jsxs("div",{className:Fe.tableConfig,children:[b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:()=>s(),className:ke(Fe.tableAction,Fe.blue),children:"🔄"}),os(e==null?void 0:e.teamRole,lr.ADMIN,lr.EDITOR)&&b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Save query",onClick:m,className:ke(Fe.tableAction,Fe.blue),children:"💾"}),(l==null?void 0:l.allowInsert)===!0&&b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Insert new row",onClick:d,className:ke(Fe.tableAction,Fe.blue),children:"📝"}),b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Open in a new tab",onClick:h,className:ke(Fe.tableAction,Fe.blue),children:"↗️"})]})}function GD(){const{page:e,size:n,setPage:i}=xw(),{data:l}=E.useContext(ri),o=(l==null?void 0:l.rows.length)===n;return b.jsxs("div",{className:Fe.tableConfig,children:[b.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:e<=0,className:ke(Fe.tableAction,Fe.blue),onClick:()=>i(e-1),children:"⬅️"}),b.jsx("span",{children:e+1}),b.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!o,className:ke(Fe.tableAction,Fe.blue),onClick:()=>i(e+1),children:"➡️"})]})}function KD(){const{size:e,setSize:n}=xw();return b.jsx("div",{className:Fe.tableConfig,children:b.jsxs("label",{className:Fe.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:["📏",b.jsxs("select",{style:{height:"20px"},value:e,onChange:i=>n(parseInt(i.target.value,10)),children:[b.jsx("option",{value:5,children:"5"}),b.jsx("option",{value:10,children:"10"}),b.jsx("option",{value:20,children:"20"}),b.jsx("option",{value:50,children:"50"}),b.jsx("option",{value:100,children:"100"}),b.jsx("option",{value:200,children:"200"})]})]})})}function XD(){const{state:e,setState:n}=E.useContext(Nt),i=()=>{n(o=>({...o,searchAll:void 0}))},l=()=>{Sl("Search all text values for","",{type:"info",message:"This will search all text values using LIKE operator (numbers, dates and other non string values are not searched)."}).then(o=>{o&&n(s=>({...s,searchAll:o}))})};return b.jsx("div",{className:Fe.tableConfig,children:e.searchAll?b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:i,className:ke(Fe.tableAction,Fe.red),children:b.jsxs("span",{className:"truncate px-1",children:["❌ ",e.searchAll]})}):b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:l,className:ke(Fe.tableAction,Fe.blue),children:"🔎"})})}function ZD(e,n,i){const l=[];return n.length>0||i.length>0?l.push(...n,...i):e.length>0&&l.push(...e),l}const ww=({options:e,updater:n,name:i,className:l})=>{const o=W4(e,n),{state:s}=o,c=Ej({datasourceId:e.dataSourceId,table:e.table,filters:s.filters,joins:s.joins,page:s.page,size:s.size,orderBy:s.orderBy,columns:ZD(s.columns,s.groupBy,s.aggregations),groupBy:s.groupBy,searchAll:s.searchAll}),f=J4(c.data,e.dataSourceId,i);return b.jsx("div",{className:ke("flex flex-1 gap-1 overflow-hidden",l),children:b.jsx(ni,{value:f,children:b.jsx(Nt,{value:o,children:b.jsxs(ri,{value:c,children:[b.jsxs("div",{className:"m-1 flex-1 overflow-auto relative",children:[b.jsx($D,{}),b.jsx(nD,{})]}),b.jsx(ID,{})]})})})})},xa=Math.min,ml=Math.max,ac=Math.round,Nu=Math.floor,Er=e=>({x:e,y:e}),JD={left:"right",right:"left",bottom:"top",top:"bottom"},WD={start:"end",end:"start"};function rp(e,n,i){return ml(e,xa(n,i))}function hs(e,n){return typeof e=="function"?e(n):e}function bl(e){return e.split("-")[0]}function ps(e){return e.split("-")[1]}function Sw(e){return e==="x"?"y":"x"}function Xp(e){return e==="y"?"height":"width"}function Li(e){return["top","bottom"].includes(bl(e))?"y":"x"}function Zp(e){return Sw(Li(e))}function e8(e,n,i){i===void 0&&(i=!1);const l=ps(e),o=Zp(e),s=Xp(o);let c=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=oc(c)),[c,oc(c)]}function t8(e){const n=oc(e);return[ip(e),n,ip(n)]}function ip(e){return e.replace(/start|end/g,n=>WD[n])}function n8(e,n,i){const l=["left","right"],o=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?n?o:l:n?l:o;case"left":case"right":return n?s:c;default:return[]}}function r8(e,n,i,l){const o=ps(e);let s=n8(bl(e),i==="start",l);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(ip)))),s}function oc(e){return e.replace(/left|right|bottom|top/g,n=>JD[n])}function i8(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cw(e){return typeof e!="number"?i8(e):{top:e,right:e,bottom:e,left:e}}function sc(e){const{x:n,y:i,width:l,height:o}=e;return{width:l,height:o,top:i,left:n,right:n+l,bottom:i+o,x:n,y:i}}function Eb(e,n,i){let{reference:l,floating:o}=e;const s=Li(n),c=Zp(n),f=Xp(c),d=bl(n),h=s==="y",m=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,x=l[f]/2-o[f]/2;let v;switch(d){case"top":v={x:m,y:l.y-o.height};break;case"bottom":v={x:m,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:g};break;case"left":v={x:l.x-o.width,y:g};break;default:v={x:l.x,y:l.y}}switch(ps(n)){case"start":v[c]-=x*(i&&h?-1:1);break;case"end":v[c]+=x*(i&&h?-1:1);break}return v}const l8=async(e,n,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:c}=i,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:m,y:g}=Eb(h,l,d),x=l,v={},w=0;for(let T=0;T<f.length;T++){const{name:_,fn:A}=f[T],{x:N,y:R,data:z,reset:D}=await A({x:m,y:g,initialPlacement:l,placement:x,strategy:o,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:n}});m=N??m,g=R??g,v={...v,[_]:{...v[_],...z}},D&&w<=50&&(w++,typeof D=="object"&&(D.placement&&(x=D.placement),D.rects&&(h=D.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):D.rects),{x:m,y:g}=Eb(h,x,d)),T=-1)}return{x:m,y:g,placement:x,strategy:o,middlewareData:v}};async function Ew(e,n){var i;n===void 0&&(n={});const{x:l,y:o,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:x=!1,padding:v=0}=hs(n,e),w=Cw(v),_=f[x?g==="floating"?"reference":"floating":g],A=sc(await s.getClippingRect({element:(i=await(s.isElement==null?void 0:s.isElement(_)))==null||i?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),N=g==="floating"?{x:l,y:o,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),z=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},D=sc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:R,strategy:d}):N);return{top:(A.top-D.top+w.top)/z.y,bottom:(D.bottom-A.bottom+w.bottom)/z.y,left:(A.left-D.left+w.left)/z.x,right:(D.right-A.right+w.right)/z.x}}const a8=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:o,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=hs(e,n)||{};if(h==null)return{};const g=Cw(m),x={x:i,y:l},v=Zp(o),w=Xp(v),T=await c.getDimensions(h),_=v==="y",A=_?"top":"left",N=_?"bottom":"right",R=_?"clientHeight":"clientWidth",z=s.reference[w]+s.reference[v]-x[v]-s.floating[w],D=x[v]-s.reference[v],L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let $=L?L[R]:0;(!$||!await(c.isElement==null?void 0:c.isElement(L)))&&($=f.floating[R]||s.floating[w]);const ee=z/2-D/2,ie=$/2-T[w]/2-1,U=xa(g[A],ie),ae=xa(g[N],ie),te=U,ue=$-T[w]-ae,J=$/2-T[w]/2+ee,se=rp(te,J,ue),q=!d.arrow&&ps(o)!=null&&J!==se&&s.reference[w]/2-(J<te?U:ae)-T[w]/2<0,X=q?J<te?J-te:J-ue:0;return{[v]:x[v]+X,data:{[v]:se,centerOffset:J-se-X,...q&&{alignmentOffset:X}},reset:q}}}),o8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var i,l;const{placement:o,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0,..._}=hs(e,n);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const A=bl(o),N=Li(f),R=bl(f)===f,z=await(d.isRTL==null?void 0:d.isRTL(h.floating)),D=x||(R||!T?[oc(f)]:t8(f)),L=w!=="none";!x&&L&&D.push(...r8(f,T,w,z));const $=[f,...D],ee=await Ew(n,_),ie=[];let U=((l=s.flip)==null?void 0:l.overflows)||[];if(m&&ie.push(ee[A]),g){const J=e8(o,c,z);ie.push(ee[J[0]],ee[J[1]])}if(U=[...U,{placement:o,overflows:ie}],!ie.every(J=>J<=0)){var ae,te;const J=(((ae=s.flip)==null?void 0:ae.index)||0)+1,se=$[J];if(se&&(!(g==="alignment"?N!==Li(se):!1)||U.every(ne=>ne.overflows[0]>0&&Li(ne.placement)===N)))return{data:{index:J,overflows:U},reset:{placement:se}};let q=(te=U.filter(X=>X.overflows[0]<=0).sort((X,ne)=>X.overflows[1]-ne.overflows[1])[0])==null?void 0:te.placement;if(!q)switch(v){case"bestFit":{var ue;const X=(ue=U.filter(ne=>{if(L){const pe=Li(ne.placement);return pe===N||pe==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(pe=>pe>0).reduce((pe,C)=>pe+C,0)]).sort((ne,pe)=>ne[1]-pe[1])[0])==null?void 0:ue[0];X&&(q=X);break}case"initialPlacement":q=f;break}if(o!==q)return{reset:{placement:q}}}return{}}}};async function s8(e,n){const{placement:i,platform:l,elements:o}=e,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),c=bl(i),f=ps(i),d=Li(i)==="y",h=["left","top"].includes(c)?-1:1,m=s&&d?-1:1,g=hs(n,e);let{mainAxis:x,crossAxis:v,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(v=f==="end"?w*-1:w),d?{x:v*m,y:x*h}:{x:x*h,y:v*m}}const u8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var i,l;const{x:o,y:s,placement:c,middlewareData:f}=n,d=await s8(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:c}}}}},c8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:i,y:l,placement:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:_=>{let{x:A,y:N}=_;return{x:A,y:N}}},...d}=hs(e,n),h={x:i,y:l},m=await Ew(n,d),g=Li(bl(o)),x=Sw(g);let v=h[x],w=h[g];if(s){const _=x==="y"?"top":"left",A=x==="y"?"bottom":"right",N=v+m[_],R=v-m[A];v=rp(N,v,R)}if(c){const _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=w+m[_],R=w-m[A];w=rp(N,w,R)}const T=f.fn({...n,[x]:v,[g]:w});return{...T,data:{x:T.x-i,y:T.y-l,enabled:{[x]:s,[g]:c}}}}}};function Nc(){return typeof window<"u"}function La(e){return kw(e)?(e.nodeName||"").toLowerCase():"#document"}function jn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Or(e){var n;return(n=(kw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function kw(e){return Nc()?e instanceof Node||e instanceof jn(e).Node:!1}function ar(e){return Nc()?e instanceof Element||e instanceof jn(e).Element:!1}function kr(e){return Nc()?e instanceof HTMLElement||e instanceof jn(e).HTMLElement:!1}function kb(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jn(e).ShadowRoot}function ms(e){const{overflow:n,overflowX:i,overflowY:l,display:o}=or(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&!["inline","contents"].includes(o)}function f8(e){return["table","td","th"].includes(La(e))}function jc(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Jp(e){const n=Wp(),i=ar(e)?or(e):e;return["transform","translate","scale","rotate","perspective"].some(l=>i[l]?i[l]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!n&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!n&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(l=>(i.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(i.contain||"").includes(l))}function d8(e){let n=Bi(e);for(;kr(n)&&!wa(n);){if(Jp(n))return n;if(jc(n))return null;n=Bi(n)}return null}function Wp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wa(e){return["html","body","#document"].includes(La(e))}function or(e){return jn(e).getComputedStyle(e)}function Dc(e){return ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bi(e){if(La(e)==="html")return e;const n=e.assignedSlot||e.parentNode||kb(e)&&e.host||Or(e);return kb(n)?n.host:n}function Tw(e){const n=Bi(e);return wa(n)?e.ownerDocument?e.ownerDocument.body:e.body:kr(n)&&ms(n)?n:Tw(n)}function Wo(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=Tw(e),s=o===((l=e.ownerDocument)==null?void 0:l.body),c=jn(o);if(s){const f=lp(c);return n.concat(c,c.visualViewport||[],ms(o)?o:[],f&&i?Wo(f):[])}return n.concat(o,Wo(o,[],i))}function lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Aw(e){const n=or(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=kr(e),s=o?e.offsetWidth:i,c=o?e.offsetHeight:l,f=ac(i)!==s||ac(l)!==c;return f&&(i=s,l=c),{width:i,height:l,$:f}}function em(e){return ar(e)?e:e.contextElement}function ya(e){const n=em(e);if(!kr(n))return Er(1);const i=n.getBoundingClientRect(),{width:l,height:o,$:s}=Aw(n);let c=(s?ac(i.width):i.width)/l,f=(s?ac(i.height):i.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const h8=Er(0);function _w(e){const n=jn(e);return!Wp()||!n.visualViewport?h8:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function p8(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==jn(e)?!1:n}function vl(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),s=em(e);let c=Er(1);n&&(l?ar(l)&&(c=ya(l)):c=ya(e));const f=p8(s,i,l)?_w(s):Er(0);let d=(o.left+f.x)/c.x,h=(o.top+f.y)/c.y,m=o.width/c.x,g=o.height/c.y;if(s){const x=jn(s),v=l&&ar(l)?jn(l):l;let w=x,T=lp(w);for(;T&&l&&v!==w;){const _=ya(T),A=T.getBoundingClientRect(),N=or(T),R=A.left+(T.clientLeft+parseFloat(N.paddingLeft))*_.x,z=A.top+(T.clientTop+parseFloat(N.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,g*=_.y,d+=R,h+=z,w=jn(T),T=lp(w)}}return sc({width:m,height:g,x:d,y:h})}function tm(e,n){const i=Dc(e).scrollLeft;return n?n.left+i:vl(Or(e)).left+i}function Ow(e,n,i){i===void 0&&(i=!1);const l=e.getBoundingClientRect(),o=l.left+n.scrollLeft-(i?0:tm(e,l)),s=l.top+n.scrollTop;return{x:o,y:s}}function m8(e){let{elements:n,rect:i,offsetParent:l,strategy:o}=e;const s=o==="fixed",c=Or(l),f=n?jc(n.floating):!1;if(l===c||f&&s)return i;let d={scrollLeft:0,scrollTop:0},h=Er(1);const m=Er(0),g=kr(l);if((g||!g&&!s)&&((La(l)!=="body"||ms(c))&&(d=Dc(l)),kr(l))){const v=vl(l);h=ya(l),m.x=v.x+l.clientLeft,m.y=v.y+l.clientTop}const x=c&&!g&&!s?Ow(c,d,!0):Er(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-d.scrollLeft*h.x+m.x+x.x,y:i.y*h.y-d.scrollTop*h.y+m.y+x.y}}function y8(e){return Array.from(e.getClientRects())}function g8(e){const n=Or(e),i=Dc(e),l=e.ownerDocument.body,o=ml(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=ml(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let c=-i.scrollLeft+tm(e);const f=-i.scrollTop;return or(l).direction==="rtl"&&(c+=ml(n.clientWidth,l.clientWidth)-o),{width:o,height:s,x:c,y:f}}function b8(e,n){const i=jn(e),l=Or(e),o=i.visualViewport;let s=l.clientWidth,c=l.clientHeight,f=0,d=0;if(o){s=o.width,c=o.height;const h=Wp();(!h||h&&n==="fixed")&&(f=o.offsetLeft,d=o.offsetTop)}return{width:s,height:c,x:f,y:d}}function v8(e,n){const i=vl(e,!0,n==="fixed"),l=i.top+e.clientTop,o=i.left+e.clientLeft,s=kr(e)?ya(e):Er(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=o*s.x,h=l*s.y;return{width:c,height:f,x:d,y:h}}function Tb(e,n,i){let l;if(n==="viewport")l=b8(e,i);else if(n==="document")l=g8(Or(e));else if(ar(n))l=v8(n,i);else{const o=_w(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return sc(l)}function Rw(e,n){const i=Bi(e);return i===n||!ar(i)||wa(i)?!1:or(i).position==="fixed"||Rw(i,n)}function x8(e,n){const i=n.get(e);if(i)return i;let l=Wo(e,[],!1).filter(f=>ar(f)&&La(f)!=="body"),o=null;const s=or(e).position==="fixed";let c=s?Bi(e):e;for(;ar(c)&&!wa(c);){const f=or(c),d=Jp(c);!d&&f.position==="fixed"&&(o=null),(s?!d&&!o:!d&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ms(c)&&!d&&Rw(e,c))?l=l.filter(m=>m!==c):o=f,c=Bi(c)}return n.set(e,l),l}function w8(e){let{element:n,boundary:i,rootBoundary:l,strategy:o}=e;const c=[...i==="clippingAncestors"?jc(n)?[]:x8(n,this._c):[].concat(i),l],f=c[0],d=c.reduce((h,m)=>{const g=Tb(n,m,o);return h.top=ml(g.top,h.top),h.right=xa(g.right,h.right),h.bottom=xa(g.bottom,h.bottom),h.left=ml(g.left,h.left),h},Tb(n,f,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function S8(e){const{width:n,height:i}=Aw(e);return{width:n,height:i}}function C8(e,n,i){const l=kr(n),o=Or(n),s=i==="fixed",c=vl(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=Er(0);function h(){d.x=tm(o)}if(l||!l&&!s)if((La(n)!=="body"||ms(o))&&(f=Dc(n)),l){const v=vl(n,!0,s,n);d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}else o&&h();s&&!l&&o&&h();const m=o&&!l&&!s?Ow(o,f):Er(0),g=c.left+f.scrollLeft-d.x-m.x,x=c.top+f.scrollTop-d.y-m.y;return{x:g,y:x,width:c.width,height:c.height}}function Sh(e){return or(e).position==="static"}function Ab(e,n){if(!kr(e)||or(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return Or(e)===i&&(i=i.ownerDocument.body),i}function Nw(e,n){const i=jn(e);if(jc(e))return i;if(!kr(e)){let o=Bi(e);for(;o&&!wa(o);){if(ar(o)&&!Sh(o))return o;o=Bi(o)}return i}let l=Ab(e,n);for(;l&&f8(l)&&Sh(l);)l=Ab(l,n);return l&&wa(l)&&Sh(l)&&!Jp(l)?i:l||d8(e)||i}const E8=async function(e){const n=this.getOffsetParent||Nw,i=this.getDimensions,l=await i(e.floating);return{reference:C8(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function k8(e){return or(e).direction==="rtl"}const T8={convertOffsetParentRelativeRectToViewportRelativeRect:m8,getDocumentElement:Or,getClippingRect:w8,getOffsetParent:Nw,getElementRects:E8,getClientRects:y8,getDimensions:S8,getScale:ya,isElement:ar,isRTL:k8};function jw(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function A8(e,n){let i=null,l;const o=Or(e);function s(){var f;clearTimeout(l),(f=i)==null||f.disconnect(),i=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:g,width:x,height:v}=h;if(f||n(),!x||!v)return;const w=Nu(g),T=Nu(o.clientWidth-(m+x)),_=Nu(o.clientHeight-(g+v)),A=Nu(m),R={rootMargin:-w+"px "+-T+"px "+-_+"px "+-A+"px",threshold:ml(0,xa(1,d))||1};let z=!0;function D(L){const $=L[0].intersectionRatio;if($!==d){if(!z)return c();$?c(!1,$):l=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!jw(h,e.getBoundingClientRect())&&c(),z=!1}try{i=new IntersectionObserver(D,{...R,root:o.ownerDocument})}catch{i=new IntersectionObserver(D,R)}i.observe(e)}return c(!0),s}function _8(e,n,i,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=l,h=em(e),m=o||s?[...h?Wo(h):[],...Wo(n)]:[];m.forEach(A=>{o&&A.addEventListener("scroll",i,{passive:!0}),s&&A.addEventListener("resize",i)});const g=h&&f?A8(h,i):null;let x=-1,v=null;c&&(v=new ResizeObserver(A=>{let[N]=A;N&&N.target===h&&v&&(v.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(n)})),i()}),h&&!d&&v.observe(h),v.observe(n));let w,T=d?vl(e):null;d&&_();function _(){const A=vl(e);T&&!jw(T,A)&&i(),T=A,w=requestAnimationFrame(_)}return i(),()=>{var A;m.forEach(N=>{o&&N.removeEventListener("scroll",i),s&&N.removeEventListener("resize",i)}),g==null||g(),(A=v)==null||A.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const O8=u8,R8=c8,N8=o8,j8=a8,_b=(e,n,i)=>{const l=new Map,o={platform:T8,...i},s={...o.platform,_c:l};return l8(e,n,{...o,platform:s})};var Ch={exports:{}};/*!
287
+ Copyright (c) 2018 Jed Watson.
288
+ Licensed under the MIT License (MIT), see
289
+ http://jedwatson.github.io/classnames
290
+ */var Ob;function D8(){return Ob||(Ob=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,l(f)))}return s}function l(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return i.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)n.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(Ch)),Ch.exports}var M8=D8();const ap=Ca(M8);var Rb={};const L8="react-tooltip-core-styles",z8="react-tooltip-base-styles",Nb={core:!1,base:!1};function jb({css:e,id:n=z8,type:i="base",ref:l}){var o,s;if(!e||typeof document>"u"||Nb[i]||i==="core"&&typeof process<"u"&&(!((o=process==null?void 0:Rb)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((s=process==null?void 0:Rb)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(n=L8),l||(l={});const{insertAt:c}=l;if(document.getElementById(n))return;const f=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.id=n,d.type="text/css",c==="top"&&f.firstChild?f.insertBefore(d,f.firstChild):f.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),Nb[i]=!0}const Db=async({elementReference:e=null,tooltipReference:n=null,tooltipArrowReference:i=null,place:l="top",offset:o=10,strategy:s="absolute",middlewares:c=[O8(Number(o)),N8({fallbackAxisSideDirection:"start"}),R8({padding:5})],border:f,arrowSize:d=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};if(n===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};const h=c;return i?(h.push(j8({element:i,padding:5})),_b(e,n,{placement:l,strategy:s,middleware:h}).then(({x:m,y:g,placement:x,middlewareData:v})=>{var w,T;const _={left:`${m}px`,top:`${g}px`,border:f},{x:A,y:N}=(w=v.arrow)!==null&&w!==void 0?w:{x:0,y:0},R=(T={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]])!==null&&T!==void 0?T:"bottom",z=f&&{borderBottom:f,borderRight:f};let D=0;if(f){const L=`${f}`.match(/(\d+)px/);D=L!=null&&L[1]?Number(L[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:A!=null?`${A}px`:"",top:N!=null?`${N}px`:"",right:"",bottom:"",...z,[R]:`-${d/2+D}px`},place:x}})):_b(e,n,{placement:"bottom",strategy:s,middleware:h}).then(({x:m,y:g,placement:x})=>({tooltipStyles:{left:`${m}px`,top:`${g}px`},tooltipArrowStyles:{},place:x}))},Mb=(e,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,n),Lb=(e,n,i)=>{let l=null;const o=function(...s){const c=()=>{l=null};!l&&(e.apply(this,s),l=setTimeout(c,n))};return o.cancel=()=>{l&&(clearTimeout(l),l=null)},o},zb=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",op=(e,n)=>{if(e===n)return!0;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((o,s)=>op(o,n[s]));if(Array.isArray(e)!==Array.isArray(n))return!1;if(!zb(e)||!zb(n))return e===n;const i=Object.keys(e),l=Object.keys(n);return i.length===l.length&&i.every(o=>op(e[o],n[o]))},U8=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const n=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(i=>{const l=n.getPropertyValue(i);return l==="auto"||l==="scroll"})},Ub=e=>{if(!e)return null;let n=e.parentElement;for(;n;){if(U8(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},B8=typeof window<"u"?E.useLayoutEffect:E.useEffect,$n=e=>{e.current&&(clearTimeout(e.current),e.current=null)},q8="DEFAULT_TOOLTIP_ID",H8={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},F8=E.createContext({getTooltipData:()=>H8});function Dw(e=q8){return E.useContext(F8).getTooltipData(e)}var ca={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Eh={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Q8=({forwardRef:e,id:n,className:i,classNameArrow:l,variant:o="dark",anchorId:s,anchorSelect:c,place:f="top",offset:d=10,events:h=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:x,wrapper:v,delayShow:w=0,delayHide:T=0,float:_=!1,hidden:A=!1,noArrow:N=!1,clickable:R=!1,closeOnEsc:z=!1,closeOnScroll:D=!1,closeOnResize:L=!1,openEvents:$,closeEvents:ee,globalCloseEvents:ie,imperativeModeOnly:U,style:ae,position:te,afterShow:ue,afterHide:J,disableTooltip:se,content:q,contentWrapperRef:X,isOpen:ne,defaultIsOpen:pe=!1,setIsOpen:C,activeAnchor:I,setActiveAnchor:oe,border:O,opacity:fe,arrowColor:Te,arrowSize:ce=8,role:ct="tooltip"})=>{var Re;const Ie=E.useRef(null),Qt=E.useRef(null),xt=E.useRef(null),cn=E.useRef(null),Jn=E.useRef(null),[fn,ii]=E.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[Mt,Lt]=E.useState(!1),[Wn,xn]=E.useState(!1),[Ge,Dn]=E.useState(null),Rr=E.useRef(!1),fr=E.useRef(null),{anchorRefs:Nr,setActiveAnchor:li}=Dw(n),Y=E.useRef(!1),[W,me]=E.useState([]),ge=E.useRef(!1),Be=m||h.includes("click"),Pt=Be||($==null?void 0:$.click)||($==null?void 0:$.dblclick)||($==null?void 0:$.mousedown),Gt=$?{...$}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!$&&Be&&Object.assign(Gt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const mt=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&Be&&Object.assign(mt,{mouseleave:!1,blur:!1,mouseout:!1});const yt=ie?{...ie}:{escape:z||!1,scroll:D||!1,resize:L||!1,clickOutsideAnchor:Pt||!1};U&&(Object.assign(Gt,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(mt,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(yt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),B8(()=>(ge.current=!0,()=>{ge.current=!1}),[]);const qe=le=>{ge.current&&(le&&xn(!0),setTimeout(()=>{ge.current&&(C==null||C(le),ne===void 0&&Lt(le))},10))};E.useEffect(()=>{if(ne===void 0)return()=>null;ne&&xn(!0);const le=setTimeout(()=>{Lt(ne)},10);return()=>{clearTimeout(le)}},[ne]),E.useEffect(()=>{if(Mt!==Rr.current)if($n(Jn),Rr.current=Mt,Mt)ue==null||ue();else{const le=(he=>{const Se=he.match(/^([\d.]+)(ms|s)$/);if(!Se)return 0;const[,dt,Bt]=Se;return Number(dt)*(Bt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Jn.current=setTimeout(()=>{xn(!1),Dn(null),J==null||J()},le+25)}},[Mt]);const ft=le=>{ii(he=>op(he,le)?he:le)},zt=(le=w)=>{$n(xt),Wn?qe(!0):xt.current=setTimeout(()=>{qe(!0)},le)},Ut=(le=T)=>{$n(cn),cn.current=setTimeout(()=>{Y.current||qe(!1)},le)},ai=le=>{var he;if(!le)return;const Se=(he=le.currentTarget)!==null&&he!==void 0?he:le.target;if(!(Se!=null&&Se.isConnected))return oe(null),void li({current:null});w?zt():qe(!0),oe(Se),li({current:Se}),$n(cn)},jr=()=>{R?Ut(T||100):T?Ut():qe(!1),$n(xt)},dr=({x:le,y:he})=>{var Se;const dt={getBoundingClientRect:()=>({x:le,y:he,width:0,height:0,top:he,left:le,right:le,bottom:he})};Db({place:(Se=Ge==null?void 0:Ge.place)!==null&&Se!==void 0?Se:f,offset:d,elementReference:dt,tooltipReference:Ie.current,tooltipArrowReference:Qt.current,strategy:g,middlewares:x,border:O,arrowSize:ce}).then(Bt=>{ft(Bt)})},Mn=le=>{if(!le)return;const he=le,Se={x:he.clientX,y:he.clientY};dr(Se),fr.current=Se},Pi=le=>{var he;if(!Mt)return;const Se=le.target;Se.isConnected&&(!((he=Ie.current)===null||he===void 0)&&he.contains(Se)||[document.querySelector(`[id='${s}']`),...W].some(dt=>dt==null?void 0:dt.contains(Se))||(qe(!1),$n(xt)))},Ii=Lb(ai,50),wt=Lb(jr,50),Kt=le=>{wt.cancel(),Ii(le)},ve=()=>{Ii.cancel(),wt()},Me=E.useCallback(()=>{var le,he;const Se=(le=Ge==null?void 0:Ge.position)!==null&&le!==void 0?le:te;Se?dr(Se):_?fr.current&&dr(fr.current):I!=null&&I.isConnected&&Db({place:(he=Ge==null?void 0:Ge.place)!==null&&he!==void 0?he:f,offset:d,elementReference:I,tooltipReference:Ie.current,tooltipArrowReference:Qt.current,strategy:g,middlewares:x,border:O,arrowSize:ce}).then(dt=>{ge.current&&ft(dt)})},[Mt,I,q,ae,f,Ge==null?void 0:Ge.place,d,g,te,Ge==null?void 0:Ge.position,_,ce]);E.useEffect(()=>{var le,he;const Se=new Set(Nr);W.forEach($e=>{se!=null&&se($e)||Se.add({current:$e})});const dt=document.querySelector(`[id='${s}']`);dt&&!(se!=null&&se(dt))&&Se.add({current:dt});const Bt=()=>{qe(!1)},Ln=Ub(I),wn=Ub(Ie.current);yt.scroll&&(window.addEventListener("scroll",Bt),Ln==null||Ln.addEventListener("scroll",Bt),wn==null||wn.addEventListener("scroll",Bt));let St=null;yt.resize?window.addEventListener("resize",Bt):I&&Ie.current&&(St=_8(I,Ie.current,Me,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Zt=$e=>{$e.key==="Escape"&&qe(!1)};yt.escape&&window.addEventListener("keydown",Zt),yt.clickOutsideAnchor&&window.addEventListener("click",Pi);const Ve=[],Sn=$e=>!!($e!=null&&$e.target&&(I!=null&&I.contains($e.target))),Vi=$e=>{Mt&&Sn($e)||ai($e)},oi=$e=>{Mt&&Sn($e)&&jr()},Ct=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],za=["click","dblclick","mousedown","mouseup"];Object.entries(Gt).forEach(([$e,zn])=>{zn&&(Ct.includes($e)?Ve.push({event:$e,listener:Kt}):za.includes($e)&&Ve.push({event:$e,listener:Vi}))}),Object.entries(mt).forEach(([$e,zn])=>{zn&&(Ct.includes($e)?Ve.push({event:$e,listener:ve}):za.includes($e)&&Ve.push({event:$e,listener:oi}))}),_&&Ve.push({event:"pointermove",listener:Mn});const Ua=()=>{Y.current=!0},hr=()=>{Y.current=!1,jr()},Dr=R&&(mt.mouseout||mt.mouseleave);return Dr&&((le=Ie.current)===null||le===void 0||le.addEventListener("mouseover",Ua),(he=Ie.current)===null||he===void 0||he.addEventListener("mouseout",hr)),Ve.forEach(({event:$e,listener:zn})=>{Se.forEach(Cl=>{var $i;($i=Cl.current)===null||$i===void 0||$i.addEventListener($e,zn)})}),()=>{var $e,zn;yt.scroll&&(window.removeEventListener("scroll",Bt),Ln==null||Ln.removeEventListener("scroll",Bt),wn==null||wn.removeEventListener("scroll",Bt)),yt.resize?window.removeEventListener("resize",Bt):St==null||St(),yt.clickOutsideAnchor&&window.removeEventListener("click",Pi),yt.escape&&window.removeEventListener("keydown",Zt),Dr&&(($e=Ie.current)===null||$e===void 0||$e.removeEventListener("mouseover",Ua),(zn=Ie.current)===null||zn===void 0||zn.removeEventListener("mouseout",hr)),Ve.forEach(({event:Cl,listener:$i})=>{Se.forEach(El=>{var si;(si=El.current)===null||si===void 0||si.removeEventListener(Cl,$i)})})}},[I,Me,Wn,Nr,W,$,ee,ie,Be,w,T]),E.useEffect(()=>{var le,he;let Se=(he=(le=Ge==null?void 0:Ge.anchorSelect)!==null&&le!==void 0?le:c)!==null&&he!==void 0?he:"";!Se&&n&&(Se=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const dt=new MutationObserver(Bt=>{const Ln=[],wn=[];Bt.forEach(St=>{if(St.type==="attributes"&&St.attributeName==="data-tooltip-id"&&(St.target.getAttribute("data-tooltip-id")===n?Ln.push(St.target):St.oldValue===n&&wn.push(St.target)),St.type==="childList"){if(I){const Zt=[...St.removedNodes].filter(Ve=>Ve.nodeType===1);if(Se)try{wn.push(...Zt.filter(Ve=>Ve.matches(Se))),wn.push(...Zt.flatMap(Ve=>[...Ve.querySelectorAll(Se)]))}catch{}Zt.some(Ve=>{var Sn;return!!(!((Sn=Ve==null?void 0:Ve.contains)===null||Sn===void 0)&&Sn.call(Ve,I))&&(xn(!1),qe(!1),oe(null),$n(xt),$n(cn),!0)})}if(Se)try{const Zt=[...St.addedNodes].filter(Ve=>Ve.nodeType===1);Ln.push(...Zt.filter(Ve=>Ve.matches(Se))),Ln.push(...Zt.flatMap(Ve=>[...Ve.querySelectorAll(Se)]))}catch{}}}),(Ln.length||wn.length)&&me(St=>[...St.filter(Zt=>!wn.includes(Zt)),...Ln])});return dt.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{dt.disconnect()}},[n,c,Ge==null?void 0:Ge.anchorSelect,I]),E.useEffect(()=>{Me()},[Me]),E.useEffect(()=>{if(!(X!=null&&X.current))return()=>null;const le=new ResizeObserver(()=>{setTimeout(()=>Me())});return le.observe(X.current),()=>{le.disconnect()}},[q,X==null?void 0:X.current]),E.useEffect(()=>{var le;const he=document.querySelector(`[id='${s}']`),Se=[...W,he];I&&Se.includes(I)||oe((le=W[0])!==null&&le!==void 0?le:he)},[s,W,I]),E.useEffect(()=>(pe&&qe(!0),()=>{$n(xt),$n(cn)}),[]),E.useEffect(()=>{var le;let he=(le=Ge==null?void 0:Ge.anchorSelect)!==null&&le!==void 0?le:c;if(!he&&n&&(he=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),he)try{const Se=Array.from(document.querySelectorAll(he));me(Se)}catch{me([])}},[n,c,Ge==null?void 0:Ge.anchorSelect]),E.useEffect(()=>{xt.current&&($n(xt),zt(w))},[w]);const ln=(Re=Ge==null?void 0:Ge.content)!==null&&Re!==void 0?Re:q,Xt=Mt&&Object.keys(fn.tooltipStyles).length>0;return E.useImperativeHandle(e,()=>({open:le=>{if(le!=null&&le.anchorSelect)try{document.querySelector(le.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${le.anchorSelect}" is not a valid CSS selector`)}Dn(le??null),le!=null&&le.delay?zt(le.delay):qe(!0)},close:le=>{le!=null&&le.delay?Ut(le.delay):qe(!1)},activeAnchor:I,place:fn.place,isOpen:!!(Wn&&!A&&ln&&Xt)})),Wn&&!A&&ln?nt.createElement(v,{id:n,role:ct,className:ap("react-tooltip",ca.tooltip,Eh.tooltip,Eh[o],i,`react-tooltip__place-${fn.place}`,ca[Xt?"show":"closing"],Xt?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&ca.fixed,R&&ca.clickable),onTransitionEnd:le=>{$n(Jn),Mt||le.propertyName!=="opacity"||(xn(!1),Dn(null),J==null||J())},style:{...ae,...fn.tooltipStyles,opacity:fe!==void 0&&Xt?fe:void 0},ref:Ie},ln,nt.createElement(v,{className:ap("react-tooltip-arrow",ca.arrow,Eh.arrow,l,N&&ca.noArrow),style:{...fn.tooltipArrowStyles,background:Te?`linear-gradient(to right bottom, transparent 50%, ${Te} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Qt})):null},P8=({content:e})=>nt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Mw=nt.forwardRef(({id:e,anchorId:n,anchorSelect:i,content:l,html:o,render:s,className:c,classNameArrow:f,variant:d="dark",place:h="top",offset:m=10,wrapper:g="div",children:x=null,events:v=["hover"],openOnClick:w=!1,positionStrategy:T="absolute",middlewares:_,delayShow:A=0,delayHide:N=0,float:R=!1,hidden:z=!1,noArrow:D=!1,clickable:L=!1,closeOnEsc:$=!1,closeOnScroll:ee=!1,closeOnResize:ie=!1,openEvents:U,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue=!1,style:J,position:se,isOpen:q,defaultIsOpen:X=!1,disableStyleInjection:ne=!1,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:O,afterShow:fe,afterHide:Te,disableTooltip:ce,role:ct="tooltip"},Re)=>{const[Ie,Qt]=E.useState(l),[xt,cn]=E.useState(o),[Jn,fn]=E.useState(h),[ii,Mt]=E.useState(d),[Lt,Wn]=E.useState(m),[xn,Ge]=E.useState(A),[Dn,Rr]=E.useState(N),[fr,Nr]=E.useState(R),[li,Y]=E.useState(z),[W,me]=E.useState(g),[ge,Be]=E.useState(v),[Pt,Gt]=E.useState(T),[mt,yt]=E.useState(null),[qe,ft]=E.useState(null),zt=E.useRef(ne),{anchorRefs:Ut,activeAnchor:ai}=Dw(e),jr=wt=>wt==null?void 0:wt.getAttributeNames().reduce((Kt,ve)=>{var Me;return ve.startsWith("data-tooltip-")&&(Kt[ve.replace(/^data-tooltip-/,"")]=(Me=wt==null?void 0:wt.getAttribute(ve))!==null&&Me!==void 0?Me:null),Kt},{}),dr=wt=>{const Kt={place:ve=>{var Me;fn((Me=ve)!==null&&Me!==void 0?Me:h)},content:ve=>{Qt(ve??l)},html:ve=>{cn(ve??o)},variant:ve=>{var Me;Mt((Me=ve)!==null&&Me!==void 0?Me:d)},offset:ve=>{Wn(ve===null?m:Number(ve))},wrapper:ve=>{var Me;me((Me=ve)!==null&&Me!==void 0?Me:g)},events:ve=>{const Me=ve==null?void 0:ve.split(" ");Be(Me??v)},"position-strategy":ve=>{var Me;Gt((Me=ve)!==null&&Me!==void 0?Me:T)},"delay-show":ve=>{Ge(ve===null?A:Number(ve))},"delay-hide":ve=>{Rr(ve===null?N:Number(ve))},float:ve=>{Nr(ve===null?R:ve==="true")},hidden:ve=>{Y(ve===null?z:ve==="true")},"class-name":ve=>{yt(ve)}};Object.values(Kt).forEach(ve=>ve(null)),Object.entries(wt).forEach(([ve,Me])=>{var ln;(ln=Kt[ve])===null||ln===void 0||ln.call(Kt,Me)})};E.useEffect(()=>{Qt(l)},[l]),E.useEffect(()=>{cn(o)},[o]),E.useEffect(()=>{fn(h)},[h]),E.useEffect(()=>{Mt(d)},[d]),E.useEffect(()=>{Wn(m)},[m]),E.useEffect(()=>{Ge(A)},[A]),E.useEffect(()=>{Rr(N)},[N]),E.useEffect(()=>{Nr(R)},[R]),E.useEffect(()=>{Y(z)},[z]),E.useEffect(()=>{Gt(T)},[T]),E.useEffect(()=>{zt.current!==ne&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[ne]),E.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:ne==="core",disableBase:ne}}))},[]),E.useEffect(()=>{var wt;const Kt=new Set(Ut);let ve=i;if(!ve&&e&&(ve=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),ve)try{document.querySelectorAll(ve).forEach(he=>{Kt.add({current:he})})}catch{console.warn(`[react-tooltip] "${ve}" is not a valid CSS selector`)}const Me=document.querySelector(`[id='${n}']`);if(Me&&Kt.add({current:Me}),!Kt.size)return()=>null;const ln=(wt=qe??Me)!==null&&wt!==void 0?wt:ai.current,Xt=new MutationObserver(he=>{he.forEach(Se=>{var dt;if(!ln||Se.type!=="attributes"||!(!((dt=Se.attributeName)===null||dt===void 0)&&dt.startsWith("data-tooltip-")))return;const Bt=jr(ln);dr(Bt)})}),le={attributes:!0,childList:!1,subtree:!1};if(ln){const he=jr(ln);dr(he),Xt.observe(ln,le)}return()=>{Xt.disconnect()}},[Ut,ai,qe,n,i]),E.useEffect(()=>{J!=null&&J.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!Mb("border",`${pe}`)&&console.warn(`[react-tooltip] "${pe}" is not a valid \`border\`.`),J!=null&&J.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),C&&!Mb("opacity",`${C}`)&&console.warn(`[react-tooltip] "${C}" is not a valid \`opacity\`.`)},[]);let Mn=x;const Pi=E.useRef(null);if(s){const wt=s({content:(qe==null?void 0:qe.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:qe});Mn=wt?nt.createElement("div",{ref:Pi,className:"react-tooltip-content-wrapper"},wt):null}else Ie&&(Mn=Ie);xt&&(Mn=nt.createElement(P8,{content:xt}));const Ii={forwardRef:Re,id:e,anchorId:n,anchorSelect:i,className:ap(c,mt),classNameArrow:f,content:Mn,contentWrapperRef:Pi,place:Jn,variant:ii,offset:Lt,wrapper:W,events:ge,openOnClick:w,positionStrategy:Pt,middlewares:_,delayShow:xn,delayHide:Dn,float:fr,hidden:li,noArrow:D,clickable:L,closeOnEsc:$,closeOnScroll:ee,closeOnResize:ie,openEvents:U,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue,style:J,position:se,isOpen:q,defaultIsOpen:X,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:O,afterShow:fe,afterHide:Te,disableTooltip:ce,activeAnchor:qe,setActiveAnchor:wt=>ft(wt),role:ct};return nt.createElement(Q8,{...Ii})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||jb({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||jb({css:`
291
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const I8=e=>{if(!e)return;const n=At.getQueryData([Ui]);if(!n)return;const i=At.getQueryData([ei,n.teamId]);return i==null?void 0:i.find(l=>l.id===e)},V8=({content:e,activeAnchor:n})=>{if(!n)return null;const i=n.getAttribute("data-tab-id"),l=Ec.get().find(c=>c.id===i),o=I8(l==null?void 0:l.options.dataSourceId);if(!l)return e;const s=()=>{Sl("New tab name",l.label).then(c=>{c&&Jv(l.id,c)})};return b.jsxs("div",{children:[b.jsxs("button",{className:wr.tooltipLabel,onClick:s,children:[b.jsxs("div",{className:"max-w-full",children:[b.jsx("p",{className:"text-xs",children:"label"}),b.jsx("p",{className:"truncate font-semibold",children:l.label})]}),b.jsx("span",{children:"✏️"})]}),b.jsxs("div",{className:wr.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"table"}),b.jsx("p",{className:"truncate font-semibold",children:l.options.table})]}),o&&b.jsxs("div",{className:wr.tooltipInfoEntry,children:[b.jsxs("p",{className:"text-sm",children:["data source [",o.dbType,"]"]}),b.jsx("p",{className:"truncate font-semibold",children:o.name})]}),l.options.joins.length>0&&b.jsxs("div",{className:wr.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"joins"}),b.jsx("p",{className:"font-semibold",children:l.options.joins.map(c=>c.table).join(", ")})]}),l.options.filters.length>0&&b.jsxs("div",{className:wr.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"filters"}),l.options.filters.map(c=>b.jsx("p",{className:"truncate font-semibold",children:bj(c)}))]})]})},$8=()=>{const e=Vk(),n=Sc(),i=Rc(fs.laptop),l=E.useMemo(()=>{if(!n)return;const d=n.find(h=>h.id===e);return d||n[0]},[e,n]),o=d=>Qh(d),s=d=>{d.button===1&&Qh(d.currentTarget.dataset.tabId)},c=d=>{const h=n.find(m=>m.id===d);Sl("New tab name",h==null?void 0:h.label).then(m=>{m&&Jv(d,m)})},f=E.useCallback(d=>{Cc(h=>h.map(m=>m.id!==l.id?m:{...m,options:d(m.options)}))},[l]);return n.length<1?b.jsx(FC,{to:"/"}):b.jsxs("div",{className:"h-screen max-h-screen bg-gray-50 flex flex-col",children:[i&&b.jsx(Mw,{id:"tab",render:V8,className:"z-10 shadow-md",offset:0,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),b.jsx("div",{className:wr.tabs,children:n==null?void 0:n.map(d=>b.jsxs("div",{className:ke(wr.tab,d.id===(l==null?void 0:l.id)&&wr.active),"data-tab-id":d.id,"data-tooltip-id":"tab","data-tooltip-content":d.label,onAuxClick:s,onContextMenu:h=>{h.preventDefault(),c(d.id)},children:[b.jsxs("button",{className:"cursor-pointer truncate w-full",onClick:()=>Cp(d.id),children:["📄 ",d.label]}),b.jsx("button",{className:wr.closeButton,onClick:()=>o(d.id),children:b.jsx(Fi,{width:20,height:20})}),d.id===(l==null?void 0:l.id)&&b.jsx("span",{className:wr.activeTab})]},d.id))}),l&&b.jsx(ww,{updater:f,options:l.options,name:l.label})]})},Y8=()=>{const e=Q5(),n=E.useCallback(i=>{Kp(l=>l?{...l,options:i(l.options)}:(Gn.error("Something went wrong."),l))},[]);return e?b.jsxs(nn,{isVisible:!0,onClose:np,children:[b.jsx(Zn,{onClick:np}),b.jsx(ww,{className:"border border-gray-200 bg-gray-50",name:e.label,options:e.options,updater:n})]}):null},G8="_root_1v8zm_2",K8="_down_1v8zm_2",X8="_chevron_1v8zm_2",Z8="_table-name-container_1v8zm_2",J8="_link_1v8zm_2",W8="_table-name_1v8zm_2",e9="_ul_1v8zm_2",t9="_column-type_1v8zm_2",Xr={root:G8,down:K8,chevron:X8,tableNameContainer:Z8,link:J8,tableName:W8,ul:e9,columnType:t9},n9=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function r9(e,n){if(n&&e.toLowerCase().includes(n))return"bg-yellow-200"}const i9=({insp:e,filter:n,expanded:i})=>{const l=E.useMemo(()=>i||n.length<1?e.columns:e.columns.filter(o=>o.name.toLowerCase().includes(n)),[e,n,i]);return b.jsx("ul",{className:Xr.ul,children:l.map(o=>b.jsxs(b.Fragment,{children:[b.jsxs("li",{children:[o.isPrimary?"🔐":"🏷️"," ",b.jsx("span",{className:r9(o.name,n),children:o.name})," ",b.jsxs("span",{className:Xr.columnType,children:["[",o.type,"]"]})]},o.name+o.type),o.ref&&b.jsxs("li",{className:"pl-4",children:["🔗 ",b.jsxs("span",{className:Xr.columnType,children:[o.ref.table,".",o.ref.field]})]},o.name+o.ref.field+o.ref.table)]}))},e.id)};function l9({id:e}){const{data:n}=xc(e),{data:i}=Xn(),{data:l}=Na(e),o=qi(),{pathname:s}=un(),c=q4(),f=Pv(),d=H4(),h=E.useMemo(()=>n!=null&&n.lastInspected?n9.format(new Date(n.lastInspected)):"--",[n]),[m,g]=E.useState({}),[x,v]=E.useState(""),w=x.toLowerCase(),T=E.useMemo(()=>{if(!w||!l)return l||[];const D=[];for(const L of l){if(L.tableName.toLowerCase().includes(w)){D.push(L);continue}L.columns.findIndex($=>$.name.toLowerCase().includes(w))>=0&&D.push(L)}return D},[w,l]),_=D=>{g(L=>({...L,[D]:!L[D]}))},A=D=>{Xo(D,{table:D,dataSourceId:e},!0),va(void 0),s!==Tt.workbench.path&&o(Tt.workbench.path),ut.event("On open table [Datasource modal]")},N=()=>{f.mutate(e),ut.event("On inspect [Datasource modal]")},R=async()=>{const D=await Sl("Enter name",n==null?void 0:n.name);D&&c.mutate({id:e,dataSource:{name:D}})},z=async()=>{await Fj("Are you sure you want to delete this data source?")&&(d.mutate(e),va(void 0),ut.event("On delete [Datasource modal]"))};return b.jsxs("div",{className:Xr.root,children:[b.jsxs("h3",{className:"page-head flex gap-2 items-center",children:[n&&b.jsx(tc,{size:32,type:n.dbType}),b.jsx("span",{className:"truncate",children:n==null?void 0:n.name})]}),b.jsx("p",{className:"mt-1 text-sm font-semibold",children:h}),os(i==null?void 0:i.teamRole,lr.ADMIN,lr.EDITOR)&&b.jsxs("div",{className:"mt-2 flex gap-2",children:[b.jsx("button",{disabled:f.isLoading,onClick:N,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),b.jsx("button",{disabled:f.isLoading,onClick:R,className:"button tertiary",children:"Rename"}),b.jsx("button",{disabled:f.isLoading,onClick:z,className:"button tertiary",children:"Delete"})]}),b.jsx("input",{className:"input w-full mb-2 mt-4 bg-gray-50",placeholder:"Search table/column",value:x,onChange:D=>v(D.target.value),autoFocus:!0}),b.jsx("div",{className:"overflow-y-auto",children:T==null?void 0:T.map(D=>b.jsxs("div",{children:[b.jsxs("div",{className:Xr.tableNameContainer,children:[b.jsx("button",{className:ke(Xr.chevron,m[D.id]&&Xr.down),onClick:()=>_(D.id),children:b.jsx(bw,{width:16,height:16})}),b.jsx("button",{className:ke(Xr.tableName,"flex-1"),onClick:()=>_(D.id),children:D.tableName}),b.jsx("button",{className:Xr.link,onClick:()=>A(D.tableName),children:"open"})]}),(m[D.id]||x.length>0)&&b.jsx(i9,{insp:D,filter:w,expanded:m[D.id]})]},D.id))})]})}const a9=()=>{const e=oj(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>va(void 0);return b.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),backdropClose:!0,children:[b.jsx(Zn,{onClick:l}),n&&b.jsx(l9,{id:n})]})},o9="_root_114y7_1",s9={root:o9};function u9(e,n=500){const[i,l]=E.useState(e);return E.useEffect(()=>{const o=setTimeout(()=>l(e),n);return()=>clearTimeout(o)},[e,n]),i}const c9="_search_esjns_2",f9="_entry_esjns_2",Bb={search:c9,entry:f9},d9={table:"📄",query:"📖"},h9=({onTable:e,onQuery:n,autoFocus:i})=>{const[l,o]=E.useState(""),[s,c]=E.useState(-1),f=u9(l),{data:d}=Xn(),{data:h}=L4(f,d==null?void 0:d.teamId),m=v=>{v.type==="table"?e(v.name,v.dataSourceId):v.type==="query"&&n(v.id,v.dataSourceId)},g=v=>{var w;h&&(v.key==="ArrowDown"?(v.preventDefault(),c(T=>(T+1)%h.length)):v.key==="ArrowUp"?(v.preventDefault(),c(T=>(T-1+h.length)%h.length)):v.key==="Enter"&&s>=0&&(w=h[s])!=null&&w.name&&(v.preventDefault(),m(h[s])))},x=v=>{const w=v.currentTarget.dataset.tableId,T=h==null?void 0:h.find(_=>_.id===w);T&&m(T)};return b.jsxs(b.Fragment,{children:[b.jsx("input",{className:Bb.search,placeholder:"Search table or saved query to start from",value:l,onChange:v=>o(v.target.value),onKeyDown:g,autoFocus:i}),pw(h==null?void 0:h.length,0)&&b.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:h.map((v,w)=>b.jsxs("button",{className:Bb.entry,"data-is-active":s===w,"data-table-id":v.id,onClick:x,children:[b.jsxs("p",{className:"font-semibold",children:[d9[v.type]," ",v.name]}),b.jsxs("p",{className:"text-xs text-blue-600",children:["📦 ",v.dataSourceName]})]},v.id))})]})},p9=()=>{const e=iT(),n=(o,s)=>{e==null||e.onConfirm("table",o,s)},i=(o,s)=>{e==null||e.onConfirm("query",o,s)},l=()=>{e==null||e.onCancel()};return b.jsxs(nn,{isVisible:!!e,onClose:l,children:[b.jsx(Zn,{onClick:l}),b.jsx("div",{className:s9.root,children:b.jsx(h9,{autoFocus:!0,onTable:n,onQuery:i})})]})},m9=()=>{const e=un();E.useEffect(()=>{ut.pageView()},[e.pathname])},qb=e=>{const[n]=e.split("-");return n.split(".").map(Number)},y9=(e,n)=>{const i=qb(e),l=qb(n);for(let o=0;o<3;o++){const s=i[o]||0,c=l[o]||0;if(s>c)return 1;if(s<c)return-1}return 0},g9=`### ⚠️ You are running an outdated local server version.
292
+
293
+ Please update your local server version to **0.0.57**
294
+
295
+ ### 🔧 Update Command
296
+
297
+ Update \`@dataramen/cli\` library:
298
+
299
+ \`\`\`bash
300
+ npm i -g @dataramen/cli
301
+ \`\`\`
302
+
303
+ After the update, re-run your local server:
304
+
305
+ \`\`\`bash
306
+ dataramen start
307
+ \`\`\`
308
+
309
+ Once done, click on the "Check again" button below or refresh the page.
310
+ `,b9=()=>{const{data:e,refetch:n}=Vp();return!(e!=null&&e.active)||y9(e.version,"0.0.57")===0?null:b.jsx(nn,{isVisible:!0,onClose:()=>null,children:b.jsxs("div",{children:[b.jsx(aw,{content:g9}),b.jsx("div",{className:"flex justify-end mt-2",children:b.jsx("button",{className:"button primary",onClick:()=>n(),children:"Check again"})})]})})};function v9(){return LD(),m9(),E.useEffect(()=>{!!qv()||bc.login()},[]),b.jsxs(b.Fragment,{children:[b.jsxs(PC,{children:[b.jsx(Th,{path:Tt.home.path,element:b.jsx(cj,{})}),b.jsx(Th,{path:Tt.workbench.path,element:b.jsx($8,{})})]}),b.jsx(vT,{target:Ph.settings.path,children:b.jsx(mj,{})}),b.jsx(Y8,{}),b.jsx(Oj,{}),b.jsx(qj,{}),b.jsx(Wj,{}),b.jsx(r5,{}),b.jsx(a9,{}),b.jsx(p9,{}),b.jsx(Gj,{}),b.jsx(Pj,{}),b.jsx(b9,{})]})}const x9="_desktop-layout_18mbf_2",w9="_mobile-layout_18mbf_2",S9="_nav_18mbf_2",C9="_main_18mbf_2",E9="_footer_18mbf_2",Sa={desktopLayout:x9,mobileLayout:w9,nav:S9,main:C9,footer:E9},k9="_container_o6r33_2",T9="_file_o6r33_2",A9="_menu_o6r33_2",pa={container:k9,file:T9,menu:A9},_9=({name:e,id:n,onRename:i,onDelete:l,onOpen:o})=>{const s=uw();return b.jsxs("button",{className:pa.file,onContextMenu:s.open,onClick:()=>o(n),children:[b.jsx(dw,{handler:s,children:b.jsxs("div",{className:"context-menu-container",children:[b.jsx("button",{onClick:()=>{s.close(),i(n)},className:"context-menu-item",children:"✏️ Rename"}),b.jsx("button",{onClick:()=>{s.close(),l(n)},className:"context-menu-item",children:"🗑️ Delete"})]})}),b.jsxs("span",{children:["📖 ",e]})]})},O9=({name:e,id:n,index:i})=>{const l=`📦 ${e}`,o=()=>{va(n),ut.event("On open datasource [Sidebar]")};return Cr(i.toString(),()=>{va(s=>{if(s!==n)return n}),ut.event("On open datasource [Hotkey]")},l),b.jsxs("button",{className:pa.menu,onClick:o,children:[b.jsx("span",{children:l}),b.jsx("span",{className:"hotkey",children:i})]})},R9=()=>{const e=Sc(x=>x.length>0),n=qi(),i=un(),l=Ep("Sidebar"),{data:o}=Xn(),{data:s}=D4(o==null?void 0:o.teamId),c=jD(),f=x=>{tx(x).then(v=>{Xo(v.name,ga(v.opts),!0),i.pathname!==Tt.workbench.path&&n(Tt.workbench.path)}),ut.event("On open query [Sidebar]")},d=async x=>{const v=s==null?void 0:s.find(T=>T.id===x),w=await Sl("New name?",v==null?void 0:v.name);w&&c.mutate({id:x,payload:{name:w}})},h=x=>{c.mutate({id:x,payload:{isTrash:!0}})},m=()=>{e?i.pathname!==Tt.workbench.path&&n(Tt.workbench.path):l(),ut.event("On open workbench [Sidebar]")};let g=1;return b.jsxs("div",{className:pa.container,children:[b.jsxs("div",{className:"mb-4",children:[b.jsxs("button",{onClick:()=>n(Tt.home.path),className:pa.menu,children:[b.jsx("span",{children:Tt.home.name}),b.jsx("span",{className:"hotkey",children:"H"})]}),b.jsxs("button",{disabled:!o,onClick:l,className:pa.menu,children:[b.jsx("span",{children:"🔎 Start new query"}),b.jsx("span",{className:"hotkey",children:"N"})]}),b.jsxs("button",{disabled:!o,onClick:m,className:pa.menu,children:[b.jsx("span",{children:"🛠️ Workbench"}),b.jsx("span",{className:"hotkey",children:"W"})]})]}),b.jsx("div",{className:"flex-1 overflow-y-auto",children:s==null?void 0:s.map(x=>{switch(x.type){case"query":return b.jsx(_9,{onDelete:h,onRename:d,onOpen:f,name:x.name,id:x.id},x.id);case"dataSource":return b.jsx(O9,{name:x.name,id:x.id,index:g++},x.id);default:return null}})})]})},N9=({resizeDirection:e,onSizeChange:n})=>{const i=E.useRef(null),l=E.useRef(null);return E.useEffect(()=>{var s;function o(c){const f=i.current.getBoundingClientRect(),d={x:c.pageX,y:c.pageY};function h(g){{let x;x=g.pageX-d.x,i.current.style.width=`${f.width+x}px`}n&&i.current&&n(i.current)}function m(){document.body.removeEventListener("mousemove",h),document.body.removeEventListener("mouseleave",h)}document.body.addEventListener("mousemove",h),document.body.addEventListener("mouseup",m),document.body.addEventListener("mouseleave",m)}(s=l==null?void 0:l.current)==null||s.addEventListener("mousedown",o),n&&i.current&&n(i.current)}),{elementRef:i,handleRef:l}},Lw=()=>{const{open:e}=kp(),{data:n}=Xn(),{elementRef:i,handleRef:l}=N9({resizeDirection:"horizontal-r"}),o=()=>{sw(!0),ut.event("Open contacts")},s=()=>{e(Ph.settings.path),ut.event("Open settings")};return b.jsxs("nav",{className:Sa.nav,ref:i,children:[b.jsx("div",{ref:l,className:"hr-slide"}),b.jsx(R9,{}),b.jsxs("div",{className:Sa.footer,children:[b.jsx("button",{onClick:o,children:"💬 Contacts"}),b.jsx("button",{onClick:s,disabled:!n,children:Ph.settings.name})]})]})},j9=({children:e})=>b.jsxs("div",{className:Sa.desktopLayout,children:[b.jsx(Mw,{id:"default",className:"z-100"}),b.jsx(Lw,{}),b.jsx("main",{className:Sa.main,children:e})]}),D9=({children:e})=>{const[n,i]=E.useState(!1),{pathname:l}=un(),o=()=>i(!1);return b.jsxs("div",{className:Sa.mobileLayout,children:[b.jsxs("div",{className:"border-b border-gray-200 px-2 py-1 flex justify-between",children:[b.jsx("button",{className:"px-2 py-1 font-semibold",onClick:()=>i(!n),children:"🍜 Menu"}),l===Tt.workbench.path&&b.jsx("button",{className:"px-2 py-1 font-semibold",onClick:Iu,children:"Query builder ⚙️"})]}),b.jsx(vw,{isVisible:n,onClose:o,backdropClose:!0,contentClassName:"flex",children:b.jsx(Lw,{})}),b.jsx("main",{className:Sa.main,children:e})]})},M9=({children:e})=>Rc(fs.laptop)?b.jsx(j9,{children:e}):b.jsx(D9,{children:e});Z2.createRoot(document.getElementById("root")).render(b.jsxs(nt.StrictMode,{children:[b.jsx(Ik,{}),b.jsx(GE,{client:At,children:b.jsx(hE,{children:b.jsx(M9,{children:b.jsx(v9,{})})})})]}));