@elizaos/client 1.7.2-alpha.10 → 1.7.2-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,88 +0,0 @@
1
- var kR=Object.defineProperty;var l=(e,r)=>kR(e,"name",{value:r,configurable:!0});import{c as ie,a as lp}from"./ui-vendor-B7JxFfFk.js";function UR(e,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:l(()=>i[s],"get")})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}l(UR,"_mergeNamespaces");function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}l(Jr,"getDefaultExportFromCjs");var Ad={exports:{}},Yi={};var e0;function HR(){if(e0)return Yi;e0=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:e,type:i,key:f,ref:s!==void 0?s:null,props:c}}return l(o,"jsxProd"),Yi.Fragment=r,Yi.jsx=o,Yi.jsxs=o,Yi}l(HR,"requireReactJsxRuntime_production");var t0;function BR(){return t0||(t0=1,Ad.exports=HR()),Ad.exports}l(BR,"requireJsxRuntime");var M=BR(),Md={exports:{}},Ce={};var n0;function IR(){if(n0)return Ce;n0=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=S&&P[S]||P["@@iterator"],typeof P=="function"?P:null)}l(w,"getIteratorFn");var C={isMounted:l(function(){return!1},"isMounted"),enqueueForceUpdate:l(function(){},"enqueueForceUpdate"),enqueueReplaceState:l(function(){},"enqueueReplaceState"),enqueueSetState:l(function(){},"enqueueSetState")},E=Object.assign,T={};function O(P,q,re){this.props=P,this.context=q,this.refs=T,this.updater=re||C}l(O,"Component"),O.prototype.isReactComponent={},O.prototype.setState=function(P,q){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,q,"setState")},O.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}l(R,"ComponentDummy"),R.prototype=O.prototype;function A(P,q,re){this.props=P,this.context=q,this.refs=T,this.updater=re||C}l(A,"PureComponent");var D=A.prototype=new R;D.constructor=A,E(D,O.prototype),D.isPureReactComponent=!0;var j=Array.isArray;function I(){}l(I,"noop");var U={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function ee(P,q,re){var se=re.ref;return{$$typeof:e,type:P,key:q,ref:se!==void 0?se:null,props:re}}l(ee,"ReactElement");function W(P,q){return ee(P.type,q,P.props)}l(W,"cloneAndReplaceKey");function oe(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}l(oe,"isValidElement");function ue(P){var q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(re){return q[re]})}l(ue,"escape");var ve=/\/+/g;function ne(P,q){return typeof P=="object"&&P!==null&&P.key!=null?ue(""+P.key):q.toString(36)}l(ne,"getElementKey");function me(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(I,I):(P.status="pending",P.then(function(q){P.status==="pending"&&(P.status="fulfilled",P.value=q)},function(q){P.status==="pending"&&(P.status="rejected",P.reason=q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}l(me,"resolveThenable");function z(P,q,re,se,Se){var Ee=typeof P;(Ee==="undefined"||Ee==="boolean")&&(P=null);var te=!1;if(P===null)te=!0;else switch(Ee){case"bigint":case"string":case"number":te=!0;break;case"object":switch(P.$$typeof){case e:case r:te=!0;break;case b:return te=P._init,z(te(P._payload),q,re,se,Se)}}if(te)return Se=Se(P),te=se===""?"."+ne(P,0):se,j(Se)?(re="",te!=null&&(re=te.replace(ve,"$&/")+"/"),z(Se,q,re,"",function(Be){return Be})):Se!=null&&(oe(Se)&&(Se=W(Se,re+(Se.key==null||P&&P.key===Se.key?"":(""+Se.key).replace(ve,"$&/")+"/")+te)),q.push(Se)),1;te=0;var _e=se===""?".":se+":";if(j(P))for(var Me=0;Me<P.length;Me++)se=P[Me],Ee=_e+ne(se,Me),te+=z(se,q,re,Ee,Se);else if(Me=w(P),typeof Me=="function")for(P=Me.call(P),Me=0;!(se=P.next()).done;)se=se.value,Ee=_e+ne(se,Me++),te+=z(se,q,re,Ee,Se);else if(Ee==="object"){if(typeof P.then=="function")return z(me(P),q,re,se,Se);throw q=String(P),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return te}l(z,"mapIntoArray");function Y(P,q,re){if(P==null)return P;var se=[],Se=0;return z(P,se,"","",function(Ee){return q.call(re,Ee,Se++)}),se}l(Y,"mapChildren");function Z(P){if(P._status===-1){var q=P._result;q=q(),q.then(function(re){(P._status===0||P._status===-1)&&(P._status=1,P._result=re)},function(re){(P._status===0||P._status===-1)&&(P._status=2,P._result=re)}),P._status===-1&&(P._status=0,P._result=q)}if(P._status===1)return P._result.default;throw P._result}l(Z,"lazyInitializer");var J=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},ye={map:Y,forEach:l(function(P,q,re){Y(P,function(){q.apply(this,arguments)},re)},"forEach"),count:l(function(P){var q=0;return Y(P,function(){q++}),q},"count"),toArray:l(function(P){return Y(P,function(q){return q})||[]},"toArray"),only:l(function(P){if(!oe(P))throw Error("React.Children.only expected to receive a single React element child.");return P},"only")};return Ce.Activity=y,Ce.Children=ye,Ce.Component=O,Ce.Fragment=o,Ce.Profiler=s,Ce.PureComponent=A,Ce.StrictMode=i,Ce.Suspense=h,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ce.__COMPILER_RUNTIME={__proto__:null,c:l(function(P){return U.H.useMemoCache(P)},"c")},Ce.cache=function(P){return function(){return P.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(P,q,re){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var se=E({},P.props),Se=P.key;if(q!=null)for(Ee in q.key!==void 0&&(Se=""+q.key),q)!Q.call(q,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&q.ref===void 0||(se[Ee]=q[Ee]);var Ee=arguments.length-2;if(Ee===1)se.children=re;else if(1<Ee){for(var te=Array(Ee),_e=0;_e<Ee;_e++)te[_e]=arguments[_e+2];se.children=te}return ee(P.type,Se,se)},Ce.createContext=function(P){return P={$$typeof:f,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:c,_context:P},P},Ce.createElement=function(P,q,re){var se,Se={},Ee=null;if(q!=null)for(se in q.key!==void 0&&(Ee=""+q.key),q)Q.call(q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(Se[se]=q[se]);var te=arguments.length-2;if(te===1)Se.children=re;else if(1<te){for(var _e=Array(te),Me=0;Me<te;Me++)_e[Me]=arguments[Me+2];Se.children=_e}if(P&&P.defaultProps)for(se in te=P.defaultProps,te)Se[se]===void 0&&(Se[se]=te[se]);return ee(P,Ee,Se)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(P){return{$$typeof:d,render:P}},Ce.isValidElement=oe,Ce.lazy=function(P){return{$$typeof:b,_payload:{_status:-1,_result:P},_init:Z}},Ce.memo=function(P,q){return{$$typeof:m,type:P,compare:q===void 0?null:q}},Ce.startTransition=function(P){var q=U.T,re={};U.T=re;try{var se=P(),Se=U.S;Se!==null&&Se(re,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(I,J)}catch(Ee){J(Ee)}finally{q!==null&&re.types!==null&&(q.types=re.types),U.T=q}},Ce.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ce.use=function(P){return U.H.use(P)},Ce.useActionState=function(P,q,re){return U.H.useActionState(P,q,re)},Ce.useCallback=function(P,q){return U.H.useCallback(P,q)},Ce.useContext=function(P){return U.H.useContext(P)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(P,q){return U.H.useDeferredValue(P,q)},Ce.useEffect=function(P,q){return U.H.useEffect(P,q)},Ce.useEffectEvent=function(P){return U.H.useEffectEvent(P)},Ce.useId=function(){return U.H.useId()},Ce.useImperativeHandle=function(P,q,re){return U.H.useImperativeHandle(P,q,re)},Ce.useInsertionEffect=function(P,q){return U.H.useInsertionEffect(P,q)},Ce.useLayoutEffect=function(P,q){return U.H.useLayoutEffect(P,q)},Ce.useMemo=function(P,q){return U.H.useMemo(P,q)},Ce.useOptimistic=function(P,q){return U.H.useOptimistic(P,q)},Ce.useReducer=function(P,q,re){return U.H.useReducer(P,q,re)},Ce.useRef=function(P){return U.H.useRef(P)},Ce.useState=function(P){return U.H.useState(P)},Ce.useSyncExternalStore=function(P,q,re){return U.H.useSyncExternalStore(P,q,re)},Ce.useTransition=function(){return U.H.useTransition()},Ce.version="19.2.3",Ce}l(IR,"requireReact_production");var r0;function yl(){return r0||(r0=1,Md.exports=IR()),Md.exports}l(yl,"requireReact");var g=yl();const xe=Jr(g),Fp=UR({__proto__:null,default:xe},[g]);var Nd={exports:{}},Qi={},Dd={exports:{}},Pd={};var o0;function FR(){return o0||(o0=1,(function(e){function r(z,Y){var Z=z.length;z.push(Y);e:for(;0<Z;){var J=Z-1>>>1,ye=z[J];if(0<s(ye,Y))z[J]=Y,z[Z]=ye,Z=J;else break e}}l(r,"push");function o(z){return z.length===0?null:z[0]}l(o,"peek");function i(z){if(z.length===0)return null;var Y=z[0],Z=z.pop();if(Z!==Y){z[0]=Z;e:for(var J=0,ye=z.length,P=ye>>>1;J<P;){var q=2*(J+1)-1,re=z[q],se=q+1,Se=z[se];if(0>s(re,Z))se<ye&&0>s(Se,re)?(z[J]=Se,z[se]=Z,J=se):(z[J]=re,z[q]=Z,J=q);else if(se<ye&&0>s(Se,Z))z[J]=Se,z[se]=Z,J=se;else break e}}return Y}l(i,"pop");function s(z,Y){var Z=z.sortIndex-Y.sortIndex;return Z!==0?Z:z.id-Y.id}if(l(s,"compare"),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var h=[],m=[],b=1,y=null,S=3,w=!1,C=!1,E=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D(z){for(var Y=o(m);Y!==null;){if(Y.callback===null)i(m);else if(Y.startTime<=z)i(m),Y.sortIndex=Y.expirationTime,r(h,Y);else break;Y=o(m)}}l(D,"advanceTimers");function j(z){if(E=!1,D(z),!C)if(o(h)!==null)C=!0,I||(I=!0,ue());else{var Y=o(m);Y!==null&&me(j,Y.startTime-z)}}l(j,"handleTimeout");var I=!1,U=-1,Q=5,ee=-1;function W(){return T?!0:!(e.unstable_now()-ee<Q)}l(W,"shouldYieldToHost");function oe(){if(T=!1,I){var z=e.unstable_now();ee=z;var Y=!0;try{e:{C=!1,E&&(E=!1,R(U),U=-1),w=!0;var Z=S;try{t:{for(D(z),y=o(h);y!==null&&!(y.expirationTime>z&&W());){var J=y.callback;if(typeof J=="function"){y.callback=null,S=y.priorityLevel;var ye=J(y.expirationTime<=z);if(z=e.unstable_now(),typeof ye=="function"){y.callback=ye,D(z),Y=!0;break t}y===o(h)&&i(h),D(z)}else i(h);y=o(h)}if(y!==null)Y=!0;else{var P=o(m);P!==null&&me(j,P.startTime-z),Y=!1}}break e}finally{y=null,S=Z,w=!1}Y=void 0}}finally{Y?ue():I=!1}}}l(oe,"performWorkUntilDeadline");var ue;if(typeof A=="function")ue=l(function(){A(oe)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ve=new MessageChannel,ne=ve.port2;ve.port1.onmessage=oe,ue=l(function(){ne.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ue=l(function(){O(oe,0)},"schedulePerformWorkUntilDeadline");function me(z,Y){U=O(function(){z(e.unstable_now())},Y)}l(me,"requestHostTimeout"),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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(z){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var Z=S;S=Y;try{return z()}finally{S=Z}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Z=S;S=z;try{return Y()}finally{S=Z}},e.unstable_scheduleCallback=function(z,Y,Z){var J=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?J+Z:J):Z=J,z){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Z+ye,z={id:b++,callback:Y,priorityLevel:z,startTime:Z,expirationTime:ye,sortIndex:-1},Z>J?(z.sortIndex=Z,r(m,z),o(h)===null&&z===o(m)&&(E?(R(U),U=-1):E=!0,me(j,Z-J))):(z.sortIndex=ye,r(h,z),C||w||(C=!0,I||(I=!0,ue()))),z},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(z){var Y=S;return function(){var Z=S;S=Y;try{return z.apply(this,arguments)}finally{S=Z}}}})(Pd)),Pd}l(FR,"requireScheduler_production");var a0;function $R(){return a0||(a0=1,Dd.exports=FR()),Dd.exports}l($R,"requireScheduler");var Ld={exports:{}},xt={};var i0;function qR(){if(i0)return xt;i0=1;var e=yl();function r(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}l(r,"formatProdErrorMessage");function o(){}l(o,"noop");var i={d:{f:o,r:l(function(){throw Error(r(522))},"r"),D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(h,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:m,implementation:b}}l(c,"createPortal$1");var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return l(d,"getCrossOriginStringAs"),xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,xt.createPortal=function(h,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return c(h,m,null,b)},xt.flushSync=function(h){var m=f.T,b=i.p;try{if(f.T=null,i.p=2,h)return h()}finally{f.T=m,i.p=b,i.d.f()}},xt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},xt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},xt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var b=m.as,y=d(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:w}):b==="script"&&i.d.X(h,{crossOrigin:y,integrity:S,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=d(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},xt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=d(b,m.crossOrigin);i.d.L(h,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xt.preloadModule=function(h,m){if(typeof h=="string")if(m){var b=d(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},xt.requestFormReset=function(h){i.d.r(h)},xt.unstable_batchedUpdates=function(h,m){return h(m)},xt.useFormState=function(h,m,b){return f.H.useFormState(h,m,b)},xt.useFormStatus=function(){return f.H.useHostTransitionStatus()},xt.version="19.2.3",xt}l(qR,"requireReactDom_production");var l0;function e1(){if(l0)return Ld.exports;l0=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(r){console.error(r)}}return l(e,"checkDCE"),e(),Ld.exports=qR(),Ld.exports}l(e1,"requireReactDom");var s0;function GR(){if(s0)return Qi;s0=1;var e=$R(),r=yl(),o=e1();function i(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}l(i,"formatProdErrorMessage");function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}l(s,"isValidContainer");function c(t){var n=t,a=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(a=n.return),t=n.return;while(t)}return n.tag===3?a:null}l(c,"getNearestMountedFiber");function f(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}l(f,"getSuspenseInstanceFromFiber");function d(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}l(d,"getActivityInstanceFromFiber");function h(t){if(c(t)!==t)throw Error(i(188))}l(h,"assertIsMounted");function m(t){var n=t.alternate;if(!n){if(n=c(t),n===null)throw Error(i(188));return n!==t?null:t}for(var a=t,u=n;;){var p=a.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===a)return h(p),t;if(v===u)return h(p),n;v=v.sibling}throw Error(i(188))}if(a.return!==u.return)a=p,u=v;else{for(var x=!1,_=p.child;_;){if(_===a){x=!0,a=p,u=v;break}if(_===u){x=!0,u=p,a=v;break}_=_.sibling}if(!x){for(_=v.child;_;){if(_===a){x=!0,a=v,u=p;break}if(_===u){x=!0,u=v,a=p;break}_=_.sibling}if(!x)throw Error(i(189))}}if(a.alternate!==u)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?t:n}l(m,"findCurrentFiberUsingSlowPath");function b(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=b(t),n!==null)return n;t=t.sibling}return null}l(b,"findCurrentHostFiberImpl");var y=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ue(t){return t===null||typeof t!="object"?null:(t=oe&&t[oe]||t["@@iterator"],typeof t=="function"?t:null)}l(ue,"getIteratorFn");var ve=Symbol.for("react.client.reference");function ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ve?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case O:return"Profiler";case T:return"StrictMode";case j:return"Suspense";case I:return"SuspenseList";case ee:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case A:return t.displayName||"Context";case R:return(t._context.displayName||"Context")+".Consumer";case D:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case U:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case Q:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}l(ne,"getComponentNameFromType");var me=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},J=[],ye=-1;function P(t){return{current:t}}l(P,"createCursor");function q(t){0>ye||(t.current=J[ye],J[ye]=null,ye--)}l(q,"pop");function re(t,n){ye++,J[ye]=t.current,t.current=n}l(re,"push");var se=P(null),Se=P(null),Ee=P(null),te=P(null);function _e(t,n){switch(re(Ee,n),re(Se,t),re(se,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?xg(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=xg(n),t=Cg(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(se),re(se,t)}l(_e,"pushHostContainer");function Me(){q(se),q(Se),q(Ee)}l(Me,"popHostContainer");function Be(t){t.memoizedState!==null&&re(te,t);var n=se.current,a=Cg(n,t.type);n!==a&&(re(Se,t),re(se,a))}l(Be,"pushHostContext");function $e(t){Se.current===t&&(q(se),q(Se)),te.current===t&&(q(te),$i._currentValue=Z)}l($e,"popHostContext");var Je,Rt;function Ot(t){if(Je===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Je=n&&n[1]||"",Rt=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Je+t+Rt}l(Ot,"describeBuiltInComponentFrame");var ro=!1;function oo(t,n){if(!t||ro)return"";ro=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:l(function(){try{if(n){var X=l(function(){throw Error()},"Fake");if(Object.defineProperty(X.prototype,"props",{set:l(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch($){var F=$}Reflect.construct(t,[],X)}else{try{X.call()}catch($){F=$}t.call(X.prototype)}}else{try{throw Error()}catch($){F=$}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch($){if($&&F&&typeof $.stack=="string")return[$.stack,F.stack]}return[null,null]},"DetermineComponentFrameRoot")};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),x=v[0],_=v[1];if(x&&_){var N=x.split(`
4
- `),B=_.split(`
5
- `);for(p=u=0;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;for(;p<B.length&&!B[p].includes("DetermineComponentFrameRoot");)p++;if(u===N.length||p===B.length)for(u=N.length-1,p=B.length-1;1<=u&&0<=p&&N[u]!==B[p];)p--;for(;1<=u&&0<=p;u--,p--)if(N[u]!==B[p]){if(u!==1||p!==1)do if(u--,p--,0>p||N[u]!==B[p]){var G=`
6
- `+N[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{ro=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ot(a):""}l(oo,"describeNativeComponentFrame");function ei(t,n){switch(t.tag){case 26:case 27:case 5:return Ot(t.type);case 16:return Ot("Lazy");case 13:return t.child!==n&&n!==null?Ot("Suspense Fallback"):Ot("Suspense");case 19:return Ot("SuspenseList");case 0:case 15:return oo(t.type,!1);case 11:return oo(t.type.render,!1);case 1:return oo(t.type,!0);case 31:return Ot("Activity");default:return""}}l(ei,"describeFiber");function em(t){try{var n="",a=null;do n+=ei(t,a),a=t,t=t.return;while(t);return n}catch(u){return`
7
- Error generating stack: `+u.message+`
8
- `+u.stack}}l(em,"getStackByFiberInDevAndProd");var pc=Object.prototype.hasOwnProperty,hc=e.unstable_scheduleCallback,mc=e.unstable_cancelCallback,mC=e.unstable_shouldYield,vC=e.unstable_requestPaint,Ft=e.unstable_now,yC=e.unstable_getCurrentPriorityLevel,tm=e.unstable_ImmediatePriority,nm=e.unstable_UserBlockingPriority,jl=e.unstable_NormalPriority,gC=e.unstable_LowPriority,rm=e.unstable_IdlePriority,bC=e.log,SC=e.unstable_setDisableYieldValue,ti=null,$t=null;function wr(t){if(typeof bC=="function"&&SC(t),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(ti,t)}catch{}}l(wr,"setIsStrictModeForDevtools");var qt=Math.clz32?Math.clz32:xC,EC=Math.log,wC=Math.LN2;function xC(t){return t>>>=0,t===0?32:31-(EC(t)/wC|0)|0}l(xC,"clz32Fallback");var zl=256,kl=262144,Ul=4194304;function ao(t){var n=t&42;if(n!==0)return n;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:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;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}}l(ao,"getHighestPriorityLanes");function Hl(t,n,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,v=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var _=u&134217727;return _!==0?(u=_&~v,u!==0?p=ao(u):(x&=_,x!==0?p=ao(x):a||(a=_&~t,a!==0&&(p=ao(a))))):(_=u&~v,_!==0?p=ao(_):x!==0?p=ao(x):a||(a=u&~t,a!==0&&(p=ao(a)))),p===0?0:n!==0&&n!==p&&(n&v)===0&&(v=p&-p,a=n&-n,v>=a||v===32&&(a&4194048)!==0)?n:p}l(Hl,"getNextLanes");function ni(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}l(ni,"checkIfRootIsPrerendering");function CC(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}l(CC,"computeExpirationTime");function om(){var t=Ul;return Ul<<=1,(Ul&62914560)===0&&(Ul=4194304),t}l(om,"claimNextRetryLane");function vc(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}l(vc,"createLaneMap");function ri(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}l(ri,"markRootUpdated$1");function TC(t,n,a,u,p,v){var x=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.entanglements,N=t.expirationTimes,B=t.hiddenUpdates;for(a=x&~a;0<a;){var G=31-qt(a),X=1<<G;_[G]=0,N[G]=-1;var F=B[G];if(F!==null)for(B[G]=null,G=0;G<F.length;G++){var $=F[G];$!==null&&($.lane&=-536870913)}a&=~X}u!==0&&am(t,u,0),v!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=v&~(x&~n))}l(TC,"markRootFinished");function am(t,n,a){t.pendingLanes|=n,t.suspendedLanes&=~n;var u=31-qt(n);t.entangledLanes|=n,t.entanglements[u]=t.entanglements[u]|1073741824|a&261930}l(am,"markSpawnedDeferredLane");function im(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var u=31-qt(a),p=1<<u;p&n|t[u]&n&&(t[u]|=n),a&=~p}}l(im,"markRootEntangled");function lm(t,n){var a=n&-n;return a=(a&42)!==0?1:yc(a),(a&(t.suspendedLanes|n))!==0?0:a}l(lm,"getBumpedLaneForHydration");function yc(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}l(yc,"getBumpedLaneForHydrationByLane");function gc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}l(gc,"lanesToEventPriority");function sm(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Yg(t.type))}l(sm,"resolveUpdatePriority");function um(t,n){var a=Y.p;try{return Y.p=t,n()}finally{Y.p=a}}l(um,"runWithPriority");var xr=Math.random().toString(36).slice(2),yt="__reactFiber$"+xr,Dt="__reactProps$"+xr,Fo="__reactContainer$"+xr,bc="__reactEvents$"+xr,RC="__reactListeners$"+xr,OC="__reactHandles$"+xr,cm="__reactResources$"+xr,oi="__reactMarker$"+xr;function Sc(t){delete t[yt],delete t[Dt],delete t[bc],delete t[RC],delete t[OC]}l(Sc,"detachDeletedInstance");function $o(t){var n=t[yt];if(n)return n;for(var a=t.parentNode;a;){if(n=a[Fo]||a[yt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=Ng(t);t!==null;){if(a=t[yt])return a;t=Ng(t)}return n}t=a,a=t.parentNode}return null}l($o,"getClosestInstanceFromNode");function qo(t){if(t=t[yt]||t[Fo]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}l(qo,"getInstanceFromNode");function ai(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(i(33))}l(ai,"getNodeFromInstance");function Go(t){var n=t[cm];return n||(n=t[cm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}l(Go,"getResourcesFromRoot");function mt(t){t[oi]=!0}l(mt,"markNodeAsHoistable");var fm=new Set,dm={};function io(t,n){Vo(t,n),Vo(t+"Capture",n)}l(io,"registerTwoPhaseEvent");function Vo(t,n){for(dm[t]=n,t=0;t<n.length;t++)fm.add(n[t])}l(Vo,"registerDirectEvent");var _C=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]*$"),pm={},hm={};function AC(t){return pc.call(hm,t)?!0:pc.call(pm,t)?!1:_C.test(t)?hm[t]=!0:(pm[t]=!0,!1)}l(AC,"isAttributeNameSafe");function Bl(t,n,a){if(AC(n))if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+a)}}l(Bl,"setValueForAttribute");function Il(t,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+a)}}l(Il,"setValueForKnownAttribute");function Xn(t,n,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(n,a,""+u)}}l(Xn,"setValueForNamespacedAttribute");function en(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}l(en,"getToStringValue");function mm(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}l(mm,"isCheckable");function MC(t,n,a){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,v=u.set;return Object.defineProperty(t,n,{configurable:!0,get:l(function(){return p.call(this)},"get"),set:l(function(x){a=""+x,v.call(this,x)},"set")}),Object.defineProperty(t,n,{enumerable:u.enumerable}),{getValue:l(function(){return a},"getValue"),setValue:l(function(x){a=""+x},"setValue"),stopTracking:l(function(){t._valueTracker=null,delete t[n]},"stopTracking")}}}l(MC,"trackValueOnNode");function Ec(t){if(!t._valueTracker){var n=mm(t)?"checked":"value";t._valueTracker=MC(t,n,""+t[n])}}l(Ec,"track");function vm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),u="";return t&&(u=mm(t)?t.checked?"true":"false":t.value),t=u,t!==a?(n.setValue(t),!0):!1}l(vm,"updateValueIfChanged");function Fl(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}}l(Fl,"getActiveElement");var NC=/[\n"\\]/g;function tn(t){return t.replace(NC,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}l(tn,"escapeSelectorAttributeValueInsideDoubleQuotes");function wc(t,n,a,u,p,v,x,_){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.type=x:t.removeAttribute("type"),n!=null?x==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+en(n)):t.value!==""+en(n)&&(t.value=""+en(n)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),n!=null?xc(t,x,en(n)):a!=null?xc(t,x,en(a)):u!=null&&t.removeAttribute("value"),p==null&&v!=null&&(t.defaultChecked=!!v),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+en(_):t.removeAttribute("name")}l(wc,"updateInput");function ym(t,n,a,u,p,v,x,_){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),n!=null||a!=null){if(!(v!=="submit"&&v!=="reset"||n!=null)){Ec(t);return}a=a!=null?""+en(a):"",n=n!=null?""+en(n):a,_||n===t.value||(t.value=n),t.defaultValue=n}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=_?t.checked:!!u,t.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.name=x),Ec(t)}l(ym,"initInput");function xc(t,n,a){n==="number"&&Fl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}l(xc,"setDefaultValue");function Yo(t,n,a,u){if(t=t.options,n){n={};for(var p=0;p<a.length;p++)n["$"+a[p]]=!0;for(a=0;a<t.length;a++)p=n.hasOwnProperty("$"+t[a].value),t[a].selected!==p&&(t[a].selected=p),p&&u&&(t[a].defaultSelected=!0)}else{for(a=""+en(a),n=null,p=0;p<t.length;p++){if(t[p].value===a){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}n!==null||t[p].disabled||(n=t[p])}n!==null&&(n.selected=!0)}}l(Yo,"updateOptions");function gm(t,n,a){if(n!=null&&(n=""+en(n),n!==t.value&&(t.value=n),a==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=a!=null?""+en(a):""}l(gm,"updateTextarea");function bm(t,n,a,u){if(n==null){if(u!=null){if(a!=null)throw Error(i(92));if(me(u)){if(1<u.length)throw Error(i(93));u=u[0]}a=u}a==null&&(a=""),n=a}a=en(n),t.defaultValue=a,u=t.textContent,u===a&&u!==""&&u!==null&&(t.value=u),Ec(t)}l(bm,"initTextarea");function Qo(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}l(Qo,"setTextContent");var DC=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 Sm(t,n,a){var u=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":u?t.setProperty(n,a):typeof a!="number"||a===0||DC.has(n)?n==="float"?t.cssFloat=a:t[n]=(""+a).trim():t[n]=a+"px"}l(Sm,"setValueForStyle");function Em(t,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(t=t.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in n)u=n[p],n.hasOwnProperty(p)&&a[p]!==u&&Sm(t,p,u)}else for(var v in n)n.hasOwnProperty(v)&&Sm(t,v,n[v])}l(Em,"setValueForStyles");function Cc(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}}l(Cc,"isCustomElement");var PC=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"]]),LC=/^[\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 $l(t){return LC.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}l($l,"sanitizeURL");function Wn(){}l(Wn,"noop$1");var Tc=null;function Rc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}l(Rc,"getEventTarget");var Ko=null,Xo=null;function wm(t){var n=qo(t);if(n&&(t=n.stateNode)){var a=t[Dt]||null;e:switch(t=n.stateNode,n.type){case"input":if(wc(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var u=a[n];if(u!==t&&u.form===t.form){var p=u[Dt]||null;if(!p)throw Error(i(90));wc(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(n=0;n<a.length;n++)u=a[n],u.form===t.form&&vm(u)}break e;case"textarea":gm(t,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Yo(t,!!a.multiple,n,!1)}}}l(wm,"restoreStateOfTarget");var Oc=!1;function xm(t,n,a){if(Oc)return t(n,a);Oc=!0;try{var u=t(n);return u}finally{if(Oc=!1,(Ko!==null||Xo!==null)&&(Ms(),Ko&&(n=Ko,t=Xo,Xo=Ko=null,wm(n),t)))for(n=0;n<t.length;n++)wm(t[n])}}l(xm,"batchedUpdates$1");function ii(t,n){var a=t.stateNode;if(a===null)return null;var u=a[Dt]||null;if(u===null)return null;a=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(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(i(231,n,typeof a));return a}l(ii,"getListener");var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=!1;if(Zn)try{var li={};Object.defineProperty(li,"passive",{get:l(function(){_c=!0},"get")}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{_c=!1}var Cr=null,Ac=null,ql=null;function Cm(){if(ql)return ql;var t,n=Ac,a=n.length,u,p="value"in Cr?Cr.value:Cr.textContent,v=p.length;for(t=0;t<a&&n[t]===p[t];t++);var x=a-t;for(u=1;u<=x&&n[a-u]===p[v-u];u++);return ql=p.slice(t,1<u?1-u:void 0)}l(Cm,"getData");function Gl(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}l(Gl,"getEventCharCode");function Vl(){return!0}l(Vl,"functionThatReturnsTrue");function Tm(){return!1}l(Tm,"functionThatReturnsFalse");function Pt(t){function n(a,u,p,v,x){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=x,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(a=t[_],this[_]=a?a(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Vl:Tm,this.isPropagationStopped=Tm,this}return l(n,"SyntheticBaseEvent"),y(n.prototype,{preventDefault:l(function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Vl)},"preventDefault"),stopPropagation:l(function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Vl)},"stopPropagation"),persist:l(function(){},"persist"),isPersistent:Vl}),n}l(Pt,"createSyntheticEvent");var lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:l(function(t){return t.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},Yl=Pt(lo),si=y({},lo,{view:0,detail:0}),jC=Pt(si),Mc,Nc,ui,Ql=y({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,button:0,buttons:0,relatedTarget:l(function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},"relatedTarget"),movementX:l(function(t){return"movementX"in t?t.movementX:(t!==ui&&(ui&&t.type==="mousemove"?(Mc=t.screenX-ui.screenX,Nc=t.screenY-ui.screenY):Nc=Mc=0,ui=t),Mc)},"movementX"),movementY:l(function(t){return"movementY"in t?t.movementY:Nc},"movementY")}),Rm=Pt(Ql),zC=y({},Ql,{dataTransfer:0}),kC=Pt(zC),UC=y({},si,{relatedTarget:0}),Dc=Pt(UC),HC=y({},lo,{animationName:0,elapsedTime:0,pseudoElement:0}),BC=Pt(HC),IC=y({},lo,{clipboardData:l(function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData},"clipboardData")}),FC=Pt(IC),$C=y({},lo,{data:0}),Om=Pt($C),qC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GC={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"},VC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YC(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=VC[t])?!!n[t]:!1}l(YC,"modifierStateGetter");function Pc(){return YC}l(Pc,"getEventModifierState");var QC=y({},si,{key:l(function(t){if(t.key){var n=qC[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Gl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?GC[t.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:l(function(t){return t.type==="keypress"?Gl(t):0},"charCode"),keyCode:l(function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},"keyCode"),which:l(function(t){return t.type==="keypress"?Gl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0},"which")}),KC=Pt(QC),XC=y({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_m=Pt(XC),WC=y({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),ZC=Pt(WC),JC=y({},lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),eT=Pt(JC),tT=y({},Ql,{deltaX:l(function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},"deltaX"),deltaY:l(function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),nT=Pt(tT),rT=y({},lo,{newState:0,oldState:0}),oT=Pt(rT),aT=[9,13,27,32],Lc=Zn&&"CompositionEvent"in window,ci=null;Zn&&"documentMode"in document&&(ci=document.documentMode);var iT=Zn&&"TextEvent"in window&&!ci,Am=Zn&&(!Lc||ci&&8<ci&&11>=ci),Mm=" ",Nm=!1;function Dm(t,n){switch(t){case"keyup":return aT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}l(Dm,"isFallbackCompositionEnd");function Pm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}l(Pm,"getDataFromCustomEvent");var Wo=!1;function lT(t,n){switch(t){case"compositionend":return Pm(n);case"keypress":return n.which!==32?null:(Nm=!0,Mm);case"textInput":return t=n.data,t===Mm&&Nm?null:t;default:return null}}l(lT,"getNativeBeforeInputChars");function sT(t,n){if(Wo)return t==="compositionend"||!Lc&&Dm(t,n)?(t=Cm(),ql=Ac=Cr=null,Wo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Am&&n.locale!=="ko"?null:n.data;default:return null}}l(sT,"getFallbackBeforeInputChars");var uT={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 Lm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!uT[t.type]:n==="textarea"}l(Lm,"isTextInputElement");function jm(t,n,a,u){Ko?Xo?Xo.push(u):Xo=[u]:Ko=u,n=ks(n,"onChange"),0<n.length&&(a=new Yl("onChange","change",null,a,u),t.push({event:a,listeners:n}))}l(jm,"createAndAccumulateChangeEvent");var fi=null,di=null;function cT(t){yg(t,0)}l(cT,"runEventInBatch");function Kl(t){var n=ai(t);if(vm(n))return t}l(Kl,"getInstIfValueChanged");function zm(t,n){if(t==="change")return n}l(zm,"getTargetInstForChangeEvent");var km=!1;if(Zn){var jc;if(Zn){var zc="oninput"in document;if(!zc){var Um=document.createElement("div");Um.setAttribute("oninput","return;"),zc=typeof Um.oninput=="function"}jc=zc}else jc=!1;km=jc&&(!document.documentMode||9<document.documentMode)}function Hm(){fi&&(fi.detachEvent("onpropertychange",Bm),di=fi=null)}l(Hm,"stopWatchingForValueChange");function Bm(t){if(t.propertyName==="value"&&Kl(di)){var n=[];jm(n,di,t,Rc(t)),xm(cT,n)}}l(Bm,"handlePropertyChange");function fT(t,n,a){t==="focusin"?(Hm(),fi=n,di=a,fi.attachEvent("onpropertychange",Bm)):t==="focusout"&&Hm()}l(fT,"handleEventsForInputEventPolyfill");function dT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Kl(di)}l(dT,"getTargetInstForInputEventPolyfill");function pT(t,n){if(t==="click")return Kl(n)}l(pT,"getTargetInstForClickEvent");function hT(t,n){if(t==="input"||t==="change")return Kl(n)}l(hT,"getTargetInstForInputOrChangeEvent");function mT(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}l(mT,"is");var Gt=typeof Object.is=="function"?Object.is:mT;function pi(t,n){if(Gt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var a=Object.keys(t),u=Object.keys(n);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!pc.call(n,p)||!Gt(t[p],n[p]))return!1}return!0}l(pi,"shallowEqual");function Im(t){for(;t&&t.firstChild;)t=t.firstChild;return t}l(Im,"getLeafNode");function Fm(t,n){var a=Im(t);t=0;for(var u;a;){if(a.nodeType===3){if(u=t+a.textContent.length,t<=n&&u>=n)return{node:a,offset:n-t};t=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Im(a)}}l(Fm,"getNodeForCharacterOffset");function $m(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?$m(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}l($m,"containsNode");function qm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Fl(t.document);n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=Fl(t.document)}return n}l(qm,"getActiveElementDeep");function kc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}l(kc,"hasSelectionCapabilities");var vT=Zn&&"documentMode"in document&&11>=document.documentMode,Zo=null,Uc=null,hi=null,Hc=!1;function Gm(t,n,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Hc||Zo==null||Zo!==Fl(u)||(u=Zo,"selectionStart"in u&&kc(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}),hi&&pi(hi,u)||(hi=u,u=ks(Uc,"onSelect"),0<u.length&&(n=new Yl("onSelect","select",null,n,a),t.push({event:n,listeners:u}),n.target=Zo)))}l(Gm,"constructSelectEvent");function so(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}l(so,"makePrefixMap");var Jo={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},Bc={},Vm={};Zn&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),"TransitionEvent"in window||delete Jo.transitionend.transition);function uo(t){if(Bc[t])return Bc[t];if(!Jo[t])return t;var n=Jo[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in Vm)return Bc[t]=n[a];return t}l(uo,"getVendorPrefixedEventName");var Ym=uo("animationend"),Qm=uo("animationiteration"),Km=uo("animationstart"),yT=uo("transitionrun"),gT=uo("transitionstart"),bT=uo("transitioncancel"),Xm=uo("transitionend"),Wm=new Map,Ic="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(" ");Ic.push("scrollEnd");function Sn(t,n){Wm.set(t,n),io(n,[t])}l(Sn,"registerSimpleEvent");var Xl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},nn=[],ea=0,Fc=0;function Wl(){for(var t=ea,n=Fc=ea=0;n<t;){var a=nn[n];nn[n++]=null;var u=nn[n];nn[n++]=null;var p=nn[n];nn[n++]=null;var v=nn[n];if(nn[n++]=null,u!==null&&p!==null){var x=u.pending;x===null?p.next=p:(p.next=x.next,x.next=p),u.pending=p}v!==0&&Zm(a,p,v)}}l(Wl,"finishQueueingConcurrentUpdates");function Zl(t,n,a,u){nn[ea++]=t,nn[ea++]=n,nn[ea++]=a,nn[ea++]=u,Fc|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}l(Zl,"enqueueUpdate$1");function $c(t,n,a,u){return Zl(t,n,a,u),Jl(t)}l($c,"enqueueConcurrentHookUpdate");function co(t,n){return Zl(t,null,null,n),Jl(t)}l(co,"enqueueConcurrentRenderForLane");function Zm(t,n,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,v=t.return;v!==null;)v.childLanes|=a,u=v.alternate,u!==null&&(u.childLanes|=a),v.tag===22&&(t=v.stateNode,t===null||t._visibility&1||(p=!0)),t=v,v=v.return;return t.tag===3?(v=t.stateNode,p&&n!==null&&(p=31-qt(a),t=v.hiddenUpdates,u=t[p],u===null?t[p]=[n]:u.push(n),n.lane=a|536870912),v):null}l(Zm,"markUpdateLaneFromFiberToRoot");function Jl(t){if(50<zi)throw zi=0,Jf=null,Error(i(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}l(Jl,"getRootForUpdatedFiber");var ta={};function ST(t,n,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=n,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}l(ST,"FiberNode");function Vt(t,n,a,u){return new ST(t,n,a,u)}l(Vt,"createFiberImplClass");function qc(t){return t=t.prototype,!(!t||!t.isReactComponent)}l(qc,"shouldConstruct");function Jn(t,n){var a=t.alternate;return a===null?(a=Vt(t.tag,n,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=n,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,n=t.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}l(Jn,"createWorkInProgress");function Jm(t,n){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=n,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,n=a.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}l(Jm,"resetWorkInProgress");function es(t,n,a,u,p,v){var x=0;if(u=t,typeof t=="function")qc(t)&&(x=1);else if(typeof t=="string")x=TR(t,a,se.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ee:return t=Vt(31,a,n,p),t.elementType=ee,t.lanes=v,t;case E:return fo(a.children,p,v,n);case T:x=8,p|=24;break;case O:return t=Vt(12,a,n,p|2),t.elementType=O,t.lanes=v,t;case j:return t=Vt(13,a,n,p),t.elementType=j,t.lanes=v,t;case I:return t=Vt(19,a,n,p),t.elementType=I,t.lanes=v,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:x=10;break e;case R:x=9;break e;case D:x=11;break e;case U:x=14;break e;case Q:x=16,u=null;break e}x=29,a=Error(i(130,t===null?"null":typeof t,"")),u=null}return n=Vt(x,a,n,p),n.elementType=t,n.type=u,n.lanes=v,n}l(es,"createFiberFromTypeAndProps");function fo(t,n,a,u){return t=Vt(7,t,u,n),t.lanes=a,t}l(fo,"createFiberFromFragment");function Gc(t,n,a){return t=Vt(6,t,null,n),t.lanes=a,t}l(Gc,"createFiberFromText");function ev(t){var n=Vt(18,null,null,0);return n.stateNode=t,n}l(ev,"createFiberFromDehydratedFragment");function Vc(t,n,a){return n=Vt(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}l(Vc,"createFiberFromPortal");var tv=new WeakMap;function rn(t,n){if(typeof t=="object"&&t!==null){var a=tv.get(t);return a!==void 0?a:(n={value:t,source:n,stack:em(n)},tv.set(t,n),n)}return{value:t,source:n,stack:em(n)}}l(rn,"createCapturedValueAtFiber");var na=[],ra=0,ts=null,mi=0,on=[],an=0,Tr=null,Pn=1,Ln="";function er(t,n){na[ra++]=mi,na[ra++]=ts,ts=t,mi=n}l(er,"pushTreeFork");function nv(t,n,a){on[an++]=Pn,on[an++]=Ln,on[an++]=Tr,Tr=t;var u=Pn;t=Ln;var p=32-qt(u)-1;u&=~(1<<p),a+=1;var v=32-qt(n)+p;if(30<v){var x=p-p%5;v=(u&(1<<x)-1).toString(32),u>>=x,p-=x,Pn=1<<32-qt(n)+p|a<<p|u,Ln=v+t}else Pn=1<<v|a<<p|u,Ln=t}l(nv,"pushTreeId");function Yc(t){t.return!==null&&(er(t,1),nv(t,1,0))}l(Yc,"pushMaterializedTreeId");function Qc(t){for(;t===ts;)ts=na[--ra],na[ra]=null,mi=na[--ra],na[ra]=null;for(;t===Tr;)Tr=on[--an],on[an]=null,Ln=on[--an],on[an]=null,Pn=on[--an],on[an]=null}l(Qc,"popTreeContext");function rv(t,n){on[an++]=Pn,on[an++]=Ln,on[an++]=Tr,Pn=n.id,Ln=n.overflow,Tr=t}l(rv,"restoreSuspendedTreeContext");var gt=null,We=null,ze=!1,Rr=null,ln=!1,Kc=Error(i(519));function Or(t){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vi(rn(n,t)),Kc}l(Or,"throwOnHydrationMismatch");function ov(t){var n=t.stateNode,a=t.type,u=t.memoizedProps;switch(n[yt]=t,n[Dt]=u,a){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(a=0;a<Ui.length;a++)De(Ui[a],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),ym(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),bm(n,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||u.suppressHydrationWarning===!0||Eg(n.textContent,a)?(u.popover!=null&&(De("beforetoggle",n),De("toggle",n)),u.onScroll!=null&&De("scroll",n),u.onScrollEnd!=null&&De("scrollend",n),u.onClick!=null&&(n.onclick=Wn),n=!0):n=!1,n||Or(t,!0)}l(ov,"prepareToHydrateHostInstance");function av(t){for(gt=t.return;gt;)switch(gt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:gt=gt.return}}l(av,"popToNextHostParent");function oa(t){if(t!==gt)return!1;if(!ze)return av(t),ze=!0,!1;var n=t.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||hd(t.type,t.memoizedProps)),a=!a),a&&We&&Or(t),av(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=Mg(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=Mg(t)}else n===27?(n=We,Ir(t.type)?(t=bd,bd=null,We=t):We=n):We=gt?un(t.stateNode.nextSibling):null;return!0}l(oa,"popHydrationState");function po(){We=gt=null,ze=!1}l(po,"resetHydrationState");function Xc(){var t=Rr;return t!==null&&(kt===null?kt=t:kt.push.apply(kt,t),Rr=null),t}l(Xc,"upgradeHydrationErrorsToRecoverable");function vi(t){Rr===null?Rr=[t]:Rr.push(t)}l(vi,"queueHydrationError");var Wc=P(null),ho=null,tr=null;function _r(t,n,a){re(Wc,n._currentValue),n._currentValue=a}l(_r,"pushProvider");function nr(t){t._currentValue=Wc.current,q(Wc)}l(nr,"popProvider");function Zc(t,n,a){for(;t!==null;){var u=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),t===a)break;t=t.return}}l(Zc,"scheduleContextWorkOnParentPath");function Jc(t,n,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var v=p.dependencies;if(v!==null){var x=p.child;v=v.firstContext;e:for(;v!==null;){var _=v;v=p;for(var N=0;N<n.length;N++)if(_.context===n[N]){v.lanes|=a,_=v.alternate,_!==null&&(_.lanes|=a),Zc(v.return,a,t),u||(x=null);break e}v=_.next}}else if(p.tag===18){if(x=p.return,x===null)throw Error(i(341));x.lanes|=a,v=x.alternate,v!==null&&(v.lanes|=a),Zc(x,a,t),x=null}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===t){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}}l(Jc,"propagateContextChanges");function aa(t,n,a,u){t=null;for(var p=n,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var x=p.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var _=p.type;Gt(p.pendingProps.value,x.value)||(t!==null?t.push(_):t=[_])}}else if(p===te.current){if(x=p.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push($i):t=[$i])}p=p.return}t!==null&&Jc(n,t,a,u),n.flags|=262144}l(aa,"propagateParentContextChanges");function ns(t){for(t=t.firstContext;t!==null;){if(!Gt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}l(ns,"checkIfContextChanged");function mo(t){ho=t,tr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}l(mo,"prepareToReadContext");function bt(t){return iv(ho,t)}l(bt,"readContext");function rs(t,n){return ho===null&&mo(t),iv(t,n)}l(rs,"readContextDuringReconciliation");function iv(t,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},tr===null){if(t===null)throw Error(i(308));tr=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else tr=tr.next=n;return a}l(iv,"readContextForConsumer");var ET=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:l(function(a,u){t.push(u)},"addEventListener")};this.abort=function(){n.aborted=!0,t.forEach(function(a){return a()})}},wT=e.unstable_scheduleCallback,xT=e.unstable_NormalPriority,ct={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ef(){return{controller:new ET,data:new Map,refCount:0}}l(ef,"createCache");function yi(t){t.refCount--,t.refCount===0&&wT(xT,function(){t.controller.abort()})}l(yi,"releaseCache");var gi=null,tf=0,ia=0,la=null;function CT(t,n){if(gi===null){var a=gi=[];tf=0,ia=ad(),la={status:"pending",value:void 0,then:l(function(u){a.push(u)},"then")}}return tf++,n.then(lv,lv),n}l(CT,"entangleAsyncAction");function lv(){if(--tf===0&&gi!==null){la!==null&&(la.status="fulfilled");var t=gi;gi=null,ia=0,la=null;for(var n=0;n<t.length;n++)(0,t[n])()}}l(lv,"pingEngtangledActionScope");function TT(t,n){var a=[],u={status:"pending",value:null,reason:null,then:l(function(p){a.push(p)},"then")};return t.then(function(){u.status="fulfilled",u.value=n;for(var p=0;p<a.length;p++)(0,a[p])(n)},function(p){for(u.status="rejected",u.reason=p,p=0;p<a.length;p++)(0,a[p])(void 0)}),u}l(TT,"chainThenableValue");var sv=z.S;z.S=function(t,n){Gy=Ft(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&CT(t,n),sv!==null&&sv(t,n)};var vo=P(null);function nf(){var t=vo.current;return t!==null?t:Ke.pooledCache}l(nf,"peekCacheFromPool");function os(t,n){n===null?re(vo,vo.current):re(vo,n.pool)}l(os,"pushTransition");function uv(){var t=nf();return t===null?null:{parent:ct._currentValue,pool:t}}l(uv,"getSuspendedCache");var sa=Error(i(460)),rf=Error(i(474)),as=Error(i(542)),is={then:l(function(){},"then")};function cv(t){return t=t.status,t==="fulfilled"||t==="rejected"}l(cv,"isThenableResolved");function fv(t,n,a){switch(a=t[a],a===void 0?t.push(n):a!==n&&(n.then(Wn,Wn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,pv(t),t;default:if(typeof n.status=="string")n.then(Wn,Wn);else{if(t=Ke,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=n,t.status="pending",t.then(function(u){if(n.status==="pending"){var p=n;p.status="fulfilled",p.value=u}},function(u){if(n.status==="pending"){var p=n;p.status="rejected",p.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,pv(t),t}throw go=n,sa}}l(fv,"trackUsedThenable");function yo(t){try{var n=t._init;return n(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(go=a,sa):a}}l(yo,"resolveLazy");var go=null;function dv(){if(go===null)throw Error(i(459));var t=go;return go=null,t}l(dv,"getSuspendedThenable");function pv(t){if(t===sa||t===as)throw Error(i(483))}l(pv,"checkIfUseWrappedInAsyncCatch");var ua=null,bi=0;function ls(t){var n=bi;return bi+=1,ua===null&&(ua=[]),fv(ua,t,n)}l(ls,"unwrapThenable");function Si(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}l(Si,"coerceRef");function ss(t,n){throw n.$$typeof===S?Error(i(525)):(t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}l(ss,"throwOnInvalidObjectTypeImpl");function hv(t){function n(k,L){if(t){var H=k.deletions;H===null?(k.deletions=[L],k.flags|=16):H.push(L)}}l(n,"deleteChild");function a(k,L){if(!t)return null;for(;L!==null;)n(k,L),L=L.sibling;return null}l(a,"deleteRemainingChildren");function u(k){for(var L=new Map;k!==null;)k.key!==null?L.set(k.key,k):L.set(k.index,k),k=k.sibling;return L}l(u,"mapRemainingChildren");function p(k,L){return k=Jn(k,L),k.index=0,k.sibling=null,k}l(p,"useFiber");function v(k,L,H){return k.index=H,t?(H=k.alternate,H!==null?(H=H.index,H<L?(k.flags|=67108866,L):H):(k.flags|=67108866,L)):(k.flags|=1048576,L)}l(v,"placeChild");function x(k){return t&&k.alternate===null&&(k.flags|=67108866),k}l(x,"placeSingleChild");function _(k,L,H,K){return L===null||L.tag!==6?(L=Gc(H,k.mode,K),L.return=k,L):(L=p(L,H),L.return=k,L)}l(_,"updateTextNode");function N(k,L,H,K){var ge=H.type;return ge===E?G(k,L,H.props.children,K,H.key):L!==null&&(L.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===Q&&yo(ge)===L.type)?(L=p(L,H.props),Si(L,H),L.return=k,L):(L=es(H.type,H.key,H.props,null,k.mode,K),Si(L,H),L.return=k,L)}l(N,"updateElement");function B(k,L,H,K){return L===null||L.tag!==4||L.stateNode.containerInfo!==H.containerInfo||L.stateNode.implementation!==H.implementation?(L=Vc(H,k.mode,K),L.return=k,L):(L=p(L,H.children||[]),L.return=k,L)}l(B,"updatePortal");function G(k,L,H,K,ge){return L===null||L.tag!==7?(L=fo(H,k.mode,K,ge),L.return=k,L):(L=p(L,H),L.return=k,L)}l(G,"updateFragment");function X(k,L,H){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Gc(""+L,k.mode,H),L.return=k,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return H=es(L.type,L.key,L.props,null,k.mode,H),Si(H,L),H.return=k,H;case C:return L=Vc(L,k.mode,H),L.return=k,L;case Q:return L=yo(L),X(k,L,H)}if(me(L)||ue(L))return L=fo(L,k.mode,H,null),L.return=k,L;if(typeof L.then=="function")return X(k,ls(L),H);if(L.$$typeof===A)return X(k,rs(k,L),H);ss(k,L)}return null}l(X,"createChild");function F(k,L,H,K){var ge=L!==null?L.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ge!==null?null:_(k,L,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case w:return H.key===ge?N(k,L,H,K):null;case C:return H.key===ge?B(k,L,H,K):null;case Q:return H=yo(H),F(k,L,H,K)}if(me(H)||ue(H))return ge!==null?null:G(k,L,H,K,null);if(typeof H.then=="function")return F(k,L,ls(H),K);if(H.$$typeof===A)return F(k,L,rs(k,H),K);ss(k,H)}return null}l(F,"updateSlot");function $(k,L,H,K,ge){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return k=k.get(H)||null,_(L,k,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return k=k.get(K.key===null?H:K.key)||null,N(L,k,K,ge);case C:return k=k.get(K.key===null?H:K.key)||null,B(L,k,K,ge);case Q:return K=yo(K),$(k,L,H,K,ge)}if(me(K)||ue(K))return k=k.get(H)||null,G(L,k,K,ge,null);if(typeof K.then=="function")return $(k,L,H,ls(K),ge);if(K.$$typeof===A)return $(k,L,H,rs(L,K),ge);ss(L,K)}return null}l($,"updateFromMap");function fe(k,L,H,K){for(var ge=null,Ue=null,he=L,Ae=L=0,Le=null;he!==null&&Ae<H.length;Ae++){he.index>Ae?(Le=he,he=null):Le=he.sibling;var He=F(k,he,H[Ae],K);if(He===null){he===null&&(he=Le);break}t&&he&&He.alternate===null&&n(k,he),L=v(He,L,Ae),Ue===null?ge=He:Ue.sibling=He,Ue=He,he=Le}if(Ae===H.length)return a(k,he),ze&&er(k,Ae),ge;if(he===null){for(;Ae<H.length;Ae++)he=X(k,H[Ae],K),he!==null&&(L=v(he,L,Ae),Ue===null?ge=he:Ue.sibling=he,Ue=he);return ze&&er(k,Ae),ge}for(he=u(he);Ae<H.length;Ae++)Le=$(he,k,Ae,H[Ae],K),Le!==null&&(t&&Le.alternate!==null&&he.delete(Le.key===null?Ae:Le.key),L=v(Le,L,Ae),Ue===null?ge=Le:Ue.sibling=Le,Ue=Le);return t&&he.forEach(function(Vr){return n(k,Vr)}),ze&&er(k,Ae),ge}l(fe,"reconcileChildrenArray");function we(k,L,H,K){if(H==null)throw Error(i(151));for(var ge=null,Ue=null,he=L,Ae=L=0,Le=null,He=H.next();he!==null&&!He.done;Ae++,He=H.next()){he.index>Ae?(Le=he,he=null):Le=he.sibling;var Vr=F(k,he,He.value,K);if(Vr===null){he===null&&(he=Le);break}t&&he&&Vr.alternate===null&&n(k,he),L=v(Vr,L,Ae),Ue===null?ge=Vr:Ue.sibling=Vr,Ue=Vr,he=Le}if(He.done)return a(k,he),ze&&er(k,Ae),ge;if(he===null){for(;!He.done;Ae++,He=H.next())He=X(k,He.value,K),He!==null&&(L=v(He,L,Ae),Ue===null?ge=He:Ue.sibling=He,Ue=He);return ze&&er(k,Ae),ge}for(he=u(he);!He.done;Ae++,He=H.next())He=$(he,k,Ae,He.value,K),He!==null&&(t&&He.alternate!==null&&he.delete(He.key===null?Ae:He.key),L=v(He,L,Ae),Ue===null?ge=He:Ue.sibling=He,Ue=He);return t&&he.forEach(function(zR){return n(k,zR)}),ze&&er(k,Ae),ge}l(we,"reconcileChildrenIterator");function Qe(k,L,H,K){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case w:e:{for(var ge=H.key;L!==null;){if(L.key===ge){if(ge=H.type,ge===E){if(L.tag===7){a(k,L.sibling),K=p(L,H.props.children),K.return=k,k=K;break e}}else if(L.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===Q&&yo(ge)===L.type){a(k,L.sibling),K=p(L,H.props),Si(K,H),K.return=k,k=K;break e}a(k,L);break}else n(k,L);L=L.sibling}H.type===E?(K=fo(H.props.children,k.mode,K,H.key),K.return=k,k=K):(K=es(H.type,H.key,H.props,null,k.mode,K),Si(K,H),K.return=k,k=K)}return x(k);case C:e:{for(ge=H.key;L!==null;){if(L.key===ge)if(L.tag===4&&L.stateNode.containerInfo===H.containerInfo&&L.stateNode.implementation===H.implementation){a(k,L.sibling),K=p(L,H.children||[]),K.return=k,k=K;break e}else{a(k,L);break}else n(k,L);L=L.sibling}K=Vc(H,k.mode,K),K.return=k,k=K}return x(k);case Q:return H=yo(H),Qe(k,L,H,K)}if(me(H))return fe(k,L,H,K);if(ue(H)){if(ge=ue(H),typeof ge!="function")throw Error(i(150));return H=ge.call(H),we(k,L,H,K)}if(typeof H.then=="function")return Qe(k,L,ls(H),K);if(H.$$typeof===A)return Qe(k,L,rs(k,H),K);ss(k,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,L!==null&&L.tag===6?(a(k,L.sibling),K=p(L,H),K.return=k,k=K):(a(k,L),K=Gc(H,k.mode,K),K.return=k,k=K),x(k)):a(k,L)}return l(Qe,"reconcileChildFibersImpl"),function(k,L,H,K){try{bi=0;var ge=Qe(k,L,H,K);return ua=null,ge}catch(he){if(he===sa||he===as)throw he;var Ue=Vt(29,he,null,k.mode);return Ue.lanes=K,Ue.return=k,Ue}}}l(hv,"createChildReconciler");var bo=hv(!0),mv=hv(!1),Ar=!1;function of(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}l(of,"initializeUpdateQueue");function af(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}l(af,"cloneUpdateQueue");function Mr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}l(Mr,"createUpdate");function Nr(t,n,a){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Ie&2)!==0){var p=u.pending;return p===null?n.next=n:(n.next=p.next,p.next=n),u.pending=n,n=Jl(t),Zm(t,null,a),n}return Zl(t,u,n,a),Jl(t)}l(Nr,"enqueueUpdate");function Ei(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var u=n.lanes;u&=t.pendingLanes,a|=u,n.lanes=a,im(t,a)}}l(Ei,"entangleTransitions");function lf(t,n){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};v===null?p=v=x:v=v.next=x,a=a.next}while(a!==null);v===null?p=v=n:v=v.next=n}else p=v=n;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}l(lf,"enqueueCapturedUpdate");var sf=!1;function wi(){if(sf){var t=la;if(t!==null)throw t}}l(wi,"suspendIfUpdateReadFromEntangledAsyncAction");function xi(t,n,a,u){sf=!1;var p=t.updateQueue;Ar=!1;var v=p.firstBaseUpdate,x=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var N=_,B=N.next;N.next=null,x===null?v=B:x.next=B,x=N;var G=t.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==x&&(_===null?G.firstBaseUpdate=B:_.next=B,G.lastBaseUpdate=N))}if(v!==null){var X=p.baseState;x=0,G=B=N=null,_=v;do{var F=_.lane&-536870913,$=F!==_.lane;if($?(Pe&F)===F:(u&F)===F){F!==0&&F===ia&&(sf=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var fe=t,we=_;F=n;var Qe=a;switch(we.tag){case 1:if(fe=we.payload,typeof fe=="function"){X=fe.call(Qe,X,F);break e}X=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=we.payload,F=typeof fe=="function"?fe.call(Qe,X,F):fe,F==null)break e;X=y({},X,F);break e;case 2:Ar=!0}}F=_.callback,F!==null&&(t.flags|=64,$&&(t.flags|=8192),$=p.callbacks,$===null?p.callbacks=[F]:$.push(F))}else $={lane:F,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(B=G=$,N=X):G=G.next=$,x|=F;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;$=_,_=$.next,$.next=null,p.lastBaseUpdate=$,p.shared.pending=null}}while(!0);G===null&&(N=X),p.baseState=N,p.firstBaseUpdate=B,p.lastBaseUpdate=G,v===null&&(p.shared.lanes=0),zr|=x,t.lanes=x,t.memoizedState=X}}l(xi,"processUpdateQueue");function vv(t,n){if(typeof t!="function")throw Error(i(191,t));t.call(n)}l(vv,"callCallback");function yv(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)vv(a[t],n)}l(yv,"commitCallbacks");var ca=P(null),us=P(0);function gv(t,n){t=fr,re(us,t),re(ca,n),fr=t|n.baseLanes}l(gv,"pushHiddenContext");function uf(){re(us,fr),re(ca,ca.current)}l(uf,"reuseHiddenContextOnStack");function cf(){fr=us.current,q(ca),q(us)}l(cf,"popHiddenContext");var Yt=P(null),sn=null;function Dr(t){var n=t.alternate;re(st,st.current&1),re(Yt,t),sn===null&&(n===null||ca.current!==null||n.memoizedState!==null)&&(sn=t)}l(Dr,"pushPrimaryTreeSuspenseHandler");function ff(t){re(st,st.current),re(Yt,t),sn===null&&(sn=t)}l(ff,"pushDehydratedActivitySuspenseHandler");function bv(t){t.tag===22?(re(st,st.current),re(Yt,t),sn===null&&(sn=t)):Pr()}l(bv,"pushOffscreenSuspenseHandler");function Pr(){re(st,st.current),re(Yt,Yt.current)}l(Pr,"reuseSuspenseHandlerOnStack");function Qt(t){q(Yt),sn===t&&(sn=null),q(st)}l(Qt,"popSuspenseHandler");var st=P(0);function cs(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||yd(a)||gd(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}l(cs,"findFirstSuspended");var rr=0,Re=null,Ve=null,ft=null,fs=!1,fa=!1,So=!1,ds=0,Ci=0,da=null,RT=0;function rt(){throw Error(i(321))}l(rt,"throwInvalidHookError");function df(t,n){if(n===null)return!1;for(var a=0;a<n.length&&a<t.length;a++)if(!Gt(t[a],n[a]))return!1;return!0}l(df,"areHookInputsEqual");function pf(t,n,a,u,p,v){return rr=v,Re=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=t===null||t.memoizedState===null?ny:_f,So=!1,v=a(u,p),So=!1,fa&&(v=Ev(n,a,u,p)),Sv(t),v}l(pf,"renderWithHooks");function Sv(t){z.H=Oi;var n=Ve!==null&&Ve.next!==null;if(rr=0,ft=Ve=Re=null,fs=!1,Ci=0,da=null,n)throw Error(i(300));t===null||dt||(t=t.dependencies,t!==null&&ns(t)&&(dt=!0))}l(Sv,"finishRenderingHooks");function Ev(t,n,a,u){Re=t;var p=0;do{if(fa&&(da=null),Ci=0,fa=!1,25<=p)throw Error(i(301));if(p+=1,ft=Ve=null,t.updateQueue!=null){var v=t.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}z.H=ry,v=n(a,u)}while(fa);return v}l(Ev,"renderWithHooksAgain");function OT(){var t=z.H,n=t.useState()[0];return n=typeof n.then=="function"?Ti(n):n,t=t.useState()[0],(Ve!==null?Ve.memoizedState:null)!==t&&(Re.flags|=1024),n}l(OT,"TransitionAwareHostComponent");function hf(){var t=ds!==0;return ds=0,t}l(hf,"checkDidRenderIdHook");function mf(t,n,a){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~a}l(mf,"bailoutHooks");function vf(t){if(fs){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}fs=!1}rr=0,ft=Ve=Re=null,fa=!1,Ci=ds=0,da=null}l(vf,"resetHooksOnUnwind");function _t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Re.memoizedState=ft=t:ft=ft.next=t,ft}l(_t,"mountWorkInProgressHook");function ut(){if(Ve===null){var t=Re.alternate;t=t!==null?t.memoizedState:null}else t=Ve.next;var n=ft===null?Re.memoizedState:ft.next;if(n!==null)ft=n,Ve=t;else{if(t===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ve=t,t={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ft===null?Re.memoizedState=ft=t:ft=ft.next=t}return ft}l(ut,"updateWorkInProgressHook");function ps(){return{lastEffect:null,events:null,stores:null,memoCache:null}}l(ps,"createFunctionComponentUpdateQueue");function Ti(t){var n=Ci;return Ci+=1,da===null&&(da=[]),t=fv(da,t,n),n=Re,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?ny:_f),t}l(Ti,"useThenable");function hs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ti(t);if(t.$$typeof===A)return bt(t)}throw Error(i(438,String(t)))}l(hs,"use");function yf(t){var n=null,a=Re.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var u=Re.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=ps(),Re.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(t),u=0;u<t;u++)a[u]=W;return n.index++,a}l(yf,"useMemoCache");function or(t,n){return typeof n=="function"?n(t):n}l(or,"basicStateReducer");function ms(t){var n=ut();return gf(n,Ve,t)}l(ms,"updateReducer");function gf(t,n,a){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=a;var p=t.baseQueue,v=u.pending;if(v!==null){if(p!==null){var x=p.next;p.next=v.next,v.next=x}n.baseQueue=p=v,u.pending=null}if(v=t.baseState,p===null)t.memoizedState=v;else{n=p.next;var _=x=null,N=null,B=n,G=!1;do{var X=B.lane&-536870913;if(X!==B.lane?(Pe&X)===X:(rr&X)===X){var F=B.revertLane;if(F===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),X===ia&&(G=!0);else if((rr&F)===F){B=B.next,F===ia&&(G=!0);continue}else X={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(_=N=X,x=v):N=N.next=X,Re.lanes|=F,zr|=F;X=B.action,So&&a(v,X),v=B.hasEagerState?B.eagerState:a(v,X)}else F={lane:X,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(_=N=F,x=v):N=N.next=F,Re.lanes|=X,zr|=X;B=B.next}while(B!==null&&B!==n);if(N===null?x=v:N.next=_,!Gt(v,t.memoizedState)&&(dt=!0,G&&(a=la,a!==null)))throw a;t.memoizedState=v,t.baseState=x,t.baseQueue=N,u.lastRenderedState=v}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}l(gf,"updateReducerImpl");function bf(t){var n=ut(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,v=n.memoizedState;if(p!==null){a.pending=null;var x=p=p.next;do v=t(v,x.action),x=x.next;while(x!==p);Gt(v,n.memoizedState)||(dt=!0),n.memoizedState=v,n.baseQueue===null&&(n.baseState=v),a.lastRenderedState=v}return[v,u]}l(bf,"rerenderReducer");function wv(t,n,a){var u=Re,p=ut(),v=ze;if(v){if(a===void 0)throw Error(i(407));a=a()}else a=n();var x=!Gt((Ve||p).memoizedState,a);if(x&&(p.memoizedState=a,dt=!0),p=p.queue,wf(Tv.bind(null,u,p,t),[t]),p.getSnapshot!==n||x||ft!==null&&ft.memoizedState.tag&1){if(u.flags|=2048,pa(9,{destroy:void 0},Cv.bind(null,u,p,a,n),null),Ke===null)throw Error(i(349));v||(rr&127)!==0||xv(u,n,a)}return a}l(wv,"updateSyncExternalStore");function xv(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=Re.updateQueue,n===null?(n=ps(),Re.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}l(xv,"pushStoreConsistencyCheck");function Cv(t,n,a,u){n.value=a,n.getSnapshot=u,Rv(n)&&Ov(t)}l(Cv,"updateStoreInstance");function Tv(t,n,a){return a(function(){Rv(n)&&Ov(t)})}l(Tv,"subscribeToStore");function Rv(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!Gt(t,a)}catch{return!0}}l(Rv,"checkIfSnapshotChanged");function Ov(t){var n=co(t,2);n!==null&&Ut(n,t,2)}l(Ov,"forceStoreRerender");function Sf(t){var n=_t();if(typeof t=="function"){var a=t;if(t=a(),So){wr(!0);try{a()}finally{wr(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:t},n}l(Sf,"mountStateImpl");function _v(t,n,a,u){return t.baseState=a,gf(t,Ve,typeof u=="function"?u:or)}l(_v,"updateOptimisticImpl");function _T(t,n,a,u,p){if(gs(t))throw Error(i(485));if(t=n.action,t!==null){var v={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:l(function(x){v.listeners.push(x)},"then")};z.T!==null?a(!0):v.isTransition=!1,u(v),a=n.pending,a===null?(v.next=n.pending=v,Av(n,v)):(v.next=a.next,n.pending=a.next=v)}}l(_T,"dispatchActionState");function Av(t,n){var a=n.action,u=n.payload,p=t.state;if(n.isTransition){var v=z.T,x={};z.T=x;try{var _=a(p,u),N=z.S;N!==null&&N(x,_),Mv(t,n,_)}catch(B){Ef(t,n,B)}finally{v!==null&&x.types!==null&&(v.types=x.types),z.T=v}}else try{v=a(p,u),Mv(t,n,v)}catch(B){Ef(t,n,B)}}l(Av,"runActionStateAction");function Mv(t,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){Nv(t,n,u)},function(u){return Ef(t,n,u)}):Nv(t,n,a)}l(Mv,"handleActionReturnValue");function Nv(t,n,a){n.status="fulfilled",n.value=a,Dv(n),t.state=a,n=t.pending,n!==null&&(a=n.next,a===n?t.pending=null:(a=a.next,n.next=a,Av(t,a)))}l(Nv,"onActionSuccess");function Ef(t,n,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=a,Dv(n),n=n.next;while(n!==u)}t.action=null}l(Ef,"onActionError");function Dv(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}l(Dv,"notifyActionListeners");function Pv(t,n){return n}l(Pv,"actionStateReducer");function Lv(t,n){if(ze){var a=Ke.formState;if(a!==null){e:{var u=Re;if(ze){if(We){t:{for(var p=We,v=ln;p.nodeType!==8;){if(!v){p=null;break t}if(p=un(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){We=un(p.nextSibling),u=p.data==="F!";break e}}Or(u)}u=!1}u&&(n=a[0])}}return a=_t(),a.memoizedState=a.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pv,lastRenderedState:n},a.queue=u,a=Jv.bind(null,Re,u),u.dispatch=a,u=Sf(!1),v=Of.bind(null,Re,!1,u.queue),u=_t(),p={state:n,dispatch:null,action:t,pending:null},u.queue=p,a=_T.bind(null,Re,p,v,a),p.dispatch=a,u.memoizedState=t,[n,a,!1]}l(Lv,"mountActionState");function jv(t){var n=ut();return zv(n,Ve,t)}l(jv,"updateActionState");function zv(t,n,a){if(n=gf(t,n,Pv)[0],t=ms(or)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Ti(n)}catch(x){throw x===sa?as:x}else u=n;n=ut();var p=n.queue,v=p.dispatch;return a!==n.memoizedState&&(Re.flags|=2048,pa(9,{destroy:void 0},AT.bind(null,p,a),null)),[u,v,t]}l(zv,"updateActionStateImpl");function AT(t,n){t.action=n}l(AT,"actionStateActionEffect");function kv(t){var n=ut(),a=Ve;if(a!==null)return zv(n,a,t);ut(),n=n.memoizedState,a=ut();var u=a.queue.dispatch;return a.memoizedState=t,[n,u,!1]}l(kv,"rerenderActionState");function pa(t,n,a,u){return t={tag:t,create:a,deps:u,inst:n,next:null},n=Re.updateQueue,n===null&&(n=ps(),Re.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=t.next=t:(u=a.next,a.next=t,t.next=u,n.lastEffect=t),t}l(pa,"pushSimpleEffect");function Uv(){return ut().memoizedState}l(Uv,"updateRef");function vs(t,n,a,u){var p=_t();Re.flags|=t,p.memoizedState=pa(1|n,{destroy:void 0},a,u===void 0?null:u)}l(vs,"mountEffectImpl");function ys(t,n,a,u){var p=ut();u=u===void 0?null:u;var v=p.memoizedState.inst;Ve!==null&&u!==null&&df(u,Ve.memoizedState.deps)?p.memoizedState=pa(n,v,a,u):(Re.flags|=t,p.memoizedState=pa(1|n,v,a,u))}l(ys,"updateEffectImpl");function Hv(t,n){vs(8390656,8,t,n)}l(Hv,"mountEffect");function wf(t,n){ys(2048,8,t,n)}l(wf,"updateEffect");function MT(t){Re.flags|=4;var n=Re.updateQueue;if(n===null)n=ps(),Re.updateQueue=n,n.events=[t];else{var a=n.events;a===null?n.events=[t]:a.push(t)}}l(MT,"useEffectEventImpl");function Bv(t){var n=ut().memoizedState;return MT({ref:n,nextImpl:t}),function(){if((Ie&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}l(Bv,"updateEvent");function Iv(t,n){return ys(4,2,t,n)}l(Iv,"updateInsertionEffect");function Fv(t,n){return ys(4,4,t,n)}l(Fv,"updateLayoutEffect");function $v(t,n){if(typeof n=="function"){t=t();var a=n(t);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}l($v,"imperativeHandleEffect");function qv(t,n,a){a=a!=null?a.concat([t]):null,ys(4,4,$v.bind(null,n,t),a)}l(qv,"updateImperativeHandle");function xf(){}l(xf,"mountDebugValue");function Gv(t,n){var a=ut();n=n===void 0?null:n;var u=a.memoizedState;return n!==null&&df(n,u[1])?u[0]:(a.memoizedState=[t,n],t)}l(Gv,"updateCallback");function Vv(t,n){var a=ut();n=n===void 0?null:n;var u=a.memoizedState;if(n!==null&&df(n,u[1]))return u[0];if(u=t(),So){wr(!0);try{t()}finally{wr(!1)}}return a.memoizedState=[u,n],u}l(Vv,"updateMemo");function Cf(t,n,a){return a===void 0||(rr&1073741824)!==0&&(Pe&261930)===0?t.memoizedState=n:(t.memoizedState=a,t=Yy(),Re.lanes|=t,zr|=t,a)}l(Cf,"mountDeferredValueImpl");function Yv(t,n,a,u){return Gt(a,n)?a:ca.current!==null?(t=Cf(t,a,u),Gt(t,n)||(dt=!0),t):(rr&42)===0||(rr&1073741824)!==0&&(Pe&261930)===0?(dt=!0,t.memoizedState=a):(t=Yy(),Re.lanes|=t,zr|=t,n)}l(Yv,"updateDeferredValueImpl");function Qv(t,n,a,u,p){var v=Y.p;Y.p=v!==0&&8>v?v:8;var x=z.T,_={};z.T=_,Of(t,!1,n,a);try{var N=p(),B=z.S;if(B!==null&&B(_,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var G=TT(N,u);Ri(t,n,G,Wt(t))}else Ri(t,n,u,Wt(t))}catch(X){Ri(t,n,{then:l(function(){},"then"),status:"rejected",reason:X},Wt())}finally{Y.p=v,x!==null&&_.types!==null&&(x.types=_.types),z.T=x}}l(Qv,"startTransition");function NT(){}l(NT,"noop");function Tf(t,n,a,u){if(t.tag!==5)throw Error(i(476));var p=Kv(t).queue;Qv(t,p,n,Z,a===null?NT:function(){return Xv(t),a(u)})}l(Tf,"startHostTransition");function Kv(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:Z},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:a},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}l(Kv,"ensureFormComponentIsStateful");function Xv(t){var n=Kv(t);n.next===null&&(n=t.alternate.memoizedState),Ri(t,n.next.queue,{},Wt())}l(Xv,"requestFormReset$1");function Rf(){return bt($i)}l(Rf,"useHostTransitionStatus");function Wv(){return ut().memoizedState}l(Wv,"updateId");function Zv(){return ut().memoizedState}l(Zv,"updateRefresh");function DT(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var a=Wt();t=Mr(a);var u=Nr(n,t,a);u!==null&&(Ut(u,n,a),Ei(u,n,a)),n={cache:ef()},t.payload=n;return}n=n.return}}l(DT,"refreshCache");function PT(t,n,a){var u=Wt();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gs(t)?ey(n,a):(a=$c(t,n,a,u),a!==null&&(Ut(a,t,u),ty(a,n,u)))}l(PT,"dispatchReducerAction");function Jv(t,n,a){var u=Wt();Ri(t,n,a,u)}l(Jv,"dispatchSetState");function Ri(t,n,a,u){var p={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(gs(t))ey(n,p);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=n.lastRenderedReducer,v!==null))try{var x=n.lastRenderedState,_=v(x,a);if(p.hasEagerState=!0,p.eagerState=_,Gt(_,x))return Zl(t,n,p,0),Ke===null&&Wl(),!1}catch{}if(a=$c(t,n,p,u),a!==null)return Ut(a,t,u),ty(a,n,u),!0}return!1}l(Ri,"dispatchSetStateInternal");function Of(t,n,a,u){if(u={lane:2,revertLane:ad(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},gs(t)){if(n)throw Error(i(479))}else n=$c(t,a,u,2),n!==null&&Ut(n,t,2)}l(Of,"dispatchOptimisticSetState");function gs(t){var n=t.alternate;return t===Re||n!==null&&n===Re}l(gs,"isRenderPhaseUpdate");function ey(t,n){fa=fs=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}l(ey,"enqueueRenderPhaseUpdate");function ty(t,n,a){if((a&4194048)!==0){var u=n.lanes;u&=t.pendingLanes,a|=u,n.lanes=a,im(t,a)}}l(ty,"entangleTransitionUpdate");var Oi={readContext:bt,use:hs,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Oi.useEffectEvent=rt;var ny={readContext:bt,use:hs,useCallback:l(function(t,n){return _t().memoizedState=[t,n===void 0?null:n],t},"useCallback"),useContext:bt,useEffect:Hv,useImperativeHandle:l(function(t,n,a){a=a!=null?a.concat([t]):null,vs(4194308,4,$v.bind(null,n,t),a)},"useImperativeHandle"),useLayoutEffect:l(function(t,n){return vs(4194308,4,t,n)},"useLayoutEffect"),useInsertionEffect:l(function(t,n){vs(4,2,t,n)},"useInsertionEffect"),useMemo:l(function(t,n){var a=_t();n=n===void 0?null:n;var u=t();if(So){wr(!0);try{t()}finally{wr(!1)}}return a.memoizedState=[u,n],u},"useMemo"),useReducer:l(function(t,n,a){var u=_t();if(a!==void 0){var p=a(n);if(So){wr(!0);try{a(n)}finally{wr(!1)}}}else p=n;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=PT.bind(null,Re,t),[u.memoizedState,t]},"useReducer"),useRef:l(function(t){var n=_t();return t={current:t},n.memoizedState=t},"useRef"),useState:l(function(t){t=Sf(t);var n=t.queue,a=Jv.bind(null,Re,n);return n.dispatch=a,[t.memoizedState,a]},"useState"),useDebugValue:xf,useDeferredValue:l(function(t,n){var a=_t();return Cf(a,t,n)},"useDeferredValue"),useTransition:l(function(){var t=Sf(!1);return t=Qv.bind(null,Re,t.queue,!0,!1),_t().memoizedState=t,[!1,t]},"useTransition"),useSyncExternalStore:l(function(t,n,a){var u=Re,p=_t();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),Ke===null)throw Error(i(349));(Pe&127)!==0||xv(u,n,a)}p.memoizedState=a;var v={value:a,getSnapshot:n};return p.queue=v,Hv(Tv.bind(null,u,v,t),[t]),u.flags|=2048,pa(9,{destroy:void 0},Cv.bind(null,u,v,a,n),null),a},"useSyncExternalStore"),useId:l(function(){var t=_t(),n=Ke.identifierPrefix;if(ze){var a=Ln,u=Pn;a=(u&~(1<<32-qt(u)-1)).toString(32)+a,n="_"+n+"R_"+a,a=ds++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=RT++,n="_"+n+"r_"+a.toString(32)+"_";return t.memoizedState=n},"useId"),useHostTransitionStatus:Rf,useFormState:Lv,useActionState:Lv,useOptimistic:l(function(t){var n=_t();n.memoizedState=n.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Of.bind(null,Re,!0,a),a.dispatch=n,[t,n]},"useOptimistic"),useMemoCache:yf,useCacheRefresh:l(function(){return _t().memoizedState=DT.bind(null,Re)},"useCacheRefresh"),useEffectEvent:l(function(t){var n=_t(),a={impl:t};return n.memoizedState=a,function(){if((Ie&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}},"useEffectEvent")},_f={readContext:bt,use:hs,useCallback:Gv,useContext:bt,useEffect:wf,useImperativeHandle:qv,useInsertionEffect:Iv,useLayoutEffect:Fv,useMemo:Vv,useReducer:ms,useRef:Uv,useState:l(function(){return ms(or)},"useState"),useDebugValue:xf,useDeferredValue:l(function(t,n){var a=ut();return Yv(a,Ve.memoizedState,t,n)},"useDeferredValue"),useTransition:l(function(){var t=ms(or)[0],n=ut().memoizedState;return[typeof t=="boolean"?t:Ti(t),n]},"useTransition"),useSyncExternalStore:wv,useId:Wv,useHostTransitionStatus:Rf,useFormState:jv,useActionState:jv,useOptimistic:l(function(t,n){var a=ut();return _v(a,Ve,t,n)},"useOptimistic"),useMemoCache:yf,useCacheRefresh:Zv};_f.useEffectEvent=Bv;var ry={readContext:bt,use:hs,useCallback:Gv,useContext:bt,useEffect:wf,useImperativeHandle:qv,useInsertionEffect:Iv,useLayoutEffect:Fv,useMemo:Vv,useReducer:bf,useRef:Uv,useState:l(function(){return bf(or)},"useState"),useDebugValue:xf,useDeferredValue:l(function(t,n){var a=ut();return Ve===null?Cf(a,t,n):Yv(a,Ve.memoizedState,t,n)},"useDeferredValue"),useTransition:l(function(){var t=bf(or)[0],n=ut().memoizedState;return[typeof t=="boolean"?t:Ti(t),n]},"useTransition"),useSyncExternalStore:wv,useId:Wv,useHostTransitionStatus:Rf,useFormState:kv,useActionState:kv,useOptimistic:l(function(t,n){var a=ut();return Ve!==null?_v(a,Ve,t,n):(a.baseState=t,[t,a.queue.dispatch])},"useOptimistic"),useMemoCache:yf,useCacheRefresh:Zv};ry.useEffectEvent=Bv;function Af(t,n,a,u){n=t.memoizedState,a=a(u,n),a=a==null?n:y({},n,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}l(Af,"applyDerivedStateFromProps");var Mf={enqueueSetState:l(function(t,n,a){t=t._reactInternals;var u=Wt(),p=Mr(u);p.payload=n,a!=null&&(p.callback=a),n=Nr(t,p,u),n!==null&&(Ut(n,t,u),Ei(n,t,u))},"enqueueSetState"),enqueueReplaceState:l(function(t,n,a){t=t._reactInternals;var u=Wt(),p=Mr(u);p.tag=1,p.payload=n,a!=null&&(p.callback=a),n=Nr(t,p,u),n!==null&&(Ut(n,t,u),Ei(n,t,u))},"enqueueReplaceState"),enqueueForceUpdate:l(function(t,n){t=t._reactInternals;var a=Wt(),u=Mr(a);u.tag=2,n!=null&&(u.callback=n),n=Nr(t,u,a),n!==null&&(Ut(n,t,a),Ei(n,t,a))},"enqueueForceUpdate")};function oy(t,n,a,u,p,v,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,v,x):n.prototype&&n.prototype.isPureReactComponent?!pi(a,u)||!pi(p,v):!0}l(oy,"checkShouldComponentUpdate");function ay(t,n,a,u){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,u),n.state!==t&&Mf.enqueueReplaceState(n,n.state,null)}l(ay,"callComponentWillReceiveProps");function Eo(t,n){var a=n;if("ref"in n){a={};for(var u in n)u!=="ref"&&(a[u]=n[u])}if(t=t.defaultProps){a===n&&(a=y({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}l(Eo,"resolveClassComponentProps");function iy(t){Xl(t)}l(iy,"defaultOnUncaughtError");function ly(t){console.error(t)}l(ly,"defaultOnCaughtError");function sy(t){Xl(t)}l(sy,"defaultOnRecoverableError");function bs(t,n){try{var a=t.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}l(bs,"logUncaughtError");function uy(t,n,a){try{var u=t.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}l(uy,"logCaughtError");function Nf(t,n,a){return a=Mr(a),a.tag=3,a.payload={element:null},a.callback=function(){bs(t,n)},a}l(Nf,"createRootErrorUpdate");function cy(t){return t=Mr(t),t.tag=3,t}l(cy,"createClassErrorUpdate");function fy(t,n,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;t.payload=function(){return p(v)},t.callback=function(){uy(n,a,u)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){uy(n,a,u),typeof p!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var _=u.stack;this.componentDidCatch(u.value,{componentStack:_!==null?_:""})})}l(fy,"initializeClassErrorUpdate");function LT(t,n,a,u,p){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=a.alternate,n!==null&&aa(n,a,p,!0),a=Yt.current,a!==null){switch(a.tag){case 31:case 13:return sn===null?Ns():a.alternate===null&&ot===0&&(ot=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===is?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([u]):n.add(u),nd(t,u,p)),!1;case 22:return a.flags|=65536,u===is?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([u]):a.add(u)),nd(t,u,p)),!1}throw Error(i(435,a.tag))}return nd(t,u,p),Ns(),!1}if(ze)return n=Yt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,u!==Kc&&(t=Error(i(422),{cause:u}),vi(rn(t,a)))):(u!==Kc&&(n=Error(i(423),{cause:u}),vi(rn(n,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=rn(u,a),p=Nf(t.stateNode,u,p),lf(t,p),ot!==4&&(ot=2)),!1;var v=Error(i(520),{cause:u});if(v=rn(v,a),ji===null?ji=[v]:ji.push(v),ot!==4&&(ot=2),n===null)return!0;u=rn(u,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,t=p&-p,a.lanes|=t,t=Nf(a.stateNode,u,t),lf(a,t),!1;case 1:if(n=a.type,v=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(kr===null||!kr.has(v))))return a.flags|=65536,p&=-p,a.lanes|=p,p=cy(p),fy(p,t,a,u),lf(a,p),!1}a=a.return}while(a!==null);return!1}l(LT,"throwException");var Df=Error(i(461)),dt=!1;function St(t,n,a,u){n.child=t===null?mv(n,null,a,u):bo(n,t.child,a,u)}l(St,"reconcileChildren");function dy(t,n,a,u,p){a=a.render;var v=n.ref;if("ref"in u){var x={};for(var _ in u)_!=="ref"&&(x[_]=u[_])}else x=u;return mo(n),u=pf(t,n,a,x,v,p),_=hf(),t!==null&&!dt?(mf(t,n,p),ar(t,n,p)):(ze&&_&&Yc(n),n.flags|=1,St(t,n,u,p),n.child)}l(dy,"updateForwardRef");function py(t,n,a,u,p){if(t===null){var v=a.type;return typeof v=="function"&&!qc(v)&&v.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=v,hy(t,n,v,u,p)):(t=es(a.type,null,u,n,n.mode,p),t.ref=n.ref,t.return=n,n.child=t)}if(v=t.child,!Bf(t,p)){var x=v.memoizedProps;if(a=a.compare,a=a!==null?a:pi,a(x,u)&&t.ref===n.ref)return ar(t,n,p)}return n.flags|=1,t=Jn(v,u),t.ref=n.ref,t.return=n,n.child=t}l(py,"updateMemoComponent");function hy(t,n,a,u,p){if(t!==null){var v=t.memoizedProps;if(pi(v,u)&&t.ref===n.ref)if(dt=!1,n.pendingProps=u=v,Bf(t,p))(t.flags&131072)!==0&&(dt=!0);else return n.lanes=t.lanes,ar(t,n,p)}return Pf(t,n,a,u,p)}l(hy,"updateSimpleMemoComponent");function my(t,n,a,u){var p=u.children,v=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(v=v!==null?v.baseLanes|a:a,t!==null){for(u=n.child=t.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~v}else u=0,n.child=null;return vy(t,n,v,a,u)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&os(n,v!==null?v.cachePool:null),v!==null?gv(n,v):uf(),bv(n);else return u=n.lanes=536870912,vy(t,n,v!==null?v.baseLanes|a:a,a,u)}else v!==null?(os(n,v.cachePool),gv(n,v),Pr(),n.memoizedState=null):(t!==null&&os(n,null),uf(),Pr());return St(t,n,p,a),n.child}l(my,"updateOffscreenComponent");function _i(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}l(_i,"bailoutOffscreenComponent");function vy(t,n,a,u,p){var v=nf();return v=v===null?null:{parent:ct._currentValue,pool:v},n.memoizedState={baseLanes:a,cachePool:v},t!==null&&os(n,null),uf(),bv(n),t!==null&&aa(t,n,u,!0),n.childLanes=p,null}l(vy,"deferHiddenOffscreenComponent");function Ss(t,n){return n=ws({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}l(Ss,"mountActivityChildren");function yy(t,n,a){return bo(n,t.child,null,a),t=Ss(n,n.pendingProps),t.flags|=2,Qt(n),n.memoizedState=null,t}l(yy,"retryActivityComponentWithoutHydrating");function jT(t,n,a){var u=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(ze){if(u.mode==="hidden")return t=Ss(n,u),n.lanes=536870912,_i(null,t);if(ff(n),(t=We)?(t=Ag(t,ln),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Tr!==null?{id:Pn,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},a=ev(t),a.return=n,n.child=a,gt=n,We=null)):t=null,t===null)throw Or(n);return n.lanes=536870912,null}return Ss(n,u)}var v=t.memoizedState;if(v!==null){var x=v.dehydrated;if(ff(n),p)if(n.flags&256)n.flags&=-257,n=yy(t,n,a);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(i(558));else if(dt||aa(t,n,a,!1),p=(a&t.childLanes)!==0,dt||p){if(u=Ke,u!==null&&(x=lm(u,a),x!==0&&x!==v.retryLane))throw v.retryLane=x,co(t,x),Ut(u,t,x),Df;Ns(),n=yy(t,n,a)}else t=v.treeContext,We=un(x.nextSibling),gt=n,ze=!0,Rr=null,ln=!1,t!==null&&rv(n,t),n=Ss(n,u),n.flags|=4096;return n}return t=Jn(t.child,{mode:u.mode,children:u.children}),t.ref=n.ref,n.child=t,t.return=n,t}l(jT,"updateActivityComponent");function Es(t,n){var a=n.ref;if(a===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(t===null||t.ref!==a)&&(n.flags|=4194816)}}l(Es,"markRef");function Pf(t,n,a,u,p){return mo(n),a=pf(t,n,a,u,void 0,p),u=hf(),t!==null&&!dt?(mf(t,n,p),ar(t,n,p)):(ze&&u&&Yc(n),n.flags|=1,St(t,n,a,p),n.child)}l(Pf,"updateFunctionComponent");function gy(t,n,a,u,p,v){return mo(n),n.updateQueue=null,a=Ev(n,u,a,p),Sv(t),u=hf(),t!==null&&!dt?(mf(t,n,v),ar(t,n,v)):(ze&&u&&Yc(n),n.flags|=1,St(t,n,a,v),n.child)}l(gy,"replayFunctionComponent");function by(t,n,a,u,p){if(mo(n),n.stateNode===null){var v=ta,x=a.contextType;typeof x=="object"&&x!==null&&(v=bt(x)),v=new a(u,v),n.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Mf,n.stateNode=v,v._reactInternals=n,v=n.stateNode,v.props=u,v.state=n.memoizedState,v.refs={},of(n),x=a.contextType,v.context=typeof x=="object"&&x!==null?bt(x):ta,v.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Af(n,a,x,u),v.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(x=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),x!==v.state&&Mf.enqueueReplaceState(v,v.state,null),xi(n,u,v,p),wi(),v.state=n.memoizedState),typeof v.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(t===null){v=n.stateNode;var _=n.memoizedProps,N=Eo(a,_);v.props=N;var B=v.context,G=a.contextType;x=ta,typeof G=="object"&&G!==null&&(x=bt(G));var X=a.getDerivedStateFromProps;G=typeof X=="function"||typeof v.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,G||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_||B!==x)&&ay(n,v,u,x),Ar=!1;var F=n.memoizedState;v.state=F,xi(n,u,v,p),wi(),B=n.memoizedState,_||F!==B||Ar?(typeof X=="function"&&(Af(n,a,X,u),B=n.memoizedState),(N=Ar||oy(n,a,N,u,F,B,x))?(G||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(n.flags|=4194308)):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=B),v.props=u,v.state=B,v.context=x,u=N):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{v=n.stateNode,af(t,n),x=n.memoizedProps,G=Eo(a,x),v.props=G,X=n.pendingProps,F=v.context,B=a.contextType,N=ta,typeof B=="object"&&B!==null&&(N=bt(B)),_=a.getDerivedStateFromProps,(B=typeof _=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(x!==X||F!==N)&&ay(n,v,u,N),Ar=!1,F=n.memoizedState,v.state=F,xi(n,u,v,p),wi();var $=n.memoizedState;x!==X||F!==$||Ar||t!==null&&t.dependencies!==null&&ns(t.dependencies)?(typeof _=="function"&&(Af(n,a,_,u),$=n.memoizedState),(G=Ar||oy(n,a,G,u,F,$,N)||t!==null&&t.dependencies!==null&&ns(t.dependencies))?(B||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,$,N),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,$,N)),typeof v.componentDidUpdate=="function"&&(n.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof v.componentDidUpdate!="function"||x===t.memoizedProps&&F===t.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&F===t.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=$),v.props=u,v.state=$,v.context=N,u=G):(typeof v.componentDidUpdate!="function"||x===t.memoizedProps&&F===t.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&F===t.memoizedState||(n.flags|=1024),u=!1)}return v=u,Es(t,n),u=(n.flags&128)!==0,v||u?(v=n.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:v.render(),n.flags|=1,t!==null&&u?(n.child=bo(n,t.child,null,p),n.child=bo(n,null,a,p)):St(t,n,a,p),n.memoizedState=v.state,t=n.child):t=ar(t,n,p),t}l(by,"updateClassComponent");function Sy(t,n,a,u){return po(),n.flags|=256,St(t,n,a,u),n.child}l(Sy,"mountHostRootWithoutHydrating");var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jf(t){return{baseLanes:t,cachePool:uv()}}l(jf,"mountSuspenseOffscreenState");function zf(t,n,a){return t=t!==null?t.childLanes&~a:0,n&&(t|=Xt),t}l(zf,"getRemainingWorkInPrimaryTree");function Ey(t,n,a){var u=n.pendingProps,p=!1,v=(n.flags&128)!==0,x;if((x=v)||(x=t!==null&&t.memoizedState===null?!1:(st.current&2)!==0),x&&(p=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,t===null){if(ze){if(p?Dr(n):Pr(),(t=We)?(t=Ag(t,ln),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Tr!==null?{id:Pn,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},a=ev(t),a.return=n,n.child=a,gt=n,We=null)):t=null,t===null)throw Or(n);return gd(t)?n.lanes=32:n.lanes=536870912,null}var _=u.children;return u=u.fallback,p?(Pr(),p=n.mode,_=ws({mode:"hidden",children:_},p),u=fo(u,p,a,null),_.return=n,u.return=n,_.sibling=u,n.child=_,u=n.child,u.memoizedState=jf(a),u.childLanes=zf(t,x,a),n.memoizedState=Lf,_i(null,u)):(Dr(n),kf(n,_))}var N=t.memoizedState;if(N!==null&&(_=N.dehydrated,_!==null)){if(v)n.flags&256?(Dr(n),n.flags&=-257,n=Uf(t,n,a)):n.memoizedState!==null?(Pr(),n.child=t.child,n.flags|=128,n=null):(Pr(),_=u.fallback,p=n.mode,u=ws({mode:"visible",children:u.children},p),_=fo(_,p,a,null),_.flags|=2,u.return=n,_.return=n,u.sibling=_,n.child=u,bo(n,t.child,null,a),u=n.child,u.memoizedState=jf(a),u.childLanes=zf(t,x,a),n.memoizedState=Lf,n=_i(null,u));else if(Dr(n),gd(_)){if(x=_.nextSibling&&_.nextSibling.dataset,x)var B=x.dgst;x=B,u=Error(i(419)),u.stack="",u.digest=x,vi({value:u,source:null,stack:null}),n=Uf(t,n,a)}else if(dt||aa(t,n,a,!1),x=(a&t.childLanes)!==0,dt||x){if(x=Ke,x!==null&&(u=lm(x,a),u!==0&&u!==N.retryLane))throw N.retryLane=u,co(t,u),Ut(x,t,u),Df;yd(_)||Ns(),n=Uf(t,n,a)}else yd(_)?(n.flags|=192,n.child=t.child,n=null):(t=N.treeContext,We=un(_.nextSibling),gt=n,ze=!0,Rr=null,ln=!1,t!==null&&rv(n,t),n=kf(n,u.children),n.flags|=4096);return n}return p?(Pr(),_=u.fallback,p=n.mode,N=t.child,B=N.sibling,u=Jn(N,{mode:"hidden",children:u.children}),u.subtreeFlags=N.subtreeFlags&65011712,B!==null?_=Jn(B,_):(_=fo(_,p,a,null),_.flags|=2),_.return=n,u.return=n,u.sibling=_,n.child=u,_i(null,u),u=n.child,_=t.child.memoizedState,_===null?_=jf(a):(p=_.cachePool,p!==null?(N=ct._currentValue,p=p.parent!==N?{parent:N,pool:N}:p):p=uv(),_={baseLanes:_.baseLanes|a,cachePool:p}),u.memoizedState=_,u.childLanes=zf(t,x,a),n.memoizedState=Lf,_i(t.child,u)):(Dr(n),a=t.child,t=a.sibling,a=Jn(a,{mode:"visible",children:u.children}),a.return=n,a.sibling=null,t!==null&&(x=n.deletions,x===null?(n.deletions=[t],n.flags|=16):x.push(t)),n.child=a,n.memoizedState=null,a)}l(Ey,"updateSuspenseComponent");function kf(t,n){return n=ws({mode:"visible",children:n},t.mode),n.return=t,t.child=n}l(kf,"mountSuspensePrimaryChildren");function ws(t,n){return t=Vt(22,t,null,n),t.lanes=0,t}l(ws,"mountWorkInProgressOffscreenFiber");function Uf(t,n,a){return bo(n,t.child,null,a),t=kf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}l(Uf,"retrySuspenseComponentWithoutHydrating");function wy(t,n,a){t.lanes|=n;var u=t.alternate;u!==null&&(u.lanes|=n),Zc(t.return,n,a)}l(wy,"scheduleSuspenseWorkOnFiber");function Hf(t,n,a,u,p,v){var x=t.memoizedState;x===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p,treeForkCount:v}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=a,x.tailMode=p,x.treeForkCount=v)}l(Hf,"initSuspenseListRenderState");function xy(t,n,a){var u=n.pendingProps,p=u.revealOrder,v=u.tail;u=u.children;var x=st.current,_=(x&2)!==0;if(_?(x=x&1|2,n.flags|=128):x&=1,re(st,x),St(t,n,u,a),u=ze?mi:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wy(t,a,n);else if(t.tag===19)wy(t,a,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(a=n.child,p=null;a!==null;)t=a.alternate,t!==null&&cs(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=n.child,n.child=null):(p=a.sibling,a.sibling=null),Hf(n,!1,p,a,v,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,p=n.child,n.child=null;p!==null;){if(t=p.alternate,t!==null&&cs(t)===null){n.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}Hf(n,!0,a,null,v,u);break;case"together":Hf(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}l(xy,"updateSuspenseListComponent");function ar(t,n,a){if(t!==null&&(n.dependencies=t.dependencies),zr|=n.lanes,(a&n.childLanes)===0)if(t!==null){if(aa(t,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,a=Jn(t,t.pendingProps),n.child=a,a.return=n;t.sibling!==null;)t=t.sibling,a=a.sibling=Jn(t,t.pendingProps),a.return=n;a.sibling=null}return n.child}l(ar,"bailoutOnAlreadyFinishedWork");function Bf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&ns(t)))}l(Bf,"checkScheduledUpdateOrContext");function zT(t,n,a){switch(n.tag){case 3:_e(n,n.stateNode.containerInfo),_r(n,ct,t.memoizedState.cache),po();break;case 27:case 5:Be(n);break;case 4:_e(n,n.stateNode.containerInfo);break;case 10:_r(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ff(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(Dr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Ey(t,n,a):(Dr(n),t=ar(t,n,a),t!==null?t.sibling:null);Dr(n);break;case 19:var p=(t.flags&128)!==0;if(u=(a&n.childLanes)!==0,u||(aa(t,n,a,!1),u=(a&n.childLanes)!==0),p){if(u)return xy(t,n,a);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),re(st,st.current),u)break;return null;case 22:return n.lanes=0,my(t,n,a,n.pendingProps);case 24:_r(n,ct,t.memoizedState.cache)}return ar(t,n,a)}l(zT,"attemptEarlyBailoutIfNoScheduledUpdate");function Cy(t,n,a){if(t!==null)if(t.memoizedProps!==n.pendingProps)dt=!0;else{if(!Bf(t,a)&&(n.flags&128)===0)return dt=!1,zT(t,n,a);dt=(t.flags&131072)!==0}else dt=!1,ze&&(n.flags&1048576)!==0&&nv(n,mi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(t=yo(n.elementType),n.type=t,typeof t=="function")qc(t)?(u=Eo(t,u),n.tag=1,n=by(null,n,t,u,a)):(n.tag=0,n=Pf(null,n,t,u,a));else{if(t!=null){var p=t.$$typeof;if(p===D){n.tag=11,n=dy(null,n,t,u,a);break e}else if(p===U){n.tag=14,n=py(null,n,t,u,a);break e}}throw n=ne(t)||t,Error(i(306,n,""))}}return n;case 0:return Pf(t,n,n.type,n.pendingProps,a);case 1:return u=n.type,p=Eo(u,n.pendingProps),by(t,n,u,p,a);case 3:e:{if(_e(n,n.stateNode.containerInfo),t===null)throw Error(i(387));u=n.pendingProps;var v=n.memoizedState;p=v.element,af(t,n),xi(n,u,null,a);var x=n.memoizedState;if(u=x.cache,_r(n,ct,u),u!==v.cache&&Jc(n,[ct],a,!0),wi(),u=x.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=v,n.memoizedState=v,n.flags&256){n=Sy(t,n,u,a);break e}else if(u!==p){p=rn(Error(i(424)),n),vi(p),n=Sy(t,n,u,a);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,We=un(t.firstChild),gt=n,ze=!0,Rr=null,ln=!0,a=mv(n,null,u,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(po(),u===p){n=ar(t,n,a);break e}St(t,n,u,a)}n=n.child}return n;case 26:return Es(t,n),t===null?(a=jg(n.type,null,n.pendingProps,null))?n.memoizedState=a:ze||(a=n.type,t=n.pendingProps,u=Us(Ee.current).createElement(a),u[yt]=n,u[Dt]=t,Et(u,a,t),mt(u),n.stateNode=u):n.memoizedState=jg(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Be(n),t===null&&ze&&(u=n.stateNode=Dg(n.type,n.pendingProps,Ee.current),gt=n,ln=!0,p=We,Ir(n.type)?(bd=p,We=un(u.firstChild)):We=p),St(t,n,n.pendingProps.children,a),Es(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&ze&&((p=u=We)&&(u=dR(u,n.type,n.pendingProps,ln),u!==null?(n.stateNode=u,gt=n,We=un(u.firstChild),ln=!1,p=!0):p=!1),p||Or(n)),Be(n),p=n.type,v=n.pendingProps,x=t!==null?t.memoizedProps:null,u=v.children,hd(p,v)?u=null:x!==null&&hd(p,x)&&(n.flags|=32),n.memoizedState!==null&&(p=pf(t,n,OT,null,null,a),$i._currentValue=p),Es(t,n),St(t,n,u,a),n.child;case 6:return t===null&&ze&&((t=a=We)&&(a=pR(a,n.pendingProps,ln),a!==null?(n.stateNode=a,gt=n,We=null,t=!0):t=!1),t||Or(n)),null;case 13:return Ey(t,n,a);case 4:return _e(n,n.stateNode.containerInfo),u=n.pendingProps,t===null?n.child=bo(n,null,u,a):St(t,n,u,a),n.child;case 11:return dy(t,n,n.type,n.pendingProps,a);case 7:return St(t,n,n.pendingProps,a),n.child;case 8:return St(t,n,n.pendingProps.children,a),n.child;case 12:return St(t,n,n.pendingProps.children,a),n.child;case 10:return u=n.pendingProps,_r(n,n.type,u.value),St(t,n,u.children,a),n.child;case 9:return p=n.type._context,u=n.pendingProps.children,mo(n),p=bt(p),u=u(p),n.flags|=1,St(t,n,u,a),n.child;case 14:return py(t,n,n.type,n.pendingProps,a);case 15:return hy(t,n,n.type,n.pendingProps,a);case 19:return xy(t,n,a);case 31:return jT(t,n,a);case 22:return my(t,n,a,n.pendingProps);case 24:return mo(n),u=bt(ct),t===null?(p=nf(),p===null&&(p=Ke,v=ef(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=a),p=v),n.memoizedState={parent:u,cache:p},of(n),_r(n,ct,p)):((t.lanes&a)!==0&&(af(t,n),xi(n,null,null,a),wi()),p=t.memoizedState,v=n.memoizedState,p.parent!==u?(p={parent:u,cache:u},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),_r(n,ct,u)):(u=v.cache,_r(n,ct,u),u!==p.cache&&Jc(n,[ct],a,!0))),St(t,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}l(Cy,"beginWork");function ir(t){t.flags|=4}l(ir,"markUpdate");function If(t,n,a,u,p){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(Wy())t.flags|=8192;else throw go=is,rf}else t.flags&=-16777217}l(If,"preloadInstanceAndSuspendIfNeeded");function Ty(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bg(n))if(Wy())t.flags|=8192;else throw go=is,rf}l(Ty,"preloadResourceAndSuspendIfNeeded");function xs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?om():536870912,t.lanes|=n,ya|=n)}l(xs,"scheduleRetryEffect");function Ai(t,n){if(!ze)switch(t.tailMode){case"hidden":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.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?n||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}l(Ai,"cutOffTailIfNeeded");function Ze(t){var n=t.alternate!==null&&t.alternate.child===t.child,a=0,u=0;if(n)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,n}l(Ze,"bubbleProperties");function kT(t,n,a){var u=n.pendingProps;switch(Qc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(n),null;case 1:return Ze(n),null;case 3:return a=n.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),nr(ct),Me(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(oa(n)?ir(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Xc())),Ze(n),null;case 26:var p=n.type,v=n.memoizedState;return t===null?(ir(n),v!==null?(Ze(n),Ty(n,v)):(Ze(n),If(n,p,null,u,a))):v?v!==t.memoizedState?(ir(n),Ze(n),Ty(n,v)):(Ze(n),n.flags&=-16777217):(t=t.memoizedProps,t!==u&&ir(n),Ze(n),If(n,p,t,u,a)),null;case 27:if($e(n),a=Ee.current,p=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==u&&ir(n);else{if(!u){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}t=se.current,oa(n)?ov(n):(t=Dg(p,u,a),n.stateNode=t,ir(n))}return Ze(n),null;case 5:if($e(n),p=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==u&&ir(n);else{if(!u){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}if(v=se.current,oa(n))ov(n);else{var x=Us(Ee.current);switch(v){case 1:v=x.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:v=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":v=x.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":v=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":v=x.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?x.createElement(p,{is:u.is}):x.createElement(p)}}v[yt]=n,v[Dt]=u;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)v.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=v;e:switch(Et(v,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ir(n)}}return Ze(n),If(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,a),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==u&&ir(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(t=Ee.current,oa(n)){if(t=n.stateNode,a=n.memoizedProps,u=null,p=gt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[yt]=n,t=!!(t.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Eg(t.nodeValue,a)),t||Or(n,!0)}else t=Us(t).createTextNode(u),t[yt]=n,n.stateNode=t}return Ze(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(u=oa(n),a!==null){if(t===null){if(!u)throw Error(i(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[yt]=n}else po(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),t=!1}else a=Xc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(Qt(n),n):(Qt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Ze(n),null;case 13:if(u=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=oa(n),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[yt]=n}else po(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),p=!1}else p=Xc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Qt(n),n):(Qt(n),null)}return Qt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=u!==null,t=t!==null&&t.memoizedState!==null,a&&(u=n.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==p&&(u.flags|=2048)),a!==t&&a&&(n.child.flags|=8192),xs(n,n.updateQueue),Ze(n),null);case 4:return Me(),t===null&&ud(n.stateNode.containerInfo),Ze(n),null;case 10:return nr(n.type),Ze(n),null;case 19:if(q(st),u=n.memoizedState,u===null)return Ze(n),null;if(p=(n.flags&128)!==0,v=u.rendering,v===null)if(p)Ai(u,!1);else{if(ot!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(v=cs(t),v!==null){for(n.flags|=128,Ai(u,!1),t=v.updateQueue,n.updateQueue=t,xs(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)Jm(a,t),a=a.sibling;return re(st,st.current&1|2),ze&&er(n,u.treeForkCount),n.child}t=t.sibling}u.tail!==null&&Ft()>_s&&(n.flags|=128,p=!0,Ai(u,!1),n.lanes=4194304)}else{if(!p)if(t=cs(v),t!==null){if(n.flags|=128,p=!0,t=t.updateQueue,n.updateQueue=t,xs(n,t),Ai(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!ze)return Ze(n),null}else 2*Ft()-u.renderingStartTime>_s&&a!==536870912&&(n.flags|=128,p=!0,Ai(u,!1),n.lanes=4194304);u.isBackwards?(v.sibling=n.child,n.child=v):(t=u.last,t!==null?t.sibling=v:n.child=v,u.last=v)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ft(),t.sibling=null,a=st.current,re(st,p?a&1|2:a&1),ze&&er(n,u.treeForkCount),t):(Ze(n),null);case 22:case 23:return Qt(n),cf(),u=n.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(a&536870912)!==0&&(n.flags&128)===0&&(Ze(n),n.subtreeFlags&6&&(n.flags|=8192)):Ze(n),a=n.updateQueue,a!==null&&xs(n,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048),t!==null&&q(vo),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),nr(ct),Ze(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}l(kT,"completeWork");function UT(t,n){switch(Qc(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return nr(ct),Me(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return $e(n),null;case 31:if(n.memoizedState!==null){if(Qt(n),n.alternate===null)throw Error(i(340));po()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Qt(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));po()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return q(st),null;case 4:return Me(),null;case 10:return nr(n.type),null;case 22:case 23:return Qt(n),cf(),t!==null&&q(vo),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return nr(ct),null;case 25:return null;default:return null}}l(UT,"unwindWork");function Ry(t,n){switch(Qc(n),n.tag){case 3:nr(ct),Me();break;case 26:case 27:case 5:$e(n);break;case 4:Me();break;case 31:n.memoizedState!==null&&Qt(n);break;case 13:Qt(n);break;case 19:q(st);break;case 10:nr(n.type);break;case 22:case 23:Qt(n),cf(),t!==null&&q(vo);break;case 24:nr(ct)}}l(Ry,"unwindInterruptedWork");function Mi(t,n){try{var a=n.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 v=a.create,x=a.inst;u=v(),x.destroy=u}a=a.next}while(a!==p)}}catch(_){Ge(n,n.return,_)}}l(Mi,"commitHookEffectListMount");function Lr(t,n,a){try{var u=n.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&t)===t){var x=u.inst,_=x.destroy;if(_!==void 0){x.destroy=void 0,p=n;var N=a,B=_;try{B()}catch(G){Ge(p,N,G)}}}u=u.next}while(u!==v)}}catch(G){Ge(n,n.return,G)}}l(Lr,"commitHookEffectListUnmount");function Oy(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;try{yv(n,a)}catch(u){Ge(t,t.return,u)}}}l(Oy,"commitClassCallbacks");function _y(t,n,a){a.props=Eo(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){Ge(t,n,u)}}l(_y,"safelyCallComponentWillUnmount");function Ni(t,n){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){Ge(t,n,p)}}l(Ni,"safelyAttachRef");function jn(t,n){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){Ge(t,n,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){Ge(t,n,p)}else a.current=null}l(jn,"safelyDetachRef");function Ay(t){var n=t.type,a=t.memoizedProps,u=t.stateNode;try{e:switch(n){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){Ge(t,t.return,p)}}l(Ay,"commitHostMount");function Ff(t,n,a){try{var u=t.stateNode;iR(u,t.type,a,n),u[Dt]=n}catch(p){Ge(t,t.return,p)}}l(Ff,"commitHostUpdate");function My(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ir(t.type)||t.tag===4}l(My,"isHostParent");function $f(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||My(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&&Ir(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}}l($f,"getHostSibling");function qf(t,n,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(t),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Wn));else if(u!==4&&(u===27&&Ir(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(qf(t,n,a),t=t.sibling;t!==null;)qf(t,n,a),t=t.sibling}l(qf,"insertOrAppendPlacementNodeIntoContainer");function Cs(t,n,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(u!==4&&(u===27&&Ir(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Cs(t,n,a),t=t.sibling;t!==null;)Cs(t,n,a),t=t.sibling}l(Cs,"insertOrAppendPlacementNode");function Ny(t){var n=t.stateNode,a=t.memoizedProps;try{for(var u=t.type,p=n.attributes;p.length;)n.removeAttributeNode(p[0]);Et(n,u,a),n[yt]=t,n[Dt]=a}catch(v){Ge(t,t.return,v)}}l(Ny,"commitHostSingletonAcquisition");var lr=!1,pt=!1,Gf=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,vt=null;function HT(t,n){if(t=t.containerInfo,dd=Gs,t=qm(t),kc(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,v=u.focusNode;u=u.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var x=0,_=-1,N=-1,B=0,G=0,X=t,F=null;t:for(;;){for(var $;X!==a||p!==0&&X.nodeType!==3||(_=x+p),X!==v||u!==0&&X.nodeType!==3||(N=x+u),X.nodeType===3&&(x+=X.nodeValue.length),($=X.firstChild)!==null;)F=X,X=$;for(;;){if(X===t)break t;if(F===a&&++B===p&&(_=x),F===v&&++G===u&&(N=x),($=X.nextSibling)!==null)break;X=F,F=X.parentNode}X=$}a=_===-1||N===-1?null:{start:_,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(pd={focusedElem:t,selectionRange:a},Gs=!1,vt=n;vt!==null;)if(n=vt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,vt=t;else for(;vt!==null;){switch(n=vt,v=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)p=t[a],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&v!==null){t=void 0,a=n,p=v.memoizedProps,v=v.memoizedState,u=a.stateNode;try{var fe=Eo(a.type,p);t=u.getSnapshotBeforeUpdate(fe,v),u.__reactInternalSnapshotBeforeUpdate=t}catch(we){Ge(a,a.return,we)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,a=t.nodeType,a===9)vd(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vd(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(i(163))}if(t=n.sibling,t!==null){t.return=n.return,vt=t;break}vt=n.return}}l(HT,"commitBeforeMutationEffects");function Py(t,n,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:ur(t,a),u&4&&Mi(5,a);break;case 1:if(ur(t,a),u&4)if(t=a.stateNode,n===null)try{t.componentDidMount()}catch(x){Ge(a,a.return,x)}else{var p=Eo(a.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(p,n,t.__reactInternalSnapshotBeforeUpdate)}catch(x){Ge(a,a.return,x)}}u&64&&Oy(a),u&512&&Ni(a,a.return);break;case 3:if(ur(t,a),u&64&&(t=a.updateQueue,t!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{yv(t,n)}catch(x){Ge(a,a.return,x)}}break;case 27:n===null&&u&4&&Ny(a);case 26:case 5:ur(t,a),n===null&&u&4&&Ay(a),u&512&&Ni(a,a.return);break;case 12:ur(t,a);break;case 31:ur(t,a),u&4&&zy(t,a);break;case 13:ur(t,a),u&4&&ky(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=QT.bind(null,a),hR(t,a))));break;case 22:if(u=a.memoizedState!==null||lr,!u){n=n!==null&&n.memoizedState!==null||pt,p=lr;var v=pt;lr=u,(pt=n)&&!v?cr(t,a,(a.subtreeFlags&8772)!==0):ur(t,a),lr=p,pt=v}break;case 30:break;default:ur(t,a)}}l(Py,"commitLayoutEffectOnFiber");function Ly(t){var n=t.alternate;n!==null&&(t.alternate=null,Ly(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Sc(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}l(Ly,"detachFiberAfterEffects");var et=null,Lt=!1;function sr(t,n,a){for(a=a.child;a!==null;)jy(t,n,a),a=a.sibling}l(sr,"recursivelyTraverseDeletionEffects");function jy(t,n,a){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(ti,a)}catch{}switch(a.tag){case 26:pt||jn(a,n),sr(t,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||jn(a,n);var u=et,p=Lt;Ir(a.type)&&(et=a.stateNode,Lt=!1),sr(t,n,a),Bi(a.stateNode),et=u,Lt=p;break;case 5:pt||jn(a,n);case 6:if(u=et,p=Lt,et=null,sr(t,n,a),et=u,Lt=p,et!==null)if(Lt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(v){Ge(a,n,v)}else try{et.removeChild(a.stateNode)}catch(v){Ge(a,n,v)}break;case 18:et!==null&&(Lt?(t=et,Og(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ta(t)):Og(et,a.stateNode));break;case 4:u=et,p=Lt,et=a.stateNode.containerInfo,Lt=!0,sr(t,n,a),et=u,Lt=p;break;case 0:case 11:case 14:case 15:Lr(2,a,n),pt||Lr(4,a,n),sr(t,n,a);break;case 1:pt||(jn(a,n),u=a.stateNode,typeof u.componentWillUnmount=="function"&&_y(a,n,u)),sr(t,n,a);break;case 21:sr(t,n,a);break;case 22:pt=(u=pt)||a.memoizedState!==null,sr(t,n,a),pt=u;break;default:sr(t,n,a)}}l(jy,"commitDeletionEffectsOnFiber");function zy(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ta(t)}catch(a){Ge(n,n.return,a)}}}l(zy,"commitActivityHydrationCallbacks");function ky(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ta(t)}catch(a){Ge(n,n.return,a)}}l(ky,"commitSuspenseHydrationCallbacks");function BT(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Dy),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Dy),n;default:throw Error(i(435,t.tag))}}l(BT,"getRetryCache");function Ts(t,n){var a=BT(t);n.forEach(function(u){if(!a.has(u)){a.add(u);var p=KT.bind(null,t,u);u.then(p,p)}})}l(Ts,"attachSuspenseRetryListeners");function jt(t,n){var a=n.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],v=t,x=n,_=x;e:for(;_!==null;){switch(_.tag){case 27:if(Ir(_.type)){et=_.stateNode,Lt=!1;break e}break;case 5:et=_.stateNode,Lt=!1;break e;case 3:case 4:et=_.stateNode.containerInfo,Lt=!0;break e}_=_.return}if(et===null)throw Error(i(160));jy(v,x,p),et=null,Lt=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Uy(n,t),n=n.sibling}l(jt,"recursivelyTraverseMutationEffects");var En=null;function Uy(t,n){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:jt(n,t),zt(t),u&4&&(Lr(3,t,t.return),Mi(3,t),Lr(5,t,t.return));break;case 1:jt(n,t),zt(t),u&512&&(pt||a===null||jn(a,a.return)),u&64&&lr&&(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=En;if(jt(n,t),zt(t),u&512&&(pt||a===null||jn(a,a.return)),u&4){var v=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":v=p.getElementsByTagName("title")[0],(!v||v[oi]||v[yt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),Et(v,u,a),v[yt]=t,mt(v),u=v;break e;case"link":var x=Ug("link","href",p).get(u+(a.href||""));if(x){for(var _=0;_<x.length;_++)if(v=x[_],v.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&v.getAttribute("rel")===(a.rel==null?null:a.rel)&&v.getAttribute("title")===(a.title==null?null:a.title)&&v.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(_,1);break t}}v=p.createElement(u),Et(v,u,a),p.head.appendChild(v);break;case"meta":if(x=Ug("meta","content",p).get(u+(a.content||""))){for(_=0;_<x.length;_++)if(v=x[_],v.getAttribute("content")===(a.content==null?null:""+a.content)&&v.getAttribute("name")===(a.name==null?null:a.name)&&v.getAttribute("property")===(a.property==null?null:a.property)&&v.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&v.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(_,1);break t}}v=p.createElement(u),Et(v,u,a),p.head.appendChild(v);break;default:throw Error(i(468,u))}v[yt]=t,mt(v),u=v}t.stateNode=u}else Hg(p,t.type,t.stateNode);else t.stateNode=kg(p,u,t.memoizedProps);else v!==u?(v===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):v.count--,u===null?Hg(p,t.type,t.stateNode):kg(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Ff(t,t.memoizedProps,a.memoizedProps)}break;case 27:jt(n,t),zt(t),u&512&&(pt||a===null||jn(a,a.return)),a!==null&&u&4&&Ff(t,t.memoizedProps,a.memoizedProps);break;case 5:if(jt(n,t),zt(t),u&512&&(pt||a===null||jn(a,a.return)),t.flags&32){p=t.stateNode;try{Qo(p,"")}catch(fe){Ge(t,t.return,fe)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Ff(t,p,a!==null?a.memoizedProps:p)),u&1024&&(Gf=!0);break;case 6:if(jt(n,t),zt(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(fe){Ge(t,t.return,fe)}}break;case 3:if(Is=null,p=En,En=Hs(n.containerInfo),jt(n,t),En=p,zt(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Ta(n.containerInfo)}catch(fe){Ge(t,t.return,fe)}Gf&&(Gf=!1,Hy(t));break;case 4:u=En,En=Hs(t.stateNode.containerInfo),jt(n,t),zt(t),En=u;break;case 12:jt(n,t),zt(t);break;case 31:jt(n,t),zt(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Ts(t,u)));break;case 13:jt(n,t),zt(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Os=Ft()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Ts(t,u)));break;case 22:p=t.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,B=lr,G=pt;if(lr=B||p,pt=G||N,jt(n,t),pt=G,lr=B,zt(t),u&8192)e:for(n=t.stateNode,n._visibility=p?n._visibility&-2:n._visibility|1,p&&(a===null||N||lr||pt||wo(t)),a=null,n=t;;){if(n.tag===5||n.tag===26){if(a===null){N=a=n;try{if(v=N.stateNode,p)x=v.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{_=N.stateNode;var X=N.memoizedProps.style,F=X!=null&&X.hasOwnProperty("display")?X.display:null;_.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(fe){Ge(N,N.return,fe)}}}else if(n.tag===6){if(a===null){N=n;try{N.stateNode.nodeValue=p?"":N.memoizedProps}catch(fe){Ge(N,N.return,fe)}}}else if(n.tag===18){if(a===null){N=n;try{var $=N.stateNode;p?_g($,!0):_g(N.stateNode,!1)}catch(fe){Ge(N,N.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=t.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,Ts(t,a))));break;case 19:jt(n,t),zt(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Ts(t,u)));break;case 30:break;case 21:break;default:jt(n,t),zt(t)}}l(Uy,"commitMutationEffectsOnFiber");function zt(t){var n=t.flags;if(n&2){try{for(var a,u=t.return;u!==null;){if(My(u)){a=u;break}u=u.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var p=a.stateNode,v=$f(t);Cs(t,v,p);break;case 5:var x=a.stateNode;a.flags&32&&(Qo(x,""),a.flags&=-33);var _=$f(t);Cs(t,_,x);break;case 3:case 4:var N=a.stateNode.containerInfo,B=$f(t);qf(t,B,N);break;default:throw Error(i(161))}}catch(G){Ge(t,t.return,G)}t.flags&=-3}n&4096&&(t.flags&=-4097)}l(zt,"commitReconciliationEffects");function Hy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Hy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}l(Hy,"recursivelyResetForms");function ur(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Py(t,n.alternate,n),n=n.sibling}l(ur,"recursivelyTraverseLayoutEffects");function wo(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Lr(4,n,n.return),wo(n);break;case 1:jn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&_y(n,n.return,a),wo(n);break;case 27:Bi(n.stateNode);case 26:case 5:jn(n,n.return),wo(n);break;case 22:n.memoizedState===null&&wo(n);break;case 30:wo(n);break;default:wo(n)}t=t.sibling}}l(wo,"recursivelyTraverseDisappearLayoutEffects");function cr(t,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,p=t,v=n,x=v.flags;switch(v.tag){case 0:case 11:case 15:cr(p,v,a),Mi(4,v);break;case 1:if(cr(p,v,a),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(B){Ge(u,u.return,B)}if(u=v,p=u.updateQueue,p!==null){var _=u.stateNode;try{var N=p.shared.hiddenCallbacks;if(N!==null)for(p.shared.hiddenCallbacks=null,p=0;p<N.length;p++)vv(N[p],_)}catch(B){Ge(u,u.return,B)}}a&&x&64&&Oy(v),Ni(v,v.return);break;case 27:Ny(v);case 26:case 5:cr(p,v,a),a&&u===null&&x&4&&Ay(v),Ni(v,v.return);break;case 12:cr(p,v,a);break;case 31:cr(p,v,a),a&&x&4&&zy(p,v);break;case 13:cr(p,v,a),a&&x&4&&ky(p,v);break;case 22:v.memoizedState===null&&cr(p,v,a),Ni(v,v.return);break;case 30:break;default:cr(p,v,a)}n=n.sibling}}l(cr,"recursivelyTraverseReappearLayoutEffects");function Vf(t,n){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&yi(a))}l(Vf,"commitOffscreenPassiveMountEffects");function Yf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&yi(t))}l(Yf,"commitCachePassiveMountEffect");function wn(t,n,a,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)By(t,n,a,u),n=n.sibling}l(wn,"recursivelyTraversePassiveMountEffects");function By(t,n,a,u){var p=n.flags;switch(n.tag){case 0:case 11:case 15:wn(t,n,a,u),p&2048&&Mi(9,n);break;case 1:wn(t,n,a,u);break;case 3:wn(t,n,a,u),p&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&yi(t)));break;case 12:if(p&2048){wn(t,n,a,u),t=n.stateNode;try{var v=n.memoizedProps,x=v.id,_=v.onPostCommit;typeof _=="function"&&_(x,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){Ge(n,n.return,N)}}else wn(t,n,a,u);break;case 31:wn(t,n,a,u);break;case 13:wn(t,n,a,u);break;case 23:break;case 22:v=n.stateNode,x=n.alternate,n.memoizedState!==null?v._visibility&2?wn(t,n,a,u):Di(t,n):v._visibility&2?wn(t,n,a,u):(v._visibility|=2,ha(t,n,a,u,(n.subtreeFlags&10256)!==0||!1)),p&2048&&Vf(x,n);break;case 24:wn(t,n,a,u),p&2048&&Yf(n.alternate,n);break;default:wn(t,n,a,u)}}l(By,"commitPassiveMountOnFiber");function ha(t,n,a,u,p){for(p=p&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var v=t,x=n,_=a,N=u,B=x.flags;switch(x.tag){case 0:case 11:case 15:ha(v,x,_,N,p),Mi(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?ha(v,x,_,N,p):Di(v,x):(G._visibility|=2,ha(v,x,_,N,p)),p&&B&2048&&Vf(x.alternate,x);break;case 24:ha(v,x,_,N,p),p&&B&2048&&Yf(x.alternate,x);break;default:ha(v,x,_,N,p)}n=n.sibling}}l(ha,"recursivelyTraverseReconnectPassiveEffects");function Di(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=t,u=n,p=u.flags;switch(u.tag){case 22:Di(a,u),p&2048&&Vf(u.alternate,u);break;case 24:Di(a,u),p&2048&&Yf(u.alternate,u);break;default:Di(a,u)}n=n.sibling}}l(Di,"recursivelyTraverseAtomicPassiveEffects");var Pi=8192;function ma(t,n,a){if(t.subtreeFlags&Pi)for(t=t.child;t!==null;)Iy(t,n,a),t=t.sibling}l(ma,"recursivelyAccumulateSuspenseyCommit");function Iy(t,n,a){switch(t.tag){case 26:ma(t,n,a),t.flags&Pi&&t.memoizedState!==null&&RR(a,En,t.memoizedState,t.memoizedProps);break;case 5:ma(t,n,a);break;case 3:case 4:var u=En;En=Hs(t.stateNode.containerInfo),ma(t,n,a),En=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=Pi,Pi=16777216,ma(t,n,a),Pi=u):ma(t,n,a));break;default:ma(t,n,a)}}l(Iy,"accumulateSuspenseyCommitOnFiber");function Fy(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}l(Fy,"detachAlternateSiblings");function Li(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a];vt=u,qy(u,t)}Fy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$y(t),t=t.sibling}l(Li,"recursivelyTraversePassiveUnmountEffects");function $y(t){switch(t.tag){case 0:case 11:case 15:Li(t),t.flags&2048&&Lr(9,t,t.return);break;case 3:Li(t);break;case 12:Li(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Rs(t)):Li(t);break;default:Li(t)}}l($y,"commitPassiveUnmountOnFiber");function Rs(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a];vt=u,qy(u,t)}Fy(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Lr(8,n,n.return),Rs(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Rs(n));break;default:Rs(n)}t=t.sibling}}l(Rs,"recursivelyTraverseDisconnectPassiveEffects");function qy(t,n){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:Lr(8,a,n);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:yi(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,vt=u;else e:for(a=t;vt!==null;){u=vt;var p=u.sibling,v=u.return;if(Ly(u),u===a){vt=null;break e}if(p!==null){p.return=v,vt=p;break e}vt=v}}}l(qy,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var IT={getCacheForType:l(function(t){var n=bt(ct),a=n.data.get(t);return a===void 0&&(a=t(),n.data.set(t,a)),a},"getCacheForType"),cacheSignal:l(function(){return bt(ct).controller.signal},"cacheSignal")},FT=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ke=null,Ne=null,Pe=0,qe=0,Kt=null,jr=!1,va=!1,Qf=!1,fr=0,ot=0,zr=0,xo=0,Kf=0,Xt=0,ya=0,ji=null,kt=null,Xf=!1,Os=0,Gy=0,_s=1/0,As=null,kr=null,ht=0,Ur=null,ga=null,dr=0,Wf=0,Zf=null,Vy=null,zi=0,Jf=null;function Wt(){return(Ie&2)!==0&&Pe!==0?Pe&-Pe:z.T!==null?ad():sm()}l(Wt,"requestUpdateLane");function Yy(){if(Xt===0)if((Pe&536870912)===0||ze){var t=kl;kl<<=1,(kl&3932160)===0&&(kl=262144),Xt=t}else Xt=536870912;return t=Yt.current,t!==null&&(t.flags|=32),Xt}l(Yy,"requestDeferredLane");function Ut(t,n,a){(t===Ke&&(qe===2||qe===9)||t.cancelPendingCommit!==null)&&(ba(t,0),Hr(t,Pe,Xt,!1)),ri(t,a),((Ie&2)===0||t!==Ke)&&(t===Ke&&((Ie&2)===0&&(xo|=a),ot===4&&Hr(t,Pe,Xt,!1)),zn(t))}l(Ut,"scheduleUpdateOnFiber");function Qy(t,n,a){if((Ie&6)!==0)throw Error(i(327));var u=!a&&(n&127)===0&&(n&t.expiredLanes)===0||ni(t,n),p=u?GT(t,n):td(t,n,!0),v=u;do{if(p===0){va&&!u&&Hr(t,n,0,!1);break}else{if(a=t.current.alternate,v&&!$T(a)){p=td(t,n,!1),v=!1;continue}if(p===2){if(v=n,t.errorRecoveryDisabledLanes&v)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var _=t;p=ji;var N=_.current.memoizedState.isDehydrated;if(N&&(ba(_,x).flags|=256),x=td(_,x,!1),x!==2){if(Qf&&!N){_.errorRecoveryDisabledLanes|=v,xo|=v,p=4;break e}v=kt,kt=p,v!==null&&(kt===null?kt=v:kt.push.apply(kt,v))}p=x}if(v=!1,p!==2)continue}}if(p===1){ba(t,0),Hr(t,n,0,!0);break}e:{switch(u=t,v=p,v){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Hr(u,n,Xt,!jr);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(p=Os+300-Ft(),10<p)){if(Hr(u,n,Xt,!jr),Hl(u,0,!0)!==0)break e;dr=n,u.timeoutHandle=Tg(Ky.bind(null,u,a,kt,As,Xf,n,Xt,xo,ya,jr,v,"Throttled",-0,0),p);break e}Ky(u,a,kt,As,Xf,n,Xt,xo,ya,jr,v,null,-0,0)}}break}while(!0);zn(t)}l(Qy,"performWorkOnRoot");function Ky(t,n,a,u,p,v,x,_,N,B,G,X,F,$){if(t.timeoutHandle=-1,X=n.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wn},Iy(n,v,X);var fe=(v&62914560)===v?Os-Ft():(v&4194048)===v?Gy-Ft():0;if(fe=OR(X,fe),fe!==null){dr=v,t.cancelPendingCommit=fe(rg.bind(null,t,n,v,a,u,p,x,_,N,G,X,null,F,$)),Hr(t,v,x,!B);return}}rg(t,n,v,a,u,p,x,_,N)}l(Ky,"commitRootWhenReady");function $T(t){for(var n=t;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var p=a[u],v=p.getSnapshot;p=p.value;try{if(!Gt(v(),p))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}l($T,"isRenderConsistentWithExternalStores");function Hr(t,n,a,u){n&=~Kf,n&=~xo,t.suspendedLanes|=n,t.pingedLanes&=~n,u&&(t.warmLanes|=n),u=t.expirationTimes;for(var p=n;0<p;){var v=31-qt(p),x=1<<v;u[v]=-1,p&=~x}a!==0&&am(t,a,n)}l(Hr,"markRootSuspended");function Ms(){return(Ie&6)===0?(ki(0),!1):!0}l(Ms,"flushSyncWork$1");function ed(){if(Ne!==null){if(qe===0)var t=Ne.return;else t=Ne,tr=ho=null,vf(t),ua=null,bi=0,t=Ne;for(;t!==null;)Ry(t.alternate,t),t=t.return;Ne=null}}l(ed,"resetWorkInProgressStack");function ba(t,n){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,uR(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),dr=0,ed(),Ke=t,Ne=a=Jn(t.current,null),Pe=n,qe=0,Kt=null,jr=!1,va=ni(t,n),Qf=!1,ya=Xt=Kf=xo=zr=ot=0,kt=ji=null,Xf=!1,(n&8)!==0&&(n|=n&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=n;0<u;){var p=31-qt(u),v=1<<p;n|=t[p],u&=~v}return fr=n,Wl(),a}l(ba,"prepareFreshStack");function Xy(t,n){Re=null,z.H=Oi,n===sa||n===as?(n=dv(),qe=3):n===rf?(n=dv(),qe=4):qe=n===Df?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Kt=n,Ne===null&&(ot=1,bs(t,rn(n,t.current)))}l(Xy,"handleThrow");function Wy(){var t=Yt.current;return t===null?!0:(Pe&4194048)===Pe?sn===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?t===sn:!1}l(Wy,"shouldRemainOnPreviousScreen");function Zy(){var t=z.H;return z.H=Oi,t===null?Oi:t}l(Zy,"pushDispatcher");function Jy(){var t=z.A;return z.A=IT,t}l(Jy,"pushAsyncDispatcher");function Ns(){ot=4,jr||(Pe&4194048)!==Pe&&Yt.current!==null||(va=!0),(zr&134217727)===0&&(xo&134217727)===0||Ke===null||Hr(Ke,Pe,Xt,!1)}l(Ns,"renderDidSuspendDelayIfPossible");function td(t,n,a){var u=Ie;Ie|=2;var p=Zy(),v=Jy();(Ke!==t||Pe!==n)&&(As=null,ba(t,n)),n=!1;var x=ot;e:do try{if(qe!==0&&Ne!==null){var _=Ne,N=Kt;switch(qe){case 8:ed(),x=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(n=!0);var B=qe;if(qe=0,Kt=null,Sa(t,_,N,B),a&&va){x=0;break e}break;default:B=qe,qe=0,Kt=null,Sa(t,_,N,B)}}qT(),x=ot;break}catch(G){Xy(t,G)}while(!0);return n&&t.shellSuspendCounter++,tr=ho=null,Ie=u,z.H=p,z.A=v,Ne===null&&(Ke=null,Pe=0,Wl()),x}l(td,"renderRootSync");function qT(){for(;Ne!==null;)eg(Ne)}l(qT,"workLoopSync");function GT(t,n){var a=Ie;Ie|=2;var u=Zy(),p=Jy();Ke!==t||Pe!==n?(As=null,_s=Ft()+500,ba(t,n)):va=ni(t,n);e:do try{if(qe!==0&&Ne!==null){n=Ne;var v=Kt;t:switch(qe){case 1:qe=0,Kt=null,Sa(t,n,v,1);break;case 2:case 9:if(cv(v)){qe=0,Kt=null,tg(n);break}n=l(function(){qe!==2&&qe!==9||Ke!==t||(qe=7),zn(t)},"lanes"),v.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:cv(v)?(qe=0,Kt=null,tg(n)):(qe=0,Kt=null,Sa(t,n,v,7));break;case 5:var x=null;switch(Ne.tag){case 26:x=Ne.memoizedState;case 5:case 27:var _=Ne;if(x?Bg(x):_.stateNode.complete){qe=0,Kt=null;var N=_.sibling;if(N!==null)Ne=N;else{var B=_.return;B!==null?(Ne=B,Ds(B)):Ne=null}break t}}qe=0,Kt=null,Sa(t,n,v,5);break;case 6:qe=0,Kt=null,Sa(t,n,v,6);break;case 8:ed(),ot=6;break e;default:throw Error(i(462))}}VT();break}catch(G){Xy(t,G)}while(!0);return tr=ho=null,z.H=u,z.A=p,Ie=a,Ne!==null?0:(Ke=null,Pe=0,Wl(),ot)}l(GT,"renderRootConcurrent");function VT(){for(;Ne!==null&&!mC();)eg(Ne)}l(VT,"workLoopConcurrentByScheduler");function eg(t){var n=Cy(t.alternate,t,fr);t.memoizedProps=t.pendingProps,n===null?Ds(t):Ne=n}l(eg,"performUnitOfWork");function tg(t){var n=t,a=n.alternate;switch(n.tag){case 15:case 0:n=gy(a,n,n.pendingProps,n.type,void 0,Pe);break;case 11:n=gy(a,n,n.pendingProps,n.type.render,n.ref,Pe);break;case 5:vf(n);default:Ry(a,n),n=Ne=Jm(n,fr),n=Cy(a,n,fr)}t.memoizedProps=t.pendingProps,n===null?Ds(t):Ne=n}l(tg,"replaySuspendedUnitOfWork");function Sa(t,n,a,u){tr=ho=null,vf(n),ua=null,bi=0;var p=n.return;try{if(LT(t,p,n,a,Pe)){ot=1,bs(t,rn(a,t.current)),Ne=null;return}}catch(v){if(p!==null)throw Ne=p,v;ot=1,bs(t,rn(a,t.current)),Ne=null;return}n.flags&32768?(ze||u===1?t=!0:va||(Pe&536870912)!==0?t=!1:(jr=t=!0,(u===2||u===9||u===3||u===6)&&(u=Yt.current,u!==null&&u.tag===13&&(u.flags|=16384))),ng(n,t)):Ds(n)}l(Sa,"throwAndUnwindWorkLoop");function Ds(t){var n=t;do{if((n.flags&32768)!==0){ng(n,jr);return}t=n.return;var a=kT(n.alternate,n,fr);if(a!==null){Ne=a;return}if(n=n.sibling,n!==null){Ne=n;return}Ne=n=t}while(n!==null);ot===0&&(ot=5)}l(Ds,"completeUnitOfWork");function ng(t,n){do{var a=UT(t.alternate,t);if(a!==null){a.flags&=32767,Ne=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(t=t.sibling,t!==null)){Ne=t;return}Ne=t=a}while(t!==null);ot=6,Ne=null}l(ng,"unwindUnitOfWork");function rg(t,n,a,u,p,v,x,_,N){t.cancelPendingCommit=null;do Ps();while(ht!==0);if((Ie&6)!==0)throw Error(i(327));if(n!==null){if(n===t.current)throw Error(i(177));if(v=n.lanes|n.childLanes,v|=Fc,TC(t,a,v,x,_,N),t===Ke&&(Ne=Ke=null,Pe=0),ga=n,Ur=t,dr=a,Wf=v,Zf=p,Vy=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,XT(jl,function(){return sg(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,p=Y.p,Y.p=2,x=Ie,Ie|=4;try{HT(t,n,a)}finally{Ie=x,Y.p=p,z.T=u}}ht=1,og(),ag(),ig()}}l(rg,"commitRoot");function og(){if(ht===1){ht=0;var t=Ur,n=ga,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var u=Y.p;Y.p=2;var p=Ie;Ie|=4;try{Uy(n,t);var v=pd,x=qm(t.containerInfo),_=v.focusedElem,N=v.selectionRange;if(x!==_&&_&&_.ownerDocument&&$m(_.ownerDocument.documentElement,_)){if(N!==null&&kc(_)){var B=N.start,G=N.end;if(G===void 0&&(G=B),"selectionStart"in _)_.selectionStart=B,_.selectionEnd=Math.min(G,_.value.length);else{var X=_.ownerDocument||document,F=X&&X.defaultView||window;if(F.getSelection){var $=F.getSelection(),fe=_.textContent.length,we=Math.min(N.start,fe),Qe=N.end===void 0?we:Math.min(N.end,fe);!$.extend&&we>Qe&&(x=Qe,Qe=we,we=x);var k=Fm(_,we),L=Fm(_,Qe);if(k&&L&&($.rangeCount!==1||$.anchorNode!==k.node||$.anchorOffset!==k.offset||$.focusNode!==L.node||$.focusOffset!==L.offset)){var H=X.createRange();H.setStart(k.node,k.offset),$.removeAllRanges(),we>Qe?($.addRange(H),$.extend(L.node,L.offset)):(H.setEnd(L.node,L.offset),$.addRange(H))}}}}for(X=[],$=_;$=$.parentNode;)$.nodeType===1&&X.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<X.length;_++){var K=X[_];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Gs=!!dd,pd=dd=null}finally{Ie=p,Y.p=u,z.T=a}}t.current=n,ht=2}}l(og,"flushMutationEffects");function ag(){if(ht===2){ht=0;var t=Ur,n=ga,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var u=Y.p;Y.p=2;var p=Ie;Ie|=4;try{Py(t,n.alternate,n)}finally{Ie=p,Y.p=u,z.T=a}}ht=3}}l(ag,"flushLayoutEffects");function ig(){if(ht===4||ht===3){ht=0,vC();var t=Ur,n=ga,a=dr,u=Vy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,ga=Ur=null,lg(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(kr=null),gc(a),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(ti,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=z.T,p=Y.p,Y.p=2,z.T=null;try{for(var v=t.onRecoverableError,x=0;x<u.length;x++){var _=u[x];v(_.value,{componentStack:_.stack})}}finally{z.T=n,Y.p=p}}(dr&3)!==0&&Ps(),zn(t),p=t.pendingLanes,(a&261930)!==0&&(p&42)!==0?t===Jf?zi++:(zi=0,Jf=t):zi=0,ki(0)}}l(ig,"flushSpawnedWork");function lg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,yi(n)))}l(lg,"releaseRootPooledCache");function Ps(){return og(),ag(),ig(),sg()}l(Ps,"flushPendingEffects");function sg(){if(ht!==5)return!1;var t=Ur,n=Wf;Wf=0;var a=gc(dr),u=z.T,p=Y.p;try{Y.p=32>a?32:a,z.T=null,a=Zf,Zf=null;var v=Ur,x=dr;if(ht=0,ga=Ur=null,dr=0,(Ie&6)!==0)throw Error(i(331));var _=Ie;if(Ie|=4,$y(v.current),By(v,v.current,x,a),Ie=_,ki(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(ti,v)}catch{}return!0}finally{Y.p=p,z.T=u,lg(t,n)}}l(sg,"flushPassiveEffects");function ug(t,n,a){n=rn(a,n),n=Nf(t.stateNode,n,2),t=Nr(t,n,2),t!==null&&(ri(t,2),zn(t))}l(ug,"captureCommitPhaseErrorOnRoot");function Ge(t,n,a){if(t.tag===3)ug(t,t,a);else for(;n!==null;){if(n.tag===3){ug(n,t,a);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(kr===null||!kr.has(u))){t=rn(a,t),a=cy(2),u=Nr(n,a,2),u!==null&&(fy(a,u,n,t),ri(u,2),zn(u));break}}n=n.return}}l(Ge,"captureCommitPhaseError");function nd(t,n,a){var u=t.pingCache;if(u===null){u=t.pingCache=new FT;var p=new Set;u.set(n,p)}else p=u.get(n),p===void 0&&(p=new Set,u.set(n,p));p.has(a)||(Qf=!0,p.add(a),t=YT.bind(null,t,n,a),n.then(t,t))}l(nd,"attachPingListener");function YT(t,n,a){var u=t.pingCache;u!==null&&u.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Ke===t&&(Pe&a)===a&&(ot===4||ot===3&&(Pe&62914560)===Pe&&300>Ft()-Os?(Ie&2)===0&&ba(t,0):Kf|=a,ya===Pe&&(ya=0)),zn(t)}l(YT,"pingSuspendedRoot");function cg(t,n){n===0&&(n=om()),t=co(t,n),t!==null&&(ri(t,n),zn(t))}l(cg,"retryTimedOutBoundary");function QT(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),cg(t,a)}l(QT,"retryDehydratedSuspenseBoundary");function KT(t,n){var a=0;switch(t.tag){case 31: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(i(314))}u!==null&&u.delete(n),cg(t,a)}l(KT,"resolveRetryWakeable");function XT(t,n){return hc(t,n)}l(XT,"scheduleCallback$1");var Ls=null,Ea=null,rd=!1,js=!1,od=!1,Br=0;function zn(t){t!==Ea&&t.next===null&&(Ea===null?Ls=Ea=t:Ea=Ea.next=t),js=!0,rd||(rd=!0,ZT())}l(zn,"ensureRootIsScheduled");function ki(t,n){if(!od&&js){od=!0;do for(var a=!1,u=Ls;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var x=u.suspendedLanes,_=u.pingedLanes;v=(1<<31-qt(42|t)+1)-1,v&=p&~(x&~_),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(a=!0,hg(u,v))}else v=Pe,v=Hl(u,u===Ke?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||ni(u,v)||(a=!0,hg(u,v));u=u.next}while(a);od=!1}}l(ki,"flushSyncWorkAcrossRoots_impl");function WT(){fg()}l(WT,"processRootScheduleInImmediateTask");function fg(){js=rd=!1;var t=0;Br!==0&&sR()&&(t=Br);for(var n=Ft(),a=null,u=Ls;u!==null;){var p=u.next,v=dg(u,n);v===0?(u.next=null,a===null?Ls=p:a.next=p,p===null&&(Ea=a)):(a=u,(t!==0||(v&3)!==0)&&(js=!0)),u=p}ht!==0&&ht!==5||ki(t),Br!==0&&(Br=0)}l(fg,"processRootScheduleInMicrotask");function dg(t,n){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var x=31-qt(v),_=1<<x,N=p[x];N===-1?((_&a)===0||(_&u)!==0)&&(p[x]=CC(_,n)):N<=n&&(t.expiredLanes|=_),v&=~_}if(n=Ke,a=Pe,a=Hl(t,t===n?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,a===0||t===n&&(qe===2||qe===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&mc(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||ni(t,a)){if(n=a&-a,n===t.callbackPriority)return n;switch(u!==null&&mc(u),gc(a)){case 2:case 8:a=nm;break;case 32:a=jl;break;case 268435456:a=rm;break;default:a=jl}return u=pg.bind(null,t),a=hc(a,u),t.callbackPriority=n,t.callbackNode=a,n}return u!==null&&u!==null&&mc(u),t.callbackPriority=2,t.callbackNode=null,2}l(dg,"scheduleTaskForRootDuringMicrotask");function pg(t,n){if(ht!==0&&ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Ps()&&t.callbackNode!==a)return null;var u=Pe;return u=Hl(t,t===Ke?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Qy(t,u,n),dg(t,Ft()),t.callbackNode!=null&&t.callbackNode===a?pg.bind(null,t):null)}l(pg,"performWorkOnRootViaSchedulerTask");function hg(t,n){if(Ps())return null;Qy(t,n,!0)}l(hg,"performSyncWorkOnRoot");function ZT(){cR(function(){(Ie&6)!==0?hc(tm,WT):fg()})}l(ZT,"scheduleImmediateRootScheduleTask");function ad(){if(Br===0){var t=ia;t===0&&(t=zl,zl<<=1,(zl&261888)===0&&(zl=256)),Br=t}return Br}l(ad,"requestTransitionLane");function mg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$l(""+t)}l(mg,"coerceFormActionProp");function vg(t,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,t.id&&a.setAttribute("form",t.id),n.parentNode.insertBefore(a,n),t=new FormData(t),a.parentNode.removeChild(a),t}l(vg,"createFormDataWithSubmitter");function JT(t,n,a,u,p){if(n==="submit"&&a&&a.stateNode===p){var v=mg((p[Dt]||null).action),x=u.submitter;x&&(n=(n=x[Dt]||null)?mg(n.formAction):x.getAttribute("formAction"),n!==null&&(v=n,x=null));var _=new Yl("action","action",null,u,p);t.push({event:_,listeners:[{instance:null,listener:l(function(){if(u.defaultPrevented){if(Br!==0){var N=x?vg(p,x):new FormData(p);Tf(a,{pending:!0,data:N,method:p.method,action:v},null,N)}}else typeof v=="function"&&(_.preventDefault(),N=x?vg(p,x):new FormData(p),Tf(a,{pending:!0,data:N,method:p.method,action:v},v,N))},"listener"),currentTarget:p}]})}}l(JT,"extractEvents$1");for(var id=0;id<Ic.length;id++){var ld=Ic[id],eR=ld.toLowerCase(),tR=ld[0].toUpperCase()+ld.slice(1);Sn(eR,"on"+tR)}Sn(Ym,"onAnimationEnd"),Sn(Qm,"onAnimationIteration"),Sn(Km,"onAnimationStart"),Sn("dblclick","onDoubleClick"),Sn("focusin","onFocus"),Sn("focusout","onBlur"),Sn(yT,"onTransitionRun"),Sn(gT,"onTransitionStart"),Sn(bT,"onTransitionCancel"),Sn(Xm,"onTransitionEnd"),Vo("onMouseEnter",["mouseout","mouseover"]),Vo("onMouseLeave",["mouseout","mouseover"]),Vo("onPointerEnter",["pointerout","pointerover"]),Vo("onPointerLeave",["pointerout","pointerover"]),io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),io("onBeforeInput",["compositionend","keypress","textInput","paste"]),io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),nR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function yg(t,n){n=(n&4)!==0;for(var a=0;a<t.length;a++){var u=t[a],p=u.event;u=u.listeners;e:{var v=void 0;if(n)for(var x=u.length-1;0<=x;x--){var _=u[x],N=_.instance,B=_.currentTarget;if(_=_.listener,N!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=B;try{v(p)}catch(G){Xl(G)}p.currentTarget=null,v=N}else for(x=0;x<u.length;x++){if(_=u[x],N=_.instance,B=_.currentTarget,_=_.listener,N!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=B;try{v(p)}catch(G){Xl(G)}p.currentTarget=null,v=N}}}}l(yg,"processDispatchQueue");function De(t,n){var a=n[bc];a===void 0&&(a=n[bc]=new Set);var u=t+"__bubble";a.has(u)||(gg(n,t,2,!1),a.add(u))}l(De,"listenToNonDelegatedEvent");function sd(t,n,a){var u=0;n&&(u|=4),gg(a,t,u,n)}l(sd,"listenToNativeEvent");var zs="_reactListening"+Math.random().toString(36).slice(2);function ud(t){if(!t[zs]){t[zs]=!0,fm.forEach(function(a){a!=="selectionchange"&&(nR.has(a)||sd(a,!1,t),sd(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[zs]||(n[zs]=!0,sd("selectionchange",!1,n))}}l(ud,"listenToAllSupportedEvents");function gg(t,n,a,u){switch(Yg(n)){case 2:var p=MR;break;case 8:p=NR;break;default:p=Cd}a=p.bind(null,n,a,t),p=void 0,!_c||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(n,a,{capture:!0,passive:p}):t.addEventListener(n,a,!0):p!==void 0?t.addEventListener(n,a,{passive:p}):t.addEventListener(n,a,!1)}l(gg,"addTrappedEventListener");function cd(t,n,a,u,p){var v=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var _=u.stateNode.containerInfo;if(_===p)break;if(x===4)for(x=u.return;x!==null;){var N=x.tag;if((N===3||N===4)&&x.stateNode.containerInfo===p)return;x=x.return}for(;_!==null;){if(x=$o(_),x===null)return;if(N=x.tag,N===5||N===6||N===26||N===27){u=v=x;continue e}_=_.parentNode}}u=u.return}xm(function(){var B=v,G=Rc(a),X=[];e:{var F=Wm.get(t);if(F!==void 0){var $=Yl,fe=t;switch(t){case"keypress":if(Gl(a)===0)break e;case"keydown":case"keyup":$=KC;break;case"focusin":fe="focus",$=Dc;break;case"focusout":fe="blur",$=Dc;break;case"beforeblur":case"afterblur":$=Dc;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":$=Rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=kC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=ZC;break;case Ym:case Qm:case Km:$=BC;break;case Xm:$=eT;break;case"scroll":case"scrollend":$=jC;break;case"wheel":$=nT;break;case"copy":case"cut":case"paste":$=FC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=_m;break;case"toggle":case"beforetoggle":$=oT}var we=(n&4)!==0,Qe=!we&&(t==="scroll"||t==="scrollend"),k=we?F!==null?F+"Capture":null:F;we=[];for(var L=B,H;L!==null;){var K=L;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||k===null||(K=ii(L,k),K!=null&&we.push(Hi(L,K,H))),Qe)break;L=L.return}0<we.length&&(F=new $(F,fe,null,a,G),X.push({event:F,listeners:we}))}}if((n&7)===0){e:{if(F=t==="mouseover"||t==="pointerover",$=t==="mouseout"||t==="pointerout",F&&a!==Tc&&(fe=a.relatedTarget||a.fromElement)&&($o(fe)||fe[Fo]))break e;if(($||F)&&(F=G.window===G?G:(F=G.ownerDocument)?F.defaultView||F.parentWindow:window,$?(fe=a.relatedTarget||a.toElement,$=B,fe=fe?$o(fe):null,fe!==null&&(Qe=c(fe),we=fe.tag,fe!==Qe||we!==5&&we!==27&&we!==6)&&(fe=null)):($=null,fe=B),$!==fe)){if(we=Rm,K="onMouseLeave",k="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(we=_m,K="onPointerLeave",k="onPointerEnter",L="pointer"),Qe=$==null?F:ai($),H=fe==null?F:ai(fe),F=new we(K,L+"leave",$,a,G),F.target=Qe,F.relatedTarget=H,K=null,$o(G)===B&&(we=new we(k,L+"enter",fe,a,G),we.target=H,we.relatedTarget=Qe,K=we),Qe=K,$&&fe)t:{for(we=rR,k=$,L=fe,H=0,K=k;K;K=we(K))H++;K=0;for(var ge=L;ge;ge=we(ge))K++;for(;0<H-K;)k=we(k),H--;for(;0<K-H;)L=we(L),K--;for(;H--;){if(k===L||L!==null&&k===L.alternate){we=k;break t}k=we(k),L=we(L)}we=null}else we=null;$!==null&&bg(X,F,$,we,!1),fe!==null&&Qe!==null&&bg(X,Qe,fe,we,!0)}}e:{if(F=B?ai(B):window,$=F.nodeName&&F.nodeName.toLowerCase(),$==="select"||$==="input"&&F.type==="file")var Ue=zm;else if(Lm(F))if(km)Ue=hT;else{Ue=dT;var he=fT}else $=F.nodeName,!$||$.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?B&&Cc(B.elementType)&&(Ue=zm):Ue=pT;if(Ue&&(Ue=Ue(t,B))){jm(X,Ue,a,G);break e}he&&he(t,F,B),t==="focusout"&&B&&F.type==="number"&&B.memoizedProps.value!=null&&xc(F,"number",F.value)}switch(he=B?ai(B):window,t){case"focusin":(Lm(he)||he.contentEditable==="true")&&(Zo=he,Uc=B,hi=null);break;case"focusout":hi=Uc=Zo=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,Gm(X,a,G);break;case"selectionchange":if(vT)break;case"keydown":case"keyup":Gm(X,a,G)}var Ae;if(Lc)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Wo?Dm(t,a)&&(Le="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Le="onCompositionStart");Le&&(Am&&a.locale!=="ko"&&(Wo||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Wo&&(Ae=Cm()):(Cr=G,Ac="value"in Cr?Cr.value:Cr.textContent,Wo=!0)),he=ks(B,Le),0<he.length&&(Le=new Om(Le,t,null,a,G),X.push({event:Le,listeners:he}),Ae?Le.data=Ae:(Ae=Pm(a),Ae!==null&&(Le.data=Ae)))),(Ae=iT?lT(t,a):sT(t,a))&&(Le=ks(B,"onBeforeInput"),0<Le.length&&(he=new Om("onBeforeInput","beforeinput",null,a,G),X.push({event:he,listeners:Le}),he.data=Ae)),JT(X,t,B,a,G)}yg(X,n)})}l(cd,"dispatchEventForPluginEventSystem");function Hi(t,n,a){return{instance:t,listener:n,currentTarget:a}}l(Hi,"createDispatchListener");function ks(t,n){for(var a=n+"Capture",u=[];t!==null;){var p=t,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=ii(t,a),p!=null&&u.unshift(Hi(t,p,v)),p=ii(t,n),p!=null&&u.push(Hi(t,p,v))),t.tag===3)return u;t=t.return}return[]}l(ks,"accumulateTwoPhaseListeners");function rR(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}l(rR,"getParent");function bg(t,n,a,u,p){for(var v=n._reactName,x=[];a!==null&&a!==u;){var _=a,N=_.alternate,B=_.stateNode;if(_=_.tag,N!==null&&N===u)break;_!==5&&_!==26&&_!==27||B===null||(N=B,p?(B=ii(a,v),B!=null&&x.unshift(Hi(a,B,N))):p||(B=ii(a,v),B!=null&&x.push(Hi(a,B,N)))),a=a.return}x.length!==0&&t.push({event:n,listeners:x})}l(bg,"accumulateEnterLeaveListenersForEvent");var oR=/\r\n?/g,aR=/\u0000|\uFFFD/g;function Sg(t){return(typeof t=="string"?t:""+t).replace(oR,`
9
- `).replace(aR,"")}l(Sg,"normalizeMarkupForTextOrAttribute");function Eg(t,n){return n=Sg(n),Sg(t)===n}l(Eg,"checkForUnmatchedText");function Ye(t,n,a,u,p,v){switch(a){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||Qo(t,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&Qo(t,""+u);break;case"className":Il(t,"class",u);break;case"tabIndex":Il(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Il(t,a,u);break;case"style":Em(t,u,v);break;case"data":if(n!=="object"){Il(t,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||a!=="href")){t.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=$l(""+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 v=="function"&&(a==="formAction"?(n!=="input"&&Ye(t,n,"name",p.name,p,null),Ye(t,n,"formEncType",p.formEncType,p,null),Ye(t,n,"formMethod",p.formMethod,p,null),Ye(t,n,"formTarget",p.formTarget,p,null)):(Ye(t,n,"encType",p.encType,p,null),Ye(t,n,"method",p.method,p,null),Ye(t,n,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=$l(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=Wn);break;case"onScroll":u!=null&&De("scroll",t);break;case"onScrollEnd":u!=null&&De("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(i(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=$l(""+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":De("beforetoggle",t),De("toggle",t),Bl(t,"popover",u);break;case"xlinkActuate":Xn(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Xn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Xn(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Xn(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Xn(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Xn(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Bl(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=PC.get(a)||a,Bl(t,a,u))}}l(Ye,"setProp");function fd(t,n,a,u,p,v){switch(a){case"style":Em(t,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=a}}break;case"children":typeof u=="string"?Qo(t,u):(typeof u=="number"||typeof u=="bigint")&&Qo(t,""+u);break;case"onScroll":u!=null&&De("scroll",t);break;case"onScrollEnd":u!=null&&De("scrollend",t);break;case"onClick":u!=null&&(t.onclick=Wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),n=a.slice(2,p?a.length-7:void 0),v=t[Dt]||null,v=v!=null?v[a]:null,typeof v=="function"&&t.removeEventListener(n,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(n,u,p);break e}a in t?t[a]=u:u===!0?t.setAttribute(a,""):Bl(t,a,u)}}}l(fd,"setPropOnCustomElement");function Et(t,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",t),De("load",t);var u=!1,p=!1,v;for(v in a)if(a.hasOwnProperty(v)){var x=a[v];if(x!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ye(t,n,v,x,a,null)}}p&&Ye(t,n,"srcSet",a.srcSet,a,null),u&&Ye(t,n,"src",a.src,a,null);return;case"input":De("invalid",t);var _=v=x=p=null,N=null,B=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":x=G;break;case"checked":N=G;break;case"defaultChecked":B=G;break;case"value":v=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,n));break;default:Ye(t,n,u,G,a,null)}}ym(t,v,_,N,B,x,p,!1);return;case"select":De("invalid",t),u=x=v=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":v=_;break;case"defaultValue":x=_;break;case"multiple":u=_;default:Ye(t,n,p,_,a,null)}n=v,a=x,t.multiple=!!u,n!=null?Yo(t,!!u,n,!1):a!=null&&Yo(t,!!u,a,!0);return;case"textarea":De("invalid",t),v=p=u=null;for(x in a)if(a.hasOwnProperty(x)&&(_=a[x],_!=null))switch(x){case"value":u=_;break;case"defaultValue":p=_;break;case"children":v=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:Ye(t,n,x,_,a,null)}bm(t,u,p,v);return;case"option":for(N in a)a.hasOwnProperty(N)&&(u=a[N],u!=null)&&(N==="selected"?t.selected=u&&typeof u!="function"&&typeof u!="symbol":Ye(t,n,N,u,a,null));return;case"dialog":De("beforetoggle",t),De("toggle",t),De("cancel",t),De("close",t);break;case"iframe":case"object":De("load",t);break;case"video":case"audio":for(u=0;u<Ui.length;u++)De(Ui[u],t);break;case"image":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"embed":case"source":case"link":De("error",t),De("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(B in a)if(a.hasOwnProperty(B)&&(u=a[B],u!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ye(t,n,B,u,a,null)}return;default:if(Cc(n)){for(G in a)a.hasOwnProperty(G)&&(u=a[G],u!==void 0&&fd(t,n,G,u,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(u=a[_],u!=null&&Ye(t,n,_,u,a,null))}l(Et,"setInitialProperties");function iR(t,n,a,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,x=null,_=null,N=null,B=null,G=null;for($ in a){var X=a[$];if(a.hasOwnProperty($)&&X!=null)switch($){case"checked":break;case"value":break;case"defaultValue":N=X;default:u.hasOwnProperty($)||Ye(t,n,$,null,u,X)}}for(var F in u){var $=u[F];if(X=a[F],u.hasOwnProperty(F)&&($!=null||X!=null))switch(F){case"type":v=$;break;case"name":p=$;break;case"checked":B=$;break;case"defaultChecked":G=$;break;case"value":x=$;break;case"defaultValue":_=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:$!==X&&Ye(t,n,F,$,u,X)}}wc(t,x,_,N,B,G,v,p);return;case"select":$=x=_=F=null;for(v in a)if(N=a[v],a.hasOwnProperty(v)&&N!=null)switch(v){case"value":break;case"multiple":$=N;default:u.hasOwnProperty(v)||Ye(t,n,v,null,u,N)}for(p in u)if(v=u[p],N=a[p],u.hasOwnProperty(p)&&(v!=null||N!=null))switch(p){case"value":F=v;break;case"defaultValue":_=v;break;case"multiple":x=v;default:v!==N&&Ye(t,n,p,v,u,N)}n=_,a=x,u=$,F!=null?Yo(t,!!a,F,!1):!!u!=!!a&&(n!=null?Yo(t,!!a,n,!0):Yo(t,!!a,a?[]:"",!1));return;case"textarea":$=F=null;for(_ in a)if(p=a[_],a.hasOwnProperty(_)&&p!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ye(t,n,_,null,u,p)}for(x in u)if(p=u[x],v=a[x],u.hasOwnProperty(x)&&(p!=null||v!=null))switch(x){case"value":F=p;break;case"defaultValue":$=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==v&&Ye(t,n,x,p,u,v)}gm(t,F,$);return;case"option":for(var fe in a)F=a[fe],a.hasOwnProperty(fe)&&F!=null&&!u.hasOwnProperty(fe)&&(fe==="selected"?t.selected=!1:Ye(t,n,fe,null,u,F));for(N in u)F=u[N],$=a[N],u.hasOwnProperty(N)&&F!==$&&(F!=null||$!=null)&&(N==="selected"?t.selected=F&&typeof F!="function"&&typeof F!="symbol":Ye(t,n,N,F,u,$));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)F=a[we],a.hasOwnProperty(we)&&F!=null&&!u.hasOwnProperty(we)&&Ye(t,n,we,null,u,F);for(B in u)if(F=u[B],$=a[B],u.hasOwnProperty(B)&&F!==$&&(F!=null||$!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,n));break;default:Ye(t,n,B,F,u,$)}return;default:if(Cc(n)){for(var Qe in a)F=a[Qe],a.hasOwnProperty(Qe)&&F!==void 0&&!u.hasOwnProperty(Qe)&&fd(t,n,Qe,void 0,u,F);for(G in u)F=u[G],$=a[G],!u.hasOwnProperty(G)||F===$||F===void 0&&$===void 0||fd(t,n,G,F,u,$);return}}for(var k in a)F=a[k],a.hasOwnProperty(k)&&F!=null&&!u.hasOwnProperty(k)&&Ye(t,n,k,null,u,F);for(X in u)F=u[X],$=a[X],!u.hasOwnProperty(X)||F===$||F==null&&$==null||Ye(t,n,X,F,u,$)}l(iR,"updateProperties");function wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}l(wg,"isLikelyStaticResource");function lR(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var p=a[u],v=p.transferSize,x=p.initiatorType,_=p.duration;if(v&&_&&wg(x)){for(x=0,_=p.responseEnd,u+=1;u<a.length;u++){var N=a[u],B=N.startTime;if(B>_)break;var G=N.transferSize,X=N.initiatorType;G&&wg(X)&&(N=N.responseEnd,x+=G*(N<_?1:(_-B)/(N-B)))}if(--u,n+=8*(v+x)/(p.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}l(lR,"estimateBandwidth");var dd=null,pd=null;function Us(t){return t.nodeType===9?t:t.ownerDocument}l(Us,"getOwnerDocumentFromRootContainer");function xg(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}}l(xg,"getOwnHostContext");function Cg(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}l(Cg,"getChildHostContextProd");function hd(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}l(hd,"shouldSetTextContent");var md=null;function sR(){var t=window.event;return t&&t.type==="popstate"?t===md?!1:(md=t,!0):(md=null,!1)}l(sR,"shouldAttemptEagerTransition");var Tg=typeof setTimeout=="function"?setTimeout:void 0,uR=typeof clearTimeout=="function"?clearTimeout:void 0,Rg=typeof Promise=="function"?Promise:void 0,cR=typeof queueMicrotask=="function"?queueMicrotask:typeof Rg<"u"?function(t){return Rg.resolve(null).then(t).catch(fR)}:Tg;function fR(t){setTimeout(function(){throw t})}l(fR,"handleErrorInNextTick");function Ir(t){return t==="head"}l(Ir,"isSingletonScope");function Og(t,n){var a=n,u=0;do{var p=a.nextSibling;if(t.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"||a==="/&"){if(u===0){t.removeChild(p),Ta(n);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")Bi(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Bi(a);for(var v=a.firstChild;v;){var x=v.nextSibling,_=v.nodeName;v[oi]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=x}}else a==="body"&&Bi(t.ownerDocument.body);a=p}while(a);Ta(n)}l(Og,"clearHydrationBoundary");function _g(t,n){var a=t;t=0;do{var u=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=u}while(a)}l(_g,"hideOrUnhideDehydratedBoundary");function vd(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":vd(a),Sc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}l(vd,"clearContainerSparingly");function dR(t,n,a,u){for(;t.nodeType===1;){var p=a;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[oi])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(v=t.getAttribute("rel"),v==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(v!==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(v=t.getAttribute("src"),(v!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===v)return t}else return t;if(t=un(t.nextSibling),t===null)break}return null}l(dR,"canHydrateInstance");function pR(t,n,a){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=un(t.nextSibling),t===null))return null;return t}l(pR,"canHydrateTextInstance");function Ag(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=un(t.nextSibling),t===null))return null;return t}l(Ag,"canHydrateHydrationBoundary");function yd(t){return t.data==="$?"||t.data==="$~"}l(yd,"isSuspenseInstancePending");function gd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}l(gd,"isSuspenseInstanceFallback");function hR(t,n){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||a.readyState!=="loading")n();else{var u=l(function(){n(),a.removeEventListener("DOMContentLoaded",u)},"listener");a.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}l(hR,"registerSuspenseInstanceRetry");function un(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}l(un,"getNextHydratable");var bd=null;function Mg(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(n===0)return un(t.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}t=t.nextSibling}return null}l(Mg,"getNextHydratableInstanceAfterHydrationBoundary");function Ng(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return t;n--}else a!=="/$"&&a!=="/&"||n++}t=t.previousSibling}return null}l(Ng,"getParentHydrationBoundary");function Dg(t,n,a){switch(n=Us(a),t){case"html":if(t=n.documentElement,!t)throw Error(i(452));return t;case"head":if(t=n.head,!t)throw Error(i(453));return t;case"body":if(t=n.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}l(Dg,"resolveSingletonInstance");function Bi(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Sc(t)}l(Bi,"releaseSingletonInstance");var cn=new Map,Pg=new Set;function Hs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}l(Hs,"getHoistableRoot");var pr=Y.d;Y.d={f:mR,r:vR,D:yR,C:gR,L:bR,m:SR,X:wR,S:ER,M:xR};function mR(){var t=pr.f(),n=Ms();return t||n}l(mR,"flushSyncWork");function vR(t){var n=qo(t);n!==null&&n.tag===5&&n.type==="form"?Xv(n):pr.r(t)}l(vR,"requestFormReset");var wa=typeof document>"u"?null:document;function Lg(t,n,a){var u=wa;if(u&&typeof n=="string"&&n){var p=tn(n);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),Pg.has(p)||(Pg.add(p),t={rel:t,crossOrigin:a,href:n},u.querySelector(p)===null&&(n=u.createElement("link"),Et(n,"link",t),mt(n),u.head.appendChild(n)))}}l(Lg,"preconnectAs");function yR(t){pr.D(t),Lg("dns-prefetch",t,null)}l(yR,"prefetchDNS");function gR(t,n){pr.C(t,n),Lg("preconnect",t,n)}l(gR,"preconnect");function bR(t,n,a){pr.L(t,n,a);var u=wa;if(u&&t&&n){var p='link[rel="preload"][as="'+tn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+tn(a.imageSizes)+'"]')):p+='[href="'+tn(t)+'"]';var v=p;switch(n){case"style":v=xa(t);break;case"script":v=Ca(t)}cn.has(v)||(t=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),cn.set(v,t),u.querySelector(p)!==null||n==="style"&&u.querySelector(Ii(v))||n==="script"&&u.querySelector(Fi(v))||(n=u.createElement("link"),Et(n,"link",t),mt(n),u.head.appendChild(n)))}}l(bR,"preload");function SR(t,n){pr.m(t,n);var a=wa;if(a&&t){var u=n&&typeof n.as=="string"?n.as:"script",p='link[rel="modulepreload"][as="'+tn(u)+'"][href="'+tn(t)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Ca(t)}if(!cn.has(v)&&(t=y({rel:"modulepreload",href:t},n),cn.set(v,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fi(v)))return}u=a.createElement("link"),Et(u,"link",t),mt(u),a.head.appendChild(u)}}}l(SR,"preloadModule");function ER(t,n,a){pr.S(t,n,a);var u=wa;if(u&&t){var p=Go(u).hoistableStyles,v=xa(t);n=n||"default";var x=p.get(v);if(!x){var _={loading:0,preload:null};if(x=u.querySelector(Ii(v)))_.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":n},a),(a=cn.get(v))&&Sd(t,a);var N=x=u.createElement("link");mt(N),Et(N,"link",t),N._p=new Promise(function(B,G){N.onload=B,N.onerror=G}),N.addEventListener("load",function(){_.loading|=1}),N.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Bs(x,n,u)}x={type:"stylesheet",instance:x,count:1,state:_},p.set(v,x)}}}l(ER,"preinitStyle");function wR(t,n){pr.X(t,n);var a=wa;if(a&&t){var u=Go(a).hoistableScripts,p=Ca(t),v=u.get(p);v||(v=a.querySelector(Fi(p)),v||(t=y({src:t,async:!0},n),(n=cn.get(p))&&Ed(t,n),v=a.createElement("script"),mt(v),Et(v,"link",t),a.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}l(wR,"preinitScript");function xR(t,n){pr.M(t,n);var a=wa;if(a&&t){var u=Go(a).hoistableScripts,p=Ca(t),v=u.get(p);v||(v=a.querySelector(Fi(p)),v||(t=y({src:t,async:!0,type:"module"},n),(n=cn.get(p))&&Ed(t,n),v=a.createElement("script"),mt(v),Et(v,"link",t),a.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}l(xR,"preinitModuleScript");function jg(t,n,a,u){var p=(p=Ee.current)?Hs(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=xa(a.href),a=Go(p).hoistableStyles,u=a.get(n),u||(u={type:"style",instance:null,count:0,state:null},a.set(n,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=xa(a.href);var v=Go(p).hoistableStyles,x=v.get(t);if(x||(p=p.ownerDocument||p,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,x),(v=p.querySelector(Ii(t)))&&!v._p&&(x.instance=v,x.state.loading=5),cn.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},cn.set(t,a),v||CR(p,t,a,x.state))),n&&u===null)throw Error(i(528,""));return x}if(n&&u!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ca(a),a=Go(p).hoistableScripts,u=a.get(n),u||(u={type:"script",instance:null,count:0,state:null},a.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}l(jg,"getResource");function xa(t){return'href="'+tn(t)+'"'}l(xa,"getStyleKey");function Ii(t){return'link[rel="stylesheet"]['+t+"]"}l(Ii,"getStylesheetSelectorFromKey");function zg(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}l(zg,"stylesheetPropsFromRawProps");function CR(t,n,a,u){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=t.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),Et(n,"link",a),mt(n),t.head.appendChild(n))}l(CR,"preloadStylesheet");function Ca(t){return'[src="'+tn(t)+'"]'}l(Ca,"getScriptKey");function Fi(t){return"script[async]"+t}l(Fi,"getScriptSelectorFromKey");function kg(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var u=t.querySelector('style[data-href~="'+tn(a.href)+'"]');if(u)return n.instance=u,mt(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"),mt(u),Et(u,"style",p),Bs(u,a.precedence,t),n.instance=u;case"stylesheet":p=xa(a.href);var v=t.querySelector(Ii(p));if(v)return n.state.loading|=4,n.instance=v,mt(v),v;u=zg(a),(p=cn.get(p))&&Sd(u,p),v=(t.ownerDocument||t).createElement("link"),mt(v);var x=v;return x._p=new Promise(function(_,N){x.onload=_,x.onerror=N}),Et(v,"link",u),n.state.loading|=4,Bs(v,a.precedence,t),n.instance=v;case"script":return v=Ca(a.src),(p=t.querySelector(Fi(v)))?(n.instance=p,mt(p),p):(u=a,(p=cn.get(v))&&(u=y({},a),Ed(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),mt(p),Et(p,"link",u),t.head.appendChild(p),n.instance=p);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Bs(u,a.precedence,t));return n.instance}l(kg,"acquireResource");function Bs(t,n,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,x=0;x<u.length;x++){var _=u[x];if(_.dataset.precedence===n)v=_;else if(v!==p)break}v?v.parentNode.insertBefore(t,v.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(t,n.firstChild))}l(Bs,"insertStylesheet");function Sd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}l(Sd,"adoptPreloadPropsForStylesheet");function Ed(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}l(Ed,"adoptPreloadPropsForScript");var Is=null;function Ug(t,n,a){if(Is===null){var u=new Map,p=Is=new Map;p.set(a,u)}else p=Is,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 v=a[p];if(!(v[oi]||v[yt]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var x=v.getAttribute(n)||"";x=t+x;var _=u.get(x);_?_.push(v):u.set(x,[v])}}return u}l(Ug,"getHydratableHoistableCache");function Hg(t,n,a){t=t.ownerDocument||t,t.head.insertBefore(a,n==="title"?t.querySelector("head > title"):null)}l(Hg,"mountHoistable");function TR(t,n,a){if(a===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}l(TR,"isHostHoistableType");function Bg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}l(Bg,"preloadResource");function RR(t,n,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=xa(u.href),v=n.querySelector(Ii(p));if(v){n=v._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Fs.bind(t),n.then(t,t)),a.state.loading|=4,a.instance=v,mt(v);return}v=n.ownerDocument||n,u=zg(u),(p=cn.get(p))&&Sd(u,p),v=v.createElement("link"),mt(v);var x=v;x._p=new Promise(function(_,N){x.onload=_,x.onerror=N}),Et(v,"link",u),a.instance=v}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Fs.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}l(RR,"suspendResource");var wd=0;function OR(t,n){return t.stylesheets&&t.count===0&&qs(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var u=setTimeout(function(){if(t.stylesheets&&qs(t,t.stylesheets),t.unsuspend){var v=t.unsuspend;t.unsuspend=null,v()}},6e4+n);0<t.imgBytes&&wd===0&&(wd=62500*lR());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&qs(t,t.stylesheets),t.unsuspend)){var v=t.unsuspend;t.unsuspend=null,v()}},(t.imgBytes>wd?50:800)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}l(OR,"waitForCommitToBeReady");function Fs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}l(Fs,"onUnsuspend");var $s=null;function qs(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$s=new Map,n.forEach(_R,t),$s=null,Fs.call(t))}l(qs,"insertSuspendedStylesheets");function _R(t,n){if(!(n.state.loading&4)){var a=$s.get(t);if(a)var u=a.get(null);else{a=new Map,$s.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var x=p[v];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),u=x)}u&&a.set(null,u)}p=n.instance,x=p.getAttribute("data-precedence"),v=a.get(x)||u,v===u&&a.set(null,p),a.set(x,p),this.count++,u=Fs.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),v?v.parentNode.insertBefore(p,v.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),n.state.loading|=4}}l(_R,"insertStylesheetIntoRoot");var $i={$$typeof:A,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function AR(t,n,a,u,p,v,x,_,N){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=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}l(AR,"FiberRootNode");function Ig(t,n,a,u,p,v,x,_,N,B,G,X){return t=new AR(t,n,a,x,N,B,G,X,_),n=1,v===!0&&(n|=24),v=Vt(3,null,null,n),t.current=v,v.stateNode=t,n=ef(),n.refCount++,t.pooledCache=n,n.refCount++,v.memoizedState={element:u,isDehydrated:a,cache:n},of(v),t}l(Ig,"createFiberRoot");function Fg(t){return t?(t=ta,t):ta}l(Fg,"getContextForSubtree");function $g(t,n,a,u,p,v){p=Fg(p),u.context===null?u.context=p:u.pendingContext=p,u=Mr(n),u.payload={element:a},v=v===void 0?null:v,v!==null&&(u.callback=v),a=Nr(t,u,n),a!==null&&(Ut(a,t,n),Ei(a,t,n))}l($g,"updateContainerImpl");function qg(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}l(qg,"markRetryLaneImpl");function xd(t,n){qg(t,n),(t=t.alternate)&&qg(t,n)}l(xd,"markRetryLaneIfNotHydrated");function Gg(t){if(t.tag===13||t.tag===31){var n=co(t,67108864);n!==null&&Ut(n,t,67108864),xd(t,67108864)}}l(Gg,"attemptContinuousHydration");function Vg(t){if(t.tag===13||t.tag===31){var n=Wt();n=yc(n);var a=co(t,n);a!==null&&Ut(a,t,n),xd(t,n)}}l(Vg,"attemptHydrationAtCurrentPriority");var Gs=!0;function MR(t,n,a,u){var p=z.T;z.T=null;var v=Y.p;try{Y.p=2,Cd(t,n,a,u)}finally{Y.p=v,z.T=p}}l(MR,"dispatchDiscreteEvent");function NR(t,n,a,u){var p=z.T;z.T=null;var v=Y.p;try{Y.p=8,Cd(t,n,a,u)}finally{Y.p=v,z.T=p}}l(NR,"dispatchContinuousEvent");function Cd(t,n,a,u){if(Gs){var p=Td(u);if(p===null)cd(t,n,u,Vs,a),Qg(t,u);else if(PR(p,t,n,a,u))u.stopPropagation();else if(Qg(t,u),n&4&&-1<DR.indexOf(t)){for(;p!==null;){var v=qo(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var x=ao(v.pendingLanes);if(x!==0){var _=v;for(_.pendingLanes|=2,_.entangledLanes|=2;x;){var N=1<<31-qt(x);_.entanglements[1]|=N,x&=~N}zn(v),(Ie&6)===0&&(_s=Ft()+500,ki(0))}}break;case 31:case 13:_=co(v,2),_!==null&&Ut(_,v,2),Ms(),xd(v,2)}if(v=Td(u),v===null&&cd(t,n,u,Vs,a),v===p)break;p=v}p!==null&&u.stopPropagation()}else cd(t,n,u,null,a)}}l(Cd,"dispatchEvent");function Td(t){return t=Rc(t),Rd(t)}l(Td,"findInstanceBlockingEvent");var Vs=null;function Rd(t){if(Vs=null,t=$o(t),t!==null){var n=c(t);if(n===null)t=null;else{var a=n.tag;if(a===13){if(t=f(n),t!==null)return t;t=null}else if(a===31){if(t=d(n),t!==null)return t;t=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Vs=t,null}l(Rd,"findInstanceBlockingTarget");function Yg(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(yC()){case tm:return 2;case nm:return 8;case jl:case gC:return 32;case rm:return 268435456;default:return 32}default:return 32}}l(Yg,"getEventPriority");var Od=!1,Fr=null,$r=null,qr=null,qi=new Map,Gi=new Map,Gr=[],DR="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 Qg(t,n){switch(t){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":qi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(n.pointerId)}}l(Qg,"clearIfContinuousEvent");function Vi(t,n,a,u,p,v){return t===null||t.nativeEvent!==v?(t={blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},n!==null&&(n=qo(n),n!==null&&Gg(n)),t):(t.eventSystemFlags|=u,n=t.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),t)}l(Vi,"accumulateOrCreateContinuousQueuedReplayableEvent");function PR(t,n,a,u,p){switch(n){case"focusin":return Fr=Vi(Fr,t,n,a,u,p),!0;case"dragenter":return $r=Vi($r,t,n,a,u,p),!0;case"mouseover":return qr=Vi(qr,t,n,a,u,p),!0;case"pointerover":var v=p.pointerId;return qi.set(v,Vi(qi.get(v)||null,t,n,a,u,p)),!0;case"gotpointercapture":return v=p.pointerId,Gi.set(v,Vi(Gi.get(v)||null,t,n,a,u,p)),!0}return!1}l(PR,"queueIfContinuousEvent");function Kg(t){var n=$o(t.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=f(a),n!==null){t.blockedOn=n,um(t.priority,function(){Vg(a)});return}}else if(n===31){if(n=d(a),n!==null){t.blockedOn=n,um(t.priority,function(){Vg(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}l(Kg,"attemptExplicitHydrationTarget");function Ys(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=Td(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Tc=u,a.target.dispatchEvent(u),Tc=null}else return n=qo(a),n!==null&&Gg(n),t.blockedOn=a,!1;n.shift()}return!0}l(Ys,"attemptReplayContinuousQueuedEvent");function Xg(t,n,a){Ys(t)&&a.delete(n)}l(Xg,"attemptReplayContinuousQueuedEventInMap");function LR(){Od=!1,Fr!==null&&Ys(Fr)&&(Fr=null),$r!==null&&Ys($r)&&($r=null),qr!==null&&Ys(qr)&&(qr=null),qi.forEach(Xg),Gi.forEach(Xg)}l(LR,"replayUnblockedEvents");function Qs(t,n){t.blockedOn===n&&(t.blockedOn=null,Od||(Od=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,LR)))}l(Qs,"scheduleCallbackIfUnblocked");var Ks=null;function Wg(t){Ks!==t&&(Ks=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ks===t&&(Ks=null);for(var n=0;n<t.length;n+=3){var a=t[n],u=t[n+1],p=t[n+2];if(typeof u!="function"){if(Rd(u||a)===null)continue;break}var v=qo(a);v!==null&&(t.splice(n,3),n-=3,Tf(v,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}l(Wg,"scheduleReplayQueueIfNeeded");function Ta(t){function n(N){return Qs(N,t)}l(n,"unblock"),Fr!==null&&Qs(Fr,t),$r!==null&&Qs($r,t),qr!==null&&Qs(qr,t),qi.forEach(n),Gi.forEach(n);for(var a=0;a<Gr.length;a++){var u=Gr[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Gr.length&&(a=Gr[0],a.blockedOn===null);)Kg(a),a.blockedOn===null&&Gr.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],v=a[u+1],x=p[Dt]||null;if(typeof v=="function")x||Wg(a);else if(x){var _=null;if(v&&v.hasAttribute("formAction")){if(p=v,x=v[Dt]||null)_=x.formAction;else if(Rd(p)!==null)continue}else _=x.action;typeof _=="function"?a[u+1]=_:(a.splice(u,3),u-=3),Wg(a)}}}l(Ta,"retryIfBlockedOn");function Zg(){function t(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:l(function(){return new Promise(function(x){return p=x})},"handler"),focusReset:"manual",scroll:"manual"})}l(t,"handleNavigate");function n(){p!==null&&(p(),p=null),u||setTimeout(a,20)}l(n,"handleNavigateComplete");function a(){if(!u&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(l(a,"startFakeNavigation"),typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),p!==null&&(p(),p=null)}}}l(Zg,"defaultOnDefaultTransitionIndicator");function _d(t){this._internalRoot=t}l(_d,"ReactDOMRoot"),Xs.prototype.render=_d.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,u=Wt();$g(a,u,t,n,null,null)},Xs.prototype.unmount=_d.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;$g(t.current,2,null,t,null,null),Ms(),n[Fo]=null}};function Xs(t){this._internalRoot=t}l(Xs,"ReactDOMHydrationRoot"),Xs.prototype.unstable_scheduleHydration=function(t){if(t){var n=sm();t={blockedOn:null,target:t,priority:n};for(var a=0;a<Gr.length&&n!==0&&n<Gr[a].priority;a++);Gr.splice(a,0,t),a===0&&Kg(t)}};var Jg=r.version;if(Jg!=="19.2.3")throw Error(i(527,Jg,"19.2.3"));Y.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=m(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var jR={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ws.isDisabled&&Ws.supportsFiber)try{ti=Ws.inject(jR),$t=Ws}catch{}}return Qi.createRoot=function(t,n){if(!s(t))throw Error(i(299));var a=!1,u="",p=iy,v=ly,x=sy;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(p=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Ig(t,1,!1,null,null,a,u,null,p,v,x,Zg),t[Fo]=n.current,ud(t),new _d(n)},Qi.hydrateRoot=function(t,n,a){if(!s(t))throw Error(i(299));var u=!1,p="",v=iy,x=ly,_=sy,N=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),n=Ig(t,1,!0,n,a??null,u,p,N,v,x,_,Zg),n.context=Fg(null),a=n.current,u=Wt(),u=yc(u),p=Mr(u),p.callback=null,Nr(a,p,u),a=u,n.current.lanes=a,ri(n,a),zn(n),t[Fo]=n.current,ud(t),new Xs(n)},Qi.version="19.2.3",Qi}l(GR,"requireReactDomClient_production");var u0;function VR(){if(u0)return Nd.exports;u0=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(r){console.error(r)}}return l(e,"checkDCE"),e(),Nd.exports=GR(),Nd.exports}l(VR,"requireClient");var B8=VR();function c0(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}l(c0,"setRef");function Sr(...e){return r=>{let o=!1;const i=e.map(s=>{const c=c0(s,r);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():c0(e[s],null)}}}}l(Sr,"composeRefs");function Oe(...e){return g.useCallback(Sr(...e),e)}l(Oe,"useComposedRefs");var YR=Symbol.for("react.lazy"),gu=Fp[" use ".trim().toString()];function QR(e){return typeof e=="object"&&e!==null&&"then"in e}l(QR,"isPromiseLike");function t1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===YR&&"_payload"in e&&QR(e._payload)}l(t1,"isLazyComponent");function zu(e){const r=KR(e),o=g.forwardRef((i,s)=>{let{children:c,...f}=i;t1(c)&&typeof gu=="function"&&(c=gu(c._payload));const d=g.Children.toArray(c),h=d.find(WR);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(zu,"createSlot$5");var I8=zu("Slot");function KR(e){const r=g.forwardRef((o,i)=>{let{children:s,...c}=o;if(t1(s)&&typeof gu=="function"&&(s=gu(s._payload)),g.isValidElement(s)){const f=JR(s),d=ZR(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(KR,"createSlotClone$5");var XR=Symbol("radix.slottable");function WR(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XR}l(WR,"isSlottable$5");function ZR(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(ZR,"mergeProps$5");function JR(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(JR,"getElementRef$6");var $n=e1();const rl=Jr($n);var eO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tO=eO.reduce((e,r)=>{const o=zu(`Primitive.${r}`),i=g.forwardRef((s,c)=>{const{asChild:f,...d}=s,h=f?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(h,{...d,ref:c})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),nO="Separator",f0="horizontal",rO=["horizontal","vertical"],n1=g.forwardRef((e,r)=>{const{decorative:o,orientation:i=f0,...s}=e,c=oO(i)?i:f0,d=o?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return M.jsx(tO.div,{"data-orientation":c,...d,...s,ref:r})});n1.displayName=nO;function oO(e){return rO.includes(e)}l(oO,"isValidOrientation");var F8=n1;function aO(e,r){const o=g.createContext(r),i=l(c=>{const{children:f,...d}=c,h=g.useMemo(()=>d,Object.values(d));return M.jsx(o.Provider,{value:h,children:f})},"Provider");i.displayName=e+"Provider";function s(c){const f=g.useContext(o);if(f)return f;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${e}\``)}return l(s,"useContext2"),[i,s]}l(aO,"createContext2");function It(e,r=[]){let o=[];function i(c,f){const d=g.createContext(f),h=o.length;o=[...o,f];const m=l(y=>{const{scope:S,children:w,...C}=y,E=S?.[e]?.[h]||d,T=g.useMemo(()=>C,Object.values(C));return M.jsx(E.Provider,{value:T,children:w})},"Provider");m.displayName=c+"Provider";function b(y,S){const w=S?.[e]?.[h]||d,C=g.useContext(w);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${c}\``)}return l(b,"useContext2"),[m,b]}l(i,"createContext3");const s=l(()=>{const c=o.map(f=>g.createContext(f));return l(function(d){const h=d?.[e]||c;return g.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])},"useScope")},"createScope");return s.scopeName=e,[i,iO(s,...r)]}l(It,"createContextScope$1");function iO(...e){const r=e[0];if(e.length===1)return r;const o=l(()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return l(function(c){const f=i.reduce((d,{useScope:h,scopeName:m})=>{const y=h(c)[`__scope${m}`];return{...d,...y}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}l(iO,"composeContextScopes$1");var lt=globalThis?.document?g.useLayoutEffect:()=>{},lO=Fp[" useId ".trim().toString()]||(()=>{}),sO=0;function hn(e){const[r,o]=g.useState(lO());return lt(()=>{o(i=>i??String(sO++))},[e]),e||(r?`radix-${r}`:"")}l(hn,"useId");var uO=Fp[" useInsertionEffect ".trim().toString()]||lt;function Gn({prop:e,defaultProp:r,onChange:o=l(()=>{},"onChange"),caller:i}){const[s,c,f]=cO({defaultProp:r,onChange:o}),d=e!==void 0,h=d?e:s;{const b=g.useRef(e!==void 0);g.useEffect(()=>{const y=b.current;y!==d&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=d},[d,i])}const m=g.useCallback(b=>{if(d){const y=fO(b)?b(e):b;y!==e&&f.current?.(y)}else c(b)},[d,e,c,f]);return[h,m]}l(Gn,"useControllableState");function cO({defaultProp:e,onChange:r}){const[o,i]=g.useState(e),s=g.useRef(o),c=g.useRef(r);return uO(()=>{c.current=r},[r]),g.useEffect(()=>{s.current!==o&&(c.current?.(o),s.current=o)},[o,s]),[o,i,c]}l(cO,"useUncontrolledState");function fO(e){return typeof e=="function"}l(fO,"isFunction$3");function dO(e){const r=pO(e),o=g.forwardRef((i,s)=>{const{children:c,...f}=i,d=g.Children.toArray(c),h=d.find(mO);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(dO,"createSlot$4");function pO(e){const r=g.forwardRef((o,i)=>{const{children:s,...c}=o;if(g.isValidElement(s)){const f=yO(s),d=vO(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(pO,"createSlotClone$4");var hO=Symbol("radix.slottable");function mO(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hO}l(mO,"isSlottable$4");function vO(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(vO,"mergeProps$4");function yO(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(yO,"getElementRef$5");var gO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=gO.reduce((e,r)=>{const o=dO(`Primitive.${r}`),i=g.forwardRef((s,c)=>{const{asChild:f,...d}=s,h=f?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(h,{...d,ref:c})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function $p(e,r){e&&$n.flushSync(()=>e.dispatchEvent(r))}l($p,"dispatchDiscreteCustomEvent");function it(e){const r=g.useRef(e);return g.useEffect(()=>{r.current=e}),g.useMemo(()=>(...o)=>r.current?.(...o),[])}l(it,"useCallbackRef$1");function bO(e,r=globalThis?.document){const o=it(e);g.useEffect(()=>{const i=l(s=>{s.key==="Escape"&&o(s)},"handleKeyDown");return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}l(bO,"useEscapeKeydown");var SO="DismissableLayer",sp="dismissableLayer.update",EO="dismissableLayer.pointerDownOutside",wO="dismissableLayer.focusOutside",d0,r1=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$a=g.forwardRef((e,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...h}=e,m=g.useContext(r1),[b,y]=g.useState(null),S=b?.ownerDocument??globalThis?.document,[,w]=g.useState({}),C=Oe(r,U=>y(U)),E=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),O=E.indexOf(T),R=b?E.indexOf(b):-1,A=m.layersWithOutsidePointerEventsDisabled.size>0,D=R>=O,j=CO(U=>{const Q=U.target,ee=[...m.branches].some(W=>W.contains(Q));!D||ee||(s?.(U),f?.(U),U.defaultPrevented||d?.())},S),I=TO(U=>{const Q=U.target;[...m.branches].some(W=>W.contains(Q))||(c?.(U),f?.(U),U.defaultPrevented||d?.())},S);return bO(U=>{R===m.layers.size-1&&(i?.(U),!U.defaultPrevented&&d&&(U.preventDefault(),d()))},S),g.useEffect(()=>{if(b)return o&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(d0=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(b)),m.layers.add(b),p0(),()=>{o&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=d0)}},[b,S,o,m]),g.useEffect(()=>()=>{b&&(m.layers.delete(b),m.layersWithOutsidePointerEventsDisabled.delete(b),p0())},[b,m]),g.useEffect(()=>{const U=l(()=>w({}),"handleUpdate");return document.addEventListener(sp,U),()=>document.removeEventListener(sp,U)},[]),M.jsx(be.div,{...h,ref:C,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,I.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,j.onPointerDownCapture)})});$a.displayName=SO;var xO="DismissableLayerBranch",o1=g.forwardRef((e,r)=>{const o=g.useContext(r1),i=g.useRef(null),s=Oe(r,i);return g.useEffect(()=>{const c=i.current;if(c)return o.branches.add(c),()=>{o.branches.delete(c)}},[o.branches]),M.jsx(be.div,{...e,ref:s})});o1.displayName=xO;function CO(e,r=globalThis?.document){const o=it(e),i=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const c=l(d=>{if(d.target&&!i.current){let h=l(function(){a1(EO,o,m,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const m={originalEvent:d};d.pointerType==="touch"?(r.removeEventListener("click",s.current),s.current=h,r.addEventListener("click",s.current,{once:!0})):h()}else r.removeEventListener("click",s.current);i.current=!1},"handlePointerDown"),f=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",c),r.removeEventListener("click",s.current)}},[r,o]),{onPointerDownCapture:l(()=>i.current=!0,"onPointerDownCapture")}}l(CO,"usePointerDownOutside");function TO(e,r=globalThis?.document){const o=it(e),i=g.useRef(!1);return g.useEffect(()=>{const s=l(c=>{c.target&&!i.current&&a1(wO,o,{originalEvent:c},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,o]),{onFocusCapture:l(()=>i.current=!0,"onFocusCapture"),onBlurCapture:l(()=>i.current=!1,"onBlurCapture")}}l(TO,"useFocusOutside");function p0(){const e=new CustomEvent(sp);document.dispatchEvent(e)}l(p0,"dispatchUpdate");function a1(e,r,o,{discrete:i}){const s=o.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});r&&s.addEventListener(e,r,{once:!0}),i?$p(s,c):s.dispatchEvent(c)}l(a1,"handleAndDispatchCustomEvent$1");var RO=$a,OO=o1,jd="focusScope.autoFocusOnMount",zd="focusScope.autoFocusOnUnmount",h0={bubbles:!1,cancelable:!0},_O="FocusScope",ku=g.forwardRef((e,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=e,[d,h]=g.useState(null),m=it(s),b=it(c),y=g.useRef(null),S=Oe(r,E=>h(E)),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(i){let E=l(function(A){if(w.paused||!d)return;const D=A.target;d.contains(D)?y.current=D:Yr(y.current,{select:!0})},"handleFocusIn2"),T=l(function(A){if(w.paused||!d)return;const D=A.relatedTarget;D!==null&&(d.contains(D)||Yr(y.current,{select:!0}))},"handleFocusOut2"),O=l(function(A){if(document.activeElement===document.body)for(const j of A)j.removedNodes.length>0&&Yr(d)},"handleMutations2");document.addEventListener("focusin",E),document.addEventListener("focusout",T);const R=new MutationObserver(O);return d&&R.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),R.disconnect()}}},[i,d,w.paused]),g.useEffect(()=>{if(d){v0.add(w);const E=document.activeElement;if(!d.contains(E)){const O=new CustomEvent(jd,h0);d.addEventListener(jd,m),d.dispatchEvent(O),O.defaultPrevented||(AO(LO(i1(d)),{select:!0}),document.activeElement===E&&Yr(d))}return()=>{d.removeEventListener(jd,m),setTimeout(()=>{const O=new CustomEvent(zd,h0);d.addEventListener(zd,b),d.dispatchEvent(O),O.defaultPrevented||Yr(E??document.body,{select:!0}),d.removeEventListener(zd,b),v0.remove(w)},0)}}},[d,m,b,w]);const C=g.useCallback(E=>{if(!o&&!i||w.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,O=document.activeElement;if(T&&O){const R=E.currentTarget,[A,D]=MO(R);A&&D?!E.shiftKey&&O===D?(E.preventDefault(),o&&Yr(A,{select:!0})):E.shiftKey&&O===A&&(E.preventDefault(),o&&Yr(D,{select:!0})):O===R&&E.preventDefault()}},[o,i,w.paused]);return M.jsx(be.div,{tabIndex:-1,...f,ref:S,onKeyDown:C})});ku.displayName=_O;function AO(e,{select:r=!1}={}){const o=document.activeElement;for(const i of e)if(Yr(i,{select:r}),document.activeElement!==o)return}l(AO,"focusFirst$3");function MO(e){const r=i1(e),o=m0(r,e),i=m0(r.reverse(),e);return[o,i]}l(MO,"getTabbableEdges");function i1(e){const r=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l(i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}l(i1,"getTabbableCandidates$1");function m0(e,r){for(const o of e)if(!NO(o,{upTo:r}))return o}l(m0,"findVisible");function NO(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}l(NO,"isHidden");function DO(e){return e instanceof HTMLInputElement&&"select"in e}l(DO,"isSelectableInput");function Yr(e,{select:r=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&DO(e)&&r&&e.select()}}l(Yr,"focus");var v0=PO();function PO(){let e=[];return{add(r){const o=e[0];r!==o&&o?.pause(),e=y0(e,r),e.unshift(r)},remove(r){e=y0(e,r),e[0]?.resume()}}}l(PO,"createFocusScopesStack");function y0(e,r){const o=[...e],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}l(y0,"arrayRemove");function LO(e){return e.filter(r=>r.tagName!=="A")}l(LO,"removeLinks");var jO="Portal",qa=g.forwardRef((e,r)=>{const{container:o,...i}=e,[s,c]=g.useState(!1);lt(()=>c(!0),[]);const f=o||s&&globalThis?.document?.body;return f?rl.createPortal(M.jsx(be.div,{...i,ref:r}),f):null});qa.displayName=jO;function zO(e,r){return g.useReducer((o,i)=>r[o][i]??o,e)}l(zO,"useStateMachine$1");var wt=l(e=>{const{present:r,children:o}=e,i=kO(r),s=typeof o=="function"?o({present:i.isPresent}):g.Children.only(o),c=Oe(i.ref,UO(s));return typeof o=="function"||i.isPresent?g.cloneElement(s,{ref:c}):null},"Presence");wt.displayName="Presence";function kO(e){const[r,o]=g.useState(),i=g.useRef(null),s=g.useRef(e),c=g.useRef("none"),f=e?"mounted":"unmounted",[d,h]=zO(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const m=Zs(i.current);c.current=d==="mounted"?m:"none"},[d]),lt(()=>{const m=i.current,b=s.current;if(b!==e){const S=c.current,w=Zs(m);e?h("MOUNT"):w==="none"||m?.display==="none"?h("UNMOUNT"):h(b&&S!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),lt(()=>{if(r){let m;const b=r.ownerDocument.defaultView??window,y=l(w=>{const E=Zs(i.current).includes(CSS.escape(w.animationName));if(w.target===r&&E&&(h("ANIMATION_END"),!s.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",m=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},"handleAnimationEnd"),S=l(w=>{w.target===r&&(c.current=Zs(i.current))},"handleAnimationStart");return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{b.clearTimeout(m),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:g.useCallback(m=>{i.current=m?getComputedStyle(m):null,o(m)},[])}}l(kO,"usePresence");function Zs(e){return e?.animationName||"none"}l(Zs,"getAnimationName");function UO(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(UO,"getElementRef$4");var kd=0;function qp(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??g0()),document.body.insertAdjacentElement("beforeend",e[1]??g0()),kd++,()=>{kd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),kd--}},[])}l(qp,"useFocusGuards");function g0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}l(g0,"createFocusGuard");var Hn=l(function(){return Hn=Object.assign||l(function(r){for(var o,i=1,s=arguments.length;i<s;i++){o=arguments[i];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}return r},"__assign2"),Hn.apply(this,arguments)},"__assign");function l1(e,r){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)r.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(o[i[s]]=e[i[s]]);return o}l(l1,"__rest");function HO(e,r,o){if(o||arguments.length===2)for(var i=0,s=r.length,c;i<s;i++)(c||!(i in r))&&(c||(c=Array.prototype.slice.call(r,0,i)),c[i]=r[i]);return e.concat(c||Array.prototype.slice.call(r))}l(HO,"__spreadArray");var cu="right-scroll-bar-position",fu="width-before-scroll-bar",BO="with-scroll-bars-hidden",IO="--removed-body-scroll-bar-size";function Ud(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}l(Ud,"assignRef");function FO(e,r){var o=g.useState(function(){return{value:e,callback:r,facade:{get current(){return o.value},set current(i){var s=o.value;s!==i&&(o.value=i,o.callback(i,s))}}}})[0];return o.callback=r,o.facade}l(FO,"useCallbackRef");var $O=typeof window<"u"?g.useLayoutEffect:g.useEffect,b0=new WeakMap;function qO(e,r){var o=FO(null,function(i){return e.forEach(function(s){return Ud(s,i)})});return $O(function(){var i=b0.get(o);if(i){var s=new Set(i),c=new Set(e),f=o.current;s.forEach(function(d){c.has(d)||Ud(d,null)}),c.forEach(function(d){s.has(d)||Ud(d,f)})}b0.set(o,e)},[e]),o}l(qO,"useMergeRefs");function GO(e){return e}l(GO,"ItoI");function VO(e,r){r===void 0&&(r=GO);var o=[],i=!1,s={read:l(function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},"read"),useMedium:l(function(c){var f=r(c,i);return o.push(f),function(){o=o.filter(function(d){return d!==f})}},"useMedium"),assignSyncMedium:l(function(c){for(i=!0;o.length;){var f=o;o=[],f.forEach(c)}o={push:l(function(d){return c(d)},"push"),filter:l(function(){return o},"filter")}},"assignSyncMedium"),assignMedium:l(function(c){i=!0;var f=[];if(o.length){var d=o;o=[],d.forEach(c),f=o}var h=l(function(){var b=f;f=[],b.forEach(c)},"executeQueue"),m=l(function(){return Promise.resolve().then(h)},"cycle");m(),o={push:l(function(b){f.push(b),m()},"push"),filter:l(function(b){return f=f.filter(b),o},"filter")}},"assignMedium")};return s}l(VO,"innerCreateMedium");function YO(e){e===void 0&&(e={});var r=VO(null);return r.options=Hn({async:!0,ssr:!1},e),r}l(YO,"createSidecarMedium");var s1=l(function(e){var r=e.sideCar,o=l1(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return g.createElement(i,Hn({},o))},"SideCar$1");s1.isSideCarExport=!0;function QO(e,r){return e.useMedium(r),s1}l(QO,"exportSidecar");var u1=YO(),Hd=l(function(){},"nothing"),Uu=g.forwardRef(function(e,r){var o=g.useRef(null),i=g.useState({onScrollCapture:Hd,onWheelCapture:Hd,onTouchMoveCapture:Hd}),s=i[0],c=i[1],f=e.forwardProps,d=e.children,h=e.className,m=e.removeScrollBar,b=e.enabled,y=e.shards,S=e.sideCar,w=e.noRelative,C=e.noIsolation,E=e.inert,T=e.allowPinchZoom,O=e.as,R=O===void 0?"div":O,A=e.gapMode,D=l1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=S,I=qO([o,r]),U=Hn(Hn({},D),s);return g.createElement(g.Fragment,null,b&&g.createElement(j,{sideCar:u1,removeScrollBar:m,shards:y,noRelative:w,noIsolation:C,inert:E,setCallbacks:c,allowPinchZoom:!!T,lockRef:o,gapMode:A}),f?g.cloneElement(g.Children.only(d),Hn(Hn({},U),{ref:I})):g.createElement(R,Hn({},U,{className:h,ref:I}),d))});Uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uu.classNames={fullWidth:fu,zeroRight:cu};var KO=l(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function XO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=KO();return r&&e.setAttribute("nonce",r),e}l(XO,"makeStyleTag");function WO(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}l(WO,"injectStyles");function ZO(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}l(ZO,"insertStyleTag");var JO=l(function(){var e=0,r=null;return{add:l(function(o){e==0&&(r=XO())&&(WO(r,o),ZO(r)),e++},"add"),remove:l(function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)},"remove")}},"stylesheetSingleton"),e_=l(function(){var e=JO();return function(r,o){g.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&o])}},"styleHookSingleton"),c1=l(function(){var e=e_(),r=l(function(o){var i=o.styles,s=o.dynamic;return e(i,s),null},"Sheet");return r},"styleSingleton"),t_={left:0,top:0,right:0,gap:0},Bd=l(function(e){return parseInt(e||"",10)||0},"parse"),n_=l(function(e){var r=window.getComputedStyle(document.body),o=r[e==="padding"?"paddingLeft":"marginLeft"],i=r[e==="padding"?"paddingTop":"marginTop"],s=r[e==="padding"?"paddingRight":"marginRight"];return[Bd(o),Bd(i),Bd(s)]},"getOffset"),r_=l(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return t_;var r=n_(e),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},"getGapWidth"),o_=c1(),Da="data-scroll-locked",a_=l(function(e,r,o,i){var s=e.left,c=e.top,f=e.right,d=e.gap;return o===void 0&&(o="margin"),`
10
- .`.concat(BO,` {
11
- overflow: hidden `).concat(i,`;
12
- padding-right: `).concat(d,"px ").concat(i,`;
13
- }
14
- body[`).concat(Da,`] {
15
- overflow: hidden `).concat(i,`;
16
- overscroll-behavior: contain;
17
- `).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
18
- padding-left: `.concat(s,`px;
19
- padding-top: `).concat(c,`px;
20
- padding-right: `).concat(f,`px;
21
- margin-left:0;
22
- margin-top:0;
23
- margin-right: `).concat(d,"px ").concat(i,`;
24
- `),o==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
25
- }
26
-
27
- .`).concat(cu,` {
28
- right: `).concat(d,"px ").concat(i,`;
29
- }
30
-
31
- .`).concat(fu,` {
32
- margin-right: `).concat(d,"px ").concat(i,`;
33
- }
34
-
35
- .`).concat(cu," .").concat(cu,` {
36
- right: 0 `).concat(i,`;
37
- }
38
-
39
- .`).concat(fu," .").concat(fu,` {
40
- margin-right: 0 `).concat(i,`;
41
- }
42
-
43
- body[`).concat(Da,`] {
44
- `).concat(IO,": ").concat(d,`px;
45
- }
46
- `)},"getStyles$2"),S0=l(function(){var e=parseInt(document.body.getAttribute(Da)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),i_=l(function(){g.useEffect(function(){return document.body.setAttribute(Da,(S0()+1).toString()),function(){var e=S0()-1;e<=0?document.body.removeAttribute(Da):document.body.setAttribute(Da,e.toString())}},[])},"useLockAttribute"),l_=l(function(e){var r=e.noRelative,o=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;i_();var c=g.useMemo(function(){return r_(s)},[s]);return g.createElement(o_,{styles:a_(c,!r,s,o?"":"!important")})},"RemoveScrollBar"),up=!1;if(typeof window<"u")try{var Js=Object.defineProperty({},"passive",{get:l(function(){return up=!0,!0},"get")});window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{up=!1}var Ra=up?{passive:!1}:!1,s_=l(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),f1=l(function(e,r){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!s_(e)&&o[r]==="visible")},"elementCanBeScrolled"),u_=l(function(e){return f1(e,"overflowY")},"elementCouldBeVScrolled"),c_=l(function(e){return f1(e,"overflowX")},"elementCouldBeHScrolled"),E0=l(function(e,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=d1(e,i);if(s){var c=p1(e,i),f=c[1],d=c[2];if(f>d)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},"locationCouldBeScrolled"),f_=l(function(e){var r=e.scrollTop,o=e.scrollHeight,i=e.clientHeight;return[r,o,i]},"getVScrollVariables"),d_=l(function(e){var r=e.scrollLeft,o=e.scrollWidth,i=e.clientWidth;return[r,o,i]},"getHScrollVariables"),d1=l(function(e,r){return e==="v"?u_(r):c_(r)},"elementCouldBeScrolled"),p1=l(function(e,r){return e==="v"?f_(r):d_(r)},"getScrollVariables"),p_=l(function(e,r){return e==="h"&&r==="rtl"?-1:1},"getDirectionFactor"),h_=l(function(e,r,o,i,s){var c=p_(e,window.getComputedStyle(r).direction),f=c*i,d=o.target,h=r.contains(d),m=!1,b=f>0,y=0,S=0;do{if(!d)break;var w=p1(e,d),C=w[0],E=w[1],T=w[2],O=E-T-c*C;(C||O)&&d1(e,d)&&(y+=O,S+=C);var R=d.parentNode;d=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!h&&d!==document.body||h&&(r.contains(d)||r===d));return(b&&Math.abs(y)<1||!b&&Math.abs(S)<1)&&(m=!0),m},"handleScroll"),eu=l(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),w0=l(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),x0=l(function(e){return e&&"current"in e?e.current:e},"extractRef"),m_=l(function(e,r){return e[0]===r[0]&&e[1]===r[1]},"deltaCompare"),v_=l(function(e){return`
47
- .block-interactivity-`.concat(e,` {pointer-events: none;}
48
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
49
- `)},"generateStyle"),y_=0,Oa=[];function g_(e){var r=g.useRef([]),o=g.useRef([0,0]),i=g.useRef(),s=g.useState(y_++)[0],c=g.useState(c1)[0],f=g.useRef(e);g.useEffect(function(){f.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var E=HO([e.lockRef.current],(e.shards||[]).map(x0),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var d=g.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!f.current.allowPinchZoom;var O=eu(E),R=o.current,A="deltaX"in E?E.deltaX:R[0]-O[0],D="deltaY"in E?E.deltaY:R[1]-O[1],j,I=E.target,U=Math.abs(A)>Math.abs(D)?"h":"v";if("touches"in E&&U==="h"&&I.type==="range")return!1;var Q=window.getSelection(),ee=Q&&Q.anchorNode,W=ee?ee===I||ee.contains(I):!1;if(W)return!1;var oe=E0(U,I);if(!oe)return!0;if(oe?j=U:(j=U==="v"?"h":"v",oe=E0(U,I)),!oe)return!1;if(!i.current&&"changedTouches"in E&&(A||D)&&(i.current=j),!j)return!0;var ue=i.current||j;return h_(ue,T,E,ue==="h"?A:D)},[]),h=g.useCallback(function(E){var T=E;if(!(!Oa.length||Oa[Oa.length-1]!==c)){var O="deltaY"in T?w0(T):eu(T),R=r.current.filter(function(j){return j.name===T.type&&(j.target===T.target||T.target===j.shadowParent)&&m_(j.delta,O)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var A=(f.current.shards||[]).map(x0).filter(Boolean).filter(function(j){return j.contains(T.target)}),D=A.length>0?d(T,A[0]):!f.current.noIsolation;D&&T.cancelable&&T.preventDefault()}}},[]),m=g.useCallback(function(E,T,O,R){var A={name:E,delta:T,target:O,should:R,shadowParent:b_(O)};r.current.push(A),setTimeout(function(){r.current=r.current.filter(function(D){return D!==A})},1)},[]),b=g.useCallback(function(E){o.current=eu(E),i.current=void 0},[]),y=g.useCallback(function(E){m(E.type,w0(E),E.target,d(E,e.lockRef.current))},[]),S=g.useCallback(function(E){m(E.type,eu(E),E.target,d(E,e.lockRef.current))},[]);g.useEffect(function(){return Oa.push(c),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Ra),document.addEventListener("touchmove",h,Ra),document.addEventListener("touchstart",b,Ra),function(){Oa=Oa.filter(function(E){return E!==c}),document.removeEventListener("wheel",h,Ra),document.removeEventListener("touchmove",h,Ra),document.removeEventListener("touchstart",b,Ra)}},[]);var w=e.removeScrollBar,C=e.inert;return g.createElement(g.Fragment,null,C?g.createElement(c,{styles:v_(s)}):null,w?g.createElement(l_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}l(g_,"RemoveScrollSideCar");function b_(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}l(b_,"getOutermostShadowParent");const S_=QO(u1,g_);var Hu=g.forwardRef(function(e,r){return g.createElement(Uu,Hn({},e,{ref:r,sideCar:S_}))});Hu.classNames=Uu.classNames;var E_=l(function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},"getDefaultParent"),_a=new WeakMap,tu=new WeakMap,nu={},Id=0,h1=l(function(e){return e&&(e.host||h1(e.parentNode))},"unwrapHost"),w_=l(function(e,r){return r.map(function(o){if(e.contains(o))return o;var i=h1(o);return i&&e.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},"correctTargets"),x_=l(function(e,r,o,i){var s=w_(r,Array.isArray(e)?e:[e]);nu[o]||(nu[o]=new WeakMap);var c=nu[o],f=[],d=new Set,h=new Set(s),m=l(function(y){!y||d.has(y)||(d.add(y),m(y.parentNode))},"keep");s.forEach(m);var b=l(function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(S){if(d.has(S))b(S);else try{var w=S.getAttribute(i),C=w!==null&&w!=="false",E=(_a.get(S)||0)+1,T=(c.get(S)||0)+1;_a.set(S,E),c.set(S,T),f.push(S),E===1&&C&&tu.set(S,!0),T===1&&S.setAttribute(o,"true"),C||S.setAttribute(i,"true")}catch(O){console.error("aria-hidden: cannot operate on ",S,O)}})},"deep");return b(r),d.clear(),Id++,function(){f.forEach(function(y){var S=_a.get(y)-1,w=c.get(y)-1;_a.set(y,S),c.set(y,w),S||(tu.has(y)||y.removeAttribute(i),tu.delete(y)),w||y.removeAttribute(o)}),Id--,Id||(_a=new WeakMap,_a=new WeakMap,tu=new WeakMap,nu={})}},"applyAttributeToOthers"),Gp=l(function(e,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=E_(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),x_(i,s,o,"aria-hidden")):function(){return null}},"hideOthers");function C_(e){const r=T_(e),o=g.forwardRef((i,s)=>{const{children:c,...f}=i,d=g.Children.toArray(c),h=d.find(O_);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(C_,"createSlot$3");function T_(e){const r=g.forwardRef((o,i)=>{const{children:s,...c}=o;if(g.isValidElement(s)){const f=A_(s),d=__(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(T_,"createSlotClone$3");var R_=Symbol("radix.slottable");function O_(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R_}l(O_,"isSlottable$3");function __(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(__,"mergeProps$3");function A_(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(A_,"getElementRef$3");var Bu="Dialog",[m1,v1]=It(Bu),[M_,Mn]=m1(Bu),y1=l(e=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=g.useRef(null),h=g.useRef(null),[m,b]=Gn({prop:i,defaultProp:s??!1,onChange:c,caller:Bu});return M.jsx(M_,{scope:r,triggerRef:d,contentRef:h,contentId:hn(),titleId:hn(),descriptionId:hn(),open:m,onOpenChange:b,onOpenToggle:g.useCallback(()=>b(y=>!y),[b]),modal:f,children:o})},"Dialog");y1.displayName=Bu;var g1="DialogTrigger",b1=g.forwardRef((e,r)=>{const{__scopeDialog:o,...i}=e,s=Mn(g1,o),c=Oe(r,s.triggerRef);return M.jsx(be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Qp(s.open),...i,ref:c,onClick:ie(e.onClick,s.onOpenToggle)})});b1.displayName=g1;var Vp="DialogPortal",[N_,S1]=m1(Vp,{forceMount:void 0}),E1=l(e=>{const{__scopeDialog:r,forceMount:o,children:i,container:s}=e,c=Mn(Vp,r);return M.jsx(N_,{scope:r,forceMount:o,children:g.Children.map(i,f=>M.jsx(wt,{present:o||c.open,children:M.jsx(qa,{asChild:!0,container:s,children:f})}))})},"DialogPortal");E1.displayName=Vp;var bu="DialogOverlay",w1=g.forwardRef((e,r)=>{const o=S1(bu,e.__scopeDialog),{forceMount:i=o.forceMount,...s}=e,c=Mn(bu,e.__scopeDialog);return c.modal?M.jsx(wt,{present:i||c.open,children:M.jsx(P_,{...s,ref:r})}):null});w1.displayName=bu;var D_=C_("DialogOverlay.RemoveScroll"),P_=g.forwardRef((e,r)=>{const{__scopeDialog:o,...i}=e,s=Mn(bu,o);return M.jsx(Hu,{as:D_,allowPinchZoom:!0,shards:[s.contentRef],children:M.jsx(be.div,{"data-state":Qp(s.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),_o="DialogContent",x1=g.forwardRef((e,r)=>{const o=S1(_o,e.__scopeDialog),{forceMount:i=o.forceMount,...s}=e,c=Mn(_o,e.__scopeDialog);return M.jsx(wt,{present:i||c.open,children:c.modal?M.jsx(L_,{...s,ref:r}):M.jsx(j_,{...s,ref:r})})});x1.displayName=_o;var L_=g.forwardRef((e,r)=>{const o=Mn(_o,e.__scopeDialog),i=g.useRef(null),s=Oe(r,o.contentRef,i);return g.useEffect(()=>{const c=i.current;if(c)return Gp(c)},[]),M.jsx(C1,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,c=>{c.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&c.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,c=>c.preventDefault())})}),j_=g.forwardRef((e,r)=>{const o=Mn(_o,e.__scopeDialog),i=g.useRef(!1),s=g.useRef(!1);return M.jsx(C1,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l(c=>{e.onCloseAutoFocus?.(c),c.defaultPrevented||(i.current||o.triggerRef.current?.focus(),c.preventDefault()),i.current=!1,s.current=!1},"onCloseAutoFocus"),onInteractOutside:l(c=>{e.onInteractOutside?.(c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;o.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()},"onInteractOutside")})}),C1=g.forwardRef((e,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=e,d=Mn(_o,o),h=g.useRef(null),m=Oe(r,h);return qp(),M.jsxs(M.Fragment,{children:[M.jsx(ku,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:M.jsx($a,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Qp(d.open),...f,ref:m,onDismiss:l(()=>d.onOpenChange(!1),"onDismiss")})}),M.jsxs(M.Fragment,{children:[M.jsx(k_,{titleId:d.titleId}),M.jsx(H_,{contentRef:h,descriptionId:d.descriptionId})]})]})}),Yp="DialogTitle",T1=g.forwardRef((e,r)=>{const{__scopeDialog:o,...i}=e,s=Mn(Yp,o);return M.jsx(be.h2,{id:s.titleId,...i,ref:r})});T1.displayName=Yp;var R1="DialogDescription",O1=g.forwardRef((e,r)=>{const{__scopeDialog:o,...i}=e,s=Mn(R1,o);return M.jsx(be.p,{id:s.descriptionId,...i,ref:r})});O1.displayName=R1;var _1="DialogClose",A1=g.forwardRef((e,r)=>{const{__scopeDialog:o,...i}=e,s=Mn(_1,o);return M.jsx(be.button,{type:"button",...i,ref:r,onClick:ie(e.onClick,()=>s.onOpenChange(!1))})});A1.displayName=_1;function Qp(e){return e?"open":"closed"}l(Qp,"getState$2");var M1="DialogTitleWarning",[z_,N1]=aO(M1,{contentName:_o,titleName:Yp,docsSlug:"dialog"}),k_=l(({titleId:e})=>{const r=N1(M1),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
50
-
51
- If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
52
-
53
- For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},"TitleWarning"),U_="DialogDescriptionWarning",H_=l(({contentRef:e,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N1(U_).contentName}}.`;return g.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");r&&s&&(document.getElementById(r)||console.warn(i))},[i,e,r]),null},"DescriptionWarning$1"),B_=y1,I_=b1,F_=E1,$_=w1,q_=x1,G_=T1,V_=O1,D1=A1;const Y_=l(e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),"toKebabCase"),Q_=l(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.toUpperCase():o.toLowerCase()),"toCamelCase"),C0=l(e=>{const r=Q_(e);return r.charAt(0).toUpperCase()+r.slice(1)},"toPascalCase"),P1=l((...e)=>e.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim(),"mergeClasses"),K_=l(e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0},"hasA11yProp");var X_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const W_=g.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:f,...d},h)=>g.createElement("svg",{ref:h,...X_,width:r,height:r,stroke:e,strokeWidth:i?Number(o)*24/Number(r):o,className:P1("lucide",s),...!c&&!K_(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,b])=>g.createElement(m,b)),...Array.isArray(c)?c:[c]]));const le=l((e,r)=>{const o=g.forwardRef(({className:i,...s},c)=>g.createElement(W_,{ref:c,iconNode:r,className:P1(`lucide-${Y_(C0(e))}`,`lucide-${e}`,i),...s}));return o.displayName=C0(e),o},"createLucideIcon");const Z_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$8=le("activity",Z_);const J_=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],q8=le("arrow-down-to-line",J_);const eA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],G8=le("arrow-down",eA);const tA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],V8=le("arrow-left",tA);const nA=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Y8=le("arrow-right-left",nA);const rA=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],Q8=le("arrow-up-from-line",rA);const oA=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],K8=le("book",oA);const aA=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],X8=le("bot",aA);const iA=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],W8=le("brain",iA);const lA=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],Z8=le("chart-no-axes-column",lA);const sA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],J8=le("check",sA);const uA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ez=le("chevron-down",uA);const cA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tz=le("chevron-left",cA);const fA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],nz=le("chevron-right",fA);const dA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rz=le("chevron-up",dA);const pA=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],oz=le("chevrons-down-up",pA);const hA=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],az=le("chevrons-up-down",hA);const mA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],iz=le("circle-alert",mA);const vA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],lz=le("circle-check-big",vA);const yA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],sz=le("circle-dot",yA);const gA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],uz=le("circle-question-mark",gA);const bA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],cz=le("circle-stop",bA);const SA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],fz=le("circle-x",SA);const EA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dz=le("clock",EA);const wA=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],pz=le("cloud-upload",wA);const xA=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],hz=le("code",xA);const CA=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],mz=le("cog",CA);const TA=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],vz=le("coins",TA);const RA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],yz=le("columns-3",RA);const OA=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gz=le("copy",OA);const _A=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],bz=le("database",_A);const AA=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Sz=le("download",AA);const MA=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Ez=le("ellipsis-vertical",MA);const NA=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],wz=le("ellipsis",NA);const DA=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],xz=le("eraser",DA);const PA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Cz=le("external-link",PA);const LA=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Tz=le("eye-off",LA);const jA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rz=le("eye",jA);const zA=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Oz=le("file-text",zA);const kA=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],_z=le("funnel",kA);const UA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Az=le("globe",UA);const HA=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Mz=le("grip-vertical",HA);const BA=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Nz=le("house",BA);const IA=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Dz=le("image-plus",IA);const FA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Pz=le("image",FA);const $A=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Lz=le("info",$A);const qA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],jz=le("link",qA);const GA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zz=le("loader-circle",GA);const VA=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],kz=le("loader",VA);const YA=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Uz=le("menu",YA);const QA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Hz=le("mic",QA);const KA=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],Bz=le("move-horizontal",KA);const XA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Iz=le("panel-left",XA);const WA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],Fz=le("panel-right-close",WA);const ZA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],$z=le("panel-right",ZA);const JA=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],qz=le("paperclip",JA);const eM=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Gz=le("pen-line",eM);const tM=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Vz=le("pencil",tM);const nM=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Yz=le("play",nM);const rM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qz=le("plus",rM);const oM=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Kz=le("refresh-ccw",oM);const aM=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Xz=le("refresh-cw",aM);const iM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Wz=le("rotate-ccw",iM);const lM=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Zz=le("save",lM);const sM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jz=le("search",sM);const uM=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],e9=le("send",uM);const cM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],t9=le("settings",cM);const fM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],n9=le("shield-check",fM);const dM=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],r9=le("square-pen",dM);const pM=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],o9=le("square-terminal",pM);const hM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],a9=le("square",hM);const mM=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],i9=le("tags",mM);const vM=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],l9=le("terminal",vM);const yM=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s9=le("trash-2",yM);const gM=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],u9=le("trash",gM);const bM=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],c9=le("triangle-alert",bM);const SM=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],f9=le("upload",SM);const EM=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],d9=le("user",EM);const wM=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],p9=le("volume-2",wM);const xM=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],h9=le("wrench",xM);const CM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],m9=le("x",CM);const TM=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],v9=le("zap",TM),RM=["top","right","bottom","left"],Xr=Math.min,Zt=Math.max,Su=Math.round,ru=Math.floor,qn=l(e=>({x:e,y:e}),"createCoords"),OM={left:"right",right:"left",bottom:"top",top:"bottom"},_M={start:"end",end:"start"};function cp(e,r,o){return Zt(e,Xr(r,o))}l(cp,"clamp");function yr(e,r){return typeof e=="function"?e(r):e}l(yr,"evaluate");function gr(e){return e.split("-")[0]}l(gr,"getSide");function Ga(e){return e.split("-")[1]}l(Ga,"getAlignment");function Kp(e){return e==="x"?"y":"x"}l(Kp,"getOppositeAxis");function Xp(e){return e==="y"?"height":"width"}l(Xp,"getAxisLength");const AM=new Set(["top","bottom"]);function Bn(e){return AM.has(gr(e))?"y":"x"}l(Bn,"getSideAxis");function Wp(e){return Kp(Bn(e))}l(Wp,"getAlignmentAxis");function MM(e,r,o){o===void 0&&(o=!1);const i=Ga(e),s=Wp(e),c=Xp(s);let f=s==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(f=Eu(f)),[f,Eu(f)]}l(MM,"getAlignmentSides");function NM(e){const r=Eu(e);return[fp(e),r,fp(r)]}l(NM,"getExpandedPlacements");function fp(e){return e.replace(/start|end/g,r=>_M[r])}l(fp,"getOppositeAlignmentPlacement");const T0=["left","right"],R0=["right","left"],DM=["top","bottom"],PM=["bottom","top"];function LM(e,r,o){switch(e){case"top":case"bottom":return o?r?R0:T0:r?T0:R0;case"left":case"right":return r?DM:PM;default:return[]}}l(LM,"getSideList");function jM(e,r,o,i){const s=Ga(e);let c=LM(gr(e),o==="start",i);return s&&(c=c.map(f=>f+"-"+s),r&&(c=c.concat(c.map(fp)))),c}l(jM,"getOppositeAxisPlacements");function Eu(e){return e.replace(/left|right|bottom|top/g,r=>OM[r])}l(Eu,"getOppositePlacement$1");function zM(e){return{top:0,right:0,bottom:0,left:0,...e}}l(zM,"expandPaddingObject");function L1(e){return typeof e!="number"?zM(e):{top:e,right:e,bottom:e,left:e}}l(L1,"getPaddingObject");function wu(e){const{x:r,y:o,width:i,height:s}=e;return{width:i,height:s,top:o,left:r,right:r+i,bottom:o+s,x:r,y:o}}l(wu,"rectToClientRect");function O0(e,r,o){let{reference:i,floating:s}=e;const c=Bn(r),f=Wp(r),d=Xp(f),h=gr(r),m=c==="y",b=i.x+i.width/2-s.width/2,y=i.y+i.height/2-s.height/2,S=i[d]/2-s[d]/2;let w;switch(h){case"top":w={x:b,y:i.y-s.height};break;case"bottom":w={x:b,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-s.width,y};break;default:w={x:i.x,y:i.y}}switch(Ga(r)){case"start":w[f]-=S*(o&&m?-1:1);break;case"end":w[f]+=S*(o&&m?-1:1);break}return w}l(O0,"computeCoordsFromPlacement");const kM=l(async(e,r,o)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:f}=o,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(r));let m=await f.getElementRects({reference:e,floating:r,strategy:s}),{x:b,y}=O0(m,i,h),S=i,w={},C=0;for(let E=0;E<d.length;E++){const{name:T,fn:O}=d[E],{x:R,y:A,data:D,reset:j}=await O({x:b,y,initialPlacement:i,placement:S,strategy:s,middlewareData:w,rects:m,platform:f,elements:{reference:e,floating:r}});b=R??b,y=A??y,w={...w,[T]:{...w[T],...D}},j&&C<=50&&(C++,typeof j=="object"&&(j.placement&&(S=j.placement),j.rects&&(m=j.rects===!0?await f.getElementRects({reference:e,floating:r,strategy:s}):j.rects),{x:b,y}=O0(m,S,h)),E=-1)}return{x:b,y,placement:S,strategy:s,middlewareData:w}},"computePosition$1");async function al(e,r){var o;r===void 0&&(r={});const{x:i,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:S=!1,padding:w=0}=yr(r,e),C=L1(w),T=d[S?y==="floating"?"reference":"floating":y],O=wu(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(T)))==null||o?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:m,rootBoundary:b,strategy:h})),R=y==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),D=await(c.isElement==null?void 0:c.isElement(A))?await(c.getScale==null?void 0:c.getScale(A))||{x:1,y:1}:{x:1,y:1},j=wu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:A,strategy:h}):R);return{top:(O.top-j.top+C.top)/D.y,bottom:(j.bottom-O.bottom+C.bottom)/D.y,left:(O.left-j.left+C.left)/D.x,right:(j.right-O.right+C.right)/D.x}}l(al,"detectOverflow");const UM=l(e=>({name:"arrow",options:e,async fn(r){const{x:o,y:i,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=r,{element:m,padding:b=0}=yr(e,r)||{};if(m==null)return{};const y=L1(b),S={x:o,y:i},w=Wp(s),C=Xp(w),E=await f.getDimensions(m),T=w==="y",O=T?"top":"left",R=T?"bottom":"right",A=T?"clientHeight":"clientWidth",D=c.reference[C]+c.reference[w]-S[w]-c.floating[C],j=S[w]-c.reference[w],I=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let U=I?I[A]:0;(!U||!await(f.isElement==null?void 0:f.isElement(I)))&&(U=d.floating[A]||c.floating[C]);const Q=D/2-j/2,ee=U/2-E[C]/2-1,W=Xr(y[O],ee),oe=Xr(y[R],ee),ue=W,ve=U-E[C]-oe,ne=U/2-E[C]/2+Q,me=cp(ue,ne,ve),z=!h.arrow&&Ga(s)!=null&&ne!==me&&c.reference[C]/2-(ne<ue?W:oe)-E[C]/2<0,Y=z?ne<ue?ne-ue:ne-ve:0;return{[w]:S[w]+Y,data:{[w]:me,centerOffset:ne-me-Y,...z&&{alignmentOffset:Y}},reset:z}}}),"arrow$4"),HM=l(function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var o,i;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:m}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...T}=yr(e,r);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const O=gr(s),R=Bn(d),A=gr(d)===d,D=await(h.isRTL==null?void 0:h.isRTL(m.floating)),j=S||(A||!E?[Eu(d)]:NM(d)),I=C!=="none";!S&&I&&j.push(...jM(d,E,C,D));const U=[d,...j],Q=await al(r,T),ee=[];let W=((i=c.flip)==null?void 0:i.overflows)||[];if(b&&ee.push(Q[O]),y){const ne=MM(s,f,D);ee.push(Q[ne[0]],Q[ne[1]])}if(W=[...W,{placement:s,overflows:ee}],!ee.every(ne=>ne<=0)){var oe,ue;const ne=(((oe=c.flip)==null?void 0:oe.index)||0)+1,me=U[ne];if(me&&(!(y==="alignment"?R!==Bn(me):!1)||W.every(Z=>Bn(Z.placement)===R?Z.overflows[0]>0:!0)))return{data:{index:ne,overflows:W},reset:{placement:me}};let z=(ue=W.filter(Y=>Y.overflows[0]<=0).sort((Y,Z)=>Y.overflows[1]-Z.overflows[1])[0])==null?void 0:ue.placement;if(!z)switch(w){case"bestFit":{var ve;const Y=(ve=W.filter(Z=>{if(I){const J=Bn(Z.placement);return J===R||J==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(J=>J>0).reduce((J,ye)=>J+ye,0)]).sort((Z,J)=>Z[1]-J[1])[0])==null?void 0:ve[0];Y&&(z=Y);break}case"initialPlacement":z=d;break}if(s!==z)return{reset:{placement:z}}}return{}}}},"flip$3");function _0(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}l(_0,"getSideOffsets");function A0(e){return RM.some(r=>e[r]>=0)}l(A0,"isAnySideFullyClipped");const BM=l(function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:o}=r,{strategy:i="referenceHidden",...s}=yr(e,r);switch(i){case"referenceHidden":{const c=await al(r,{...s,elementContext:"reference"}),f=_0(c,o.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:A0(f)}}}case"escaped":{const c=await al(r,{...s,altBoundary:!0}),f=_0(c,o.floating);return{data:{escapedOffsets:f,escaped:A0(f)}}}default:return{}}}}},"hide$3"),j1=new Set(["left","top"]);async function IM(e,r){const{placement:o,platform:i,elements:s}=e,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=gr(o),d=Ga(o),h=Bn(o)==="y",m=j1.has(f)?-1:1,b=c&&h?-1:1,y=yr(r,e);let{mainAxis:S,crossAxis:w,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof C=="number"&&(w=d==="end"?C*-1:C),h?{x:w*b,y:S*m}:{x:S*m,y:w*b}}l(IM,"convertValueToCoords");const FM=l(function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var o,i;const{x:s,y:c,placement:f,middlewareData:d}=r,h=await IM(r,e);return f===((o=d.offset)==null?void 0:o.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},"offset$3"),$M=l(function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:o,y:i,placement:s}=r,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:l(T=>{let{x:O,y:R}=T;return{x:O,y:R}},"fn")},...h}=yr(e,r),m={x:o,y:i},b=await al(r,h),y=Bn(gr(s)),S=Kp(y);let w=m[S],C=m[y];if(c){const T=S==="y"?"top":"left",O=S==="y"?"bottom":"right",R=w+b[T],A=w-b[O];w=cp(R,w,A)}if(f){const T=y==="y"?"top":"left",O=y==="y"?"bottom":"right",R=C+b[T],A=C-b[O];C=cp(R,C,A)}const E=d.fn({...r,[S]:w,[y]:C});return{...E,data:{x:E.x-o,y:E.y-i,enabled:{[S]:c,[y]:f}}}}}},"shift$3"),qM=l(function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:o,y:i,placement:s,rects:c,middlewareData:f}=r,{offset:d=0,mainAxis:h=!0,crossAxis:m=!0}=yr(e,r),b={x:o,y:i},y=Bn(s),S=Kp(y);let w=b[S],C=b[y];const E=yr(d,r),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(h){const A=S==="y"?"height":"width",D=c.reference[S]-c.floating[A]+T.mainAxis,j=c.reference[S]+c.reference[A]-T.mainAxis;w<D?w=D:w>j&&(w=j)}if(m){var O,R;const A=S==="y"?"width":"height",D=j1.has(gr(s)),j=c.reference[y]-c.floating[A]+(D&&((O=f.offset)==null?void 0:O[y])||0)+(D?0:T.crossAxis),I=c.reference[y]+c.reference[A]+(D?0:((R=f.offset)==null?void 0:R[y])||0)-(D?T.crossAxis:0);C<j?C=j:C>I&&(C=I)}return{[S]:w,[y]:C}}}},"limitShift$2"),GM=l(function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var o,i;const{placement:s,rects:c,platform:f,elements:d}=r,{apply:h=l(()=>{},"apply"),...m}=yr(e,r),b=await al(r,m),y=gr(s),S=Ga(s),w=Bn(s)==="y",{width:C,height:E}=c.floating;let T,O;y==="top"||y==="bottom"?(T=y,O=S===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(O=y,T=S==="end"?"top":"bottom");const R=E-b.top-b.bottom,A=C-b.left-b.right,D=Xr(E-b[T],R),j=Xr(C-b[O],A),I=!r.middlewareData.shift;let U=D,Q=j;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(Q=A),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(U=R),I&&!S){const W=Zt(b.left,0),oe=Zt(b.right,0),ue=Zt(b.top,0),ve=Zt(b.bottom,0);w?Q=C-2*(W!==0||oe!==0?W+oe:Zt(b.left,b.right)):U=E-2*(ue!==0||ve!==0?ue+ve:Zt(b.top,b.bottom))}await h({...r,availableWidth:Q,availableHeight:U});const ee=await f.getDimensions(d.floating);return C!==ee.width||E!==ee.height?{reset:{rects:!0}}:{}}}},"size$2");function Iu(){return typeof window<"u"}l(Iu,"hasWindow");function Va(e){return z1(e)?(e.nodeName||"").toLowerCase():"#document"}l(Va,"getNodeName");function Jt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}l(Jt,"getWindow$1");function Yn(e){var r;return(r=(z1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}l(Yn,"getDocumentElement");function z1(e){return Iu()?e instanceof Node||e instanceof Jt(e).Node:!1}l(z1,"isNode");function _n(e){return Iu()?e instanceof Element||e instanceof Jt(e).Element:!1}l(_n,"isElement");function Vn(e){return Iu()?e instanceof HTMLElement||e instanceof Jt(e).HTMLElement:!1}l(Vn,"isHTMLElement$1");function M0(e){return!Iu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jt(e).ShadowRoot}l(M0,"isShadowRoot");const VM=new Set(["inline","contents"]);function gl(e){const{overflow:r,overflowX:o,overflowY:i,display:s}=An(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!VM.has(s)}l(gl,"isOverflowElement");const YM=new Set(["table","td","th"]);function QM(e){return YM.has(Va(e))}l(QM,"isTableElement");const KM=[":popover-open",":modal"];function Fu(e){return KM.some(r=>{try{return e.matches(r)}catch{return!1}})}l(Fu,"isTopLayer");const XM=["transform","translate","scale","rotate","perspective"],WM=["transform","translate","scale","rotate","perspective","filter"],ZM=["paint","layout","strict","content"];function Zp(e){const r=Jp(),o=_n(e)?An(e):e;return XM.some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||WM.some(i=>(o.willChange||"").includes(i))||ZM.some(i=>(o.contain||"").includes(i))}l(Zp,"isContainingBlock");function JM(e){let r=Wr(e);for(;Vn(r)&&!ja(r);){if(Zp(r))return r;if(Fu(r))return null;r=Wr(r)}return null}l(JM,"getContainingBlock");function Jp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}l(Jp,"isWebKit");const eN=new Set(["html","body","#document"]);function ja(e){return eN.has(Va(e))}l(ja,"isLastTraversableNode");function An(e){return Jt(e).getComputedStyle(e)}l(An,"getComputedStyle$1");function $u(e){return _n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}l($u,"getNodeScroll");function Wr(e){if(Va(e)==="html")return e;const r=e.assignedSlot||e.parentNode||M0(e)&&e.host||Yn(e);return M0(r)?r.host:r}l(Wr,"getParentNode$1");function k1(e){const r=Wr(e);return ja(r)?e.ownerDocument?e.ownerDocument.body:e.body:Vn(r)&&gl(r)?r:k1(r)}l(k1,"getNearestOverflowAncestor");function il(e,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const s=k1(e),c=s===((i=e.ownerDocument)==null?void 0:i.body),f=Jt(s);if(c){const d=dp(f);return r.concat(f,f.visualViewport||[],gl(s)?s:[],d&&o?il(d):[])}return r.concat(s,il(s,[],o))}l(il,"getOverflowAncestors");function dp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}l(dp,"getFrameElement");function U1(e){const r=An(e);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const s=Vn(e),c=s?e.offsetWidth:o,f=s?e.offsetHeight:i,d=Su(o)!==c||Su(i)!==f;return d&&(o=c,i=f),{width:o,height:i,$:d}}l(U1,"getCssDimensions");function eh(e){return _n(e)?e:e.contextElement}l(eh,"unwrapElement");function Pa(e){const r=eh(e);if(!Vn(r))return qn(1);const o=r.getBoundingClientRect(),{width:i,height:s,$:c}=U1(r);let f=(c?Su(o.width):o.width)/i,d=(c?Su(o.height):o.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}l(Pa,"getScale");const tN=qn(0);function H1(e){const r=Jt(e);return!Jp()||!r.visualViewport?tN:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}l(H1,"getVisualOffsets");function nN(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==Jt(e)?!1:r}l(nN,"shouldAddVisualOffsets");function Ao(e,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),c=eh(e);let f=qn(1);r&&(i?_n(i)&&(f=Pa(i)):f=Pa(e));const d=nN(c,o,i)?H1(c):qn(0);let h=(s.left+d.x)/f.x,m=(s.top+d.y)/f.y,b=s.width/f.x,y=s.height/f.y;if(c){const S=Jt(c),w=i&&_n(i)?Jt(i):i;let C=S,E=dp(C);for(;E&&i&&w!==C;){const T=Pa(E),O=E.getBoundingClientRect(),R=An(E),A=O.left+(E.clientLeft+parseFloat(R.paddingLeft))*T.x,D=O.top+(E.clientTop+parseFloat(R.paddingTop))*T.y;h*=T.x,m*=T.y,b*=T.x,y*=T.y,h+=A,m+=D,C=Jt(E),E=dp(C)}}return wu({width:b,height:y,x:h,y:m})}l(Ao,"getBoundingClientRect$1");function qu(e,r){const o=$u(e).scrollLeft;return r?r.left+o:Ao(Yn(e)).left+o}l(qu,"getWindowScrollBarX");function B1(e,r){const o=e.getBoundingClientRect(),i=o.left+r.scrollLeft-qu(e,o),s=o.top+r.scrollTop;return{x:i,y:s}}l(B1,"getHTMLOffset");function rN(e){let{elements:r,rect:o,offsetParent:i,strategy:s}=e;const c=s==="fixed",f=Yn(i),d=r?Fu(r.floating):!1;if(i===f||d&&c)return o;let h={scrollLeft:0,scrollTop:0},m=qn(1);const b=qn(0),y=Vn(i);if((y||!y&&!c)&&((Va(i)!=="body"||gl(f))&&(h=$u(i)),Vn(i))){const w=Ao(i);m=Pa(i),b.x=w.x+i.clientLeft,b.y=w.y+i.clientTop}const S=f&&!y&&!c?B1(f,h):qn(0);return{width:o.width*m.x,height:o.height*m.y,x:o.x*m.x-h.scrollLeft*m.x+b.x+S.x,y:o.y*m.y-h.scrollTop*m.y+b.y+S.y}}l(rN,"convertOffsetParentRelativeRectToViewportRelativeRect");function oN(e){return Array.from(e.getClientRects())}l(oN,"getClientRects");function aN(e){const r=Yn(e),o=$u(e),i=e.ownerDocument.body,s=Zt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),c=Zt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+qu(e);const d=-o.scrollTop;return An(i).direction==="rtl"&&(f+=Zt(r.clientWidth,i.clientWidth)-s),{width:s,height:c,x:f,y:d}}l(aN,"getDocumentRect");const N0=25;function iN(e,r){const o=Jt(e),i=Yn(e),s=o.visualViewport;let c=i.clientWidth,f=i.clientHeight,d=0,h=0;if(s){c=s.width,f=s.height;const b=Jp();(!b||b&&r==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}const m=qu(i);if(m<=0){const b=i.ownerDocument,y=b.body,S=getComputedStyle(y),w=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,C=Math.abs(i.clientWidth-y.clientWidth-w);C<=N0&&(c-=C)}else m<=N0&&(c+=m);return{width:c,height:f,x:d,y:h}}l(iN,"getViewportRect");const lN=new Set(["absolute","fixed"]);function sN(e,r){const o=Ao(e,!0,r==="fixed"),i=o.top+e.clientTop,s=o.left+e.clientLeft,c=Vn(e)?Pa(e):qn(1),f=e.clientWidth*c.x,d=e.clientHeight*c.y,h=s*c.x,m=i*c.y;return{width:f,height:d,x:h,y:m}}l(sN,"getInnerBoundingClientRect");function D0(e,r,o){let i;if(r==="viewport")i=iN(e,o);else if(r==="document")i=aN(Yn(e));else if(_n(r))i=sN(r,o);else{const s=H1(e);i={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return wu(i)}l(D0,"getClientRectFromClippingAncestor");function I1(e,r){const o=Wr(e);return o===r||!_n(o)||ja(o)?!1:An(o).position==="fixed"||I1(o,r)}l(I1,"hasFixedPositionAncestor");function uN(e,r){const o=r.get(e);if(o)return o;let i=il(e,[],!1).filter(d=>_n(d)&&Va(d)!=="body"),s=null;const c=An(e).position==="fixed";let f=c?Wr(e):e;for(;_n(f)&&!ja(f);){const d=An(f),h=Zp(f);!h&&d.position==="fixed"&&(s=null),(c?!h&&!s:!h&&d.position==="static"&&!!s&&lN.has(s.position)||gl(f)&&!h&&I1(e,f))?i=i.filter(b=>b!==f):s=d,f=Wr(f)}return r.set(e,i),i}l(uN,"getClippingElementAncestors");function cN(e){let{element:r,boundary:o,rootBoundary:i,strategy:s}=e;const f=[...o==="clippingAncestors"?Fu(r)?[]:uN(r,this._c):[].concat(o),i],d=f[0],h=f.reduce((m,b)=>{const y=D0(r,b,s);return m.top=Zt(y.top,m.top),m.right=Xr(y.right,m.right),m.bottom=Xr(y.bottom,m.bottom),m.left=Zt(y.left,m.left),m},D0(r,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}l(cN,"getClippingRect");function fN(e){const{width:r,height:o}=U1(e);return{width:r,height:o}}l(fN,"getDimensions");function dN(e,r,o){const i=Vn(r),s=Yn(r),c=o==="fixed",f=Ao(e,!0,c,r);let d={scrollLeft:0,scrollTop:0};const h=qn(0);function m(){h.x=qu(s)}if(l(m,"setLeftRTLScrollbarOffset"),i||!i&&!c)if((Va(r)!=="body"||gl(s))&&(d=$u(r)),i){const w=Ao(r,!0,c,r);h.x=w.x+r.clientLeft,h.y=w.y+r.clientTop}else s&&m();c&&!i&&s&&m();const b=s&&!i&&!c?B1(s,d):qn(0),y=f.left+d.scrollLeft-h.x-b.x,S=f.top+d.scrollTop-h.y-b.y;return{x:y,y:S,width:f.width,height:f.height}}l(dN,"getRectRelativeToOffsetParent");function Fd(e){return An(e).position==="static"}l(Fd,"isStaticPositioned");function P0(e,r){if(!Vn(e)||An(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return Yn(e)===o&&(o=o.ownerDocument.body),o}l(P0,"getTrueOffsetParent");function F1(e,r){const o=Jt(e);if(Fu(e))return o;if(!Vn(e)){let s=Wr(e);for(;s&&!ja(s);){if(_n(s)&&!Fd(s))return s;s=Wr(s)}return o}let i=P0(e,r);for(;i&&QM(i)&&Fd(i);)i=P0(i,r);return i&&ja(i)&&Fd(i)&&!Zp(i)?o:i||JM(e)||o}l(F1,"getOffsetParent$1");const pN=l(async function(e){const r=this.getOffsetParent||F1,o=this.getDimensions,i=await o(e.floating);return{reference:dN(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},"getElementRects");function hN(e){return An(e).direction==="rtl"}l(hN,"isRTL");const mN={convertOffsetParentRelativeRectToViewportRelativeRect:rN,getDocumentElement:Yn,getClippingRect:cN,getOffsetParent:F1,getElementRects:pN,getClientRects:oN,getDimensions:fN,getScale:Pa,isElement:_n,isRTL:hN};function $1(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}l($1,"rectsAreEqual");function vN(e,r){let o=null,i;const s=Yn(e);function c(){var d;clearTimeout(i),(d=o)==null||d.disconnect(),o=null}l(c,"cleanup");function f(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),c();const m=e.getBoundingClientRect(),{left:b,top:y,width:S,height:w}=m;if(d||r(),!S||!w)return;const C=ru(y),E=ru(s.clientWidth-(b+S)),T=ru(s.clientHeight-(y+w)),O=ru(b),A={rootMargin:-C+"px "+-E+"px "+-T+"px "+-O+"px",threshold:Zt(0,Xr(1,h))||1};let D=!0;function j(I){const U=I[0].intersectionRatio;if(U!==h){if(!D)return f();U?f(!1,U):i=setTimeout(()=>{f(!1,1e-7)},1e3)}U===1&&!$1(m,e.getBoundingClientRect())&&f(),D=!1}l(j,"handleObserve");try{o=new IntersectionObserver(j,{...A,root:s.ownerDocument})}catch{o=new IntersectionObserver(j,A)}o.observe(e)}return l(f,"refresh"),f(!0),c}l(vN,"observeMove");function yN(e,r,o,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=eh(e),b=s||c?[...m?il(m):[],...il(r)]:[];b.forEach(O=>{s&&O.addEventListener("scroll",o,{passive:!0}),c&&O.addEventListener("resize",o)});const y=m&&d?vN(m,o):null;let S=-1,w=null;f&&(w=new ResizeObserver(O=>{let[R]=O;R&&R.target===m&&w&&(w.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var A;(A=w)==null||A.observe(r)})),o()}),m&&!h&&w.observe(m),w.observe(r));let C,E=h?Ao(e):null;h&&T();function T(){const O=Ao(e);E&&!$1(E,O)&&o(),E=O,C=requestAnimationFrame(T)}return l(T,"frameLoop"),o(),()=>{var O;b.forEach(R=>{s&&R.removeEventListener("scroll",o),c&&R.removeEventListener("resize",o)}),y?.(),(O=w)==null||O.disconnect(),w=null,h&&cancelAnimationFrame(C)}}l(yN,"autoUpdate");const gN=FM,bN=$M,SN=HM,EN=GM,wN=BM,L0=UM,xN=qM,CN=l((e,r,o)=>{const i=new Map,s={platform:mN,...o},c={...s.platform,_c:i};return kM(e,r,{...s,platform:c})},"computePosition");var TN=typeof document<"u",RN=l(function(){},"noop"),du=TN?g.useLayoutEffect:RN;function xu(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let o,i,s;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!xu(e[i],r[i]))return!1;return!0}if(s=Object.keys(e),o=s.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,s[i]))return!1;for(i=o;i--!==0;){const c=s[i];if(!(c==="_owner"&&e.$$typeof)&&!xu(e[c],r[c]))return!1}return!0}return e!==e&&r!==r}l(xu,"deepEqual");function q1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}l(q1,"getDPR");function j0(e,r){const o=q1(e);return Math.round(r*o)/o}l(j0,"roundByDPR");function $d(e){const r=g.useRef(e);return du(()=>{r.current=e}),r}l($d,"useLatestRef");function ON(e){e===void 0&&(e={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:h,open:m}=e,[b,y]=g.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[S,w]=g.useState(i);xu(S,i)||w(i);const[C,E]=g.useState(null),[T,O]=g.useState(null),R=g.useCallback(Z=>{Z!==I.current&&(I.current=Z,E(Z))},[]),A=g.useCallback(Z=>{Z!==U.current&&(U.current=Z,O(Z))},[]),D=c||C,j=f||T,I=g.useRef(null),U=g.useRef(null),Q=g.useRef(b),ee=h!=null,W=$d(h),oe=$d(s),ue=$d(m),ve=g.useCallback(()=>{if(!I.current||!U.current)return;const Z={placement:r,strategy:o,middleware:S};oe.current&&(Z.platform=oe.current),CN(I.current,U.current,Z).then(J=>{const ye={...J,isPositioned:ue.current!==!1};ne.current&&!xu(Q.current,ye)&&(Q.current=ye,$n.flushSync(()=>{y(ye)}))})},[S,r,o,oe,ue]);du(()=>{m===!1&&Q.current.isPositioned&&(Q.current.isPositioned=!1,y(Z=>({...Z,isPositioned:!1})))},[m]);const ne=g.useRef(!1);du(()=>(ne.current=!0,()=>{ne.current=!1}),[]),du(()=>{if(D&&(I.current=D),j&&(U.current=j),D&&j){if(W.current)return W.current(D,j,ve);ve()}},[D,j,ve,W,ee]);const me=g.useMemo(()=>({reference:I,floating:U,setReference:R,setFloating:A}),[R,A]),z=g.useMemo(()=>({reference:D,floating:j}),[D,j]),Y=g.useMemo(()=>{const Z={position:o,left:0,top:0};if(!z.floating)return Z;const J=j0(z.floating,b.x),ye=j0(z.floating,b.y);return d?{...Z,transform:"translate("+J+"px, "+ye+"px)",...q1(z.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:J,top:ye}},[o,d,z.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:ve,refs:me,elements:z,floatingStyles:Y}),[b,ve,me,z,Y])}l(ON,"useFloating");const _N=l(e=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return l(r,"isRef"),{name:"arrow",options:e,fn(o){const{element:i,padding:s}=typeof e=="function"?e(o):e;return i&&r(i)?i.current!=null?L0({element:i.current,padding:s}).fn(o):{}:i?L0({element:i,padding:s}).fn(o):{}}}},"arrow$1"),AN=l((e,r)=>({...gN(e),options:[e,r]}),"offset$1"),MN=l((e,r)=>({...bN(e),options:[e,r]}),"shift$1"),NN=l((e,r)=>({...xN(e),options:[e,r]}),"limitShift"),DN=l((e,r)=>({...SN(e),options:[e,r]}),"flip$1"),PN=l((e,r)=>({...EN(e),options:[e,r]}),"size"),LN=l((e,r)=>({...wN(e),options:[e,r]}),"hide$1"),jN=l((e,r)=>({..._N(e),options:[e,r]}),"arrow$2");var zN="Arrow",G1=g.forwardRef((e,r)=>{const{children:o,width:i=10,height:s=5,...c}=e;return M.jsx(be.svg,{...c,ref:r,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});G1.displayName=zN;var kN=G1;function V1(e){const[r,o]=g.useState(void 0);return lt(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let f,d;if("borderBoxSize"in c){const h=c.borderBoxSize,m=Array.isArray(h)?h[0]:h;f=m.inlineSize,d=m.blockSize}else f=e.offsetWidth,d=e.offsetHeight;o({width:f,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else o(void 0)},[e]),r}l(V1,"useSize");var th="Popper",[Y1,Ya]=It(th),[UN,Q1]=Y1(th),K1=l(e=>{const{__scopePopper:r,children:o}=e,[i,s]=g.useState(null);return M.jsx(UN,{scope:r,anchor:i,onAnchorChange:s,children:o})},"Popper$1");K1.displayName=th;var X1="PopperAnchor",W1=g.forwardRef((e,r)=>{const{__scopePopper:o,virtualRef:i,...s}=e,c=Q1(X1,o),f=g.useRef(null),d=Oe(r,f),h=g.useRef(null);return g.useEffect(()=>{const m=h.current;h.current=i?.current||f.current,m!==h.current&&c.onAnchorChange(h.current)}),i?null:M.jsx(be.div,{...s,ref:d})});W1.displayName=X1;var nh="PopperContent",[HN,BN]=Y1(nh),Z1=g.forwardRef((e,r)=>{const{__scopePopper:o,side:i="bottom",sideOffset:s=0,align:c="center",alignOffset:f=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:w="optimized",onPlaced:C,...E}=e,T=Q1(nh,o),[O,R]=g.useState(null),A=Oe(r,te=>R(te)),[D,j]=g.useState(null),I=V1(D),U=I?.width??0,Q=I?.height??0,ee=i+(c!=="center"?"-"+c:""),W=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},oe=Array.isArray(m)?m:[m],ue=oe.length>0,ve={padding:W,boundary:oe.filter(FN),altBoundary:ue},{refs:ne,floatingStyles:me,placement:z,isPositioned:Y,middlewareData:Z}=ON({strategy:"fixed",placement:ee,whileElementsMounted:l((...te)=>yN(...te,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:T.anchor},middleware:[AN({mainAxis:s+Q,alignmentAxis:f}),h&&MN({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?NN():void 0,...ve}),h&&DN({...ve}),PN({...ve,apply:l(({elements:te,rects:_e,availableWidth:Me,availableHeight:Be})=>{const{width:$e,height:Je}=_e.reference,Rt=te.floating.style;Rt.setProperty("--radix-popper-available-width",`${Me}px`),Rt.setProperty("--radix-popper-available-height",`${Be}px`),Rt.setProperty("--radix-popper-anchor-width",`${$e}px`),Rt.setProperty("--radix-popper-anchor-height",`${Je}px`)},"apply")}),D&&jN({element:D,padding:d}),$N({arrowWidth:U,arrowHeight:Q}),S&&LN({strategy:"referenceHidden",...ve})]}),[J,ye]=tS(z),P=it(C);lt(()=>{Y&&P?.()},[Y,P]);const q=Z.arrow?.x,re=Z.arrow?.y,se=Z.arrow?.centerOffset!==0,[Se,Ee]=g.useState();return lt(()=>{O&&Ee(window.getComputedStyle(O).zIndex)},[O]),M.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:Y?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(HN,{scope:o,placedSide:J,onArrowChange:j,arrowX:q,arrowY:re,shouldHideArrow:se,children:M.jsx(be.div,{"data-side":J,"data-align":ye,...E,ref:A,style:{...E.style,animation:Y?void 0:"none"}})})})});Z1.displayName=nh;var J1="PopperArrow",IN={top:"bottom",right:"left",bottom:"top",left:"right"},eS=g.forwardRef(l(function(r,o){const{__scopePopper:i,...s}=r,c=BN(J1,i),f=IN[c.placedSide];return M.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:M.jsx(kN,{...s,ref:o,style:{...s.style,display:"block"}})})},"PopperArrow2"));eS.displayName=J1;function FN(e){return e!==null}l(FN,"isNotNull");var $N=l(e=>({name:"transformOrigin",options:e,fn(r){const{placement:o,rects:i,middlewareData:s}=r,f=s.arrow?.centerOffset!==0,d=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[m,b]=tS(o),y={start:"0%",center:"50%",end:"100%"}[b],S=(s.arrow?.x??0)+d/2,w=(s.arrow?.y??0)+h/2;let C="",E="";return m==="bottom"?(C=f?y:`${S}px`,E=`${-h}px`):m==="top"?(C=f?y:`${S}px`,E=`${i.floating.height+h}px`):m==="right"?(C=`${-h}px`,E=f?y:`${w}px`):m==="left"&&(C=`${i.floating.width+h}px`,E=f?y:`${w}px`),{data:{x:C,y:E}}}}),"transformOrigin");function tS(e){const[r,o="center"]=e.split("-");return[r,o]}l(tS,"getSideAndAlignFromPlacement");var rh=K1,oh=W1,ah=Z1,ih=eS,qN=Symbol("radix.slottable");function GN(e){const r=l(({children:o})=>M.jsx(M.Fragment,{children:o}),"Slottable2");return r.displayName=`${e}.Slottable`,r.__radixId=qN,r}l(GN,"createSlottable$1");var nS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),VN="VisuallyHidden",Gu=g.forwardRef((e,r)=>M.jsx(be.span,{...e,ref:r,style:{...nS,...e.style}}));Gu.displayName=VN;var YN=Gu,[Vu]=It("Tooltip",[Ya]),Yu=Ya(),rS="TooltipProvider",QN=700,pp="tooltip.open",[KN,lh]=Vu(rS),oS=l(e=>{const{__scopeTooltip:r,delayDuration:o=QN,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:c}=e,f=g.useRef(!0),d=g.useRef(!1),h=g.useRef(0);return g.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),M.jsx(KN,{scope:r,isOpenDelayedRef:f,delayDuration:o,onOpen:g.useCallback(()=>{window.clearTimeout(h.current),f.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>f.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:g.useCallback(m=>{d.current=m},[]),disableHoverableContent:s,children:c})},"TooltipProvider");oS.displayName=rS;var ll="Tooltip",[XN,bl]=Vu(ll),aS=l(e=>{const{__scopeTooltip:r,children:o,open:i,defaultOpen:s,onOpenChange:c,disableHoverableContent:f,delayDuration:d}=e,h=lh(ll,e.__scopeTooltip),m=Yu(r),[b,y]=g.useState(null),S=hn(),w=g.useRef(0),C=f??h.disableHoverableContent,E=d??h.delayDuration,T=g.useRef(!1),[O,R]=Gn({prop:i,defaultProp:s??!1,onChange:l(U=>{U?(h.onOpen(),document.dispatchEvent(new CustomEvent(pp))):h.onClose(),c?.(U)},"onChange"),caller:ll}),A=g.useMemo(()=>O?T.current?"delayed-open":"instant-open":"closed",[O]),D=g.useCallback(()=>{window.clearTimeout(w.current),w.current=0,T.current=!1,R(!0)},[R]),j=g.useCallback(()=>{window.clearTimeout(w.current),w.current=0,R(!1)},[R]),I=g.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{T.current=!0,R(!0),w.current=0},E)},[E,R]);return g.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),M.jsx(rh,{...m,children:M.jsx(XN,{scope:r,contentId:S,open:O,stateAttribute:A,trigger:b,onTriggerChange:y,onTriggerEnter:g.useCallback(()=>{h.isOpenDelayedRef.current?I():D()},[h.isOpenDelayedRef,I,D]),onTriggerLeave:g.useCallback(()=>{C?j():(window.clearTimeout(w.current),w.current=0)},[j,C]),onOpen:D,onClose:j,disableHoverableContent:C,children:o})})},"Tooltip");aS.displayName=ll;var hp="TooltipTrigger",iS=g.forwardRef((e,r)=>{const{__scopeTooltip:o,...i}=e,s=bl(hp,o),c=lh(hp,o),f=Yu(o),d=g.useRef(null),h=Oe(r,d,s.onTriggerChange),m=g.useRef(!1),b=g.useRef(!1),y=g.useCallback(()=>m.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),M.jsx(oh,{asChild:!0,...f,children:M.jsx(be.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:h,onPointerMove:ie(e.onPointerMove,S=>{S.pointerType!=="touch"&&!b.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),b.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{s.onTriggerLeave(),b.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{s.open&&s.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ie(e.onFocus,()=>{m.current||s.onOpen()}),onBlur:ie(e.onBlur,s.onClose),onClick:ie(e.onClick,s.onClose)})})});iS.displayName=hp;var sh="TooltipPortal",[WN,ZN]=Vu(sh,{forceMount:void 0}),lS=l(e=>{const{__scopeTooltip:r,forceMount:o,children:i,container:s}=e,c=bl(sh,r);return M.jsx(WN,{scope:r,forceMount:o,children:M.jsx(wt,{present:o||c.open,children:M.jsx(qa,{asChild:!0,container:s,children:i})})})},"TooltipPortal");lS.displayName=sh;var za="TooltipContent",sS=g.forwardRef((e,r)=>{const o=ZN(za,e.__scopeTooltip),{forceMount:i=o.forceMount,side:s="top",...c}=e,f=bl(za,e.__scopeTooltip);return M.jsx(wt,{present:i||f.open,children:f.disableHoverableContent?M.jsx(uS,{side:s,...c,ref:r}):M.jsx(JN,{side:s,...c,ref:r})})}),JN=g.forwardRef((e,r)=>{const o=bl(za,e.__scopeTooltip),i=lh(za,e.__scopeTooltip),s=g.useRef(null),c=Oe(r,s),[f,d]=g.useState(null),{trigger:h,onClose:m}=o,b=s.current,{onPointerInTransitChange:y}=i,S=g.useCallback(()=>{d(null),y(!1)},[y]),w=g.useCallback((C,E)=>{const T=C.currentTarget,O={x:C.clientX,y:C.clientY},R=oD(O,T.getBoundingClientRect()),A=aD(O,R),D=iD(E.getBoundingClientRect()),j=sD([...A,...D]);d(j),y(!0)},[y]);return g.useEffect(()=>()=>S(),[S]),g.useEffect(()=>{if(h&&b){const C=l(T=>w(T,b),"handleTriggerLeave"),E=l(T=>w(T,h),"handleContentLeave");return h.addEventListener("pointerleave",C),b.addEventListener("pointerleave",E),()=>{h.removeEventListener("pointerleave",C),b.removeEventListener("pointerleave",E)}}},[h,b,w,S]),g.useEffect(()=>{if(f){const C=l(E=>{const T=E.target,O={x:E.clientX,y:E.clientY},R=h?.contains(T)||b?.contains(T),A=!lD(O,f);R?S():A&&(S(),m())},"handleTrackPointerGrace");return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[h,b,f,m,S]),M.jsx(uS,{...e,ref:c})}),[eD,tD]=Vu(ll,{isInside:!1}),nD=GN("TooltipContent"),uS=g.forwardRef((e,r)=>{const{__scopeTooltip:o,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:f,...d}=e,h=bl(za,o),m=Yu(o),{onClose:b}=h;return g.useEffect(()=>(document.addEventListener(pp,b),()=>document.removeEventListener(pp,b)),[b]),g.useEffect(()=>{if(h.trigger){const y=l(S=>{S.target?.contains(h.trigger)&&b()},"handleScroll");return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,b]),M.jsx($a,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:l(y=>y.preventDefault(),"onFocusOutside"),onDismiss:b,children:M.jsxs(ah,{"data-state":h.stateAttribute,...m,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[M.jsx(nD,{children:i}),M.jsx(eD,{scope:o,isInside:!0,children:M.jsx(YN,{id:h.contentId,role:"tooltip",children:s||i})})]})})});sS.displayName=za;var cS="TooltipArrow",rD=g.forwardRef((e,r)=>{const{__scopeTooltip:o,...i}=e,s=Yu(o);return tD(cS,o).isInside?null:M.jsx(ih,{...s,...i,ref:r})});rD.displayName=cS;function oD(e,r){const o=Math.abs(r.top-e.y),i=Math.abs(r.bottom-e.y),s=Math.abs(r.right-e.x),c=Math.abs(r.left-e.x);switch(Math.min(o,i,s,c)){case c:return"left";case s:return"right";case o:return"top";case i:return"bottom";default:throw new Error("unreachable")}}l(oD,"getExitSideFromRect");function aD(e,r,o=5){const i=[];switch(r){case"top":i.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":i.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":i.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":i.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return i}l(aD,"getPaddedExitPoints");function iD(e){const{top:r,right:o,bottom:i,left:s}=e;return[{x:s,y:r},{x:o,y:r},{x:o,y:i},{x:s,y:i}]}l(iD,"getPointsFromRect");function lD(e,r){const{x:o,y:i}=e;let s=!1;for(let c=0,f=r.length-1;c<r.length;f=c++){const d=r[c],h=r[f],m=d.x,b=d.y,y=h.x,S=h.y;b>i!=S>i&&o<(y-m)*(i-b)/(S-b)+m&&(s=!s)}return s}l(lD,"isPointInPolygon$1");function sD(e){const r=e.slice();return r.sort((o,i)=>o.x<i.x?-1:o.x>i.x?1:o.y<i.y?-1:o.y>i.y?1:0),uD(r)}l(sD,"getHull");function uD(e){if(e.length<=1)return e.slice();const r=[];for(let i=0;i<e.length;i++){const s=e[i];for(;r.length>=2;){const c=r[r.length-1],f=r[r.length-2];if((c.x-f.x)*(s.y-f.y)>=(c.y-f.y)*(s.x-f.x))r.pop();else break}r.push(s)}r.pop();const o=[];for(let i=e.length-1;i>=0;i--){const s=e[i];for(;o.length>=2;){const c=o[o.length-1],f=o[o.length-2];if((c.x-f.x)*(s.y-f.y)>=(c.y-f.y)*(s.x-f.x))o.pop();else break}o.push(s)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}l(uD,"getHullPresorted");var y9=oS,g9=aS,b9=iS,S9=lS,E9=sS,ko=class{static{l(this,"Subscribable")}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cD={setTimeout:l((e,r)=>setTimeout(e,r),"setTimeout"),clearTimeout:l(e=>clearTimeout(e),"clearTimeout"),setInterval:l((e,r)=>setInterval(e,r),"setInterval"),clearInterval:l(e=>clearInterval(e),"clearInterval")},fD=class{static{l(this,"TimeoutManager")}#e=cD;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,r){return this.#e.setTimeout(e,r)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,r){return this.#e.setInterval(e,r)}clearInterval(e){this.#e.clearInterval(e)}},To=new fD;function dD(e){setTimeout(e,0)}l(dD,"systemSetTimeoutZero");var Mo=typeof window>"u"||"Deno"in globalThis;function Ct(){}l(Ct,"noop$2");function pD(e,r){return typeof e=="function"?e(r):e}l(pD,"functionalUpdate");function mp(e){return typeof e=="number"&&e>=0&&e!==1/0}l(mp,"isValidTimeout");function fS(e,r){return Math.max(e+(r||0)-Date.now(),0)}l(fS,"timeUntilStale");function Kr(e,r){return typeof e=="function"?e(r):e}l(Kr,"resolveStaleTime");function dn(e,r){return typeof e=="function"?e(r):e}l(dn,"resolveEnabled");function z0(e,r){const{type:o="all",exact:i,fetchStatus:s,predicate:c,queryKey:f,stale:d}=e;if(f){if(i){if(r.queryHash!==uh(f,r.options))return!1}else if(!sl(r.queryKey,f))return!1}if(o!=="all"){const h=r.isActive();if(o==="active"&&!h||o==="inactive"&&h)return!1}return!(typeof d=="boolean"&&r.isStale()!==d||s&&s!==r.state.fetchStatus||c&&!c(r))}l(z0,"matchQuery");function k0(e,r){const{exact:o,status:i,predicate:s,mutationKey:c}=e;if(c){if(!r.options.mutationKey)return!1;if(o){if(No(r.options.mutationKey)!==No(c))return!1}else if(!sl(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||s&&!s(r))}l(k0,"matchMutation");function uh(e,r){return(r?.queryKeyHashFn||No)(e)}l(uh,"hashQueryKeyByOptions");function No(e){return JSON.stringify(e,(r,o)=>vp(o)?Object.keys(o).sort().reduce((i,s)=>(i[s]=o[s],i),{}):o)}l(No,"hashKey");function sl(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(r).every(o=>sl(e[o],r[o])):!1}l(sl,"partialMatchKey");var hD=Object.prototype.hasOwnProperty;function ch(e,r,o=0){if(e===r)return e;if(o>500)return r;const i=U0(e)&&U0(r);if(!i&&!(vp(e)&&vp(r)))return r;const c=(i?e:Object.keys(e)).length,f=i?r:Object.keys(r),d=f.length,h=i?new Array(d):{};let m=0;for(let b=0;b<d;b++){const y=i?b:f[b],S=e[y],w=r[y];if(S===w){h[y]=S,(i?b<c:hD.call(e,y))&&m++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){h[y]=w;continue}const C=ch(S,w,o+1);h[y]=C,C===S&&m++}return c===d&&m===c?e:h}l(ch,"replaceEqualDeep");function ul(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(e[o]!==r[o])return!1;return!0}l(ul,"shallowEqualObjects");function U0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}l(U0,"isPlainArray");function vp(e){if(!H0(e))return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(!H0(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}l(vp,"isPlainObject");function H0(e){return Object.prototype.toString.call(e)==="[object Object]"}l(H0,"hasObjectPrototype");function mD(e){return new Promise(r=>{To.setTimeout(r,e)})}l(mD,"sleep");function yp(e,r,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,r):o.structuralSharing!==!1?ch(e,r):r}l(yp,"replaceData");function vD(e,r,o=0){const i=[...e,r];return o&&i.length>o?i.slice(1):i}l(vD,"addToEnd");function yD(e,r,o=0){const i=[r,...e];return o&&i.length>o?i.slice(0,-1):i}l(yD,"addToStart");var fh=Symbol();function dS(e,r){return!e.queryFn&&r?.initialPromise?()=>r.initialPromise:!e.queryFn||e.queryFn===fh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}l(dS,"ensureQueryFn");function dh(e,r){return typeof e=="function"?e(...r):!!e}l(dh,"shouldThrowError");function gD(e,r,o){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:l(()=>(s??=r(),i||(i=!0,s.aborted?o():s.addEventListener("abort",o,{once:!0})),s),"get")}),e}l(gD,"addConsumeAwareSignal");var bD=class extends ko{static{l(this,"FocusManager")}#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Mo&&window.addEventListener){const r=l(()=>e(),"listener");return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ph=new bD;function gp(){let e,r;const o=new Promise((s,c)=>{e=s,r=c});o.status="pending",o.catch(()=>{});function i(s){Object.assign(o,s),delete o.resolve,delete o.reject}return l(i,"finalize"),o.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},o.reject=s=>{i({status:"rejected",reason:s}),r(s)},o}l(gp,"pendingThenable");var SD=dD;function ED(){let e=[],r=0,o=l(d=>{d()},"notifyFn"),i=l(d=>{d()},"batchNotifyFn"),s=SD;const c=l(d=>{r?e.push(d):s(()=>{o(d)})},"schedule"),f=l(()=>{const d=e;e=[],d.length&&s(()=>{i(()=>{d.forEach(h=>{o(h)})})})},"flush");return{batch:l(d=>{let h;r++;try{h=d()}finally{r--,r||f()}return h},"batch"),batchCalls:l(d=>(...h)=>{c(()=>{d(...h)})},"batchCalls"),schedule:c,setNotifyFunction:l(d=>{o=d},"setNotifyFunction"),setBatchNotifyFunction:l(d=>{i=d},"setBatchNotifyFunction"),setScheduler:l(d=>{s=d},"setScheduler")}}l(ED,"createNotifyManager");var at=ED(),wD=class extends ko{static{l(this,"OnlineManager")}#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Mo&&window.addEventListener){const r=l(()=>e(!0),"onlineListener"),o=l(()=>e(!1),"offlineListener");return window.addEventListener("online",r,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},Cu=new wD;function xD(e){return Math.min(1e3*2**e,3e4)}l(xD,"defaultRetryDelay");function pS(e){return(e??"online")==="online"?Cu.isOnline():!0}l(pS,"canFetch");var bp=class extends Error{static{l(this,"CancelledError")}constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function hS(e){let r=!1,o=0,i;const s=gp(),c=l(()=>s.status!=="pending","isResolved"),f=l(E=>{if(!c()){const T=new bp(E);S(T),e.onCancel?.(T)}},"cancel"),d=l(()=>{r=!0},"cancelRetry"),h=l(()=>{r=!1},"continueRetry"),m=l(()=>ph.isFocused()&&(e.networkMode==="always"||Cu.isOnline())&&e.canRun(),"canContinue"),b=l(()=>pS(e.networkMode)&&e.canRun(),"canStart"),y=l(E=>{c()||(i?.(),s.resolve(E))},"resolve"),S=l(E=>{c()||(i?.(),s.reject(E))},"reject"),w=l(()=>new Promise(E=>{i=l(T=>{(c()||m())&&E(T)},"continueFn"),e.onPause?.()}).then(()=>{i=void 0,c()||e.onContinue?.()}),"pause"),C=l(()=>{if(c())return;let E;const T=o===0?e.initialPromise:void 0;try{E=T??e.fn()}catch(O){E=Promise.reject(O)}Promise.resolve(E).then(y).catch(O=>{if(c())return;const R=e.retry??(Mo?0:3),A=e.retryDelay??xD,D=typeof A=="function"?A(o,O):A,j=R===!0||typeof R=="number"&&o<R||typeof R=="function"&&R(o,O);if(r||!j){S(O);return}o++,e.onFail?.(o,O),mD(D).then(()=>m()?void 0:w()).then(()=>{r?S(O):C()})})},"run");return{promise:s,status:l(()=>s.status,"status"),cancel:f,continue:l(()=>(i?.(),s),"continue"),cancelRetry:d,continueRetry:h,canStart:b,start:l(()=>(b()?C():w().then(C),s),"start")}}l(hS,"createRetryer");var mS=class{static{l(this,"Removable")}#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mp(this.gcTime)&&(this.#e=To.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mo?1/0:300*1e3))}clearGcTimeout(){this.#e&&(To.clearTimeout(this.#e),this.#e=void 0)}},CD=class extends mS{static{l(this,"Query")}#e;#t;#n;#o;#r;#a;#l;constructor(e){super(),this.#l=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=I0(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=I0(this.options);r.data!==void 0&&(this.setState(B0(r.data,r.dataUpdatedAt)),this.#e=r)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,r){const o=yp(this.state.data,e,this.options);return this.#i({data:o,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),o}setState(e,r){this.#i({type:"setState",state:e,setStateOptions:r})}cancel(e){const r=this.#r?.promise;return this.#r?.cancel(e),r?r.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>dn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Kr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!fS(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,r){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const o=new AbortController,i=l(d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:l(()=>(this.#l=!0,o.signal),"get")})},"addSignalProperty"),s=l(()=>{const d=dS(this.options,r),m=l(()=>{const b={client:this.#o,queryKey:this.queryKey,meta:this.meta};return i(b),b},"createQueryFnContext")();return this.#l=!1,this.options.persister?this.options.persister(d,m,this):d(m)},"fetchFn"),f=l(()=>{const d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:s};return i(d),d},"createFetchContext")();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#i({type:"fetch",meta:f.fetchOptions?.meta}),this.#r=hS({initialPromise:r?.initialPromise,fn:f.fetchFn,onCancel:l(d=>{d instanceof bp&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),o.abort()},"onCancel"),onFail:l((d,h)=>{this.#i({type:"failed",failureCount:d,error:h})},"onFail"),onPause:l(()=>{this.#i({type:"pause"})},"onPause"),onContinue:l(()=>{this.#i({type:"continue"})},"onContinue"),retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:l(()=>!0,"canRun")});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof bp){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(e){const r=l(o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...vS(o.data,this.options),fetchMeta:e.meta??null};case"success":const i={...o,...B0(e.data,e.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const s=e.error;return{...o,error:s,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}},"reducer");this.state=r(this.state),at.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function vS(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pS(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}l(vS,"fetchState");function B0(e,r){return{data:e,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}l(B0,"successState");function I0(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,o=r!==void 0,i=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:o?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}l(I0,"getDefaultState$1");var hh=class extends ko{static{l(this,"QueryObserver")}constructor(e,r){super(),this.options=r,this.#e=e,this.#i=null,this.#l=gp(),this.bindMethods(),this.setOptions(r)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#l;#i;#h;#f;#d;#u;#c;#s;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),F0(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const r=this.options,o=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),r._defaulted&&!ul(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&$0(this.#t,o,this.options,r)&&this.#m(),this.updateResult(),i&&(this.#t!==o||dn(this.options.enabled,this.#t)!==dn(r.enabled,this.#t)||Kr(this.options.staleTime,this.#t)!==Kr(r.staleTime,this.#t))&&this.#v();const s=this.#y();i&&(this.#t!==o||dn(this.options.enabled,this.#t)!==dn(r.enabled,this.#t)||s!==this.#s)&&this.#g(s)}getOptimisticResult(e){const r=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(r,e);return RD(this,o)&&(this.#o=o,this.#a=this.options,this.#r=this.#t.state),o}getCurrentResult(){return this.#o}trackResult(e,r){return new Proxy(e,{get:l((o,i)=>(this.trackProp(i),r?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,i)),"get")})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=this.#e.defaultQueryOptions(e),o=this.#e.getQueryCache().build(this.#e,r);return o.fetch().then(()=>this.createResult(o,r))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#m(e){this.#w();let r=this.#t.fetch(this.options,e);return e?.throwOnError||(r=r.catch(Ct)),r}#v(){this.#S();const e=Kr(this.options.staleTime,this.#t);if(Mo||this.#o.isStale||!mp(e))return;const o=fS(this.#o.dataUpdatedAt,e)+1;this.#u=To.setTimeout(()=>{this.#o.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(e){this.#E(),this.#s=e,!(Mo||dn(this.options.enabled,this.#t)===!1||!mp(this.#s)||this.#s===0)&&(this.#c=To.setInterval(()=>{(this.options.refetchIntervalInBackground||ph.isFocused())&&this.#m()},this.#s))}#b(){this.#v(),this.#g(this.#y())}#S(){this.#u&&(To.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(To.clearInterval(this.#c),this.#c=void 0)}createResult(e,r){const o=this.#t,i=this.options,s=this.#o,c=this.#r,f=this.#a,h=e!==o?e.state:this.#n,{state:m}=e;let b={...m},y=!1,S;if(r._optimisticResults){const Q=this.hasListeners(),ee=!Q&&F0(e,r),W=Q&&$0(e,o,r,i);(ee||W)&&(b={...b,...vS(m.data,e.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:w,errorUpdatedAt:C,status:E}=b;S=b.data;let T=!1;if(r.placeholderData!==void 0&&S===void 0&&E==="pending"){let Q;s?.isPlaceholderData&&r.placeholderData===f?.placeholderData?(Q=s.data,T=!0):Q=typeof r.placeholderData=="function"?r.placeholderData(this.#d?.state.data,this.#d):r.placeholderData,Q!==void 0&&(E="success",S=yp(s?.data,Q,r),y=!0)}if(r.select&&S!==void 0&&!T)if(s&&S===c?.data&&r.select===this.#h)S=this.#f;else try{this.#h=r.select,S=r.select(S),S=yp(s?.data,S,r),this.#f=S,this.#i=null}catch(Q){this.#i=Q}this.#i&&(w=this.#i,S=this.#f,C=Date.now(),E="error");const O=b.fetchStatus==="fetching",R=E==="pending",A=E==="error",D=R&&O,j=S!==void 0,U={status:E,fetchStatus:b.fetchStatus,isPending:R,isSuccess:E==="success",isError:A,isInitialLoading:D,isLoading:D,data:S,dataUpdatedAt:b.dataUpdatedAt,error:w,errorUpdatedAt:C,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>h.dataUpdateCount||b.errorUpdateCount>h.errorUpdateCount,isFetching:O,isRefetching:O&&!R,isLoadingError:A&&!j,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&j,isStale:mh(e,r),refetch:this.refetch,promise:this.#l,isEnabled:dn(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Q=U.data!==void 0,ee=U.status==="error"&&!Q,W=l(ve=>{ee?ve.reject(U.error):Q&&ve.resolve(U.data)},"finalizeThenableIfPossible"),oe=l(()=>{const ve=this.#l=U.promise=gp();W(ve)},"recreateThenable"),ue=this.#l;switch(ue.status){case"pending":e.queryHash===o.queryHash&&W(ue);break;case"fulfilled":(ee||U.data!==ue.value)&&oe();break;case"rejected":(!ee||U.error!==ue.reason)&&oe();break}}return U}updateResult(){const e=this.#o,r=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#t),ul(r,e))return;this.#o=r;const o=l(()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.#p.size)return!0;const c=new Set(s??this.#p);return this.options.throwOnError&&c.add("error"),Object.keys(this.#o).some(f=>{const d=f;return this.#o[d]!==e[d]&&c.has(d)})},"shouldNotifyListeners");this.#x({listeners:o()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const r=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(r?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){at.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function TD(e,r){return dn(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}l(TD,"shouldLoadOnMount");function F0(e,r){return TD(e,r)||e.state.data!==void 0&&Sp(e,r,r.refetchOnMount)}l(F0,"shouldFetchOnMount");function Sp(e,r,o){if(dn(r.enabled,e)!==!1&&Kr(r.staleTime,e)!=="static"){const i=typeof o=="function"?o(e):o;return i==="always"||i!==!1&&mh(e,r)}return!1}l(Sp,"shouldFetchOn");function $0(e,r,o,i){return(e!==r||dn(i.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&mh(e,o)}l($0,"shouldFetchOptionally");function mh(e,r){return dn(r.enabled,e)!==!1&&e.isStaleByTime(Kr(r.staleTime,e))}l(mh,"isStale");function RD(e,r){return!ul(e.getCurrentResult(),r)}l(RD,"shouldAssignObserverCurrentProperties");function q0(e){return{onFetch:l((r,o)=>{const i=r.options,s=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],f=r.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const m=l(async()=>{let b=!1;const y=l(C=>{gD(C,()=>r.signal,()=>b=!0)},"addSignalProperty"),S=dS(r.options,r.fetchOptions),w=l(async(C,E,T)=>{if(b)return Promise.reject();if(E==null&&C.pages.length)return Promise.resolve(C);const R=l(()=>{const I={client:r.client,queryKey:r.queryKey,pageParam:E,direction:T?"backward":"forward",meta:r.options.meta};return y(I),I},"createQueryFnContext")(),A=await S(R),{maxPages:D}=r.options,j=T?yD:vD;return{pages:j(C.pages,A,D),pageParams:j(C.pageParams,E,D)}},"fetchPage");if(s&&c.length){const C=s==="backward",E=C?OD:G0,T={pages:c,pageParams:f},O=E(i,T);d=await w(T,O,C)}else{const C=e??c.length;do{const E=h===0?f[0]??i.initialPageParam:G0(i,d);if(h>0&&E==null)break;d=await w(d,E),h++}while(h<C)}return d},"fetchFn");r.options.persister?r.fetchFn=()=>r.options.persister?.(m,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},o):r.fetchFn=m},"onFetch")}}l(q0,"infiniteQueryBehavior");function G0(e,{pages:r,pageParams:o}){const i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,o[i],o):void 0}l(G0,"getNextPageParam");function OD(e,{pages:r,pageParams:o}){return r.length>0?e.getPreviousPageParam?.(r[0],r,o[0],o):void 0}l(OD,"getPreviousPageParam");var _D=class extends mS{static{l(this,"Mutation")}#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||yS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(r=>r!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const r=l(()=>{this.#r({type:"continue"})},"onContinue"),o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=hS({fn:l(()=>this.options.mutationFn?this.options.mutationFn(e,o):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:l((c,f)=>{this.#r({type:"failed",failureCount:c,error:f})},"onFail"),onPause:l(()=>{this.#r({type:"pause"})},"onPause"),onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:l(()=>this.#n.canRun(this),"canRun")});const i=this.state.status==="pending",s=!this.#o.canStart();try{if(i)r();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,o);const f=await this.options.onMutate?.(e,o);f!==this.state.context&&this.#r({type:"pending",context:f,variables:e,isPaused:s})}const c=await this.#o.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,o),await this.options.onSuccess?.(c,e,this.state.context,o),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(c,null,e,this.state.context,o),this.#r({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,e,this.state.context,this,o)}catch(f){Promise.reject(f)}try{await this.options.onError?.(c,e,this.state.context,o)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,o)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,o)}catch(f){Promise.reject(f)}throw this.#r({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#r(e){const r=l(o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}},"reducer");this.state=r(this.state),at.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function yS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}l(yS,"getDefaultState");var AD=class extends ko{static{l(this,"MutationCache")}constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,r,o){const i=new _D({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(r),state:o});return this.add(i),i}add(e){this.#e.add(e);const r=ou(e);if(typeof r=="string"){const o=this.#t.get(r);o?o.push(e):this.#t.set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const r=ou(e);if(typeof r=="string"){const o=this.#t.get(r);if(o)if(o.length>1){const i=o.indexOf(e);i!==-1&&o.splice(i,1)}else o[0]===e&&this.#t.delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=ou(e);if(typeof r=="string"){const i=this.#t.get(r)?.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){const r=ou(e);return typeof r=="string"?this.#t.get(r)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){at.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const r={exact:!0,...e};return this.getAll().find(o=>k0(r,o))}findAll(e={}){return this.getAll().filter(r=>k0(e,r))}notify(e){at.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return at.batch(()=>Promise.all(e.map(r=>r.continue().catch(Ct))))}};function ou(e){return e.options.scope?.id}l(ou,"scopeFor");var MD=class extends ko{static{l(this,"MutationObserver")}#e;#t=void 0;#n;#o;constructor(r,o){super(),this.#e=r,this.setOptions(o),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const o=this.options;this.options=this.#e.defaultMutationOptions(r),ul(this.options,o)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),o?.mutationKey&&this.options.mutationKey&&No(o.mutationKey)!==No(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#r(),this.#a(r)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(r,o){return this.#o=o,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(r)}#r(){const r=this.#n?.state??yS();this.#t={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#a(r){at.batch(()=>{if(this.#o&&this.hasListeners()){const o=this.#t.variables,i=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(r?.type==="success"){try{this.#o.onSuccess?.(r.data,o,i,s)}catch(c){Promise.reject(c)}try{this.#o.onSettled?.(r.data,null,o,i,s)}catch(c){Promise.reject(c)}}else if(r?.type==="error"){try{this.#o.onError?.(r.error,o,i,s)}catch(c){Promise.reject(c)}try{this.#o.onSettled?.(void 0,r.error,o,i,s)}catch(c){Promise.reject(c)}}}this.listeners.forEach(o=>{o(this.#t)})})}};function V0(e,r){const o=new Set(r);return e.filter(i=>!o.has(i))}l(V0,"difference");function ND(e,r,o){const i=e.slice(0);return i[r]=o,i}l(ND,"replaceAt");var DD=class extends ko{static{l(this,"QueriesObserver")}#e;#t;#n;#o;#r;#a;#l;#i;#h;#f=[];constructor(e,r,o){super(),this.#e=e,this.#o=o,this.#n=[],this.#r=[],this.#t=[],this.setQueries(r)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(r=>{this.#s(e,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,r){this.#n=e,this.#o=r,at.batch(()=>{const o=this.#r,i=this.#c(this.#n);i.forEach(b=>b.observer.setOptions(b.defaultedQueryOptions));const s=i.map(b=>b.observer),c=s.map(b=>b.getCurrentResult()),f=o.length!==s.length,d=s.some((b,y)=>b!==o[y]),h=f||d,m=h?!0:c.some((b,y)=>{const S=this.#t[y];return!S||!ul(b,S)});!h&&!m||(h&&(this.#f=i,this.#r=s),this.#t=c,this.hasListeners()&&(h&&(V0(o,s).forEach(b=>{b.destroy()}),V0(s,o).forEach(b=>{b.subscribe(y=>{this.#s(b,y)})})),this.#p()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,r){const o=this.#c(e),i=o.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions)),s=o.map(c=>c.defaultedQueryOptions.queryHash);return[i,c=>this.#u(c??i,r,s),()=>this.#d(i,o)]}#d(e,r){return r.map((o,i)=>{const s=e[i];return o.defaultedQueryOptions.notifyOnChangeProps?s:o.observer.trackResult(s,c=>{r.forEach(f=>{f.observer.trackProp(c)})})})}#u(e,r,o){if(r){const i=this.#h,s=o!==void 0&&i!==void 0&&(i.length!==o.length||o.some((c,f)=>c!==i[f]));return(!this.#a||this.#t!==this.#i||s||r!==this.#l)&&(this.#l=r,this.#i=this.#t,o!==void 0&&(this.#h=o),this.#a=ch(this.#a,r(e))),this.#a}return e}#c(e){const r=new Map;this.#r.forEach(i=>{const s=i.options.queryHash;if(!s)return;const c=r.get(s);c?c.push(i):r.set(s,[i])});const o=[];return e.forEach(i=>{const s=this.#e.defaultQueryOptions(i),f=r.get(s.queryHash)?.shift()??new hh(this.#e,s);o.push({defaultedQueryOptions:s,observer:f})}),o}#s(e,r){const o=this.#r.indexOf(e);o!==-1&&(this.#t=ND(this.#t,o,r),this.#p())}#p(){if(this.hasListeners()){const e=this.#a,r=this.#d(this.#t,this.#f),o=this.#u(r,this.#o?.combine);e!==o&&at.batch(()=>{this.listeners.forEach(i=>{i(this.#t)})})}}},PD=class extends ko{static{l(this,"QueryCache")}constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,r,o){const i=r.queryKey,s=r.queryHash??uh(i,r);let c=this.get(s);return c||(c=new CD({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(r),state:o,defaultOptions:e.getQueryDefaults(i)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=this.#e.get(e.queryHash);r&&(e.destroy(),r===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){at.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const r={exact:!0,...e};return this.getAll().find(o=>z0(r,o))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(o=>z0(e,o)):r}notify(e){at.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){at.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){at.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},x9=class{static{l(this,"QueryClient")}#e;#t;#n;#o;#r;#a;#l;#i;constructor(e={}){this.#e=e.queryCache||new PD,this.#t=e.mutationCache||new AD,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#l=ph.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Cu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),o=this.#e.build(this,r),i=o.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(Kr(r.staleTime,o))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:r,state:o})=>{const i=o.data;return[r,i]})}setQueryData(e,r,o){const i=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(i.queryHash)?.state.data,f=pD(r,c);if(f!==void 0)return this.#e.build(this,i).setData(f,{...o,manual:!0})}setQueriesData(e,r,o){return at.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,o)]))}getQueryState(e){const r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state}removeQueries(e){const r=this.#e;at.batch(()=>{r.findAll(e).forEach(o=>{r.remove(o)})})}resetQueries(e,r){const o=this.#e;return at.batch(()=>(o.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const o={revert:!0,...r},i=at.batch(()=>this.#e.findAll(e).map(s=>s.cancel(o)));return Promise.all(i).then(Ct).catch(Ct)}invalidateQueries(e,r={}){return at.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},r)))}refetchQueries(e,r={}){const o={...r,cancelRefetch:r.cancelRefetch??!0},i=at.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,o);return o.throwOnError||(c=c.catch(Ct)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Ct)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const o=this.#e.build(this,r);return o.isStaleByTime(Kr(r.staleTime,o))?o.fetch(r):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e.behavior=q0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=q0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,r){this.#o.set(No(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...this.#o.values()],o={};return r.forEach(i=>{sl(e,i.queryKey)&&Object.assign(o,i.defaultOptions)}),o}setMutationDefaults(e,r){this.#r.set(No(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...this.#r.values()],o={};return r.forEach(i=>{sl(e,i.mutationKey)&&Object.assign(o,i.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const r={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=uh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===fh&&(r.enabled=!1),r}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},gS=g.createContext(void 0),vh=l(e=>{const r=g.useContext(gS);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},"useQueryClient"),C9=l(({client:e,children:r})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),M.jsx(gS.Provider,{value:e,children:r})),"QueryClientProvider"),bS=g.createContext(!1),SS=l(()=>g.useContext(bS),"useIsRestoring");bS.Provider;function LD(){let e=!1;return{clearReset:l(()=>{e=!1},"clearReset"),reset:l(()=>{e=!0},"reset"),isReset:l(()=>e,"isReset")}}l(LD,"createValue");var jD=g.createContext(LD()),ES=l(()=>g.useContext(jD),"useQueryErrorResetBoundary"),wS=l((e,r,o)=>{const i=o?.state.error&&typeof e.throwOnError=="function"?dh(e.throwOnError,[o.state.error,o]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(r.isReset()||(e.retryOnMount=!1))},"ensurePreventErrorBoundaryRetry"),xS=l(e=>{g.useEffect(()=>{e.clearReset()},[e])},"useClearResetErrorBoundary"),CS=l(({result:e,errorResetBoundary:r,throwOnError:o,query:i,suspense:s})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||dh(o,[e.error,i])),"getHasError"),TS=l(e=>{if(e.suspense){const o=l(s=>s==="static"?s:Math.max(s??1e3,1e3),"clamp"),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>o(i(...s)):o(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},"ensureSuspenseTimers"),RS=l((e,r)=>e.isLoading&&e.isFetching&&!r,"willFetch"),Ep=l((e,r)=>e?.suspense&&r.isPending,"shouldSuspend"),Tu=l((e,r,o)=>r.fetchOptimistic(e).catch(()=>{o.clearReset()}),"fetchOptimistic");function T9({queries:e,...r},o){const i=vh(),s=SS(),c=ES(),f=g.useMemo(()=>e.map(E=>{const T=i.defaultQueryOptions(E);return T._optimisticResults=s?"isRestoring":"optimistic",T}),[e,i,s]);f.forEach(E=>{TS(E);const T=i.getQueryCache().get(E.queryHash);wS(E,c,T)}),xS(c);const[d]=g.useState(()=>new DD(i,f,r)),[h,m,b]=d.getOptimisticResult(f,r.combine),y=!s&&r.subscribed!==!1;g.useSyncExternalStore(g.useCallback(E=>y?d.subscribe(at.batchCalls(E)):Ct,[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),g.useEffect(()=>{d.setQueries(f,r)},[f,r,d]);const w=h.some((E,T)=>Ep(f[T],E))?h.flatMap((E,T)=>{const O=f[T];if(O){const R=new hh(i,O);if(Ep(O,E))return Tu(O,R,c);RS(E,s)&&Tu(O,R,c)}return[]}):[];if(w.length>0)throw Promise.all(w);const C=h.find((E,T)=>{const O=f[T];return O&&CS({result:E,errorResetBoundary:c,throwOnError:O.throwOnError,query:i.getQueryCache().get(O.queryHash),suspense:O.suspense})});if(C?.error)throw C.error;return m(b())}l(T9,"useQueries");function zD(e,r,o){const i=SS(),s=ES(),c=vh(),f=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const d=c.getQueryCache().get(f.queryHash);f._optimisticResults=i?"isRestoring":"optimistic",TS(f),wS(f,s,d),xS(s);const h=!c.getQueryCache().get(f.queryHash),[m]=g.useState(()=>new r(c,f)),b=m.getOptimisticResult(f),y=!i&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(S=>{const w=y?m.subscribe(at.batchCalls(S)):Ct;return m.updateResult(),w},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),g.useEffect(()=>{m.setOptions(f)},[f,m]),Ep(f,b))throw Tu(f,m,s);if(CS({result:b,errorResetBoundary:s,throwOnError:f.throwOnError,query:d,suspense:f.suspense}))throw b.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,b),f.experimental_prefetchInRender&&!Mo&&RS(b,i)&&(h?Tu(f,m,s):d?.promise)?.catch(Ct).finally(()=>{m.updateResult()}),f.notifyOnChangeProps?b:m.trackResult(b)}l(zD,"useBaseQuery");function R9(e,r){return zD(e,hh)}l(R9,"useQuery");function O9(e,r){const o=vh(),[i]=g.useState(()=>new MD(o,e));g.useEffect(()=>{i.setOptions(e)},[i,e]);const s=g.useSyncExternalStore(g.useCallback(f=>i.subscribe(at.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=g.useCallback((f,d)=>{i.mutate(f,d).catch(Ct)},[i]);if(s.error&&dh(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}l(O9,"useMutation");var Y0="popstate";function kD(e={}){function r(i,s){let{pathname:c,search:f,hash:d}=i.location;return wp("",{pathname:c,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}l(r,"createBrowserLocation");function o(i,s){return typeof s=="string"?s:cl(s)}return l(o,"createBrowserHref"),HD(r,o,null,e)}l(kD,"createBrowserHistory");function nt(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}l(nt,"invariant");function yn(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}l(yn,"warning");function UD(){return Math.random().toString(36).substring(2,10)}l(UD,"createKey");function Q0(e,r){return{usr:e.state,key:e.key,idx:r}}l(Q0,"getHistoryState");function wp(e,r,o=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof r=="string"?Qa(r):r,state:o,key:r&&r.key||i||UD()}}l(wp,"createLocation");function cl({pathname:e="/",search:r="",hash:o=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}l(cl,"createPath");function Qa(e){let r={};if(e){let o=e.indexOf("#");o>=0&&(r.hash=e.substring(o),e=e.substring(0,o));let i=e.indexOf("?");i>=0&&(r.search=e.substring(i),e=e.substring(0,i)),e&&(r.pathname=e)}return r}l(Qa,"parsePath");function HD(e,r,o,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,f=s.history,d="POP",h=null,m=b();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function b(){return(f.state||{idx:null}).idx}l(b,"getIndex");function y(){d="POP";let T=b(),O=T==null?null:T-m;m=T,h&&h({action:d,location:E.location,delta:O})}l(y,"handlePop");function S(T,O){d="PUSH";let R=wp(E.location,T,O);m=b()+1;let A=Q0(R,m),D=E.createHref(R);try{f.pushState(A,"",D)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;s.location.assign(D)}c&&h&&h({action:d,location:E.location,delta:1})}l(S,"push");function w(T,O){d="REPLACE";let R=wp(E.location,T,O);m=b();let A=Q0(R,m),D=E.createHref(R);f.replaceState(A,"",D),c&&h&&h({action:d,location:E.location,delta:0})}l(w,"replace2");function C(T){return BD(T)}l(C,"createURL");let E={get action(){return d},get location(){return e(s,f)},listen(T){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Y0,y),h=T,()=>{s.removeEventListener(Y0,y),h=null}},createHref(T){return r(s,T)},createURL:C,encodeLocation(T){let O=C(T);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:S,replace:w,go(T){return f.go(T)}};return E}l(HD,"getUrlBasedHistory");function BD(e,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),nt(o,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:cl(e);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}l(BD,"createBrowserURLImpl");function OS(e,r,o="/"){return ID(e,r,o,!1)}l(OS,"matchRoutes");function ID(e,r,o,i){let s=typeof r=="string"?Qa(r):r,c=br(s.pathname||"/",o);if(c==null)return null;let f=_S(e);FD(f);let d=null;for(let h=0;d==null&&h<f.length;++h){let m=JD(c);d=WD(f[h],m,i)}return d}l(ID,"matchRoutesImpl");function _S(e,r=[],o=[],i="",s=!1){let c=l((f,d,h=s,m)=>{let b={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(i)&&h)return;nt(b.relativePath.startsWith(i),`Absolute route path "${b.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(i.length)}let y=vr([i,b.relativePath]),S=o.concat(b);f.children&&f.children.length>0&&(nt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),_S(f.children,r,S,y,h)),!(f.path==null&&!f.index)&&r.push({path:y,score:KD(y,f.index),routesMeta:S})},"flattenRoute");return e.forEach((f,d)=>{if(f.path===""||!f.path?.includes("?"))c(f,d);else for(let h of AS(f.path))c(f,d,!0,h)}),r}l(_S,"flattenRoutes");function AS(e){let r=e.split("/");if(r.length===0)return[];let[o,...i]=r,s=o.endsWith("?"),c=o.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let f=AS(i.join("/")),d=[];return d.push(...f.map(h=>h===""?c:[c,h].join("/"))),s&&d.push(...f),d.map(h=>e.startsWith("/")&&h===""?"/":h)}l(AS,"explodeOptionalSegments");function FD(e){e.sort((r,o)=>r.score!==o.score?o.score-r.score:XD(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}l(FD,"rankRouteBranches");var $D=/^:[\w-]+$/,qD=3,GD=2,VD=1,YD=10,QD=-2,K0=l(e=>e==="*","isSplat");function KD(e,r){let o=e.split("/"),i=o.length;return o.some(K0)&&(i+=QD),r&&(i+=GD),o.filter(s=>!K0(s)).reduce((s,c)=>s+($D.test(c)?qD:c===""?VD:YD),i)}l(KD,"computeScore");function XD(e,r){return e.length===r.length&&e.slice(0,-1).every((i,s)=>i===r[s])?e[e.length-1]-r[r.length-1]:0}l(XD,"compareIndexes");function WD(e,r,o=!1){let{routesMeta:i}=e,s={},c="/",f=[];for(let d=0;d<i.length;++d){let h=i[d],m=d===i.length-1,b=c==="/"?r:r.slice(c.length)||"/",y=Ru({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},b),S=h.route;if(!y&&m&&o&&!i[i.length-1].route.index&&(y=Ru({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},b)),!y)return null;Object.assign(s,y.params),f.push({params:s,pathname:vr([c,y.pathname]),pathnameBase:r3(vr([c,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(c=vr([c,y.pathnameBase]))}return f}l(WD,"matchRouteBranch");function Ru(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[o,i]=ZD(e.path,e.caseSensitive,e.end),s=r.match(o);if(!s)return null;let c=s[0],f=c.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:i.reduce((m,{paramName:b,isOptional:y},S)=>{if(b==="*"){let C=d[S]||"";f=c.slice(0,c.length-C.length).replace(/(.)\/+$/,"$1")}const w=d[S];return y&&!w?m[b]=void 0:m[b]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:e}}l(Ru,"matchPath");function ZD(e,r=!1,o=!0){yn(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 i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),i]}l(ZD,"compilePath");function JD(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return yn(!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 (${r}).`),e}}l(JD,"decodePath");function br(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=e.charAt(o);return i&&i!=="/"?null:e.slice(o)||"/"}l(br,"stripBasename");var MS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e3=l(e=>MS.test(e),"isAbsoluteUrl");function t3(e,r="/"){let{pathname:o,search:i="",hash:s=""}=typeof e=="string"?Qa(e):e,c;if(o)if(e3(o))c=o;else{if(o.includes("//")){let f=o;o=o.replace(/\/\/+/g,"/"),yn(!1,`Pathnames cannot have embedded double slashes - normalizing ${f} -> ${o}`)}o.startsWith("/")?c=X0(o.substring(1),"/"):c=X0(o,r)}else c=r;return{pathname:c,search:o3(i),hash:a3(s)}}l(t3,"resolvePath");function X0(e,r){let o=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?o.length>1&&o.pop():s!=="."&&o.push(s)}),o.length>1?o.join("/"):"/"}l(X0,"resolvePathname");function qd(e,r,o,i){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}l(qd,"getInvalidPathError");function n3(e){return e.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}l(n3,"getPathContributingMatches");function NS(e){let r=n3(e);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}l(NS,"getResolveToMatches");function DS(e,r,o,i=!1){let s;typeof e=="string"?s=Qa(e):(s={...e},nt(!s.pathname||!s.pathname.includes("?"),qd("?","pathname","search",s)),nt(!s.pathname||!s.pathname.includes("#"),qd("#","pathname","hash",s)),nt(!s.search||!s.search.includes("#"),qd("#","search","hash",s)));let c=e===""||s.pathname==="",f=c?"/":s.pathname,d;if(f==null)d=o;else{let y=r.length-1;if(!i&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),y-=1;s.pathname=S.join("/")}d=y>=0?r[y]:"/"}let h=t3(s,d),m=f&&f!=="/"&&f.endsWith("/"),b=(c||f===".")&&o.endsWith("/");return!h.pathname.endsWith("/")&&(m||b)&&(h.pathname+="/"),h}l(DS,"resolveTo");var vr=l(e=>e.join("/").replace(/\/\/+/g,"/"),"joinPaths"),r3=l(e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),"normalizePathname"),o3=l(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),a3=l(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),i3=class{static{l(this,"ErrorResponseImpl")}constructor(e,r,o,i=!1){this.status=e,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function l3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}l(l3,"isRouteErrorResponse");function s3(e){return e.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}l(s3,"getRoutePattern");var PS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function LS(e,r){let o=e;if(typeof o!="string"||!MS.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,s=!1;if(PS)try{let c=new URL(window.location.href),f=o.startsWith("//")?new URL(c.protocol+o):new URL(o),d=br(f.pathname,r);f.origin===c.origin&&d!=null?o=d+f.search+f.hash:s=!0}catch{yn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:o}}l(LS,"parseToInfo");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jS=["POST","PUT","PATCH","DELETE"];new Set(jS);var u3=["GET",...jS];new Set(u3);var Ka=g.createContext(null);Ka.displayName="DataRouter";var Qu=g.createContext(null);Qu.displayName="DataRouterState";var c3=g.createContext(!1),zS=g.createContext({isTransitioning:!1});zS.displayName="ViewTransition";var f3=g.createContext(new Map);f3.displayName="Fetchers";var d3=g.createContext(null);d3.displayName="Await";var gn=g.createContext(null);gn.displayName="Navigation";var Sl=g.createContext(null);Sl.displayName="Location";var Qn=g.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var yh=g.createContext(null);yh.displayName="RouteError";var kS="REACT_ROUTER_ERROR",p3="REDIRECT",h3="ROUTE_ERROR_RESPONSE";function m3(e){if(e.startsWith(`${kS}:${p3}:{`))try{let r=JSON.parse(e.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}l(m3,"decodeRedirectErrorDigest");function v3(e){if(e.startsWith(`${kS}:${h3}:{`))try{let r=JSON.parse(e.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new i3(r.status,r.statusText,r.data)}catch{}}l(v3,"decodeRouteErrorResponseDigest");function y3(e,{relative:r}={}){nt(El(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=g.useContext(gn),{hash:s,pathname:c,search:f}=wl(e,{relative:r}),d=c;return o!=="/"&&(d=c==="/"?o:vr([o,c])),i.createHref({pathname:d,search:f,hash:s})}l(y3,"useHref");function El(){return g.useContext(Sl)!=null}l(El,"useInRouterContext");function eo(){return nt(El(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Sl).location}l(eo,"useLocation");var US="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function HS(e){g.useContext(gn).static||g.useLayoutEffect(e)}l(HS,"useIsomorphicLayoutEffect");function BS(){let{isDataRoute:e}=g.useContext(Qn);return e?M3():g3()}l(BS,"useNavigate");function g3(){nt(El(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Ka),{basename:r,navigator:o}=g.useContext(gn),{matches:i}=g.useContext(Qn),{pathname:s}=eo(),c=JSON.stringify(NS(i)),f=g.useRef(!1);return HS(()=>{f.current=!0}),g.useCallback((h,m={})=>{if(yn(f.current,US),!f.current)return;if(typeof h=="number"){o.go(h);return}let b=DS(h,JSON.parse(c),s,m.relative==="path");e==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:vr([r,b.pathname])),(m.replace?o.replace:o.push)(b,m.state,m)},[r,o,c,s,e])}l(g3,"useNavigateUnstable");g.createContext(null);function _9(){let{matches:e}=g.useContext(Qn),r=e[e.length-1];return r?r.params:{}}l(_9,"useParams");function wl(e,{relative:r}={}){let{matches:o}=g.useContext(Qn),{pathname:i}=eo(),s=JSON.stringify(NS(o));return g.useMemo(()=>DS(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}l(wl,"useResolvedPath");function b3(e,r){return IS(e,r)}l(b3,"useRoutes");function IS(e,r,o,i,s){nt(El(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=g.useContext(gn),{matches:f}=g.useContext(Qn),d=f[f.length-1],h=d?d.params:{},m=d?d.pathname:"/",b=d?d.pathnameBase:"/",y=d&&d.route;{let R=y&&y.path||"";$S(m,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
54
-
55
- Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let S=eo(),w;if(r){let R=typeof r=="string"?Qa(r):r;nt(b==="/"||R.pathname?.startsWith(b),`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 "${b}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=S;let C=w.pathname||"/",E=C;if(b!=="/"){let R=b.replace(/^\//,"").split("/");E="/"+C.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=OS(e,{pathname:E});yn(y||T!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),yn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 O=C3(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:vr([b,c.encodeLocation?c.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:vr([b,c.encodeLocation?c.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),f,o,i,s);return r&&O?g.createElement(Sl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},O):O}l(IS,"useRoutesImpl");function S3(){let e=A3(),r=l3(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),o=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:c},"ErrorBoundary")," or"," ",g.createElement("code",{style:c},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),o?g.createElement("pre",{style:s},o):null,f)}l(S3,"DefaultErrorComponent");var E3=g.createElement(S3,null),FS=class extends g.Component{static{l(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const o=v3(e.digest);o&&(e=o)}let r=e!==void 0?g.createElement(Qn.Provider,{value:this.props.routeContext},g.createElement(yh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(w3,{error:e},r):r}};FS.contextType=c3;var Gd=new WeakMap;function w3({children:e,error:r}){let{basename:o}=g.useContext(gn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=m3(r.digest);if(i){let s=Gd.get(r);if(s)throw s;let c=LS(i.location,o);if(PS&&!Gd.get(r))if(c.isExternal||i.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw Gd.set(r,f),f}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}l(w3,"RSCErrorHandler");function x3({routeContext:e,match:r,children:o}){let i=g.useContext(Ka);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(Qn.Provider,{value:e},o)}l(x3,"RenderedRoute");function C3(e,r=[],o=null,i=null,s=null){if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let c=e,f=o?.errors;if(f!=null){let b=c.findIndex(y=>y.route.id&&f?.[y.route.id]!==void 0);nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let d=!1,h=-1;if(o)for(let b=0;b<c.length;b++){let y=c[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=b),y.route.id){let{loaderData:S,errors:w}=o,C=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!w||w[y.route.id]===void 0);if(y.route.lazy||C){d=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let m=o&&i?(b,y)=>{i(b,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:s3(o.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,S)=>{let w,C=!1,E=null,T=null;o&&(w=f&&y.route.id?f[y.route.id]:void 0,E=y.route.errorElement||E3,d&&(h<0&&S===0?($S("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,T=null):h===S&&(C=!0,T=y.route.hydrateFallbackElement||null)));let O=r.concat(c.slice(0,S+1)),R=l(()=>{let A;return w?A=E:C?A=T:y.route.Component?A=g.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=b,g.createElement(x3,{match:y,routeContext:{outlet:b,matches:O,isDataRoute:o!=null},children:A})},"getChildren");return o&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?g.createElement(FS,{location:o.location,revalidation:o.revalidation,component:E,error:w,children:R(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):R()},null)}l(C3,"_renderMatches");function gh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}l(gh,"getDataRouterConsoleError");function T3(e){let r=g.useContext(Ka);return nt(r,gh(e)),r}l(T3,"useDataRouterContext");function R3(e){let r=g.useContext(Qu);return nt(r,gh(e)),r}l(R3,"useDataRouterState");function O3(e){let r=g.useContext(Qn);return nt(r,gh(e)),r}l(O3,"useRouteContext");function bh(e){let r=O3(e),o=r.matches[r.matches.length-1];return nt(o.route.id,`${e} can only be used on routes that contain a unique "id"`),o.route.id}l(bh,"useCurrentRouteId");function _3(){return bh("useRouteId")}l(_3,"useRouteId");function A3(){let e=g.useContext(yh),r=R3("useRouteError"),o=bh("useRouteError");return e!==void 0?e:r.errors?.[o]}l(A3,"useRouteError");function M3(){let{router:e}=T3("useNavigate"),r=bh("useNavigate"),o=g.useRef(!1);return HS(()=>{o.current=!0}),g.useCallback(async(s,c={})=>{yn(o.current,US),o.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:r,...c}))},[e,r])}l(M3,"useNavigateStable");var W0={};function $S(e,r,o){!r&&!W0[e]&&(W0[e]=!0,yn(!1,o))}l($S,"warningOnce");g.memo(N3);function N3({routes:e,future:r,state:o,onError:i}){return IS(e,void 0,o,i,r)}l(N3,"DataRoutes");function D3(e){nt(!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>.")}l(D3,"Route");function P3({basename:e="/",children:r=null,location:o,navigationType:i="POP",navigator:s,static:c=!1,unstable_useTransitions:f}){nt(!El(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),h=g.useMemo(()=>({basename:d,navigator:s,static:c,unstable_useTransitions:f,future:{}}),[d,s,c,f]);typeof o=="string"&&(o=Qa(o));let{pathname:m="/",search:b="",hash:y="",state:S=null,key:w="default"}=o,C=g.useMemo(()=>{let E=br(m,d);return E==null?null:{location:{pathname:E,search:b,hash:y,state:S,key:w},navigationType:i}},[d,m,b,y,S,w,i]);return yn(C!=null,`<Router basename="${d}"> is not able to match the URL "${m}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:g.createElement(gn.Provider,{value:h},g.createElement(Sl.Provider,{children:r,value:C}))}l(P3,"Router");function A9({children:e,location:r}){return b3(xp(e),r)}l(A9,"Routes");function xp(e,r=[]){let o=[];return g.Children.forEach(e,(i,s)=>{if(!g.isValidElement(i))return;let c=[...r,s];if(i.type===g.Fragment){o.push.apply(o,xp(i.props.children,c));return}nt(i.type===D3,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),nt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(f.children=xp(i.props.children,c)),o.push(f)}),o}l(xp,"createRoutesFromChildren");var pu="get",hu="application/x-www-form-urlencoded";function Ku(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}l(Ku,"isHtmlElement");function L3(e){return Ku(e)&&e.tagName.toLowerCase()==="button"}l(L3,"isButtonElement");function j3(e){return Ku(e)&&e.tagName.toLowerCase()==="form"}l(j3,"isFormElement");function z3(e){return Ku(e)&&e.tagName.toLowerCase()==="input"}l(z3,"isInputElement");function k3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}l(k3,"isModifiedEvent");function U3(e,r){return e.button===0&&(!r||r==="_self")&&!k3(e)}l(U3,"shouldProcessLinkClick");function Cp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((r,o)=>{let i=e[o];return r.concat(Array.isArray(i)?i.map(s=>[o,s]):[[o,i]])},[]))}l(Cp,"createSearchParams");function H3(e,r){let o=Cp(e);return r&&r.forEach((i,s)=>{o.has(s)||r.getAll(s).forEach(c=>{o.append(s,c)})}),o}l(H3,"getSearchParamsForLocation");var au=null;function B3(){if(au===null)try{new FormData(document.createElement("form"),0),au=!1}catch{au=!0}return au}l(B3,"isFormDataSubmitterSupported");var I3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vd(e){return e!=null&&!I3.has(e)?(yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hu}"`),null):e}l(Vd,"getFormEncType");function F3(e,r){let o,i,s,c,f;if(j3(e)){let d=e.getAttribute("action");i=d?br(d,r):null,o=e.getAttribute("method")||pu,s=Vd(e.getAttribute("enctype"))||hu,c=new FormData(e)}else if(L3(e)||z3(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(i=h?br(h,r):null,o=e.getAttribute("formmethod")||d.getAttribute("method")||pu,s=Vd(e.getAttribute("formenctype"))||Vd(d.getAttribute("enctype"))||hu,c=new FormData(d,e),!B3()){let{name:m,type:b,value:y}=e;if(b==="image"){let S=m?`${m}.`:"";c.append(`${S}x`,"0"),c.append(`${S}y`,"0")}else m&&c.append(m,y)}}else{if(Ku(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=pu,i=null,s=hu,f=e}return c&&s==="text/plain"&&(f=c,c=void 0),{action:i,method:o.toLowerCase(),encType:s,formData:c,body:f}}l(F3,"getFormSubmissionInfo");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sh(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}l(Sh,"invariant2");function $3(e,r,o,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:r&&br(s.pathname,r)==="/"?s.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}l($3,"singleFetchUrl");async function q3(e,r){if(e.id in r)return r[e.id];try{let o=await import(e.module);return r[e.id]=o,o}catch(o){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}l(q3,"loadRouteModule");function G3(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"}l(G3,"isHtmlLinkDescriptor");async function V3(e,r,o){let i=await Promise.all(e.map(async s=>{let c=r.routes[s.route.id];if(c){let f=await q3(c,o);return f.links?f.links():[]}return[]}));return X3(i.flat(1).filter(G3).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}l(V3,"getKeyedPrefetchLinks");function Z0(e,r,o,i,s,c){let f=l((h,m)=>o[m]?h.route.id!==o[m].route.id:!0,"isNew"),d=l((h,m)=>o[m].pathname!==h.pathname||o[m].route.path?.endsWith("*")&&o[m].params["*"]!==h.params["*"],"matchPathChanged");return c==="assets"?r.filter((h,m)=>f(h,m)||d(h,m)):c==="data"?r.filter((h,m)=>{let b=i.routes[h.route.id];if(!b||!b.hasLoader)return!1;if(f(h,m)||d(h,m))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}l(Z0,"getNewMatchesForLinks");function Y3(e,r,{includeHydrateFallback:o}={}){return Q3(e.map(i=>{let s=r.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),o&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}l(Y3,"getModuleLinkHrefs");function Q3(e){return[...new Set(e)]}l(Q3,"dedupeHrefs");function K3(e){let r={},o=Object.keys(e).sort();for(let i of o)r[i]=e[i];return r}l(K3,"sortKeys");function X3(e,r){let o=new Set;return new Set(r),e.reduce((i,s)=>{let c=JSON.stringify(K3(s));return o.has(c)||(o.add(c),i.push({key:c,link:s})),i},[])}l(X3,"dedupeLinkDescriptors");function qS(){let e=g.useContext(Ka);return Sh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}l(qS,"useDataRouterContext2");function W3(){let e=g.useContext(Qu);return Sh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}l(W3,"useDataRouterStateContext");var Eh=g.createContext(void 0);Eh.displayName="FrameworkContext";function GS(){let e=g.useContext(Eh);return Sh(e,"You must render this element inside a <HydratedRouter> element"),e}l(GS,"useFrameworkContext");function Z3(e,r){let o=g.useContext(Eh),[i,s]=g.useState(!1),[c,f]=g.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:m,onMouseLeave:b,onTouchStart:y}=r,S=g.useRef(null);g.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let E=l(O=>{O.forEach(R=>{f(R.isIntersecting)})},"callback"),T=new IntersectionObserver(E,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[e]),g.useEffect(()=>{if(i){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[i]);let w=l(()=>{s(!0)},"setIntent"),C=l(()=>{s(!1),f(!1)},"cancelIntent");return o?e!=="intent"?[c,S,{}]:[c,S,{onFocus:Ki(d,w),onBlur:Ki(h,C),onMouseEnter:Ki(m,w),onMouseLeave:Ki(b,C),onTouchStart:Ki(y,w)}]:[!1,S,{}]}l(Z3,"usePrefetchBehavior");function Ki(e,r){return o=>{e&&e(o),o.defaultPrevented||r(o)}}l(Ki,"composeEventHandlers");function J3({page:e,...r}){let{router:o}=qS(),i=g.useMemo(()=>OS(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?g.createElement(tP,{page:e,matches:i,...r}):null}l(J3,"PrefetchPageLinks");function eP(e){let{manifest:r,routeModules:o}=GS(),[i,s]=g.useState([]);return g.useEffect(()=>{let c=!1;return V3(e,r,o).then(f=>{c||s(f)}),()=>{c=!0}},[e,r,o]),i}l(eP,"useKeyedPrefetchLinks");function tP({page:e,matches:r,...o}){let i=eo(),{future:s,manifest:c,routeModules:f}=GS(),{basename:d}=qS(),{loaderData:h,matches:m}=W3(),b=g.useMemo(()=>Z0(e,r,m,c,i,"data"),[e,r,m,c,i]),y=g.useMemo(()=>Z0(e,r,m,c,i,"assets"),[e,r,m,c,i]),S=g.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,T=!1;if(r.forEach(R=>{let A=c.routes[R.route.id];!A||!A.hasLoader||(!b.some(D=>D.route.id===R.route.id)&&R.route.id in h&&f[R.route.id]?.shouldRevalidate||A.hasClientLoader?T=!0:E.add(R.route.id))}),E.size===0)return[];let O=$3(e,d,s.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&O.searchParams.set("_routes",r.filter(R=>E.has(R.route.id)).map(R=>R.route.id).join(",")),[O.pathname+O.search]},[d,s.unstable_trailingSlashAwareDataRequests,h,i,c,b,r,e,f]),w=g.useMemo(()=>Y3(y,c),[y,c]),C=eP(y);return g.createElement(g.Fragment,null,S.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),w.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),C.map(({key:E,link:T})=>g.createElement("link",{key:E,nonce:o.nonce,...T})))}l(tP,"PrefetchPageLinksImpl");function nP(...e){return r=>{e.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}l(nP,"mergeRefs");var rP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rP&&(window.__reactRouterVersion="7.12.0")}catch{}function M9({basename:e,children:r,unstable_useTransitions:o,window:i}){let s=g.useRef();s.current==null&&(s.current=kD({window:i,v5Compat:!0}));let c=s.current,[f,d]=g.useState({action:c.action,location:c.location}),h=g.useCallback(m=>{o===!1?d(m):g.startTransition(()=>d(m))},[o]);return g.useLayoutEffect(()=>c.listen(h),[c,h]),g.createElement(P3,{basename:e,children:r,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:o})}l(M9,"BrowserRouter");var VS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YS=g.forwardRef(l(function({onClick:r,discover:o="render",prefetch:i="none",relative:s,reloadDocument:c,replace:f,state:d,target:h,to:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S,...w},C){let{basename:E,unstable_useTransitions:T}=g.useContext(gn),O=typeof m=="string"&&VS.test(m),R=LS(m,E);m=R.to;let A=y3(m,{relative:s}),[D,j,I]=Z3(i,w),U=lP(m,{replace:f,state:d,target:h,preventScrollReset:b,relative:s,viewTransition:y,unstable_defaultShouldRevalidate:S,unstable_useTransitions:T});function Q(W){r&&r(W),W.defaultPrevented||U(W)}l(Q,"handleClick");let ee=g.createElement("a",{...w,...I,href:R.absoluteURL||A,onClick:R.isExternal||c?r:Q,ref:nP(C,j),target:h,"data-discover":!O&&o==="render"?"true":void 0});return D&&!O?g.createElement(g.Fragment,null,ee,g.createElement(J3,{page:A})):ee},"LinkWithRef"));YS.displayName="Link";var oP=g.forwardRef(l(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:c,to:f,viewTransition:d,children:h,...m},b){let y=wl(f,{relative:m.relative}),S=eo(),w=g.useContext(Qu),{navigator:C,basename:E}=g.useContext(gn),T=w!=null&&dP(y)&&d===!0,O=C.encodeLocation?C.encodeLocation(y).pathname:y.pathname,R=S.pathname,A=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;o||(R=R.toLowerCase(),A=A?A.toLowerCase():null,O=O.toLowerCase()),A&&E&&(A=br(A,E)||A);const D=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let j=R===O||!s&&R.startsWith(O)&&R.charAt(D)==="/",I=A!=null&&(A===O||!s&&A.startsWith(O)&&A.charAt(O.length)==="/"),U={isActive:j,isPending:I,isTransitioning:T},Q=j?r:void 0,ee;typeof i=="function"?ee=i(U):ee=[i,j?"active":null,I?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let W=typeof c=="function"?c(U):c;return g.createElement(YS,{...m,"aria-current":Q,className:ee,ref:b,style:W,to:f,viewTransition:d},typeof h=="function"?h(U):h)},"NavLinkWithRef"));oP.displayName="NavLink";var aP=g.forwardRef(({discover:e="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:s,state:c,method:f=pu,action:d,onSubmit:h,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S,...w},C)=>{let{unstable_useTransitions:E}=g.useContext(gn),T=cP(),O=fP(d,{relative:m}),R=f.toLowerCase()==="get"?"get":"post",A=typeof d=="string"&&VS.test(d),D=l(j=>{if(h&&h(j),j.defaultPrevented)return;j.preventDefault();let I=j.nativeEvent.submitter,U=I?.getAttribute("formmethod")||f,Q=l(()=>T(I||j.currentTarget,{fetcherKey:r,method:U,navigate:o,replace:s,state:c,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S}),"doSubmit");E&&o!==!1?g.startTransition(()=>Q()):Q()},"submitHandler");return g.createElement("form",{ref:C,method:R,action:O,onSubmit:i?h:D,...w,"data-discover":!A&&e==="render"?"true":void 0})});aP.displayName="Form";function iP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}l(iP,"getDataRouterConsoleError2");function QS(e){let r=g.useContext(Ka);return nt(r,iP(e)),r}l(QS,"useDataRouterContext3");function lP(e,{target:r,replace:o,state:i,preventScrollReset:s,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let m=BS(),b=eo(),y=wl(e,{relative:c});return g.useCallback(S=>{if(U3(S,r)){S.preventDefault();let w=o!==void 0?o:cl(b)===cl(y),C=l(()=>m(e,{replace:w,state:i,preventScrollReset:s,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d}),"doNavigate");h?g.startTransition(()=>C()):C()}},[b,m,y,o,i,r,e,s,c,f,d,h])}l(lP,"useLinkClickHandler");function N9(e){yn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=g.useRef(Cp(e)),o=g.useRef(!1),i=eo(),s=g.useMemo(()=>H3(i.search,o.current?null:r.current),[i.search]),c=BS(),f=g.useCallback((d,h)=>{const m=Cp(typeof d=="function"?d(new URLSearchParams(s)):d);o.current=!0,c("?"+m,h)},[c,s]);return[s,f]}l(N9,"useSearchParams");var sP=0,uP=l(()=>`__${String(++sP)}__`,"getUniqueFetcherId");function cP(){let{router:e}=QS("useSubmit"),{basename:r}=g.useContext(gn),o=_3(),i=e.fetch,s=e.navigate;return g.useCallback(async(c,f={})=>{let{action:d,method:h,encType:m,formData:b,body:y}=F3(c,r);if(f.navigate===!1){let S=f.fetcherKey||uP();await i(S,o,f.action||d,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:b,body:y,formMethod:f.method||h,formEncType:f.encType||m,flushSync:f.flushSync})}else await s(f.action||d,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:b,body:y,formMethod:f.method||h,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,s,r,o])}l(cP,"useSubmit");function fP(e,{relative:r}={}){let{basename:o}=g.useContext(gn),i=g.useContext(Qn);nt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...wl(e||".",{relative:r})},f=eo();if(e==null){c.search=f.search;let d=new URLSearchParams(c.search),h=d.getAll("index");if(h.some(b=>b==="")){d.delete("index"),h.filter(y=>y).forEach(y=>d.append("index",y));let b=d.toString();c.search=b?`?${b}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(c.pathname=c.pathname==="/"?o:vr([o,c.pathname])),cl(c)}l(fP,"useFormAction");function dP(e,{relative:r}={}){let o=g.useContext(zS);nt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=QS("useViewTransitionState"),s=wl(e,{relative:r});if(!o.isTransitioning)return!1;let c=br(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=br(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Ru(s.pathname,f)!=null||Ru(s.pathname,c)!=null}l(dP,"useViewTransitionState");var pP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hP=pP.reduce((e,r)=>{const o=zu(`Primitive.${r}`),i=g.forwardRef((s,c)=>{const{asChild:f,...d}=s,h=f?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(h,{...d,ref:c})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),mP="Label",KS=g.forwardRef((e,r)=>M.jsx(hP.label,{...e,ref:r,onMouseDown:l(o=>{o.target.closest("button, input, select, textarea")||(e.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())},"onMouseDown")}));KS.displayName=mP;var D9=KS;function J0(e){const r=vP(e),o=g.forwardRef((i,s)=>{const{children:c,...f}=i,d=g.Children.toArray(c),h=d.find(gP);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(J0,"createSlot$2");function vP(e){const r=g.forwardRef((o,i)=>{const{children:s,...c}=o;if(g.isValidElement(s)){const f=SP(s),d=bP(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(vP,"createSlotClone$2");var yP=Symbol("radix.slottable");function gP(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yP}l(gP,"isSlottable$2");function bP(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(bP,"mergeProps$2");function SP(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(SP,"getElementRef$2");function Xu(e){const r=e+"CollectionProvider",[o,i]=It(r),[s,c]=o(r,{collectionRef:{current:null},itemMap:new Map}),f=l(E=>{const{scope:T,children:O}=E,R=xe.useRef(null),A=xe.useRef(new Map).current;return M.jsx(s,{scope:T,itemMap:A,collectionRef:R,children:O})},"CollectionProvider");f.displayName=r;const d=e+"CollectionSlot",h=J0(d),m=xe.forwardRef((E,T)=>{const{scope:O,children:R}=E,A=c(d,O),D=Oe(T,A.collectionRef);return M.jsx(h,{ref:D,children:R})});m.displayName=d;const b=e+"CollectionItemSlot",y="data-radix-collection-item",S=J0(b),w=xe.forwardRef((E,T)=>{const{scope:O,children:R,...A}=E,D=xe.useRef(null),j=Oe(T,D),I=c(b,O);return xe.useEffect(()=>(I.itemMap.set(D,{ref:D,...A}),()=>{I.itemMap.delete(D)})),M.jsx(S,{[y]:"",ref:j,children:R})});w.displayName=b;function C(E){const T=c(e+"CollectionConsumer",E);return xe.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const A=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((I,U)=>A.indexOf(I.ref.current)-A.indexOf(U.ref.current))},[T.collectionRef,T.itemMap])}return l(C,"useCollection"),[{Provider:f,Slot:m,ItemSlot:w},C,i]}l(Xu,"createCollection");var EP=g.createContext(void 0);function xl(e){const r=g.useContext(EP);return e||r||"ltr"}l(xl,"useDirection");var Yd="rovingFocusGroup.onEntryFocus",wP={bubbles:!1,cancelable:!0},Cl="RovingFocusGroup",[Tp,XS,xP]=Xu(Cl),[CP,Wu]=It(Cl,[xP]),[TP,RP]=CP(Cl),WS=g.forwardRef((e,r)=>M.jsx(Tp.Provider,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Tp.Slot,{scope:e.__scopeRovingFocusGroup,children:M.jsx(OP,{...e,ref:r})})}));WS.displayName=Cl;var OP=g.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:s=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:b=!1,...y}=e,S=g.useRef(null),w=Oe(r,S),C=xl(c),[E,T]=Gn({prop:f,defaultProp:d??null,onChange:h,caller:Cl}),[O,R]=g.useState(!1),A=it(m),D=XS(o),j=g.useRef(!1),[I,U]=g.useState(0);return g.useEffect(()=>{const Q=S.current;if(Q)return Q.addEventListener(Yd,A),()=>Q.removeEventListener(Yd,A)},[A]),M.jsx(TP,{scope:o,orientation:i,dir:C,loop:s,currentTabStopId:E,onItemFocus:g.useCallback(Q=>T(Q),[T]),onItemShiftTab:g.useCallback(()=>R(!0),[]),onFocusableItemAdd:g.useCallback(()=>U(Q=>Q+1),[]),onFocusableItemRemove:g.useCallback(()=>U(Q=>Q-1),[]),children:M.jsx(be.div,{tabIndex:O||I===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:ie(e.onMouseDown,()=>{j.current=!0}),onFocus:ie(e.onFocus,Q=>{const ee=!j.current;if(Q.target===Q.currentTarget&&ee&&!O){const W=new CustomEvent(Yd,wP);if(Q.currentTarget.dispatchEvent(W),!W.defaultPrevented){const oe=D().filter(z=>z.focusable),ue=oe.find(z=>z.active),ve=oe.find(z=>z.id===E),me=[ue,ve,...oe].filter(Boolean).map(z=>z.ref.current);eE(me,b)}}j.current=!1}),onBlur:ie(e.onBlur,()=>R(!1))})})}),ZS="RovingFocusGroupItem",JS=g.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:s=!1,tabStopId:c,children:f,...d}=e,h=hn(),m=c||h,b=RP(ZS,o),y=b.currentTabStopId===m,S=XS(o),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:E}=b;return g.useEffect(()=>{if(i)return w(),()=>C()},[i,w,C]),M.jsx(Tp.ItemSlot,{scope:o,id:m,focusable:i,active:s,children:M.jsx(be.span,{tabIndex:y?0:-1,"data-orientation":b.orientation,...d,ref:r,onMouseDown:ie(e.onMouseDown,T=>{i?b.onItemFocus(m):T.preventDefault()}),onFocus:ie(e.onFocus,()=>b.onItemFocus(m)),onKeyDown:ie(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){b.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const O=MP(T,b.orientation,b.dir);if(O!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let A=S().filter(D=>D.focusable).map(D=>D.ref.current);if(O==="last")A.reverse();else if(O==="prev"||O==="next"){O==="prev"&&A.reverse();const D=A.indexOf(T.currentTarget);A=b.loop?NP(A,D+1):A.slice(D+1)}setTimeout(()=>eE(A))}}),children:typeof f=="function"?f({isCurrentTabStop:y,hasTabStop:E!=null}):f})})});JS.displayName=ZS;var _P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AP(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}l(AP,"getDirectionAwareKey");function MP(e,r,o){const i=AP(e.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return _P[i]}l(MP,"getFocusIntent");function eE(e,r=!1){const o=document.activeElement;for(const i of e)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}l(eE,"focusFirst$2");function NP(e,r){return e.map((o,i)=>e[(r+i)%e.length])}l(NP,"wrapArray$2");var tE=WS,nE=JS,Zu="Tabs",[DP]=It(Zu,[Wu]),rE=Wu(),[PP,wh]=DP(Zu),oE=g.forwardRef((e,r)=>{const{__scopeTabs:o,value:i,onValueChange:s,defaultValue:c,orientation:f="horizontal",dir:d,activationMode:h="automatic",...m}=e,b=xl(d),[y,S]=Gn({prop:i,onChange:s,defaultProp:c??"",caller:Zu});return M.jsx(PP,{scope:o,baseId:hn(),value:y,onValueChange:S,orientation:f,dir:b,activationMode:h,children:M.jsx(be.div,{dir:b,"data-orientation":f,...m,ref:r})})});oE.displayName=Zu;var aE="TabsList",iE=g.forwardRef((e,r)=>{const{__scopeTabs:o,loop:i=!0,...s}=e,c=wh(aE,o),f=rE(o);return M.jsx(tE,{asChild:!0,...f,orientation:c.orientation,dir:c.dir,loop:i,children:M.jsx(be.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:r})})});iE.displayName=aE;var lE="TabsTrigger",sE=g.forwardRef((e,r)=>{const{__scopeTabs:o,value:i,disabled:s=!1,...c}=e,f=wh(lE,o),d=rE(o),h=fE(f.baseId,i),m=dE(f.baseId,i),b=i===f.value;return M.jsx(nE,{asChild:!0,...d,focusable:!s,active:b,children:M.jsx(be.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":m,"data-state":b?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:h,...c,ref:r,onMouseDown:ie(e.onMouseDown,y=>{!s&&y.button===0&&y.ctrlKey===!1?f.onValueChange(i):y.preventDefault()}),onKeyDown:ie(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&f.onValueChange(i)}),onFocus:ie(e.onFocus,()=>{const y=f.activationMode!=="manual";!b&&!s&&y&&f.onValueChange(i)})})})});sE.displayName=lE;var uE="TabsContent",cE=g.forwardRef((e,r)=>{const{__scopeTabs:o,value:i,forceMount:s,children:c,...f}=e,d=wh(uE,o),h=fE(d.baseId,i),m=dE(d.baseId,i),b=i===d.value,y=g.useRef(b);return g.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),M.jsx(wt,{present:s||b,children:l(({present:S})=>M.jsx(be.div,{"data-state":b?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!S,id:m,tabIndex:0,...f,ref:r,style:{...e.style,animationDuration:y.current?"0s":void 0},children:S&&c}),"children")})});cE.displayName=uE;function fE(e,r){return`${e}-trigger-${r}`}l(fE,"makeTriggerId");function dE(e,r){return`${e}-content-${r}`}l(dE,"makeContentId");var P9=oE,L9=iE,j9=sE,z9=cE;function LP(e){const r=jP(e),o=g.forwardRef((i,s)=>{const{children:c,...f}=i,d=g.Children.toArray(c),h=d.find(kP);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(LP,"createSlot$1");function jP(e){const r=g.forwardRef((o,i)=>{const{children:s,...c}=o;if(g.isValidElement(s)){const f=HP(s),d=UP(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(jP,"createSlotClone$1");var zP=Symbol("radix.slottable");function kP(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zP}l(kP,"isSlottable$1");function UP(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(UP,"mergeProps$1");function HP(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(HP,"getElementRef$1");function pE(e){const r=g.useRef({value:e,previous:e});return g.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}l(pE,"usePrevious");var BP=[" ","Enter","ArrowUp","ArrowDown"],IP=[" ","Enter"],Do="Select",[Ju,ec,FP]=Xu(Do),[Xa]=It(Do,[FP,Ya]),tc=Ya(),[$P,to]=Xa(Do),[qP,GP]=Xa(Do),hE=l(e=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:s,onOpenChange:c,value:f,defaultValue:d,onValueChange:h,dir:m,name:b,autoComplete:y,disabled:S,required:w,form:C}=e,E=tc(r),[T,O]=g.useState(null),[R,A]=g.useState(null),[D,j]=g.useState(!1),I=xl(m),[U,Q]=Gn({prop:i,defaultProp:s??!1,onChange:c,caller:Do}),[ee,W]=Gn({prop:f,defaultProp:d,onChange:h,caller:Do}),oe=g.useRef(null),ue=T?C||!!T.closest("form"):!0,[ve,ne]=g.useState(new Set),me=Array.from(ve).map(z=>z.props.value).join(";");return M.jsx(rh,{...E,children:M.jsxs($P,{required:w,scope:r,trigger:T,onTriggerChange:O,valueNode:R,onValueNodeChange:A,valueNodeHasChildren:D,onValueNodeHasChildrenChange:j,contentId:hn(),value:ee,onValueChange:W,open:U,onOpenChange:Q,dir:I,triggerPointerDownPosRef:oe,disabled:S,children:[M.jsx(Ju.Provider,{scope:r,children:M.jsx(qP,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(z=>{ne(Y=>new Set(Y).add(z))},[]),onNativeOptionRemove:g.useCallback(z=>{ne(Y=>{const Z=new Set(Y);return Z.delete(z),Z})},[]),children:o})}),ue?M.jsxs(HE,{"aria-hidden":!0,required:w,tabIndex:-1,name:b,autoComplete:y,value:ee,onChange:l(z=>W(z.target.value),"onChange"),disabled:S,form:C,children:[ee===void 0?M.jsx("option",{value:""}):null,Array.from(ve)]},me):null]})})},"Select");hE.displayName=Do;var mE="SelectTrigger",vE=g.forwardRef((e,r)=>{const{__scopeSelect:o,disabled:i=!1,...s}=e,c=tc(o),f=to(mE,o),d=f.disabled||i,h=Oe(r,f.onTriggerChange),m=ec(o),b=g.useRef("touch"),[y,S,w]=IE(E=>{const T=m().filter(A=>!A.disabled),O=T.find(A=>A.value===f.value),R=FE(T,E,O);R!==void 0&&f.onValueChange(R.value)}),C=l(E=>{d||(f.onOpenChange(!0),w()),E&&(f.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})},"handleOpen");return M.jsx(oh,{asChild:!0,...c,children:M.jsx(be.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":BE(f.value)?"":void 0,...s,ref:h,onClick:ie(s.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&C(E)}),onPointerDown:ie(s.onPointerDown,E=>{b.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(C(E),E.preventDefault())}),onKeyDown:ie(s.onKeyDown,E=>{const T=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&S(E.key),!(T&&E.key===" ")&&BP.includes(E.key)&&(C(),E.preventDefault())})})})});vE.displayName=mE;var yE="SelectValue",gE=g.forwardRef((e,r)=>{const{__scopeSelect:o,className:i,style:s,children:c,placeholder:f="",...d}=e,h=to(yE,o),{onValueNodeHasChildrenChange:m}=h,b=c!==void 0,y=Oe(r,h.onValueNodeChange);return lt(()=>{m(b)},[m,b]),M.jsx(be.span,{...d,ref:y,style:{pointerEvents:"none"},children:BE(h.value)?M.jsx(M.Fragment,{children:f}):c})});gE.displayName=yE;var VP="SelectIcon",bE=g.forwardRef((e,r)=>{const{__scopeSelect:o,children:i,...s}=e;return M.jsx(be.span,{"aria-hidden":!0,...s,ref:r,children:i||"▼"})});bE.displayName=VP;var YP="SelectPortal",SE=l(e=>M.jsx(qa,{asChild:!0,...e}),"SelectPortal");SE.displayName=YP;var Po="SelectContent",EE=g.forwardRef((e,r)=>{const o=to(Po,e.__scopeSelect),[i,s]=g.useState();if(lt(()=>{s(new DocumentFragment)},[]),!o.open){const c=i;return c?$n.createPortal(M.jsx(wE,{scope:e.__scopeSelect,children:M.jsx(Ju.Slot,{scope:e.__scopeSelect,children:M.jsx("div",{children:e.children})})}),c):null}return M.jsx(xE,{...e,ref:r})});EE.displayName=Po;var Cn=10,[wE,no]=Xa(Po),QP="SelectContentImpl",KP=LP("SelectContent.RemoveScroll"),xE=g.forwardRef((e,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:f,side:d,sideOffset:h,align:m,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:w,sticky:C,hideWhenDetached:E,avoidCollisions:T,...O}=e,R=to(Po,o),[A,D]=g.useState(null),[j,I]=g.useState(null),U=Oe(r,te=>D(te)),[Q,ee]=g.useState(null),[W,oe]=g.useState(null),ue=ec(o),[ve,ne]=g.useState(!1),me=g.useRef(!1);g.useEffect(()=>{if(A)return Gp(A)},[A]),qp();const z=g.useCallback(te=>{const[_e,...Me]=ue().map(Je=>Je.ref.current),[Be]=Me.slice(-1),$e=document.activeElement;for(const Je of te)if(Je===$e||(Je?.scrollIntoView({block:"nearest"}),Je===_e&&j&&(j.scrollTop=0),Je===Be&&j&&(j.scrollTop=j.scrollHeight),Je?.focus(),document.activeElement!==$e))return},[ue,j]),Y=g.useCallback(()=>z([Q,A]),[z,Q,A]);g.useEffect(()=>{ve&&Y()},[ve,Y]);const{onOpenChange:Z,triggerPointerDownPosRef:J}=R;g.useEffect(()=>{if(A){let te={x:0,y:0};const _e=l(Be=>{te={x:Math.abs(Math.round(Be.pageX)-(J.current?.x??0)),y:Math.abs(Math.round(Be.pageY)-(J.current?.y??0))}},"handlePointerMove"),Me=l(Be=>{te.x<=10&&te.y<=10?Be.preventDefault():A.contains(Be.target)||Z(!1),document.removeEventListener("pointermove",_e),J.current=null},"handlePointerUp");return J.current!==null&&(document.addEventListener("pointermove",_e),document.addEventListener("pointerup",Me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_e),document.removeEventListener("pointerup",Me,{capture:!0})}}},[A,Z,J]),g.useEffect(()=>{const te=l(()=>Z(!1),"close");return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[Z]);const[ye,P]=IE(te=>{const _e=ue().filter($e=>!$e.disabled),Me=_e.find($e=>$e.ref.current===document.activeElement),Be=FE(_e,te,Me);Be&&setTimeout(()=>Be.ref.current.focus())}),q=g.useCallback((te,_e,Me)=>{const Be=!me.current&&!Me;(R.value!==void 0&&R.value===_e||Be)&&(ee(te),Be&&(me.current=!0))},[R.value]),re=g.useCallback(()=>A?.focus(),[A]),se=g.useCallback((te,_e,Me)=>{const Be=!me.current&&!Me;(R.value!==void 0&&R.value===_e||Be)&&oe(te)},[R.value]),Se=i==="popper"?Rp:CE,Ee=Se===Rp?{side:d,sideOffset:h,align:m,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:w,sticky:C,hideWhenDetached:E,avoidCollisions:T}:{};return M.jsx(wE,{scope:o,content:A,viewport:j,onViewportChange:I,itemRefCallback:q,selectedItem:Q,onItemLeave:re,itemTextRefCallback:se,focusSelectedItem:Y,selectedItemText:W,position:i,isPositioned:ve,searchRef:ye,children:M.jsx(Hu,{as:KP,allowPinchZoom:!0,children:M.jsx(ku,{asChild:!0,trapped:R.open,onMountAutoFocus:l(te=>{te.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:ie(s,te=>{R.trigger?.focus({preventScroll:!0}),te.preventDefault()}),children:M.jsx($a,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:l(te=>te.preventDefault(),"onFocusOutside"),onDismiss:l(()=>R.onOpenChange(!1),"onDismiss"),children:M.jsx(Se,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:l(te=>te.preventDefault(),"onContextMenu"),...O,...Ee,onPlaced:l(()=>ne(!0),"onPlaced"),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:ie(O.onKeyDown,te=>{const _e=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!_e&&te.key.length===1&&P(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Be=ue().filter($e=>!$e.disabled).map($e=>$e.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Be=Be.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const $e=te.target,Je=Be.indexOf($e);Be=Be.slice(Je+1)}setTimeout(()=>z(Be)),te.preventDefault()}})})})})})})});xE.displayName=QP;var XP="SelectItemAlignedPosition",CE=g.forwardRef((e,r)=>{const{__scopeSelect:o,onPlaced:i,...s}=e,c=to(Po,o),f=no(Po,o),[d,h]=g.useState(null),[m,b]=g.useState(null),y=Oe(r,U=>b(U)),S=ec(o),w=g.useRef(!1),C=g.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:O,focusSelectedItem:R}=f,A=g.useCallback(()=>{if(c.trigger&&c.valueNode&&d&&m&&E&&T&&O){const U=c.trigger.getBoundingClientRect(),Q=m.getBoundingClientRect(),ee=c.valueNode.getBoundingClientRect(),W=O.getBoundingClientRect();if(c.dir!=="rtl"){const $e=W.left-Q.left,Je=ee.left-$e,Rt=U.left-Je,Ot=U.width+Rt,ro=Math.max(Ot,Q.width),oo=window.innerWidth-Cn,ei=lp(Je,[Cn,Math.max(Cn,oo-ro)]);d.style.minWidth=Ot+"px",d.style.left=ei+"px"}else{const $e=Q.right-W.right,Je=window.innerWidth-ee.right-$e,Rt=window.innerWidth-U.right-Je,Ot=U.width+Rt,ro=Math.max(Ot,Q.width),oo=window.innerWidth-Cn,ei=lp(Je,[Cn,Math.max(Cn,oo-ro)]);d.style.minWidth=Ot+"px",d.style.right=ei+"px"}const oe=S(),ue=window.innerHeight-Cn*2,ve=E.scrollHeight,ne=window.getComputedStyle(m),me=parseInt(ne.borderTopWidth,10),z=parseInt(ne.paddingTop,10),Y=parseInt(ne.borderBottomWidth,10),Z=parseInt(ne.paddingBottom,10),J=me+z+ve+Z+Y,ye=Math.min(T.offsetHeight*5,J),P=window.getComputedStyle(E),q=parseInt(P.paddingTop,10),re=parseInt(P.paddingBottom,10),se=U.top+U.height/2-Cn,Se=ue-se,Ee=T.offsetHeight/2,te=T.offsetTop+Ee,_e=me+z+te,Me=J-_e;if(_e<=se){const $e=oe.length>0&&T===oe[oe.length-1].ref.current;d.style.bottom="0px";const Je=m.clientHeight-E.offsetTop-E.offsetHeight,Rt=Math.max(Se,Ee+($e?re:0)+Je+Y),Ot=_e+Rt;d.style.height=Ot+"px"}else{const $e=oe.length>0&&T===oe[0].ref.current;d.style.top="0px";const Rt=Math.max(se,me+E.offsetTop+($e?q:0)+Ee)+Me;d.style.height=Rt+"px",E.scrollTop=_e-se+E.offsetTop}d.style.margin=`${Cn}px 0`,d.style.minHeight=ye+"px",d.style.maxHeight=ue+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[S,c.trigger,c.valueNode,d,m,E,T,O,c.dir,i]);lt(()=>A(),[A]);const[D,j]=g.useState();lt(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const I=g.useCallback(U=>{U&&C.current===!0&&(A(),R?.(),C.current=!1)},[A,R]);return M.jsx(ZP,{scope:o,contentWrapper:d,shouldExpandOnScrollRef:w,onScrollButtonChange:I,children:M.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:M.jsx(be.div,{...s,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});CE.displayName=XP;var WP="SelectPopperPosition",Rp=g.forwardRef((e,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:s=Cn,...c}=e,f=tc(o);return M.jsx(ah,{...f,...c,ref:r,align:i,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Rp.displayName=WP;var[ZP,xh]=Xa(Po,{}),Op="SelectViewport",TE=g.forwardRef((e,r)=>{const{__scopeSelect:o,nonce:i,...s}=e,c=no(Op,o),f=xh(Op,o),d=Oe(r,c.onViewportChange),h=g.useRef(0);return M.jsxs(M.Fragment,{children:[M.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),M.jsx(Ju.Slot,{scope:o,children:M.jsx(be.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ie(s.onScroll,m=>{const b=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:S}=f;if(S?.current&&y){const w=Math.abs(h.current-b.scrollTop);if(w>0){const C=window.innerHeight-Cn*2,E=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),O=Math.max(E,T);if(O<C){const R=O+w,A=Math.min(C,R),D=R-A;y.style.height=A+"px",y.style.bottom==="0px"&&(b.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}h.current=b.scrollTop})})})]})});TE.displayName=Op;var RE="SelectGroup",[JP,eL]=Xa(RE),OE=g.forwardRef((e,r)=>{const{__scopeSelect:o,...i}=e,s=hn();return M.jsx(JP,{scope:o,id:s,children:M.jsx(be.div,{role:"group","aria-labelledby":s,...i,ref:r})})});OE.displayName=RE;var _E="SelectLabel",AE=g.forwardRef((e,r)=>{const{__scopeSelect:o,...i}=e,s=eL(_E,o);return M.jsx(be.div,{id:s.id,...i,ref:r})});AE.displayName=_E;var Ou="SelectItem",[tL,ME]=Xa(Ou),NE=g.forwardRef((e,r)=>{const{__scopeSelect:o,value:i,disabled:s=!1,textValue:c,...f}=e,d=to(Ou,o),h=no(Ou,o),m=d.value===i,[b,y]=g.useState(c??""),[S,w]=g.useState(!1),C=Oe(r,R=>h.itemRefCallback?.(R,i,s)),E=hn(),T=g.useRef("touch"),O=l(()=>{s||(d.onValueChange(i),d.onOpenChange(!1))},"handleSelect");if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return M.jsx(tL,{scope:o,value:i,disabled:s,textId:E,isSelected:m,onItemTextChange:g.useCallback(R=>{y(A=>A||(R?.textContent??"").trim())},[]),children:M.jsx(Ju.ItemSlot,{scope:o,value:i,disabled:s,textValue:b,children:M.jsx(be.div,{role:"option","aria-labelledby":E,"data-highlighted":S?"":void 0,"aria-selected":m&&S,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...f,ref:C,onFocus:ie(f.onFocus,()=>w(!0)),onBlur:ie(f.onBlur,()=>w(!1)),onClick:ie(f.onClick,()=>{T.current!=="mouse"&&O()}),onPointerUp:ie(f.onPointerUp,()=>{T.current==="mouse"&&O()}),onPointerDown:ie(f.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:ie(f.onPointerMove,R=>{T.current=R.pointerType,s?h.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ie(f.onPointerLeave,R=>{R.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:ie(f.onKeyDown,R=>{h.searchRef?.current!==""&&R.key===" "||(IP.includes(R.key)&&O(),R.key===" "&&R.preventDefault())})})})})});NE.displayName=Ou;var tl="SelectItemText",DE=g.forwardRef((e,r)=>{const{__scopeSelect:o,className:i,style:s,...c}=e,f=to(tl,o),d=no(tl,o),h=ME(tl,o),m=GP(tl,o),[b,y]=g.useState(null),S=Oe(r,O=>y(O),h.onItemTextChange,O=>d.itemTextRefCallback?.(O,h.value,h.disabled)),w=b?.textContent,C=g.useMemo(()=>M.jsx("option",{value:h.value,disabled:h.disabled,children:w},h.value),[h.disabled,h.value,w]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=m;return lt(()=>(E(C),()=>T(C)),[E,T,C]),M.jsxs(M.Fragment,{children:[M.jsx(be.span,{id:h.textId,...c,ref:S}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?$n.createPortal(c.children,f.valueNode):null]})});DE.displayName=tl;var PE="SelectItemIndicator",LE=g.forwardRef((e,r)=>{const{__scopeSelect:o,...i}=e;return ME(PE,o).isSelected?M.jsx(be.span,{"aria-hidden":!0,...i,ref:r}):null});LE.displayName=PE;var _p="SelectScrollUpButton",jE=g.forwardRef((e,r)=>{const o=no(_p,e.__scopeSelect),i=xh(_p,e.__scopeSelect),[s,c]=g.useState(!1),f=Oe(r,i.onScrollButtonChange);return lt(()=>{if(o.viewport&&o.isPositioned){let d=l(function(){const m=h.scrollTop>0;c(m)},"handleScroll2");const h=o.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[o.viewport,o.isPositioned]),s?M.jsx(kE,{...e,ref:f,onAutoScroll:l(()=>{const{viewport:d,selectedItem:h}=o;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)},"onAutoScroll")}):null});jE.displayName=_p;var Ap="SelectScrollDownButton",zE=g.forwardRef((e,r)=>{const o=no(Ap,e.__scopeSelect),i=xh(Ap,e.__scopeSelect),[s,c]=g.useState(!1),f=Oe(r,i.onScrollButtonChange);return lt(()=>{if(o.viewport&&o.isPositioned){let d=l(function(){const m=h.scrollHeight-h.clientHeight,b=Math.ceil(h.scrollTop)<m;c(b)},"handleScroll2");const h=o.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[o.viewport,o.isPositioned]),s?M.jsx(kE,{...e,ref:f,onAutoScroll:l(()=>{const{viewport:d,selectedItem:h}=o;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)},"onAutoScroll")}):null});zE.displayName=Ap;var kE=g.forwardRef((e,r)=>{const{__scopeSelect:o,onAutoScroll:i,...s}=e,c=no("SelectScrollButton",o),f=g.useRef(null),d=ec(o),h=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),lt(()=>{d().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),M.jsx(be.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:ie(s.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:ie(s.onPointerMove,()=>{c.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:ie(s.onPointerLeave,()=>{h()})})}),nL="SelectSeparator",UE=g.forwardRef((e,r)=>{const{__scopeSelect:o,...i}=e;return M.jsx(be.div,{"aria-hidden":!0,...i,ref:r})});UE.displayName=nL;var Mp="SelectArrow",rL=g.forwardRef((e,r)=>{const{__scopeSelect:o,...i}=e,s=tc(o),c=to(Mp,o),f=no(Mp,o);return c.open&&f.position==="popper"?M.jsx(ih,{...s,...i,ref:r}):null});rL.displayName=Mp;var oL="SelectBubbleInput",HE=g.forwardRef(({__scopeSelect:e,value:r,...o},i)=>{const s=g.useRef(null),c=Oe(i,s),f=pE(r);return g.useEffect(()=>{const d=s.current;if(!d)return;const h=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==r&&b){const y=new Event("change",{bubbles:!0});b.call(d,r),d.dispatchEvent(y)}},[f,r]),M.jsx(be.select,{...o,style:{...nS,...o.style},ref:c,defaultValue:r})});HE.displayName=oL;function BE(e){return e===""||e===void 0}l(BE,"shouldShowPlaceholder");function IE(e){const r=it(e),o=g.useRef(""),i=g.useRef(0),s=g.useCallback(f=>{const d=o.current+f;r(d),l((function h(m){o.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[r]),c=g.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,s,c]}l(IE,"useTypeaheadSearch");function FE(e,r,o){const s=r.length>1&&Array.from(r).every(m=>m===r[0])?r[0]:r,c=o?e.indexOf(o):-1;let f=aL(e,Math.max(c,0));s.length===1&&(f=f.filter(m=>m!==o));const h=f.find(m=>m.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==o?h:void 0}l(FE,"findNextItem");function aL(e,r){return e.map((o,i)=>e[(r+i)%e.length])}l(aL,"wrapArray$1");var k9=hE,U9=vE,H9=gE,B9=bE,I9=SE,F9=EE,$9=TE,q9=OE,G9=AE,V9=NE,Y9=DE,Q9=LE,K9=jE,X9=zE,W9=UE;function iL(e){const r=lL(e),o=g.forwardRef((i,s)=>{const{children:c,...f}=i,d=g.Children.toArray(c),h=d.find(uL);if(h){const m=h.props.children,b=d.map(y=>y===h?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return M.jsx(r,{...f,ref:s,children:g.isValidElement(m)?g.cloneElement(m,void 0,b):null})}return M.jsx(r,{...f,ref:s,children:c})});return o.displayName=`${e}.Slot`,o}l(iL,"createSlot");function lL(e){const r=g.forwardRef((o,i)=>{const{children:s,...c}=o;if(g.isValidElement(s)){const f=fL(s),d=cL(c,s.props);return s.type!==g.Fragment&&(d.ref=i?Sr(i,f):f),g.cloneElement(s,d)}return g.Children.count(s)>1?g.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}l(lL,"createSlotClone");var sL=Symbol("radix.slottable");function uL(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sL}l(uL,"isSlottable");function cL(e,r){const o={...r};for(const i in r){const s=e[i],c=r[i];/^on[A-Z]/.test(i)?s&&c?o[i]=(...d)=>{const h=c(...d);return s(...d),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...c}:i==="className"&&(o[i]=[s,c].filter(Boolean).join(" "))}return{...e,...o}}l(cL,"mergeProps");function fL(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l(fL,"getElementRef");var Np=["Enter"," "],dL=["ArrowDown","PageUp","Home"],$E=["ArrowUp","PageDown","End"],pL=[...dL,...$E],hL={ltr:[...Np,"ArrowRight"],rtl:[...Np,"ArrowLeft"]},mL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Tl="Menu",[fl,vL,yL]=Xu(Tl),[Uo,qE]=It(Tl,[yL,Ya,Wu]),nc=Ya(),GE=Wu(),[gL,Ho]=Uo(Tl),[bL,Rl]=Uo(Tl),VE=l(e=>{const{__scopeMenu:r,open:o=!1,children:i,dir:s,onOpenChange:c,modal:f=!0}=e,d=nc(r),[h,m]=g.useState(null),b=g.useRef(!1),y=it(c),S=xl(s);return g.useEffect(()=>{const w=l(()=>{b.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},"handleKeyDown"),C=l(()=>b.current=!1,"handlePointer");return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),M.jsx(rh,{...d,children:M.jsx(gL,{scope:r,open:o,onOpenChange:y,content:h,onContentChange:m,children:M.jsx(bL,{scope:r,onClose:g.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:b,dir:S,modal:f,children:i})})})},"Menu");VE.displayName=Tl;var SL="MenuAnchor",Ch=g.forwardRef((e,r)=>{const{__scopeMenu:o,...i}=e,s=nc(o);return M.jsx(oh,{...s,...i,ref:r})});Ch.displayName=SL;var Th="MenuPortal",[EL,YE]=Uo(Th,{forceMount:void 0}),QE=l(e=>{const{__scopeMenu:r,forceMount:o,children:i,container:s}=e,c=Ho(Th,r);return M.jsx(EL,{scope:r,forceMount:o,children:M.jsx(wt,{present:o||c.open,children:M.jsx(qa,{asChild:!0,container:s,children:i})})})},"MenuPortal");QE.displayName=Th;var mn="MenuContent",[wL,Rh]=Uo(mn),KE=g.forwardRef((e,r)=>{const o=YE(mn,e.__scopeMenu),{forceMount:i=o.forceMount,...s}=e,c=Ho(mn,e.__scopeMenu),f=Rl(mn,e.__scopeMenu);return M.jsx(fl.Provider,{scope:e.__scopeMenu,children:M.jsx(wt,{present:i||c.open,children:M.jsx(fl.Slot,{scope:e.__scopeMenu,children:f.modal?M.jsx(xL,{...s,ref:r}):M.jsx(CL,{...s,ref:r})})})})}),xL=g.forwardRef((e,r)=>{const o=Ho(mn,e.__scopeMenu),i=g.useRef(null),s=Oe(r,i);return g.useEffect(()=>{const c=i.current;if(c)return Gp(c)},[]),M.jsx(Oh,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:ie(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:l(()=>o.onOpenChange(!1),"onDismiss")})}),CL=g.forwardRef((e,r)=>{const o=Ho(mn,e.__scopeMenu);return M.jsx(Oh,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:l(()=>o.onOpenChange(!1),"onDismiss")})}),TL=iL("MenuContent.ScrollLock"),Oh=g.forwardRef((e,r)=>{const{__scopeMenu:o,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:b,onFocusOutside:y,onInteractOutside:S,onDismiss:w,disableOutsideScroll:C,...E}=e,T=Ho(mn,o),O=Rl(mn,o),R=nc(o),A=GE(o),D=vL(o),[j,I]=g.useState(null),U=g.useRef(null),Q=Oe(r,U,T.onContentChange),ee=g.useRef(0),W=g.useRef(""),oe=g.useRef(0),ue=g.useRef(null),ve=g.useRef("right"),ne=g.useRef(0),me=C?Hu:g.Fragment,z=C?{as:TL,allowPinchZoom:!0}:void 0,Y=l(J=>{const ye=W.current+J,P=D().filter(te=>!te.disabled),q=document.activeElement,re=P.find(te=>te.ref.current===q)?.textValue,se=P.map(te=>te.textValue),Se=kL(se,ye,re),Ee=P.find(te=>te.textValue===Se)?.ref.current;l((function te(_e){W.current=_e,window.clearTimeout(ee.current),_e!==""&&(ee.current=window.setTimeout(()=>te(""),1e3))}),"updateSearch")(ye),Ee&&setTimeout(()=>Ee.focus())},"handleTypeaheadSearch");g.useEffect(()=>()=>window.clearTimeout(ee.current),[]),qp();const Z=g.useCallback(J=>ve.current===ue.current?.side&&HL(J,ue.current?.area),[]);return M.jsx(wL,{scope:o,searchRef:W,onItemEnter:g.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),onItemLeave:g.useCallback(J=>{Z(J)||(U.current?.focus(),I(null))},[Z]),onTriggerLeave:g.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),pointerGraceTimerRef:oe,onPointerGraceIntentChange:g.useCallback(J=>{ue.current=J},[]),children:M.jsx(me,{...z,children:M.jsx(ku,{asChild:!0,trapped:s,onMountAutoFocus:ie(c,J=>{J.preventDefault(),U.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:M.jsx($a,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:b,onFocusOutside:y,onInteractOutside:S,onDismiss:w,children:M.jsx(tE,{asChild:!0,...A,dir:O.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:I,onEntryFocus:ie(h,J=>{O.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:M.jsx(ah,{role:"menu","aria-orientation":"vertical","data-state":fw(T.open),"data-radix-menu-content":"",dir:O.dir,...R,...E,ref:Q,style:{outline:"none",...E.style},onKeyDown:ie(E.onKeyDown,J=>{const P=J.target.closest("[data-radix-menu-content]")===J.currentTarget,q=J.ctrlKey||J.altKey||J.metaKey,re=J.key.length===1;P&&(J.key==="Tab"&&J.preventDefault(),!q&&re&&Y(J.key));const se=U.current;if(J.target!==se||!pL.includes(J.key))return;J.preventDefault();const Ee=D().filter(te=>!te.disabled).map(te=>te.ref.current);$E.includes(J.key)&&Ee.reverse(),jL(Ee)}),onBlur:ie(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(ee.current),W.current="")}),onPointerMove:ie(e.onPointerMove,dl(J=>{const ye=J.target,P=ne.current!==J.clientX;if(J.currentTarget.contains(ye)&&P){const q=J.clientX>ne.current?"right":"left";ve.current=q,ne.current=J.clientX}}))})})})})})})});KE.displayName=mn;var RL="MenuGroup",_h=g.forwardRef((e,r)=>{const{__scopeMenu:o,...i}=e;return M.jsx(be.div,{role:"group",...i,ref:r})});_h.displayName=RL;var OL="MenuLabel",XE=g.forwardRef((e,r)=>{const{__scopeMenu:o,...i}=e;return M.jsx(be.div,{...i,ref:r})});XE.displayName=OL;var _u="MenuItem",eb="menu.itemSelect",rc=g.forwardRef((e,r)=>{const{disabled:o=!1,onSelect:i,...s}=e,c=g.useRef(null),f=Rl(_u,e.__scopeMenu),d=Rh(_u,e.__scopeMenu),h=Oe(r,c),m=g.useRef(!1),b=l(()=>{const y=c.current;if(!o&&y){const S=new CustomEvent(eb,{bubbles:!0,cancelable:!0});y.addEventListener(eb,w=>i?.(w),{once:!0}),$p(y,S),S.defaultPrevented?m.current=!1:f.onClose()}},"handleSelect");return M.jsx(WE,{...s,ref:h,disabled:o,onClick:ie(e.onClick,b),onPointerDown:l(y=>{e.onPointerDown?.(y),m.current=!0},"onPointerDown"),onPointerUp:ie(e.onPointerUp,y=>{m.current||y.currentTarget?.click()}),onKeyDown:ie(e.onKeyDown,y=>{const S=d.searchRef.current!=="";o||S&&y.key===" "||Np.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});rc.displayName=_u;var WE=g.forwardRef((e,r)=>{const{__scopeMenu:o,disabled:i=!1,textValue:s,...c}=e,f=Rh(_u,o),d=GE(o),h=g.useRef(null),m=Oe(r,h),[b,y]=g.useState(!1),[S,w]=g.useState("");return g.useEffect(()=>{const C=h.current;C&&w((C.textContent??"").trim())},[c.children]),M.jsx(fl.ItemSlot,{scope:o,disabled:i,textValue:s??S,children:M.jsx(nE,{asChild:!0,...d,focusable:!i,children:M.jsx(be.div,{role:"menuitem","data-highlighted":b?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:m,onPointerMove:ie(e.onPointerMove,dl(C=>{i?f.onItemLeave(C):(f.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ie(e.onPointerLeave,dl(C=>f.onItemLeave(C))),onFocus:ie(e.onFocus,()=>y(!0)),onBlur:ie(e.onBlur,()=>y(!1))})})})}),_L="MenuCheckboxItem",ZE=g.forwardRef((e,r)=>{const{checked:o=!1,onCheckedChange:i,...s}=e;return M.jsx(rw,{scope:e.__scopeMenu,checked:o,children:M.jsx(rc,{role:"menuitemcheckbox","aria-checked":Au(o)?"mixed":o,...s,ref:r,"data-state":Mh(o),onSelect:ie(s.onSelect,()=>i?.(Au(o)?!0:!o),{checkForDefaultPrevented:!1})})})});ZE.displayName=_L;var JE="MenuRadioGroup",[AL,ML]=Uo(JE,{value:void 0,onValueChange:l(()=>{},"onValueChange")}),ew=g.forwardRef((e,r)=>{const{value:o,onValueChange:i,...s}=e,c=it(i);return M.jsx(AL,{scope:e.__scopeMenu,value:o,onValueChange:c,children:M.jsx(_h,{...s,ref:r})})});ew.displayName=JE;var tw="MenuRadioItem",nw=g.forwardRef((e,r)=>{const{value:o,...i}=e,s=ML(tw,e.__scopeMenu),c=o===s.value;return M.jsx(rw,{scope:e.__scopeMenu,checked:c,children:M.jsx(rc,{role:"menuitemradio","aria-checked":c,...i,ref:r,"data-state":Mh(c),onSelect:ie(i.onSelect,()=>s.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});nw.displayName=tw;var Ah="MenuItemIndicator",[rw,NL]=Uo(Ah,{checked:!1}),ow=g.forwardRef((e,r)=>{const{__scopeMenu:o,forceMount:i,...s}=e,c=NL(Ah,o);return M.jsx(wt,{present:i||Au(c.checked)||c.checked===!0,children:M.jsx(be.span,{...s,ref:r,"data-state":Mh(c.checked)})})});ow.displayName=Ah;var DL="MenuSeparator",aw=g.forwardRef((e,r)=>{const{__scopeMenu:o,...i}=e;return M.jsx(be.div,{role:"separator","aria-orientation":"horizontal",...i,ref:r})});aw.displayName=DL;var PL="MenuArrow",iw=g.forwardRef((e,r)=>{const{__scopeMenu:o,...i}=e,s=nc(o);return M.jsx(ih,{...s,...i,ref:r})});iw.displayName=PL;var LL="MenuSub",[Z9,lw]=Uo(LL),nl="MenuSubTrigger",sw=g.forwardRef((e,r)=>{const o=Ho(nl,e.__scopeMenu),i=Rl(nl,e.__scopeMenu),s=lw(nl,e.__scopeMenu),c=Rh(nl,e.__scopeMenu),f=g.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=c,m={__scopeMenu:e.__scopeMenu},b=g.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return g.useEffect(()=>b,[b]),g.useEffect(()=>{const y=d.current;return()=>{window.clearTimeout(y),h(null)}},[d,h]),M.jsx(Ch,{asChild:!0,...m,children:M.jsx(WE,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":s.contentId,"data-state":fw(o.open),...e,ref:Sr(r,s.onTriggerChange),onClick:l(y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),o.open||o.onOpenChange(!0))},"onClick"),onPointerMove:ie(e.onPointerMove,dl(y=>{c.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!o.open&&!f.current&&(c.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{o.onOpenChange(!0),b()},100))})),onPointerLeave:ie(e.onPointerLeave,dl(y=>{b();const S=o.content?.getBoundingClientRect();if(S){const w=o.content?.dataset.side,C=w==="right",E=C?-5:5,T=S[C?"left":"right"],O=S[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:y.clientX+E,y:y.clientY},{x:T,y:S.top},{x:O,y:S.top},{x:O,y:S.bottom},{x:T,y:S.bottom}],side:w}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(y),y.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ie(e.onKeyDown,y=>{const S=c.searchRef.current!=="";e.disabled||S&&y.key===" "||hL[i.dir].includes(y.key)&&(o.onOpenChange(!0),o.content?.focus(),y.preventDefault())})})})});sw.displayName=nl;var uw="MenuSubContent",cw=g.forwardRef((e,r)=>{const o=YE(mn,e.__scopeMenu),{forceMount:i=o.forceMount,...s}=e,c=Ho(mn,e.__scopeMenu),f=Rl(mn,e.__scopeMenu),d=lw(uw,e.__scopeMenu),h=g.useRef(null),m=Oe(r,h);return M.jsx(fl.Provider,{scope:e.__scopeMenu,children:M.jsx(wt,{present:i||c.open,children:M.jsx(fl.Slot,{scope:e.__scopeMenu,children:M.jsx(Oh,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:m,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l(b=>{f.isUsingKeyboardRef.current&&h.current?.focus(),b.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:l(b=>b.preventDefault(),"onCloseAutoFocus"),onFocusOutside:ie(e.onFocusOutside,b=>{b.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ie(e.onEscapeKeyDown,b=>{f.onClose(),b.preventDefault()}),onKeyDown:ie(e.onKeyDown,b=>{const y=b.currentTarget.contains(b.target),S=mL[f.dir].includes(b.key);y&&S&&(c.onOpenChange(!1),d.trigger?.focus(),b.preventDefault())})})})})})});cw.displayName=uw;function fw(e){return e?"open":"closed"}l(fw,"getOpenState");function Au(e){return e==="indeterminate"}l(Au,"isIndeterminate");function Mh(e){return Au(e)?"indeterminate":e?"checked":"unchecked"}l(Mh,"getCheckedState");function jL(e){const r=document.activeElement;for(const o of e)if(o===r||(o.focus(),document.activeElement!==r))return}l(jL,"focusFirst$1");function zL(e,r){return e.map((o,i)=>e[(r+i)%e.length])}l(zL,"wrapArray");function kL(e,r,o){const s=r.length>1&&Array.from(r).every(m=>m===r[0])?r[0]:r,c=o?e.indexOf(o):-1;let f=zL(e,Math.max(c,0));s.length===1&&(f=f.filter(m=>m!==o));const h=f.find(m=>m.toLowerCase().startsWith(s.toLowerCase()));return h!==o?h:void 0}l(kL,"getNextMatch");function UL(e,r){const{x:o,y:i}=e;let s=!1;for(let c=0,f=r.length-1;c<r.length;f=c++){const d=r[c],h=r[f],m=d.x,b=d.y,y=h.x,S=h.y;b>i!=S>i&&o<(y-m)*(i-b)/(S-b)+m&&(s=!s)}return s}l(UL,"isPointInPolygon");function HL(e,r){if(!r)return!1;const o={x:e.clientX,y:e.clientY};return UL(o,r)}l(HL,"isPointerInGraceArea");function dl(e){return r=>r.pointerType==="mouse"?e(r):void 0}l(dl,"whenMouse");var BL=VE,IL=Ch,FL=QE,$L=KE,qL=_h,GL=XE,VL=rc,YL=ZE,QL=ew,KL=nw,XL=ow,WL=aw,ZL=iw,JL=sw,e4=cw,oc="DropdownMenu",[t4]=It(oc,[qE]),Nt=qE(),[n4,dw]=t4(oc),pw=l(e=>{const{__scopeDropdownMenu:r,children:o,dir:i,open:s,defaultOpen:c,onOpenChange:f,modal:d=!0}=e,h=Nt(r),m=g.useRef(null),[b,y]=Gn({prop:s,defaultProp:c??!1,onChange:f,caller:oc});return M.jsx(n4,{scope:r,triggerId:hn(),triggerRef:m,contentId:hn(),open:b,onOpenChange:y,onOpenToggle:g.useCallback(()=>y(S=>!S),[y]),modal:d,children:M.jsx(BL,{...h,open:b,onOpenChange:y,dir:i,modal:d,children:o})})},"DropdownMenu");pw.displayName=oc;var hw="DropdownMenuTrigger",mw=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,disabled:i=!1,...s}=e,c=dw(hw,o),f=Nt(o);return M.jsx(IL,{asChild:!0,...f,children:M.jsx(be.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:Sr(r,c.triggerRef),onPointerDown:ie(e.onPointerDown,d=>{!i&&d.button===0&&d.ctrlKey===!1&&(c.onOpenToggle(),c.open||d.preventDefault())}),onKeyDown:ie(e.onKeyDown,d=>{i||(["Enter"," "].includes(d.key)&&c.onOpenToggle(),d.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});mw.displayName=hw;var r4="DropdownMenuPortal",vw=l(e=>{const{__scopeDropdownMenu:r,...o}=e,i=Nt(r);return M.jsx(FL,{...i,...o})},"DropdownMenuPortal");vw.displayName=r4;var yw="DropdownMenuContent",gw=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=dw(yw,o),c=Nt(o),f=g.useRef(!1);return M.jsx($L,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...i,ref:r,onCloseAutoFocus:ie(e.onCloseAutoFocus,d=>{f.current||s.triggerRef.current?.focus(),f.current=!1,d.preventDefault()}),onInteractOutside:ie(e.onInteractOutside,d=>{const h=d.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0,b=h.button===2||m;(!s.modal||b)&&(f.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gw.displayName=yw;var o4="DropdownMenuGroup",a4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(qL,{...s,...i,ref:r})});a4.displayName=o4;var i4="DropdownMenuLabel",bw=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(GL,{...s,...i,ref:r})});bw.displayName=i4;var l4="DropdownMenuItem",Sw=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(VL,{...s,...i,ref:r})});Sw.displayName=l4;var s4="DropdownMenuCheckboxItem",u4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(YL,{...s,...i,ref:r})});u4.displayName=s4;var c4="DropdownMenuRadioGroup",f4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(QL,{...s,...i,ref:r})});f4.displayName=c4;var d4="DropdownMenuRadioItem",p4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(KL,{...s,...i,ref:r})});p4.displayName=d4;var h4="DropdownMenuItemIndicator",m4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(XL,{...s,...i,ref:r})});m4.displayName=h4;var v4="DropdownMenuSeparator",Ew=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(WL,{...s,...i,ref:r})});Ew.displayName=v4;var y4="DropdownMenuArrow",g4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(ZL,{...s,...i,ref:r})});g4.displayName=y4;var b4="DropdownMenuSubTrigger",S4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(JL,{...s,...i,ref:r})});S4.displayName=b4;var E4="DropdownMenuSubContent",w4=g.forwardRef((e,r)=>{const{__scopeDropdownMenu:o,...i}=e,s=Nt(o);return M.jsx(e4,{...s,...i,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});w4.displayName=E4;var J9=pw,e7=mw,t7=vw,n7=gw,r7=bw,o7=Sw,a7=Ew,x4=Symbol("radix.slottable");function C4(e){const r=l(({children:o})=>M.jsx(M.Fragment,{children:o}),"Slottable2");return r.displayName=`${e}.Slottable`,r.__radixId=x4,r}l(C4,"createSlottable");var ww="AlertDialog",[T4]=It(ww,[v1]),Er=v1(),xw=l(e=>{const{__scopeAlertDialog:r,...o}=e,i=Er(r);return M.jsx(B_,{...i,...o,modal:!0})},"AlertDialog");xw.displayName=ww;var R4="AlertDialogTrigger",O4=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,s=Er(o);return M.jsx(I_,{...s,...i,ref:r})});O4.displayName=R4;var _4="AlertDialogPortal",Cw=l(e=>{const{__scopeAlertDialog:r,...o}=e,i=Er(r);return M.jsx(F_,{...i,...o})},"AlertDialogPortal");Cw.displayName=_4;var A4="AlertDialogOverlay",Tw=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,s=Er(o);return M.jsx($_,{...s,...i,ref:r})});Tw.displayName=A4;var La="AlertDialogContent",[M4,N4]=T4(La),D4=C4("AlertDialogContent"),Rw=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,children:i,...s}=e,c=Er(o),f=g.useRef(null),d=Oe(r,f),h=g.useRef(null);return M.jsx(z_,{contentName:La,titleName:Ow,docsSlug:"alert-dialog",children:M.jsx(M4,{scope:o,cancelRef:h,children:M.jsxs(q_,{role:"alertdialog",...c,...s,ref:d,onOpenAutoFocus:ie(s.onOpenAutoFocus,m=>{m.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:l(m=>m.preventDefault(),"onPointerDownOutside"),onInteractOutside:l(m=>m.preventDefault(),"onInteractOutside"),children:[M.jsx(D4,{children:i}),M.jsx(L4,{contentRef:f})]})})})});Rw.displayName=La;var Ow="AlertDialogTitle",_w=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,s=Er(o);return M.jsx(G_,{...s,...i,ref:r})});_w.displayName=Ow;var Aw="AlertDialogDescription",Mw=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,s=Er(o);return M.jsx(V_,{...s,...i,ref:r})});Mw.displayName=Aw;var P4="AlertDialogAction",Nw=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,s=Er(o);return M.jsx(D1,{...s,...i,ref:r})});Nw.displayName=P4;var Dw="AlertDialogCancel",Pw=g.forwardRef((e,r)=>{const{__scopeAlertDialog:o,...i}=e,{cancelRef:s}=N4(Dw,o),c=Er(o),f=Oe(r,s);return M.jsx(D1,{...c,...i,ref:f})});Pw.displayName=Dw;var L4=l(({contentRef:e})=>{const r=`\`${La}\` requires a description for the component to be accessible for screen reader users.
56
-
57
- You can add a description to the \`${La}\` by passing a \`${Aw}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
58
-
59
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${La}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
60
-
61
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,e]),null},"DescriptionWarning"),i7=xw,l7=Cw,s7=Tw,u7=Rw,c7=Nw,f7=Pw,d7=_w,p7=Mw;function j4(e,r){return g.useReducer((o,i)=>r[o][i]??o,e)}l(j4,"useStateMachine");var Nh="ScrollArea",[Lw]=It(Nh),[z4,bn]=Lw(Nh),jw=g.forwardRef((e,r)=>{const{__scopeScrollArea:o,type:i="hover",dir:s,scrollHideDelay:c=600,...f}=e,[d,h]=g.useState(null),[m,b]=g.useState(null),[y,S]=g.useState(null),[w,C]=g.useState(null),[E,T]=g.useState(null),[O,R]=g.useState(0),[A,D]=g.useState(0),[j,I]=g.useState(!1),[U,Q]=g.useState(!1),ee=Oe(r,oe=>h(oe)),W=xl(s);return M.jsx(z4,{scope:o,type:i,dir:W,scrollHideDelay:c,scrollArea:d,viewport:m,onViewportChange:b,content:y,onContentChange:S,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:j,onScrollbarXEnabledChange:I,scrollbarY:E,onScrollbarYChange:T,scrollbarYEnabled:U,onScrollbarYEnabledChange:Q,onCornerWidthChange:R,onCornerHeightChange:D,children:M.jsx(be.div,{dir:W,...f,ref:ee,style:{position:"relative","--radix-scroll-area-corner-width":O+"px","--radix-scroll-area-corner-height":A+"px",...e.style}})})});jw.displayName=Nh;var zw="ScrollAreaViewport",kw=g.forwardRef((e,r)=>{const{__scopeScrollArea:o,children:i,nonce:s,...c}=e,f=bn(zw,o),d=g.useRef(null),h=Oe(r,d,f.onViewportChange);return M.jsxs(M.Fragment,{children:[M.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),M.jsx(be.div,{"data-radix-scroll-area-viewport":"",...c,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...e.style},children:M.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});kw.displayName=zw;var Kn="ScrollAreaScrollbar",k4=g.forwardRef((e,r)=>{const{forceMount:o,...i}=e,s=bn(Kn,e.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:f}=s,d=e.orientation==="horizontal";return g.useEffect(()=>(d?c(!0):f(!0),()=>{d?c(!1):f(!1)}),[d,c,f]),s.type==="hover"?M.jsx(U4,{...i,ref:r,forceMount:o}):s.type==="scroll"?M.jsx(H4,{...i,ref:r,forceMount:o}):s.type==="auto"?M.jsx(Uw,{...i,ref:r,forceMount:o}):s.type==="always"?M.jsx(Dh,{...i,ref:r}):null});k4.displayName=Kn;var U4=g.forwardRef((e,r)=>{const{forceMount:o,...i}=e,s=bn(Kn,e.__scopeScrollArea),[c,f]=g.useState(!1);return g.useEffect(()=>{const d=s.scrollArea;let h=0;if(d){const m=l(()=>{window.clearTimeout(h),f(!0)},"handlePointerEnter"),b=l(()=>{h=window.setTimeout(()=>f(!1),s.scrollHideDelay)},"handlePointerLeave");return d.addEventListener("pointerenter",m),d.addEventListener("pointerleave",b),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",m),d.removeEventListener("pointerleave",b)}}},[s.scrollArea,s.scrollHideDelay]),M.jsx(wt,{present:o||c,children:M.jsx(Uw,{"data-state":c?"visible":"hidden",...i,ref:r})})}),H4=g.forwardRef((e,r)=>{const{forceMount:o,...i}=e,s=bn(Kn,e.__scopeScrollArea),c=e.orientation==="horizontal",f=ic(()=>h("SCROLL_END"),100),[d,h]=j4("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(d==="idle"){const m=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(m)}},[d,s.scrollHideDelay,h]),g.useEffect(()=>{const m=s.viewport,b=c?"scrollLeft":"scrollTop";if(m){let y=m[b];const S=l(()=>{const w=m[b];y!==w&&(h("SCROLL"),f()),y=w},"handleScroll");return m.addEventListener("scroll",S),()=>m.removeEventListener("scroll",S)}},[s.viewport,c,h,f]),M.jsx(wt,{present:o||d!=="hidden",children:M.jsx(Dh,{"data-state":d==="hidden"?"hidden":"visible",...i,ref:r,onPointerEnter:ie(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:ie(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),Uw=g.forwardRef((e,r)=>{const o=bn(Kn,e.__scopeScrollArea),{forceMount:i,...s}=e,[c,f]=g.useState(!1),d=e.orientation==="horizontal",h=ic(()=>{if(o.viewport){const m=o.viewport.offsetWidth<o.viewport.scrollWidth,b=o.viewport.offsetHeight<o.viewport.scrollHeight;f(d?m:b)}},10);return ka(o.viewport,h),ka(o.content,h),M.jsx(wt,{present:i||c,children:M.jsx(Dh,{"data-state":c?"visible":"hidden",...s,ref:r})})}),Dh=g.forwardRef((e,r)=>{const{orientation:o="vertical",...i}=e,s=bn(Kn,e.__scopeScrollArea),c=g.useRef(null),f=g.useRef(0),[d,h]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=Fw(d.viewport,d.content),b={...i,sizes:d,onSizesChange:h,hasThumb:m>0&&m<1,onThumbChange:l(S=>c.current=S,"onThumbChange"),onThumbPointerUp:l(()=>f.current=0,"onThumbPointerUp"),onThumbPointerDown:l(S=>f.current=S,"onThumbPointerDown")};function y(S,w){return V4(S,f.current,d,w)}return l(y,"getScrollPosition"),o==="horizontal"?M.jsx(B4,{...b,ref:r,onThumbPositionChange:l(()=>{if(s.viewport&&c.current){const S=s.viewport.scrollLeft,w=tb(S,d,s.dir);c.current.style.transform=`translate3d(${w}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:l(S=>{s.viewport&&(s.viewport.scrollLeft=S)},"onWheelScroll"),onDragScroll:l(S=>{s.viewport&&(s.viewport.scrollLeft=y(S,s.dir))},"onDragScroll")}):o==="vertical"?M.jsx(I4,{...b,ref:r,onThumbPositionChange:l(()=>{if(s.viewport&&c.current){const S=s.viewport.scrollTop,w=tb(S,d);c.current.style.transform=`translate3d(0, ${w}px, 0)`}},"onThumbPositionChange"),onWheelScroll:l(S=>{s.viewport&&(s.viewport.scrollTop=S)},"onWheelScroll"),onDragScroll:l(S=>{s.viewport&&(s.viewport.scrollTop=y(S))},"onDragScroll")}):null}),B4=g.forwardRef((e,r)=>{const{sizes:o,onSizesChange:i,...s}=e,c=bn(Kn,e.__scopeScrollArea),[f,d]=g.useState(),h=g.useRef(null),m=Oe(r,h,c.onScrollbarXChange);return g.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),M.jsx(Bw,{"data-orientation":"horizontal",...s,ref:m,sizes:o,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ac(o)+"px",...e.style},onThumbPointerDown:l(b=>e.onThumbPointerDown(b.x),"onThumbPointerDown"),onDragScroll:l(b=>e.onDragScroll(b.x),"onDragScroll"),onWheelScroll:l((b,y)=>{if(c.viewport){const S=c.viewport.scrollLeft+b.deltaX;e.onWheelScroll(S),qw(S,y)&&b.preventDefault()}},"onWheelScroll"),onResize:l(()=>{h.current&&c.viewport&&f&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Nu(f.paddingLeft),paddingEnd:Nu(f.paddingRight)}})},"onResize")})}),I4=g.forwardRef((e,r)=>{const{sizes:o,onSizesChange:i,...s}=e,c=bn(Kn,e.__scopeScrollArea),[f,d]=g.useState(),h=g.useRef(null),m=Oe(r,h,c.onScrollbarYChange);return g.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),M.jsx(Bw,{"data-orientation":"vertical",...s,ref:m,sizes:o,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ac(o)+"px",...e.style},onThumbPointerDown:l(b=>e.onThumbPointerDown(b.y),"onThumbPointerDown"),onDragScroll:l(b=>e.onDragScroll(b.y),"onDragScroll"),onWheelScroll:l((b,y)=>{if(c.viewport){const S=c.viewport.scrollTop+b.deltaY;e.onWheelScroll(S),qw(S,y)&&b.preventDefault()}},"onWheelScroll"),onResize:l(()=>{h.current&&c.viewport&&f&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Nu(f.paddingTop),paddingEnd:Nu(f.paddingBottom)}})},"onResize")})}),[F4,Hw]=Lw(Kn),Bw=g.forwardRef((e,r)=>{const{__scopeScrollArea:o,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:f,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:b,onResize:y,...S}=e,w=bn(Kn,o),[C,E]=g.useState(null),T=Oe(r,ee=>E(ee)),O=g.useRef(null),R=g.useRef(""),A=w.viewport,D=i.content-i.viewport,j=it(b),I=it(h),U=ic(y,10);function Q(ee){if(O.current){const W=ee.clientX-O.current.left,oe=ee.clientY-O.current.top;m({x:W,y:oe})}}return l(Q,"handleDragScroll"),g.useEffect(()=>{const ee=l(W=>{const oe=W.target;C?.contains(oe)&&j(W,D)},"handleWheel");return document.addEventListener("wheel",ee,{passive:!1}),()=>document.removeEventListener("wheel",ee,{passive:!1})},[A,C,D,j]),g.useEffect(I,[i,I]),ka(C,U),ka(w.content,U),M.jsx(F4,{scope:o,scrollbar:C,hasThumb:s,onThumbChange:it(c),onThumbPointerUp:it(f),onThumbPositionChange:I,onThumbPointerDown:it(d),children:M.jsx(be.div,{...S,ref:T,style:{position:"absolute",...S.style},onPointerDown:ie(e.onPointerDown,ee=>{ee.button===0&&(ee.target.setPointerCapture(ee.pointerId),O.current=C.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),Q(ee))}),onPointerMove:ie(e.onPointerMove,Q),onPointerUp:ie(e.onPointerUp,ee=>{const W=ee.target;W.hasPointerCapture(ee.pointerId)&&W.releasePointerCapture(ee.pointerId),document.body.style.webkitUserSelect=R.current,w.viewport&&(w.viewport.style.scrollBehavior=""),O.current=null})})})}),Mu="ScrollAreaThumb",$4=g.forwardRef((e,r)=>{const{forceMount:o,...i}=e,s=Hw(Mu,e.__scopeScrollArea);return M.jsx(wt,{present:o||s.hasThumb,children:M.jsx(q4,{ref:r,...i})})}),q4=g.forwardRef((e,r)=>{const{__scopeScrollArea:o,style:i,...s}=e,c=bn(Mu,o),f=Hw(Mu,o),{onThumbPositionChange:d}=f,h=Oe(r,y=>f.onThumbChange(y)),m=g.useRef(void 0),b=ic(()=>{m.current&&(m.current(),m.current=void 0)},100);return g.useEffect(()=>{const y=c.viewport;if(y){const S=l(()=>{if(b(),!m.current){const w=Y4(y,d);m.current=w,d()}},"handleScroll");return d(),y.addEventListener("scroll",S),()=>y.removeEventListener("scroll",S)}},[c.viewport,b,d]),M.jsx(be.div,{"data-state":f.hasThumb?"visible":"hidden",...s,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ie(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),C=y.clientX-w.left,E=y.clientY-w.top;f.onThumbPointerDown({x:C,y:E})}),onPointerUp:ie(e.onPointerUp,f.onThumbPointerUp)})});$4.displayName=Mu;var Ph="ScrollAreaCorner",Iw=g.forwardRef((e,r)=>{const o=bn(Ph,e.__scopeScrollArea),i=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&i?M.jsx(G4,{...e,ref:r}):null});Iw.displayName=Ph;var G4=g.forwardRef((e,r)=>{const{__scopeScrollArea:o,...i}=e,s=bn(Ph,o),[c,f]=g.useState(0),[d,h]=g.useState(0),m=!!(c&&d);return ka(s.scrollbarX,()=>{const b=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(b),h(b)}),ka(s.scrollbarY,()=>{const b=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(b),f(b)}),m?M.jsx(be.div,{...i,ref:r,style:{width:c,height:d,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Nu(e){return e?parseInt(e,10):0}l(Nu,"toInt");function Fw(e,r){const o=e/r;return isNaN(o)?0:o}l(Fw,"getThumbRatio");function ac(e){const r=Fw(e.viewport,e.content),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-o)*r;return Math.max(i,18)}l(ac,"getThumbSize");function V4(e,r,o,i="ltr"){const s=ac(o),c=s/2,f=r||c,d=s-f,h=o.scrollbar.paddingStart+f,m=o.scrollbar.size-o.scrollbar.paddingEnd-d,b=o.content-o.viewport,y=i==="ltr"?[0,b]:[b*-1,0];return $w([h,m],y)(e)}l(V4,"getScrollPositionFromPointer");function tb(e,r,o="ltr"){const i=ac(r),s=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,c=r.scrollbar.size-s,f=r.content-r.viewport,d=c-i,h=o==="ltr"?[0,f]:[f*-1,0],m=lp(e,h);return $w([0,f],[0,d])(m)}l(tb,"getThumbOffsetFromScroll");function $w(e,r){return o=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const i=(r[1]-r[0])/(e[1]-e[0]);return r[0]+i*(o-e[0])}}l($w,"linearScale");function qw(e,r){return e>0&&e<r}l(qw,"isScrollingWithinScrollbarBounds");var Y4=l((e,r=()=>{})=>{let o={left:e.scrollLeft,top:e.scrollTop},i=0;return l((function s(){const c={left:e.scrollLeft,top:e.scrollTop},f=o.left!==c.left,d=o.top!==c.top;(f||d)&&r(),o=c,i=window.requestAnimationFrame(s)}),"loop")(),()=>window.cancelAnimationFrame(i)},"addUnlinkedScrollListener");function ic(e,r){const o=it(e),i=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),g.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(o,r)},[o,r])}l(ic,"useDebounceCallback");function ka(e,r){const o=it(r);lt(()=>{let i=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(o)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,o])}l(ka,"useResizeObserver");var h7=jw,m7=kw,v7=Iw;function Q4(e,r=[]){let o=[];function i(c,f){const d=g.createContext(f);d.displayName=c+"Context";const h=o.length;o=[...o,f];const m=l(y=>{const{scope:S,children:w,...C}=y,E=S?.[e]?.[h]||d,T=g.useMemo(()=>C,Object.values(C));return M.jsx(E.Provider,{value:T,children:w})},"Provider");m.displayName=c+"Provider";function b(y,S){const w=S?.[e]?.[h]||d,C=g.useContext(w);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${c}\``)}return l(b,"useContext2"),[m,b]}l(i,"createContext3");const s=l(()=>{const c=o.map(f=>g.createContext(f));return l(function(d){const h=d?.[e]||c;return g.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])},"useScope")},"createScope");return s.scopeName=e,[i,K4(s,...r)]}l(Q4,"createContextScope");function K4(...e){const r=e[0];if(e.length===1)return r;const o=l(()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return l(function(c){const f=i.reduce((d,{useScope:h,scopeName:m})=>{const y=h(c)[`__scope${m}`];return{...d,...y}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}l(K4,"composeContextScopes");var X4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Lh=X4.reduce((e,r)=>{const o=zu(`Primitive.${r}`),i=g.forwardRef((s,c)=>{const{asChild:f,...d}=s,h=f?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(h,{...d,ref:c})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),Qd={exports:{}},Kd={};var nb;function W4(){if(nb)return Kd;nb=1;var e=yl();function r(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}l(r,"is");var o=typeof Object.is=="function"?Object.is:r,i=e.useState,s=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue;function d(y,S){var w=S(),C=i({inst:{value:w,getSnapshot:S}}),E=C[0].inst,T=C[1];return c(function(){E.value=w,E.getSnapshot=S,h(E)&&T({inst:E})},[y,w,S]),s(function(){return h(E)&&T({inst:E}),y(function(){h(E)&&T({inst:E})})},[y]),f(w),w}l(d,"useSyncExternalStore$2");function h(y){var S=y.getSnapshot;y=y.value;try{var w=S();return!o(y,w)}catch{return!0}}l(h,"checkIfSnapshotChanged");function m(y,S){return S()}l(m,"useSyncExternalStore$1");var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return Kd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,Kd}l(W4,"requireUseSyncExternalStoreShim_production");var rb;function Z4(){return rb||(rb=1,Qd.exports=W4()),Qd.exports}l(Z4,"requireShim");var J4=Z4();function e5(){return J4.useSyncExternalStore(t5,()=>!0,()=>!1)}l(e5,"useIsHydrated");function t5(){return()=>{}}l(t5,"subscribe");var jh="Avatar",[n5]=Q4(jh),[r5,Gw]=n5(jh),Vw=g.forwardRef((e,r)=>{const{__scopeAvatar:o,...i}=e,[s,c]=g.useState("idle");return M.jsx(r5,{scope:o,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:M.jsx(Lh.span,{...i,ref:r})})});Vw.displayName=jh;var Yw="AvatarImage",Qw=g.forwardRef((e,r)=>{const{__scopeAvatar:o,src:i,onLoadingStatusChange:s=l(()=>{},"onLoadingStatusChange"),...c}=e,f=Gw(Yw,o),d=o5(i,c),h=it(m=>{s(m),f.onImageLoadingStatusChange(m)});return lt(()=>{d!=="idle"&&h(d)},[d,h]),d==="loaded"?M.jsx(Lh.img,{...c,ref:r,src:i}):null});Qw.displayName=Yw;var Kw="AvatarFallback",Xw=g.forwardRef((e,r)=>{const{__scopeAvatar:o,delayMs:i,...s}=e,c=Gw(Kw,o),[f,d]=g.useState(i===void 0);return g.useEffect(()=>{if(i!==void 0){const h=window.setTimeout(()=>d(!0),i);return()=>window.clearTimeout(h)}},[i]),f&&c.imageLoadingStatus!=="loaded"?M.jsx(Lh.span,{...s,ref:r}):null});Xw.displayName=Kw;function ob(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}l(ob,"resolveLoadingStatus");function o5(e,{referrerPolicy:r,crossOrigin:o}){const i=e5(),s=g.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[f,d]=g.useState(()=>ob(c,e));return lt(()=>{d(ob(c,e))},[c,e]),lt(()=>{const h=l(y=>()=>{d(y)},"updateStatus");if(!c)return;const m=h("loaded"),b=h("error");return c.addEventListener("load",m),c.addEventListener("error",b),r&&(c.referrerPolicy=r),typeof o=="string"&&(c.crossOrigin=o),()=>{c.removeEventListener("load",m),c.removeEventListener("error",b)}},[c,o,r]),f}l(o5,"useImageLoadingStatus");var y7=Vw,g7=Qw,b7=Xw;function Ww(e){return r=>typeof r===e}l(Ww,"isOfType$3");var a5=Ww("function"),i5=l(e=>e===null,"isNull$1"),ab=l(e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp","isRegex$1"),ib=l(e=>!l5(e)&&!i5(e)&&(a5(e)||typeof e=="object"),"isObject$1"),l5=Ww("undefined");function s5(e,r){const{length:o}=e;if(o!==r.length)return!1;for(let i=o;i--!==0;)if(!Mt(e[i],r[i]))return!1;return!0}l(s5,"equalArray$1");function u5(e,r){if(e.byteLength!==r.byteLength)return!1;const o=new DataView(e.buffer),i=new DataView(r.buffer);let s=e.byteLength;for(;s--;)if(o.getUint8(s)!==i.getUint8(s))return!1;return!0}l(u5,"equalArrayBuffer$1");function c5(e,r){if(e.size!==r.size)return!1;for(const o of e.entries())if(!r.has(o[0]))return!1;for(const o of e.entries())if(!Mt(o[1],r.get(o[0])))return!1;return!0}l(c5,"equalMap$1");function f5(e,r){if(e.size!==r.size)return!1;for(const o of e.entries())if(!r.has(o[0]))return!1;return!0}l(f5,"equalSet$1");function Mt(e,r){if(e===r)return!0;if(e&&ib(e)&&r&&ib(r)){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)&&Array.isArray(r))return s5(e,r);if(e instanceof Map&&r instanceof Map)return c5(e,r);if(e instanceof Set&&r instanceof Set)return f5(e,r);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r))return u5(e,r);if(ab(e)&&ab(r))return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();const o=Object.keys(e),i=Object.keys(r);if(o.length!==i.length)return!1;for(let s=o.length;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(let s=o.length;s--!==0;){const c=o[s];if(!(c==="_owner"&&e.$$typeof)&&!Mt(e[c],r[c]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(r)?!0:e===r}l(Mt,"equal$1");var d5=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],p5=["bigint","boolean","null","number","string","symbol","undefined"];function lc(e){const r=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(r))return"HTMLElement";if(h5(r))return r}l(lc,"getObjectType$2");function Nn(e){return r=>lc(r)===e}l(Nn,"isObjectOfType$1");function h5(e){return d5.includes(e)}l(h5,"isObjectType$1");function Wa(e){return r=>typeof r===e}l(Wa,"isOfType$2");function m5(e){return p5.includes(e)}l(m5,"isPrimitiveType$1");var v5=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";const r=lc(e);return r||"Object"}l(ce,"is$1");ce.array=Array.isArray;ce.arrayOf=(e,r)=>!ce.array(e)&&!ce.function(r)?!1:e.every(o=>r(o));ce.asyncGeneratorFunction=e=>lc(e)==="AsyncGeneratorFunction";ce.asyncFunction=Nn("AsyncFunction");ce.bigint=Wa("bigint");ce.boolean=e=>e===!0||e===!1;ce.date=Nn("Date");ce.defined=e=>!ce.undefined(e);ce.domElement=e=>ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&v5.every(r=>r in e);ce.empty=e=>ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0;ce.error=Nn("Error");ce.function=Wa("function");ce.generator=e=>ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw);ce.generatorFunction=Nn("GeneratorFunction");ce.instanceOf=(e,r)=>!e||!r?!1:Object.getPrototypeOf(e)===r.prototype;ce.iterable=e=>!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator]);ce.map=Nn("Map");ce.nan=e=>Number.isNaN(e);ce.null=e=>e===null;ce.nullOrUndefined=e=>ce.null(e)||ce.undefined(e);ce.number=e=>Wa("number")(e)&&!ce.nan(e);ce.numericString=e=>ce.string(e)&&e.length>0&&!Number.isNaN(Number(e));ce.object=e=>!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object");ce.oneOf=(e,r)=>ce.array(e)?e.indexOf(r)>-1:!1;ce.plainFunction=Nn("Function");ce.plainObject=e=>{if(lc(e)!=="Object")return!1;const r=Object.getPrototypeOf(e);return r===null||r===Object.getPrototypeOf({})};ce.primitive=e=>ce.null(e)||m5(typeof e);ce.promise=Nn("Promise");ce.propertyOf=(e,r,o)=>{if(!ce.object(e)||!r)return!1;const i=e[r];return ce.function(o)?o(i):ce.defined(i)};ce.regexp=Nn("RegExp");ce.set=Nn("Set");ce.string=Wa("string");ce.symbol=Wa("symbol");ce.undefined=Wa("undefined");ce.weakMap=Nn("WeakMap");ce.weakSet=Nn("WeakSet");var de=ce;function y5(...e){return e.every(r=>de.string(r)||de.array(r)||de.plainObject(r))}l(y5,"canHaveLength$1");function g5(e,r,o){return Zw(e,r)?[e,r].every(de.array)?!e.some(fb(o))&&r.some(fb(o)):[e,r].every(de.plainObject)?!Object.entries(e).some(cb(o))&&Object.entries(r).some(cb(o)):r===o:!1}l(g5,"checkEquality$1");function lb(e,r,o){const{actual:i,key:s,previous:c,type:f}=o,d=In(e,s),h=In(r,s);let m=[d,h].every(de.number)&&(f==="increased"?d<h:d>h);return de.undefined(i)||(m=m&&h===i),de.undefined(c)||(m=m&&d===c),m}l(lb,"compareNumbers$1");function sb(e,r,o){const{key:i,type:s,value:c}=o,f=In(e,i),d=In(r,i),h=s==="added"?f:d,m=s==="added"?d:f;if(!de.nullOrUndefined(c)){if(de.defined(h)){if(de.array(h)||de.plainObject(h))return g5(h,m,c)}else return Mt(m,c);return!1}return[f,d].every(de.array)?!m.every(zh(h)):[f,d].every(de.plainObject)?b5(Object.keys(h),Object.keys(m)):![f,d].every(b=>de.primitive(b)&&de.defined(b))&&(s==="added"?!de.defined(f)&&de.defined(d):de.defined(f)&&!de.defined(d))}l(sb,"compareValues$1");function ub(e,r,{key:o}={}){let i=In(e,o),s=In(r,o);if(!Zw(i,s))throw new TypeError("Inputs have different types");if(!y5(i,s))throw new TypeError("Inputs don't have length");return[i,s].every(de.plainObject)&&(i=Object.keys(i),s=Object.keys(s)),[i,s]}l(ub,"getIterables$1");function cb(e){return([r,o])=>de.array(e)?Mt(e,o)||e.some(i=>Mt(i,o)||de.array(o)&&zh(o)(i)):de.plainObject(e)&&e[r]?!!e[r]&&Mt(e[r],o):Mt(e,o)}l(cb,"hasEntry$1");function b5(e,r){return r.some(o=>!e.includes(o))}l(b5,"hasExtraKeys$1");function fb(e){return r=>de.array(e)?e.some(o=>Mt(o,r)||de.array(r)&&zh(r)(o)):Mt(e,r)}l(fb,"hasValue$1");function Xi(e,r){return de.array(e)?e.some(o=>Mt(o,r)):Mt(e,r)}l(Xi,"includesOrEqualsTo$1");function zh(e){return r=>e.some(o=>Mt(o,r))}l(zh,"isEqualPredicate$1");function Zw(...e){return e.every(de.array)||e.every(de.number)||e.every(de.plainObject)||e.every(de.string)}l(Zw,"isSameType$1");function In(e,r){return de.plainObject(e)||de.array(e)?de.string(r)?r.split(".").reduce((i,s)=>i&&i[s],e):de.number(r)?e[r]:e:e}l(In,"nested$1");function Du(e,r){if([e,r].some(de.nullOrUndefined))throw new Error("Missing required parameters");if(![e,r].every(b=>de.plainObject(b)||de.array(b)))throw new Error("Expected plain objects or array");return{added:l((b,y)=>{try{return sb(e,r,{key:b,type:"added",value:y})}catch{return!1}},"added"),changed:l((b,y,S)=>{try{const w=In(e,b),C=In(r,b),E=de.defined(y),T=de.defined(S);if(E||T){const O=T?Xi(S,w):!Xi(y,w),R=Xi(y,C);return O&&R}return[w,C].every(de.array)||[w,C].every(de.plainObject)?!Mt(w,C):w!==C}catch{return!1}},"changed"),changedFrom:l((b,y,S)=>{if(!de.defined(b))return!1;try{const w=In(e,b),C=In(r,b),E=de.defined(S);return Xi(y,w)&&(E?Xi(S,C):!E)}catch{return!1}},"changedFrom"),decreased:l((b,y,S)=>{if(!de.defined(b))return!1;try{return lb(e,r,{key:b,actual:y,previous:S,type:"decreased"})}catch{return!1}},"decreased"),emptied:l(b=>{try{const[y,S]=ub(e,r,{key:b});return!!y.length&&!S.length}catch{return!1}},"emptied"),filled:l(b=>{try{const[y,S]=ub(e,r,{key:b});return!y.length&&!!S.length}catch{return!1}},"filled"),increased:l((b,y,S)=>{if(!de.defined(b))return!1;try{return lb(e,r,{key:b,actual:y,previous:S,type:"increased"})}catch{return!1}},"increased"),removed:l((b,y)=>{try{return sb(e,r,{key:b,type:"removed",value:y})}catch{return!1}},"removed")}}l(Du,"treeChanges$1");var Xd,db;function S5(){if(db)return Xd;db=1;var e=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),o=Math.min,i=Date.now;Xd={left:s("scrollLeft"),top:s("scrollTop")};function s(d){return l(function(m,b,y,S){y=y||{},typeof y=="function"&&(S=y,y={}),typeof S!="function"&&(S=f);var w=i(),C=m[d],E=y.ease||c,T=isNaN(y.duration)?350:+y.duration,O=!1;return C===b?S(e,m[d]):requestAnimationFrame(A),R;function R(){O=!0}function A(D){if(O)return S(r,m[d]);var j=i(),I=o(1,(j-w)/T),U=E(I);m[d]=U*(b-C)+C,I<1?requestAnimationFrame(A):requestAnimationFrame(function(){S(null,m[d])})}},"scroll")}l(s,"make");function c(d){return .5*(1-Math.cos(Math.PI*d))}l(c,"inOutSine");function f(){}return l(f,"noop"),Xd}l(S5,"requireScroll");var E5=S5();const w5=Jr(E5);var mu={exports:{}},x5=mu.exports,pb;function C5(){return pb||(pb=1,(function(e){(function(r,o){e.exports?e.exports=o():r.Scrollparent=o()})(x5,function(){function r(i){var s=getComputedStyle(i,null).getPropertyValue("overflow");return s.indexOf("scroll")>-1||s.indexOf("auto")>-1}l(r,"isScrolling");function o(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var s=i.parentNode;s.parentNode;){if(r(s))return s;s=s.parentNode}return document.scrollingElement||document.documentElement}}return l(o,"scrollParent"),o})})(mu)),mu.exports}l(C5,"requireScrollparent");var T5=C5();const Jw=Jr(T5);var Wd,hb;function R5(){if(hb)return Wd;hb=1;var e=l(function(i){return Object.prototype.hasOwnProperty.call(i,"props")},"hasProps"),r=l(function(i,s){return i+o(s)},"reduceJsxToString"),o=l(function(i){return i===null||typeof i=="boolean"||typeof i>"u"?"":typeof i=="number"?i.toString():typeof i=="string"?i:Array.isArray(i)?i.reduce(r,""):e(i)&&Object.prototype.hasOwnProperty.call(i.props,"children")?o(i.props.children):""},"innerText");return o.default=o,Wd=o,Wd}l(R5,"requireReactInnertext");var O5=R5();const mb=Jr(O5);var Zd,vb;function _5(){if(vb)return Zd;vb=1;var e=l(function(R){return r(R)&&!o(R)},"isMergeableObject");function r(O){return!!O&&typeof O=="object"}l(r,"isNonNullObject");function o(O){var R=Object.prototype.toString.call(O);return R==="[object RegExp]"||R==="[object Date]"||c(O)}l(o,"isSpecial");var i=typeof Symbol=="function"&&Symbol.for,s=i?Symbol.for("react.element"):60103;function c(O){return O.$$typeof===s}l(c,"isReactElement");function f(O){return Array.isArray(O)?[]:{}}l(f,"emptyTarget");function d(O,R){return R.clone!==!1&&R.isMergeableObject(O)?E(f(O),O,R):O}l(d,"cloneUnlessOtherwiseSpecified");function h(O,R,A){return O.concat(R).map(function(D){return d(D,A)})}l(h,"defaultArrayMerge");function m(O,R){if(!R.customMerge)return E;var A=R.customMerge(O);return typeof A=="function"?A:E}l(m,"getMergeFunction");function b(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(R){return Object.propertyIsEnumerable.call(O,R)}):[]}l(b,"getEnumerableOwnPropertySymbols");function y(O){return Object.keys(O).concat(b(O))}l(y,"getKeys");function S(O,R){try{return R in O}catch{return!1}}l(S,"propertyIsOnObject");function w(O,R){return S(O,R)&&!(Object.hasOwnProperty.call(O,R)&&Object.propertyIsEnumerable.call(O,R))}l(w,"propertyIsUnsafe");function C(O,R,A){var D={};return A.isMergeableObject(O)&&y(O).forEach(function(j){D[j]=d(O[j],A)}),y(R).forEach(function(j){w(O,j)||(S(O,j)&&A.isMergeableObject(R[j])?D[j]=m(j,A)(O[j],R[j],A):D[j]=d(R[j],A))}),D}l(C,"mergeObject");function E(O,R,A){A=A||{},A.arrayMerge=A.arrayMerge||h,A.isMergeableObject=A.isMergeableObject||e,A.cloneUnlessOtherwiseSpecified=d;var D=Array.isArray(R),j=Array.isArray(O),I=D===j;return I?D?A.arrayMerge(O,R,A):C(O,R,A):d(R,A)}l(E,"deepmerge"),E.all=l(function(R,A){if(!Array.isArray(R))throw new Error("first argument should be an array");return R.reduce(function(D,j){return E(D,j,A)},{})},"deepmergeAll");var T=E;return Zd=T,Zd}l(_5,"requireCjs");var A5=_5();const Rn=Jr(A5);var Jd={exports:{}},ep,yb;function M5(){if(yb)return ep;yb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ep=e,ep}l(M5,"requireReactPropTypesSecret");var tp,gb;function N5(){if(gb)return tp;gb=1;var e=M5();function r(){}l(r,"emptyFunction");function o(){}return l(o,"emptyFunctionWithReset"),o.resetWarningCache=r,tp=l(function(){function i(f,d,h,m,b,y){if(y!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}l(i,"shim"),i.isRequired=i;function s(){return i}l(s,"getShim");var c={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:r};return c.PropTypes=c,c},"factoryWithThrowingShims"),tp}l(N5,"requireFactoryWithThrowingShims");var bb;function ex(){return bb||(bb=1,Jd.exports=N5()()),Jd.exports}l(ex,"requirePropTypes");var D5=ex();const ae=Jr(D5);var Ol=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",P5=(function(){for(var e=["Edge","Trident","Firefox"],r=0;r<e.length;r+=1)if(Ol&&navigator.userAgent.indexOf(e[r])>=0)return 1;return 0})();function L5(e){var r=!1;return function(){r||(r=!0,window.Promise.resolve().then(function(){r=!1,e()}))}}l(L5,"microtaskDebounce");function j5(e){var r=!1;return function(){r||(r=!0,setTimeout(function(){r=!1,e()},P5))}}l(j5,"taskDebounce");var z5=Ol&&window.Promise,k5=z5?L5:j5;function tx(e){var r={};return e&&r.toString.call(e)==="[object Function]"}l(tx,"isFunction$1");function Bo(e,r){if(e.nodeType!==1)return[];var o=e.ownerDocument.defaultView,i=o.getComputedStyle(e,null);return r?i[r]:i}l(Bo,"getStyleComputedProperty$1");function kh(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}l(kh,"getParentNode");function _l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var r=Bo(e),o=r.overflow,i=r.overflowX,s=r.overflowY;return/(auto|scroll|overlay)/.test(o+s+i)?e:_l(kh(e))}l(_l,"getScrollParent$1");function nx(e){return e&&e.referenceNode?e.referenceNode:e}l(nx,"getReferenceNode");var Sb=Ol&&!!(window.MSInputMethodContext&&document.documentMode),Eb=Ol&&/MSIE 10/.test(navigator.userAgent);function Za(e){return e===11?Sb:e===10?Eb:Sb||Eb}l(Za,"isIE");function Ua(e){if(!e)return document.documentElement;for(var r=Za(10)?document.body:null,o=e.offsetParent||null;o===r&&e.nextElementSibling;)o=(e=e.nextElementSibling).offsetParent;var i=o&&o.nodeName;return!i||i==="BODY"||i==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(o.nodeName)!==-1&&Bo(o,"position")==="static"?Ua(o):o}l(Ua,"getOffsetParent");function U5(e){var r=e.nodeName;return r==="BODY"?!1:r==="HTML"||Ua(e.firstElementChild)===e}l(U5,"isOffsetContainer");function Dp(e){return e.parentNode!==null?Dp(e.parentNode):e}l(Dp,"getRoot");function Pu(e,r){if(!e||!e.nodeType||!r||!r.nodeType)return document.documentElement;var o=e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:r,s=o?r:e,c=document.createRange();c.setStart(i,0),c.setEnd(s,0);var f=c.commonAncestorContainer;if(e!==f&&r!==f||i.contains(s))return U5(f)?f:Ua(f);var d=Dp(e);return d.host?Pu(d.host,r):Pu(e,Dp(r).host)}l(Pu,"findCommonOffsetParent");function Ha(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",o=r==="top"?"scrollTop":"scrollLeft",i=e.nodeName;if(i==="BODY"||i==="HTML"){var s=e.ownerDocument.documentElement,c=e.ownerDocument.scrollingElement||s;return c[o]}return e[o]}l(Ha,"getScroll");function H5(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Ha(r,"top"),s=Ha(r,"left"),c=o?-1:1;return e.top+=i*c,e.bottom+=i*c,e.left+=s*c,e.right+=s*c,e}l(H5,"includeScroll");function wb(e,r){var o=r==="x"?"Left":"Top",i=o==="Left"?"Right":"Bottom";return parseFloat(e["border"+o+"Width"])+parseFloat(e["border"+i+"Width"])}l(wb,"getBordersSize");function xb(e,r,o,i){return Math.max(r["offset"+e],r["scroll"+e],o["client"+e],o["offset"+e],o["scroll"+e],Za(10)?parseInt(o["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}l(xb,"getSize");function rx(e){var r=e.body,o=e.documentElement,i=Za(10)&&getComputedStyle(o);return{height:xb("Height",r,o,i),width:xb("Width",r,o,i)}}l(rx,"getWindowSizes");var B5=l(function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},"classCallCheck"),I5=(function(){function e(r,o){for(var i=0;i<o.length;i++){var s=o[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return l(e,"defineProperties"),function(r,o,i){return o&&e(r.prototype,o),i&&e(r,i),r}})(),Ba=l(function(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e},"defineProperty"),pn=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e};function Zr(e){return pn({},e,{right:e.left+e.width,bottom:e.top+e.height})}l(Zr,"getClientRect$1");function Pp(e){var r={};try{if(Za(10)){r=e.getBoundingClientRect();var o=Ha(e,"top"),i=Ha(e,"left");r.top+=o,r.left+=i,r.bottom+=o,r.right+=i}else r=e.getBoundingClientRect()}catch{}var s={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},c=e.nodeName==="HTML"?rx(e.ownerDocument):{},f=c.width||e.clientWidth||s.width,d=c.height||e.clientHeight||s.height,h=e.offsetWidth-f,m=e.offsetHeight-d;if(h||m){var b=Bo(e);h-=wb(b,"x"),m-=wb(b,"y"),s.width-=h,s.height-=m}return Zr(s)}l(Pp,"getBoundingClientRect");function Uh(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Za(10),s=r.nodeName==="HTML",c=Pp(e),f=Pp(r),d=_l(e),h=Bo(r),m=parseFloat(h.borderTopWidth),b=parseFloat(h.borderLeftWidth);o&&s&&(f.top=Math.max(f.top,0),f.left=Math.max(f.left,0));var y=Zr({top:c.top-f.top-m,left:c.left-f.left-b,width:c.width,height:c.height});if(y.marginTop=0,y.marginLeft=0,!i&&s){var S=parseFloat(h.marginTop),w=parseFloat(h.marginLeft);y.top-=m-S,y.bottom-=m-S,y.left-=b-w,y.right-=b-w,y.marginTop=S,y.marginLeft=w}return(i&&!o?r.contains(d):r===d&&d.nodeName!=="BODY")&&(y=H5(y,r)),y}l(Uh,"getOffsetRectRelativeToArbitraryNode");function F5(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=e.ownerDocument.documentElement,i=Uh(e,o),s=Math.max(o.clientWidth,window.innerWidth||0),c=Math.max(o.clientHeight,window.innerHeight||0),f=r?0:Ha(o),d=r?0:Ha(o,"left"),h={top:f-i.top+i.marginTop,left:d-i.left+i.marginLeft,width:s,height:c};return Zr(h)}l(F5,"getViewportOffsetRectRelativeToArtbitraryNode");function ox(e){var r=e.nodeName;if(r==="BODY"||r==="HTML")return!1;if(Bo(e,"position")==="fixed")return!0;var o=kh(e);return o?ox(o):!1}l(ox,"isFixed");function ax(e){if(!e||!e.parentElement||Za())return document.documentElement;for(var r=e.parentElement;r&&Bo(r,"transform")==="none";)r=r.parentElement;return r||document.documentElement}l(ax,"getFixedPositionOffsetParent");function Hh(e,r,o,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,c={top:0,left:0},f=s?ax(e):Pu(e,nx(r));if(i==="viewport")c=F5(f,s);else{var d=void 0;i==="scrollParent"?(d=_l(kh(r)),d.nodeName==="BODY"&&(d=e.ownerDocument.documentElement)):i==="window"?d=e.ownerDocument.documentElement:d=i;var h=Uh(d,f,s);if(d.nodeName==="HTML"&&!ox(f)){var m=rx(e.ownerDocument),b=m.height,y=m.width;c.top+=h.top-h.marginTop,c.bottom=b+h.top,c.left+=h.left-h.marginLeft,c.right=y+h.left}else c=h}o=o||0;var S=typeof o=="number";return c.left+=S?o:o.left||0,c.top+=S?o:o.top||0,c.right-=S?o:o.right||0,c.bottom-=S?o:o.bottom||0,c}l(Hh,"getBoundaries");function $5(e){var r=e.width,o=e.height;return r*o}l($5,"getArea");function ix(e,r,o,i,s){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var f=Hh(o,i,c,s),d={top:{width:f.width,height:r.top-f.top},right:{width:f.right-r.right,height:f.height},bottom:{width:f.width,height:f.bottom-r.bottom},left:{width:r.left-f.left,height:f.height}},h=Object.keys(d).map(function(S){return pn({key:S},d[S],{area:$5(d[S])})}).sort(function(S,w){return w.area-S.area}),m=h.filter(function(S){var w=S.width,C=S.height;return w>=o.clientWidth&&C>=o.clientHeight}),b=m.length>0?m[0].key:h[0].key,y=e.split("-")[1];return b+(y?"-"+y:"")}l(ix,"computeAutoPlacement");function lx(e,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=i?ax(r):Pu(r,nx(o));return Uh(o,s,i)}l(lx,"getReferenceOffsets");function sx(e){var r=e.ownerDocument.defaultView,o=r.getComputedStyle(e),i=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),s=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),c={width:e.offsetWidth+s,height:e.offsetHeight+i};return c}l(sx,"getOuterSizes");function Lu(e){var r={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(o){return r[o]})}l(Lu,"getOppositePlacement");function ux(e,r,o){o=o.split("-")[0];var i=sx(e),s={width:i.width,height:i.height},c=["right","left"].indexOf(o)!==-1,f=c?"top":"left",d=c?"left":"top",h=c?"height":"width",m=c?"width":"height";return s[f]=r[f]+r[h]/2-i[h]/2,o===d?s[d]=r[d]-i[m]:s[d]=r[Lu(d)],s}l(ux,"getPopperOffsets");function Al(e,r){return Array.prototype.find?e.find(r):e.filter(r)[0]}l(Al,"find");function q5(e,r,o){if(Array.prototype.findIndex)return e.findIndex(function(s){return s[r]===o});var i=Al(e,function(s){return s[r]===o});return e.indexOf(i)}l(q5,"findIndex");function cx(e,r,o){var i=o===void 0?e:e.slice(0,q5(e,"name",o));return i.forEach(function(s){s.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var c=s.function||s.fn;s.enabled&&tx(c)&&(r.offsets.popper=Zr(r.offsets.popper),r.offsets.reference=Zr(r.offsets.reference),r=c(r,s))}),r}l(cx,"runModifiers");function G5(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=lx(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ix(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ux(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=cx(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}l(G5,"update");function fx(e,r){return e.some(function(o){var i=o.name,s=o.enabled;return s&&i===r})}l(fx,"isModifierEnabled");function Bh(e){for(var r=[!1,"ms","Webkit","Moz","O"],o=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<r.length;i++){var s=r[i],c=s?""+s+o:e;if(typeof document.body.style[c]<"u")return c}return null}l(Bh,"getSupportedPropertyName");function V5(){return this.state.isDestroyed=!0,fx(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Bh("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}l(V5,"destroy");function dx(e){var r=e.ownerDocument;return r?r.defaultView:window}l(dx,"getWindow");function px(e,r,o,i){var s=e.nodeName==="BODY",c=s?e.ownerDocument.defaultView:e;c.addEventListener(r,o,{passive:!0}),s||px(_l(c.parentNode),r,o,i),i.push(c)}l(px,"attachToScrollParents");function Y5(e,r,o,i){o.updateBound=i,dx(e).addEventListener("resize",o.updateBound,{passive:!0});var s=_l(e);return px(s,"scroll",o.updateBound,o.scrollParents),o.scrollElement=s,o.eventsEnabled=!0,o}l(Y5,"setupEventListeners");function Q5(){this.state.eventsEnabled||(this.state=Y5(this.reference,this.options,this.state,this.scheduleUpdate))}l(Q5,"enableEventListeners");function K5(e,r){return dx(e).removeEventListener("resize",r.updateBound),r.scrollParents.forEach(function(o){o.removeEventListener("scroll",r.updateBound)}),r.updateBound=null,r.scrollParents=[],r.scrollElement=null,r.eventsEnabled=!1,r}l(K5,"removeEventListeners");function X5(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=K5(this.reference,this.state))}l(X5,"disableEventListeners");function Ih(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}l(Ih,"isNumeric");function Lp(e,r){Object.keys(r).forEach(function(o){var i="";["width","height","top","right","bottom","left"].indexOf(o)!==-1&&Ih(r[o])&&(i="px"),e.style[o]=r[o]+i})}l(Lp,"setStyles");function W5(e,r){Object.keys(r).forEach(function(o){var i=r[o];i!==!1?e.setAttribute(o,r[o]):e.removeAttribute(o)})}l(W5,"setAttributes");function Z5(e){return Lp(e.instance.popper,e.styles),W5(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Lp(e.arrowElement,e.arrowStyles),e}l(Z5,"applyStyle");function J5(e,r,o,i,s){var c=lx(s,r,e,o.positionFixed),f=ix(o.placement,c,r,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return r.setAttribute("x-placement",f),Lp(r,{position:o.positionFixed?"fixed":"absolute"}),o}l(J5,"applyStyleOnLoad");function e6(e,r){var o=e.offsets,i=o.popper,s=o.reference,c=Math.round,f=Math.floor,d=l(function(O){return O},"noRound2"),h=c(s.width),m=c(i.width),b=["left","right"].indexOf(e.placement)!==-1,y=e.placement.indexOf("-")!==-1,S=h%2===m%2,w=h%2===1&&m%2===1,C=r?b||y||S?c:f:d,E=r?c:d;return{left:C(w&&!y&&r?i.left-1:i.left),top:E(i.top),bottom:E(i.bottom),right:C(i.right)}}l(e6,"getRoundedOffsets");var t6=Ol&&/Firefox/i.test(navigator.userAgent);function n6(e,r){var o=r.x,i=r.y,s=e.offsets.popper,c=Al(e.instance.modifiers,function(A){return A.name==="applyStyle"}).gpuAcceleration;c!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var f=c!==void 0?c:r.gpuAcceleration,d=Ua(e.instance.popper),h=Pp(d),m={position:s.position},b=e6(e,window.devicePixelRatio<2||!t6),y=o==="bottom"?"top":"bottom",S=i==="right"?"left":"right",w=Bh("transform"),C=void 0,E=void 0;if(y==="bottom"?d.nodeName==="HTML"?E=-d.clientHeight+b.bottom:E=-h.height+b.bottom:E=b.top,S==="right"?d.nodeName==="HTML"?C=-d.clientWidth+b.right:C=-h.width+b.right:C=b.left,f&&w)m[w]="translate3d("+C+"px, "+E+"px, 0)",m[y]=0,m[S]=0,m.willChange="transform";else{var T=y==="bottom"?-1:1,O=S==="right"?-1:1;m[y]=E*T,m[S]=C*O,m.willChange=y+", "+S}var R={"x-placement":e.placement};return e.attributes=pn({},R,e.attributes),e.styles=pn({},m,e.styles),e.arrowStyles=pn({},e.offsets.arrow,e.arrowStyles),e}l(n6,"computeStyle");function hx(e,r,o){var i=Al(e,function(d){var h=d.name;return h===r}),s=!!i&&e.some(function(d){return d.name===o&&d.enabled&&d.order<i.order});if(!s){var c="`"+r+"`",f="`"+o+"`";console.warn(f+" modifier is required by "+c+" modifier in order to work, be sure to include it before "+c+"!")}return s}l(hx,"isModifierRequired");function r6(e,r){var o;if(!hx(e.instance.modifiers,"arrow","keepTogether"))return e;var i=r.element;if(typeof i=="string"){if(i=e.instance.popper.querySelector(i),!i)return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var s=e.placement.split("-")[0],c=e.offsets,f=c.popper,d=c.reference,h=["left","right"].indexOf(s)!==-1,m=h?"height":"width",b=h?"Top":"Left",y=b.toLowerCase(),S=h?"left":"top",w=h?"bottom":"right",C=sx(i)[m];d[w]-C<f[y]&&(e.offsets.popper[y]-=f[y]-(d[w]-C)),d[y]+C>f[w]&&(e.offsets.popper[y]+=d[y]+C-f[w]),e.offsets.popper=Zr(e.offsets.popper);var E=d[y]+d[m]/2-C/2,T=Bo(e.instance.popper),O=parseFloat(T["margin"+b]),R=parseFloat(T["border"+b+"Width"]),A=E-e.offsets.popper[y]-O-R;return A=Math.max(Math.min(f[m]-C,A),0),e.arrowElement=i,e.offsets.arrow=(o={},Ba(o,y,Math.round(A)),Ba(o,S,""),o),e}l(r6,"arrow");function o6(e){return e==="end"?"start":e==="start"?"end":e}l(o6,"getOppositeVariation");var mx=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],np=mx.slice(3);function Cb(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=np.indexOf(e),i=np.slice(o+1).concat(np.slice(0,o));return r?i.reverse():i}l(Cb,"clockwise");var rp={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function a6(e,r){if(fx(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var o=Hh(e.instance.popper,e.instance.reference,r.padding,r.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],s=Lu(i),c=e.placement.split("-")[1]||"",f=[];switch(r.behavior){case rp.FLIP:f=[i,s];break;case rp.CLOCKWISE:f=Cb(i);break;case rp.COUNTERCLOCKWISE:f=Cb(i,!0);break;default:f=r.behavior}return f.forEach(function(d,h){if(i!==d||f.length===h+1)return e;i=e.placement.split("-")[0],s=Lu(i);var m=e.offsets.popper,b=e.offsets.reference,y=Math.floor,S=i==="left"&&y(m.right)>y(b.left)||i==="right"&&y(m.left)<y(b.right)||i==="top"&&y(m.bottom)>y(b.top)||i==="bottom"&&y(m.top)<y(b.bottom),w=y(m.left)<y(o.left),C=y(m.right)>y(o.right),E=y(m.top)<y(o.top),T=y(m.bottom)>y(o.bottom),O=i==="left"&&w||i==="right"&&C||i==="top"&&E||i==="bottom"&&T,R=["top","bottom"].indexOf(i)!==-1,A=!!r.flipVariations&&(R&&c==="start"&&w||R&&c==="end"&&C||!R&&c==="start"&&E||!R&&c==="end"&&T),D=!!r.flipVariationsByContent&&(R&&c==="start"&&C||R&&c==="end"&&w||!R&&c==="start"&&T||!R&&c==="end"&&E),j=A||D;(S||O||j)&&(e.flipped=!0,(S||O)&&(i=f[h+1]),j&&(c=o6(c)),e.placement=i+(c?"-"+c:""),e.offsets.popper=pn({},e.offsets.popper,ux(e.instance.popper,e.offsets.reference,e.placement)),e=cx(e.instance.modifiers,e,"flip"))}),e}l(a6,"flip");function i6(e){var r=e.offsets,o=r.popper,i=r.reference,s=e.placement.split("-")[0],c=Math.floor,f=["top","bottom"].indexOf(s)!==-1,d=f?"right":"bottom",h=f?"left":"top",m=f?"width":"height";return o[d]<c(i[h])&&(e.offsets.popper[h]=c(i[h])-o[m]),o[h]>c(i[d])&&(e.offsets.popper[h]=c(i[d])),e}l(i6,"keepTogether");function l6(e,r,o,i){var s=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),c=+s[1],f=s[2];if(!c)return e;if(f.indexOf("%")===0){var d=void 0;f==="%p"?d=o:d=i;var h=Zr(d);return h[r]/100*c}else if(f==="vh"||f==="vw"){var m=void 0;return f==="vh"?m=Math.max(document.documentElement.clientHeight,window.innerHeight||0):m=Math.max(document.documentElement.clientWidth,window.innerWidth||0),m/100*c}else return c}l(l6,"toValue");function s6(e,r,o,i){var s=[0,0],c=["right","left"].indexOf(i)!==-1,f=e.split(/(\+|\-)/).map(function(b){return b.trim()}),d=f.indexOf(Al(f,function(b){return b.search(/,|\s/)!==-1}));f[d]&&f[d].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var h=/\s*,\s*|\s+/,m=d!==-1?[f.slice(0,d).concat([f[d].split(h)[0]]),[f[d].split(h)[1]].concat(f.slice(d+1))]:[f];return m=m.map(function(b,y){var S=(y===1?!c:c)?"height":"width",w=!1;return b.reduce(function(C,E){return C[C.length-1]===""&&["+","-"].indexOf(E)!==-1?(C[C.length-1]=E,w=!0,C):w?(C[C.length-1]+=E,w=!1,C):C.concat(E)},[]).map(function(C){return l6(C,S,r,o)})}),m.forEach(function(b,y){b.forEach(function(S,w){Ih(S)&&(s[y]+=S*(b[w-1]==="-"?-1:1))})}),s}l(s6,"parseOffset");function u6(e,r){var o=r.offset,i=e.placement,s=e.offsets,c=s.popper,f=s.reference,d=i.split("-")[0],h=void 0;return Ih(+o)?h=[+o,0]:h=s6(o,c,f,d),d==="left"?(c.top+=h[0],c.left-=h[1]):d==="right"?(c.top+=h[0],c.left+=h[1]):d==="top"?(c.left+=h[0],c.top-=h[1]):d==="bottom"&&(c.left+=h[0],c.top+=h[1]),e.popper=c,e}l(u6,"offset");function c6(e,r){var o=r.boundariesElement||Ua(e.instance.popper);e.instance.reference===o&&(o=Ua(o));var i=Bh("transform"),s=e.instance.popper.style,c=s.top,f=s.left,d=s[i];s.top="",s.left="",s[i]="";var h=Hh(e.instance.popper,e.instance.reference,r.padding,o,e.positionFixed);s.top=c,s.left=f,s[i]=d,r.boundaries=h;var m=r.priority,b=e.offsets.popper,y={primary:l(function(w){var C=b[w];return b[w]<h[w]&&!r.escapeWithReference&&(C=Math.max(b[w],h[w])),Ba({},w,C)},"primary"),secondary:l(function(w){var C=w==="right"?"left":"top",E=b[C];return b[w]>h[w]&&!r.escapeWithReference&&(E=Math.min(b[C],h[w]-(w==="right"?b.width:b.height))),Ba({},C,E)},"secondary")};return m.forEach(function(S){var w=["left","top"].indexOf(S)!==-1?"primary":"secondary";b=pn({},b,y[w](S))}),e.offsets.popper=b,e}l(c6,"preventOverflow");function f6(e){var r=e.placement,o=r.split("-")[0],i=r.split("-")[1];if(i){var s=e.offsets,c=s.reference,f=s.popper,d=["bottom","top"].indexOf(o)!==-1,h=d?"left":"top",m=d?"width":"height",b={start:Ba({},h,c[h]),end:Ba({},h,c[h]+c[m]-f[m])};e.offsets.popper=pn({},f,b[i])}return e}l(f6,"shift");function d6(e){if(!hx(e.instance.modifiers,"hide","preventOverflow"))return e;var r=e.offsets.reference,o=Al(e.instance.modifiers,function(i){return i.name==="preventOverflow"}).boundaries;if(r.bottom<o.top||r.left>o.right||r.top>o.bottom||r.right<o.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}l(d6,"hide");function p6(e){var r=e.placement,o=r.split("-")[0],i=e.offsets,s=i.popper,c=i.reference,f=["left","right"].indexOf(o)!==-1,d=["top","left"].indexOf(o)===-1;return s[f?"left":"top"]=c[o]-(d?s[f?"width":"height"]:0),e.placement=Lu(r),e.offsets.popper=Zr(s),e}l(p6,"inner");var h6={shift:{order:100,enabled:!0,fn:f6},offset:{order:200,enabled:!0,fn:u6,offset:0},preventOverflow:{order:300,enabled:!0,fn:c6,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:i6},arrow:{order:500,enabled:!0,fn:r6,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:a6,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:p6},hide:{order:800,enabled:!0,fn:d6},computeStyle:{order:850,enabled:!0,fn:n6,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Z5,onLoad:J5,gpuAcceleration:void 0}},m6={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:l(function(){},"onCreate"),onUpdate:l(function(){},"onUpdate"),modifiers:h6},pl=(function(){function e(r,o){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B5(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=k5(this.update.bind(this)),this.options=pn({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=r&&r.jquery?r[0]:r,this.popper=o&&o.jquery?o[0]:o,this.options.modifiers={},Object.keys(pn({},e.Defaults.modifiers,s.modifiers)).forEach(function(f){i.options.modifiers[f]=pn({},e.Defaults.modifiers[f]||{},s.modifiers?s.modifiers[f]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(f){return pn({name:f},i.options.modifiers[f])}).sort(function(f,d){return f.order-d.order}),this.modifiers.forEach(function(f){f.enabled&&tx(f.onLoad)&&f.onLoad(i.reference,i.popper,i.options,f,i.state)}),this.update();var c=this.options.eventsEnabled;c&&this.enableEventListeners(),this.state.eventsEnabled=c}return l(e,"Popper2"),I5(e,[{key:"update",value:l(function(){return G5.call(this)},"update$$1")},{key:"destroy",value:l(function(){return V5.call(this)},"destroy$$1")},{key:"enableEventListeners",value:l(function(){return Q5.call(this)},"enableEventListeners$$1")},{key:"disableEventListeners",value:l(function(){return X5.call(this)},"disableEventListeners$$1")}]),e})();pl.Utils=(typeof window<"u"?window:globalThis).PopperUtils;pl.placements=mx;pl.Defaults=m6;var v6=["innerHTML","ownerDocument","style","attributes","nodeValue"],y6=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],g6=["bigint","boolean","null","number","string","symbol","undefined"];function sc(e){var r=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(r))return"HTMLElement";if(b6(r))return r}l(sc,"getObjectType$1");function Dn(e){return function(r){return sc(r)===e}}l(Dn,"isObjectOfType");function b6(e){return y6.includes(e)}l(b6,"isObjectType");function Ja(e){return function(r){return typeof r===e}}l(Ja,"isOfType$1");function S6(e){return g6.includes(e)}l(S6,"isPrimitiveType");function V(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(V.array(e))return"Array";if(V.plainFunction(e))return"Function";var r=sc(e);return r||"Object"}l(V,"is");V.array=Array.isArray;V.arrayOf=function(e,r){return!V.array(e)&&!V.function(r)?!1:e.every(function(o){return r(o)})};V.asyncGeneratorFunction=function(e){return sc(e)==="AsyncGeneratorFunction"};V.asyncFunction=Dn("AsyncFunction");V.bigint=Ja("bigint");V.boolean=function(e){return e===!0||e===!1};V.date=Dn("Date");V.defined=function(e){return!V.undefined(e)};V.domElement=function(e){return V.object(e)&&!V.plainObject(e)&&e.nodeType===1&&V.string(e.nodeName)&&v6.every(function(r){return r in e})};V.empty=function(e){return V.string(e)&&e.length===0||V.array(e)&&e.length===0||V.object(e)&&!V.map(e)&&!V.set(e)&&Object.keys(e).length===0||V.set(e)&&e.size===0||V.map(e)&&e.size===0};V.error=Dn("Error");V.function=Ja("function");V.generator=function(e){return V.iterable(e)&&V.function(e.next)&&V.function(e.throw)};V.generatorFunction=Dn("GeneratorFunction");V.instanceOf=function(e,r){return!e||!r?!1:Object.getPrototypeOf(e)===r.prototype};V.iterable=function(e){return!V.nullOrUndefined(e)&&V.function(e[Symbol.iterator])};V.map=Dn("Map");V.nan=function(e){return Number.isNaN(e)};V.null=function(e){return e===null};V.nullOrUndefined=function(e){return V.null(e)||V.undefined(e)};V.number=function(e){return Ja("number")(e)&&!V.nan(e)};V.numericString=function(e){return V.string(e)&&e.length>0&&!Number.isNaN(Number(e))};V.object=function(e){return!V.nullOrUndefined(e)&&(V.function(e)||typeof e=="object")};V.oneOf=function(e,r){return V.array(e)?e.indexOf(r)>-1:!1};V.plainFunction=Dn("Function");V.plainObject=function(e){if(sc(e)!=="Object")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.getPrototypeOf({})};V.primitive=function(e){return V.null(e)||S6(typeof e)};V.promise=Dn("Promise");V.propertyOf=function(e,r,o){if(!V.object(e)||!r)return!1;var i=e[r];return V.function(o)?o(i):V.defined(i)};V.regexp=Dn("RegExp");V.set=Dn("Set");V.string=Ja("string");V.symbol=Ja("symbol");V.undefined=Ja("undefined");V.weakMap=Dn("WeakMap");V.weakSet=Dn("WeakSet");function vx(e){return function(r){return typeof r===e}}l(vx,"isOfType");var E6=vx("function"),w6=l(function(e){return e===null},"isNull"),Tb=l(function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},"isRegex"),Rb=l(function(e){return!x6(e)&&!w6(e)&&(E6(e)||typeof e=="object")},"isObject"),x6=vx("undefined"),jp=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,o=r&&e[r],i=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:l(function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}},"next")};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function C6(e,r){var o=e.length;if(o!==r.length)return!1;for(var i=o;i--!==0;)if(!Ht(e[i],r[i]))return!1;return!0}l(C6,"equalArray");function T6(e,r){if(e.byteLength!==r.byteLength)return!1;for(var o=new DataView(e.buffer),i=new DataView(r.buffer),s=e.byteLength;s--;)if(o.getUint8(s)!==i.getUint8(s))return!1;return!0}l(T6,"equalArrayBuffer");function R6(e,r){var o,i,s,c;if(e.size!==r.size)return!1;try{for(var f=jp(e.entries()),d=f.next();!d.done;d=f.next()){var h=d.value;if(!r.has(h[0]))return!1}}catch(y){o={error:y}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var m=jp(e.entries()),b=m.next();!b.done;b=m.next()){var h=b.value;if(!Ht(h[1],r.get(h[0])))return!1}}catch(y){s={error:y}}finally{try{b&&!b.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}return!0}l(R6,"equalMap");function O6(e,r){var o,i;if(e.size!==r.size)return!1;try{for(var s=jp(e.entries()),c=s.next();!c.done;c=s.next()){var f=c.value;if(!r.has(f[0]))return!1}}catch(d){o={error:d}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!0}l(O6,"equalSet");function Ht(e,r){if(e===r)return!0;if(e&&Rb(e)&&r&&Rb(r)){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)&&Array.isArray(r))return C6(e,r);if(e instanceof Map&&r instanceof Map)return R6(e,r);if(e instanceof Set&&r instanceof Set)return O6(e,r);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r))return T6(e,r);if(Tb(e)&&Tb(r))return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();var o=Object.keys(e),i=Object.keys(r);if(o.length!==i.length)return!1;for(var s=o.length;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(var s=o.length;s--!==0;){var c=o[s];if(!(c==="_owner"&&e.$$typeof)&&!Ht(e[c],r[c]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(r)?!0:e===r}l(Ht,"equal");function _6(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.every(function(o){return V.string(o)||V.array(o)||V.plainObject(o)})}l(_6,"canHaveLength");function A6(e,r,o){return yx(e,r)?[e,r].every(V.array)?!e.some(Nb(o))&&r.some(Nb(o)):[e,r].every(V.plainObject)?!Object.entries(e).some(Mb(o))&&Object.entries(r).some(Mb(o)):r===o:!1}l(A6,"checkEquality");function Ob(e,r,o){var i=o.actual,s=o.key,c=o.previous,f=o.type,d=Fn(e,s),h=Fn(r,s),m=[d,h].every(V.number)&&(f==="increased"?d<h:d>h);return V.undefined(i)||(m=m&&h===i),V.undefined(c)||(m=m&&d===c),m}l(Ob,"compareNumbers");function _b(e,r,o){var i=o.key,s=o.type,c=o.value,f=Fn(e,i),d=Fn(r,i),h=s==="added"?f:d,m=s==="added"?d:f;if(!V.nullOrUndefined(c)){if(V.defined(h)){if(V.array(h)||V.plainObject(h))return A6(h,m,c)}else return Ht(m,c);return!1}return[f,d].every(V.array)?!m.every(Fh(h)):[f,d].every(V.plainObject)?M6(Object.keys(h),Object.keys(m)):![f,d].every(function(b){return V.primitive(b)&&V.defined(b)})&&(s==="added"?!V.defined(f)&&V.defined(d):V.defined(f)&&!V.defined(d))}l(_b,"compareValues");function Ab(e,r,o){var i=o===void 0?{}:o,s=i.key,c=Fn(e,s),f=Fn(r,s);if(!yx(c,f))throw new TypeError("Inputs have different types");if(!_6(c,f))throw new TypeError("Inputs don't have length");return[c,f].every(V.plainObject)&&(c=Object.keys(c),f=Object.keys(f)),[c,f]}l(Ab,"getIterables");function Mb(e){return function(r){var o=r[0],i=r[1];return V.array(e)?Ht(e,i)||e.some(function(s){return Ht(s,i)||V.array(i)&&Fh(i)(s)}):V.plainObject(e)&&e[o]?!!e[o]&&Ht(e[o],i):Ht(e,i)}}l(Mb,"hasEntry");function M6(e,r){return r.some(function(o){return!e.includes(o)})}l(M6,"hasExtraKeys");function Nb(e){return function(r){return V.array(e)?e.some(function(o){return Ht(o,r)||V.array(r)&&Fh(r)(o)}):Ht(e,r)}}l(Nb,"hasValue");function Wi(e,r){return V.array(e)?e.some(function(o){return Ht(o,r)}):Ht(e,r)}l(Wi,"includesOrEqualsTo");function Fh(e){return function(r){return e.some(function(o){return Ht(o,r)})}}l(Fh,"isEqualPredicate");function yx(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.every(V.array)||e.every(V.number)||e.every(V.plainObject)||e.every(V.string)}l(yx,"isSameType");function Fn(e,r){if(V.plainObject(e)||V.array(e)){if(V.string(r)){var o=r.split(".");return o.reduce(function(i,s){return i&&i[s]},e)}return V.number(r)?e[r]:e}return e}l(Fn,"nested");function N6(e,r){if([e,r].some(V.nullOrUndefined))throw new Error("Missing required parameters");if(![e,r].every(function(y){return V.plainObject(y)||V.array(y)}))throw new Error("Expected plain objects or array");var o=l(function(y,S){try{return _b(e,r,{key:y,type:"added",value:S})}catch{return!1}},"added"),i=l(function(y,S,w){try{var C=Fn(e,y),E=Fn(r,y),T=V.defined(S),O=V.defined(w);if(T||O){var R=O?Wi(w,C):!Wi(S,C),A=Wi(S,E);return R&&A}return[C,E].every(V.array)||[C,E].every(V.plainObject)?!Ht(C,E):C!==E}catch{return!1}},"changed"),s=l(function(y,S,w){if(!V.defined(y))return!1;try{var C=Fn(e,y),E=Fn(r,y),T=V.defined(w);return Wi(S,C)&&(T?Wi(w,E):!T)}catch{return!1}},"changedFrom"),c=l(function(y,S){return V.defined(y)?i(y,S):!1},"changedTo"),f=l(function(y,S,w){if(!V.defined(y))return!1;try{return Ob(e,r,{key:y,actual:S,previous:w,type:"decreased"})}catch{return!1}},"decreased"),d=l(function(y){try{var S=Ab(e,r,{key:y}),w=S[0],C=S[1];return!!w.length&&!C.length}catch{return!1}},"emptied"),h=l(function(y){try{var S=Ab(e,r,{key:y}),w=S[0],C=S[1];return!w.length&&!!C.length}catch{return!1}},"filled"),m=l(function(y,S,w){if(!V.defined(y))return!1;try{return Ob(e,r,{key:y,actual:S,previous:w,type:"increased"})}catch{return!1}},"increased"),b=l(function(y,S){try{return _b(e,r,{key:y,type:"removed",value:S})}catch{return!1}},"removed");return{added:o,changed:i,changedFrom:s,changedTo:c,decreased:f,emptied:d,filled:h,increased:m,removed:b}}l(N6,"treeChanges");function Db(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),o.push.apply(o,i)}return o}l(Db,"ownKeys");function tt(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Db(Object(o),!0).forEach(function(i){Tt(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Db(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}l(tt,"_objectSpread2");function Ml(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}l(Ml,"_classCallCheck");function D6(e,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,bx(i.key),i)}}l(D6,"_defineProperties");function Nl(e,r,o){return r&&D6(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}l(Nl,"_createClass");function Tt(e,r,o){return r=bx(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}l(Tt,"_defineProperty");function Dl(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&zp(e,r)}l(Dl,"_inherits");function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():l(function(o){return o.__proto__||Object.getPrototypeOf(o)},"_getPrototypeOf"),ju(e)}l(ju,"_getPrototypeOf");function zp(e,r){return zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():l(function(i,s){return i.__proto__=s,i},"_setPrototypeOf"),zp(e,r)}l(zp,"_setPrototypeOf");function P6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}l(P6,"_isNativeReflectConstruct");function L6(e,r){if(e==null)return{};var o={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(r.indexOf(s)>=0)&&(o[s]=e[s]);return o}l(L6,"_objectWithoutPropertiesLoose");function gx(e,r){if(e==null)return{};var o=L6(e,r),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)i=c[s],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}l(gx,"_objectWithoutProperties");function hr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}l(hr,"_assertThisInitialized");function j6(e,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}l(j6,"_possibleConstructorReturn");function Pl(e){var r=P6();return l(function(){var i=ju(e),s;if(r){var c=ju(this).constructor;s=Reflect.construct(i,arguments,c)}else s=i.apply(this,arguments);return j6(this,s)},"_createSuperInternal")}l(Pl,"_createSuper");function z6(e,r){if(typeof e!="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var i=o.call(e,r);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}l(z6,"_toPrimitive");function bx(e){var r=z6(e,"string");return typeof r=="symbol"?r:String(r)}l(bx,"_toPropertyKey");var k6={flip:{padding:20},preventOverflow:{padding:10}},U6="The typeValidator argument must be a function with the signature function(props, propName, componentName).",H6="The error message is optional, but must be a string if provided.";function B6(e,r,o,i){return typeof e=="boolean"?e:typeof e=="function"?e(r,o,i):e?!!e:!1}l(B6,"propIsRequired");function I6(e,r){return Object.hasOwnProperty.call(e,r)}l(I6,"propExists");function F6(e,r,o,i){return new Error("Required ".concat(e[r]," `").concat(r,"` was not specified in `").concat(o,"`."))}l(F6,"missingPropError");function $6(e,r){if(typeof e!="function")throw new TypeError(U6);if(r&&typeof r!="string")throw new TypeError(H6)}l($6,"guardAgainstInvalidArgTypes");function Pb(e,r,o){return $6(e,o),function(i,s,c){for(var f=arguments.length,d=new Array(f>3?f-3:0),h=3;h<f;h++)d[h-3]=arguments[h];return B6(r,i,s,c)?I6(i,s)?e.apply(void 0,[i,s,c].concat(d)):F6(i,s,c):e.apply(void 0,[i,s,c].concat(d))}}l(Pb,"isRequiredIf");var ke={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Zi=rl.createPortal!==void 0;function kn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}l(kn,"canUseDOM$1");function op(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}l(op,"isMobile");function iu(e){var r=e.title,o=e.data,i=e.warn,s=i===void 0?!1:i,c=e.debug,f=c===void 0?!1:c,d=s?console.warn||console.error:console.log;f&&r&&o&&(console.groupCollapsed("%creact-floater: ".concat(r),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(o)?o.forEach(function(h){V.plainObject(h)&&h.key?d.apply(console,[h.key,h.value]):d.apply(console,[h])}):d.apply(console,[o]),console.groupEnd())}l(iu,"log$1");function q6(e,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(r,o,i)}l(q6,"on");function G6(e,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(r,o,i)}l(G6,"off");function V6(e,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s;s=l(function(f){o(f),G6(e,r,s)},"nextCB"),q6(e,r,s,i)}l(V6,"once");function Lb(){}l(Lb,"noop$1");var Sx=(function(e){Dl(o,e);var r=Pl(o);function o(){return Ml(this,o),r.apply(this,arguments)}return l(o,"ReactFloaterPortal"),Nl(o,[{key:"componentDidMount",value:l(function(){kn()&&(this.node||this.appendNode(),Zi||this.renderPortal())},"componentDidMount")},{key:"componentDidUpdate",value:l(function(){kn()&&(Zi||this.renderPortal())},"componentDidUpdate")},{key:"componentWillUnmount",value:l(function(){!kn()||!this.node||(Zi||rl.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))},"componentWillUnmount")},{key:"appendNode",value:l(function(){var s=this.props,c=s.id,f=s.zIndex;this.node||(this.node=document.createElement("div"),c&&(this.node.id=c),f&&(this.node.style.zIndex=f),document.body.appendChild(this.node))},"appendNode")},{key:"renderPortal",value:l(function(){if(!kn())return null;var s=this.props,c=s.children,f=s.setRef;if(this.node||this.appendNode(),Zi)return rl.createPortal(c,this.node);var d=rl.unstable_renderSubtreeIntoContainer(this,c.length>1?xe.createElement("div",null,c):c[0],this.node);return f(d),null},"renderPortal")},{key:"renderReact16",value:l(function(){var s=this.props,c=s.hasChildren,f=s.placement,d=s.target;return c?this.renderPortal():d||f==="center"?this.renderPortal():null},"renderReact16")},{key:"render",value:l(function(){return Zi?this.renderReact16():null},"render")}]),o})(xe.Component);Tt(Sx,"propTypes",{children:ae.oneOfType([ae.element,ae.array]),hasChildren:ae.bool,id:ae.oneOfType([ae.string,ae.number]),placement:ae.string,setRef:ae.func.isRequired,target:ae.oneOfType([ae.object,ae.string]),zIndex:ae.number});var Ex=(function(e){Dl(o,e);var r=Pl(o);function o(){return Ml(this,o),r.apply(this,arguments)}return l(o,"FloaterArrow"),Nl(o,[{key:"parentStyle",get:l(function(){var s=this.props,c=s.placement,f=s.styles,d=f.arrow.length,h={pointerEvents:"none",position:"absolute",width:"100%"};return c.startsWith("top")?(h.bottom=0,h.left=0,h.right=0,h.height=d):c.startsWith("bottom")?(h.left=0,h.right=0,h.top=0,h.height=d):c.startsWith("left")?(h.right=0,h.top=0,h.bottom=0):c.startsWith("right")&&(h.left=0,h.top=0),h},"get")},{key:"render",value:l(function(){var s=this.props,c=s.placement,f=s.setArrowRef,d=s.styles,h=d.arrow,m=h.color,b=h.display,y=h.length,S=h.margin,w=h.position,C=h.spread,E={display:b,position:w},T,O=C,R=y;return c.startsWith("top")?(T="0,0 ".concat(O/2,",").concat(R," ").concat(O,",0"),E.bottom=0,E.marginLeft=S,E.marginRight=S):c.startsWith("bottom")?(T="".concat(O,",").concat(R," ").concat(O/2,",0 0,").concat(R),E.top=0,E.marginLeft=S,E.marginRight=S):c.startsWith("left")?(R=C,O=y,T="0,0 ".concat(O,",").concat(R/2," 0,").concat(R),E.right=0,E.marginTop=S,E.marginBottom=S):c.startsWith("right")&&(R=C,O=y,T="".concat(O,",").concat(R," ").concat(O,",0 0,").concat(R/2),E.left=0,E.marginTop=S,E.marginBottom=S),xe.createElement("div",{className:"__floater__arrow",style:this.parentStyle},xe.createElement("span",{ref:f,style:E},xe.createElement("svg",{width:O,height:R,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},xe.createElement("polygon",{points:T,fill:m}))))},"render")}]),o})(xe.Component);Tt(Ex,"propTypes",{placement:ae.string.isRequired,setArrowRef:ae.func.isRequired,styles:ae.object.isRequired});var Y6=["color","height","width"];function wx(e){var r=e.handleClick,o=e.styles,i=o.color,s=o.height,c=o.width,f=gx(o,Y6);return xe.createElement("button",{"aria-label":"close",onClick:r,style:f,type:"button"},xe.createElement("svg",{width:"".concat(c,"px"),height:"".concat(s,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},xe.createElement("g",null,xe.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}l(wx,"FloaterCloseBtn");wx.propTypes={handleClick:ae.func.isRequired,styles:ae.object.isRequired};function xx(e){var r=e.content,o=e.footer,i=e.handleClick,s=e.open,c=e.positionWrapper,f=e.showCloseButton,d=e.title,h=e.styles,m={content:xe.isValidElement(r)?r:xe.createElement("div",{className:"__floater__content",style:h.content},r)};return d&&(m.title=xe.isValidElement(d)?d:xe.createElement("div",{className:"__floater__title",style:h.title},d)),o&&(m.footer=xe.isValidElement(o)?o:xe.createElement("div",{className:"__floater__footer",style:h.footer},o)),(f||c)&&!V.boolean(s)&&(m.close=xe.createElement(wx,{styles:h.close,handleClick:i})),xe.createElement("div",{className:"__floater__container",style:h.container},m.close,m.title,m.content,m.footer)}l(xx,"FloaterContainer");xx.propTypes={content:ae.node.isRequired,footer:ae.node,handleClick:ae.func.isRequired,open:ae.bool,positionWrapper:ae.bool.isRequired,showCloseButton:ae.bool.isRequired,styles:ae.object.isRequired,title:ae.node};var Cx=(function(e){Dl(o,e);var r=Pl(o);function o(){return Ml(this,o),r.apply(this,arguments)}return l(o,"Floater"),Nl(o,[{key:"style",get:l(function(){var s=this.props,c=s.disableAnimation,f=s.component,d=s.placement,h=s.hideArrow,m=s.status,b=s.styles,y=b.arrow.length,S=b.floater,w=b.floaterCentered,C=b.floaterClosing,E=b.floaterOpening,T=b.floaterWithAnimation,O=b.floaterWithComponent,R={};return h||(d.startsWith("top")?R.padding="0 0 ".concat(y,"px"):d.startsWith("bottom")?R.padding="".concat(y,"px 0 0"):d.startsWith("left")?R.padding="0 ".concat(y,"px 0 0"):d.startsWith("right")&&(R.padding="0 0 0 ".concat(y,"px"))),[ke.OPENING,ke.OPEN].indexOf(m)!==-1&&(R=tt(tt({},R),E)),m===ke.CLOSING&&(R=tt(tt({},R),C)),m===ke.OPEN&&!c&&(R=tt(tt({},R),T)),d==="center"&&(R=tt(tt({},R),w)),f&&(R=tt(tt({},R),O)),tt(tt({},S),R)},"get")},{key:"render",value:l(function(){var s=this.props,c=s.component,f=s.handleClick,d=s.hideArrow,h=s.setFloaterRef,m=s.status,b={},y=["__floater"];return c?xe.isValidElement(c)?b.content=xe.cloneElement(c,{closeFn:f}):b.content=c({closeFn:f}):b.content=xe.createElement(xx,this.props),m===ke.OPEN&&y.push("__floater__open"),d||(b.arrow=xe.createElement(Ex,this.props)),xe.createElement("div",{ref:h,className:y.join(" "),style:this.style},xe.createElement("div",{className:"__floater__body"},b.content,b.arrow))},"render")}]),o})(xe.Component);Tt(Cx,"propTypes",{component:ae.oneOfType([ae.func,ae.element]),content:ae.node,disableAnimation:ae.bool.isRequired,footer:ae.node,handleClick:ae.func.isRequired,hideArrow:ae.bool.isRequired,open:ae.bool,placement:ae.string.isRequired,positionWrapper:ae.bool.isRequired,setArrowRef:ae.func.isRequired,setFloaterRef:ae.func.isRequired,showCloseButton:ae.bool,status:ae.string.isRequired,styles:ae.object.isRequired,title:ae.node});var Tx=(function(e){Dl(o,e);var r=Pl(o);function o(){return Ml(this,o),r.apply(this,arguments)}return l(o,"ReactFloaterWrapper"),Nl(o,[{key:"render",value:l(function(){var s=this.props,c=s.children,f=s.handleClick,d=s.handleMouseEnter,h=s.handleMouseLeave,m=s.setChildRef,b=s.setWrapperRef,y=s.style,S=s.styles,w;if(c)if(xe.Children.count(c)===1)if(!xe.isValidElement(c))w=xe.createElement("span",null,c);else{var C=V.function(c.type)?"innerRef":"ref";w=xe.cloneElement(xe.Children.only(c),Tt({},C,m))}else w=c;return w?xe.createElement("span",{ref:b,style:tt(tt({},S),y),onClick:f,onMouseEnter:d,onMouseLeave:h},w):null},"render")}]),o})(xe.Component);Tt(Tx,"propTypes",{children:ae.node,handleClick:ae.func.isRequired,handleMouseEnter:ae.func.isRequired,handleMouseLeave:ae.func.isRequired,setChildRef:ae.func.isRequired,setWrapperRef:ae.func.isRequired,style:ae.object,styles:ae.object.isRequired});var Q6={zIndex:100};function K6(e){var r=Rn(Q6,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:r.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:r.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:r}}l(K6,"getStyles$1");var X6=["arrow","flip","offset"],W6=["position","top","right","bottom","left"],$h=(function(e){Dl(o,e);var r=Pl(o);function o(i){var s;return Ml(this,o),s=r.call(this,i),Tt(hr(s),"setArrowRef",function(c){s.arrowRef=c}),Tt(hr(s),"setChildRef",function(c){s.childRef=c}),Tt(hr(s),"setFloaterRef",function(c){s.floaterRef=c}),Tt(hr(s),"setWrapperRef",function(c){s.wrapperRef=c}),Tt(hr(s),"handleTransitionEnd",function(){var c=s.state.status,f=s.props.callback;s.wrapperPopper&&s.wrapperPopper.instance.update(),s.setState({status:c===ke.OPENING?ke.OPEN:ke.IDLE},function(){var d=s.state.status;f(d===ke.OPEN?"open":"close",s.props)})}),Tt(hr(s),"handleClick",function(){var c=s.props,f=c.event,d=c.open;if(!V.boolean(d)){var h=s.state,m=h.positionWrapper,b=h.status;(s.event==="click"||s.event==="hover"&&m)&&(iu({title:"click",data:[{event:f,status:b===ke.OPEN?"closing":"opening"}],debug:s.debug}),s.toggle())}}),Tt(hr(s),"handleMouseEnter",function(){var c=s.props,f=c.event,d=c.open;if(!(V.boolean(d)||op())){var h=s.state.status;s.event==="hover"&&h===ke.IDLE&&(iu({title:"mouseEnter",data:[{key:"originalEvent",value:f}],debug:s.debug}),clearTimeout(s.eventDelayTimeout),s.toggle())}}),Tt(hr(s),"handleMouseLeave",function(){var c=s.props,f=c.event,d=c.eventDelay,h=c.open;if(!(V.boolean(h)||op())){var m=s.state,b=m.status,y=m.positionWrapper;s.event==="hover"&&(iu({title:"mouseLeave",data:[{key:"originalEvent",value:f}],debug:s.debug}),d?[ke.OPENING,ke.OPEN].indexOf(b)!==-1&&!y&&!s.eventDelayTimeout&&(s.eventDelayTimeout=setTimeout(function(){delete s.eventDelayTimeout,s.toggle()},d*1e3)):s.toggle(ke.IDLE))}}),s.state={currentPlacement:i.placement,needsUpdate:!1,positionWrapper:i.wrapperOptions.position&&!!i.target,status:ke.INIT,statusWrapper:ke.INIT},s._isMounted=!1,s.hasMounted=!1,kn()&&window.addEventListener("load",function(){s.popper&&s.popper.instance.update(),s.wrapperPopper&&s.wrapperPopper.instance.update()}),s}return l(o,"ReactFloater"),Nl(o,[{key:"componentDidMount",value:l(function(){if(kn()){var s=this.state.positionWrapper,c=this.props,f=c.children,d=c.open,h=c.target;this._isMounted=!0,iu({title:"init",data:{hasChildren:!!f,hasTarget:!!h,isControlled:V.boolean(d),positionWrapper:s,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!f&&h&&V.boolean(d)}},"componentDidMount")},{key:"componentDidUpdate",value:l(function(s,c){if(kn()){var f=this.props,d=f.autoOpen,h=f.open,m=f.target,b=f.wrapperOptions,y=N6(c,this.state),S=y.changedFrom,w=y.changed;if(s.open!==h){var C;V.boolean(h)&&(C=h?ke.OPENING:ke.CLOSING),this.toggle(C)}(s.wrapperOptions.position!==b.position||s.target!==m)&&this.changeWrapperPosition(this.props),w("status",ke.IDLE)&&h?this.toggle(ke.OPEN):S("status",ke.INIT,ke.IDLE)&&d&&this.toggle(ke.OPEN),this.popper&&w("status",ke.OPENING)&&this.popper.instance.update(),this.floaterRef&&(w("status",ke.OPENING)||w("status",ke.CLOSING))&&V6(this.floaterRef,"transitionend",this.handleTransitionEnd),w("needsUpdate",!0)&&this.rebuildPopper()}},"componentDidUpdate")},{key:"componentWillUnmount",value:l(function(){kn()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())},"componentWillUnmount")},{key:"initPopper",value:l(function(){var s=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,f=this.state.positionWrapper,d=this.props,h=d.disableFlip,m=d.getPopper,b=d.hideArrow,y=d.offset,S=d.placement,w=d.wrapperOptions,C=S==="top"||S==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(S==="center")this.setState({status:ke.IDLE});else if(c&&this.floaterRef){var E=this.options,T=E.arrow,O=E.flip,R=E.offset,A=gx(E,X6);new pl(c,this.floaterRef,{placement:S,modifiers:tt({arrow:tt({enabled:!b,element:this.arrowRef},T),flip:tt({enabled:!h,behavior:C},O),offset:tt({offset:"0, ".concat(y,"px")},R)},A),onCreate:l(function(I){var U;if(s.popper=I,!((U=s.floaterRef)!==null&&U!==void 0&&U.isConnected)){s.setState({needsUpdate:!0});return}m(I,"floater"),s._isMounted&&s.setState({currentPlacement:I.placement,status:ke.IDLE}),S!==I.placement&&setTimeout(function(){I.instance.update()},1)},"onCreate"),onUpdate:l(function(I){s.popper=I;var U=s.state.currentPlacement;s._isMounted&&I.placement!==U&&s.setState({currentPlacement:I.placement})},"onUpdate")})}if(f){var D=V.undefined(w.offset)?0:w.offset;new pl(this.target,this.wrapperRef,{placement:w.placement||S,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(D,"px")},flip:{enabled:!1}},onCreate:l(function(I){s.wrapperPopper=I,s._isMounted&&s.setState({statusWrapper:ke.IDLE}),m(I,"wrapper"),S!==I.placement&&setTimeout(function(){I.instance.update()},1)},"onCreate")})}},"initPopper")},{key:"rebuildPopper",value:l(function(){var s=this;this.floaterRefInterval=setInterval(function(){var c;(c=s.floaterRef)!==null&&c!==void 0&&c.isConnected&&(clearInterval(s.floaterRefInterval),s.setState({needsUpdate:!1}),s.initPopper())},50)},"rebuildPopper")},{key:"changeWrapperPosition",value:l(function(s){var c=s.target,f=s.wrapperOptions;this.setState({positionWrapper:f.position&&!!c})},"changeWrapperPosition")},{key:"toggle",value:l(function(s){var c=this.state.status,f=c===ke.OPEN?ke.CLOSING:ke.OPENING;V.undefined(s)||(f=s),this.setState({status:f})},"toggle")},{key:"debug",get:l(function(){var s=this.props.debug;return s||kn()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug},"get")},{key:"event",get:l(function(){var s=this.props,c=s.disableHoverToClick,f=s.event;return f==="hover"&&op()&&!c?"click":f},"get")},{key:"options",get:l(function(){var s=this.props.options;return Rn(k6,s||{})},"get")},{key:"styles",get:l(function(){var s=this,c=this.state,f=c.status,d=c.positionWrapper,h=c.statusWrapper,m=this.props.styles,b=Rn(K6(m),m);if(d){var y;[ke.IDLE].indexOf(f)===-1||[ke.IDLE].indexOf(h)===-1?y=b.wrapperPosition:y=this.wrapperPopper.styles,b.wrapper=tt(tt({},b.wrapper),y)}if(this.target){var S=window.getComputedStyle(this.target);this.wrapperStyles?b.wrapper=tt(tt({},b.wrapper),this.wrapperStyles):["relative","static"].indexOf(S.position)===-1&&(this.wrapperStyles={},d||(W6.forEach(function(w){s.wrapperStyles[w]=S[w]}),b.wrapper=tt(tt({},b.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return b},"get")},{key:"target",get:l(function(){if(!kn())return null;var s=this.props.target;return s?V.domElement(s)?s:document.querySelector(s):this.childRef||this.wrapperRef},"get")},{key:"render",value:l(function(){var s=this.state,c=s.currentPlacement,f=s.positionWrapper,d=s.status,h=this.props,m=h.children,b=h.component,y=h.content,S=h.disableAnimation,w=h.footer,C=h.hideArrow,E=h.id,T=h.open,O=h.showCloseButton,R=h.style,A=h.target,D=h.title,j=xe.createElement(Tx,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:R,styles:this.styles.wrapper},m),I={};return f?I.wrapperInPortal=j:I.wrapperAsChildren=j,xe.createElement("span",null,xe.createElement(Sx,{hasChildren:!!m,id:E,placement:c,setRef:this.setFloaterRef,target:A,zIndex:this.styles.options.zIndex},xe.createElement(Cx,{component:b,content:y,disableAnimation:S,footer:w,handleClick:this.handleClick,hideArrow:C||c==="center",open:T,placement:c,positionWrapper:f,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:O,status:d,styles:this.styles,title:D}),I.wrapperInPortal),I.wrapperAsChildren)},"render")}]),o})(xe.Component);Tt($h,"propTypes",{autoOpen:ae.bool,callback:ae.func,children:ae.node,component:Pb(ae.oneOfType([ae.func,ae.element]),function(e){return!e.content}),content:Pb(ae.node,function(e){return!e.component}),debug:ae.bool,disableAnimation:ae.bool,disableFlip:ae.bool,disableHoverToClick:ae.bool,event:ae.oneOf(["hover","click"]),eventDelay:ae.number,footer:ae.node,getPopper:ae.func,hideArrow:ae.bool,id:ae.oneOfType([ae.string,ae.number]),offset:ae.number,open:ae.bool,options:ae.object,placement:ae.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:ae.bool,style:ae.object,styles:ae.object,target:ae.oneOfType([ae.object,ae.string]),title:ae.node,wrapperOptions:ae.shape({offset:ae.number,placement:ae.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:ae.bool})});Tt($h,"defaultProps",{autoOpen:!1,callback:Lb,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Lb,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Z6=Object.defineProperty,J6=l((e,r,o)=>r in e?Z6(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,"__defNormalProp"),pe=l((e,r,o)=>J6(e,typeof r!="symbol"?r+"":r,o),"__publicField"),Fe={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Tn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Te={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},je={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Qr(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}l(Qr,"canUseDOM");function Rx(e){return e?e.getBoundingClientRect():null}l(Rx,"getClientRect");function ej(e=!1){const{body:r,documentElement:o}=document;if(!r||!o)return 0;if(e){const i=[r.scrollHeight,r.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight].sort((c,f)=>c-f),s=Math.floor(i.length/2);return i.length%2===0?(i[s-1]+i[s])/2:i[s]}return Math.max(r.scrollHeight,r.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight)}l(ej,"getDocumentHeight");function mr(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}l(mr,"getElement");function tj(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}l(tj,"getStyleComputedProperty");function hl(e,r,o){if(!e)return Ro();const i=Jw(e);if(i){if(i.isSameNode(Ro()))return o?document:Ro();if(!(i.scrollHeight>i.offsetHeight)&&!r)return i.style.overflow="initial",Ro()}return i}l(hl,"getScrollParent");function uc(e,r){if(!e)return!1;const o=hl(e,r);return o?!o.isSameNode(Ro()):!1}l(uc,"hasCustomScrollParent");function nj(e){return e.offsetParent!==document.body}l(nj,"hasCustomOffsetParent");function Ia(e,r="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:o}=e,i=tj(e);return o==="BODY"||o==="HTML"?!1:i&&i.position===r?!0:e.parentNode?Ia(e.parentNode,r):!1}l(Ia,"hasPosition");function rj(e){var r;if(!e)return!1;let o=e;for(;o&&o!==document.body;){if(o instanceof HTMLElement){const{display:i,visibility:s}=getComputedStyle(o);if(i==="none"||s==="hidden")return!1}o=(r=o.parentElement)!=null?r:null}return!0}l(rj,"isElementVisible");function oj(e,r,o){var i,s,c;const f=Rx(e),d=hl(e,o),h=uc(e,o),m=Ia(e);let b=0,y=(i=f?.top)!=null?i:0;if(h&&m){const S=(s=e?.offsetTop)!=null?s:0,w=(c=d?.scrollTop)!=null?c:0;y=S-w}else d instanceof HTMLElement&&(b=d.scrollTop,!h&&!Ia(e)&&(y+=b),d.isSameNode(Ro())||(y+=Ro().scrollTop));return Math.floor(y-r)}l(oj,"getElementPosition");function aj(e,r,o){var i;if(!e)return 0;const{offsetTop:s=0,scrollTop:c=0}=(i=Jw(e))!=null?i:{};let f=e.getBoundingClientRect().top+c;s&&(uc(e,o)||nj(e))&&(f-=s);const d=Math.floor(f-r);return d<0?0:d}l(aj,"getScrollTo");function Ro(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}l(Ro,"scrollDocument");function ij(e,r){const{duration:o,element:i}=r;return new Promise((s,c)=>{const{scrollTop:f}=i,d=e>f?e-f:f-e;w5.top(i,e,{duration:d<100?50:o},h=>h&&h.message!=="Element already at target scroll position"?c(h):s())})}l(ij,"scrollTo");var Ji=$n.createPortal!==void 0;function Ox(e=navigator.userAgent){let r=e;return typeof window>"u"?r="node":document.documentMode?r="ie":/Edge/.test(e)?r="edge":window.opera||e.includes(" OPR/")?r="opera":typeof window.InstallTrigger<"u"?r="firefox":window.chrome?r="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(r="safari"),r}l(Ox,"getBrowser");function vu(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}l(vu,"getObjectType");function Un(e,r={}){const{defaultValue:o,step:i,steps:s}=r;let c=mb(e);if(c)(c.includes("{step}")||c.includes("{steps}"))&&i&&s&&(c=c.replace("{step}",i.toString()).replace("{steps}",s.toString()));else if(g.isValidElement(e)&&!Object.values(e.props).length&&vu(e.type)==="function"){const f=e.type({});c=Un(f,r)}else c=mb(o);return c}l(Un,"getReactNodeText");function lj(e,r){return!de.plainObject(e)||!de.array(r)?!1:Object.keys(e).every(o=>r.includes(o))}l(lj,"hasValidKeys");function sj(e){const r=/^#?([\da-f])([\da-f])([\da-f])$/i,o=e.replace(r,(s,c,f,d)=>c+c+f+f+d+d),i=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(o);return i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:[]}l(sj,"hexToRGB");function jb(e){return e.disableBeacon||e.placement==="center"}l(jb,"hideBeacon");function zb(){return!["chrome","safari","firefox","opera"].includes(Ox())}l(zb,"isLegacy");function Lo({data:e,debug:r=!1,title:o,warn:i=!1}){const s=i?console.warn||console.error:console.log;r&&(o&&e?(console.groupCollapsed(`%creact-joyride: ${o}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(c=>{de.plainObject(c)&&c.key?s.apply(console,[c.key,c.value]):s.apply(console,[c])}):s.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}l(Lo,"log");function uj(e){return Object.keys(e)}l(uj,"objectKeys");function _x(e,...r){if(!de.plainObject(e))throw new TypeError("Expected an object");const o={};for(const i in e)({}).hasOwnProperty.call(e,i)&&(r.includes(i)||(o[i]=e[i]));return o}l(_x,"omit");function cj(e,...r){if(!de.plainObject(e))throw new TypeError("Expected an object");if(!r.length)return e;const o={};for(const i in e)({}).hasOwnProperty.call(e,i)&&r.includes(i)&&(o[i]=e[i]);return o}l(cj,"pick");function kp(e,r,o){const i=l(c=>c.replace("{step}",String(r)).replace("{steps}",String(o)),"replacer");if(vu(e)==="string")return i(e);if(!g.isValidElement(e))return e;const{children:s}=e.props;if(vu(s)==="string"&&s.includes("{step}"))return g.cloneElement(e,{children:i(s)});if(Array.isArray(s))return g.cloneElement(e,{children:s.map(c=>typeof c=="string"?i(c):kp(c,r,o))});if(vu(e.type)==="function"&&!Object.values(e.props).length){const c=e.type({});return kp(c,r,o)}return e}l(kp,"replaceLocaleContent");function fj(e){const{isFirstStep:r,lifecycle:o,previousLifecycle:i,scrollToFirstStep:s,step:c,target:f}=e;return!c.disableScrolling&&(!r||s||o===Te.TOOLTIP)&&c.placement!=="center"&&(!c.isFixed||!Ia(f))&&i!==o&&[Te.BEACON,Te.TOOLTIP].includes(o)}l(fj,"shouldScroll");var dj={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Ax={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},pj={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Ax,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},hj={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},mj={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},el={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},kb={borderRadius:4,position:"absolute"};function vj(e,r){var o,i,s,c,f;const{floaterProps:d,styles:h}=e,m=Rn((o=r.floaterProps)!=null?o:{},d??{}),b=Rn(h??{},(i=r.styles)!=null?i:{}),y=Rn(mj,b.options||{}),S=r.placement==="center"||r.disableBeacon;let{width:w}=y;window.innerWidth>480&&(w=380),"width"in y&&(w=typeof y.width=="number"&&window.innerWidth<y.width?window.innerWidth-30:y.width);const C={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:y.zIndex},E={beacon:{...el,display:S?"none":"inline-block",height:y.beaconSize,position:"relative",width:y.beaconSize,zIndex:y.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:y.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${sj(y.primaryColor).join(",")}, 0.2)`,border:`2px solid ${y.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:y.backgroundColor,borderRadius:5,boxSizing:"border-box",color:y.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:w},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...el,backgroundColor:y.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...el,color:y.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...el,color:y.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...el,color:y.textColor,fontSize:14},overlay:{...C,backgroundColor:y.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...C},overlayLegacyCenter:{...C,backgroundColor:y.overlayColor},spotlight:{...kb,backgroundColor:"gray"},spotlightLegacy:{...kb,boxShadow:`0 0 0 9999px ${y.overlayColor}, ${y.spotlightShadow}`},floaterStyles:{arrow:{color:(f=(c=(s=m?.styles)==null?void 0:s.arrow)==null?void 0:c.color)!=null?f:y.arrowColor},options:{zIndex:y.zIndex+100}},options:y};return Rn(E,b)}l(vj,"getStyles");function yj(e){return cj(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}l(yj,"getTourProps");function Aa(e,r){var o,i,s,c,f,d;const h=r??{},m=Rn.all([pj,yj(e),h],{isMergeableObject:de.plainObject}),b=vj(e,m),y=uc(mr(m.target),m.disableScrollParentFix),S=Rn.all([dj,(o=e.floaterProps)!=null?o:{},(i=m.floaterProps)!=null?i:{}]);return S.offset=m.offset,S.styles=Rn((s=S.styles)!=null?s:{},b.floaterStyles),S.offset+=(f=(c=e.spotlightPadding)!=null?c:m.spotlightPadding)!=null?f:0,m.placementBeacon&&S.wrapperOptions&&(S.wrapperOptions.placement=m.placementBeacon),y&&S.options.preventOverflow&&(S.options.preventOverflow.boundariesElement="window"),{...m,locale:Rn.all([Ax,(d=e.locale)!=null?d:{},m.locale||{}]),floaterProps:S,styles:_x(b,"floaterStyles")}}l(Aa,"getMergedStep");function Mx(e,r=!1){return de.plainObject(e)?e.target?!0:(Lo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:r}),!1):(Lo({title:"validateStep",data:"step must be an object",warn:!0,debug:r}),!1)}l(Mx,"validateStep");function Ub(e,r=!1){return de.array(e)?e.every(o=>Mx(o,r)):(Lo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:r}),!1)}l(Ub,"validateSteps");var Nx={action:"init",controlled:!1,index:0,lifecycle:Te.INIT,origin:null,size:0,status:je.IDLE},Hb=uj(_x(Nx,"controlled","size")),gj=class{static{l(this,"Store")}constructor(e){pe(this,"beaconPopper"),pe(this,"tooltipPopper"),pe(this,"data",new Map),pe(this,"listener"),pe(this,"store",new Map),pe(this,"addListener",s=>{this.listener=s}),pe(this,"setSteps",s=>{const{size:c,status:f}=this.getState(),d={size:s.length,status:f};this.data.set("steps",s),f===je.WAITING&&!c&&s.length&&(d.status=je.RUNNING),this.setState(d)}),pe(this,"getPopper",s=>s==="beacon"?this.beaconPopper:this.tooltipPopper),pe(this,"setPopper",(s,c)=>{s==="beacon"?this.beaconPopper=c:this.tooltipPopper=c}),pe(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),pe(this,"close",(s=null)=>{const{index:c,status:f}=this.getState();f===je.RUNNING&&this.setState({...this.getNextState({action:Fe.CLOSE,index:c+1,origin:s})})}),pe(this,"go",s=>{const{controlled:c,status:f}=this.getState();if(c||f!==je.RUNNING)return;const d=this.getSteps()[s];this.setState({...this.getNextState({action:Fe.GO,index:s}),status:d?f:je.FINISHED})}),pe(this,"info",()=>this.getState()),pe(this,"next",()=>{const{index:s,status:c}=this.getState();c===je.RUNNING&&this.setState(this.getNextState({action:Fe.NEXT,index:s+1}))}),pe(this,"open",()=>{const{status:s}=this.getState();s===je.RUNNING&&this.setState({...this.getNextState({action:Fe.UPDATE,lifecycle:Te.TOOLTIP})})}),pe(this,"prev",()=>{const{index:s,status:c}=this.getState();c===je.RUNNING&&this.setState({...this.getNextState({action:Fe.PREV,index:s-1})})}),pe(this,"reset",(s=!1)=>{const{controlled:c}=this.getState();c||this.setState({...this.getNextState({action:Fe.RESET,index:0}),status:s?je.RUNNING:je.READY})}),pe(this,"skip",()=>{const{status:s}=this.getState();s===je.RUNNING&&this.setState({action:Fe.SKIP,lifecycle:Te.INIT,status:je.SKIPPED})}),pe(this,"start",s=>{const{index:c,size:f}=this.getState();this.setState({...this.getNextState({action:Fe.START,index:de.number(s)?s:c},!0),status:f?je.RUNNING:je.WAITING})}),pe(this,"stop",(s=!1)=>{const{index:c,status:f}=this.getState();[je.FINISHED,je.SKIPPED].includes(f)||this.setState({...this.getNextState({action:Fe.STOP,index:c+(s?1:0)}),status:je.PAUSED})}),pe(this,"update",s=>{var c,f;if(!lj(s,Hb))throw new Error(`State is not valid. Valid keys: ${Hb.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...s,action:(c=s.action)!=null?c:Fe.UPDATE,origin:(f=s.origin)!=null?f:null},!0)})});const{continuous:r=!1,stepIndex:o,steps:i=[]}=e??{};this.setState({action:Fe.INIT,controlled:de.number(o),continuous:r,index:de.number(o)?o:0,lifecycle:Te.INIT,origin:null,status:i.length?je.READY:je.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(i)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Nx}}getNextState(e,r=!1){var o,i,s,c,f;const{action:d,controlled:h,index:m,size:b,status:y}=this.getState(),S=de.number(e.index)?e.index:m,w=h&&!r?m:Math.min(Math.max(S,0),b);return{action:(o=e.action)!=null?o:d,controlled:h,index:w,lifecycle:(i=e.lifecycle)!=null?i:Te.INIT,origin:(s=e.origin)!=null?s:null,size:(c=e.size)!=null?c:b,status:w===b?je.FINISHED:(f=e.status)!=null?f:y}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const r=JSON.stringify(e),o=JSON.stringify(this.getState());return r!==o}setState(e,r=!1){const o=this.getState(),{action:i,index:s,lifecycle:c,origin:f=null,size:d,status:h}={...o,...e};this.store.set("action",i),this.store.set("index",s),this.store.set("lifecycle",c),this.store.set("origin",f),this.store.set("size",d),this.store.set("status",h),r&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function bj(e){return new gj(e)}l(bj,"createStore");function Sj({styles:e}){return g.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}l(Sj,"JoyrideSpotlight");var Ej=Sj,wj=class extends g.Component{static{l(this,"JoyrideOverlay")}constructor(){super(...arguments),pe(this,"isActive",!1),pe(this,"resizeTimeout"),pe(this,"scrollTimeout"),pe(this,"scrollParent"),pe(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),pe(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:r,lifecycle:o}=this.props,i=[Te.INIT,Te.BEACON,Te.COMPLETE,Te.ERROR];return r||(e?i.includes(o):o!==Te.TOOLTIP)}),pe(this,"handleMouseMove",e=>{const{mouseOverSpotlight:r}=this.state,{height:o,left:i,position:s,top:c,width:f}=this.spotlightStyles,d=s==="fixed"?e.clientY:e.pageY,h=s==="fixed"?e.clientX:e.pageX,m=d>=c&&d<=c+o,y=h>=i&&h<=i+f&&m;y!==r&&this.updateState({mouseOverSpotlight:y})}),pe(this,"handleScroll",()=>{const{target:e}=this.props,r=mr(e);if(this.scrollParent!==document){const{isScrolling:o}=this.state;o||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Ia(r,"sticky")&&this.updateState({})}),pe(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:r,disableScrollParentFix:o=!1,target:i}=this.props,s=mr(i);this.scrollParent=hl(s??document.body,o,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var r;const{disableScrollParentFix:o,lifecycle:i,spotlightClicks:s,target:c}=this.props,{changed:f}=Du(e,this.props);if(f("target")||f("disableScrollParentFix")){const d=mr(c);this.scrollParent=hl(d??document.body,o,!0)}f("lifecycle",Te.TOOLTIP)&&((r=this.scrollParent)==null||r.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:d}=this.state;d||this.updateState({showSpotlight:!0})},100)),(f("spotlightClicks")||f("disableOverlay")||f("lifecycle"))&&(s&&i===Te.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):i!==Te.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:r,placement:o,styles:i}=this.props;let s=i.overlay;return zb()&&(s=o==="center"?i.overlayLegacyCenter:i.overlayLegacy),{cursor:r?"default":"pointer",height:ej(),pointerEvents:e?"none":"auto",...s}}get spotlightStyles(){var e,r,o;const{showSpotlight:i}=this.state,{disableScrollParentFix:s=!1,spotlightClicks:c,spotlightPadding:f=0,styles:d,target:h}=this.props,m=mr(h),b=Rx(m),y=Ia(m),S=oj(m,f,s);return{...zb()?d.spotlightLegacy:d.spotlight,height:Math.round(((e=b?.height)!=null?e:0)+f*2),left:Math.round(((r=b?.left)!=null?r:0)-f),opacity:i?1:0,pointerEvents:c?"none":"auto",position:y?"fixed":"absolute",top:S,transition:"opacity 0.2s",width:Math.round(((o=b?.width)!=null?o:0)+f*2)}}updateState(e){this.isActive&&this.setState(r=>({...r,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:r,placement:o}=this.props,{hideSpotlight:i,overlayStyles:s,spotlightStyles:c}=this;if(i())return null;let f=o!=="center"&&e&&g.createElement(Ej,{styles:c});if(Ox()==="safari"){const{mixBlendMode:d,zIndex:h,...m}=s;f=g.createElement("div",{style:{...m}},f),delete s.backgroundColor}return g.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:r,role:"presentation",style:s},f)}},xj=class extends g.Component{static{l(this,"JoyridePortal")}constructor(){super(...arguments),pe(this,"node",null)}componentDidMount(){const{id:e}=this.props;Qr()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ji||this.renderReact15())}componentDidUpdate(){Qr()&&(Ji||this.renderReact15())}componentWillUnmount(){!Qr()||!this.node||(Ji||$n.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Qr())return;const{children:e}=this.props;this.node&&$n.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Qr()||!Ji)return null;const{children:e}=this.props;return this.node?$n.createPortal(e,this.node):null}render(){return Ji?this.renderReact16():null}},Cj=class{static{l(this,"Scope")}constructor(e,r){if(pe(this,"element"),pe(this,"options"),pe(this,"canBeTabbed",o=>{const{tabIndex:i}=o;return i===null||i<0?!1:this.canHaveFocus(o)}),pe(this,"canHaveFocus",o=>{const i=/input|select|textarea|button|object/,s=o.nodeName.toLowerCase();return(i.test(s)&&!o.getAttribute("disabled")||s==="a"&&!!o.getAttribute("href"))&&this.isVisible(o)}),pe(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),pe(this,"handleKeyDown",o=>{const{code:i="Tab"}=this.options;o.code===i&&this.interceptTab(o)}),pe(this,"interceptTab",o=>{o.preventDefault();const i=this.findValidTabElements(),{shiftKey:s}=o;if(!i.length)return;let c=document.activeElement?i.indexOf(document.activeElement):0;c===-1||!s&&c+1===i.length?c=0:s&&c===0?c=i.length-1:c+=s?-1:1,i[c].focus()}),pe(this,"isHidden",o=>{const i=o.offsetWidth<=0&&o.offsetHeight<=0,s=window.getComputedStyle(o);return i&&!o.innerHTML?!0:i&&s.getPropertyValue("overflow")!=="visible"||s.getPropertyValue("display")==="none"}),pe(this,"isVisible",o=>{let i=o;for(;i;)if(i instanceof HTMLElement){if(i===document.body)break;if(this.isHidden(i))return!1;i=i.parentNode}return!0}),pe(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),pe(this,"checkFocus",o=>{document.activeElement!==o&&(o.focus(),window.requestAnimationFrame(()=>this.checkFocus(o)))}),pe(this,"setFocus",()=>{const{selector:o}=this.options;if(!o)return;const i=this.element.querySelector(o);i&&window.requestAnimationFrame(()=>this.checkFocus(i))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=r,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Tj=class extends g.Component{static{l(this,"JoyrideBeacon")}constructor(e){if(super(e),pe(this,"beacon",null),pe(this,"setBeaconRef",s=>{this.beacon=s}),e.beaconComponent)return;const r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id="joyride-beacon-animation",e.nonce&&o.setAttribute("nonce",e.nonce),o.appendChild(document.createTextNode(`
62
- @keyframes joyride-beacon-inner {
63
- 20% {
64
- opacity: 0.9;
65
- }
66
-
67
- 90% {
68
- opacity: 0.7;
69
- }
70
- }
71
-
72
- @keyframes joyride-beacon-outer {
73
- 0% {
74
- transform: scale(1);
75
- }
76
-
77
- 45% {
78
- opacity: 0.7;
79
- transform: scale(0.75);
80
- }
81
-
82
- 100% {
83
- opacity: 0.9;
84
- transform: scale(1);
85
- }
86
- }
87
- `)),r.appendChild(o)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{de.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:r,index:o,isLastStep:i,locale:s,onClickOrHover:c,size:f,step:d,styles:h}=this.props,m=Un(s.open),b={"aria-label":m,onClick:c,onMouseEnter:c,ref:this.setBeaconRef,title:m};let y;if(e){const S=e;y=g.createElement(S,{continuous:r,index:o,isLastStep:i,size:f,step:d,...b})}else y=g.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:h.beacon,type:"button",...b},g.createElement("span",{style:h.beaconInner}),g.createElement("span",{style:h.beaconOuter}));return y}};function Rj({styles:e,...r}){const{color:o,height:i,width:s,...c}=e;return xe.createElement("button",{style:c,type:"button",...r},xe.createElement("svg",{height:typeof i=="number"?`${i}px`:i,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof s=="number"?`${s}px`:s,xmlns:"http://www.w3.org/2000/svg"},xe.createElement("g",null,xe.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}l(Rj,"JoyrideTooltipCloseButton");var Oj=Rj;function _j(e){const{backProps:r,closeProps:o,index:i,isLastStep:s,primaryProps:c,skipProps:f,step:d,tooltipProps:h}=e,{content:m,hideBackButton:b,hideCloseButton:y,hideFooter:S,showSkipButton:w,styles:C,title:E}=d,T={};return T.primary=g.createElement("button",{"data-test-id":"button-primary",style:C.buttonNext,type:"button",...c}),w&&!s&&(T.skip=g.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:C.buttonSkip,type:"button",...f})),!b&&i>0&&(T.back=g.createElement("button",{"data-test-id":"button-back",style:C.buttonBack,type:"button",...r})),T.close=!y&&g.createElement(Oj,{"data-test-id":"button-close",styles:C.buttonClose,...o}),g.createElement("div",{key:"JoyrideTooltip","aria-label":Un(E??m),className:"react-joyride__tooltip",style:C.tooltip,...h},g.createElement("div",{style:C.tooltipContainer},E&&g.createElement("h1",{"aria-label":Un(E),style:C.tooltipTitle},E),g.createElement("div",{style:C.tooltipContent},m)),!S&&g.createElement("div",{style:C.tooltipFooter},g.createElement("div",{style:C.tooltipFooterSpacer},T.skip),T.back,T.primary),T.close)}l(_j,"JoyrideTooltipContainer");var Aj=_j,Mj=class extends g.Component{static{l(this,"JoyrideTooltip")}constructor(){super(...arguments),pe(this,"handleClickBack",e=>{e.preventDefault();const{helpers:r}=this.props;r.prev()}),pe(this,"handleClickClose",e=>{e.preventDefault();const{helpers:r}=this.props;r.close("button_close")}),pe(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:r,helpers:o}=this.props;if(!r){o.close("button_primary");return}o.next()}),pe(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:r}=this.props;r.skip()}),pe(this,"getElementsProps",()=>{const{continuous:e,index:r,isLastStep:o,setTooltipRef:i,size:s,step:c}=this.props,{back:f,close:d,last:h,next:m,nextLabelWithProgress:b,skip:y}=c.locale,S=Un(f),w=Un(d),C=Un(h),E=Un(m),T=Un(y);let O=d,R=w;if(e){if(O=m,R=E,c.showProgress&&!o){const A=Un(b,{step:r+1,steps:s});O=kp(b,r+1,s),R=A}o&&(O=h,R=C)}return{backProps:{"aria-label":S,children:f,"data-action":"back",onClick:this.handleClickBack,role:"button",title:S},closeProps:{"aria-label":w,children:d,"data-action":"close",onClick:this.handleClickClose,role:"button",title:w},primaryProps:{"aria-label":R,children:O,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:R},skipProps:{"aria-label":T,children:y,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:T},tooltipProps:{"aria-modal":!0,ref:i,role:"alertdialog"}}})}render(){const{continuous:e,index:r,isLastStep:o,setTooltipRef:i,size:s,step:c}=this.props,{beaconComponent:f,tooltipComponent:d,...h}=c;let m;if(d){const b={...this.getElementsProps(),continuous:e,index:r,isLastStep:o,size:s,step:h,setTooltipRef:i},y=d;m=g.createElement(y,{...b})}else m=g.createElement(Aj,{...this.getElementsProps(),continuous:e,index:r,isLastStep:o,size:s,step:c});return m}},Nj=class extends g.Component{static{l(this,"JoyrideStep")}constructor(){super(...arguments),pe(this,"scope",null),pe(this,"tooltip",null),pe(this,"handleClickHoverBeacon",e=>{const{step:r,store:o}=this.props;e.type==="mouseenter"&&r.event!=="hover"||o.update({lifecycle:Te.TOOLTIP})}),pe(this,"setTooltipRef",e=>{this.tooltip=e}),pe(this,"setPopper",(e,r)=>{var o;const{action:i,lifecycle:s,step:c,store:f}=this.props;r==="wrapper"?f.setPopper("beacon",e):f.setPopper("tooltip",e),f.getPopper("beacon")&&(f.getPopper("tooltip")||c.placement==="center")&&s===Te.INIT&&f.update({action:i,lifecycle:Te.READY}),(o=c.floaterProps)!=null&&o.getPopper&&c.floaterProps.getPopper(e,r)}),pe(this,"renderTooltip",e=>{const{continuous:r,helpers:o,index:i,size:s,step:c}=this.props;return g.createElement(Mj,{continuous:r,helpers:o,index:i,isLastStep:i+1===s,setTooltipRef:this.setTooltipRef,size:s,step:c,...e})})}componentDidMount(){const{debug:e,index:r}=this.props;Lo({title:`step:${r}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var r;const{action:o,callback:i,continuous:s,controlled:c,debug:f,helpers:d,index:h,lifecycle:m,shouldScroll:b,status:y,step:S,store:w}=this.props,{changed:C,changedFrom:E}=Du(e,this.props),T=d.info(),O=s&&o!==Fe.CLOSE&&(h>0||o===Fe.PREV),R=C("action")||C("index")||C("lifecycle")||C("status"),A=E("lifecycle",[Te.TOOLTIP,Te.INIT],Te.INIT),D=C("action",[Fe.NEXT,Fe.PREV,Fe.SKIP,Fe.CLOSE]),j=c&&h===e.index;if(D&&(A||j)&&i({...T,index:e.index,lifecycle:Te.COMPLETE,step:e.step,type:Tn.STEP_AFTER}),S.placement==="center"&&y===je.RUNNING&&C("index")&&o!==Fe.START&&m===Te.INIT&&w.update({lifecycle:Te.READY}),R){const I=mr(S.target),U=!!I;U&&rj(I)?(E("status",je.READY,je.RUNNING)||E("lifecycle",Te.INIT,Te.READY))&&i({...T,step:S,type:Tn.STEP_BEFORE}):(console.warn(U?"Target not visible":"Target not mounted",S),i({...T,type:Tn.TARGET_NOT_FOUND,step:S}),c||w.update({index:h+(o===Fe.PREV?-1:1)}))}E("lifecycle",Te.INIT,Te.READY)&&w.update({lifecycle:jb(S)||O?Te.TOOLTIP:Te.BEACON}),C("index")&&Lo({title:`step:${m}`,data:[{key:"props",value:this.props}],debug:f}),C("lifecycle",Te.BEACON)&&i({...T,step:S,type:Tn.BEACON}),C("lifecycle",Te.TOOLTIP)&&(i({...T,step:S,type:Tn.TOOLTIP}),b&&this.tooltip&&(this.scope=new Cj(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),E("lifecycle",[Te.TOOLTIP,Te.INIT],Te.INIT)&&((r=this.scope)==null||r.removeScope(),w.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:r}=this.props;return jb(r)||e===Te.TOOLTIP}render(){const{continuous:e,debug:r,index:o,nonce:i,shouldScroll:s,size:c,step:f}=this.props,d=mr(f.target);return!Mx(f)||!de.domElement(d)?null:g.createElement("div",{key:`JoyrideStep-${o}`,className:"react-joyride__step"},g.createElement($h,{...f.floaterProps,component:this.renderTooltip,debug:r,getPopper:this.setPopper,id:`react-joyride-step-${o}`,open:this.open,placement:f.placement,target:f.target},g.createElement(Tj,{beaconComponent:f.beaconComponent,continuous:e,index:o,isLastStep:o+1===c,locale:f.locale,nonce:i,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,size:c,step:f,styles:f.styles})))}},Dx=class extends g.Component{static{l(this,"Joyride")}constructor(e){super(e),pe(this,"helpers"),pe(this,"store"),pe(this,"callback",f=>{const{callback:d}=this.props;de.function(d)&&d(f)}),pe(this,"handleKeyboard",f=>{const{index:d,lifecycle:h}=this.state,{steps:m}=this.props,b=m[d];h===Te.TOOLTIP&&f.code==="Escape"&&b&&!b.disableCloseOnEsc&&this.store.close("keyboard")}),pe(this,"handleClickOverlay",()=>{const{index:f}=this.state,{steps:d}=this.props;Aa(this.props,d[f]).disableOverlayClose||this.helpers.close("overlay")}),pe(this,"syncState",f=>{this.setState(f)});const{debug:r,getHelpers:o,run:i=!0,stepIndex:s}=e;this.store=bj({...e,controlled:i&&de.number(s)}),this.helpers=this.store.getHelpers();const{addListener:c}=this.store;Lo({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:r}),c(this.syncState),o&&o(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Qr())return;const{debug:e,disableCloseOnEsc:r,run:o,steps:i}=this.props,{start:s}=this.store;Ub(i,e)&&o&&s(),r||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,r){if(!Qr())return;const{action:o,controlled:i,index:s,status:c}=this.state,{debug:f,run:d,stepIndex:h,steps:m}=this.props,{stepIndex:b,steps:y}=e,{reset:S,setSteps:w,start:C,stop:E,update:T}=this.store,{changed:O}=Du(e,this.props),{changed:R,changedFrom:A}=Du(r,this.state),D=Aa(this.props,m[s]),j=!Mt(y,m),I=de.number(h)&&O("stepIndex"),U=mr(D.target);if(j&&(Ub(m,f)?w(m):console.warn("Steps are not valid",m)),O("run")&&(d?C(h):E()),I){let W=de.number(b)&&b<h?Fe.NEXT:Fe.PREV;o===Fe.STOP&&(W=Fe.START),[je.FINISHED,je.SKIPPED].includes(c)||T({action:o===Fe.CLOSE?Fe.CLOSE:W,index:h,lifecycle:Te.INIT})}!i&&c===je.RUNNING&&s===0&&!U&&(this.store.update({index:s+1}),this.callback({...this.state,type:Tn.TARGET_NOT_FOUND,step:D}));const Q={...this.state,index:s,step:D};if(R("action",[Fe.NEXT,Fe.PREV,Fe.SKIP,Fe.CLOSE])&&R("status",je.PAUSED)){const W=Aa(this.props,m[r.index]);this.callback({...Q,index:r.index,lifecycle:Te.COMPLETE,step:W,type:Tn.STEP_AFTER})}if(R("status",[je.FINISHED,je.SKIPPED])){const W=Aa(this.props,m[r.index]);i||this.callback({...Q,index:r.index,lifecycle:Te.COMPLETE,step:W,type:Tn.STEP_AFTER}),this.callback({...Q,type:Tn.TOUR_END,step:W,index:r.index}),S()}else A("status",[je.IDLE,je.READY],je.RUNNING)?this.callback({...Q,type:Tn.TOUR_START}):(R("status")||R("action",Fe.RESET))&&this.callback({...Q,type:Tn.TOUR_STATUS});this.scrollToStep(r)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:r,lifecycle:o,status:i}=this.state,{debug:s,disableScrollParentFix:c=!1,scrollDuration:f,scrollOffset:d=20,scrollToFirstStep:h=!1,steps:m}=this.props,b=Aa(this.props,m[r]),y=mr(b.target),S=fj({isFirstStep:r===0,lifecycle:o,previousLifecycle:e.lifecycle,scrollToFirstStep:h,step:b,target:y});if(i===je.RUNNING&&S){const w=uc(y,c),C=hl(y,c);let E=Math.floor(aj(y,d,c))||0;Lo({title:"scrollToStep",data:[{key:"index",value:r},{key:"lifecycle",value:o},{key:"status",value:i}],debug:s});const T=this.store.getPopper("beacon"),O=this.store.getPopper("tooltip");if(o===Te.BEACON&&T){const{offsets:R,placement:A}=T;!["bottom"].includes(A)&&!w&&(E=Math.floor(R.popper.top-d))}else if(o===Te.TOOLTIP&&O){const{flipped:R,offsets:A,placement:D}=O;["top","right","left"].includes(D)&&!R&&!w?E=Math.floor(A.popper.top-d):E-=b.spotlightPadding}E=E>=0?E:0,i===je.RUNNING&&ij(E,{element:C,duration:f}).then(()=>{setTimeout(()=>{var R;(R=this.store.getPopper("tooltip"))==null||R.instance.update()},10)})}}render(){if(!Qr())return null;const{index:e,lifecycle:r,status:o}=this.state,{continuous:i=!1,debug:s=!1,nonce:c,scrollToFirstStep:f=!1,steps:d}=this.props,h=o===je.RUNNING,m={};if(h&&d[e]){const b=Aa(this.props,d[e]);m.step=g.createElement(Nj,{...this.state,callback:this.callback,continuous:i,debug:s,helpers:this.helpers,nonce:c,shouldScroll:!b.disableScrolling&&(e!==0||f),step:b,store:this.store}),m.overlay=g.createElement(xj,{id:"react-joyride-portal"},g.createElement(wj,{...b,continuous:i,debug:s,lifecycle:r,onClickOverlay:this.handleClickOverlay}))}return g.createElement("div",{className:"react-joyride"},m.step,m.overlay)}};pe(Dx,"defaultProps",hj);var S7=Dx,qh="ToastProvider",[Gh,Dj,Pj]=Xu("Toast"),[Px]=It("Toast",[Pj]),[Lj,cc]=Px(qh),Lx=l(e=>{const{__scopeToast:r,label:o="Notification",duration:i=5e3,swipeDirection:s="right",swipeThreshold:c=50,children:f}=e,[d,h]=g.useState(null),[m,b]=g.useState(0),y=g.useRef(!1),S=g.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${qh}\`. Expected non-empty \`string\`.`),M.jsx(Gh.Provider,{scope:r,children:M.jsx(Lj,{scope:r,label:o,duration:i,swipeDirection:s,swipeThreshold:c,toastCount:m,viewport:d,onViewportChange:h,onToastAdd:g.useCallback(()=>b(w=>w+1),[]),onToastRemove:g.useCallback(()=>b(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:S,children:f})})},"ToastProvider");Lx.displayName=qh;var jx="ToastViewport",jj=["F8"],Up="toast.viewportPause",Hp="toast.viewportResume",zx=g.forwardRef((e,r)=>{const{__scopeToast:o,hotkey:i=jj,label:s="Notifications ({hotkey})",...c}=e,f=cc(jx,o),d=Dj(o),h=g.useRef(null),m=g.useRef(null),b=g.useRef(null),y=g.useRef(null),S=Oe(r,y,f.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=f.toastCount>0;g.useEffect(()=>{const T=l(O=>{i.length!==0&&i.every(A=>O[A]||O.code===A)&&y.current?.focus()},"handleKeyDown");return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[i]),g.useEffect(()=>{const T=h.current,O=y.current;if(C&&T&&O){const R=l(()=>{if(!f.isClosePausedRef.current){const I=new CustomEvent(Up);O.dispatchEvent(I),f.isClosePausedRef.current=!0}},"handlePause"),A=l(()=>{if(f.isClosePausedRef.current){const I=new CustomEvent(Hp);O.dispatchEvent(I),f.isClosePausedRef.current=!1}},"handleResume"),D=l(I=>{!T.contains(I.relatedTarget)&&A()},"handleFocusOutResume"),j=l(()=>{T.contains(document.activeElement)||A()},"handlePointerLeaveResume");return T.addEventListener("focusin",R),T.addEventListener("focusout",D),T.addEventListener("pointermove",R),T.addEventListener("pointerleave",j),window.addEventListener("blur",R),window.addEventListener("focus",A),()=>{T.removeEventListener("focusin",R),T.removeEventListener("focusout",D),T.removeEventListener("pointermove",R),T.removeEventListener("pointerleave",j),window.removeEventListener("blur",R),window.removeEventListener("focus",A)}}},[C,f.isClosePausedRef]);const E=g.useCallback(({tabbingDirection:T})=>{const R=d().map(A=>{const D=A.ref.current,j=[D,...Qj(D)];return T==="forwards"?j:j.reverse()});return(T==="forwards"?R.reverse():R).flat()},[d]);return g.useEffect(()=>{const T=y.current;if(T){const O=l(R=>{const A=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!A){const j=document.activeElement,I=R.shiftKey;if(R.target===T&&I){m.current?.focus();return}const ee=E({tabbingDirection:I?"backwards":"forwards"}),W=ee.findIndex(oe=>oe===j);ap(ee.slice(W+1))?R.preventDefault():I?m.current?.focus():b.current?.focus()}},"handleKeyDown");return T.addEventListener("keydown",O),()=>T.removeEventListener("keydown",O)}},[d,E]),M.jsxs(OO,{ref:h,role:"region","aria-label":s.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&M.jsx(Bp,{ref:m,onFocusFromOutsideViewport:l(()=>{const T=E({tabbingDirection:"forwards"});ap(T)},"onFocusFromOutsideViewport")}),M.jsx(Gh.Slot,{scope:o,children:M.jsx(be.ol,{tabIndex:-1,...c,ref:S})}),C&&M.jsx(Bp,{ref:b,onFocusFromOutsideViewport:l(()=>{const T=E({tabbingDirection:"backwards"});ap(T)},"onFocusFromOutsideViewport")})]})});zx.displayName=jx;var kx="ToastFocusProxy",Bp=g.forwardRef((e,r)=>{const{__scopeToast:o,onFocusFromOutsideViewport:i,...s}=e,c=cc(kx,o);return M.jsx(Gu,{tabIndex:0,...s,ref:r,style:{position:"fixed"},onFocus:l(f=>{const d=f.relatedTarget;!c.viewport?.contains(d)&&i()},"onFocus")})});Bp.displayName=kx;var Ll="Toast",zj="toast.swipeStart",kj="toast.swipeMove",Uj="toast.swipeCancel",Hj="toast.swipeEnd",Ux=g.forwardRef((e,r)=>{const{forceMount:o,open:i,defaultOpen:s,onOpenChange:c,...f}=e,[d,h]=Gn({prop:i,defaultProp:s??!0,onChange:c,caller:Ll});return M.jsx(wt,{present:o||d,children:M.jsx(Fj,{open:d,...f,ref:r,onClose:l(()=>h(!1),"onClose"),onPause:it(e.onPause),onResume:it(e.onResume),onSwipeStart:ie(e.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(e.onSwipeMove,m=>{const{x:b,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${b}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:ie(e.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ie(e.onSwipeEnd,m=>{const{x:b,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${b}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});Ux.displayName=Ll;var[Bj,Ij]=Px(Ll,{onClose(){}}),Fj=g.forwardRef((e,r)=>{const{__scopeToast:o,type:i="foreground",duration:s,open:c,onClose:f,onEscapeKeyDown:d,onPause:h,onResume:m,onSwipeStart:b,onSwipeMove:y,onSwipeCancel:S,onSwipeEnd:w,...C}=e,E=cc(Ll,o),[T,O]=g.useState(null),R=Oe(r,ne=>O(ne)),A=g.useRef(null),D=g.useRef(null),j=s||E.duration,I=g.useRef(0),U=g.useRef(j),Q=g.useRef(0),{onToastAdd:ee,onToastRemove:W}=E,oe=it(()=>{T?.contains(document.activeElement)&&E.viewport?.focus(),f()}),ue=g.useCallback(ne=>{!ne||ne===1/0||(window.clearTimeout(Q.current),I.current=new Date().getTime(),Q.current=window.setTimeout(oe,ne))},[oe]);g.useEffect(()=>{const ne=E.viewport;if(ne){const me=l(()=>{ue(U.current),m?.()},"handleResume"),z=l(()=>{const Y=new Date().getTime()-I.current;U.current=U.current-Y,window.clearTimeout(Q.current),h?.()},"handlePause");return ne.addEventListener(Up,z),ne.addEventListener(Hp,me),()=>{ne.removeEventListener(Up,z),ne.removeEventListener(Hp,me)}}},[E.viewport,j,h,m,ue]),g.useEffect(()=>{c&&!E.isClosePausedRef.current&&ue(j)},[c,j,E.isClosePausedRef,ue]),g.useEffect(()=>(ee(),()=>W()),[ee,W]);const ve=g.useMemo(()=>T?Gx(T):null,[T]);return E.viewport?M.jsxs(M.Fragment,{children:[ve&&M.jsx($j,{__scopeToast:o,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:ve}),M.jsx(Bj,{scope:o,onClose:oe,children:$n.createPortal(M.jsx(Gh.ItemSlot,{scope:o,children:M.jsx(RO,{asChild:!0,onEscapeKeyDown:ie(d,()=>{E.isFocusedToastEscapeKeyDownRef.current||oe(),E.isFocusedToastEscapeKeyDownRef.current=!1}),children:M.jsx(be.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":E.swipeDirection,...C,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ie(e.onKeyDown,ne=>{ne.key==="Escape"&&(d?.(ne.nativeEvent),ne.nativeEvent.defaultPrevented||(E.isFocusedToastEscapeKeyDownRef.current=!0,oe()))}),onPointerDown:ie(e.onPointerDown,ne=>{ne.button===0&&(A.current={x:ne.clientX,y:ne.clientY})}),onPointerMove:ie(e.onPointerMove,ne=>{if(!A.current)return;const me=ne.clientX-A.current.x,z=ne.clientY-A.current.y,Y=!!D.current,Z=["left","right"].includes(E.swipeDirection),J=["left","up"].includes(E.swipeDirection)?Math.min:Math.max,ye=Z?J(0,me):0,P=Z?0:J(0,z),q=ne.pointerType==="touch"?10:2,re={x:ye,y:P},se={originalEvent:ne,delta:re};Y?(D.current=re,lu(kj,y,se,{discrete:!1})):Bb(re,E.swipeDirection,q)?(D.current=re,lu(zj,b,se,{discrete:!1}),ne.target.setPointerCapture(ne.pointerId)):(Math.abs(me)>q||Math.abs(z)>q)&&(A.current=null)}),onPointerUp:ie(e.onPointerUp,ne=>{const me=D.current,z=ne.target;if(z.hasPointerCapture(ne.pointerId)&&z.releasePointerCapture(ne.pointerId),D.current=null,A.current=null,me){const Y=ne.currentTarget,Z={originalEvent:ne,delta:me};Bb(me,E.swipeDirection,E.swipeThreshold)?lu(Hj,w,Z,{discrete:!0}):lu(Uj,S,Z,{discrete:!0}),Y.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})})}),E.viewport)})]}):null}),$j=l(e=>{const{__scopeToast:r,children:o,...i}=e,s=cc(Ll,r),[c,f]=g.useState(!1),[d,h]=g.useState(!1);return Vj(()=>f(!0)),g.useEffect(()=>{const m=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(m)},[]),d?null:M.jsx(qa,{asChild:!0,children:M.jsx(Gu,{...i,children:c&&M.jsxs(M.Fragment,{children:[s.label," ",o]})})})},"ToastAnnounce"),qj="ToastTitle",Hx=g.forwardRef((e,r)=>{const{__scopeToast:o,...i}=e;return M.jsx(be.div,{...i,ref:r})});Hx.displayName=qj;var Gj="ToastDescription",Bx=g.forwardRef((e,r)=>{const{__scopeToast:o,...i}=e;return M.jsx(be.div,{...i,ref:r})});Bx.displayName=Gj;var Ix="ToastAction",Fx=g.forwardRef((e,r)=>{const{altText:o,...i}=e;return o.trim()?M.jsx(qx,{altText:o,asChild:!0,children:M.jsx(Vh,{...i,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ix}\`. Expected non-empty \`string\`.`),null)});Fx.displayName=Ix;var $x="ToastClose",Vh=g.forwardRef((e,r)=>{const{__scopeToast:o,...i}=e,s=Ij($x,o);return M.jsx(qx,{asChild:!0,children:M.jsx(be.button,{type:"button",...i,ref:r,onClick:ie(e.onClick,s.onClose)})})});Vh.displayName=$x;var qx=g.forwardRef((e,r)=>{const{__scopeToast:o,altText:i,...s}=e;return M.jsx(be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...s,ref:r})});function Gx(e){const r=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&r.push(i.textContent),Yj(i)){const s=i.ariaHidden||i.hidden||i.style.display==="none",c=i.dataset.radixToastAnnounceExclude==="";if(!s)if(c){const f=i.dataset.radixToastAnnounceAlt;f&&r.push(f)}else r.push(...Gx(i))}}),r}l(Gx,"getAnnounceTextContent");function lu(e,r,o,{discrete:i}){const s=o.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:o});r&&s.addEventListener(e,r,{once:!0}),i?$p(s,c):s.dispatchEvent(c)}l(lu,"handleAndDispatchCustomEvent");var Bb=l((e,r,o=0)=>{const i=Math.abs(e.x),s=Math.abs(e.y),c=i>s;return r==="left"||r==="right"?c&&i>o:!c&&s>o},"isDeltaInDirection");function Vj(e=()=>{}){const r=it(e);lt(()=>{let o=0,i=0;return o=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(i)}},[r])}l(Vj,"useNextFrame");function Yj(e){return e.nodeType===e.ELEMENT_NODE}l(Yj,"isHTMLElement");function Qj(e){const r=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l(i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}l(Qj,"getTabbableCandidates");function ap(e){const r=document.activeElement;return e.some(o=>o===r?!0:(o.focus(),document.activeElement!==r))}l(ap,"focusFirst");var E7=Lx,w7=zx,x7=Ux,C7=Hx,T7=Bx,R7=Fx,O7=Vh;const _7={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"};function Xe(e,r="Assertion error"){if(!e)throw Error(r)}l(Xe,"b");function Fa({group:e}){const{orientation:r,panels:o}=e;return o.reduce((i,s)=>(i+=r==="horizontal"?s.element.offsetWidth:s.element.offsetHeight,i),0)}l(Fa,"U");function Ip(e,r){return r.sort(e==="horizontal"?Kj:Xj)}l(Ip,"ce");function Kj(e,r){const o=e.element.offsetLeft-r.element.offsetLeft;return o!==0?o:e.element.offsetWidth-r.element.offsetWidth}l(Kj,"Qe");function Xj(e,r){const o=e.element.offsetTop-r.element.offsetTop;return o!==0?o:e.element.offsetHeight-r.element.offsetHeight}l(Xj,"et");function Vx(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}l(Vx,"Ie");function Yx(e,r){return{x:e.x>=r.left&&e.x<=r.right?0:Math.min(Math.abs(e.x-r.left),Math.abs(e.x-r.right)),y:e.y>=r.top&&e.y<=r.bottom?0:Math.min(Math.abs(e.y-r.top),Math.abs(e.y-r.bottom))}}l(Yx,"De");function Wj({orientation:e,rects:r,targetRect:o}){const i={x:o.x+o.width/2,y:o.y+o.height/2};let s,c=Number.MAX_VALUE;for(const f of r){const{x:d,y:h}=Yx(i,f),m=e==="horizontal"?d:h;m<c&&(c=m,s=f)}return Xe(s,"No rect found"),s}l(Wj,"tt");function Qx(e){const{element:r,orientation:o,panels:i,separators:s}=e,c=Ip(o,Array.from(r.children).filter(Vx).map(b=>({element:b}))).map(({element:b})=>b),f=[];let d=!1,h,m=[];for(const b of c)if(b.hasAttribute("data-panel")){const y=i.find(S=>S.element===b);if(y){if(h){const S=h.element.getBoundingClientRect(),w=b.getBoundingClientRect();let C;if(d){const E=o==="horizontal"?new DOMRect(S.right,S.top,0,S.height):new DOMRect(S.left,S.bottom,S.width,0),T=o==="horizontal"?new DOMRect(w.left,w.top,0,w.height):new DOMRect(w.left,w.top,w.width,0);switch(m.length){case 0:{C=[E,T];break}case 1:{const O=m[0],R=Wj({orientation:o,rects:[S,w],targetRect:O.element.getBoundingClientRect()});C=[O,R===S?T:E];break}default:{C=m;break}}}else m.length?C=m:C=[o==="horizontal"?new DOMRect(S.right,w.top,w.left-S.right,w.height):new DOMRect(w.left,S.bottom,w.width,w.top-S.bottom)];for(const E of C)f.push({group:e,groupSize:Fa({group:e}),panels:[h,y],separator:"width"in E?void 0:E,rect:"width"in E?E:E.element.getBoundingClientRect()})}d=!1,h=y,m=[]}}else if(b.hasAttribute("data-separator")){const y=s.find(S=>S.element===b);y?m.push(y):(h=void 0,m=[])}else d=!0;return f}l(Qx,"Oe");function Zj(e,r){const o=getComputedStyle(e),i=parseFloat(o.fontSize);return r*i}l(Zj,"nt");function Jj(e,r){const o=getComputedStyle(e.ownerDocument.body),i=parseFloat(o.fontSize);return r*i}l(Jj,"ot");function e8(e){return e/100*window.innerHeight}l(e8,"rt");function t8(e){return e/100*window.innerWidth}l(t8,"it");function n8(e){switch(typeof e){case"number":return[e,"px"];case"string":{const r=parseFloat(e);return e.endsWith("%")?[r,"%"]:e.endsWith("px")?[r,"px"]:e.endsWith("rem")?[r,"rem"]:e.endsWith("em")?[r,"em"]:e.endsWith("vh")?[r,"vh"]:e.endsWith("vw")?[r,"vw"]:[r,"%"]}}}l(n8,"st");function su({groupSize:e,panelElement:r,styleProp:o}){let i;const[s,c]=n8(o);switch(c){case"%":{i=s/100*e;break}case"px":{i=s;break}case"rem":{i=Jj(r,s);break}case"em":{i=Zj(r,s);break}case"vh":{i=e8(s);break}case"vw":{i=t8(s);break}}return i}l(su,"oe");function On(e){return parseFloat(e.toFixed(3))}l(On,"D");function Ib(e){const{panels:r}=e,o=Fa({group:e});return o===0?r.map(i=>({collapsedSize:0,collapsible:i.panelConstraints.collapsible===!0,defaultSize:void 0,minSize:0,maxSize:100,panelId:i.id})):r.map(i=>{const{element:s,panelConstraints:c}=i;let f=0;if(c.collapsedSize!==void 0){const b=su({groupSize:o,panelElement:s,styleProp:c.collapsedSize});f=On(b/o*100)}let d;if(c.defaultSize!==void 0){const b=su({groupSize:o,panelElement:s,styleProp:c.defaultSize});d=On(b/o*100)}let h=0;if(c.minSize!==void 0){const b=su({groupSize:o,panelElement:s,styleProp:c.minSize});h=On(b/o*100)}let m=100;if(c.maxSize!==void 0){const b=su({groupSize:o,panelElement:s,styleProp:c.maxSize});m=On(b/o*100)}return{collapsedSize:f,collapsible:c.collapsible===!0,defaultSize:d,minSize:h,maxSize:m,panelId:i.id}})}l(Ib,"ye");class r8{static{l(this,"at")}#e={};addListener(r,o){const i=this.#e[r];return i===void 0?this.#e[r]=[o]:i.includes(o)||i.push(o),()=>{this.removeListener(r,o)}}emit(r,o){const i=this.#e[r];if(i!==void 0)if(i.length===1)i[0].call(null,o);else{let s=!1,c=null;const f=Array.from(i);for(let d=0;d<f.length;d++){const h=f[d];try{h.call(null,o)}catch(m){c===null&&(s=!0,c=m)}}if(s)throw c}}removeAllListeners(){this.#e={}}removeListener(r,o){const i=this.#e[r];if(i!==void 0){const s=i.indexOf(o);s>=0&&i.splice(s,1)}}}function At(e,r,o=0){return Math.abs(On(e)-On(r))<=o}l(At,"C");let fn={cursorFlags:0,interactionState:{state:"inactive"},mountedGroups:new Map};const Oo=new r8;function vn(){return fn}l(vn,"I");function Bt(e){const r=typeof e=="function"?e(fn):e;if(fn===r)return fn;const o=fn;return fn={...fn,...r},r.cursorFlags!==void 0&&Oo.emit("cursorFlagsChange",fn.cursorFlags),r.interactionState!==void 0&&Oo.emit("interactionStateChange",fn.interactionState),r.mountedGroups!==void 0&&(fn.mountedGroups.forEach((i,s)=>{i.derivedPanelConstraints.forEach(c=>{if(c.collapsible){const{layout:f}=o.mountedGroups.get(s)??{};if(f){const d=At(c.collapsedSize,i.layout[c.panelId]),h=At(c.collapsedSize,f[c.panelId]);d&&!h&&(s.inMemoryLastExpandedPanelSizes[c.panelId]=f[c.panelId])}}})}),Oo.emit("mountedGroupsChange",fn.mountedGroups)),fn}l(Bt,"E");function o8(e,r){if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!=r[o])return!1;return!0}l(o8,"lt");function ml(e,r){return At(e,r)?0:e>r?1:-1}l(ml,"J");function Na({panelConstraints:e,size:r}){const{collapsedSize:o=0,collapsible:i,maxSize:s=100,minSize:c=0}=e;if(ml(r,c)<0)if(i){const f=(o+c)/2;ml(r,f)<0?r=o:r=c}else r=c;return r=Math.min(s,r),r=On(r),r}l(Na,"V");function vl({delta:e,initialLayout:r,panelConstraints:o,pivotIndices:i,prevLayout:s,trigger:c}){if(At(e,0))return r;const f=Object.values(r),d=Object.values(s),h=[...f],[m,b]=i;Xe(m!=null,"Invalid first pivot index"),Xe(b!=null,"Invalid second pivot index");let y=0;if(c==="keyboard"){{const C=e<0?b:m,E=o[C];Xe(E,`Panel constraints not found for index ${C}`);const{collapsedSize:T=0,collapsible:O,minSize:R=0}=E;if(O){const A=f[C];if(Xe(A!=null,`Previous layout not found for panel index ${C}`),At(A,T)){const D=R-A;ml(D,Math.abs(e))>0&&(e=e<0?0-D:D)}}}{const C=e<0?m:b,E=o[C];Xe(E,`No panel constraints found for index ${C}`);const{collapsedSize:T=0,collapsible:O,minSize:R=0}=E;if(O){const A=f[C];if(Xe(A!=null,`Previous layout not found for panel index ${C}`),At(A,R)){const D=A-T;ml(D,Math.abs(e))>0&&(e=e<0?0-D:D)}}}}{const C=e<0?1:-1;let E=e<0?b:m,T=0;for(;;){const R=f[E];Xe(R!=null,`Previous layout not found for panel index ${E}`);const A=Na({panelConstraints:o[E],size:100})-R;if(T+=A,E+=C,E<0||E>=o.length)break}const O=Math.min(Math.abs(e),Math.abs(T));e=e<0?0-O:O}{let C=e<0?m:b;for(;C>=0&&C<o.length;){const E=Math.abs(e)-Math.abs(y),T=f[C];Xe(T!=null,`Previous layout not found for panel index ${C}`);const O=T-E,R=Na({panelConstraints:o[C],size:O});if(!At(T,R)&&(y+=T-R,h[C]=R,y.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?C--:C++}}if(o8(d,h))return s;{const C=e<0?b:m,E=f[C];Xe(E!=null,`Previous layout not found for panel index ${C}`);const T=E+y,O=Na({panelConstraints:o[C],size:T});if(h[C]=O,!At(O,T)){let R=T-O,A=e<0?b:m;for(;A>=0&&A<o.length;){const D=h[A];Xe(D!=null,`Previous layout not found for panel index ${A}`);const j=D+R,I=Na({panelConstraints:o[A],size:j});if(At(D,I)||(R-=I-D,h[A]=I),At(R,0))break;e>0?A--:A++}}}const S=Object.values(h).reduce((C,E)=>E+C,0);if(!At(S,100,.1))return s;const w=Object.keys(s);return h.reduce((C,E,T)=>(C[w[T]]=E,C),{})}l(vl,"Z");function yu(e){const{mountedGroups:r}=vn();for(const[o]of r)if(o.separators.some(i=>i.element===e))return o;throw Error("Could not find parent Group for separator element")}l(yu,"ie");function jo(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(r[o]===void 0||ml(e[o],r[o])!==0)return!1;return!0}l(jo,"_");function zo({layout:e,panelConstraints:r}){const o=[...Object.values(e)],i=o.reduce((f,d)=>f+d,0);if(o.length!==r.length)throw Error(`Invalid ${r.length} panel layout: ${o.map(f=>`${f}%`).join(", ")}`);if(!At(i,100)&&o.length>0)for(let f=0;f<r.length;f++){const d=o[f];Xe(d!=null,`No layout data found for index ${f}`);const h=100/i*d;o[f]=h}let s=0;for(let f=0;f<r.length;f++){const d=o[f];Xe(d!=null,`No layout data found for index ${f}`);const h=Na({panelConstraints:r[f],size:d});d!=h&&(s+=d-h,o[f]=h)}if(!At(s,0))for(let f=0;f<r.length;f++){const d=o[f];Xe(d!=null,`No layout data found for index ${f}`);const h=d+s,m=Na({panelConstraints:r[f],size:h});if(d!==m&&(s-=m-d,o[f]=m,At(s,0)))break}const c=Object.keys(e);return o.reduce((f,d,h)=>(f[c[h]]=d,f),{})}l(zo,"A");function Kx({groupId:e}){const r=l(()=>{const{mountedGroups:o}=vn();for(const[i,s]of o)if(i.id===e)return{group:i,...s};throw Error(`Could not find Group with id "${e}"`)},"t");return{getLayout(){const{defaultLayoutDeferred:o,layout:i}=r();return o?{}:i},setLayout(o){const{defaultLayoutDeferred:i,derivedPanelConstraints:s,group:c,layout:f,separatorToPanels:d}=r(),h=zo({layout:o,panelConstraints:s});return i?f:(jo(f,h)||Bt(m=>({mountedGroups:new Map(m.mountedGroups).set(c,{defaultLayoutDeferred:i,derivedPanelConstraints:s,layout:h,separatorToPanels:d})})),h)}}}l(Kx,"Te");function Xx(e){const{mountedGroups:r}=vn(),o=r.get(e);return Xe(o,`Mounted Group ${e.id} not found`),o}l(Xx,"Ne");function Co(e,r){const o=yu(e),i=Xx(o),s=o.separators.find(b=>b.element===e);Xe(s,"Matching separator not found");const c=i.separatorToPanels.get(s);Xe(c,"Matching panels not found");const f=c.map(b=>o.panels.indexOf(b)),d=Kx({groupId:o.id}).getLayout(),h=vl({delta:r,initialLayout:d,panelConstraints:i.derivedPanelConstraints,pivotIndices:f,prevLayout:d,trigger:"keyboard"}),m=zo({layout:h,panelConstraints:i.derivedPanelConstraints});jo(d,m)||Bt(b=>({mountedGroups:new Map(b.mountedGroups).set(o,{defaultLayoutDeferred:i.defaultLayoutDeferred,derivedPanelConstraints:i.derivedPanelConstraints,layout:m,separatorToPanels:i.separatorToPanels})}))}l(Co,"T");function Fb(e){if(e.defaultPrevented)return;const r=e.currentTarget,o=yu(r);if(!o.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),o.orientation==="vertical"&&Co(r,5);break}case"ArrowLeft":{e.preventDefault(),o.orientation==="horizontal"&&Co(r,-5);break}case"ArrowRight":{e.preventDefault(),o.orientation==="horizontal"&&Co(r,5);break}case"ArrowUp":{e.preventDefault(),o.orientation==="vertical"&&Co(r,-5);break}case"End":{e.preventDefault(),Co(r,100);break}case"Enter":{e.preventDefault();const i=yu(r),{derivedPanelConstraints:s,layout:c,separatorToPanels:f}=Xx(i),d=i.separators.find(y=>y.element===r);Xe(d,"Matching separator not found");const h=f.get(d);Xe(h,"Matching panels not found");const m=h[0],b=s.find(y=>y.panelId===m.id);if(Xe(b,"Panel metadata not found"),b.collapsible){const y=c[m.id],S=b.collapsedSize===y?i.inMemoryLastExpandedPanelSizes[m.id]??b.minSize:b.collapsedSize;Co(r,S-y)}break}case"F6":{e.preventDefault();const i=yu(r).separators.map(f=>f.element),s=Array.from(i).findIndex(f=>f===e.currentTarget);Xe(s!==null,"Index not found");const c=e.shiftKey?s>0?s-1:i.length-1:s+1<i.length?s+1:0;i[c].focus();break}case"Home":{e.preventDefault(),Co(r,-100);break}}}l(Fb,"ge");const a8=l(e=>e,"ut"),ip=l(()=>{},"le"),Wx=1,Zx=2,Jx=4,eC=8,$b={coarse:10,precise:5};function i8(e,r,o){let i,s={x:1/0,y:1/0};for(const c of r){const f=Yx(o,c.rect);switch(e){case"horizontal":{f.x<=s.x&&(i=c,s=f);break}case"vertical":{f.y<=s.y&&(i=c,s=f);break}}}return i?{distance:s,hitRegion:i}:void 0}l(i8,"ct");let uu;function l8(){return uu===void 0&&(typeof matchMedia=="function"?uu=!!matchMedia("(pointer:coarse)").matches:uu=!1),uu}l(l8,"ft");function s8(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}l(s8,"dt");function u8(e,r){if(e===r)throw new Error("Cannot compare node with itself");const o={a:Vb(e),b:Vb(r)};let i;for(;o.a.at(-1)===o.b.at(-1);)e=o.a.pop(),r=o.b.pop(),i=e;Xe(i,"Stacking order can only be calculated for elements with a common ancestor");const s={a:Gb(qb(o.a)),b:Gb(qb(o.b))};if(s.a===s.b){const c=i.childNodes,f={a:o.a.at(-1),b:o.b.at(-1)};let d=c.length;for(;d--;){const h=c[d];if(h===f.a)return 1;if(h===f.b)return-1}}return Math.sign(s.a-s.b)}l(u8,"pt");const c8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function f8(e){const r=getComputedStyle(tC(e)??e).display;return r==="flex"||r==="inline-flex"}l(f8,"mt");function d8(e){const r=getComputedStyle(e);return!!(r.position==="fixed"||r.zIndex!=="auto"&&(r.position!=="static"||f8(e))||+r.opacity<1||"transform"in r&&r.transform!=="none"||"webkitTransform"in r&&r.webkitTransform!=="none"||"mixBlendMode"in r&&r.mixBlendMode!=="normal"||"filter"in r&&r.filter!=="none"||"webkitFilter"in r&&r.webkitFilter!=="none"||"isolation"in r&&r.isolation==="isolate"||c8.test(r.willChange)||r.webkitOverflowScrolling==="touch")}l(d8,"yt");function qb(e){let r=e.length;for(;r--;){const o=e[r];if(Xe(o,"Missing node"),d8(o))return o}return null}l(qb,"ve");function Gb(e){return e&&Number(getComputedStyle(e).zIndex)||0}l(Gb,"xe");function Vb(e){const r=[];for(;e;)r.push(e),e=tC(e);return r}l(Vb,"ze");function tC(e){const{parentNode:r}=e;return s8(r)?r.host:r}l(tC,"je");function p8(e,r){return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y}l(p8,"gt");function h8({groupElement:e,hitRegion:r,pointerEventTarget:o}){if(!Vx(o)||o.contains(e)||e.contains(o))return!0;if(u8(o,e)>0){let i=o;for(;i;){if(i.contains(e))return!0;if(p8(i.getBoundingClientRect(),r))return!1;i=i.parentElement}}return!0}l(h8,"St");function nC(e,r){const o=[];return r.forEach((i,s)=>{if(s.disabled)return;const c=l8()?$b.coarse:$b.precise,f=Qx(s),d=i8(s.orientation,f,{x:e.clientX,y:e.clientY});d&&d.distance.x<=c&&d.distance.y<=c&&h8({groupElement:s.element,hitRegion:d.hitRegion.rect,pointerEventTarget:e.target})&&o.push(d.hitRegion)}),o}l(nC,"He");function Yb(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{mountedGroups:r}=vn(),o=nC(e,r),i=new Set,s=new Set,c=new Set,f=new Map;let d=!1;o.forEach(h=>{i.add(h.group),h.panels.forEach(b=>{s.add(b)}),h.separator&&(c.add(h.separator),d||(d=!0,h.separator.element.focus()));const m=r.get(h.group);m&&f.set(h.group,m.layout)}),Bt({interactionState:{hitRegions:o,initialLayoutMap:f,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}}),o.length&&e.preventDefault()}l(Yb,"be");function m8({cursorFlags:e,groups:r,state:o}){let i=0,s=0;switch(o){case"active":case"hover":r.forEach(c=>{if(!c.disableCursor)switch(c.orientation){case"horizontal":{i++;break}case"vertical":{s++;break}}})}if(i===0&&s===0)return null;switch(o){case"active":{const c=(e&Wx)!==0,f=(e&Zx)!==0,d=(e&Jx)!==0,h=(e&eC)!==0;if(e){if(c)return d?"se-resize":h?"ne-resize":"e-resize";if(f)return d?"sw-resize":h?"nw-resize":"w-resize";if(d)return"s-resize";if(h)return"n-resize"}break}}return i>0&&s>0?"move":i>0?"ew-resize":"ns-resize"}l(m8,"vt");const Qb=new WeakMap;function Yh(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:r,styleSheet:o}=Qb.get(e)??{};o===void 0&&(o=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets=[o]);const{cursorFlags:i,interactionState:s}=vn();switch(s.state){case"active":case"hover":{const c=m8({cursorFlags:i,groups:s.hitRegions.map(d=>d.group),state:s.state}),f=`*{cursor: ${c} !important; ${s.state==="active"?"touch-action: none;":""} }`;if(r===f)return;r=f,c?o.cssRules.length===0?o.insertRule(f):o.replaceSync(f):o.cssRules.length===1&&o.deleteRule(0);break}case"inactive":{r=void 0,o.cssRules.length===1&&o.deleteRule(0);break}}Qb.set(e,{prevStyle:r,styleSheet:o})}l(Yh,"fe");function rC({document:e,event:r,hitRegions:o,initialLayoutMap:i,mountedGroups:s,pointerDownAtPoint:c}){let f=0;const d=new Map(s);o.forEach(h=>{const{group:m,groupSize:b}=h,{disableCursor:y,orientation:S,panels:w}=m;let C=0;c?S==="horizontal"?C=(r.clientX-c.x)/b*100:C=(r.clientY-c.y)/b*100:S==="horizontal"?C=r.clientX<0?-100:100:C=r.clientY<0?-100:100;const E=i.get(m),{defaultLayoutDeferred:T,derivedPanelConstraints:O,layout:R,separatorToPanels:A}=s.get(m)??{defaultLayoutDeferred:!1};if(O&&E&&R&&A){const D=vl({delta:C,initialLayout:E,panelConstraints:O,pivotIndices:h.panels.map(j=>w.indexOf(j)),prevLayout:R,trigger:"mouse-or-touch"});if(jo(D,R)){if(C!==0&&!y)switch(S){case"horizontal":{f|=C<0?Wx:Zx;break}case"vertical":{f|=C<0?Jx:eC;break}}}else{d.set(h.group,{defaultLayoutDeferred:T,derivedPanelConstraints:O,layout:D,separatorToPanels:A});const j=h.group.panels.map(({id:I})=>I).join(",");h.group.inMemoryLayouts[j]=D}}}),Bt({cursorFlags:f,mountedGroups:d}),Yh(e)}l(rC,"Ve");function Kb(e){const{interactionState:r,mountedGroups:o}=vn();r.state==="active"&&rC({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:o})}l(Kb,"Le");function Xb(e){if(e.defaultPrevented)return;const{interactionState:r,mountedGroups:o}=vn();switch(r.state){case"active":{if(e.buttons===0){Bt(i=>i.interactionState.state==="inactive"?i:{cursorFlags:0,interactionState:{state:"inactive"}}),Bt(i=>({mountedGroups:new Map(i.mountedGroups)}));return}rC({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:o,pointerDownAtPoint:r.pointerDownAtPoint});break}default:{const i=nC(e,o);i.length===0?r.state!=="inactive"&&Bt({interactionState:{state:"inactive"}}):Bt({interactionState:{hitRegions:i,state:"hover"}}),Yh(e.currentTarget);break}}}l(Xb,"Pe");function Wb(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{interactionState:r}=vn();r.state==="active"&&(Bt({cursorFlags:0,interactionState:{state:"inactive"}}),r.hitRegions.length>0&&(Yh(e.currentTarget),Bt(o=>({mountedGroups:new Map(o.mountedGroups)})),e.preventDefault()))}l(Wb,"Ce");function Zb(e){let r=0,o=0;const i={};for(const c of e)if(c.defaultSize!==void 0){r++;const f=On(c.defaultSize);o+=f,i[c.panelId]=f}else i[c.panelId]=void 0;const s=e.length-r;if(s!==0){const c=On((100-o)/s);for(const f of e)f.defaultSize===void 0&&(i[f.panelId]=c)}return i}l(Zb,"Re");function v8(e,r,o){if(!o[0])return;const i=e.panels.find(h=>h.element===r);if(!i||!i.onResize)return;const s=Fa({group:e}),c=e.orientation==="horizontal"?i.element.offsetWidth:i.element.offsetHeight,f=i.mutableValues.prevSize,d={asPercentage:On(c/s*100),inPixels:c};i.mutableValues.prevSize=d,i.onResize(d,i.id,f)}l(v8,"xt");function y8(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(e[o]!==r[o])return!1;return!0}l(y8,"zt");function g8(e,r){const o=e.map(s=>s.id),i=Object.keys(r);if(o.length!==i.length)return!1;for(const s of o)if(!i.includes(s))return!1;return!0}l(g8,"bt");const Ma=new Map;function b8(e){let r=!0;Xe(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const o=e.element.ownerDocument.defaultView.ResizeObserver,i=new Set,s=new Set,c=new o(C=>{for(const E of C){const{borderBoxSize:T,target:O}=E;if(O===e.element){if(r){if(Fa({group:e})===0)return;Bt(R=>{const A=R.mountedGroups.get(e);if(A){const D=Ib(e),j=A.defaultLayoutDeferred?Zb(D):A.layout,I=zo({layout:j,panelConstraints:D});return!A.defaultLayoutDeferred&&jo(j,I)&&y8(A.derivedPanelConstraints,D)?R:{mountedGroups:new Map(R.mountedGroups).set(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:D,layout:I,separatorToPanels:A.separatorToPanels})}}return R})}}else v8(e,O,T)}});c.observe(e.element),e.panels.forEach(C=>{Xe(!i.has(C.id),`Panel ids must be unique; id "${C.id}" was used more than once`),i.add(C.id),C.onResize&&c.observe(C.element)});const f=Fa({group:e}),d=Ib(e),h=e.panels.map(({id:C})=>C).join(",");let m=e.defaultLayout;m&&(g8(e.panels,m)||(m=void 0));const b=e.inMemoryLayouts[h]??m??Zb(d),y=zo({layout:b,panelConstraints:d}),S=Qx(e),w=e.element.ownerDocument;return Bt(C=>{const E=new Map;return Ma.set(w,(Ma.get(w)??0)+1),S.forEach(T=>{T.separator&&E.set(T.separator,T.panels)}),{mountedGroups:new Map(C.mountedGroups).set(e,{defaultLayoutDeferred:f===0,derivedPanelConstraints:d,layout:y,separatorToPanels:E})}}),e.separators.forEach(C=>{Xe(!s.has(C.id),`Separator ids must be unique; id "${C.id}" was used more than once`),s.add(C.id),C.element.addEventListener("keydown",Fb)}),Ma.get(w)===1&&(w.addEventListener("pointerdown",Yb,!0),w.addEventListener("pointerleave",Kb),w.addEventListener("pointermove",Xb),w.addEventListener("pointerup",Wb,!0)),function(){r=!1,Ma.set(w,Math.max(0,(Ma.get(w)??0)-1)),Bt(C=>{const E=new Map(C.mountedGroups);return E.delete(e),{mountedGroups:E}}),e.separators.forEach(C=>{C.element.removeEventListener("keydown",Fb)}),Ma.get(w)||(w.removeEventListener("pointerdown",Yb,!0),w.removeEventListener("pointerleave",Kb),w.removeEventListener("pointermove",Xb),w.removeEventListener("pointerup",Wb,!0)),c.disconnect()}}l(b8,"wt");function oC(){const[e,r]=g.useState({}),o=g.useCallback(()=>r({}),[]);return[e,o]}l(oC,"Ue");function Qh(e){const r=g.useId();return`${e??r}`}l(Qh,"de");const Io=typeof window<"u"?g.useLayoutEffect:g.useEffect;function ol(e){const r=g.useRef(e);return Io(()=>{r.current=e},[e]),g.useCallback((...o)=>r.current?.(...o),[r])}l(ol,"X");function Kh(...e){return ol(r=>{e.forEach(o=>{if(o)switch(typeof o){case"function":{o(r);break}case"object":{o.current=r;break}}})})}l(Kh,"pe");function S8(e){const r=g.useRef({...e});return Io(()=>{for(const o in e)r.current[o]=e[o]},[e]),r.current}l(S8,"Lt");const aC=g.createContext(null);function E8(e,r){const o=g.useRef({getLayout:l(()=>({}),"getLayout"),setLayout:a8});g.useImperativeHandle(r,()=>o.current,[]),Io(()=>{Object.assign(o.current,Kx({groupId:e}))})}l(E8,"Pt");function w8({children:e,className:r,defaultLayout:o,disableCursor:i,disabled:s,elementRef:c,groupRef:f,id:d,onLayoutChange:h,onLayoutChanged:m,orientation:b="horizontal",style:y,...S}){const w=g.useRef({onLayoutChange:{},onLayoutChanged:{}}),C=ol(W=>{jo(w.current.onLayoutChange,W)||(w.current.onLayoutChange=W,h?.(W))}),E=ol(W=>{jo(w.current.onLayoutChanged,W)||(w.current.onLayoutChanged=W,m?.(W))}),T=Qh(d),O=g.useRef(null),[R,A]=oC(),D=g.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],separators:[]}),j=Kh(O,c);E8(T,f);const I=ol((W,oe)=>{const{interactionState:ue,mountedGroups:ve}=vn();for(const ne of ve.keys())if(ne.id===W){const me=ve.get(ne);if(me){let z=!1;return ue.state==="active"&&(z=ue.hitRegions.some(Y=>Y.group===ne)),{flexGrow:me.layout[oe]??1,pointerEvents:z?"none":void 0}}}return{flexGrow:o?.[oe]??1}}),U=g.useMemo(()=>({getPanelStyles:I,id:T,orientation:b,registerPanel:l(W=>{const oe=D.current;return oe.panels=Ip(b,[...oe.panels,W]),A(),()=>{oe.panels=oe.panels.filter(ue=>ue!==W),A()}},"registerPanel"),registerSeparator:l(W=>{const oe=D.current;return oe.separators=Ip(b,[...oe.separators,W]),A(),()=>{oe.separators=oe.separators.filter(ue=>ue!==W),A()}},"registerSeparator")}),[I,T,A,b]),Q=S8({defaultLayout:o,disableCursor:i}),ee=g.useRef(null);return Io(()=>{const W=O.current;if(W===null)return;const oe=D.current,ue={defaultLayout:Q.defaultLayout,disableCursor:!!Q.disableCursor,disabled:!!s,element:W,id:T,inMemoryLastExpandedPanelSizes:D.current.lastExpandedPanelSizes,inMemoryLayouts:D.current.layouts,orientation:b,panels:oe.panels,separators:oe.separators};ee.current=ue;const ve=b8(ue),ne=vn().mountedGroups.get(ue);if(ne){const{defaultLayoutDeferred:Y,derivedPanelConstraints:Z,layout:J}=ne;!Y&&Z.length>0&&(C(J),E(J),oe.panels.forEach(ye=>{ye.scheduleUpdate()}))}const me=Oo.addListener("interactionStateChange",()=>{oe.panels.forEach(Y=>{Y.scheduleUpdate()})}),z=Oo.addListener("mountedGroupsChange",Y=>{const Z=Y.get(ue);if(Z){const{defaultLayoutDeferred:J,derivedPanelConstraints:ye,layout:P}=Z;if(J||ye.length===0)return;const{interactionState:q}=vn(),re=q.state!=="active";C(P),re&&E(P),oe.panels.forEach(se=>{se.scheduleUpdate()})}});return()=>{ee.current=null,ve(),me(),z()}},[s,T,E,C,b,R,Q]),g.useEffect(()=>{const W=ee.current;W&&(W.defaultLayout=o,W.disableCursor=!!i)}),M.jsx(aC.Provider,{value:U,children:M.jsx("div",{...S,"aria-orientation":b,className:r,"data-group":!0,"data-testid":T,id:T,ref:j,style:{height:"100%",width:"100%",overflow:"hidden",...y,display:"flex",flexDirection:b==="horizontal"?"row":"column",flexWrap:"nowrap"},children:e})})}l(w8,"Ct");w8.displayName="Group";function Xh(){const e=g.useContext(aC);return Xe(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}l(Xh,"he");function x8({groupId:e,panelId:r}){const o=l(()=>{const{mountedGroups:d}=vn();for(const[h,{defaultLayoutDeferred:m,derivedPanelConstraints:b,layout:y,separatorToPanels:S}]of d)if(h.id===e)return{defaultLayoutDeferred:m,derivedPanelConstraints:b,group:h,layout:y,separatorToPanels:S};throw Error(`Group ${e} not found`)},"n"),i=l(()=>{const d=o().derivedPanelConstraints.find(h=>h.panelId===r);if(d!==void 0)return d;throw Error(`Panel constraints not found for Panel ${r}`)},"o"),s=l(()=>{const d=o().group.panels.find(h=>h.id===r);if(d!==void 0)return d;throw Error(`Layout not found for Panel ${r}`)},"i"),c=l(()=>{const d=o().layout[r];if(d!==void 0)return d;throw Error(`Layout not found for Panel ${r}`)},"a"),f=l(d=>{const h=c();if(d===h)return;const{defaultLayoutDeferred:m,derivedPanelConstraints:b,group:y,layout:S,separatorToPanels:w}=o(),C=y.panels.findIndex(R=>R.id===r),E=C===y.panels.length-1,T=vl({delta:E?h-d:d-h,initialLayout:S,panelConstraints:b,pivotIndices:E?[C-1,C]:[C,C+1],prevLayout:S,trigger:"imperative-api"}),O=zo({layout:T,panelConstraints:b});jo(S,O)||Bt(R=>({mountedGroups:new Map(R.mountedGroups).set(y,{defaultLayoutDeferred:m,derivedPanelConstraints:b,layout:O,separatorToPanels:w})}))},"l");return{collapse:l(()=>{const{collapsible:d,collapsedSize:h}=i(),{mutableValues:m}=s(),b=c();d&&b!==h&&(m.expandToSize=b,f(h))},"collapse"),expand:l(()=>{const{collapsible:d,collapsedSize:h,minSize:m}=i(),{mutableValues:b}=s(),y=c();if(d&&y===h){let S=b.expandToSize??m;S===0&&(S=1),f(S)}},"expand"),getSize:l(()=>{const{group:d}=o(),h=c(),{element:m}=s(),b=d.orientation==="horizontal"?m.offsetWidth:m.offsetHeight;return{asPercentage:h,inPixels:b}},"getSize"),isCollapsed:l(()=>{const{collapsible:d,collapsedSize:h}=i(),m=c();return d&&At(h,m)},"isCollapsed"),resize:l(d=>{if(c()!==d){let h;switch(typeof d){case"number":{const{group:m}=o(),b=Fa({group:m});h=On(d/b*100);break}case"string":{h=parseFloat(d);break}}f(h)}},"resize")}}l(x8,"Mt");function C8(e,r){const{id:o}=Xh(),i=g.useRef({collapse:ip,expand:ip,getSize:l(()=>({asPercentage:0,inPixels:0}),"getSize"),isCollapsed:l(()=>!1,"isCollapsed"),resize:ip});g.useImperativeHandle(r,()=>i.current,[]),Io(()=>{Object.assign(i.current,x8({groupId:o,panelId:e}))})}l(C8,"Et");function T8({children:e,className:r,collapsedSize:o="0%",collapsible:i=!1,defaultSize:s,elementRef:c,id:f,maxSize:d="100%",minSize:h="0%",onResize:m,panelRef:b,style:y,...S}){const w=!!f,C=Qh(f),E=g.useRef(null),T=Kh(E,c),[,O]=oC(),{getPanelStyles:R,id:A,registerPanel:D}=Xh(),j=m!==null,I=ol((Q,ee,W)=>{m?.(Q,f,W)});Io(()=>{const Q=E.current;if(Q!==null)return D({element:Q,id:C,idIsStable:w,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?I:void 0,panelConstraints:{collapsedSize:o,collapsible:i,defaultSize:s,maxSize:d,minSize:h},scheduleUpdate:O})},[o,i,s,O,j,C,w,d,h,I,D]),C8(C,b);const U=R(A,C);return M.jsx("div",{...S,"data-panel":!0,"data-testid":C,id:C,ref:T,style:{...R8,flexBasis:0,flexShrink:1,overflow:"hidden",...U},children:M.jsx("div",{className:r,style:{width:"100%",height:"100%",...y},children:e})})}l(T8,"kt");T8.displayName="Panel";const R8={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function O8({layout:e,panelConstraints:r,panelId:o,panelIndex:i}){let s,c;const f=e[o],d=r.find(h=>h.panelId===o);if(d){const h=d.maxSize,m=c=d.collapsible?d.collapsedSize:d.minSize,b=[i,i+1];c=zo({layout:vl({delta:m-f,initialLayout:e,panelConstraints:r,pivotIndices:b,prevLayout:e,trigger:"keyboard"}),panelConstraints:r})[o],s=zo({layout:vl({delta:h-f,initialLayout:e,panelConstraints:r,pivotIndices:b,prevLayout:e,trigger:"keyboard"}),panelConstraints:r})[o]}return{valueControls:o,valueMax:s,valueMin:c,valueNow:f}}l(O8,"It");function _8({children:e,className:r,elementRef:o,id:i,style:s,...c}){const f=Qh(i),[d,h]=g.useState({}),[m,b]=g.useState("inactive"),y=g.useRef(null),S=Kh(y,o),{id:w,orientation:C,registerSeparator:E}=Xh(),T=C==="horizontal"?"vertical":"horizontal";return Io(()=>{const O=y.current;if(O!==null){const R={element:O,id:f},A=E(R),D=Oo.addListener("interactionStateChange",I=>{b(I.state!=="inactive"&&I.hitRegions.some(U=>U.separator===R)?I.state:"inactive")}),j=Oo.addListener("mountedGroupsChange",I=>{I.forEach(({derivedPanelConstraints:U,layout:Q,separatorToPanels:ee},W)=>{if(W.id===w){const oe=ee.get(R);if(oe){const ue=oe[0],ve=W.panels.indexOf(ue);h(O8({layout:Q,panelConstraints:U,panelId:ue.id,panelIndex:ve}))}}})});return()=>{D(),j(),A()}}},[w,f,E]),M.jsx("div",{...c,"aria-controls":d.valueControls,"aria-orientation":T,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:r,"data-separator":m,"data-testid":f,id:f,ref:S,role:"separator",style:{flexBasis:"auto",...s,flexGrow:0,flexShrink:0},tabIndex:0})}l(_8,"Dt");_8.displayName="Separator";var fc="Collapsible",[A8]=It(fc),[M8,Wh]=A8(fc),iC=g.forwardRef((e,r)=>{const{__scopeCollapsible:o,open:i,defaultOpen:s,disabled:c,onOpenChange:f,...d}=e,[h,m]=Gn({prop:i,defaultProp:s??!1,onChange:f,caller:fc});return M.jsx(M8,{scope:o,disabled:c,contentId:hn(),open:h,onOpenToggle:g.useCallback(()=>m(b=>!b),[m]),children:M.jsx(be.div,{"data-state":Jh(h),"data-disabled":c?"":void 0,...d,ref:r})})});iC.displayName=fc;var lC="CollapsibleTrigger",sC=g.forwardRef((e,r)=>{const{__scopeCollapsible:o,...i}=e,s=Wh(lC,o);return M.jsx(be.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Jh(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:r,onClick:ie(e.onClick,s.onOpenToggle)})});sC.displayName=lC;var Zh="CollapsibleContent",uC=g.forwardRef((e,r)=>{const{forceMount:o,...i}=e,s=Wh(Zh,e.__scopeCollapsible);return M.jsx(wt,{present:o||s.open,children:l(({present:c})=>M.jsx(N8,{...i,ref:r,present:c}),"children")})});uC.displayName=Zh;var N8=g.forwardRef((e,r)=>{const{__scopeCollapsible:o,present:i,children:s,...c}=e,f=Wh(Zh,o),[d,h]=g.useState(i),m=g.useRef(null),b=Oe(r,m),y=g.useRef(0),S=y.current,w=g.useRef(0),C=w.current,E=f.open||d,T=g.useRef(E),O=g.useRef(void 0);return g.useEffect(()=>{const R=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(R)},[]),lt(()=>{const R=m.current;if(R){O.current=O.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const A=R.getBoundingClientRect();y.current=A.height,w.current=A.width,T.current||(R.style.transitionDuration=O.current.transitionDuration,R.style.animationName=O.current.animationName),h(i)}},[f.open,i]),M.jsx(be.div,{"data-state":Jh(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!E,...c,ref:b,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:E&&s})});function Jh(e){return e?"open":"closed"}l(Jh,"getState$1");var A7=iC,M7=sC,N7=uC,xn,Jb;function D8(){if(Jb)return xn;Jb=1;var e=xn&&xn.__extends||(function(){var y=l(function(S,w){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,E){C.__proto__=E}||function(C,E){for(var T in E)E.hasOwnProperty(T)&&(C[T]=E[T])},y(S,w)},"extendStatics");return function(S,w){y(S,w);function C(){this.constructor=S}l(C,"__"),S.prototype=w===null?Object.create(w):(C.prototype=w.prototype,new C)}})(),r=xn&&xn.__assign||function(){return r=Object.assign||function(y){for(var S,w=1,C=arguments.length;w<C;w++){S=arguments[w];for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(y[E]=S[E])}return y},r.apply(this,arguments)},o=xn&&xn.__rest||function(y,S){var w={};for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&S.indexOf(C)<0&&(w[C]=y[C]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,C=Object.getOwnPropertySymbols(y);E<C.length;E++)S.indexOf(C[E])<0&&(w[C[E]]=y[C[E]]);return w},i=xn&&xn.__importStar||function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var w in y)Object.hasOwnProperty.call(y,w)&&(S[w]=y[w]);return S.default=y,S},s=i(ex()),c=i(yl());function f(y,S,w){var C=w[y+"Style"]||"",E=S&&S[y]||"";return C?C+";"+E:E}l(f,"getStyleValue");function d(y,S,w){var C=f(y,S,w);return C?' style="'+C+'"':""}l(d,"getStyle");var h={'"':"&quot;","'":"&apos;","&":"&amp;",">":"&gt;","<":"&lt"};function m(y){return y&&y.replace(/<|>|&|"|'/g,function(S){return h[S]})}l(m,"xss");var b=(function(y){e(S,y);function S(){return y!==null&&y.apply(this,arguments)||this}return l(S,"JSONPretty"),S.prototype.render=function(){var w=this.props,C=w.json,E=w.data,T=w.replacer,O=w.space,R=w.themeClassName,A=w.theme,D=w.onJSONPrettyError,j=w.onError,I=w.silent,U=w.mainStyle,Q=w.keyStyle,ee=w.valueStyle,W=w.stringStyle,oe=w.booleanStyle,ue=w.errorStyle,ve=o(w,["json","data","replacer","space","themeClassName","theme","onJSONPrettyError","onError","silent","mainStyle","keyStyle","valueStyle","stringStyle","booleanStyle","errorStyle"]),ne={mainStyle:U,keyStyle:Q,valueStyle:ee,stringStyle:W,booleanStyle:oe,errorStyle:ue},me=E||C;if(typeof me=="string")try{me=JSON.parse(me)}catch(z){return I||console.warn("[react-json-pretty]: "+z.message),D&&D(z),!D&&j&&(j(z),console.warn("JSONPretty#onError is deprecated, please use JSONPretty#onJSONPrettyError instead")),c.createElement("div",r({},ve,{dangerouslySetInnerHTML:{__html:'<pre class="__json-pretty-error__"'+d("error",A,ne)+">"+m(me)+"</pre>"}}))}return c.createElement("div",r({},ve,{dangerouslySetInnerHTML:{__html:'<pre class="'+R+'"'+d("main",A,ne)+">"+this._pretty(A,me,T,+O,ne)+"</pre>"}}))},S.prototype._pretty=function(w,C,E,T,O){var R=/^( *)("[^"]+": )?("[^"]*"|[\w.+-]*)?([,[{]|\[\s*\],?|\{\s*\},?)?$/mg,A=JSON.stringify(C,typeof E=="function"?E:null,isNaN(T)?2:T);return A&&A.replace(/&/g,"&amp;").replace(/\\"([^,])/g,"\\&quot;$1").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(R,this._replace.bind(null,w,O))},S.prototype._replace=function(w,C,E,T,O,R,A){var D="</span>",j='<span class="__json-key__"'+d("key",w,C)+">",I='<span class="__json-value__"'+d("value",w,C)+">",U='<span class="__json-string__"'+d("string",w,C)+">",Q='<span class="__json-boolean__"'+d("boolean",w,C)+">",ee=T||"";return O&&(ee=ee+'"'+j+O.replace(/^"|":\s$/g,"")+D+'": '),R&&(R==="true"||R==="false"?ee=ee+Q+R+D:ee=ee+(R[0]==='"'?U:I)+R+D),ee+(A||"")},S.propTypes={data:s.any,json:s.any,replacer:s.func,silent:s.bool,space:s.oneOfType([s.number,s.string]),theme:s.object,themeClassName:s.string,onJSONPrettyError:s.func},S.defaultProps={data:"",json:"",silent:!0,space:2,themeClassName:"__json-pretty__"},S})(c.Component);return xn=b,xn}l(D8,"requireJSONPretty");var P8=D8();const D7=Jr(P8);var dc="Switch",[L8]=It(dc),[j8,z8]=L8(dc),cC=g.forwardRef((e,r)=>{const{__scopeSwitch:o,name:i,checked:s,defaultChecked:c,required:f,disabled:d,value:h="on",onCheckedChange:m,form:b,...y}=e,[S,w]=g.useState(null),C=Oe(r,A=>w(A)),E=g.useRef(!1),T=S?b||!!S.closest("form"):!0,[O,R]=Gn({prop:s,defaultProp:c??!1,onChange:m,caller:dc});return M.jsxs(j8,{scope:o,checked:O,disabled:d,children:[M.jsx(be.button,{type:"button",role:"switch","aria-checked":O,"aria-required":f,"data-state":hC(O),"data-disabled":d?"":void 0,disabled:d,value:h,...y,ref:C,onClick:ie(e.onClick,A=>{R(D=>!D),T&&(E.current=A.isPropagationStopped(),E.current||A.stopPropagation())})}),T&&M.jsx(pC,{control:S,bubbles:!E.current,name:i,value:h,checked:O,required:f,disabled:d,form:b,style:{transform:"translateX(-100%)"}})]})});cC.displayName=dc;var fC="SwitchThumb",dC=g.forwardRef((e,r)=>{const{__scopeSwitch:o,...i}=e,s=z8(fC,o);return M.jsx(be.span,{"data-state":hC(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:r})});dC.displayName=fC;var k8="SwitchBubbleInput",pC=g.forwardRef(({__scopeSwitch:e,control:r,checked:o,bubbles:i=!0,...s},c)=>{const f=g.useRef(null),d=Oe(f,c),h=pE(o),m=V1(r);return g.useEffect(()=>{const b=f.current;if(!b)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==o&&w){const C=new Event("click",{bubbles:i});w.call(b,o),b.dispatchEvent(C)}},[h,o,i]),M.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...s,tabIndex:-1,ref:d,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});pC.displayName=k8;function hC(e){return e?"checked":"unchecked"}l(hC,"getState");var P7=cC,L7=dC;export{u7 as $,W9 as A,G9 as B,q_ as C,V_ as D,K9 as E,rz as F,q9 as G,X9 as H,B9 as I,R9 as J,J9 as K,L9 as L,e7 as M,t7 as N,$_ as O,F_ as P,n7 as Q,F8 as R,I8 as S,I_ as T,o7 as U,H9 as V,a7 as W,m9 as X,r7 as Y,i7 as Z,l7 as _,B_ as a,w7 as a$,d7 as a0,p7 as a1,f7 as a2,c7 as a3,s7 as a4,iz as a5,tz as a6,nz as a7,Ez as a8,q8 as a9,g7 as aA,b7 as aB,T9 as aC,O9 as aD,eo as aE,K8 as aF,l9 as aG,mz as aH,Qz as aI,oP as aJ,Cz as aK,t9 as aL,bz as aM,Xz as aN,_z as aO,Jz as aP,dz as aQ,kz as aR,S7 as aS,je as aT,Fe as aU,R7 as aV,E7 as aW,x7 as aX,C7 as aY,T7 as aZ,O7 as a_,Q8 as aa,zz as ab,cz as ac,u9 as ad,Wz as ae,Zz as af,Pz as ag,f9 as ah,Lz as ai,h7 as aj,m7 as ak,v7 as al,k4 as am,$4 as an,Oz as ao,Az as ap,Tz as aq,Rz as ar,Gz as as,s9 as at,pz as au,gz as av,BS as aw,vh as ax,lz as ay,y7 as az,D1 as b,B8 as b$,Kz as b0,Yz as b1,p9 as b2,Sz as b3,a9 as b4,W8 as b5,wz as b6,_7 as b7,T8 as b8,w8 as b9,Y8 as bA,i9 as bB,o9 as bC,V8 as bD,yz as bE,hz as bF,xe as bG,Hz as bH,e9 as bI,qz as bJ,G8 as bK,Fz as bL,xz as bM,$z as bN,r9 as bO,_9 as bP,P7 as bQ,L7 as bR,YS as bS,Nz as bT,N9 as bU,C9 as bV,x9 as bW,M9 as bX,Uz as bY,A9 as bZ,D3 as b_,_8 as ba,Mz as bb,A7 as bc,sC as bd,uC as be,fz as bf,v9 as bg,X8 as bh,Dz as bi,$8 as bj,c9 as bk,Vz as bl,d9 as bm,uz as bn,n9 as bo,sz as bp,Bz as bq,Z8 as br,jz as bs,h9 as bt,az as bu,oz as bv,M7 as bw,N7 as bx,D7 as by,vz as bz,G_ as c,y9 as d,g9 as e,b9 as f,Jr as g,S9 as h,E9 as i,M as j,Iz as k,D9 as l,P9 as m,j9 as n,z9 as o,k9 as p,U9 as q,g as r,ez as s,I9 as t,F9 as u,$9 as v,V9 as w,Q9 as x,J8 as y,Y9 as z};
88
- //# sourceMappingURL=react-vendor-CSPnBj6z.js.map