@dataramen/cli 0.0.21 → 0.0.22

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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var xv;function gC(){if(xv)return Ao;xv=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 Ao.Fragment=n,Ao.jsx=i,Ao.jsxs=i,Ao}var Sv;function vC(){return Sv||(Sv=1,Nd.exports=gC()),Nd.exports}var v=vC(),jd={exports:{}},Ae={};/**
9
+ */var xv;function vC(){if(xv)return Ao;xv=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 Ao.Fragment=n,Ao.jsx=i,Ao.jsxs=i,Ao}var Sv;function bC(){return Sv||(Sv=1,Nd.exports=vC()),Nd.exports}var v=bC(),jd={exports:{}},Ae={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wv;function bC(){if(wv)return Ae;wv=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"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function _(C,I,oe){this.props=C,this.context=I,this.refs=k,this.updater=oe||b}_.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=k,this.updater=oe||b}var O=N.prototype=new A;O.constructor=N,S(O,_.prototype),O.isPureReactComponent=!0;var L=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function Y(C,I,oe,R,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 Y(C.type,I,void 0,void 0,void 0,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function z(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?z(""+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,R,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 y:return ce=C._init,se(ce(C._payload),I,oe,R,fe)}}if(ce)return fe=fe(C),ce=R===""?"."+te(C,0):R,L(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 st=R===""?".":R+":";if(L(C))for(var Oe=0;Oe<C.length;Oe++)R=C[Oe],Te=st+te(R,Oe),ce+=se(R,I,oe,Te,fe);else if(Oe=x(C),typeof Oe=="function")for(C=Oe.call(C),Oe=0;!(R=C.next()).done;)R=R.value,Te=st+te(R,Oe++),ce+=se(R,I,oe,Te,fe);else if(Te==="object"){if(typeof C.then=="function")return se(J(C),I,oe,R,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 B(C,I,oe){if(C==null)return C;var R=[],fe=0;return se(C,R,"","",function(Te){return I.call(oe,Te,fe++)}),R}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 Ae.Children={map:B,forEach:function(C,I,oe){B(C,function(){I.apply(this,arguments)},oe)},count:function(C){var I=0;return B(C,function(){I++}),I},toArray:function(C){return B(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}},Ae.Component=_,Ae.Fragment=i,Ae.Profiler=o,Ae.PureComponent=N,Ae.StrictMode=l,Ae.Suspense=h,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(C){return q.H.useMemoCache(C)}},Ae.cache=function(C){return function(){return C.apply(null,arguments)}},Ae.cloneElement=function(C,I,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var R=S({},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)!M.call(I,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&I.ref===void 0||(R[ce]=I[ce]);var ce=arguments.length-2;if(ce===1)R.children=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];R.children=st}return Y(C.type,fe,void 0,void 0,Te,R)},Ae.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},Ae.createElement=function(C,I,oe){var R,fe={},Te=null;if(I!=null)for(R in I.key!==void 0&&(Te=""+I.key),I)M.call(I,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(fe[R]=I[R]);var ce=arguments.length-2;if(ce===1)fe.children=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];fe.children=st}if(C&&C.defaultProps)for(R in ce=C.defaultProps,ce)fe[R]===void 0&&(fe[R]=ce[R]);return Y(C,Te,void 0,void 0,null,fe)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(C){return{$$typeof:f,render:C}},Ae.isValidElement=ie,Ae.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ae.memo=function(C,I){return{$$typeof:d,type:C,compare:I===void 0?null:I}},Ae.startTransition=function(C){var I=q.T,oe={};q.T=oe;try{var R=C(),fe=q.S;fe!==null&&fe(oe,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(pe,ne)}catch(Te){ne(Te)}finally{q.T=I}},Ae.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ae.use=function(C){return q.H.use(C)},Ae.useActionState=function(C,I,oe){return q.H.useActionState(C,I,oe)},Ae.useCallback=function(C,I){return q.H.useCallback(C,I)},Ae.useContext=function(C){return q.H.useContext(C)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(C,I){return q.H.useDeferredValue(C,I)},Ae.useEffect=function(C,I,oe){var R=q.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return R.useEffect(C,I)},Ae.useId=function(){return q.H.useId()},Ae.useImperativeHandle=function(C,I,oe){return q.H.useImperativeHandle(C,I,oe)},Ae.useInsertionEffect=function(C,I){return q.H.useInsertionEffect(C,I)},Ae.useLayoutEffect=function(C,I){return q.H.useLayoutEffect(C,I)},Ae.useMemo=function(C,I){return q.H.useMemo(C,I)},Ae.useOptimistic=function(C,I){return q.H.useOptimistic(C,I)},Ae.useReducer=function(C,I,oe){return q.H.useReducer(C,I,oe)},Ae.useRef=function(C){return q.H.useRef(C)},Ae.useState=function(C){return q.H.useState(C)},Ae.useSyncExternalStore=function(C,I,oe){return q.H.useSyncExternalStore(C,I,oe)},Ae.useTransition=function(){return q.H.useTransition()},Ae.version="19.1.0",Ae}var Cv;function Gh(){return Cv||(Cv=1,jd.exports=bC()),jd.exports}var E=Gh();const tt=ba(E);var Dd={exports:{}},_o={},Md={exports:{}},Ld={};/**
17
+ */var wv;function xC(){if(wv)return Ae;wv=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"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function _(C,I,oe){this.props=C,this.context=I,this.refs=k,this.updater=oe||b}_.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=k,this.updater=oe||b}var O=N.prototype=new A;O.constructor=N,S(O,_.prototype),O.isPureReactComponent=!0;var L=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function Y(C,I,oe,R,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 Y(C.type,I,void 0,void 0,void 0,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function z(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?z(""+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,R,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 y:return ce=C._init,se(ce(C._payload),I,oe,R,fe)}}if(ce)return fe=fe(C),ce=R===""?"."+te(C,0):R,L(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 st=R===""?".":R+":";if(L(C))for(var Oe=0;Oe<C.length;Oe++)R=C[Oe],Te=st+te(R,Oe),ce+=se(R,I,oe,Te,fe);else if(Oe=x(C),typeof Oe=="function")for(C=Oe.call(C),Oe=0;!(R=C.next()).done;)R=R.value,Te=st+te(R,Oe++),ce+=se(R,I,oe,Te,fe);else if(Te==="object"){if(typeof C.then=="function")return se(J(C),I,oe,R,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 B(C,I,oe){if(C==null)return C;var R=[],fe=0;return se(C,R,"","",function(Te){return I.call(oe,Te,fe++)}),R}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 Ae.Children={map:B,forEach:function(C,I,oe){B(C,function(){I.apply(this,arguments)},oe)},count:function(C){var I=0;return B(C,function(){I++}),I},toArray:function(C){return B(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}},Ae.Component=_,Ae.Fragment=i,Ae.Profiler=o,Ae.PureComponent=N,Ae.StrictMode=l,Ae.Suspense=h,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(C){return q.H.useMemoCache(C)}},Ae.cache=function(C){return function(){return C.apply(null,arguments)}},Ae.cloneElement=function(C,I,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var R=S({},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)!M.call(I,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&I.ref===void 0||(R[ce]=I[ce]);var ce=arguments.length-2;if(ce===1)R.children=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];R.children=st}return Y(C.type,fe,void 0,void 0,Te,R)},Ae.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},Ae.createElement=function(C,I,oe){var R,fe={},Te=null;if(I!=null)for(R in I.key!==void 0&&(Te=""+I.key),I)M.call(I,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(fe[R]=I[R]);var ce=arguments.length-2;if(ce===1)fe.children=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];fe.children=st}if(C&&C.defaultProps)for(R in ce=C.defaultProps,ce)fe[R]===void 0&&(fe[R]=ce[R]);return Y(C,Te,void 0,void 0,null,fe)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(C){return{$$typeof:f,render:C}},Ae.isValidElement=ie,Ae.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ae.memo=function(C,I){return{$$typeof:d,type:C,compare:I===void 0?null:I}},Ae.startTransition=function(C){var I=q.T,oe={};q.T=oe;try{var R=C(),fe=q.S;fe!==null&&fe(oe,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(pe,ne)}catch(Te){ne(Te)}finally{q.T=I}},Ae.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ae.use=function(C){return q.H.use(C)},Ae.useActionState=function(C,I,oe){return q.H.useActionState(C,I,oe)},Ae.useCallback=function(C,I){return q.H.useCallback(C,I)},Ae.useContext=function(C){return q.H.useContext(C)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(C,I){return q.H.useDeferredValue(C,I)},Ae.useEffect=function(C,I,oe){var R=q.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return R.useEffect(C,I)},Ae.useId=function(){return q.H.useId()},Ae.useImperativeHandle=function(C,I,oe){return q.H.useImperativeHandle(C,I,oe)},Ae.useInsertionEffect=function(C,I){return q.H.useInsertionEffect(C,I)},Ae.useLayoutEffect=function(C,I){return q.H.useLayoutEffect(C,I)},Ae.useMemo=function(C,I){return q.H.useMemo(C,I)},Ae.useOptimistic=function(C,I){return q.H.useOptimistic(C,I)},Ae.useReducer=function(C,I,oe){return q.H.useReducer(C,I,oe)},Ae.useRef=function(C){return q.H.useRef(C)},Ae.useState=function(C){return q.H.useState(C)},Ae.useSyncExternalStore=function(C,I,oe){return q.H.useSyncExternalStore(C,I,oe)},Ae.useTransition=function(){return q.H.useTransition()},Ae.version="19.1.0",Ae}var Cv;function Gh(){return Cv||(Cv=1,jd.exports=xC()),jd.exports}var E=Gh();const tt=ba(E);var Dd={exports:{}},_o={},Md={exports:{}},Ld={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Ev;function xC(){return Ev||(Ev=1,function(e){function n(B,X){var ne=B.length;B.push(X);e:for(;0<ne;){var pe=ne-1>>>1,C=B[pe];if(0<o(C,X))B[pe]=X,B[ne]=C,ne=pe;else break e}}function i(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var X=B[0],ne=B.pop();if(ne!==X){B[0]=ne;e:for(var pe=0,C=B.length,I=C>>>1;pe<I;){var oe=2*(pe+1)-1,R=B[oe],fe=oe+1,Te=B[fe];if(0>o(R,ne))fe<C&&0>o(Te,R)?(B[pe]=Te,B[fe]=ne,pe=fe):(B[pe]=R,B[oe]=ne,pe=oe);else if(fe<C&&0>o(Te,ne))B[pe]=Te,B[fe]=ne,pe=fe;else break e}}return X}function o(B,X){var ne=B.sortIndex-X.sortIndex;return ne!==0?ne:B.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 h=[],d=[],y=1,g=null,x=3,b=!1,S=!1,k=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function L(B){for(var X=i(d);X!==null;){if(X.callback===null)l(d);else if(X.startTime<=B)l(d),X.sortIndex=X.expirationTime,n(h,X);else break;X=i(d)}}function q(B){if(k=!1,L(B),!S)if(i(h)!==null)S=!0,M||(M=!0,te());else{var X=i(d);X!==null&&se(q,X.startTime-B)}}var M=!1,Y=-1,ee=5,ie=-1;function z(){return _?!0:!(e.unstable_now()-ie<ee)}function ae(){if(_=!1,M){var B=e.unstable_now();ie=B;var X=!0;try{e:{S=!1,k&&(k=!1,N(Y),Y=-1),b=!0;var ne=x;try{t:{for(L(B),g=i(h);g!==null&&!(g.expirationTime>B&&z());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,x=g.priorityLevel;var C=pe(g.expirationTime<=B);if(B=e.unstable_now(),typeof C=="function"){g.callback=C,L(B),X=!0;break t}g===i(h)&&l(h),L(B)}else l(h);g=i(h)}if(g!==null)X=!0;else{var I=i(d);I!==null&&se(q,I.startTime-B),X=!1}}break e}finally{g=null,x=ne,b=!1}X=void 0}}finally{X?te():M=!1}}}var te;if(typeof O=="function")te=function(){O(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(B,X){Y=A(function(){B(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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var ne=x;x=X;try{return B()}finally{x=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=x;x=B;try{return X()}finally{x=ne}},e.unstable_scheduleCallback=function(B,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,B){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,B={id:y++,callback:X,priorityLevel:B,startTime:ne,expirationTime:C,sortIndex:-1},ne>pe?(B.sortIndex=ne,n(d,B),i(h)===null&&B===i(d)&&(k?(N(Y),Y=-1):k=!0,se(q,ne-pe))):(B.sortIndex=C,n(h,B),S||b||(S=!0,M||(M=!0,te()))),B},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(B){var X=x;return function(){var ne=x;x=X;try{return B.apply(this,arguments)}finally{x=ne}}}}(Ld)),Ld}var Tv;function SC(){return Tv||(Tv=1,Md.exports=xC()),Md.exports}var zd={exports:{}},Jt={};/**
25
+ */var Ev;function SC(){return Ev||(Ev=1,function(e){function n(B,X){var ne=B.length;B.push(X);e:for(;0<ne;){var pe=ne-1>>>1,C=B[pe];if(0<o(C,X))B[pe]=X,B[ne]=C,ne=pe;else break e}}function i(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var X=B[0],ne=B.pop();if(ne!==X){B[0]=ne;e:for(var pe=0,C=B.length,I=C>>>1;pe<I;){var oe=2*(pe+1)-1,R=B[oe],fe=oe+1,Te=B[fe];if(0>o(R,ne))fe<C&&0>o(Te,R)?(B[pe]=Te,B[fe]=ne,pe=fe):(B[pe]=R,B[oe]=ne,pe=oe);else if(fe<C&&0>o(Te,ne))B[pe]=Te,B[fe]=ne,pe=fe;else break e}}return X}function o(B,X){var ne=B.sortIndex-X.sortIndex;return ne!==0?ne:B.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 h=[],d=[],y=1,g=null,x=3,b=!1,S=!1,k=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function L(B){for(var X=i(d);X!==null;){if(X.callback===null)l(d);else if(X.startTime<=B)l(d),X.sortIndex=X.expirationTime,n(h,X);else break;X=i(d)}}function q(B){if(k=!1,L(B),!S)if(i(h)!==null)S=!0,M||(M=!0,te());else{var X=i(d);X!==null&&se(q,X.startTime-B)}}var M=!1,Y=-1,ee=5,ie=-1;function z(){return _?!0:!(e.unstable_now()-ie<ee)}function ae(){if(_=!1,M){var B=e.unstable_now();ie=B;var X=!0;try{e:{S=!1,k&&(k=!1,N(Y),Y=-1),b=!0;var ne=x;try{t:{for(L(B),g=i(h);g!==null&&!(g.expirationTime>B&&z());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,x=g.priorityLevel;var C=pe(g.expirationTime<=B);if(B=e.unstable_now(),typeof C=="function"){g.callback=C,L(B),X=!0;break t}g===i(h)&&l(h),L(B)}else l(h);g=i(h)}if(g!==null)X=!0;else{var I=i(d);I!==null&&se(q,I.startTime-B),X=!1}}break e}finally{g=null,x=ne,b=!1}X=void 0}}finally{X?te():M=!1}}}var te;if(typeof O=="function")te=function(){O(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(B,X){Y=A(function(){B(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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var ne=x;x=X;try{return B()}finally{x=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=x;x=B;try{return X()}finally{x=ne}},e.unstable_scheduleCallback=function(B,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,B){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,B={id:y++,callback:X,priorityLevel:B,startTime:ne,expirationTime:C,sortIndex:-1},ne>pe?(B.sortIndex=ne,n(d,B),i(h)===null&&B===i(d)&&(k?(N(Y),Y=-1):k=!0,se(q,ne-pe))):(B.sortIndex=C,n(h,B),S||b||(S=!0,M||(M=!0,te()))),B},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(B){var X=x;return function(){var ne=x;x=X;try{return B.apply(this,arguments)}finally{x=ne}}}}(Ld)),Ld}var Tv;function wC(){return Tv||(Tv=1,Md.exports=SC()),Md.exports}var zd={exports:{}},Jt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var kv;function wC(){if(kv)return Jt;kv=1;var e=Gh();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" 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(h,d,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:d,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Jt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return s(h,d,null,y)},Jt.flushSync=function(h){var d=c.T,y=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=d,l.p=y,l.d.f()}},Jt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(h,d))},Jt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Jt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,g=f(y,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?l.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:b}):y==="script"&&l.d.X(h,{crossOrigin:g,integrity:x,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Jt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=f(d.as,d.crossOrigin);l.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&l.d.M(h)},Jt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,g=f(y,d.crossOrigin);l.d.L(h,y,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Jt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=f(d.as,d.crossOrigin);l.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else l.d.m(h)},Jt.requestFormReset=function(h){l.d.r(h)},Jt.unstable_batchedUpdates=function(h,d){return h(d)},Jt.useFormState=function(h,d,y){return c.H.useFormState(h,d,y)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.1.0",Jt}var Av;function vx(){if(Av)return zd.exports;Av=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(),zd.exports=wC(),zd.exports}/**
33
+ */var kv;function CC(){if(kv)return Jt;kv=1;var e=Gh();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" 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(h,d,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:d,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Jt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return s(h,d,null,y)},Jt.flushSync=function(h){var d=c.T,y=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=d,l.p=y,l.d.f()}},Jt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(h,d))},Jt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Jt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,g=f(y,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?l.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:b}):y==="script"&&l.d.X(h,{crossOrigin:g,integrity:x,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Jt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=f(d.as,d.crossOrigin);l.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&l.d.M(h)},Jt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,g=f(y,d.crossOrigin);l.d.L(h,y,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Jt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=f(d.as,d.crossOrigin);l.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else l.d.m(h)},Jt.requestFormReset=function(h){l.d.r(h)},Jt.unstable_batchedUpdates=function(h,d){return h(d)},Jt.useFormState=function(h,d,y){return c.H.useFormState(h,d,y)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.1.0",Jt}var Av;function vx(){if(Av)return zd.exports;Av=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(),zd.exports=CC(),zd.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,22 +38,22 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var _v;function CC(){if(_v)return _o;_v=1;var e=SC(),n=Gh(),i=vx();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 h(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 m=p.alternate;if(m===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===a)return f(p),t;if(m===u)return f(p),r;m=m.sibling}throw Error(l(188))}if(a.return!==u.return)a=p,u=m;else{for(var w=!1,T=p.child;T;){if(T===a){w=!0,a=p,u=m;break}if(T===u){w=!0,u=p,a=m;break}T=T.sibling}if(!w){for(T=m.child;T;){if(T===a){w=!0,a=m,u=p;break}if(T===u){w=!0,u=m,a=p;break}T=T.sibling}if(!w)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 d(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=d(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),z=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 S:return"Fragment";case _:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case M:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case b:return"Portal";case O:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case L:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y: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,B=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 R(t,r){C++,pe[C]=t.current,t.current=r}var fe=I(null),Te=I(null),ce=I(null),st=I(null);function Oe(t,r){switch(R(ce,r),R(Te,t),R(fe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Gg(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Gg(r),t=Kg(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(fe),R(fe,t)}function Ie(){oe(fe),oe(Te),oe(ce)}function Ft(t){t.memoizedState!==null&&R(st,t);var r=fe.current,a=Kg(r,t.type);r!==a&&(R(Te,t),R(fe,a))}function bt(t){Te.current===t&&(oe(fe),oe(Te)),st.current===t&&(oe(st),wo._currentValue=ne)}var un=Object.prototype.hasOwnProperty,Xn=e.unstable_scheduleCallback,cn=e.unstable_cancelCallback,ri=e.unstable_shouldYield,Dt=e.unstable_requestPaint,Mt=e.unstable_now,Zn=e.unstable_getCurrentPriorityLevel,xn=e.unstable_ImmediatePriority,Ge=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,Ar=e.unstable_LowPriority,or=e.unstable_IdlePriority,_r=e.log,ii=e.unstable_setDisableYieldValue,$=null,W=null;function me(t){if(typeof _r=="function"&&ii(t),W&&typeof W.setStrictMode=="function")try{W.setStrictMode($,t)}catch{}}var ye=Math.clz32?Math.clz32:Yt,Ue=Math.log,Qt=Math.LN2;function Yt(t){return t>>>=0,t===0?32:31-(Ue(t)/Qt|0)|0}var ht=256,pt=4194304;function Be(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 ut(t,r,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,m=t.suspendedLanes,w=t.pingedLanes;t=t.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?p=Be(u):(w&=T,w!==0?p=Be(w):a||(a=T&~t,a!==0&&(p=Be(a))))):(T=u&~m,T!==0?p=Be(T):w!==0?p=Be(w):a||(a=u&~t,a!==0&&(p=Be(a)))),p===0?0:r!==0&&r!==p&&(r&m)===0&&(m=p&-p,a=r&-r,m>=a||m===32&&(a&4194048)!==0)?r:p}function Lt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function zt(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 li(){var t=ht;return ht<<=1,(ht&4194048)===0&&(ht=256),t}function Or(){var t=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),t}function sr(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 Hi(t,r,a,u,p,m){var w=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 T=t.entanglements,j=t.expirationTimes,F=t.hiddenUpdates;for(a=w&~a;0<a;){var G=31-ye(a),Z=1<<G;T[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&&Fi(t,u,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(w&~r))}function Fi(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var u=31-ye(r);t.entangledLanes|=r,t.entanglements[u]=t.entanglements[u]|1073741824|a&4194090}function xt(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var u=31-ye(a),p=1<<u;p&r|t[u]&r&&(t[u]|=r),a&=~p}}function Gt(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 be(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function De(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:pv(t.type))}function ln(t,r){var a=X.p;try{return X.p=t,r()}finally{X.p=a}}var Kt=Math.random().toString(36).slice(2),le="__reactFiber$"+Kt,he="__reactProps$"+Kt,we="__reactContainer$"+Kt,ct="__reactEvents$"+Kt,Ut="__reactListeners$"+Kt,Ln="__reactHandles$"+Kt,Sn="__reactResources$"+Kt,St="__reactMarker$"+Kt;function Xt(t){delete t[le],delete t[he],delete t[ct],delete t[Ut],delete t[Ln]}function Ve(t){var r=t[le];if(r)return r;for(var a=t.parentNode;a;){if(r=a[we]||a[le]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=Wg(t);t!==null;){if(a=t[le])return a;t=Wg(t)}return r}t=a,a=t.parentNode}return null}function wn(t){if(t=t[le]||t[we]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Qi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function ai(t){var r=t[Sn];return r||(r=t[Sn]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function wt(t){t[St]=!0}var ja=new Set,Da={};function ur(t,r){Rr(t,r),Rr(t+"Capture",r)}function Rr(t,r){for(Da[t]=r,t=0;t<r.length;t++)ja.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={},Sl={};function Pi(t){return un.call(Sl,t)?!0:un.call(zn,t)?!1:$e.test(t)?Sl[t]=!0:(zn[t]=!0,!1)}function wl(t,r,a){if(Pi(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 oi(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 Nr(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 Ec,Fp;function Cl(t){if(Ec===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ec=r&&r[1]||"",Fp=-1<a.stack.indexOf(`
41
+ */var _v;function EC(){if(_v)return _o;_v=1;var e=wC(),n=Gh(),i=vx();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 h(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 m=p.alternate;if(m===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===a)return f(p),t;if(m===u)return f(p),r;m=m.sibling}throw Error(l(188))}if(a.return!==u.return)a=p,u=m;else{for(var w=!1,T=p.child;T;){if(T===a){w=!0,a=p,u=m;break}if(T===u){w=!0,u=p,a=m;break}T=T.sibling}if(!w){for(T=m.child;T;){if(T===a){w=!0,a=m,u=p;break}if(T===u){w=!0,u=m,a=p;break}T=T.sibling}if(!w)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 d(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=d(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),z=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 S:return"Fragment";case _:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case M:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case b:return"Portal";case O:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case L:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y: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,B=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 R(t,r){C++,pe[C]=t.current,t.current=r}var fe=I(null),Te=I(null),ce=I(null),st=I(null);function Oe(t,r){switch(R(ce,r),R(Te,t),R(fe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Gg(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Gg(r),t=Kg(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(fe),R(fe,t)}function Ie(){oe(fe),oe(Te),oe(ce)}function Ft(t){t.memoizedState!==null&&R(st,t);var r=fe.current,a=Kg(r,t.type);r!==a&&(R(Te,t),R(fe,a))}function bt(t){Te.current===t&&(oe(fe),oe(Te)),st.current===t&&(oe(st),wo._currentValue=ne)}var un=Object.prototype.hasOwnProperty,Xn=e.unstable_scheduleCallback,cn=e.unstable_cancelCallback,ri=e.unstable_shouldYield,Dt=e.unstable_requestPaint,Mt=e.unstable_now,Zn=e.unstable_getCurrentPriorityLevel,xn=e.unstable_ImmediatePriority,Ge=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,Ar=e.unstable_LowPriority,or=e.unstable_IdlePriority,_r=e.log,ii=e.unstable_setDisableYieldValue,$=null,W=null;function me(t){if(typeof _r=="function"&&ii(t),W&&typeof W.setStrictMode=="function")try{W.setStrictMode($,t)}catch{}}var ye=Math.clz32?Math.clz32:Yt,Ue=Math.log,Qt=Math.LN2;function Yt(t){return t>>>=0,t===0?32:31-(Ue(t)/Qt|0)|0}var ht=256,pt=4194304;function Be(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 ut(t,r,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,m=t.suspendedLanes,w=t.pingedLanes;t=t.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?p=Be(u):(w&=T,w!==0?p=Be(w):a||(a=T&~t,a!==0&&(p=Be(a))))):(T=u&~m,T!==0?p=Be(T):w!==0?p=Be(w):a||(a=u&~t,a!==0&&(p=Be(a)))),p===0?0:r!==0&&r!==p&&(r&m)===0&&(m=p&-p,a=r&-r,m>=a||m===32&&(a&4194048)!==0)?r:p}function Lt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function zt(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 li(){var t=ht;return ht<<=1,(ht&4194048)===0&&(ht=256),t}function Or(){var t=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),t}function sr(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 Hi(t,r,a,u,p,m){var w=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 T=t.entanglements,j=t.expirationTimes,F=t.hiddenUpdates;for(a=w&~a;0<a;){var G=31-ye(a),Z=1<<G;T[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&&Fi(t,u,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(w&~r))}function Fi(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var u=31-ye(r);t.entangledLanes|=r,t.entanglements[u]=t.entanglements[u]|1073741824|a&4194090}function xt(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var u=31-ye(a),p=1<<u;p&r|t[u]&r&&(t[u]|=r),a&=~p}}function Gt(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 be(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function De(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:pv(t.type))}function ln(t,r){var a=X.p;try{return X.p=t,r()}finally{X.p=a}}var Kt=Math.random().toString(36).slice(2),le="__reactFiber$"+Kt,he="__reactProps$"+Kt,we="__reactContainer$"+Kt,ct="__reactEvents$"+Kt,Ut="__reactListeners$"+Kt,Ln="__reactHandles$"+Kt,Sn="__reactResources$"+Kt,St="__reactMarker$"+Kt;function Xt(t){delete t[le],delete t[he],delete t[ct],delete t[Ut],delete t[Ln]}function Ve(t){var r=t[le];if(r)return r;for(var a=t.parentNode;a;){if(r=a[we]||a[le]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=Wg(t);t!==null;){if(a=t[le])return a;t=Wg(t)}return r}t=a,a=t.parentNode}return null}function wn(t){if(t=t[le]||t[we]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Qi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function ai(t){var r=t[Sn];return r||(r=t[Sn]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function wt(t){t[St]=!0}var ja=new Set,Da={};function ur(t,r){Rr(t,r),Rr(t+"Capture",r)}function Rr(t,r){for(Da[t]=r,t=0;t<r.length;t++)ja.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={},Sl={};function Pi(t){return un.call(Sl,t)?!0:un.call(zn,t)?!1:$e.test(t)?Sl[t]=!0:(zn[t]=!0,!1)}function wl(t,r,a){if(Pi(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 oi(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 Nr(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 Ec,Fp;function Cl(t){if(Ec===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ec=r&&r[1]||"",Fp=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+Ec+t+Fp}var Tc=!1;function kc(t,r){if(!t||Tc)return"";Tc=!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 m=u.DetermineComponentFrameRoot(),w=m[0],T=m[1];if(w&&T){var j=w.split(`
44
44
  `),F=T.split(`
45
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{Tc=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Cl(a):""}function fS(t){switch(t.tag){case 26:case 27:case 5:return Cl(t.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 15:return kc(t.type,!1);case 11:return kc(t.type.render,!1);case 1:return kc(t.type,!0);case 31:return Cl("Activity");default:return""}}function Qp(t){try{var r="";do r+=fS(t),t=t.return;while(t);return r}catch(a){return`
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{Tc=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Cl(a):""}function dS(t){switch(t.tag){case 26:case 27:case 5:return Cl(t.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 15:return kc(t.type,!1);case 11:return kc(t.type.render,!1);case 1:return kc(t.type,!0);case 31:return Cl("Activity");default:return""}}function Qp(t){try{var r="";do r+=dS(t),t=t.return;while(t);return r}catch(a){return`
47
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 Pp(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function dS(t){var r=Pp(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,m=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(w){u=""+w,m.call(this,w)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(w){u=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function cs(t){t._valueTracker||(t._valueTracker=dS(t))}function Ip(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return t&&(u=Pp(t)?t.checked?"true":"false":t.value),t=u,t!==a?(r.setValue(t),!0):!1}function fs(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 hS=/[\n"\\]/g;function Bn(t){return t.replace(hS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ac(t,r,a,u,p,m,w,T){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),r!=null?w==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Un(r)):t.value!==""+Un(r)&&(t.value=""+Un(r)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),r!=null?_c(t,w,Un(r)):a!=null?_c(t,w,Un(a)):u!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Un(T):t.removeAttribute("name")}function Vp(t,r,a,u,p,m,w,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;a=a!=null?""+Un(a):"",r=r!=null?""+Un(r):a,T||r===t.value||(t.value=r),t.defaultValue=r}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=T?t.checked:!!u,t.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function _c(t,r,a){r==="number"&&fs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function El(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 $p(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 Yp(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 Tl(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var pS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Gp(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||pS.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function Kp(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&&Gp(t,p,u)}else for(var m in r)r.hasOwnProperty(m)&&Gp(t,m,r[m])}function Oc(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 mS=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"]]),yS=/^[\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 ds(t){return yS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Rc=null;function Nc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var kl=null,Al=null;function Xp(t){var r=wn(t);if(r&&(t=r.stateNode)){var a=t[he]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ac(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));Ac(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&&Ip(u)}break e;case"textarea":$p(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&El(t,!!a.multiple,r,!1)}}}var jc=!1;function Zp(t,r,a){if(jc)return t(r,a);jc=!0;try{var u=t(r);return u}finally{if(jc=!1,(kl!==null||Al!==null)&&(Zs(),kl&&(r=kl,t=Al,Al=kl=null,Xp(r),t)))for(r=0;r<t.length;r++)Xp(t[r])}}function Ma(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 jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(jr)try{var La={};Object.defineProperty(La,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Dc=!1}var si=null,Mc=null,hs=null;function Jp(){if(hs)return hs;var t,r=Mc,a=r.length,u,p="value"in si?si.value:si.textContent,m=p.length;for(t=0;t<a&&r[t]===p[t];t++);var w=a-t;for(u=1;u<=w&&r[a-u]===p[m-u];u++);return hs=p.slice(t,1<u?1-u:void 0)}function ps(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 ms(){return!0}function Wp(){return!1}function fn(t){function r(a,u,p,m,w){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(a=t[T],this[T]=a?a(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ms:Wp,this.isPropagationStopped=Wp,this}return y(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=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),r}var Ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ys=fn(Ii),za=y({},Ii,{view:0,detail:0}),gS=fn(za),Lc,zc,Ua,gs=y({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==Ua&&(Ua&&t.type==="mousemove"?(Lc=t.screenX-Ua.screenX,zc=t.screenY-Ua.screenY):zc=Lc=0,Ua=t),Lc)},movementY:function(t){return"movementY"in t?t.movementY:zc}}),em=fn(gs),vS=y({},gs,{dataTransfer:0}),bS=fn(vS),xS=y({},za,{relatedTarget:0}),Uc=fn(xS),SS=y({},Ii,{animationName:0,elapsedTime:0,pseudoElement:0}),wS=fn(SS),CS=y({},Ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ES=fn(CS),TS=y({},Ii,{data:0}),tm=fn(TS),kS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AS={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"},_S={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=_S[t])?!!r[t]:!1}function Bc(){return OS}var RS=y({},za,{key:function(t){if(t.key){var r=kS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=ps(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?AS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(t){return t.type==="keypress"?ps(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ps(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),NS=fn(RS),jS=y({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=fn(jS),DS=y({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),MS=fn(DS),LS=y({},Ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),zS=fn(LS),US=y({},gs,{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}),BS=fn(US),qS=y({},Ii,{newState:0,oldState:0}),HS=fn(qS),FS=[9,13,27,32],qc=jr&&"CompositionEvent"in window,Ba=null;jr&&"documentMode"in document&&(Ba=document.documentMode);var QS=jr&&"TextEvent"in window&&!Ba,rm=jr&&(!qc||Ba&&8<Ba&&11>=Ba),im=" ",lm=!1;function am(t,r){switch(t){case"keyup":return FS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _l=!1;function PS(t,r){switch(t){case"compositionend":return om(r);case"keypress":return r.which!==32?null:(lm=!0,im);case"textInput":return t=r.data,t===im&&lm?null:t;default:return null}}function IS(t,r){if(_l)return t==="compositionend"||!qc&&am(t,r)?(t=Jp(),hs=Mc=si=null,_l=!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 rm&&r.locale!=="ko"?null:r.data;default:return null}}var VS={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 sm(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!VS[t.type]:r==="textarea"}function um(t,r,a,u){kl?Al?Al.push(u):Al=[u]:kl=u,r=ru(r,"onChange"),0<r.length&&(a=new ys("onChange","change",null,a,u),t.push({event:a,listeners:r}))}var qa=null,Ha=null;function $S(t){Pg(t,0)}function vs(t){var r=Qi(t);if(Ip(r))return t}function cm(t,r){if(t==="change")return r}var fm=!1;if(jr){var Hc;if(jr){var Fc="oninput"in document;if(!Fc){var dm=document.createElement("div");dm.setAttribute("oninput","return;"),Fc=typeof dm.oninput=="function"}Hc=Fc}else Hc=!1;fm=Hc&&(!document.documentMode||9<document.documentMode)}function hm(){qa&&(qa.detachEvent("onpropertychange",pm),Ha=qa=null)}function pm(t){if(t.propertyName==="value"&&vs(Ha)){var r=[];um(r,Ha,t,Nc(t)),Zp($S,r)}}function YS(t,r,a){t==="focusin"?(hm(),qa=r,Ha=a,qa.attachEvent("onpropertychange",pm)):t==="focusout"&&hm()}function GS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vs(Ha)}function KS(t,r){if(t==="click")return vs(r)}function XS(t,r){if(t==="input"||t==="change")return vs(r)}function ZS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Cn=typeof Object.is=="function"?Object.is:ZS;function Fa(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(!un.call(r,p)||!Cn(t[p],r[p]))return!1}return!0}function mm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ym(t,r){var a=mm(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=mm(a)}}function gm(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?gm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function vm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=fs(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=fs(t.document)}return r}function Qc(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 JS=jr&&"documentMode"in document&&11>=document.documentMode,Ol=null,Pc=null,Qa=null,Ic=!1;function bm(t,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||Ol==null||Ol!==fs(u)||(u=Ol,"selectionStart"in u&&Qc(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}),Qa&&Fa(Qa,u)||(Qa=u,u=ru(Pc,"onSelect"),0<u.length&&(r=new ys("onSelect","select",null,r,a),t.push({event:r,listeners:u}),r.target=Ol)))}function Vi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var Rl={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Vc={},xm={};jr&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function $i(t){if(Vc[t])return Vc[t];if(!Rl[t])return t;var r=Rl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in xm)return Vc[t]=r[a];return t}var Sm=$i("animationend"),wm=$i("animationiteration"),Cm=$i("animationstart"),WS=$i("transitionrun"),ew=$i("transitionstart"),tw=$i("transitioncancel"),Em=$i("transitionend"),Tm=new Map,$c="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(" ");$c.push("scrollEnd");function Jn(t,r){Tm.set(t,r),ur(r,[t])}var km=new WeakMap;function qn(t,r){if(typeof t=="object"&&t!==null){var a=km.get(t);return a!==void 0?a:(r={value:t,source:r,stack:Qp(r)},km.set(t,r),r)}return{value:t,source:r,stack:Qp(r)}}var Hn=[],Nl=0,Yc=0;function bs(){for(var t=Nl,r=Yc=Nl=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 m=Hn[r];if(Hn[r++]=null,u!==null&&p!==null){var w=u.pending;w===null?p.next=p:(p.next=w.next,w.next=p),u.pending=p}m!==0&&Am(a,p,m)}}function xs(t,r,a,u){Hn[Nl++]=t,Hn[Nl++]=r,Hn[Nl++]=a,Hn[Nl++]=u,Yc|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Gc(t,r,a,u){return xs(t,r,a,u),Ss(t)}function jl(t,r){return xs(t,null,null,r),Ss(t)}function Am(t,r,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,m=t.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&r!==null&&(p=31-ye(a),t=m.hiddenUpdates,u=t[p],u===null?t[p]=[r]:u.push(r),r.lane=a|536870912),m):null}function Ss(t){if(50<po)throw po=0,td=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Dl={};function nw(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 nw(t,r,a,u)}function Kc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Dr(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 _m(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 ws(t,r,a,u,p,m){var w=0;if(u=t,typeof t=="function")Kc(t)&&(w=1);else if(typeof t=="string")w=iC(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=m,t;case S:return Yi(a.children,p,m,r);case k:w=8,p|=24;break;case _:return t=En(12,a,r,p|2),t.elementType=_,t.lanes=m,t;case q:return t=En(13,a,r,p),t.elementType=q,t.lanes=m,t;case M:return t=En(19,a,r,p),t.elementType=M,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case O:w=10;break e;case N:w=9;break e;case L:w=11;break e;case Y:w=14;break e;case ee:w=16,u=null;break e}w=29,a=Error(l(130,t===null?"null":typeof t,"")),u=null}return r=En(w,a,r,p),r.elementType=t,r.type=u,r.lanes=m,r}function Yi(t,r,a,u){return t=En(7,t,u,r),t.lanes=a,t}function Xc(t,r,a){return t=En(6,t,null,r),t.lanes=a,t}function Zc(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 Ml=[],Ll=0,Cs=null,Es=0,Fn=[],Qn=0,Gi=null,Mr=1,Lr="";function Ki(t,r){Ml[Ll++]=Es,Ml[Ll++]=Cs,Cs=t,Es=r}function Om(t,r,a){Fn[Qn++]=Mr,Fn[Qn++]=Lr,Fn[Qn++]=Gi,Gi=t;var u=Mr;t=Lr;var p=32-ye(u)-1;u&=~(1<<p),a+=1;var m=32-ye(r)+p;if(30<m){var w=p-p%5;m=(u&(1<<w)-1).toString(32),u>>=w,p-=w,Mr=1<<32-ye(r)+p|a<<p|u,Lr=m+t}else Mr=1<<m|a<<p|u,Lr=t}function Jc(t){t.return!==null&&(Ki(t,1),Om(t,1,0))}function Wc(t){for(;t===Cs;)Cs=Ml[--Ll],Ml[Ll]=null,Es=Ml[--Ll],Ml[Ll]=null;for(;t===Gi;)Gi=Fn[--Qn],Fn[Qn]=null,Lr=Fn[--Qn],Fn[Qn]=null,Mr=Fn[--Qn],Fn[Qn]=null}var an=null,mt=null,Ye=!1,Xi=null,cr=!1,ef=Error(l(519));function Zi(t){var r=Error(l(418,""));throw Va(qn(r,t)),ef}function Rm(t){var r=t.stateNode,a=t.type,u=t.memoizedProps;switch(r[le]=t,r[he]=u,a){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(a=0;a<yo.length;a++)Le(yo[a],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),Vp(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),cs(r);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),Yp(r,u.value,u.defaultValue,u.children),cs(r)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||Yg(r.textContent,a)?(u.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),u.onScroll!=null&&Le("scroll",r),u.onScrollEnd!=null&&Le("scrollend",r),u.onClick!=null&&(r.onclick=iu),r=!0):r=!1,r||Zi(t)}function Nm(t){for(an=t.return;an;)switch(an.tag){case 5:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:an=an.return}}function Pa(t){if(t!==an)return!1;if(!Ye)return Nm(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")||gd(t.type,t.memoizedProps)),a=!a),a&&mt&&Zi(t),Nm(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){mt=er(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}mt=null}}else r===27?(r=mt,Ei(t.type)?(t=Sd,Sd=null,mt=t):mt=r):mt=an?er(t.stateNode.nextSibling):null;return!0}function Ia(){mt=an=null,Ye=!1}function jm(){var t=Xi;return t!==null&&(pn===null?pn=t:pn.push.apply(pn,t),Xi=null),t}function Va(t){Xi===null?Xi=[t]:Xi.push(t)}var tf=I(null),Ji=null,zr=null;function ui(t,r,a){R(tf,r._currentValue),r._currentValue=a}function Ur(t){t._currentValue=tf.current,oe(tf)}function nf(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 rf(t,r,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var w=p.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=p;for(var j=0;j<r.length;j++)if(T.context===r[j]){m.lanes|=a,T=m.alternate,T!==null&&(T.lanes|=a),nf(m.return,a,t),u||(w=null);break e}m=T.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(l(341));w.lanes|=a,m=w.alternate,m!==null&&(m.lanes|=a),nf(w,a,t),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===t){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function $a(t,r,a,u){t=null;for(var p=r,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(l(387));if(w=w.memoizedProps,w!==null){var T=p.type;Cn(p.pendingProps.value,w.value)||(t!==null?t.push(T):t=[T])}}else if(p===st.current){if(w=p.alternate,w===null)throw Error(l(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(wo):t=[wo])}p=p.return}t!==null&&rf(r,t,a,u),r.flags|=262144}function Ts(t){for(t=t.firstContext;t!==null;){if(!Cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wi(t){Ji=t,zr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Dm(Ji,t)}function ks(t,r){return Ji===null&&Wi(t),Dm(t,r)}function Dm(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},zr===null){if(t===null)throw Error(l(308));zr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else zr=zr.next=r;return a}var rw=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()})}},iw=e.unstable_scheduleCallback,lw=e.unstable_NormalPriority,Nt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lf(){return{controller:new rw,data:new Map,refCount:0}}function Ya(t){t.refCount--,t.refCount===0&&iw(lw,function(){t.controller.abort()})}var Ga=null,af=0,zl=0,Ul=null;function aw(t,r){if(Ga===null){var a=Ga=[];af=0,zl=sd(),Ul={status:"pending",value:void 0,then:function(u){a.push(u)}}}return af++,r.then(Mm,Mm),r}function Mm(){if(--af===0&&Ga!==null){Ul!==null&&(Ul.status="fulfilled");var t=Ga;Ga=null,zl=0,Ul=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function ow(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 Lm=B.S;B.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&aw(t,r),Lm!==null&&Lm(t,r)};var el=I(null);function of(){var t=el.current;return t!==null?t:rt.pooledCache}function As(t,r){r===null?R(el,el.current):R(el,r.pool)}function zm(){var t=of();return t===null?null:{parent:Nt._currentValue,pool:t}}var Ka=Error(l(460)),Um=Error(l(474)),_s=Error(l(542)),sf={then:function(){}};function Bm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Os(){}function qm(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Os,Os),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Fm(t),t;default:if(typeof r.status=="string")r.then(Os,Os);else{if(t=rt,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,Fm(t),t}throw Xa=r,Ka}}var Xa=null;function Hm(){if(Xa===null)throw Error(l(459));var t=Xa;return Xa=null,t}function Fm(t){if(t===Ka||t===_s)throw Error(l(483))}var ci=!1;function uf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(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 fi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function di(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=Ss(t),Am(t,null,a),r}return xs(t,u,r,a),Ss(t)}function Za(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,xt(t,a)}}function ff(t,r){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=w:m=m.next=w,a=a.next}while(a!==null);m===null?p=m=r:m=m.next=r}else p=m=r;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,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 df=!1;function Ja(){if(df){var t=Ul;if(t!==null)throw t}}function Wa(t,r,a,u){df=!1;var p=t.updateQueue;ci=!1;var m=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var j=T,F=j.next;j.next=null,w===null?m=F:w.next=F,w=j;var G=t.alternate;G!==null&&(G=G.updateQueue,T=G.lastBaseUpdate,T!==w&&(T===null?G.firstBaseUpdate=F:T.next=F,G.lastBaseUpdate=j))}if(m!==null){var Z=p.baseState;w=0,G=F=j=null,T=m;do{var Q=T.lane&-536870913,P=Q!==T.lane;if(P?(qe&Q)===Q:(u&Q)===Q){Q!==0&&Q===zl&&(df=!0),G!==null&&(G=G.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ee=t,Se=T;Q=r;var We=a;switch(Se.tag){case 1:if(Ee=Se.payload,typeof Ee=="function"){Z=Ee.call(We,Z,Q);break e}Z=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Se.payload,Q=typeof Ee=="function"?Ee.call(We,Z,Q):Ee,Q==null)break e;Z=y({},Z,Q);break e;case 2:ci=!0}}Q=T.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:T.tag,payload:T.payload,callback:T.callback,next:null},G===null?(F=G=P,j=Z):G=G.next=P,w|=Q;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;P=T,T=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,m===null&&(p.shared.lanes=0),xi|=w,t.lanes=w,t.memoizedState=Z}}function Qm(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function Pm(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Qm(a[t],r)}var Bl=I(null),Rs=I(0);function Im(t,r){t=Ir,R(Rs,t),R(Bl,r),Ir=t|r.baseLanes}function hf(){R(Rs,Ir),R(Bl,Bl.current)}function pf(){Ir=Rs.current,oe(Bl),oe(Rs)}var hi=0,Re=null,Ze=null,Tt=null,Ns=!1,ql=!1,tl=!1,js=0,eo=0,Hl=null,sw=0;function Ct(){throw Error(l(321))}function mf(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 yf(t,r,a,u,p,m){return hi=m,Re=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,B.H=t===null||t.memoizedState===null?Ay:_y,tl=!1,m=a(u,p),tl=!1,ql&&(m=$m(r,a,u,p)),Vm(t),m}function Vm(t){B.H=Bs;var r=Ze!==null&&Ze.next!==null;if(hi=0,Tt=Ze=Re=null,Ns=!1,eo=0,Hl=null,r)throw Error(l(300));t===null||Bt||(t=t.dependencies,t!==null&&Ts(t)&&(Bt=!0))}function $m(t,r,a,u){Re=t;var p=0;do{if(ql&&(Hl=null),eo=0,ql=!1,25<=p)throw Error(l(301));if(p+=1,Tt=Ze=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=mw,m=r(a,u)}while(ql);return m}function uw(){var t=B.H,r=t.useState()[0];return r=typeof r.then=="function"?to(r):r,t=t.useState()[0],(Ze!==null?Ze.memoizedState:null)!==t&&(Re.flags|=1024),r}function gf(){var t=js!==0;return js=0,t}function vf(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function bf(t){if(Ns){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ns=!1}hi=0,Tt=Ze=Re=null,ql=!1,eo=js=0,Hl=null}function dn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Re.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function kt(){if(Ze===null){var t=Re.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var r=Tt===null?Re.memoizedState:Tt.next;if(r!==null)Tt=r,Ze=t;else{if(t===null)throw Re.alternate===null?Error(l(467)):Error(l(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Tt===null?Re.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(t){var r=eo;return eo+=1,Hl===null&&(Hl=[]),t=qm(Hl,t,r),r=Re,(Tt===null?r.memoizedState:Tt.next)===null&&(r=r.alternate,B.H=r===null||r.memoizedState===null?Ay:_y),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return to(t);if(t.$$typeof===O)return Zt(t)}throw Error(l(438,String(t)))}function Sf(t){var r=null,a=Re.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Re.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=xf(),Re.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]=z;return r.index++,a}function Br(t,r){return typeof r=="function"?r(t):r}function Ms(t){var r=kt();return wf(r,Ze,t)}function wf(t,r,a){var u=t.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=a;var p=t.baseQueue,m=u.pending;if(m!==null){if(p!==null){var w=p.next;p.next=m.next,m.next=w}r.baseQueue=p=m,u.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{r=p.next;var T=w=null,j=null,F=r,G=!1;do{var Z=F.lane&-536870913;if(Z!==F.lane?(qe&Z)===Z:(hi&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===zl&&(G=!0);else if((hi&Q)===Q){F=F.next,Q===zl&&(G=!0);continue}else Z={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(T=j=Z,w=m):j=j.next=Z,Re.lanes|=Q,xi|=Q;Z=F.action,tl&&a(m,Z),m=F.hasEagerState?F.eagerState:a(m,Z)}else Q={lane:Z,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(T=j=Q,w=m):j=j.next=Q,Re.lanes|=Z,xi|=Z;F=F.next}while(F!==null&&F!==r);if(j===null?w=m:j.next=T,!Cn(m,t.memoizedState)&&(Bt=!0,G&&(a=Ul,a!==null)))throw a;t.memoizedState=m,t.baseState=w,t.baseQueue=j,u.lastRenderedState=m}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Cf(t){var r=kt(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,m=r.memoizedState;if(p!==null){a.pending=null;var w=p=p.next;do m=t(m,w.action),w=w.next;while(w!==p);Cn(m,r.memoizedState)||(Bt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),a.lastRenderedState=m}return[m,u]}function Ym(t,r,a){var u=Re,p=kt(),m=Ye;if(m){if(a===void 0)throw Error(l(407));a=a()}else a=r();var w=!Cn((Ze||p).memoizedState,a);w&&(p.memoizedState=a,Bt=!0),p=p.queue;var T=Xm.bind(null,u,p,t);if(no(2048,8,T,[t]),p.getSnapshot!==r||w||Tt!==null&&Tt.memoizedState.tag&1){if(u.flags|=2048,Fl(9,Ls(),Km.bind(null,u,p,a,r),null),rt===null)throw Error(l(349));m||(hi&124)!==0||Gm(u,r,a)}return a}function Gm(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Re.updateQueue,r===null?(r=xf(),Re.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function Km(t,r,a,u){r.value=a,r.getSnapshot=u,Zm(r)&&Jm(t)}function Xm(t,r,a){return a(function(){Zm(r)&&Jm(t)})}function Zm(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Cn(t,a)}catch{return!0}}function Jm(t){var r=jl(t,2);r!==null&&On(r,t,2)}function Ef(t){var r=dn();if(typeof t=="function"){var a=t;if(t=a(),tl){me(!0);try{a()}finally{me(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:t},r}function Wm(t,r,a,u){return t.baseState=a,wf(t,Ze,typeof u=="function"?u:Br)}function cw(t,r,a,u,p){if(Us(t))throw Error(l(485));if(t=r.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){m.listeners.push(w)}};B.T!==null?a(!0):m.isTransition=!1,u(m),a=r.pending,a===null?(m.next=r.pending=m,ey(r,m)):(m.next=a.next,r.pending=a.next=m)}}function ey(t,r){var a=r.action,u=r.payload,p=t.state;if(r.isTransition){var m=B.T,w={};B.T=w;try{var T=a(p,u),j=B.S;j!==null&&j(w,T),ty(t,r,T)}catch(F){Tf(t,r,F)}finally{B.T=m}}else try{m=a(p,u),ty(t,r,m)}catch(F){Tf(t,r,F)}}function ty(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){ny(t,r,u)},function(u){return Tf(t,r,u)}):ny(t,r,a)}function ny(t,r,a){r.status="fulfilled",r.value=a,ry(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,ey(t,a)))}function Tf(t,r,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,ry(r),r=r.next;while(r!==u)}t.action=null}function ry(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function iy(t,r){return r}function ly(t,r){if(Ye){var a=rt.formState;if(a!==null){e:{var u=Re;if(Ye){if(mt){t:{for(var p=mt,m=cr;p.nodeType!==8;){if(!m){p=null;break t}if(p=er(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){mt=er(p.nextSibling),u=p.data==="F!";break e}}Zi(u)}u=!1}u&&(r=a[0])}}return a=dn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iy,lastRenderedState:r},a.queue=u,a=Ey.bind(null,Re,u),u.dispatch=a,u=Ef(!1),m=Rf.bind(null,Re,!1,u.queue),u=dn(),p={state:r,dispatch:null,action:t,pending:null},u.queue=p,a=cw.bind(null,Re,p,m,a),p.dispatch=a,u.memoizedState=t,[r,a,!1]}function ay(t){var r=kt();return oy(r,Ze,t)}function oy(t,r,a){if(r=wf(t,r,iy)[0],t=Ms(Br)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=to(r)}catch(w){throw w===Ka?_s:w}else u=r;r=kt();var p=r.queue,m=p.dispatch;return a!==r.memoizedState&&(Re.flags|=2048,Fl(9,Ls(),fw.bind(null,p,a),null)),[u,m,t]}function fw(t,r){t.action=r}function sy(t){var r=kt(),a=Ze;if(a!==null)return oy(r,a,t);kt(),r=r.memoizedState,a=kt();var u=a.queue.dispatch;return a.memoizedState=t,[r,u,!1]}function Fl(t,r,a,u){return t={tag:t,create:a,deps:u,inst:r,next:null},r=Re.updateQueue,r===null&&(r=xf(),Re.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 Ls(){return{destroy:void 0,resource:void 0}}function uy(){return kt().memoizedState}function zs(t,r,a,u){var p=dn();u=u===void 0?null:u,Re.flags|=t,p.memoizedState=Fl(1|r,Ls(),a,u)}function no(t,r,a,u){var p=kt();u=u===void 0?null:u;var m=p.memoizedState.inst;Ze!==null&&u!==null&&mf(u,Ze.memoizedState.deps)?p.memoizedState=Fl(r,m,a,u):(Re.flags|=t,p.memoizedState=Fl(1|r,m,a,u))}function cy(t,r){zs(8390656,8,t,r)}function fy(t,r){no(2048,8,t,r)}function dy(t,r){return no(4,2,t,r)}function hy(t,r){return no(4,4,t,r)}function py(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 my(t,r,a){a=a!=null?a.concat([t]):null,no(4,4,py.bind(null,r,t),a)}function kf(){}function yy(t,r){var a=kt();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&mf(r,u[1])?u[0]:(a.memoizedState=[t,r],t)}function gy(t,r){var a=kt();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&mf(r,u[1]))return u[0];if(u=t(),tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u}function Af(t,r,a){return a===void 0||(hi&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=xg(),Re.lanes|=t,xi|=t,a)}function vy(t,r,a,u){return Cn(a,r)?a:Bl.current!==null?(t=Af(t,a,u),Cn(t,r)||(Bt=!0),t):(hi&42)===0?(Bt=!0,t.memoizedState=a):(t=xg(),Re.lanes|=t,xi|=t,r)}function by(t,r,a,u,p){var m=X.p;X.p=m!==0&&8>m?m:8;var w=B.T,T={};B.T=T,Rf(t,!1,r,a);try{var j=p(),F=B.S;if(F!==null&&F(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=ow(j,u);ro(t,r,G,_n(t))}else ro(t,r,u,_n(t))}catch(Z){ro(t,r,{then:function(){},status:"rejected",reason:Z},_n())}finally{X.p=m,B.T=w}}function dw(){}function _f(t,r,a,u){if(t.tag!==5)throw Error(l(476));var p=xy(t).queue;by(t,p,r,ne,a===null?dw:function(){return Sy(t),a(u)})}function xy(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:Br,lastRenderedState:ne},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Sy(t){var r=xy(t).next.queue;ro(t,r,{},_n())}function Of(){return Zt(wo)}function wy(){return kt().memoizedState}function Cy(){return kt().memoizedState}function hw(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=_n();t=fi(a);var u=di(r,t,a);u!==null&&(On(u,r,a),Za(u,r,a)),r={cache:lf()},t.payload=r;return}r=r.return}}function pw(t,r,a){var u=_n();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Us(t)?Ty(r,a):(a=Gc(t,r,a,u),a!==null&&(On(a,t,u),ky(a,r,u)))}function Ey(t,r,a){var u=_n();ro(t,r,a,u)}function ro(t,r,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Us(t))Ty(r,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var w=r.lastRenderedState,T=m(w,a);if(p.hasEagerState=!0,p.eagerState=T,Cn(T,w))return xs(t,r,p,0),rt===null&&bs(),!1}catch{}finally{}if(a=Gc(t,r,p,u),a!==null)return On(a,t,u),ky(a,r,u),!0}return!1}function Rf(t,r,a,u){if(u={lane:2,revertLane:sd(),action:u,hasEagerState:!1,eagerState:null,next:null},Us(t)){if(r)throw Error(l(479))}else r=Gc(t,a,u,2),r!==null&&On(r,t,2)}function Us(t){var r=t.alternate;return t===Re||r!==null&&r===Re}function Ty(t,r){ql=Ns=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function ky(t,r,a){if((a&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,xt(t,a)}}var Bs={readContext:Zt,use:Ds,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},Ay={readContext:Zt,use:Ds,useCallback:function(t,r){return dn().memoizedState=[t,r===void 0?null:r],t},useContext:Zt,useEffect:cy,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,zs(4194308,4,py.bind(null,r,t),a)},useLayoutEffect:function(t,r){return zs(4194308,4,t,r)},useInsertionEffect:function(t,r){zs(4,2,t,r)},useMemo:function(t,r){var a=dn();r=r===void 0?null:r;var u=t();if(tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u},useReducer:function(t,r,a){var u=dn();if(a!==void 0){var p=a(r);if(tl){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=pw.bind(null,Re,t),[u.memoizedState,t]},useRef:function(t){var r=dn();return t={current:t},r.memoizedState=t},useState:function(t){t=Ef(t);var r=t.queue,a=Ey.bind(null,Re,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:kf,useDeferredValue:function(t,r){var a=dn();return Af(a,t,r)},useTransition:function(){var t=Ef(!1);return t=by.bind(null,Re,t.queue,!0,!1),dn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var u=Re,p=dn();if(Ye){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),rt===null)throw Error(l(349));(qe&124)!==0||Gm(u,r,a)}p.memoizedState=a;var m={value:a,getSnapshot:r};return p.queue=m,cy(Xm.bind(null,u,m,t),[t]),u.flags|=2048,Fl(9,Ls(),Km.bind(null,u,m,a,r),null),a},useId:function(){var t=dn(),r=rt.identifierPrefix;if(Ye){var a=Lr,u=Mr;a=(u&~(1<<32-ye(u)-1)).toString(32)+a,r="«"+r+"R"+a,a=js++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=sw++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Of,useFormState:ly,useActionState:ly,useOptimistic:function(t){var r=dn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Rf.bind(null,Re,!0,a),a.dispatch=r,[t,r]},useMemoCache:Sf,useCacheRefresh:function(){return dn().memoizedState=hw.bind(null,Re)}},_y={readContext:Zt,use:Ds,useCallback:yy,useContext:Zt,useEffect:fy,useImperativeHandle:my,useInsertionEffect:dy,useLayoutEffect:hy,useMemo:gy,useReducer:Ms,useRef:uy,useState:function(){return Ms(Br)},useDebugValue:kf,useDeferredValue:function(t,r){var a=kt();return vy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Ms(Br)[0],r=kt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Ym,useId:wy,useHostTransitionStatus:Of,useFormState:ay,useActionState:ay,useOptimistic:function(t,r){var a=kt();return Wm(a,Ze,t,r)},useMemoCache:Sf,useCacheRefresh:Cy},mw={readContext:Zt,use:Ds,useCallback:yy,useContext:Zt,useEffect:fy,useImperativeHandle:my,useInsertionEffect:dy,useLayoutEffect:hy,useMemo:gy,useReducer:Cf,useRef:uy,useState:function(){return Cf(Br)},useDebugValue:kf,useDeferredValue:function(t,r){var a=kt();return Ze===null?Af(a,t,r):vy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Cf(Br)[0],r=kt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Ym,useId:wy,useHostTransitionStatus:Of,useFormState:sy,useActionState:sy,useOptimistic:function(t,r){var a=kt();return Ze!==null?Wm(a,Ze,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Sf,useCacheRefresh:Cy},Ql=null,io=0;function qs(t){var r=io;return io+=1,Ql===null&&(Ql=[]),qm(Ql,t,r)}function lo(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Hs(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 Oy(t){var r=t._init;return r(t._payload)}function Ry(t){function r(U,D){if(t){var H=U.deletions;H===null?(U.deletions=[D],U.flags|=16):H.push(D)}}function a(U,D){if(!t)return null;for(;D!==null;)r(U,D),D=D.sibling;return null}function u(U){for(var D=new Map;U!==null;)U.key!==null?D.set(U.key,U):D.set(U.index,U),U=U.sibling;return D}function p(U,D){return U=Dr(U,D),U.index=0,U.sibling=null,U}function m(U,D,H){return U.index=H,t?(H=U.alternate,H!==null?(H=H.index,H<D?(U.flags|=67108866,D):H):(U.flags|=67108866,D)):(U.flags|=1048576,D)}function w(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function T(U,D,H,K){return D===null||D.tag!==6?(D=Xc(H,U.mode,K),D.return=U,D):(D=p(D,H),D.return=U,D)}function j(U,D,H,K){var de=H.type;return de===S?G(U,D,H.props.children,K,H.key):D!==null&&(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Oy(de)===D.type)?(D=p(D,H.props),lo(D,H),D.return=U,D):(D=ws(H.type,H.key,H.props,null,U.mode,K),lo(D,H),D.return=U,D)}function F(U,D,H,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=Zc(H,U.mode,K),D.return=U,D):(D=p(D,H.children||[]),D.return=U,D)}function G(U,D,H,K,de){return D===null||D.tag!==7?(D=Yi(H,U.mode,K,de),D.return=U,D):(D=p(D,H),D.return=U,D)}function Z(U,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Xc(""+D,U.mode,H),D.return=U,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return H=ws(D.type,D.key,D.props,null,U.mode,H),lo(H,D),H.return=U,H;case b:return D=Zc(D,U.mode,H),D.return=U,D;case ee:var K=D._init;return D=K(D._payload),Z(U,D,H)}if(se(D)||te(D))return D=Yi(D,U.mode,H,null),D.return=U,D;if(typeof D.then=="function")return Z(U,qs(D),H);if(D.$$typeof===O)return Z(U,ks(U,D),H);Hs(U,D)}return null}function Q(U,D,H,K){var de=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return de!==null?null:T(U,D,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===de?j(U,D,H,K):null;case b:return H.key===de?F(U,D,H,K):null;case ee:return de=H._init,H=de(H._payload),Q(U,D,H,K)}if(se(H)||te(H))return de!==null?null:G(U,D,H,K,null);if(typeof H.then=="function")return Q(U,D,qs(H),K);if(H.$$typeof===O)return Q(U,D,ks(U,H),K);Hs(U,H)}return null}function P(U,D,H,K,de){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return U=U.get(H)||null,T(D,U,""+K,de);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return U=U.get(K.key===null?H:K.key)||null,j(D,U,K,de);case b:return U=U.get(K.key===null?H:K.key)||null,F(D,U,K,de);case ee:var Ne=K._init;return K=Ne(K._payload),P(U,D,H,K,de)}if(se(K)||te(K))return U=U.get(H)||null,G(D,U,K,de,null);if(typeof K.then=="function")return P(U,D,H,qs(K),de);if(K.$$typeof===O)return P(U,D,H,ks(D,K),de);Hs(D,K)}return null}function Ee(U,D,H,K){for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null;ge!==null&&Ce<H.length;Ce++){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var Pe=Q(U,ge,H[Ce],K);if(Pe===null){ge===null&&(ge=Ht);break}t&&ge&&Pe.alternate===null&&r(U,ge),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe,ge=Ht}if(Ce===H.length)return a(U,ge),Ye&&Ki(U,Ce),de;if(ge===null){for(;Ce<H.length;Ce++)ge=Z(U,H[Ce],K),ge!==null&&(D=m(ge,D,Ce),Ne===null?de=ge:Ne.sibling=ge,Ne=ge);return Ye&&Ki(U,Ce),de}for(ge=u(ge);Ce<H.length;Ce++)Ht=P(ge,U,Ce,H[Ce],K),Ht!==null&&(t&&Ht.alternate!==null&&ge.delete(Ht.key===null?Ce:Ht.key),D=m(Ht,D,Ce),Ne===null?de=Ht:Ne.sibling=Ht,Ne=Ht);return t&&ge.forEach(function(Oi){return r(U,Oi)}),Ye&&Ki(U,Ce),de}function Se(U,D,H,K){if(H==null)throw Error(l(151));for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null,Pe=H.next();ge!==null&&!Pe.done;Ce++,Pe=H.next()){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var Oi=Q(U,ge,Pe.value,K);if(Oi===null){ge===null&&(ge=Ht);break}t&&ge&&Oi.alternate===null&&r(U,ge),D=m(Oi,D,Ce),Ne===null?de=Oi:Ne.sibling=Oi,Ne=Oi,ge=Ht}if(Pe.done)return a(U,ge),Ye&&Ki(U,Ce),de;if(ge===null){for(;!Pe.done;Ce++,Pe=H.next())Pe=Z(U,Pe.value,K),Pe!==null&&(D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return Ye&&Ki(U,Ce),de}for(ge=u(ge);!Pe.done;Ce++,Pe=H.next())Pe=P(ge,U,Ce,Pe.value,K),Pe!==null&&(t&&Pe.alternate!==null&&ge.delete(Pe.key===null?Ce:Pe.key),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return t&&ge.forEach(function(yC){return r(U,yC)}),Ye&&Ki(U,Ce),de}function We(U,D,H,K){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var de=H.key;D!==null;){if(D.key===de){if(de=H.type,de===S){if(D.tag===7){a(U,D.sibling),K=p(D,H.props.children),K.return=U,U=K;break e}}else if(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Oy(de)===D.type){a(U,D.sibling),K=p(D,H.props),lo(K,H),K.return=U,U=K;break e}a(U,D);break}else r(U,D);D=D.sibling}H.type===S?(K=Yi(H.props.children,U.mode,K,H.key),K.return=U,U=K):(K=ws(H.type,H.key,H.props,null,U.mode,K),lo(K,H),K.return=U,U=K)}return w(U);case b:e:{for(de=H.key;D!==null;){if(D.key===de)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){a(U,D.sibling),K=p(D,H.children||[]),K.return=U,U=K;break e}else{a(U,D);break}else r(U,D);D=D.sibling}K=Zc(H,U.mode,K),K.return=U,U=K}return w(U);case ee:return de=H._init,H=de(H._payload),We(U,D,H,K)}if(se(H))return Ee(U,D,H,K);if(te(H)){if(de=te(H),typeof de!="function")throw Error(l(150));return H=de.call(H),Se(U,D,H,K)}if(typeof H.then=="function")return We(U,D,qs(H),K);if(H.$$typeof===O)return We(U,D,ks(U,H),K);Hs(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(a(U,D.sibling),K=p(D,H),K.return=U,U=K):(a(U,D),K=Xc(H,U.mode,K),K.return=U,U=K),w(U)):a(U,D)}return function(U,D,H,K){try{io=0;var de=We(U,D,H,K);return Ql=null,de}catch(ge){if(ge===Ka||ge===_s)throw ge;var Ne=En(29,ge,null,U.mode);return Ne.lanes=K,Ne.return=U,Ne}finally{}}}var Pl=Ry(!0),Ny=Ry(!1),Pn=I(null),fr=null;function pi(t){var r=t.alternate;R(jt,jt.current&1),R(Pn,t),fr===null&&(r===null||Bl.current!==null||r.memoizedState!==null)&&(fr=t)}function jy(t){if(t.tag===22){if(R(jt,jt.current),R(Pn,t),fr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(fr=t)}}else mi()}function mi(){R(jt,jt.current),R(Pn,Pn.current)}function qr(t){oe(Pn),fr===t&&(fr=null),oe(jt)}var jt=I(0);function Fs(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==="$?"||xd(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 Nf(t,r,a,u){r=t.memoizedState,a=a(u,r),a=a==null?r:y({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var jf={enqueueSetState:function(t,r,a){t=t._reactInternals;var u=_n(),p=fi(u);p.payload=r,a!=null&&(p.callback=a),r=di(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var u=_n(),p=fi(u);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=di(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=_n(),u=fi(a);u.tag=2,r!=null&&(u.callback=r),r=di(t,u,a),r!==null&&(On(r,t,a),Za(r,t,a))}};function Dy(t,r,a,u,p,m,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,m,w):r.prototype&&r.prototype.isPureReactComponent?!Fa(a,u)||!Fa(p,m):!0}function My(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&&jf.enqueueReplaceState(r,r.state,null)}function nl(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=y({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}var Qs=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 Ly(t){Qs(t)}function zy(t){console.error(t)}function Uy(t){Qs(t)}function Ps(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function By(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 Df(t,r,a){return a=fi(a),a.tag=3,a.payload={element:null},a.callback=function(){Ps(t,r)},a}function qy(t){return t=fi(t),t.tag=3,t}function Hy(t,r,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var m=u.value;t.payload=function(){return p(m)},t.callback=function(){By(r,a,u)}}var w=a.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){By(r,a,u),typeof p!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function yw(t,r,a,u,p){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&$a(r,a,p,!0),a=Pn.current,a!==null){switch(a.tag){case 13:return fr===null?rd():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===sf?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),ld(t,u,p)),!1;case 22:return a.flags|=65536,u===sf?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)),ld(t,u,p)),!1}throw Error(l(435,a.tag))}return ld(t,u,p),rd(),!1}if(Ye)return r=Pn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,u!==ef&&(t=Error(l(422),{cause:u}),Va(qn(t,a)))):(u!==ef&&(r=Error(l(423),{cause:u}),Va(qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=qn(u,a),p=Df(t.stateNode,u,p),ff(t,p),yt!==4&&(yt=2)),!1;var m=Error(l(520),{cause:u});if(m=qn(m,a),ho===null?ho=[m]:ho.push(m),yt!==4&&(yt=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=Df(a.stateNode,u,t),ff(a,t),!1;case 1:if(r=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Si===null||!Si.has(m))))return a.flags|=65536,p&=-p,a.lanes|=p,p=qy(p),Hy(p,t,a,u),ff(a,p),!1}a=a.return}while(a!==null);return!1}var Fy=Error(l(461)),Bt=!1;function Pt(t,r,a,u){r.child=t===null?Ny(r,null,a,u):Pl(r,t.child,a,u)}function Qy(t,r,a,u,p){a=a.render;var m=r.ref;if("ref"in u){var w={};for(var T in u)T!=="ref"&&(w[T]=u[T])}else w=u;return Wi(r),u=yf(t,r,a,w,m,p),T=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&T&&Jc(r),r.flags|=1,Pt(t,r,u,p),r.child)}function Py(t,r,a,u,p){if(t===null){var m=a.type;return typeof m=="function"&&!Kc(m)&&m.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=m,Iy(t,r,m,u,p)):(t=ws(a.type,null,u,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!Ff(t,p)){var w=m.memoizedProps;if(a=a.compare,a=a!==null?a:Fa,a(w,u)&&t.ref===r.ref)return Hr(t,r,p)}return r.flags|=1,t=Dr(m,u),t.ref=r.ref,t.return=r,r.child=t}function Iy(t,r,a,u,p){if(t!==null){var m=t.memoizedProps;if(Fa(m,u)&&t.ref===r.ref)if(Bt=!1,r.pendingProps=u=m,Ff(t,p))(t.flags&131072)!==0&&(Bt=!0);else return r.lanes=t.lanes,Hr(t,r,p)}return Mf(t,r,a,u,p)}function Vy(t,r,a){var u=r.pendingProps,p=u.children,m=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=m!==null?m.baseLanes|a:a,t!==null){for(p=r.child=t.child,m=0;p!==null;)m=m|p.lanes|p.childLanes,p=p.sibling;r.childLanes=m&~u}else r.childLanes=0,r.child=null;return $y(t,r,u,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&As(r,m!==null?m.cachePool:null),m!==null?Im(r,m):hf(),jy(r);else return r.lanes=r.childLanes=536870912,$y(t,r,m!==null?m.baseLanes|a:a,a)}else m!==null?(As(r,m.cachePool),Im(r,m),mi(),r.memoizedState=null):(t!==null&&As(r,null),hf(),mi());return Pt(t,r,p,a),r.child}function $y(t,r,a,u){var p=of();return p=p===null?null:{parent:Nt._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},t!==null&&As(r,null),hf(),jy(r),t!==null&&$a(t,r,u,!0),null}function Is(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 Mf(t,r,a,u,p){return Wi(r),a=yf(t,r,a,u,void 0,p),u=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,p),r.child)}function Yy(t,r,a,u,p,m){return Wi(r),r.updateQueue=null,a=$m(r,u,a,p),Vm(t),u=gf(),t!==null&&!Bt?(vf(t,r,m),Hr(t,r,m)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,m),r.child)}function Gy(t,r,a,u,p){if(Wi(r),r.stateNode===null){var m=Dl,w=a.contextType;typeof w=="object"&&w!==null&&(m=Zt(w)),m=new a(u,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=jf,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=u,m.state=r.memoizedState,m.refs={},uf(r),w=a.contextType,m.context=typeof w=="object"&&w!==null?Zt(w):Dl,m.state=r.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Nf(r,a,w,u),m.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&jf.enqueueReplaceState(m,m.state,null),Wa(r,u,m,p),Ja(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(t===null){m=r.stateNode;var T=r.memoizedProps,j=nl(a,T);m.props=j;var F=m.context,G=a.contextType;w=Dl,typeof G=="object"&&G!==null&&(w=Zt(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=r.pendingProps!==T,G||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||F!==w)&&My(r,m,u,w),ci=!1;var Q=r.memoizedState;m.state=Q,Wa(r,u,m,p),Ja(),F=r.memoizedState,T||Q!==F||ci?(typeof Z=="function"&&(Nf(r,a,Z,u),F=r.memoizedState),(j=ci||Dy(r,a,j,u,Q,F,w))?(G||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=F),m.props=u,m.state=F,m.context=w,u=j):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{m=r.stateNode,cf(t,r),w=r.memoizedProps,G=nl(a,w),m.props=G,Z=r.pendingProps,Q=m.context,F=a.contextType,j=Dl,typeof F=="object"&&F!==null&&(j=Zt(F)),T=a.getDerivedStateFromProps,(F=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==Z||Q!==j)&&My(r,m,u,j),ci=!1,Q=r.memoizedState,m.state=Q,Wa(r,u,m,p),Ja();var P=r.memoizedState;w!==Z||Q!==P||ci||t!==null&&t.dependencies!==null&&Ts(t.dependencies)?(typeof T=="function"&&(Nf(r,a,T,u),P=r.memoizedState),(G=ci||Dy(r,a,G,u,Q,P,j)||t!==null&&t.dependencies!==null&&Ts(t.dependencies))?(F||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,P,j)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=P),m.props=u,m.state=P,m.context=j,u=G):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),u=!1)}return m=u,Is(t,r),u=(r.flags&128)!==0,m||u?(m=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&u?(r.child=Pl(r,t.child,null,p),r.child=Pl(r,null,a,p)):Pt(t,r,a,p),r.memoizedState=m.state,t=r.child):t=Hr(t,r,p),t}function Ky(t,r,a,u){return Ia(),r.flags|=256,Pt(t,r,a,u),r.child}var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zf(t){return{baseLanes:t,cachePool:zm()}}function Uf(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=In),t}function Xy(t,r,a){var u=r.pendingProps,p=!1,m=(r.flags&128)!==0,w;if((w=m)||(w=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),w&&(p=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ye){if(p?pi(r):mi(),Ye){var T=mt,j;if(j=T){e:{for(j=T,T=cr;j.nodeType!==8;){if(!T){T=null;break e}if(j=er(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(r.memoizedState={dehydrated:T,treeContext:Gi!==null?{id:Mr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},j=En(18,null,null,0),j.stateNode=T,j.return=r,r.child=j,an=r,mt=null,j=!0):j=!1}j||Zi(r)}if(T=r.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return xd(T)?r.lanes=32:r.lanes=536870912,null;qr(r)}return T=u.children,u=u.fallback,p?(mi(),p=r.mode,T=Vs({mode:"hidden",children:T},p),u=Yi(u,p,a,null),T.return=r,u.return=r,T.sibling=u,r.child=T,p=r.child,p.memoizedState=zf(a),p.childLanes=Uf(t,w,a),r.memoizedState=Lf,u):(pi(r),Bf(r,T))}if(j=t.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)r.flags&256?(pi(r),r.flags&=-257,r=qf(t,r,a)):r.memoizedState!==null?(mi(),r.child=t.child,r.flags|=128,r=null):(mi(),p=u.fallback,T=r.mode,u=Vs({mode:"visible",children:u.children},T),p=Yi(p,T,a,null),p.flags|=2,u.return=r,p.return=r,u.sibling=p,r.child=u,Pl(r,t.child,null,a),u=r.child,u.memoizedState=zf(a),u.childLanes=Uf(t,w,a),r.memoizedState=Lf,r=p);else if(pi(r),xd(T)){if(w=T.nextSibling&&T.nextSibling.dataset,w)var F=w.dgst;w=F,u=Error(l(419)),u.stack="",u.digest=w,Va({value:u,source:null,stack:null}),r=qf(t,r,a)}else if(Bt||$a(t,r,a,!1),w=(a&t.childLanes)!==0,Bt||w){if(w=rt,w!==null&&(u=a&-a,u=(u&42)!==0?1:Gt(u),u=(u&(w.suspendedLanes|a))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,jl(t,u),On(w,t,u),Fy;T.data==="$?"||rd(),r=qf(t,r,a)}else T.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=j.treeContext,mt=er(T.nextSibling),an=r,Ye=!0,Xi=null,cr=!1,t!==null&&(Fn[Qn++]=Mr,Fn[Qn++]=Lr,Fn[Qn++]=Gi,Mr=t.id,Lr=t.overflow,Gi=r),r=Bf(r,u.children),r.flags|=4096);return r}return p?(mi(),p=u.fallback,T=r.mode,j=t.child,F=j.sibling,u=Dr(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,F!==null?p=Dr(F,p):(p=Yi(p,T,a,null),p.flags|=2),p.return=r,u.return=r,u.sibling=p,r.child=u,u=p,p=r.child,T=t.child.memoizedState,T===null?T=zf(a):(j=T.cachePool,j!==null?(F=Nt._currentValue,j=j.parent!==F?{parent:F,pool:F}:j):j=zm(),T={baseLanes:T.baseLanes|a,cachePool:j}),p.memoizedState=T,p.childLanes=Uf(t,w,a),r.memoizedState=Lf,u):(pi(r),a=t.child,t=a.sibling,a=Dr(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,t!==null&&(w=r.deletions,w===null?(r.deletions=[t],r.flags|=16):w.push(t)),r.child=a,r.memoizedState=null,a)}function Bf(t,r){return r=Vs({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Vs(t,r){return t=En(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function qf(t,r,a){return Pl(r,t.child,null,a),t=Bf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Zy(t,r,a){t.lanes|=r;var u=t.alternate;u!==null&&(u.lanes|=r),nf(t.return,r,a)}function Hf(t,r,a,u,p){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=a,m.tailMode=p)}function Jy(t,r,a){var u=r.pendingProps,p=u.revealOrder,m=u.tail;if(Pt(t,r,u.children,a),u=jt.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&&Zy(t,a,r);else if(t.tag===19)Zy(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(R(jt,u),p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&Fs(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),Hf(r,!1,p,a,m);break;case"backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Fs(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}Hf(r,!0,a,null,m);break;case"together":Hf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Hr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),xi|=r.lanes,(a&r.childLanes)===0)if(t!==null){if($a(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=Dr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Dr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function Ff(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ts(t)))}function gw(t,r,a){switch(r.tag){case 3:Oe(r,r.stateNode.containerInfo),ui(r,Nt,t.memoizedState.cache),Ia();break;case 27:case 5:Ft(r);break;case 4:Oe(r,r.stateNode.containerInfo);break;case 10:ui(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(pi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Xy(t,r,a):(pi(r),t=Hr(t,r,a),t!==null?t.sibling:null);pi(r);break;case 19:var p=(t.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||($a(t,r,a,!1),u=(a&r.childLanes)!==0),p){if(u)return Jy(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),R(jt,jt.current),u)break;return null;case 22:case 23:return r.lanes=0,Vy(t,r,a);case 24:ui(r,Nt,t.memoizedState.cache)}return Hr(t,r,a)}function Wy(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)Bt=!0;else{if(!Ff(t,a)&&(r.flags&128)===0)return Bt=!1,gw(t,r,a);Bt=(t.flags&131072)!==0}else Bt=!1,Ye&&(r.flags&1048576)!==0&&Om(r,Es,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")Kc(u)?(t=nl(u,t),r.tag=1,r=Gy(null,r,u,t,a)):(r.tag=0,r=Mf(null,r,u,t,a));else{if(u!=null){if(p=u.$$typeof,p===L){r.tag=11,r=Qy(null,r,u,t,a);break e}else if(p===Y){r.tag=14,r=Py(null,r,u,t,a);break e}}throw r=J(u)||u,Error(l(306,r,""))}}return r;case 0:return Mf(t,r,r.type,r.pendingProps,a);case 1:return u=r.type,p=nl(u,r.pendingProps),Gy(t,r,u,p,a);case 3:e:{if(Oe(r,r.stateNode.containerInfo),t===null)throw Error(l(387));u=r.pendingProps;var m=r.memoizedState;p=m.element,cf(t,r),Wa(r,u,null,a);var w=r.memoizedState;if(u=w.cache,ui(r,Nt,u),u!==m.cache&&rf(r,[Nt],a,!0),Ja(),u=w.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Ky(t,r,u,a);break e}else if(u!==p){p=qn(Error(l(424)),r),Va(p),r=Ky(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(mt=er(t.firstChild),an=r,Ye=!0,Xi=null,cr=!0,a=Ny(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ia(),u===p){r=Hr(t,r,a);break e}Pt(t,r,u,a)}r=r.child}return r;case 26:return Is(t,r),t===null?(a=rv(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ye||(a=r.type,t=r.pendingProps,u=lu(ce.current).createElement(a),u[le]=r,u[he]=t,Vt(u,a,t),wt(u),r.stateNode=u):r.memoizedState=rv(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ft(r),t===null&&Ye&&(u=r.stateNode=ev(r.type,r.pendingProps,ce.current),an=r,cr=!0,p=mt,Ei(r.type)?(Sd=p,mt=er(u.firstChild)):mt=p),Pt(t,r,r.pendingProps.children,a),Is(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ye&&((p=u=mt)&&(u=Vw(u,r.type,r.pendingProps,cr),u!==null?(r.stateNode=u,an=r,mt=er(u.firstChild),cr=!1,p=!0):p=!1),p||Zi(r)),Ft(r),p=r.type,m=r.pendingProps,w=t!==null?t.memoizedProps:null,u=m.children,gd(p,m)?u=null:w!==null&&gd(p,w)&&(r.flags|=32),r.memoizedState!==null&&(p=yf(t,r,uw,null,null,a),wo._currentValue=p),Is(t,r),Pt(t,r,u,a),r.child;case 6:return t===null&&Ye&&((t=a=mt)&&(a=$w(a,r.pendingProps,cr),a!==null?(r.stateNode=a,an=r,mt=null,t=!0):t=!1),t||Zi(r)),null;case 13:return Xy(t,r,a);case 4:return Oe(r,r.stateNode.containerInfo),u=r.pendingProps,t===null?r.child=Pl(r,null,u,a):Pt(t,r,u,a),r.child;case 11:return Qy(t,r,r.type,r.pendingProps,a);case 7:return Pt(t,r,r.pendingProps,a),r.child;case 8:return Pt(t,r,r.pendingProps.children,a),r.child;case 12:return Pt(t,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,ui(r,r.type,u.value),Pt(t,r,u.children,a),r.child;case 9:return p=r.type._context,u=r.pendingProps.children,Wi(r),p=Zt(p),u=u(p),r.flags|=1,Pt(t,r,u,a),r.child;case 14:return Py(t,r,r.type,r.pendingProps,a);case 15:return Iy(t,r,r.type,r.pendingProps,a);case 19:return Jy(t,r,a);case 31:return u=r.pendingProps,a=r.mode,u={mode:u.mode,children:u.children},t===null?(a=Vs(u,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=Dr(t.child,u),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return Vy(t,r,a);case 24:return Wi(r),u=Zt(Nt),t===null?(p=of(),p===null&&(p=rt,m=lf(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=a),p=m),r.memoizedState={parent:u,cache:p},uf(r),ui(r,Nt,p)):((t.lanes&a)!==0&&(cf(t,r),Wa(r,null,null,a),Ja()),p=t.memoizedState,m=r.memoizedState,p.parent!==u?(p={parent:u,cache:u},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),ui(r,Nt,u)):(u=m.cache,ui(r,Nt,u),u!==p.cache&&rf(r,[Nt],a,!0))),Pt(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Fr(t){t.flags|=4}function eg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sv(r)){if(r=Pn.current,r!==null&&((qe&4194048)===qe?fr!==null:(qe&62914560)!==qe&&(qe&536870912)===0||r!==fr))throw Xa=sf,Um;t.flags|=8192}}function $s(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Or():536870912,t.lanes|=r,Yl|=r)}function ao(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 ft(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 vw(t,r,a){var u=r.pendingProps;switch(Wc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(r),null;case 1:return ft(r),null;case 3:return a=r.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Ur(Nt),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Pa(r)?Fr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,jm())),ft(r),null;case 26:return a=r.memoizedState,t===null?(Fr(r),a!==null?(ft(r),eg(r,a)):(ft(r),r.flags&=-16777217)):a?a!==t.memoizedState?(Fr(r),ft(r),eg(r,a)):(ft(r),r.flags&=-16777217):(t.memoizedProps!==u&&Fr(r),ft(r),r.flags&=-16777217),null;case 27:bt(r),a=ce.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}t=fe.current,Pa(r)?Rm(r):(t=ev(p,u,a),r.stateNode=t,Fr(r))}return ft(r),null;case 5:if(bt(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}if(t=fe.current,Pa(r))Rm(r);else{switch(p=lu(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(Vt(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&&Fr(r)}}return ft(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(l(166));if(t=ce.current,Pa(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||Yg(t.nodeValue,a)),t||Zi(r)}else t=lu(t).createTextNode(u),t[le]=r,r.stateNode=t}return ft(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Pa(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 Ia(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ft(r),p=!1}else p=jm(),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 m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),$s(r,r.updateQueue),ft(r),null;case 4:return Ie(),t===null&&dd(r.stateNode.containerInfo),ft(r),null;case 10:return Ur(r.type),ft(r),null;case 19:if(oe(jt),p=r.memoizedState,p===null)return ft(r),null;if(u=(r.flags&128)!==0,m=p.rendering,m===null)if(u)ao(p,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Fs(t),m!==null){for(r.flags|=128,ao(p,!1),t=m.updateQueue,r.updateQueue=t,$s(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)_m(a,t),a=a.sibling;return R(jt,jt.current&1|2),r.child}t=t.sibling}p.tail!==null&&Mt()>Ks&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304)}else{if(!u)if(t=Fs(m),t!==null){if(r.flags|=128,u=!0,t=t.updateQueue,r.updateQueue=t,$s(r,t),ao(p,!0),p.tail===null&&p.tailMode==="hidden"&&!m.alternate&&!Ye)return ft(r),null}else 2*Mt()-p.renderingStartTime>Ks&&a!==536870912&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304);p.isBackwards?(m.sibling=r.child,r.child=m):(t=p.last,t!==null?t.sibling=m:r.child=m,p.last=m)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Mt(),r.sibling=null,t=jt.current,R(jt,u?t&1|2:t&1),r):(ft(r),null);case 22:case 23:return qr(r),pf(),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&&(ft(r),r.subtreeFlags&6&&(r.flags|=8192)):ft(r),a=r.updateQueue,a!==null&&$s(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(el),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ur(Nt),ft(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function bw(t,r){switch(Wc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ur(Nt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(qr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Ia()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return oe(jt),null;case 4:return Ie(),null;case 10:return Ur(r.type),null;case 22:case 23:return qr(r),pf(),t!==null&&oe(el),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ur(Nt),null;case 25:return null;default:return null}}function tg(t,r){switch(Wc(r),r.tag){case 3:Ur(Nt),Ie();break;case 26:case 27:case 5:bt(r);break;case 4:Ie();break;case 13:qr(r);break;case 19:oe(jt);break;case 10:Ur(r.type);break;case 22:case 23:qr(r),pf(),t!==null&&oe(el);break;case 24:Ur(Nt)}}function oo(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 m=a.create,w=a.inst;u=m(),w.destroy=u}a=a.next}while(a!==p)}}catch(T){et(r,r.return,T)}}function yi(t,r,a){try{var u=r.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&t)===t){var w=u.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,p=r;var j=a,F=T;try{F()}catch(G){et(p,j,G)}}}u=u.next}while(u!==m)}}catch(G){et(r,r.return,G)}}function ng(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{Pm(r,a)}catch(u){et(t,t.return,u)}}}function rg(t,r,a){a.props=nl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){et(t,r,u)}}function so(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){et(t,r,p)}}function dr(t,r){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){et(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){et(t,r,p)}else a.current=null}function ig(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){et(t,t.return,p)}}function Qf(t,r,a){try{var u=t.stateNode;Hw(u,t.type,a,r),u[he]=r}catch(p){et(t,t.return,p)}}function lg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ei(t.type)||t.tag===4}function Pf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||lg(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&&Ei(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 If(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=iu));else if(u!==4&&(u===27&&Ei(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(If(t,r,a),t=t.sibling;t!==null;)If(t,r,a),t=t.sibling}function Ys(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&&Ei(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Ys(t,r,a),t=t.sibling;t!==null;)Ys(t,r,a),t=t.sibling}function ag(t){var r=t.stateNode,a=t.memoizedProps;try{for(var u=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Vt(r,u,a),r[le]=t,r[he]=a}catch(m){et(t,t.return,m)}}var Qr=!1,Et=!1,Vf=!1,og=typeof WeakSet=="function"?WeakSet:Set,qt=null;function xw(t,r){if(t=t.containerInfo,md=fu,t=vm(t),Qc(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,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var w=0,T=-1,j=-1,F=0,G=0,Z=t,Q=null;t:for(;;){for(var P;Z!==a||p!==0&&Z.nodeType!==3||(T=w+p),Z!==m||u!==0&&Z.nodeType!==3||(j=w+u),Z.nodeType===3&&(w+=Z.nodeValue.length),(P=Z.firstChild)!==null;)Q=Z,Z=P;for(;;){if(Z===t)break t;if(Q===a&&++F===p&&(T=w),Q===m&&++G===u&&(j=w),(P=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=P}a=T===-1||j===-1?null:{start:T,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(yd={focusedElem:t,selectionRange:a},fu=!1,qt=r;qt!==null;)if(r=qt,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,qt=t;else for(;qt!==null;){switch(r=qt,m=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,a=r,p=m.memoizedProps,m=m.memoizedState,u=a.stateNode;try{var Ee=nl(a.type,p,a.elementType===a.type);t=u.getSnapshotBeforeUpdate(Ee,m),u.__reactInternalSnapshotBeforeUpdate=t}catch(Se){et(a,a.return,Se)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)bd(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bd(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,qt=t;break}qt=r.return}}function sg(t,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:gi(t,a),u&4&&oo(5,a);break;case 1:if(gi(t,a),u&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(w){et(a,a.return,w)}else{var p=nl(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(w){et(a,a.return,w)}}u&64&&ng(a),u&512&&so(a,a.return);break;case 3:if(gi(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{Pm(t,r)}catch(w){et(a,a.return,w)}}break;case 27:r===null&&u&4&&ag(a);case 26:case 5:gi(t,a),r===null&&u&4&&ig(a),u&512&&so(a,a.return);break;case 12:gi(t,a);break;case 13:gi(t,a),u&4&&fg(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Ow.bind(null,a),Yw(t,a))));break;case 22:if(u=a.memoizedState!==null||Qr,!u){r=r!==null&&r.memoizedState!==null||Et,p=Qr;var m=Et;Qr=u,(Et=r)&&!m?vi(t,a,(a.subtreeFlags&8772)!==0):gi(t,a),Qr=p,Et=m}break;case 30:break;default:gi(t,a)}}function ug(t){var r=t.alternate;r!==null&&(t.alternate=null,ug(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Xt(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 lt=null,hn=!1;function Pr(t,r,a){for(a=a.child;a!==null;)cg(t,r,a),a=a.sibling}function cg(t,r,a){if(W&&typeof W.onCommitFiberUnmount=="function")try{W.onCommitFiberUnmount($,a)}catch{}switch(a.tag){case 26:Et||dr(a,r),Pr(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||dr(a,r);var u=lt,p=hn;Ei(a.type)&&(lt=a.stateNode,hn=!1),Pr(t,r,a),vo(a.stateNode),lt=u,hn=p;break;case 5:Et||dr(a,r);case 6:if(u=lt,p=hn,lt=null,Pr(t,r,a),lt=u,hn=p,lt!==null)if(hn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(m){et(a,r,m)}else try{lt.removeChild(a.stateNode)}catch(m){et(a,r,m)}break;case 18:lt!==null&&(hn?(t=lt,Jg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ko(t)):Jg(lt,a.stateNode));break;case 4:u=lt,p=hn,lt=a.stateNode.containerInfo,hn=!0,Pr(t,r,a),lt=u,hn=p;break;case 0:case 11:case 14:case 15:Et||yi(2,a,r),Et||yi(4,a,r),Pr(t,r,a);break;case 1:Et||(dr(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&rg(a,r,u)),Pr(t,r,a);break;case 21:Pr(t,r,a);break;case 22:Et=(u=Et)||a.memoizedState!==null,Pr(t,r,a),Et=u;break;default:Pr(t,r,a)}}function fg(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ko(t)}catch(a){et(r,r.return,a)}}function Sw(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new og),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new og),r;default:throw Error(l(435,t.tag))}}function $f(t,r){var a=Sw(t);r.forEach(function(u){var p=Rw.bind(null,t,u);a.has(u)||(a.add(u),u.then(p,p))})}function Tn(t,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],m=t,w=r,T=w;e:for(;T!==null;){switch(T.tag){case 27:if(Ei(T.type)){lt=T.stateNode,hn=!1;break e}break;case 5:lt=T.stateNode,hn=!1;break e;case 3:case 4:lt=T.stateNode.containerInfo,hn=!0;break e}T=T.return}if(lt===null)throw Error(l(160));cg(m,w,p),lt=null,hn=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)dg(r,t),r=r.sibling}var Wn=null;function dg(t,r){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Tn(r,t),kn(t),u&4&&(yi(3,t,t.return),oo(3,t),yi(5,t,t.return));break;case 1:Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),u&64&&Qr&&(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=Wn;if(Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),u&4){var m=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":m=p.getElementsByTagName("title")[0],(!m||m[St]||m[le]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(u),p.head.insertBefore(m,p.querySelector("head > title"))),Vt(m,u,a),m[le]=t,wt(m),u=m;break e;case"link":var w=av("link","href",p).get(u+(a.href||""));if(w){for(var T=0;T<w.length;T++)if(m=w[T],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){w.splice(T,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;case"meta":if(w=av("meta","content",p).get(u+(a.content||""))){for(T=0;T<w.length;T++)if(m=w[T],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){w.splice(T,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;default:throw Error(l(468,u))}m[le]=t,wt(m),u=m}t.stateNode=u}else ov(p,t.type,t.stateNode);else t.stateNode=lv(p,u,t.memoizedProps);else m!==u?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,u===null?ov(p,t.type,t.stateNode):lv(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Qf(t,t.memoizedProps,a.memoizedProps)}break;case 27:Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),a!==null&&u&4&&Qf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),t.flags&32){p=t.stateNode;try{Tl(p,"")}catch(P){et(t,t.return,P)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Qf(t,p,a!==null?a.memoizedProps:p)),u&1024&&(Vf=!0);break;case 6:if(Tn(r,t),kn(t),u&4){if(t.stateNode===null)throw Error(l(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(P){et(t,t.return,P)}}break;case 3:if(su=null,p=Wn,Wn=au(r.containerInfo),Tn(r,t),Wn=p,kn(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{ko(r.containerInfo)}catch(P){et(t,t.return,P)}Vf&&(Vf=!1,hg(t));break;case 4:u=Wn,Wn=au(t.stateNode.containerInfo),Tn(r,t),kn(t),Wn=u;break;case 12:Tn(r,t),kn(t);break;case 13:Tn(r,t),kn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Jf=Mt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 22:p=t.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,F=Qr,G=Et;if(Qr=F||p,Et=G||j,Tn(r,t),Et=G,Qr=F,kn(t),u&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||j||Qr||Et||rl(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){j=a=r;try{if(m=j.stateNode,p)w=m.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{T=j.stateNode;var Z=j.memoizedProps.style,Q=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(P){et(j,j.return,P)}}}else if(r.tag===6){if(a===null){j=r;try{j.stateNode.nodeValue=p?"":j.memoizedProps}catch(P){et(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,$f(t,a))));break;case 19:Tn(r,t),kn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 30:break;case 21:break;default:Tn(r,t),kn(t)}}function kn(t){var r=t.flags;if(r&2){try{for(var a,u=t.return;u!==null;){if(lg(u)){a=u;break}u=u.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,m=Pf(t);Ys(t,m,p);break;case 5:var w=a.stateNode;a.flags&32&&(Tl(w,""),a.flags&=-33);var T=Pf(t);Ys(t,T,w);break;case 3:case 4:var j=a.stateNode.containerInfo,F=Pf(t);If(t,F,j);break;default:throw Error(l(161))}}catch(G){et(t,t.return,G)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function hg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;hg(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function gi(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)sg(t,r.alternate,r),r=r.sibling}function rl(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:yi(4,r,r.return),rl(r);break;case 1:dr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&rg(r,r.return,a),rl(r);break;case 27:vo(r.stateNode);case 26:case 5:dr(r,r.return),rl(r);break;case 22:r.memoizedState===null&&rl(r);break;case 30:rl(r);break;default:rl(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,m=r,w=m.flags;switch(m.tag){case 0:case 11:case 15:vi(p,m,a),oo(4,m);break;case 1:if(vi(p,m,a),u=m,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){et(u,u.return,F)}if(u=m,p=u.updateQueue,p!==null){var T=u.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)Qm(j[p],T)}catch(F){et(u,u.return,F)}}a&&w&64&&ng(m),so(m,m.return);break;case 27:ag(m);case 26:case 5:vi(p,m,a),a&&u===null&&w&4&&ig(m),so(m,m.return);break;case 12:vi(p,m,a);break;case 13:vi(p,m,a),a&&w&4&&fg(p,m);break;case 22:m.memoizedState===null&&vi(p,m,a),so(m,m.return);break;case 30:break;default:vi(p,m,a)}r=r.sibling}}function Yf(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&&Ya(a))}function Gf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ya(t))}function hr(t,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)pg(t,r,a,u),r=r.sibling}function pg(t,r,a,u){var p=r.flags;switch(r.tag){case 0:case 11:case 15:hr(t,r,a,u),p&2048&&oo(9,r);break;case 1:hr(t,r,a,u);break;case 3:hr(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&&Ya(t)));break;case 12:if(p&2048){hr(t,r,a,u),t=r.stateNode;try{var m=r.memoizedProps,w=m.id,T=m.onPostCommit;typeof T=="function"&&T(w,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){et(r,r.return,j)}}else hr(t,r,a,u);break;case 13:hr(t,r,a,u);break;case 23:break;case 22:m=r.stateNode,w=r.alternate,r.memoizedState!==null?m._visibility&2?hr(t,r,a,u):uo(t,r):m._visibility&2?hr(t,r,a,u):(m._visibility|=2,Il(t,r,a,u,(r.subtreeFlags&10256)!==0)),p&2048&&Yf(w,r);break;case 24:hr(t,r,a,u),p&2048&&Gf(r.alternate,r);break;default:hr(t,r,a,u)}}function Il(t,r,a,u,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var m=t,w=r,T=a,j=u,F=w.flags;switch(w.tag){case 0:case 11:case 15:Il(m,w,T,j,p),oo(8,w);break;case 23:break;case 22:var G=w.stateNode;w.memoizedState!==null?G._visibility&2?Il(m,w,T,j,p):uo(m,w):(G._visibility|=2,Il(m,w,T,j,p)),p&&F&2048&&Yf(w.alternate,w);break;case 24:Il(m,w,T,j,p),p&&F&2048&&Gf(w.alternate,w);break;default:Il(m,w,T,j,p)}r=r.sibling}}function uo(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:uo(a,u),p&2048&&Yf(u.alternate,u);break;case 24:uo(a,u),p&2048&&Gf(u.alternate,u);break;default:uo(a,u)}r=r.sibling}}var co=8192;function Vl(t){if(t.subtreeFlags&co)for(t=t.child;t!==null;)mg(t),t=t.sibling}function mg(t){switch(t.tag){case 26:Vl(t),t.flags&co&&t.memoizedState!==null&&aC(Wn,t.memoizedState,t.memoizedProps);break;case 5:Vl(t);break;case 3:case 4:var r=Wn;Wn=au(t.stateNode.containerInfo),Vl(t),Wn=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=co,co=16777216,Vl(t),co=r):Vl(t));break;default:Vl(t)}}function yg(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 fo(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];qt=u,vg(u,t)}yg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gg(t),t=t.sibling}function gg(t){switch(t.tag){case 0:case 11:case 15:fo(t),t.flags&2048&&yi(9,t,t.return);break;case 3:fo(t);break;case 12:fo(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Gs(t)):fo(t);break;default:fo(t)}}function Gs(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];qt=u,vg(u,t)}yg(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:yi(8,r,r.return),Gs(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,Gs(r));break;default:Gs(r)}t=t.sibling}}function vg(t,r){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:yi(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:Ya(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,qt=u;else e:for(a=t;qt!==null;){u=qt;var p=u.sibling,m=u.return;if(ug(u),u===a){qt=null;break e}if(p!==null){p.return=m,qt=p;break e}qt=m}}}var ww={getCacheForType:function(t){var r=Zt(Nt),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},Cw=typeof WeakMap=="function"?WeakMap:Map,Ke=0,rt=null,Me=null,qe=0,Xe=0,An=null,bi=!1,$l=!1,Kf=!1,Ir=0,yt=0,xi=0,il=0,Xf=0,In=0,Yl=0,ho=null,pn=null,Zf=!1,Jf=0,Ks=1/0,Xs=null,Si=null,It=0,wi=null,Gl=null,Kl=0,Wf=0,ed=null,bg=null,po=0,td=null;function _n(){if((Ke&2)!==0&&qe!==0)return qe&-qe;if(B.T!==null){var t=zl;return t!==0?t:sd()}return De()}function xg(){In===0&&(In=(qe&536870912)===0||Ye?li():536870912);var t=Pn.current;return t!==null&&(t.flags|=32),In}function On(t,r,a){(t===rt&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(Xl(t,0),Ci(t,qe,In,!1)),Mn(t,a),((Ke&2)===0||t!==rt)&&(t===rt&&((Ke&2)===0&&(il|=a),yt===4&&Ci(t,qe,In,!1)),pr(t))}function Sg(t,r,a){if((Ke&6)!==0)throw Error(l(327));var u=!a&&(r&124)===0&&(r&t.expiredLanes)===0||Lt(t,r),p=u?kw(t,r):id(t,r,!0),m=u;do{if(p===0){$l&&!u&&Ci(t,r,0,!1);break}else{if(a=t.current.alternate,m&&!Ew(a)){p=id(t,r,!1),m=!1;continue}if(p===2){if(m=r,t.errorRecoveryDisabledLanes&m)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var T=t;p=ho;var j=T.current.memoizedState.isDehydrated;if(j&&(Xl(T,w).flags|=256),w=id(T,w,!1),w!==2){if(Kf&&!j){T.errorRecoveryDisabledLanes|=m,il|=m,p=4;break e}m=pn,pn=p,m!==null&&(pn===null?pn=m:pn.push.apply(pn,m))}p=w}if(m=!1,p!==2)continue}}if(p===1){Xl(t,0),Ci(t,r,0,!0);break}e:{switch(u=t,m=p,m){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Ci(u,r,In,!bi);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=Jf+300-Mt(),10<p)){if(Ci(u,r,In,!bi),ut(u,0,!0)!==0)break e;u.timeoutHandle=Xg(wg.bind(null,u,a,pn,Xs,Zf,r,In,il,Yl,bi,m,2,-0,0),p);break e}wg(u,a,pn,Xs,Zf,r,In,il,Yl,bi,m,0,-0,0)}}break}while(!0);pr(t)}function wg(t,r,a,u,p,m,w,T,j,F,G,Z,Q,P){if(t.timeoutHandle=-1,Z=r.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(So={stylesheets:null,count:0,unsuspend:lC},mg(r),Z=oC(),Z!==null)){t.cancelPendingCommit=Z(Og.bind(null,t,r,m,a,u,p,w,T,j,G,1,Q,P)),Ci(t,m,w,!F);return}Og(t,r,m,a,u,p,w,T,j)}function Ew(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],m=p.getSnapshot;p=p.value;try{if(!Cn(m(),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 Ci(t,r,a,u){r&=~Xf,r&=~il,t.suspendedLanes|=r,t.pingedLanes&=~r,u&&(t.warmLanes|=r),u=t.expirationTimes;for(var p=r;0<p;){var m=31-ye(p),w=1<<m;u[m]=-1,p&=~w}a!==0&&Fi(t,a,r)}function Zs(){return(Ke&6)===0?(mo(0),!1):!0}function nd(){if(Me!==null){if(Xe===0)var t=Me.return;else t=Me,zr=Ji=null,bf(t),Ql=null,io=0,t=Me;for(;t!==null;)tg(t.alternate,t),t=t.return;Me=null}}function Xl(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Qw(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),nd(),rt=t,Me=a=Dr(t.current,null),qe=r,Xe=0,An=null,bi=!1,$l=Lt(t,r),Kf=!1,Yl=In=Xf=il=xi=yt=0,pn=ho=null,Zf=!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-ye(u),m=1<<p;r|=t[p],u&=~m}return Ir=r,bs(),a}function Cg(t,r){Re=null,B.H=Bs,r===Ka||r===_s?(r=Hm(),Xe=3):r===Um?(r=Hm(),Xe=4):Xe=r===Fy?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,An=r,Me===null&&(yt=1,Ps(t,qn(r,t.current)))}function Eg(){var t=B.H;return B.H=Bs,t===null?Bs:t}function Tg(){var t=B.A;return B.A=ww,t}function rd(){yt=4,bi||(qe&4194048)!==qe&&Pn.current!==null||($l=!0),(xi&134217727)===0&&(il&134217727)===0||rt===null||Ci(rt,qe,In,!1)}function id(t,r,a){var u=Ke;Ke|=2;var p=Eg(),m=Tg();(rt!==t||qe!==r)&&(Xs=null,Xl(t,r)),r=!1;var w=yt;e:do try{if(Xe!==0&&Me!==null){var T=Me,j=An;switch(Xe){case 8:nd(),w=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(r=!0);var F=Xe;if(Xe=0,An=null,Zl(t,T,j,F),a&&$l){w=0;break e}break;default:F=Xe,Xe=0,An=null,Zl(t,T,j,F)}}Tw(),w=yt;break}catch(G){Cg(t,G)}while(!0);return r&&t.shellSuspendCounter++,zr=Ji=null,Ke=u,B.H=p,B.A=m,Me===null&&(rt=null,qe=0,bs()),w}function Tw(){for(;Me!==null;)kg(Me)}function kw(t,r){var a=Ke;Ke|=2;var u=Eg(),p=Tg();rt!==t||qe!==r?(Xs=null,Ks=Mt()+500,Xl(t,r)):$l=Lt(t,r);e:do try{if(Xe!==0&&Me!==null){r=Me;var m=An;t:switch(Xe){case 1:Xe=0,An=null,Zl(t,r,m,1);break;case 2:case 9:if(Bm(m)){Xe=0,An=null,Ag(r);break}r=function(){Xe!==2&&Xe!==9||rt!==t||(Xe=7),pr(t)},m.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Bm(m)?(Xe=0,An=null,Ag(r)):(Xe=0,An=null,Zl(t,r,m,7));break;case 5:var w=null;switch(Me.tag){case 26:w=Me.memoizedState;case 5:case 27:var T=Me;if(!w||sv(w)){Xe=0,An=null;var j=T.sibling;if(j!==null)Me=j;else{var F=T.return;F!==null?(Me=F,Js(F)):Me=null}break t}}Xe=0,An=null,Zl(t,r,m,5);break;case 6:Xe=0,An=null,Zl(t,r,m,6);break;case 8:nd(),yt=6;break e;default:throw Error(l(462))}}Aw();break}catch(G){Cg(t,G)}while(!0);return zr=Ji=null,B.H=u,B.A=p,Ke=a,Me!==null?0:(rt=null,qe=0,bs(),yt)}function Aw(){for(;Me!==null&&!ri();)kg(Me)}function kg(t){var r=Wy(t.alternate,t,Ir);t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Ag(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=Yy(a,r,r.pendingProps,r.type,void 0,qe);break;case 11:r=Yy(a,r,r.pendingProps,r.type.render,r.ref,qe);break;case 5:bf(r);default:tg(a,r),r=Me=_m(r,Ir),r=Wy(a,r,Ir)}t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Zl(t,r,a,u){zr=Ji=null,bf(r),Ql=null,io=0;var p=r.return;try{if(yw(t,p,r,a,qe)){yt=1,Ps(t,qn(a,t.current)),Me=null;return}}catch(m){if(p!==null)throw Me=p,m;yt=1,Ps(t,qn(a,t.current)),Me=null;return}r.flags&32768?(Ye||u===1?t=!0:$l||(qe&536870912)!==0?t=!1:(bi=t=!0,(u===2||u===9||u===3||u===6)&&(u=Pn.current,u!==null&&u.tag===13&&(u.flags|=16384))),_g(r,t)):Js(r)}function Js(t){var r=t;do{if((r.flags&32768)!==0){_g(r,bi);return}t=r.return;var a=vw(r.alternate,r,Ir);if(a!==null){Me=a;return}if(r=r.sibling,r!==null){Me=r;return}Me=r=t}while(r!==null);yt===0&&(yt=5)}function _g(t,r){do{var a=bw(t.alternate,t);if(a!==null){a.flags&=32767,Me=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){Me=t;return}Me=t=a}while(t!==null);yt=6,Me=null}function Og(t,r,a,u,p,m,w,T,j){t.cancelPendingCommit=null;do Ws();while(It!==0);if((Ke&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(m=r.lanes|r.childLanes,m|=Yc,Hi(t,a,m,w,T,j),t===rt&&(Me=rt=null,qe=0),Gl=r,wi=t,Kl=a,Wf=m,ed=p,bg=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Nw(Dn,function(){return Mg(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,p=X.p,X.p=2,w=Ke,Ke|=4;try{xw(t,r,a)}finally{Ke=w,X.p=p,B.T=u}}It=1,Rg(),Ng(),jg()}}function Rg(){if(It===1){It=0;var t=wi,r=Gl,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{dg(r,t);var m=yd,w=vm(t.containerInfo),T=m.focusedElem,j=m.selectionRange;if(w!==T&&T&&T.ownerDocument&&gm(T.ownerDocument.documentElement,T)){if(j!==null&&Qc(T)){var F=j.start,G=j.end;if(G===void 0&&(G=F),"selectionStart"in T)T.selectionStart=F,T.selectionEnd=Math.min(G,T.value.length);else{var Z=T.ownerDocument||document,Q=Z&&Z.defaultView||window;if(Q.getSelection){var P=Q.getSelection(),Ee=T.textContent.length,Se=Math.min(j.start,Ee),We=j.end===void 0?Se:Math.min(j.end,Ee);!P.extend&&Se>We&&(w=We,We=Se,Se=w);var U=ym(T,Se),D=ym(T,We);if(U&&D&&(P.rangeCount!==1||P.anchorNode!==U.node||P.anchorOffset!==U.offset||P.focusNode!==D.node||P.focusOffset!==D.offset)){var H=Z.createRange();H.setStart(U.node,U.offset),P.removeAllRanges(),Se>We?(P.addRange(H),P.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),P.addRange(H))}}}}for(Z=[],P=T;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<Z.length;T++){var K=Z[T];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}fu=!!md,yd=md=null}finally{Ke=p,X.p=u,B.T=a}}t.current=r,It=2}}function Ng(){if(It===2){It=0;var t=wi,r=Gl,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{sg(t,r.alternate,r)}finally{Ke=p,X.p=u,B.T=a}}It=3}}function jg(){if(It===4||It===3){It=0,Dt();var t=wi,r=Gl,a=Kl,u=bg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?It=5:(It=0,Gl=wi=null,Dg(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Si=null),be(a),r=r.stateNode,W&&typeof W.onCommitFiberRoot=="function")try{W.onCommitFiberRoot($,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=B.T,p=X.p,X.p=2,B.T=null;try{for(var m=t.onRecoverableError,w=0;w<u.length;w++){var T=u[w];m(T.value,{componentStack:T.stack})}}finally{B.T=r,X.p=p}}(Kl&3)!==0&&Ws(),pr(t),p=t.pendingLanes,(a&4194090)!==0&&(p&42)!==0?t===td?po++:(po=0,td=t):po=0,mo(0)}}function Dg(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ya(r)))}function Ws(t){return Rg(),Ng(),jg(),Mg()}function Mg(){if(It!==5)return!1;var t=wi,r=Wf;Wf=0;var a=be(Kl),u=B.T,p=X.p;try{X.p=32>a?32:a,B.T=null,a=ed,ed=null;var m=wi,w=Kl;if(It=0,Gl=wi=null,Kl=0,(Ke&6)!==0)throw Error(l(331));var T=Ke;if(Ke|=4,gg(m.current),pg(m,m.current,w,a),Ke=T,mo(0,!1),W&&typeof W.onPostCommitFiberRoot=="function")try{W.onPostCommitFiberRoot($,m)}catch{}return!0}finally{X.p=p,B.T=u,Dg(t,r)}}function Lg(t,r,a){r=qn(a,r),r=Df(t.stateNode,r,2),t=di(t,r,2),t!==null&&(Mn(t,2),pr(t))}function et(t,r,a){if(t.tag===3)Lg(t,t,a);else for(;r!==null;){if(r.tag===3){Lg(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=qy(2),u=di(r,a,2),u!==null&&(Hy(a,u,r,t),Mn(u,2),pr(u));break}}r=r.return}}function ld(t,r,a){var u=t.pingCache;if(u===null){u=t.pingCache=new Cw;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)||(Kf=!0,p.add(a),t=_w.bind(null,t,r,a),r.then(t,t))}function _w(t,r,a){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,rt===t&&(qe&a)===a&&(yt===4||yt===3&&(qe&62914560)===qe&&300>Mt()-Jf?(Ke&2)===0&&Xl(t,0):Xf|=a,Yl===qe&&(Yl=0)),pr(t)}function zg(t,r){r===0&&(r=Or()),t=jl(t,r),t!==null&&(Mn(t,r),pr(t))}function Ow(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),zg(t,a)}function Rw(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 Nw(t,r){return Xn(t,r)}var eu=null,Jl=null,ad=!1,tu=!1,od=!1,ll=0;function pr(t){t!==Jl&&t.next===null&&(Jl===null?eu=Jl=t:Jl=Jl.next=t),tu=!0,ad||(ad=!0,Dw())}function mo(t,r){if(!od&&tu){od=!0;do for(var a=!1,u=eu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var w=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-ye(42|t)+1)-1,m&=p&~(w&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Hg(u,m))}else m=qe,m=ut(u,u===rt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Lt(u,m)||(a=!0,Hg(u,m));u=u.next}while(a);od=!1}}function jw(){Ug()}function Ug(){tu=ad=!1;var t=0;ll!==0&&(Fw()&&(t=ll),ll=0);for(var r=Mt(),a=null,u=eu;u!==null;){var p=u.next,m=Bg(u,r);m===0?(u.next=null,a===null?eu=p:a.next=p,p===null&&(Jl=a)):(a=u,(t!==0||(m&3)!==0)&&(tu=!0)),u=p}mo(t)}function Bg(t,r){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var w=31-ye(m),T=1<<w,j=p[w];j===-1?((T&a)===0||(T&u)!==0)&&(p[w]=zt(T,r)):j<=r&&(t.expiredLanes|=T),m&=~T}if(r=rt,a=qe,a=ut(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&&cn(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Lt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(u!==null&&cn(u),be(a)){case 2:case 8:a=Ge;break;case 32:a=Dn;break;case 268435456:a=or;break;default:a=Dn}return u=qg.bind(null,t),a=Xn(a,u),t.callbackPriority=r,t.callbackNode=a,r}return u!==null&&u!==null&&cn(u),t.callbackPriority=2,t.callbackNode=null,2}function qg(t,r){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Ws()&&t.callbackNode!==a)return null;var u=qe;return u=ut(t,t===rt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Sg(t,u,r),Bg(t,Mt()),t.callbackNode!=null&&t.callbackNode===a?qg.bind(null,t):null)}function Hg(t,r){if(Ws())return null;Sg(t,r,!0)}function Dw(){Pw(function(){(Ke&6)!==0?Xn(xn,jw):Ug()})}function sd(){return ll===0&&(ll=li()),ll}function Fg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ds(""+t)}function Qg(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 Mw(t,r,a,u,p){if(r==="submit"&&a&&a.stateNode===p){var m=Fg((p[he]||null).action),w=u.submitter;w&&(r=(r=w[he]||null)?Fg(r.formAction):w.getAttribute("formAction"),r!==null&&(m=r,w=null));var T=new ys("action","action",null,u,p);t.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(ll!==0){var j=w?Qg(p,w):new FormData(p);_f(a,{pending:!0,data:j,method:p.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=w?Qg(p,w):new FormData(p),_f(a,{pending:!0,data:j,method:p.method,action:m},m,j))},currentTarget:p}]})}}for(var ud=0;ud<$c.length;ud++){var cd=$c[ud],Lw=cd.toLowerCase(),zw=cd[0].toUpperCase()+cd.slice(1);Jn(Lw,"on"+zw)}Jn(Sm,"onAnimationEnd"),Jn(wm,"onAnimationIteration"),Jn(Cm,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(WS,"onTransitionRun"),Jn(ew,"onTransitionStart"),Jn(tw,"onTransitionCancel"),Jn(Em,"onTransitionEnd"),Rr("onMouseEnter",["mouseout","mouseover"]),Rr("onMouseLeave",["mouseout","mouseover"]),Rr("onPointerEnter",["pointerout","pointerover"]),Rr("onPointerLeave",["pointerout","pointerover"]),ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),Uw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yo));function Pg(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 m=void 0;if(r)for(var w=u.length-1;0<=w;w--){var T=u[w],j=T.instance,F=T.currentTarget;if(T=T.listener,j!==m&&p.isPropagationStopped())break e;m=T,p.currentTarget=F;try{m(p)}catch(G){Qs(G)}p.currentTarget=null,m=j}else for(w=0;w<u.length;w++){if(T=u[w],j=T.instance,F=T.currentTarget,T=T.listener,j!==m&&p.isPropagationStopped())break e;m=T,p.currentTarget=F;try{m(p)}catch(G){Qs(G)}p.currentTarget=null,m=j}}}}function Le(t,r){var a=r[ct];a===void 0&&(a=r[ct]=new Set);var u=t+"__bubble";a.has(u)||(Ig(r,t,2,!1),a.add(u))}function fd(t,r,a){var u=0;r&&(u|=4),Ig(a,t,u,r)}var nu="_reactListening"+Math.random().toString(36).slice(2);function dd(t){if(!t[nu]){t[nu]=!0,ja.forEach(function(a){a!=="selectionchange"&&(Uw.has(a)||fd(a,!1,t),fd(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[nu]||(r[nu]=!0,fd("selectionchange",!1,r))}}function Ig(t,r,a,u){switch(pv(r)){case 2:var p=cC;break;case 8:p=fC;break;default:p=kd}a=p.bind(null,r,a,t),p=void 0,!Dc||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 hd(t,r,a,u,p){var m=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var T=u.stateNode.containerInfo;if(T===p)break;if(w===4)for(w=u.return;w!==null;){var j=w.tag;if((j===3||j===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;T!==null;){if(w=Ve(T),w===null)return;if(j=w.tag,j===5||j===6||j===26||j===27){u=m=w;continue e}T=T.parentNode}}u=u.return}Zp(function(){var F=m,G=Nc(a),Z=[];e:{var Q=Tm.get(t);if(Q!==void 0){var P=ys,Ee=t;switch(t){case"keypress":if(ps(a)===0)break e;case"keydown":case"keyup":P=NS;break;case"focusin":Ee="focus",P=Uc;break;case"focusout":Ee="blur",P=Uc;break;case"beforeblur":case"afterblur":P=Uc;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=em;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=bS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=MS;break;case Sm:case wm:case Cm:P=wS;break;case Em:P=zS;break;case"scroll":case"scrollend":P=gS;break;case"wheel":P=BS;break;case"copy":case"cut":case"paste":P=ES;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=nm;break;case"toggle":case"beforetoggle":P=HS}var Se=(r&4)!==0,We=!Se&&(t==="scroll"||t==="scrollend"),U=Se?Q!==null?Q+"Capture":null:Q;Se=[];for(var D=F,H;D!==null;){var K=D;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||U===null||(K=Ma(D,U),K!=null&&Se.push(go(D,K,H))),We)break;D=D.return}0<Se.length&&(Q=new P(Q,Ee,null,a,G),Z.push({event:Q,listeners:Se}))}}if((r&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",Q&&a!==Rc&&(Ee=a.relatedTarget||a.fromElement)&&(Ve(Ee)||Ee[we]))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&&(We=s(Ee),Se=Ee.tag,Ee!==We||Se!==5&&Se!==27&&Se!==6)&&(Ee=null)):(P=null,Ee=F),P!==Ee)){if(Se=em,K="onMouseLeave",U="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(Se=nm,K="onPointerLeave",U="onPointerEnter",D="pointer"),We=P==null?Q:Qi(P),H=Ee==null?Q:Qi(Ee),Q=new Se(K,D+"leave",P,a,G),Q.target=We,Q.relatedTarget=H,K=null,Ve(G)===F&&(Se=new Se(U,D+"enter",Ee,a,G),Se.target=H,Se.relatedTarget=We,K=Se),We=K,P&&Ee)t:{for(Se=P,U=Ee,D=0,H=Se;H;H=Wl(H))D++;for(H=0,K=U;K;K=Wl(K))H++;for(;0<D-H;)Se=Wl(Se),D--;for(;0<H-D;)U=Wl(U),H--;for(;D--;){if(Se===U||U!==null&&Se===U.alternate)break t;Se=Wl(Se),U=Wl(U)}Se=null}else Se=null;P!==null&&Vg(Z,Q,P,Se,!1),Ee!==null&&We!==null&&Vg(Z,We,Ee,Se,!0)}}e:{if(Q=F?Qi(F):window,P=Q.nodeName&&Q.nodeName.toLowerCase(),P==="select"||P==="input"&&Q.type==="file")var de=cm;else if(sm(Q))if(fm)de=XS;else{de=GS;var Ne=YS}else P=Q.nodeName,!P||P.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Oc(F.elementType)&&(de=cm):de=KS;if(de&&(de=de(t,F))){um(Z,de,a,G);break e}Ne&&Ne(t,Q,F),t==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&_c(Q,"number",Q.value)}switch(Ne=F?Qi(F):window,t){case"focusin":(sm(Ne)||Ne.contentEditable==="true")&&(Ol=Ne,Pc=F,Qa=null);break;case"focusout":Qa=Pc=Ol=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,bm(Z,a,G);break;case"selectionchange":if(JS)break;case"keydown":case"keyup":bm(Z,a,G)}var ge;if(qc)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 _l?am(t,a)&&(Ce="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(rm&&a.locale!=="ko"&&(_l||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&_l&&(ge=Jp()):(si=G,Mc="value"in si?si.value:si.textContent,_l=!0)),Ne=ru(F,Ce),0<Ne.length&&(Ce=new tm(Ce,t,null,a,G),Z.push({event:Ce,listeners:Ne}),ge?Ce.data=ge:(ge=om(a),ge!==null&&(Ce.data=ge)))),(ge=QS?PS(t,a):IS(t,a))&&(Ce=ru(F,"onBeforeInput"),0<Ce.length&&(Ne=new tm("onBeforeInput","beforeinput",null,a,G),Z.push({event:Ne,listeners:Ce}),Ne.data=ge)),Mw(Z,t,F,a,G)}Pg(Z,r)})}function go(t,r,a){return{instance:t,listener:r,currentTarget:a}}function ru(t,r){for(var a=r+"Capture",u=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=Ma(t,a),p!=null&&u.unshift(go(t,p,m)),p=Ma(t,r),p!=null&&u.push(go(t,p,m))),t.tag===3)return u;t=t.return}return[]}function Wl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vg(t,r,a,u,p){for(var m=r._reactName,w=[];a!==null&&a!==u;){var T=a,j=T.alternate,F=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||F===null||(j=F,p?(F=Ma(a,m),F!=null&&w.unshift(go(a,F,j))):p||(F=Ma(a,m),F!=null&&w.push(go(a,F,j)))),a=a.return}w.length!==0&&t.push({event:r,listeners:w})}var Bw=/\r\n?/g,qw=/\u0000|\uFFFD/g;function $g(t){return(typeof t=="string"?t:""+t).replace(Bw,`
49
- `).replace(qw,"")}function Yg(t,r){return r=$g(r),$g(t)===r}function iu(){}function Je(t,r,a,u,p,m){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Tl(t,""+u);break;case"className":oi(t,"class",u);break;case"tabIndex":oi(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(t,a,u);break;case"style":Kp(t,u,m);break;case"data":if(r!=="object"){oi(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=ds(""+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 m=="function"&&(a==="formAction"?(r!=="input"&&Je(t,r,"name",p.name,p,null),Je(t,r,"formEncType",p.formEncType,p,null),Je(t,r,"formMethod",p.formMethod,p,null),Je(t,r,"formTarget",p.formTarget,p,null)):(Je(t,r,"encType",p.encType,p,null),Je(t,r,"method",p.method,p,null),Je(t,r,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=ds(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=iu);break;case"onScroll":u!=null&&Le("scroll",t);break;case"onScrollEnd":u!=null&&Le("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=ds(""+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":Le("beforetoggle",t),Le("toggle",t),wl(t,"popover",u);break;case"xlinkActuate":Nr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":wl(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=mS.get(a)||a,wl(t,a,u))}}function pd(t,r,a,u,p,m){switch(a){case"style":Kp(t,u,m);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"?Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&Tl(t,""+u);break;case"onScroll":u!=null&&Le("scroll",t);break;case"onScrollEnd":u!=null&&Le("scrollend",t);break;case"onClick":u!=null&&(t.onclick=iu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Da.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),m=t[he]||null,m=m!=null?m[a]:null,typeof m=="function"&&t.removeEventListener(r,m,p),typeof u=="function")){typeof m!="function"&&m!==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,""):wl(t,a,u)}}}function Vt(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var u=!1,p=!1,m;for(m in a)if(a.hasOwnProperty(m)){var w=a[m];if(w!=null)switch(m){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:Je(t,r,m,w,a,null)}}p&&Je(t,r,"srcSet",a.srcSet,a,null),u&&Je(t,r,"src",a.src,a,null);return;case"input":Le("invalid",t);var T=m=w=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":w=G;break;case"checked":j=G;break;case"defaultChecked":F=G;break;case"value":m=G;break;case"defaultValue":T=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,r));break;default:Je(t,r,u,G,a,null)}}Vp(t,m,T,j,F,w,p,!1),cs(t);return;case"select":Le("invalid",t),u=w=m=null;for(p in a)if(a.hasOwnProperty(p)&&(T=a[p],T!=null))switch(p){case"value":m=T;break;case"defaultValue":w=T;break;case"multiple":u=T;default:Je(t,r,p,T,a,null)}r=m,a=w,t.multiple=!!u,r!=null?El(t,!!u,r,!1):a!=null&&El(t,!!u,a,!0);return;case"textarea":Le("invalid",t),m=p=u=null;for(w in a)if(a.hasOwnProperty(w)&&(T=a[w],T!=null))switch(w){case"value":u=T;break;case"defaultValue":p=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(l(91));break;default:Je(t,r,w,T,a,null)}Yp(t,u,p,m),cs(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:Je(t,r,j,u,a,null)}return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(u=0;u<yo.length;u++)Le(yo[u],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("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:Je(t,r,F,u,a,null)}return;default:if(Oc(r)){for(G in a)a.hasOwnProperty(G)&&(u=a[G],u!==void 0&&pd(t,r,G,u,a,void 0));return}}for(T in a)a.hasOwnProperty(T)&&(u=a[T],u!=null&&Je(t,r,T,u,a,null))}function Hw(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,m=null,w=null,T=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)||Je(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":m=P;break;case"name":p=P;break;case"checked":F=P;break;case"defaultChecked":G=P;break;case"value":w=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,r));break;default:P!==Z&&Je(t,r,Q,P,u,Z)}}Ac(t,w,T,j,F,G,m,p);return;case"select":P=w=T=Q=null;for(m in a)if(j=a[m],a.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(m)||Je(t,r,m,null,u,j)}for(p in u)if(m=u[p],j=a[p],u.hasOwnProperty(p)&&(m!=null||j!=null))switch(p){case"value":Q=m;break;case"defaultValue":T=m;break;case"multiple":w=m;default:m!==j&&Je(t,r,p,m,u,j)}r=T,a=w,u=P,Q!=null?El(t,!!a,Q,!1):!!u!=!!a&&(r!=null?El(t,!!a,r,!0):El(t,!!a,a?[]:"",!1));return;case"textarea":P=Q=null;for(T in a)if(p=a[T],a.hasOwnProperty(T)&&p!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Je(t,r,T,null,u,p)}for(w in u)if(p=u[w],m=a[w],u.hasOwnProperty(w)&&(p!=null||m!=null))switch(w){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!==m&&Je(t,r,w,p,u,m)}$p(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:Je(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:Je(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 Se in a)Q=a[Se],a.hasOwnProperty(Se)&&Q!=null&&!u.hasOwnProperty(Se)&&Je(t,r,Se,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:Je(t,r,F,Q,u,P)}return;default:if(Oc(r)){for(var We in a)Q=a[We],a.hasOwnProperty(We)&&Q!==void 0&&!u.hasOwnProperty(We)&&pd(t,r,We,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||pd(t,r,G,Q,u,P);return}}for(var U in a)Q=a[U],a.hasOwnProperty(U)&&Q!=null&&!u.hasOwnProperty(U)&&Je(t,r,U,null,u,Q);for(Z in u)Q=u[Z],P=a[Z],!u.hasOwnProperty(Z)||Q===P||Q==null&&P==null||Je(t,r,Z,Q,u,P)}var md=null,yd=null;function lu(t){return t.nodeType===9?t:t.ownerDocument}function Gg(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 Kg(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 gd(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 vd=null;function Fw(){var t=window.event;return t&&t.type==="popstate"?t===vd?!1:(vd=t,!0):(vd=null,!1)}var Xg=typeof setTimeout=="function"?setTimeout:void 0,Qw=typeof clearTimeout=="function"?clearTimeout:void 0,Zg=typeof Promise=="function"?Promise:void 0,Pw=typeof queueMicrotask=="function"?queueMicrotask:typeof Zg<"u"?function(t){return Zg.resolve(null).then(t).catch(Iw)}:Xg;function Iw(t){setTimeout(function(){throw t})}function Ei(t){return t==="head"}function Jg(t,r){var a=r,u=0,p=0;do{var m=a.nextSibling;if(t.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(0<u&&8>u){a=u;var w=t.ownerDocument;if(a&1&&vo(w.documentElement),a&2&&vo(w.body),a&4)for(a=w.head,vo(a),w=a.firstChild;w;){var T=w.nextSibling,j=w.nodeName;w[St]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&w.rel.toLowerCase()==="stylesheet"||a.removeChild(w),w=T}}if(p===0){t.removeChild(m),ko(r);return}p--}else a==="$"||a==="$?"||a==="$!"?p++:u=a.charCodeAt(0)-48;else u=0;a=m}while(a);ko(r)}function bd(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":bd(a),Xt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Vw(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(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==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(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=er(t.nextSibling),t===null)break}return null}function $w(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=er(t.nextSibling),t===null))return null;return t}function xd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Yw(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 er(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 Sd=null;function Wg(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 ev(t,r,a){switch(r=lu(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 vo(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Xt(t)}var Vn=new Map,tv=new Set;function au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vr=X.d;X.d={f:Gw,r:Kw,D:Xw,C:Zw,L:Jw,m:Ww,X:tC,S:eC,M:nC};function Gw(){var t=Vr.f(),r=Zs();return t||r}function Kw(t){var r=wn(t);r!==null&&r.tag===5&&r.type==="form"?Sy(r):Vr.r(t)}var ea=typeof document>"u"?null:document;function nv(t,r,a){var u=ea;if(u&&typeof r=="string"&&r){var p=Bn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),tv.has(p)||(tv.add(p),t={rel:t,crossOrigin:a,href:r},u.querySelector(p)===null&&(r=u.createElement("link"),Vt(r,"link",t),wt(r),u.head.appendChild(r)))}}function Xw(t){Vr.D(t),nv("dns-prefetch",t,null)}function Zw(t,r){Vr.C(t,r),nv("preconnect",t,r)}function Jw(t,r,a){Vr.L(t,r,a);var u=ea;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 m=p;switch(r){case"style":m=ta(t);break;case"script":m=na(t)}Vn.has(m)||(t=y({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Vn.set(m,t),u.querySelector(p)!==null||r==="style"&&u.querySelector(bo(m))||r==="script"&&u.querySelector(xo(m))||(r=u.createElement("link"),Vt(r,"link",t),wt(r),u.head.appendChild(r)))}}function Ww(t,r){Vr.m(t,r);var a=ea;if(a&&t){var u=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Bn(u)+'"][href="'+Bn(t)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=na(t)}if(!Vn.has(m)&&(t=y({rel:"modulepreload",href:t},r),Vn.set(m,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xo(m)))return}u=a.createElement("link"),Vt(u,"link",t),wt(u),a.head.appendChild(u)}}}function eC(t,r,a){Vr.S(t,r,a);var u=ea;if(u&&t){var p=ai(u).hoistableStyles,m=ta(t);r=r||"default";var w=p.get(m);if(!w){var T={loading:0,preload:null};if(w=u.querySelector(bo(m)))T.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Vn.get(m))&&wd(t,a);var j=w=u.createElement("link");wt(j),Vt(j,"link",t),j._p=new Promise(function(F,G){j.onload=F,j.onerror=G}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,ou(w,r,u)}w={type:"stylesheet",instance:w,count:1,state:T},p.set(m,w)}}}function tC(t,r){Vr.X(t,r);var a=ea;if(a&&t){var u=ai(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),wt(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function nC(t,r){Vr.M(t,r);var a=ea;if(a&&t){var u=ai(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),wt(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function rv(t,r,a,u){var p=(p=ce.current)?au(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=ta(a.href),a=ai(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=ta(a.href);var m=ai(p).hoistableStyles,w=m.get(t);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,w),(m=p.querySelector(bo(t)))&&!m._p&&(w.instance=m,w.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),m||rC(p,t,a,w.state))),r&&u===null)throw Error(l(528,""));return w}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=na(a),a=ai(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 ta(t){return'href="'+Bn(t)+'"'}function bo(t){return'link[rel="stylesheet"]['+t+"]"}function iv(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function rC(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}),Vt(r,"link",a),wt(r),t.head.appendChild(r))}function na(t){return'[src="'+Bn(t)+'"]'}function xo(t){return"script[async]"+t}function lv(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,wt(u),u;var p=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),wt(u),Vt(u,"style",p),ou(u,a.precedence,t),r.instance=u;case"stylesheet":p=ta(a.href);var m=t.querySelector(bo(p));if(m)return r.state.loading|=4,r.instance=m,wt(m),m;u=iv(a),(p=Vn.get(p))&&wd(u,p),m=(t.ownerDocument||t).createElement("link"),wt(m);var w=m;return w._p=new Promise(function(T,j){w.onload=T,w.onerror=j}),Vt(m,"link",u),r.state.loading|=4,ou(m,a.precedence,t),r.instance=m;case"script":return m=na(a.src),(p=t.querySelector(xo(m)))?(r.instance=p,wt(p),p):(u=a,(p=Vn.get(m))&&(u=y({},a),Cd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),wt(p),Vt(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,ou(u,a.precedence,t));return r.instance}function ou(t,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,w=0;w<u.length;w++){var T=u[w];if(T.dataset.precedence===r)m=T;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function wd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Cd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var su=null;function av(t,r,a){if(su===null){var u=new Map,p=su=new Map;p.set(a,u)}else p=su,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 m=a[p];if(!(m[St]||m[le]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var w=m.getAttribute(r)||"";w=t+w;var T=u.get(w);T?T.push(m):u.set(w,[m])}}return u}function ov(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function iC(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 sv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var So=null;function lC(){}function aC(t,r,a){if(So===null)throw Error(l(475));var u=So;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=ta(a.href),m=t.querySelector(bo(p));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=uu.bind(u),t.then(u,u)),r.state.loading|=4,r.instance=m,wt(m);return}m=t.ownerDocument||t,a=iv(a),(p=Vn.get(p))&&wd(a,p),m=m.createElement("link"),wt(m);var w=m;w._p=new Promise(function(T,j){w.onload=T,w.onerror=j}),Vt(m,"link",a),r.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=uu.bind(u),t.addEventListener("load",r),t.addEventListener("error",r))}}function oC(){if(So===null)throw Error(l(475));var t=So;return t.stylesheets&&t.count===0&&Ed(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Ed(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 uu(){if(this.count--,this.count===0){if(this.stylesheets)Ed(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function Ed(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,r.forEach(sC,t),cu=null,uu.call(t))}function sC(t,r){if(!(r.state.loading&4)){var a=cu.get(t);if(a)var u=a.get(null);else{a=new Map,cu.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var w=p[m];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(a.set(w.dataset.precedence,w),u=w)}u&&a.set(null,u)}p=r.instance,w=p.getAttribute("data-precedence"),m=a.get(w)||u,m===u&&a.set(null,p),a.set(w,p),this.count++,u=uu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var wo={$$typeof:O,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function uC(t,r,a,u,p,m,w,T){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=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function uv(t,r,a,u,p,m,w,T,j,F,G,Z){return t=new uC(t,r,a,w,T,j,F,Z),r=1,m===!0&&(r|=24),m=En(3,null,null,r),t.current=m,m.stateNode=t,r=lf(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:u,isDehydrated:a,cache:r},uf(m),t}function cv(t){return t?(t=Dl,t):Dl}function fv(t,r,a,u,p,m){p=cv(p),u.context===null?u.context=p:u.pendingContext=p,u=fi(r),u.payload={element:a},m=m===void 0?null:m,m!==null&&(u.callback=m),a=di(t,u,r),a!==null&&(On(a,t,r),Za(a,t,r))}function dv(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function Td(t,r){dv(t,r),(t=t.alternate)&&dv(t,r)}function hv(t){if(t.tag===13){var r=jl(t,67108864);r!==null&&On(r,t,67108864),Td(t,67108864)}}var fu=!0;function cC(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=2,kd(t,r,a,u)}finally{X.p=m,B.T=p}}function fC(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=8,kd(t,r,a,u)}finally{X.p=m,B.T=p}}function kd(t,r,a,u){if(fu){var p=Ad(u);if(p===null)hd(t,r,u,du,a),mv(t,u);else if(hC(p,t,r,a,u))u.stopPropagation();else if(mv(t,u),r&4&&-1<dC.indexOf(t)){for(;p!==null;){var m=wn(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var w=Be(m.pendingLanes);if(w!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;w;){var j=1<<31-ye(w);T.entanglements[1]|=j,w&=~j}pr(m),(Ke&6)===0&&(Ks=Mt()+500,mo(0))}}break;case 13:T=jl(m,2),T!==null&&On(T,m,2),Zs(),Td(m,2)}if(m=Ad(u),m===null&&hd(t,r,u,du,a),m===p)break;p=m}p!==null&&u.stopPropagation()}else hd(t,r,u,null,a)}}function Ad(t){return t=Nc(t),_d(t)}var du=null;function _d(t){if(du=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 du=t,null}function pv(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(Zn()){case xn:return 2;case Ge:return 8;case Dn:case Ar:return 32;case or:return 268435456;default:return 32}default:return 32}}var Od=!1,Ti=null,ki=null,Ai=null,Co=new Map,Eo=new Map,_i=[],dC="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 mv(t,r){switch(t){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":Co.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(r.pointerId)}}function To(t,r,a,u,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},r!==null&&(r=wn(r),r!==null&&hv(r)),t):(t.eventSystemFlags|=u,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function hC(t,r,a,u,p){switch(r){case"focusin":return Ti=To(Ti,t,r,a,u,p),!0;case"dragenter":return ki=To(ki,t,r,a,u,p),!0;case"mouseover":return Ai=To(Ai,t,r,a,u,p),!0;case"pointerover":var m=p.pointerId;return Co.set(m,To(Co.get(m)||null,t,r,a,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Eo.set(m,To(Eo.get(m)||null,t,r,a,u,p)),!0}return!1}function yv(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=Gt(u);var p=jl(a,u);p!==null&&On(p,a,u),Td(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 hu(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=Ad(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Rc=u,a.target.dispatchEvent(u),Rc=null}else return r=wn(a),r!==null&&hv(r),t.blockedOn=a,!1;r.shift()}return!0}function gv(t,r,a){hu(t)&&a.delete(r)}function pC(){Od=!1,Ti!==null&&hu(Ti)&&(Ti=null),ki!==null&&hu(ki)&&(ki=null),Ai!==null&&hu(Ai)&&(Ai=null),Co.forEach(gv),Eo.forEach(gv)}function pu(t,r){t.blockedOn===r&&(t.blockedOn=null,Od||(Od=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pC)))}var mu=null;function vv(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=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(_d(u||a)===null)continue;break}var m=wn(a);m!==null&&(t.splice(r,3),r-=3,_f(m,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}function ko(t){function r(j){return pu(j,t)}Ti!==null&&pu(Ti,t),ki!==null&&pu(ki,t),Ai!==null&&pu(Ai,t),Co.forEach(r),Eo.forEach(r);for(var a=0;a<_i.length;a++){var u=_i[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<_i.length&&(a=_i[0],a.blockedOn===null);)yv(a),a.blockedOn===null&&_i.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],m=a[u+1],w=p[he]||null;if(typeof m=="function")w||vv(a);else if(w){var T=null;if(m&&m.hasAttribute("formAction")){if(p=m,w=m[he]||null)T=w.formAction;else if(_d(p)!==null)continue}else T=w.action;typeof T=="function"?a[u+1]=T:(a.splice(u,3),u-=3),vv(a)}}}function Rd(t){this._internalRoot=t}yu.prototype.render=Rd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,u=_n();fv(a,u,t,r,null,null)},yu.prototype.unmount=Rd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;fv(t.current,2,null,t,null,null),Zs(),r[we]=null}};function yu(t){this._internalRoot=t}yu.prototype.unstable_scheduleHydration=function(t){if(t){var r=De();t={blockedOn:null,target:t,priority:r};for(var a=0;a<_i.length&&r!==0&&r<_i[a].priority;a++);_i.splice(a,0,t),a===0&&yv(t)}};var bv=n.version;if(bv!=="19.1.0")throw Error(l(527,bv,"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=h(r),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var mC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{$=gu.inject(mC),W=gu}catch{}}return _o.createRoot=function(t,r){if(!o(t))throw Error(l(299));var a=!1,u="",p=Ly,m=zy,w=Uy,T=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&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks)),r=uv(t,1,!1,null,null,a,u,p,m,w,T,null),t[we]=r.current,dd(t),new Rd(r)},_o.hydrateRoot=function(t,r,a){if(!o(t))throw Error(l(299));var u=!1,p="",m=Ly,w=zy,T=Uy,j=null,F=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(F=a.formState)),r=uv(t,1,!0,r,a??null,u,p,m,w,T,j,F),r.context=cv(null),a=r.current,u=_n(),u=Gt(u),p=fi(u),p.callback=null,di(a,p,u),a=u,r.current.lanes=a,Mn(r,a),pr(r),t[we]=r.current,dd(t),new yu(r)},_o.version="19.1.0",_o}var Ov;function EC(){if(Ov)return Dd.exports;Ov=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(),Dd.exports=CC(),Dd.exports}var TC=EC();const kC=ba(TC);var Oo={},Rv;function AC(){if(Rv)return Oo;Rv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=c,Oo.serialize=d;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,b){const S=new s,k=x.length;if(k<2)return S;const _=(b==null?void 0:b.decode)||y;let A=0;do{const N=x.indexOf("=",A);if(N===-1)break;const O=x.indexOf(";",A),L=O===-1?k:O;if(N>L){A=x.lastIndexOf(";",N-1)+1;continue}const q=f(x,A,N),M=h(x,N,q),Y=x.slice(q,M);if(S[Y]===void 0){let ee=f(x,N+1,L),ie=h(x,L,ee);const z=_(x.slice(ee,ie));S[Y]=z}A=L+1}while(A<k);return S}function f(x,b,S){do{const k=x.charCodeAt(b);if(k!==32&&k!==9)return b}while(++b<S);return S}function h(x,b,S){for(;b>S;){const k=x.charCodeAt(--b);if(k!==32&&k!==9)return b+1}return S}function d(x,b,S){const k=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const _=k(b);if(!n.test(_))throw new TypeError(`argument val is invalid: ${b}`);let A=x+"="+_;if(!S)return A;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);A+="; Max-Age="+S.maxAge}if(S.domain){if(!i.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);A+="; Domain="+S.domain}if(S.path){if(!l.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);A+="; Path="+S.path}if(S.expires){if(!g(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);A+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(A+="; HttpOnly"),S.secure&&(A+="; Secure"),S.partitioned&&(A+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.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: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.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: ${S.sameSite}`)}return A}function y(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return o.call(x)==="[object Date]"}return Oo}AC();var Nv="popstate";function _C(e={}){function n(l,o){let{pathname:s,search:c,hash:f}=l.location;return dh("",{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:Po(o)}return RC(n,i,null,e)}function ot(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function OC(){return Math.random().toString(36).substring(2,10)}function jv(e,n){return{usr:e.state,key:e.key,idx:n}}function dh(e,n,i=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?xa(n):n,state:i,key:n&&n.key||l||OC()}}function Po({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 xa(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 RC(e,n,i,l={}){let{window:o=document.defaultView,v5Compat:s=!1}=l,c=o.history,f="POP",h=null,d=y();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function y(){return(c.state||{idx:null}).idx}function g(){f="POP";let _=y(),A=_==null?null:_-d;d=_,h&&h({action:f,location:k.location,delta:A})}function x(_,A){f="PUSH";let N=dh(k.location,_,A);d=y()+1;let O=jv(N,d),L=k.createHref(N);try{c.pushState(O,"",L)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;o.location.assign(L)}s&&h&&h({action:f,location:k.location,delta:1})}function b(_,A){f="REPLACE";let N=dh(k.location,_,A);d=y();let O=jv(N,d),L=k.createHref(N);c.replaceState(O,"",L),s&&h&&h({action:f,location:k.location,delta:0})}function S(_){return NC(_)}let k={get action(){return f},get location(){return e(o,c)},listen(_){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Nv,g),h=_,()=>{o.removeEventListener(Nv,g),h=null}},createHref(_){return n(o,_)},createURL:S,encodeLocation(_){let A=S(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:b,go(_){return c.go(_)}};return k}function NC(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ot(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Po(e);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function bx(e,n,i="/"){return jC(e,n,i,!1)}function jC(e,n,i,l){let o=typeof n=="string"?xa(n):n,s=Kr(o.pathname||"/",i);if(s==null)return null;let c=xx(e);DC(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=IC(s);f=QC(c[h],d,l)}return f}function xx(e,n=[],i=[],l=""){let o=(s,c,f)=>{let h={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};h.relativePath.startsWith("/")&&(ot(h.relativePath.startsWith(l),`Absolute route path "${h.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(l.length));let d=Gr([l,h.relativePath]),y=i.concat(h);s.children&&s.children.length>0&&(ot(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),xx(s.children,n,y,d)),!(s.path==null&&!s.index)&&n.push({path:d,score:HC(d,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,c);else for(let h of Sx(s.path))o(s,c,h)}),n}function Sx(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=Sx(l.join("/")),f=[];return f.push(...c.map(h=>h===""?s:[s,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function DC(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:FC(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var MC=/^:[\w-]+$/,LC=3,zC=2,UC=1,BC=10,qC=-2,Dv=e=>e==="*";function HC(e,n){let i=e.split("/"),l=i.length;return i.some(Dv)&&(l+=qC),n&&(l+=zC),i.filter(o=>!Dv(o)).reduce((o,s)=>o+(MC.test(s)?LC:s===""?UC:BC),l)}function FC(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 QC(e,n,i=!1){let{routesMeta:l}=e,o={},s="/",c=[];for(let f=0;f<l.length;++f){let h=l[f],d=f===l.length-1,y=s==="/"?n:n.slice(s.length)||"/",g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},y),x=h.route;if(!g&&d&&i&&!l[l.length-1].route.index&&(g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Gr([s,g.pathname]),pathnameBase:GC(Gr([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=Gr([s,g.pathnameBase]))}return c}function Bu(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((d,{paramName:y,isOptional:g},x)=>{if(y==="*"){let S=f[x]||"";c=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[x];return g&&!b?d[y]=void 0:d[y]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function PC(e,n=!1,i=!0){nr(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,h)=>(l.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),l]}function IC(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nr(!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 Kr(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 VC(e,n="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?xa(e):e;return{pathname:i?i.startsWith("/")?i:$C(i,n):n,search:KC(l),hash:XC(o)}}function $C(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 Ud(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 YC(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Kh(e){let n=YC(e);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function Xh(e,n,i,l=!1){let o;typeof e=="string"?o=xa(e):(o={...e},ot(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Ud("#","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 h=VC(o,f),d=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(d||y)&&(h.pathname+="/"),h}var Gr=e=>e.join("/").replace(/\/\/+/g,"/"),GC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),KC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ZC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var wx=["POST","PUT","PATCH","DELETE"];new Set(wx);var JC=["GET",...wx];new Set(JC);var Sa=E.createContext(null);Sa.displayName="DataRouter";var rc=E.createContext(null);rc.displayName="DataRouterState";var Cx=E.createContext({isTransitioning:!1});Cx.displayName="ViewTransition";var WC=E.createContext(new Map);WC.displayName="Fetchers";var eE=E.createContext(null);eE.displayName="Await";var lr=E.createContext(null);lr.displayName="Navigation";var Xo=E.createContext(null);Xo.displayName="Location";var wr=E.createContext({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var Zh=E.createContext(null);Zh.displayName="RouteError";function tE(e,{relative:n}={}){ot(wa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=E.useContext(lr),{hash:o,pathname:s,search:c}=Zo(e,{relative:n}),f=s;return i!=="/"&&(f=s==="/"?i:Gr([i,s])),l.createHref({pathname:f,search:c,hash:o})}function wa(){return E.useContext(Xo)!=null}function vn(){return ot(wa(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xo).location}var Ex="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tx(e){E.useContext(lr).static||E.useLayoutEffect(e)}function Jr(){let{isDataRoute:e}=E.useContext(wr);return e?pE():nE()}function nE(){ot(wa(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Sa),{basename:n,navigator:i}=E.useContext(lr),{matches:l}=E.useContext(wr),{pathname:o}=vn(),s=JSON.stringify(Kh(l)),c=E.useRef(!1);return Tx(()=>{c.current=!0}),E.useCallback((h,d={})=>{if(nr(c.current,Ex),!c.current)return;if(typeof h=="number"){i.go(h);return}let y=Xh(h,JSON.parse(s),o,d.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Gr([n,y.pathname])),(d.replace?i.replace:i.push)(y,d.state,d)},[n,i,s,o,e])}E.createContext(null);function Zo(e,{relative:n}={}){let{matches:i}=E.useContext(wr),{pathname:l}=vn(),o=JSON.stringify(Kh(i));return E.useMemo(()=>Xh(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function rE(e,n){return kx(e,n)}function kx(e,n,i,l){var N;ot(wa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:s}=E.useContext(lr),{matches:c}=E.useContext(wr),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",y=f?f.pathnameBase:"/",g=f&&f.route;{let O=g&&g.path||"";Ax(d,!g||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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.
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 Pp(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function hS(t){var r=Pp(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,m=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(w){u=""+w,m.call(this,w)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(w){u=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function cs(t){t._valueTracker||(t._valueTracker=hS(t))}function Ip(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return t&&(u=Pp(t)?t.checked?"true":"false":t.value),t=u,t!==a?(r.setValue(t),!0):!1}function fs(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 pS=/[\n"\\]/g;function Bn(t){return t.replace(pS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ac(t,r,a,u,p,m,w,T){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),r!=null?w==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Un(r)):t.value!==""+Un(r)&&(t.value=""+Un(r)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),r!=null?_c(t,w,Un(r)):a!=null?_c(t,w,Un(a)):u!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Un(T):t.removeAttribute("name")}function Vp(t,r,a,u,p,m,w,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;a=a!=null?""+Un(a):"",r=r!=null?""+Un(r):a,T||r===t.value||(t.value=r),t.defaultValue=r}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=T?t.checked:!!u,t.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function _c(t,r,a){r==="number"&&fs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function El(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 $p(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 Yp(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 Tl(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var mS=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 Gp(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||mS.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function Kp(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&&Gp(t,p,u)}else for(var m in r)r.hasOwnProperty(m)&&Gp(t,m,r[m])}function Oc(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 yS=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"]]),gS=/^[\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 ds(t){return gS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Rc=null;function Nc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var kl=null,Al=null;function Xp(t){var r=wn(t);if(r&&(t=r.stateNode)){var a=t[he]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ac(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));Ac(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&&Ip(u)}break e;case"textarea":$p(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&El(t,!!a.multiple,r,!1)}}}var jc=!1;function Zp(t,r,a){if(jc)return t(r,a);jc=!0;try{var u=t(r);return u}finally{if(jc=!1,(kl!==null||Al!==null)&&(Zs(),kl&&(r=kl,t=Al,Al=kl=null,Xp(r),t)))for(r=0;r<t.length;r++)Xp(t[r])}}function Ma(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 jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(jr)try{var La={};Object.defineProperty(La,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Dc=!1}var si=null,Mc=null,hs=null;function Jp(){if(hs)return hs;var t,r=Mc,a=r.length,u,p="value"in si?si.value:si.textContent,m=p.length;for(t=0;t<a&&r[t]===p[t];t++);var w=a-t;for(u=1;u<=w&&r[a-u]===p[m-u];u++);return hs=p.slice(t,1<u?1-u:void 0)}function ps(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 ms(){return!0}function Wp(){return!1}function fn(t){function r(a,u,p,m,w){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(a=t[T],this[T]=a?a(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ms:Wp,this.isPropagationStopped=Wp,this}return y(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=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),r}var Ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ys=fn(Ii),za=y({},Ii,{view:0,detail:0}),vS=fn(za),Lc,zc,Ua,gs=y({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==Ua&&(Ua&&t.type==="mousemove"?(Lc=t.screenX-Ua.screenX,zc=t.screenY-Ua.screenY):zc=Lc=0,Ua=t),Lc)},movementY:function(t){return"movementY"in t?t.movementY:zc}}),em=fn(gs),bS=y({},gs,{dataTransfer:0}),xS=fn(bS),SS=y({},za,{relatedTarget:0}),Uc=fn(SS),wS=y({},Ii,{animationName:0,elapsedTime:0,pseudoElement:0}),CS=fn(wS),ES=y({},Ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),TS=fn(ES),kS=y({},Ii,{data:0}),tm=fn(kS),AS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_S={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"},OS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=OS[t])?!!r[t]:!1}function Bc(){return RS}var NS=y({},za,{key:function(t){if(t.key){var r=AS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=ps(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_S[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(t){return t.type==="keypress"?ps(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ps(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),jS=fn(NS),DS=y({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=fn(DS),MS=y({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),LS=fn(MS),zS=y({},Ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),US=fn(zS),BS=y({},gs,{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}),qS=fn(BS),HS=y({},Ii,{newState:0,oldState:0}),FS=fn(HS),QS=[9,13,27,32],qc=jr&&"CompositionEvent"in window,Ba=null;jr&&"documentMode"in document&&(Ba=document.documentMode);var PS=jr&&"TextEvent"in window&&!Ba,rm=jr&&(!qc||Ba&&8<Ba&&11>=Ba),im=" ",lm=!1;function am(t,r){switch(t){case"keyup":return QS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _l=!1;function IS(t,r){switch(t){case"compositionend":return om(r);case"keypress":return r.which!==32?null:(lm=!0,im);case"textInput":return t=r.data,t===im&&lm?null:t;default:return null}}function VS(t,r){if(_l)return t==="compositionend"||!qc&&am(t,r)?(t=Jp(),hs=Mc=si=null,_l=!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 rm&&r.locale!=="ko"?null:r.data;default:return null}}var $S={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 sm(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!$S[t.type]:r==="textarea"}function um(t,r,a,u){kl?Al?Al.push(u):Al=[u]:kl=u,r=ru(r,"onChange"),0<r.length&&(a=new ys("onChange","change",null,a,u),t.push({event:a,listeners:r}))}var qa=null,Ha=null;function YS(t){Pg(t,0)}function vs(t){var r=Qi(t);if(Ip(r))return t}function cm(t,r){if(t==="change")return r}var fm=!1;if(jr){var Hc;if(jr){var Fc="oninput"in document;if(!Fc){var dm=document.createElement("div");dm.setAttribute("oninput","return;"),Fc=typeof dm.oninput=="function"}Hc=Fc}else Hc=!1;fm=Hc&&(!document.documentMode||9<document.documentMode)}function hm(){qa&&(qa.detachEvent("onpropertychange",pm),Ha=qa=null)}function pm(t){if(t.propertyName==="value"&&vs(Ha)){var r=[];um(r,Ha,t,Nc(t)),Zp(YS,r)}}function GS(t,r,a){t==="focusin"?(hm(),qa=r,Ha=a,qa.attachEvent("onpropertychange",pm)):t==="focusout"&&hm()}function KS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vs(Ha)}function XS(t,r){if(t==="click")return vs(r)}function ZS(t,r){if(t==="input"||t==="change")return vs(r)}function JS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Cn=typeof Object.is=="function"?Object.is:JS;function Fa(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(!un.call(r,p)||!Cn(t[p],r[p]))return!1}return!0}function mm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ym(t,r){var a=mm(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=mm(a)}}function gm(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?gm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function vm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=fs(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=fs(t.document)}return r}function Qc(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 WS=jr&&"documentMode"in document&&11>=document.documentMode,Ol=null,Pc=null,Qa=null,Ic=!1;function bm(t,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||Ol==null||Ol!==fs(u)||(u=Ol,"selectionStart"in u&&Qc(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}),Qa&&Fa(Qa,u)||(Qa=u,u=ru(Pc,"onSelect"),0<u.length&&(r=new ys("onSelect","select",null,r,a),t.push({event:r,listeners:u}),r.target=Ol)))}function Vi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var Rl={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Vc={},xm={};jr&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function $i(t){if(Vc[t])return Vc[t];if(!Rl[t])return t;var r=Rl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in xm)return Vc[t]=r[a];return t}var Sm=$i("animationend"),wm=$i("animationiteration"),Cm=$i("animationstart"),ew=$i("transitionrun"),tw=$i("transitionstart"),nw=$i("transitioncancel"),Em=$i("transitionend"),Tm=new Map,$c="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(" ");$c.push("scrollEnd");function Jn(t,r){Tm.set(t,r),ur(r,[t])}var km=new WeakMap;function qn(t,r){if(typeof t=="object"&&t!==null){var a=km.get(t);return a!==void 0?a:(r={value:t,source:r,stack:Qp(r)},km.set(t,r),r)}return{value:t,source:r,stack:Qp(r)}}var Hn=[],Nl=0,Yc=0;function bs(){for(var t=Nl,r=Yc=Nl=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 m=Hn[r];if(Hn[r++]=null,u!==null&&p!==null){var w=u.pending;w===null?p.next=p:(p.next=w.next,w.next=p),u.pending=p}m!==0&&Am(a,p,m)}}function xs(t,r,a,u){Hn[Nl++]=t,Hn[Nl++]=r,Hn[Nl++]=a,Hn[Nl++]=u,Yc|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Gc(t,r,a,u){return xs(t,r,a,u),Ss(t)}function jl(t,r){return xs(t,null,null,r),Ss(t)}function Am(t,r,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,m=t.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&r!==null&&(p=31-ye(a),t=m.hiddenUpdates,u=t[p],u===null?t[p]=[r]:u.push(r),r.lane=a|536870912),m):null}function Ss(t){if(50<po)throw po=0,td=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Dl={};function rw(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 rw(t,r,a,u)}function Kc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Dr(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 _m(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 ws(t,r,a,u,p,m){var w=0;if(u=t,typeof t=="function")Kc(t)&&(w=1);else if(typeof t=="string")w=lC(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=m,t;case S:return Yi(a.children,p,m,r);case k:w=8,p|=24;break;case _:return t=En(12,a,r,p|2),t.elementType=_,t.lanes=m,t;case q:return t=En(13,a,r,p),t.elementType=q,t.lanes=m,t;case M:return t=En(19,a,r,p),t.elementType=M,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case O:w=10;break e;case N:w=9;break e;case L:w=11;break e;case Y:w=14;break e;case ee:w=16,u=null;break e}w=29,a=Error(l(130,t===null?"null":typeof t,"")),u=null}return r=En(w,a,r,p),r.elementType=t,r.type=u,r.lanes=m,r}function Yi(t,r,a,u){return t=En(7,t,u,r),t.lanes=a,t}function Xc(t,r,a){return t=En(6,t,null,r),t.lanes=a,t}function Zc(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 Ml=[],Ll=0,Cs=null,Es=0,Fn=[],Qn=0,Gi=null,Mr=1,Lr="";function Ki(t,r){Ml[Ll++]=Es,Ml[Ll++]=Cs,Cs=t,Es=r}function Om(t,r,a){Fn[Qn++]=Mr,Fn[Qn++]=Lr,Fn[Qn++]=Gi,Gi=t;var u=Mr;t=Lr;var p=32-ye(u)-1;u&=~(1<<p),a+=1;var m=32-ye(r)+p;if(30<m){var w=p-p%5;m=(u&(1<<w)-1).toString(32),u>>=w,p-=w,Mr=1<<32-ye(r)+p|a<<p|u,Lr=m+t}else Mr=1<<m|a<<p|u,Lr=t}function Jc(t){t.return!==null&&(Ki(t,1),Om(t,1,0))}function Wc(t){for(;t===Cs;)Cs=Ml[--Ll],Ml[Ll]=null,Es=Ml[--Ll],Ml[Ll]=null;for(;t===Gi;)Gi=Fn[--Qn],Fn[Qn]=null,Lr=Fn[--Qn],Fn[Qn]=null,Mr=Fn[--Qn],Fn[Qn]=null}var an=null,mt=null,Ye=!1,Xi=null,cr=!1,ef=Error(l(519));function Zi(t){var r=Error(l(418,""));throw Va(qn(r,t)),ef}function Rm(t){var r=t.stateNode,a=t.type,u=t.memoizedProps;switch(r[le]=t,r[he]=u,a){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(a=0;a<yo.length;a++)Le(yo[a],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),Vp(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),cs(r);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),Yp(r,u.value,u.defaultValue,u.children),cs(r)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||Yg(r.textContent,a)?(u.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),u.onScroll!=null&&Le("scroll",r),u.onScrollEnd!=null&&Le("scrollend",r),u.onClick!=null&&(r.onclick=iu),r=!0):r=!1,r||Zi(t)}function Nm(t){for(an=t.return;an;)switch(an.tag){case 5:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:an=an.return}}function Pa(t){if(t!==an)return!1;if(!Ye)return Nm(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")||gd(t.type,t.memoizedProps)),a=!a),a&&mt&&Zi(t),Nm(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){mt=er(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}mt=null}}else r===27?(r=mt,Ei(t.type)?(t=Sd,Sd=null,mt=t):mt=r):mt=an?er(t.stateNode.nextSibling):null;return!0}function Ia(){mt=an=null,Ye=!1}function jm(){var t=Xi;return t!==null&&(pn===null?pn=t:pn.push.apply(pn,t),Xi=null),t}function Va(t){Xi===null?Xi=[t]:Xi.push(t)}var tf=I(null),Ji=null,zr=null;function ui(t,r,a){R(tf,r._currentValue),r._currentValue=a}function Ur(t){t._currentValue=tf.current,oe(tf)}function nf(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 rf(t,r,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var w=p.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=p;for(var j=0;j<r.length;j++)if(T.context===r[j]){m.lanes|=a,T=m.alternate,T!==null&&(T.lanes|=a),nf(m.return,a,t),u||(w=null);break e}m=T.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(l(341));w.lanes|=a,m=w.alternate,m!==null&&(m.lanes|=a),nf(w,a,t),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===t){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function $a(t,r,a,u){t=null;for(var p=r,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(l(387));if(w=w.memoizedProps,w!==null){var T=p.type;Cn(p.pendingProps.value,w.value)||(t!==null?t.push(T):t=[T])}}else if(p===st.current){if(w=p.alternate,w===null)throw Error(l(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(wo):t=[wo])}p=p.return}t!==null&&rf(r,t,a,u),r.flags|=262144}function Ts(t){for(t=t.firstContext;t!==null;){if(!Cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wi(t){Ji=t,zr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Dm(Ji,t)}function ks(t,r){return Ji===null&&Wi(t),Dm(t,r)}function Dm(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},zr===null){if(t===null)throw Error(l(308));zr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else zr=zr.next=r;return a}var iw=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()})}},lw=e.unstable_scheduleCallback,aw=e.unstable_NormalPriority,Nt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lf(){return{controller:new iw,data:new Map,refCount:0}}function Ya(t){t.refCount--,t.refCount===0&&lw(aw,function(){t.controller.abort()})}var Ga=null,af=0,zl=0,Ul=null;function ow(t,r){if(Ga===null){var a=Ga=[];af=0,zl=sd(),Ul={status:"pending",value:void 0,then:function(u){a.push(u)}}}return af++,r.then(Mm,Mm),r}function Mm(){if(--af===0&&Ga!==null){Ul!==null&&(Ul.status="fulfilled");var t=Ga;Ga=null,zl=0,Ul=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function sw(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 Lm=B.S;B.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&ow(t,r),Lm!==null&&Lm(t,r)};var el=I(null);function of(){var t=el.current;return t!==null?t:rt.pooledCache}function As(t,r){r===null?R(el,el.current):R(el,r.pool)}function zm(){var t=of();return t===null?null:{parent:Nt._currentValue,pool:t}}var Ka=Error(l(460)),Um=Error(l(474)),_s=Error(l(542)),sf={then:function(){}};function Bm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Os(){}function qm(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Os,Os),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Fm(t),t;default:if(typeof r.status=="string")r.then(Os,Os);else{if(t=rt,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,Fm(t),t}throw Xa=r,Ka}}var Xa=null;function Hm(){if(Xa===null)throw Error(l(459));var t=Xa;return Xa=null,t}function Fm(t){if(t===Ka||t===_s)throw Error(l(483))}var ci=!1;function uf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(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 fi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function di(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=Ss(t),Am(t,null,a),r}return xs(t,u,r,a),Ss(t)}function Za(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,xt(t,a)}}function ff(t,r){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=w:m=m.next=w,a=a.next}while(a!==null);m===null?p=m=r:m=m.next=r}else p=m=r;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,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 df=!1;function Ja(){if(df){var t=Ul;if(t!==null)throw t}}function Wa(t,r,a,u){df=!1;var p=t.updateQueue;ci=!1;var m=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var j=T,F=j.next;j.next=null,w===null?m=F:w.next=F,w=j;var G=t.alternate;G!==null&&(G=G.updateQueue,T=G.lastBaseUpdate,T!==w&&(T===null?G.firstBaseUpdate=F:T.next=F,G.lastBaseUpdate=j))}if(m!==null){var Z=p.baseState;w=0,G=F=j=null,T=m;do{var Q=T.lane&-536870913,P=Q!==T.lane;if(P?(qe&Q)===Q:(u&Q)===Q){Q!==0&&Q===zl&&(df=!0),G!==null&&(G=G.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ee=t,Se=T;Q=r;var We=a;switch(Se.tag){case 1:if(Ee=Se.payload,typeof Ee=="function"){Z=Ee.call(We,Z,Q);break e}Z=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Se.payload,Q=typeof Ee=="function"?Ee.call(We,Z,Q):Ee,Q==null)break e;Z=y({},Z,Q);break e;case 2:ci=!0}}Q=T.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:T.tag,payload:T.payload,callback:T.callback,next:null},G===null?(F=G=P,j=Z):G=G.next=P,w|=Q;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;P=T,T=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,m===null&&(p.shared.lanes=0),xi|=w,t.lanes=w,t.memoizedState=Z}}function Qm(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function Pm(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Qm(a[t],r)}var Bl=I(null),Rs=I(0);function Im(t,r){t=Ir,R(Rs,t),R(Bl,r),Ir=t|r.baseLanes}function hf(){R(Rs,Ir),R(Bl,Bl.current)}function pf(){Ir=Rs.current,oe(Bl),oe(Rs)}var hi=0,Re=null,Ze=null,Tt=null,Ns=!1,ql=!1,tl=!1,js=0,eo=0,Hl=null,uw=0;function Ct(){throw Error(l(321))}function mf(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 yf(t,r,a,u,p,m){return hi=m,Re=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,B.H=t===null||t.memoizedState===null?Ay:_y,tl=!1,m=a(u,p),tl=!1,ql&&(m=$m(r,a,u,p)),Vm(t),m}function Vm(t){B.H=Bs;var r=Ze!==null&&Ze.next!==null;if(hi=0,Tt=Ze=Re=null,Ns=!1,eo=0,Hl=null,r)throw Error(l(300));t===null||Bt||(t=t.dependencies,t!==null&&Ts(t)&&(Bt=!0))}function $m(t,r,a,u){Re=t;var p=0;do{if(ql&&(Hl=null),eo=0,ql=!1,25<=p)throw Error(l(301));if(p+=1,Tt=Ze=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=yw,m=r(a,u)}while(ql);return m}function cw(){var t=B.H,r=t.useState()[0];return r=typeof r.then=="function"?to(r):r,t=t.useState()[0],(Ze!==null?Ze.memoizedState:null)!==t&&(Re.flags|=1024),r}function gf(){var t=js!==0;return js=0,t}function vf(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function bf(t){if(Ns){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ns=!1}hi=0,Tt=Ze=Re=null,ql=!1,eo=js=0,Hl=null}function dn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Re.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function kt(){if(Ze===null){var t=Re.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var r=Tt===null?Re.memoizedState:Tt.next;if(r!==null)Tt=r,Ze=t;else{if(t===null)throw Re.alternate===null?Error(l(467)):Error(l(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Tt===null?Re.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(t){var r=eo;return eo+=1,Hl===null&&(Hl=[]),t=qm(Hl,t,r),r=Re,(Tt===null?r.memoizedState:Tt.next)===null&&(r=r.alternate,B.H=r===null||r.memoizedState===null?Ay:_y),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return to(t);if(t.$$typeof===O)return Zt(t)}throw Error(l(438,String(t)))}function Sf(t){var r=null,a=Re.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Re.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=xf(),Re.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]=z;return r.index++,a}function Br(t,r){return typeof r=="function"?r(t):r}function Ms(t){var r=kt();return wf(r,Ze,t)}function wf(t,r,a){var u=t.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=a;var p=t.baseQueue,m=u.pending;if(m!==null){if(p!==null){var w=p.next;p.next=m.next,m.next=w}r.baseQueue=p=m,u.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{r=p.next;var T=w=null,j=null,F=r,G=!1;do{var Z=F.lane&-536870913;if(Z!==F.lane?(qe&Z)===Z:(hi&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===zl&&(G=!0);else if((hi&Q)===Q){F=F.next,Q===zl&&(G=!0);continue}else Z={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(T=j=Z,w=m):j=j.next=Z,Re.lanes|=Q,xi|=Q;Z=F.action,tl&&a(m,Z),m=F.hasEagerState?F.eagerState:a(m,Z)}else Q={lane:Z,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(T=j=Q,w=m):j=j.next=Q,Re.lanes|=Z,xi|=Z;F=F.next}while(F!==null&&F!==r);if(j===null?w=m:j.next=T,!Cn(m,t.memoizedState)&&(Bt=!0,G&&(a=Ul,a!==null)))throw a;t.memoizedState=m,t.baseState=w,t.baseQueue=j,u.lastRenderedState=m}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Cf(t){var r=kt(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,m=r.memoizedState;if(p!==null){a.pending=null;var w=p=p.next;do m=t(m,w.action),w=w.next;while(w!==p);Cn(m,r.memoizedState)||(Bt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),a.lastRenderedState=m}return[m,u]}function Ym(t,r,a){var u=Re,p=kt(),m=Ye;if(m){if(a===void 0)throw Error(l(407));a=a()}else a=r();var w=!Cn((Ze||p).memoizedState,a);w&&(p.memoizedState=a,Bt=!0),p=p.queue;var T=Xm.bind(null,u,p,t);if(no(2048,8,T,[t]),p.getSnapshot!==r||w||Tt!==null&&Tt.memoizedState.tag&1){if(u.flags|=2048,Fl(9,Ls(),Km.bind(null,u,p,a,r),null),rt===null)throw Error(l(349));m||(hi&124)!==0||Gm(u,r,a)}return a}function Gm(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Re.updateQueue,r===null?(r=xf(),Re.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function Km(t,r,a,u){r.value=a,r.getSnapshot=u,Zm(r)&&Jm(t)}function Xm(t,r,a){return a(function(){Zm(r)&&Jm(t)})}function Zm(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Cn(t,a)}catch{return!0}}function Jm(t){var r=jl(t,2);r!==null&&On(r,t,2)}function Ef(t){var r=dn();if(typeof t=="function"){var a=t;if(t=a(),tl){me(!0);try{a()}finally{me(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:t},r}function Wm(t,r,a,u){return t.baseState=a,wf(t,Ze,typeof u=="function"?u:Br)}function fw(t,r,a,u,p){if(Us(t))throw Error(l(485));if(t=r.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){m.listeners.push(w)}};B.T!==null?a(!0):m.isTransition=!1,u(m),a=r.pending,a===null?(m.next=r.pending=m,ey(r,m)):(m.next=a.next,r.pending=a.next=m)}}function ey(t,r){var a=r.action,u=r.payload,p=t.state;if(r.isTransition){var m=B.T,w={};B.T=w;try{var T=a(p,u),j=B.S;j!==null&&j(w,T),ty(t,r,T)}catch(F){Tf(t,r,F)}finally{B.T=m}}else try{m=a(p,u),ty(t,r,m)}catch(F){Tf(t,r,F)}}function ty(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){ny(t,r,u)},function(u){return Tf(t,r,u)}):ny(t,r,a)}function ny(t,r,a){r.status="fulfilled",r.value=a,ry(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,ey(t,a)))}function Tf(t,r,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,ry(r),r=r.next;while(r!==u)}t.action=null}function ry(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function iy(t,r){return r}function ly(t,r){if(Ye){var a=rt.formState;if(a!==null){e:{var u=Re;if(Ye){if(mt){t:{for(var p=mt,m=cr;p.nodeType!==8;){if(!m){p=null;break t}if(p=er(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){mt=er(p.nextSibling),u=p.data==="F!";break e}}Zi(u)}u=!1}u&&(r=a[0])}}return a=dn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iy,lastRenderedState:r},a.queue=u,a=Ey.bind(null,Re,u),u.dispatch=a,u=Ef(!1),m=Rf.bind(null,Re,!1,u.queue),u=dn(),p={state:r,dispatch:null,action:t,pending:null},u.queue=p,a=fw.bind(null,Re,p,m,a),p.dispatch=a,u.memoizedState=t,[r,a,!1]}function ay(t){var r=kt();return oy(r,Ze,t)}function oy(t,r,a){if(r=wf(t,r,iy)[0],t=Ms(Br)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=to(r)}catch(w){throw w===Ka?_s:w}else u=r;r=kt();var p=r.queue,m=p.dispatch;return a!==r.memoizedState&&(Re.flags|=2048,Fl(9,Ls(),dw.bind(null,p,a),null)),[u,m,t]}function dw(t,r){t.action=r}function sy(t){var r=kt(),a=Ze;if(a!==null)return oy(r,a,t);kt(),r=r.memoizedState,a=kt();var u=a.queue.dispatch;return a.memoizedState=t,[r,u,!1]}function Fl(t,r,a,u){return t={tag:t,create:a,deps:u,inst:r,next:null},r=Re.updateQueue,r===null&&(r=xf(),Re.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 Ls(){return{destroy:void 0,resource:void 0}}function uy(){return kt().memoizedState}function zs(t,r,a,u){var p=dn();u=u===void 0?null:u,Re.flags|=t,p.memoizedState=Fl(1|r,Ls(),a,u)}function no(t,r,a,u){var p=kt();u=u===void 0?null:u;var m=p.memoizedState.inst;Ze!==null&&u!==null&&mf(u,Ze.memoizedState.deps)?p.memoizedState=Fl(r,m,a,u):(Re.flags|=t,p.memoizedState=Fl(1|r,m,a,u))}function cy(t,r){zs(8390656,8,t,r)}function fy(t,r){no(2048,8,t,r)}function dy(t,r){return no(4,2,t,r)}function hy(t,r){return no(4,4,t,r)}function py(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 my(t,r,a){a=a!=null?a.concat([t]):null,no(4,4,py.bind(null,r,t),a)}function kf(){}function yy(t,r){var a=kt();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&mf(r,u[1])?u[0]:(a.memoizedState=[t,r],t)}function gy(t,r){var a=kt();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&mf(r,u[1]))return u[0];if(u=t(),tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u}function Af(t,r,a){return a===void 0||(hi&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=xg(),Re.lanes|=t,xi|=t,a)}function vy(t,r,a,u){return Cn(a,r)?a:Bl.current!==null?(t=Af(t,a,u),Cn(t,r)||(Bt=!0),t):(hi&42)===0?(Bt=!0,t.memoizedState=a):(t=xg(),Re.lanes|=t,xi|=t,r)}function by(t,r,a,u,p){var m=X.p;X.p=m!==0&&8>m?m:8;var w=B.T,T={};B.T=T,Rf(t,!1,r,a);try{var j=p(),F=B.S;if(F!==null&&F(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=sw(j,u);ro(t,r,G,_n(t))}else ro(t,r,u,_n(t))}catch(Z){ro(t,r,{then:function(){},status:"rejected",reason:Z},_n())}finally{X.p=m,B.T=w}}function hw(){}function _f(t,r,a,u){if(t.tag!==5)throw Error(l(476));var p=xy(t).queue;by(t,p,r,ne,a===null?hw:function(){return Sy(t),a(u)})}function xy(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:Br,lastRenderedState:ne},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Sy(t){var r=xy(t).next.queue;ro(t,r,{},_n())}function Of(){return Zt(wo)}function wy(){return kt().memoizedState}function Cy(){return kt().memoizedState}function pw(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=_n();t=fi(a);var u=di(r,t,a);u!==null&&(On(u,r,a),Za(u,r,a)),r={cache:lf()},t.payload=r;return}r=r.return}}function mw(t,r,a){var u=_n();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Us(t)?Ty(r,a):(a=Gc(t,r,a,u),a!==null&&(On(a,t,u),ky(a,r,u)))}function Ey(t,r,a){var u=_n();ro(t,r,a,u)}function ro(t,r,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Us(t))Ty(r,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var w=r.lastRenderedState,T=m(w,a);if(p.hasEagerState=!0,p.eagerState=T,Cn(T,w))return xs(t,r,p,0),rt===null&&bs(),!1}catch{}finally{}if(a=Gc(t,r,p,u),a!==null)return On(a,t,u),ky(a,r,u),!0}return!1}function Rf(t,r,a,u){if(u={lane:2,revertLane:sd(),action:u,hasEagerState:!1,eagerState:null,next:null},Us(t)){if(r)throw Error(l(479))}else r=Gc(t,a,u,2),r!==null&&On(r,t,2)}function Us(t){var r=t.alternate;return t===Re||r!==null&&r===Re}function Ty(t,r){ql=Ns=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function ky(t,r,a){if((a&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,xt(t,a)}}var Bs={readContext:Zt,use:Ds,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},Ay={readContext:Zt,use:Ds,useCallback:function(t,r){return dn().memoizedState=[t,r===void 0?null:r],t},useContext:Zt,useEffect:cy,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,zs(4194308,4,py.bind(null,r,t),a)},useLayoutEffect:function(t,r){return zs(4194308,4,t,r)},useInsertionEffect:function(t,r){zs(4,2,t,r)},useMemo:function(t,r){var a=dn();r=r===void 0?null:r;var u=t();if(tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u},useReducer:function(t,r,a){var u=dn();if(a!==void 0){var p=a(r);if(tl){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=mw.bind(null,Re,t),[u.memoizedState,t]},useRef:function(t){var r=dn();return t={current:t},r.memoizedState=t},useState:function(t){t=Ef(t);var r=t.queue,a=Ey.bind(null,Re,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:kf,useDeferredValue:function(t,r){var a=dn();return Af(a,t,r)},useTransition:function(){var t=Ef(!1);return t=by.bind(null,Re,t.queue,!0,!1),dn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var u=Re,p=dn();if(Ye){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),rt===null)throw Error(l(349));(qe&124)!==0||Gm(u,r,a)}p.memoizedState=a;var m={value:a,getSnapshot:r};return p.queue=m,cy(Xm.bind(null,u,m,t),[t]),u.flags|=2048,Fl(9,Ls(),Km.bind(null,u,m,a,r),null),a},useId:function(){var t=dn(),r=rt.identifierPrefix;if(Ye){var a=Lr,u=Mr;a=(u&~(1<<32-ye(u)-1)).toString(32)+a,r="«"+r+"R"+a,a=js++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=uw++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Of,useFormState:ly,useActionState:ly,useOptimistic:function(t){var r=dn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Rf.bind(null,Re,!0,a),a.dispatch=r,[t,r]},useMemoCache:Sf,useCacheRefresh:function(){return dn().memoizedState=pw.bind(null,Re)}},_y={readContext:Zt,use:Ds,useCallback:yy,useContext:Zt,useEffect:fy,useImperativeHandle:my,useInsertionEffect:dy,useLayoutEffect:hy,useMemo:gy,useReducer:Ms,useRef:uy,useState:function(){return Ms(Br)},useDebugValue:kf,useDeferredValue:function(t,r){var a=kt();return vy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Ms(Br)[0],r=kt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Ym,useId:wy,useHostTransitionStatus:Of,useFormState:ay,useActionState:ay,useOptimistic:function(t,r){var a=kt();return Wm(a,Ze,t,r)},useMemoCache:Sf,useCacheRefresh:Cy},yw={readContext:Zt,use:Ds,useCallback:yy,useContext:Zt,useEffect:fy,useImperativeHandle:my,useInsertionEffect:dy,useLayoutEffect:hy,useMemo:gy,useReducer:Cf,useRef:uy,useState:function(){return Cf(Br)},useDebugValue:kf,useDeferredValue:function(t,r){var a=kt();return Ze===null?Af(a,t,r):vy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Cf(Br)[0],r=kt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Ym,useId:wy,useHostTransitionStatus:Of,useFormState:sy,useActionState:sy,useOptimistic:function(t,r){var a=kt();return Ze!==null?Wm(a,Ze,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Sf,useCacheRefresh:Cy},Ql=null,io=0;function qs(t){var r=io;return io+=1,Ql===null&&(Ql=[]),qm(Ql,t,r)}function lo(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Hs(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 Oy(t){var r=t._init;return r(t._payload)}function Ry(t){function r(U,D){if(t){var H=U.deletions;H===null?(U.deletions=[D],U.flags|=16):H.push(D)}}function a(U,D){if(!t)return null;for(;D!==null;)r(U,D),D=D.sibling;return null}function u(U){for(var D=new Map;U!==null;)U.key!==null?D.set(U.key,U):D.set(U.index,U),U=U.sibling;return D}function p(U,D){return U=Dr(U,D),U.index=0,U.sibling=null,U}function m(U,D,H){return U.index=H,t?(H=U.alternate,H!==null?(H=H.index,H<D?(U.flags|=67108866,D):H):(U.flags|=67108866,D)):(U.flags|=1048576,D)}function w(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function T(U,D,H,K){return D===null||D.tag!==6?(D=Xc(H,U.mode,K),D.return=U,D):(D=p(D,H),D.return=U,D)}function j(U,D,H,K){var de=H.type;return de===S?G(U,D,H.props.children,K,H.key):D!==null&&(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Oy(de)===D.type)?(D=p(D,H.props),lo(D,H),D.return=U,D):(D=ws(H.type,H.key,H.props,null,U.mode,K),lo(D,H),D.return=U,D)}function F(U,D,H,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=Zc(H,U.mode,K),D.return=U,D):(D=p(D,H.children||[]),D.return=U,D)}function G(U,D,H,K,de){return D===null||D.tag!==7?(D=Yi(H,U.mode,K,de),D.return=U,D):(D=p(D,H),D.return=U,D)}function Z(U,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Xc(""+D,U.mode,H),D.return=U,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return H=ws(D.type,D.key,D.props,null,U.mode,H),lo(H,D),H.return=U,H;case b:return D=Zc(D,U.mode,H),D.return=U,D;case ee:var K=D._init;return D=K(D._payload),Z(U,D,H)}if(se(D)||te(D))return D=Yi(D,U.mode,H,null),D.return=U,D;if(typeof D.then=="function")return Z(U,qs(D),H);if(D.$$typeof===O)return Z(U,ks(U,D),H);Hs(U,D)}return null}function Q(U,D,H,K){var de=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return de!==null?null:T(U,D,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===de?j(U,D,H,K):null;case b:return H.key===de?F(U,D,H,K):null;case ee:return de=H._init,H=de(H._payload),Q(U,D,H,K)}if(se(H)||te(H))return de!==null?null:G(U,D,H,K,null);if(typeof H.then=="function")return Q(U,D,qs(H),K);if(H.$$typeof===O)return Q(U,D,ks(U,H),K);Hs(U,H)}return null}function P(U,D,H,K,de){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return U=U.get(H)||null,T(D,U,""+K,de);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return U=U.get(K.key===null?H:K.key)||null,j(D,U,K,de);case b:return U=U.get(K.key===null?H:K.key)||null,F(D,U,K,de);case ee:var Ne=K._init;return K=Ne(K._payload),P(U,D,H,K,de)}if(se(K)||te(K))return U=U.get(H)||null,G(D,U,K,de,null);if(typeof K.then=="function")return P(U,D,H,qs(K),de);if(K.$$typeof===O)return P(U,D,H,ks(D,K),de);Hs(D,K)}return null}function Ee(U,D,H,K){for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null;ge!==null&&Ce<H.length;Ce++){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var Pe=Q(U,ge,H[Ce],K);if(Pe===null){ge===null&&(ge=Ht);break}t&&ge&&Pe.alternate===null&&r(U,ge),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe,ge=Ht}if(Ce===H.length)return a(U,ge),Ye&&Ki(U,Ce),de;if(ge===null){for(;Ce<H.length;Ce++)ge=Z(U,H[Ce],K),ge!==null&&(D=m(ge,D,Ce),Ne===null?de=ge:Ne.sibling=ge,Ne=ge);return Ye&&Ki(U,Ce),de}for(ge=u(ge);Ce<H.length;Ce++)Ht=P(ge,U,Ce,H[Ce],K),Ht!==null&&(t&&Ht.alternate!==null&&ge.delete(Ht.key===null?Ce:Ht.key),D=m(Ht,D,Ce),Ne===null?de=Ht:Ne.sibling=Ht,Ne=Ht);return t&&ge.forEach(function(Oi){return r(U,Oi)}),Ye&&Ki(U,Ce),de}function Se(U,D,H,K){if(H==null)throw Error(l(151));for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null,Pe=H.next();ge!==null&&!Pe.done;Ce++,Pe=H.next()){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var Oi=Q(U,ge,Pe.value,K);if(Oi===null){ge===null&&(ge=Ht);break}t&&ge&&Oi.alternate===null&&r(U,ge),D=m(Oi,D,Ce),Ne===null?de=Oi:Ne.sibling=Oi,Ne=Oi,ge=Ht}if(Pe.done)return a(U,ge),Ye&&Ki(U,Ce),de;if(ge===null){for(;!Pe.done;Ce++,Pe=H.next())Pe=Z(U,Pe.value,K),Pe!==null&&(D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return Ye&&Ki(U,Ce),de}for(ge=u(ge);!Pe.done;Ce++,Pe=H.next())Pe=P(ge,U,Ce,Pe.value,K),Pe!==null&&(t&&Pe.alternate!==null&&ge.delete(Pe.key===null?Ce:Pe.key),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return t&&ge.forEach(function(gC){return r(U,gC)}),Ye&&Ki(U,Ce),de}function We(U,D,H,K){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var de=H.key;D!==null;){if(D.key===de){if(de=H.type,de===S){if(D.tag===7){a(U,D.sibling),K=p(D,H.props.children),K.return=U,U=K;break e}}else if(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&Oy(de)===D.type){a(U,D.sibling),K=p(D,H.props),lo(K,H),K.return=U,U=K;break e}a(U,D);break}else r(U,D);D=D.sibling}H.type===S?(K=Yi(H.props.children,U.mode,K,H.key),K.return=U,U=K):(K=ws(H.type,H.key,H.props,null,U.mode,K),lo(K,H),K.return=U,U=K)}return w(U);case b:e:{for(de=H.key;D!==null;){if(D.key===de)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){a(U,D.sibling),K=p(D,H.children||[]),K.return=U,U=K;break e}else{a(U,D);break}else r(U,D);D=D.sibling}K=Zc(H,U.mode,K),K.return=U,U=K}return w(U);case ee:return de=H._init,H=de(H._payload),We(U,D,H,K)}if(se(H))return Ee(U,D,H,K);if(te(H)){if(de=te(H),typeof de!="function")throw Error(l(150));return H=de.call(H),Se(U,D,H,K)}if(typeof H.then=="function")return We(U,D,qs(H),K);if(H.$$typeof===O)return We(U,D,ks(U,H),K);Hs(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(a(U,D.sibling),K=p(D,H),K.return=U,U=K):(a(U,D),K=Xc(H,U.mode,K),K.return=U,U=K),w(U)):a(U,D)}return function(U,D,H,K){try{io=0;var de=We(U,D,H,K);return Ql=null,de}catch(ge){if(ge===Ka||ge===_s)throw ge;var Ne=En(29,ge,null,U.mode);return Ne.lanes=K,Ne.return=U,Ne}finally{}}}var Pl=Ry(!0),Ny=Ry(!1),Pn=I(null),fr=null;function pi(t){var r=t.alternate;R(jt,jt.current&1),R(Pn,t),fr===null&&(r===null||Bl.current!==null||r.memoizedState!==null)&&(fr=t)}function jy(t){if(t.tag===22){if(R(jt,jt.current),R(Pn,t),fr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(fr=t)}}else mi()}function mi(){R(jt,jt.current),R(Pn,Pn.current)}function qr(t){oe(Pn),fr===t&&(fr=null),oe(jt)}var jt=I(0);function Fs(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==="$?"||xd(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 Nf(t,r,a,u){r=t.memoizedState,a=a(u,r),a=a==null?r:y({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var jf={enqueueSetState:function(t,r,a){t=t._reactInternals;var u=_n(),p=fi(u);p.payload=r,a!=null&&(p.callback=a),r=di(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var u=_n(),p=fi(u);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=di(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=_n(),u=fi(a);u.tag=2,r!=null&&(u.callback=r),r=di(t,u,a),r!==null&&(On(r,t,a),Za(r,t,a))}};function Dy(t,r,a,u,p,m,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,m,w):r.prototype&&r.prototype.isPureReactComponent?!Fa(a,u)||!Fa(p,m):!0}function My(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&&jf.enqueueReplaceState(r,r.state,null)}function nl(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=y({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}var Qs=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 Ly(t){Qs(t)}function zy(t){console.error(t)}function Uy(t){Qs(t)}function Ps(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function By(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 Df(t,r,a){return a=fi(a),a.tag=3,a.payload={element:null},a.callback=function(){Ps(t,r)},a}function qy(t){return t=fi(t),t.tag=3,t}function Hy(t,r,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var m=u.value;t.payload=function(){return p(m)},t.callback=function(){By(r,a,u)}}var w=a.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){By(r,a,u),typeof p!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function gw(t,r,a,u,p){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&$a(r,a,p,!0),a=Pn.current,a!==null){switch(a.tag){case 13:return fr===null?rd():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===sf?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),ld(t,u,p)),!1;case 22:return a.flags|=65536,u===sf?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)),ld(t,u,p)),!1}throw Error(l(435,a.tag))}return ld(t,u,p),rd(),!1}if(Ye)return r=Pn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,u!==ef&&(t=Error(l(422),{cause:u}),Va(qn(t,a)))):(u!==ef&&(r=Error(l(423),{cause:u}),Va(qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=qn(u,a),p=Df(t.stateNode,u,p),ff(t,p),yt!==4&&(yt=2)),!1;var m=Error(l(520),{cause:u});if(m=qn(m,a),ho===null?ho=[m]:ho.push(m),yt!==4&&(yt=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=Df(a.stateNode,u,t),ff(a,t),!1;case 1:if(r=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Si===null||!Si.has(m))))return a.flags|=65536,p&=-p,a.lanes|=p,p=qy(p),Hy(p,t,a,u),ff(a,p),!1}a=a.return}while(a!==null);return!1}var Fy=Error(l(461)),Bt=!1;function Pt(t,r,a,u){r.child=t===null?Ny(r,null,a,u):Pl(r,t.child,a,u)}function Qy(t,r,a,u,p){a=a.render;var m=r.ref;if("ref"in u){var w={};for(var T in u)T!=="ref"&&(w[T]=u[T])}else w=u;return Wi(r),u=yf(t,r,a,w,m,p),T=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&T&&Jc(r),r.flags|=1,Pt(t,r,u,p),r.child)}function Py(t,r,a,u,p){if(t===null){var m=a.type;return typeof m=="function"&&!Kc(m)&&m.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=m,Iy(t,r,m,u,p)):(t=ws(a.type,null,u,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!Ff(t,p)){var w=m.memoizedProps;if(a=a.compare,a=a!==null?a:Fa,a(w,u)&&t.ref===r.ref)return Hr(t,r,p)}return r.flags|=1,t=Dr(m,u),t.ref=r.ref,t.return=r,r.child=t}function Iy(t,r,a,u,p){if(t!==null){var m=t.memoizedProps;if(Fa(m,u)&&t.ref===r.ref)if(Bt=!1,r.pendingProps=u=m,Ff(t,p))(t.flags&131072)!==0&&(Bt=!0);else return r.lanes=t.lanes,Hr(t,r,p)}return Mf(t,r,a,u,p)}function Vy(t,r,a){var u=r.pendingProps,p=u.children,m=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=m!==null?m.baseLanes|a:a,t!==null){for(p=r.child=t.child,m=0;p!==null;)m=m|p.lanes|p.childLanes,p=p.sibling;r.childLanes=m&~u}else r.childLanes=0,r.child=null;return $y(t,r,u,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&As(r,m!==null?m.cachePool:null),m!==null?Im(r,m):hf(),jy(r);else return r.lanes=r.childLanes=536870912,$y(t,r,m!==null?m.baseLanes|a:a,a)}else m!==null?(As(r,m.cachePool),Im(r,m),mi(),r.memoizedState=null):(t!==null&&As(r,null),hf(),mi());return Pt(t,r,p,a),r.child}function $y(t,r,a,u){var p=of();return p=p===null?null:{parent:Nt._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},t!==null&&As(r,null),hf(),jy(r),t!==null&&$a(t,r,u,!0),null}function Is(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 Mf(t,r,a,u,p){return Wi(r),a=yf(t,r,a,u,void 0,p),u=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,p),r.child)}function Yy(t,r,a,u,p,m){return Wi(r),r.updateQueue=null,a=$m(r,u,a,p),Vm(t),u=gf(),t!==null&&!Bt?(vf(t,r,m),Hr(t,r,m)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,m),r.child)}function Gy(t,r,a,u,p){if(Wi(r),r.stateNode===null){var m=Dl,w=a.contextType;typeof w=="object"&&w!==null&&(m=Zt(w)),m=new a(u,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=jf,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=u,m.state=r.memoizedState,m.refs={},uf(r),w=a.contextType,m.context=typeof w=="object"&&w!==null?Zt(w):Dl,m.state=r.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Nf(r,a,w,u),m.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&jf.enqueueReplaceState(m,m.state,null),Wa(r,u,m,p),Ja(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(t===null){m=r.stateNode;var T=r.memoizedProps,j=nl(a,T);m.props=j;var F=m.context,G=a.contextType;w=Dl,typeof G=="object"&&G!==null&&(w=Zt(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=r.pendingProps!==T,G||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||F!==w)&&My(r,m,u,w),ci=!1;var Q=r.memoizedState;m.state=Q,Wa(r,u,m,p),Ja(),F=r.memoizedState,T||Q!==F||ci?(typeof Z=="function"&&(Nf(r,a,Z,u),F=r.memoizedState),(j=ci||Dy(r,a,j,u,Q,F,w))?(G||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=F),m.props=u,m.state=F,m.context=w,u=j):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{m=r.stateNode,cf(t,r),w=r.memoizedProps,G=nl(a,w),m.props=G,Z=r.pendingProps,Q=m.context,F=a.contextType,j=Dl,typeof F=="object"&&F!==null&&(j=Zt(F)),T=a.getDerivedStateFromProps,(F=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==Z||Q!==j)&&My(r,m,u,j),ci=!1,Q=r.memoizedState,m.state=Q,Wa(r,u,m,p),Ja();var P=r.memoizedState;w!==Z||Q!==P||ci||t!==null&&t.dependencies!==null&&Ts(t.dependencies)?(typeof T=="function"&&(Nf(r,a,T,u),P=r.memoizedState),(G=ci||Dy(r,a,G,u,Q,P,j)||t!==null&&t.dependencies!==null&&Ts(t.dependencies))?(F||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,P,j)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=P),m.props=u,m.state=P,m.context=j,u=G):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),u=!1)}return m=u,Is(t,r),u=(r.flags&128)!==0,m||u?(m=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&u?(r.child=Pl(r,t.child,null,p),r.child=Pl(r,null,a,p)):Pt(t,r,a,p),r.memoizedState=m.state,t=r.child):t=Hr(t,r,p),t}function Ky(t,r,a,u){return Ia(),r.flags|=256,Pt(t,r,a,u),r.child}var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zf(t){return{baseLanes:t,cachePool:zm()}}function Uf(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=In),t}function Xy(t,r,a){var u=r.pendingProps,p=!1,m=(r.flags&128)!==0,w;if((w=m)||(w=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),w&&(p=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ye){if(p?pi(r):mi(),Ye){var T=mt,j;if(j=T){e:{for(j=T,T=cr;j.nodeType!==8;){if(!T){T=null;break e}if(j=er(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(r.memoizedState={dehydrated:T,treeContext:Gi!==null?{id:Mr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},j=En(18,null,null,0),j.stateNode=T,j.return=r,r.child=j,an=r,mt=null,j=!0):j=!1}j||Zi(r)}if(T=r.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return xd(T)?r.lanes=32:r.lanes=536870912,null;qr(r)}return T=u.children,u=u.fallback,p?(mi(),p=r.mode,T=Vs({mode:"hidden",children:T},p),u=Yi(u,p,a,null),T.return=r,u.return=r,T.sibling=u,r.child=T,p=r.child,p.memoizedState=zf(a),p.childLanes=Uf(t,w,a),r.memoizedState=Lf,u):(pi(r),Bf(r,T))}if(j=t.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)r.flags&256?(pi(r),r.flags&=-257,r=qf(t,r,a)):r.memoizedState!==null?(mi(),r.child=t.child,r.flags|=128,r=null):(mi(),p=u.fallback,T=r.mode,u=Vs({mode:"visible",children:u.children},T),p=Yi(p,T,a,null),p.flags|=2,u.return=r,p.return=r,u.sibling=p,r.child=u,Pl(r,t.child,null,a),u=r.child,u.memoizedState=zf(a),u.childLanes=Uf(t,w,a),r.memoizedState=Lf,r=p);else if(pi(r),xd(T)){if(w=T.nextSibling&&T.nextSibling.dataset,w)var F=w.dgst;w=F,u=Error(l(419)),u.stack="",u.digest=w,Va({value:u,source:null,stack:null}),r=qf(t,r,a)}else if(Bt||$a(t,r,a,!1),w=(a&t.childLanes)!==0,Bt||w){if(w=rt,w!==null&&(u=a&-a,u=(u&42)!==0?1:Gt(u),u=(u&(w.suspendedLanes|a))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,jl(t,u),On(w,t,u),Fy;T.data==="$?"||rd(),r=qf(t,r,a)}else T.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=j.treeContext,mt=er(T.nextSibling),an=r,Ye=!0,Xi=null,cr=!1,t!==null&&(Fn[Qn++]=Mr,Fn[Qn++]=Lr,Fn[Qn++]=Gi,Mr=t.id,Lr=t.overflow,Gi=r),r=Bf(r,u.children),r.flags|=4096);return r}return p?(mi(),p=u.fallback,T=r.mode,j=t.child,F=j.sibling,u=Dr(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,F!==null?p=Dr(F,p):(p=Yi(p,T,a,null),p.flags|=2),p.return=r,u.return=r,u.sibling=p,r.child=u,u=p,p=r.child,T=t.child.memoizedState,T===null?T=zf(a):(j=T.cachePool,j!==null?(F=Nt._currentValue,j=j.parent!==F?{parent:F,pool:F}:j):j=zm(),T={baseLanes:T.baseLanes|a,cachePool:j}),p.memoizedState=T,p.childLanes=Uf(t,w,a),r.memoizedState=Lf,u):(pi(r),a=t.child,t=a.sibling,a=Dr(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,t!==null&&(w=r.deletions,w===null?(r.deletions=[t],r.flags|=16):w.push(t)),r.child=a,r.memoizedState=null,a)}function Bf(t,r){return r=Vs({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Vs(t,r){return t=En(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function qf(t,r,a){return Pl(r,t.child,null,a),t=Bf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Zy(t,r,a){t.lanes|=r;var u=t.alternate;u!==null&&(u.lanes|=r),nf(t.return,r,a)}function Hf(t,r,a,u,p){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=a,m.tailMode=p)}function Jy(t,r,a){var u=r.pendingProps,p=u.revealOrder,m=u.tail;if(Pt(t,r,u.children,a),u=jt.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&&Zy(t,a,r);else if(t.tag===19)Zy(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(R(jt,u),p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&Fs(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),Hf(r,!1,p,a,m);break;case"backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Fs(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}Hf(r,!0,a,null,m);break;case"together":Hf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Hr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),xi|=r.lanes,(a&r.childLanes)===0)if(t!==null){if($a(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=Dr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Dr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function Ff(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ts(t)))}function vw(t,r,a){switch(r.tag){case 3:Oe(r,r.stateNode.containerInfo),ui(r,Nt,t.memoizedState.cache),Ia();break;case 27:case 5:Ft(r);break;case 4:Oe(r,r.stateNode.containerInfo);break;case 10:ui(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(pi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Xy(t,r,a):(pi(r),t=Hr(t,r,a),t!==null?t.sibling:null);pi(r);break;case 19:var p=(t.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||($a(t,r,a,!1),u=(a&r.childLanes)!==0),p){if(u)return Jy(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),R(jt,jt.current),u)break;return null;case 22:case 23:return r.lanes=0,Vy(t,r,a);case 24:ui(r,Nt,t.memoizedState.cache)}return Hr(t,r,a)}function Wy(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)Bt=!0;else{if(!Ff(t,a)&&(r.flags&128)===0)return Bt=!1,vw(t,r,a);Bt=(t.flags&131072)!==0}else Bt=!1,Ye&&(r.flags&1048576)!==0&&Om(r,Es,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")Kc(u)?(t=nl(u,t),r.tag=1,r=Gy(null,r,u,t,a)):(r.tag=0,r=Mf(null,r,u,t,a));else{if(u!=null){if(p=u.$$typeof,p===L){r.tag=11,r=Qy(null,r,u,t,a);break e}else if(p===Y){r.tag=14,r=Py(null,r,u,t,a);break e}}throw r=J(u)||u,Error(l(306,r,""))}}return r;case 0:return Mf(t,r,r.type,r.pendingProps,a);case 1:return u=r.type,p=nl(u,r.pendingProps),Gy(t,r,u,p,a);case 3:e:{if(Oe(r,r.stateNode.containerInfo),t===null)throw Error(l(387));u=r.pendingProps;var m=r.memoizedState;p=m.element,cf(t,r),Wa(r,u,null,a);var w=r.memoizedState;if(u=w.cache,ui(r,Nt,u),u!==m.cache&&rf(r,[Nt],a,!0),Ja(),u=w.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Ky(t,r,u,a);break e}else if(u!==p){p=qn(Error(l(424)),r),Va(p),r=Ky(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(mt=er(t.firstChild),an=r,Ye=!0,Xi=null,cr=!0,a=Ny(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ia(),u===p){r=Hr(t,r,a);break e}Pt(t,r,u,a)}r=r.child}return r;case 26:return Is(t,r),t===null?(a=rv(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ye||(a=r.type,t=r.pendingProps,u=lu(ce.current).createElement(a),u[le]=r,u[he]=t,Vt(u,a,t),wt(u),r.stateNode=u):r.memoizedState=rv(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ft(r),t===null&&Ye&&(u=r.stateNode=ev(r.type,r.pendingProps,ce.current),an=r,cr=!0,p=mt,Ei(r.type)?(Sd=p,mt=er(u.firstChild)):mt=p),Pt(t,r,r.pendingProps.children,a),Is(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ye&&((p=u=mt)&&(u=$w(u,r.type,r.pendingProps,cr),u!==null?(r.stateNode=u,an=r,mt=er(u.firstChild),cr=!1,p=!0):p=!1),p||Zi(r)),Ft(r),p=r.type,m=r.pendingProps,w=t!==null?t.memoizedProps:null,u=m.children,gd(p,m)?u=null:w!==null&&gd(p,w)&&(r.flags|=32),r.memoizedState!==null&&(p=yf(t,r,cw,null,null,a),wo._currentValue=p),Is(t,r),Pt(t,r,u,a),r.child;case 6:return t===null&&Ye&&((t=a=mt)&&(a=Yw(a,r.pendingProps,cr),a!==null?(r.stateNode=a,an=r,mt=null,t=!0):t=!1),t||Zi(r)),null;case 13:return Xy(t,r,a);case 4:return Oe(r,r.stateNode.containerInfo),u=r.pendingProps,t===null?r.child=Pl(r,null,u,a):Pt(t,r,u,a),r.child;case 11:return Qy(t,r,r.type,r.pendingProps,a);case 7:return Pt(t,r,r.pendingProps,a),r.child;case 8:return Pt(t,r,r.pendingProps.children,a),r.child;case 12:return Pt(t,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,ui(r,r.type,u.value),Pt(t,r,u.children,a),r.child;case 9:return p=r.type._context,u=r.pendingProps.children,Wi(r),p=Zt(p),u=u(p),r.flags|=1,Pt(t,r,u,a),r.child;case 14:return Py(t,r,r.type,r.pendingProps,a);case 15:return Iy(t,r,r.type,r.pendingProps,a);case 19:return Jy(t,r,a);case 31:return u=r.pendingProps,a=r.mode,u={mode:u.mode,children:u.children},t===null?(a=Vs(u,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=Dr(t.child,u),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return Vy(t,r,a);case 24:return Wi(r),u=Zt(Nt),t===null?(p=of(),p===null&&(p=rt,m=lf(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=a),p=m),r.memoizedState={parent:u,cache:p},uf(r),ui(r,Nt,p)):((t.lanes&a)!==0&&(cf(t,r),Wa(r,null,null,a),Ja()),p=t.memoizedState,m=r.memoizedState,p.parent!==u?(p={parent:u,cache:u},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),ui(r,Nt,u)):(u=m.cache,ui(r,Nt,u),u!==p.cache&&rf(r,[Nt],a,!0))),Pt(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Fr(t){t.flags|=4}function eg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sv(r)){if(r=Pn.current,r!==null&&((qe&4194048)===qe?fr!==null:(qe&62914560)!==qe&&(qe&536870912)===0||r!==fr))throw Xa=sf,Um;t.flags|=8192}}function $s(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Or():536870912,t.lanes|=r,Yl|=r)}function ao(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 ft(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 bw(t,r,a){var u=r.pendingProps;switch(Wc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(r),null;case 1:return ft(r),null;case 3:return a=r.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Ur(Nt),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Pa(r)?Fr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,jm())),ft(r),null;case 26:return a=r.memoizedState,t===null?(Fr(r),a!==null?(ft(r),eg(r,a)):(ft(r),r.flags&=-16777217)):a?a!==t.memoizedState?(Fr(r),ft(r),eg(r,a)):(ft(r),r.flags&=-16777217):(t.memoizedProps!==u&&Fr(r),ft(r),r.flags&=-16777217),null;case 27:bt(r),a=ce.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}t=fe.current,Pa(r)?Rm(r):(t=ev(p,u,a),r.stateNode=t,Fr(r))}return ft(r),null;case 5:if(bt(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}if(t=fe.current,Pa(r))Rm(r);else{switch(p=lu(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(Vt(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&&Fr(r)}}return ft(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(l(166));if(t=ce.current,Pa(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||Yg(t.nodeValue,a)),t||Zi(r)}else t=lu(t).createTextNode(u),t[le]=r,r.stateNode=t}return ft(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Pa(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 Ia(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ft(r),p=!1}else p=jm(),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 m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),$s(r,r.updateQueue),ft(r),null;case 4:return Ie(),t===null&&dd(r.stateNode.containerInfo),ft(r),null;case 10:return Ur(r.type),ft(r),null;case 19:if(oe(jt),p=r.memoizedState,p===null)return ft(r),null;if(u=(r.flags&128)!==0,m=p.rendering,m===null)if(u)ao(p,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Fs(t),m!==null){for(r.flags|=128,ao(p,!1),t=m.updateQueue,r.updateQueue=t,$s(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)_m(a,t),a=a.sibling;return R(jt,jt.current&1|2),r.child}t=t.sibling}p.tail!==null&&Mt()>Ks&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304)}else{if(!u)if(t=Fs(m),t!==null){if(r.flags|=128,u=!0,t=t.updateQueue,r.updateQueue=t,$s(r,t),ao(p,!0),p.tail===null&&p.tailMode==="hidden"&&!m.alternate&&!Ye)return ft(r),null}else 2*Mt()-p.renderingStartTime>Ks&&a!==536870912&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304);p.isBackwards?(m.sibling=r.child,r.child=m):(t=p.last,t!==null?t.sibling=m:r.child=m,p.last=m)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Mt(),r.sibling=null,t=jt.current,R(jt,u?t&1|2:t&1),r):(ft(r),null);case 22:case 23:return qr(r),pf(),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&&(ft(r),r.subtreeFlags&6&&(r.flags|=8192)):ft(r),a=r.updateQueue,a!==null&&$s(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(el),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ur(Nt),ft(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function xw(t,r){switch(Wc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ur(Nt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(qr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Ia()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return oe(jt),null;case 4:return Ie(),null;case 10:return Ur(r.type),null;case 22:case 23:return qr(r),pf(),t!==null&&oe(el),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ur(Nt),null;case 25:return null;default:return null}}function tg(t,r){switch(Wc(r),r.tag){case 3:Ur(Nt),Ie();break;case 26:case 27:case 5:bt(r);break;case 4:Ie();break;case 13:qr(r);break;case 19:oe(jt);break;case 10:Ur(r.type);break;case 22:case 23:qr(r),pf(),t!==null&&oe(el);break;case 24:Ur(Nt)}}function oo(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 m=a.create,w=a.inst;u=m(),w.destroy=u}a=a.next}while(a!==p)}}catch(T){et(r,r.return,T)}}function yi(t,r,a){try{var u=r.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&t)===t){var w=u.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,p=r;var j=a,F=T;try{F()}catch(G){et(p,j,G)}}}u=u.next}while(u!==m)}}catch(G){et(r,r.return,G)}}function ng(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{Pm(r,a)}catch(u){et(t,t.return,u)}}}function rg(t,r,a){a.props=nl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){et(t,r,u)}}function so(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){et(t,r,p)}}function dr(t,r){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){et(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){et(t,r,p)}else a.current=null}function ig(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){et(t,t.return,p)}}function Qf(t,r,a){try{var u=t.stateNode;Fw(u,t.type,a,r),u[he]=r}catch(p){et(t,t.return,p)}}function lg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ei(t.type)||t.tag===4}function Pf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||lg(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&&Ei(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 If(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=iu));else if(u!==4&&(u===27&&Ei(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(If(t,r,a),t=t.sibling;t!==null;)If(t,r,a),t=t.sibling}function Ys(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&&Ei(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Ys(t,r,a),t=t.sibling;t!==null;)Ys(t,r,a),t=t.sibling}function ag(t){var r=t.stateNode,a=t.memoizedProps;try{for(var u=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Vt(r,u,a),r[le]=t,r[he]=a}catch(m){et(t,t.return,m)}}var Qr=!1,Et=!1,Vf=!1,og=typeof WeakSet=="function"?WeakSet:Set,qt=null;function Sw(t,r){if(t=t.containerInfo,md=fu,t=vm(t),Qc(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,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var w=0,T=-1,j=-1,F=0,G=0,Z=t,Q=null;t:for(;;){for(var P;Z!==a||p!==0&&Z.nodeType!==3||(T=w+p),Z!==m||u!==0&&Z.nodeType!==3||(j=w+u),Z.nodeType===3&&(w+=Z.nodeValue.length),(P=Z.firstChild)!==null;)Q=Z,Z=P;for(;;){if(Z===t)break t;if(Q===a&&++F===p&&(T=w),Q===m&&++G===u&&(j=w),(P=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=P}a=T===-1||j===-1?null:{start:T,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(yd={focusedElem:t,selectionRange:a},fu=!1,qt=r;qt!==null;)if(r=qt,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,qt=t;else for(;qt!==null;){switch(r=qt,m=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,a=r,p=m.memoizedProps,m=m.memoizedState,u=a.stateNode;try{var Ee=nl(a.type,p,a.elementType===a.type);t=u.getSnapshotBeforeUpdate(Ee,m),u.__reactInternalSnapshotBeforeUpdate=t}catch(Se){et(a,a.return,Se)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)bd(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bd(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,qt=t;break}qt=r.return}}function sg(t,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:gi(t,a),u&4&&oo(5,a);break;case 1:if(gi(t,a),u&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(w){et(a,a.return,w)}else{var p=nl(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(w){et(a,a.return,w)}}u&64&&ng(a),u&512&&so(a,a.return);break;case 3:if(gi(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{Pm(t,r)}catch(w){et(a,a.return,w)}}break;case 27:r===null&&u&4&&ag(a);case 26:case 5:gi(t,a),r===null&&u&4&&ig(a),u&512&&so(a,a.return);break;case 12:gi(t,a);break;case 13:gi(t,a),u&4&&fg(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Rw.bind(null,a),Gw(t,a))));break;case 22:if(u=a.memoizedState!==null||Qr,!u){r=r!==null&&r.memoizedState!==null||Et,p=Qr;var m=Et;Qr=u,(Et=r)&&!m?vi(t,a,(a.subtreeFlags&8772)!==0):gi(t,a),Qr=p,Et=m}break;case 30:break;default:gi(t,a)}}function ug(t){var r=t.alternate;r!==null&&(t.alternate=null,ug(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Xt(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 lt=null,hn=!1;function Pr(t,r,a){for(a=a.child;a!==null;)cg(t,r,a),a=a.sibling}function cg(t,r,a){if(W&&typeof W.onCommitFiberUnmount=="function")try{W.onCommitFiberUnmount($,a)}catch{}switch(a.tag){case 26:Et||dr(a,r),Pr(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||dr(a,r);var u=lt,p=hn;Ei(a.type)&&(lt=a.stateNode,hn=!1),Pr(t,r,a),vo(a.stateNode),lt=u,hn=p;break;case 5:Et||dr(a,r);case 6:if(u=lt,p=hn,lt=null,Pr(t,r,a),lt=u,hn=p,lt!==null)if(hn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(m){et(a,r,m)}else try{lt.removeChild(a.stateNode)}catch(m){et(a,r,m)}break;case 18:lt!==null&&(hn?(t=lt,Jg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ko(t)):Jg(lt,a.stateNode));break;case 4:u=lt,p=hn,lt=a.stateNode.containerInfo,hn=!0,Pr(t,r,a),lt=u,hn=p;break;case 0:case 11:case 14:case 15:Et||yi(2,a,r),Et||yi(4,a,r),Pr(t,r,a);break;case 1:Et||(dr(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&rg(a,r,u)),Pr(t,r,a);break;case 21:Pr(t,r,a);break;case 22:Et=(u=Et)||a.memoizedState!==null,Pr(t,r,a),Et=u;break;default:Pr(t,r,a)}}function fg(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ko(t)}catch(a){et(r,r.return,a)}}function ww(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new og),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new og),r;default:throw Error(l(435,t.tag))}}function $f(t,r){var a=ww(t);r.forEach(function(u){var p=Nw.bind(null,t,u);a.has(u)||(a.add(u),u.then(p,p))})}function Tn(t,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],m=t,w=r,T=w;e:for(;T!==null;){switch(T.tag){case 27:if(Ei(T.type)){lt=T.stateNode,hn=!1;break e}break;case 5:lt=T.stateNode,hn=!1;break e;case 3:case 4:lt=T.stateNode.containerInfo,hn=!0;break e}T=T.return}if(lt===null)throw Error(l(160));cg(m,w,p),lt=null,hn=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)dg(r,t),r=r.sibling}var Wn=null;function dg(t,r){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Tn(r,t),kn(t),u&4&&(yi(3,t,t.return),oo(3,t),yi(5,t,t.return));break;case 1:Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),u&64&&Qr&&(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=Wn;if(Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),u&4){var m=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":m=p.getElementsByTagName("title")[0],(!m||m[St]||m[le]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(u),p.head.insertBefore(m,p.querySelector("head > title"))),Vt(m,u,a),m[le]=t,wt(m),u=m;break e;case"link":var w=av("link","href",p).get(u+(a.href||""));if(w){for(var T=0;T<w.length;T++)if(m=w[T],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){w.splice(T,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;case"meta":if(w=av("meta","content",p).get(u+(a.content||""))){for(T=0;T<w.length;T++)if(m=w[T],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){w.splice(T,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;default:throw Error(l(468,u))}m[le]=t,wt(m),u=m}t.stateNode=u}else ov(p,t.type,t.stateNode);else t.stateNode=lv(p,u,t.memoizedProps);else m!==u?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,u===null?ov(p,t.type,t.stateNode):lv(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Qf(t,t.memoizedProps,a.memoizedProps)}break;case 27:Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),a!==null&&u&4&&Qf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Tn(r,t),kn(t),u&512&&(Et||a===null||dr(a,a.return)),t.flags&32){p=t.stateNode;try{Tl(p,"")}catch(P){et(t,t.return,P)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Qf(t,p,a!==null?a.memoizedProps:p)),u&1024&&(Vf=!0);break;case 6:if(Tn(r,t),kn(t),u&4){if(t.stateNode===null)throw Error(l(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(P){et(t,t.return,P)}}break;case 3:if(su=null,p=Wn,Wn=au(r.containerInfo),Tn(r,t),Wn=p,kn(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{ko(r.containerInfo)}catch(P){et(t,t.return,P)}Vf&&(Vf=!1,hg(t));break;case 4:u=Wn,Wn=au(t.stateNode.containerInfo),Tn(r,t),kn(t),Wn=u;break;case 12:Tn(r,t),kn(t);break;case 13:Tn(r,t),kn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Jf=Mt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 22:p=t.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,F=Qr,G=Et;if(Qr=F||p,Et=G||j,Tn(r,t),Et=G,Qr=F,kn(t),u&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||j||Qr||Et||rl(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){j=a=r;try{if(m=j.stateNode,p)w=m.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{T=j.stateNode;var Z=j.memoizedProps.style,Q=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(P){et(j,j.return,P)}}}else if(r.tag===6){if(a===null){j=r;try{j.stateNode.nodeValue=p?"":j.memoizedProps}catch(P){et(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,$f(t,a))));break;case 19:Tn(r,t),kn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 30:break;case 21:break;default:Tn(r,t),kn(t)}}function kn(t){var r=t.flags;if(r&2){try{for(var a,u=t.return;u!==null;){if(lg(u)){a=u;break}u=u.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,m=Pf(t);Ys(t,m,p);break;case 5:var w=a.stateNode;a.flags&32&&(Tl(w,""),a.flags&=-33);var T=Pf(t);Ys(t,T,w);break;case 3:case 4:var j=a.stateNode.containerInfo,F=Pf(t);If(t,F,j);break;default:throw Error(l(161))}}catch(G){et(t,t.return,G)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function hg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;hg(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function gi(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)sg(t,r.alternate,r),r=r.sibling}function rl(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:yi(4,r,r.return),rl(r);break;case 1:dr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&rg(r,r.return,a),rl(r);break;case 27:vo(r.stateNode);case 26:case 5:dr(r,r.return),rl(r);break;case 22:r.memoizedState===null&&rl(r);break;case 30:rl(r);break;default:rl(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,m=r,w=m.flags;switch(m.tag){case 0:case 11:case 15:vi(p,m,a),oo(4,m);break;case 1:if(vi(p,m,a),u=m,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){et(u,u.return,F)}if(u=m,p=u.updateQueue,p!==null){var T=u.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)Qm(j[p],T)}catch(F){et(u,u.return,F)}}a&&w&64&&ng(m),so(m,m.return);break;case 27:ag(m);case 26:case 5:vi(p,m,a),a&&u===null&&w&4&&ig(m),so(m,m.return);break;case 12:vi(p,m,a);break;case 13:vi(p,m,a),a&&w&4&&fg(p,m);break;case 22:m.memoizedState===null&&vi(p,m,a),so(m,m.return);break;case 30:break;default:vi(p,m,a)}r=r.sibling}}function Yf(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&&Ya(a))}function Gf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ya(t))}function hr(t,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)pg(t,r,a,u),r=r.sibling}function pg(t,r,a,u){var p=r.flags;switch(r.tag){case 0:case 11:case 15:hr(t,r,a,u),p&2048&&oo(9,r);break;case 1:hr(t,r,a,u);break;case 3:hr(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&&Ya(t)));break;case 12:if(p&2048){hr(t,r,a,u),t=r.stateNode;try{var m=r.memoizedProps,w=m.id,T=m.onPostCommit;typeof T=="function"&&T(w,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){et(r,r.return,j)}}else hr(t,r,a,u);break;case 13:hr(t,r,a,u);break;case 23:break;case 22:m=r.stateNode,w=r.alternate,r.memoizedState!==null?m._visibility&2?hr(t,r,a,u):uo(t,r):m._visibility&2?hr(t,r,a,u):(m._visibility|=2,Il(t,r,a,u,(r.subtreeFlags&10256)!==0)),p&2048&&Yf(w,r);break;case 24:hr(t,r,a,u),p&2048&&Gf(r.alternate,r);break;default:hr(t,r,a,u)}}function Il(t,r,a,u,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var m=t,w=r,T=a,j=u,F=w.flags;switch(w.tag){case 0:case 11:case 15:Il(m,w,T,j,p),oo(8,w);break;case 23:break;case 22:var G=w.stateNode;w.memoizedState!==null?G._visibility&2?Il(m,w,T,j,p):uo(m,w):(G._visibility|=2,Il(m,w,T,j,p)),p&&F&2048&&Yf(w.alternate,w);break;case 24:Il(m,w,T,j,p),p&&F&2048&&Gf(w.alternate,w);break;default:Il(m,w,T,j,p)}r=r.sibling}}function uo(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:uo(a,u),p&2048&&Yf(u.alternate,u);break;case 24:uo(a,u),p&2048&&Gf(u.alternate,u);break;default:uo(a,u)}r=r.sibling}}var co=8192;function Vl(t){if(t.subtreeFlags&co)for(t=t.child;t!==null;)mg(t),t=t.sibling}function mg(t){switch(t.tag){case 26:Vl(t),t.flags&co&&t.memoizedState!==null&&oC(Wn,t.memoizedState,t.memoizedProps);break;case 5:Vl(t);break;case 3:case 4:var r=Wn;Wn=au(t.stateNode.containerInfo),Vl(t),Wn=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=co,co=16777216,Vl(t),co=r):Vl(t));break;default:Vl(t)}}function yg(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 fo(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];qt=u,vg(u,t)}yg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gg(t),t=t.sibling}function gg(t){switch(t.tag){case 0:case 11:case 15:fo(t),t.flags&2048&&yi(9,t,t.return);break;case 3:fo(t);break;case 12:fo(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Gs(t)):fo(t);break;default:fo(t)}}function Gs(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];qt=u,vg(u,t)}yg(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:yi(8,r,r.return),Gs(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,Gs(r));break;default:Gs(r)}t=t.sibling}}function vg(t,r){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:yi(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:Ya(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,qt=u;else e:for(a=t;qt!==null;){u=qt;var p=u.sibling,m=u.return;if(ug(u),u===a){qt=null;break e}if(p!==null){p.return=m,qt=p;break e}qt=m}}}var Cw={getCacheForType:function(t){var r=Zt(Nt),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},Ew=typeof WeakMap=="function"?WeakMap:Map,Ke=0,rt=null,Me=null,qe=0,Xe=0,An=null,bi=!1,$l=!1,Kf=!1,Ir=0,yt=0,xi=0,il=0,Xf=0,In=0,Yl=0,ho=null,pn=null,Zf=!1,Jf=0,Ks=1/0,Xs=null,Si=null,It=0,wi=null,Gl=null,Kl=0,Wf=0,ed=null,bg=null,po=0,td=null;function _n(){if((Ke&2)!==0&&qe!==0)return qe&-qe;if(B.T!==null){var t=zl;return t!==0?t:sd()}return De()}function xg(){In===0&&(In=(qe&536870912)===0||Ye?li():536870912);var t=Pn.current;return t!==null&&(t.flags|=32),In}function On(t,r,a){(t===rt&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(Xl(t,0),Ci(t,qe,In,!1)),Mn(t,a),((Ke&2)===0||t!==rt)&&(t===rt&&((Ke&2)===0&&(il|=a),yt===4&&Ci(t,qe,In,!1)),pr(t))}function Sg(t,r,a){if((Ke&6)!==0)throw Error(l(327));var u=!a&&(r&124)===0&&(r&t.expiredLanes)===0||Lt(t,r),p=u?Aw(t,r):id(t,r,!0),m=u;do{if(p===0){$l&&!u&&Ci(t,r,0,!1);break}else{if(a=t.current.alternate,m&&!Tw(a)){p=id(t,r,!1),m=!1;continue}if(p===2){if(m=r,t.errorRecoveryDisabledLanes&m)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var T=t;p=ho;var j=T.current.memoizedState.isDehydrated;if(j&&(Xl(T,w).flags|=256),w=id(T,w,!1),w!==2){if(Kf&&!j){T.errorRecoveryDisabledLanes|=m,il|=m,p=4;break e}m=pn,pn=p,m!==null&&(pn===null?pn=m:pn.push.apply(pn,m))}p=w}if(m=!1,p!==2)continue}}if(p===1){Xl(t,0),Ci(t,r,0,!0);break}e:{switch(u=t,m=p,m){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Ci(u,r,In,!bi);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=Jf+300-Mt(),10<p)){if(Ci(u,r,In,!bi),ut(u,0,!0)!==0)break e;u.timeoutHandle=Xg(wg.bind(null,u,a,pn,Xs,Zf,r,In,il,Yl,bi,m,2,-0,0),p);break e}wg(u,a,pn,Xs,Zf,r,In,il,Yl,bi,m,0,-0,0)}}break}while(!0);pr(t)}function wg(t,r,a,u,p,m,w,T,j,F,G,Z,Q,P){if(t.timeoutHandle=-1,Z=r.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(So={stylesheets:null,count:0,unsuspend:aC},mg(r),Z=sC(),Z!==null)){t.cancelPendingCommit=Z(Og.bind(null,t,r,m,a,u,p,w,T,j,G,1,Q,P)),Ci(t,m,w,!F);return}Og(t,r,m,a,u,p,w,T,j)}function Tw(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],m=p.getSnapshot;p=p.value;try{if(!Cn(m(),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 Ci(t,r,a,u){r&=~Xf,r&=~il,t.suspendedLanes|=r,t.pingedLanes&=~r,u&&(t.warmLanes|=r),u=t.expirationTimes;for(var p=r;0<p;){var m=31-ye(p),w=1<<m;u[m]=-1,p&=~w}a!==0&&Fi(t,a,r)}function Zs(){return(Ke&6)===0?(mo(0),!1):!0}function nd(){if(Me!==null){if(Xe===0)var t=Me.return;else t=Me,zr=Ji=null,bf(t),Ql=null,io=0,t=Me;for(;t!==null;)tg(t.alternate,t),t=t.return;Me=null}}function Xl(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Pw(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),nd(),rt=t,Me=a=Dr(t.current,null),qe=r,Xe=0,An=null,bi=!1,$l=Lt(t,r),Kf=!1,Yl=In=Xf=il=xi=yt=0,pn=ho=null,Zf=!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-ye(u),m=1<<p;r|=t[p],u&=~m}return Ir=r,bs(),a}function Cg(t,r){Re=null,B.H=Bs,r===Ka||r===_s?(r=Hm(),Xe=3):r===Um?(r=Hm(),Xe=4):Xe=r===Fy?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,An=r,Me===null&&(yt=1,Ps(t,qn(r,t.current)))}function Eg(){var t=B.H;return B.H=Bs,t===null?Bs:t}function Tg(){var t=B.A;return B.A=Cw,t}function rd(){yt=4,bi||(qe&4194048)!==qe&&Pn.current!==null||($l=!0),(xi&134217727)===0&&(il&134217727)===0||rt===null||Ci(rt,qe,In,!1)}function id(t,r,a){var u=Ke;Ke|=2;var p=Eg(),m=Tg();(rt!==t||qe!==r)&&(Xs=null,Xl(t,r)),r=!1;var w=yt;e:do try{if(Xe!==0&&Me!==null){var T=Me,j=An;switch(Xe){case 8:nd(),w=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(r=!0);var F=Xe;if(Xe=0,An=null,Zl(t,T,j,F),a&&$l){w=0;break e}break;default:F=Xe,Xe=0,An=null,Zl(t,T,j,F)}}kw(),w=yt;break}catch(G){Cg(t,G)}while(!0);return r&&t.shellSuspendCounter++,zr=Ji=null,Ke=u,B.H=p,B.A=m,Me===null&&(rt=null,qe=0,bs()),w}function kw(){for(;Me!==null;)kg(Me)}function Aw(t,r){var a=Ke;Ke|=2;var u=Eg(),p=Tg();rt!==t||qe!==r?(Xs=null,Ks=Mt()+500,Xl(t,r)):$l=Lt(t,r);e:do try{if(Xe!==0&&Me!==null){r=Me;var m=An;t:switch(Xe){case 1:Xe=0,An=null,Zl(t,r,m,1);break;case 2:case 9:if(Bm(m)){Xe=0,An=null,Ag(r);break}r=function(){Xe!==2&&Xe!==9||rt!==t||(Xe=7),pr(t)},m.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Bm(m)?(Xe=0,An=null,Ag(r)):(Xe=0,An=null,Zl(t,r,m,7));break;case 5:var w=null;switch(Me.tag){case 26:w=Me.memoizedState;case 5:case 27:var T=Me;if(!w||sv(w)){Xe=0,An=null;var j=T.sibling;if(j!==null)Me=j;else{var F=T.return;F!==null?(Me=F,Js(F)):Me=null}break t}}Xe=0,An=null,Zl(t,r,m,5);break;case 6:Xe=0,An=null,Zl(t,r,m,6);break;case 8:nd(),yt=6;break e;default:throw Error(l(462))}}_w();break}catch(G){Cg(t,G)}while(!0);return zr=Ji=null,B.H=u,B.A=p,Ke=a,Me!==null?0:(rt=null,qe=0,bs(),yt)}function _w(){for(;Me!==null&&!ri();)kg(Me)}function kg(t){var r=Wy(t.alternate,t,Ir);t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Ag(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=Yy(a,r,r.pendingProps,r.type,void 0,qe);break;case 11:r=Yy(a,r,r.pendingProps,r.type.render,r.ref,qe);break;case 5:bf(r);default:tg(a,r),r=Me=_m(r,Ir),r=Wy(a,r,Ir)}t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Zl(t,r,a,u){zr=Ji=null,bf(r),Ql=null,io=0;var p=r.return;try{if(gw(t,p,r,a,qe)){yt=1,Ps(t,qn(a,t.current)),Me=null;return}}catch(m){if(p!==null)throw Me=p,m;yt=1,Ps(t,qn(a,t.current)),Me=null;return}r.flags&32768?(Ye||u===1?t=!0:$l||(qe&536870912)!==0?t=!1:(bi=t=!0,(u===2||u===9||u===3||u===6)&&(u=Pn.current,u!==null&&u.tag===13&&(u.flags|=16384))),_g(r,t)):Js(r)}function Js(t){var r=t;do{if((r.flags&32768)!==0){_g(r,bi);return}t=r.return;var a=bw(r.alternate,r,Ir);if(a!==null){Me=a;return}if(r=r.sibling,r!==null){Me=r;return}Me=r=t}while(r!==null);yt===0&&(yt=5)}function _g(t,r){do{var a=xw(t.alternate,t);if(a!==null){a.flags&=32767,Me=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){Me=t;return}Me=t=a}while(t!==null);yt=6,Me=null}function Og(t,r,a,u,p,m,w,T,j){t.cancelPendingCommit=null;do Ws();while(It!==0);if((Ke&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(m=r.lanes|r.childLanes,m|=Yc,Hi(t,a,m,w,T,j),t===rt&&(Me=rt=null,qe=0),Gl=r,wi=t,Kl=a,Wf=m,ed=p,bg=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jw(Dn,function(){return Mg(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,p=X.p,X.p=2,w=Ke,Ke|=4;try{Sw(t,r,a)}finally{Ke=w,X.p=p,B.T=u}}It=1,Rg(),Ng(),jg()}}function Rg(){if(It===1){It=0;var t=wi,r=Gl,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{dg(r,t);var m=yd,w=vm(t.containerInfo),T=m.focusedElem,j=m.selectionRange;if(w!==T&&T&&T.ownerDocument&&gm(T.ownerDocument.documentElement,T)){if(j!==null&&Qc(T)){var F=j.start,G=j.end;if(G===void 0&&(G=F),"selectionStart"in T)T.selectionStart=F,T.selectionEnd=Math.min(G,T.value.length);else{var Z=T.ownerDocument||document,Q=Z&&Z.defaultView||window;if(Q.getSelection){var P=Q.getSelection(),Ee=T.textContent.length,Se=Math.min(j.start,Ee),We=j.end===void 0?Se:Math.min(j.end,Ee);!P.extend&&Se>We&&(w=We,We=Se,Se=w);var U=ym(T,Se),D=ym(T,We);if(U&&D&&(P.rangeCount!==1||P.anchorNode!==U.node||P.anchorOffset!==U.offset||P.focusNode!==D.node||P.focusOffset!==D.offset)){var H=Z.createRange();H.setStart(U.node,U.offset),P.removeAllRanges(),Se>We?(P.addRange(H),P.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),P.addRange(H))}}}}for(Z=[],P=T;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<Z.length;T++){var K=Z[T];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}fu=!!md,yd=md=null}finally{Ke=p,X.p=u,B.T=a}}t.current=r,It=2}}function Ng(){if(It===2){It=0;var t=wi,r=Gl,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ke;Ke|=4;try{sg(t,r.alternate,r)}finally{Ke=p,X.p=u,B.T=a}}It=3}}function jg(){if(It===4||It===3){It=0,Dt();var t=wi,r=Gl,a=Kl,u=bg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?It=5:(It=0,Gl=wi=null,Dg(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Si=null),be(a),r=r.stateNode,W&&typeof W.onCommitFiberRoot=="function")try{W.onCommitFiberRoot($,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=B.T,p=X.p,X.p=2,B.T=null;try{for(var m=t.onRecoverableError,w=0;w<u.length;w++){var T=u[w];m(T.value,{componentStack:T.stack})}}finally{B.T=r,X.p=p}}(Kl&3)!==0&&Ws(),pr(t),p=t.pendingLanes,(a&4194090)!==0&&(p&42)!==0?t===td?po++:(po=0,td=t):po=0,mo(0)}}function Dg(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ya(r)))}function Ws(t){return Rg(),Ng(),jg(),Mg()}function Mg(){if(It!==5)return!1;var t=wi,r=Wf;Wf=0;var a=be(Kl),u=B.T,p=X.p;try{X.p=32>a?32:a,B.T=null,a=ed,ed=null;var m=wi,w=Kl;if(It=0,Gl=wi=null,Kl=0,(Ke&6)!==0)throw Error(l(331));var T=Ke;if(Ke|=4,gg(m.current),pg(m,m.current,w,a),Ke=T,mo(0,!1),W&&typeof W.onPostCommitFiberRoot=="function")try{W.onPostCommitFiberRoot($,m)}catch{}return!0}finally{X.p=p,B.T=u,Dg(t,r)}}function Lg(t,r,a){r=qn(a,r),r=Df(t.stateNode,r,2),t=di(t,r,2),t!==null&&(Mn(t,2),pr(t))}function et(t,r,a){if(t.tag===3)Lg(t,t,a);else for(;r!==null;){if(r.tag===3){Lg(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=qy(2),u=di(r,a,2),u!==null&&(Hy(a,u,r,t),Mn(u,2),pr(u));break}}r=r.return}}function ld(t,r,a){var u=t.pingCache;if(u===null){u=t.pingCache=new Ew;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)||(Kf=!0,p.add(a),t=Ow.bind(null,t,r,a),r.then(t,t))}function Ow(t,r,a){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,rt===t&&(qe&a)===a&&(yt===4||yt===3&&(qe&62914560)===qe&&300>Mt()-Jf?(Ke&2)===0&&Xl(t,0):Xf|=a,Yl===qe&&(Yl=0)),pr(t)}function zg(t,r){r===0&&(r=Or()),t=jl(t,r),t!==null&&(Mn(t,r),pr(t))}function Rw(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),zg(t,a)}function Nw(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 jw(t,r){return Xn(t,r)}var eu=null,Jl=null,ad=!1,tu=!1,od=!1,ll=0;function pr(t){t!==Jl&&t.next===null&&(Jl===null?eu=Jl=t:Jl=Jl.next=t),tu=!0,ad||(ad=!0,Mw())}function mo(t,r){if(!od&&tu){od=!0;do for(var a=!1,u=eu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var w=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-ye(42|t)+1)-1,m&=p&~(w&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Hg(u,m))}else m=qe,m=ut(u,u===rt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Lt(u,m)||(a=!0,Hg(u,m));u=u.next}while(a);od=!1}}function Dw(){Ug()}function Ug(){tu=ad=!1;var t=0;ll!==0&&(Qw()&&(t=ll),ll=0);for(var r=Mt(),a=null,u=eu;u!==null;){var p=u.next,m=Bg(u,r);m===0?(u.next=null,a===null?eu=p:a.next=p,p===null&&(Jl=a)):(a=u,(t!==0||(m&3)!==0)&&(tu=!0)),u=p}mo(t)}function Bg(t,r){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var w=31-ye(m),T=1<<w,j=p[w];j===-1?((T&a)===0||(T&u)!==0)&&(p[w]=zt(T,r)):j<=r&&(t.expiredLanes|=T),m&=~T}if(r=rt,a=qe,a=ut(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&&cn(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Lt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(u!==null&&cn(u),be(a)){case 2:case 8:a=Ge;break;case 32:a=Dn;break;case 268435456:a=or;break;default:a=Dn}return u=qg.bind(null,t),a=Xn(a,u),t.callbackPriority=r,t.callbackNode=a,r}return u!==null&&u!==null&&cn(u),t.callbackPriority=2,t.callbackNode=null,2}function qg(t,r){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Ws()&&t.callbackNode!==a)return null;var u=qe;return u=ut(t,t===rt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Sg(t,u,r),Bg(t,Mt()),t.callbackNode!=null&&t.callbackNode===a?qg.bind(null,t):null)}function Hg(t,r){if(Ws())return null;Sg(t,r,!0)}function Mw(){Iw(function(){(Ke&6)!==0?Xn(xn,Dw):Ug()})}function sd(){return ll===0&&(ll=li()),ll}function Fg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ds(""+t)}function Qg(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 Lw(t,r,a,u,p){if(r==="submit"&&a&&a.stateNode===p){var m=Fg((p[he]||null).action),w=u.submitter;w&&(r=(r=w[he]||null)?Fg(r.formAction):w.getAttribute("formAction"),r!==null&&(m=r,w=null));var T=new ys("action","action",null,u,p);t.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(ll!==0){var j=w?Qg(p,w):new FormData(p);_f(a,{pending:!0,data:j,method:p.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=w?Qg(p,w):new FormData(p),_f(a,{pending:!0,data:j,method:p.method,action:m},m,j))},currentTarget:p}]})}}for(var ud=0;ud<$c.length;ud++){var cd=$c[ud],zw=cd.toLowerCase(),Uw=cd[0].toUpperCase()+cd.slice(1);Jn(zw,"on"+Uw)}Jn(Sm,"onAnimationEnd"),Jn(wm,"onAnimationIteration"),Jn(Cm,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(ew,"onTransitionRun"),Jn(tw,"onTransitionStart"),Jn(nw,"onTransitionCancel"),Jn(Em,"onTransitionEnd"),Rr("onMouseEnter",["mouseout","mouseover"]),Rr("onMouseLeave",["mouseout","mouseover"]),Rr("onPointerEnter",["pointerout","pointerover"]),Rr("onPointerLeave",["pointerout","pointerover"]),ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),Bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yo));function Pg(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 m=void 0;if(r)for(var w=u.length-1;0<=w;w--){var T=u[w],j=T.instance,F=T.currentTarget;if(T=T.listener,j!==m&&p.isPropagationStopped())break e;m=T,p.currentTarget=F;try{m(p)}catch(G){Qs(G)}p.currentTarget=null,m=j}else for(w=0;w<u.length;w++){if(T=u[w],j=T.instance,F=T.currentTarget,T=T.listener,j!==m&&p.isPropagationStopped())break e;m=T,p.currentTarget=F;try{m(p)}catch(G){Qs(G)}p.currentTarget=null,m=j}}}}function Le(t,r){var a=r[ct];a===void 0&&(a=r[ct]=new Set);var u=t+"__bubble";a.has(u)||(Ig(r,t,2,!1),a.add(u))}function fd(t,r,a){var u=0;r&&(u|=4),Ig(a,t,u,r)}var nu="_reactListening"+Math.random().toString(36).slice(2);function dd(t){if(!t[nu]){t[nu]=!0,ja.forEach(function(a){a!=="selectionchange"&&(Bw.has(a)||fd(a,!1,t),fd(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[nu]||(r[nu]=!0,fd("selectionchange",!1,r))}}function Ig(t,r,a,u){switch(pv(r)){case 2:var p=fC;break;case 8:p=dC;break;default:p=kd}a=p.bind(null,r,a,t),p=void 0,!Dc||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 hd(t,r,a,u,p){var m=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var T=u.stateNode.containerInfo;if(T===p)break;if(w===4)for(w=u.return;w!==null;){var j=w.tag;if((j===3||j===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;T!==null;){if(w=Ve(T),w===null)return;if(j=w.tag,j===5||j===6||j===26||j===27){u=m=w;continue e}T=T.parentNode}}u=u.return}Zp(function(){var F=m,G=Nc(a),Z=[];e:{var Q=Tm.get(t);if(Q!==void 0){var P=ys,Ee=t;switch(t){case"keypress":if(ps(a)===0)break e;case"keydown":case"keyup":P=jS;break;case"focusin":Ee="focus",P=Uc;break;case"focusout":Ee="blur",P=Uc;break;case"beforeblur":case"afterblur":P=Uc;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=em;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=xS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=LS;break;case Sm:case wm:case Cm:P=CS;break;case Em:P=US;break;case"scroll":case"scrollend":P=vS;break;case"wheel":P=qS;break;case"copy":case"cut":case"paste":P=TS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=nm;break;case"toggle":case"beforetoggle":P=FS}var Se=(r&4)!==0,We=!Se&&(t==="scroll"||t==="scrollend"),U=Se?Q!==null?Q+"Capture":null:Q;Se=[];for(var D=F,H;D!==null;){var K=D;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||U===null||(K=Ma(D,U),K!=null&&Se.push(go(D,K,H))),We)break;D=D.return}0<Se.length&&(Q=new P(Q,Ee,null,a,G),Z.push({event:Q,listeners:Se}))}}if((r&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",Q&&a!==Rc&&(Ee=a.relatedTarget||a.fromElement)&&(Ve(Ee)||Ee[we]))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&&(We=s(Ee),Se=Ee.tag,Ee!==We||Se!==5&&Se!==27&&Se!==6)&&(Ee=null)):(P=null,Ee=F),P!==Ee)){if(Se=em,K="onMouseLeave",U="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(Se=nm,K="onPointerLeave",U="onPointerEnter",D="pointer"),We=P==null?Q:Qi(P),H=Ee==null?Q:Qi(Ee),Q=new Se(K,D+"leave",P,a,G),Q.target=We,Q.relatedTarget=H,K=null,Ve(G)===F&&(Se=new Se(U,D+"enter",Ee,a,G),Se.target=H,Se.relatedTarget=We,K=Se),We=K,P&&Ee)t:{for(Se=P,U=Ee,D=0,H=Se;H;H=Wl(H))D++;for(H=0,K=U;K;K=Wl(K))H++;for(;0<D-H;)Se=Wl(Se),D--;for(;0<H-D;)U=Wl(U),H--;for(;D--;){if(Se===U||U!==null&&Se===U.alternate)break t;Se=Wl(Se),U=Wl(U)}Se=null}else Se=null;P!==null&&Vg(Z,Q,P,Se,!1),Ee!==null&&We!==null&&Vg(Z,We,Ee,Se,!0)}}e:{if(Q=F?Qi(F):window,P=Q.nodeName&&Q.nodeName.toLowerCase(),P==="select"||P==="input"&&Q.type==="file")var de=cm;else if(sm(Q))if(fm)de=ZS;else{de=KS;var Ne=GS}else P=Q.nodeName,!P||P.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Oc(F.elementType)&&(de=cm):de=XS;if(de&&(de=de(t,F))){um(Z,de,a,G);break e}Ne&&Ne(t,Q,F),t==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&_c(Q,"number",Q.value)}switch(Ne=F?Qi(F):window,t){case"focusin":(sm(Ne)||Ne.contentEditable==="true")&&(Ol=Ne,Pc=F,Qa=null);break;case"focusout":Qa=Pc=Ol=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,bm(Z,a,G);break;case"selectionchange":if(WS)break;case"keydown":case"keyup":bm(Z,a,G)}var ge;if(qc)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 _l?am(t,a)&&(Ce="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(rm&&a.locale!=="ko"&&(_l||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&_l&&(ge=Jp()):(si=G,Mc="value"in si?si.value:si.textContent,_l=!0)),Ne=ru(F,Ce),0<Ne.length&&(Ce=new tm(Ce,t,null,a,G),Z.push({event:Ce,listeners:Ne}),ge?Ce.data=ge:(ge=om(a),ge!==null&&(Ce.data=ge)))),(ge=PS?IS(t,a):VS(t,a))&&(Ce=ru(F,"onBeforeInput"),0<Ce.length&&(Ne=new tm("onBeforeInput","beforeinput",null,a,G),Z.push({event:Ne,listeners:Ce}),Ne.data=ge)),Lw(Z,t,F,a,G)}Pg(Z,r)})}function go(t,r,a){return{instance:t,listener:r,currentTarget:a}}function ru(t,r){for(var a=r+"Capture",u=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=Ma(t,a),p!=null&&u.unshift(go(t,p,m)),p=Ma(t,r),p!=null&&u.push(go(t,p,m))),t.tag===3)return u;t=t.return}return[]}function Wl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vg(t,r,a,u,p){for(var m=r._reactName,w=[];a!==null&&a!==u;){var T=a,j=T.alternate,F=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||F===null||(j=F,p?(F=Ma(a,m),F!=null&&w.unshift(go(a,F,j))):p||(F=Ma(a,m),F!=null&&w.push(go(a,F,j)))),a=a.return}w.length!==0&&t.push({event:r,listeners:w})}var qw=/\r\n?/g,Hw=/\u0000|\uFFFD/g;function $g(t){return(typeof t=="string"?t:""+t).replace(qw,`
49
+ `).replace(Hw,"")}function Yg(t,r){return r=$g(r),$g(t)===r}function iu(){}function Je(t,r,a,u,p,m){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Tl(t,""+u);break;case"className":oi(t,"class",u);break;case"tabIndex":oi(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(t,a,u);break;case"style":Kp(t,u,m);break;case"data":if(r!=="object"){oi(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=ds(""+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 m=="function"&&(a==="formAction"?(r!=="input"&&Je(t,r,"name",p.name,p,null),Je(t,r,"formEncType",p.formEncType,p,null),Je(t,r,"formMethod",p.formMethod,p,null),Je(t,r,"formTarget",p.formTarget,p,null)):(Je(t,r,"encType",p.encType,p,null),Je(t,r,"method",p.method,p,null),Je(t,r,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=ds(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=iu);break;case"onScroll":u!=null&&Le("scroll",t);break;case"onScrollEnd":u!=null&&Le("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=ds(""+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":Le("beforetoggle",t),Le("toggle",t),wl(t,"popover",u);break;case"xlinkActuate":Nr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":wl(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=yS.get(a)||a,wl(t,a,u))}}function pd(t,r,a,u,p,m){switch(a){case"style":Kp(t,u,m);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"?Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&Tl(t,""+u);break;case"onScroll":u!=null&&Le("scroll",t);break;case"onScrollEnd":u!=null&&Le("scrollend",t);break;case"onClick":u!=null&&(t.onclick=iu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Da.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),m=t[he]||null,m=m!=null?m[a]:null,typeof m=="function"&&t.removeEventListener(r,m,p),typeof u=="function")){typeof m!="function"&&m!==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,""):wl(t,a,u)}}}function Vt(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var u=!1,p=!1,m;for(m in a)if(a.hasOwnProperty(m)){var w=a[m];if(w!=null)switch(m){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:Je(t,r,m,w,a,null)}}p&&Je(t,r,"srcSet",a.srcSet,a,null),u&&Je(t,r,"src",a.src,a,null);return;case"input":Le("invalid",t);var T=m=w=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":w=G;break;case"checked":j=G;break;case"defaultChecked":F=G;break;case"value":m=G;break;case"defaultValue":T=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,r));break;default:Je(t,r,u,G,a,null)}}Vp(t,m,T,j,F,w,p,!1),cs(t);return;case"select":Le("invalid",t),u=w=m=null;for(p in a)if(a.hasOwnProperty(p)&&(T=a[p],T!=null))switch(p){case"value":m=T;break;case"defaultValue":w=T;break;case"multiple":u=T;default:Je(t,r,p,T,a,null)}r=m,a=w,t.multiple=!!u,r!=null?El(t,!!u,r,!1):a!=null&&El(t,!!u,a,!0);return;case"textarea":Le("invalid",t),m=p=u=null;for(w in a)if(a.hasOwnProperty(w)&&(T=a[w],T!=null))switch(w){case"value":u=T;break;case"defaultValue":p=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(l(91));break;default:Je(t,r,w,T,a,null)}Yp(t,u,p,m),cs(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:Je(t,r,j,u,a,null)}return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(u=0;u<yo.length;u++)Le(yo[u],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("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:Je(t,r,F,u,a,null)}return;default:if(Oc(r)){for(G in a)a.hasOwnProperty(G)&&(u=a[G],u!==void 0&&pd(t,r,G,u,a,void 0));return}}for(T in a)a.hasOwnProperty(T)&&(u=a[T],u!=null&&Je(t,r,T,u,a,null))}function Fw(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,m=null,w=null,T=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)||Je(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":m=P;break;case"name":p=P;break;case"checked":F=P;break;case"defaultChecked":G=P;break;case"value":w=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,r));break;default:P!==Z&&Je(t,r,Q,P,u,Z)}}Ac(t,w,T,j,F,G,m,p);return;case"select":P=w=T=Q=null;for(m in a)if(j=a[m],a.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(m)||Je(t,r,m,null,u,j)}for(p in u)if(m=u[p],j=a[p],u.hasOwnProperty(p)&&(m!=null||j!=null))switch(p){case"value":Q=m;break;case"defaultValue":T=m;break;case"multiple":w=m;default:m!==j&&Je(t,r,p,m,u,j)}r=T,a=w,u=P,Q!=null?El(t,!!a,Q,!1):!!u!=!!a&&(r!=null?El(t,!!a,r,!0):El(t,!!a,a?[]:"",!1));return;case"textarea":P=Q=null;for(T in a)if(p=a[T],a.hasOwnProperty(T)&&p!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Je(t,r,T,null,u,p)}for(w in u)if(p=u[w],m=a[w],u.hasOwnProperty(w)&&(p!=null||m!=null))switch(w){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!==m&&Je(t,r,w,p,u,m)}$p(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:Je(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:Je(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 Se in a)Q=a[Se],a.hasOwnProperty(Se)&&Q!=null&&!u.hasOwnProperty(Se)&&Je(t,r,Se,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:Je(t,r,F,Q,u,P)}return;default:if(Oc(r)){for(var We in a)Q=a[We],a.hasOwnProperty(We)&&Q!==void 0&&!u.hasOwnProperty(We)&&pd(t,r,We,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||pd(t,r,G,Q,u,P);return}}for(var U in a)Q=a[U],a.hasOwnProperty(U)&&Q!=null&&!u.hasOwnProperty(U)&&Je(t,r,U,null,u,Q);for(Z in u)Q=u[Z],P=a[Z],!u.hasOwnProperty(Z)||Q===P||Q==null&&P==null||Je(t,r,Z,Q,u,P)}var md=null,yd=null;function lu(t){return t.nodeType===9?t:t.ownerDocument}function Gg(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 Kg(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 gd(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 vd=null;function Qw(){var t=window.event;return t&&t.type==="popstate"?t===vd?!1:(vd=t,!0):(vd=null,!1)}var Xg=typeof setTimeout=="function"?setTimeout:void 0,Pw=typeof clearTimeout=="function"?clearTimeout:void 0,Zg=typeof Promise=="function"?Promise:void 0,Iw=typeof queueMicrotask=="function"?queueMicrotask:typeof Zg<"u"?function(t){return Zg.resolve(null).then(t).catch(Vw)}:Xg;function Vw(t){setTimeout(function(){throw t})}function Ei(t){return t==="head"}function Jg(t,r){var a=r,u=0,p=0;do{var m=a.nextSibling;if(t.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(0<u&&8>u){a=u;var w=t.ownerDocument;if(a&1&&vo(w.documentElement),a&2&&vo(w.body),a&4)for(a=w.head,vo(a),w=a.firstChild;w;){var T=w.nextSibling,j=w.nodeName;w[St]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&w.rel.toLowerCase()==="stylesheet"||a.removeChild(w),w=T}}if(p===0){t.removeChild(m),ko(r);return}p--}else a==="$"||a==="$?"||a==="$!"?p++:u=a.charCodeAt(0)-48;else u=0;a=m}while(a);ko(r)}function bd(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":bd(a),Xt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function $w(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(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==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(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=er(t.nextSibling),t===null)break}return null}function Yw(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=er(t.nextSibling),t===null))return null;return t}function xd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Gw(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 er(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 Sd=null;function Wg(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 ev(t,r,a){switch(r=lu(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 vo(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Xt(t)}var Vn=new Map,tv=new Set;function au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vr=X.d;X.d={f:Kw,r:Xw,D:Zw,C:Jw,L:Ww,m:eC,X:nC,S:tC,M:rC};function Kw(){var t=Vr.f(),r=Zs();return t||r}function Xw(t){var r=wn(t);r!==null&&r.tag===5&&r.type==="form"?Sy(r):Vr.r(t)}var ea=typeof document>"u"?null:document;function nv(t,r,a){var u=ea;if(u&&typeof r=="string"&&r){var p=Bn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),tv.has(p)||(tv.add(p),t={rel:t,crossOrigin:a,href:r},u.querySelector(p)===null&&(r=u.createElement("link"),Vt(r,"link",t),wt(r),u.head.appendChild(r)))}}function Zw(t){Vr.D(t),nv("dns-prefetch",t,null)}function Jw(t,r){Vr.C(t,r),nv("preconnect",t,r)}function Ww(t,r,a){Vr.L(t,r,a);var u=ea;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 m=p;switch(r){case"style":m=ta(t);break;case"script":m=na(t)}Vn.has(m)||(t=y({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Vn.set(m,t),u.querySelector(p)!==null||r==="style"&&u.querySelector(bo(m))||r==="script"&&u.querySelector(xo(m))||(r=u.createElement("link"),Vt(r,"link",t),wt(r),u.head.appendChild(r)))}}function eC(t,r){Vr.m(t,r);var a=ea;if(a&&t){var u=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Bn(u)+'"][href="'+Bn(t)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=na(t)}if(!Vn.has(m)&&(t=y({rel:"modulepreload",href:t},r),Vn.set(m,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xo(m)))return}u=a.createElement("link"),Vt(u,"link",t),wt(u),a.head.appendChild(u)}}}function tC(t,r,a){Vr.S(t,r,a);var u=ea;if(u&&t){var p=ai(u).hoistableStyles,m=ta(t);r=r||"default";var w=p.get(m);if(!w){var T={loading:0,preload:null};if(w=u.querySelector(bo(m)))T.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Vn.get(m))&&wd(t,a);var j=w=u.createElement("link");wt(j),Vt(j,"link",t),j._p=new Promise(function(F,G){j.onload=F,j.onerror=G}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,ou(w,r,u)}w={type:"stylesheet",instance:w,count:1,state:T},p.set(m,w)}}}function nC(t,r){Vr.X(t,r);var a=ea;if(a&&t){var u=ai(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),wt(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function rC(t,r){Vr.M(t,r);var a=ea;if(a&&t){var u=ai(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),wt(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function rv(t,r,a,u){var p=(p=ce.current)?au(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=ta(a.href),a=ai(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=ta(a.href);var m=ai(p).hoistableStyles,w=m.get(t);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,w),(m=p.querySelector(bo(t)))&&!m._p&&(w.instance=m,w.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),m||iC(p,t,a,w.state))),r&&u===null)throw Error(l(528,""));return w}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=na(a),a=ai(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 ta(t){return'href="'+Bn(t)+'"'}function bo(t){return'link[rel="stylesheet"]['+t+"]"}function iv(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function iC(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}),Vt(r,"link",a),wt(r),t.head.appendChild(r))}function na(t){return'[src="'+Bn(t)+'"]'}function xo(t){return"script[async]"+t}function lv(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,wt(u),u;var p=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),wt(u),Vt(u,"style",p),ou(u,a.precedence,t),r.instance=u;case"stylesheet":p=ta(a.href);var m=t.querySelector(bo(p));if(m)return r.state.loading|=4,r.instance=m,wt(m),m;u=iv(a),(p=Vn.get(p))&&wd(u,p),m=(t.ownerDocument||t).createElement("link"),wt(m);var w=m;return w._p=new Promise(function(T,j){w.onload=T,w.onerror=j}),Vt(m,"link",u),r.state.loading|=4,ou(m,a.precedence,t),r.instance=m;case"script":return m=na(a.src),(p=t.querySelector(xo(m)))?(r.instance=p,wt(p),p):(u=a,(p=Vn.get(m))&&(u=y({},a),Cd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),wt(p),Vt(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,ou(u,a.precedence,t));return r.instance}function ou(t,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,w=0;w<u.length;w++){var T=u[w];if(T.dataset.precedence===r)m=T;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function wd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Cd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var su=null;function av(t,r,a){if(su===null){var u=new Map,p=su=new Map;p.set(a,u)}else p=su,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 m=a[p];if(!(m[St]||m[le]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var w=m.getAttribute(r)||"";w=t+w;var T=u.get(w);T?T.push(m):u.set(w,[m])}}return u}function ov(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function lC(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 sv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var So=null;function aC(){}function oC(t,r,a){if(So===null)throw Error(l(475));var u=So;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=ta(a.href),m=t.querySelector(bo(p));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=uu.bind(u),t.then(u,u)),r.state.loading|=4,r.instance=m,wt(m);return}m=t.ownerDocument||t,a=iv(a),(p=Vn.get(p))&&wd(a,p),m=m.createElement("link"),wt(m);var w=m;w._p=new Promise(function(T,j){w.onload=T,w.onerror=j}),Vt(m,"link",a),r.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=uu.bind(u),t.addEventListener("load",r),t.addEventListener("error",r))}}function sC(){if(So===null)throw Error(l(475));var t=So;return t.stylesheets&&t.count===0&&Ed(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Ed(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 uu(){if(this.count--,this.count===0){if(this.stylesheets)Ed(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function Ed(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,r.forEach(uC,t),cu=null,uu.call(t))}function uC(t,r){if(!(r.state.loading&4)){var a=cu.get(t);if(a)var u=a.get(null);else{a=new Map,cu.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var w=p[m];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(a.set(w.dataset.precedence,w),u=w)}u&&a.set(null,u)}p=r.instance,w=p.getAttribute("data-precedence"),m=a.get(w)||u,m===u&&a.set(null,p),a.set(w,p),this.count++,u=uu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var wo={$$typeof:O,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function cC(t,r,a,u,p,m,w,T){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=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function uv(t,r,a,u,p,m,w,T,j,F,G,Z){return t=new cC(t,r,a,w,T,j,F,Z),r=1,m===!0&&(r|=24),m=En(3,null,null,r),t.current=m,m.stateNode=t,r=lf(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:u,isDehydrated:a,cache:r},uf(m),t}function cv(t){return t?(t=Dl,t):Dl}function fv(t,r,a,u,p,m){p=cv(p),u.context===null?u.context=p:u.pendingContext=p,u=fi(r),u.payload={element:a},m=m===void 0?null:m,m!==null&&(u.callback=m),a=di(t,u,r),a!==null&&(On(a,t,r),Za(a,t,r))}function dv(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function Td(t,r){dv(t,r),(t=t.alternate)&&dv(t,r)}function hv(t){if(t.tag===13){var r=jl(t,67108864);r!==null&&On(r,t,67108864),Td(t,67108864)}}var fu=!0;function fC(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=2,kd(t,r,a,u)}finally{X.p=m,B.T=p}}function dC(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=8,kd(t,r,a,u)}finally{X.p=m,B.T=p}}function kd(t,r,a,u){if(fu){var p=Ad(u);if(p===null)hd(t,r,u,du,a),mv(t,u);else if(pC(p,t,r,a,u))u.stopPropagation();else if(mv(t,u),r&4&&-1<hC.indexOf(t)){for(;p!==null;){var m=wn(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var w=Be(m.pendingLanes);if(w!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;w;){var j=1<<31-ye(w);T.entanglements[1]|=j,w&=~j}pr(m),(Ke&6)===0&&(Ks=Mt()+500,mo(0))}}break;case 13:T=jl(m,2),T!==null&&On(T,m,2),Zs(),Td(m,2)}if(m=Ad(u),m===null&&hd(t,r,u,du,a),m===p)break;p=m}p!==null&&u.stopPropagation()}else hd(t,r,u,null,a)}}function Ad(t){return t=Nc(t),_d(t)}var du=null;function _d(t){if(du=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 du=t,null}function pv(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(Zn()){case xn:return 2;case Ge:return 8;case Dn:case Ar:return 32;case or:return 268435456;default:return 32}default:return 32}}var Od=!1,Ti=null,ki=null,Ai=null,Co=new Map,Eo=new Map,_i=[],hC="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 mv(t,r){switch(t){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":Co.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(r.pointerId)}}function To(t,r,a,u,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},r!==null&&(r=wn(r),r!==null&&hv(r)),t):(t.eventSystemFlags|=u,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function pC(t,r,a,u,p){switch(r){case"focusin":return Ti=To(Ti,t,r,a,u,p),!0;case"dragenter":return ki=To(ki,t,r,a,u,p),!0;case"mouseover":return Ai=To(Ai,t,r,a,u,p),!0;case"pointerover":var m=p.pointerId;return Co.set(m,To(Co.get(m)||null,t,r,a,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Eo.set(m,To(Eo.get(m)||null,t,r,a,u,p)),!0}return!1}function yv(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=Gt(u);var p=jl(a,u);p!==null&&On(p,a,u),Td(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 hu(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=Ad(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Rc=u,a.target.dispatchEvent(u),Rc=null}else return r=wn(a),r!==null&&hv(r),t.blockedOn=a,!1;r.shift()}return!0}function gv(t,r,a){hu(t)&&a.delete(r)}function mC(){Od=!1,Ti!==null&&hu(Ti)&&(Ti=null),ki!==null&&hu(ki)&&(ki=null),Ai!==null&&hu(Ai)&&(Ai=null),Co.forEach(gv),Eo.forEach(gv)}function pu(t,r){t.blockedOn===r&&(t.blockedOn=null,Od||(Od=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mC)))}var mu=null;function vv(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=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(_d(u||a)===null)continue;break}var m=wn(a);m!==null&&(t.splice(r,3),r-=3,_f(m,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}function ko(t){function r(j){return pu(j,t)}Ti!==null&&pu(Ti,t),ki!==null&&pu(ki,t),Ai!==null&&pu(Ai,t),Co.forEach(r),Eo.forEach(r);for(var a=0;a<_i.length;a++){var u=_i[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<_i.length&&(a=_i[0],a.blockedOn===null);)yv(a),a.blockedOn===null&&_i.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],m=a[u+1],w=p[he]||null;if(typeof m=="function")w||vv(a);else if(w){var T=null;if(m&&m.hasAttribute("formAction")){if(p=m,w=m[he]||null)T=w.formAction;else if(_d(p)!==null)continue}else T=w.action;typeof T=="function"?a[u+1]=T:(a.splice(u,3),u-=3),vv(a)}}}function Rd(t){this._internalRoot=t}yu.prototype.render=Rd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,u=_n();fv(a,u,t,r,null,null)},yu.prototype.unmount=Rd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;fv(t.current,2,null,t,null,null),Zs(),r[we]=null}};function yu(t){this._internalRoot=t}yu.prototype.unstable_scheduleHydration=function(t){if(t){var r=De();t={blockedOn:null,target:t,priority:r};for(var a=0;a<_i.length&&r!==0&&r<_i[a].priority;a++);_i.splice(a,0,t),a===0&&yv(t)}};var bv=n.version;if(bv!=="19.1.0")throw Error(l(527,bv,"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=h(r),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var yC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{$=gu.inject(yC),W=gu}catch{}}return _o.createRoot=function(t,r){if(!o(t))throw Error(l(299));var a=!1,u="",p=Ly,m=zy,w=Uy,T=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&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks)),r=uv(t,1,!1,null,null,a,u,p,m,w,T,null),t[we]=r.current,dd(t),new Rd(r)},_o.hydrateRoot=function(t,r,a){if(!o(t))throw Error(l(299));var u=!1,p="",m=Ly,w=zy,T=Uy,j=null,F=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(F=a.formState)),r=uv(t,1,!0,r,a??null,u,p,m,w,T,j,F),r.context=cv(null),a=r.current,u=_n(),u=Gt(u),p=fi(u),p.callback=null,di(a,p,u),a=u,r.current.lanes=a,Mn(r,a),pr(r),t[we]=r.current,dd(t),new yu(r)},_o.version="19.1.0",_o}var Ov;function TC(){if(Ov)return Dd.exports;Ov=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(),Dd.exports=EC(),Dd.exports}var kC=TC();const AC=ba(kC);var Oo={},Rv;function _C(){if(Rv)return Oo;Rv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=c,Oo.serialize=d;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,b){const S=new s,k=x.length;if(k<2)return S;const _=(b==null?void 0:b.decode)||y;let A=0;do{const N=x.indexOf("=",A);if(N===-1)break;const O=x.indexOf(";",A),L=O===-1?k:O;if(N>L){A=x.lastIndexOf(";",N-1)+1;continue}const q=f(x,A,N),M=h(x,N,q),Y=x.slice(q,M);if(S[Y]===void 0){let ee=f(x,N+1,L),ie=h(x,L,ee);const z=_(x.slice(ee,ie));S[Y]=z}A=L+1}while(A<k);return S}function f(x,b,S){do{const k=x.charCodeAt(b);if(k!==32&&k!==9)return b}while(++b<S);return S}function h(x,b,S){for(;b>S;){const k=x.charCodeAt(--b);if(k!==32&&k!==9)return b+1}return S}function d(x,b,S){const k=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const _=k(b);if(!n.test(_))throw new TypeError(`argument val is invalid: ${b}`);let A=x+"="+_;if(!S)return A;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);A+="; Max-Age="+S.maxAge}if(S.domain){if(!i.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);A+="; Domain="+S.domain}if(S.path){if(!l.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);A+="; Path="+S.path}if(S.expires){if(!g(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);A+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(A+="; HttpOnly"),S.secure&&(A+="; Secure"),S.partitioned&&(A+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.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: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.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: ${S.sameSite}`)}return A}function y(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return o.call(x)==="[object Date]"}return Oo}_C();var Nv="popstate";function OC(e={}){function n(l,o){let{pathname:s,search:c,hash:f}=l.location;return dh("",{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:Po(o)}return NC(n,i,null,e)}function ot(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function RC(){return Math.random().toString(36).substring(2,10)}function jv(e,n){return{usr:e.state,key:e.key,idx:n}}function dh(e,n,i=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?xa(n):n,state:i,key:n&&n.key||l||RC()}}function Po({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 xa(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 NC(e,n,i,l={}){let{window:o=document.defaultView,v5Compat:s=!1}=l,c=o.history,f="POP",h=null,d=y();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function y(){return(c.state||{idx:null}).idx}function g(){f="POP";let _=y(),A=_==null?null:_-d;d=_,h&&h({action:f,location:k.location,delta:A})}function x(_,A){f="PUSH";let N=dh(k.location,_,A);d=y()+1;let O=jv(N,d),L=k.createHref(N);try{c.pushState(O,"",L)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;o.location.assign(L)}s&&h&&h({action:f,location:k.location,delta:1})}function b(_,A){f="REPLACE";let N=dh(k.location,_,A);d=y();let O=jv(N,d),L=k.createHref(N);c.replaceState(O,"",L),s&&h&&h({action:f,location:k.location,delta:0})}function S(_){return jC(_)}let k={get action(){return f},get location(){return e(o,c)},listen(_){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Nv,g),h=_,()=>{o.removeEventListener(Nv,g),h=null}},createHref(_){return n(o,_)},createURL:S,encodeLocation(_){let A=S(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:b,go(_){return c.go(_)}};return k}function jC(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ot(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Po(e);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function bx(e,n,i="/"){return DC(e,n,i,!1)}function DC(e,n,i,l){let o=typeof n=="string"?xa(n):n,s=Kr(o.pathname||"/",i);if(s==null)return null;let c=xx(e);MC(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=VC(s);f=PC(c[h],d,l)}return f}function xx(e,n=[],i=[],l=""){let o=(s,c,f)=>{let h={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};h.relativePath.startsWith("/")&&(ot(h.relativePath.startsWith(l),`Absolute route path "${h.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(l.length));let d=Gr([l,h.relativePath]),y=i.concat(h);s.children&&s.children.length>0&&(ot(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),xx(s.children,n,y,d)),!(s.path==null&&!s.index)&&n.push({path:d,score:FC(d,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,c);else for(let h of Sx(s.path))o(s,c,h)}),n}function Sx(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=Sx(l.join("/")),f=[];return f.push(...c.map(h=>h===""?s:[s,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function MC(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:QC(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var LC=/^:[\w-]+$/,zC=3,UC=2,BC=1,qC=10,HC=-2,Dv=e=>e==="*";function FC(e,n){let i=e.split("/"),l=i.length;return i.some(Dv)&&(l+=HC),n&&(l+=UC),i.filter(o=>!Dv(o)).reduce((o,s)=>o+(LC.test(s)?zC:s===""?BC:qC),l)}function QC(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 PC(e,n,i=!1){let{routesMeta:l}=e,o={},s="/",c=[];for(let f=0;f<l.length;++f){let h=l[f],d=f===l.length-1,y=s==="/"?n:n.slice(s.length)||"/",g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},y),x=h.route;if(!g&&d&&i&&!l[l.length-1].route.index&&(g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Gr([s,g.pathname]),pathnameBase:KC(Gr([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=Gr([s,g.pathnameBase]))}return c}function Bu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=IC(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((d,{paramName:y,isOptional:g},x)=>{if(y==="*"){let S=f[x]||"";c=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[x];return g&&!b?d[y]=void 0:d[y]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function IC(e,n=!1,i=!0){nr(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,h)=>(l.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),l]}function VC(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nr(!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 Kr(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 $C(e,n="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?xa(e):e;return{pathname:i?i.startsWith("/")?i:YC(i,n):n,search:XC(l),hash:ZC(o)}}function YC(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 Ud(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 GC(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Kh(e){let n=GC(e);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function Xh(e,n,i,l=!1){let o;typeof e=="string"?o=xa(e):(o={...e},ot(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Ud("#","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 h=$C(o,f),d=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(d||y)&&(h.pathname+="/"),h}var Gr=e=>e.join("/").replace(/\/\/+/g,"/"),KC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function JC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var wx=["POST","PUT","PATCH","DELETE"];new Set(wx);var WC=["GET",...wx];new Set(WC);var Sa=E.createContext(null);Sa.displayName="DataRouter";var rc=E.createContext(null);rc.displayName="DataRouterState";var Cx=E.createContext({isTransitioning:!1});Cx.displayName="ViewTransition";var eE=E.createContext(new Map);eE.displayName="Fetchers";var tE=E.createContext(null);tE.displayName="Await";var lr=E.createContext(null);lr.displayName="Navigation";var Xo=E.createContext(null);Xo.displayName="Location";var wr=E.createContext({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var Zh=E.createContext(null);Zh.displayName="RouteError";function nE(e,{relative:n}={}){ot(wa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=E.useContext(lr),{hash:o,pathname:s,search:c}=Zo(e,{relative:n}),f=s;return i!=="/"&&(f=s==="/"?i:Gr([i,s])),l.createHref({pathname:f,search:c,hash:o})}function wa(){return E.useContext(Xo)!=null}function vn(){return ot(wa(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xo).location}var Ex="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tx(e){E.useContext(lr).static||E.useLayoutEffect(e)}function Jr(){let{isDataRoute:e}=E.useContext(wr);return e?mE():rE()}function rE(){ot(wa(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Sa),{basename:n,navigator:i}=E.useContext(lr),{matches:l}=E.useContext(wr),{pathname:o}=vn(),s=JSON.stringify(Kh(l)),c=E.useRef(!1);return Tx(()=>{c.current=!0}),E.useCallback((h,d={})=>{if(nr(c.current,Ex),!c.current)return;if(typeof h=="number"){i.go(h);return}let y=Xh(h,JSON.parse(s),o,d.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Gr([n,y.pathname])),(d.replace?i.replace:i.push)(y,d.state,d)},[n,i,s,o,e])}E.createContext(null);function Zo(e,{relative:n}={}){let{matches:i}=E.useContext(wr),{pathname:l}=vn(),o=JSON.stringify(Kh(i));return E.useMemo(()=>Xh(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function iE(e,n){return kx(e,n)}function kx(e,n,i,l){var N;ot(wa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:s}=E.useContext(lr),{matches:c}=E.useContext(wr),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",y=f?f.pathnameBase:"/",g=f&&f.route;{let O=g&&g.path||"";Ax(d,!g||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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
50
 
51
- Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let x=vn(),b;if(n){let O=typeof n=="string"?xa(n):n;ot(y==="/"||((N=O.pathname)==null?void 0:N.startsWith(y)),`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 "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),b=O}else b=x;let S=b.pathname||"/",k=S;if(y!=="/"){let O=y.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(O.length).join("/")}let _=!s&&i&&i.matches&&i.matches.length>0?i.matches:bx(e,{pathname:k});nr(g||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),nr(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=sE(_&&_.map(O=>Object.assign({},O,{params:Object.assign({},h,O.params),pathname:Gr([y,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:Gr([y,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),c,i,l);return n&&A?E.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function iE(){let e=hE(),n=ZC(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 lE=E.createElement(iE,null),aE=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(wr.Provider,{value:this.props.routeContext},E.createElement(Zh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function oE({routeContext:e,match:n,children:i}){let l=E.useContext(Sa);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(wr.Provider,{value:e},i)}function sE(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 h=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);ot(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let c=!1,f=-1;if(i)for(let h=0;h<o.length;h++){let d=o[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=h),d.route.id){let{loaderData:y,errors:g}=i,x=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||x){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,d,y)=>{let g,x=!1,b=null,S=null;i&&(g=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||lE,c&&(f<0&&y===0?(Ax("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):f===y&&(x=!0,S=d.route.hydrateFallbackElement||null)));let k=n.concat(o.slice(0,y+1)),_=()=>{let A;return g?A=b:x?A=S:d.route.Component?A=E.createElement(d.route.Component,null):d.route.element?A=d.route.element:A=h,E.createElement(oE,{match:d,routeContext:{outlet:h,matches:k,isDataRoute:i!=null},children:A})};return i&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?E.createElement(aE,{location:i.location,revalidation:i.revalidation,component:b,error:g,children:_(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):_()},null)}function Jh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uE(e){let n=E.useContext(Sa);return ot(n,Jh(e)),n}function cE(e){let n=E.useContext(rc);return ot(n,Jh(e)),n}function fE(e){let n=E.useContext(wr);return ot(n,Jh(e)),n}function Wh(e){let n=fE(e),i=n.matches[n.matches.length-1];return ot(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function dE(){return Wh("useRouteId")}function hE(){var l;let e=E.useContext(Zh),n=cE("useRouteError"),i=Wh("useRouteError");return e!==void 0?e:(l=n.errors)==null?void 0:l[i]}function pE(){let{router:e}=uE("useNavigate"),n=Wh("useNavigate"),i=E.useRef(!1);return Tx(()=>{i.current=!0}),E.useCallback(async(o,s={})=>{nr(i.current,Ex),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var Mv={};function Ax(e,n,i){!n&&!Mv[e]&&(Mv[e]=!0,nr(!1,i))}E.memo(mE);function mE({routes:e,future:n,state:i}){return kx(e,void 0,i,n)}function yE({to:e,replace:n,state:i,relative:l}){ot(wa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(lr);nr(!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(wr),{pathname:c}=vn(),f=Jr(),h=Xh(e,Kh(s),c,l==="path"),d=JSON.stringify(h);return E.useEffect(()=>{f(JSON.parse(d),{replace:n,state:i,relative:l})},[f,d,l,n,i]),null}function hh(e){ot(!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 gE({basename:e="/",children:n=null,location:i,navigationType:l="POP",navigator:o,static:s=!1}){ot(!wa(),"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=xa(i));let{pathname:h="/",search:d="",hash:y="",state:g=null,key:x="default"}=i,b=E.useMemo(()=>{let S=Kr(h,c);return S==null?null:{location:{pathname:S,search:d,hash:y,state:g,key:x},navigationType:l}},[c,h,d,y,g,x,l]);return nr(b!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(lr.Provider,{value:f},E.createElement(Xo.Provider,{children:n,value:b}))}function vE({children:e,location:n}){return rE(ph(e),n)}function ph(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,ph(l.props.children,s));return}ot(l.type===hh,`[${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>`),ot(!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=ph(l.props.children,s)),i.push(c)}),i}var Au="get",_u="application/x-www-form-urlencoded";function ic(e){return e!=null&&typeof e.tagName=="string"}function bE(e){return ic(e)&&e.tagName.toLowerCase()==="button"}function xE(e){return ic(e)&&e.tagName.toLowerCase()==="form"}function SE(e){return ic(e)&&e.tagName.toLowerCase()==="input"}function wE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CE(e,n){return e.button===0&&(!n||n==="_self")&&!wE(e)}var vu=null;function EE(){if(vu===null)try{new FormData(document.createElement("form"),0),vu=!1}catch{vu=!0}return vu}var TE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bd(e){return e!=null&&!TE.has(e)?(nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):e}function kE(e,n){let i,l,o,s,c;if(xE(e)){let f=e.getAttribute("action");l=f?Kr(f,n):null,i=e.getAttribute("method")||Au,o=Bd(e.getAttribute("enctype"))||_u,s=new FormData(e)}else if(bE(e)||SE(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 h=e.getAttribute("formaction")||f.getAttribute("action");if(l=h?Kr(h,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||Au,o=Bd(e.getAttribute("formenctype"))||Bd(f.getAttribute("enctype"))||_u,s=new FormData(f,e),!EE()){let{name:d,type:y,value:g}=e;if(y==="image"){let x=d?`${d}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else d&&s.append(d,g)}}else{if(ic(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Au,l=null,o=_u,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:s,body:c}}function ep(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function AE(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 _E(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 OE(e,n,i){let l=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await AE(s,i);return c.links?c.links():[]}return[]}));return DE(l.flat(1).filter(_E).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Lv(e,n,i,l,o,s){let c=(h,d)=>i[d]?h.route.id!==i[d].route.id:!0,f=(h,d)=>{var y;return i[d].pathname!==h.pathname||((y=i[d].route.path)==null?void 0:y.endsWith("*"))&&i[d].params["*"]!==h.params["*"]};return s==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):s==="data"?n.filter((h,d)=>{var g;let y=l.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let x=h.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:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function RE(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 jE(e){let n={},i=Object.keys(e).sort();for(let l of i)n[l]=e[l];return n}function DE(e,n){let i=new Set;return new Set(n),e.reduce((l,o)=>{let s=JSON.stringify(jE(o));return i.has(s)||(i.add(s),l.push({key:s,link:o})),l},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ME=new Set([100,101,204,205]);function LE(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&&Kr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function _x(){let e=E.useContext(Sa);return ep(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function zE(){let e=E.useContext(rc);return ep(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var tp=E.createContext(void 0);tp.displayName="FrameworkContext";function Ox(){let e=E.useContext(tp);return ep(e,"You must render this element inside a <HydratedRouter> element"),e}function UE(e,n){let i=E.useContext(tp),[l,o]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:y,onTouchStart:g}=n,x=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let k=A=>{A.forEach(N=>{c(N.isIntersecting)})},_=new IntersectionObserver(k,{threshold:.5});return x.current&&_.observe(x.current),()=>{_.disconnect()}}},[e]),E.useEffect(()=>{if(l){let k=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(k)}}},[l]);let b=()=>{o(!0)},S=()=>{o(!1),c(!1)};return i?e!=="intent"?[s,x,{}]:[s,x,{onFocus:Ro(f,b),onBlur:Ro(h,S),onMouseEnter:Ro(d,b),onMouseLeave:Ro(y,S),onTouchStart:Ro(g,b)}]:[!1,x,{}]}function Ro(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function BE({page:e,...n}){let{router:i}=_x(),l=E.useMemo(()=>bx(i.routes,e,i.basename),[i.routes,e,i.basename]);return l?E.createElement(HE,{page:e,matches:l,...n}):null}function qE(e){let{manifest:n,routeModules:i}=Ox(),[l,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return OE(e,n,i).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,i]),l}function HE({page:e,matches:n,...i}){let l=vn(),{manifest:o,routeModules:s}=Ox(),{basename:c}=_x(),{loaderData:f,matches:h}=zE(),d=E.useMemo(()=>Lv(e,n,h,o,l,"data"),[e,n,h,o,l]),y=E.useMemo(()=>Lv(e,n,h,o,l,"assets"),[e,n,h,o,l]),g=E.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let S=new Set,k=!1;if(n.forEach(A=>{var O;let N=o.routes[A.route.id];!N||!N.hasLoader||(!d.some(L=>L.route.id===A.route.id)&&A.route.id in f&&((O=s[A.route.id])!=null&&O.shouldRevalidate)||N.hasClientLoader?k=!0:S.add(A.route.id))}),S.size===0)return[];let _=LE(e,c);return k&&S.size>0&&_.searchParams.set("_routes",n.filter(A=>S.has(A.route.id)).map(A=>A.route.id).join(",")),[_.pathname+_.search]},[c,f,l,o,d,n,e,s]),x=E.useMemo(()=>RE(y,o),[y,o]),b=qE(y);return E.createElement(E.Fragment,null,g.map(S=>E.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),x.map(S=>E.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),b.map(({key:S,link:k})=>E.createElement("link",{key:S,...k})))}function FE(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var Rx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rx&&(window.__reactRouterVersion="7.6.0")}catch{}function QE({basename:e,children:n,window:i}){let l=E.useRef();l.current==null&&(l.current=_C({window:i,v5Compat:!0}));let o=l.current,[s,c]=E.useState({action:o.action,location:o.location}),f=E.useCallback(h=>{E.startTransition(()=>c(h))},[c]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.createElement(gE,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var Nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jx=E.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:o,reloadDocument:s,replace:c,state:f,target:h,to:d,preventScrollReset:y,viewTransition:g,...x},b){let{basename:S}=E.useContext(lr),k=typeof d=="string"&&Nx.test(d),_,A=!1;if(typeof d=="string"&&k&&(_=d,Rx))try{let ie=new URL(window.location.href),z=d.startsWith("//")?new URL(ie.protocol+d):new URL(d),ae=Kr(z.pathname,S);z.origin===ie.origin&&ae!=null?d=ae+z.search+z.hash:A=!0}catch{nr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=tE(d,{relative:o}),[O,L,q]=UE(l,x),M=$E(d,{replace:c,state:f,target:h,preventScrollReset:y,relative:o,viewTransition:g});function Y(ie){n&&n(ie),ie.defaultPrevented||M(ie)}let ee=E.createElement("a",{...x,...q,href:_||N,onClick:A||s?n:Y,ref:FE(b,L),target:h,"data-discover":!k&&i==="render"?"true":void 0});return O&&!k?E.createElement(E.Fragment,null,ee,E.createElement(BE,{page:N})):ee});jx.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:h,...d},y){let g=Zo(c,{relative:d.relative}),x=vn(),b=E.useContext(rc),{navigator:S,basename:k}=E.useContext(lr),_=b!=null&&ZE(g)&&f===!0,A=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,N=x.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(N=N.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&k&&(O=Kr(O,k)||O);const L=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let q=N===A||!o&&N.startsWith(A)&&N.charAt(L)==="/",M=O!=null&&(O===A||!o&&O.startsWith(A)&&O.charAt(A.length)==="/"),Y={isActive:q,isPending:M,isTransitioning:_},ee=q?n:void 0,ie;typeof l=="function"?ie=l(Y):ie=[l,q?"active":null,M?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(Y):s;return E.createElement(jx,{...d,"aria-current":ee,className:ie,ref:y,style:z,to:c,viewTransition:f},typeof h=="function"?h(Y):h)});PE.displayName="NavLink";var IE=E.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:o,state:s,method:c=Au,action:f,onSubmit:h,relative:d,preventScrollReset:y,viewTransition:g,...x},b)=>{let S=KE(),k=XE(f,{relative:d}),_=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&Nx.test(f),N=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let L=O.nativeEvent.submitter,q=(L==null?void 0:L.getAttribute("formmethod"))||c;S(L||O.currentTarget,{fetcherKey:n,method:q,navigate:i,replace:o,state:s,relative:d,preventScrollReset:y,viewTransition:g})};return E.createElement("form",{ref:b,method:_,action:k,onSubmit:l?h:N,...x,"data-discover":!A&&e==="render"?"true":void 0})});IE.displayName="Form";function VE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dx(e){let n=E.useContext(Sa);return ot(n,VE(e)),n}function $E(e,{target:n,replace:i,state:l,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=Jr(),h=vn(),d=Zo(e,{relative:s});return E.useCallback(y=>{if(CE(y,n)){y.preventDefault();let g=i!==void 0?i:Po(h)===Po(d);f(e,{replace:g,state:l,preventScrollReset:o,relative:s,viewTransition:c})}},[h,f,d,i,l,n,e,o,s,c])}var YE=0,GE=()=>`__${String(++YE)}__`;function KE(){let{router:e}=Dx("useSubmit"),{basename:n}=E.useContext(lr),i=dE();return E.useCallback(async(l,o={})=>{let{action:s,method:c,encType:f,formData:h,body:d}=kE(l,n);if(o.navigate===!1){let y=o.fetcherKey||GE();await e.fetch(y,i,o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,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 XE(e,{relative:n}={}){let{basename:i}=E.useContext(lr),l=E.useContext(wr);ot(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),s={...Zo(e||".",{relative:n})},c=vn();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),h=f.getAll("index");if(h.some(y=>y==="")){f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let y=f.toString();s.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(s.pathname=s.pathname==="/"?i:Gr([i,s.pathname])),Po(s)}function ZE(e,n={}){let i=E.useContext(Cx);ot(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Dx("useViewTransitionState"),o=Zo(e,{relative:n.relative});if(!i.isTransitioning)return!1;let s=Kr(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=Kr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Bu(o.pathname,c)!=null||Bu(o.pathname,s)!=null}[...ME];var JE=vx();const WE=ba(JE);function mh(e,n){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},mh(e,n)}function Ca(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,mh(e,n)}var Ea=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 je(){return je=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},je.apply(null,arguments)}var qu=typeof window>"u";function $t(){}function eT(e,n){return typeof e=="function"?e(n):e}function yh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hu(e){return Array.isArray(e)?e:[e]}function Mx(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ou(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{queryKey:e,queryFn:n}):je({},n,{queryKey:e}):e}function tT(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{mutationKey:e,mutationFn:n}):je({},n,{mutationKey:e}):typeof e=="function"?je({},n,{mutationFn:e}):je({},e)}function Ni(e,n,i){return Jo(e)?[je({},n,{queryKey:e}),i]:[e||{},n]}function nT(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 zv(e,n){var i=e.active,l=e.exact,o=e.fetching,s=e.inactive,c=e.predicate,f=e.queryKey,h=e.stale;if(Jo(f)){if(l){if(n.queryHash!==np(f,n.options))return!1}else if(!Fu(n.queryKey,f))return!1}var d=nT(i,s);if(d==="none")return!1;if(d!=="all"){var y=n.isActive();if(d==="active"&&!y||d==="inactive"&&y)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||typeof o=="boolean"&&n.isFetching()!==o||c&&!c(n))}function Uv(e,n){var i=e.exact,l=e.fetching,o=e.predicate,s=e.mutationKey;if(Jo(s)){if(!n.options.mutationKey)return!1;if(i){if(ol(n.options.mutationKey)!==ol(s))return!1}else if(!Fu(n.options.mutationKey,s))return!1}return!(typeof l=="boolean"&&n.state.status==="loading"!==l||o&&!o(n))}function np(e,n){var i=(n==null?void 0:n.queryKeyHashFn)||ol;return i(e)}function ol(e){var n=Hu(e);return rT(n)}function rT(e){return JSON.stringify(e,function(n,i){return gh(i)?Object.keys(i).sort().reduce(function(l,o){return l[o]=i[o],l},{}):i})}function Fu(e,n){return Lx(Hu(e),Hu(n))}function Lx(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!Lx(e[i],n[i])}):!1}function Qu(e,n){if(e===n)return e;var i=Array.isArray(e)&&Array.isArray(n);if(i||gh(e)&&gh(n)){for(var l=i?e.length:Object.keys(e).length,o=i?n:Object.keys(n),s=o.length,c=i?[]:{},f=0,h=0;h<s;h++){var d=i?h:o[h];c[d]=Qu(e[d],n[d]),c[d]===e[d]&&f++}return l===s&&f===l?e:c}return n}function iT(e,n){if(e&&!n||n&&!e)return!1;for(var i in e)if(e[i]!==n[i])return!1;return!0}function gh(e){if(!Bv(e))return!1;var n=e.constructor;if(typeof n>"u")return!0;var i=n.prototype;return!(!Bv(i)||!i.hasOwnProperty("isPrototypeOf"))}function Bv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jo(e){return typeof e=="string"||Array.isArray(e)}function lT(e){return new Promise(function(n){setTimeout(n,e)})}function qv(e){Promise.resolve().then(e).catch(function(n){return setTimeout(function(){throw n})})}function zx(){if(typeof AbortController=="function")return new AbortController}var aT=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((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}(Ea),Uo=new aT,oT=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((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}(Ea),Ru=new oT;function sT(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Pu(e){return typeof(e==null?void 0:e.cancel)=="function"}var Ux=function(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent};function Nu(e){return e instanceof Ux}var Bx=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,b){c=x,f=b});var h=function(b){i.isResolved||(i.isResolved=!0,n.onSuccess==null||n.onSuccess(b),s==null||s(),c(b))},d=function(b){i.isResolved||(i.isResolved=!0,n.onError==null||n.onError(b),s==null||s(),f(b))},y=function(){return new Promise(function(b){s=b,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 b;try{b=n.fn()}catch(S){b=Promise.reject(S)}o=function(k){if(!i.isResolved&&(d(new Ux(k)),i.abort==null||i.abort(),Pu(b)))try{b.cancel()}catch{}},i.isTransportCancelable=Pu(b),Promise.resolve(b).then(h).catch(function(S){var k,_;if(!i.isResolved){var A=(k=n.retry)!=null?k:3,N=(_=n.retryDelay)!=null?_:sT,O=typeof N=="function"?N(i.failureCount,S):N,L=A===!0||typeof A=="number"&&i.failureCount<A||typeof A=="function"&&A(i.failureCount,S);if(l||!L){d(S);return}i.failureCount++,n.onFail==null||n.onFail(i.failureCount,S),lT(O).then(function(){if(!Uo.isFocused()||!Ru.isOnline())return y()}).then(function(){l?d(S):x()})}})}};g()},uT=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):qv(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&&qv(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}(),at=new uT,qx=console;function Iu(){return qx}function cT(e){qx=e}var fT=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=je({},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(),yh(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,h=eT(l,f);return(s=(c=this.options).isDataEqual)!=null&&s.call(c,f,h)?h=f:this.options.structuralSharing!==!1&&(h=Qu(f,h)),this.dispatch({data:h,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),h},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($t).catch($t):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||!Mx(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,h;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var d;return(d=this.retryer)==null||d.continueRetry(),this.promise}}if(l&&this.setOptions(l),!this.options.queryFn){var y=this.observers.find(function(N){return N.options.queryFn});y&&this.setOptions(y.options)}var g=Hu(this.queryKey),x=zx(),b={queryKey:g,pageParam:void 0,meta:this.meta};Object.defineProperty(b,"signal",{enumerable:!0,get:function(){if(x)return s.abortSignalConsumed=!0,x.signal}});var S=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(b)):Promise.reject("Missing queryFn")},k={fetchOptions:o,options:this.options,queryKey:g,state:this.state,fetchFn:S,meta:this.meta};if((c=this.options.behavior)!=null&&c.onFetch){var _;(_=this.options.behavior)==null||_.onFetch(k)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((f=k.fetchOptions)==null?void 0:f.meta)){var A;this.dispatch({type:"fetch",meta:(A=k.fetchOptions)==null?void 0:A.meta})}return this.retryer=new Bx({fn:k.fetchFn,abort:x==null||(h=x.abort)==null?void 0:h.bind(x),onSuccess:function(O){s.setData(O),s.cache.config.onSuccess==null||s.cache.config.onSuccess(O,s),s.cacheTime===0&&s.optionalRemove()},onError:function(O){Nu(O)&&O.silent||s.dispatch({type:"error",error:O}),Nu(O)||(s.cache.config.onError==null||s.cache.config.onError(O,s),Iu().error(O)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:k.options.retry,retryDelay:k.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(l){var o=this;this.state=this.reducer(this.state,l),at.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 je({},l,{fetchFailureCount:l.fetchFailureCount+1});case"pause":return je({},l,{isPaused:!0});case"continue":return je({},l,{isPaused:!1});case"fetch":return je({},l,{fetchFailureCount:0,fetchMeta:(s=o.meta)!=null?s:null,isFetching:!0,isPaused:!1},!l.dataUpdatedAt&&{error:null,status:"loading"});case"success":return je({},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 Nu(f)&&f.revert&&this.revertState?je({},this.revertState):je({},l,{error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return je({},l,{isInvalidated:!0});case"setState":return je({},l,o.state);default:return l}},e}(),dT=function(e){Ca(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,h=s.queryKey,d=(f=s.queryHash)!=null?f:np(h,s),y=this.get(d);return y||(y=new fT({cache:this,queryKey:h,queryHash:d,options:o.defaultQueryOptions(s),state:c,defaultOptions:o.getQueryDefaults(h),meta:s.meta}),this.add(y)),y},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;at.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=Ni(o,s),f=c[0];return typeof f.exact>"u"&&(f.exact=!0),this.queries.find(function(h){return zv(f,h)})},i.findAll=function(o,s){var c=Ni(o,s),f=c[0];return Object.keys(f).length>0?this.queries.filter(function(h){return zv(f,h)}):this.queries},i.notify=function(o){var s=this;at.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onFocus()})})},i.onOnline=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onOnline()})})},n}(Ea),hT=function(){function e(i){this.options=je({},i.defaultOptions,i.options),this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.observers=[],this.state=i.state||Hx(),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($t).catch($t)):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),Iu().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 Bx({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=pT(this.state,l),at.batch(function(){o.observers.forEach(function(s){s.onMutationUpdate(l)}),o.mutationCache.notify(o)})},e}();function Hx(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function pT(e,n){switch(n.type){case"failed":return je({},e,{failureCount:e.failureCount+1});case"pause":return je({},e,{isPaused:!0});case"continue":return je({},e,{isPaused:!1});case"loading":return je({},e,{context:n.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:n.variables});case"success":return je({},e,{data:n.data,error:null,status:"success",isPaused:!1});case"error":return je({},e,{data:void 0,error:n.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return je({},e,n.state);default:return e}}var mT=function(e){Ca(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 hT({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;at.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 Uv(o,s)})},i.findAll=function(o){return this.mutations.filter(function(s){return Uv(o,s)})},i.notify=function(o){var s=this;at.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 at.batch(function(){return o.reduce(function(s,c){return s.then(function(){return c.continue().catch($t)})},Promise.resolve())})},n}(Ea);function yT(){return{onFetch:function(n){n.fetchFn=function(){var i,l,o,s,c,f,h=(i=n.fetchOptions)==null||(l=i.meta)==null?void 0:l.refetchPage,d=(o=n.fetchOptions)==null||(s=o.meta)==null?void 0:s.fetchMore,y=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",x=(d==null?void 0:d.direction)==="backward",b=((c=n.state.data)==null?void 0:c.pages)||[],S=((f=n.state.data)==null?void 0:f.pageParams)||[],k=zx(),_=k==null?void 0:k.signal,A=S,N=!1,O=n.options.queryFn||function(){return Promise.reject("Missing queryFn")},L=function(J,se,B,X){return A=X?[se].concat(A):[].concat(A,[se]),X?[B].concat(J):[].concat(J,[B])},q=function(J,se,B,X){if(N)return Promise.reject("Cancelled");if(typeof B>"u"&&!se&&J.length)return Promise.resolve(J);var ne={queryKey:n.queryKey,signal:_,pageParam:B,meta:n.meta},pe=O(ne),C=Promise.resolve(pe).then(function(oe){return L(J,B,oe,X)});if(Pu(pe)){var I=C;I.cancel=pe.cancel}return C},M;if(!b.length)M=q([]);else if(g){var Y=typeof y<"u",ee=Y?y:Hv(n.options,b);M=q(b,Y,ee)}else if(x){var ie=typeof y<"u",z=ie?y:gT(n.options,b);M=q(b,ie,z,!0)}else(function(){A=[];var ue=typeof n.options.getNextPageParam>"u",J=h&&b[0]?h(b[0],0,b):!0;M=J?q([],ue,S[0]):Promise.resolve(L([],S[0],b[0]));for(var se=function(ne){M=M.then(function(pe){var C=h&&b[ne]?h(b[ne],ne,b):!0;if(C){var I=ue?S[ne]:Hv(n.options,pe);return q(pe,ue,I)}return Promise.resolve(L(pe,S[ne],b[ne]))})},B=1;B<b.length;B++)se(B)})();var ae=M.then(function(ue){return{pages:ue,pageParams:A}}),te=ae;return te.cancel=function(){N=!0,k==null||k.abort(),Pu(M)&&M.cancel()},ae}}}}function Hv(e,n){return e.getNextPageParam==null?void 0:e.getNextPageParam(n[n.length-1],n)}function gT(e,n){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(n[0],n)}var vT=function(){function e(i){i===void 0&&(i={}),this.queryCache=i.queryCache||new dT,this.mutationCache=i.mutationCache||new mT,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var n=e.prototype;return n.mount=function(){var l=this;this.unsubscribeFocus=Uo.subscribe(function(){Uo.isFocused()&&Ru.isOnline()&&(l.mutationCache.onFocus(),l.queryCache.onFocus())}),this.unsubscribeOnline=Ru.subscribe(function(){Uo.isFocused()&&Ru.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=Ni(l,o),c=s[0];return c.fetching=!0,this.queryCache.findAll(c).length},n.isMutating=function(l){return this.mutationCache.findAll(je({},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=Ou(l),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(o,s)},n.setQueriesData=function(l,o,s){var c=this;return at.batch(function(){return c.getQueryCache().findAll(l).map(function(f){var h=f.queryKey;return[h,c.setQueryData(h,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=Ni(l,o),c=s[0],f=this.queryCache;at.batch(function(){f.findAll(c).forEach(function(h){f.remove(h)})})},n.resetQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=this.queryCache,g=je({},h,{active:!0});return at.batch(function(){return y.findAll(h).forEach(function(x){x.reset()}),c.refetchQueries(g,d)})},n.cancelQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=d===void 0?{}:d;typeof y.revert>"u"&&(y.revert=!0);var g=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.cancel(y)})});return Promise.all(g).then($t).catch($t)},n.invalidateQueries=function(l,o,s){var c,f,h,d=this,y=Ni(l,o,s),g=y[0],x=y[1],b=je({},g,{active:(c=(f=g.refetchActive)!=null?f:g.active)!=null?c:!0,inactive:(h=g.refetchInactive)!=null?h:!1});return at.batch(function(){return d.queryCache.findAll(g).forEach(function(S){S.invalidate()}),d.refetchQueries(b,x)})},n.refetchQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.fetch(void 0,je({},d,{meta:{refetchPage:h==null?void 0:h.refetchPage}}))})}),g=Promise.all(y).then($t);return d!=null&&d.throwOnError||(g=g.catch($t)),g},n.fetchQuery=function(l,o,s){var c=Ou(l,o,s),f=this.defaultQueryOptions(c);typeof f.retry>"u"&&(f.retry=!1);var h=this.queryCache.build(this,f);return h.isStaleByTime(f.staleTime)?h.fetch(f):Promise.resolve(h.state.data)},n.prefetchQuery=function(l,o,s){return this.fetchQuery(l,o,s).then($t).catch($t)},n.fetchInfiniteQuery=function(l,o,s){var c=Ou(l,o,s);return c.behavior=yT(),this.fetchQuery(c)},n.prefetchInfiniteQuery=function(l,o,s){return this.fetchInfiniteQuery(l,o,s).then($t).catch($t)},n.cancelMutations=function(){var l=this,o=at.batch(function(){return l.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(o).then($t).catch($t)},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 ol(l)===ol(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 Fu(l,s.queryKey)}))==null?void 0:o.defaultOptions:void 0},n.setMutationDefaults=function(l,o){var s=this.mutationDefaults.find(function(c){return ol(l)===ol(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 Fu(l,s.mutationKey)}))==null?void 0:o.defaultOptions:void 0},n.defaultQueryOptions=function(l){if(l!=null&&l._defaulted)return l;var o=je({},this.defaultOptions.queries,this.getQueryDefaults(l==null?void 0:l.queryKey),l,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=np(o.queryKey,o)),o},n.defaultQueryObserverOptions=function(l){return this.defaultQueryOptions(l)},n.defaultMutationOptions=function(l){return l!=null&&l._defaulted?l:je({},this.defaultOptions.mutations,this.getMutationDefaults(l==null?void 0:l.mutationKey),l,{_defaulted:!0})},n.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),bT=function(e){Ca(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),Fv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return vh(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return vh(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 h=this.hasListeners();h&&Qv(this.currentQuery,f,this.options,c)&&this.executeFetch(),this.updateResult(s),h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||this.options.staleTime!==c.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},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={},h=function(y){c.trackedProps.includes(y)||c.trackedProps.push(y)};return Object.keys(o).forEach(function(d){Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:function(){return h(d),o[d]}})}),(s.useErrorBoundary||s.suspense)&&h("error"),f},i.getNextResult=function(o){var s=this;return new Promise(function(c,f){var h=s.subscribe(function(d){d.isFetching||(h(),d.isError&&(o!=null&&o.throwOnError)?f(d.error):c(d))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(o){return this.fetch(je({},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($t)),s},i.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(qu||this.currentResult.isStale||!yh(this.options.staleTime))){var s=Mx(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,!(qu||this.options.enabled===!1||!yh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||Uo.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,h=this.currentResult,d=this.currentResultState,y=this.currentResultOptions,g=o!==c,x=g?o.state:this.currentQueryInitialState,b=g?this.currentResult:this.previousQueryResult,S=o.state,k=S.dataUpdatedAt,_=S.error,A=S.errorUpdatedAt,N=S.isFetching,O=S.status,L=!1,q=!1,M;if(s.optimisticResults){var Y=this.hasListeners(),ee=!Y&&Fv(o,s),ie=Y&&Qv(o,c,s,f);(ee||ie)&&(N=!0,k||(O="loading"))}if(s.keepPreviousData&&!S.dataUpdateCount&&(b!=null&&b.isSuccess)&&O!=="error")M=b.data,k=b.dataUpdatedAt,O=b.status,L=!0;else if(s.select&&typeof S.data<"u")if(h&&S.data===(d==null?void 0:d.data)&&s.select===this.selectFn)M=this.selectResult;else try{this.selectFn=s.select,M=s.select(S.data),s.structuralSharing!==!1&&(M=Qu(h==null?void 0:h.data,M)),this.selectResult=M,this.selectError=null}catch(te){Iu().error(te),this.selectError=te}else M=S.data;if(typeof s.placeholderData<"u"&&typeof M>"u"&&(O==="loading"||O==="idle")){var z;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(y==null?void 0:y.placeholderData))z=h.data;else if(z=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof z<"u")try{z=s.select(z),s.structuralSharing!==!1&&(z=Qu(h==null?void 0:h.data,z)),this.selectError=null}catch(te){Iu().error(te),this.selectError=te}typeof z<"u"&&(O="success",M=z,q=!0)}this.selectError&&(_=this.selectError,M=this.selectResult,A=Date.now(),O="error");var ae={status:O,isLoading:O==="loading",isSuccess:O==="success",isError:O==="error",isIdle:O==="idle",data:M,dataUpdatedAt:k,error:_,errorUpdatedAt:A,failureCount:S.fetchFailureCount,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>x.dataUpdateCount||S.errorUpdateCount>x.errorUpdateCount,isFetching:N,isRefetching:N&&O!=="loading",isLoadingError:O==="error"&&S.dataUpdatedAt===0,isPlaceholderData:q,isPreviousData:L,isRefetchError:O==="error"&&S.dataUpdatedAt!==0,isStale:rp(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,h=c.notifyOnChangePropsExclusions;if(!f&&!h||f==="tracked"&&!this.trackedProps.length)return!0;var d=f==="tracked"?this.trackedProps:f;return Object.keys(o).some(function(y){var g=y,x=o[g]!==s[g],b=d==null?void 0:d.some(function(k){return k===y}),S=h==null?void 0:h.some(function(k){return k===y});return x&&!S&&(!d||b)})},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,!iT(this.currentResult,s)){var c={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(c.listeners=!0),this.notify(je({},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"&&!Nu(o.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},i.notify=function(o){var s=this;at.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}(Ea);function xT(e,n){return n.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Fv(e,n){return xT(e,n)||e.state.dataUpdatedAt>0&&vh(e,n,n.refetchOnMount)}function vh(e,n,i){if(n.enabled!==!1){var l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&rp(e,n)}return!1}function Qv(e,n,i,l){return i.enabled!==!1&&(e!==n||l.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&rp(e,i)}function rp(e,n){return e.isStaleByTime(n.staleTime)}var ST=function(e){Ca(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,je({},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:Hx(),s=je({},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;at.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}(Ea),wT=WE.unstable_batchedUpdates;at.setBatchNotifyFunction(wT);var CT=console;cT(CT);var Pv=tt.createContext(void 0),Fx=tt.createContext(!1);function Qx(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Pv),window.ReactQueryClientContext):Pv}var Px=function(){var n=tt.useContext(Qx(tt.useContext(Fx)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},ET=function(n){var i=n.client,l=n.contextSharing,o=l===void 0?!1:l,s=n.children;tt.useEffect(function(){return i.mount(),function(){i.unmount()}},[i]);var c=Qx(o);return tt.createElement(Fx.Provider,{value:o},tt.createElement(c.Provider,{value:i},s))};function TT(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var kT=tt.createContext(TT()),AT=function(){return tt.useContext(kT)};function Ix(e,n,i){return typeof n=="function"?n.apply(void 0,i):typeof n=="boolean"?n:!!e}function Cr(e,n,i){var l=tt.useRef(!1),o=tt.useState(0),s=o[1],c=tT(e,n,i),f=Px(),h=tt.useRef();h.current?h.current.setOptions(c):h.current=new ST(f,c);var d=h.current.getCurrentResult();tt.useEffect(function(){l.current=!0;var g=h.current.subscribe(at.batchCalls(function(){l.current&&s(function(x){return x+1})}));return function(){l.current=!1,g()}},[]);var y=tt.useCallback(function(g,x){h.current.mutate(g,x).catch($t)},[]);if(d.error&&Ix(void 0,h.current.options.useErrorBoundary,[d.error]))throw d.error;return je({},d,{mutate:y,mutateAsync:d.mutate})}function _T(e,n){var i=tt.useRef(!1),l=tt.useState(0),o=l[1],s=Px(),c=AT(),f=s.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=at.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=at.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=at.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 h=tt.useState(function(){return new n(s,f)}),d=h[0],y=d.getOptimisticResult(f);if(tt.useEffect(function(){i.current=!0,c.clearReset();var g=d.subscribe(at.batchCalls(function(){i.current&&o(function(x){return x+1})}));return d.updateResult(),function(){i.current=!1,g()}},[c,d]),tt.useEffect(function(){d.setOptions(f,{listeners:!1})},[f,d]),f.suspense&&y.isLoading)throw d.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(y.isError&&!c.isReset()&&!y.isFetching&&Ix(f.suspense,f.useErrorBoundary,[y.error,d.getCurrentQuery()]))throw y.error;return f.notifyOnChangeProps==="tracked"&&(y=d.trackResult(y,f)),y}function Gn(e,n,i){var l=Ou(e,n,i);return _T(l,bT)}function Vx(e,n){return function(){return e.apply(n,arguments)}}const{toString:OT}=Object.prototype,{getPrototypeOf:ip}=Object,{iterator:lc,toStringTag:$x}=Symbol,ac=(e=>n=>{const i=OT.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),n=>ac(n)===e),oc=e=>n=>typeof n===e,{isArray:Ta}=Array,Io=oc("undefined");function RT(e){return e!==null&&!Io(e)&&e.constructor!==null&&!Io(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yx=ar("ArrayBuffer");function NT(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Yx(e.buffer),n}const jT=oc("string"),yn=oc("function"),Gx=oc("number"),sc=e=>e!==null&&typeof e=="object",DT=e=>e===!0||e===!1,ju=e=>{if(ac(e)!=="object")return!1;const n=ip(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!($x in e)&&!(lc in e)},MT=ar("Date"),LT=ar("File"),zT=ar("Blob"),UT=ar("FileList"),BT=e=>sc(e)&&yn(e.pipe),qT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((n=ac(e))==="formdata"||n==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},HT=ar("URLSearchParams"),[FT,QT,PT,IT]=["ReadableStream","Request","Response","Headers"].map(ar),VT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let l,o;if(typeof e!="object"&&(e=[e]),Ta(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 Kx(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 sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xx=e=>!Io(e)&&e!==sl;function bh(){const{caseless:e}=Xx(this)&&this||{},n={},i=(l,o)=>{const s=e&&Kx(n,o)||o;ju(n[s])&&ju(l)?n[s]=bh(n[s],l):ju(l)?n[s]=bh({},l):Ta(l)?n[s]=l.slice():n[s]=l};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&Wo(arguments[l],i);return n}const $T=(e,n,i,{allOwnKeys:l}={})=>(Wo(n,(o,s)=>{i&&yn(o)?e[s]=Vx(o,i):e[s]=o},{allOwnKeys:l}),e),YT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GT=(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)},KT=(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&&ip(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},XT=(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},ZT=e=>{if(!e)return null;if(Ta(e))return e;let n=e.length;if(!Gx(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},JT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&ip(Uint8Array)),WT=(e,n)=>{const l=(e&&e[lc]).call(e);let o;for(;(o=l.next())&&!o.done;){const s=o.value;n.call(e,s[0],s[1])}},ek=(e,n)=>{let i;const l=[];for(;(i=e.exec(n))!==null;)l.push(i);return l},tk=ar("HTMLFormElement"),nk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,o){return l.toUpperCase()+o}),Iv=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),rk=ar("RegExp"),Zx=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),l={};Wo(i,(o,s)=>{let c;(c=n(o,s,e))!==!1&&(l[s]=c||o)}),Object.defineProperties(e,l)},ik=e=>{Zx(e,(n,i)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=e[i];if(yn(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+"'")})}})},lk=(e,n)=>{const i={},l=o=>{o.forEach(s=>{i[s]=!0})};return Ta(e)?l(e):l(String(e).split(n)),i},ak=()=>{},ok=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function sk(e){return!!(e&&yn(e.append)&&e[$x]==="FormData"&&e[lc])}const uk=e=>{const n=new Array(10),i=(l,o)=>{if(sc(l)){if(n.indexOf(l)>=0)return;if(!("toJSON"in l)){n[o]=l;const s=Ta(l)?[]:{};return Wo(l,(c,f)=>{const h=i(c,o+1);!Io(h)&&(s[f]=h)}),n[o]=void 0,s}}return l};return i(e,0)},ck=ar("AsyncFunction"),fk=e=>e&&(sc(e)||yn(e))&&yn(e.then)&&yn(e.catch),Jx=((e,n)=>e?setImmediate:n?((i,l)=>(sl.addEventListener("message",({source:o,data:s})=>{o===sl&&s===i&&l.length&&l.shift()()},!1),o=>{l.push(o),sl.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",yn(sl.postMessage)),dk=typeof queueMicrotask<"u"?queueMicrotask.bind(sl):typeof process<"u"&&process.nextTick||Jx,hk=e=>e!=null&&yn(e[lc]),V={isArray:Ta,isArrayBuffer:Yx,isBuffer:RT,isFormData:qT,isArrayBufferView:NT,isString:jT,isNumber:Gx,isBoolean:DT,isObject:sc,isPlainObject:ju,isReadableStream:FT,isRequest:QT,isResponse:PT,isHeaders:IT,isUndefined:Io,isDate:MT,isFile:LT,isBlob:zT,isRegExp:rk,isFunction:yn,isStream:BT,isURLSearchParams:HT,isTypedArray:JT,isFileList:UT,forEach:Wo,merge:bh,extend:$T,trim:VT,stripBOM:YT,inherits:GT,toFlatObject:KT,kindOf:ac,kindOfTest:ar,endsWith:XT,toArray:ZT,forEachEntry:WT,matchAll:ek,isHTMLForm:tk,hasOwnProperty:Iv,hasOwnProp:Iv,reduceDescriptors:Zx,freezeMethods:ik,toObjectSet:lk,toCamelCase:nk,noop:ak,toFiniteNumber:ok,findKey:Kx,global:sl,isContextDefined:Xx,isSpecCompliantForm:sk,toJSONObject:uk,isAsyncFn:ck,isThenable:fk,setImmediate:Jx,asap:dk,isIterable:hk};function ke(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(ke,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 Wx=ke.prototype,e0={};["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=>{e0[e]={value:e}});Object.defineProperties(ke,e0);Object.defineProperty(Wx,"isAxiosError",{value:!0});ke.from=(e,n,i,l,o,s)=>{const c=Object.create(Wx);return V.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),ke.call(c,e.message,n,i,l,o),c.cause=e,c.name=e.name,s&&Object.assign(c,s),c};const pk=null;function xh(e){return V.isPlainObject(e)||V.isArray(e)}function t0(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,n,i){return e?e.concat(n).map(function(o,s){return o=t0(o),!i&&s?"["+o+"]":o}).join(i?".":""):n}function mk(e){return V.isArray(e)&&!e.some(xh)}const yk=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function uc(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(k,_){return!V.isUndefined(_[k])});const l=i.metaTokens,o=i.visitor||y,s=i.dots,c=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!h&&V.isBlob(S))throw new ke("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function y(S,k,_){let A=S;if(S&&!_&&typeof S=="object"){if(V.endsWith(k,"{}"))k=l?k:k.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&mk(S)||(V.isFileList(S)||V.endsWith(k,"[]"))&&(A=V.toArray(S)))return k=t0(k),A.forEach(function(O,L){!(V.isUndefined(O)||O===null)&&n.append(c===!0?Vv([k],L,s):c===null?k:k+"[]",d(O))}),!1}return xh(S)?!0:(n.append(Vv(_,k,s),d(S)),!1)}const g=[],x=Object.assign(yk,{defaultVisitor:y,convertValue:d,isVisitable:xh});function b(S,k){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+k.join("."));g.push(S),V.forEach(S,function(A,N){(!(V.isUndefined(A)||A===null)&&o.call(n,A,V.isString(N)?N.trim():N,k,x))===!0&&b(A,k?k.concat(N):[N])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return b(e),n}function $v(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(l){return n[l]})}function lp(e,n){this._pairs=[],e&&uc(e,this,n)}const n0=lp.prototype;n0.append=function(n,i){this._pairs.push([n,i])};n0.toString=function(n){const i=n?function(l){return n.call(this,l,$v)}:$v;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function gk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r0(e,n,i){if(!n)return e;const l=i&&i.encode||gk;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 lp(n,i).toString(l),s){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Yv{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 i0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vk=typeof URLSearchParams<"u"?URLSearchParams:lp,bk=typeof FormData<"u"?FormData:null,xk=typeof Blob<"u"?Blob:null,Sk={isBrowser:!0,classes:{URLSearchParams:vk,FormData:bk,Blob:xk},protocols:["http","https","file","blob","url","data"]},ap=typeof window<"u"&&typeof document<"u",Sh=typeof navigator=="object"&&navigator||void 0,wk=ap&&(!Sh||["ReactNative","NativeScript","NS"].indexOf(Sh.product)<0),Ck=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ek=ap&&window.location.href||"http://localhost",Tk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ap,hasStandardBrowserEnv:wk,hasStandardBrowserWebWorkerEnv:Ck,navigator:Sh,origin:Ek},Symbol.toStringTag,{value:"Module"})),en={...Tk,...Sk};function kk(e,n){return uc(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 Ak(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function _k(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 l0(e){function n(i,l,o,s){let c=i[s++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=s>=i.length;return c=!c&&V.isArray(o)?o.length:c,h?(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]=_k(o[c])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const i={};return V.forEachEntry(e,(l,o)=>{n(Ak(l),o,i,0)}),i}return null}function Ok(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 es={transitional:i0,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(l0(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 kk(n,this.formSerializer).toString();if((f=V.isFileList(n))||l.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return uc(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),Ok(n)):n}],transformResponse:[function(n){const i=this.transitional||es.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"?ke.from(f,ke.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=>{es.headers[e]={}});const Rk=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"]),Nk=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]&&Rk[i])&&(i==="set-cookie"?n[i]?n[i].push(l):n[i]=[l]:n[i]=n[i]?n[i]+", "+l:l)}),n},Gv=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Du(e){return e===!1||e==null?e:V.isArray(e)?e.map(Du):String(e)}function jk(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 Dk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qd(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 Mk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,l)=>i.toUpperCase()+l)}function Lk(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 gn=class{constructor(n){n&&this.set(n)}set(n,i,l){const o=this;function s(f,h,d){const y=No(h);if(!y)throw new Error("header name must be a non-empty string");const g=V.findKey(o,y);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||h]=Du(f))}const c=(f,h)=>V.forEach(f,(d,y)=>s(d,y,h));if(V.isPlainObject(n)||n instanceof this.constructor)c(n,i);else if(V.isString(n)&&(n=n.trim())&&!Dk(n))c(Nk(n),i);else if(V.isObject(n)&&V.isIterable(n)){let f={},h,d;for(const y of n){if(!V.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[d=y[0]]=(h=f[d])?V.isArray(h)?[...h,y[1]]:[h,y[1]]:y[1]}c(f,i)}else n!=null&&s(i,n,l);return this}get(n,i){if(n=No(n),n){const l=V.findKey(this,n);if(l){const o=this[l];if(!i)return o;if(i===!0)return jk(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=No(n),n){const l=V.findKey(this,n);return!!(l&&this[l]!==void 0&&(!i||qd(this,this[l],l,i)))}return!1}delete(n,i){const l=this;let o=!1;function s(c){if(c=No(c),c){const f=V.findKey(l,c);f&&(!i||qd(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||qd(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]=Du(o),delete i[s];return}const f=n?Mk(s):String(s).trim();f!==s&&delete i[s],i[f]=Du(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[Gv]=this[Gv]={accessors:{}}).accessors,o=this.prototype;function s(c){const f=No(c);l[f]||(Lk(o,c),l[f]=!0)}return V.isArray(n)?n.forEach(s):s(n),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(gn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(l){this[i]=l}}});V.freezeMethods(gn);function Hd(e,n){const i=this||es,l=n||i,o=gn.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 a0(e){return!!(e&&e.__CANCEL__)}function ka(e,n,i){ke.call(this,e??"canceled",ke.ERR_CANCELED,n,i),this.name="CanceledError"}V.inherits(ka,ke,{__CANCEL__:!0});function o0(e,n,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?e(i):n(new ke("Request failed with status code "+i.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function zk(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Uk(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(h){const d=Date.now(),y=l[s];c||(c=d),i[o]=h,l[o]=d;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),d-c<n)return;const b=y&&d-y;return b?Math.round(x*1e3/b):void 0}}function Bk(e,n){let i=0,l=1e3/n,o,s;const c=(d,y=Date.now())=>{i=y,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const y=Date.now(),g=y-i;g>=l?c(d,y):(o=d,s||(s=setTimeout(()=>{s=null,c(o)},l-g)))},()=>o&&c(o)]}const Vu=(e,n,i=3)=>{let l=0;const o=Uk(50,250);return Bk(s=>{const c=s.loaded,f=s.lengthComputable?s.total:void 0,h=c-l,d=o(h),y=c<=f;l=c;const g={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:d||void 0,estimated:d&&f&&y?(f-c)/d:void 0,event:s,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(g)},i)},Kv=(e,n)=>{const i=e!=null;return[l=>n[0]({lengthComputable:i,total:e,loaded:l}),n[1]]},Xv=e=>(...n)=>V.asap(()=>e(...n)),qk=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,Hk=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 Fk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qk(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function s0(e,n,i){let l=!Fk(n);return e&&(l||i==!1)?Qk(e,n):n}const Zv=e=>e instanceof gn?{...e}:e;function pl(e,n){n=n||{};const i={};function l(d,y,g,x){return V.isPlainObject(d)&&V.isPlainObject(y)?V.merge.call({caseless:x},d,y):V.isPlainObject(y)?V.merge({},y):V.isArray(y)?y.slice():y}function o(d,y,g,x){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d,g,x)}else return l(d,y,g,x)}function s(d,y){if(!V.isUndefined(y))return l(void 0,y)}function c(d,y){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d)}else return l(void 0,y)}function f(d,y,g){if(g in n)return l(d,y);if(g in e)return l(void 0,d)}const h={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:(d,y,g)=>o(Zv(d),Zv(y),g,!0)};return V.forEach(Object.keys(Object.assign({},e,n)),function(y){const g=h[y]||o,x=g(e[y],n[y],y);V.isUndefined(x)&&g!==f||(i[y]=x)}),i}const u0=e=>{const n=pl({},e);let{data:i,withXSRFToken:l,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:f}=n;n.headers=c=gn.from(c),n.url=r0(s0(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 h;if(V.isFormData(i)){if(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[d,...y]=h?h.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([d||"multipart/form-data",...y].join("; "))}}if(en.hasStandardBrowserEnv&&(l&&V.isFunction(l)&&(l=l(n)),l||l!==!1&&qk(n.url))){const d=o&&s&&Hk.read(s);d&&c.set(o,d)}return n},Pk=typeof XMLHttpRequest<"u",Ik=Pk&&function(e){return new Promise(function(i,l){const o=u0(e);let s=o.data;const c=gn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:d}=o,y,g,x,b,S;function k(){b&&b(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function A(){if(!_)return;const O=gn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),q={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:O,config:e,request:_};o0(function(Y){i(Y),k()},function(Y){l(Y),k()},q),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(l(new ke("Request aborted",ke.ECONNABORTED,e,_)),_=null)},_.onerror=function(){l(new ke("Network Error",ke.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const q=o.transitional||i0;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),l(new ke(L,q.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,_)),_=null},s===void 0&&c.setContentType(null),"setRequestHeader"in _&&V.forEach(c.toJSON(),function(L,q){_.setRequestHeader(q,L)}),V.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),f&&f!=="json"&&(_.responseType=o.responseType),d&&([x,S]=Vu(d,!0),_.addEventListener("progress",x)),h&&_.upload&&([g,b]=Vu(h),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(y=O=>{_&&(l(!O||O.type?new ka(null,e,_):O),_.abort(),_=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const N=zk(o.url);if(N&&en.protocols.indexOf(N)===-1){l(new ke("Unsupported protocol "+N+":",ke.ERR_BAD_REQUEST,e));return}_.send(s||null)})},Vk=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let l=new AbortController,o;const s=function(d){if(!o){o=!0,f();const y=d instanceof Error?d:this.reason;l.abort(y instanceof ke?y:new ka(y instanceof Error?y.message:y))}};let c=n&&setTimeout(()=>{c=null,s(new ke(`timeout ${n} of ms exceeded`,ke.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=l;return h.unsubscribe=()=>V.asap(f),h}},$k=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},Yk=async function*(e,n){for await(const i of Gk(e))yield*$k(i,n)},Gk=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()}},Jv=(e,n,i,l)=>{const o=Yk(e,n);let s=0,c,f=h=>{c||(c=!0,l&&l(h))};return new ReadableStream({async pull(h){try{const{done:d,value:y}=await o.next();if(d){f(),h.close();return}let g=y.byteLength;if(i){let x=s+=g;i(x)}h.enqueue(new Uint8Array(y))}catch(d){throw f(d),d}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},cc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",c0=cc&&typeof ReadableStream=="function",Kk=cc&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),f0=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Xk=c0&&f0(()=>{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}),Wv=64*1024,wh=c0&&f0(()=>V.isReadableStream(new Response("").body)),$u={stream:wh&&(e=>e.body)};cc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!$u[n]&&($u[n]=V.isFunction(e[n])?i=>i[n]():(i,l)=>{throw new ke(`Response type '${n}' is not supported`,ke.ERR_NOT_SUPPORT,l)})})})(new Response);const Zk=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 Kk(e)).byteLength},Jk=async(e,n)=>{const i=V.toFiniteNumber(e.getContentLength());return i??Zk(n)},Wk=cc&&(async e=>{let{url:n,method:i,data:l,signal:o,cancelToken:s,timeout:c,onDownloadProgress:f,onUploadProgress:h,responseType:d,headers:y,withCredentials:g="same-origin",fetchOptions:x}=u0(e);d=d?(d+"").toLowerCase():"text";let b=Vk([o,s&&s.toAbortSignal()],c),S;const k=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let _;try{if(h&&Xk&&i!=="get"&&i!=="head"&&(_=await Jk(y,l))!==0){let q=new Request(n,{method:"POST",body:l,duplex:"half"}),M;if(V.isFormData(l)&&(M=q.headers.get("content-type"))&&y.setContentType(M),q.body){const[Y,ee]=Kv(_,Vu(Xv(h)));l=Jv(q.body,Wv,Y,ee)}}V.isString(g)||(g=g?"include":"omit");const A="credentials"in Request.prototype;S=new Request(n,{...x,signal:b,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:A?g:void 0});let N=await fetch(S);const O=wh&&(d==="stream"||d==="response");if(wh&&(f||O&&k)){const q={};["status","statusText","headers"].forEach(ie=>{q[ie]=N[ie]});const M=V.toFiniteNumber(N.headers.get("content-length")),[Y,ee]=f&&Kv(M,Vu(Xv(f),!0))||[];N=new Response(Jv(N.body,Wv,Y,()=>{ee&&ee(),k&&k()}),q)}d=d||"text";let L=await $u[V.findKey($u,d)||"text"](N,e);return!O&&k&&k(),await new Promise((q,M)=>{o0(q,M,{data:L,headers:gn.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:S})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,S),{cause:A.cause||A}):ke.from(A,A&&A.code,e,S)}}),Ch={http:pk,xhr:Ik,fetch:Wk};V.forEach(Ch,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const eb=e=>`- ${e}`,eA=e=>V.isFunction(e)||e===null||e===!1,d0={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,!eA(i)&&(l=Ch[(c=String(i)).toLowerCase()],l===void 0))throw new ke(`Unknown adapter '${c}'`);if(l)break;o[c||"#"+s]=l}if(!l){const s=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
51
+ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let x=vn(),b;if(n){let O=typeof n=="string"?xa(n):n;ot(y==="/"||((N=O.pathname)==null?void 0:N.startsWith(y)),`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 "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),b=O}else b=x;let S=b.pathname||"/",k=S;if(y!=="/"){let O=y.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(O.length).join("/")}let _=!s&&i&&i.matches&&i.matches.length>0?i.matches:bx(e,{pathname:k});nr(g||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),nr(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=uE(_&&_.map(O=>Object.assign({},O,{params:Object.assign({},h,O.params),pathname:Gr([y,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:Gr([y,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),c,i,l);return n&&A?E.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function lE(){let e=pE(),n=JC(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 aE=E.createElement(lE,null),oE=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(wr.Provider,{value:this.props.routeContext},E.createElement(Zh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sE({routeContext:e,match:n,children:i}){let l=E.useContext(Sa);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(wr.Provider,{value:e},i)}function uE(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 h=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);ot(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let c=!1,f=-1;if(i)for(let h=0;h<o.length;h++){let d=o[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=h),d.route.id){let{loaderData:y,errors:g}=i,x=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||x){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,d,y)=>{let g,x=!1,b=null,S=null;i&&(g=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||aE,c&&(f<0&&y===0?(Ax("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):f===y&&(x=!0,S=d.route.hydrateFallbackElement||null)));let k=n.concat(o.slice(0,y+1)),_=()=>{let A;return g?A=b:x?A=S:d.route.Component?A=E.createElement(d.route.Component,null):d.route.element?A=d.route.element:A=h,E.createElement(sE,{match:d,routeContext:{outlet:h,matches:k,isDataRoute:i!=null},children:A})};return i&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?E.createElement(oE,{location:i.location,revalidation:i.revalidation,component:b,error:g,children:_(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):_()},null)}function Jh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cE(e){let n=E.useContext(Sa);return ot(n,Jh(e)),n}function fE(e){let n=E.useContext(rc);return ot(n,Jh(e)),n}function dE(e){let n=E.useContext(wr);return ot(n,Jh(e)),n}function Wh(e){let n=dE(e),i=n.matches[n.matches.length-1];return ot(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function hE(){return Wh("useRouteId")}function pE(){var l;let e=E.useContext(Zh),n=fE("useRouteError"),i=Wh("useRouteError");return e!==void 0?e:(l=n.errors)==null?void 0:l[i]}function mE(){let{router:e}=cE("useNavigate"),n=Wh("useNavigate"),i=E.useRef(!1);return Tx(()=>{i.current=!0}),E.useCallback(async(o,s={})=>{nr(i.current,Ex),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var Mv={};function Ax(e,n,i){!n&&!Mv[e]&&(Mv[e]=!0,nr(!1,i))}E.memo(yE);function yE({routes:e,future:n,state:i}){return kx(e,void 0,i,n)}function gE({to:e,replace:n,state:i,relative:l}){ot(wa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(lr);nr(!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(wr),{pathname:c}=vn(),f=Jr(),h=Xh(e,Kh(s),c,l==="path"),d=JSON.stringify(h);return E.useEffect(()=>{f(JSON.parse(d),{replace:n,state:i,relative:l})},[f,d,l,n,i]),null}function hh(e){ot(!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 vE({basename:e="/",children:n=null,location:i,navigationType:l="POP",navigator:o,static:s=!1}){ot(!wa(),"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=xa(i));let{pathname:h="/",search:d="",hash:y="",state:g=null,key:x="default"}=i,b=E.useMemo(()=>{let S=Kr(h,c);return S==null?null:{location:{pathname:S,search:d,hash:y,state:g,key:x},navigationType:l}},[c,h,d,y,g,x,l]);return nr(b!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(lr.Provider,{value:f},E.createElement(Xo.Provider,{children:n,value:b}))}function bE({children:e,location:n}){return iE(ph(e),n)}function ph(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,ph(l.props.children,s));return}ot(l.type===hh,`[${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>`),ot(!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=ph(l.props.children,s)),i.push(c)}),i}var Au="get",_u="application/x-www-form-urlencoded";function ic(e){return e!=null&&typeof e.tagName=="string"}function xE(e){return ic(e)&&e.tagName.toLowerCase()==="button"}function SE(e){return ic(e)&&e.tagName.toLowerCase()==="form"}function wE(e){return ic(e)&&e.tagName.toLowerCase()==="input"}function CE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function EE(e,n){return e.button===0&&(!n||n==="_self")&&!CE(e)}var vu=null;function TE(){if(vu===null)try{new FormData(document.createElement("form"),0),vu=!1}catch{vu=!0}return vu}var kE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bd(e){return e!=null&&!kE.has(e)?(nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):e}function AE(e,n){let i,l,o,s,c;if(SE(e)){let f=e.getAttribute("action");l=f?Kr(f,n):null,i=e.getAttribute("method")||Au,o=Bd(e.getAttribute("enctype"))||_u,s=new FormData(e)}else if(xE(e)||wE(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 h=e.getAttribute("formaction")||f.getAttribute("action");if(l=h?Kr(h,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||Au,o=Bd(e.getAttribute("formenctype"))||Bd(f.getAttribute("enctype"))||_u,s=new FormData(f,e),!TE()){let{name:d,type:y,value:g}=e;if(y==="image"){let x=d?`${d}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else d&&s.append(d,g)}}else{if(ic(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Au,l=null,o=_u,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:s,body:c}}function ep(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function _E(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 OE(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 RE(e,n,i){let l=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await _E(s,i);return c.links?c.links():[]}return[]}));return ME(l.flat(1).filter(OE).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Lv(e,n,i,l,o,s){let c=(h,d)=>i[d]?h.route.id!==i[d].route.id:!0,f=(h,d)=>{var y;return i[d].pathname!==h.pathname||((y=i[d].route.path)==null?void 0:y.endsWith("*"))&&i[d].params["*"]!==h.params["*"]};return s==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):s==="data"?n.filter((h,d)=>{var g;let y=l.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let x=h.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:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function NE(e,n,{includeHydrateFallback:i}={}){return jE(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 jE(e){return[...new Set(e)]}function DE(e){let n={},i=Object.keys(e).sort();for(let l of i)n[l]=e[l];return n}function ME(e,n){let i=new Set;return new Set(n),e.reduce((l,o)=>{let s=JSON.stringify(DE(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 zE(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&&Kr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function _x(){let e=E.useContext(Sa);return ep(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UE(){let e=E.useContext(rc);return ep(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var tp=E.createContext(void 0);tp.displayName="FrameworkContext";function Ox(){let e=E.useContext(tp);return ep(e,"You must render this element inside a <HydratedRouter> element"),e}function BE(e,n){let i=E.useContext(tp),[l,o]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:y,onTouchStart:g}=n,x=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let k=A=>{A.forEach(N=>{c(N.isIntersecting)})},_=new IntersectionObserver(k,{threshold:.5});return x.current&&_.observe(x.current),()=>{_.disconnect()}}},[e]),E.useEffect(()=>{if(l){let k=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(k)}}},[l]);let b=()=>{o(!0)},S=()=>{o(!1),c(!1)};return i?e!=="intent"?[s,x,{}]:[s,x,{onFocus:Ro(f,b),onBlur:Ro(h,S),onMouseEnter:Ro(d,b),onMouseLeave:Ro(y,S),onTouchStart:Ro(g,b)}]:[!1,x,{}]}function Ro(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function qE({page:e,...n}){let{router:i}=_x(),l=E.useMemo(()=>bx(i.routes,e,i.basename),[i.routes,e,i.basename]);return l?E.createElement(FE,{page:e,matches:l,...n}):null}function HE(e){let{manifest:n,routeModules:i}=Ox(),[l,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return RE(e,n,i).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,i]),l}function FE({page:e,matches:n,...i}){let l=vn(),{manifest:o,routeModules:s}=Ox(),{basename:c}=_x(),{loaderData:f,matches:h}=UE(),d=E.useMemo(()=>Lv(e,n,h,o,l,"data"),[e,n,h,o,l]),y=E.useMemo(()=>Lv(e,n,h,o,l,"assets"),[e,n,h,o,l]),g=E.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let S=new Set,k=!1;if(n.forEach(A=>{var O;let N=o.routes[A.route.id];!N||!N.hasLoader||(!d.some(L=>L.route.id===A.route.id)&&A.route.id in f&&((O=s[A.route.id])!=null&&O.shouldRevalidate)||N.hasClientLoader?k=!0:S.add(A.route.id))}),S.size===0)return[];let _=zE(e,c);return k&&S.size>0&&_.searchParams.set("_routes",n.filter(A=>S.has(A.route.id)).map(A=>A.route.id).join(",")),[_.pathname+_.search]},[c,f,l,o,d,n,e,s]),x=E.useMemo(()=>NE(y,o),[y,o]),b=HE(y);return E.createElement(E.Fragment,null,g.map(S=>E.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),x.map(S=>E.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),b.map(({key:S,link:k})=>E.createElement("link",{key:S,...k})))}function QE(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var Rx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rx&&(window.__reactRouterVersion="7.6.0")}catch{}function PE({basename:e,children:n,window:i}){let l=E.useRef();l.current==null&&(l.current=OC({window:i,v5Compat:!0}));let o=l.current,[s,c]=E.useState({action:o.action,location:o.location}),f=E.useCallback(h=>{E.startTransition(()=>c(h))},[c]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.createElement(vE,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var Nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jx=E.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:o,reloadDocument:s,replace:c,state:f,target:h,to:d,preventScrollReset:y,viewTransition:g,...x},b){let{basename:S}=E.useContext(lr),k=typeof d=="string"&&Nx.test(d),_,A=!1;if(typeof d=="string"&&k&&(_=d,Rx))try{let ie=new URL(window.location.href),z=d.startsWith("//")?new URL(ie.protocol+d):new URL(d),ae=Kr(z.pathname,S);z.origin===ie.origin&&ae!=null?d=ae+z.search+z.hash:A=!0}catch{nr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=nE(d,{relative:o}),[O,L,q]=BE(l,x),M=YE(d,{replace:c,state:f,target:h,preventScrollReset:y,relative:o,viewTransition:g});function Y(ie){n&&n(ie),ie.defaultPrevented||M(ie)}let ee=E.createElement("a",{...x,...q,href:_||N,onClick:A||s?n:Y,ref:QE(b,L),target:h,"data-discover":!k&&i==="render"?"true":void 0});return O&&!k?E.createElement(E.Fragment,null,ee,E.createElement(qE,{page:N})):ee});jx.displayName="Link";var IE=E.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:l="",end:o=!1,style:s,to:c,viewTransition:f,children:h,...d},y){let g=Zo(c,{relative:d.relative}),x=vn(),b=E.useContext(rc),{navigator:S,basename:k}=E.useContext(lr),_=b!=null&&JE(g)&&f===!0,A=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,N=x.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(N=N.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&k&&(O=Kr(O,k)||O);const L=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let q=N===A||!o&&N.startsWith(A)&&N.charAt(L)==="/",M=O!=null&&(O===A||!o&&O.startsWith(A)&&O.charAt(A.length)==="/"),Y={isActive:q,isPending:M,isTransitioning:_},ee=q?n:void 0,ie;typeof l=="function"?ie=l(Y):ie=[l,q?"active":null,M?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(Y):s;return E.createElement(jx,{...d,"aria-current":ee,className:ie,ref:y,style:z,to:c,viewTransition:f},typeof h=="function"?h(Y):h)});IE.displayName="NavLink";var VE=E.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:o,state:s,method:c=Au,action:f,onSubmit:h,relative:d,preventScrollReset:y,viewTransition:g,...x},b)=>{let S=XE(),k=ZE(f,{relative:d}),_=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&Nx.test(f),N=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let L=O.nativeEvent.submitter,q=(L==null?void 0:L.getAttribute("formmethod"))||c;S(L||O.currentTarget,{fetcherKey:n,method:q,navigate:i,replace:o,state:s,relative:d,preventScrollReset:y,viewTransition:g})};return E.createElement("form",{ref:b,method:_,action:k,onSubmit:l?h:N,...x,"data-discover":!A&&e==="render"?"true":void 0})});VE.displayName="Form";function $E(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dx(e){let n=E.useContext(Sa);return ot(n,$E(e)),n}function YE(e,{target:n,replace:i,state:l,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=Jr(),h=vn(),d=Zo(e,{relative:s});return E.useCallback(y=>{if(EE(y,n)){y.preventDefault();let g=i!==void 0?i:Po(h)===Po(d);f(e,{replace:g,state:l,preventScrollReset:o,relative:s,viewTransition:c})}},[h,f,d,i,l,n,e,o,s,c])}var GE=0,KE=()=>`__${String(++GE)}__`;function XE(){let{router:e}=Dx("useSubmit"),{basename:n}=E.useContext(lr),i=hE();return E.useCallback(async(l,o={})=>{let{action:s,method:c,encType:f,formData:h,body:d}=AE(l,n);if(o.navigate===!1){let y=o.fetcherKey||KE();await e.fetch(y,i,o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,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 ZE(e,{relative:n}={}){let{basename:i}=E.useContext(lr),l=E.useContext(wr);ot(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),s={...Zo(e||".",{relative:n})},c=vn();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),h=f.getAll("index");if(h.some(y=>y==="")){f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let y=f.toString();s.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(s.pathname=s.pathname==="/"?i:Gr([i,s.pathname])),Po(s)}function JE(e,n={}){let i=E.useContext(Cx);ot(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Dx("useViewTransitionState"),o=Zo(e,{relative:n.relative});if(!i.isTransitioning)return!1;let s=Kr(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=Kr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Bu(o.pathname,c)!=null||Bu(o.pathname,s)!=null}[...LE];var WE=vx();const eT=ba(WE);function mh(e,n){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},mh(e,n)}function Ca(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,mh(e,n)}var Ea=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 je(){return je=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},je.apply(null,arguments)}var qu=typeof window>"u";function $t(){}function tT(e,n){return typeof e=="function"?e(n):e}function yh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hu(e){return Array.isArray(e)?e:[e]}function Mx(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ou(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{queryKey:e,queryFn:n}):je({},n,{queryKey:e}):e}function nT(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{mutationKey:e,mutationFn:n}):je({},n,{mutationKey:e}):typeof e=="function"?je({},n,{mutationFn:e}):je({},e)}function Ni(e,n,i){return Jo(e)?[je({},n,{queryKey:e}),i]:[e||{},n]}function rT(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 zv(e,n){var i=e.active,l=e.exact,o=e.fetching,s=e.inactive,c=e.predicate,f=e.queryKey,h=e.stale;if(Jo(f)){if(l){if(n.queryHash!==np(f,n.options))return!1}else if(!Fu(n.queryKey,f))return!1}var d=rT(i,s);if(d==="none")return!1;if(d!=="all"){var y=n.isActive();if(d==="active"&&!y||d==="inactive"&&y)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||typeof o=="boolean"&&n.isFetching()!==o||c&&!c(n))}function Uv(e,n){var i=e.exact,l=e.fetching,o=e.predicate,s=e.mutationKey;if(Jo(s)){if(!n.options.mutationKey)return!1;if(i){if(ol(n.options.mutationKey)!==ol(s))return!1}else if(!Fu(n.options.mutationKey,s))return!1}return!(typeof l=="boolean"&&n.state.status==="loading"!==l||o&&!o(n))}function np(e,n){var i=(n==null?void 0:n.queryKeyHashFn)||ol;return i(e)}function ol(e){var n=Hu(e);return iT(n)}function iT(e){return JSON.stringify(e,function(n,i){return gh(i)?Object.keys(i).sort().reduce(function(l,o){return l[o]=i[o],l},{}):i})}function Fu(e,n){return Lx(Hu(e),Hu(n))}function Lx(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!Lx(e[i],n[i])}):!1}function Qu(e,n){if(e===n)return e;var i=Array.isArray(e)&&Array.isArray(n);if(i||gh(e)&&gh(n)){for(var l=i?e.length:Object.keys(e).length,o=i?n:Object.keys(n),s=o.length,c=i?[]:{},f=0,h=0;h<s;h++){var d=i?h:o[h];c[d]=Qu(e[d],n[d]),c[d]===e[d]&&f++}return l===s&&f===l?e:c}return n}function lT(e,n){if(e&&!n||n&&!e)return!1;for(var i in e)if(e[i]!==n[i])return!1;return!0}function gh(e){if(!Bv(e))return!1;var n=e.constructor;if(typeof n>"u")return!0;var i=n.prototype;return!(!Bv(i)||!i.hasOwnProperty("isPrototypeOf"))}function Bv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jo(e){return typeof e=="string"||Array.isArray(e)}function aT(e){return new Promise(function(n){setTimeout(n,e)})}function qv(e){Promise.resolve().then(e).catch(function(n){return setTimeout(function(){throw n})})}function zx(){if(typeof AbortController=="function")return new AbortController}var oT=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((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}(Ea),Uo=new oT,sT=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((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}(Ea),Ru=new sT;function uT(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Pu(e){return typeof(e==null?void 0:e.cancel)=="function"}var Ux=function(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent};function Nu(e){return e instanceof Ux}var Bx=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,b){c=x,f=b});var h=function(b){i.isResolved||(i.isResolved=!0,n.onSuccess==null||n.onSuccess(b),s==null||s(),c(b))},d=function(b){i.isResolved||(i.isResolved=!0,n.onError==null||n.onError(b),s==null||s(),f(b))},y=function(){return new Promise(function(b){s=b,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 b;try{b=n.fn()}catch(S){b=Promise.reject(S)}o=function(k){if(!i.isResolved&&(d(new Ux(k)),i.abort==null||i.abort(),Pu(b)))try{b.cancel()}catch{}},i.isTransportCancelable=Pu(b),Promise.resolve(b).then(h).catch(function(S){var k,_;if(!i.isResolved){var A=(k=n.retry)!=null?k:3,N=(_=n.retryDelay)!=null?_:uT,O=typeof N=="function"?N(i.failureCount,S):N,L=A===!0||typeof A=="number"&&i.failureCount<A||typeof A=="function"&&A(i.failureCount,S);if(l||!L){d(S);return}i.failureCount++,n.onFail==null||n.onFail(i.failureCount,S),aT(O).then(function(){if(!Uo.isFocused()||!Ru.isOnline())return y()}).then(function(){l?d(S):x()})}})}};g()},cT=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):qv(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&&qv(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}(),at=new cT,qx=console;function Iu(){return qx}function fT(e){qx=e}var dT=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=je({},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(),yh(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,h=tT(l,f);return(s=(c=this.options).isDataEqual)!=null&&s.call(c,f,h)?h=f:this.options.structuralSharing!==!1&&(h=Qu(f,h)),this.dispatch({data:h,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),h},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($t).catch($t):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||!Mx(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,h;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var d;return(d=this.retryer)==null||d.continueRetry(),this.promise}}if(l&&this.setOptions(l),!this.options.queryFn){var y=this.observers.find(function(N){return N.options.queryFn});y&&this.setOptions(y.options)}var g=Hu(this.queryKey),x=zx(),b={queryKey:g,pageParam:void 0,meta:this.meta};Object.defineProperty(b,"signal",{enumerable:!0,get:function(){if(x)return s.abortSignalConsumed=!0,x.signal}});var S=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(b)):Promise.reject("Missing queryFn")},k={fetchOptions:o,options:this.options,queryKey:g,state:this.state,fetchFn:S,meta:this.meta};if((c=this.options.behavior)!=null&&c.onFetch){var _;(_=this.options.behavior)==null||_.onFetch(k)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((f=k.fetchOptions)==null?void 0:f.meta)){var A;this.dispatch({type:"fetch",meta:(A=k.fetchOptions)==null?void 0:A.meta})}return this.retryer=new Bx({fn:k.fetchFn,abort:x==null||(h=x.abort)==null?void 0:h.bind(x),onSuccess:function(O){s.setData(O),s.cache.config.onSuccess==null||s.cache.config.onSuccess(O,s),s.cacheTime===0&&s.optionalRemove()},onError:function(O){Nu(O)&&O.silent||s.dispatch({type:"error",error:O}),Nu(O)||(s.cache.config.onError==null||s.cache.config.onError(O,s),Iu().error(O)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:k.options.retry,retryDelay:k.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(l){var o=this;this.state=this.reducer(this.state,l),at.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 je({},l,{fetchFailureCount:l.fetchFailureCount+1});case"pause":return je({},l,{isPaused:!0});case"continue":return je({},l,{isPaused:!1});case"fetch":return je({},l,{fetchFailureCount:0,fetchMeta:(s=o.meta)!=null?s:null,isFetching:!0,isPaused:!1},!l.dataUpdatedAt&&{error:null,status:"loading"});case"success":return je({},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 Nu(f)&&f.revert&&this.revertState?je({},this.revertState):je({},l,{error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return je({},l,{isInvalidated:!0});case"setState":return je({},l,o.state);default:return l}},e}(),hT=function(e){Ca(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,h=s.queryKey,d=(f=s.queryHash)!=null?f:np(h,s),y=this.get(d);return y||(y=new dT({cache:this,queryKey:h,queryHash:d,options:o.defaultQueryOptions(s),state:c,defaultOptions:o.getQueryDefaults(h),meta:s.meta}),this.add(y)),y},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;at.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=Ni(o,s),f=c[0];return typeof f.exact>"u"&&(f.exact=!0),this.queries.find(function(h){return zv(f,h)})},i.findAll=function(o,s){var c=Ni(o,s),f=c[0];return Object.keys(f).length>0?this.queries.filter(function(h){return zv(f,h)}):this.queries},i.notify=function(o){var s=this;at.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onFocus()})})},i.onOnline=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onOnline()})})},n}(Ea),pT=function(){function e(i){this.options=je({},i.defaultOptions,i.options),this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.observers=[],this.state=i.state||Hx(),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($t).catch($t)):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),Iu().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 Bx({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=mT(this.state,l),at.batch(function(){o.observers.forEach(function(s){s.onMutationUpdate(l)}),o.mutationCache.notify(o)})},e}();function Hx(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function mT(e,n){switch(n.type){case"failed":return je({},e,{failureCount:e.failureCount+1});case"pause":return je({},e,{isPaused:!0});case"continue":return je({},e,{isPaused:!1});case"loading":return je({},e,{context:n.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:n.variables});case"success":return je({},e,{data:n.data,error:null,status:"success",isPaused:!1});case"error":return je({},e,{data:void 0,error:n.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return je({},e,n.state);default:return e}}var yT=function(e){Ca(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 pT({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;at.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 Uv(o,s)})},i.findAll=function(o){return this.mutations.filter(function(s){return Uv(o,s)})},i.notify=function(o){var s=this;at.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 at.batch(function(){return o.reduce(function(s,c){return s.then(function(){return c.continue().catch($t)})},Promise.resolve())})},n}(Ea);function gT(){return{onFetch:function(n){n.fetchFn=function(){var i,l,o,s,c,f,h=(i=n.fetchOptions)==null||(l=i.meta)==null?void 0:l.refetchPage,d=(o=n.fetchOptions)==null||(s=o.meta)==null?void 0:s.fetchMore,y=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",x=(d==null?void 0:d.direction)==="backward",b=((c=n.state.data)==null?void 0:c.pages)||[],S=((f=n.state.data)==null?void 0:f.pageParams)||[],k=zx(),_=k==null?void 0:k.signal,A=S,N=!1,O=n.options.queryFn||function(){return Promise.reject("Missing queryFn")},L=function(J,se,B,X){return A=X?[se].concat(A):[].concat(A,[se]),X?[B].concat(J):[].concat(J,[B])},q=function(J,se,B,X){if(N)return Promise.reject("Cancelled");if(typeof B>"u"&&!se&&J.length)return Promise.resolve(J);var ne={queryKey:n.queryKey,signal:_,pageParam:B,meta:n.meta},pe=O(ne),C=Promise.resolve(pe).then(function(oe){return L(J,B,oe,X)});if(Pu(pe)){var I=C;I.cancel=pe.cancel}return C},M;if(!b.length)M=q([]);else if(g){var Y=typeof y<"u",ee=Y?y:Hv(n.options,b);M=q(b,Y,ee)}else if(x){var ie=typeof y<"u",z=ie?y:vT(n.options,b);M=q(b,ie,z,!0)}else(function(){A=[];var ue=typeof n.options.getNextPageParam>"u",J=h&&b[0]?h(b[0],0,b):!0;M=J?q([],ue,S[0]):Promise.resolve(L([],S[0],b[0]));for(var se=function(ne){M=M.then(function(pe){var C=h&&b[ne]?h(b[ne],ne,b):!0;if(C){var I=ue?S[ne]:Hv(n.options,pe);return q(pe,ue,I)}return Promise.resolve(L(pe,S[ne],b[ne]))})},B=1;B<b.length;B++)se(B)})();var ae=M.then(function(ue){return{pages:ue,pageParams:A}}),te=ae;return te.cancel=function(){N=!0,k==null||k.abort(),Pu(M)&&M.cancel()},ae}}}}function Hv(e,n){return e.getNextPageParam==null?void 0:e.getNextPageParam(n[n.length-1],n)}function vT(e,n){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(n[0],n)}var bT=function(){function e(i){i===void 0&&(i={}),this.queryCache=i.queryCache||new hT,this.mutationCache=i.mutationCache||new yT,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var n=e.prototype;return n.mount=function(){var l=this;this.unsubscribeFocus=Uo.subscribe(function(){Uo.isFocused()&&Ru.isOnline()&&(l.mutationCache.onFocus(),l.queryCache.onFocus())}),this.unsubscribeOnline=Ru.subscribe(function(){Uo.isFocused()&&Ru.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=Ni(l,o),c=s[0];return c.fetching=!0,this.queryCache.findAll(c).length},n.isMutating=function(l){return this.mutationCache.findAll(je({},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=Ou(l),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(o,s)},n.setQueriesData=function(l,o,s){var c=this;return at.batch(function(){return c.getQueryCache().findAll(l).map(function(f){var h=f.queryKey;return[h,c.setQueryData(h,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=Ni(l,o),c=s[0],f=this.queryCache;at.batch(function(){f.findAll(c).forEach(function(h){f.remove(h)})})},n.resetQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=this.queryCache,g=je({},h,{active:!0});return at.batch(function(){return y.findAll(h).forEach(function(x){x.reset()}),c.refetchQueries(g,d)})},n.cancelQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=d===void 0?{}:d;typeof y.revert>"u"&&(y.revert=!0);var g=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.cancel(y)})});return Promise.all(g).then($t).catch($t)},n.invalidateQueries=function(l,o,s){var c,f,h,d=this,y=Ni(l,o,s),g=y[0],x=y[1],b=je({},g,{active:(c=(f=g.refetchActive)!=null?f:g.active)!=null?c:!0,inactive:(h=g.refetchInactive)!=null?h:!1});return at.batch(function(){return d.queryCache.findAll(g).forEach(function(S){S.invalidate()}),d.refetchQueries(b,x)})},n.refetchQueries=function(l,o,s){var c=this,f=Ni(l,o,s),h=f[0],d=f[1],y=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.fetch(void 0,je({},d,{meta:{refetchPage:h==null?void 0:h.refetchPage}}))})}),g=Promise.all(y).then($t);return d!=null&&d.throwOnError||(g=g.catch($t)),g},n.fetchQuery=function(l,o,s){var c=Ou(l,o,s),f=this.defaultQueryOptions(c);typeof f.retry>"u"&&(f.retry=!1);var h=this.queryCache.build(this,f);return h.isStaleByTime(f.staleTime)?h.fetch(f):Promise.resolve(h.state.data)},n.prefetchQuery=function(l,o,s){return this.fetchQuery(l,o,s).then($t).catch($t)},n.fetchInfiniteQuery=function(l,o,s){var c=Ou(l,o,s);return c.behavior=gT(),this.fetchQuery(c)},n.prefetchInfiniteQuery=function(l,o,s){return this.fetchInfiniteQuery(l,o,s).then($t).catch($t)},n.cancelMutations=function(){var l=this,o=at.batch(function(){return l.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(o).then($t).catch($t)},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 ol(l)===ol(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 Fu(l,s.queryKey)}))==null?void 0:o.defaultOptions:void 0},n.setMutationDefaults=function(l,o){var s=this.mutationDefaults.find(function(c){return ol(l)===ol(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 Fu(l,s.mutationKey)}))==null?void 0:o.defaultOptions:void 0},n.defaultQueryOptions=function(l){if(l!=null&&l._defaulted)return l;var o=je({},this.defaultOptions.queries,this.getQueryDefaults(l==null?void 0:l.queryKey),l,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=np(o.queryKey,o)),o},n.defaultQueryObserverOptions=function(l){return this.defaultQueryOptions(l)},n.defaultMutationOptions=function(l){return l!=null&&l._defaulted?l:je({},this.defaultOptions.mutations,this.getMutationDefaults(l==null?void 0:l.mutationKey),l,{_defaulted:!0})},n.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),xT=function(e){Ca(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),Fv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return vh(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return vh(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 h=this.hasListeners();h&&Qv(this.currentQuery,f,this.options,c)&&this.executeFetch(),this.updateResult(s),h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||this.options.staleTime!==c.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},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={},h=function(y){c.trackedProps.includes(y)||c.trackedProps.push(y)};return Object.keys(o).forEach(function(d){Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:function(){return h(d),o[d]}})}),(s.useErrorBoundary||s.suspense)&&h("error"),f},i.getNextResult=function(o){var s=this;return new Promise(function(c,f){var h=s.subscribe(function(d){d.isFetching||(h(),d.isError&&(o!=null&&o.throwOnError)?f(d.error):c(d))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(o){return this.fetch(je({},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($t)),s},i.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(qu||this.currentResult.isStale||!yh(this.options.staleTime))){var s=Mx(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,!(qu||this.options.enabled===!1||!yh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||Uo.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,h=this.currentResult,d=this.currentResultState,y=this.currentResultOptions,g=o!==c,x=g?o.state:this.currentQueryInitialState,b=g?this.currentResult:this.previousQueryResult,S=o.state,k=S.dataUpdatedAt,_=S.error,A=S.errorUpdatedAt,N=S.isFetching,O=S.status,L=!1,q=!1,M;if(s.optimisticResults){var Y=this.hasListeners(),ee=!Y&&Fv(o,s),ie=Y&&Qv(o,c,s,f);(ee||ie)&&(N=!0,k||(O="loading"))}if(s.keepPreviousData&&!S.dataUpdateCount&&(b!=null&&b.isSuccess)&&O!=="error")M=b.data,k=b.dataUpdatedAt,O=b.status,L=!0;else if(s.select&&typeof S.data<"u")if(h&&S.data===(d==null?void 0:d.data)&&s.select===this.selectFn)M=this.selectResult;else try{this.selectFn=s.select,M=s.select(S.data),s.structuralSharing!==!1&&(M=Qu(h==null?void 0:h.data,M)),this.selectResult=M,this.selectError=null}catch(te){Iu().error(te),this.selectError=te}else M=S.data;if(typeof s.placeholderData<"u"&&typeof M>"u"&&(O==="loading"||O==="idle")){var z;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(y==null?void 0:y.placeholderData))z=h.data;else if(z=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof z<"u")try{z=s.select(z),s.structuralSharing!==!1&&(z=Qu(h==null?void 0:h.data,z)),this.selectError=null}catch(te){Iu().error(te),this.selectError=te}typeof z<"u"&&(O="success",M=z,q=!0)}this.selectError&&(_=this.selectError,M=this.selectResult,A=Date.now(),O="error");var ae={status:O,isLoading:O==="loading",isSuccess:O==="success",isError:O==="error",isIdle:O==="idle",data:M,dataUpdatedAt:k,error:_,errorUpdatedAt:A,failureCount:S.fetchFailureCount,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>x.dataUpdateCount||S.errorUpdateCount>x.errorUpdateCount,isFetching:N,isRefetching:N&&O!=="loading",isLoadingError:O==="error"&&S.dataUpdatedAt===0,isPlaceholderData:q,isPreviousData:L,isRefetchError:O==="error"&&S.dataUpdatedAt!==0,isStale:rp(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,h=c.notifyOnChangePropsExclusions;if(!f&&!h||f==="tracked"&&!this.trackedProps.length)return!0;var d=f==="tracked"?this.trackedProps:f;return Object.keys(o).some(function(y){var g=y,x=o[g]!==s[g],b=d==null?void 0:d.some(function(k){return k===y}),S=h==null?void 0:h.some(function(k){return k===y});return x&&!S&&(!d||b)})},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,!lT(this.currentResult,s)){var c={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(c.listeners=!0),this.notify(je({},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"&&!Nu(o.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},i.notify=function(o){var s=this;at.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}(Ea);function ST(e,n){return n.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Fv(e,n){return ST(e,n)||e.state.dataUpdatedAt>0&&vh(e,n,n.refetchOnMount)}function vh(e,n,i){if(n.enabled!==!1){var l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&rp(e,n)}return!1}function Qv(e,n,i,l){return i.enabled!==!1&&(e!==n||l.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&rp(e,i)}function rp(e,n){return e.isStaleByTime(n.staleTime)}var wT=function(e){Ca(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,je({},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:Hx(),s=je({},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;at.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}(Ea),CT=eT.unstable_batchedUpdates;at.setBatchNotifyFunction(CT);var ET=console;fT(ET);var Pv=tt.createContext(void 0),Fx=tt.createContext(!1);function Qx(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Pv),window.ReactQueryClientContext):Pv}var Px=function(){var n=tt.useContext(Qx(tt.useContext(Fx)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},TT=function(n){var i=n.client,l=n.contextSharing,o=l===void 0?!1:l,s=n.children;tt.useEffect(function(){return i.mount(),function(){i.unmount()}},[i]);var c=Qx(o);return tt.createElement(Fx.Provider,{value:o},tt.createElement(c.Provider,{value:i},s))};function kT(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var AT=tt.createContext(kT()),_T=function(){return tt.useContext(AT)};function Ix(e,n,i){return typeof n=="function"?n.apply(void 0,i):typeof n=="boolean"?n:!!e}function Cr(e,n,i){var l=tt.useRef(!1),o=tt.useState(0),s=o[1],c=nT(e,n,i),f=Px(),h=tt.useRef();h.current?h.current.setOptions(c):h.current=new wT(f,c);var d=h.current.getCurrentResult();tt.useEffect(function(){l.current=!0;var g=h.current.subscribe(at.batchCalls(function(){l.current&&s(function(x){return x+1})}));return function(){l.current=!1,g()}},[]);var y=tt.useCallback(function(g,x){h.current.mutate(g,x).catch($t)},[]);if(d.error&&Ix(void 0,h.current.options.useErrorBoundary,[d.error]))throw d.error;return je({},d,{mutate:y,mutateAsync:d.mutate})}function OT(e,n){var i=tt.useRef(!1),l=tt.useState(0),o=l[1],s=Px(),c=_T(),f=s.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=at.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=at.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=at.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 h=tt.useState(function(){return new n(s,f)}),d=h[0],y=d.getOptimisticResult(f);if(tt.useEffect(function(){i.current=!0,c.clearReset();var g=d.subscribe(at.batchCalls(function(){i.current&&o(function(x){return x+1})}));return d.updateResult(),function(){i.current=!1,g()}},[c,d]),tt.useEffect(function(){d.setOptions(f,{listeners:!1})},[f,d]),f.suspense&&y.isLoading)throw d.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(y.isError&&!c.isReset()&&!y.isFetching&&Ix(f.suspense,f.useErrorBoundary,[y.error,d.getCurrentQuery()]))throw y.error;return f.notifyOnChangeProps==="tracked"&&(y=d.trackResult(y,f)),y}function Gn(e,n,i){var l=Ou(e,n,i);return OT(l,xT)}function Vx(e,n){return function(){return e.apply(n,arguments)}}const{toString:RT}=Object.prototype,{getPrototypeOf:ip}=Object,{iterator:lc,toStringTag:$x}=Symbol,ac=(e=>n=>{const i=RT.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),n=>ac(n)===e),oc=e=>n=>typeof n===e,{isArray:Ta}=Array,Io=oc("undefined");function NT(e){return e!==null&&!Io(e)&&e.constructor!==null&&!Io(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yx=ar("ArrayBuffer");function jT(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Yx(e.buffer),n}const DT=oc("string"),yn=oc("function"),Gx=oc("number"),sc=e=>e!==null&&typeof e=="object",MT=e=>e===!0||e===!1,ju=e=>{if(ac(e)!=="object")return!1;const n=ip(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!($x in e)&&!(lc in e)},LT=ar("Date"),zT=ar("File"),UT=ar("Blob"),BT=ar("FileList"),qT=e=>sc(e)&&yn(e.pipe),HT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((n=ac(e))==="formdata"||n==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},FT=ar("URLSearchParams"),[QT,PT,IT,VT]=["ReadableStream","Request","Response","Headers"].map(ar),$T=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let l,o;if(typeof e!="object"&&(e=[e]),Ta(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 Kx(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 sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xx=e=>!Io(e)&&e!==sl;function bh(){const{caseless:e}=Xx(this)&&this||{},n={},i=(l,o)=>{const s=e&&Kx(n,o)||o;ju(n[s])&&ju(l)?n[s]=bh(n[s],l):ju(l)?n[s]=bh({},l):Ta(l)?n[s]=l.slice():n[s]=l};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&Wo(arguments[l],i);return n}const YT=(e,n,i,{allOwnKeys:l}={})=>(Wo(n,(o,s)=>{i&&yn(o)?e[s]=Vx(o,i):e[s]=o},{allOwnKeys:l}),e),GT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KT=(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)},XT=(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&&ip(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},ZT=(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},JT=e=>{if(!e)return null;if(Ta(e))return e;let n=e.length;if(!Gx(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},WT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&ip(Uint8Array)),ek=(e,n)=>{const l=(e&&e[lc]).call(e);let o;for(;(o=l.next())&&!o.done;){const s=o.value;n.call(e,s[0],s[1])}},tk=(e,n)=>{let i;const l=[];for(;(i=e.exec(n))!==null;)l.push(i);return l},nk=ar("HTMLFormElement"),rk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,o){return l.toUpperCase()+o}),Iv=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),ik=ar("RegExp"),Zx=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),l={};Wo(i,(o,s)=>{let c;(c=n(o,s,e))!==!1&&(l[s]=c||o)}),Object.defineProperties(e,l)},lk=e=>{Zx(e,(n,i)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=e[i];if(yn(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+"'")})}})},ak=(e,n)=>{const i={},l=o=>{o.forEach(s=>{i[s]=!0})};return Ta(e)?l(e):l(String(e).split(n)),i},ok=()=>{},sk=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function uk(e){return!!(e&&yn(e.append)&&e[$x]==="FormData"&&e[lc])}const ck=e=>{const n=new Array(10),i=(l,o)=>{if(sc(l)){if(n.indexOf(l)>=0)return;if(!("toJSON"in l)){n[o]=l;const s=Ta(l)?[]:{};return Wo(l,(c,f)=>{const h=i(c,o+1);!Io(h)&&(s[f]=h)}),n[o]=void 0,s}}return l};return i(e,0)},fk=ar("AsyncFunction"),dk=e=>e&&(sc(e)||yn(e))&&yn(e.then)&&yn(e.catch),Jx=((e,n)=>e?setImmediate:n?((i,l)=>(sl.addEventListener("message",({source:o,data:s})=>{o===sl&&s===i&&l.length&&l.shift()()},!1),o=>{l.push(o),sl.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",yn(sl.postMessage)),hk=typeof queueMicrotask<"u"?queueMicrotask.bind(sl):typeof process<"u"&&process.nextTick||Jx,pk=e=>e!=null&&yn(e[lc]),V={isArray:Ta,isArrayBuffer:Yx,isBuffer:NT,isFormData:HT,isArrayBufferView:jT,isString:DT,isNumber:Gx,isBoolean:MT,isObject:sc,isPlainObject:ju,isReadableStream:QT,isRequest:PT,isResponse:IT,isHeaders:VT,isUndefined:Io,isDate:LT,isFile:zT,isBlob:UT,isRegExp:ik,isFunction:yn,isStream:qT,isURLSearchParams:FT,isTypedArray:WT,isFileList:BT,forEach:Wo,merge:bh,extend:YT,trim:$T,stripBOM:GT,inherits:KT,toFlatObject:XT,kindOf:ac,kindOfTest:ar,endsWith:ZT,toArray:JT,forEachEntry:ek,matchAll:tk,isHTMLForm:nk,hasOwnProperty:Iv,hasOwnProp:Iv,reduceDescriptors:Zx,freezeMethods:lk,toObjectSet:ak,toCamelCase:rk,noop:ok,toFiniteNumber:sk,findKey:Kx,global:sl,isContextDefined:Xx,isSpecCompliantForm:uk,toJSONObject:ck,isAsyncFn:fk,isThenable:dk,setImmediate:Jx,asap:hk,isIterable:pk};function ke(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(ke,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 Wx=ke.prototype,e0={};["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=>{e0[e]={value:e}});Object.defineProperties(ke,e0);Object.defineProperty(Wx,"isAxiosError",{value:!0});ke.from=(e,n,i,l,o,s)=>{const c=Object.create(Wx);return V.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),ke.call(c,e.message,n,i,l,o),c.cause=e,c.name=e.name,s&&Object.assign(c,s),c};const mk=null;function xh(e){return V.isPlainObject(e)||V.isArray(e)}function t0(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,n,i){return e?e.concat(n).map(function(o,s){return o=t0(o),!i&&s?"["+o+"]":o}).join(i?".":""):n}function yk(e){return V.isArray(e)&&!e.some(xh)}const gk=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function uc(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(k,_){return!V.isUndefined(_[k])});const l=i.metaTokens,o=i.visitor||y,s=i.dots,c=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!h&&V.isBlob(S))throw new ke("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function y(S,k,_){let A=S;if(S&&!_&&typeof S=="object"){if(V.endsWith(k,"{}"))k=l?k:k.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&yk(S)||(V.isFileList(S)||V.endsWith(k,"[]"))&&(A=V.toArray(S)))return k=t0(k),A.forEach(function(O,L){!(V.isUndefined(O)||O===null)&&n.append(c===!0?Vv([k],L,s):c===null?k:k+"[]",d(O))}),!1}return xh(S)?!0:(n.append(Vv(_,k,s),d(S)),!1)}const g=[],x=Object.assign(gk,{defaultVisitor:y,convertValue:d,isVisitable:xh});function b(S,k){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+k.join("."));g.push(S),V.forEach(S,function(A,N){(!(V.isUndefined(A)||A===null)&&o.call(n,A,V.isString(N)?N.trim():N,k,x))===!0&&b(A,k?k.concat(N):[N])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return b(e),n}function $v(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(l){return n[l]})}function lp(e,n){this._pairs=[],e&&uc(e,this,n)}const n0=lp.prototype;n0.append=function(n,i){this._pairs.push([n,i])};n0.toString=function(n){const i=n?function(l){return n.call(this,l,$v)}:$v;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function vk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r0(e,n,i){if(!n)return e;const l=i&&i.encode||vk;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 lp(n,i).toString(l),s){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Yv{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 i0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bk=typeof URLSearchParams<"u"?URLSearchParams:lp,xk=typeof FormData<"u"?FormData:null,Sk=typeof Blob<"u"?Blob:null,wk={isBrowser:!0,classes:{URLSearchParams:bk,FormData:xk,Blob:Sk},protocols:["http","https","file","blob","url","data"]},ap=typeof window<"u"&&typeof document<"u",Sh=typeof navigator=="object"&&navigator||void 0,Ck=ap&&(!Sh||["ReactNative","NativeScript","NS"].indexOf(Sh.product)<0),Ek=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tk=ap&&window.location.href||"http://localhost",kk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ap,hasStandardBrowserEnv:Ck,hasStandardBrowserWebWorkerEnv:Ek,navigator:Sh,origin:Tk},Symbol.toStringTag,{value:"Module"})),en={...kk,...wk};function Ak(e,n){return uc(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 _k(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Ok(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 l0(e){function n(i,l,o,s){let c=i[s++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=s>=i.length;return c=!c&&V.isArray(o)?o.length:c,h?(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]=Ok(o[c])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const i={};return V.forEachEntry(e,(l,o)=>{n(_k(l),o,i,0)}),i}return null}function Rk(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 es={transitional:i0,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(l0(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 Ak(n,this.formSerializer).toString();if((f=V.isFileList(n))||l.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return uc(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),Rk(n)):n}],transformResponse:[function(n){const i=this.transitional||es.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"?ke.from(f,ke.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=>{es.headers[e]={}});const Nk=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"]),jk=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]&&Nk[i])&&(i==="set-cookie"?n[i]?n[i].push(l):n[i]=[l]:n[i]=n[i]?n[i]+", "+l:l)}),n},Gv=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Du(e){return e===!1||e==null?e:V.isArray(e)?e.map(Du):String(e)}function Dk(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 Mk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qd(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 Lk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,l)=>i.toUpperCase()+l)}function zk(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 gn=class{constructor(n){n&&this.set(n)}set(n,i,l){const o=this;function s(f,h,d){const y=No(h);if(!y)throw new Error("header name must be a non-empty string");const g=V.findKey(o,y);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||h]=Du(f))}const c=(f,h)=>V.forEach(f,(d,y)=>s(d,y,h));if(V.isPlainObject(n)||n instanceof this.constructor)c(n,i);else if(V.isString(n)&&(n=n.trim())&&!Mk(n))c(jk(n),i);else if(V.isObject(n)&&V.isIterable(n)){let f={},h,d;for(const y of n){if(!V.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[d=y[0]]=(h=f[d])?V.isArray(h)?[...h,y[1]]:[h,y[1]]:y[1]}c(f,i)}else n!=null&&s(i,n,l);return this}get(n,i){if(n=No(n),n){const l=V.findKey(this,n);if(l){const o=this[l];if(!i)return o;if(i===!0)return Dk(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=No(n),n){const l=V.findKey(this,n);return!!(l&&this[l]!==void 0&&(!i||qd(this,this[l],l,i)))}return!1}delete(n,i){const l=this;let o=!1;function s(c){if(c=No(c),c){const f=V.findKey(l,c);f&&(!i||qd(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||qd(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]=Du(o),delete i[s];return}const f=n?Lk(s):String(s).trim();f!==s&&delete i[s],i[f]=Du(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[Gv]=this[Gv]={accessors:{}}).accessors,o=this.prototype;function s(c){const f=No(c);l[f]||(zk(o,c),l[f]=!0)}return V.isArray(n)?n.forEach(s):s(n),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(gn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(l){this[i]=l}}});V.freezeMethods(gn);function Hd(e,n){const i=this||es,l=n||i,o=gn.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 a0(e){return!!(e&&e.__CANCEL__)}function ka(e,n,i){ke.call(this,e??"canceled",ke.ERR_CANCELED,n,i),this.name="CanceledError"}V.inherits(ka,ke,{__CANCEL__:!0});function o0(e,n,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?e(i):n(new ke("Request failed with status code "+i.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Uk(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Bk(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(h){const d=Date.now(),y=l[s];c||(c=d),i[o]=h,l[o]=d;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),d-c<n)return;const b=y&&d-y;return b?Math.round(x*1e3/b):void 0}}function qk(e,n){let i=0,l=1e3/n,o,s;const c=(d,y=Date.now())=>{i=y,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const y=Date.now(),g=y-i;g>=l?c(d,y):(o=d,s||(s=setTimeout(()=>{s=null,c(o)},l-g)))},()=>o&&c(o)]}const Vu=(e,n,i=3)=>{let l=0;const o=Bk(50,250);return qk(s=>{const c=s.loaded,f=s.lengthComputable?s.total:void 0,h=c-l,d=o(h),y=c<=f;l=c;const g={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:d||void 0,estimated:d&&f&&y?(f-c)/d:void 0,event:s,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(g)},i)},Kv=(e,n)=>{const i=e!=null;return[l=>n[0]({lengthComputable:i,total:e,loaded:l}),n[1]]},Xv=e=>(...n)=>V.asap(()=>e(...n)),Hk=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,Fk=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 Qk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pk(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function s0(e,n,i){let l=!Qk(n);return e&&(l||i==!1)?Pk(e,n):n}const Zv=e=>e instanceof gn?{...e}:e;function pl(e,n){n=n||{};const i={};function l(d,y,g,x){return V.isPlainObject(d)&&V.isPlainObject(y)?V.merge.call({caseless:x},d,y):V.isPlainObject(y)?V.merge({},y):V.isArray(y)?y.slice():y}function o(d,y,g,x){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d,g,x)}else return l(d,y,g,x)}function s(d,y){if(!V.isUndefined(y))return l(void 0,y)}function c(d,y){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d)}else return l(void 0,y)}function f(d,y,g){if(g in n)return l(d,y);if(g in e)return l(void 0,d)}const h={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:(d,y,g)=>o(Zv(d),Zv(y),g,!0)};return V.forEach(Object.keys(Object.assign({},e,n)),function(y){const g=h[y]||o,x=g(e[y],n[y],y);V.isUndefined(x)&&g!==f||(i[y]=x)}),i}const u0=e=>{const n=pl({},e);let{data:i,withXSRFToken:l,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:f}=n;n.headers=c=gn.from(c),n.url=r0(s0(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 h;if(V.isFormData(i)){if(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[d,...y]=h?h.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([d||"multipart/form-data",...y].join("; "))}}if(en.hasStandardBrowserEnv&&(l&&V.isFunction(l)&&(l=l(n)),l||l!==!1&&Hk(n.url))){const d=o&&s&&Fk.read(s);d&&c.set(o,d)}return n},Ik=typeof XMLHttpRequest<"u",Vk=Ik&&function(e){return new Promise(function(i,l){const o=u0(e);let s=o.data;const c=gn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:d}=o,y,g,x,b,S;function k(){b&&b(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function A(){if(!_)return;const O=gn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),q={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:O,config:e,request:_};o0(function(Y){i(Y),k()},function(Y){l(Y),k()},q),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(l(new ke("Request aborted",ke.ECONNABORTED,e,_)),_=null)},_.onerror=function(){l(new ke("Network Error",ke.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const q=o.transitional||i0;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),l(new ke(L,q.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,_)),_=null},s===void 0&&c.setContentType(null),"setRequestHeader"in _&&V.forEach(c.toJSON(),function(L,q){_.setRequestHeader(q,L)}),V.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),f&&f!=="json"&&(_.responseType=o.responseType),d&&([x,S]=Vu(d,!0),_.addEventListener("progress",x)),h&&_.upload&&([g,b]=Vu(h),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(y=O=>{_&&(l(!O||O.type?new ka(null,e,_):O),_.abort(),_=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const N=Uk(o.url);if(N&&en.protocols.indexOf(N)===-1){l(new ke("Unsupported protocol "+N+":",ke.ERR_BAD_REQUEST,e));return}_.send(s||null)})},$k=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let l=new AbortController,o;const s=function(d){if(!o){o=!0,f();const y=d instanceof Error?d:this.reason;l.abort(y instanceof ke?y:new ka(y instanceof Error?y.message:y))}};let c=n&&setTimeout(()=>{c=null,s(new ke(`timeout ${n} of ms exceeded`,ke.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=l;return h.unsubscribe=()=>V.asap(f),h}},Yk=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},Gk=async function*(e,n){for await(const i of Kk(e))yield*Yk(i,n)},Kk=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()}},Jv=(e,n,i,l)=>{const o=Gk(e,n);let s=0,c,f=h=>{c||(c=!0,l&&l(h))};return new ReadableStream({async pull(h){try{const{done:d,value:y}=await o.next();if(d){f(),h.close();return}let g=y.byteLength;if(i){let x=s+=g;i(x)}h.enqueue(new Uint8Array(y))}catch(d){throw f(d),d}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},cc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",c0=cc&&typeof ReadableStream=="function",Xk=cc&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),f0=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Zk=c0&&f0(()=>{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}),Wv=64*1024,wh=c0&&f0(()=>V.isReadableStream(new Response("").body)),$u={stream:wh&&(e=>e.body)};cc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!$u[n]&&($u[n]=V.isFunction(e[n])?i=>i[n]():(i,l)=>{throw new ke(`Response type '${n}' is not supported`,ke.ERR_NOT_SUPPORT,l)})})})(new Response);const Jk=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 Xk(e)).byteLength},Wk=async(e,n)=>{const i=V.toFiniteNumber(e.getContentLength());return i??Jk(n)},eA=cc&&(async e=>{let{url:n,method:i,data:l,signal:o,cancelToken:s,timeout:c,onDownloadProgress:f,onUploadProgress:h,responseType:d,headers:y,withCredentials:g="same-origin",fetchOptions:x}=u0(e);d=d?(d+"").toLowerCase():"text";let b=$k([o,s&&s.toAbortSignal()],c),S;const k=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let _;try{if(h&&Zk&&i!=="get"&&i!=="head"&&(_=await Wk(y,l))!==0){let q=new Request(n,{method:"POST",body:l,duplex:"half"}),M;if(V.isFormData(l)&&(M=q.headers.get("content-type"))&&y.setContentType(M),q.body){const[Y,ee]=Kv(_,Vu(Xv(h)));l=Jv(q.body,Wv,Y,ee)}}V.isString(g)||(g=g?"include":"omit");const A="credentials"in Request.prototype;S=new Request(n,{...x,signal:b,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:A?g:void 0});let N=await fetch(S);const O=wh&&(d==="stream"||d==="response");if(wh&&(f||O&&k)){const q={};["status","statusText","headers"].forEach(ie=>{q[ie]=N[ie]});const M=V.toFiniteNumber(N.headers.get("content-length")),[Y,ee]=f&&Kv(M,Vu(Xv(f),!0))||[];N=new Response(Jv(N.body,Wv,Y,()=>{ee&&ee(),k&&k()}),q)}d=d||"text";let L=await $u[V.findKey($u,d)||"text"](N,e);return!O&&k&&k(),await new Promise((q,M)=>{o0(q,M,{data:L,headers:gn.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:S})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,S),{cause:A.cause||A}):ke.from(A,A&&A.code,e,S)}}),Ch={http:mk,xhr:Vk,fetch:eA};V.forEach(Ch,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const eb=e=>`- ${e}`,tA=e=>V.isFunction(e)||e===null||e===!1,d0={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,!tA(i)&&(l=Ch[(c=String(i)).toLowerCase()],l===void 0))throw new ke(`Unknown adapter '${c}'`);if(l)break;o[c||"#"+s]=l}if(!l){const s=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
54
54
  `+s.map(eb).join(`
55
- `):" "+eb(s[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return l},adapters:Ch};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ka(null,e)}function tb(e){return Fd(e),e.headers=gn.from(e.headers),e.data=Hd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),d0.getAdapter(e.adapter||es.adapter)(e).then(function(l){return Fd(e),l.data=Hd.call(e,e.transformResponse,l),l.headers=gn.from(l.headers),l},function(l){return a0(l)||(Fd(e),l&&l.response&&(l.response.data=Hd.call(e,e.transformResponse,l.response),l.response.headers=gn.from(l.response.headers))),Promise.reject(l)})}const h0="1.9.0",fc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{fc[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});const nb={};fc.transitional=function(n,i,l){function o(s,c){return"[Axios v"+h0+"] Transitional option '"+s+"'"+c+(l?". "+l:"")}return(s,c,f)=>{if(n===!1)throw new ke(o(c," has been removed"+(i?" in "+i:"")),ke.ERR_DEPRECATED);return i&&!nb[c]&&(nb[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}};fc.spelling=function(n){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${n}`),!0)};function tA(e,n,i){if(typeof e!="object")throw new ke("options must be an object",ke.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],h=f===void 0||c(f,s,e);if(h!==!0)throw new ke("option "+s+" must be "+h,ke.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ke("Unknown option "+s,ke.ERR_BAD_OPTION)}}const Mu={assertOptions:tA,validators:fc},mr=Mu.validators;let cl=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Yv,response:new Yv}}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=pl(this.defaults,i);const{transitional:l,paramsSerializer:o,headers:s}=i;l!==void 0&&Mu.assertOptions(l,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),o!=null&&(V.isFunction(o)?i.paramsSerializer={serialize:o}:Mu.assertOptions(o,{encode:mr.function,serialize:mr.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Mu.assertOptions(i,{baseUrl:mr.spelling("baseURL"),withXsrfToken:mr.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"],S=>{delete s[S]}),i.headers=gn.concat(c,s);const f=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(h=h&&k.synchronous,f.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let y,g=0,x;if(!h){const S=[tb.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,d),x=S.length,y=Promise.resolve(i);g<x;)y=y.then(S[g++],S[g++]);return y}x=f.length;let b=i;for(g=0;g<x;){const S=f[g++],k=f[g++];try{b=S(b)}catch(_){k.call(this,_);break}}try{y=tb.call(this,b)}catch(S){return Promise.reject(S)}for(g=0,x=d.length;g<x;)y=y.then(d[g++],d[g++]);return y}getUri(n){n=pl(this.defaults,n);const i=s0(n.baseURL,n.url,n.allowAbsoluteUrls);return r0(i,n.params,n.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(n){cl.prototype[n]=function(i,l){return this.request(pl(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(pl(f||{},{method:n,headers:l?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}cl.prototype[n]=i(),cl.prototype[n+"Form"]=i(!0)});let nA=class p0{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 ka(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 p0(function(o){n=o}),cancel:n}}};function rA(e){return function(i){return e.apply(null,i)}}function iA(e){return V.isObject(e)&&e.isAxiosError===!0}const Eh={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(Eh).forEach(([e,n])=>{Eh[n]=e});function m0(e){const n=new cl(e),i=Vx(cl.prototype.request,n);return V.extend(i,cl.prototype,n,{allOwnKeys:!0}),V.extend(i,n,null,{allOwnKeys:!0}),i.create=function(o){return m0(pl(e,o))},i}const gt=m0(es);gt.Axios=cl;gt.CanceledError=ka;gt.CancelToken=nA;gt.isCancel=a0;gt.VERSION=h0;gt.toFormData=uc;gt.AxiosError=ke;gt.Cancel=gt.CanceledError;gt.all=function(n){return Promise.all(n)};gt.spread=rA;gt.isAxiosError=iA;gt.mergeConfig=pl;gt.AxiosHeaders=gn;gt.formToJSON=e=>l0(V.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=d0.getAdapter;gt.HttpStatusCode=Eh;gt.default=gt;const{Axios:iU,AxiosError:lA,CanceledError:lU,isCancel:aU,CancelToken:oU,VERSION:sU,all:uU,Cancel:cU,isAxiosError:y0,spread:fU,toFormData:dU,AxiosHeaders:hU,HttpStatusCode:pU,formToJSON:mU,getAdapter:yU,mergeConfig:gU}=gt,g0={userId:void 0},aA=()=>{try{const e=sessionStorage.getItem("accessToken");return e||"::local::"}catch{return}},oA=e=>g0.userId=e,sA=()=>g0.userId,vt=gt.create({baseURL:"http://localhost:4466/api"});vt.interceptors.request.use(e=>(e.headers["phoenix-user-id"]=sA(),e));const uA=gt.create({baseURL:"http://localhost:4466/api"}),Ot=new vT({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(e,n)=>{var i;return y0(n)&&((i=n.response)==null?void 0:i.status)===404?!1:e<3}}}}),Wr="data-sources",v0="teams",Mi="auth-user",cA=e=>Gn({queryKey:["project","team",e],queryFn:async()=>{const{data:n}=await vt.get(`/project/team/${e}/files`);return n.data},enabled:!!e}),ts=e=>{const n=["project","team"];return Ot.invalidateQueries(n)},fA=e=>{const n=["trash","team"];return Ot.invalidateQueries(n)},dA=(e,n)=>Gn({queryKey:["project",n,"tables",e],queryFn:async()=>{const{data:i}=await vt.get(`/project/team/${n}/query`,{params:{size:20,search:e}});return i.data},enabled:!!n,staleTime:0,keepPreviousData:!0}),hA=(e,n)=>{try{plausible(e,n?{props:n}:void 0)}catch{}},pA=()=>{try{plausible("pageview")}catch{}},dt={event:hA,pageView:pA},b0=e=>Gn([Wr,e],async()=>{const{data:n}=await vt.get("/data-sources/"+e);return n.data},{enabled:!!e}),mA=e=>Gn({queryKey:[Wr,e.teamId],queryFn:async()=>{const{data:n}=await vt.get("/data-sources",{params:e});return n.data},enabled:e.teamId!==void 0}),Aa=e=>Gn({queryKey:[Wr,e,"inspections"],queryFn:async()=>{const{data:n}=await vt.get(`/data-sources/${e}/inspections`);return n.data},enabled:!!e}),yA=()=>Cr(async e=>{const{data:n}=await vt.post("/data-sources",e);return n.data},{onSuccess:()=>{Ot.invalidateQueries([Wr]),ts(),dt.event("Datasource created")},onError:()=>{dt.event("Datasource creation failed")}}),gA=()=>Cr({mutationFn:async({dataSource:e,id:n})=>{const{data:i}=await vt.put(`/data-sources/${n}`,e);return i.data},onSuccess:()=>{Ot.invalidateQueries([Wr]),ts()}}),x0=()=>Cr({mutationFn:async e=>{await vt.post(`/data-sources/${e}/inspect`)},onSuccess:()=>{Ot.invalidateQueries([Wr]),dt.event("Datasource inspected")}}),vA=()=>Cr({mutationFn:async e=>{await vt.delete(`/data-sources/${e}`)},onSuccess:()=>{Ot.invalidateQueries([Wr]),ts(),dt.event("Datasource deleted")}}),S0=()=>Gn(["accessToken"],()=>aA()),zi=()=>{const{data:e}=S0();return Gn([Mi],async()=>{const{data:n}=await vt.get("/users");return oA(n.data.id),n.data},{enabled:!!e,retry:(n,i)=>y0(i)&&i.code==="ERR_NETWORK"?!1:n<3})},bA=()=>Cr(async e=>{const{data:n}=await vt.put("/users/team",{teamId:e});return n.data},{onSuccess:e=>{Ot.setQueryData([Mi],e)}});function xA(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 SA=e=>Gn({queryKey:["hooks",e],queryFn:async()=>{const n=await Ot.fetchQuery({queryKey:[Wr,e,"inspections"],queryFn:async()=>{const{data:i}=await vt.get(`/data-sources/${e}/inspections`);return i.data}});return xA(n)},enabled:!!e});function wA(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(d=>d.table===o&&d.column===f.name))l[o].push(f.name);else{delete l[o];break}}}return l}function CA(e,n,i){const{data:l}=SA(n),{data:o}=Aa(n);return E.useMemo(()=>{const s=wA(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,h)=>{var y;const d=(y=e==null?void 0:e.columns)==null?void 0:y.findIndex(g=>g.column===f&&g.table===h);if(d!=null&&d>-1)return c[d]},getEntityKey:(c,f)=>s[c].reduce((h,d)=>{var g;const y=(g=e==null?void 0:e.columns)==null?void 0:g.findIndex(x=>x.column===d&&x.table===c);return y!=null&&y>-1&&h.push([d,f[y]]),h},[]),getColumnType:c=>{const f=e==null?void 0:e.allColumns.find(h=>h.full===c);if(f)return f.type}}},[e,n,l,o,i])}function EA(e,n){return E.useMemo(()=>({state:e,setState:n}),[e,n])}function ma(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 Er=e=>{const n=new Set;let i=e;const l=f=>(n.add(f),()=>n.delete(f)),o=f=>(n.forEach(h=>h(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 TA(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 w0=(e,n,i=localStorage)=>{const l=Er(TA(n,e,i));return l[2].subscribe(o=>{i.setItem(n,JSON.stringify(o))}),l};let kA={data:""},AA=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||kA,_A=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,OA=/\/\*[^]*?\*\/| +/g,rb=/\n+/g,ji=(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"?ji(c,s):s+"{"+ji(c,s[1]=="k"?"":n)+"}":typeof c=="object"?l+=ji(c,n?n.replace(/([^,])+/g,f=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ji.p?ji.p(s,c):s+":"+c+";")}return i+(n&&o?n+"{"+o+"}":o)+l},$r={},C0=e=>{if(typeof e=="object"){let n="";for(let i in e)n+=i+C0(e[i]);return n}return e},RA=(e,n,i,l,o)=>{let s=C0(e),c=$r[s]||($r[s]=(h=>{let d=0,y=11;for(;d<h.length;)y=101*y+h.charCodeAt(d++)>>>0;return"go"+y})(s));if(!$r[c]){let h=s!==e?e:(d=>{let y,g,x=[{}];for(;y=_A.exec(d.replace(OA,""));)y[4]?x.shift():y[3]?(g=y[3].replace(rb," ").trim(),x.unshift(x[0][g]=x[0][g]||{})):x[0][y[1]]=y[2].replace(rb," ").trim();return x[0]})(e);$r[c]=ji(o?{["@keyframes "+c]:h}:h,i?"":"."+c)}let f=i&&$r.g?$r.g:null;return i&&($r.g=$r[c]),((h,d,y,g)=>{g?d.data=d.data.replace(g,h):d.data.indexOf(h)===-1&&(d.data=y?h+d.data:d.data+h)})($r[c],n,l,f),c},NA=(e,n,i)=>e.reduce((l,o,s)=>{let c=n[s];if(c&&c.call){let f=c(i),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=h?"."+h:f&&typeof f=="object"?f.props?"":ji(f,""):f===!1?"":f}return l+o+(c??"")},"");function dc(e){let n=this||{},i=e.call?e(n.p):e;return RA(i.unshift?i.raw?NA(i,[].slice.call(arguments,1),n.p):i.reduce((l,o)=>Object.assign(l,o&&o.call?o(n.p):o),{}):i,AA(n.target),n.g,n.o,n.k)}let E0,Th,kh;dc.bind({g:1});let Xr=dc.bind({k:1});function jA(e,n,i,l){ji.p=n,E0=e,Th=i,kh=l}function Ui(e,n){let i=this||{};return function(){let l=arguments;function o(s,c){let f=Object.assign({},s),h=f.className||o.className;i.p=Object.assign({theme:Th&&Th()},f),i.o=/ *go\d+/.test(h),f.className=dc.apply(i,l)+(h?" "+h:"");let d=e;return e[0]&&(d=f.as||e,delete f.as),kh&&d[0]&&kh(f),E0(d,f)}return o}}var DA=e=>typeof e=="function",Yu=(e,n)=>DA(e)?e(n):e,MA=(()=>{let e=0;return()=>(++e).toString()})(),T0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),LA=20,k0=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,LA)};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 k0(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}))}}},Lu=[],ul={toasts:[],pausedAt:void 0},vl=e=>{ul=k0(ul,e),Lu.forEach(n=>{n(ul)})},zA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},UA=(e={})=>{let[n,i]=E.useState(ul),l=E.useRef(ul);E.useEffect(()=>(l.current!==ul&&i(ul),Lu.push(i),()=>{let s=Lu.indexOf(i);s>-1&&Lu.splice(s,1)}),[]);let o=n.toasts.map(s=>{var c,f,h;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)||zA[s.type],style:{...e.style,...(h=e[s.type])==null?void 0:h.style,...s.style}}});return{...n,toasts:o}},BA=(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)||MA()}),ns=e=>(n,i)=>{let l=BA(n,e,i);return vl({type:2,toast:l}),l.id},on=(e,n)=>ns("blank")(e,n);on.error=ns("error");on.success=ns("success");on.loading=ns("loading");on.custom=ns("custom");on.dismiss=e=>{vl({type:3,toastId:e})};on.remove=e=>vl({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?Yu(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?Yu(n.error,o):void 0;s?on.error(s,{id:l,...i,...i==null?void 0:i.error}):on.dismiss(l)}),e};var qA=(e,n)=>{vl({type:1,toast:{id:e,height:n}})},HA=()=>{vl({type:5,time:Date.now()})},Bo=new Map,FA=1e3,QA=(e,n=FA)=>{if(Bo.has(e))return;let i=setTimeout(()=>{Bo.delete(e),vl({type:4,toastId:e})},n);Bo.set(e,i)},PA=e=>{let{toasts:n,pausedAt:i}=UA(e);E.useEffect(()=>{if(i)return;let s=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(s-f.createdAt);if(h<0){f.visible&&on.dismiss(f.id);return}return setTimeout(()=>on.dismiss(f.id),h)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[n,i]);let l=E.useCallback(()=>{i&&vl({type:6,time:Date.now()})},[i]),o=E.useCallback((s,c)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:d}=c||{},y=n.filter(b=>(b.position||d)===(s.position||d)&&b.height),g=y.findIndex(b=>b.id===s.id),x=y.filter((b,S)=>S<g&&b.visible).length;return y.filter(b=>b.visible).slice(...f?[x+1]:[0,x]).reduce((b,S)=>b+(S.height||0)+h,0)},[n]);return E.useEffect(()=>{n.forEach(s=>{if(s.dismissed)QA(s.id,s.removeDelay);else{let c=Bo.get(s.id);c&&(clearTimeout(c),Bo.delete(s.id))}})},[n]),{toasts:n,handlers:{updateHeight:qA,startPause:HA,endPause:l,calculateOffset:o}}},IA=Xr`
55
+ `):" "+eb(s[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return l},adapters:Ch};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ka(null,e)}function tb(e){return Fd(e),e.headers=gn.from(e.headers),e.data=Hd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),d0.getAdapter(e.adapter||es.adapter)(e).then(function(l){return Fd(e),l.data=Hd.call(e,e.transformResponse,l),l.headers=gn.from(l.headers),l},function(l){return a0(l)||(Fd(e),l&&l.response&&(l.response.data=Hd.call(e,e.transformResponse,l.response),l.response.headers=gn.from(l.response.headers))),Promise.reject(l)})}const h0="1.9.0",fc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{fc[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});const nb={};fc.transitional=function(n,i,l){function o(s,c){return"[Axios v"+h0+"] Transitional option '"+s+"'"+c+(l?". "+l:"")}return(s,c,f)=>{if(n===!1)throw new ke(o(c," has been removed"+(i?" in "+i:"")),ke.ERR_DEPRECATED);return i&&!nb[c]&&(nb[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}};fc.spelling=function(n){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${n}`),!0)};function nA(e,n,i){if(typeof e!="object")throw new ke("options must be an object",ke.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],h=f===void 0||c(f,s,e);if(h!==!0)throw new ke("option "+s+" must be "+h,ke.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ke("Unknown option "+s,ke.ERR_BAD_OPTION)}}const Mu={assertOptions:nA,validators:fc},mr=Mu.validators;let cl=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Yv,response:new Yv}}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=pl(this.defaults,i);const{transitional:l,paramsSerializer:o,headers:s}=i;l!==void 0&&Mu.assertOptions(l,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),o!=null&&(V.isFunction(o)?i.paramsSerializer={serialize:o}:Mu.assertOptions(o,{encode:mr.function,serialize:mr.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Mu.assertOptions(i,{baseUrl:mr.spelling("baseURL"),withXsrfToken:mr.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"],S=>{delete s[S]}),i.headers=gn.concat(c,s);const f=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(h=h&&k.synchronous,f.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let y,g=0,x;if(!h){const S=[tb.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,d),x=S.length,y=Promise.resolve(i);g<x;)y=y.then(S[g++],S[g++]);return y}x=f.length;let b=i;for(g=0;g<x;){const S=f[g++],k=f[g++];try{b=S(b)}catch(_){k.call(this,_);break}}try{y=tb.call(this,b)}catch(S){return Promise.reject(S)}for(g=0,x=d.length;g<x;)y=y.then(d[g++],d[g++]);return y}getUri(n){n=pl(this.defaults,n);const i=s0(n.baseURL,n.url,n.allowAbsoluteUrls);return r0(i,n.params,n.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(n){cl.prototype[n]=function(i,l){return this.request(pl(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(pl(f||{},{method:n,headers:l?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}cl.prototype[n]=i(),cl.prototype[n+"Form"]=i(!0)});let rA=class p0{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 ka(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 p0(function(o){n=o}),cancel:n}}};function iA(e){return function(i){return e.apply(null,i)}}function lA(e){return V.isObject(e)&&e.isAxiosError===!0}const Eh={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(Eh).forEach(([e,n])=>{Eh[n]=e});function m0(e){const n=new cl(e),i=Vx(cl.prototype.request,n);return V.extend(i,cl.prototype,n,{allOwnKeys:!0}),V.extend(i,n,null,{allOwnKeys:!0}),i.create=function(o){return m0(pl(e,o))},i}const gt=m0(es);gt.Axios=cl;gt.CanceledError=ka;gt.CancelToken=rA;gt.isCancel=a0;gt.VERSION=h0;gt.toFormData=uc;gt.AxiosError=ke;gt.Cancel=gt.CanceledError;gt.all=function(n){return Promise.all(n)};gt.spread=iA;gt.isAxiosError=lA;gt.mergeConfig=pl;gt.AxiosHeaders=gn;gt.formToJSON=e=>l0(V.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=d0.getAdapter;gt.HttpStatusCode=Eh;gt.default=gt;const{Axios:lU,AxiosError:aA,CanceledError:aU,isCancel:oU,CancelToken:sU,VERSION:uU,all:cU,Cancel:fU,isAxiosError:y0,spread:dU,toFormData:hU,AxiosHeaders:pU,HttpStatusCode:mU,formToJSON:yU,getAdapter:gU,mergeConfig:vU}=gt,g0={userId:void 0},oA=()=>{try{const e=sessionStorage.getItem("accessToken");return e||"::local::"}catch{return}},sA=e=>g0.userId=e,uA=()=>g0.userId,v0=location.hostname==="localhost"?"/api":"http://localhost:4466/api",vt=gt.create({baseURL:v0});vt.interceptors.request.use(e=>(e.headers["phoenix-user-id"]=uA(),e));const cA=gt.create({baseURL:v0}),Ot=new bT({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(e,n)=>{var i;return y0(n)&&((i=n.response)==null?void 0:i.status)===404?!1:e<3}}}}),Wr="data-sources",b0="teams",Mi="auth-user",fA=e=>Gn({queryKey:["project","team",e],queryFn:async()=>{const{data:n}=await vt.get(`/project/team/${e}/files`);return n.data},enabled:!!e}),ts=e=>{const n=["project","team"];return Ot.invalidateQueries(n)},dA=e=>{const n=["trash","team"];return Ot.invalidateQueries(n)},hA=(e,n)=>Gn({queryKey:["project",n,"tables",e],queryFn:async()=>{const{data:i}=await vt.get(`/project/team/${n}/query`,{params:{size:20,search:e}});return i.data},enabled:!!n,staleTime:0,keepPreviousData:!0}),pA=(e,n)=>{try{plausible(e,n?{props:n}:void 0)}catch{}},mA=()=>{try{plausible("pageview")}catch{}},dt={event:pA,pageView:mA},x0=e=>Gn([Wr,e],async()=>{const{data:n}=await vt.get("/data-sources/"+e);return n.data},{enabled:!!e}),yA=e=>Gn({queryKey:[Wr,e.teamId],queryFn:async()=>{const{data:n}=await vt.get("/data-sources",{params:e});return n.data},enabled:e.teamId!==void 0}),Aa=e=>Gn({queryKey:[Wr,e,"inspections"],queryFn:async()=>{const{data:n}=await vt.get(`/data-sources/${e}/inspections`);return n.data},enabled:!!e}),gA=()=>Cr(async e=>{const{data:n}=await vt.post("/data-sources",e);return n.data},{onSuccess:()=>{Ot.invalidateQueries([Wr]),ts(),dt.event("Datasource created")},onError:()=>{dt.event("Datasource creation failed")}}),vA=()=>Cr({mutationFn:async({dataSource:e,id:n})=>{const{data:i}=await vt.put(`/data-sources/${n}`,e);return i.data},onSuccess:()=>{Ot.invalidateQueries([Wr]),ts()}}),S0=()=>Cr({mutationFn:async e=>{await vt.post(`/data-sources/${e}/inspect`)},onSuccess:()=>{Ot.invalidateQueries([Wr]),dt.event("Datasource inspected")}}),bA=()=>Cr({mutationFn:async e=>{await vt.delete(`/data-sources/${e}`)},onSuccess:()=>{Ot.invalidateQueries([Wr]),ts(),dt.event("Datasource deleted")}}),w0=()=>Gn(["accessToken"],()=>oA()),zi=()=>{const{data:e}=w0();return Gn([Mi],async()=>{const{data:n}=await vt.get("/users");return sA(n.data.id),n.data},{enabled:!!e,retry:(n,i)=>y0(i)&&i.code==="ERR_NETWORK"?!1:n<3})},xA=()=>Cr(async e=>{const{data:n}=await vt.put("/users/team",{teamId:e});return n.data},{onSuccess:e=>{Ot.setQueryData([Mi],e)}});function SA(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 wA=e=>Gn({queryKey:["hooks",e],queryFn:async()=>{const n=await Ot.fetchQuery({queryKey:[Wr,e,"inspections"],queryFn:async()=>{const{data:i}=await vt.get(`/data-sources/${e}/inspections`);return i.data}});return SA(n)},enabled:!!e});function CA(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(d=>d.table===o&&d.column===f.name))l[o].push(f.name);else{delete l[o];break}}}return l}function EA(e,n,i){const{data:l}=wA(n),{data:o}=Aa(n);return E.useMemo(()=>{const s=CA(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,h)=>{var y;const d=(y=e==null?void 0:e.columns)==null?void 0:y.findIndex(g=>g.column===f&&g.table===h);if(d!=null&&d>-1)return c[d]},getEntityKey:(c,f)=>s[c].reduce((h,d)=>{var g;const y=(g=e==null?void 0:e.columns)==null?void 0:g.findIndex(x=>x.column===d&&x.table===c);return y!=null&&y>-1&&h.push([d,f[y]]),h},[]),getColumnType:c=>{const f=e==null?void 0:e.allColumns.find(h=>h.full===c);if(f)return f.type}}},[e,n,l,o,i])}function TA(e,n){return E.useMemo(()=>({state:e,setState:n}),[e,n])}function ma(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 Er=e=>{const n=new Set;let i=e;const l=f=>(n.add(f),()=>n.delete(f)),o=f=>(n.forEach(h=>h(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 kA(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 C0=(e,n,i=localStorage)=>{const l=Er(kA(n,e,i));return l[2].subscribe(o=>{i.setItem(n,JSON.stringify(o))}),l};let AA={data:""},_A=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||AA,OA=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,RA=/\/\*[^]*?\*\/| +/g,rb=/\n+/g,ji=(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"?ji(c,s):s+"{"+ji(c,s[1]=="k"?"":n)+"}":typeof c=="object"?l+=ji(c,n?n.replace(/([^,])+/g,f=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ji.p?ji.p(s,c):s+":"+c+";")}return i+(n&&o?n+"{"+o+"}":o)+l},$r={},E0=e=>{if(typeof e=="object"){let n="";for(let i in e)n+=i+E0(e[i]);return n}return e},NA=(e,n,i,l,o)=>{let s=E0(e),c=$r[s]||($r[s]=(h=>{let d=0,y=11;for(;d<h.length;)y=101*y+h.charCodeAt(d++)>>>0;return"go"+y})(s));if(!$r[c]){let h=s!==e?e:(d=>{let y,g,x=[{}];for(;y=OA.exec(d.replace(RA,""));)y[4]?x.shift():y[3]?(g=y[3].replace(rb," ").trim(),x.unshift(x[0][g]=x[0][g]||{})):x[0][y[1]]=y[2].replace(rb," ").trim();return x[0]})(e);$r[c]=ji(o?{["@keyframes "+c]:h}:h,i?"":"."+c)}let f=i&&$r.g?$r.g:null;return i&&($r.g=$r[c]),((h,d,y,g)=>{g?d.data=d.data.replace(g,h):d.data.indexOf(h)===-1&&(d.data=y?h+d.data:d.data+h)})($r[c],n,l,f),c},jA=(e,n,i)=>e.reduce((l,o,s)=>{let c=n[s];if(c&&c.call){let f=c(i),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=h?"."+h:f&&typeof f=="object"?f.props?"":ji(f,""):f===!1?"":f}return l+o+(c??"")},"");function dc(e){let n=this||{},i=e.call?e(n.p):e;return NA(i.unshift?i.raw?jA(i,[].slice.call(arguments,1),n.p):i.reduce((l,o)=>Object.assign(l,o&&o.call?o(n.p):o),{}):i,_A(n.target),n.g,n.o,n.k)}let T0,Th,kh;dc.bind({g:1});let Xr=dc.bind({k:1});function DA(e,n,i,l){ji.p=n,T0=e,Th=i,kh=l}function Ui(e,n){let i=this||{};return function(){let l=arguments;function o(s,c){let f=Object.assign({},s),h=f.className||o.className;i.p=Object.assign({theme:Th&&Th()},f),i.o=/ *go\d+/.test(h),f.className=dc.apply(i,l)+(h?" "+h:"");let d=e;return e[0]&&(d=f.as||e,delete f.as),kh&&d[0]&&kh(f),T0(d,f)}return o}}var MA=e=>typeof e=="function",Yu=(e,n)=>MA(e)?e(n):e,LA=(()=>{let e=0;return()=>(++e).toString()})(),k0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),zA=20,A0=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,zA)};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 A0(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}))}}},Lu=[],ul={toasts:[],pausedAt:void 0},vl=e=>{ul=A0(ul,e),Lu.forEach(n=>{n(ul)})},UA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},BA=(e={})=>{let[n,i]=E.useState(ul),l=E.useRef(ul);E.useEffect(()=>(l.current!==ul&&i(ul),Lu.push(i),()=>{let s=Lu.indexOf(i);s>-1&&Lu.splice(s,1)}),[]);let o=n.toasts.map(s=>{var c,f,h;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)||UA[s.type],style:{...e.style,...(h=e[s.type])==null?void 0:h.style,...s.style}}});return{...n,toasts:o}},qA=(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)||LA()}),ns=e=>(n,i)=>{let l=qA(n,e,i);return vl({type:2,toast:l}),l.id},on=(e,n)=>ns("blank")(e,n);on.error=ns("error");on.success=ns("success");on.loading=ns("loading");on.custom=ns("custom");on.dismiss=e=>{vl({type:3,toastId:e})};on.remove=e=>vl({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?Yu(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?Yu(n.error,o):void 0;s?on.error(s,{id:l,...i,...i==null?void 0:i.error}):on.dismiss(l)}),e};var HA=(e,n)=>{vl({type:1,toast:{id:e,height:n}})},FA=()=>{vl({type:5,time:Date.now()})},Bo=new Map,QA=1e3,PA=(e,n=QA)=>{if(Bo.has(e))return;let i=setTimeout(()=>{Bo.delete(e),vl({type:4,toastId:e})},n);Bo.set(e,i)},IA=e=>{let{toasts:n,pausedAt:i}=BA(e);E.useEffect(()=>{if(i)return;let s=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(s-f.createdAt);if(h<0){f.visible&&on.dismiss(f.id);return}return setTimeout(()=>on.dismiss(f.id),h)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[n,i]);let l=E.useCallback(()=>{i&&vl({type:6,time:Date.now()})},[i]),o=E.useCallback((s,c)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:d}=c||{},y=n.filter(b=>(b.position||d)===(s.position||d)&&b.height),g=y.findIndex(b=>b.id===s.id),x=y.filter((b,S)=>S<g&&b.visible).length;return y.filter(b=>b.visible).slice(...f?[x+1]:[0,x]).reduce((b,S)=>b+(S.height||0)+h,0)},[n]);return E.useEffect(()=>{n.forEach(s=>{if(s.dismissed)PA(s.id,s.removeDelay);else{let c=Bo.get(s.id);c&&(clearTimeout(c),Bo.delete(s.id))}})},[n]),{toasts:n,handlers:{updateHeight:HA,startPause:FA,endPause:l,calculateOffset:o}}},VA=Xr`
57
57
  from {
58
58
  transform: scale(0) rotate(45deg);
59
59
  opacity: 0;
@@ -61,7 +61,7 @@ from {
61
61
  to {
62
62
  transform: scale(1) rotate(45deg);
63
63
  opacity: 1;
64
- }`,VA=Xr`
64
+ }`,$A=Xr`
65
65
  from {
66
66
  transform: scale(0);
67
67
  opacity: 0;
@@ -69,7 +69,7 @@ from {
69
69
  to {
70
70
  transform: scale(1);
71
71
  opacity: 1;
72
- }`,$A=Xr`
72
+ }`,YA=Xr`
73
73
  from {
74
74
  transform: scale(0) rotate(90deg);
75
75
  opacity: 0;
@@ -77,7 +77,7 @@ from {
77
77
  to {
78
78
  transform: scale(1) rotate(90deg);
79
79
  opacity: 1;
80
- }`,YA=Ui("div")`
80
+ }`,GA=Ui("div")`
81
81
  width: 20px;
82
82
  opacity: 0;
83
83
  height: 20px;
@@ -86,14 +86,14 @@ to {
86
86
  position: relative;
87
87
  transform: rotate(45deg);
88
88
 
89
- animation: ${IA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
89
+ animation: ${VA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
90
90
  forwards;
91
91
  animation-delay: 100ms;
92
92
 
93
93
  &:after,
94
94
  &:before {
95
95
  content: '';
96
- animation: ${VA} 0.15s ease-out forwards;
96
+ animation: ${$A} 0.15s ease-out forwards;
97
97
  animation-delay: 150ms;
98
98
  position: absolute;
99
99
  border-radius: 3px;
@@ -106,18 +106,18 @@ to {
106
106
  }
107
107
 
108
108
  &:before {
109
- animation: ${$A} 0.15s ease-out forwards;
109
+ animation: ${YA} 0.15s ease-out forwards;
110
110
  animation-delay: 180ms;
111
111
  transform: rotate(90deg);
112
112
  }
113
- `,GA=Xr`
113
+ `,KA=Xr`
114
114
  from {
115
115
  transform: rotate(0deg);
116
116
  }
117
117
  to {
118
118
  transform: rotate(360deg);
119
119
  }
120
- `,KA=Ui("div")`
120
+ `,XA=Ui("div")`
121
121
  width: 12px;
122
122
  height: 12px;
123
123
  box-sizing: border-box;
@@ -125,8 +125,8 @@ to {
125
125
  border-radius: 100%;
126
126
  border-color: ${e=>e.secondary||"#e0e0e0"};
127
127
  border-right-color: ${e=>e.primary||"#616161"};
128
- animation: ${GA} 1s linear infinite;
129
- `,XA=Xr`
128
+ animation: ${KA} 1s linear infinite;
129
+ `,ZA=Xr`
130
130
  from {
131
131
  transform: scale(0) rotate(45deg);
132
132
  opacity: 0;
@@ -134,7 +134,7 @@ from {
134
134
  to {
135
135
  transform: scale(1) rotate(45deg);
136
136
  opacity: 1;
137
- }`,ZA=Xr`
137
+ }`,JA=Xr`
138
138
  0% {
139
139
  height: 0;
140
140
  width: 0;
@@ -148,7 +148,7 @@ to {
148
148
  100% {
149
149
  opacity: 1;
150
150
  height: 10px;
151
- }`,JA=Ui("div")`
151
+ }`,WA=Ui("div")`
152
152
  width: 20px;
153
153
  opacity: 0;
154
154
  height: 20px;
@@ -157,13 +157,13 @@ to {
157
157
  position: relative;
158
158
  transform: rotate(45deg);
159
159
 
160
- animation: ${XA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
160
+ animation: ${ZA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
161
161
  forwards;
162
162
  animation-delay: 100ms;
163
163
  &:after {
164
164
  content: '';
165
165
  box-sizing: border-box;
166
- animation: ${ZA} 0.2s ease-out forwards;
166
+ animation: ${JA} 0.2s ease-out forwards;
167
167
  opacity: 0;
168
168
  animation-delay: 200ms;
169
169
  position: absolute;
@@ -175,16 +175,16 @@ to {
175
175
  height: 10px;
176
176
  width: 6px;
177
177
  }
178
- `,WA=Ui("div")`
179
- position: absolute;
180
178
  `,e_=Ui("div")`
179
+ position: absolute;
180
+ `,t_=Ui("div")`
181
181
  position: relative;
182
182
  display: flex;
183
183
  justify-content: center;
184
184
  align-items: center;
185
185
  min-width: 20px;
186
186
  min-height: 20px;
187
- `,t_=Xr`
187
+ `,n_=Xr`
188
188
  from {
189
189
  transform: scale(0.6);
190
190
  opacity: 0.4;
@@ -192,20 +192,20 @@ from {
192
192
  to {
193
193
  transform: scale(1);
194
194
  opacity: 1;
195
- }`,n_=Ui("div")`
195
+ }`,r_=Ui("div")`
196
196
  position: relative;
197
197
  transform: scale(0.6);
198
198
  opacity: 0.4;
199
199
  min-width: 20px;
200
- animation: ${t_} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
200
+ animation: ${n_} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
201
  forwards;
202
- `,r_=({toast:e})=>{let{icon:n,type:i,iconTheme:l}=e;return n!==void 0?typeof n=="string"?E.createElement(n_,null,n):n:i==="blank"?null:E.createElement(e_,null,E.createElement(KA,{...l}),i!=="loading"&&E.createElement(WA,null,i==="error"?E.createElement(YA,{...l}):E.createElement(JA,{...l})))},i_=e=>`
202
+ `,i_=({toast:e})=>{let{icon:n,type:i,iconTheme:l}=e;return n!==void 0?typeof n=="string"?E.createElement(r_,null,n):n:i==="blank"?null:E.createElement(t_,null,E.createElement(XA,{...l}),i!=="loading"&&E.createElement(e_,null,i==="error"?E.createElement(GA,{...l}):E.createElement(WA,{...l})))},l_=e=>`
203
203
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
204
204
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205
- `,l_=e=>`
205
+ `,a_=e=>`
206
206
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207
207
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
208
- `,a_="0%{opacity:0;} 100%{opacity:1;}",o_="0%{opacity:1;} 100%{opacity:0;}",s_=Ui("div")`
208
+ `,o_="0%{opacity:0;} 100%{opacity:1;}",s_="0%{opacity:1;} 100%{opacity:0;}",u_=Ui("div")`
209
209
  display: flex;
210
210
  align-items: center;
211
211
  background: #fff;
@@ -217,47 +217,47 @@ to {
217
217
  pointer-events: auto;
218
218
  padding: 8px 10px;
219
219
  border-radius: 8px;
220
- `,u_=Ui("div")`
220
+ `,c_=Ui("div")`
221
221
  display: flex;
222
222
  justify-content: center;
223
223
  margin: 4px 10px;
224
224
  color: inherit;
225
225
  flex: 1 1 auto;
226
226
  white-space: pre-line;
227
- `,c_=(e,n)=>{let i=e.includes("top")?1:-1,[l,o]=T0()?[a_,o_]:[i_(i),l_(i)];return{animation:n?`${Xr(l)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Xr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},f_=E.memo(({toast:e,position:n,style:i,children:l})=>{let o=e.height?c_(e.position||n||"top-center",e.visible):{opacity:0},s=E.createElement(r_,{toast:e}),c=E.createElement(u_,{...e.ariaProps},Yu(e.message,e));return E.createElement(s_,{className:e.className,style:{...o,...i,...e.style}},typeof l=="function"?l({icon:s,message:c}):E.createElement(E.Fragment,null,s,c))});jA(E.createElement);var d_=({id:e,className:n,style:i,onHeightUpdate:l,children:o})=>{let s=E.useCallback(c=>{if(c){let f=()=>{let h=c.getBoundingClientRect().height;l(e,h)};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)},h_=(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:T0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...l,...o}},p_=dc`
227
+ `,f_=(e,n)=>{let i=e.includes("top")?1:-1,[l,o]=k0()?[o_,s_]:[l_(i),a_(i)];return{animation:n?`${Xr(l)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Xr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},d_=E.memo(({toast:e,position:n,style:i,children:l})=>{let o=e.height?f_(e.position||n||"top-center",e.visible):{opacity:0},s=E.createElement(i_,{toast:e}),c=E.createElement(c_,{...e.ariaProps},Yu(e.message,e));return E.createElement(u_,{className:e.className,style:{...o,...i,...e.style}},typeof l=="function"?l({icon:s,message:c}):E.createElement(E.Fragment,null,s,c))});DA(E.createElement);var h_=({id:e,className:n,style:i,onHeightUpdate:l,children:o})=>{let s=E.useCallback(c=>{if(c){let f=()=>{let h=c.getBoundingClientRect().height;l(e,h)};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)},p_=(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:k0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...l,...o}},m_=dc`
228
228
  z-index: 9999;
229
229
  > * {
230
230
  pointer-events: auto;
231
231
  }
232
- `,bu=16,m_=({reverseOrder:e,position:n="top-center",toastOptions:i,gutter:l,children:o,containerStyle:s,containerClassName:c})=>{let{toasts:f,handlers:h}=PA(i);return E.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:bu,left:bu,right:bu,bottom:bu,pointerEvents:"none",...s},className:c,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(d=>{let y=d.position||n,g=h.calculateOffset(d,{reverseOrder:e,gutter:l,defaultPosition:n}),x=h_(y,g);return E.createElement(d_,{id:d.id,key:d.id,onHeightUpdate:h.updateHeight,className:d.visible?p_:"",style:x},d.type==="custom"?Yu(d.message,d):o?o(d):E.createElement(f_,{toast:d,position:y}))}))},Zr=on;const[hc,pc,mc]=w0([],"open-tabs"),[y_,Ah,g_]=w0("","active-tabs",sessionStorage),Vo=(e,n,i=!1)=>{b_();const l=v_({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)});i&&op(l.id)},_h=e=>{const n=g_.get();if(pc(i=>i.filter(l=>l.id!==e)),n===e){const i=mc.get();i.length>0?Ah(i[0].id):Ah("")}},op=e=>{Ah(e)},A0=(e,n)=>{pc(i=>i.map(l=>l.id===e?{...l,label:n}:l))};function v_(e){return pc(n=>n?[...n,e]:[e]),e}const ib=20;function b_(){if(mc.get().length>=ib){const n=`Maximum ${ib} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw Zr.error(n),new Error(n)}}const x_="_alert_1n7t7_2",S_="_info_1n7t7_2",w_="_danger_1n7t7_2",C_="_success_1n7t7_2",E_="_warning_1n7t7_2",T_="_dark_1n7t7_2",ra={alert:x_,info:S_,danger:w_,success:C_,warning:E_,dark:T_};function _0(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=_0(e[n]))&&(l&&(l+=" "),l+=i)}else for(i in e)e[i]&&(l&&(l+=" "),l+=i);return l}function Qe(){for(var e,n,i=0,l="",o=arguments.length;i<o;i++)(e=arguments[i])&&(n=_0(e))&&(l&&(l+=" "),l+=n);return l}const vr=({variant:e,noRounded:n,className:i,children:l,...o})=>v.jsx("div",{className:Qe(ra.alert,!n&&"rounded-lg",(e==="info"||!e)&&ra.info,e==="danger"&&ra.danger,e==="dark"&&ra.dark,e==="warning"&&ra.warning,e==="success"&&ra.success,i),role:"alert",...o,children:l}),k_="_data-store_1r8v5_2",A_="_tab_1r8v5_2",O0={dataStore:k_,tab:A_},Oh={settings:{path:"settings",name:"⚙️ Settings"}},_t={home:{path:"/",name:"🍜 Home"},workbench:{path:"/workbench"}},__=()=>{const e=hc(),n=Jr(),i=s=>{op(s.currentTarget.dataset.tabId),n(_t.workbench.path),dt.event("On open workbench tab [Home]")},l=s=>{s.button===1&&_h(s.currentTarget.dataset.tabId)},o=()=>{n(_t.workbench.path),dt.event("On open workbench [Home]")};return v.jsxs("div",{className:"mt-2 card-white",children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("button",{className:"hotkey",onClick:o,children:"W"})]}),v.jsx("p",{className:"text-sm text-gray-800",children:"Continue your work from where you left"}),v.jsx("div",{className:"flex gap-1 mt-2 flex-wrap",children:e.map(s=>v.jsx("button",{className:O0.tab,onClick:i,"data-tab-id":s.id,onAuxClick:l,"data-tooltip-id":"default","data-tooltip-content":s.label,children:s.label},s.id))})]})},R0=async e=>Ot.fetchQuery({queryKey:["query",e],queryFn:async()=>{const{data:n}=await vt.get("/queries/"+e);return n.data}}),[O_,Qd,R_]=Er(void 0),N_=async()=>new Promise(e=>{Qd({onCancel:()=>{Qd(void 0),e(void 0)},onConfirm:(n,i,l)=>{Qd(void 0),e({dsId:l,id:i,type:n})}})}),sp=e=>{const n=Jr();return E.useCallback(()=>{R_.get()||(N_().then(l=>{(l==null?void 0:l.type)==="table"?(Vo(l.id,ma({table:l.id,dataSourceId:l.dsId}),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)):(l==null?void 0:l.type)==="query"&&R0(l.id).then(o=>{Vo(o.name,ma(o.opts),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)})}),dt.event(`On open query search [${e}]`))},[n,e])},j_=()=>{const e=sp("Home");return v.jsxs("button",{className:"mt-2 bg-white p-2 rounded-lg border border-blue-200",onClick:e,children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🍜 DataRamen explorer"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsx("p",{className:"cursor-text mt-2 text-gray-400 bg-gray-50 rounded-lg p-2 w-full text-left border border-gray-100",children:"Search table or saved query to start exploring"})]})},D_=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:"M256 112v288M400 256H112"})),M_="_input_rnca0_2",L_="_content_rnca0_2",z_="_form_rnca0_2",Wt={input:M_,content:L_,form:z_,switch:"_switch_rnca0_2"},U_="_modal_10cm4_2",B_="_modal-visible_10cm4_2",q_="_modal-invisible_10cm4_2",H_="_backdrop_10cm4_2",F_="_modal-container_10cm4_2",Q_="_close-button_10cm4_2",ua={modal:U_,modalVisible:B_,modalInvisible:q_,backdrop:H_,modalContainer:F_,closeButton:Q_},up=()=>{const e=Jr(),{search:n}=vn();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()})}}},Bi=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})=>{const[c,f]=E.useState(!1),h=()=>{n&&l()},d=y=>{i||getComputedStyle(y.currentTarget).opacity==="0"&&(f(!1),o&&o())};return E.useEffect(()=>{i&&f(!0)},[i]),v.jsxs("div",{onTransitionEnd:d,className:Qe(ua.modal,i?ua.modalVisible:ua.modalInvisible),children:[v.jsx("div",{onClick:h,className:ua.backdrop}),v.jsx("div",{className:Qe(ua.modalContainer,s!==!0&&"p-4"),children:c&&e})]})},P_=({children:e,target:n,backdropClose:i})=>{const{search:l}=vn(),{close:o}=up(),s=new URLSearchParams(l),c=n===s.get("modal");return v.jsx(nn,{isVisible:c,backdropClose:i,onClose:o,children:e})},Kn=({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)}},[]),v.jsx("button",{className:ua.closeButton,onClick:e,children:v.jsx(Bi,{width:20,height:20})})},cp=e=>{const[n,i]=E.useState(e),[l,o]=E.useState([]),s=E.useRef(e),c=E.useCallback((d,y)=>{i(g=>({...g,[d]:y}))},[]),f=E.useCallback(d=>y=>{y.target.type==="checkbox"?c(d,y.target.checked):c(d,y.target.value),o(g=>g.includes(d)?g:[...g,d])},[c]),h=E.useCallback(()=>{i(s.current),o([])},[]);return[n,{set:c,change:f,reset:h,touched:l}]},I_=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]})]}),V_=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Schema"}),v.jsx("input",{value:e.dbSchema,onChange:n("dbSchema"),className:"input"})]})]}),ia=[{label:"Postgre",tag:"postgres"},{label:"MySQL",tag:"mysql"}],$_=({show:e,onClose:n})=>{const i=yA(),l=x0(),o=Jr(),{data:s}=zi(),[c,{change:f,set:h}]=cp({name:"",dbType:"postgres",dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:""}),d=async()=>{const x=await i.mutateAsync({...c,dbPort:Number(c.dbPort),teamId:s.currentTeam.id,ownerId:s.id});await l.mutateAsync(x.id),o(`/data-source/${x.id}`),dt.event("Create Datasource",{dbType:c.dbType})},y=()=>{n(),dt.event("Cancel Datasource")},g=i.isLoading||l.isLoading;return v.jsxs(nn,{isVisible:e,onClose:y,children:[v.jsx(Kn,{onClick:y}),v.jsxs(vr,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",v.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),i.isError&&v.jsx(vr,{variant:"danger",className:"mb-2",children:v.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),i.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Creating connection"}),l.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Inspecting connection"}),v.jsxs("div",{className:Wt.switch,children:[v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[0].tag,onChange:()=>h("dbType",ia[0].tag)}),v.jsx("span",{children:ia[0].label})]}),v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[1].tag,onChange:()=>h("dbType",ia[1].tag)}),v.jsx("span",{children:ia[1].label})]})]}),v.jsx("div",{className:Wt.content,children:v.jsxs("div",{className:Wt.form,children:[v.jsxs("div",{className:Qe(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Name"}),v.jsx("input",{value:c.name,onChange:f("name"),className:"input"})]}),v.jsxs("div",{className:Qe(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Description"}),v.jsx("textarea",{value:c.description,onChange:f("description"),className:"input"})]}),c.dbType==="mysql"&&v.jsx(I_,{form:c,change:f}),c.dbType==="postgres"&&v.jsx(V_,{form:c,change:f})]})}),v.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[v.jsx("button",{onClick:y,className:"button tertiary",disabled:g,children:"Cancel"}),v.jsx("button",{onClick:d,className:"button primary",disabled:g,children:"Create"})]})]})},Y_=()=>{const{data:e}=zi(),[n,i]=E.useState(!1),l=()=>{i(!0),dt.event("On create new datasource")};return v.jsxs("div",{className:"mt-2 grid",children:[v.jsx($_,{show:n,onClose:()=>i(!1)}),v.jsxs("button",{disabled:!e,className:Qe(O0.dataStore,"card-white",!e),onClick:l,children:[v.jsx(D_,{width:28,height:28,className:"text-gray-800"}),v.jsx("p",{className:"font-semibold truncate text-gray-800",children:"Connect new database"})]})]})};function lb(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]/),G_=qi(/[#-'*+\--9=?A-Z^-~]/);function Gu(e){return e!==null&&(e<32||e===127)}const Rh=qi(/\d/),K_=qi(/[\dA-Fa-f]/),X_=qi(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function ze(e){return e===-2||e===-1||e===32}const yc=qi(new RegExp("\\p{P}|\\p{S}","u")),ml=qi(/\s/);function qi(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Z_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const gc=function(e){if(e==null)return tO;if(typeof e=="function")return vc(e);if(typeof e=="object")return Array.isArray(e)?J_(e):W_(e);if(typeof e=="string")return eO(e);throw new Error("Expected function, string, or object as test")};function J_(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=gc(e[i]);return vc(l);function l(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function W_(e){const n=e;return vc(i);function i(l){const o=l;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function eO(e){return vc(n);function n(i){return i&&i.type===e}}function vc(e){return n;function n(i,l,o){return!!(nO(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function tO(){return!0}function nO(e){return e!==null&&typeof e=="object"&&"type"in e}const N0=[],rO=!0,Nh=!1,iO="skip";function j0(e,n,i,l){let o;typeof n=="function"&&typeof i!="function"?(l=i,i=n):o=n;const s=gc(o),c=l?-1:1;f(e,void 0,[])();function f(h,d,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=N0,S,k,_;if((!n||s(h,d,y[y.length-1]||void 0))&&(b=lO(i(h,y)),b[0]===Nh))return b;if("children"in h&&h.children){const A=h;if(A.children&&b[0]!==iO)for(k=(l?A.children.length:-1)+c,_=y.concat(A);k>-1&&k<A.children.length;){const N=A.children[k];if(S=f(N,k,_)(),S[0]===Nh)return S;k=typeof S[1]=="number"?S[1]:k+c}}return b}}}function lO(e){return Array.isArray(e)?e:typeof e=="number"?[rO,e]:e==null?N0:[e]}function aO(e,n,i){const o=gc((i||{}).ignore||[]),s=oO(n);let c=-1;for(;++c<s.length;)j0(e,"text",f);function f(d,y){let g=-1,x;for(;++g<y.length;){const b=y[g],S=x?x.children:void 0;if(o(b,S?S.indexOf(b):void 0,x))return;x=b}if(x)return h(d,y)}function h(d,y){const g=y[y.length-1],x=s[c][0],b=s[c][1];let S=0;const _=g.children.indexOf(d);let A=!1,N=[];x.lastIndex=0;let O=x.exec(d.value);for(;O;){const L=O.index,q={index:O.index,input:O.input,stack:[...y,d]};let M=b(...O,q);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?x.lastIndex=L+1:(S!==L&&N.push({type:"text",value:d.value.slice(S,L)}),Array.isArray(M)?N.push(...M):M&&N.push(M),S=L+O[0].length,A=!0),!x.global)break;O=x.exec(d.value)}return A?(S<d.value.length&&N.push({type:"text",value:d.value.slice(S)}),g.children.splice(_,1,...N)):N=[d],_+N.length}}function oO(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([sO(o[0]),uO(o[1])])}return n}function sO(e){return typeof e=="string"?new RegExp(Z_(e),"g"):e}function uO(e){return typeof e=="function"?e:function(){return e}}const Pd="phrasing",Id=["autolink","link","image","label"];function cO(){return{transforms:[gO],enter:{literalAutolink:dO,literalAutolinkEmail:Vd,literalAutolinkHttp:Vd,literalAutolinkWww:Vd},exit:{literalAutolink:yO,literalAutolinkEmail:mO,literalAutolinkHttp:hO,literalAutolinkWww:pO}}}function fO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:":",before:"[ps]",after:"\\/",inConstruct:Pd,notInConstruct:Id}]}}function dO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vd(e){this.config.enter.autolinkProtocol.call(this,e)}function hO(e){this.config.exit.autolinkProtocol.call(this,e)}function pO(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 mO(e){this.config.exit.autolinkEmail.call(this,e)}function yO(e){this.exit(e)}function gO(e){aO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),bO]],{ignore:["link","linkReference"]})}function vO(e,n,i,l,o){let s="";if(!D0(o)||(/^w/i.test(n)&&(i=n+i,n="",s="http://"),!xO(i)))return!1;const c=SO(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 bO(e,n,i,l){return!D0(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function xO(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 SO(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=lb(e,"(");let s=lb(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 D0(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||ml(i)||yc(i))&&(!n||i!==47)}function tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}M0.peek=RO;function wO(){this.buffer()}function CO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function EO(){this.buffer()}function TO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function kO(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function AO(e){this.exit(e)}function _O(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function OO(e){this.exit(e)}function RO(){return"["}function M0(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 NO(){return{enter:{gfmFootnoteCallString:wO,gfmFootnoteCall:CO,gfmFootnoteDefinitionLabelString:EO,gfmFootnoteDefinition:TO},exit:{gfmFootnoteCallString:kO,gfmFootnoteCall:AO,gfmFootnoteDefinitionLabelString:_O,gfmFootnoteDefinition:OO}}}function jO(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:M0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),y=s.enter("label");return h+=f.move(s.safe(s.associationId(l),{before:h,after:"]"})),y(),h+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),h+=f.move((n?`
233
- `:" ")+s.indentLines(s.containerFlow(l,f.current()),n?L0:DO))),d(),h}}function DO(e,n,i){return n===0?e:L0(e,n,i)}function L0(e,n,i){return(i?"":" ")+e}const MO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];z0.peek=qO;function LO(){return{canContainEols:["delete"],enter:{strikethrough:UO},exit:{strikethrough:BO}}}function zO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:MO}],handlers:{delete:z0}}}function UO(e){this.enter({type:"delete",children:[]},e)}function BO(e){this.exit(e)}function z0(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 qO(){return"~"}function HO(e){return e.length}function FO(e,n){const i=n||{},l=(i.align||[]).concat(),o=i.stringLength||HO,s=[],c=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const k=[],_=[];let A=-1;for(e[y].length>d&&(d=e[y].length);++A<e[y].length;){const N=QO(e[y][A]);if(i.alignDelimiters!==!1){const O=o(N);_[A]=O,(h[A]===void 0||O>h[A])&&(h[A]=O)}k.push(N)}c[y]=k,f[y]=_}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<d;)s[g]=ab(l[g]);else{const k=ab(l);for(;++g<d;)s[g]=k}g=-1;const x=[],b=[];for(;++g<d;){const k=s[g];let _="",A="";k===99?(_=":",A=":"):k===108?_=":":k===114&&(A=":");let N=i.alignDelimiters===!1?1:Math.max(1,h[g]-_.length-A.length);const O=_+"-".repeat(N)+A;i.alignDelimiters!==!1&&(N=_.length+N+A.length,N>h[g]&&(h[g]=N),b[g]=N),x[g]=O}c.splice(1,0,x),f.splice(1,0,b),y=-1;const S=[];for(;++y<c.length;){const k=c[y],_=f[y];g=-1;const A=[];for(;++g<d;){const N=k[g]||"";let O="",L="";if(i.alignDelimiters!==!1){const q=h[g]-(_[g]||0),M=s[g];M===114?O=" ".repeat(q):M===99?q%2?(O=" ".repeat(q/2+.5),L=" ".repeat(q/2-.5)):(O=" ".repeat(q/2),L=O):L=" ".repeat(q)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(O),A.push(N),i.alignDelimiters!==!1&&A.push(L),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==d-1)&&A.push("|")}S.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return S.join(`
234
- `)}function QO(e){return e==null?"":String(e)}function ab(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 PO(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()),IO);return o(),c}function IO(e,n,i){return">"+(i?"":" ")+e}function VO(e,n){return ob(e,n.inConstruct,!0)&&!ob(e,n.notInConstruct,!1)}function ob(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 sb(e,n,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
235
- `&&VO(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
236
- `}function $O(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 YO(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 GO(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 KO(e,n,i,l){const o=GO(i),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(YO(e,i)){const g=i.enter("codeIndented"),x=i.indentLines(s,XO);return g(),x}const f=i.createTracker(l),h=o.repeat(Math.max($O(s,o)+1,3)),d=i.enter("codeFenced");let y=f.move(h);if(e.lang){const g=i.enter(`codeFencedLang${c}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
232
+ `,bu=16,y_=({reverseOrder:e,position:n="top-center",toastOptions:i,gutter:l,children:o,containerStyle:s,containerClassName:c})=>{let{toasts:f,handlers:h}=IA(i);return E.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:bu,left:bu,right:bu,bottom:bu,pointerEvents:"none",...s},className:c,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(d=>{let y=d.position||n,g=h.calculateOffset(d,{reverseOrder:e,gutter:l,defaultPosition:n}),x=p_(y,g);return E.createElement(h_,{id:d.id,key:d.id,onHeightUpdate:h.updateHeight,className:d.visible?m_:"",style:x},d.type==="custom"?Yu(d.message,d):o?o(d):E.createElement(d_,{toast:d,position:y}))}))},Zr=on;const[hc,pc,mc]=C0([],"open-tabs"),[g_,Ah,v_]=C0("","active-tabs",sessionStorage),Vo=(e,n,i=!1)=>{x_();const l=b_({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)});i&&op(l.id)},_h=e=>{const n=v_.get();if(pc(i=>i.filter(l=>l.id!==e)),n===e){const i=mc.get();i.length>0?Ah(i[0].id):Ah("")}},op=e=>{Ah(e)},_0=(e,n)=>{pc(i=>i.map(l=>l.id===e?{...l,label:n}:l))};function b_(e){return pc(n=>n?[...n,e]:[e]),e}const ib=20;function x_(){if(mc.get().length>=ib){const n=`Maximum ${ib} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw Zr.error(n),new Error(n)}}const S_="_alert_1n7t7_2",w_="_info_1n7t7_2",C_="_danger_1n7t7_2",E_="_success_1n7t7_2",T_="_warning_1n7t7_2",k_="_dark_1n7t7_2",ra={alert:S_,info:w_,danger:C_,success:E_,warning:T_,dark:k_};function O0(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=O0(e[n]))&&(l&&(l+=" "),l+=i)}else for(i in e)e[i]&&(l&&(l+=" "),l+=i);return l}function Qe(){for(var e,n,i=0,l="",o=arguments.length;i<o;i++)(e=arguments[i])&&(n=O0(e))&&(l&&(l+=" "),l+=n);return l}const vr=({variant:e,noRounded:n,className:i,children:l,...o})=>v.jsx("div",{className:Qe(ra.alert,!n&&"rounded-lg",(e==="info"||!e)&&ra.info,e==="danger"&&ra.danger,e==="dark"&&ra.dark,e==="warning"&&ra.warning,e==="success"&&ra.success,i),role:"alert",...o,children:l}),A_="_data-store_1r8v5_2",__="_tab_1r8v5_2",R0={dataStore:A_,tab:__},Oh={settings:{path:"settings",name:"⚙️ Settings"}},_t={home:{path:"/",name:"🍜 Home"},workbench:{path:"/workbench"}},O_=()=>{const e=hc(),n=Jr(),i=s=>{op(s.currentTarget.dataset.tabId),n(_t.workbench.path),dt.event("On open workbench tab [Home]")},l=s=>{s.button===1&&_h(s.currentTarget.dataset.tabId)},o=()=>{n(_t.workbench.path),dt.event("On open workbench [Home]")};return v.jsxs("div",{className:"mt-2 card-white",children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("button",{className:"hotkey",onClick:o,children:"W"})]}),v.jsx("p",{className:"text-sm text-gray-800",children:"Continue your work from where you left"}),v.jsx("div",{className:"flex gap-1 mt-2 flex-wrap",children:e.map(s=>v.jsx("button",{className:R0.tab,onClick:i,"data-tab-id":s.id,onAuxClick:l,"data-tooltip-id":"default","data-tooltip-content":s.label,children:s.label},s.id))})]})},N0=async e=>Ot.fetchQuery({queryKey:["query",e],queryFn:async()=>{const{data:n}=await vt.get("/queries/"+e);return n.data}}),[R_,Qd,N_]=Er(void 0),j_=async()=>new Promise(e=>{Qd({onCancel:()=>{Qd(void 0),e(void 0)},onConfirm:(n,i,l)=>{Qd(void 0),e({dsId:l,id:i,type:n})}})}),sp=e=>{const n=Jr();return E.useCallback(()=>{N_.get()||(j_().then(l=>{(l==null?void 0:l.type)==="table"?(Vo(l.id,ma({table:l.id,dataSourceId:l.dsId}),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)):(l==null?void 0:l.type)==="query"&&N0(l.id).then(o=>{Vo(o.name,ma(o.opts),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)})}),dt.event(`On open query search [${e}]`))},[n,e])},D_=()=>{const e=sp("Home");return v.jsxs("button",{className:"mt-2 bg-white p-2 rounded-lg border border-blue-200",onClick:e,children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🍜 DataRamen explorer"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsx("p",{className:"cursor-text mt-2 text-gray-400 bg-gray-50 rounded-lg p-2 w-full text-left border border-gray-100",children:"Search table or saved query to start exploring"})]})},M_=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:"M256 112v288M400 256H112"})),L_="_input_rnca0_2",z_="_content_rnca0_2",U_="_form_rnca0_2",Wt={input:L_,content:z_,form:U_,switch:"_switch_rnca0_2"},B_="_modal_10cm4_2",q_="_modal-visible_10cm4_2",H_="_modal-invisible_10cm4_2",F_="_backdrop_10cm4_2",Q_="_modal-container_10cm4_2",P_="_close-button_10cm4_2",ua={modal:B_,modalVisible:q_,modalInvisible:H_,backdrop:F_,modalContainer:Q_,closeButton:P_},up=()=>{const e=Jr(),{search:n}=vn();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()})}}},Bi=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})=>{const[c,f]=E.useState(!1),h=()=>{n&&l()},d=y=>{i||getComputedStyle(y.currentTarget).opacity==="0"&&(f(!1),o&&o())};return E.useEffect(()=>{i&&f(!0)},[i]),v.jsxs("div",{onTransitionEnd:d,className:Qe(ua.modal,i?ua.modalVisible:ua.modalInvisible),children:[v.jsx("div",{onClick:h,className:ua.backdrop}),v.jsx("div",{className:Qe(ua.modalContainer,s!==!0&&"p-4"),children:c&&e})]})},I_=({children:e,target:n,backdropClose:i})=>{const{search:l}=vn(),{close:o}=up(),s=new URLSearchParams(l),c=n===s.get("modal");return v.jsx(nn,{isVisible:c,backdropClose:i,onClose:o,children:e})},Kn=({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)}},[]),v.jsx("button",{className:ua.closeButton,onClick:e,children:v.jsx(Bi,{width:20,height:20})})},cp=e=>{const[n,i]=E.useState(e),[l,o]=E.useState([]),s=E.useRef(e),c=E.useCallback((d,y)=>{i(g=>({...g,[d]:y}))},[]),f=E.useCallback(d=>y=>{y.target.type==="checkbox"?c(d,y.target.checked):c(d,y.target.value),o(g=>g.includes(d)?g:[...g,d])},[c]),h=E.useCallback(()=>{i(s.current),o([])},[]);return[n,{set:c,change:f,reset:h,touched:l}]},V_=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]})]}),$_=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Schema"}),v.jsx("input",{value:e.dbSchema,onChange:n("dbSchema"),className:"input"})]})]}),ia=[{label:"Postgre",tag:"postgres"},{label:"MySQL",tag:"mysql"}],Y_=({show:e,onClose:n})=>{const i=gA(),l=S0(),o=Jr(),{data:s}=zi(),[c,{change:f,set:h}]=cp({name:"",dbType:"postgres",dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:""}),d=async()=>{const x=await i.mutateAsync({...c,dbPort:Number(c.dbPort),teamId:s.currentTeam.id,ownerId:s.id});await l.mutateAsync(x.id),o(`/data-source/${x.id}`),dt.event("Create Datasource",{dbType:c.dbType})},y=()=>{n(),dt.event("Cancel Datasource")},g=i.isLoading||l.isLoading;return v.jsxs(nn,{isVisible:e,onClose:y,children:[v.jsx(Kn,{onClick:y}),v.jsxs(vr,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",v.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),i.isError&&v.jsx(vr,{variant:"danger",className:"mb-2",children:v.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),i.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Creating connection"}),l.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Inspecting connection"}),v.jsxs("div",{className:Wt.switch,children:[v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[0].tag,onChange:()=>h("dbType",ia[0].tag)}),v.jsx("span",{children:ia[0].label})]}),v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[1].tag,onChange:()=>h("dbType",ia[1].tag)}),v.jsx("span",{children:ia[1].label})]})]}),v.jsx("div",{className:Wt.content,children:v.jsxs("div",{className:Wt.form,children:[v.jsxs("div",{className:Qe(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Name"}),v.jsx("input",{value:c.name,onChange:f("name"),className:"input"})]}),v.jsxs("div",{className:Qe(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Description"}),v.jsx("textarea",{value:c.description,onChange:f("description"),className:"input"})]}),c.dbType==="mysql"&&v.jsx(V_,{form:c,change:f}),c.dbType==="postgres"&&v.jsx($_,{form:c,change:f})]})}),v.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[v.jsx("button",{onClick:y,className:"button tertiary",disabled:g,children:"Cancel"}),v.jsx("button",{onClick:d,className:"button primary",disabled:g,children:"Create"})]})]})},G_=()=>{const{data:e}=zi(),[n,i]=E.useState(!1),l=()=>{i(!0),dt.event("On create new datasource")};return v.jsxs("div",{className:"mt-2 grid",children:[v.jsx(Y_,{show:n,onClose:()=>i(!1)}),v.jsxs("button",{disabled:!e,className:Qe(R0.dataStore,"card-white",!e),onClick:l,children:[v.jsx(M_,{width:28,height:28,className:"text-gray-800"}),v.jsx("p",{className:"font-semibold truncate text-gray-800",children:"Connect new database"})]})]})};function lb(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]/),K_=qi(/[#-'*+\--9=?A-Z^-~]/);function Gu(e){return e!==null&&(e<32||e===127)}const Rh=qi(/\d/),X_=qi(/[\dA-Fa-f]/),Z_=qi(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function ze(e){return e===-2||e===-1||e===32}const yc=qi(new RegExp("\\p{P}|\\p{S}","u")),ml=qi(/\s/);function qi(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function J_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const gc=function(e){if(e==null)return nO;if(typeof e=="function")return vc(e);if(typeof e=="object")return Array.isArray(e)?W_(e):eO(e);if(typeof e=="string")return tO(e);throw new Error("Expected function, string, or object as test")};function W_(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=gc(e[i]);return vc(l);function l(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function eO(e){const n=e;return vc(i);function i(l){const o=l;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function tO(e){return vc(n);function n(i){return i&&i.type===e}}function vc(e){return n;function n(i,l,o){return!!(rO(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function nO(){return!0}function rO(e){return e!==null&&typeof e=="object"&&"type"in e}const j0=[],iO=!0,Nh=!1,lO="skip";function D0(e,n,i,l){let o;typeof n=="function"&&typeof i!="function"?(l=i,i=n):o=n;const s=gc(o),c=l?-1:1;f(e,void 0,[])();function f(h,d,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=j0,S,k,_;if((!n||s(h,d,y[y.length-1]||void 0))&&(b=aO(i(h,y)),b[0]===Nh))return b;if("children"in h&&h.children){const A=h;if(A.children&&b[0]!==lO)for(k=(l?A.children.length:-1)+c,_=y.concat(A);k>-1&&k<A.children.length;){const N=A.children[k];if(S=f(N,k,_)(),S[0]===Nh)return S;k=typeof S[1]=="number"?S[1]:k+c}}return b}}}function aO(e){return Array.isArray(e)?e:typeof e=="number"?[iO,e]:e==null?j0:[e]}function oO(e,n,i){const o=gc((i||{}).ignore||[]),s=sO(n);let c=-1;for(;++c<s.length;)D0(e,"text",f);function f(d,y){let g=-1,x;for(;++g<y.length;){const b=y[g],S=x?x.children:void 0;if(o(b,S?S.indexOf(b):void 0,x))return;x=b}if(x)return h(d,y)}function h(d,y){const g=y[y.length-1],x=s[c][0],b=s[c][1];let S=0;const _=g.children.indexOf(d);let A=!1,N=[];x.lastIndex=0;let O=x.exec(d.value);for(;O;){const L=O.index,q={index:O.index,input:O.input,stack:[...y,d]};let M=b(...O,q);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?x.lastIndex=L+1:(S!==L&&N.push({type:"text",value:d.value.slice(S,L)}),Array.isArray(M)?N.push(...M):M&&N.push(M),S=L+O[0].length,A=!0),!x.global)break;O=x.exec(d.value)}return A?(S<d.value.length&&N.push({type:"text",value:d.value.slice(S)}),g.children.splice(_,1,...N)):N=[d],_+N.length}}function sO(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([uO(o[0]),cO(o[1])])}return n}function uO(e){return typeof e=="string"?new RegExp(J_(e),"g"):e}function cO(e){return typeof e=="function"?e:function(){return e}}const Pd="phrasing",Id=["autolink","link","image","label"];function fO(){return{transforms:[vO],enter:{literalAutolink:hO,literalAutolinkEmail:Vd,literalAutolinkHttp:Vd,literalAutolinkWww:Vd},exit:{literalAutolink:gO,literalAutolinkEmail:yO,literalAutolinkHttp:pO,literalAutolinkWww:mO}}}function dO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:":",before:"[ps]",after:"\\/",inConstruct:Pd,notInConstruct:Id}]}}function hO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vd(e){this.config.enter.autolinkProtocol.call(this,e)}function pO(e){this.config.exit.autolinkProtocol.call(this,e)}function mO(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 yO(e){this.config.exit.autolinkEmail.call(this,e)}function gO(e){this.exit(e)}function vO(e){oO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xO]],{ignore:["link","linkReference"]})}function bO(e,n,i,l,o){let s="";if(!M0(o)||(/^w/i.test(n)&&(i=n+i,n="",s="http://"),!SO(i)))return!1;const c=wO(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 xO(e,n,i,l){return!M0(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function SO(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 wO(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=lb(e,"(");let s=lb(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 M0(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||ml(i)||yc(i))&&(!n||i!==47)}function tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}L0.peek=NO;function CO(){this.buffer()}function EO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TO(){this.buffer()}function kO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function AO(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function _O(e){this.exit(e)}function OO(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function RO(e){this.exit(e)}function NO(){return"["}function L0(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 jO(){return{enter:{gfmFootnoteCallString:CO,gfmFootnoteCall:EO,gfmFootnoteDefinitionLabelString:TO,gfmFootnoteDefinition:kO},exit:{gfmFootnoteCallString:AO,gfmFootnoteCall:_O,gfmFootnoteDefinitionLabelString:OO,gfmFootnoteDefinition:RO}}}function DO(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:L0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),y=s.enter("label");return h+=f.move(s.safe(s.associationId(l),{before:h,after:"]"})),y(),h+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),h+=f.move((n?`
233
+ `:" ")+s.indentLines(s.containerFlow(l,f.current()),n?z0:MO))),d(),h}}function MO(e,n,i){return n===0?e:z0(e,n,i)}function z0(e,n,i){return(i?"":" ")+e}const LO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];U0.peek=HO;function zO(){return{canContainEols:["delete"],enter:{strikethrough:BO},exit:{strikethrough:qO}}}function UO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:LO}],handlers:{delete:U0}}}function BO(e){this.enter({type:"delete",children:[]},e)}function qO(e){this.exit(e)}function U0(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 HO(){return"~"}function FO(e){return e.length}function QO(e,n){const i=n||{},l=(i.align||[]).concat(),o=i.stringLength||FO,s=[],c=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const k=[],_=[];let A=-1;for(e[y].length>d&&(d=e[y].length);++A<e[y].length;){const N=PO(e[y][A]);if(i.alignDelimiters!==!1){const O=o(N);_[A]=O,(h[A]===void 0||O>h[A])&&(h[A]=O)}k.push(N)}c[y]=k,f[y]=_}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<d;)s[g]=ab(l[g]);else{const k=ab(l);for(;++g<d;)s[g]=k}g=-1;const x=[],b=[];for(;++g<d;){const k=s[g];let _="",A="";k===99?(_=":",A=":"):k===108?_=":":k===114&&(A=":");let N=i.alignDelimiters===!1?1:Math.max(1,h[g]-_.length-A.length);const O=_+"-".repeat(N)+A;i.alignDelimiters!==!1&&(N=_.length+N+A.length,N>h[g]&&(h[g]=N),b[g]=N),x[g]=O}c.splice(1,0,x),f.splice(1,0,b),y=-1;const S=[];for(;++y<c.length;){const k=c[y],_=f[y];g=-1;const A=[];for(;++g<d;){const N=k[g]||"";let O="",L="";if(i.alignDelimiters!==!1){const q=h[g]-(_[g]||0),M=s[g];M===114?O=" ".repeat(q):M===99?q%2?(O=" ".repeat(q/2+.5),L=" ".repeat(q/2-.5)):(O=" ".repeat(q/2),L=O):L=" ".repeat(q)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(O),A.push(N),i.alignDelimiters!==!1&&A.push(L),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==d-1)&&A.push("|")}S.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return S.join(`
234
+ `)}function PO(e){return e==null?"":String(e)}function ab(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 IO(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()),VO);return o(),c}function VO(e,n,i){return">"+(i?"":" ")+e}function $O(e,n){return ob(e,n.inConstruct,!0)&&!ob(e,n.notInConstruct,!1)}function ob(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 sb(e,n,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
235
+ `&&$O(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
236
+ `}function YO(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 GO(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 KO(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 XO(e,n,i,l){const o=KO(i),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(GO(e,i)){const g=i.enter("codeIndented"),x=i.indentLines(s,ZO);return g(),x}const f=i.createTracker(l),h=o.repeat(Math.max(YO(s,o)+1,3)),d=i.enter("codeFenced");let y=f.move(h);if(e.lang){const g=i.enter(`codeFencedLang${c}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
237
237
  `,encode:["`"],...f.current()})),g()}return y+=f.move(`
238
238
  `),s&&(y+=f.move(s+`
239
- `)),y+=f.move(h),d(),y}function XO(e,n,i){return(i?"":" ")+e}function fp(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 ZO(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("[");return d+=h.move(i.safe(i.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":`
240
- `,...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),c(),d}function JO(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 $o(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ya(e){if(e===null||nt(e)||ml(e))return 1;if(yc(e))return 2}function Ku(e,n,i){const l=ya(e),o=ya(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}}U0.peek=WO;function U0(e,n,i,l){const o=JO(i),s=i.enter("emphasis"),c=i.createTracker(l),f=c.move(o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Ku(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Ku(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function WO(e,n,i){return i.options.emphasis||"*"}function dp(e,n,i,l){let o,s,c;typeof n=="function"?(s=void 0,c=n,o=i):(s=n,c=i,o=l),j0(e,s,f,o);function f(h,d){const y=d[d.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const eR={};function hp(e,n){const i=eR,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return B0(e,l,o)}function B0(e,n,i){if(tR(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 ub(e.children,n,i)}return Array.isArray(e)?ub(e,n,i):""}function ub(e,n,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=B0(e[o],n,i);return l.join("")}function tR(e){return!!(e&&typeof e=="object")}function nR(e,n){let i=!1;return dp(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Nh}),!!((!e.depth||e.depth<3)&&hp(e)&&(n.options.setext||i))}function rR(e,n,i,l){const o=Math.max(Math.min(6,e.depth||1),1),s=i.createTracker(l);if(nR(e,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),x=i.containerPhrasing(e,{...s.current(),before:`
239
+ `)),y+=f.move(h),d(),y}function ZO(e,n,i){return(i?"":" ")+e}function fp(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 JO(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("[");return d+=h.move(i.safe(i.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":`
240
+ `,...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),c(),d}function WO(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 $o(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ya(e){if(e===null||nt(e)||ml(e))return 1;if(yc(e))return 2}function Ku(e,n,i){const l=ya(e),o=ya(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}}B0.peek=eR;function B0(e,n,i,l){const o=WO(i),s=i.enter("emphasis"),c=i.createTracker(l),f=c.move(o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Ku(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Ku(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function eR(e,n,i){return i.options.emphasis||"*"}function dp(e,n,i,l){let o,s,c;typeof n=="function"?(s=void 0,c=n,o=i):(s=n,c=i,o=l),D0(e,s,f,o);function f(h,d){const y=d[d.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const tR={};function hp(e,n){const i=tR,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return q0(e,l,o)}function q0(e,n,i){if(nR(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 ub(e.children,n,i)}return Array.isArray(e)?ub(e,n,i):""}function ub(e,n,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=q0(e[o],n,i);return l.join("")}function nR(e){return!!(e&&typeof e=="object")}function rR(e,n){let i=!1;return dp(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Nh}),!!((!e.depth||e.depth<3)&&hp(e)&&(n.options.setext||i))}function iR(e,n,i,l){const o=Math.max(Math.min(6,e.depth||1),1),s=i.createTracker(l);if(rR(e,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),x=i.containerPhrasing(e,{...s.current(),before:`
241
241
  `,after:`
242
242
  `});return g(),y(),x+`
243
243
  `+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
244
244
  `))+1))}const c="#".repeat(o),f=i.enter("headingAtx"),h=i.enter("phrasing");s.move(c+" ");let d=i.containerPhrasing(e,{before:"# ",after:`
245
- `,...s.current()});return/^[\t ]/.test(d)&&(d=$o(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,i.options.closeAtx&&(d+=" "+c),h(),f(),d}q0.peek=iR;function q0(e){return e.value||""}function iR(){return"<"}H0.peek=lR;function H0(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("![");return d+=h.move(i.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),d+=h.move(")"),c(),d}function lR(){return"!"}F0.peek=aR;function F0(e,n,i,l){const o=e.referenceType,s=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("![");const d=i.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function aR(){return"!"}Q0.peek=oR;function Q0(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 h;if(c.atBreak)for(;h=f.exec(l);){let d=h.index;l.charCodeAt(d)===10&&l.charCodeAt(d-1)===13&&d--,l=l.slice(0,d)+" "+l.slice(h.index+1)}}return o+l+o}function oR(){return"`"}function P0(e,n){const i=hp(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))}I0.peek=sR;function I0(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,h;if(P0(e,i)){const y=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=y,g}f=i.enter("link"),h=i.enter("label");let d=c.move("[");return d+=c.move(i.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(i.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=i.enter("destinationRaw"),d+=c.move(i.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${s}`),d+=c.move(" "+o),d+=c.move(i.safe(e.title,{before:d,after:o,...c.current()})),d+=c.move(o),h()),d+=c.move(")"),f(),d}function sR(e,n,i){return P0(e,i)?"<":"["}V0.peek=uR;function V0(e,n,i,l){const o=e.referenceType,s=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("[");const d=i.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function uR(){return"["}function pp(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 cR(e){const n=pp(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 fR(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 $0(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 dR(e,n,i,l){const o=i.enter("list"),s=i.bulletCurrent;let c=e.ordered?fR(i):pp(i);const f=e.ordered?c==="."?")":".":cR(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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&&(h=!0),$0(i)===c&&y){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"){h=!0;break}}}}h&&(c=f),i.bulletCurrent=c;const d=i.containerFlow(e,l);return i.bulletLastUsed=c,i.bulletCurrent=s,o(),d}function hR(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 pR(e,n,i,l){const o=hR(i);let s=i.bulletCurrent||pp(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 h=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),y);return h(),d;function y(g,x,b){return x?(b?"":" ".repeat(c))+g:(b?s:s+" ".repeat(c-s.length))+g}}function mR(e,n,i,l){const o=i.enter("paragraph"),s=i.enter("phrasing"),c=i.containerPhrasing(e,l);return s(),o(),c}const yR=gc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gR(e,n,i,l){return(e.children.some(function(c){return yR(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function vR(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Y0.peek=bR;function Y0(e,n,i,l){const o=vR(i),s=i.enter("strong"),c=i.createTracker(l),f=c.move(o+o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Ku(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Ku(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o+o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function bR(e,n,i){return i.options.strong||"*"}function xR(e,n,i,l){return i.safe(e.value,l)}function SR(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 wR(e,n,i){const l=($0(i)+(i.options.ruleSpaces?" ":"")).repeat(SR(i));return i.options.ruleSpaces?l.slice(0,-1):l}const G0={blockquote:PO,break:sb,code:KO,definition:ZO,emphasis:U0,hardBreak:sb,heading:rR,html:q0,image:H0,imageReference:F0,inlineCode:Q0,link:I0,linkReference:V0,list:dR,listItem:pR,paragraph:mR,root:gR,strong:Y0,text:xR,thematicBreak:wR},cb=document.createElement("i");function mp(e){const n="&"+e+";";cb.innerHTML=n;const i=cb.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function K0(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 CR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ER(e){return e.replace(CR,TR)}function TR(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),s=o===120||o===88;return K0(i.slice(s?2:1),s?16:10)}return mp(i)||e}function kR(){return{enter:{table:AR,tableData:fb,tableHeader:fb,tableRow:OR},exit:{codeText:RR,table:_R,tableData:$d,tableHeader:$d,tableRow:$d}}}function AR(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 _R(e){this.exit(e),this.data.inTable=void 0}function OR(e){this.enter({type:"tableRow",children:[]},e)}function $d(e){this.exit(e)}function fb(e){this.enter({type:"tableCell",children:[]},e)}function RR(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,NR));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function NR(e,n){return n==="|"?n:e}function jR(e){const n=e||{},i=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,s=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
245
+ `,...s.current()});return/^[\t ]/.test(d)&&(d=$o(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,i.options.closeAtx&&(d+=" "+c),h(),f(),d}H0.peek=lR;function H0(e){return e.value||""}function lR(){return"<"}F0.peek=aR;function F0(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("![");return d+=h.move(i.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),d+=h.move(")"),c(),d}function aR(){return"!"}Q0.peek=oR;function Q0(e,n,i,l){const o=e.referenceType,s=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("![");const d=i.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function oR(){return"!"}P0.peek=sR;function P0(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 h;if(c.atBreak)for(;h=f.exec(l);){let d=h.index;l.charCodeAt(d)===10&&l.charCodeAt(d-1)===13&&d--,l=l.slice(0,d)+" "+l.slice(h.index+1)}}return o+l+o}function sR(){return"`"}function I0(e,n){const i=hp(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))}V0.peek=uR;function V0(e,n,i,l){const o=fp(i),s=o==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,h;if(I0(e,i)){const y=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=y,g}f=i.enter("link"),h=i.enter("label");let d=c.move("[");return d+=c.move(i.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(i.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=i.enter("destinationRaw"),d+=c.move(i.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${s}`),d+=c.move(" "+o),d+=c.move(i.safe(e.title,{before:d,after:o,...c.current()})),d+=c.move(o),h()),d+=c.move(")"),f(),d}function uR(e,n,i){return I0(e,i)?"<":"["}$0.peek=cR;function $0(e,n,i,l){const o=e.referenceType,s=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("[");const d=i.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function cR(){return"["}function pp(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 fR(e){const n=pp(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 dR(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 Y0(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 hR(e,n,i,l){const o=i.enter("list"),s=i.bulletCurrent;let c=e.ordered?dR(i):pp(i);const f=e.ordered?c==="."?")":".":fR(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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&&(h=!0),Y0(i)===c&&y){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"){h=!0;break}}}}h&&(c=f),i.bulletCurrent=c;const d=i.containerFlow(e,l);return i.bulletLastUsed=c,i.bulletCurrent=s,o(),d}function pR(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 mR(e,n,i,l){const o=pR(i);let s=i.bulletCurrent||pp(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 h=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),y);return h(),d;function y(g,x,b){return x?(b?"":" ".repeat(c))+g:(b?s:s+" ".repeat(c-s.length))+g}}function yR(e,n,i,l){const o=i.enter("paragraph"),s=i.enter("phrasing"),c=i.containerPhrasing(e,l);return s(),o(),c}const gR=gc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vR(e,n,i,l){return(e.children.some(function(c){return gR(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function bR(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}G0.peek=xR;function G0(e,n,i,l){const o=bR(i),s=i.enter("strong"),c=i.createTracker(l),f=c.move(o+o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Ku(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Ku(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o+o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function xR(e,n,i){return i.options.strong||"*"}function SR(e,n,i,l){return i.safe(e.value,l)}function wR(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 CR(e,n,i){const l=(Y0(i)+(i.options.ruleSpaces?" ":"")).repeat(wR(i));return i.options.ruleSpaces?l.slice(0,-1):l}const K0={blockquote:IO,break:sb,code:XO,definition:JO,emphasis:B0,hardBreak:sb,heading:iR,html:H0,image:F0,imageReference:Q0,inlineCode:P0,link:V0,linkReference:$0,list:hR,listItem:mR,paragraph:yR,root:vR,strong:G0,text:SR,thematicBreak:CR},cb=document.createElement("i");function mp(e){const n="&"+e+";";cb.innerHTML=n;const i=cb.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function X0(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 ER=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function TR(e){return e.replace(ER,kR)}function kR(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),s=o===120||o===88;return X0(i.slice(s?2:1),s?16:10)}return mp(i)||e}function AR(){return{enter:{table:_R,tableData:fb,tableHeader:fb,tableRow:RR},exit:{codeText:NR,table:OR,tableData:$d,tableHeader:$d,tableRow:$d}}}function _R(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 OR(e){this.exit(e),this.data.inTable=void 0}function RR(e){this.enter({type:"tableRow",children:[]},e)}function $d(e){this.exit(e)}function fb(e){this.enter({type:"tableCell",children:[]},e)}function NR(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,jR));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function jR(e,n){return n==="|"?n:e}function DR(e){const n=e||{},i=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,s=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
246
246
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:h,tableRow:f}};function c(b,S,k,_){return d(y(b,k,_),b.align)}function f(b,S,k,_){const A=g(b,k,_),N=d([A]);return N.slice(0,N.indexOf(`
247
- `))}function h(b,S,k,_){const A=k.enter("tableCell"),N=k.enter("phrasing"),O=k.containerPhrasing(b,{..._,before:s,after:s});return N(),A(),O}function d(b,S){return FO(b,{align:S,alignDelimiters:l,padding:i,stringLength:o})}function y(b,S,k){const _=b.children;let A=-1;const N=[],O=S.enter("table");for(;++A<_.length;)N[A]=g(_[A],S,k);return O(),N}function g(b,S,k){const _=b.children;let A=-1;const N=[],O=S.enter("tableRow");for(;++A<_.length;)N[A]=h(_[A],b,S,k);return O(),N}function x(b,S,k){let _=G0.inlineCode(b,S,k);return k.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function DR(){return{exit:{taskListCheckValueChecked:db,taskListCheckValueUnchecked:db,paragraph:LR}}}function MR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zR}}}function db(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function LR(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 zR(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 h=G0.listItem(e,n,i,{...l,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+c}}function UR(){return[cO(),NO(),LO(),kR(),DR()]}function BR(e){return{extensions:[fO(),jO(e),zO(),jR(e),MR()]}}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 hb={}.hasOwnProperty;function X0(e){const n={};let i=-1;for(;++i<e.length;)qR(n,e[i]);return n}function qR(e,n){let i;for(i in n){const o=(hb.call(e,i)?e[i]:void 0)||(e[i]={}),s=n[i];let c;if(s)for(c in s){hb.call(o,c)||(o[c]=[]);const f=s[c];HR(o[c],Array.isArray(f)?f:f?[f]:[])}}}function HR(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 FR={tokenize:YR,partial:!0},Z0={tokenize:GR,partial:!0},J0={tokenize:KR,partial:!0},W0={tokenize:XR,partial:!0},QR={tokenize:ZR,partial:!0},e1={name:"wwwAutolink",tokenize:VR,previous:n1},t1={name:"protocolAutolink",tokenize:$R,previous:r1},ei={name:"emailAutolink",tokenize:IR,previous:i1},Tr={};function PR(){return{text:Tr}}let al=48;for(;al<123;)Tr[al]=ei,al++,al===58?al=65:al===91&&(al=97);Tr[43]=ei;Tr[45]=ei;Tr[46]=ei;Tr[95]=ei;Tr[72]=[ei,t1];Tr[104]=[ei,t1];Tr[87]=[ei,e1];Tr[119]=[ei,e1];function IR(e,n,i){const l=this;let o,s;return c;function c(g){return!jh(g)||!i1.call(l,l.previous)||yp(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return jh(g)?(e.consume(g),f):g===64?(e.consume(g),h):i(g)}function h(g){return g===46?e.check(QR,y,d)(g):g===45||g===95||tn(g)?(s=!0,e.consume(g),h):y(g)}function d(g){return e.consume(g),o=!0,h}function y(g){return s&&o&&sn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):i(g)}}function VR(e,n,i){const l=this;return o;function o(c){return c!==87&&c!==119||!n1.call(l,l.previous)||yp(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(FR,e.attempt(Z0,e.attempt(J0,s),i),i)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function $R(e,n,i){const l=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&r1.call(l,l.previous)&&!yp(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),h}return i(g)}function h(g){return g===47?(e.consume(g),s?d:(s=!0,h)):i(g)}function d(g){return g===null||Gu(g)||nt(g)||ml(g)||yc(g)?i(g):e.attempt(Z0,e.attempt(J0,y),i)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function YR(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 GR(e,n,i){let l,o,s;return c;function c(d){return d===46||d===95?e.check(W0,h,f)(d):d===null||nt(d)||ml(d)||d!==45&&yc(d)?h(d):(s=!0,e.consume(d),c)}function f(d){return d===95?l=!0:(o=l,l=void 0),e.consume(d),c}function h(d){return o||l||!s?i(d):n(d)}}function KR(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(W0,n,s)(c):c===null||nt(c)||ml(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&l++,e.consume(c),o}}function XR(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||nt(f)||ml(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||nt(f)||ml(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 ZR(e,n,i){return l;function l(s){return e.consume(s),o}function o(s){return tn(s)?i(s):n(s)}}function n1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function r1(e){return!sn(e)}function i1(e){return!(e===47||jh(e))}function jh(e){return e===43||e===45||e===46||e===95||tn(e)}function yp(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 _a(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 bc(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 Dh={name:"attention",resolveAll:JR,tokenize:WR};function JR(e,n){let i=-1,l,o,s,c,f,h,d,y;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;h=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};pb(g,-h),pb(x,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},s={type:h>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[l][1].end={...c.start},e[i][1].start={...f.end},d=[],e[l][1].end.offset-e[l][1].start.offset&&(d=Yn(d,[["enter",e[l][1],n],["exit",e[l][1],n]])),d=Yn(d,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=Yn(d,bc(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),d=Yn(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,d=Yn(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):y=0,Nn(e,l-1,i-l+3,d),i=l+d.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function WR(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ya(l);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),y=ya(h),g=!y||y===2&&o||i.includes(h),x=!o||o===2&&y||i.includes(l);return d._open=!!(s===42?g:g&&(o||!x)),d._close=!!(s===42?x:x&&(y||!g)),n(h)}}function pb(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const eN={name:"autolink",tokenize:tN};function tN(e,n,i){let l=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return sn(b)?(e.consume(b),c):b===64?i(b):d(b)}function c(b){return b===43||b===45||b===46||tn(b)?(l=1,f(b)):d(b)}function f(b){return b===58?(e.consume(b),l=0,h):(b===43||b===45||b===46||tn(b))&&l++<32?(e.consume(b),f):(l=0,d(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||Gu(b)?i(b):(e.consume(b),h)}function d(b){return b===64?(e.consume(b),y):G_(b)?(e.consume(b),d):i(b)}function y(b){return tn(b)?g(b):i(b)}function g(b){return b===46?(e.consume(b),l=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):x(b)}function x(b){if((b===45||tn(b))&&l++<63){const S=b===45?x:g;return e.consume(b),S}return i(b)}}function Fe(e,n,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return ze(h)?(e.enter(i),f(h)):n(h)}function f(h){return ze(h)&&s++<o?(e.consume(h),f):(e.exit(i),n(h))}}const rs={partial:!0,tokenize:nN};function nN(e,n,i){return l;function l(s){return ze(s)?Fe(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||xe(s)?n(s):i(s)}}const l1={continuation:{tokenize:iN},exit:lN,name:"blockQuote",tokenize:rN};function rN(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 ze(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function iN(e,n,i){const l=this;return o;function o(c){return ze(c)?Fe(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(l1,n,i)(c)}}function lN(e){e.exit("blockQuote")}const a1={name:"characterEscape",tokenize:aN};function aN(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 X_(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(s)}}const o1={name:"characterReference",tokenize:oN};function oN(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"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,c=tn,y(g))}function d(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=K_,y):(e.enter("characterReferenceValue"),s=7,c=Rh,y(g))}function y(g){if(g===59&&o){const x=e.exit("characterReferenceValue");return c===tn&&!mp(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),y):i(g)}}const mb={partial:!0,tokenize:uN},yb={concrete:!0,name:"codeFenced",tokenize:sN};function sN(e,n,i){const l=this,o={partial:!0,tokenize:q};let s=0,c=0,f;return h;function h(M){return d(M)}function d(M){const Y=l.events[l.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,f=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===f?(c++,e.consume(M),y):c<3?i(M):(e.exit("codeFencedFenceSequence"),ze(M)?Fe(e,g,"whitespace")(M):g(M))}function g(M){return M===null||xe(M)?(e.exit("codeFencedFence"),l.interrupt?n(M):e.check(mb,k,L)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):ze(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fe(e,b,"whitespace")(M)):M===96&&M===f?i(M):(e.consume(M),x)}function b(M){return M===null||xe(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===f?i(M):(e.consume(M),S)}function k(M){return e.attempt(o,L,_)(M)}function _(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return s>0&&ze(M)?Fe(e,N,"linePrefix",s+1)(M):N(M)}function N(M){return M===null||xe(M)?e.check(mb,k,L)(M):(e.enter("codeFlowValue"),O(M))}function O(M){return M===null||xe(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),O)}function L(M){return e.exit("codeFenced"),n(M)}function q(M,Y,ee){let ie=0;return z;function z(se){return M.enter("lineEnding"),M.consume(se),M.exit("lineEnding"),ae}function ae(se){return M.enter("codeFencedFence"),ze(se)?Fe(M,te,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):te(se)}function te(se){return se===f?(M.enter("codeFencedFenceSequence"),ue(se)):ee(se)}function ue(se){return se===f?(ie++,M.consume(se),ue):ie>=c?(M.exit("codeFencedFenceSequence"),ze(se)?Fe(M,J,"whitespace")(se):J(se)):ee(se)}function J(se){return se===null||xe(se)?(M.exit("codeFencedFence"),Y(se)):ee(se)}}}function uN(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 Yd={name:"codeIndented",tokenize:fN},cN={partial:!0,tokenize:dN};function fN(e,n,i){const l=this;return o;function o(d){return e.enter("codeIndented"),Fe(e,s,"linePrefix",5)(d)}function s(d){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):xe(d)?e.attempt(cN,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||xe(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function dN(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):Fe(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 hN={name:"codeText",previous:mN,resolve:pN,tokenize:yN};function pN(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 mN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yN(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"),h(g))}function h(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(s=e.enter("codeTextSequence"),o=0,y(g)):xe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||xe(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),d)}function y(g){return g===96?(e.consume(g),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",d(g))}}class gN{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&&jo(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),jo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),jo(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);jo(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);jo(this.left,i.reverse())}}}function jo(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 s1(e){const n={};let i=-1,l,o,s,c,f,h,d;const y=new gN(e);for(;++i<y.length;){for(;i in n;)i=n[i];if(l=y.get(i),i&&l[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(h=l[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,vN(y,i)),i=n[i],d=!0);else if(l[1]._container){for(s=i,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.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={...y.get(o)[1].start},f=y.slice(o,i),f.unshift(l),y.splice(o,i-o+1,f))}}return Nn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function vN(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,h=[],d={};let y,g,x=-1,b=i,S=0,k=0;const _=[k];for(;b;){for(;e.get(++o)[1]!==b;);s.push(o),b._tokenizer||(y=l.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=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&&(k=x+1,_.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):_.pop(),x=_.length;x--;){const A=f.slice(_[x],_[x+1]),N=s.pop();h.push([N,N+A.length-1]),e.splice(N,2,A)}for(h.reverse(),x=-1;++x<h.length;)d[S+h[x][0]]=S+h[x][1],S+=h[x][1]-h[x][0]-1;return d}const bN={resolve:SN,tokenize:wN},xN={partial:!0,tokenize:CN};function SN(e){return s1(e),e}function wN(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(xN,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 CN(e,n,i){const l=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Fe(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 u1(e,n,i,l,o,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let y=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||Gu(A)?i(A):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(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"}),b(A))}function b(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?S:b)}function S(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function k(A){return!y&&(A===null||A===41||nt(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(A)):y<d&&A===40?(e.consume(A),y++,k):A===41?(e.consume(A),y--,k):A===null||A===32||A===40||Gu(A)?i(A):(e.consume(A),A===92?_:k)}function _(A){return A===40||A===41||A===92?(e.consume(A),k):k(A)}}function c1(e,n,i,l,o,s){const c=this;let f=0,h;return d;function d(b){return e.enter(l),e.enter(o),e.consume(b),e.exit(o),e.enter(s),y}function y(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(s),e.enter(o),e.consume(b),e.exit(o),e.exit(l),n):xe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||xe(b)||f++>999?(e.exit("chunkString"),y(b)):(e.consume(b),h||(h=!ze(b)),b===92?x:g)}function x(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function f1(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,h):i(x)}function h(x){return x===c?(e.enter(o),e.consume(x),e.exit(o),e.exit(l),n):(e.enter(s),d(x))}function d(x){return x===c?(e.exit(s),h(c)):x===null?i(x):xe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Fe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||xe(x)?(e.exit("chunkString"),d(x)):(e.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(e.consume(x),y):y(x)}}function qo(e,n){let i;return l;function l(o){return xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):ze(o)?Fe(e,l,i?"linePrefix":"lineSuffix")(o):n(o)}}const EN={name:"definition",tokenize:kN},TN={partial:!0,tokenize:AN};function kN(e,n,i){const l=this;let o;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return c1.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):i(b)}function h(b){return nt(b)?qo(e,d)(b):d(b)}function d(b){return u1(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(TN,g,g)(b)}function g(b){return ze(b)?Fe(e,x,"whitespace")(b):x(b)}function x(b){return b===null||xe(b)?(e.exit("definition"),l.parser.defined.push(o),n(b)):i(b)}}function AN(e,n,i){return l;function l(f){return nt(f)?qo(e,o)(f):i(f)}function o(f){return f1(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return ze(f)?Fe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||xe(f)?n(f):i(f)}}const _N={name:"hardBreakEscape",tokenize:ON};function ON(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 RN={name:"headingAtx",resolve:NN,tokenize:jN};function NN(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 jN(e,n,i){let l=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&l++<6?(e.consume(y),c):y===null||nt(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||xe(y)?(e.exit("atxHeading"),n(y)):ze(y)?Fe(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||nt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const DN=["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"],gb=["pre","script","style","textarea"],MN={concrete:!0,name:"htmlFlow",resolveTo:UN,tokenize:BN},LN={partial:!0,tokenize:HN},zN={partial:!0,tokenize:qN};function UN(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 BN(e,n,i){const l=this;let o,s,c,f,h;return d;function d(R){return y(R)}function y(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),g}function g(R){return R===33?(e.consume(R),x):R===47?(e.consume(R),s=!0,k):R===63?(e.consume(R),o=3,l.interrupt?n:C):sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function x(R){return R===45?(e.consume(R),o=2,b):R===91?(e.consume(R),o=5,f=0,S):sn(R)?(e.consume(R),o=4,l.interrupt?n:C):i(R)}function b(R){return R===45?(e.consume(R),l.interrupt?n:C):i(R)}function S(R){const fe="CDATA[";return R===fe.charCodeAt(f++)?(e.consume(R),f===fe.length?l.interrupt?n:te:S):i(R)}function k(R){return sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function _(R){if(R===null||R===47||R===62||nt(R)){const fe=R===47,Te=c.toLowerCase();return!fe&&!s&&gb.includes(Te)?(o=1,l.interrupt?n(R):te(R)):DN.includes(c.toLowerCase())?(o=6,fe?(e.consume(R),A):l.interrupt?n(R):te(R)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(R):s?N(R):O(R))}return R===45||tn(R)?(e.consume(R),c+=String.fromCharCode(R),_):i(R)}function A(R){return R===62?(e.consume(R),l.interrupt?n:te):i(R)}function N(R){return ze(R)?(e.consume(R),N):z(R)}function O(R){return R===47?(e.consume(R),z):R===58||R===95||sn(R)?(e.consume(R),L):ze(R)?(e.consume(R),O):z(R)}function L(R){return R===45||R===46||R===58||R===95||tn(R)?(e.consume(R),L):q(R)}function q(R){return R===61?(e.consume(R),M):ze(R)?(e.consume(R),q):O(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?i(R):R===34||R===39?(e.consume(R),h=R,Y):ze(R)?(e.consume(R),M):ee(R)}function Y(R){return R===h?(e.consume(R),h=null,ie):R===null||xe(R)?i(R):(e.consume(R),Y)}function ee(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||nt(R)?q(R):(e.consume(R),ee)}function ie(R){return R===47||R===62||ze(R)?O(R):i(R)}function z(R){return R===62?(e.consume(R),ae):i(R)}function ae(R){return R===null||xe(R)?te(R):ze(R)?(e.consume(R),ae):i(R)}function te(R){return R===45&&o===2?(e.consume(R),B):R===60&&o===1?(e.consume(R),X):R===62&&o===4?(e.consume(R),I):R===63&&o===3?(e.consume(R),C):R===93&&o===5?(e.consume(R),pe):xe(R)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(LN,oe,ue)(R)):R===null||xe(R)?(e.exit("htmlFlowData"),ue(R)):(e.consume(R),te)}function ue(R){return e.check(zN,J,oe)(R)}function J(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),se}function se(R){return R===null||xe(R)?ue(R):(e.enter("htmlFlowData"),te(R))}function B(R){return R===45?(e.consume(R),C):te(R)}function X(R){return R===47?(e.consume(R),c="",ne):te(R)}function ne(R){if(R===62){const fe=c.toLowerCase();return gb.includes(fe)?(e.consume(R),I):te(R)}return sn(R)&&c.length<8?(e.consume(R),c+=String.fromCharCode(R),ne):te(R)}function pe(R){return R===93?(e.consume(R),C):te(R)}function C(R){return R===62?(e.consume(R),I):R===45&&o===2?(e.consume(R),C):te(R)}function I(R){return R===null||xe(R)?(e.exit("htmlFlowData"),oe(R)):(e.consume(R),I)}function oe(R){return e.exit("htmlFlow"),n(R)}}function qN(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 HN(e,n,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(rs,n,i)}}const FN={name:"htmlText",tokenize:QN};function QN(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),h}function h(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),q):C===63?(e.consume(C),O):sn(C)?(e.consume(C),ee):i(C)}function d(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),s=0,S):sn(C)?(e.consume(C),N):i(C)}function y(C){return C===45?(e.consume(C),b):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),b):g(C)}function b(C){return C===62?B(C):C===45?x(C):g(C)}function S(C){const I="CDATA[";return C===I.charCodeAt(s++)?(e.consume(C),s===I.length?k:S):i(C)}function k(C){return C===null?i(C):C===93?(e.consume(C),_):xe(C)?(c=k,X(C)):(e.consume(C),k)}function _(C){return C===93?(e.consume(C),A):k(C)}function A(C){return C===62?B(C):C===93?(e.consume(C),A):k(C)}function N(C){return C===null||C===62?B(C):xe(C)?(c=N,X(C)):(e.consume(C),N)}function O(C){return C===null?i(C):C===63?(e.consume(C),L):xe(C)?(c=O,X(C)):(e.consume(C),O)}function L(C){return C===62?B(C):O(C)}function q(C){return sn(C)?(e.consume(C),M):i(C)}function M(C){return C===45||tn(C)?(e.consume(C),M):Y(C)}function Y(C){return xe(C)?(c=Y,X(C)):ze(C)?(e.consume(C),Y):B(C)}function ee(C){return C===45||tn(C)?(e.consume(C),ee):C===47||C===62||nt(C)?ie(C):i(C)}function ie(C){return C===47?(e.consume(C),B):C===58||C===95||sn(C)?(e.consume(C),z):xe(C)?(c=ie,X(C)):ze(C)?(e.consume(C),ie):B(C)}function z(C){return C===45||C===46||C===58||C===95||tn(C)?(e.consume(C),z):ae(C)}function ae(C){return C===61?(e.consume(C),te):xe(C)?(c=ae,X(C)):ze(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)):ze(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||nt(C)?ie(C):(e.consume(C),J)}function se(C){return C===47||C===62||nt(C)?ie(C):i(C)}function B(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 ze(C)?Fe(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 gp={name:"labelEnd",resolveAll:$N,resolveTo:YN,tokenize:GN},PN={tokenize:KN},IN={tokenize:XN},VN={tokenize:ZN};function $N(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 YN(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 h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[s+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",d,n]],f=Yn(f,e.slice(s+1,s+l+3)),f=Yn(f,[["enter",y,n]]),f=Yn(f,bc(n.parser.constructs.insideSpan.null,e.slice(s+l+4,c-3),n)),f=Yn(f,[["exit",y,n],e[c-2],e[c-1],["exit",d,n]]),f=Yn(f,e.slice(c+1)),f=Yn(f,[["exit",h,n]]),Nn(e,s,e.length,f),e}function GN(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(tr(l.sliceSerialize({start:s.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),h):i(x)}function h(x){return x===40?e.attempt(PN,y,c?y:g)(x):x===91?e.attempt(IN,y,c?d:g)(x):c?y(x):g(x)}function d(x){return e.attempt(VN,y,g)(x)}function y(x){return n(x)}function g(x){return s._balanced=!0,i(x)}}function KN(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 nt(g)?qo(e,s)(g):s(g)}function s(g){return g===41?y(g):u1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return nt(g)?qo(e,h)(g):y(g)}function f(g){return i(g)}function h(g){return g===34||g===39||g===40?f1(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function d(g){return nt(g)?qo(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):i(g)}}function XN(e,n,i){const l=this;return o;function o(f){return c1.call(l,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return l.parser.defined.includes(tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function ZN(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 JN={name:"labelStartImage",resolveAll:gp.resolveAll,tokenize:WN};function WN(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 e2={name:"labelStartLink",resolveAll:gp.resolveAll,tokenize:t2};function t2(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 Gd={name:"lineEnding",tokenize:n2};function n2(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Fe(e,n,"linePrefix")}}const zu={name:"thematicBreak",tokenize:r2};function r2(e,n,i){let l=0,o;return s;function s(d){return e.enter("thematicBreak"),c(d)}function c(d){return o=d,f(d)}function f(d){return d===o?(e.enter("thematicBreakSequence"),h(d)):l>=3&&(d===null||xe(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===o?(e.consume(d),l++,h):(e.exit("thematicBreakSequence"),ze(d)?Fe(e,f,"whitespace")(d):f(d))}}const mn={continuation:{tokenize:o2},exit:u2,name:"list",tokenize:a2},i2={partial:!0,tokenize:c2},l2={partial:!0,tokenize:s2};function a2(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(b){const S=l.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!l.containerState.marker||b===l.containerState.marker:Rh(b)){if(l.containerState.type||(l.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(zu,i,d)(b):d(b);if(!l.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return i(b)}function h(b){return Rh(b)&&++c<10?(e.consume(b),h):(!l.interrupt||c<2)&&(l.containerState.marker?b===l.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),d(b)):i(b)}function d(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||b,e.check(rs,l.interrupt?i:y,e.attempt(i2,x,g))}function y(b){return l.containerState.initialBlankLine=!0,s++,x(b)}function g(b){return ze(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function o2(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(rs,o,s);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Fe(e,n,"listItemIndent",l.containerState.size+1)(f)}function s(f){return l.containerState.furtherBlankLines||!ze(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(l2,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Fe(e,e.attempt(mn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function s2(e,n,i){const l=this;return Fe(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 u2(e){e.exit(this.containerState.type)}function c2(e,n,i){const l=this;return Fe(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!ze(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):i(s)}}const vb={name:"setextUnderline",resolveTo:f2,tokenize:d2};function f2(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 d2(e,n,i){const l=this;let o;return s;function s(d){let y=l.events.length,g;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){g=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===o?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),ze(d)?Fe(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||xe(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const h2={tokenize:S2,partial:!0};function p2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:v2,continuation:{tokenize:b2},exit:x2}},text:{91:{name:"gfmFootnoteCall",tokenize:g2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:m2,resolveTo:y2}}}}function m2(e,n,i){const l=this;let o=l.events.length;const s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;o--;){const h=l.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return i(h);const d=tr(l.sliceSerialize({start:c.end,end:l.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function y2(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 g2(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"),h}function h(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(g){if(s>999||g===93&&!c||g===null||g===91||nt(g))return i(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(tr(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(g)}return nt(g)||(c=!0),s++,e.consume(g),g===92?y:d}function y(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}}function v2(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s,c=0,f;return h;function h(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(S)}function y(S){if(c>999||S===93&&!f||S===null||S===91||nt(S))return i(S);if(S===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=tr(l.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(S)||(f=!0),c++,e.consume(S),S===92?g:y}function g(S){return S===91||S===92||S===93?(e.consume(S),c++,y):y(S)}function x(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(s)||o.push(s),Fe(e,b,"gfmFootnoteDefinitionWhitespace")):i(S)}function b(S){return n(S)}}function b2(e,n,i){return e.check(rs,n,e.attempt(h2,n,i))}function x2(e){e.exit("gfmFootnoteDefinition")}function S2(e,n,i){const l=this;return Fe(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 w2(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 h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let d=h;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[h][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},x=[["enter",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&Nn(x,x.length,0,bc(b,c.slice(d+1,h),f)),Nn(x,x.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),Nn(c,d-1,h-d+3,x),h=d+x.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,f,h){const d=this.previous,y=this.events;let g=0;return x;function x(S){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(S):(c.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const k=ya(d);if(S===126)return g>1?h(S):(c.consume(S),g++,b);if(g<2&&!i)return h(S);const _=c.exit("strikethroughSequenceTemporary"),A=ya(S);return _._open=!A||A===2&&!!k,_._close=!k||k===2&&!!A,f(S)}}}class C2{constructor(){this.map=[]}add(n,i,l){E2(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 E2(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 T2(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 k2(){return{flow:{null:{name:"table",tokenize:A2,resolveAll:_2}}}}function A2(e,n,i){const l=this;let o=0,s=0,c;return f;function f(z){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"?M:h;return ue===M&&l.parser.lazy[l.now().line]?i(z):ue(z)}function h(z){return e.enter("tableHead"),e.enter("tableRow"),d(z)}function d(z){return z===124||(c=!0,s+=1),y(z)}function y(z){return z===null?i(z):xe(z)?s>1?(s=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),b):i(z):ze(z)?Fe(e,y,"whitespace")(z):(s+=1,c&&(c=!1,o+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(z)))}function g(z){return z===null||z===124||nt(z)?(e.exit("data"),y(z)):(e.consume(z),z===92?x:g)}function x(z){return z===92||z===124?(e.consume(z),g):g(z)}function b(z){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(z):(e.enter("tableDelimiterRow"),c=!1,ze(z)?Fe(e,S,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):S(z))}function S(z){return z===45||z===58?_(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),k):q(z)}function k(z){return ze(z)?Fe(e,_,"whitespace")(z):_(z)}function _(z){return z===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),A):z===45?(s+=1,A(z)):z===null||xe(z)?L(z):q(z)}function A(z){return z===45?(e.enter("tableDelimiterFiller"),N(z)):q(z)}function N(z){return z===45?(e.consume(z),N):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(z))}function O(z){return ze(z)?Fe(e,L,"whitespace")(z):L(z)}function L(z){return z===124?S(z):z===null||xe(z)?!c||o!==s?q(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(z)):q(z)}function q(z){return i(z)}function M(z){return e.enter("tableRow"),Y(z)}function Y(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),Y):z===null||xe(z)?(e.exit("tableRow"),n(z)):ze(z)?Fe(e,Y,"whitespace")(z):(e.enter("data"),ee(z))}function ee(z){return z===null||z===124||nt(z)?(e.exit("data"),Y(z)):(e.consume(z),z===92?ie:ee)}function ie(z){return z===92||z===124?(e.consume(z),ee):ee(z)}}function _2(e,n){let i=-1,l=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,y,g;const x=new C2;for(;++i<e.length;){const b=e[i],S=b[1];b[0]==="enter"?S.type==="tableHead"?(f=!1,h!==0&&(bb(x,n,h,d,y),y=void 0,h=0),d={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(i,0,[["enter",d,n]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(l=!0,g=void 0,s=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(i,0,[["enter",y,n]])),o=S.type==="tableDelimiterRow"?2:y?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g),s=[0,0,0,0]),c[2]=i)):S.type==="tableCellDivider"&&(l?l=!1:(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g)),s=c,c=[s[1],i,0,0])):S.type==="tableHead"?(f=!0,h=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(h=i,s[1]!==0?(c[0]=c[1],g=xu(x,n,s,o,i,g)):c[1]!==0&&(g=xu(x,n,c,o,i,g)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=i)}for(h!==0&&bb(x,n,h,d,y),x.consume(n.events),i=-1;++i<n.events.length;){const b=n.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=T2(n.events,i))}return e}function xu(e,n,i,l,o,s){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(s.end=Object.assign({},ca(n.events,i[0])),e.add(i[0],0,[["exit",s,n]]));const h=ca(n.events,i[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(i[1],0,[["enter",s,n]]),i[2]!==0){const d=ca(n.events,i[2]),y=ca(n.events,i[3]),g={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",g,n]]),l!==2){const x=n.events[i[2]],b=n.events[i[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,k=i[3]-i[2]-1;e.add(S,k,[])}}e.add(i[3]+1,0,[["exit",g,n]])}return o!==void 0&&(s.end=Object.assign({},ca(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function bb(e,n,i,l,o){const s=[],c=ca(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 ca(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const O2={name:"tasklistCheck",tokenize:N2};function R2(){return{text:{91:O2}}}function N2(e,n,i){const l=this;return o;function o(h){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return nt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(h)}function f(h){return xe(h)?n(h):ze(h)?e.check({tokenize:j2},n,i)(h):i(h)}}function j2(e,n,i){return Fe(e,l,"whitespace");function l(o){return o===null?i(o):n(o)}}function D2(e){return X0([PR(),p2(),w2(e),k2(),R2()])}const M2={};function L2(e){const n=this,i=e||M2,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(D2(i)),s.push(UR()),c.push(BR(i))}function z2(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const U2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,B2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q2={};function xb(e,n){return(q2.jsx?B2:U2).test(e)}const H2=/[ \t\n\f\r]/g;function F2(e){return typeof e=="object"?e.type==="text"?Sb(e.value):!1:Sb(e)}function Sb(e){return e.replace(H2,"")===""}class is{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}is.prototype.normal={};is.prototype.property={};is.prototype.space=void 0;function d1(e,n){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new is(i,l,n)}function Mh(e){return e.toLowerCase()}class bn{constructor(n,i){this.attribute=i,this.property=n}}bn.prototype.attribute="";bn.prototype.booleanish=!1;bn.prototype.boolean=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.commaSeparated=!1;bn.prototype.defined=!1;bn.prototype.mustUseProperty=!1;bn.prototype.number=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.property="";bn.prototype.spaceSeparated=!1;bn.prototype.space=void 0;let Q2=0;const _e=bl(),At=bl(),Lh=bl(),re=bl(),it=bl(),ha=bl(),Rn=bl();function bl(){return 2**++Q2}const zh=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:At,commaOrSpaceSeparated:Rn,commaSeparated:ha,number:re,overloadedBoolean:Lh,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Kd=Object.keys(zh);class vp extends bn{constructor(n,i,l,o){let s=-1;if(super(n,i),wb(this,"space",o),typeof l=="number")for(;++s<Kd.length;){const c=Kd[s];wb(this,Kd[s],(l&zh[c])===zh[c])}}}vp.prototype.defined=!0;function wb(e,n,i){i&&(e[n]=i)}function Oa(e){const n={},i={};for(const[l,o]of Object.entries(e.properties)){const s=new vp(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),n[l]=s,i[Mh(l)]=l,i[Mh(s.attribute)]=l}return new is(n,i,e.space)}const h1=Oa({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:At,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:it,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:re,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:it,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:At,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 p1(e,n){return n in e?e[n]:n}function m1(e,n){return p1(e,n.toLowerCase())}const P2=Oa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ha,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:it,autoFocus:_e,autoPlay:_e,blocking:it,capture:null,charSet:null,checked:_e,cite:null,className:it,cols:re,colSpan:null,content:null,contentEditable:At,controls:_e,controlsList:it,coords:re|ha,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Lh,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:it,height:re,hidden:Lh,high:re,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:it,itemRef:it,itemScope:_e,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:re,pattern:null,ping:it,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:it,required:_e,reversed:_e,rows:re,rowSpan:re,sandbox:it,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:At,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:_e,useMap:null,value:At,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,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:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:At,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:_e,disableRemotePlayback:_e,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:m1}),I2=Oa({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:it,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:_e,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:ha,g2:ha,glyphName:ha,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:it,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:p1}),y1=Oa({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()}}),g1=Oa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:m1}),v1=Oa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),V2={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"},$2=/[A-Z]/g,Cb=/-[a-z]/g,Y2=/^data[-\w.:]+$/i;function G2(e,n){const i=Mh(n);let l=n,o=bn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Y2.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Cb,X2);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Cb.test(s)){let c=s.replace($2,K2);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=vp}return new o(l,n)}function K2(e){return"-"+e.toLowerCase()}function X2(e){return e.charAt(1).toUpperCase()}const Z2=d1([h1,P2,y1,g1,v1],"html"),bp=d1([h1,I2,y1,g1,v1],"svg");function J2(e){return e.join(" ").trim()}var la={},Xd,Eb;function W2(){if(Eb)return Xd;Eb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
248
- `,d="/",y="*",g="",x="comment",b="declaration";Xd=function(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var A=1,N=1;function O(ue){var J=ue.match(n);J&&(A+=J.length);var se=ue.lastIndexOf(h);N=~se?ue.length-se:N+ue.length}function L(){var ue={line:A,column:N};return function(J){return J.position=new q(ue),ee(),J}}function q(ue){this.start=ue,this.end={line:A,column:N},this.source=_.source}q.prototype.content=k;function M(ue){var J=new Error(_.source+":"+A+":"+N+": "+ue);if(J.reason=ue,J.filename=_.source,J.line=A,J.column=N,J.source=k,!_.silent)throw J}function Y(ue){var J=ue.exec(k);if(J){var se=J[0];return O(se),k=k.slice(se.length),J}}function ee(){Y(i)}function ie(ue){var J;for(ue=ue||[];J=z();)J!==!1&&ue.push(J);return ue}function z(){var ue=L();if(!(d!=k.charAt(0)||y!=k.charAt(1))){for(var J=2;g!=k.charAt(J)&&(y!=k.charAt(J)||d!=k.charAt(J+1));)++J;if(J+=2,g===k.charAt(J-1))return M("End of comment missing");var se=k.slice(2,J-2);return N+=2,O(se),k=k.slice(J),N+=2,ue({type:x,comment:se})}}function ae(){var ue=L(),J=Y(l);if(J){if(z(),!Y(o))return M("property missing ':'");var se=Y(s),B=ue({type:b,property:S(J[0].replace(e,g)),value:se?S(se[0].replace(e,g)):g});return Y(c),B}}function te(){var ue=[];ie(ue);for(var J;J=ae();)J!==!1&&(ue.push(J),ie(ue));return ue}return ee(),te()};function S(k){return k?k.replace(f,g):g}return Xd}var Tb;function ej(){if(Tb)return la;Tb=1;var e=la&&la.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(la,"__esModule",{value:!0}),la.default=i;var n=e(W2());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(h){if(h.type==="declaration"){var d=h.property,y=h.value;f?o(d,y,h):y&&(s=s||{},s[d]=y)}}),s}return la}var Do={},kb;function tj(){if(kb)return Do;kb=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(d){return!d||i.test(d)||e.test(d)},c=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),s(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(o,f):d=d.replace(l,f),d.replace(n,c))};return Do.camelCase=h,Do}var Mo,Ab;function nj(){if(Ab)return Mo;Ab=1;var e=Mo&&Mo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(ej()),i=tj();function l(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,i.camelCase)(f,s)]=h)}),c}return l.default=l,Mo=l,Mo}var rj=nj();const ij=ba(rj),b1=x1("end"),xp=x1("start");function x1(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 lj(e){const n=xp(e),i=b1(e);if(n&&i)return{start:n,end:i}}function Ho(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_b(e.position):"start"in e||"end"in e?_b(e):"line"in e||"column"in e?Uh(e):""}function Uh(e){return Ob(e&&e.line)+":"+Ob(e&&e.column)}function _b(e){return Uh(e&&e.start)+"-"+Uh(e&&e.end)}function Ob(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 h=l.indexOf(":");h===-1?s.ruleId=l:(s.source=l.slice(0,h),s.ruleId=l.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.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=Ho(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 Sp={}.hasOwnProperty,aj=new Map,oj=/[A-Z]/g,sj=new Set(["table","tbody","thead","tfoot","tr"]),uj=new Set(["td","th"]),S1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cj(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=vj(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=gj(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"?bp:Z2,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=w1(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function w1(e,n,i){if(n.type==="element")return fj(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return dj(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return pj(e,n,i);if(n.type==="mdxjsEsm")return hj(e,n);if(n.type==="root")return mj(e,n,i);if(n.type==="text")return yj(e,n)}function fj(e,n,i){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=bp,e.schema=o),e.ancestors.push(n);const s=E1(e,n.tagName,!1),c=bj(e,n);let f=Cp(e,n);return sj.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!F2(h):!0})),C1(e,c,s,n),wp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function dj(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)}Yo(e,n.position)}function hj(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yo(e,n.position)}function pj(e,n,i){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=bp,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:E1(e,n.name,!0),c=xj(e,n),f=Cp(e,n);return C1(e,c,s,n),wp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function mj(e,n,i){const l={};return wp(l,Cp(e,n)),e.create(n,e.Fragment,l,i)}function yj(e,n){return n.value}function C1(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function wp(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function gj(e,n,i){return l;function l(o,s,c,f){const d=Array.isArray(c.children)?i:n;return f?d(s,c,f):d(s,c)}}function vj(e,n){return i;function i(l,o,s,c){const f=Array.isArray(s.children),h=xp(l);return n(o,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function bj(e,n){const i={};let l,o;for(o in n.properties)if(o!=="children"&&Sp.call(n.properties,o)){const s=Sj(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&uj.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 xj(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 Yo(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 Yo(e,n.position);else s=l.value===null?!0:l.value;i[o]=s}return i}function Cp(e,n){const i=[];let l=-1;const o=e.passKeys?new Map:aj;for(;++l<n.children.length;){const s=n.children[l];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=o.get(h)||0;c=h+"-"+d,o.set(h,d+1)}}const f=w1(e,s,c);f!==void 0&&i.push(f)}return i}function Sj(e,n,i){const l=G2(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?z2(i):J2(i)),l.property==="style"){let o=typeof i=="object"?i:wj(e,String(i));return e.stylePropertyNameCase==="css"&&(o=Cj(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?V2[l.property]||l.property:l.attribute,i]}}function wj(e,n){try{return ij(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=S1+"#cannot-parse-style-attribute",o}}function E1(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=xb(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=xb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return Sp.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);Yo(e)}function Yo(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=S1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Cj(e){const n={};let i;for(i in e)Sp.call(e,i)&&(n[Ej(i)]=e[i]);return n}function Ej(e){let n=e.replace(oj,Tj);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Tj(e){return"-"+e.toLowerCase()}const Zd={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"]},kj={tokenize:Aj};function Aj(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"),Fe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,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 _j={tokenize:Oj},Rb={tokenize:Rj};function Oj(e){const n=this,i=[];let l=0,o,s,c;return f;function f(O){if(l<i.length){const L=i[l];return n.containerState=L[1],e.attempt(L[0].continuation,h,d)(O)}return d(O)}function h(O){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const L=n.events.length;let q=L,M;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){M=n.events[q][1].end;break}A(l);let Y=L;for(;Y<n.events.length;)n.events[Y][1].end={...M},Y++;return Nn(n.events,q+1,0,n.events.slice(L)),n.events.length=Y,d(O)}return f(O)}function d(O){if(l===i.length){if(!o)return x(O);if(o.currentConstruct&&o.currentConstruct.concrete)return S(O);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Rb,y,g)(O)}function y(O){return o&&N(),A(l),x(O)}function g(O){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,S(O)}function x(O){return n.containerState={},e.attempt(Rb,b,S)(O)}function b(O){return l++,i.push([n.currentConstruct,n.containerState]),x(O)}function S(O){if(O===null){o&&N(),A(0),e.consume(O);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),k(O)}function k(O){if(O===null){_(e.exit("chunkFlow"),!0),A(0),e.consume(O);return}return xe(O)?(e.consume(O),_(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(O),k)}function _(O,L){const q=n.sliceStream(O);if(L&&q.push(null),O.previous=s,s&&(s.next=O),s=O,o.defineSkip(O.start),o.write(q),n.parser.lazy[O.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<c&&(!o.events[M][1].end||o.events[M][1].end.offset>c))return;const Y=n.events.length;let ee=Y,ie,z;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(ie){z=n.events[ee][1].end;break}ie=!0}for(A(l),M=Y;M<n.events.length;)n.events[M][1].end={...z},M++;Nn(n.events,ee+1,0,n.events.slice(Y)),n.events.length=M}}function A(O){let L=i.length;for(;L-- >O;){const q=i[L];n.containerState=q[1],q[0].exit.call(n,e)}i.length=O}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function Rj(e,n,i){return Fe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Nj={tokenize:jj};function jj(e){const n=this,i=e.attempt(rs,l,e.attempt(this.parser.constructs.flowInitial,o,Fe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(bN,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 Dj={resolveAll:k1()},Mj=T1("string"),Lj=T1("text");function T1(e){return{resolveAll:k1(e==="text"?zj: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(y){return d(y)?s(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),h}function h(y){return d(y)?(i.exit("data"),s(y)):(i.consume(y),h)}function d(y){if(y===null)return!0;const g=o[y];let x=-1;if(g)for(;++x<g.length;){const b=g[x];if(!b.previous||b.previous.call(l,l.previous))return!0}return!1}}}function k1(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 zj(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,h;for(;s--;){const d=o[s];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||h||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={...d.start},l.start.offset===l.end.offset?Object.assign(l,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const Uj={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:l1},Bj={91:EN},qj={[-2]:Yd,[-1]:Yd,32:Yd},Hj={35:RN,42:zu,45:[vb,zu],60:MN,61:vb,95:zu,96:yb,126:yb},Fj={38:o1,92:a1},Qj={[-5]:Gd,[-4]:Gd,[-3]:Gd,33:JN,38:o1,42:Dh,60:[eN,FN],91:e2,92:[_N,a1],93:gp,95:Dh,96:hN},Pj={null:[Dh,Dj]},Ij={null:[42,95]},Vj={null:[]},$j=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ij,contentInitial:Bj,disable:Vj,document:Uj,flow:Hj,flowInitial:qj,insideSpan:Pj,string:Fj,text:Qj},Symbol.toStringTag,{value:"Module"}));function Yj(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 h={attempt:Y(q),check:Y(M),consume:N,enter:O,exit:L,interrupt:Y(M,{interrupt:!0})},d={code:null,containerState:{},defineSkip:k,events:[],now:S,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:g};let y=n.tokenize.call(d,h);return n.resolveAll&&s.push(n),d;function g(ae){return c=Yn(c,ae),_(),c[c.length-1]!==null?[]:(ee(n,0),d.events=bc(s,d.events,d),d.events)}function x(ae,te){return Kj(b(ae),te)}function b(ae){return Gj(c,ae)}function S(){const{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}=l;return{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}}function k(ae){o[ae.line]=ae.column,z()}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){y=y(ae)}function N(ae){xe(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,z()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),d.previous=ae}function O(ae,te){const ue=te||{};return ue.type=ae,ue.start=S(),d.events.push(["enter",ue,d]),f.push(ue),ue}function L(ae){const te=f.pop();return te.end=S(),d.events.push(["exit",te,d]),te}function q(ae,te){ee(ae,te.from)}function M(ae,te){te.restore()}function Y(ae,te){return ue;function ue(J,se,B){let X,ne,pe,C;return Array.isArray(J)?oe(J):"tokenize"in J?oe([J]):I(J);function I(ce){return st;function st(Oe){const Ie=Oe!==null&&ce[Oe],Ft=Oe!==null&&ce.null,bt=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return oe(bt)(Oe)}}function oe(ce){return X=ce,ne=0,ce.length===0?B:R(ce[ne])}function R(ce){return st;function st(Oe){return C=ie(),pe=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(te?Object.assign(Object.create(d),te):d,h,fe,Te)(Oe)}}function fe(ce){return ae(pe,C),se}function Te(ce){return C.restore(),++ne<X.length?R(X[ne]):B}}}function ee(ae,te){ae.resolveAll&&!s.includes(ae)&&s.push(ae),ae.resolve&&Nn(d.events,te,d.events.length-te,ae.resolve(d.events.slice(te),d)),ae.resolveTo&&(d.events=ae.resolveTo(d.events,d))}function ie(){const ae=S(),te=d.previous,ue=d.currentConstruct,J=d.events.length,se=Array.from(f);return{from:J,restore:B};function B(){l=ae,d.previous=te,d.currentConstruct=ue,d.events.length=J,f=se,z()}}function z(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function Gj(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 Kj(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=`
247
+ `))}function h(b,S,k,_){const A=k.enter("tableCell"),N=k.enter("phrasing"),O=k.containerPhrasing(b,{..._,before:s,after:s});return N(),A(),O}function d(b,S){return QO(b,{align:S,alignDelimiters:l,padding:i,stringLength:o})}function y(b,S,k){const _=b.children;let A=-1;const N=[],O=S.enter("table");for(;++A<_.length;)N[A]=g(_[A],S,k);return O(),N}function g(b,S,k){const _=b.children;let A=-1;const N=[],O=S.enter("tableRow");for(;++A<_.length;)N[A]=h(_[A],b,S,k);return O(),N}function x(b,S,k){let _=K0.inlineCode(b,S,k);return k.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function MR(){return{exit:{taskListCheckValueChecked:db,taskListCheckValueUnchecked:db,paragraph:zR}}}function LR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:UR}}}function db(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zR(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 UR(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 h=K0.listItem(e,n,i,{...l,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+c}}function BR(){return[fO(),jO(),zO(),AR(),MR()]}function qR(e){return{extensions:[dO(),DO(e),UO(),DR(e),LR()]}}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 hb={}.hasOwnProperty;function Z0(e){const n={};let i=-1;for(;++i<e.length;)HR(n,e[i]);return n}function HR(e,n){let i;for(i in n){const o=(hb.call(e,i)?e[i]:void 0)||(e[i]={}),s=n[i];let c;if(s)for(c in s){hb.call(o,c)||(o[c]=[]);const f=s[c];FR(o[c],Array.isArray(f)?f:f?[f]:[])}}}function FR(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 QR={tokenize:GR,partial:!0},J0={tokenize:KR,partial:!0},W0={tokenize:XR,partial:!0},e1={tokenize:ZR,partial:!0},PR={tokenize:JR,partial:!0},t1={name:"wwwAutolink",tokenize:$R,previous:r1},n1={name:"protocolAutolink",tokenize:YR,previous:i1},ei={name:"emailAutolink",tokenize:VR,previous:l1},Tr={};function IR(){return{text:Tr}}let al=48;for(;al<123;)Tr[al]=ei,al++,al===58?al=65:al===91&&(al=97);Tr[43]=ei;Tr[45]=ei;Tr[46]=ei;Tr[95]=ei;Tr[72]=[ei,n1];Tr[104]=[ei,n1];Tr[87]=[ei,t1];Tr[119]=[ei,t1];function VR(e,n,i){const l=this;let o,s;return c;function c(g){return!jh(g)||!l1.call(l,l.previous)||yp(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return jh(g)?(e.consume(g),f):g===64?(e.consume(g),h):i(g)}function h(g){return g===46?e.check(PR,y,d)(g):g===45||g===95||tn(g)?(s=!0,e.consume(g),h):y(g)}function d(g){return e.consume(g),o=!0,h}function y(g){return s&&o&&sn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):i(g)}}function $R(e,n,i){const l=this;return o;function o(c){return c!==87&&c!==119||!r1.call(l,l.previous)||yp(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QR,e.attempt(J0,e.attempt(W0,s),i),i)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function YR(e,n,i){const l=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&i1.call(l,l.previous)&&!yp(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),h}return i(g)}function h(g){return g===47?(e.consume(g),s?d:(s=!0,h)):i(g)}function d(g){return g===null||Gu(g)||nt(g)||ml(g)||yc(g)?i(g):e.attempt(J0,e.attempt(W0,y),i)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function GR(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 KR(e,n,i){let l,o,s;return c;function c(d){return d===46||d===95?e.check(e1,h,f)(d):d===null||nt(d)||ml(d)||d!==45&&yc(d)?h(d):(s=!0,e.consume(d),c)}function f(d){return d===95?l=!0:(o=l,l=void 0),e.consume(d),c}function h(d){return o||l||!s?i(d):n(d)}}function XR(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(e1,n,s)(c):c===null||nt(c)||ml(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&l++,e.consume(c),o}}function ZR(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||nt(f)||ml(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||nt(f)||ml(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 JR(e,n,i){return l;function l(s){return e.consume(s),o}function o(s){return tn(s)?i(s):n(s)}}function r1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function i1(e){return!sn(e)}function l1(e){return!(e===47||jh(e))}function jh(e){return e===43||e===45||e===46||e===95||tn(e)}function yp(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 _a(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 bc(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 Dh={name:"attention",resolveAll:WR,tokenize:eN};function WR(e,n){let i=-1,l,o,s,c,f,h,d,y;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;h=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};pb(g,-h),pb(x,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},s={type:h>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[l][1].end={...c.start},e[i][1].start={...f.end},d=[],e[l][1].end.offset-e[l][1].start.offset&&(d=Yn(d,[["enter",e[l][1],n],["exit",e[l][1],n]])),d=Yn(d,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=Yn(d,bc(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),d=Yn(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,d=Yn(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):y=0,Nn(e,l-1,i-l+3,d),i=l+d.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function eN(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ya(l);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),y=ya(h),g=!y||y===2&&o||i.includes(h),x=!o||o===2&&y||i.includes(l);return d._open=!!(s===42?g:g&&(o||!x)),d._close=!!(s===42?x:x&&(y||!g)),n(h)}}function pb(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const tN={name:"autolink",tokenize:nN};function nN(e,n,i){let l=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return sn(b)?(e.consume(b),c):b===64?i(b):d(b)}function c(b){return b===43||b===45||b===46||tn(b)?(l=1,f(b)):d(b)}function f(b){return b===58?(e.consume(b),l=0,h):(b===43||b===45||b===46||tn(b))&&l++<32?(e.consume(b),f):(l=0,d(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||Gu(b)?i(b):(e.consume(b),h)}function d(b){return b===64?(e.consume(b),y):K_(b)?(e.consume(b),d):i(b)}function y(b){return tn(b)?g(b):i(b)}function g(b){return b===46?(e.consume(b),l=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):x(b)}function x(b){if((b===45||tn(b))&&l++<63){const S=b===45?x:g;return e.consume(b),S}return i(b)}}function Fe(e,n,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return ze(h)?(e.enter(i),f(h)):n(h)}function f(h){return ze(h)&&s++<o?(e.consume(h),f):(e.exit(i),n(h))}}const rs={partial:!0,tokenize:rN};function rN(e,n,i){return l;function l(s){return ze(s)?Fe(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||xe(s)?n(s):i(s)}}const a1={continuation:{tokenize:lN},exit:aN,name:"blockQuote",tokenize:iN};function iN(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 ze(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function lN(e,n,i){const l=this;return o;function o(c){return ze(c)?Fe(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(a1,n,i)(c)}}function aN(e){e.exit("blockQuote")}const o1={name:"characterEscape",tokenize:oN};function oN(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 Z_(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(s)}}const s1={name:"characterReference",tokenize:sN};function sN(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"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,c=tn,y(g))}function d(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=X_,y):(e.enter("characterReferenceValue"),s=7,c=Rh,y(g))}function y(g){if(g===59&&o){const x=e.exit("characterReferenceValue");return c===tn&&!mp(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),y):i(g)}}const mb={partial:!0,tokenize:cN},yb={concrete:!0,name:"codeFenced",tokenize:uN};function uN(e,n,i){const l=this,o={partial:!0,tokenize:q};let s=0,c=0,f;return h;function h(M){return d(M)}function d(M){const Y=l.events[l.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,f=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===f?(c++,e.consume(M),y):c<3?i(M):(e.exit("codeFencedFenceSequence"),ze(M)?Fe(e,g,"whitespace")(M):g(M))}function g(M){return M===null||xe(M)?(e.exit("codeFencedFence"),l.interrupt?n(M):e.check(mb,k,L)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):ze(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fe(e,b,"whitespace")(M)):M===96&&M===f?i(M):(e.consume(M),x)}function b(M){return M===null||xe(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===f?i(M):(e.consume(M),S)}function k(M){return e.attempt(o,L,_)(M)}function _(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return s>0&&ze(M)?Fe(e,N,"linePrefix",s+1)(M):N(M)}function N(M){return M===null||xe(M)?e.check(mb,k,L)(M):(e.enter("codeFlowValue"),O(M))}function O(M){return M===null||xe(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),O)}function L(M){return e.exit("codeFenced"),n(M)}function q(M,Y,ee){let ie=0;return z;function z(se){return M.enter("lineEnding"),M.consume(se),M.exit("lineEnding"),ae}function ae(se){return M.enter("codeFencedFence"),ze(se)?Fe(M,te,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):te(se)}function te(se){return se===f?(M.enter("codeFencedFenceSequence"),ue(se)):ee(se)}function ue(se){return se===f?(ie++,M.consume(se),ue):ie>=c?(M.exit("codeFencedFenceSequence"),ze(se)?Fe(M,J,"whitespace")(se):J(se)):ee(se)}function J(se){return se===null||xe(se)?(M.exit("codeFencedFence"),Y(se)):ee(se)}}}function cN(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 Yd={name:"codeIndented",tokenize:dN},fN={partial:!0,tokenize:hN};function dN(e,n,i){const l=this;return o;function o(d){return e.enter("codeIndented"),Fe(e,s,"linePrefix",5)(d)}function s(d){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):xe(d)?e.attempt(fN,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||xe(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function hN(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):Fe(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 pN={name:"codeText",previous:yN,resolve:mN,tokenize:gN};function mN(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 yN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gN(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"),h(g))}function h(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(s=e.enter("codeTextSequence"),o=0,y(g)):xe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||xe(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),d)}function y(g){return g===96?(e.consume(g),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",d(g))}}class vN{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&&jo(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),jo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),jo(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);jo(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);jo(this.left,i.reverse())}}}function jo(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 u1(e){const n={};let i=-1,l,o,s,c,f,h,d;const y=new vN(e);for(;++i<y.length;){for(;i in n;)i=n[i];if(l=y.get(i),i&&l[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(h=l[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,bN(y,i)),i=n[i],d=!0);else if(l[1]._container){for(s=i,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.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={...y.get(o)[1].start},f=y.slice(o,i),f.unshift(l),y.splice(o,i-o+1,f))}}return Nn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function bN(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,h=[],d={};let y,g,x=-1,b=i,S=0,k=0;const _=[k];for(;b;){for(;e.get(++o)[1]!==b;);s.push(o),b._tokenizer||(y=l.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=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&&(k=x+1,_.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):_.pop(),x=_.length;x--;){const A=f.slice(_[x],_[x+1]),N=s.pop();h.push([N,N+A.length-1]),e.splice(N,2,A)}for(h.reverse(),x=-1;++x<h.length;)d[S+h[x][0]]=S+h[x][1],S+=h[x][1]-h[x][0]-1;return d}const xN={resolve:wN,tokenize:CN},SN={partial:!0,tokenize:EN};function wN(e){return u1(e),e}function CN(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(SN,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 EN(e,n,i){const l=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Fe(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 c1(e,n,i,l,o,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let y=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||Gu(A)?i(A):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(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"}),b(A))}function b(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?S:b)}function S(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function k(A){return!y&&(A===null||A===41||nt(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(A)):y<d&&A===40?(e.consume(A),y++,k):A===41?(e.consume(A),y--,k):A===null||A===32||A===40||Gu(A)?i(A):(e.consume(A),A===92?_:k)}function _(A){return A===40||A===41||A===92?(e.consume(A),k):k(A)}}function f1(e,n,i,l,o,s){const c=this;let f=0,h;return d;function d(b){return e.enter(l),e.enter(o),e.consume(b),e.exit(o),e.enter(s),y}function y(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(s),e.enter(o),e.consume(b),e.exit(o),e.exit(l),n):xe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||xe(b)||f++>999?(e.exit("chunkString"),y(b)):(e.consume(b),h||(h=!ze(b)),b===92?x:g)}function x(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function d1(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,h):i(x)}function h(x){return x===c?(e.enter(o),e.consume(x),e.exit(o),e.exit(l),n):(e.enter(s),d(x))}function d(x){return x===c?(e.exit(s),h(c)):x===null?i(x):xe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Fe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||xe(x)?(e.exit("chunkString"),d(x)):(e.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(e.consume(x),y):y(x)}}function qo(e,n){let i;return l;function l(o){return xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):ze(o)?Fe(e,l,i?"linePrefix":"lineSuffix")(o):n(o)}}const TN={name:"definition",tokenize:AN},kN={partial:!0,tokenize:_N};function AN(e,n,i){const l=this;let o;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return f1.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):i(b)}function h(b){return nt(b)?qo(e,d)(b):d(b)}function d(b){return c1(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(kN,g,g)(b)}function g(b){return ze(b)?Fe(e,x,"whitespace")(b):x(b)}function x(b){return b===null||xe(b)?(e.exit("definition"),l.parser.defined.push(o),n(b)):i(b)}}function _N(e,n,i){return l;function l(f){return nt(f)?qo(e,o)(f):i(f)}function o(f){return d1(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return ze(f)?Fe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||xe(f)?n(f):i(f)}}const ON={name:"hardBreakEscape",tokenize:RN};function RN(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 NN={name:"headingAtx",resolve:jN,tokenize:DN};function jN(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 DN(e,n,i){let l=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&l++<6?(e.consume(y),c):y===null||nt(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||xe(y)?(e.exit("atxHeading"),n(y)):ze(y)?Fe(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||nt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const MN=["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"],gb=["pre","script","style","textarea"],LN={concrete:!0,name:"htmlFlow",resolveTo:BN,tokenize:qN},zN={partial:!0,tokenize:FN},UN={partial:!0,tokenize:HN};function BN(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 qN(e,n,i){const l=this;let o,s,c,f,h;return d;function d(R){return y(R)}function y(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),g}function g(R){return R===33?(e.consume(R),x):R===47?(e.consume(R),s=!0,k):R===63?(e.consume(R),o=3,l.interrupt?n:C):sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function x(R){return R===45?(e.consume(R),o=2,b):R===91?(e.consume(R),o=5,f=0,S):sn(R)?(e.consume(R),o=4,l.interrupt?n:C):i(R)}function b(R){return R===45?(e.consume(R),l.interrupt?n:C):i(R)}function S(R){const fe="CDATA[";return R===fe.charCodeAt(f++)?(e.consume(R),f===fe.length?l.interrupt?n:te:S):i(R)}function k(R){return sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function _(R){if(R===null||R===47||R===62||nt(R)){const fe=R===47,Te=c.toLowerCase();return!fe&&!s&&gb.includes(Te)?(o=1,l.interrupt?n(R):te(R)):MN.includes(c.toLowerCase())?(o=6,fe?(e.consume(R),A):l.interrupt?n(R):te(R)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(R):s?N(R):O(R))}return R===45||tn(R)?(e.consume(R),c+=String.fromCharCode(R),_):i(R)}function A(R){return R===62?(e.consume(R),l.interrupt?n:te):i(R)}function N(R){return ze(R)?(e.consume(R),N):z(R)}function O(R){return R===47?(e.consume(R),z):R===58||R===95||sn(R)?(e.consume(R),L):ze(R)?(e.consume(R),O):z(R)}function L(R){return R===45||R===46||R===58||R===95||tn(R)?(e.consume(R),L):q(R)}function q(R){return R===61?(e.consume(R),M):ze(R)?(e.consume(R),q):O(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?i(R):R===34||R===39?(e.consume(R),h=R,Y):ze(R)?(e.consume(R),M):ee(R)}function Y(R){return R===h?(e.consume(R),h=null,ie):R===null||xe(R)?i(R):(e.consume(R),Y)}function ee(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||nt(R)?q(R):(e.consume(R),ee)}function ie(R){return R===47||R===62||ze(R)?O(R):i(R)}function z(R){return R===62?(e.consume(R),ae):i(R)}function ae(R){return R===null||xe(R)?te(R):ze(R)?(e.consume(R),ae):i(R)}function te(R){return R===45&&o===2?(e.consume(R),B):R===60&&o===1?(e.consume(R),X):R===62&&o===4?(e.consume(R),I):R===63&&o===3?(e.consume(R),C):R===93&&o===5?(e.consume(R),pe):xe(R)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(zN,oe,ue)(R)):R===null||xe(R)?(e.exit("htmlFlowData"),ue(R)):(e.consume(R),te)}function ue(R){return e.check(UN,J,oe)(R)}function J(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),se}function se(R){return R===null||xe(R)?ue(R):(e.enter("htmlFlowData"),te(R))}function B(R){return R===45?(e.consume(R),C):te(R)}function X(R){return R===47?(e.consume(R),c="",ne):te(R)}function ne(R){if(R===62){const fe=c.toLowerCase();return gb.includes(fe)?(e.consume(R),I):te(R)}return sn(R)&&c.length<8?(e.consume(R),c+=String.fromCharCode(R),ne):te(R)}function pe(R){return R===93?(e.consume(R),C):te(R)}function C(R){return R===62?(e.consume(R),I):R===45&&o===2?(e.consume(R),C):te(R)}function I(R){return R===null||xe(R)?(e.exit("htmlFlowData"),oe(R)):(e.consume(R),I)}function oe(R){return e.exit("htmlFlow"),n(R)}}function HN(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 FN(e,n,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(rs,n,i)}}const QN={name:"htmlText",tokenize:PN};function PN(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),h}function h(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),q):C===63?(e.consume(C),O):sn(C)?(e.consume(C),ee):i(C)}function d(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),s=0,S):sn(C)?(e.consume(C),N):i(C)}function y(C){return C===45?(e.consume(C),b):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),b):g(C)}function b(C){return C===62?B(C):C===45?x(C):g(C)}function S(C){const I="CDATA[";return C===I.charCodeAt(s++)?(e.consume(C),s===I.length?k:S):i(C)}function k(C){return C===null?i(C):C===93?(e.consume(C),_):xe(C)?(c=k,X(C)):(e.consume(C),k)}function _(C){return C===93?(e.consume(C),A):k(C)}function A(C){return C===62?B(C):C===93?(e.consume(C),A):k(C)}function N(C){return C===null||C===62?B(C):xe(C)?(c=N,X(C)):(e.consume(C),N)}function O(C){return C===null?i(C):C===63?(e.consume(C),L):xe(C)?(c=O,X(C)):(e.consume(C),O)}function L(C){return C===62?B(C):O(C)}function q(C){return sn(C)?(e.consume(C),M):i(C)}function M(C){return C===45||tn(C)?(e.consume(C),M):Y(C)}function Y(C){return xe(C)?(c=Y,X(C)):ze(C)?(e.consume(C),Y):B(C)}function ee(C){return C===45||tn(C)?(e.consume(C),ee):C===47||C===62||nt(C)?ie(C):i(C)}function ie(C){return C===47?(e.consume(C),B):C===58||C===95||sn(C)?(e.consume(C),z):xe(C)?(c=ie,X(C)):ze(C)?(e.consume(C),ie):B(C)}function z(C){return C===45||C===46||C===58||C===95||tn(C)?(e.consume(C),z):ae(C)}function ae(C){return C===61?(e.consume(C),te):xe(C)?(c=ae,X(C)):ze(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)):ze(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||nt(C)?ie(C):(e.consume(C),J)}function se(C){return C===47||C===62||nt(C)?ie(C):i(C)}function B(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 ze(C)?Fe(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 gp={name:"labelEnd",resolveAll:YN,resolveTo:GN,tokenize:KN},IN={tokenize:XN},VN={tokenize:ZN},$N={tokenize:JN};function YN(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 GN(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 h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[s+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",d,n]],f=Yn(f,e.slice(s+1,s+l+3)),f=Yn(f,[["enter",y,n]]),f=Yn(f,bc(n.parser.constructs.insideSpan.null,e.slice(s+l+4,c-3),n)),f=Yn(f,[["exit",y,n],e[c-2],e[c-1],["exit",d,n]]),f=Yn(f,e.slice(c+1)),f=Yn(f,[["exit",h,n]]),Nn(e,s,e.length,f),e}function KN(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(tr(l.sliceSerialize({start:s.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),h):i(x)}function h(x){return x===40?e.attempt(IN,y,c?y:g)(x):x===91?e.attempt(VN,y,c?d:g)(x):c?y(x):g(x)}function d(x){return e.attempt($N,y,g)(x)}function y(x){return n(x)}function g(x){return s._balanced=!0,i(x)}}function XN(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 nt(g)?qo(e,s)(g):s(g)}function s(g){return g===41?y(g):c1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return nt(g)?qo(e,h)(g):y(g)}function f(g){return i(g)}function h(g){return g===34||g===39||g===40?d1(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function d(g){return nt(g)?qo(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):i(g)}}function ZN(e,n,i){const l=this;return o;function o(f){return f1.call(l,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return l.parser.defined.includes(tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function JN(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 WN={name:"labelStartImage",resolveAll:gp.resolveAll,tokenize:e2};function e2(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 t2={name:"labelStartLink",resolveAll:gp.resolveAll,tokenize:n2};function n2(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 Gd={name:"lineEnding",tokenize:r2};function r2(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Fe(e,n,"linePrefix")}}const zu={name:"thematicBreak",tokenize:i2};function i2(e,n,i){let l=0,o;return s;function s(d){return e.enter("thematicBreak"),c(d)}function c(d){return o=d,f(d)}function f(d){return d===o?(e.enter("thematicBreakSequence"),h(d)):l>=3&&(d===null||xe(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===o?(e.consume(d),l++,h):(e.exit("thematicBreakSequence"),ze(d)?Fe(e,f,"whitespace")(d):f(d))}}const mn={continuation:{tokenize:s2},exit:c2,name:"list",tokenize:o2},l2={partial:!0,tokenize:f2},a2={partial:!0,tokenize:u2};function o2(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(b){const S=l.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!l.containerState.marker||b===l.containerState.marker:Rh(b)){if(l.containerState.type||(l.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(zu,i,d)(b):d(b);if(!l.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return i(b)}function h(b){return Rh(b)&&++c<10?(e.consume(b),h):(!l.interrupt||c<2)&&(l.containerState.marker?b===l.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),d(b)):i(b)}function d(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||b,e.check(rs,l.interrupt?i:y,e.attempt(l2,x,g))}function y(b){return l.containerState.initialBlankLine=!0,s++,x(b)}function g(b){return ze(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function s2(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(rs,o,s);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Fe(e,n,"listItemIndent",l.containerState.size+1)(f)}function s(f){return l.containerState.furtherBlankLines||!ze(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(a2,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Fe(e,e.attempt(mn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function u2(e,n,i){const l=this;return Fe(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 c2(e){e.exit(this.containerState.type)}function f2(e,n,i){const l=this;return Fe(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!ze(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):i(s)}}const vb={name:"setextUnderline",resolveTo:d2,tokenize:h2};function d2(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 h2(e,n,i){const l=this;let o;return s;function s(d){let y=l.events.length,g;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){g=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===o?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),ze(d)?Fe(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||xe(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const p2={tokenize:w2,partial:!0};function m2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:b2,continuation:{tokenize:x2},exit:S2}},text:{91:{name:"gfmFootnoteCall",tokenize:v2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:y2,resolveTo:g2}}}}function y2(e,n,i){const l=this;let o=l.events.length;const s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;o--;){const h=l.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return i(h);const d=tr(l.sliceSerialize({start:c.end,end:l.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function g2(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 v2(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"),h}function h(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(g){if(s>999||g===93&&!c||g===null||g===91||nt(g))return i(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(tr(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(g)}return nt(g)||(c=!0),s++,e.consume(g),g===92?y:d}function y(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}}function b2(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s,c=0,f;return h;function h(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(S)}function y(S){if(c>999||S===93&&!f||S===null||S===91||nt(S))return i(S);if(S===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=tr(l.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(S)||(f=!0),c++,e.consume(S),S===92?g:y}function g(S){return S===91||S===92||S===93?(e.consume(S),c++,y):y(S)}function x(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(s)||o.push(s),Fe(e,b,"gfmFootnoteDefinitionWhitespace")):i(S)}function b(S){return n(S)}}function x2(e,n,i){return e.check(rs,n,e.attempt(p2,n,i))}function S2(e){e.exit("gfmFootnoteDefinition")}function w2(e,n,i){const l=this;return Fe(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 C2(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 h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let d=h;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[h][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},x=[["enter",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&Nn(x,x.length,0,bc(b,c.slice(d+1,h),f)),Nn(x,x.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),Nn(c,d-1,h-d+3,x),h=d+x.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,f,h){const d=this.previous,y=this.events;let g=0;return x;function x(S){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(S):(c.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const k=ya(d);if(S===126)return g>1?h(S):(c.consume(S),g++,b);if(g<2&&!i)return h(S);const _=c.exit("strikethroughSequenceTemporary"),A=ya(S);return _._open=!A||A===2&&!!k,_._close=!k||k===2&&!!A,f(S)}}}class E2{constructor(){this.map=[]}add(n,i,l){T2(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 T2(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 k2(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 A2(){return{flow:{null:{name:"table",tokenize:_2,resolveAll:O2}}}}function _2(e,n,i){const l=this;let o=0,s=0,c;return f;function f(z){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"?M:h;return ue===M&&l.parser.lazy[l.now().line]?i(z):ue(z)}function h(z){return e.enter("tableHead"),e.enter("tableRow"),d(z)}function d(z){return z===124||(c=!0,s+=1),y(z)}function y(z){return z===null?i(z):xe(z)?s>1?(s=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),b):i(z):ze(z)?Fe(e,y,"whitespace")(z):(s+=1,c&&(c=!1,o+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(z)))}function g(z){return z===null||z===124||nt(z)?(e.exit("data"),y(z)):(e.consume(z),z===92?x:g)}function x(z){return z===92||z===124?(e.consume(z),g):g(z)}function b(z){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(z):(e.enter("tableDelimiterRow"),c=!1,ze(z)?Fe(e,S,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):S(z))}function S(z){return z===45||z===58?_(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),k):q(z)}function k(z){return ze(z)?Fe(e,_,"whitespace")(z):_(z)}function _(z){return z===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),A):z===45?(s+=1,A(z)):z===null||xe(z)?L(z):q(z)}function A(z){return z===45?(e.enter("tableDelimiterFiller"),N(z)):q(z)}function N(z){return z===45?(e.consume(z),N):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(z))}function O(z){return ze(z)?Fe(e,L,"whitespace")(z):L(z)}function L(z){return z===124?S(z):z===null||xe(z)?!c||o!==s?q(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(z)):q(z)}function q(z){return i(z)}function M(z){return e.enter("tableRow"),Y(z)}function Y(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),Y):z===null||xe(z)?(e.exit("tableRow"),n(z)):ze(z)?Fe(e,Y,"whitespace")(z):(e.enter("data"),ee(z))}function ee(z){return z===null||z===124||nt(z)?(e.exit("data"),Y(z)):(e.consume(z),z===92?ie:ee)}function ie(z){return z===92||z===124?(e.consume(z),ee):ee(z)}}function O2(e,n){let i=-1,l=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,y,g;const x=new E2;for(;++i<e.length;){const b=e[i],S=b[1];b[0]==="enter"?S.type==="tableHead"?(f=!1,h!==0&&(bb(x,n,h,d,y),y=void 0,h=0),d={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(i,0,[["enter",d,n]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(l=!0,g=void 0,s=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(i,0,[["enter",y,n]])),o=S.type==="tableDelimiterRow"?2:y?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g),s=[0,0,0,0]),c[2]=i)):S.type==="tableCellDivider"&&(l?l=!1:(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g)),s=c,c=[s[1],i,0,0])):S.type==="tableHead"?(f=!0,h=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(h=i,s[1]!==0?(c[0]=c[1],g=xu(x,n,s,o,i,g)):c[1]!==0&&(g=xu(x,n,c,o,i,g)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=i)}for(h!==0&&bb(x,n,h,d,y),x.consume(n.events),i=-1;++i<n.events.length;){const b=n.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=k2(n.events,i))}return e}function xu(e,n,i,l,o,s){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(s.end=Object.assign({},ca(n.events,i[0])),e.add(i[0],0,[["exit",s,n]]));const h=ca(n.events,i[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(i[1],0,[["enter",s,n]]),i[2]!==0){const d=ca(n.events,i[2]),y=ca(n.events,i[3]),g={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",g,n]]),l!==2){const x=n.events[i[2]],b=n.events[i[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,k=i[3]-i[2]-1;e.add(S,k,[])}}e.add(i[3]+1,0,[["exit",g,n]])}return o!==void 0&&(s.end=Object.assign({},ca(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function bb(e,n,i,l,o){const s=[],c=ca(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 ca(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const R2={name:"tasklistCheck",tokenize:j2};function N2(){return{text:{91:R2}}}function j2(e,n,i){const l=this;return o;function o(h){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return nt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(h)}function f(h){return xe(h)?n(h):ze(h)?e.check({tokenize:D2},n,i)(h):i(h)}}function D2(e,n,i){return Fe(e,l,"whitespace");function l(o){return o===null?i(o):n(o)}}function M2(e){return Z0([IR(),m2(),C2(e),A2(),N2()])}const L2={};function z2(e){const n=this,i=e||L2,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(M2(i)),s.push(BR()),c.push(qR(i))}function U2(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const B2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,H2={};function xb(e,n){return(H2.jsx?q2:B2).test(e)}const F2=/[ \t\n\f\r]/g;function Q2(e){return typeof e=="object"?e.type==="text"?Sb(e.value):!1:Sb(e)}function Sb(e){return e.replace(F2,"")===""}class is{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}is.prototype.normal={};is.prototype.property={};is.prototype.space=void 0;function h1(e,n){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new is(i,l,n)}function Mh(e){return e.toLowerCase()}class bn{constructor(n,i){this.attribute=i,this.property=n}}bn.prototype.attribute="";bn.prototype.booleanish=!1;bn.prototype.boolean=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.commaSeparated=!1;bn.prototype.defined=!1;bn.prototype.mustUseProperty=!1;bn.prototype.number=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.property="";bn.prototype.spaceSeparated=!1;bn.prototype.space=void 0;let P2=0;const _e=bl(),At=bl(),Lh=bl(),re=bl(),it=bl(),ha=bl(),Rn=bl();function bl(){return 2**++P2}const zh=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:At,commaOrSpaceSeparated:Rn,commaSeparated:ha,number:re,overloadedBoolean:Lh,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Kd=Object.keys(zh);class vp extends bn{constructor(n,i,l,o){let s=-1;if(super(n,i),wb(this,"space",o),typeof l=="number")for(;++s<Kd.length;){const c=Kd[s];wb(this,Kd[s],(l&zh[c])===zh[c])}}}vp.prototype.defined=!0;function wb(e,n,i){i&&(e[n]=i)}function Oa(e){const n={},i={};for(const[l,o]of Object.entries(e.properties)){const s=new vp(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),n[l]=s,i[Mh(l)]=l,i[Mh(s.attribute)]=l}return new is(n,i,e.space)}const p1=Oa({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:At,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:it,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:re,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:it,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:At,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 m1(e,n){return n in e?e[n]:n}function y1(e,n){return m1(e,n.toLowerCase())}const I2=Oa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ha,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:it,autoFocus:_e,autoPlay:_e,blocking:it,capture:null,charSet:null,checked:_e,cite:null,className:it,cols:re,colSpan:null,content:null,contentEditable:At,controls:_e,controlsList:it,coords:re|ha,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Lh,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:it,height:re,hidden:Lh,high:re,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:it,itemRef:it,itemScope:_e,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:re,pattern:null,ping:it,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:it,required:_e,reversed:_e,rows:re,rowSpan:re,sandbox:it,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:At,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:_e,useMap:null,value:At,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,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:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:At,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:_e,disableRemotePlayback:_e,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:y1}),V2=Oa({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:it,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:_e,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:ha,g2:ha,glyphName:ha,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:it,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:m1}),g1=Oa({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()}}),v1=Oa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:y1}),b1=Oa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),$2={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"},Y2=/[A-Z]/g,Cb=/-[a-z]/g,G2=/^data[-\w.:]+$/i;function K2(e,n){const i=Mh(n);let l=n,o=bn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&G2.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Cb,Z2);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Cb.test(s)){let c=s.replace(Y2,X2);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=vp}return new o(l,n)}function X2(e){return"-"+e.toLowerCase()}function Z2(e){return e.charAt(1).toUpperCase()}const J2=h1([p1,I2,g1,v1,b1],"html"),bp=h1([p1,V2,g1,v1,b1],"svg");function W2(e){return e.join(" ").trim()}var la={},Xd,Eb;function ej(){if(Eb)return Xd;Eb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
248
+ `,d="/",y="*",g="",x="comment",b="declaration";Xd=function(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var A=1,N=1;function O(ue){var J=ue.match(n);J&&(A+=J.length);var se=ue.lastIndexOf(h);N=~se?ue.length-se:N+ue.length}function L(){var ue={line:A,column:N};return function(J){return J.position=new q(ue),ee(),J}}function q(ue){this.start=ue,this.end={line:A,column:N},this.source=_.source}q.prototype.content=k;function M(ue){var J=new Error(_.source+":"+A+":"+N+": "+ue);if(J.reason=ue,J.filename=_.source,J.line=A,J.column=N,J.source=k,!_.silent)throw J}function Y(ue){var J=ue.exec(k);if(J){var se=J[0];return O(se),k=k.slice(se.length),J}}function ee(){Y(i)}function ie(ue){var J;for(ue=ue||[];J=z();)J!==!1&&ue.push(J);return ue}function z(){var ue=L();if(!(d!=k.charAt(0)||y!=k.charAt(1))){for(var J=2;g!=k.charAt(J)&&(y!=k.charAt(J)||d!=k.charAt(J+1));)++J;if(J+=2,g===k.charAt(J-1))return M("End of comment missing");var se=k.slice(2,J-2);return N+=2,O(se),k=k.slice(J),N+=2,ue({type:x,comment:se})}}function ae(){var ue=L(),J=Y(l);if(J){if(z(),!Y(o))return M("property missing ':'");var se=Y(s),B=ue({type:b,property:S(J[0].replace(e,g)),value:se?S(se[0].replace(e,g)):g});return Y(c),B}}function te(){var ue=[];ie(ue);for(var J;J=ae();)J!==!1&&(ue.push(J),ie(ue));return ue}return ee(),te()};function S(k){return k?k.replace(f,g):g}return Xd}var Tb;function tj(){if(Tb)return la;Tb=1;var e=la&&la.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(la,"__esModule",{value:!0}),la.default=i;var n=e(ej());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(h){if(h.type==="declaration"){var d=h.property,y=h.value;f?o(d,y,h):y&&(s=s||{},s[d]=y)}}),s}return la}var Do={},kb;function nj(){if(kb)return Do;kb=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(d){return!d||i.test(d)||e.test(d)},c=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),s(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(o,f):d=d.replace(l,f),d.replace(n,c))};return Do.camelCase=h,Do}var Mo,Ab;function rj(){if(Ab)return Mo;Ab=1;var e=Mo&&Mo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(tj()),i=nj();function l(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,i.camelCase)(f,s)]=h)}),c}return l.default=l,Mo=l,Mo}var ij=rj();const lj=ba(ij),x1=S1("end"),xp=S1("start");function S1(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 aj(e){const n=xp(e),i=x1(e);if(n&&i)return{start:n,end:i}}function Ho(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_b(e.position):"start"in e||"end"in e?_b(e):"line"in e||"column"in e?Uh(e):""}function Uh(e){return Ob(e&&e.line)+":"+Ob(e&&e.column)}function _b(e){return Uh(e&&e.start)+"-"+Uh(e&&e.end)}function Ob(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 h=l.indexOf(":");h===-1?s.ruleId=l:(s.source=l.slice(0,h),s.ruleId=l.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.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=Ho(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 Sp={}.hasOwnProperty,oj=new Map,sj=/[A-Z]/g,uj=new Set(["table","tbody","thead","tfoot","tr"]),cj=new Set(["td","th"]),w1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fj(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=bj(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=vj(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"?bp:J2,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=C1(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function C1(e,n,i){if(n.type==="element")return dj(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return hj(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return mj(e,n,i);if(n.type==="mdxjsEsm")return pj(e,n);if(n.type==="root")return yj(e,n,i);if(n.type==="text")return gj(e,n)}function dj(e,n,i){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=bp,e.schema=o),e.ancestors.push(n);const s=T1(e,n.tagName,!1),c=xj(e,n);let f=Cp(e,n);return uj.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!Q2(h):!0})),E1(e,c,s,n),wp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function hj(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)}Yo(e,n.position)}function pj(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yo(e,n.position)}function mj(e,n,i){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=bp,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:T1(e,n.name,!0),c=Sj(e,n),f=Cp(e,n);return E1(e,c,s,n),wp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function yj(e,n,i){const l={};return wp(l,Cp(e,n)),e.create(n,e.Fragment,l,i)}function gj(e,n){return n.value}function E1(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function wp(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function vj(e,n,i){return l;function l(o,s,c,f){const d=Array.isArray(c.children)?i:n;return f?d(s,c,f):d(s,c)}}function bj(e,n){return i;function i(l,o,s,c){const f=Array.isArray(s.children),h=xp(l);return n(o,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function xj(e,n){const i={};let l,o;for(o in n.properties)if(o!=="children"&&Sp.call(n.properties,o)){const s=wj(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&cj.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 Sj(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 Yo(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 Yo(e,n.position);else s=l.value===null?!0:l.value;i[o]=s}return i}function Cp(e,n){const i=[];let l=-1;const o=e.passKeys?new Map:oj;for(;++l<n.children.length;){const s=n.children[l];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=o.get(h)||0;c=h+"-"+d,o.set(h,d+1)}}const f=C1(e,s,c);f!==void 0&&i.push(f)}return i}function wj(e,n,i){const l=K2(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?U2(i):W2(i)),l.property==="style"){let o=typeof i=="object"?i:Cj(e,String(i));return e.stylePropertyNameCase==="css"&&(o=Ej(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?$2[l.property]||l.property:l.attribute,i]}}function Cj(e,n){try{return lj(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=w1+"#cannot-parse-style-attribute",o}}function T1(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=xb(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=xb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return Sp.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);Yo(e)}function Yo(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=w1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ej(e){const n={};let i;for(i in e)Sp.call(e,i)&&(n[Tj(i)]=e[i]);return n}function Tj(e){let n=e.replace(sj,kj);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function kj(e){return"-"+e.toLowerCase()}const Zd={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"]},Aj={tokenize:_j};function _j(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"),Fe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,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 Oj={tokenize:Rj},Rb={tokenize:Nj};function Rj(e){const n=this,i=[];let l=0,o,s,c;return f;function f(O){if(l<i.length){const L=i[l];return n.containerState=L[1],e.attempt(L[0].continuation,h,d)(O)}return d(O)}function h(O){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const L=n.events.length;let q=L,M;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){M=n.events[q][1].end;break}A(l);let Y=L;for(;Y<n.events.length;)n.events[Y][1].end={...M},Y++;return Nn(n.events,q+1,0,n.events.slice(L)),n.events.length=Y,d(O)}return f(O)}function d(O){if(l===i.length){if(!o)return x(O);if(o.currentConstruct&&o.currentConstruct.concrete)return S(O);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Rb,y,g)(O)}function y(O){return o&&N(),A(l),x(O)}function g(O){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,S(O)}function x(O){return n.containerState={},e.attempt(Rb,b,S)(O)}function b(O){return l++,i.push([n.currentConstruct,n.containerState]),x(O)}function S(O){if(O===null){o&&N(),A(0),e.consume(O);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),k(O)}function k(O){if(O===null){_(e.exit("chunkFlow"),!0),A(0),e.consume(O);return}return xe(O)?(e.consume(O),_(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(O),k)}function _(O,L){const q=n.sliceStream(O);if(L&&q.push(null),O.previous=s,s&&(s.next=O),s=O,o.defineSkip(O.start),o.write(q),n.parser.lazy[O.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<c&&(!o.events[M][1].end||o.events[M][1].end.offset>c))return;const Y=n.events.length;let ee=Y,ie,z;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(ie){z=n.events[ee][1].end;break}ie=!0}for(A(l),M=Y;M<n.events.length;)n.events[M][1].end={...z},M++;Nn(n.events,ee+1,0,n.events.slice(Y)),n.events.length=M}}function A(O){let L=i.length;for(;L-- >O;){const q=i[L];n.containerState=q[1],q[0].exit.call(n,e)}i.length=O}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function Nj(e,n,i){return Fe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const jj={tokenize:Dj};function Dj(e){const n=this,i=e.attempt(rs,l,e.attempt(this.parser.constructs.flowInitial,o,Fe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(xN,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 Mj={resolveAll:A1()},Lj=k1("string"),zj=k1("text");function k1(e){return{resolveAll:A1(e==="text"?Uj: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(y){return d(y)?s(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),h}function h(y){return d(y)?(i.exit("data"),s(y)):(i.consume(y),h)}function d(y){if(y===null)return!0;const g=o[y];let x=-1;if(g)for(;++x<g.length;){const b=g[x];if(!b.previous||b.previous.call(l,l.previous))return!0}return!1}}}function A1(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 Uj(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,h;for(;s--;){const d=o[s];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||h||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={...d.start},l.start.offset===l.end.offset?Object.assign(l,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const Bj={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:a1},qj={91:TN},Hj={[-2]:Yd,[-1]:Yd,32:Yd},Fj={35:NN,42:zu,45:[vb,zu],60:LN,61:vb,95:zu,96:yb,126:yb},Qj={38:s1,92:o1},Pj={[-5]:Gd,[-4]:Gd,[-3]:Gd,33:WN,38:s1,42:Dh,60:[tN,QN],91:t2,92:[ON,o1],93:gp,95:Dh,96:pN},Ij={null:[Dh,Mj]},Vj={null:[42,95]},$j={null:[]},Yj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vj,contentInitial:qj,disable:$j,document:Bj,flow:Fj,flowInitial:Hj,insideSpan:Ij,string:Qj,text:Pj},Symbol.toStringTag,{value:"Module"}));function Gj(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 h={attempt:Y(q),check:Y(M),consume:N,enter:O,exit:L,interrupt:Y(M,{interrupt:!0})},d={code:null,containerState:{},defineSkip:k,events:[],now:S,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:g};let y=n.tokenize.call(d,h);return n.resolveAll&&s.push(n),d;function g(ae){return c=Yn(c,ae),_(),c[c.length-1]!==null?[]:(ee(n,0),d.events=bc(s,d.events,d),d.events)}function x(ae,te){return Xj(b(ae),te)}function b(ae){return Kj(c,ae)}function S(){const{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}=l;return{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}}function k(ae){o[ae.line]=ae.column,z()}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){y=y(ae)}function N(ae){xe(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,z()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),d.previous=ae}function O(ae,te){const ue=te||{};return ue.type=ae,ue.start=S(),d.events.push(["enter",ue,d]),f.push(ue),ue}function L(ae){const te=f.pop();return te.end=S(),d.events.push(["exit",te,d]),te}function q(ae,te){ee(ae,te.from)}function M(ae,te){te.restore()}function Y(ae,te){return ue;function ue(J,se,B){let X,ne,pe,C;return Array.isArray(J)?oe(J):"tokenize"in J?oe([J]):I(J);function I(ce){return st;function st(Oe){const Ie=Oe!==null&&ce[Oe],Ft=Oe!==null&&ce.null,bt=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return oe(bt)(Oe)}}function oe(ce){return X=ce,ne=0,ce.length===0?B:R(ce[ne])}function R(ce){return st;function st(Oe){return C=ie(),pe=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(te?Object.assign(Object.create(d),te):d,h,fe,Te)(Oe)}}function fe(ce){return ae(pe,C),se}function Te(ce){return C.restore(),++ne<X.length?R(X[ne]):B}}}function ee(ae,te){ae.resolveAll&&!s.includes(ae)&&s.push(ae),ae.resolve&&Nn(d.events,te,d.events.length-te,ae.resolve(d.events.slice(te),d)),ae.resolveTo&&(d.events=ae.resolveTo(d.events,d))}function ie(){const ae=S(),te=d.previous,ue=d.currentConstruct,J=d.events.length,se=Array.from(f);return{from:J,restore:B};function B(){l=ae,d.previous=te,d.currentConstruct=ue,d.events.length=J,f=se,z()}}function z(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function Kj(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 Xj(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
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 Xj(e){const l={constructs:X0([$j,...(e||{}).extensions||[]]),content:o(kj),defined:[],document:o(_j),flow:o(Nj),lazy:{},string:o(Mj),text:o(Lj)};return l;function o(s){return c;function c(f){return Yj(l,s,f)}}}function Zj(e){for(;!s1(e););return e}const Nb=/[\0\t\n\r]/g;function Jj(){let e=1,n="",i=!0,l;return o;function o(s,c,f){const h=[];let d,y,g,x,b;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(Nb.lastIndex=g,d=Nb.exec(s),x=d&&d.index!==void 0?d.index:s.length,b=s.charCodeAt(x),!d){n=s.slice(g);break}if(b===10&&g===x&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),g<x&&(h.push(s.slice(g,x)),e+=x-g),b){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:l=!0,e=1}g=x+1}return f&&(l&&h.push(-5),n&&h.push(n),h.push(null)),h}}const A1={}.hasOwnProperty;function Wj(e,n,i){return typeof n!="string"&&(i=n,n=void 0),eD(i)(Zj(Xj(i).document().write(Jj()(e,n,!0))))}function eD(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(ri),blockQuote:s(Ft),characterEscape:ie,characterReference:ie,codeFenced:s(bt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(bt,c),codeText:s(un,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(Xn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(cn),hardBreakEscape:s(Dt),hardBreakTrailing:s(Dt),htmlFlow:s(Mt,c),htmlFlowData:ie,htmlText:s(Mt,c),htmlTextData:ie,image:s(Zn),label:c,link:s(xn),listItem:s(Dn),listItemValue:x,listOrdered:s(Ge,g),listUnordered:s(Ge),paragraph:s(Ar),reference:R,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ri),strong:s(or),thematicBreak:s(ii)},exit:{atxHeading:h(),atxHeadingSequence:q,autolink:h(),autolinkEmail:Ie,autolinkProtocol:Oe,blockQuote:h(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:st,codeFenced:h(_),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:z,codeIndented:h(A),codeText:h(se),codeTextData:z,data:z,definition:h(),definitionDestinationString:L,definitionLabelString:N,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(te),hardBreakTrailing:h(te),htmlFlow:h(ue),htmlFlowData:z,htmlText:h(J),htmlTextData:z,image:h(X),label:pe,labelText:ne,lineEnding:ae,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:C,resourceTitleString:I,resource:oe,setextHeading:h(ee),setextHeadingLineSequence:Y,setextHeadingText:M,strong:h(),thematicBreak:h()}};_1(n,(e||{}).mdastExtensions||[]);const i={};return l;function l($){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:y,data:i},ye=[];let Ue=-1;for(;++Ue<$.length;)if($[Ue][1].type==="listOrdered"||$[Ue][1].type==="listUnordered")if($[Ue][0]==="enter")ye.push(Ue);else{const Qt=ye.pop();Ue=o($,Qt,Ue)}for(Ue=-1;++Ue<$.length;){const Qt=n[$[Ue][0]];A1.call(Qt,$[Ue][1].type)&&Qt[$[Ue][1].type].call(Object.assign({sliceSerialize:$[Ue][2].sliceSerialize},me),$[Ue][1])}if(me.tokenStack.length>0){const Qt=me.tokenStack[me.tokenStack.length-1];(Qt[1]||jb).call(me,void 0,Qt[0])}for(W.position={start:Ri($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Ri($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<n.transforms.length;)W=n.transforms[Ue](W)||W;return W}function o($,W,me){let ye=W-1,Ue=-1,Qt=!1,Yt,ht,pt,Be;for(;++ye<=me;){const ut=$[ye];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ue++:Ue--,Be=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Yt&&!Be&&!Ue&&!pt&&(pt=ye),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!Ue&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Ue===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(Yt){let Lt=ye;for(ht=void 0;Lt--;){const zt=$[Lt];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;ht&&($[ht][1].type="lineEndingBlank",Qt=!0),zt[1].type="lineEnding",ht=Lt}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}pt&&(!ht||pt<ht)&&(Yt._spread=!0),Yt.end=Object.assign({},ht?$[ht][1].start:ut[1].end),$.splice(ht||ye,0,["exit",Yt,ut[2]]),ye++,me++}if(ut[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Yt=Lt,$.splice(ye,0,["enter",Lt,ut[2]]),ye++,me++,pt=void 0,Be=!0}}}return $[W][1]._spread=Qt,me}function s($,W){return me;function me(ye){f.call(this,$(ye),ye),W&&W.call(this,ye)}}function c(){this.stack.push({type:"fragment",children:[]})}function f($,W,me){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([W,me||void 0]),$.position={start:Ri(W.start),end:void 0}}function h($){return W;function W(me){$&&$.call(this,me),d.call(this,me)}}function d($,W){const me=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==$.type&&(W?W.call(this,$,ye[0]):(ye[1]||jb).call(this,$,ye[0]));else throw new Error("Cannot close `"+$.type+"` ("+Ho({start:$.start,end:$.end})+"): it’s not open");me.position.end=Ri($.end)}function y(){return hp(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x($){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function b(){const $=this.resume(),W=this.stack[this.stack.length-1];W.lang=$}function S(){const $=this.resume(),W=this.stack[this.stack.length-1];W.meta=$}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/(\r?\n|\r)$/g,"")}function N($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=tr(this.sliceSerialize($)).toLowerCase()}function O(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function L(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function q($){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize($).length;W.depth=me}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Y($){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function ie($){const me=this.stack[this.stack.length-1].children;let ye=me[me.length-1];(!ye||ye.type!=="text")&&(ye=_r(),ye.position={start:Ri($.start),end:void 0},me.push(ye)),this.stack.push(ye)}function z($){const W=this.stack.pop();W.value+=this.sliceSerialize($),W.position.end=Ri($.end)}function ae($){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=Ri($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(ie.call(this,$),z.call(this,$))}function te(){this.data.atHardBreak=!0}function ue(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function J(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function se(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function B(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function X(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function ne($){const W=this.sliceSerialize($),me=this.stack[this.stack.length-2];me.label=ER(W),me.identifier=tr(W).toLowerCase()}function pe(){const $=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 ye=$.children;me.children=ye}else me.alt=W}function C(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function I(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function oe(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function fe($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=tr(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function Te($){this.data.characterReferenceType=$.type}function ce($){const W=this.sliceSerialize($),me=this.data.characterReferenceType;let ye;me?(ye=K0(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=mp(W);const Ue=this.stack[this.stack.length-1];Ue.value+=ye}function st($){const W=this.stack.pop();W.position.end=Ri($.end)}function Oe($){z.call(this,$);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize($)}function Ie($){z.call(this,$);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize($)}function Ft(){return{type:"blockquote",children:[]}}function bt(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cn(){return{type:"emphasis",children:[]}}function ri(){return{type:"heading",depth:0,children:[]}}function Dt(){return{type:"break"}}function Mt(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function Ge($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function Dn($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function _r(){return{type:"text",value:""}}function ii(){return{type:"thematicBreak"}}}function Ri(e){return{line:e.line,column:e.column,offset:e.offset}}function _1(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?_1(e,l):tD(e,l)}}function tD(e,n){let i;for(i in n)if(A1.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 jb(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ho({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is still open")}function nD(e){const n=this;n.parser=i;function i(l){return Wj(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function rD(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 iD(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
251
- `}]}function lD(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 aD(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function oD(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function sD(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=_a(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 h={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,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function uD(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 cD(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function O1(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 fD(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return O1(e,n);const o={src:_a(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 dD(e,n){const i={src:_a(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 hD(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 pD(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return O1(e,n);const o={href:_a(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 mD(e,n){const i={href:_a(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 yD(e,n,i){const l=e.all(n),o=i?gD(i):R1(n),s={},c=[];if(typeof n.checked=="boolean"){const y=l[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(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 y=l[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
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 Zj(e){const l={constructs:Z0([Yj,...(e||{}).extensions||[]]),content:o(Aj),defined:[],document:o(Oj),flow:o(jj),lazy:{},string:o(Lj),text:o(zj)};return l;function o(s){return c;function c(f){return Gj(l,s,f)}}}function Jj(e){for(;!u1(e););return e}const Nb=/[\0\t\n\r]/g;function Wj(){let e=1,n="",i=!0,l;return o;function o(s,c,f){const h=[];let d,y,g,x,b;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(Nb.lastIndex=g,d=Nb.exec(s),x=d&&d.index!==void 0?d.index:s.length,b=s.charCodeAt(x),!d){n=s.slice(g);break}if(b===10&&g===x&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),g<x&&(h.push(s.slice(g,x)),e+=x-g),b){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:l=!0,e=1}g=x+1}return f&&(l&&h.push(-5),n&&h.push(n),h.push(null)),h}}const _1={}.hasOwnProperty;function eD(e,n,i){return typeof n!="string"&&(i=n,n=void 0),tD(i)(Jj(Zj(i).document().write(Wj()(e,n,!0))))}function tD(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(ri),blockQuote:s(Ft),characterEscape:ie,characterReference:ie,codeFenced:s(bt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(bt,c),codeText:s(un,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(Xn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(cn),hardBreakEscape:s(Dt),hardBreakTrailing:s(Dt),htmlFlow:s(Mt,c),htmlFlowData:ie,htmlText:s(Mt,c),htmlTextData:ie,image:s(Zn),label:c,link:s(xn),listItem:s(Dn),listItemValue:x,listOrdered:s(Ge,g),listUnordered:s(Ge),paragraph:s(Ar),reference:R,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ri),strong:s(or),thematicBreak:s(ii)},exit:{atxHeading:h(),atxHeadingSequence:q,autolink:h(),autolinkEmail:Ie,autolinkProtocol:Oe,blockQuote:h(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:st,codeFenced:h(_),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:z,codeIndented:h(A),codeText:h(se),codeTextData:z,data:z,definition:h(),definitionDestinationString:L,definitionLabelString:N,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(te),hardBreakTrailing:h(te),htmlFlow:h(ue),htmlFlowData:z,htmlText:h(J),htmlTextData:z,image:h(X),label:pe,labelText:ne,lineEnding:ae,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:C,resourceTitleString:I,resource:oe,setextHeading:h(ee),setextHeadingLineSequence:Y,setextHeadingText:M,strong:h(),thematicBreak:h()}};O1(n,(e||{}).mdastExtensions||[]);const i={};return l;function l($){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:y,data:i},ye=[];let Ue=-1;for(;++Ue<$.length;)if($[Ue][1].type==="listOrdered"||$[Ue][1].type==="listUnordered")if($[Ue][0]==="enter")ye.push(Ue);else{const Qt=ye.pop();Ue=o($,Qt,Ue)}for(Ue=-1;++Ue<$.length;){const Qt=n[$[Ue][0]];_1.call(Qt,$[Ue][1].type)&&Qt[$[Ue][1].type].call(Object.assign({sliceSerialize:$[Ue][2].sliceSerialize},me),$[Ue][1])}if(me.tokenStack.length>0){const Qt=me.tokenStack[me.tokenStack.length-1];(Qt[1]||jb).call(me,void 0,Qt[0])}for(W.position={start:Ri($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Ri($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<n.transforms.length;)W=n.transforms[Ue](W)||W;return W}function o($,W,me){let ye=W-1,Ue=-1,Qt=!1,Yt,ht,pt,Be;for(;++ye<=me;){const ut=$[ye];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ue++:Ue--,Be=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Yt&&!Be&&!Ue&&!pt&&(pt=ye),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!Ue&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Ue===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(Yt){let Lt=ye;for(ht=void 0;Lt--;){const zt=$[Lt];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;ht&&($[ht][1].type="lineEndingBlank",Qt=!0),zt[1].type="lineEnding",ht=Lt}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}pt&&(!ht||pt<ht)&&(Yt._spread=!0),Yt.end=Object.assign({},ht?$[ht][1].start:ut[1].end),$.splice(ht||ye,0,["exit",Yt,ut[2]]),ye++,me++}if(ut[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Yt=Lt,$.splice(ye,0,["enter",Lt,ut[2]]),ye++,me++,pt=void 0,Be=!0}}}return $[W][1]._spread=Qt,me}function s($,W){return me;function me(ye){f.call(this,$(ye),ye),W&&W.call(this,ye)}}function c(){this.stack.push({type:"fragment",children:[]})}function f($,W,me){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([W,me||void 0]),$.position={start:Ri(W.start),end:void 0}}function h($){return W;function W(me){$&&$.call(this,me),d.call(this,me)}}function d($,W){const me=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==$.type&&(W?W.call(this,$,ye[0]):(ye[1]||jb).call(this,$,ye[0]));else throw new Error("Cannot close `"+$.type+"` ("+Ho({start:$.start,end:$.end})+"): it’s not open");me.position.end=Ri($.end)}function y(){return hp(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x($){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function b(){const $=this.resume(),W=this.stack[this.stack.length-1];W.lang=$}function S(){const $=this.resume(),W=this.stack[this.stack.length-1];W.meta=$}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/(\r?\n|\r)$/g,"")}function N($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=tr(this.sliceSerialize($)).toLowerCase()}function O(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function L(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function q($){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize($).length;W.depth=me}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Y($){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function ie($){const me=this.stack[this.stack.length-1].children;let ye=me[me.length-1];(!ye||ye.type!=="text")&&(ye=_r(),ye.position={start:Ri($.start),end:void 0},me.push(ye)),this.stack.push(ye)}function z($){const W=this.stack.pop();W.value+=this.sliceSerialize($),W.position.end=Ri($.end)}function ae($){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=Ri($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(ie.call(this,$),z.call(this,$))}function te(){this.data.atHardBreak=!0}function ue(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function J(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function se(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function B(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function X(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function ne($){const W=this.sliceSerialize($),me=this.stack[this.stack.length-2];me.label=TR(W),me.identifier=tr(W).toLowerCase()}function pe(){const $=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 ye=$.children;me.children=ye}else me.alt=W}function C(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function I(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function oe(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function fe($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=tr(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function Te($){this.data.characterReferenceType=$.type}function ce($){const W=this.sliceSerialize($),me=this.data.characterReferenceType;let ye;me?(ye=X0(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=mp(W);const Ue=this.stack[this.stack.length-1];Ue.value+=ye}function st($){const W=this.stack.pop();W.position.end=Ri($.end)}function Oe($){z.call(this,$);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize($)}function Ie($){z.call(this,$);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize($)}function Ft(){return{type:"blockquote",children:[]}}function bt(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cn(){return{type:"emphasis",children:[]}}function ri(){return{type:"heading",depth:0,children:[]}}function Dt(){return{type:"break"}}function Mt(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function Ge($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function Dn($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function _r(){return{type:"text",value:""}}function ii(){return{type:"thematicBreak"}}}function Ri(e){return{line:e.line,column:e.column,offset:e.offset}}function O1(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?O1(e,l):nD(e,l)}}function nD(e,n){let i;for(i in n)if(_1.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 jb(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ho({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is still open")}function rD(e){const n=this;n.parser=i;function i(l){return eD(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function iD(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 lD(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
251
+ `}]}function aD(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 oD(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function sD(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function uD(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=_a(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 h={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,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function cD(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 fD(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function R1(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 dD(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return R1(e,n);const o={src:_a(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 hD(e,n){const i={src:_a(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 pD(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 mD(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return R1(e,n);const o={href:_a(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 yD(e,n){const i={href:_a(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 gD(e,n,i){const l=e.all(n),o=i?vD(i):N1(n),s={},c=[];if(typeof n.checked=="boolean"){const y=l[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(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 y=l[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
253
253
  `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=l[l.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
254
- `});const d={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,d),e.applyData(n,d)}function gD(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=R1(i[l])}return n}function R1(e){const n=e.spread;return n??e.children.length>1}function vD(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 bD(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function xD(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function SD(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function wD(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=xp(n.children[1]),h=b1(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),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 CD(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 h=-1;const d=[];for(;++h<f;){const g=n.children[h],x={},b=c?c[h]:void 0;b&&(x.align=b);let S={type:"element",tagName:s,properties:x,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),d.push(S)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,y),e.applyData(n,y)}function ED(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const Db=9,Mb=32;function TD(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),o=0;const s=[];for(;l;)s.push(Lb(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(n);return s.push(Lb(n.slice(o),o>0,!1)),s.join("")}function Lb(e,n,i){let l=0,o=e.length;if(n){let s=e.codePointAt(l);for(;s===Db||s===Mb;)l++,s=e.codePointAt(l)}if(i){let s=e.codePointAt(o-1);for(;s===Db||s===Mb;)o--,s=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function kD(e,n){const i={type:"text",value:TD(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function AD(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const _D={blockquote:rD,break:iD,code:lD,delete:aD,emphasis:oD,footnoteReference:sD,heading:uD,html:cD,imageReference:fD,image:dD,inlineCode:hD,linkReference:pD,link:mD,listItem:yD,list:vD,paragraph:bD,root:xD,strong:SD,table:wD,tableCell:ED,tableRow:CD,text:kD,thematicBreak:AD,toml:Su,yaml:Su,definition:Su,footnoteDefinition:Su};function Su(){}const N1=-1,xc=0,Fo=1,Xu=2,Ep=3,Tp=4,kp=5,Ap=6,j1=7,D1=8,zb=typeof self=="object"?self:globalThis,OD=(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 xc:case N1:return i(c,o);case Fo:{const f=i([],o);for(const h of c)f.push(l(h));return f}case Xu:{const f=i({},o);for(const[h,d]of c)f[l(h)]=l(d);return f}case Ep:return i(new Date(c),o);case Tp:{const{source:f,flags:h}=c;return i(new RegExp(f,h),o)}case kp:{const f=i(new Map,o);for(const[h,d]of c)f.set(l(h),l(d));return f}case Ap:{const f=i(new Set,o);for(const h of c)f.add(l(h));return f}case j1:{const{name:f,message:h}=c;return i(new zb[f](h),o)}case D1: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 zb[s](c),o)};return l},Ub=e=>OD(new Map,e)(0),aa="",{toString:RD}={},{keys:ND}=Object,Lo=e=>{const n=typeof e;if(n!=="object"||!e)return[xc,n];const i=RD.call(e).slice(8,-1);switch(i){case"Array":return[Fo,aa];case"Object":return[Xu,aa];case"Date":return[Ep,aa];case"RegExp":return[Tp,aa];case"Map":return[kp,aa];case"Set":return[Ap,aa];case"DataView":return[Fo,i]}return i.includes("Array")?[Fo,i]:i.includes("Error")?[j1,i]:[Xu,i]},wu=([e,n])=>e===xc&&(n==="function"||n==="symbol"),jD=(e,n,i,l)=>{const o=(c,f)=>{const h=l.push(c)-1;return i.set(f,h),h},s=c=>{if(i.has(c))return i.get(c);let[f,h]=Lo(c);switch(f){case xc:{let y=c;switch(h){case"bigint":f=D1,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([N1],c)}return o([f,y],c)}case Fo:{if(h){let x=c;return h==="DataView"?x=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(c)),o([h,[...x]],c)}const y=[],g=o([f,y],c);for(const x of c)y.push(s(x));return g}case Xu:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([f,y],c);for(const x of ND(c))(e||!wu(Lo(c[x])))&&y.push([s(x),s(c[x])]);return g}case Ep:return o([f,c.toISOString()],c);case Tp:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case kp:{const y=[],g=o([f,y],c);for(const[x,b]of c)(e||!(wu(Lo(x))||wu(Lo(b))))&&y.push([s(x),s(b)]);return g}case Ap:{const y=[],g=o([f,y],c);for(const x of c)(e||!wu(Lo(x)))&&y.push(s(x));return g}}const{message:d}=c;return o([f,{name:h,message:d}],c)};return s},Bb=(e,{json:n,lossy:i}={})=>{const l=[];return jD(!(n||i),!!n,new Map,l)(e),l},Zu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Ub(Bb(e,n)):structuredClone(e):(e,n)=>Ub(Bb(e,n));function DD(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 MD(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function LD(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||DD,l=e.options.footnoteBackLabel||MD,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const y=e.all(d),g=String(d.identifier).toUpperCase(),x=_a(g.toLowerCase());let b=0;const S=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++b<=k;){S.length>0&&S.push({type:"text",value:" "});let N=typeof i=="string"?i:i(h,b);typeof N=="string"&&(N={type:"text",value:N}),S.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=y[y.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(...S)}else y.push(...S);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(y,!0)};e.patch(d,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Zu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
254
+ `});const d={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,d),e.applyData(n,d)}function vD(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=N1(i[l])}return n}function N1(e){const n=e.spread;return n??e.children.length>1}function bD(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 xD(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function SD(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function wD(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function CD(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=xp(n.children[1]),h=x1(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),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 ED(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 h=-1;const d=[];for(;++h<f;){const g=n.children[h],x={},b=c?c[h]:void 0;b&&(x.align=b);let S={type:"element",tagName:s,properties:x,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),d.push(S)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,y),e.applyData(n,y)}function TD(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const Db=9,Mb=32;function kD(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),o=0;const s=[];for(;l;)s.push(Lb(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(n);return s.push(Lb(n.slice(o),o>0,!1)),s.join("")}function Lb(e,n,i){let l=0,o=e.length;if(n){let s=e.codePointAt(l);for(;s===Db||s===Mb;)l++,s=e.codePointAt(l)}if(i){let s=e.codePointAt(o-1);for(;s===Db||s===Mb;)o--,s=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function AD(e,n){const i={type:"text",value:kD(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function _D(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const OD={blockquote:iD,break:lD,code:aD,delete:oD,emphasis:sD,footnoteReference:uD,heading:cD,html:fD,imageReference:dD,image:hD,inlineCode:pD,linkReference:mD,link:yD,listItem:gD,list:bD,paragraph:xD,root:SD,strong:wD,table:CD,tableCell:TD,tableRow:ED,text:AD,thematicBreak:_D,toml:Su,yaml:Su,definition:Su,footnoteDefinition:Su};function Su(){}const j1=-1,xc=0,Fo=1,Xu=2,Ep=3,Tp=4,kp=5,Ap=6,D1=7,M1=8,zb=typeof self=="object"?self:globalThis,RD=(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 xc:case j1:return i(c,o);case Fo:{const f=i([],o);for(const h of c)f.push(l(h));return f}case Xu:{const f=i({},o);for(const[h,d]of c)f[l(h)]=l(d);return f}case Ep:return i(new Date(c),o);case Tp:{const{source:f,flags:h}=c;return i(new RegExp(f,h),o)}case kp:{const f=i(new Map,o);for(const[h,d]of c)f.set(l(h),l(d));return f}case Ap:{const f=i(new Set,o);for(const h of c)f.add(l(h));return f}case D1:{const{name:f,message:h}=c;return i(new zb[f](h),o)}case M1: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 zb[s](c),o)};return l},Ub=e=>RD(new Map,e)(0),aa="",{toString:ND}={},{keys:jD}=Object,Lo=e=>{const n=typeof e;if(n!=="object"||!e)return[xc,n];const i=ND.call(e).slice(8,-1);switch(i){case"Array":return[Fo,aa];case"Object":return[Xu,aa];case"Date":return[Ep,aa];case"RegExp":return[Tp,aa];case"Map":return[kp,aa];case"Set":return[Ap,aa];case"DataView":return[Fo,i]}return i.includes("Array")?[Fo,i]:i.includes("Error")?[D1,i]:[Xu,i]},wu=([e,n])=>e===xc&&(n==="function"||n==="symbol"),DD=(e,n,i,l)=>{const o=(c,f)=>{const h=l.push(c)-1;return i.set(f,h),h},s=c=>{if(i.has(c))return i.get(c);let[f,h]=Lo(c);switch(f){case xc:{let y=c;switch(h){case"bigint":f=M1,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([j1],c)}return o([f,y],c)}case Fo:{if(h){let x=c;return h==="DataView"?x=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(c)),o([h,[...x]],c)}const y=[],g=o([f,y],c);for(const x of c)y.push(s(x));return g}case Xu:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([f,y],c);for(const x of jD(c))(e||!wu(Lo(c[x])))&&y.push([s(x),s(c[x])]);return g}case Ep:return o([f,c.toISOString()],c);case Tp:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case kp:{const y=[],g=o([f,y],c);for(const[x,b]of c)(e||!(wu(Lo(x))||wu(Lo(b))))&&y.push([s(x),s(b)]);return g}case Ap:{const y=[],g=o([f,y],c);for(const x of c)(e||!wu(Lo(x)))&&y.push(s(x));return g}}const{message:d}=c;return o([f,{name:h,message:d}],c)};return s},Bb=(e,{json:n,lossy:i}={})=>{const l=[];return DD(!(n||i),!!n,new Map,l)(e),l},Zu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Ub(Bb(e,n)):structuredClone(e):(e,n)=>Ub(Bb(e,n));function MD(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 LD(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function zD(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||MD,l=e.options.footnoteBackLabel||LD,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const y=e.all(d),g=String(d.identifier).toUpperCase(),x=_a(g.toLowerCase());let b=0;const S=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++b<=k;){S.length>0&&S.push({type:"text",value:" "});let N=typeof i=="string"?i:i(h,b);typeof N=="string"&&(N={type:"text",value:N}),S.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=y[y.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(...S)}else y.push(...S);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(y,!0)};e.patch(d,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Zu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
255
255
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
256
- `}]}}const Bh={}.hasOwnProperty,zD={};function UD(e,n){const i=n||zD,l=new Map,o=new Map,s=new Map,c={..._D,...i.handlers},f={all:d,applyData:qD,definitionById:l,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:i,patch:BD,wrap:FD};return dp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?l:o,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),f;function h(y,g){const x=y.type,b=f.handlers[x];if(Bh.call(f.handlers,x)&&b)return b(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in y){const{children:k,..._}=y,A=Zu(_);return A.children=f.all(y),A}return Zu(y)}return(f.options.unknownHandler||HD)(f,y,g)}function d(y){const g=[];if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const S=f.one(x[b],y);if(S){if(b&&x[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=qb(S.value)),!Array.isArray(S)&&S.type==="element")){const k=S.children[0];k&&k.type==="text"&&(k.value=qb(k.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function BD(e,n){e.position&&(n.position=lj(e))}function qD(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,Zu(s)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function HD(e,n){const i=n.data||{},l="value"in n&&!(Bh.call(i,"hProperties")||Bh.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 FD(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
256
+ `}]}}const Bh={}.hasOwnProperty,UD={};function BD(e,n){const i=n||UD,l=new Map,o=new Map,s=new Map,c={...OD,...i.handlers},f={all:d,applyData:HD,definitionById:l,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:i,patch:qD,wrap:QD};return dp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?l:o,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),f;function h(y,g){const x=y.type,b=f.handlers[x];if(Bh.call(f.handlers,x)&&b)return b(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in y){const{children:k,..._}=y,A=Zu(_);return A.children=f.all(y),A}return Zu(y)}return(f.options.unknownHandler||FD)(f,y,g)}function d(y){const g=[];if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const S=f.one(x[b],y);if(S){if(b&&x[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=qb(S.value)),!Array.isArray(S)&&S.type==="element")){const k=S.children[0];k&&k.type==="text"&&(k.value=qb(k.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function qD(e,n){e.position&&(n.position=aj(e))}function HD(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,Zu(s)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function FD(e,n){const i=n.data||{},l="value"in n&&!(Bh.call(i,"hProperties")||Bh.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 QD(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
257
257
  `});++l<e.length;)l&&i.push({type:"text",value:`
258
258
  `}),i.push(e[l]);return n&&e.length>0&&i.push({type:"text",value:`
259
- `}),i}function qb(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function Hb(e,n){const i=UD(e,n),l=i.one(e,void 0),o=LD(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 QD(e,n){return e&&"run"in e?async function(i,l){const o=Hb(i,{file:l,...n});await e.run(o,l)}:function(i,l){return Hb(i,{file:l,...e||n})}}function Fb(e){if(e)throw e}var Jd,Qb;function PD(){if(Qb)return Jd;Qb=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!g)return!1;var x;for(x in d);return typeof x>"u"||e.call(d,x)},c=function(d,y){i&&y.name==="__proto__"?i(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(l)return l(d,y).value}else return;return d[y]};return Jd=function h(){var d,y,g,x,b,S,k=arguments[0],_=1,A=arguments.length,N=!1;for(typeof k=="boolean"&&(N=k,k=arguments[1]||{},_=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});_<A;++_)if(d=arguments[_],d!=null)for(y in d)g=f(k,y),x=f(d,y),k!==x&&(N&&x&&(s(x)||(b=o(x)))?(b?(b=!1,S=g&&o(g)?g:[]):S=g&&s(g)?g:{},c(k,{name:y,newValue:h(N,S,x)})):typeof x<"u"&&c(k,{name:y,newValue:x}));return k},Jd}var ID=PD();const Wd=ba(ID);function qh(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 VD(){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(h,...d){const y=e[++s];let g=-1;if(h){c(h);return}for(;++g<o.length;)(d[g]===null||d[g]===void 0)&&(d[g]=o[g]);o=d,y?$D(y,f)(...d):c(null,...d)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function $D(e,n){let i;return l;function l(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(d){const y=d;if(f&&i)throw y;return o(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...f){i||(i=!0,n(c,...f))}function s(c){o(null,c)}}const yr={basename:YD,dirname:GD,extname:KD,join:XD,sep:"/"};function YD(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ls(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 GD(e){if(ls(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 KD(e){ls(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 XD(...e){let n=-1,i;for(;++n<e.length;)ls(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":ZD(i)}function ZD(e){ls(e);const n=e.codePointAt(0)===47;let i=JD(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function JD(e,n){let i="",l=0,o=-1,s=0,c=-1,f,h;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(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",l=0):(i=i.slice(0,h),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 ls(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const WD={cwd:eM};function eM(){return"/"}function Hh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tM(e){if(typeof e=="string")e=new URL(e);else if(!Hh(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 nM(e)}function nM(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 eh=["history","path","basename","stem","extname","dirname"];class M1{constructor(n){let i;n?Hh(n)?i={path:n}:typeof n=="string"||rM(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":WD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<eh.length;){const s=eh[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)eh.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?yr.basename(this.path):void 0}set basename(n){nh(n,"basename"),th(n,"basename"),this.path=yr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?yr.dirname(this.path):void 0}set dirname(n){Pb(this.basename,"dirname"),this.path=yr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?yr.extname(this.path):void 0}set extname(n){if(th(n,"extname"),Pb(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=yr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Hh(n)&&(n=tM(n)),nh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?yr.basename(this.path,this.extname):void 0}set stem(n){nh(n,"stem"),th(n,"stem"),this.path=yr.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 th(e,n){if(e&&e.includes(yr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+yr.sep+"`")}function nh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Pb(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function rM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iM=function(e){const l=this.constructor.prototype,o=l[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,l),s},lM={}.hasOwnProperty;class _p extends iM{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=VD()}copy(){const n=new _p;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(Wd(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(lh("data",this.frozen),this.namespace[n]=i,this):lM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(lh("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=Cu(n),l=this.parser||this.Parser;return rh("parse",l),l(String(i),i)}process(n,i){const l=this;return this.freeze(),rh("process",this.parser||this.Parser),ih("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(s,c){const f=Cu(n),h=l.parse(f);l.run(h,f,function(y,g,x){if(y||!g||!x)return d(y);const b=g,S=l.stringify(b,x);sM(S)?x.value=S:x.result=S,d(y,x)});function d(y,g){y||!g?c(y):s?s(g):i(void 0,g)}}}processSync(n){let i=!1,l;return this.freeze(),rh("processSync",this.parser||this.Parser),ih("processSync",this.compiler||this.Compiler),this.process(n,o),Vb("processSync","process",i),l;function o(s,c){i=!0,Fb(s),l=c}}run(n,i,l){Ib(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 h=Cu(i);o.run(n,h,d);function d(y,g,x){const b=g||n;y?f(y):c?c(b):l(void 0,b,x)}}}runSync(n,i){let l=!1,o;return this.run(n,i,s),Vb("runSync","run",l),o;function s(c,f){Fb(c),o=f,l=!0}}stringify(n,i){this.freeze();const l=Cu(i),o=this.compiler||this.Compiler;return ih("stringify",o),Ib(n),o(n,l)}use(n,...i){const l=this.attachers,o=this.namespace;if(lh("use",this.frozen),n!=null)if(typeof n=="function")h(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(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...g]=d;h(y,g)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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(d.plugins),d.settings&&(o.settings=Wd(!0,o.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const g=d[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let g=-1,x=-1;for(;++g<l.length;)if(l[g][0]===d){x=g;break}if(x===-1)l.push([d,...y]);else if(y.length>0){let[b,...S]=y;const k=l[x][1];qh(k)&&qh(b)&&(b=Wd(!0,k,b)),l[x]=[d,b,...S]}}}}const aM=new _p().freeze();function rh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ih(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lh(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 Ib(e){if(!qh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vb(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Cu(e){return oM(e)?e:new M1(e)}function oM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sM(e){return typeof e=="string"||uM(e)}function uM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$b=[],Yb={allowDangerousHtml:!0},fM=/^(https?|ircs?|mailto|xmpp)$/i,dM=[{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 hM(e){const n=pM(e),i=mM(e);return yM(n.runSync(n.parse(i),i),e)}function pM(e){const n=e.rehypePlugins||$b,i=e.remarkPlugins||$b,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yb}:Yb;return aM().use(nD).use(i).use(QD,l).use(n)}function mM(e){const n=e.children||"",i=new M1;return typeof n=="string"&&(i.value=n),i}function yM(e,n){const i=n.allowedElements,l=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||gM;for(const y of dM)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+cM+y.id,void 0);return dp(e,d),cj(e,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function d(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in Zd)if(Object.hasOwn(Zd,b)&&Object.hasOwn(y.properties,b)){const S=y.properties[b],k=Zd[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=h(String(S||""),b,y))}}if(y.type==="element"){let b=i?!i.includes(y.tagName):s?s.includes(y.tagName):!1;if(!b&&l&&typeof g=="number"&&(b=!l(y,g,x)),b&&x&&typeof g=="number")return f&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function gM(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||fM.test(e.slice(0,n))?e:""}const vM=({children:e,...n})=>v.jsx("code",{className:"bg-gray-100 text-gray-600 px-1.5 py-0.5 rounded text-sm font-mono",...n,children:e}),bM=e=>Array.isArray(e)&&typeof e[0]=="string"?e[0]:typeof e=="string"?e:"",xM=({getText:e})=>{const n=async()=>{await navigator.clipboard.writeText(e()),Zr.success("Copied!")};return v.jsx("button",{onClick:n,className:"text-xs text-white px-2 py-1 rounded hover:bg-gray-600 cursor-pointer",children:"📋"})},SM=({children:e,className:n,...i})=>{const l=(n==null?void 0:n.replace("language-",""))||"";return v.jsxs("div",{className:"mb-4 not-prose",children:[l&&v.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:[v.jsx("span",{children:l}),v.jsx(xM,{getText:()=>bM(e).trim()})]}),v.jsx("pre",{className:`bg-gray-900 text-gray-100 p-4 overflow-x-auto ${l?"rounded-b-md":"rounded-md"}`,...i,children:v.jsx("code",{className:"font-mono text-sm",children:e})})]})},wM={code:({className:e,children:n,...i})=>e?v.jsx(SM,{className:e,...i,children:n}):v.jsx(vM,{...i,children:n}),pre:({children:e})=>v.jsx(v.Fragment,{children:e})},Ju=({content:e})=>v.jsx("div",{className:"prose max-w-none",children:v.jsx(hM,{remarkPlugins:[L2],components:wM,children:e})}),CM=`# 🍜 DataRamen\r
259
+ `}),i}function qb(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function Hb(e,n){const i=BD(e,n),l=i.one(e,void 0),o=zD(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 PD(e,n){return e&&"run"in e?async function(i,l){const o=Hb(i,{file:l,...n});await e.run(o,l)}:function(i,l){return Hb(i,{file:l,...e||n})}}function Fb(e){if(e)throw e}var Jd,Qb;function ID(){if(Qb)return Jd;Qb=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!g)return!1;var x;for(x in d);return typeof x>"u"||e.call(d,x)},c=function(d,y){i&&y.name==="__proto__"?i(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(l)return l(d,y).value}else return;return d[y]};return Jd=function h(){var d,y,g,x,b,S,k=arguments[0],_=1,A=arguments.length,N=!1;for(typeof k=="boolean"&&(N=k,k=arguments[1]||{},_=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});_<A;++_)if(d=arguments[_],d!=null)for(y in d)g=f(k,y),x=f(d,y),k!==x&&(N&&x&&(s(x)||(b=o(x)))?(b?(b=!1,S=g&&o(g)?g:[]):S=g&&s(g)?g:{},c(k,{name:y,newValue:h(N,S,x)})):typeof x<"u"&&c(k,{name:y,newValue:x}));return k},Jd}var VD=ID();const Wd=ba(VD);function qh(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 $D(){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(h,...d){const y=e[++s];let g=-1;if(h){c(h);return}for(;++g<o.length;)(d[g]===null||d[g]===void 0)&&(d[g]=o[g]);o=d,y?YD(y,f)(...d):c(null,...d)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function YD(e,n){let i;return l;function l(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(d){const y=d;if(f&&i)throw y;return o(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...f){i||(i=!0,n(c,...f))}function s(c){o(null,c)}}const yr={basename:GD,dirname:KD,extname:XD,join:ZD,sep:"/"};function GD(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ls(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 KD(e){if(ls(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 XD(e){ls(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 ZD(...e){let n=-1,i;for(;++n<e.length;)ls(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":JD(i)}function JD(e){ls(e);const n=e.codePointAt(0)===47;let i=WD(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function WD(e,n){let i="",l=0,o=-1,s=0,c=-1,f,h;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(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",l=0):(i=i.slice(0,h),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 ls(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const eM={cwd:tM};function tM(){return"/"}function Hh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function nM(e){if(typeof e=="string")e=new URL(e);else if(!Hh(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 rM(e)}function rM(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 eh=["history","path","basename","stem","extname","dirname"];class L1{constructor(n){let i;n?Hh(n)?i={path:n}:typeof n=="string"||iM(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":eM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<eh.length;){const s=eh[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)eh.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?yr.basename(this.path):void 0}set basename(n){nh(n,"basename"),th(n,"basename"),this.path=yr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?yr.dirname(this.path):void 0}set dirname(n){Pb(this.basename,"dirname"),this.path=yr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?yr.extname(this.path):void 0}set extname(n){if(th(n,"extname"),Pb(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=yr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Hh(n)&&(n=nM(n)),nh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?yr.basename(this.path,this.extname):void 0}set stem(n){nh(n,"stem"),th(n,"stem"),this.path=yr.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 th(e,n){if(e&&e.includes(yr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+yr.sep+"`")}function nh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Pb(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function iM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lM=function(e){const l=this.constructor.prototype,o=l[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,l),s},aM={}.hasOwnProperty;class _p extends lM{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=$D()}copy(){const n=new _p;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(Wd(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(lh("data",this.frozen),this.namespace[n]=i,this):aM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(lh("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=Cu(n),l=this.parser||this.Parser;return rh("parse",l),l(String(i),i)}process(n,i){const l=this;return this.freeze(),rh("process",this.parser||this.Parser),ih("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(s,c){const f=Cu(n),h=l.parse(f);l.run(h,f,function(y,g,x){if(y||!g||!x)return d(y);const b=g,S=l.stringify(b,x);uM(S)?x.value=S:x.result=S,d(y,x)});function d(y,g){y||!g?c(y):s?s(g):i(void 0,g)}}}processSync(n){let i=!1,l;return this.freeze(),rh("processSync",this.parser||this.Parser),ih("processSync",this.compiler||this.Compiler),this.process(n,o),Vb("processSync","process",i),l;function o(s,c){i=!0,Fb(s),l=c}}run(n,i,l){Ib(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 h=Cu(i);o.run(n,h,d);function d(y,g,x){const b=g||n;y?f(y):c?c(b):l(void 0,b,x)}}}runSync(n,i){let l=!1,o;return this.run(n,i,s),Vb("runSync","run",l),o;function s(c,f){Fb(c),o=f,l=!0}}stringify(n,i){this.freeze();const l=Cu(i),o=this.compiler||this.Compiler;return ih("stringify",o),Ib(n),o(n,l)}use(n,...i){const l=this.attachers,o=this.namespace;if(lh("use",this.frozen),n!=null)if(typeof n=="function")h(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(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...g]=d;h(y,g)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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(d.plugins),d.settings&&(o.settings=Wd(!0,o.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const g=d[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let g=-1,x=-1;for(;++g<l.length;)if(l[g][0]===d){x=g;break}if(x===-1)l.push([d,...y]);else if(y.length>0){let[b,...S]=y;const k=l[x][1];qh(k)&&qh(b)&&(b=Wd(!0,k,b)),l[x]=[d,b,...S]}}}}const oM=new _p().freeze();function rh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ih(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lh(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 Ib(e){if(!qh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vb(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Cu(e){return sM(e)?e:new L1(e)}function sM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uM(e){return typeof e=="string"||cM(e)}function cM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$b=[],Yb={allowDangerousHtml:!0},dM=/^(https?|ircs?|mailto|xmpp)$/i,hM=[{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 pM(e){const n=mM(e),i=yM(e);return gM(n.runSync(n.parse(i),i),e)}function mM(e){const n=e.rehypePlugins||$b,i=e.remarkPlugins||$b,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yb}:Yb;return oM().use(rD).use(i).use(PD,l).use(n)}function yM(e){const n=e.children||"",i=new L1;return typeof n=="string"&&(i.value=n),i}function gM(e,n){const i=n.allowedElements,l=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||vM;for(const y of hM)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+fM+y.id,void 0);return dp(e,d),fj(e,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function d(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in Zd)if(Object.hasOwn(Zd,b)&&Object.hasOwn(y.properties,b)){const S=y.properties[b],k=Zd[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=h(String(S||""),b,y))}}if(y.type==="element"){let b=i?!i.includes(y.tagName):s?s.includes(y.tagName):!1;if(!b&&l&&typeof g=="number"&&(b=!l(y,g,x)),b&&x&&typeof g=="number")return f&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function vM(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||dM.test(e.slice(0,n))?e:""}const bM=({children:e,...n})=>v.jsx("code",{className:"bg-gray-100 text-gray-600 px-1.5 py-0.5 rounded text-sm font-mono",...n,children:e}),xM=e=>Array.isArray(e)&&typeof e[0]=="string"?e[0]:typeof e=="string"?e:"",SM=({getText:e})=>{const n=async()=>{await navigator.clipboard.writeText(e()),Zr.success("Copied!")};return v.jsx("button",{onClick:n,className:"text-xs text-white px-2 py-1 rounded hover:bg-gray-600 cursor-pointer",children:"📋"})},wM=({children:e,className:n,...i})=>{const l=(n==null?void 0:n.replace("language-",""))||"";return v.jsxs("div",{className:"mb-4 not-prose",children:[l&&v.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:[v.jsx("span",{children:l}),v.jsx(SM,{getText:()=>xM(e).trim()})]}),v.jsx("pre",{className:`bg-gray-900 text-gray-100 p-4 overflow-x-auto ${l?"rounded-b-md":"rounded-md"}`,...i,children:v.jsx("code",{className:"font-mono text-sm",children:e})})]})},CM={code:({className:e,children:n,...i})=>e?v.jsx(wM,{className:e,...i,children:n}):v.jsx(bM,{...i,children:n}),pre:({children:e})=>v.jsx(v.Fragment,{children:e})},Ju=({content:e})=>v.jsx("div",{className:"prose max-w-none",children:v.jsx(pM,{remarkPlugins:[z2],components:CM,children:e})}),EM=`# 🍜 DataRamen\r
261
261
  \r
262
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
263
  \r
@@ -283,14 +283,14 @@ Once you have completed [Prerequisites](#prerequisites) and [Install](#install)
283
283
  \`\`\`bash\r
284
284
  dataramen start\r
285
285
  \`\`\`\r
286
- `,EM=()=>v.jsx("div",{className:"card-white",children:v.jsx(Ju,{content:CM})}),Gb={active:!1,version:""};async function TM(){try{const{data:e}=await uA.get("/status",{timeout:500,validateStatus:()=>!0});return(e==null?void 0:e.data)||Gb}catch{return Gb}}function kM(){const e=Ot.getQueryState([Mi]);(e==null?void 0:e.status)==="error"&&Ot.invalidateQueries({queryKey:[Mi]})}function AM(){const e=Ot.getQueryState([Mi]);(e==null?void 0:e.status)==="success"&&Ot.resetQueries({queryKey:[Mi]})}const Op=()=>Gn({queryKey:["local-server-status"],queryFn:TM,onSuccess:({active:e})=>{e?kM():AM()},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}),_M=()=>{const{data:e}=zi(),n=hc(),{data:i}=Op(),{data:l}=mA({teamId:e==null?void 0:e.currentTeam.id}),o=!!l&&l.length>0,s=!!e;return!e||(i==null?void 0:i.active)===!1?v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsx("div",{className:"page-content",children:v.jsx(EM,{})})}):v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsxs("div",{className:"page-content h-full",children:[o&&v.jsx(j_,{}),s&&n.length>0&&v.jsx(__,{}),s&&!o&&v.jsx(vr,{variant:"warning",className:"mt-2 font-semibold",children:"Connect at least one datasource to start using DataRamen"}),s&&v.jsx(Y_,{})]})})},OM=()=>{const{data:e}=S0();return Gn([v0],async()=>{const{data:n}=await vt.get("/teams");return n.data},{enabled:!!e})},RM=()=>Cr(async e=>{const{data:n}=await vt.post("/teams",e);return n.data},{onSuccess:e=>{Ot.setQueryData([v0],n=>n?[...n,e]:[e]),Ot.invalidateQueries([Mi])}}),NM="_container_1gfta_2",jM={container:NM},Kb=["```bash\ndataramen logs\n```","```bash\ndataramen stop\n```"],DM=()=>{const{data:e}=zi(),n=bA(),{close:i}=up(),{data:l}=OM(),o=RM(),{data:s}=Op(),c=()=>{const h=prompt("Team name");h&&o.mutate({name:h})},f=h=>{n.mutate(h.currentTarget.value)};return v.jsxs("div",{className:Qe("page-container",jM.container),children:[v.jsx(Kn,{onClick:i}),v.jsxs("div",{className:"form",children:[v.jsx("h2",{className:"text-xl font-semibold",children:"🪪 Team"}),v.jsx("p",{className:"text-sm",children:"You can configure multiple teams. Queries, data sources and workbench tabs are saved per team."}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("select",{className:"flex-1 input",disabled:n.isLoading,onChange:f,value:e==null?void 0:e.currentTeam.id,children:l==null?void 0:l.map(h=>v.jsx("option",{value:h.id,children:h.name},h.id))}),v.jsx("button",{className:"button tertiary",disabled:n.isLoading,onClick:c,children:"Create new team"})]}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"🌐 API server"}),v.jsx("div",{className:"flex gap-1",children:v.jsxs("ul",{children:[v.jsxs("li",{children:["🔗 API URL: ","http://localhost:4466"]}),v.jsxs("li",{children:["🏷️ API version: ",s==null?void 0:s.version]}),v.jsx("li",{children:s!=null&&s.active?"✅ Connected":"❌ Not connected"})]})}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"💻 CLI commands"}),v.jsxs("div",{children:[v.jsx(Ju,{content:Kb[0]}),v.jsx(Ju,{content:Kb[1]})]})]})]})},[MM,Rp]=Er(void 0),LM=()=>Rp(void 0);function fl(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 L1=e=>`${e.fn} (${e.column})`,zM=e=>{var i;const n=((i=e.value)==null?void 0:i.map(l=>l.value).join(", "))||"";return`${e.column} ${e.operator} ${n}`};function dl(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}const UM="_container_468eu_2",BM="_header_468eu_2",qM="_fields-container_468eu_2",HM="_field-label_468eu_2",FM="_actions_468eu_2",zo={container:UM,header:BM,fieldsContainer:qM,fieldLabel:HM,actions:FM},QM=({searchAll:e,table:n,datasourceId:i,filters:l,joins:o,orderBy:s,groupBy:c,columns:f,page:h=0,size:d=20})=>Gn({queryKey:["explorer",i,n,h,d,l,o,s,c,f,e],queryFn:async()=>{const{data:y}=await vt.post("/runner/sql",{datasourceId:i,table:n,filters:l,joins:o,orderBy:s,page:h,size:d,columns:f,groupBy:c,searchAll:e});return y.data},retry:1,enabled:!!n&&!!i,keepPreviousData:!0,staleTime:0,cacheTime:0}),PM=(e,n,i)=>Gn({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 vt.post("/runner/sql",{datasourceId:e,table:n,filters:l,size:1,page:0});return o.data},retry:1,enabled:!!n&&!!e&&!!i,staleTime:0,cacheTime:0}),IM=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/update",e);return n.data}}),VM=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/insert",e);return n.data}}),Np=e=>E.useMemo(()=>{var n,i,l;if(e)return e instanceof lA?(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]),$M=({data:e})=>{const[n,{change:i,touched:l}]=cp({}),{mutateAsync:o,error:s}=VM(),c=Np(s),{data:f}=Aa(e.dataSourceId),[h,d]=E.useState(""),y=E.useMemo(()=>f==null?void 0:f.find(b=>b.tableName===e.table),[f,e.table]),g=E.useMemo(()=>{if(!y)return[];if(!h)return y.columns.map(S=>({...S,label:dl(S.name)}));const b=h.toLowerCase();return y.columns.filter(S=>S.name.toLowerCase().includes(b)).map(S=>({...S,label:dl(S.name)}))},[h,y]),x=()=>{const b=[];for(const S of l)b.push({value:n[S],column:S});o({datasourceId:e.dataSourceId,table:e.table,values:b}).then(LM)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:zo.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",v.jsx("span",{className:"underline",children:e.table})]}),c&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:c})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:zo.container,children:v.jsx("div",{className:zo.fieldsContainer,children:g.map(b=>v.jsxs("label",{className:zo.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[b.isPrimary?"🔐":"🏷️"," ",b.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",b.name,": ",b.type,"]"]})]}),v.jsx("input",{className:"input w-full",value:fl(n[b.name]),onChange:i(b.name),placeholder:b.name})]},b.name))})}),v.jsxs("div",{className:zo.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:h,onChange:b=>d(b.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!l.length,className:"button primary",onClick:x,children:"Run insert"})]})]})},YM=()=>{const e=MM(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Rp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx($M,{data:n})]})},[GM,jp]=Er(void 0),KM=()=>jp(void 0),XM="_container_1fyct_2",ZM="_header_1fyct_2",JM="_key_1fyct_2",WM="_fields-container_1fyct_2",e3="_field-label_1fyct_2",t3="_actions_1fyct_2",oa={container:XM,header:ZM,key:JM,fieldsContainer:WM,fieldLabel:e3,actions:t3},n3=({data:e})=>{const[n,{change:i,set:l,reset:o,touched:s}]=cp({}),[c,f]=E.useState(""),{data:h,isLoading:d}=PM(e.dataSourceId,e.tableName,e.entityId),{mutateAsync:y,error:g}=IM(),x=Np(g),{data:b}=Aa(e.dataSourceId),S=E.useMemo(()=>b==null?void 0:b.find(N=>N.tableName===e.tableName),[e.tableName,b]),k=E.useMemo(()=>{if(!S)return[];if(!c)return S.columns.map(O=>({...O,label:dl(O.name)}));const N=c.toLowerCase();return S.columns.filter(O=>O.name.toLowerCase().includes(N)).map(O=>({...O,label:dl(O.name)}))},[c,S]);E.useEffect(()=>{const N=h==null?void 0:h.rows[0];if(o(),N&&(h!=null&&h.columns))for(let O=0;O<h.columns.length;O++){const L=h.columns[O];l(L.column,fl(N[O]))}},[h,l,o]);const _=()=>{const N=[];for(const O of s)N.push({value:n[O],column:O});y({datasourceId:e.dataSourceId,table:e.tableName,filters:e.entityId.map(O=>({value:[{value:O[1]}],column:O[0],connector:"AND",operator:"="})),values:N}).then(KM)},A=e.entityId.map(([N,O])=>`${N} = ${O}`).join(", ")||"";return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:oa.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Edit row in ",v.jsx("span",{className:"underline",children:e==null?void 0:e.tableName})]}),v.jsx("span",{className:oa.key,children:A}),x&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:x})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:oa.container,children:v.jsx("div",{className:oa.fieldsContainer,children:k.map(N=>v.jsxs("label",{className:oa.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[N.isPrimary?"🔐":"🏷️"," ",N.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",N.name,": ",N.type,"]"]})]}),v.jsx("input",{disabled:N.isPrimary||d,className:"input w-full",value:fl(n[N.name]),onChange:i(N.name),placeholder:N.name})]},N.name))})}),v.jsxs("div",{className:oa.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:c,onChange:N=>f(N.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!s.length,className:"button primary",onClick:_,children:"Run update"})]})]})},r3=()=>{const e=GM(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>jp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx(n3,{data:n})]})},[i3,ah]=Er(void 0),l3=async e=>new Promise(n=>{ah({message:e,onCancel:()=>{n(!1),ah(void 0)},onConfirm:()=>{n(!0),ah(void 0)}})}),a3=({confirm:e})=>v.jsxs("div",{children:[v.jsx("p",{children:e.message}),v.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:e.onConfirm,children:"Confirm"})]})]}),o3=()=>{const e=i3(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>e==null?void 0:e.onCancel(),onClosed:()=>i(void 0),children:n&&v.jsx(a3,{confirm:n})})},[s3,Uu]=Er(void 0),xl=async(e,n,i)=>new Promise(l=>{Uu({message:e,defaultValue:n,alert:i,onCancel:()=>{Uu(void 0),l(void 0)},onConfirm:o=>{Uu(void 0),l(o)}})}),u3="_root_xn0p0_1",c3={root:u3},f3=({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 v.jsxs("div",{className:c3.root,children:[v.jsx("h2",{className:"text-xl font-semibold",children:e.message}),e.alert&&v.jsx(vr,{variant:e.alert.type,className:"mt-2",children:e.alert.message}),v.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:n,onChange:l,onKeyDown:o}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:()=>e.onConfirm(n),children:"Confirm"})]})]})},d3=()=>{const e=s3(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>Uu(void 0),onClosed:()=>i(void 0),children:n&&v.jsx(f3,{data:n})})},[h3,p3]=Er(void 0),z1=e=>{p3(e)},m3="_textarea_1e44o_2",y3={textarea:m3},g3=()=>{const e=h3(),n=()=>{e&&(navigator.clipboard.writeText(e.toString()),Zr.success("Copied!"))},i=()=>z1(void 0);return v.jsxs(nn,{isVisible:!!e,onClose:i,backdropClose:!0,children:[v.jsx("textarea",{className:y3.textarea,readOnly:!0,defaultValue:e==null?void 0:e.toString()}),v.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[v.jsx("button",{className:"button primary",onClick:n,children:"Copy"}),v.jsx("button",{className:"button tertiary",onClick:i,children:"Close"})]})]})},[v3,U1]=Er(!1),b3="_root_sv9tj_1",x3={root:b3},Xb="text-blue-500 underline hover:text-blue-700",S3=()=>{const e=v3(),n=()=>U1(!1);return v.jsxs(nn,{isVisible:e,onClose:n,backdropClose:!0,children:[v.jsx(Kn,{onClick:n}),v.jsxs("div",{className:x3.root,children:[v.jsx("h1",{className:"font-semibold text-xl",children:"Have questions?"}),v.jsx("p",{children:"You can reach me out via:"}),v.jsxs("ul",{className:"mt-2",children:[v.jsxs("li",{children:["💩 ",v.jsx("a",{className:Xb,href:"https://x.com/9zemian5",target:"_blank",children:"X.com @9zemian5"})]}),v.jsxs("li",{children:["💌 ",v.jsx("a",{className:Xb,href:"mailto:vigo@gmail.com",target:"_blank",children:"Email vigo@gmail.com"})]})]})]})]})},w3="_tabs_1f178_2",C3="_tab_1f178_2",E3="_active_1f178_2",T3="_close-button_1f178_2",k3="_active-tab_1f178_2",A3="_tooltip-label_1f178_2",_3="_tooltip-info-entry_1f178_2",gr={tabs:w3,tab:C3,active:E3,closeButton:T3,activeTab:k3,tooltipLabel:A3,tooltipInfoEntry:_3},O3="_table_1333x_2",R3="_semi-transparent_1333x_2",N3="_table-loading_1333x_2",j3="_table-empty_1333x_2",D3="_table-row-cells_1333x_2",M3="_header-cell_1333x_2",L3="_header-actions_1333x_2",z3="_cell_1333x_2",U3="_cell-actions_1333x_2",B3="_table-config_1333x_2",q3="_table-action_1333x_2",H3="_blue_1333x_2",F3="_red_1333x_2",Q3="_options-container_1333x_2",P3="_underlying-rows-btn_1333x_2",I3="_option-item_1333x_2",He={table:O3,semiTransparent:R3,tableLoading:N3,tableEmpty:j3,tableRowCells:D3,headerCell:M3,headerActions:L3,cell:z3,cellActions:U3,tableConfig:B3,tableAction:q3,blue:H3,red:F3,optionsContainer:Q3,underlyingRowsBtn:P3,optionItem:I3},ti=E.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),Rt=E.createContext({state:ma({}),setState:()=>{}}),ni=E.createContext({}),Dp=[{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:"ILIKE",label:"case-insensitive contains"},{value:"NOT ILIKE",label:"case-insensitive 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"}],Qo=Dp.reduce((e,n)=>(e[n.value]=n.label,e),{}),Zb=Dp.reduce((e,n)=>(e[n.label]=n.value,e),{}),Ra=e=>e.map(n=>({label:Qo[n],value:n})),V3=Ra(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),$3=Ra(["=","<>","LIKE","NOT LIKE","ILIKE","NOT ILIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Ra(["=","<>","IS NULL","IS NOT NULL"]);const Y3=Ra(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Ra(["IS NULL","IS NOT NULL"]);Ra(["IN","NOT IN"]);const B1=e=>e!=="IS NULL"&&e!=="IS NOT NULL",G3=(e,n)=>B1(e)?e==="IN"||e==="NOT IN"?n.split(",").map(i=>({value:i.trim(),isColumn:!1})):[{value:n,isColumn:!1}]:[],q1=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],K3=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],X3=["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"],H1=()=>{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])},Z3=e=>{if(e==="ASC")return"DESC";if(e!=="DESC")return"ASC"},J3=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.orderBy[0];if(s&&s.column===l){const c=Z3(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 W3(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 F1=()=>{const{state:e,setState:n}=E.useContext(Rt),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&&W3(o.value,c.value)))}))},[n]);return{filters:e.filters,addFilter:i,removeFilter:l}},eL="_drop-container_kju6t_2",tL="_item_kju6t_2",Jb={dropContainer:eL,item:tL},Fh=({dataSourceId:e,focusId:n,placeholder:i="Column",onChange:l,value:o,autoFocus:s,allowTables:c})=>{const{data:f}=Aa(e),h=E.useRef(null),d=E.useMemo(()=>{if(!f)return[];let A=f;return c&&(A=f.filter(N=>c.includes(N.tableName))),A.flatMap(N=>N.columns.map(O=>{const L=`${N.tableName}.${O.name}`;return{value:L,label:O.name,table:N.tableName,searchValue:L.toLowerCase()}}))},[f,c]),y=E.useMemo(()=>{const A=o.toLowerCase()||"",N=[];for(let O=0;O<d.length&&N.length<10;O++)d[O].searchValue.includes(A)&&N.push(d[O]);return N},[d,o]),[g,x]=E.useState(!1),[b,S]=E.useState(0),k=A=>{var N;if(A.key==="ArrowDown")A.preventDefault(),S(O=>(O+1)%y.length);else if(A.key==="ArrowUp")A.preventDefault(),S(O=>(O-1+y.length)%y.length);else if(A.key==="Enter"&&b>=0&&b<y.length){A.preventDefault();const O=y[b].value;x(!1);const L=d.findIndex(q=>q.value===O)>-1;l(((N=y[b])==null?void 0:N.value)||O,L,!0)}};E.useEffect(()=>{var N;const A=(N=h.current)==null?void 0:N.querySelector('[data-is-active="true"]');A&&A.scrollIntoView({behavior:"smooth",block:"nearest"})},[b]);const _=A=>{const N=A.currentTarget.value,O=d.findIndex(L=>L.value===N)>-1;l(N,O,!1)};return v.jsxs("div",{className:"relative",onFocus:()=>x(!0),onBlur:()=>x(!1),children:[v.jsx("input",{autoFocus:s,onKeyDown:k,value:o,onChange:_,className:Qe("input w-full"),placeholder:i,"data-focus":n}),g&&y.length>0&&v.jsx("div",{className:Jb.dropContainer,ref:h,tabIndex:-1,children:y.map((A,N)=>v.jsxs("div",{className:Jb.item,"data-is-active":b===N,onMouseDownCapture:O=>{O.preventDefault(),x(!1),l(A.value,!0,!0)},children:[v.jsx("span",{className:"text-xs font-semibold truncate",children:A.table}),v.jsx("p",{className:"truncate text-sm",children:A.label})]},N))})]})},nL="_drop-container_1ogyq_2",rL="_item_1ogyq_2",Wb={dropContainer:nL,item:rL};function iL(e){return q1.includes(e)?$3:K3.includes(e)?V3:X3.includes(e)?Y3:Dp}const lL=({value:e,onChange:n,autoFocus:i,focusId:l,colType:o})=>{const s=E.useMemo(()=>{const x=e.toLowerCase()||"";return iL(o||"").filter(b=>b.label.includes(x))},[e,o]),c=E.useRef(null),[f,h]=E.useState(!1),[d,y]=E.useState(0),g=x=>{var b;x.key==="ArrowDown"?(x.preventDefault(),y(S=>(S+1)%s.length)):x.key==="ArrowUp"?(x.preventDefault(),y(S=>(S-1+s.length)%s.length)):x.key==="Enter"&&(d>=0&&d<s.length?(x.preventDefault(),h(!1),n(((b=s[d])==null?void 0:b.label)||"",!0)):n(e,!0))};return E.useEffect(()=>{var b;const x=(b=c.current)==null?void 0:b.querySelector('[data-is-active="true"]');x&&x.scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),v.jsxs("div",{className:"relative",children:[v.jsx("input",{onKeyDown:g,value:e,onChange:x=>n(x.target.value,!1),className:Qe("input w-full"),placeholder:"Operator",autoFocus:i,onFocus:()=>h(!0),onBlur:()=>h(!1),"data-focus":l}),f&&s.length>0&&v.jsx("ul",{className:Wb.dropContainer,ref:c,tabIndex:-1,children:s.map((x,b)=>v.jsx("li",{className:Wb.item,"data-is-active":d===b,onMouseDownCapture:S=>{S.preventDefault(),h(!1),n(x.label,!0)},children:x.label},b))})]})},aL="_form-container_ulrt4_2",oL={formContainer:aL},sL=e=>e instanceof HTMLElement,uL=()=>{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}"]`);sL(o)&&o.focus()},l)},[]);return{containerRef:e,focus:n}},Q1=({onClose:e,selectColumn:n="",selectedOperation:i="",focusOn:l})=>{const{addFilter:o}=F1(),{state:s}=E.useContext(Rt),{data:c}=Aa(s.dataSourceId),f=E.useMemo(()=>[s.table,...s.joins.map(Y=>Y.table)],[s.table,s.joins]),[h,d]=E.useState({column:n,operator:i,value:"",isMatched:!1}),[y,g]=E.useState(!1),{containerRef:x,focus:b}=uL(),S=E.useMemo(()=>{if(!c)return"";let Y=null;for(const ee of c)for(const ie of ee.columns)ee.tableName+"."+ie.name===h.column&&(Y=ie);return Y!=null&&Y.type?Y.type:""},[h.column,c]);E.useEffect(()=>{l&&b(l)},[b,l]);const k=Y=>{const ee=Y||h,[ie]=ee.column.split("."),z=Zb[ee.operator];if(!ee.column.includes(".")||!ie){Zr.error("Invalid column value: "+ee.column);return}if(!z){Zr.error("Invalid operator: "+ee.operator);return}o({connector:"AND",operator:z,column:ee.column,value:ee.isMatched?[{value:ee.value,isColumn:ee.isMatched}]:G3(z,ee.value)}),e()},_=Y=>{Y.key==="Enter"&&k()},A=(Y,ee,ie)=>{d(z=>({...z,column:Y,operator:""})),ie&&b("operator")},N=(Y,ee)=>{d(ie=>({...ie,operator:Y})),g(!1),ee&&b("value")},O=(Y,ee,ie)=>{ie?k({...h,value:Y,isMatched:ee}):d(z=>({...z,value:Y,isMatched:ee}))},L=Y=>{g(Y.target.checked),Y.target.checked||d(ee=>({...ee,isMatched:!1})),b("value")},q=h.operator.includes("list"),M=h.operator.includes("equal");return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Kn,{onClick:e}),v.jsx("h2",{className:"text-lg font-semibold",children:"Filter"}),v.jsxs("div",{className:oL.formContainer,ref:x,children:[v.jsxs("label",{className:"z-3 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Fh,{dataSourceId:s.dataSourceId,onChange:A,value:h.column,allowTables:f,focusId:"column"})]}),v.jsxs("label",{className:"z-2 w-full",children:[v.jsxs("p",{className:"font-semibold text-xs",children:["Operator ",v.jsxs("span",{className:"text-sm text-blue-800",children:["[for ",S,"]"]})]}),v.jsx(lL,{onChange:N,focusId:"operator",colType:S,value:h.operator})]}),B1(Zb[h.operator])&&v.jsxs("label",{className:"z-1 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Value"}),q||!y||!M?v.jsx("input",{className:"input w-full",placeholder:"Filter value",value:h.value,onKeyPress:_,onChange:Y=>O(Y.currentTarget.value,!1,!1),"data-focus":"value"}):v.jsx(Fh,{dataSourceId:s.dataSourceId,onChange:O,value:h.value,allowTables:f,focusId:"value",placeholder:"Insert value or column"})]}),M&&v.jsxs("label",{className:"w-full flex items-center gap-2",children:[v.jsx("input",{type:"checkbox",checked:y,onChange:L}),v.jsx("span",{children:"Value is another column"})]})]}),v.jsx("div",{className:"flex justify-end gap-2 items-center mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>k(),children:"Apply filter"})})]})};function cL(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 oh(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 fL=()=>{const{data:e}=E.useContext(ni),{getColumnType:n}=E.useContext(ti),{setState:i}=E.useContext(Rt),l=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));navigator.clipboard.writeText(y),Zr.success("Copied!")}},o=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));z1(y)}},s=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){let y;if(h==null)y={column:d.full,connector:"AND",operator:"IS NULL"};else{const g=fl(h,n(d.full));y={column:d.full,connector:"AND",operator:"=",value:[{value:g}]}}i(g=>({...g,filters:[...g.filters,y]}))}};return f=>{const h=cL(f);h&&(h.action==="copy"?l(h):h.action==="show"?o(h):h.action==="filter"&&s(h))}},[dL,Mp]=Er(void 0),ex=(e,n)=>{Mp({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)})},Qh=()=>Mp(void 0),hL="_container_dlzth_2",pL="_content_dlzth_2",mL="_backdrop_dlzth_2",sh={container:hL,content:pL,backdrop:mL},P1=({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?v.jsxs("div",{className:sh.container,children:[v.jsx("div",{className:sh.backdrop,onClick:o=>{o.stopPropagation(),o.preventDefault(),n.close()}}),v.jsx("div",{className:sh.content,style:l,children:e})]}):null},yL="_table_89hui_2",gL="_root_89hui_2",vL="_content_89hui_2",bL="_sub_89hui_2",Eu={table:yL,root:gL,content:vL,sub:bL},I1=({hook:e,onClick:n})=>v.jsxs("button",{className:Eu.root,onClick:n,title:e.where,children:[v.jsx("span",{children:"📄"}),v.jsxs("div",{className:Eu.content,children:[v.jsxs("p",{className:Eu.table,children:[" ",e.on.toTable]}),v.jsxs("span",{className:Eu.sub,children:[e.on.toColumn," = ",e.on.fromTable,".",e.on.fromColumn]})]})]},e.where),V1=(e,n)=>e!=null&&e>n,xL=({handler:e,rowIndex:n})=>{const{hooks:i,entities:l,dataSourceId:o,getEntityKey:s,getValue:c}=E.useContext(ti),{state:f}=E.useContext(Rt),{data:h}=E.useContext(ni),[d,y]=E.useState(""),[g,x]=E.useState(""),b=E.useMemo(()=>h==null?void 0:h.rows[n],[h,n]),S=()=>{b&&(ex("⬇️ "+f.table,{joins:f.joins,table:f.table,dataSourceId:f.dataSourceId,filters:[...f.filters,...f.groupBy.map(L=>({connector:"AND",column:L,operator:"=",value:[{value:c(b,L.split(".")[1],L.split(".")[0])}]}))]}),e.close())},k=L=>{if(!b)return;const q=c(b,L.on.fromColumn,L.on.fromTable);ex(`${L.on.toColumn} equals ${q}`,{table:L.on.toTable,dataSourceId:o,filters:[{column:L.on.toTable+"."+L.on.toColumn,operator:q==null?"IS NULL":"=",connector:"AND",value:q!=null?[{value:q,isColumn:!1}]:void 0}]}),e.close()},_=L=>{if(!b)return;const q=s(L,b);e.close(),jp({tableName:L,dataSourceId:o,entityId:q}),e.close()},A=E.useMemo(()=>d?l.filter(L=>L.includes(d)):l,[l,d]),N=E.useMemo(()=>{if(!h)return[];const L=g.toLowerCase();return i.filter(q=>h.columns.some(Y=>Y.column===q.on.fromColumn&&Y.table===q.on.fromTable)?q.on.toTable.toLowerCase().includes(L):!1)},[g,i,h]),O=f.groupBy.length>0;return v.jsxs(P1,{handler:e,children:[l.length>0&&v.jsxs("div",{className:He.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",children:[v.jsx("span",{className:"font-semibold",children:"📝"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:d,onChange:L=>y(L.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:V1(A.length,0)?A.map(L=>v.jsx("button",{className:Qe(He.optionItem,"font-semibold"),onClick:()=>_(L),children:v.jsxs("span",{children:["📄 ",L]})},L)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),i.length>0&&v.jsxs("div",{className:He.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[v.jsx("span",{className:"font-semibold",children:"↗️"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:g,onChange:L=>x(L.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:N.length>0?N.map(L=>v.jsx(I1,{hook:L,onClick:()=>k(L)},L.where)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),O&&v.jsx("button",{onClick:S,className:He.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},SL={ASC:"⬆️",DESC:"⬇️"};function wL(e,n){const i=n(e.full);return i&&q1.includes(i)?Qo.LIKE:Qo["="]}const CL=()=>{const{data:e}=E.useContext(ni),{getColumnType:n}=E.useContext(ti),{orderBy:i,updateOrderBy:l}=J3(),o=(e==null?void 0:e.columns)||[],s=i[0],[c,f]=E.useState();return v.jsxs("thead",{children:[v.jsx("tr",{children:o.map(h=>v.jsxs("td",{className:He.headerCell,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:"text-xs truncate",children:h.table||"-"}),v.jsx("p",{className:"text-sm font-bold truncate",children:h.alias})]}),v.jsxs("div",{className:He.headerActions,children:[h.table&&v.jsx("button",{onClick:()=>{f(h)},children:"🔎"}),v.jsx("button",{onClick:()=>l(h.full),children:(s==null?void 0:s.column)===h.full?SL[s.direction]:"↕️"})]})]},h.full))}),c&&v.jsx(Q1,{selectColumn:c.full,selectedOperation:wL(c,n),focusOn:"value",onClose:()=>f(void 0)})]})};function EL({value:e,row:n,col:i}){if(e==="")return v.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(e==null)return v.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const l=fl(e);return v.jsxs(v.Fragment,{children:[v.jsx("span",{"data-row":n,className:"truncate block pointer-events-none",children:l}),v.jsxs("div",{className:He.cellActions,children:[v.jsx("button",{"data-copy-col":i,"data-copy-row":n,children:"📋"}),v.jsx("button",{"data-show-col":i,"data-show-row":n,children:"👀"}),v.jsx("button",{"data-filter-col":i,"data-filter-row":n,children:"🔎"})]})]})}const TL=E.memo(({row:e,isLastRow:n,index:i})=>v.jsx("tr",{className:Qe(He.tableRowCells,n&&"rounded-b-lg"),children:e.map((l,o)=>v.jsx("td",{className:He.cell,"data-row":i,children:v.jsx(EL,{value:l,col:o,row:i})},o))})),kL=()=>{var y,g;const{data:e,error:n,isLoading:i,isFetching:l}=E.useContext(ni),o=Np(n),s=fL(),c=H1(),[f,h]=E.useState(void 0),d=x=>{var k;const b=(k=x.target)==null?void 0:k.dataset,S=b==null?void 0:b.row;S!=null&&(h(parseInt(S)),c.open(x))};return v.jsxs(v.Fragment,{children:[f!=null&&c.show&&v.jsx(xL,{handler:c,rowIndex:f}),o&&v.jsx(vr,{className:"my-4",variant:"danger",children:o}),i&&v.jsx("div",{className:He.tableLoading,children:"Loading data"}),e&&v.jsxs("table",{className:Qe(He.table,l&&He.semiTransparent),onContextMenu:d,onClick:s,children:[v.jsx(CL,{}),v.jsxs("tbody",{children:[((y=e.rows)==null?void 0:y.length)<1&&v.jsx("tr",{className:He.tableEmpty,children:v.jsx("td",{colSpan:e.columns.length,children:"No data"})}),(g=e.rows)==null?void 0:g.map((x,b)=>v.jsx(TL,{index:b,row:x,isLastRow:b===e.rows.length-1},b))]})]})]})},AL="_root_1dvjv_2",_L="_root-show_1dvjv_2",OL="_content_1dvjv_2",RL="_card_1dvjv_2",NL="_cards-list_1dvjv_2",jL="_sub-text_1dvjv_2",DL="_text_1dvjv_2",ML="_section-title_1dvjv_2",LL="_sidebar-action_1dvjv_2",zL="_join-modal_1dvjv_2",UL="_section-container_1dvjv_2",BL="_close-button_1dvjv_2",qL="_expand_1dvjv_2",HL="_section-open-btn_1dvjv_2",FL="_show_1dvjv_2",ve={root:AL,rootShow:_L,content:OL,card:RL,cardsList:NL,subText:jL,text:DL,sectionTitle:ML,sidebarAction:LL,joinModal:zL,sectionContainer:UL,closeButton:BL,expand:qL,sectionOpenBtn:HL,show:FL},QL="_container_1n2k5_2",PL="_column-label_1n2k5_2",IL="_not-active_1n2k5_2",Tu={container:QL,columnLabel:PL,notActive:IL};function VL(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}function $L(e){if(!e)return[];const n={};return e.forEach(i=>{n[i.table]?n[i.table].push({value:i.full,label:dl(i.column),type:i.type}):n[i.table]=[{value:i.full,label:dl(i.column),type:i.type}]}),Object.entries(n).reduce((i,[l,o])=>(i.push({name:dl(l),columns:o}),i),[])}function YL(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 $1=({onCancel:e,mode:n})=>{const{allColumns:i}=E.useContext(ti),{state:l,setState:o}=E.useContext(Rt),[s,c]=E.useState(VL(l[n])),[f,h]=E.useState(""),d=E.useMemo(()=>$L(i),[i]),y=E.useMemo(()=>f?YL(d,f):d,[f,d]),g=k=>{c(_=>({..._,[k.target.name]:k.target.checked}))},x=k=>{const _=k.target.checked;c(A=>{for(const N of i)A[N.full]=_;return{...A}})},b=()=>{const k=[];for(const _ of i)s[_.full]&&k.push(_.full);o(_=>({..._,[n]:k})),e()},S=E.useMemo(()=>{for(const k of i)if(!s[k.full])return!1;return!0},[s,i]);return v.jsxs(nn,{isVisible:!0,onClose:e,children:[v.jsx(Kn,{onClick:e}),v.jsxs("div",{className:Tu.container,children:[v.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),v.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:f,onChange:k=>h(k.target.value)}),v.jsx("div",{className:"overflow-y-auto",children:y.map(k=>v.jsxs("div",{className:"mt-2",children:[v.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",k.name]}),k.columns.map(_=>v.jsxs("label",{className:Qe(Tu.columnLabel,s[_.value]?Tu.active:Tu.notActive),children:[v.jsx("input",{type:"checkbox",checked:s[_.value],name:_.value,onChange:g}),v.jsxs("p",{className:"flex justify-between w-full",children:[v.jsx("span",{"data-tooltip-content":_.value,"data-tooltip-id":"default",children:_.label}),v.jsx("span",{className:"text-blue-600",children:_.type})]})]},_.value))]},k.name))}),v.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[v.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[v.jsx("input",{type:"checkbox",checked:S,onChange:x}),v.jsx("span",{children:"Select all"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{className:"button tertiary",onClick:e,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:b,children:"Apply"})]})]})]})},GL={},KL=({onClose:e})=>{const{dataSourceId:n}=E.useContext(ti),{setState:i}=E.useContext(Rt),{data:l}=E.useContext(ni),[o,s]=E.useState({fn:"",col:""}),c=d=>s({...o,fn:d.currentTarget.value}),f=d=>s({...o,col:d}),h=()=>{i(d=>({...d,aggregations:[...d.aggregations,{fn:o.fn,column:o.col}]})),e()};return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Kn,{onClick:e}),v.jsxs("div",{className:GL.root,children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),v.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end mt-4",children:[v.jsxs("label",{children:[v.jsx("p",{className:"font-semibold text-xs",children:"Function"}),v.jsxs("select",{className:"input w-full",value:o.fn,onChange:c,autoFocus:!0,children:[v.jsx("option",{value:"",disabled:!0,children:"Select function"}),v.jsx("option",{value:"count",children:"Count"}),v.jsx("option",{value:"sum",children:"Sum"}),v.jsx("option",{value:"max",children:"Max"}),v.jsx("option",{value:"min",children:"Min"}),v.jsx("option",{value:"avg",children:"Avg"})]})]}),v.jsxs("label",{children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Fh,{dataSourceId:n,allowTables:(l==null?void 0:l.tables)||[],onChange:f,value:o.col})]}),v.jsx("button",{className:"button primary",disabled:!o.col||!o.fn,onClick:h,children:"Add"})]})]})]})},XL=(e,n)=>e.type!==n.type||e.on!==n.on||e.table!==n.table,ZL=(e,n)=>e.type===n.type&&e.on===n.on&&e.table===n.table,JL=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.joins;if(s.some(f=>ZL(f,l))){const f=l.table+".";return{...o,joins:s.filter(h=>XL(h,l)),columns:o.columns.filter(h=>!h.startsWith(f)),groupBy:o.groupBy.filter(h=>!h.startsWith(f)),orderBy:o.orderBy.filter(h=>!h.column.startsWith(f)),aggregations:o.aggregations.filter(h=>!h.column.startsWith(f)),filters:o.filters.filter(h=>!h.column.startsWith(f))}}return{...o,joins:[...s,l]}})},[n]);return{joins:e.joins,toggle:i}},Y1=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/queries",e);return n.data},onSuccess:()=>{Ot.invalidateQueries(["queries"]),ts(),dt.event("Query created")}}),WL=()=>Cr({mutationFn:async({id:e,payload:n})=>{const{data:i}=await vt.patch("/queries/"+e,n);return i.data},onSuccess:e=>{Ot.invalidateQueries(["query",e.id]),ts(),fA(),e.isTrash?dt.event("Query trashed"):dt.event("Query updated")}});function G1(e,n){const i={};return Object.entries(e).forEach(([l,o])=>{n.includes(l)||(i[l]=o)}),i}const K1=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"})),fa=new Map,ez=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=fa.get(e.key.toLowerCase());i&&i.length>0&&i[i.length-1].callback()},tz=(e,n,i="")=>{const l=e.toLowerCase(),o=fa.get(e);return o?fa.set(e,[...o,{callback:n,label:i}]):fa.set(l,[{callback:n,label:i}]),()=>{const s=e.toLowerCase(),c=fa.get(s);c&&fa.set(s,c.filter(f=>f.callback!==n))}};window.addEventListener("keyup",ez);function br(e,n,i){const l=E.useRef({callback:n,label:i});l.current.callback=n,E.useEffect(()=>tz(e,()=>{l.current.callback()},l.current.label),[e])}const nz=()=>{const e=sp("Hotkey"),n=Jr(),i=vn(),{data:l}=zi();br("n",()=>{l&&e()},"📖 New query"),br("w",()=>{if(!l)return;mc.get().length<1?e():i.pathname!==_t.workbench.path&&n(_t.workbench.path)},"🛠️ Open Workbench"),br("h",()=>{i.pathname!==_t.home.path&&n(_t.home.path)},"🍜 Go home")},rz=()=>{const[e,n]=E.useState(!0);return br("o",()=>{n(i=>!i)}),v.jsxs("div",{className:Qe(ve.root,e&&ve.rootShow),children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Customize query [Hotkey O]",className:ve.expand,onClick:()=>n(!e),children:"⚙️"}),v.jsxs("div",{className:ve.content,children:[v.jsx(lz,{}),v.jsx(iz,{}),v.jsx(dz,{}),v.jsx(fz,{}),v.jsx(cz,{}),v.jsx(oz,{}),v.jsx(sz,{}),v.jsx(az,{})]})]})};function as({onShow:e,show:n,title:i,items:l}){return v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("p",{className:ve.sectionTitle,children:i}),l>0&&v.jsxs("button",{className:Qe(ve.sectionOpenBtn,n&&ve.show),onClick:e,children:[v.jsx("span",{children:l}),v.jsx(K1,{width:16,height:16})]})]})}function iz(){const{state:e}=E.useContext(Rt),{name:n}=E.useContext(ti),{data:i}=E.useContext(ni),l=Y1(),o=()=>{i!=null&&i.query&&(navigator.clipboard.writeText(i==null?void 0:i.query),Zr.success("Query copied to clipboard"))},s=async()=>{const c=G1(e,["size","page"]),f=await xl("Query name",n);f&&l.mutate({name:f,dataSourceId:e.dataSourceId,opts:c})};return v.jsxs("div",{className:"mb-4 flex justify-end gap-2",children:[v.jsxs("button",{className:ve.sidebarAction,onClick:o,children:[v.jsx("span",{children:"🖋️"}),v.jsx("span",{children:"Copy SQL"})]}),v.jsxs("button",{className:ve.sidebarAction,onClick:s,children:[v.jsx("span",{children:"💾"}),v.jsx("span",{children:"Save"})]})]})}function lz(){const{state:e}=E.useContext(Rt),{data:n}=b0(e.dataSourceId);return v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("div",{className:ve.card,children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📄 Table"}),v.jsx("p",{className:Qe(ve.text,"text-blue-600"),children:e.table})]})}),v.jsx("div",{className:Qe(ve.card,"mt-2"),children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📦 Data source"}),v.jsx("p",{className:Qe(ve.text,"text-blue-600"),children:n==null?void 0:n.name})]})})]})}function az(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{n(h=>({...h,groupBy:h.groupBy.filter(d=>d!==f)}))};return br("g",()=>{l(f=>!f)},"Group by"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📚 Group by",show:o,onShow:()=>s(!o),items:e.groupBy.length}),o&&e.groupBy.length>0&&v.jsx("div",{className:ve.cardsList,children:e.groupBy.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:f}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"G"}),v.jsx("span",{children:"Add group by"})]}),i&&v.jsx($1,{mode:"groupBy",onCancel:()=>l(!1)})]})}function oz(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!1),c=h=>{n(d=>({...d,columns:d.columns.filter(y=>y!==h)}))},f=e.aggregations.length>0||e.groupBy.length>0;return br("c",()=>{l(h=>!h)},"Show/hide columns"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"👀 Columns",show:o,onShow:()=>s(!o),items:e.columns.length}),f&&v.jsx(vr,{variant:"warning",className:"border border-yellow-800 my-2",children:v.jsx("span",{className:ve.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!f&&o&&e.columns.length>0&&v.jsx("div",{className:ve.cardsList,children:e.columns.map(h=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:h}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(h),children:v.jsx(Bi,{width:20,height:20})})]}))}),!f&&v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"C"}),v.jsx("span",{children:"Show/Hide columns"})]}),i&&v.jsx($1,{mode:"columns",onCancel:()=>l(!1)})]})}function sz(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{const h=L1(f);n(d=>({...d,aggregations:d.aggregations.filter(y=>y.fn!==f.fn&&y.column!==f.column),orderBy:d.orderBy.filter(y=>y.column!==h)}))};return br("a",()=>{l(f=>!f)},"Aggregate data"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🔢 Aggregations",show:o,onShow:()=>s(!o),items:e.aggregations.length}),o&&e.aggregations.length>0&&v.jsx("div",{className:ve.cardsList,children:e.aggregations.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsxs("span",{className:ve.text,children:[f.fn," ",f.column]}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"A"}),v.jsx("span",{children:"Aggregate data"})]}),i&&v.jsx(KL,{onClose:()=>l(!1)})]})}const uz=e=>(e==null?void 0:e.map(n=>n.value).join(", "))||"";function cz(){const{state:e}=E.useContext(Rt),{removeFilter:n}=F1(),[i,l]=E.useState(!1),[o,s]=E.useState(!0);return br("f",()=>{l(c=>!c)},"Add new filter"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🎚️ Filters",show:o,onShow:()=>s(!o),items:e.filters.length}),o&&e.filters.length>0&&v.jsx("div",{className:ve.cardsList,children:e.filters.map((c,f)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Qe(ve.subText,"truncate"),children:c.column}),v.jsxs("p",{className:Qe(ve.text,"truncate"),children:[Qo[c.operator]," ",uz(c.value)]})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>n(c),children:v.jsx(Bi,{width:20,height:20})})]},f))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"F"}),v.jsx("span",{children:"Add filter"})]}),i&&v.jsx(Q1,{onClose:()=>l(!1),focusOn:"column"})]})}function fz(){const{toggle:e}=JL(),{availableJoins:n}=E.useContext(ti),{state:i}=E.useContext(Rt),[l,o]=E.useState(""),[s,c]=E.useState(!0),[f,h]=E.useState(!1),d=E.useMemo(()=>{const g=l.toLowerCase();return n.filter(x=>x.on.toTable.toLowerCase().includes(g))},[n,l]),y=()=>{h(!1),o("")};return br("j",()=>{n.length>0?h(g=>!g):Zr.error("No available tables to join")},"Add new join"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📄 Joins",show:s,onShow:()=>c(!s),items:i.joins.length}),s&&i.joins.length>0&&v.jsx("div",{className:ve.cardsList,children:i.joins.map((g,x)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsxs("p",{className:Qe(ve.subText,"truncate"),children:["on ",g.on]}),v.jsx("p",{className:ve.text,children:g.table})]}),x===i.joins.length-1&&v.jsx("button",{className:ve.closeButton,onClick:()=>e(g),children:v.jsx(Bi,{width:20,height:20})})]},g.table+g.on))}),n.length>0&&v.jsxs("button",{onClick:()=>h(!0),className:ve.sidebarAction,children:[v.jsx("span",{className:"hotkey",children:"J"}),v.jsx("span",{children:"Add table"})]}),v.jsxs(nn,{isVisible:f,onClose:y,children:[v.jsx(Kn,{onClick:y}),v.jsxs("div",{className:ve.joinModal,children:[v.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),v.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:g=>o(g.target.value),value:l}),v.jsx("div",{className:"flex flex-col mt-2",children:d.map(g=>v.jsx(I1,{hook:g,onClick:()=>{e({table:g.on.toTable,type:"LEFT",on:g.where}),h(!1)}},g.where))})]})]})]})}function dz(){const{state:e,setState:n}=E.useContext(Rt);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 v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("p",{className:ve.sectionTitle,children:"Order by"}),v.jsx("div",{className:ve.cardsList,children:e.orderBy.map((l,o)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Qe(ve.subText,"truncate"),children:l.direction}),v.jsx("p",{className:ve.text,children:l.column})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>i(l),children:v.jsx(Bi,{width:20,height:20})})]},o))})]})}const X1=()=>{const{state:e,setState:n}=E.useContext(Rt),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 hz(){return v.jsxs("div",{className:"py-2 flex justify-center gap-2 sticky top-0 left-0",children:[v.jsx(pz,{}),v.jsx(mz,{}),v.jsx(yz,{}),v.jsx(gz,{})]})}function pz(){const{dataSourceId:e,name:n}=E.useContext(ti),{state:i}=E.useContext(Rt),{refetch:l,data:o}=E.useContext(ni),s=Y1(),c=()=>{var d,y;(d=o==null?void 0:o.columns)!=null&&d[0].table&&Rp({table:(y=o==null?void 0:o.columns)==null?void 0:y[0].table,dataSourceId:e})},f=()=>{Vo(n,i,!0),Qh()},h=async()=>{const d=G1(i,["size","page"]),y=await xl("Query name",n);y&&s.mutate({name:y,dataSourceId:e,opts:d})};return v.jsxs("div",{className:He.tableConfig,children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:()=>l(),className:Qe(He.tableAction,He.blue),children:"🔄"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Save query",onClick:h,className:Qe(He.tableAction,He.blue),children:"💾"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Insert new row",onClick:c,className:Qe(He.tableAction,He.blue),children:"📝"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Open in a new tab",onClick:f,className:Qe(He.tableAction,He.blue),children:"↗️"})]})}function mz(){const{page:e,size:n,setPage:i}=X1(),{data:l}=E.useContext(ni),o=(l==null?void 0:l.rows.length)===n;return v.jsxs("div",{className:He.tableConfig,children:[v.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:e<=0,className:Qe(He.tableAction,He.blue),onClick:()=>i(e-1),children:"⬅️"}),v.jsx("span",{children:e+1}),v.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!o,className:Qe(He.tableAction,He.blue),onClick:()=>i(e+1),children:"➡️"})]})}function yz(){const{size:e,setSize:n}=X1();return v.jsx("div",{className:He.tableConfig,children:v.jsxs("label",{className:He.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:["📏",v.jsxs("select",{style:{height:"20px"},value:e,onChange:i=>n(parseInt(i.target.value,10)),children:[v.jsx("option",{value:5,children:"5"}),v.jsx("option",{value:10,children:"10"}),v.jsx("option",{value:20,children:"20"}),v.jsx("option",{value:50,children:"50"}),v.jsx("option",{value:100,children:"100"}),v.jsx("option",{value:200,children:"200"})]})]})})}function gz(){const{state:e,setState:n}=E.useContext(Rt),i=()=>{n(o=>({...o,searchAll:void 0}))},l=()=>{xl("Search all text values for","",{type:"warning",message:"⚠️ This will search all text values using LIKE operator (numbers, dates and other non string values are not searched). This can make your query heavy, make sure to reduce the number of columns you are using."}).then(o=>{o&&n(s=>({...s,searchAll:o}))})};return v.jsx("div",{className:He.tableConfig,children:e.searchAll?v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:i,className:Qe(He.tableAction,He.red),children:v.jsxs("span",{className:"truncate px-1",children:["❌ ",e.searchAll]})}):v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:l,className:Qe(He.tableAction,He.blue),children:"🔎"})})}function vz(e,n,i){const l=[];return n.length>0||i.length>0?l.push(...n,...i.map(L1)):e.length>0&&l.push(...e),l.length>0?l:[]}const Z1=({options:e,updater:n,name:i,className:l})=>{const o=EA(e,n),{state:s}=o,c=QM({datasourceId:e.dataSourceId,table:e.table,filters:s.filters,joins:s.joins,page:s.page,size:s.size,orderBy:s.orderBy,columns:vz(s.columns,s.groupBy,s.aggregations),groupBy:s.groupBy,searchAll:s.searchAll}),f=CA(c.data,e.dataSourceId,i);return v.jsx("div",{className:Qe("flex flex-1 gap-1 overflow-hidden",l),children:v.jsx(ti,{value:f,children:v.jsx(Rt,{value:o,children:v.jsxs(ni,{value:c,children:[v.jsxs("div",{className:"m-1 flex-1 overflow-auto relative",children:[v.jsx(hz,{}),v.jsx(kL,{})]}),v.jsx(rz,{})]})})})})},ga=Math.min,hl=Math.max,Wu=Math.round,ku=Math.floor,xr=e=>({x:e,y:e}),bz={left:"right",right:"left",bottom:"top",top:"bottom"},xz={start:"end",end:"start"};function Ph(e,n,i){return hl(e,ga(n,i))}function os(e,n){return typeof e=="function"?e(n):e}function yl(e){return e.split("-")[0]}function ss(e){return e.split("-")[1]}function J1(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function Di(e){return["top","bottom"].includes(yl(e))?"y":"x"}function zp(e){return J1(Di(e))}function Sz(e,n,i){i===void 0&&(i=!1);const l=ss(e),o=zp(e),s=Lp(o);let c=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=ec(c)),[c,ec(c)]}function wz(e){const n=ec(e);return[Ih(e),n,Ih(n)]}function Ih(e){return e.replace(/start|end/g,n=>xz[n])}function Cz(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 Ez(e,n,i,l){const o=ss(e);let s=Cz(yl(e),i==="start",l);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(Ih)))),s}function ec(e){return e.replace(/left|right|bottom|top/g,n=>bz[n])}function Tz(e){return{top:0,right:0,bottom:0,left:0,...e}}function W1(e){return typeof e!="number"?Tz(e):{top:e,right:e,bottom:e,left:e}}function tc(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 tx(e,n,i){let{reference:l,floating:o}=e;const s=Di(n),c=zp(n),f=Lp(c),h=yl(n),d=s==="y",y=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 b;switch(h){case"top":b={x:y,y:l.y-o.height};break;case"bottom":b={x:y,y:l.y+l.height};break;case"right":b={x:l.x+l.width,y:g};break;case"left":b={x:l.x-o.width,y:g};break;default:b={x:l.x,y:l.y}}switch(ss(n)){case"start":b[c]-=x*(i&&d?-1:1);break;case"end":b[c]+=x*(i&&d?-1:1);break}return b}const kz=async(e,n,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:c}=i,f=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:y,y:g}=tx(d,l,h),x=l,b={},S=0;for(let k=0;k<f.length;k++){const{name:_,fn:A}=f[k],{x:N,y:O,data:L,reset:q}=await A({x:y,y:g,initialPlacement:l,placement:x,strategy:o,middlewareData:b,rects:d,platform:c,elements:{reference:e,floating:n}});y=N??y,g=O??g,b={...b,[_]:{...b[_],...L}},q&&S<=50&&(S++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(d=q.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):q.rects),{x:y,y:g}=tx(d,x,h)),k=-1)}return{x:y,y:g,placement:x,strategy:o,middlewareData:b}};async function eS(e,n){var i;n===void 0&&(n={});const{x:l,y:o,platform:s,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:b=0}=os(n,e),S=W1(b),_=f[x?g==="floating"?"reference":"floating":g],A=tc(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:d,rootBoundary:y,strategy:h})),N=g==="floating"?{x:l,y:o,width:c.floating.width,height:c.floating.height}:c.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),L=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},q=tc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:O,strategy:h}):N);return{top:(A.top-q.top+S.top)/L.y,bottom:(q.bottom-A.bottom+S.bottom)/L.y,left:(A.left-q.left+S.left)/L.x,right:(q.right-A.right+S.right)/L.x}}const Az=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:o,rects:s,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:y=0}=os(e,n)||{};if(d==null)return{};const g=W1(y),x={x:i,y:l},b=zp(o),S=Lp(b),k=await c.getDimensions(d),_=b==="y",A=_?"top":"left",N=_?"bottom":"right",O=_?"clientHeight":"clientWidth",L=s.reference[S]+s.reference[b]-x[b]-s.floating[S],q=x[b]-s.reference[b],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let Y=M?M[O]:0;(!Y||!await(c.isElement==null?void 0:c.isElement(M)))&&(Y=f.floating[O]||s.floating[S]);const ee=L/2-q/2,ie=Y/2-k[S]/2-1,z=ga(g[A],ie),ae=ga(g[N],ie),te=z,ue=Y-k[S]-ae,J=Y/2-k[S]/2+ee,se=Ph(te,J,ue),B=!h.arrow&&ss(o)!=null&&J!==se&&s.reference[S]/2-(J<te?z:ae)-k[S]/2<0,X=B?J<te?J-te:J-ue:0;return{[b]:x[b]+X,data:{[b]:se,centerOffset:J-se-X,...B&&{alignmentOffset:X}},reset:B}}}),_z=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:h,elements:d}=n,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0,..._}=os(e,n);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const A=yl(o),N=Di(f),O=yl(f)===f,L=await(h.isRTL==null?void 0:h.isRTL(d.floating)),q=x||(O||!k?[ec(f)]:wz(f)),M=S!=="none";!x&&M&&q.push(...Ez(f,k,S,L));const Y=[f,...q],ee=await eS(n,_),ie=[];let z=((l=s.flip)==null?void 0:l.overflows)||[];if(y&&ie.push(ee[A]),g){const J=Sz(o,c,L);ie.push(ee[J[0]],ee[J[1]])}if(z=[...z,{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=Y[J];if(se&&(!(g==="alignment"?N!==Di(se):!1)||z.every(ne=>ne.overflows[0]>0&&Di(ne.placement)===N)))return{data:{index:J,overflows:z},reset:{placement:se}};let B=(te=z.filter(X=>X.overflows[0]<=0).sort((X,ne)=>X.overflows[1]-ne.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(b){case"bestFit":{var ue;const X=(ue=z.filter(ne=>{if(M){const pe=Di(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&&(B=X);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function Oz(e,n){const{placement:i,platform:l,elements:o}=e,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),c=yl(i),f=ss(i),h=Di(i)==="y",d=["left","top"].includes(c)?-1:1,y=s&&h?-1:1,g=os(n,e);let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof S=="number"&&(b=f==="end"?S*-1:S),h?{x:b*y,y:x*d}:{x:x*d,y:b*y}}const Rz=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,h=await Oz(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},Nz=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}}},...h}=os(e,n),d={x:i,y:l},y=await eS(n,h),g=Di(yl(o)),x=J1(g);let b=d[x],S=d[g];if(s){const _=x==="y"?"top":"left",A=x==="y"?"bottom":"right",N=b+y[_],O=b-y[A];b=Ph(N,b,O)}if(c){const _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=S+y[_],O=S-y[A];S=Ph(N,S,O)}const k=f.fn({...n,[x]:b,[g]:S});return{...k,data:{x:k.x-i,y:k.y-l,enabled:{[x]:s,[g]:c}}}}}};function Sc(){return typeof window<"u"}function Na(e){return tS(e)?(e.nodeName||"").toLowerCase():"#document"}function jn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function kr(e){var n;return(n=(tS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function tS(e){return Sc()?e instanceof Node||e instanceof jn(e).Node:!1}function rr(e){return Sc()?e instanceof Element||e instanceof jn(e).Element:!1}function Sr(e){return Sc()?e instanceof HTMLElement||e instanceof jn(e).HTMLElement:!1}function nx(e){return!Sc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jn(e).ShadowRoot}function us(e){const{overflow:n,overflowX:i,overflowY:l,display:o}=ir(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&!["inline","contents"].includes(o)}function jz(e){return["table","td","th"].includes(Na(e))}function wc(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Up(e){const n=Bp(),i=rr(e)?ir(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 Dz(e){let n=Li(e);for(;Sr(n)&&!va(n);){if(Up(n))return n;if(wc(n))return null;n=Li(n)}return null}function Bp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function va(e){return["html","body","#document"].includes(Na(e))}function ir(e){return jn(e).getComputedStyle(e)}function Cc(e){return rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Li(e){if(Na(e)==="html")return e;const n=e.assignedSlot||e.parentNode||nx(e)&&e.host||kr(e);return nx(n)?n.host:n}function nS(e){const n=Li(e);return va(n)?e.ownerDocument?e.ownerDocument.body:e.body:Sr(n)&&us(n)?n:nS(n)}function Go(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=nS(e),s=o===((l=e.ownerDocument)==null?void 0:l.body),c=jn(o);if(s){const f=Vh(c);return n.concat(c,c.visualViewport||[],us(o)?o:[],f&&i?Go(f):[])}return n.concat(o,Go(o,[],i))}function Vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rS(e){const n=ir(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=Sr(e),s=o?e.offsetWidth:i,c=o?e.offsetHeight:l,f=Wu(i)!==s||Wu(l)!==c;return f&&(i=s,l=c),{width:i,height:l,$:f}}function qp(e){return rr(e)?e:e.contextElement}function pa(e){const n=qp(e);if(!Sr(n))return xr(1);const i=n.getBoundingClientRect(),{width:l,height:o,$:s}=rS(n);let c=(s?Wu(i.width):i.width)/l,f=(s?Wu(i.height):i.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const Mz=xr(0);function iS(e){const n=jn(e);return!Bp()||!n.visualViewport?Mz:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Lz(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==jn(e)?!1:n}function gl(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),s=qp(e);let c=xr(1);n&&(l?rr(l)&&(c=pa(l)):c=pa(e));const f=Lz(s,i,l)?iS(s):xr(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,y=o.width/c.x,g=o.height/c.y;if(s){const x=jn(s),b=l&&rr(l)?jn(l):l;let S=x,k=Vh(S);for(;k&&l&&b!==S;){const _=pa(k),A=k.getBoundingClientRect(),N=ir(k),O=A.left+(k.clientLeft+parseFloat(N.paddingLeft))*_.x,L=A.top+(k.clientTop+parseFloat(N.paddingTop))*_.y;h*=_.x,d*=_.y,y*=_.x,g*=_.y,h+=O,d+=L,S=jn(k),k=Vh(S)}}return tc({width:y,height:g,x:h,y:d})}function Hp(e,n){const i=Cc(e).scrollLeft;return n?n.left+i:gl(kr(e)).left+i}function lS(e,n,i){i===void 0&&(i=!1);const l=e.getBoundingClientRect(),o=l.left+n.scrollLeft-(i?0:Hp(e,l)),s=l.top+n.scrollTop;return{x:o,y:s}}function zz(e){let{elements:n,rect:i,offsetParent:l,strategy:o}=e;const s=o==="fixed",c=kr(l),f=n?wc(n.floating):!1;if(l===c||f&&s)return i;let h={scrollLeft:0,scrollTop:0},d=xr(1);const y=xr(0),g=Sr(l);if((g||!g&&!s)&&((Na(l)!=="body"||us(c))&&(h=Cc(l)),Sr(l))){const b=gl(l);d=pa(l),y.x=b.x+l.clientLeft,y.y=b.y+l.clientTop}const x=c&&!g&&!s?lS(c,h,!0):xr(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-h.scrollLeft*d.x+y.x+x.x,y:i.y*d.y-h.scrollTop*d.y+y.y+x.y}}function Uz(e){return Array.from(e.getClientRects())}function Bz(e){const n=kr(e),i=Cc(e),l=e.ownerDocument.body,o=hl(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=hl(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let c=-i.scrollLeft+Hp(e);const f=-i.scrollTop;return ir(l).direction==="rtl"&&(c+=hl(n.clientWidth,l.clientWidth)-o),{width:o,height:s,x:c,y:f}}function qz(e,n){const i=jn(e),l=kr(e),o=i.visualViewport;let s=l.clientWidth,c=l.clientHeight,f=0,h=0;if(o){s=o.width,c=o.height;const d=Bp();(!d||d&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}return{width:s,height:c,x:f,y:h}}function Hz(e,n){const i=gl(e,!0,n==="fixed"),l=i.top+e.clientTop,o=i.left+e.clientLeft,s=Sr(e)?pa(e):xr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,h=o*s.x,d=l*s.y;return{width:c,height:f,x:h,y:d}}function rx(e,n,i){let l;if(n==="viewport")l=qz(e,i);else if(n==="document")l=Bz(kr(e));else if(rr(n))l=Hz(n,i);else{const o=iS(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return tc(l)}function aS(e,n){const i=Li(e);return i===n||!rr(i)||va(i)?!1:ir(i).position==="fixed"||aS(i,n)}function Fz(e,n){const i=n.get(e);if(i)return i;let l=Go(e,[],!1).filter(f=>rr(f)&&Na(f)!=="body"),o=null;const s=ir(e).position==="fixed";let c=s?Li(e):e;for(;rr(c)&&!va(c);){const f=ir(c),h=Up(c);!h&&f.position==="fixed"&&(o=null),(s?!h&&!o:!h&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||us(c)&&!h&&aS(e,c))?l=l.filter(y=>y!==c):o=f,c=Li(c)}return n.set(e,l),l}function Qz(e){let{element:n,boundary:i,rootBoundary:l,strategy:o}=e;const c=[...i==="clippingAncestors"?wc(n)?[]:Fz(n,this._c):[].concat(i),l],f=c[0],h=c.reduce((d,y)=>{const g=rx(n,y,o);return d.top=hl(g.top,d.top),d.right=ga(g.right,d.right),d.bottom=ga(g.bottom,d.bottom),d.left=hl(g.left,d.left),d},rx(n,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Pz(e){const{width:n,height:i}=rS(e);return{width:n,height:i}}function Iz(e,n,i){const l=Sr(n),o=kr(n),s=i==="fixed",c=gl(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const h=xr(0);function d(){h.x=Hp(o)}if(l||!l&&!s)if((Na(n)!=="body"||us(o))&&(f=Cc(n)),l){const b=gl(n,!0,s,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}else o&&d();s&&!l&&o&&d();const y=o&&!l&&!s?lS(o,f):xr(0),g=c.left+f.scrollLeft-h.x-y.x,x=c.top+f.scrollTop-h.y-y.y;return{x:g,y:x,width:c.width,height:c.height}}function uh(e){return ir(e).position==="static"}function ix(e,n){if(!Sr(e)||ir(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return kr(e)===i&&(i=i.ownerDocument.body),i}function oS(e,n){const i=jn(e);if(wc(e))return i;if(!Sr(e)){let o=Li(e);for(;o&&!va(o);){if(rr(o)&&!uh(o))return o;o=Li(o)}return i}let l=ix(e,n);for(;l&&jz(l)&&uh(l);)l=ix(l,n);return l&&va(l)&&uh(l)&&!Up(l)?i:l||Dz(e)||i}const Vz=async function(e){const n=this.getOffsetParent||oS,i=this.getDimensions,l=await i(e.floating);return{reference:Iz(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function $z(e){return ir(e).direction==="rtl"}const Yz={convertOffsetParentRelativeRectToViewportRelativeRect:zz,getDocumentElement:kr,getClippingRect:Qz,getOffsetParent:oS,getElementRects:Vz,getClientRects:Uz,getDimensions:Pz,getScale:pa,isElement:rr,isRTL:$z};function sS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Gz(e,n){let i=null,l;const o=kr(e);function s(){var f;clearTimeout(l),(f=i)==null||f.disconnect(),i=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:y,top:g,width:x,height:b}=d;if(f||n(),!x||!b)return;const S=ku(g),k=ku(o.clientWidth-(y+x)),_=ku(o.clientHeight-(g+b)),A=ku(y),O={rootMargin:-S+"px "+-k+"px "+-_+"px "+-A+"px",threshold:hl(0,ga(1,h))||1};let L=!0;function q(M){const Y=M[0].intersectionRatio;if(Y!==h){if(!L)return c();Y?c(!1,Y):l=setTimeout(()=>{c(!1,1e-7)},1e3)}Y===1&&!sS(d,e.getBoundingClientRect())&&c(),L=!1}try{i=new IntersectionObserver(q,{...O,root:o.ownerDocument})}catch{i=new IntersectionObserver(q,O)}i.observe(e)}return c(!0),s}function Kz(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:h=!1}=l,d=qp(e),y=o||s?[...d?Go(d):[],...Go(n)]:[];y.forEach(A=>{o&&A.addEventListener("scroll",i,{passive:!0}),s&&A.addEventListener("resize",i)});const g=d&&f?Gz(d,i):null;let x=-1,b=null;c&&(b=new ResizeObserver(A=>{let[N]=A;N&&N.target===d&&b&&(b.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(n)})),i()}),d&&!h&&b.observe(d),b.observe(n));let S,k=h?gl(e):null;h&&_();function _(){const A=gl(e);k&&!sS(k,A)&&i(),k=A,S=requestAnimationFrame(_)}return i(),()=>{var A;y.forEach(N=>{o&&N.removeEventListener("scroll",i),s&&N.removeEventListener("resize",i)}),g==null||g(),(A=b)==null||A.disconnect(),b=null,h&&cancelAnimationFrame(S)}}const Xz=Rz,Zz=Nz,Jz=_z,Wz=Az,lx=(e,n,i)=>{const l=new Map,o={platform:Yz,...i},s={...o.platform,_c:l};return kz(e,n,{...o,platform:s})};var ch={exports:{}};/*!
286
+ `,TM=()=>v.jsx("div",{className:"card-white",children:v.jsx(Ju,{content:EM})}),Gb={active:!1,version:""};async function kM(){try{const{data:e}=await cA.get("/status",{timeout:500,validateStatus:()=>!0});return(e==null?void 0:e.data)||Gb}catch{return Gb}}function AM(){const e=Ot.getQueryState([Mi]);(e==null?void 0:e.status)==="error"&&Ot.invalidateQueries({queryKey:[Mi]})}function _M(){const e=Ot.getQueryState([Mi]);(e==null?void 0:e.status)==="success"&&Ot.resetQueries({queryKey:[Mi]})}const Op=()=>Gn({queryKey:["local-server-status"],queryFn:kM,onSuccess:({active:e})=>{e?AM():_M()},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}),OM=()=>{const{data:e}=zi(),n=hc(),{data:i}=Op(),{data:l}=yA({teamId:e==null?void 0:e.currentTeam.id}),o=!!l&&l.length>0,s=!!e;return!e||(i==null?void 0:i.active)===!1?v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsx("div",{className:"page-content",children:v.jsx(TM,{})})}):v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsxs("div",{className:"page-content h-full",children:[o&&v.jsx(D_,{}),s&&n.length>0&&v.jsx(O_,{}),s&&!o&&v.jsx(vr,{variant:"warning",className:"mt-2 font-semibold",children:"Connect at least one datasource to start using DataRamen"}),s&&v.jsx(G_,{})]})})},RM=()=>{const{data:e}=w0();return Gn([b0],async()=>{const{data:n}=await vt.get("/teams");return n.data},{enabled:!!e})},NM=()=>Cr(async e=>{const{data:n}=await vt.post("/teams",e);return n.data},{onSuccess:e=>{Ot.setQueryData([b0],n=>n?[...n,e]:[e]),Ot.invalidateQueries([Mi])}}),jM="_container_1gfta_2",DM={container:jM},Kb=["```bash\ndataramen logs\n```","```bash\ndataramen stop\n```"],MM=()=>{const{data:e}=zi(),n=xA(),{close:i}=up(),{data:l}=RM(),o=NM(),{data:s}=Op(),c=()=>{const h=prompt("Team name");h&&o.mutate({name:h})},f=h=>{n.mutate(h.currentTarget.value)};return v.jsxs("div",{className:Qe("page-container",DM.container),children:[v.jsx(Kn,{onClick:i}),v.jsxs("div",{className:"form",children:[v.jsx("h2",{className:"text-xl font-semibold",children:"🪪 Team"}),v.jsx("p",{className:"text-sm",children:"You can configure multiple teams. Queries, data sources and workbench tabs are saved per team."}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("select",{className:"flex-1 input",disabled:n.isLoading,onChange:f,value:e==null?void 0:e.currentTeam.id,children:l==null?void 0:l.map(h=>v.jsx("option",{value:h.id,children:h.name},h.id))}),v.jsx("button",{className:"button tertiary",disabled:n.isLoading,onClick:c,children:"Create new team"})]}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"🌐 API server"}),v.jsx("div",{className:"flex gap-1",children:v.jsxs("ul",{children:[v.jsxs("li",{children:["🔗 API URL: ","http://localhost:4466"]}),v.jsxs("li",{children:["🏷️ API version: ",s==null?void 0:s.version]}),v.jsx("li",{children:s!=null&&s.active?"✅ Connected":"❌ Not connected"})]})}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"💻 CLI commands"}),v.jsxs("div",{children:[v.jsx(Ju,{content:Kb[0]}),v.jsx(Ju,{content:Kb[1]})]})]})]})},[LM,Rp]=Er(void 0),zM=()=>Rp(void 0);function fl(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 z1=e=>`${e.fn} (${e.column})`,UM=e=>{var i;const n=((i=e.value)==null?void 0:i.map(l=>l.value).join(", "))||"";return`${e.column} ${e.operator} ${n}`};function dl(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}const BM="_container_468eu_2",qM="_header_468eu_2",HM="_fields-container_468eu_2",FM="_field-label_468eu_2",QM="_actions_468eu_2",zo={container:BM,header:qM,fieldsContainer:HM,fieldLabel:FM,actions:QM},PM=({searchAll:e,table:n,datasourceId:i,filters:l,joins:o,orderBy:s,groupBy:c,columns:f,page:h=0,size:d=20})=>Gn({queryKey:["explorer",i,n,h,d,l,o,s,c,f,e],queryFn:async()=>{const{data:y}=await vt.post("/runner/sql",{datasourceId:i,table:n,filters:l,joins:o,orderBy:s,page:h,size:d,columns:f,groupBy:c,searchAll:e});return y.data},retry:1,enabled:!!n&&!!i,keepPreviousData:!0,staleTime:0,cacheTime:0}),IM=(e,n,i)=>Gn({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 vt.post("/runner/sql",{datasourceId:e,table:n,filters:l,size:1,page:0});return o.data},retry:1,enabled:!!n&&!!e&&!!i,staleTime:0,cacheTime:0}),VM=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/update",e);return n.data}}),$M=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/insert",e);return n.data}}),Np=e=>E.useMemo(()=>{var n,i,l;if(e)return e instanceof aA?(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]),YM=({data:e})=>{const[n,{change:i,touched:l}]=cp({}),{mutateAsync:o,error:s}=$M(),c=Np(s),{data:f}=Aa(e.dataSourceId),[h,d]=E.useState(""),y=E.useMemo(()=>f==null?void 0:f.find(b=>b.tableName===e.table),[f,e.table]),g=E.useMemo(()=>{if(!y)return[];if(!h)return y.columns.map(S=>({...S,label:dl(S.name)}));const b=h.toLowerCase();return y.columns.filter(S=>S.name.toLowerCase().includes(b)).map(S=>({...S,label:dl(S.name)}))},[h,y]),x=()=>{const b=[];for(const S of l)b.push({value:n[S],column:S});o({datasourceId:e.dataSourceId,table:e.table,values:b}).then(zM)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:zo.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",v.jsx("span",{className:"underline",children:e.table})]}),c&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:c})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:zo.container,children:v.jsx("div",{className:zo.fieldsContainer,children:g.map(b=>v.jsxs("label",{className:zo.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[b.isPrimary?"🔐":"🏷️"," ",b.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",b.name,": ",b.type,"]"]})]}),v.jsx("input",{className:"input w-full",value:fl(n[b.name]),onChange:i(b.name),placeholder:b.name})]},b.name))})}),v.jsxs("div",{className:zo.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:h,onChange:b=>d(b.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!l.length,className:"button primary",onClick:x,children:"Run insert"})]})]})},GM=()=>{const e=LM(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Rp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx(YM,{data:n})]})},[KM,jp]=Er(void 0),XM=()=>jp(void 0),ZM="_container_1fyct_2",JM="_header_1fyct_2",WM="_key_1fyct_2",e3="_fields-container_1fyct_2",t3="_field-label_1fyct_2",n3="_actions_1fyct_2",oa={container:ZM,header:JM,key:WM,fieldsContainer:e3,fieldLabel:t3,actions:n3},r3=({data:e})=>{const[n,{change:i,set:l,reset:o,touched:s}]=cp({}),[c,f]=E.useState(""),{data:h,isLoading:d}=IM(e.dataSourceId,e.tableName,e.entityId),{mutateAsync:y,error:g}=VM(),x=Np(g),{data:b}=Aa(e.dataSourceId),S=E.useMemo(()=>b==null?void 0:b.find(N=>N.tableName===e.tableName),[e.tableName,b]),k=E.useMemo(()=>{if(!S)return[];if(!c)return S.columns.map(O=>({...O,label:dl(O.name)}));const N=c.toLowerCase();return S.columns.filter(O=>O.name.toLowerCase().includes(N)).map(O=>({...O,label:dl(O.name)}))},[c,S]);E.useEffect(()=>{const N=h==null?void 0:h.rows[0];if(o(),N&&(h!=null&&h.columns))for(let O=0;O<h.columns.length;O++){const L=h.columns[O];l(L.column,fl(N[O]))}},[h,l,o]);const _=()=>{const N=[];for(const O of s)N.push({value:n[O],column:O});y({datasourceId:e.dataSourceId,table:e.tableName,filters:e.entityId.map(O=>({value:[{value:O[1]}],column:O[0],connector:"AND",operator:"="})),values:N}).then(XM)},A=e.entityId.map(([N,O])=>`${N} = ${O}`).join(", ")||"";return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:oa.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Edit row in ",v.jsx("span",{className:"underline",children:e==null?void 0:e.tableName})]}),v.jsx("span",{className:oa.key,children:A}),x&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:x})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:oa.container,children:v.jsx("div",{className:oa.fieldsContainer,children:k.map(N=>v.jsxs("label",{className:oa.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[N.isPrimary?"🔐":"🏷️"," ",N.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",N.name,": ",N.type,"]"]})]}),v.jsx("input",{disabled:N.isPrimary||d,className:"input w-full",value:fl(n[N.name]),onChange:i(N.name),placeholder:N.name})]},N.name))})}),v.jsxs("div",{className:oa.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:c,onChange:N=>f(N.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!s.length,className:"button primary",onClick:_,children:"Run update"})]})]})},i3=()=>{const e=KM(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>jp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx(r3,{data:n})]})},[l3,ah]=Er(void 0),a3=async e=>new Promise(n=>{ah({message:e,onCancel:()=>{n(!1),ah(void 0)},onConfirm:()=>{n(!0),ah(void 0)}})}),o3=({confirm:e})=>v.jsxs("div",{children:[v.jsx("p",{children:e.message}),v.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:e.onConfirm,children:"Confirm"})]})]}),s3=()=>{const e=l3(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>e==null?void 0:e.onCancel(),onClosed:()=>i(void 0),children:n&&v.jsx(o3,{confirm:n})})},[u3,Uu]=Er(void 0),xl=async(e,n,i)=>new Promise(l=>{Uu({message:e,defaultValue:n,alert:i,onCancel:()=>{Uu(void 0),l(void 0)},onConfirm:o=>{Uu(void 0),l(o)}})}),c3="_root_xn0p0_1",f3={root:c3},d3=({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 v.jsxs("div",{className:f3.root,children:[v.jsx("h2",{className:"text-xl font-semibold",children:e.message}),e.alert&&v.jsx(vr,{variant:e.alert.type,className:"mt-2",children:e.alert.message}),v.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:n,onChange:l,onKeyDown:o}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:()=>e.onConfirm(n),children:"Confirm"})]})]})},h3=()=>{const e=u3(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>Uu(void 0),onClosed:()=>i(void 0),children:n&&v.jsx(d3,{data:n})})},[p3,m3]=Er(void 0),U1=e=>{m3(e)},y3="_textarea_1e44o_2",g3={textarea:y3},v3=()=>{const e=p3(),n=()=>{e&&(navigator.clipboard.writeText(e.toString()),Zr.success("Copied!"))},i=()=>U1(void 0);return v.jsxs(nn,{isVisible:!!e,onClose:i,backdropClose:!0,children:[v.jsx("textarea",{className:g3.textarea,readOnly:!0,defaultValue:e==null?void 0:e.toString()}),v.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[v.jsx("button",{className:"button primary",onClick:n,children:"Copy"}),v.jsx("button",{className:"button tertiary",onClick:i,children:"Close"})]})]})},[b3,B1]=Er(!1),x3="_root_sv9tj_1",S3={root:x3},Xb="text-blue-500 underline hover:text-blue-700",w3=()=>{const e=b3(),n=()=>B1(!1);return v.jsxs(nn,{isVisible:e,onClose:n,backdropClose:!0,children:[v.jsx(Kn,{onClick:n}),v.jsxs("div",{className:S3.root,children:[v.jsx("h1",{className:"font-semibold text-xl",children:"Have questions?"}),v.jsx("p",{children:"You can reach me out via:"}),v.jsxs("ul",{className:"mt-2",children:[v.jsxs("li",{children:["💩 ",v.jsx("a",{className:Xb,href:"https://x.com/9zemian5",target:"_blank",children:"X.com @9zemian5"})]}),v.jsxs("li",{children:["💌 ",v.jsx("a",{className:Xb,href:"mailto:vigo@gmail.com",target:"_blank",children:"Email vigo@gmail.com"})]})]})]})]})},C3="_tabs_1f178_2",E3="_tab_1f178_2",T3="_active_1f178_2",k3="_close-button_1f178_2",A3="_active-tab_1f178_2",_3="_tooltip-label_1f178_2",O3="_tooltip-info-entry_1f178_2",gr={tabs:C3,tab:E3,active:T3,closeButton:k3,activeTab:A3,tooltipLabel:_3,tooltipInfoEntry:O3},R3="_table_1333x_2",N3="_semi-transparent_1333x_2",j3="_table-loading_1333x_2",D3="_table-empty_1333x_2",M3="_table-row-cells_1333x_2",L3="_header-cell_1333x_2",z3="_header-actions_1333x_2",U3="_cell_1333x_2",B3="_cell-actions_1333x_2",q3="_table-config_1333x_2",H3="_table-action_1333x_2",F3="_blue_1333x_2",Q3="_red_1333x_2",P3="_options-container_1333x_2",I3="_underlying-rows-btn_1333x_2",V3="_option-item_1333x_2",He={table:R3,semiTransparent:N3,tableLoading:j3,tableEmpty:D3,tableRowCells:M3,headerCell:L3,headerActions:z3,cell:U3,cellActions:B3,tableConfig:q3,tableAction:H3,blue:F3,red:Q3,optionsContainer:P3,underlyingRowsBtn:I3,optionItem:V3},ti=E.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),Rt=E.createContext({state:ma({}),setState:()=>{}}),ni=E.createContext({}),Dp=[{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:"ILIKE",label:"case-insensitive contains"},{value:"NOT ILIKE",label:"case-insensitive 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"}],Qo=Dp.reduce((e,n)=>(e[n.value]=n.label,e),{}),Zb=Dp.reduce((e,n)=>(e[n.label]=n.value,e),{}),Ra=e=>e.map(n=>({label:Qo[n],value:n})),$3=Ra(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),Y3=Ra(["=","<>","LIKE","NOT LIKE","ILIKE","NOT ILIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Ra(["=","<>","IS NULL","IS NOT NULL"]);const G3=Ra(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Ra(["IS NULL","IS NOT NULL"]);Ra(["IN","NOT IN"]);const q1=e=>e!=="IS NULL"&&e!=="IS NOT NULL",K3=(e,n)=>q1(e)?e==="IN"||e==="NOT IN"?n.split(",").map(i=>({value:i.trim(),isColumn:!1})):[{value:n,isColumn:!1}]:[],H1=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],X3=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],Z3=["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"],F1=()=>{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])},J3=e=>{if(e==="ASC")return"DESC";if(e!=="DESC")return"ASC"},W3=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.orderBy[0];if(s&&s.column===l){const c=J3(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 eL(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 Q1=()=>{const{state:e,setState:n}=E.useContext(Rt),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&&eL(o.value,c.value)))}))},[n]);return{filters:e.filters,addFilter:i,removeFilter:l}},tL="_drop-container_kju6t_2",nL="_item_kju6t_2",Jb={dropContainer:tL,item:nL},Fh=({dataSourceId:e,focusId:n,placeholder:i="Column",onChange:l,value:o,autoFocus:s,allowTables:c})=>{const{data:f}=Aa(e),h=E.useRef(null),d=E.useMemo(()=>{if(!f)return[];let A=f;return c&&(A=f.filter(N=>c.includes(N.tableName))),A.flatMap(N=>N.columns.map(O=>{const L=`${N.tableName}.${O.name}`;return{value:L,label:O.name,table:N.tableName,searchValue:L.toLowerCase()}}))},[f,c]),y=E.useMemo(()=>{const A=o.toLowerCase()||"",N=[];for(let O=0;O<d.length&&N.length<10;O++)d[O].searchValue.includes(A)&&N.push(d[O]);return N},[d,o]),[g,x]=E.useState(!1),[b,S]=E.useState(0),k=A=>{var N;if(A.key==="ArrowDown")A.preventDefault(),S(O=>(O+1)%y.length);else if(A.key==="ArrowUp")A.preventDefault(),S(O=>(O-1+y.length)%y.length);else if(A.key==="Enter"&&b>=0&&b<y.length){A.preventDefault();const O=y[b].value;x(!1);const L=d.findIndex(q=>q.value===O)>-1;l(((N=y[b])==null?void 0:N.value)||O,L,!0)}};E.useEffect(()=>{var N;const A=(N=h.current)==null?void 0:N.querySelector('[data-is-active="true"]');A&&A.scrollIntoView({behavior:"smooth",block:"nearest"})},[b]);const _=A=>{const N=A.currentTarget.value,O=d.findIndex(L=>L.value===N)>-1;l(N,O,!1)};return v.jsxs("div",{className:"relative",onFocus:()=>x(!0),onBlur:()=>x(!1),children:[v.jsx("input",{autoFocus:s,onKeyDown:k,value:o,onChange:_,className:Qe("input w-full"),placeholder:i,"data-focus":n}),g&&y.length>0&&v.jsx("div",{className:Jb.dropContainer,ref:h,tabIndex:-1,children:y.map((A,N)=>v.jsxs("div",{className:Jb.item,"data-is-active":b===N,onMouseDownCapture:O=>{O.preventDefault(),x(!1),l(A.value,!0,!0)},children:[v.jsx("span",{className:"text-xs font-semibold truncate",children:A.table}),v.jsx("p",{className:"truncate text-sm",children:A.label})]},N))})]})},rL="_drop-container_1ogyq_2",iL="_item_1ogyq_2",Wb={dropContainer:rL,item:iL};function lL(e){return H1.includes(e)?Y3:X3.includes(e)?$3:Z3.includes(e)?G3:Dp}const aL=({value:e,onChange:n,autoFocus:i,focusId:l,colType:o})=>{const s=E.useMemo(()=>{const x=e.toLowerCase()||"";return lL(o||"").filter(b=>b.label.includes(x))},[e,o]),c=E.useRef(null),[f,h]=E.useState(!1),[d,y]=E.useState(0),g=x=>{var b;x.key==="ArrowDown"?(x.preventDefault(),y(S=>(S+1)%s.length)):x.key==="ArrowUp"?(x.preventDefault(),y(S=>(S-1+s.length)%s.length)):x.key==="Enter"&&(d>=0&&d<s.length?(x.preventDefault(),h(!1),n(((b=s[d])==null?void 0:b.label)||"",!0)):n(e,!0))};return E.useEffect(()=>{var b;const x=(b=c.current)==null?void 0:b.querySelector('[data-is-active="true"]');x&&x.scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),v.jsxs("div",{className:"relative",children:[v.jsx("input",{onKeyDown:g,value:e,onChange:x=>n(x.target.value,!1),className:Qe("input w-full"),placeholder:"Operator",autoFocus:i,onFocus:()=>h(!0),onBlur:()=>h(!1),"data-focus":l}),f&&s.length>0&&v.jsx("ul",{className:Wb.dropContainer,ref:c,tabIndex:-1,children:s.map((x,b)=>v.jsx("li",{className:Wb.item,"data-is-active":d===b,onMouseDownCapture:S=>{S.preventDefault(),h(!1),n(x.label,!0)},children:x.label},b))})]})},oL="_form-container_ulrt4_2",sL={formContainer:oL},uL=e=>e instanceof HTMLElement,cL=()=>{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}"]`);uL(o)&&o.focus()},l)},[]);return{containerRef:e,focus:n}},P1=({onClose:e,selectColumn:n="",selectedOperation:i="",focusOn:l})=>{const{addFilter:o}=Q1(),{state:s}=E.useContext(Rt),{data:c}=Aa(s.dataSourceId),f=E.useMemo(()=>[s.table,...s.joins.map(Y=>Y.table)],[s.table,s.joins]),[h,d]=E.useState({column:n,operator:i,value:"",isMatched:!1}),[y,g]=E.useState(!1),{containerRef:x,focus:b}=cL(),S=E.useMemo(()=>{if(!c)return"";let Y=null;for(const ee of c)for(const ie of ee.columns)ee.tableName+"."+ie.name===h.column&&(Y=ie);return Y!=null&&Y.type?Y.type:""},[h.column,c]);E.useEffect(()=>{l&&b(l)},[b,l]);const k=Y=>{const ee=Y||h,[ie]=ee.column.split("."),z=Zb[ee.operator];if(!ee.column.includes(".")||!ie){Zr.error("Invalid column value: "+ee.column);return}if(!z){Zr.error("Invalid operator: "+ee.operator);return}o({connector:"AND",operator:z,column:ee.column,value:ee.isMatched?[{value:ee.value,isColumn:ee.isMatched}]:K3(z,ee.value)}),e()},_=Y=>{Y.key==="Enter"&&k()},A=(Y,ee,ie)=>{d(z=>({...z,column:Y,operator:""})),ie&&b("operator")},N=(Y,ee)=>{d(ie=>({...ie,operator:Y})),g(!1),ee&&b("value")},O=(Y,ee,ie)=>{ie?k({...h,value:Y,isMatched:ee}):d(z=>({...z,value:Y,isMatched:ee}))},L=Y=>{g(Y.target.checked),Y.target.checked||d(ee=>({...ee,isMatched:!1})),b("value")},q=h.operator.includes("list"),M=h.operator.includes("equal");return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Kn,{onClick:e}),v.jsx("h2",{className:"text-lg font-semibold",children:"Filter"}),v.jsxs("div",{className:sL.formContainer,ref:x,children:[v.jsxs("label",{className:"z-3 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Fh,{dataSourceId:s.dataSourceId,onChange:A,value:h.column,allowTables:f,focusId:"column"})]}),v.jsxs("label",{className:"z-2 w-full",children:[v.jsxs("p",{className:"font-semibold text-xs",children:["Operator ",v.jsxs("span",{className:"text-sm text-blue-800",children:["[for ",S,"]"]})]}),v.jsx(aL,{onChange:N,focusId:"operator",colType:S,value:h.operator})]}),q1(Zb[h.operator])&&v.jsxs("label",{className:"z-1 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Value"}),q||!y||!M?v.jsx("input",{className:"input w-full",placeholder:"Filter value",value:h.value,onKeyPress:_,onChange:Y=>O(Y.currentTarget.value,!1,!1),"data-focus":"value"}):v.jsx(Fh,{dataSourceId:s.dataSourceId,onChange:O,value:h.value,allowTables:f,focusId:"value",placeholder:"Insert value or column"})]}),M&&v.jsxs("label",{className:"w-full flex items-center gap-2",children:[v.jsx("input",{type:"checkbox",checked:y,onChange:L}),v.jsx("span",{children:"Value is another column"})]})]}),v.jsx("div",{className:"flex justify-end gap-2 items-center mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>k(),children:"Apply filter"})})]})};function fL(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 oh(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 dL=()=>{const{data:e}=E.useContext(ni),{getColumnType:n}=E.useContext(ti),{setState:i}=E.useContext(Rt),l=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));navigator.clipboard.writeText(y),Zr.success("Copied!")}},o=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));U1(y)}},s=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){let y;if(h==null)y={column:d.full,connector:"AND",operator:"IS NULL"};else{const g=fl(h,n(d.full));y={column:d.full,connector:"AND",operator:"=",value:[{value:g}]}}i(g=>({...g,filters:[...g.filters,y]}))}};return f=>{const h=fL(f);h&&(h.action==="copy"?l(h):h.action==="show"?o(h):h.action==="filter"&&s(h))}},[hL,Mp]=Er(void 0),ex=(e,n)=>{Mp({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)})},Qh=()=>Mp(void 0),pL="_container_dlzth_2",mL="_content_dlzth_2",yL="_backdrop_dlzth_2",sh={container:pL,content:mL,backdrop:yL},I1=({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?v.jsxs("div",{className:sh.container,children:[v.jsx("div",{className:sh.backdrop,onClick:o=>{o.stopPropagation(),o.preventDefault(),n.close()}}),v.jsx("div",{className:sh.content,style:l,children:e})]}):null},gL="_table_89hui_2",vL="_root_89hui_2",bL="_content_89hui_2",xL="_sub_89hui_2",Eu={table:gL,root:vL,content:bL,sub:xL},V1=({hook:e,onClick:n})=>v.jsxs("button",{className:Eu.root,onClick:n,title:e.where,children:[v.jsx("span",{children:"📄"}),v.jsxs("div",{className:Eu.content,children:[v.jsxs("p",{className:Eu.table,children:[" ",e.on.toTable]}),v.jsxs("span",{className:Eu.sub,children:[e.on.toColumn," = ",e.on.fromTable,".",e.on.fromColumn]})]})]},e.where),$1=(e,n)=>e!=null&&e>n,SL=({handler:e,rowIndex:n})=>{const{hooks:i,entities:l,dataSourceId:o,getEntityKey:s,getValue:c}=E.useContext(ti),{state:f}=E.useContext(Rt),{data:h}=E.useContext(ni),[d,y]=E.useState(""),[g,x]=E.useState(""),b=E.useMemo(()=>h==null?void 0:h.rows[n],[h,n]),S=()=>{b&&(ex("⬇️ "+f.table,{joins:f.joins,table:f.table,dataSourceId:f.dataSourceId,filters:[...f.filters,...f.groupBy.map(L=>({connector:"AND",column:L,operator:"=",value:[{value:c(b,L.split(".")[1],L.split(".")[0])}]}))]}),e.close())},k=L=>{if(!b)return;const q=c(b,L.on.fromColumn,L.on.fromTable);ex(`${L.on.toColumn} equals ${q}`,{table:L.on.toTable,dataSourceId:o,filters:[{column:L.on.toTable+"."+L.on.toColumn,operator:q==null?"IS NULL":"=",connector:"AND",value:q!=null?[{value:q,isColumn:!1}]:void 0}]}),e.close()},_=L=>{if(!b)return;const q=s(L,b);e.close(),jp({tableName:L,dataSourceId:o,entityId:q}),e.close()},A=E.useMemo(()=>d?l.filter(L=>L.includes(d)):l,[l,d]),N=E.useMemo(()=>{if(!h)return[];const L=g.toLowerCase();return i.filter(q=>h.columns.some(Y=>Y.column===q.on.fromColumn&&Y.table===q.on.fromTable)?q.on.toTable.toLowerCase().includes(L):!1)},[g,i,h]),O=f.groupBy.length>0;return v.jsxs(I1,{handler:e,children:[l.length>0&&v.jsxs("div",{className:He.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",children:[v.jsx("span",{className:"font-semibold",children:"📝"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:d,onChange:L=>y(L.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:$1(A.length,0)?A.map(L=>v.jsx("button",{className:Qe(He.optionItem,"font-semibold"),onClick:()=>_(L),children:v.jsxs("span",{children:["📄 ",L]})},L)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),i.length>0&&v.jsxs("div",{className:He.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[v.jsx("span",{className:"font-semibold",children:"↗️"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:g,onChange:L=>x(L.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:N.length>0?N.map(L=>v.jsx(V1,{hook:L,onClick:()=>k(L)},L.where)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),O&&v.jsx("button",{onClick:S,className:He.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},wL={ASC:"⬆️",DESC:"⬇️"};function CL(e,n){const i=n(e.full);return i&&H1.includes(i)?Qo.LIKE:Qo["="]}const EL=()=>{const{data:e}=E.useContext(ni),{getColumnType:n}=E.useContext(ti),{orderBy:i,updateOrderBy:l}=W3(),o=(e==null?void 0:e.columns)||[],s=i[0],[c,f]=E.useState();return v.jsxs("thead",{children:[v.jsx("tr",{children:o.map(h=>v.jsxs("td",{className:He.headerCell,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:"text-xs truncate",children:h.table||"-"}),v.jsx("p",{className:"text-sm font-bold truncate",children:h.alias})]}),v.jsxs("div",{className:He.headerActions,children:[h.table&&v.jsx("button",{onClick:()=>{f(h)},children:"🔎"}),v.jsx("button",{onClick:()=>l(h.full),children:(s==null?void 0:s.column)===h.full?wL[s.direction]:"↕️"})]})]},h.full))}),c&&v.jsx(P1,{selectColumn:c.full,selectedOperation:CL(c,n),focusOn:"value",onClose:()=>f(void 0)})]})};function TL({value:e,row:n,col:i}){if(e==="")return v.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(e==null)return v.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const l=fl(e);return v.jsxs(v.Fragment,{children:[v.jsx("span",{"data-row":n,className:"truncate block pointer-events-none",children:l}),v.jsxs("div",{className:He.cellActions,children:[v.jsx("button",{"data-copy-col":i,"data-copy-row":n,children:"📋"}),v.jsx("button",{"data-show-col":i,"data-show-row":n,children:"👀"}),v.jsx("button",{"data-filter-col":i,"data-filter-row":n,children:"🔎"})]})]})}const kL=E.memo(({row:e,isLastRow:n,index:i})=>v.jsx("tr",{className:Qe(He.tableRowCells,n&&"rounded-b-lg"),children:e.map((l,o)=>v.jsx("td",{className:He.cell,"data-row":i,children:v.jsx(TL,{value:l,col:o,row:i})},o))})),AL=()=>{var y,g;const{data:e,error:n,isLoading:i,isFetching:l}=E.useContext(ni),o=Np(n),s=dL(),c=F1(),[f,h]=E.useState(void 0),d=x=>{var k;const b=(k=x.target)==null?void 0:k.dataset,S=b==null?void 0:b.row;S!=null&&(h(parseInt(S)),c.open(x))};return v.jsxs(v.Fragment,{children:[f!=null&&c.show&&v.jsx(SL,{handler:c,rowIndex:f}),o&&v.jsx(vr,{className:"my-4",variant:"danger",children:o}),i&&v.jsx("div",{className:He.tableLoading,children:"Loading data"}),e&&v.jsxs("table",{className:Qe(He.table,l&&He.semiTransparent),onContextMenu:d,onClick:s,children:[v.jsx(EL,{}),v.jsxs("tbody",{children:[((y=e.rows)==null?void 0:y.length)<1&&v.jsx("tr",{className:He.tableEmpty,children:v.jsx("td",{colSpan:e.columns.length,children:"No data"})}),(g=e.rows)==null?void 0:g.map((x,b)=>v.jsx(kL,{index:b,row:x,isLastRow:b===e.rows.length-1},b))]})]})]})},_L="_root_1dvjv_2",OL="_root-show_1dvjv_2",RL="_content_1dvjv_2",NL="_card_1dvjv_2",jL="_cards-list_1dvjv_2",DL="_sub-text_1dvjv_2",ML="_text_1dvjv_2",LL="_section-title_1dvjv_2",zL="_sidebar-action_1dvjv_2",UL="_join-modal_1dvjv_2",BL="_section-container_1dvjv_2",qL="_close-button_1dvjv_2",HL="_expand_1dvjv_2",FL="_section-open-btn_1dvjv_2",QL="_show_1dvjv_2",ve={root:_L,rootShow:OL,content:RL,card:NL,cardsList:jL,subText:DL,text:ML,sectionTitle:LL,sidebarAction:zL,joinModal:UL,sectionContainer:BL,closeButton:qL,expand:HL,sectionOpenBtn:FL,show:QL},PL="_container_1n2k5_2",IL="_column-label_1n2k5_2",VL="_not-active_1n2k5_2",Tu={container:PL,columnLabel:IL,notActive:VL};function $L(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}function YL(e){if(!e)return[];const n={};return e.forEach(i=>{n[i.table]?n[i.table].push({value:i.full,label:dl(i.column),type:i.type}):n[i.table]=[{value:i.full,label:dl(i.column),type:i.type}]}),Object.entries(n).reduce((i,[l,o])=>(i.push({name:dl(l),columns:o}),i),[])}function GL(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 Y1=({onCancel:e,mode:n})=>{const{allColumns:i}=E.useContext(ti),{state:l,setState:o}=E.useContext(Rt),[s,c]=E.useState($L(l[n])),[f,h]=E.useState(""),d=E.useMemo(()=>YL(i),[i]),y=E.useMemo(()=>f?GL(d,f):d,[f,d]),g=k=>{c(_=>({..._,[k.target.name]:k.target.checked}))},x=k=>{const _=k.target.checked;c(A=>{for(const N of i)A[N.full]=_;return{...A}})},b=()=>{const k=[];for(const _ of i)s[_.full]&&k.push(_.full);o(_=>({..._,[n]:k})),e()},S=E.useMemo(()=>{for(const k of i)if(!s[k.full])return!1;return!0},[s,i]);return v.jsxs(nn,{isVisible:!0,onClose:e,children:[v.jsx(Kn,{onClick:e}),v.jsxs("div",{className:Tu.container,children:[v.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),v.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:f,onChange:k=>h(k.target.value)}),v.jsx("div",{className:"overflow-y-auto",children:y.map(k=>v.jsxs("div",{className:"mt-2",children:[v.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",k.name]}),k.columns.map(_=>v.jsxs("label",{className:Qe(Tu.columnLabel,s[_.value]?Tu.active:Tu.notActive),children:[v.jsx("input",{type:"checkbox",checked:s[_.value],name:_.value,onChange:g}),v.jsxs("p",{className:"flex justify-between w-full",children:[v.jsx("span",{"data-tooltip-content":_.value,"data-tooltip-id":"default",children:_.label}),v.jsx("span",{className:"text-blue-600",children:_.type})]})]},_.value))]},k.name))}),v.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[v.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[v.jsx("input",{type:"checkbox",checked:S,onChange:x}),v.jsx("span",{children:"Select all"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{className:"button tertiary",onClick:e,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:b,children:"Apply"})]})]})]})},KL={},XL=({onClose:e})=>{const{dataSourceId:n}=E.useContext(ti),{setState:i}=E.useContext(Rt),{data:l}=E.useContext(ni),[o,s]=E.useState({fn:"",col:""}),c=d=>s({...o,fn:d.currentTarget.value}),f=d=>s({...o,col:d}),h=()=>{i(d=>({...d,aggregations:[...d.aggregations,{fn:o.fn,column:o.col}]})),e()};return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Kn,{onClick:e}),v.jsxs("div",{className:KL.root,children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),v.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end mt-4",children:[v.jsxs("label",{children:[v.jsx("p",{className:"font-semibold text-xs",children:"Function"}),v.jsxs("select",{className:"input w-full",value:o.fn,onChange:c,autoFocus:!0,children:[v.jsx("option",{value:"",disabled:!0,children:"Select function"}),v.jsx("option",{value:"count",children:"Count"}),v.jsx("option",{value:"sum",children:"Sum"}),v.jsx("option",{value:"max",children:"Max"}),v.jsx("option",{value:"min",children:"Min"}),v.jsx("option",{value:"avg",children:"Avg"})]})]}),v.jsxs("label",{children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Fh,{dataSourceId:n,allowTables:(l==null?void 0:l.tables)||[],onChange:f,value:o.col})]}),v.jsx("button",{className:"button primary",disabled:!o.col||!o.fn,onClick:h,children:"Add"})]})]})]})},ZL=(e,n)=>e.type!==n.type||e.on!==n.on||e.table!==n.table,JL=(e,n)=>e.type===n.type&&e.on===n.on&&e.table===n.table,WL=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.joins;if(s.some(f=>JL(f,l))){const f=l.table+".";return{...o,joins:s.filter(h=>ZL(h,l)),columns:o.columns.filter(h=>!h.startsWith(f)),groupBy:o.groupBy.filter(h=>!h.startsWith(f)),orderBy:o.orderBy.filter(h=>!h.column.startsWith(f)),aggregations:o.aggregations.filter(h=>!h.column.startsWith(f)),filters:o.filters.filter(h=>!h.column.startsWith(f))}}return{...o,joins:[...s,l]}})},[n]);return{joins:e.joins,toggle:i}},G1=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/queries",e);return n.data},onSuccess:()=>{Ot.invalidateQueries(["queries"]),ts(),dt.event("Query created")}}),ez=()=>Cr({mutationFn:async({id:e,payload:n})=>{const{data:i}=await vt.patch("/queries/"+e,n);return i.data},onSuccess:e=>{Ot.invalidateQueries(["query",e.id]),ts(),dA(),e.isTrash?dt.event("Query trashed"):dt.event("Query updated")}});function K1(e,n){const i={};return Object.entries(e).forEach(([l,o])=>{n.includes(l)||(i[l]=o)}),i}const X1=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"})),fa=new Map,tz=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=fa.get(e.key.toLowerCase());i&&i.length>0&&i[i.length-1].callback()},nz=(e,n,i="")=>{const l=e.toLowerCase(),o=fa.get(e);return o?fa.set(e,[...o,{callback:n,label:i}]):fa.set(l,[{callback:n,label:i}]),()=>{const s=e.toLowerCase(),c=fa.get(s);c&&fa.set(s,c.filter(f=>f.callback!==n))}};window.addEventListener("keyup",tz);function br(e,n,i){const l=E.useRef({callback:n,label:i});l.current.callback=n,E.useEffect(()=>nz(e,()=>{l.current.callback()},l.current.label),[e])}const rz=()=>{const e=sp("Hotkey"),n=Jr(),i=vn(),{data:l}=zi();br("n",()=>{l&&e()},"📖 New query"),br("w",()=>{if(!l)return;mc.get().length<1?e():i.pathname!==_t.workbench.path&&n(_t.workbench.path)},"🛠️ Open Workbench"),br("h",()=>{i.pathname!==_t.home.path&&n(_t.home.path)},"🍜 Go home")},iz=()=>{const[e,n]=E.useState(!0);return br("o",()=>{n(i=>!i)}),v.jsxs("div",{className:Qe(ve.root,e&&ve.rootShow),children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Customize query [Hotkey O]",className:ve.expand,onClick:()=>n(!e),children:"⚙️"}),v.jsxs("div",{className:ve.content,children:[v.jsx(az,{}),v.jsx(lz,{}),v.jsx(hz,{}),v.jsx(dz,{}),v.jsx(fz,{}),v.jsx(sz,{}),v.jsx(uz,{}),v.jsx(oz,{})]})]})};function as({onShow:e,show:n,title:i,items:l}){return v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("p",{className:ve.sectionTitle,children:i}),l>0&&v.jsxs("button",{className:Qe(ve.sectionOpenBtn,n&&ve.show),onClick:e,children:[v.jsx("span",{children:l}),v.jsx(X1,{width:16,height:16})]})]})}function lz(){const{state:e}=E.useContext(Rt),{name:n}=E.useContext(ti),{data:i}=E.useContext(ni),l=G1(),o=()=>{i!=null&&i.query&&(navigator.clipboard.writeText(i==null?void 0:i.query),Zr.success("Query copied to clipboard"))},s=async()=>{const c=K1(e,["size","page"]),f=await xl("Query name",n);f&&l.mutate({name:f,dataSourceId:e.dataSourceId,opts:c})};return v.jsxs("div",{className:"mb-4 flex justify-end gap-2",children:[v.jsxs("button",{className:ve.sidebarAction,onClick:o,children:[v.jsx("span",{children:"🖋️"}),v.jsx("span",{children:"Copy SQL"})]}),v.jsxs("button",{className:ve.sidebarAction,onClick:s,children:[v.jsx("span",{children:"💾"}),v.jsx("span",{children:"Save"})]})]})}function az(){const{state:e}=E.useContext(Rt),{data:n}=x0(e.dataSourceId);return v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("div",{className:ve.card,children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📄 Table"}),v.jsx("p",{className:Qe(ve.text,"text-blue-600"),children:e.table})]})}),v.jsx("div",{className:Qe(ve.card,"mt-2"),children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📦 Data source"}),v.jsx("p",{className:Qe(ve.text,"text-blue-600"),children:n==null?void 0:n.name})]})})]})}function oz(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{n(h=>({...h,groupBy:h.groupBy.filter(d=>d!==f)}))};return br("g",()=>{l(f=>!f)},"Group by"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📚 Group by",show:o,onShow:()=>s(!o),items:e.groupBy.length}),o&&e.groupBy.length>0&&v.jsx("div",{className:ve.cardsList,children:e.groupBy.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:f}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"G"}),v.jsx("span",{children:"Add group by"})]}),i&&v.jsx(Y1,{mode:"groupBy",onCancel:()=>l(!1)})]})}function sz(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!1),c=h=>{n(d=>({...d,columns:d.columns.filter(y=>y!==h)}))},f=e.aggregations.length>0||e.groupBy.length>0;return br("c",()=>{l(h=>!h)},"Show/hide columns"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"👀 Columns",show:o,onShow:()=>s(!o),items:e.columns.length}),f&&v.jsx(vr,{variant:"warning",className:"border border-yellow-800 my-2",children:v.jsx("span",{className:ve.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!f&&o&&e.columns.length>0&&v.jsx("div",{className:ve.cardsList,children:e.columns.map(h=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:h}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(h),children:v.jsx(Bi,{width:20,height:20})})]}))}),!f&&v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"C"}),v.jsx("span",{children:"Show/Hide columns"})]}),i&&v.jsx(Y1,{mode:"columns",onCancel:()=>l(!1)})]})}function uz(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{const h=z1(f);n(d=>({...d,aggregations:d.aggregations.filter(y=>y.fn!==f.fn&&y.column!==f.column),orderBy:d.orderBy.filter(y=>y.column!==h)}))};return br("a",()=>{l(f=>!f)},"Aggregate data"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🔢 Aggregations",show:o,onShow:()=>s(!o),items:e.aggregations.length}),o&&e.aggregations.length>0&&v.jsx("div",{className:ve.cardsList,children:e.aggregations.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsxs("span",{className:ve.text,children:[f.fn," ",f.column]}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"A"}),v.jsx("span",{children:"Aggregate data"})]}),i&&v.jsx(XL,{onClose:()=>l(!1)})]})}const cz=e=>(e==null?void 0:e.map(n=>n.value).join(", "))||"";function fz(){const{state:e}=E.useContext(Rt),{removeFilter:n}=Q1(),[i,l]=E.useState(!1),[o,s]=E.useState(!0);return br("f",()=>{l(c=>!c)},"Add new filter"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🎚️ Filters",show:o,onShow:()=>s(!o),items:e.filters.length}),o&&e.filters.length>0&&v.jsx("div",{className:ve.cardsList,children:e.filters.map((c,f)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Qe(ve.subText,"truncate"),children:c.column}),v.jsxs("p",{className:Qe(ve.text,"truncate"),children:[Qo[c.operator]," ",cz(c.value)]})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>n(c),children:v.jsx(Bi,{width:20,height:20})})]},f))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"F"}),v.jsx("span",{children:"Add filter"})]}),i&&v.jsx(P1,{onClose:()=>l(!1),focusOn:"column"})]})}function dz(){const{toggle:e}=WL(),{availableJoins:n}=E.useContext(ti),{state:i}=E.useContext(Rt),[l,o]=E.useState(""),[s,c]=E.useState(!0),[f,h]=E.useState(!1),d=E.useMemo(()=>{const g=l.toLowerCase();return n.filter(x=>x.on.toTable.toLowerCase().includes(g))},[n,l]),y=()=>{h(!1),o("")};return br("j",()=>{n.length>0?h(g=>!g):Zr.error("No available tables to join")},"Add new join"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📄 Joins",show:s,onShow:()=>c(!s),items:i.joins.length}),s&&i.joins.length>0&&v.jsx("div",{className:ve.cardsList,children:i.joins.map((g,x)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsxs("p",{className:Qe(ve.subText,"truncate"),children:["on ",g.on]}),v.jsx("p",{className:ve.text,children:g.table})]}),x===i.joins.length-1&&v.jsx("button",{className:ve.closeButton,onClick:()=>e(g),children:v.jsx(Bi,{width:20,height:20})})]},g.table+g.on))}),n.length>0&&v.jsxs("button",{onClick:()=>h(!0),className:ve.sidebarAction,children:[v.jsx("span",{className:"hotkey",children:"J"}),v.jsx("span",{children:"Add table"})]}),v.jsxs(nn,{isVisible:f,onClose:y,children:[v.jsx(Kn,{onClick:y}),v.jsxs("div",{className:ve.joinModal,children:[v.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),v.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:g=>o(g.target.value),value:l}),v.jsx("div",{className:"flex flex-col mt-2",children:d.map(g=>v.jsx(V1,{hook:g,onClick:()=>{e({table:g.on.toTable,type:"LEFT",on:g.where}),h(!1)}},g.where))})]})]})]})}function hz(){const{state:e,setState:n}=E.useContext(Rt);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 v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("p",{className:ve.sectionTitle,children:"Order by"}),v.jsx("div",{className:ve.cardsList,children:e.orderBy.map((l,o)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Qe(ve.subText,"truncate"),children:l.direction}),v.jsx("p",{className:ve.text,children:l.column})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>i(l),children:v.jsx(Bi,{width:20,height:20})})]},o))})]})}const Z1=()=>{const{state:e,setState:n}=E.useContext(Rt),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 pz(){return v.jsxs("div",{className:"py-2 flex justify-center gap-2 sticky top-0 left-0",children:[v.jsx(mz,{}),v.jsx(yz,{}),v.jsx(gz,{}),v.jsx(vz,{})]})}function mz(){const{dataSourceId:e,name:n}=E.useContext(ti),{state:i}=E.useContext(Rt),{refetch:l,data:o}=E.useContext(ni),s=G1(),c=()=>{var d,y;(d=o==null?void 0:o.columns)!=null&&d[0].table&&Rp({table:(y=o==null?void 0:o.columns)==null?void 0:y[0].table,dataSourceId:e})},f=()=>{Vo(n,i,!0),Qh()},h=async()=>{const d=K1(i,["size","page"]),y=await xl("Query name",n);y&&s.mutate({name:y,dataSourceId:e,opts:d})};return v.jsxs("div",{className:He.tableConfig,children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:()=>l(),className:Qe(He.tableAction,He.blue),children:"🔄"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Save query",onClick:h,className:Qe(He.tableAction,He.blue),children:"💾"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Insert new row",onClick:c,className:Qe(He.tableAction,He.blue),children:"📝"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Open in a new tab",onClick:f,className:Qe(He.tableAction,He.blue),children:"↗️"})]})}function yz(){const{page:e,size:n,setPage:i}=Z1(),{data:l}=E.useContext(ni),o=(l==null?void 0:l.rows.length)===n;return v.jsxs("div",{className:He.tableConfig,children:[v.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:e<=0,className:Qe(He.tableAction,He.blue),onClick:()=>i(e-1),children:"⬅️"}),v.jsx("span",{children:e+1}),v.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!o,className:Qe(He.tableAction,He.blue),onClick:()=>i(e+1),children:"➡️"})]})}function gz(){const{size:e,setSize:n}=Z1();return v.jsx("div",{className:He.tableConfig,children:v.jsxs("label",{className:He.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:["📏",v.jsxs("select",{style:{height:"20px"},value:e,onChange:i=>n(parseInt(i.target.value,10)),children:[v.jsx("option",{value:5,children:"5"}),v.jsx("option",{value:10,children:"10"}),v.jsx("option",{value:20,children:"20"}),v.jsx("option",{value:50,children:"50"}),v.jsx("option",{value:100,children:"100"}),v.jsx("option",{value:200,children:"200"})]})]})})}function vz(){const{state:e,setState:n}=E.useContext(Rt),i=()=>{n(o=>({...o,searchAll:void 0}))},l=()=>{xl("Search all text values for","",{type:"warning",message:"⚠️ This will search all text values using LIKE operator (numbers, dates and other non string values are not searched). This can make your query heavy, make sure to reduce the number of columns you are using."}).then(o=>{o&&n(s=>({...s,searchAll:o}))})};return v.jsx("div",{className:He.tableConfig,children:e.searchAll?v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:i,className:Qe(He.tableAction,He.red),children:v.jsxs("span",{className:"truncate px-1",children:["❌ ",e.searchAll]})}):v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:l,className:Qe(He.tableAction,He.blue),children:"🔎"})})}function bz(e,n,i){const l=[];return n.length>0||i.length>0?l.push(...n,...i.map(z1)):e.length>0&&l.push(...e),l.length>0?l:[]}const J1=({options:e,updater:n,name:i,className:l})=>{const o=TA(e,n),{state:s}=o,c=PM({datasourceId:e.dataSourceId,table:e.table,filters:s.filters,joins:s.joins,page:s.page,size:s.size,orderBy:s.orderBy,columns:bz(s.columns,s.groupBy,s.aggregations),groupBy:s.groupBy,searchAll:s.searchAll}),f=EA(c.data,e.dataSourceId,i);return v.jsx("div",{className:Qe("flex flex-1 gap-1 overflow-hidden",l),children:v.jsx(ti,{value:f,children:v.jsx(Rt,{value:o,children:v.jsxs(ni,{value:c,children:[v.jsxs("div",{className:"m-1 flex-1 overflow-auto relative",children:[v.jsx(pz,{}),v.jsx(AL,{})]}),v.jsx(iz,{})]})})})})},ga=Math.min,hl=Math.max,Wu=Math.round,ku=Math.floor,xr=e=>({x:e,y:e}),xz={left:"right",right:"left",bottom:"top",top:"bottom"},Sz={start:"end",end:"start"};function Ph(e,n,i){return hl(e,ga(n,i))}function os(e,n){return typeof e=="function"?e(n):e}function yl(e){return e.split("-")[0]}function ss(e){return e.split("-")[1]}function W1(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function Di(e){return["top","bottom"].includes(yl(e))?"y":"x"}function zp(e){return W1(Di(e))}function wz(e,n,i){i===void 0&&(i=!1);const l=ss(e),o=zp(e),s=Lp(o);let c=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=ec(c)),[c,ec(c)]}function Cz(e){const n=ec(e);return[Ih(e),n,Ih(n)]}function Ih(e){return e.replace(/start|end/g,n=>Sz[n])}function Ez(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 Tz(e,n,i,l){const o=ss(e);let s=Ez(yl(e),i==="start",l);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(Ih)))),s}function ec(e){return e.replace(/left|right|bottom|top/g,n=>xz[n])}function kz(e){return{top:0,right:0,bottom:0,left:0,...e}}function eS(e){return typeof e!="number"?kz(e):{top:e,right:e,bottom:e,left:e}}function tc(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 tx(e,n,i){let{reference:l,floating:o}=e;const s=Di(n),c=zp(n),f=Lp(c),h=yl(n),d=s==="y",y=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 b;switch(h){case"top":b={x:y,y:l.y-o.height};break;case"bottom":b={x:y,y:l.y+l.height};break;case"right":b={x:l.x+l.width,y:g};break;case"left":b={x:l.x-o.width,y:g};break;default:b={x:l.x,y:l.y}}switch(ss(n)){case"start":b[c]-=x*(i&&d?-1:1);break;case"end":b[c]+=x*(i&&d?-1:1);break}return b}const Az=async(e,n,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:c}=i,f=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:y,y:g}=tx(d,l,h),x=l,b={},S=0;for(let k=0;k<f.length;k++){const{name:_,fn:A}=f[k],{x:N,y:O,data:L,reset:q}=await A({x:y,y:g,initialPlacement:l,placement:x,strategy:o,middlewareData:b,rects:d,platform:c,elements:{reference:e,floating:n}});y=N??y,g=O??g,b={...b,[_]:{...b[_],...L}},q&&S<=50&&(S++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(d=q.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):q.rects),{x:y,y:g}=tx(d,x,h)),k=-1)}return{x:y,y:g,placement:x,strategy:o,middlewareData:b}};async function tS(e,n){var i;n===void 0&&(n={});const{x:l,y:o,platform:s,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:b=0}=os(n,e),S=eS(b),_=f[x?g==="floating"?"reference":"floating":g],A=tc(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:d,rootBoundary:y,strategy:h})),N=g==="floating"?{x:l,y:o,width:c.floating.width,height:c.floating.height}:c.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),L=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},q=tc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:O,strategy:h}):N);return{top:(A.top-q.top+S.top)/L.y,bottom:(q.bottom-A.bottom+S.bottom)/L.y,left:(A.left-q.left+S.left)/L.x,right:(q.right-A.right+S.right)/L.x}}const _z=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:o,rects:s,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:y=0}=os(e,n)||{};if(d==null)return{};const g=eS(y),x={x:i,y:l},b=zp(o),S=Lp(b),k=await c.getDimensions(d),_=b==="y",A=_?"top":"left",N=_?"bottom":"right",O=_?"clientHeight":"clientWidth",L=s.reference[S]+s.reference[b]-x[b]-s.floating[S],q=x[b]-s.reference[b],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let Y=M?M[O]:0;(!Y||!await(c.isElement==null?void 0:c.isElement(M)))&&(Y=f.floating[O]||s.floating[S]);const ee=L/2-q/2,ie=Y/2-k[S]/2-1,z=ga(g[A],ie),ae=ga(g[N],ie),te=z,ue=Y-k[S]-ae,J=Y/2-k[S]/2+ee,se=Ph(te,J,ue),B=!h.arrow&&ss(o)!=null&&J!==se&&s.reference[S]/2-(J<te?z:ae)-k[S]/2<0,X=B?J<te?J-te:J-ue:0;return{[b]:x[b]+X,data:{[b]:se,centerOffset:J-se-X,...B&&{alignmentOffset:X}},reset:B}}}),Oz=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:h,elements:d}=n,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0,..._}=os(e,n);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const A=yl(o),N=Di(f),O=yl(f)===f,L=await(h.isRTL==null?void 0:h.isRTL(d.floating)),q=x||(O||!k?[ec(f)]:Cz(f)),M=S!=="none";!x&&M&&q.push(...Tz(f,k,S,L));const Y=[f,...q],ee=await tS(n,_),ie=[];let z=((l=s.flip)==null?void 0:l.overflows)||[];if(y&&ie.push(ee[A]),g){const J=wz(o,c,L);ie.push(ee[J[0]],ee[J[1]])}if(z=[...z,{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=Y[J];if(se&&(!(g==="alignment"?N!==Di(se):!1)||z.every(ne=>ne.overflows[0]>0&&Di(ne.placement)===N)))return{data:{index:J,overflows:z},reset:{placement:se}};let B=(te=z.filter(X=>X.overflows[0]<=0).sort((X,ne)=>X.overflows[1]-ne.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(b){case"bestFit":{var ue;const X=(ue=z.filter(ne=>{if(M){const pe=Di(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&&(B=X);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function Rz(e,n){const{placement:i,platform:l,elements:o}=e,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),c=yl(i),f=ss(i),h=Di(i)==="y",d=["left","top"].includes(c)?-1:1,y=s&&h?-1:1,g=os(n,e);let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof S=="number"&&(b=f==="end"?S*-1:S),h?{x:b*y,y:x*d}:{x:x*d,y:b*y}}const Nz=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,h=await Rz(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},jz=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}}},...h}=os(e,n),d={x:i,y:l},y=await tS(n,h),g=Di(yl(o)),x=W1(g);let b=d[x],S=d[g];if(s){const _=x==="y"?"top":"left",A=x==="y"?"bottom":"right",N=b+y[_],O=b-y[A];b=Ph(N,b,O)}if(c){const _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=S+y[_],O=S-y[A];S=Ph(N,S,O)}const k=f.fn({...n,[x]:b,[g]:S});return{...k,data:{x:k.x-i,y:k.y-l,enabled:{[x]:s,[g]:c}}}}}};function Sc(){return typeof window<"u"}function Na(e){return nS(e)?(e.nodeName||"").toLowerCase():"#document"}function jn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function kr(e){var n;return(n=(nS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function nS(e){return Sc()?e instanceof Node||e instanceof jn(e).Node:!1}function rr(e){return Sc()?e instanceof Element||e instanceof jn(e).Element:!1}function Sr(e){return Sc()?e instanceof HTMLElement||e instanceof jn(e).HTMLElement:!1}function nx(e){return!Sc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jn(e).ShadowRoot}function us(e){const{overflow:n,overflowX:i,overflowY:l,display:o}=ir(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&!["inline","contents"].includes(o)}function Dz(e){return["table","td","th"].includes(Na(e))}function wc(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Up(e){const n=Bp(),i=rr(e)?ir(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 Mz(e){let n=Li(e);for(;Sr(n)&&!va(n);){if(Up(n))return n;if(wc(n))return null;n=Li(n)}return null}function Bp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function va(e){return["html","body","#document"].includes(Na(e))}function ir(e){return jn(e).getComputedStyle(e)}function Cc(e){return rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Li(e){if(Na(e)==="html")return e;const n=e.assignedSlot||e.parentNode||nx(e)&&e.host||kr(e);return nx(n)?n.host:n}function rS(e){const n=Li(e);return va(n)?e.ownerDocument?e.ownerDocument.body:e.body:Sr(n)&&us(n)?n:rS(n)}function Go(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=rS(e),s=o===((l=e.ownerDocument)==null?void 0:l.body),c=jn(o);if(s){const f=Vh(c);return n.concat(c,c.visualViewport||[],us(o)?o:[],f&&i?Go(f):[])}return n.concat(o,Go(o,[],i))}function Vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iS(e){const n=ir(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=Sr(e),s=o?e.offsetWidth:i,c=o?e.offsetHeight:l,f=Wu(i)!==s||Wu(l)!==c;return f&&(i=s,l=c),{width:i,height:l,$:f}}function qp(e){return rr(e)?e:e.contextElement}function pa(e){const n=qp(e);if(!Sr(n))return xr(1);const i=n.getBoundingClientRect(),{width:l,height:o,$:s}=iS(n);let c=(s?Wu(i.width):i.width)/l,f=(s?Wu(i.height):i.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const Lz=xr(0);function lS(e){const n=jn(e);return!Bp()||!n.visualViewport?Lz:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function zz(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==jn(e)?!1:n}function gl(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),s=qp(e);let c=xr(1);n&&(l?rr(l)&&(c=pa(l)):c=pa(e));const f=zz(s,i,l)?lS(s):xr(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,y=o.width/c.x,g=o.height/c.y;if(s){const x=jn(s),b=l&&rr(l)?jn(l):l;let S=x,k=Vh(S);for(;k&&l&&b!==S;){const _=pa(k),A=k.getBoundingClientRect(),N=ir(k),O=A.left+(k.clientLeft+parseFloat(N.paddingLeft))*_.x,L=A.top+(k.clientTop+parseFloat(N.paddingTop))*_.y;h*=_.x,d*=_.y,y*=_.x,g*=_.y,h+=O,d+=L,S=jn(k),k=Vh(S)}}return tc({width:y,height:g,x:h,y:d})}function Hp(e,n){const i=Cc(e).scrollLeft;return n?n.left+i:gl(kr(e)).left+i}function aS(e,n,i){i===void 0&&(i=!1);const l=e.getBoundingClientRect(),o=l.left+n.scrollLeft-(i?0:Hp(e,l)),s=l.top+n.scrollTop;return{x:o,y:s}}function Uz(e){let{elements:n,rect:i,offsetParent:l,strategy:o}=e;const s=o==="fixed",c=kr(l),f=n?wc(n.floating):!1;if(l===c||f&&s)return i;let h={scrollLeft:0,scrollTop:0},d=xr(1);const y=xr(0),g=Sr(l);if((g||!g&&!s)&&((Na(l)!=="body"||us(c))&&(h=Cc(l)),Sr(l))){const b=gl(l);d=pa(l),y.x=b.x+l.clientLeft,y.y=b.y+l.clientTop}const x=c&&!g&&!s?aS(c,h,!0):xr(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-h.scrollLeft*d.x+y.x+x.x,y:i.y*d.y-h.scrollTop*d.y+y.y+x.y}}function Bz(e){return Array.from(e.getClientRects())}function qz(e){const n=kr(e),i=Cc(e),l=e.ownerDocument.body,o=hl(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=hl(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let c=-i.scrollLeft+Hp(e);const f=-i.scrollTop;return ir(l).direction==="rtl"&&(c+=hl(n.clientWidth,l.clientWidth)-o),{width:o,height:s,x:c,y:f}}function Hz(e,n){const i=jn(e),l=kr(e),o=i.visualViewport;let s=l.clientWidth,c=l.clientHeight,f=0,h=0;if(o){s=o.width,c=o.height;const d=Bp();(!d||d&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}return{width:s,height:c,x:f,y:h}}function Fz(e,n){const i=gl(e,!0,n==="fixed"),l=i.top+e.clientTop,o=i.left+e.clientLeft,s=Sr(e)?pa(e):xr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,h=o*s.x,d=l*s.y;return{width:c,height:f,x:h,y:d}}function rx(e,n,i){let l;if(n==="viewport")l=Hz(e,i);else if(n==="document")l=qz(kr(e));else if(rr(n))l=Fz(n,i);else{const o=lS(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return tc(l)}function oS(e,n){const i=Li(e);return i===n||!rr(i)||va(i)?!1:ir(i).position==="fixed"||oS(i,n)}function Qz(e,n){const i=n.get(e);if(i)return i;let l=Go(e,[],!1).filter(f=>rr(f)&&Na(f)!=="body"),o=null;const s=ir(e).position==="fixed";let c=s?Li(e):e;for(;rr(c)&&!va(c);){const f=ir(c),h=Up(c);!h&&f.position==="fixed"&&(o=null),(s?!h&&!o:!h&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||us(c)&&!h&&oS(e,c))?l=l.filter(y=>y!==c):o=f,c=Li(c)}return n.set(e,l),l}function Pz(e){let{element:n,boundary:i,rootBoundary:l,strategy:o}=e;const c=[...i==="clippingAncestors"?wc(n)?[]:Qz(n,this._c):[].concat(i),l],f=c[0],h=c.reduce((d,y)=>{const g=rx(n,y,o);return d.top=hl(g.top,d.top),d.right=ga(g.right,d.right),d.bottom=ga(g.bottom,d.bottom),d.left=hl(g.left,d.left),d},rx(n,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Iz(e){const{width:n,height:i}=iS(e);return{width:n,height:i}}function Vz(e,n,i){const l=Sr(n),o=kr(n),s=i==="fixed",c=gl(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const h=xr(0);function d(){h.x=Hp(o)}if(l||!l&&!s)if((Na(n)!=="body"||us(o))&&(f=Cc(n)),l){const b=gl(n,!0,s,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}else o&&d();s&&!l&&o&&d();const y=o&&!l&&!s?aS(o,f):xr(0),g=c.left+f.scrollLeft-h.x-y.x,x=c.top+f.scrollTop-h.y-y.y;return{x:g,y:x,width:c.width,height:c.height}}function uh(e){return ir(e).position==="static"}function ix(e,n){if(!Sr(e)||ir(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return kr(e)===i&&(i=i.ownerDocument.body),i}function sS(e,n){const i=jn(e);if(wc(e))return i;if(!Sr(e)){let o=Li(e);for(;o&&!va(o);){if(rr(o)&&!uh(o))return o;o=Li(o)}return i}let l=ix(e,n);for(;l&&Dz(l)&&uh(l);)l=ix(l,n);return l&&va(l)&&uh(l)&&!Up(l)?i:l||Mz(e)||i}const $z=async function(e){const n=this.getOffsetParent||sS,i=this.getDimensions,l=await i(e.floating);return{reference:Vz(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Yz(e){return ir(e).direction==="rtl"}const Gz={convertOffsetParentRelativeRectToViewportRelativeRect:Uz,getDocumentElement:kr,getClippingRect:Pz,getOffsetParent:sS,getElementRects:$z,getClientRects:Bz,getDimensions:Iz,getScale:pa,isElement:rr,isRTL:Yz};function uS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Kz(e,n){let i=null,l;const o=kr(e);function s(){var f;clearTimeout(l),(f=i)==null||f.disconnect(),i=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:y,top:g,width:x,height:b}=d;if(f||n(),!x||!b)return;const S=ku(g),k=ku(o.clientWidth-(y+x)),_=ku(o.clientHeight-(g+b)),A=ku(y),O={rootMargin:-S+"px "+-k+"px "+-_+"px "+-A+"px",threshold:hl(0,ga(1,h))||1};let L=!0;function q(M){const Y=M[0].intersectionRatio;if(Y!==h){if(!L)return c();Y?c(!1,Y):l=setTimeout(()=>{c(!1,1e-7)},1e3)}Y===1&&!uS(d,e.getBoundingClientRect())&&c(),L=!1}try{i=new IntersectionObserver(q,{...O,root:o.ownerDocument})}catch{i=new IntersectionObserver(q,O)}i.observe(e)}return c(!0),s}function Xz(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:h=!1}=l,d=qp(e),y=o||s?[...d?Go(d):[],...Go(n)]:[];y.forEach(A=>{o&&A.addEventListener("scroll",i,{passive:!0}),s&&A.addEventListener("resize",i)});const g=d&&f?Kz(d,i):null;let x=-1,b=null;c&&(b=new ResizeObserver(A=>{let[N]=A;N&&N.target===d&&b&&(b.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(n)})),i()}),d&&!h&&b.observe(d),b.observe(n));let S,k=h?gl(e):null;h&&_();function _(){const A=gl(e);k&&!uS(k,A)&&i(),k=A,S=requestAnimationFrame(_)}return i(),()=>{var A;y.forEach(N=>{o&&N.removeEventListener("scroll",i),s&&N.removeEventListener("resize",i)}),g==null||g(),(A=b)==null||A.disconnect(),b=null,h&&cancelAnimationFrame(S)}}const Zz=Nz,Jz=jz,Wz=Oz,e4=_z,lx=(e,n,i)=>{const l=new Map,o={platform:Gz,...i},s={...o.platform,_c:l};return Az(e,n,{...o,platform:s})};var ch={exports:{}};/*!
287
287
  Copyright (c) 2018 Jed Watson.
288
288
  Licensed under the MIT License (MIT), see
289
289
  http://jedwatson.github.io/classnames
290
- */var ax;function e4(){return ax||(ax=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 t4=e4();const $h=ba(t4);var ox={};const n4="react-tooltip-core-styles",r4="react-tooltip-base-styles",sx={core:!1,base:!1};function ux({css:e,id:n=r4,type:i="base",ref:l}){var o,s;if(!e||typeof document>"u"||sx[i]||i==="core"&&typeof process<"u"&&(!((o=process==null?void 0:ox)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((s=process==null?void 0:ox)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(n=n4),l||(l={});const{insertAt:c}=l;if(document.getElementById(n))return;const f=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.id=n,h.type="text/css",c==="top"&&f.firstChild?f.insertBefore(h,f.firstChild):f.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e)),sx[i]=!0}const cx=async({elementReference:e=null,tooltipReference:n=null,tooltipArrowReference:i=null,place:l="top",offset:o=10,strategy:s="absolute",middlewares:c=[Xz(Number(o)),Jz({fallbackAxisSideDirection:"start"}),Zz({padding:5})],border:f,arrowSize:h=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};if(n===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};const d=c;return i?(d.push(Wz({element:i,padding:5})),lx(e,n,{placement:l,strategy:s,middleware:d}).then(({x:y,y:g,placement:x,middlewareData:b})=>{var S,k;const _={left:`${y}px`,top:`${g}px`,border:f},{x:A,y:N}=(S=b.arrow)!==null&&S!==void 0?S:{x:0,y:0},O=(k={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]])!==null&&k!==void 0?k:"bottom",L=f&&{borderBottom:f,borderRight:f};let q=0;if(f){const M=`${f}`.match(/(\d+)px/);q=M!=null&&M[1]?Number(M[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:A!=null?`${A}px`:"",top:N!=null?`${N}px`:"",right:"",bottom:"",...L,[O]:`-${h/2+q}px`},place:x}})):lx(e,n,{placement:"bottom",strategy:s,middleware:d}).then(({x:y,y:g,placement:x})=>({tooltipStyles:{left:`${y}px`,top:`${g}px`},tooltipArrowStyles:{},place:x}))},fx=(e,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,n),dx=(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},hx=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Yh=(e,n)=>{if(e===n)return!0;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((o,s)=>Yh(o,n[s]));if(Array.isArray(e)!==Array.isArray(n))return!1;if(!hx(e)||!hx(n))return e===n;const i=Object.keys(e),l=Object.keys(n);return i.length===l.length&&i.every(o=>Yh(e[o],n[o]))},i4=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"})},px=e=>{if(!e)return null;let n=e.parentElement;for(;n;){if(i4(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},l4=typeof window<"u"?E.useLayoutEffect:E.useEffect,$n=e=>{e.current&&(clearTimeout(e.current),e.current=null)},a4="DEFAULT_TOOLTIP_ID",o4={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},s4=E.createContext({getTooltipData:()=>o4});function uS(e=a4){return E.useContext(s4).getTooltipData(e)}var sa={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"},fh={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 u4=({forwardRef:e,id:n,className:i,classNameArrow:l,variant:o="dark",anchorId:s,anchorSelect:c,place:f="top",offset:h=10,events:d=["hover"],openOnClick:y=!1,positionStrategy:g="absolute",middlewares:x,wrapper:b,delayShow:S=0,delayHide:k=0,float:_=!1,hidden:A=!1,noArrow:N=!1,clickable:O=!1,closeOnEsc:L=!1,closeOnScroll:q=!1,closeOnResize:M=!1,openEvents:Y,closeEvents:ee,globalCloseEvents:ie,imperativeModeOnly:z,style:ae,position:te,afterShow:ue,afterHide:J,disableTooltip:se,content:B,contentWrapperRef:X,isOpen:ne,defaultIsOpen:pe=!1,setIsOpen:C,activeAnchor:I,setActiveAnchor:oe,border:R,opacity:fe,arrowColor:Te,arrowSize:ce=8,role:st="tooltip"})=>{var Oe;const Ie=E.useRef(null),Ft=E.useRef(null),bt=E.useRef(null),un=E.useRef(null),Xn=E.useRef(null),[cn,ri]=E.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[Dt,Mt]=E.useState(!1),[Zn,xn]=E.useState(!1),[Ge,Dn]=E.useState(null),Ar=E.useRef(!1),or=E.useRef(null),{anchorRefs:_r,setActiveAnchor:ii}=uS(n),$=E.useRef(!1),[W,me]=E.useState([]),ye=E.useRef(!1),Ue=y||d.includes("click"),Qt=Ue||(Y==null?void 0:Y.click)||(Y==null?void 0:Y.dblclick)||(Y==null?void 0:Y.mousedown),Yt=Y?{...Y}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!Y&&Ue&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ht=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&Ue&&Object.assign(ht,{mouseleave:!1,blur:!1,mouseout:!1});const pt=ie?{...ie}:{escape:L||!1,scroll:q||!1,resize:M||!1,clickOutsideAnchor:Qt||!1};z&&(Object.assign(Yt,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ht,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(pt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),l4(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const Be=le=>{ye.current&&(le&&xn(!0),setTimeout(()=>{ye.current&&(C==null||C(le),ne===void 0&&Mt(le))},10))};E.useEffect(()=>{if(ne===void 0)return()=>null;ne&&xn(!0);const le=setTimeout(()=>{Mt(ne)},10);return()=>{clearTimeout(le)}},[ne]),E.useEffect(()=>{if(Dt!==Ar.current)if($n(Xn),Ar.current=Dt,Dt)ue==null||ue();else{const le=(he=>{const we=he.match(/^([\d.]+)(ms|s)$/);if(!we)return 0;const[,ct,Ut]=we;return Number(ct)*(Ut==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Xn.current=setTimeout(()=>{xn(!1),Dn(null),J==null||J()},le+25)}},[Dt]);const ut=le=>{ri(he=>Yh(he,le)?he:le)},Lt=(le=S)=>{$n(bt),Zn?Be(!0):bt.current=setTimeout(()=>{Be(!0)},le)},zt=(le=k)=>{$n(un),un.current=setTimeout(()=>{$.current||Be(!1)},le)},li=le=>{var he;if(!le)return;const we=(he=le.currentTarget)!==null&&he!==void 0?he:le.target;if(!(we!=null&&we.isConnected))return oe(null),void ii({current:null});S?Lt():Be(!0),oe(we),ii({current:we}),$n(un)},Or=()=>{O?zt(k||100):k?zt():Be(!1),$n(bt)},sr=({x:le,y:he})=>{var we;const ct={getBoundingClientRect:()=>({x:le,y:he,width:0,height:0,top:he,left:le,right:le,bottom:he})};cx({place:(we=Ge==null?void 0:Ge.place)!==null&&we!==void 0?we:f,offset:h,elementReference:ct,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:g,middlewares:x,border:R,arrowSize:ce}).then(Ut=>{ut(Ut)})},Mn=le=>{if(!le)return;const he=le,we={x:he.clientX,y:he.clientY};sr(we),or.current=we},Hi=le=>{var he;if(!Dt)return;const we=le.target;we.isConnected&&(!((he=Ie.current)===null||he===void 0)&&he.contains(we)||[document.querySelector(`[id='${s}']`),...W].some(ct=>ct==null?void 0:ct.contains(we))||(Be(!1),$n(bt)))},Fi=dx(li,50),xt=dx(Or,50),Gt=le=>{xt.cancel(),Fi(le)},be=()=>{Fi.cancel(),xt()},De=E.useCallback(()=>{var le,he;const we=(le=Ge==null?void 0:Ge.position)!==null&&le!==void 0?le:te;we?sr(we):_?or.current&&sr(or.current):I!=null&&I.isConnected&&cx({place:(he=Ge==null?void 0:Ge.place)!==null&&he!==void 0?he:f,offset:h,elementReference:I,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:g,middlewares:x,border:R,arrowSize:ce}).then(ct=>{ye.current&&ut(ct)})},[Dt,I,B,ae,f,Ge==null?void 0:Ge.place,h,g,te,Ge==null?void 0:Ge.position,_,ce]);E.useEffect(()=>{var le,he;const we=new Set(_r);W.forEach($e=>{se!=null&&se($e)||we.add({current:$e})});const ct=document.querySelector(`[id='${s}']`);ct&&!(se!=null&&se(ct))&&we.add({current:ct});const Ut=()=>{Be(!1)},Ln=px(I),Sn=px(Ie.current);pt.scroll&&(window.addEventListener("scroll",Ut),Ln==null||Ln.addEventListener("scroll",Ut),Sn==null||Sn.addEventListener("scroll",Ut));let St=null;pt.resize?window.addEventListener("resize",Ut):I&&Ie.current&&(St=Kz(I,Ie.current,De,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Xt=$e=>{$e.key==="Escape"&&Be(!1)};pt.escape&&window.addEventListener("keydown",Xt),pt.clickOutsideAnchor&&window.addEventListener("click",Hi);const Ve=[],wn=$e=>!!($e!=null&&$e.target&&(I!=null&&I.contains($e.target))),Qi=$e=>{Dt&&wn($e)||li($e)},ai=$e=>{Dt&&wn($e)&&Or()},wt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ja=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([$e,zn])=>{zn&&(wt.includes($e)?Ve.push({event:$e,listener:Gt}):ja.includes($e)&&Ve.push({event:$e,listener:Qi}))}),Object.entries(ht).forEach(([$e,zn])=>{zn&&(wt.includes($e)?Ve.push({event:$e,listener:be}):ja.includes($e)&&Ve.push({event:$e,listener:ai}))}),_&&Ve.push({event:"pointermove",listener:Mn});const Da=()=>{$.current=!0},ur=()=>{$.current=!1,Or()},Rr=O&&(ht.mouseout||ht.mouseleave);return Rr&&((le=Ie.current)===null||le===void 0||le.addEventListener("mouseover",Da),(he=Ie.current)===null||he===void 0||he.addEventListener("mouseout",ur)),Ve.forEach(({event:$e,listener:zn})=>{we.forEach(Sl=>{var Pi;(Pi=Sl.current)===null||Pi===void 0||Pi.addEventListener($e,zn)})}),()=>{var $e,zn;pt.scroll&&(window.removeEventListener("scroll",Ut),Ln==null||Ln.removeEventListener("scroll",Ut),Sn==null||Sn.removeEventListener("scroll",Ut)),pt.resize?window.removeEventListener("resize",Ut):St==null||St(),pt.clickOutsideAnchor&&window.removeEventListener("click",Hi),pt.escape&&window.removeEventListener("keydown",Xt),Rr&&(($e=Ie.current)===null||$e===void 0||$e.removeEventListener("mouseover",Da),(zn=Ie.current)===null||zn===void 0||zn.removeEventListener("mouseout",ur)),Ve.forEach(({event:Sl,listener:Pi})=>{we.forEach(wl=>{var oi;(oi=wl.current)===null||oi===void 0||oi.removeEventListener(Sl,Pi)})})}},[I,De,Zn,_r,W,Y,ee,ie,Ue,S,k]),E.useEffect(()=>{var le,he;let we=(he=(le=Ge==null?void 0:Ge.anchorSelect)!==null&&le!==void 0?le:c)!==null&&he!==void 0?he:"";!we&&n&&(we=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const ct=new MutationObserver(Ut=>{const Ln=[],Sn=[];Ut.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&&Sn.push(St.target)),St.type==="childList"){if(I){const Xt=[...St.removedNodes].filter(Ve=>Ve.nodeType===1);if(we)try{Sn.push(...Xt.filter(Ve=>Ve.matches(we))),Sn.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(we)]))}catch{}Xt.some(Ve=>{var wn;return!!(!((wn=Ve==null?void 0:Ve.contains)===null||wn===void 0)&&wn.call(Ve,I))&&(xn(!1),Be(!1),oe(null),$n(bt),$n(un),!0)})}if(we)try{const Xt=[...St.addedNodes].filter(Ve=>Ve.nodeType===1);Ln.push(...Xt.filter(Ve=>Ve.matches(we))),Ln.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(we)]))}catch{}}}),(Ln.length||Sn.length)&&me(St=>[...St.filter(Xt=>!Sn.includes(Xt)),...Ln])});return ct.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ct.disconnect()}},[n,c,Ge==null?void 0:Ge.anchorSelect,I]),E.useEffect(()=>{De()},[De]),E.useEffect(()=>{if(!(X!=null&&X.current))return()=>null;const le=new ResizeObserver(()=>{setTimeout(()=>De())});return le.observe(X.current),()=>{le.disconnect()}},[B,X==null?void 0:X.current]),E.useEffect(()=>{var le;const he=document.querySelector(`[id='${s}']`),we=[...W,he];I&&we.includes(I)||oe((le=W[0])!==null&&le!==void 0?le:he)},[s,W,I]),E.useEffect(()=>(pe&&Be(!0),()=>{$n(bt),$n(un)}),[]),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 we=Array.from(document.querySelectorAll(he));me(we)}catch{me([])}},[n,c,Ge==null?void 0:Ge.anchorSelect]),E.useEffect(()=>{bt.current&&($n(bt),Lt(S))},[S]);const ln=(Oe=Ge==null?void 0:Ge.content)!==null&&Oe!==void 0?Oe:B,Kt=Dt&&Object.keys(cn.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?Lt(le.delay):Be(!0)},close:le=>{le!=null&&le.delay?zt(le.delay):Be(!1)},activeAnchor:I,place:cn.place,isOpen:!!(Zn&&!A&&ln&&Kt)})),Zn&&!A&&ln?tt.createElement(b,{id:n,role:st,className:$h("react-tooltip",sa.tooltip,fh.tooltip,fh[o],i,`react-tooltip__place-${cn.place}`,sa[Kt?"show":"closing"],Kt?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&sa.fixed,O&&sa.clickable),onTransitionEnd:le=>{$n(Xn),Dt||le.propertyName!=="opacity"||(xn(!1),Dn(null),J==null||J())},style:{...ae,...cn.tooltipStyles,opacity:fe!==void 0&&Kt?fe:void 0},ref:Ie},ln,tt.createElement(b,{className:$h("react-tooltip-arrow",sa.arrow,fh.arrow,l,N&&sa.noArrow),style:{...cn.tooltipArrowStyles,background:Te?`linear-gradient(to right bottom, transparent 50%, ${Te} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Ft})):null},c4=({content:e})=>tt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),cS=tt.forwardRef(({id:e,anchorId:n,anchorSelect:i,content:l,html:o,render:s,className:c,classNameArrow:f,variant:h="dark",place:d="top",offset:y=10,wrapper:g="div",children:x=null,events:b=["hover"],openOnClick:S=!1,positionStrategy:k="absolute",middlewares:_,delayShow:A=0,delayHide:N=0,float:O=!1,hidden:L=!1,noArrow:q=!1,clickable:M=!1,closeOnEsc:Y=!1,closeOnScroll:ee=!1,closeOnResize:ie=!1,openEvents:z,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue=!1,style:J,position:se,isOpen:B,defaultIsOpen:X=!1,disableStyleInjection:ne=!1,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,role:st="tooltip"},Oe)=>{const[Ie,Ft]=E.useState(l),[bt,un]=E.useState(o),[Xn,cn]=E.useState(d),[ri,Dt]=E.useState(h),[Mt,Zn]=E.useState(y),[xn,Ge]=E.useState(A),[Dn,Ar]=E.useState(N),[or,_r]=E.useState(O),[ii,$]=E.useState(L),[W,me]=E.useState(g),[ye,Ue]=E.useState(b),[Qt,Yt]=E.useState(k),[ht,pt]=E.useState(null),[Be,ut]=E.useState(null),Lt=E.useRef(ne),{anchorRefs:zt,activeAnchor:li}=uS(e),Or=xt=>xt==null?void 0:xt.getAttributeNames().reduce((Gt,be)=>{var De;return be.startsWith("data-tooltip-")&&(Gt[be.replace(/^data-tooltip-/,"")]=(De=xt==null?void 0:xt.getAttribute(be))!==null&&De!==void 0?De:null),Gt},{}),sr=xt=>{const Gt={place:be=>{var De;cn((De=be)!==null&&De!==void 0?De:d)},content:be=>{Ft(be??l)},html:be=>{un(be??o)},variant:be=>{var De;Dt((De=be)!==null&&De!==void 0?De:h)},offset:be=>{Zn(be===null?y:Number(be))},wrapper:be=>{var De;me((De=be)!==null&&De!==void 0?De:g)},events:be=>{const De=be==null?void 0:be.split(" ");Ue(De??b)},"position-strategy":be=>{var De;Yt((De=be)!==null&&De!==void 0?De:k)},"delay-show":be=>{Ge(be===null?A:Number(be))},"delay-hide":be=>{Ar(be===null?N:Number(be))},float:be=>{_r(be===null?O:be==="true")},hidden:be=>{$(be===null?L:be==="true")},"class-name":be=>{pt(be)}};Object.values(Gt).forEach(be=>be(null)),Object.entries(xt).forEach(([be,De])=>{var ln;(ln=Gt[be])===null||ln===void 0||ln.call(Gt,De)})};E.useEffect(()=>{Ft(l)},[l]),E.useEffect(()=>{un(o)},[o]),E.useEffect(()=>{cn(d)},[d]),E.useEffect(()=>{Dt(h)},[h]),E.useEffect(()=>{Zn(y)},[y]),E.useEffect(()=>{Ge(A)},[A]),E.useEffect(()=>{Ar(N)},[N]),E.useEffect(()=>{_r(O)},[O]),E.useEffect(()=>{$(L)},[L]),E.useEffect(()=>{Yt(k)},[k]),E.useEffect(()=>{Lt.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 xt;const Gt=new Set(zt);let be=i;if(!be&&e&&(be=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),be)try{document.querySelectorAll(be).forEach(he=>{Gt.add({current:he})})}catch{console.warn(`[react-tooltip] "${be}" is not a valid CSS selector`)}const De=document.querySelector(`[id='${n}']`);if(De&&Gt.add({current:De}),!Gt.size)return()=>null;const ln=(xt=Be??De)!==null&&xt!==void 0?xt:li.current,Kt=new MutationObserver(he=>{he.forEach(we=>{var ct;if(!ln||we.type!=="attributes"||!(!((ct=we.attributeName)===null||ct===void 0)&&ct.startsWith("data-tooltip-")))return;const Ut=Or(ln);sr(Ut)})}),le={attributes:!0,childList:!1,subtree:!1};if(ln){const he=Or(ln);sr(he),Kt.observe(ln,le)}return()=>{Kt.disconnect()}},[zt,li,Be,n,i]),E.useEffect(()=>{J!=null&&J.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!fx("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&&!fx("opacity",`${C}`)&&console.warn(`[react-tooltip] "${C}" is not a valid \`opacity\`.`)},[]);let Mn=x;const Hi=E.useRef(null);if(s){const xt=s({content:(Be==null?void 0:Be.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:Be});Mn=xt?tt.createElement("div",{ref:Hi,className:"react-tooltip-content-wrapper"},xt):null}else Ie&&(Mn=Ie);bt&&(Mn=tt.createElement(c4,{content:bt}));const Fi={forwardRef:Oe,id:e,anchorId:n,anchorSelect:i,className:$h(c,ht),classNameArrow:f,content:Mn,contentWrapperRef:Hi,place:Xn,variant:ri,offset:Mt,wrapper:W,events:ye,openOnClick:S,positionStrategy:Qt,middlewares:_,delayShow:xn,delayHide:Dn,float:or,hidden:ii,noArrow:q,clickable:M,closeOnEsc:Y,closeOnScroll:ee,closeOnResize:ie,openEvents:z,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue,style:J,position:se,isOpen:B,defaultIsOpen:X,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,activeAnchor:Be,setActiveAnchor:xt=>ut(xt),role:st};return tt.createElement(u4,{...Fi})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||ux({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||ux({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 f4=e=>{if(!e)return;const n=Ot.getQueryData([Mi]);if(!n)return;const i=Ot.getQueryData([Wr,n.currentTeam.id]);return i==null?void 0:i.find(l=>l.id===e)},d4=({content:e,activeAnchor:n})=>{if(!n)return null;const i=n.getAttribute("data-tab-id"),l=mc.get().find(c=>c.id===i),o=f4(l==null?void 0:l.options.dataSourceId);if(!l)return e;const s=()=>{xl("New tab name",l.label).then(c=>{c&&A0(l.id,c)})};return v.jsxs("div",{children:[v.jsxs("button",{className:gr.tooltipLabel,onClick:s,children:[v.jsxs("div",{className:"max-w-full",children:[v.jsx("p",{className:"text-xs",children:"label"}),v.jsx("p",{className:"truncate font-semibold",children:l.label})]}),v.jsx("span",{children:"✏️"})]}),v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"table"}),v.jsx("p",{className:"truncate font-semibold",children:l.options.table})]}),o&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsxs("p",{className:"text-sm",children:["data source [",o.dbType,"]"]}),v.jsx("p",{className:"truncate font-semibold",children:o.name})]}),l.options.joins.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"joins"}),v.jsx("p",{className:"font-semibold",children:l.options.joins.map(c=>c.table).join(", ")})]}),l.options.filters.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"filters"}),l.options.filters.map(c=>v.jsx("p",{className:"truncate font-semibold",children:zM(c)}))]})]})},h4=()=>{const e=y_(),n=hc(),i=E.useMemo(()=>{if(!n)return;const f=n.find(h=>h.id===e);return f||n[0]},[e,n]),l=f=>_h(f),o=f=>{f.button===1&&_h(f.currentTarget.dataset.tabId)},s=f=>{const h=n.find(d=>d.id===f);xl("New tab name",h==null?void 0:h.label).then(d=>{d&&A0(f,d)})},c=E.useCallback(f=>{pc(h=>h.map(d=>d.id!==i.id?d:{...d,options:f(d.options)}))},[i]);return n.length<1?v.jsx(yE,{to:"/"}):v.jsxs("div",{className:"h-screen max-h-screen bg-gray-50 flex flex-col",children:[v.jsx(cS,{id:"tab",render:d4,className:"z-10 shadow-md",offset:0,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),v.jsx("div",{className:gr.tabs,children:n==null?void 0:n.map(f=>v.jsxs("div",{className:Qe(gr.tab,f.id===(i==null?void 0:i.id)&&gr.active),"data-tab-id":f.id,"data-tooltip-id":"tab","data-tooltip-content":f.label,onAuxClick:o,onContextMenu:h=>{h.preventDefault(),s(f.id)},children:[v.jsxs("button",{className:"cursor-pointer truncate w-full",onClick:()=>op(f.id),children:["📄 ",f.label]}),v.jsx("button",{className:gr.closeButton,onClick:()=>l(f.id),children:v.jsx(Bi,{width:20,height:20})}),f.id===(i==null?void 0:i.id)&&v.jsx("span",{className:gr.activeTab})]},f.id))}),i&&v.jsx(Z1,{updater:c,options:i.options,name:i.label})]})},p4=()=>{const e=dL(),n=E.useCallback(i=>{Mp(l=>l?{...l,options:i(l.options)}:(Zr.error("Something went wrong."),l))},[]);return e?v.jsxs(nn,{isVisible:!0,onClose:Qh,children:[v.jsx(Kn,{onClick:Qh}),v.jsx(Z1,{className:"border border-gray-200 bg-gray-50",name:e.label,options:e.options,updater:n})]}):null},[m4,Ko]=Er(void 0),y4="_root_q3r3c_2",g4="_down_q3r3c_2",v4="_chevron_q3r3c_2",b4="_table-name-container_q3r3c_2",x4="_link_q3r3c_2",S4="_table-name_q3r3c_2",w4="_ul_q3r3c_2",C4="_column-type_q3r3c_2",Yr={root:y4,down:g4,chevron:v4,tableNameContainer:b4,link:x4,tableName:S4,ul:w4,columnType:C4},E4=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function T4(e,n){if(n&&e.toLowerCase().includes(n))return"bg-yellow-200"}const k4=({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 v.jsx("ul",{className:Yr.ul,children:l.map(o=>v.jsxs(v.Fragment,{children:[v.jsxs("li",{children:[o.isPrimary?"🔐":"🏷️"," ",v.jsx("span",{className:T4(o.name,n),children:o.name})," ",v.jsxs("span",{className:Yr.columnType,children:["[",o.type,"]"]})]},o.name+o.type),o.ref&&v.jsxs("li",{className:"pl-4",children:["🔗 ",v.jsxs("span",{className:Yr.columnType,children:[o.ref.table,".",o.ref.field]})]},o.name+o.ref.field+o.ref.table)]}))},e.id)};function A4({id:e}){const{data:n}=b0(e),{data:i}=Aa(e),l=Jr(),{pathname:o}=vn(),s=gA(),c=x0(),f=vA(),h=E.useMemo(()=>n!=null&&n.lastInspected?E4.format(new Date(n.lastInspected)):"--",[n]),[d,y]=E.useState({}),[g,x]=E.useState(""),b=g.toLowerCase(),S=E.useMemo(()=>{if(!b||!i)return i||[];const L=[];for(const q of i){if(q.tableName.toLowerCase().includes(b)){L.push(q);continue}q.columns.findIndex(M=>M.name.toLowerCase().includes(b))>=0&&L.push(q)}return L},[b,i]),k=L=>{y(q=>({...q,[L]:!q[L]}))},_=L=>{Vo(L,{table:L,dataSourceId:e},!0),Ko(void 0),o!==_t.workbench.path&&l(_t.workbench.path),dt.event("On open table [Datasource modal]")},A=()=>{c.mutate(e),dt.event("On inspect [Datasource modal]")},N=async()=>{const L=await xl("Enter name",n==null?void 0:n.name);L&&s.mutate({id:e,dataSource:{name:L}})},O=async()=>{await l3("Are you sure you want to delete this data source?")&&(f.mutate(e),Ko(void 0),dt.event("On delete [Datasource modal]"))};return v.jsxs("div",{className:Yr.root,children:[v.jsxs("h1",{className:"page-head",children:["📦 ",n==null?void 0:n.name]}),v.jsx("p",{className:"mt-1 text-sm font-semibold",children:h}),v.jsxs("div",{className:"mt-2 flex gap-2",children:[v.jsx("button",{disabled:c.isLoading,onClick:A,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),v.jsx("button",{disabled:c.isLoading,onClick:N,className:"button tertiary",children:"Rename"}),v.jsx("button",{disabled:c.isLoading,onClick:O,className:"button tertiary",children:"Delete"})]}),v.jsx("input",{className:"input w-full mb-2 mt-4 bg-gray-50",placeholder:"Search table/column",value:g,onChange:L=>x(L.target.value),autoFocus:!0}),v.jsx("div",{className:"overflow-y-auto",children:S==null?void 0:S.map(L=>v.jsxs("div",{children:[v.jsxs("div",{className:Yr.tableNameContainer,children:[v.jsx("button",{className:Qe(Yr.chevron,d[L.id]&&Yr.down),onClick:()=>k(L.id),children:v.jsx(K1,{width:16,height:16})}),v.jsx("button",{className:Qe(Yr.tableName,"flex-1"),onClick:()=>k(L.id),children:L.tableName}),v.jsx("button",{className:Yr.link,onClick:()=>_(L.tableName),children:"open"})]}),(d[L.id]||g.length>0)&&v.jsx(k4,{insp:L,filter:b,expanded:d[L.id]})]},L.id))})]})}const _4=()=>{const e=m4(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Ko(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),backdropClose:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx(A4,{id:n})]})},O4="_root_l15sg_1",R4={root:O4};function N4(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 j4="_search_jf0az_2",D4="_entry_jf0az_2",mx={search:j4,entry:D4},M4={table:"📄",query:"📖"},L4=({onTable:e,onQuery:n,autoFocus:i})=>{const[l,o]=E.useState(""),[s,c]=E.useState(-1),f=N4(l),{data:h}=zi(),{data:d}=dA(f,h==null?void 0:h.currentTeam.id),y=b=>{b.type==="table"?e(b.name,b.dataSourceId):b.type==="query"&&n(b.id,b.dataSourceId)},g=b=>{var S;d&&(b.key==="ArrowDown"?(b.preventDefault(),c(k=>(k+1)%d.length)):b.key==="ArrowUp"?(b.preventDefault(),c(k=>(k-1+d.length)%d.length)):b.key==="Enter"&&s>=0&&(S=d[s])!=null&&S.name&&(b.preventDefault(),y(d[s])))},x=b=>{const S=b.currentTarget.dataset.tableId,k=d==null?void 0:d.find(_=>_.id===S);k&&y(k)};return v.jsxs(v.Fragment,{children:[v.jsx("input",{className:mx.search,placeholder:"Search table or saved query to start from",value:l,onChange:b=>o(b.target.value),onKeyDown:g,autoFocus:i}),V1(d==null?void 0:d.length,0)&&v.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:d.map((b,S)=>v.jsxs("button",{className:mx.entry,"data-is-active":s===S,"data-table-id":b.id,onClick:x,children:[v.jsxs("p",{className:"font-semibold",children:[M4[b.type]," ",b.name]}),v.jsxs("p",{className:"text-xs text-blue-600",children:["📦 ",b.dataSourceName]})]},b.id))})]})},z4=()=>{const e=O_(),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 v.jsxs(nn,{isVisible:!!e,onClose:l,children:[v.jsx(Kn,{onClick:l}),v.jsx("div",{className:R4.root,children:v.jsx(L4,{autoFocus:!0,onTable:n,onQuery:i})})]})},U4=()=>{const e=vn();E.useEffect(()=>{dt.pageView()},[e.pathname])},yx=e=>{const[n]=e.split("-");return n.split(".").map(Number)},B4=(e,n)=>{const i=yx(e),l=yx(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},q4=`### ⚠️ You are running an outdated local server version.
290
+ */var ax;function t4(){return ax||(ax=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 n4=t4();const $h=ba(n4);var ox={};const r4="react-tooltip-core-styles",i4="react-tooltip-base-styles",sx={core:!1,base:!1};function ux({css:e,id:n=i4,type:i="base",ref:l}){var o,s;if(!e||typeof document>"u"||sx[i]||i==="core"&&typeof process<"u"&&(!((o=process==null?void 0:ox)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((s=process==null?void 0:ox)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(n=r4),l||(l={});const{insertAt:c}=l;if(document.getElementById(n))return;const f=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.id=n,h.type="text/css",c==="top"&&f.firstChild?f.insertBefore(h,f.firstChild):f.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e)),sx[i]=!0}const cx=async({elementReference:e=null,tooltipReference:n=null,tooltipArrowReference:i=null,place:l="top",offset:o=10,strategy:s="absolute",middlewares:c=[Zz(Number(o)),Wz({fallbackAxisSideDirection:"start"}),Jz({padding:5})],border:f,arrowSize:h=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};if(n===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};const d=c;return i?(d.push(e4({element:i,padding:5})),lx(e,n,{placement:l,strategy:s,middleware:d}).then(({x:y,y:g,placement:x,middlewareData:b})=>{var S,k;const _={left:`${y}px`,top:`${g}px`,border:f},{x:A,y:N}=(S=b.arrow)!==null&&S!==void 0?S:{x:0,y:0},O=(k={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]])!==null&&k!==void 0?k:"bottom",L=f&&{borderBottom:f,borderRight:f};let q=0;if(f){const M=`${f}`.match(/(\d+)px/);q=M!=null&&M[1]?Number(M[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:A!=null?`${A}px`:"",top:N!=null?`${N}px`:"",right:"",bottom:"",...L,[O]:`-${h/2+q}px`},place:x}})):lx(e,n,{placement:"bottom",strategy:s,middleware:d}).then(({x:y,y:g,placement:x})=>({tooltipStyles:{left:`${y}px`,top:`${g}px`},tooltipArrowStyles:{},place:x}))},fx=(e,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,n),dx=(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},hx=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Yh=(e,n)=>{if(e===n)return!0;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((o,s)=>Yh(o,n[s]));if(Array.isArray(e)!==Array.isArray(n))return!1;if(!hx(e)||!hx(n))return e===n;const i=Object.keys(e),l=Object.keys(n);return i.length===l.length&&i.every(o=>Yh(e[o],n[o]))},l4=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"})},px=e=>{if(!e)return null;let n=e.parentElement;for(;n;){if(l4(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},a4=typeof window<"u"?E.useLayoutEffect:E.useEffect,$n=e=>{e.current&&(clearTimeout(e.current),e.current=null)},o4="DEFAULT_TOOLTIP_ID",s4={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},u4=E.createContext({getTooltipData:()=>s4});function cS(e=o4){return E.useContext(u4).getTooltipData(e)}var sa={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"},fh={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 c4=({forwardRef:e,id:n,className:i,classNameArrow:l,variant:o="dark",anchorId:s,anchorSelect:c,place:f="top",offset:h=10,events:d=["hover"],openOnClick:y=!1,positionStrategy:g="absolute",middlewares:x,wrapper:b,delayShow:S=0,delayHide:k=0,float:_=!1,hidden:A=!1,noArrow:N=!1,clickable:O=!1,closeOnEsc:L=!1,closeOnScroll:q=!1,closeOnResize:M=!1,openEvents:Y,closeEvents:ee,globalCloseEvents:ie,imperativeModeOnly:z,style:ae,position:te,afterShow:ue,afterHide:J,disableTooltip:se,content:B,contentWrapperRef:X,isOpen:ne,defaultIsOpen:pe=!1,setIsOpen:C,activeAnchor:I,setActiveAnchor:oe,border:R,opacity:fe,arrowColor:Te,arrowSize:ce=8,role:st="tooltip"})=>{var Oe;const Ie=E.useRef(null),Ft=E.useRef(null),bt=E.useRef(null),un=E.useRef(null),Xn=E.useRef(null),[cn,ri]=E.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[Dt,Mt]=E.useState(!1),[Zn,xn]=E.useState(!1),[Ge,Dn]=E.useState(null),Ar=E.useRef(!1),or=E.useRef(null),{anchorRefs:_r,setActiveAnchor:ii}=cS(n),$=E.useRef(!1),[W,me]=E.useState([]),ye=E.useRef(!1),Ue=y||d.includes("click"),Qt=Ue||(Y==null?void 0:Y.click)||(Y==null?void 0:Y.dblclick)||(Y==null?void 0:Y.mousedown),Yt=Y?{...Y}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!Y&&Ue&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ht=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&Ue&&Object.assign(ht,{mouseleave:!1,blur:!1,mouseout:!1});const pt=ie?{...ie}:{escape:L||!1,scroll:q||!1,resize:M||!1,clickOutsideAnchor:Qt||!1};z&&(Object.assign(Yt,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ht,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(pt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),a4(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const Be=le=>{ye.current&&(le&&xn(!0),setTimeout(()=>{ye.current&&(C==null||C(le),ne===void 0&&Mt(le))},10))};E.useEffect(()=>{if(ne===void 0)return()=>null;ne&&xn(!0);const le=setTimeout(()=>{Mt(ne)},10);return()=>{clearTimeout(le)}},[ne]),E.useEffect(()=>{if(Dt!==Ar.current)if($n(Xn),Ar.current=Dt,Dt)ue==null||ue();else{const le=(he=>{const we=he.match(/^([\d.]+)(ms|s)$/);if(!we)return 0;const[,ct,Ut]=we;return Number(ct)*(Ut==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Xn.current=setTimeout(()=>{xn(!1),Dn(null),J==null||J()},le+25)}},[Dt]);const ut=le=>{ri(he=>Yh(he,le)?he:le)},Lt=(le=S)=>{$n(bt),Zn?Be(!0):bt.current=setTimeout(()=>{Be(!0)},le)},zt=(le=k)=>{$n(un),un.current=setTimeout(()=>{$.current||Be(!1)},le)},li=le=>{var he;if(!le)return;const we=(he=le.currentTarget)!==null&&he!==void 0?he:le.target;if(!(we!=null&&we.isConnected))return oe(null),void ii({current:null});S?Lt():Be(!0),oe(we),ii({current:we}),$n(un)},Or=()=>{O?zt(k||100):k?zt():Be(!1),$n(bt)},sr=({x:le,y:he})=>{var we;const ct={getBoundingClientRect:()=>({x:le,y:he,width:0,height:0,top:he,left:le,right:le,bottom:he})};cx({place:(we=Ge==null?void 0:Ge.place)!==null&&we!==void 0?we:f,offset:h,elementReference:ct,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:g,middlewares:x,border:R,arrowSize:ce}).then(Ut=>{ut(Ut)})},Mn=le=>{if(!le)return;const he=le,we={x:he.clientX,y:he.clientY};sr(we),or.current=we},Hi=le=>{var he;if(!Dt)return;const we=le.target;we.isConnected&&(!((he=Ie.current)===null||he===void 0)&&he.contains(we)||[document.querySelector(`[id='${s}']`),...W].some(ct=>ct==null?void 0:ct.contains(we))||(Be(!1),$n(bt)))},Fi=dx(li,50),xt=dx(Or,50),Gt=le=>{xt.cancel(),Fi(le)},be=()=>{Fi.cancel(),xt()},De=E.useCallback(()=>{var le,he;const we=(le=Ge==null?void 0:Ge.position)!==null&&le!==void 0?le:te;we?sr(we):_?or.current&&sr(or.current):I!=null&&I.isConnected&&cx({place:(he=Ge==null?void 0:Ge.place)!==null&&he!==void 0?he:f,offset:h,elementReference:I,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:g,middlewares:x,border:R,arrowSize:ce}).then(ct=>{ye.current&&ut(ct)})},[Dt,I,B,ae,f,Ge==null?void 0:Ge.place,h,g,te,Ge==null?void 0:Ge.position,_,ce]);E.useEffect(()=>{var le,he;const we=new Set(_r);W.forEach($e=>{se!=null&&se($e)||we.add({current:$e})});const ct=document.querySelector(`[id='${s}']`);ct&&!(se!=null&&se(ct))&&we.add({current:ct});const Ut=()=>{Be(!1)},Ln=px(I),Sn=px(Ie.current);pt.scroll&&(window.addEventListener("scroll",Ut),Ln==null||Ln.addEventListener("scroll",Ut),Sn==null||Sn.addEventListener("scroll",Ut));let St=null;pt.resize?window.addEventListener("resize",Ut):I&&Ie.current&&(St=Xz(I,Ie.current,De,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Xt=$e=>{$e.key==="Escape"&&Be(!1)};pt.escape&&window.addEventListener("keydown",Xt),pt.clickOutsideAnchor&&window.addEventListener("click",Hi);const Ve=[],wn=$e=>!!($e!=null&&$e.target&&(I!=null&&I.contains($e.target))),Qi=$e=>{Dt&&wn($e)||li($e)},ai=$e=>{Dt&&wn($e)&&Or()},wt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ja=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([$e,zn])=>{zn&&(wt.includes($e)?Ve.push({event:$e,listener:Gt}):ja.includes($e)&&Ve.push({event:$e,listener:Qi}))}),Object.entries(ht).forEach(([$e,zn])=>{zn&&(wt.includes($e)?Ve.push({event:$e,listener:be}):ja.includes($e)&&Ve.push({event:$e,listener:ai}))}),_&&Ve.push({event:"pointermove",listener:Mn});const Da=()=>{$.current=!0},ur=()=>{$.current=!1,Or()},Rr=O&&(ht.mouseout||ht.mouseleave);return Rr&&((le=Ie.current)===null||le===void 0||le.addEventListener("mouseover",Da),(he=Ie.current)===null||he===void 0||he.addEventListener("mouseout",ur)),Ve.forEach(({event:$e,listener:zn})=>{we.forEach(Sl=>{var Pi;(Pi=Sl.current)===null||Pi===void 0||Pi.addEventListener($e,zn)})}),()=>{var $e,zn;pt.scroll&&(window.removeEventListener("scroll",Ut),Ln==null||Ln.removeEventListener("scroll",Ut),Sn==null||Sn.removeEventListener("scroll",Ut)),pt.resize?window.removeEventListener("resize",Ut):St==null||St(),pt.clickOutsideAnchor&&window.removeEventListener("click",Hi),pt.escape&&window.removeEventListener("keydown",Xt),Rr&&(($e=Ie.current)===null||$e===void 0||$e.removeEventListener("mouseover",Da),(zn=Ie.current)===null||zn===void 0||zn.removeEventListener("mouseout",ur)),Ve.forEach(({event:Sl,listener:Pi})=>{we.forEach(wl=>{var oi;(oi=wl.current)===null||oi===void 0||oi.removeEventListener(Sl,Pi)})})}},[I,De,Zn,_r,W,Y,ee,ie,Ue,S,k]),E.useEffect(()=>{var le,he;let we=(he=(le=Ge==null?void 0:Ge.anchorSelect)!==null&&le!==void 0?le:c)!==null&&he!==void 0?he:"";!we&&n&&(we=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const ct=new MutationObserver(Ut=>{const Ln=[],Sn=[];Ut.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&&Sn.push(St.target)),St.type==="childList"){if(I){const Xt=[...St.removedNodes].filter(Ve=>Ve.nodeType===1);if(we)try{Sn.push(...Xt.filter(Ve=>Ve.matches(we))),Sn.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(we)]))}catch{}Xt.some(Ve=>{var wn;return!!(!((wn=Ve==null?void 0:Ve.contains)===null||wn===void 0)&&wn.call(Ve,I))&&(xn(!1),Be(!1),oe(null),$n(bt),$n(un),!0)})}if(we)try{const Xt=[...St.addedNodes].filter(Ve=>Ve.nodeType===1);Ln.push(...Xt.filter(Ve=>Ve.matches(we))),Ln.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(we)]))}catch{}}}),(Ln.length||Sn.length)&&me(St=>[...St.filter(Xt=>!Sn.includes(Xt)),...Ln])});return ct.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ct.disconnect()}},[n,c,Ge==null?void 0:Ge.anchorSelect,I]),E.useEffect(()=>{De()},[De]),E.useEffect(()=>{if(!(X!=null&&X.current))return()=>null;const le=new ResizeObserver(()=>{setTimeout(()=>De())});return le.observe(X.current),()=>{le.disconnect()}},[B,X==null?void 0:X.current]),E.useEffect(()=>{var le;const he=document.querySelector(`[id='${s}']`),we=[...W,he];I&&we.includes(I)||oe((le=W[0])!==null&&le!==void 0?le:he)},[s,W,I]),E.useEffect(()=>(pe&&Be(!0),()=>{$n(bt),$n(un)}),[]),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 we=Array.from(document.querySelectorAll(he));me(we)}catch{me([])}},[n,c,Ge==null?void 0:Ge.anchorSelect]),E.useEffect(()=>{bt.current&&($n(bt),Lt(S))},[S]);const ln=(Oe=Ge==null?void 0:Ge.content)!==null&&Oe!==void 0?Oe:B,Kt=Dt&&Object.keys(cn.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?Lt(le.delay):Be(!0)},close:le=>{le!=null&&le.delay?zt(le.delay):Be(!1)},activeAnchor:I,place:cn.place,isOpen:!!(Zn&&!A&&ln&&Kt)})),Zn&&!A&&ln?tt.createElement(b,{id:n,role:st,className:$h("react-tooltip",sa.tooltip,fh.tooltip,fh[o],i,`react-tooltip__place-${cn.place}`,sa[Kt?"show":"closing"],Kt?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&sa.fixed,O&&sa.clickable),onTransitionEnd:le=>{$n(Xn),Dt||le.propertyName!=="opacity"||(xn(!1),Dn(null),J==null||J())},style:{...ae,...cn.tooltipStyles,opacity:fe!==void 0&&Kt?fe:void 0},ref:Ie},ln,tt.createElement(b,{className:$h("react-tooltip-arrow",sa.arrow,fh.arrow,l,N&&sa.noArrow),style:{...cn.tooltipArrowStyles,background:Te?`linear-gradient(to right bottom, transparent 50%, ${Te} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Ft})):null},f4=({content:e})=>tt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),fS=tt.forwardRef(({id:e,anchorId:n,anchorSelect:i,content:l,html:o,render:s,className:c,classNameArrow:f,variant:h="dark",place:d="top",offset:y=10,wrapper:g="div",children:x=null,events:b=["hover"],openOnClick:S=!1,positionStrategy:k="absolute",middlewares:_,delayShow:A=0,delayHide:N=0,float:O=!1,hidden:L=!1,noArrow:q=!1,clickable:M=!1,closeOnEsc:Y=!1,closeOnScroll:ee=!1,closeOnResize:ie=!1,openEvents:z,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue=!1,style:J,position:se,isOpen:B,defaultIsOpen:X=!1,disableStyleInjection:ne=!1,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,role:st="tooltip"},Oe)=>{const[Ie,Ft]=E.useState(l),[bt,un]=E.useState(o),[Xn,cn]=E.useState(d),[ri,Dt]=E.useState(h),[Mt,Zn]=E.useState(y),[xn,Ge]=E.useState(A),[Dn,Ar]=E.useState(N),[or,_r]=E.useState(O),[ii,$]=E.useState(L),[W,me]=E.useState(g),[ye,Ue]=E.useState(b),[Qt,Yt]=E.useState(k),[ht,pt]=E.useState(null),[Be,ut]=E.useState(null),Lt=E.useRef(ne),{anchorRefs:zt,activeAnchor:li}=cS(e),Or=xt=>xt==null?void 0:xt.getAttributeNames().reduce((Gt,be)=>{var De;return be.startsWith("data-tooltip-")&&(Gt[be.replace(/^data-tooltip-/,"")]=(De=xt==null?void 0:xt.getAttribute(be))!==null&&De!==void 0?De:null),Gt},{}),sr=xt=>{const Gt={place:be=>{var De;cn((De=be)!==null&&De!==void 0?De:d)},content:be=>{Ft(be??l)},html:be=>{un(be??o)},variant:be=>{var De;Dt((De=be)!==null&&De!==void 0?De:h)},offset:be=>{Zn(be===null?y:Number(be))},wrapper:be=>{var De;me((De=be)!==null&&De!==void 0?De:g)},events:be=>{const De=be==null?void 0:be.split(" ");Ue(De??b)},"position-strategy":be=>{var De;Yt((De=be)!==null&&De!==void 0?De:k)},"delay-show":be=>{Ge(be===null?A:Number(be))},"delay-hide":be=>{Ar(be===null?N:Number(be))},float:be=>{_r(be===null?O:be==="true")},hidden:be=>{$(be===null?L:be==="true")},"class-name":be=>{pt(be)}};Object.values(Gt).forEach(be=>be(null)),Object.entries(xt).forEach(([be,De])=>{var ln;(ln=Gt[be])===null||ln===void 0||ln.call(Gt,De)})};E.useEffect(()=>{Ft(l)},[l]),E.useEffect(()=>{un(o)},[o]),E.useEffect(()=>{cn(d)},[d]),E.useEffect(()=>{Dt(h)},[h]),E.useEffect(()=>{Zn(y)},[y]),E.useEffect(()=>{Ge(A)},[A]),E.useEffect(()=>{Ar(N)},[N]),E.useEffect(()=>{_r(O)},[O]),E.useEffect(()=>{$(L)},[L]),E.useEffect(()=>{Yt(k)},[k]),E.useEffect(()=>{Lt.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 xt;const Gt=new Set(zt);let be=i;if(!be&&e&&(be=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),be)try{document.querySelectorAll(be).forEach(he=>{Gt.add({current:he})})}catch{console.warn(`[react-tooltip] "${be}" is not a valid CSS selector`)}const De=document.querySelector(`[id='${n}']`);if(De&&Gt.add({current:De}),!Gt.size)return()=>null;const ln=(xt=Be??De)!==null&&xt!==void 0?xt:li.current,Kt=new MutationObserver(he=>{he.forEach(we=>{var ct;if(!ln||we.type!=="attributes"||!(!((ct=we.attributeName)===null||ct===void 0)&&ct.startsWith("data-tooltip-")))return;const Ut=Or(ln);sr(Ut)})}),le={attributes:!0,childList:!1,subtree:!1};if(ln){const he=Or(ln);sr(he),Kt.observe(ln,le)}return()=>{Kt.disconnect()}},[zt,li,Be,n,i]),E.useEffect(()=>{J!=null&&J.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!fx("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&&!fx("opacity",`${C}`)&&console.warn(`[react-tooltip] "${C}" is not a valid \`opacity\`.`)},[]);let Mn=x;const Hi=E.useRef(null);if(s){const xt=s({content:(Be==null?void 0:Be.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:Be});Mn=xt?tt.createElement("div",{ref:Hi,className:"react-tooltip-content-wrapper"},xt):null}else Ie&&(Mn=Ie);bt&&(Mn=tt.createElement(f4,{content:bt}));const Fi={forwardRef:Oe,id:e,anchorId:n,anchorSelect:i,className:$h(c,ht),classNameArrow:f,content:Mn,contentWrapperRef:Hi,place:Xn,variant:ri,offset:Mt,wrapper:W,events:ye,openOnClick:S,positionStrategy:Qt,middlewares:_,delayShow:xn,delayHide:Dn,float:or,hidden:ii,noArrow:q,clickable:M,closeOnEsc:Y,closeOnScroll:ee,closeOnResize:ie,openEvents:z,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue,style:J,position:se,isOpen:B,defaultIsOpen:X,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,activeAnchor:Be,setActiveAnchor:xt=>ut(xt),role:st};return tt.createElement(c4,{...Fi})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||ux({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||ux({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 d4=e=>{if(!e)return;const n=Ot.getQueryData([Mi]);if(!n)return;const i=Ot.getQueryData([Wr,n.currentTeam.id]);return i==null?void 0:i.find(l=>l.id===e)},h4=({content:e,activeAnchor:n})=>{if(!n)return null;const i=n.getAttribute("data-tab-id"),l=mc.get().find(c=>c.id===i),o=d4(l==null?void 0:l.options.dataSourceId);if(!l)return e;const s=()=>{xl("New tab name",l.label).then(c=>{c&&_0(l.id,c)})};return v.jsxs("div",{children:[v.jsxs("button",{className:gr.tooltipLabel,onClick:s,children:[v.jsxs("div",{className:"max-w-full",children:[v.jsx("p",{className:"text-xs",children:"label"}),v.jsx("p",{className:"truncate font-semibold",children:l.label})]}),v.jsx("span",{children:"✏️"})]}),v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"table"}),v.jsx("p",{className:"truncate font-semibold",children:l.options.table})]}),o&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsxs("p",{className:"text-sm",children:["data source [",o.dbType,"]"]}),v.jsx("p",{className:"truncate font-semibold",children:o.name})]}),l.options.joins.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"joins"}),v.jsx("p",{className:"font-semibold",children:l.options.joins.map(c=>c.table).join(", ")})]}),l.options.filters.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"filters"}),l.options.filters.map(c=>v.jsx("p",{className:"truncate font-semibold",children:UM(c)}))]})]})},p4=()=>{const e=g_(),n=hc(),i=E.useMemo(()=>{if(!n)return;const f=n.find(h=>h.id===e);return f||n[0]},[e,n]),l=f=>_h(f),o=f=>{f.button===1&&_h(f.currentTarget.dataset.tabId)},s=f=>{const h=n.find(d=>d.id===f);xl("New tab name",h==null?void 0:h.label).then(d=>{d&&_0(f,d)})},c=E.useCallback(f=>{pc(h=>h.map(d=>d.id!==i.id?d:{...d,options:f(d.options)}))},[i]);return n.length<1?v.jsx(gE,{to:"/"}):v.jsxs("div",{className:"h-screen max-h-screen bg-gray-50 flex flex-col",children:[v.jsx(fS,{id:"tab",render:h4,className:"z-10 shadow-md",offset:0,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),v.jsx("div",{className:gr.tabs,children:n==null?void 0:n.map(f=>v.jsxs("div",{className:Qe(gr.tab,f.id===(i==null?void 0:i.id)&&gr.active),"data-tab-id":f.id,"data-tooltip-id":"tab","data-tooltip-content":f.label,onAuxClick:o,onContextMenu:h=>{h.preventDefault(),s(f.id)},children:[v.jsxs("button",{className:"cursor-pointer truncate w-full",onClick:()=>op(f.id),children:["📄 ",f.label]}),v.jsx("button",{className:gr.closeButton,onClick:()=>l(f.id),children:v.jsx(Bi,{width:20,height:20})}),f.id===(i==null?void 0:i.id)&&v.jsx("span",{className:gr.activeTab})]},f.id))}),i&&v.jsx(J1,{updater:c,options:i.options,name:i.label})]})},m4=()=>{const e=hL(),n=E.useCallback(i=>{Mp(l=>l?{...l,options:i(l.options)}:(Zr.error("Something went wrong."),l))},[]);return e?v.jsxs(nn,{isVisible:!0,onClose:Qh,children:[v.jsx(Kn,{onClick:Qh}),v.jsx(J1,{className:"border border-gray-200 bg-gray-50",name:e.label,options:e.options,updater:n})]}):null},[y4,Ko]=Er(void 0),g4="_root_q3r3c_2",v4="_down_q3r3c_2",b4="_chevron_q3r3c_2",x4="_table-name-container_q3r3c_2",S4="_link_q3r3c_2",w4="_table-name_q3r3c_2",C4="_ul_q3r3c_2",E4="_column-type_q3r3c_2",Yr={root:g4,down:v4,chevron:b4,tableNameContainer:x4,link:S4,tableName:w4,ul:C4,columnType:E4},T4=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function k4(e,n){if(n&&e.toLowerCase().includes(n))return"bg-yellow-200"}const A4=({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 v.jsx("ul",{className:Yr.ul,children:l.map(o=>v.jsxs(v.Fragment,{children:[v.jsxs("li",{children:[o.isPrimary?"🔐":"🏷️"," ",v.jsx("span",{className:k4(o.name,n),children:o.name})," ",v.jsxs("span",{className:Yr.columnType,children:["[",o.type,"]"]})]},o.name+o.type),o.ref&&v.jsxs("li",{className:"pl-4",children:["🔗 ",v.jsxs("span",{className:Yr.columnType,children:[o.ref.table,".",o.ref.field]})]},o.name+o.ref.field+o.ref.table)]}))},e.id)};function _4({id:e}){const{data:n}=x0(e),{data:i}=Aa(e),l=Jr(),{pathname:o}=vn(),s=vA(),c=S0(),f=bA(),h=E.useMemo(()=>n!=null&&n.lastInspected?T4.format(new Date(n.lastInspected)):"--",[n]),[d,y]=E.useState({}),[g,x]=E.useState(""),b=g.toLowerCase(),S=E.useMemo(()=>{if(!b||!i)return i||[];const L=[];for(const q of i){if(q.tableName.toLowerCase().includes(b)){L.push(q);continue}q.columns.findIndex(M=>M.name.toLowerCase().includes(b))>=0&&L.push(q)}return L},[b,i]),k=L=>{y(q=>({...q,[L]:!q[L]}))},_=L=>{Vo(L,{table:L,dataSourceId:e},!0),Ko(void 0),o!==_t.workbench.path&&l(_t.workbench.path),dt.event("On open table [Datasource modal]")},A=()=>{c.mutate(e),dt.event("On inspect [Datasource modal]")},N=async()=>{const L=await xl("Enter name",n==null?void 0:n.name);L&&s.mutate({id:e,dataSource:{name:L}})},O=async()=>{await a3("Are you sure you want to delete this data source?")&&(f.mutate(e),Ko(void 0),dt.event("On delete [Datasource modal]"))};return v.jsxs("div",{className:Yr.root,children:[v.jsxs("h1",{className:"page-head",children:["📦 ",n==null?void 0:n.name]}),v.jsx("p",{className:"mt-1 text-sm font-semibold",children:h}),v.jsxs("div",{className:"mt-2 flex gap-2",children:[v.jsx("button",{disabled:c.isLoading,onClick:A,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),v.jsx("button",{disabled:c.isLoading,onClick:N,className:"button tertiary",children:"Rename"}),v.jsx("button",{disabled:c.isLoading,onClick:O,className:"button tertiary",children:"Delete"})]}),v.jsx("input",{className:"input w-full mb-2 mt-4 bg-gray-50",placeholder:"Search table/column",value:g,onChange:L=>x(L.target.value),autoFocus:!0}),v.jsx("div",{className:"overflow-y-auto",children:S==null?void 0:S.map(L=>v.jsxs("div",{children:[v.jsxs("div",{className:Yr.tableNameContainer,children:[v.jsx("button",{className:Qe(Yr.chevron,d[L.id]&&Yr.down),onClick:()=>k(L.id),children:v.jsx(X1,{width:16,height:16})}),v.jsx("button",{className:Qe(Yr.tableName,"flex-1"),onClick:()=>k(L.id),children:L.tableName}),v.jsx("button",{className:Yr.link,onClick:()=>_(L.tableName),children:"open"})]}),(d[L.id]||g.length>0)&&v.jsx(A4,{insp:L,filter:b,expanded:d[L.id]})]},L.id))})]})}const O4=()=>{const e=y4(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Ko(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),backdropClose:!0,children:[v.jsx(Kn,{onClick:l}),n&&v.jsx(_4,{id:n})]})},R4="_root_l15sg_1",N4={root:R4};function j4(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 D4="_search_jf0az_2",M4="_entry_jf0az_2",mx={search:D4,entry:M4},L4={table:"📄",query:"📖"},z4=({onTable:e,onQuery:n,autoFocus:i})=>{const[l,o]=E.useState(""),[s,c]=E.useState(-1),f=j4(l),{data:h}=zi(),{data:d}=hA(f,h==null?void 0:h.currentTeam.id),y=b=>{b.type==="table"?e(b.name,b.dataSourceId):b.type==="query"&&n(b.id,b.dataSourceId)},g=b=>{var S;d&&(b.key==="ArrowDown"?(b.preventDefault(),c(k=>(k+1)%d.length)):b.key==="ArrowUp"?(b.preventDefault(),c(k=>(k-1+d.length)%d.length)):b.key==="Enter"&&s>=0&&(S=d[s])!=null&&S.name&&(b.preventDefault(),y(d[s])))},x=b=>{const S=b.currentTarget.dataset.tableId,k=d==null?void 0:d.find(_=>_.id===S);k&&y(k)};return v.jsxs(v.Fragment,{children:[v.jsx("input",{className:mx.search,placeholder:"Search table or saved query to start from",value:l,onChange:b=>o(b.target.value),onKeyDown:g,autoFocus:i}),$1(d==null?void 0:d.length,0)&&v.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:d.map((b,S)=>v.jsxs("button",{className:mx.entry,"data-is-active":s===S,"data-table-id":b.id,onClick:x,children:[v.jsxs("p",{className:"font-semibold",children:[L4[b.type]," ",b.name]}),v.jsxs("p",{className:"text-xs text-blue-600",children:["📦 ",b.dataSourceName]})]},b.id))})]})},U4=()=>{const e=R_(),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 v.jsxs(nn,{isVisible:!!e,onClose:l,children:[v.jsx(Kn,{onClick:l}),v.jsx("div",{className:N4.root,children:v.jsx(z4,{autoFocus:!0,onTable:n,onQuery:i})})]})},B4=()=>{const e=vn();E.useEffect(()=>{dt.pageView()},[e.pathname])},yx=e=>{const[n]=e.split("-");return n.split(".").map(Number)},q4=(e,n)=>{const i=yx(e),l=yx(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},H4=`### ⚠️ You are running an outdated local server version.
292
292
 
293
- Please update your local server version to **0.0.43**
293
+ Please update your local server version to **0.0.45**
294
294
 
295
295
  ### 🔧 Update Command
296
296
 
@@ -307,4 +307,4 @@ dataramen start
307
307
  \`\`\`
308
308
 
309
309
  Once done, click on the "Check again" button below or refresh the page.
310
- `,H4=()=>{const{data:e,refetch:n}=Op();return!(e!=null&&e.active)||B4(e.version,"0.0.43")===0?null:v.jsx(nn,{isVisible:!0,onClose:()=>null,children:v.jsxs("div",{children:[v.jsx(Ju,{content:q4}),v.jsx("div",{className:"flex justify-end mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>n(),children:"Check again"})})]})})};function F4(){return nz(),U4(),v.jsxs(v.Fragment,{children:[v.jsxs(vE,{children:[v.jsx(hh,{path:_t.home.path,element:v.jsx(_M,{})}),v.jsx(hh,{path:_t.workbench.path,element:v.jsx(h4,{})})]}),v.jsx(P_,{target:Oh.settings.path,children:v.jsx(DM,{})}),v.jsx(p4,{}),v.jsx(YM,{}),v.jsx(r3,{}),v.jsx(g3,{}),v.jsx(S3,{}),v.jsx(_4,{}),v.jsx(z4,{}),v.jsx(d3,{}),v.jsx(o3,{}),v.jsx(H4,{})]})}const Q4="_layout_hc2xd_2",P4="_nav_hc2xd_2",I4="_main_hc2xd_2",V4="_footer_hc2xd_2",nc={layout:Q4,nav:P4,main:I4,footer:V4},$4="_container_1gvdv_2",Y4="_file_1gvdv_2",G4="_menu_1gvdv_2",da={container:$4,file:Y4,menu:G4},K4=({name:e,id:n,onRename:i,onDelete:l,onOpen:o})=>{const s=H1();return v.jsxs("button",{className:da.file,onContextMenu:s.open,onClick:()=>o(n),children:[v.jsx(P1,{handler:s,children:v.jsxs("div",{className:"context-menu-container",children:[v.jsx("button",{onClick:()=>{s.close(),i(n)},className:"context-menu-item",children:"✏️ Rename"}),v.jsx("button",{onClick:()=>{s.close(),l(n)},className:"context-menu-item",children:"🗑️ Delete"})]})}),v.jsxs("span",{children:["📖 ",e]})]})},X4=({name:e,id:n,index:i})=>{const l=`📦 ${e}`,o=()=>{Ko(n),dt.event("On open datasource [Sidebar]")};return br(i.toString(),()=>{Ko(s=>{if(s!==n)return n}),dt.event("On open datasource [Hotkey]")},l),v.jsxs("button",{className:da.menu,onClick:o,children:[v.jsx("span",{children:l}),v.jsx("span",{className:"hotkey",children:i})]})},Z4=()=>{const e=hc(x=>x.length>0),n=Jr(),i=vn(),l=sp("Sidebar"),{data:o}=zi(),{data:s}=cA(o==null?void 0:o.currentTeam.id),c=WL(),f=x=>{R0(x).then(b=>{Vo(b.name,ma(b.opts),!0),i.pathname!==_t.workbench.path&&n(_t.workbench.path)}),dt.event("On open query [Sidebar]")},h=async x=>{const b=s==null?void 0:s.find(k=>k.id===x),S=await xl("New name?",b==null?void 0:b.name);S&&c.mutate({id:x,payload:{name:S}})},d=x=>{c.mutate({id:x,payload:{isTrash:!0}})},y=()=>{e?i.pathname!==_t.workbench.path&&n(_t.workbench.path):l(),dt.event("On open workbench [Sidebar]")};let g=1;return v.jsxs("div",{className:da.container,children:[v.jsxs("div",{className:"mb-4",children:[v.jsxs("button",{onClick:()=>n(_t.home.path),className:da.menu,children:[v.jsx("span",{children:_t.home.name}),v.jsx("span",{className:"hotkey",children:"H"})]}),v.jsxs("button",{disabled:!o,onClick:l,className:da.menu,children:[v.jsx("span",{children:"📖 Start new query"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsxs("button",{disabled:!o,onClick:y,className:da.menu,children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("span",{className:"hotkey",children:"W"})]})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:s==null?void 0:s.map(x=>{switch(x.type){case"query":return v.jsx(K4,{onDelete:d,onRename:h,onOpen:f,name:x.name,id:x.id},x.id);case"dataSource":return v.jsx(X4,{name:x.name,id:x.id,index:g++},x.id);default:return null}})})]})},J4=({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(),h={x:c.pageX,y:c.pageY};function d(g){{let x;x=g.pageX-h.x,i.current.style.width=`${f.width+x}px`}n&&i.current&&n(i.current)}function y(){document.body.removeEventListener("mousemove",d),document.body.removeEventListener("mouseleave",d)}document.body.addEventListener("mousemove",d),document.body.addEventListener("mouseup",y),document.body.addEventListener("mouseleave",y)}(s=l==null?void 0:l.current)==null||s.addEventListener("mousedown",o),n&&i.current&&n(i.current)}),{elementRef:i,handleRef:l}},W4=()=>{const{open:e}=up(),{data:n}=zi(),{elementRef:i,handleRef:l}=J4({resizeDirection:"horizontal-r"}),o=()=>{U1(!0),dt.event("Open contacts")},s=()=>{e(Oh.settings.path),dt.event("Open settings")};return v.jsxs("nav",{className:nc.nav,ref:i,children:[v.jsx("div",{ref:l,className:"hr-slide"}),v.jsx(Z4,{}),v.jsxs("div",{className:nc.footer,children:[v.jsx("button",{onClick:o,children:"💬 Contacts"}),v.jsx("button",{onClick:s,disabled:!n,children:Oh.settings.name})]})]})},gx=e=>window.matchMedia(e).matches;function eU(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){const[l,o]=E.useState(()=>i?gx(e):n);return E.useLayoutEffect(()=>{const s=window.matchMedia(e);function c(){o(()=>gx(e))}return c(),s.addListener?s.addListener(c):s.addEventListener("change",c),()=>{s.removeListener?s.removeListener(c):s.removeEventListener("change",c)}},[e]),l}const tU=({children:e})=>{const n=eU("(min-width: 768px)");return v.jsxs("div",{className:nc.layout,children:[n&&v.jsx(W4,{}),v.jsx("main",{className:nc.main,children:e})]})};kC.createRoot(document.getElementById("root")).render(v.jsxs(tt.StrictMode,{children:[v.jsx(m_,{}),v.jsx(cS,{id:"default",className:"z-100"}),v.jsx(ET,{client:Ot,children:v.jsx(QE,{children:v.jsx(tU,{children:v.jsx(F4,{})})})})]}));
310
+ `,F4=()=>{const{data:e,refetch:n}=Op();return!(e!=null&&e.active)||q4(e.version,"0.0.45")===0?null:v.jsx(nn,{isVisible:!0,onClose:()=>null,children:v.jsxs("div",{children:[v.jsx(Ju,{content:H4}),v.jsx("div",{className:"flex justify-end mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>n(),children:"Check again"})})]})})};function Q4(){return rz(),B4(),v.jsxs(v.Fragment,{children:[v.jsxs(bE,{children:[v.jsx(hh,{path:_t.home.path,element:v.jsx(OM,{})}),v.jsx(hh,{path:_t.workbench.path,element:v.jsx(p4,{})})]}),v.jsx(I_,{target:Oh.settings.path,children:v.jsx(MM,{})}),v.jsx(m4,{}),v.jsx(GM,{}),v.jsx(i3,{}),v.jsx(v3,{}),v.jsx(w3,{}),v.jsx(O4,{}),v.jsx(U4,{}),v.jsx(h3,{}),v.jsx(s3,{}),v.jsx(F4,{})]})}const P4="_layout_hc2xd_2",I4="_nav_hc2xd_2",V4="_main_hc2xd_2",$4="_footer_hc2xd_2",nc={layout:P4,nav:I4,main:V4,footer:$4},Y4="_container_1gvdv_2",G4="_file_1gvdv_2",K4="_menu_1gvdv_2",da={container:Y4,file:G4,menu:K4},X4=({name:e,id:n,onRename:i,onDelete:l,onOpen:o})=>{const s=F1();return v.jsxs("button",{className:da.file,onContextMenu:s.open,onClick:()=>o(n),children:[v.jsx(I1,{handler:s,children:v.jsxs("div",{className:"context-menu-container",children:[v.jsx("button",{onClick:()=>{s.close(),i(n)},className:"context-menu-item",children:"✏️ Rename"}),v.jsx("button",{onClick:()=>{s.close(),l(n)},className:"context-menu-item",children:"🗑️ Delete"})]})}),v.jsxs("span",{children:["📖 ",e]})]})},Z4=({name:e,id:n,index:i})=>{const l=`📦 ${e}`,o=()=>{Ko(n),dt.event("On open datasource [Sidebar]")};return br(i.toString(),()=>{Ko(s=>{if(s!==n)return n}),dt.event("On open datasource [Hotkey]")},l),v.jsxs("button",{className:da.menu,onClick:o,children:[v.jsx("span",{children:l}),v.jsx("span",{className:"hotkey",children:i})]})},J4=()=>{const e=hc(x=>x.length>0),n=Jr(),i=vn(),l=sp("Sidebar"),{data:o}=zi(),{data:s}=fA(o==null?void 0:o.currentTeam.id),c=ez(),f=x=>{N0(x).then(b=>{Vo(b.name,ma(b.opts),!0),i.pathname!==_t.workbench.path&&n(_t.workbench.path)}),dt.event("On open query [Sidebar]")},h=async x=>{const b=s==null?void 0:s.find(k=>k.id===x),S=await xl("New name?",b==null?void 0:b.name);S&&c.mutate({id:x,payload:{name:S}})},d=x=>{c.mutate({id:x,payload:{isTrash:!0}})},y=()=>{e?i.pathname!==_t.workbench.path&&n(_t.workbench.path):l(),dt.event("On open workbench [Sidebar]")};let g=1;return v.jsxs("div",{className:da.container,children:[v.jsxs("div",{className:"mb-4",children:[v.jsxs("button",{onClick:()=>n(_t.home.path),className:da.menu,children:[v.jsx("span",{children:_t.home.name}),v.jsx("span",{className:"hotkey",children:"H"})]}),v.jsxs("button",{disabled:!o,onClick:l,className:da.menu,children:[v.jsx("span",{children:"📖 Start new query"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsxs("button",{disabled:!o,onClick:y,className:da.menu,children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("span",{className:"hotkey",children:"W"})]})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:s==null?void 0:s.map(x=>{switch(x.type){case"query":return v.jsx(X4,{onDelete:d,onRename:h,onOpen:f,name:x.name,id:x.id},x.id);case"dataSource":return v.jsx(Z4,{name:x.name,id:x.id,index:g++},x.id);default:return null}})})]})},W4=({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(),h={x:c.pageX,y:c.pageY};function d(g){{let x;x=g.pageX-h.x,i.current.style.width=`${f.width+x}px`}n&&i.current&&n(i.current)}function y(){document.body.removeEventListener("mousemove",d),document.body.removeEventListener("mouseleave",d)}document.body.addEventListener("mousemove",d),document.body.addEventListener("mouseup",y),document.body.addEventListener("mouseleave",y)}(s=l==null?void 0:l.current)==null||s.addEventListener("mousedown",o),n&&i.current&&n(i.current)}),{elementRef:i,handleRef:l}},eU=()=>{const{open:e}=up(),{data:n}=zi(),{elementRef:i,handleRef:l}=W4({resizeDirection:"horizontal-r"}),o=()=>{B1(!0),dt.event("Open contacts")},s=()=>{e(Oh.settings.path),dt.event("Open settings")};return v.jsxs("nav",{className:nc.nav,ref:i,children:[v.jsx("div",{ref:l,className:"hr-slide"}),v.jsx(J4,{}),v.jsxs("div",{className:nc.footer,children:[v.jsx("button",{onClick:o,children:"💬 Contacts"}),v.jsx("button",{onClick:s,disabled:!n,children:Oh.settings.name})]})]})},gx=e=>window.matchMedia(e).matches;function tU(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){const[l,o]=E.useState(()=>i?gx(e):n);return E.useLayoutEffect(()=>{const s=window.matchMedia(e);function c(){o(()=>gx(e))}return c(),s.addListener?s.addListener(c):s.addEventListener("change",c),()=>{s.removeListener?s.removeListener(c):s.removeEventListener("change",c)}},[e]),l}const nU=({children:e})=>{const n=tU("(min-width: 768px)");return v.jsxs("div",{className:nc.layout,children:[n&&v.jsx(eU,{}),v.jsx("main",{className:nc.main,children:e})]})};AC.createRoot(document.getElementById("root")).render(v.jsxs(tt.StrictMode,{children:[v.jsx(y_,{}),v.jsx(fS,{id:"default",className:"z-100"}),v.jsx(TT,{client:Ot,children:v.jsx(PE,{children:v.jsx(nU,{children:v.jsx(Q4,{})})})})]}));