pitroom 0.6.10 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/app.js CHANGED
@@ -1,20 +1,20 @@
1
- var m3=Object.create;var Rb=Object.defineProperty;var p3=Object.getOwnPropertyDescriptor;var h3=Object.getOwnPropertyNames;var g3=Object.getPrototypeOf,x3=Object.prototype.hasOwnProperty;var go=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Aa=(e,t)=>{for(var a in t)Rb(e,a,{get:t[a],enumerable:!0})},y3=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of h3(t))!x3.call(e,r)&&r!==a&&Rb(e,r,{get:()=>t[r],enumerable:!(o=p3(t,r))||o.enumerable});return e};var R=(e,t,a)=>(a=e!=null?m3(g3(e)):{},y3(t||!e||!e.__esModule?Rb(a,"default",{value:e,enumerable:!0}):a,e));var Vw=go(Oe=>{"use strict";var wb=Symbol.for("react.transitional.element"),S3=Symbol.for("react.portal"),v3=Symbol.for("react.fragment"),b3=Symbol.for("react.strict_mode"),C3=Symbol.for("react.profiler"),L3=Symbol.for("react.consumer"),R3=Symbol.for("react.context"),I3=Symbol.for("react.forward_ref"),T3=Symbol.for("react.suspense"),w3=Symbol.for("react.memo"),Ew=Symbol.for("react.lazy"),E3=Symbol.for("react.activity"),A3=Symbol.for("react.view_transition"),Rw=Symbol.iterator;function P3(e){return e===null||typeof e!="object"?null:(e=Rw&&e[Rw]||e["@@iterator"],typeof e=="function"?e:null)}var Aw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pw=Object.assign,Dw={};function Xu(e,t,a){this.props=e,this.context=t,this.refs=Dw,this.updater=a||Aw}Xu.prototype.isReactComponent={};Xu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Xu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mw(){}Mw.prototype=Xu.prototype;function Eb(e,t,a){this.props=e,this.context=t,this.refs=Dw,this.updater=a||Aw}var Ab=Eb.prototype=new Mw;Ab.constructor=Eb;Pw(Ab,Xu.prototype);Ab.isPureReactComponent=!0;var Iw=Array.isArray;function Tb(){}var bt={H:null,A:null,T:null,S:null},Ow=Object.prototype.hasOwnProperty;function Pb(e,t,a){var o=a.ref;return{$$typeof:wb,type:e,key:t,ref:o!==void 0?o:null,props:a}}function D3(e,t){return Pb(e.type,t,e.props)}function Db(e){return typeof e=="object"&&e!==null&&e.$$typeof===wb}function M3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Tw=/\/+/g;function Ib(e,t){return typeof e=="object"&&e!==null&&e.key!=null?M3(""+e.key):t.toString(36)}function O3(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Tb,Tb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ju(e,t,a,o,r){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case wb:case S3:s=!0;break;case Ew:return s=e._init,ju(s(e._payload),t,a,o,r)}}if(s)return r=r(e),s=o===""?"."+Ib(e,0):o,Iw(r)?(a="",s!=null&&(a=s.replace(Tw,"$&/")+"/"),ju(r,t,a,"",function(u){return u})):r!=null&&(Db(r)&&(r=D3(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Tw,"$&/")+"/")+s)),t.push(r)),1;s=0;var i=o===""?".":o+":";if(Iw(e))for(var l=0;l<e.length;l++)o=e[l],n=i+Ib(o,l),s+=ju(o,t,a,n,r);else if(l=P3(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=i+Ib(o,l++),s+=ju(o,t,a,n,r);else if(n==="object"){if(typeof e.then=="function")return ju(O3(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function Sh(e,t,a){if(e==null)return e;var o=[],r=0;return ju(e,o,"","",function(n){return t.call(a,n,r++)}),o}function k3(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o))},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o))}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var ww=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function kw(e){var t=bt.T,a={};a.types=t!==null?t.types:null,bt.T=a;try{var o=e(),r=bt.S;r!==null&&r(a,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Tb,ww)}catch(n){ww(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),bt.T=t}}function Nw(e){var t=bt.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else kw(Nw.bind(null,e))}var N3={map:Sh,forEach:function(e,t,a){Sh(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Sh(e,function(){t++}),t},toArray:function(e){return Sh(e,function(t){return t})||[]},only:function(e){if(!Db(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oe.Activity=E3;Oe.Children=N3;Oe.Component=Xu;Oe.Fragment=v3;Oe.Profiler=C3;Oe.PureComponent=Eb;Oe.StrictMode=b3;Oe.Suspense=T3;Oe.ViewTransition=A3;Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=bt;Oe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return bt.H.useMemoCache(e)}};Oe.addTransitionType=Nw;Oe.cache=function(e){return function(){return e.apply(null,arguments)}};Oe.cacheSignal=function(){return null};Oe.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Pw({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!Ow.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var s=Array(n),i=0;i<n;i++)s[i]=arguments[i+2];o.children=s}return Pb(e.type,r,o)};Oe.createContext=function(e){return e={$$typeof:R3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:L3,_context:e},e};Oe.createElement=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)Ow.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=a;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return Pb(e,n,r)};Oe.createRef=function(){return{current:null}};Oe.forwardRef=function(e){return{$$typeof:I3,render:e}};Oe.isValidElement=Db;Oe.lazy=function(e){return{$$typeof:Ew,_payload:{_status:-1,_result:e},_init:k3}};Oe.memo=function(e,t){return{$$typeof:w3,type:e,compare:t===void 0?null:t}};Oe.startTransition=kw;Oe.unstable_useCacheRefresh=function(){return bt.H.useCacheRefresh()};Oe.use=function(e){return bt.H.use(e)};Oe.useActionState=function(e,t,a){return bt.H.useActionState(e,t,a)};Oe.useCallback=function(e,t){return bt.H.useCallback(e,t)};Oe.useContext=function(e){return bt.H.useContext(e)};Oe.useDebugValue=function(){};Oe.useDeferredValue=function(e,t){return bt.H.useDeferredValue(e,t)};Oe.useEffect=function(e,t){return bt.H.useEffect(e,t)};Oe.useEffectEvent=function(e){return bt.H.useEffectEvent(e)};Oe.useId=function(){return bt.H.useId()};Oe.useImperativeHandle=function(e,t,a){return bt.H.useImperativeHandle(e,t,a)};Oe.useInsertionEffect=function(e,t){return bt.H.useInsertionEffect(e,t)};Oe.useLayoutEffect=function(e,t){return bt.H.useLayoutEffect(e,t)};Oe.useMemo=function(e,t){return bt.H.useMemo(e,t)};Oe.useOptimistic=function(e,t){return bt.H.useOptimistic(e,t)};Oe.useReducer=function(e,t,a){return bt.H.useReducer(e,t,a)};Oe.useRef=function(e){return bt.H.useRef(e)};Oe.useState=function(e){return bt.H.useState(e)};Oe.useSyncExternalStore=function(e,t,a){return bt.H.useSyncExternalStore(e,t,a)};Oe.useTransition=function(){return bt.H.useTransition()};Oe.version="19.3.0"});var D=go((AW,Bw)=>{"use strict";Bw.exports=Vw()});var Yw=go(Mt=>{"use strict";function Nb(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<vh(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Yr(e){return e.length===0?null:e[0]}function Ch(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var s=2*(o+1)-1,i=e[s],l=s+1,u=e[l];if(0>vh(i,a))l<r&&0>vh(u,i)?(e[o]=u,e[l]=a,o=l):(e[o]=i,e[s]=a,o=s);else if(l<r&&0>vh(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function vh(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Mt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Fw=performance,Mt.unstable_now=function(){return Fw.now()}):(Mb=Date,zw=Mb.now(),Mt.unstable_now=function(){return Mb.now()-zw});var Fw,Mb,zw,Nn=[],bs=[],V3=1,tr=null,_a=3,Vb=!1,xd=!1,yd=!1,Bb=!1,Uw=typeof setTimeout=="function"?setTimeout:null,qw=typeof clearTimeout=="function"?clearTimeout:null,Hw=typeof setImmediate<"u"?setImmediate:null;function bh(e){for(var t=Yr(bs);t!==null;){if(t.callback===null)Ch(bs);else if(t.startTime<=e)Ch(bs),t.sortIndex=t.expirationTime,Nb(Nn,t);else break;t=Yr(bs)}}function Fb(e){if(yd=!1,bh(e),!xd)if(Yr(Nn)!==null)xd=!0,Wu||(Wu=!0,Yu());else{var t=Yr(bs);t!==null&&zb(Fb,t.startTime-e)}}var Wu=!1,Sd=-1,Gw=5,jw=-1;function Xw(){return Bb?!0:!(Mt.unstable_now()-jw<Gw)}function Ob(){if(Bb=!1,Wu){var e=Mt.unstable_now();jw=e;var t=!0;try{e:{xd=!1,yd&&(yd=!1,qw(Sd),Sd=-1),Vb=!0;var a=_a;try{t:{for(bh(e),tr=Yr(Nn);tr!==null&&!(tr.expirationTime>e&&Xw());){var o=tr.callback;if(typeof o=="function"){tr.callback=null,_a=tr.priorityLevel;var r=o(tr.expirationTime<=e);if(e=Mt.unstable_now(),typeof r=="function"){tr.callback=r,bh(e),t=!0;break t}tr===Yr(Nn)&&Ch(Nn),bh(e)}else Ch(Nn);tr=Yr(Nn)}if(tr!==null)t=!0;else{var n=Yr(bs);n!==null&&zb(Fb,n.startTime-e),t=!1}}break e}finally{tr=null,_a=a,Vb=!1}t=void 0}}finally{t?Yu():Wu=!1}}}var Yu;typeof Hw=="function"?Yu=function(){Hw(Ob)}:typeof MessageChannel<"u"?(kb=new MessageChannel,_w=kb.port2,kb.port1.onmessage=Ob,Yu=function(){_w.postMessage(null)}):Yu=function(){Uw(Ob,0)};var kb,_w;function zb(e,t){Sd=Uw(function(){e(Mt.unstable_now())},t)}Mt.unstable_IdlePriority=5;Mt.unstable_ImmediatePriority=1;Mt.unstable_LowPriority=4;Mt.unstable_NormalPriority=3;Mt.unstable_Profiling=null;Mt.unstable_UserBlockingPriority=2;Mt.unstable_cancelCallback=function(e){e.callback=null};Mt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Gw=0<e?Math.floor(1e3/e):5};Mt.unstable_getCurrentPriorityLevel=function(){return _a};Mt.unstable_next=function(e){switch(_a){case 1:case 2:case 3:var t=3;break;default:t=_a}var a=_a;_a=t;try{return e()}finally{_a=a}};Mt.unstable_requestPaint=function(){Bb=!0};Mt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=_a;_a=e;try{return t()}finally{_a=a}};Mt.unstable_scheduleCallback=function(e,t,a){var o=Mt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:V3++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,Nb(bs,e),Yr(Nn)===null&&e===Yr(bs)&&(yd?(qw(Sd),Sd=-1):yd=!0,zb(Fb,a-o))):(e.sortIndex=r,Nb(Nn,e),xd||Vb||(xd=!0,Wu||(Wu=!0,Yu()))),e};Mt.unstable_shouldYield=Xw;Mt.unstable_wrapCallback=function(e){var t=_a;return function(){var a=_a;_a=t;try{return e.apply(this,arguments)}finally{_a=a}}}});var Kw=go((DW,Ww)=>{"use strict";Ww.exports=Yw()});var Jw=go(Ua=>{"use strict";var B3=D();function Qw(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Cs(){}var eo={d:{f:Cs,r:function(){throw Error(Qw(522))},D:Cs,C:Cs,L:Cs,m:Cs,X:Cs,S:Cs,M:Cs},p:0,findDOMNode:null},F3=Symbol.for("react.portal"),z3=Symbol.for("react.recoverable"),Zw=Symbol.for("react.optimistic_key");function H3(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F3,key:o==null?null:o===Zw?Zw:""+o,children:e,containerInfo:t,implementation:a}}var vd=B3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Lh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=eo;Ua.browser=function(e){return{$$typeof:z3,_reason:e}};Ua.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Qw(299));return H3(e,t,null,a)};Ua.flushSync=function(e){var t=vd.T,a=eo.p;try{if(vd.T=null,eo.p=2,e)return e()}finally{vd.T=t,eo.p=a,eo.d.f()}};Ua.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,eo.d.C(e,t))};Ua.prefetchDNS=function(e){typeof e=="string"&&eo.d.D(e)};Ua.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,o=Lh(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?eo.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:n}):a==="script"&&eo.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ua.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Lh(t.as,t.crossOrigin);eo.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&eo.d.M(e)};Ua.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,o=Lh(a,t.crossOrigin);eo.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ua.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Lh(t.as,t.crossOrigin);eo.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else eo.d.m(e)};Ua.requestFormReset=function(e){eo.d.r(e)};Ua.unstable_batchedUpdates=function(e,t){return e(t)};Ua.useFormState=function(e,t,a){return vd.H.useFormState(e,t,a)};Ua.useFormStatus=function(){return vd.H.useHostTransitionStatus()};Ua.version="19.3.0"});var Wr=go((OW,eE)=>{"use strict";function $w(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($w)}catch(e){console.error(e)}}$w(),eE.exports=Jw()});var HD=go(rx=>{"use strict";var ua=Kw(),zA=D(),_3=Wr();function Z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function HA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function im(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function _A(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function UA(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function tE(e){if(im(e)!==e)throw Error(Z(188))}function U3(e){var t=e.alternate;if(!t){if(t=im(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return tE(r),e;if(n===o)return tE(r),t;n=n.sibling}throw Error(Z(188))}if(a.return!==o.return)a=r,o=n;else{for(var s=!1,i=r.child;i;){if(i===a){s=!0,a=r,o=n;break}if(i===o){s=!0,o=r,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,o=r;break}if(i===o){s=!0,o=n,a=r;break}i=i.sibling}if(!s)throw Error(Z(189))}}if(a.alternate!==o)throw Error(Z(190))}if(a.tag!==3)throw Error(Z(188));return a.stateNode.current===a?e:t}function qA(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=qA(e),t!==null)return t;e=e.sibling}return null}function Co(e,t,a,o,r,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,r,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Co(e.child,t,a,o,r,n))return!0;e=e.sibling}return!1}function Rl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function aE(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function GA(e){var t=[null,null],a=Rl(e);return a===null||jA(t,e,a.child,{foundSelf:!1}),t}function jA(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&jA(e,t,a.child,o))return!0;a=a.sibling}return!1}function la(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(Z(559))}}var tc=null,xC=null;function q3(e,t,a){return e===a?!0:e===t?(tc=e,!0):!1}function G3(e,t,a){return e===a?(xC=e,!1):e===t?(xC!==null&&(tc=e),!0):!1}function oE(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function yC(e,t,a){for(var o=0,r=e;r;r=a(r))o++;r=0;for(var n=t;n;n=a(n))r++;for(;0<o-r;)e=a(e),o--;for(;0<r-o;)t=a(t),r--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var St=Object.assign,j3=Symbol.for("react.element"),Rh=Symbol.for("react.transitional.element"),wd=Symbol.for("react.portal"),ac=Symbol.for("react.fragment"),XA=Symbol.for("react.strict_mode"),SC=Symbol.for("react.profiler"),YA=Symbol.for("react.consumer"),en=Symbol.for("react.context"),EL=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),bC=Symbol.for("react.suspense_list"),AL=Symbol.for("react.memo"),Ts=Symbol.for("react.lazy");Symbol.for("react.scope");var CC=Symbol.for("react.activity"),X3=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Y3=Symbol.for("react.memo_cache_sentinel"),LC=Symbol.for("react.view_transition"),W3=Symbol.for("react.recoverable"),rE=Symbol.iterator;function bd(e){return e===null||typeof e!="object"?null:(e=rE&&e[rE]||e["@@iterator"],typeof e=="function"?e:null)}var K3=Symbol.for("react.client.reference");function RC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K3?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ac:return"Fragment";case SC:return"Profiler";case XA:return"StrictMode";case vC:return"Suspense";case bC:return"SuspenseList";case CC:return"Activity";case LC:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case wd:return"Portal";case en:return e.displayName||"Context";case YA:return(e._context.displayName||"Context")+".Consumer";case EL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case AL:return t=e.displayName||null,t!==null?t:RC(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return RC(e(t))}catch{}}return null}var Ed=Array.isArray,Ae=zA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=_3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fl={pending:!1,data:null,method:null,action:null},IC=[],oc=-1;function ln(e){return{current:e}}function Oa(e){0>oc||(e.current=IC[oc],IC[oc]=null,oc--)}function Rt(e,t){oc++,IC[oc]=e.current,e.current=t}var rn=ln(null),jd=ln(null),Ns=ln(null),cg=ln(null);function fg(e,t){switch(Rt(Ns,t),Rt(jd,e),Rt(rn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yA(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yA(t),e=hD(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oa(rn),Rt(rn,e)}function Lc(){Oa(rn),Oa(jd),Oa(Ns)}function TC(e){var t=e.memoizedState;t!==null&&(Oc._currentValue=t.memoizedState,Rt(cg,e)),t=rn.current;var a=hD(t,e.type);t!==a&&(Rt(jd,e),Rt(rn,a))}function dg(e){jd.current===e&&(Oa(rn),Oa(jd)),cg.current===e&&(Oa(cg),Oc._currentValue=fl)}var Hb,nE;function Rs(e){if(Hb===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Hb=t&&t[1]||"",nE=-1<a.stack.indexOf(`
1
+ var pU=Object.create;var Yv=Object.defineProperty;var hU=Object.getOwnPropertyDescriptor;var gU=Object.getOwnPropertyNames;var xU=Object.getPrototypeOf,yU=Object.prototype.hasOwnProperty;var mo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qa=(e,t)=>{for(var a in t)Yv(e,a,{get:t[a],enumerable:!0})},SU=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gU(t))!yU.call(e,r)&&r!==a&&Yv(e,r,{get:()=>t[r],enumerable:!(o=hU(t,r))||o.enumerable});return e};var I=(e,t,a)=>(a=e!=null?pU(xU(e)):{},SU(t||!e||!e.__esModule?Yv(a,"default",{value:e,enumerable:!0}):a,e));var aw=mo(De=>{"use strict";var Zv=Symbol.for("react.transitional.element"),vU=Symbol.for("react.portal"),bU=Symbol.for("react.fragment"),CU=Symbol.for("react.strict_mode"),LU=Symbol.for("react.profiler"),RU=Symbol.for("react.consumer"),IU=Symbol.for("react.context"),TU=Symbol.for("react.forward_ref"),wU=Symbol.for("react.suspense"),EU=Symbol.for("react.memo"),WT=Symbol.for("react.lazy"),AU=Symbol.for("react.activity"),MU=Symbol.for("react.view_transition"),GT=Symbol.iterator;function PU(e){return e===null||typeof e!="object"?null:(e=GT&&e[GT]||e["@@iterator"],typeof e=="function"?e:null)}var KT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ZT=Object.assign,QT={};function zu(e,t,a){this.props=e,this.context=t,this.refs=QT,this.updater=a||KT}zu.prototype.isReactComponent={};zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JT(){}JT.prototype=zu.prototype;function Qv(e,t,a){this.props=e,this.context=t,this.refs=QT,this.updater=a||KT}var Jv=Qv.prototype=new JT;Jv.constructor=Qv;ZT(Jv,zu.prototype);Jv.isPureReactComponent=!0;var jT=Array.isArray;function Kv(){}var Ct={H:null,A:null,T:null,S:null},$T=Object.prototype.hasOwnProperty;function $v(e,t,a){var o=a.ref;return{$$typeof:Zv,type:e,key:t,ref:o!==void 0?o:null,props:a}}function DU(e,t){return $v(e.type,t,e.props)}function eb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zv}function OU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var XT=/\/+/g;function Wv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?OU(""+e.key):t.toString(36)}function kU(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Kv,Kv):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fu(e,t,a,o,r){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(n){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Zv:case vU:i=!0;break;case WT:return i=e._init,Fu(i(e._payload),t,a,o,r)}}if(i)return r=r(e),i=o===""?"."+Wv(e,0):o,jT(r)?(a="",i!=null&&(a=i.replace(XT,"$&/")+"/"),Fu(r,t,a,"",function(u){return u})):r!=null&&(eb(r)&&(r=DU(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(XT,"$&/")+"/")+i)),t.push(r)),1;i=0;var s=o===""?".":o+":";if(jT(e))for(var l=0;l<e.length;l++)o=e[l],n=s+Wv(o,l),i+=Fu(o,t,a,n,r);else if(l=PU(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=s+Wv(o,l++),i+=Fu(o,t,a,n,r);else if(n==="object"){if(typeof e.then=="function")return Fu(kU(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function sh(e,t,a){if(e==null)return e;var o=[],r=0;return Fu(e,o,"","",function(n){return t.call(a,n,r++)}),o}function NU(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o))},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o))}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var YT=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ew(e){var t=Ct.T,a={};a.types=t!==null?t.types:null,Ct.T=a;try{var o=e(),r=Ct.S;r!==null&&r(a,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Kv,YT)}catch(n){YT(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),Ct.T=t}}function tw(e){var t=Ct.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else ew(tw.bind(null,e))}var VU={map:sh,forEach:function(e,t,a){sh(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return sh(e,function(){t++}),t},toArray:function(e){return sh(e,function(t){return t})||[]},only:function(e){if(!eb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};De.Activity=AU;De.Children=VU;De.Component=zu;De.Fragment=bU;De.Profiler=LU;De.PureComponent=Qv;De.StrictMode=CU;De.Suspense=wU;De.ViewTransition=MU;De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ct;De.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ct.H.useMemoCache(e)}};De.addTransitionType=tw;De.cache=function(e){return function(){return e.apply(null,arguments)}};De.cacheSignal=function(){return null};De.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=ZT({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!$T.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var i=Array(n),s=0;s<n;s++)i[s]=arguments[s+2];o.children=i}return $v(e.type,r,o)};De.createContext=function(e){return e={$$typeof:IU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:RU,_context:e},e};De.createElement=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)$T.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)r[o]===void 0&&(r[o]=i[o]);return $v(e,n,r)};De.createRef=function(){return{current:null}};De.forwardRef=function(e){return{$$typeof:TU,render:e}};De.isValidElement=eb;De.lazy=function(e){return{$$typeof:WT,_payload:{_status:-1,_result:e},_init:NU}};De.memo=function(e,t){return{$$typeof:EU,type:e,compare:t===void 0?null:t}};De.startTransition=ew;De.unstable_useCacheRefresh=function(){return Ct.H.useCacheRefresh()};De.use=function(e){return Ct.H.use(e)};De.useActionState=function(e,t,a){return Ct.H.useActionState(e,t,a)};De.useCallback=function(e,t){return Ct.H.useCallback(e,t)};De.useContext=function(e){return Ct.H.useContext(e)};De.useDebugValue=function(){};De.useDeferredValue=function(e,t){return Ct.H.useDeferredValue(e,t)};De.useEffect=function(e,t){return Ct.H.useEffect(e,t)};De.useEffectEvent=function(e){return Ct.H.useEffectEvent(e)};De.useId=function(){return Ct.H.useId()};De.useImperativeHandle=function(e,t,a){return Ct.H.useImperativeHandle(e,t,a)};De.useInsertionEffect=function(e,t){return Ct.H.useInsertionEffect(e,t)};De.useLayoutEffect=function(e,t){return Ct.H.useLayoutEffect(e,t)};De.useMemo=function(e,t){return Ct.H.useMemo(e,t)};De.useOptimistic=function(e,t){return Ct.H.useOptimistic(e,t)};De.useReducer=function(e,t,a){return Ct.H.useReducer(e,t,a)};De.useRef=function(e){return Ct.H.useRef(e)};De.useState=function(e){return Ct.H.useState(e)};De.useSyncExternalStore=function(e,t,a){return Ct.H.useSyncExternalStore(e,t,a)};De.useTransition=function(){return Ct.H.useTransition()};De.version="19.3.0"});var k=mo((IY,ow)=>{"use strict";ow.exports=aw()});var mw=mo(Dt=>{"use strict";function rb(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<lh(r,t))e[o]=t,e[a]=r,a=o;else break e}}function qr(e){return e.length===0?null:e[0]}function ch(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var i=2*(o+1)-1,s=e[i],l=i+1,u=e[l];if(0>lh(s,a))l<r&&0>lh(u,s)?(e[o]=u,e[l]=a,o=l):(e[o]=s,e[i]=a,o=i);else if(l<r&&0>lh(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function lh(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Dt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(rw=performance,Dt.unstable_now=function(){return rw.now()}):(tb=Date,nw=tb.now(),Dt.unstable_now=function(){return tb.now()-nw});var rw,tb,nw,Mn=[],yi=[],BU=1,Jo=null,Fa=3,nb=!1,cd=!1,fd=!1,ib=!1,lw=typeof setTimeout=="function"?setTimeout:null,uw=typeof clearTimeout=="function"?clearTimeout:null,iw=typeof setImmediate<"u"?setImmediate:null;function uh(e){for(var t=qr(yi);t!==null;){if(t.callback===null)ch(yi);else if(t.startTime<=e)ch(yi),t.sortIndex=t.expirationTime,rb(Mn,t);else break;t=qr(yi)}}function sb(e){if(fd=!1,uh(e),!cd)if(qr(Mn)!==null)cd=!0,_u||(_u=!0,Hu());else{var t=qr(yi);t!==null&&lb(sb,t.startTime-e)}}var _u=!1,dd=-1,cw=5,fw=-1;function dw(){return ib?!0:!(Dt.unstable_now()-fw<cw)}function ab(){if(ib=!1,_u){var e=Dt.unstable_now();fw=e;var t=!0;try{e:{cd=!1,fd&&(fd=!1,uw(dd),dd=-1),nb=!0;var a=Fa;try{t:{for(uh(e),Jo=qr(Mn);Jo!==null&&!(Jo.expirationTime>e&&dw());){var o=Jo.callback;if(typeof o=="function"){Jo.callback=null,Fa=Jo.priorityLevel;var r=o(Jo.expirationTime<=e);if(e=Dt.unstable_now(),typeof r=="function"){Jo.callback=r,uh(e),t=!0;break t}Jo===qr(Mn)&&ch(Mn),uh(e)}else ch(Mn);Jo=qr(Mn)}if(Jo!==null)t=!0;else{var n=qr(yi);n!==null&&lb(sb,n.startTime-e),t=!1}}break e}finally{Jo=null,Fa=a,nb=!1}t=void 0}}finally{t?Hu():_u=!1}}}var Hu;typeof iw=="function"?Hu=function(){iw(ab)}:typeof MessageChannel<"u"?(ob=new MessageChannel,sw=ob.port2,ob.port1.onmessage=ab,Hu=function(){sw.postMessage(null)}):Hu=function(){lw(ab,0)};var ob,sw;function lb(e,t){dd=lw(function(){e(Dt.unstable_now())},t)}Dt.unstable_IdlePriority=5;Dt.unstable_ImmediatePriority=1;Dt.unstable_LowPriority=4;Dt.unstable_NormalPriority=3;Dt.unstable_Profiling=null;Dt.unstable_UserBlockingPriority=2;Dt.unstable_cancelCallback=function(e){e.callback=null};Dt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):cw=0<e?Math.floor(1e3/e):5};Dt.unstable_getCurrentPriorityLevel=function(){return Fa};Dt.unstable_next=function(e){switch(Fa){case 1:case 2:case 3:var t=3;break;default:t=Fa}var a=Fa;Fa=t;try{return e()}finally{Fa=a}};Dt.unstable_requestPaint=function(){ib=!0};Dt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Fa;Fa=e;try{return t()}finally{Fa=a}};Dt.unstable_scheduleCallback=function(e,t,a){var o=Dt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:BU++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,rb(yi,e),qr(Mn)===null&&e===qr(yi)&&(fd?(uw(dd),dd=-1):fd=!0,lb(sb,a-o))):(e.sortIndex=r,rb(Mn,e),cd||nb||(cd=!0,_u||(_u=!0,Hu()))),e};Dt.unstable_shouldYield=dw;Dt.unstable_wrapCallback=function(e){var t=Fa;return function(){var a=Fa;Fa=t;try{return e.apply(this,arguments)}finally{Fa=a}}}});var hw=mo((wY,pw)=>{"use strict";pw.exports=mw()});var yw=mo(za=>{"use strict";var FU=k();function xw(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Si(){}var Ja={d:{f:Si,r:function(){throw Error(xw(522))},D:Si,C:Si,L:Si,m:Si,X:Si,S:Si,M:Si},p:0,findDOMNode:null},zU=Symbol.for("react.portal"),HU=Symbol.for("react.recoverable"),gw=Symbol.for("react.optimistic_key");function _U(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zU,key:o==null?null:o===gw?gw:""+o,children:e,containerInfo:t,implementation:a}}var md=FU.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function fh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}za.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ja;za.browser=function(e){return{$$typeof:HU,_reason:e}};za.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(xw(299));return _U(e,t,null,a)};za.flushSync=function(e){var t=md.T,a=Ja.p;try{if(md.T=null,Ja.p=2,e)return e()}finally{md.T=t,Ja.p=a,Ja.d.f()}};za.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ja.d.C(e,t))};za.prefetchDNS=function(e){typeof e=="string"&&Ja.d.D(e)};za.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,o=fh(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Ja.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:n}):a==="script"&&Ja.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};za.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=fh(t.as,t.crossOrigin);Ja.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Ja.d.M(e)};za.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,o=fh(a,t.crossOrigin);Ja.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};za.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=fh(t.as,t.crossOrigin);Ja.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Ja.d.m(e)};za.requestFormReset=function(e){Ja.d.r(e)};za.unstable_batchedUpdates=function(e,t){return e(t)};za.useFormState=function(e,t,a){return md.H.useFormState(e,t,a)};za.useFormStatus=function(){return md.H.useHostTransitionStatus()};za.version="19.3.0"});var Gr=mo((AY,vw)=>{"use strict";function Sw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sw)}catch(e){console.error(e)}}Sw(),vw.exports=yw()});var iP=mo(Xg=>{"use strict";var ua=hw(),nA=k(),UU=Gr();function Z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function iA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function em(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function sA(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lA(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function bw(e){if(em(e)!==e)throw Error(Z(188))}function qU(e){var t=e.alternate;if(!t){if(t=em(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return bw(r),e;if(n===o)return bw(r),t;n=n.sibling}throw Error(Z(188))}if(a.return!==o.return)a=r,o=n;else{for(var i=!1,s=r.child;s;){if(s===a){i=!0,a=r,o=n;break}if(s===o){i=!0,o=r,a=n;break}s=s.sibling}if(!i){for(s=n.child;s;){if(s===a){i=!0,a=n,o=r;break}if(s===o){i=!0,o=n,a=r;break}s=s.sibling}if(!i)throw Error(Z(189))}}if(a.alternate!==o)throw Error(Z(190))}if(a.tag!==3)throw Error(Z(188));return a.stateNode.current===a?e:t}function uA(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=uA(e),t!==null)return t;e=e.sibling}return null}function So(e,t,a,o,r,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,r,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&So(e.child,t,a,o,r,n))return!0;e=e.sibling}return!1}function vl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Cw(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function cA(e){var t=[null,null],a=vl(e);return a===null||fA(t,e,a.child,{foundSelf:!1}),t}function fA(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&fA(e,t,a.child,o))return!0;a=a.sibling}return!1}function la(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(Z(559))}}var Wu=null,Hb=null;function GU(e,t,a){return e===a?!0:e===t?(Wu=e,!0):!1}function jU(e,t,a){return e===a?(Hb=e,!1):e===t?(Hb!==null&&(Wu=e),!0):!1}function Lw(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function _b(e,t,a){for(var o=0,r=e;r;r=a(r))o++;r=0;for(var n=t;n;n=a(n))r++;for(;0<o-r;)e=a(e),o--;for(;0<r-o;)t=a(t),r--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var St=Object.assign,XU=Symbol.for("react.element"),dh=Symbol.for("react.transitional.element"),vd=Symbol.for("react.portal"),Ku=Symbol.for("react.fragment"),dA=Symbol.for("react.strict_mode"),Ub=Symbol.for("react.profiler"),mA=Symbol.for("react.consumer"),Zr=Symbol.for("react.context"),QC=Symbol.for("react.forward_ref"),qb=Symbol.for("react.suspense"),Gb=Symbol.for("react.suspense_list"),JC=Symbol.for("react.memo"),Li=Symbol.for("react.lazy");Symbol.for("react.scope");var jb=Symbol.for("react.activity"),YU=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var WU=Symbol.for("react.memo_cache_sentinel"),Xb=Symbol.for("react.view_transition"),KU=Symbol.for("react.recoverable"),Rw=Symbol.iterator;function pd(e){return e===null||typeof e!="object"?null:(e=Rw&&e[Rw]||e["@@iterator"],typeof e=="function"?e:null)}var ZU=Symbol.for("react.client.reference");function Yb(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ZU?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ku:return"Fragment";case Ub:return"Profiler";case dA:return"StrictMode";case qb:return"Suspense";case Gb:return"SuspenseList";case jb:return"Activity";case Xb:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case vd:return"Portal";case Zr:return e.displayName||"Context";case mA:return(e._context.displayName||"Context")+".Consumer";case QC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case JC:return t=e.displayName||null,t!==null?t:Yb(e.type)||"Memo";case Li:t=e._payload,e=e._init;try{return Yb(e(t))}catch{}}return null}var bd=Array.isArray,Me=nA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt=UU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,sl={pending:!1,data:null,method:null,action:null},Wb=[],Zu=-1;function on(e){return{current:e}}function Ma(e){0>Zu||(e.current=Wb[Zu],Wb[Zu]=null,Zu--)}function It(e,t){Zu++,Wb[Zu]=e.current,e.current=t}var en=on(null),Fd=on(null),Di=on(null),Jh=on(null);function $h(e,t){switch(It(Di,t),It(Fd,e),It(en,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?FE(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=FE(t),e=NM(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ma(en),It(en,e)}function gc(){Ma(en),Ma(Fd),Ma(Di)}function Kb(e){var t=e.memoizedState;t!==null&&(Tc._currentValue=t.memoizedState,It(Jh,e)),t=en.current;var a=NM(t,e.type);t!==a&&(It(Fd,e),It(en,a))}function eg(e){Fd.current===e&&(Ma(en),Ma(Fd)),Jh.current===e&&(Ma(Jh),Tc._currentValue=sl)}var ub,Iw;function bi(e){if(ub===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ub=t&&t[1]||"",Iw=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Hb+e+nE}var _b=!1;function Ub(e,t){if(!e||_b)return"";_b=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}d=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),s=n[0],i=n[1];if(s&&i){var l=s.split(`
4
- `),u=i.split(`
3
+ `+ub+e+Iw}var cb=!1;function fb(e,t){if(!e||cb)return"";cb=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}d=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),i=n[0],s=n[1];if(i&&s){var l=i.split(`
4
+ `),u=s.split(`
5
5
  `);for(r=o=0;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===l.length||r===u.length)for(o=l.length-1,r=u.length-1;1<=o&&0<=r&&l[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(l[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||l[o]!==u[r]){var c=`
6
- `+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{_b=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Rs(a):""}function Z3(e,t){switch(e.tag){case 26:case 27:case 5:return Rs(e.type);case 16:return Rs("Lazy");case 13:return e.child!==t&&t!==null?Rs("Suspense Fallback"):Rs("Suspense");case 19:return Rs("SuspenseList");case 0:case 15:return Ub(e.type,!1);case 11:return Ub(e.type.render,!1);case 1:return Ub(e.type,!0);case 31:return Rs("Activity");case 30:return Rs("ViewTransition");default:return""}}function sE(e){try{var t="",a=null;do t+=Z3(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
6
+ `+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{cb=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?bi(a):""}function QU(e,t){switch(e.tag){case 26:case 27:case 5:return bi(e.type);case 16:return bi("Lazy");case 13:return e.child!==t&&t!==null?bi("Suspense Fallback"):bi("Suspense");case 19:return bi("SuspenseList");case 0:case 15:return fb(e.type,!1);case 11:return fb(e.type.render,!1);case 1:return fb(e.type,!0);case 31:return bi("Activity");case 30:return bi("ViewTransition");default:return""}}function Tw(e){try{var t="",a=null;do t+=QU(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
7
7
  Error generating stack: `+o.message+`
8
- `+o.stack}}var wC=Object.prototype.hasOwnProperty,PL=ua.unstable_scheduleCallback,qb=ua.unstable_cancelCallback,Q3=ua.unstable_shouldYield,J3=ua.unstable_requestPaint,Ho=ua.unstable_now,$3=ua.unstable_getCurrentPriorityLevel,WA=ua.unstable_ImmediatePriority,KA=ua.unstable_UserBlockingPriority,mg=ua.unstable_NormalPriority,e4=ua.unstable_LowPriority,ZA=ua.unstable_IdlePriority,t4=ua.log,a4=ua.unstable_setDisableYieldValue,lm=null,_o=null;function As(e){if(typeof t4=="function"&&a4(e),_o&&typeof _o.setStrictMode=="function")try{_o.setStrictMode(lm,e)}catch{}}var Uo=Math.clz32?Math.clz32:n4,o4=Math.log,r4=Math.LN2;function n4(e){return e>>>=0,e===0?32:31-(o4(e)/r4|0)|0}var Ih=256,Th=262144,wh=4194304;function sl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zg(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var i=o&134217727;return i!==0?(o=i&~n,o!==0?r=sl(o):(s&=i,s!==0?r=sl(s):a||(a=i&~e,a!==0&&(r=sl(a))))):(i=o&~n,i!==0?r=sl(i):s!==0?r=sl(s):a||(a=o&~e,a!==0&&(r=sl(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function um(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function QA(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Uo(a),r=1<<o;t|=e[o],a&=~r}return t}function s4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function JA(){var e=wh;return wh<<=1,(wh&62914560)===0&&(wh=4194304),e}function Gb(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cm(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i4(e,t,a,o,r,n){var s=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(a=s&~a;0<a;){var c=31-Uo(a),d=1<<c;i[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}a&=~d}o!==0&&$A(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function $A(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Uo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function e1(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Uo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function t1(e,t){var a=t&-t;return a=(a&42)!==0?1:DL(a),(a&(e.suspendedLanes|t))!==0?0:a}function DL(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ML(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function a1(){var e=nt.p;return e!==0?e:(e=window.event,e===void 0?32:BD(e.type))}function iE(e,t){var a=nt.p;try{return nt.p=e,t()}finally{nt.p=a}}var Wn=Math.random().toString(36).slice(2),Da="__reactFiber$"+Wn,Lo="__reactProps$"+Wn,Vc="__reactContainer$"+Wn,lE="__reactEvents$"+Wn,l4="__reactListeners$"+Wn,u4="__reactHandles$"+Wn,uE="__reactResources$"+Wn,fm="__reactMarker$"+Wn,pg="__reactLoad$"+Wn;function Hg(e){delete e[Da],delete e[Lo],delete e[l4],delete e[u4]}function ul(e){var t;if(t=e[Da])return t;for(var a=e.parentNode;a;){if(t=a[Vc]||a[Da]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=TA(e);e!==null;){if(a=e[Da])return a;e=TA(e)}return t}e=a,a=e.parentNode}return null}function Bc(e){if(e=e[Da]||e[Vc]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ad(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(Z(33))}function mc(e){var t=e[uE];return t||(t=e[uE]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ya(e){e[fm]=!0}function o1(e){e[pg]=void 0}var r1=new Set,n1={};function Il(e,t){Rc(e,t),Rc(e+"Capture",t)}function Rc(e,t){for(n1[e]=t,e=0;e<t.length;e++)r1.add(t[e])}var c4=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]*$"),cE={},fE={};function f4(e){return wC.call(fE,e)?!0:wC.call(cE,e)?!1:c4.test(e)?fE[e]=!0:(cE[e]=!0,!1)}var tt=!1;function dE(){var e=tt;return tt=!1,e}function jh(e,t,a){if(f4(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Eh(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Vn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Vo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d4(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function EC(e){if(!e._valueTracker){var t=s1(e)?"checked":"value";e._valueTracker=d4(e,t,""+e[t])}}function i1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=s1(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}var m4=/[\n"\\]/g;function sr(e){return e.replace(m4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function AC(e,t,a,o,r,n,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vo(t)):e.value!==""+Vo(t)&&(e.value=""+Vo(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?jb(e,Vo(e.value)):jb(e,Vo(t)):a!=null?jb(e,Vo(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Vo(i):e.removeAttribute("name")}function l1(e,t,a,o,r,n,s,i){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){EC(e);return}a=a!=null?""+Vo(a):"",t=t!=null?""+Vo(t):a,i||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),EC(e)}function jb(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function pc(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Vo(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function u1(e,t,a){if(t!=null&&(t=""+Vo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Vo(a):""}function c1(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(Z(92));if(Ed(o)){if(1<o.length)throw Error(Z(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Vo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),EC(e)}function Ic(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var p4=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 mE(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||p4.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function f1(e,t,a){if(t!=null&&typeof t!="object")throw Error(Z(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",tt=!0);for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&(mE(e,r,o),tt=!0)}else for(var n in t)t.hasOwnProperty(n)&&mE(e,n,t[n])}function OL(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var h4=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"],["maskType","mask-type"],["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"]]),g4=/^[\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 Xh(e){return g4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tn(){}var PC=null;function kL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,hc=null;function pE(e){var t=Bc(e);if(t&&(e=t.stateNode)){var a=e[Lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(AC(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+sr(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[Lo]||null;if(!r)throw Error(Z(90));AC(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&i1(o)}break e;case"textarea":u1(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&pc(e,!!a.multiple,t,!1)}}}var Xb=!1;function d1(e,t,a){if(Xb)return e(t,a);Xb=!0;try{var o=e(t);return o}finally{if(Xb=!1,(rc!==null||hc!==null)&&(ex(),rc&&(t=rc,e=hc,hc=rc=null,pE(t),e)))for(t=0;t<e.length;t++)pE(e[t])}}function Xd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Lo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(Z(231,t,typeof a));return a}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),DC=!1;if(Un)try{Ku={},Object.defineProperty(Ku,"passive",{get:function(){DC=!0}}),window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{DC=!1}var Ku,Ps=null,NL=null,Yh=null;function m1(){if(Yh)return Yh;var e,t=NL,a=t.length,o,r="value"in Ps?Ps.value:Ps.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===r[n-o];o++);return Yh=r.slice(e,1<o?1-o:void 0)}function Wh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ah(){return!0}function hE(){return!1}function ro(e){function t(a,o,r,n,s){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Ah:hE,this.isPropagationStopped=hE,this}return St(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ah)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ah)},persist:function(){},isPersistent:Ah}),t}var Zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_g=ro(Zs),dm=St({},Zs,{view:0,detail:0}),x4=ro(dm),Yb,Wb,Cd,Ug=St({},dm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:VL,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cd&&(Cd&&e.type==="mousemove"?(Yb=e.screenX-Cd.screenX,Wb=e.screenY-Cd.screenY):Wb=Yb=0,Cd=e),Yb)},movementY:function(e){return"movementY"in e?e.movementY:Wb}}),gE=ro(Ug),y4=St({},Ug,{dataTransfer:0}),S4=ro(y4),v4=St({},dm,{relatedTarget:0}),Kb=ro(v4),b4=St({},Zs,{animationName:0,elapsedTime:0,pseudoElement:0}),C4=ro(b4),L4=St({},Zs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R4=ro(L4),I4=St({},Zs,{data:0}),xE=ro(I4),T4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w4={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"},E4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E4[e])?!!t[e]:!1}function VL(){return A4}var P4=St({},dm,{key:function(e){if(e.key){var t=T4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:VL,charCode:function(e){return e.type==="keypress"?Wh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D4=ro(P4),M4=St({},Ug,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yE=ro(M4),O4=St({},Zs,{submitter:0}),k4=ro(O4),N4=St({},dm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:VL}),V4=ro(N4),B4=St({},Zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),F4=ro(B4),z4=St({},Ug,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),H4=ro(z4),_4=St({},Zs,{newState:0,oldState:0,source:0}),U4=ro(_4),q4=[9,13,27,32],BL=Un&&"CompositionEvent"in window,Md=null;Un&&"documentMode"in document&&(Md=document.documentMode);var G4=Un&&"TextEvent"in window&&!Md,p1=Un&&(!BL||Md&&8<Md&&11>=Md),SE=" ",vE=!1;function h1(e,t){switch(e){case"keyup":return q4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nc=!1;function j4(e,t){switch(e){case"compositionend":return g1(t);case"keypress":return t.which!==32?null:(vE=!0,SE);case"textInput":return e=t.data,e===SE&&vE?null:e;default:return null}}function X4(e,t){if(nc)return e==="compositionend"||!BL&&h1(e,t)?(e=m1(),Yh=NL=Ps=null,nc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return p1&&t.locale!=="ko"?null:t.data;default:return null}}var Y4={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 bE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y4[e.type]:t==="textarea"}function x1(e,t,a,o){rc?hc?hc.push(o):hc=[o]:rc=o,t=Vg(t,"onChange"),0<t.length&&(a=new _g("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Od=null,Yd=null;function W4(e){dD(e,0)}function qg(e){var t=Ad(e);if(i1(t))return e}function CE(e,t){if(e==="change")return t}var y1=!1;Un&&(Un?(Dh="oninput"in document,Dh||(Zb=document.createElement("div"),Zb.setAttribute("oninput","return;"),Dh=typeof Zb.oninput=="function"),Ph=Dh):Ph=!1,y1=Ph&&(!document.documentMode||9<document.documentMode));var Ph,Dh,Zb;function LE(){Od&&(Od.detachEvent("onpropertychange",S1),Yd=Od=null)}function S1(e){if(e.propertyName==="value"&&qg(Yd)){var t=[];x1(t,Yd,e,kL(e)),d1(W4,t)}}function K4(e,t,a){e==="focusin"?(LE(),Od=t,Yd=a,Od.attachEvent("onpropertychange",S1)):e==="focusout"&&LE()}function Z4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qg(Yd)}function Q4(e,t){if(e==="click")return qg(t)}function J4(e,t){if(e==="input"||e==="change")return qg(t)}function $4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Go=typeof Object.is=="function"?Object.is:$4;function Wd(e,t){if(Go(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!wC.call(t,r)||!Go(e[r],t[r]))return!1}return!0}function MC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function RE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function IE(e,t){var a=RE(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=RE(a)}}function v1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=MC(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=MC(e.document)}return t}function FL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var e5=Un&&"documentMode"in document&&11>=document.documentMode,sc=null,OC=null,kd=null,kC=!1;function TE(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;kC||sc==null||sc!==MC(o)||(o=sc,"selectionStart"in o&&FL(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),kd&&Wd(kd,o)||(kd=o,o=Vg(OC,"onSelect"),0<o.length&&(t=new _g("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=sc)))}function rl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ic={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionrun:rl("Transition","TransitionRun"),transitionstart:rl("Transition","TransitionStart"),transitioncancel:rl("Transition","TransitionCancel"),transitionend:rl("Transition","TransitionEnd")},Qb={},C1={};Un&&(C1=document.createElement("div").style,"AnimationEvent"in window||(delete ic.animationend.animation,delete ic.animationiteration.animation,delete ic.animationstart.animation),"TransitionEvent"in window||delete ic.transitionend.transition);function Tl(e){if(Qb[e])return Qb[e];if(!ic[e])return e;var t=ic[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in C1)return Qb[e]=t[a];return e}var L1=Tl("animationend"),R1=Tl("animationiteration"),I1=Tl("animationstart"),t5=Tl("transitionrun"),a5=Tl("transitionstart"),o5=Tl("transitioncancel"),T1=Tl("transitionend"),w1=new Map,NC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");NC.push("scrollEnd");function kr(e,t){w1.set(e,t),Il(t,[e])}var r5=0;function qn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Or.identifierPrefix;var a=r5++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function wE(e){if(e==null||typeof e=="string")return e;var t=null,a=Cc;if(a!==null)for(var o=0;o<a.length;o++){var r=e[a[o]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function Kn(e,t){return e=wE(e),t=wE(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var hg=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},or=[],lc=0,zL=0;function Gg(){for(var e=lc,t=zL=lc=0;t<e;){var a=or[t];or[t++]=null;var o=or[t];or[t++]=null;var r=or[t];or[t++]=null;var n=or[t];if(or[t++]=null,o!==null&&r!==null){var s=o.pending;s===null?r.next=r:(r.next=s.next,s.next=r),o.pending=r}n!==0&&E1(a,r,n)}}function jg(e,t,a,o){or[lc++]=e,or[lc++]=t,or[lc++]=a,or[lc++]=o,zL|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function HL(e,t,a,o){return jg(e,t,a,o),gg(e)}function wl(e,t){return jg(e,null,null,t),gg(e)}function E1(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-Uo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function gg(e){if(50<Gd)throw Gd=0,rg=null,Error(Z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var uc={};function n5(e,t,a,o){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vo(e,t,a,o){return new n5(e,t,a,o)}function _L(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hn(e,t){var a=e.alternate;return a===null?(a=vo(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function A1(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kh(e,t,a,o,r,n){var s=0;if(o=e,typeof o=="function")_L(o)&&(s=1);else if(typeof o=="string")s=Dq(e,a,rn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case CC:return e=vo(31,a,t,r),e.elementType=CC,e.lanes=n,e;case ac:return dl(a.children,r,n,t);case XA:s=8,r|=24;break;case SC:return e=vo(12,a,t,r|2),e.elementType=SC,e.lanes=n,e;case vC:return e=vo(13,a,t,r),e.elementType=vC,e.lanes=n,e;case bC:return e=vo(19,a,t,r),e.elementType=bC,e.lanes=n,e;case X3:case LC:return e=r|32,e=vo(30,a,t,e),e.elementType=LC,e.lanes=n,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case en:s=10;break e;case YA:s=9;break e;case EL:s=11;break e;case AL:s=14;break e;case Ts:s=16,o=null;break e}s=29,a=Error(Z(130,e===null?"null":typeof e,"")),o=null}return t=vo(s,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function dl(e,t,a,o){return e=vo(7,e,o,t),e.lanes=a,e}function Jb(e,t,a){return e=vo(6,e,null,t),e.lanes=a,e}function P1(e){var t=vo(18,null,null,0);return t.stateNode=e,t}function $b(e,t,a){return t=vo(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var EE=new WeakMap;function ir(e,t){if(typeof e=="object"&&e!==null){var a=EE.get(e);return a!==void 0?a:(t={value:e,source:t,stack:sE(t)},EE.set(e,t),t)}return{value:e,source:t,stack:sE(t)}}var cc=[],fc=0,xg=null,Kd=0,rr=[],nr=0,js=null,an=1,on="";function Fn(e,t){cc[fc++]=Kd,cc[fc++]=xg,xg=e,Kd=t}function D1(e,t,a){rr[nr++]=an,rr[nr++]=on,rr[nr++]=js,js=e;var o=an;e=on;var r=32-Uo(o)-1;o&=~(1<<r),a+=1;var n=32-Uo(t)+r;if(30<n){var s=r-r%5;n=(o&(1<<s)-1).toString(32),o>>=s,r-=s,an=1<<32-Uo(t)+r|a<<r|o,on=n+e}else an=1<<n|a<<r|o,on=e}function Xg(e){e.return!==null&&(Fn(e,1),D1(e,1,0))}function UL(e){for(;e===xg;)xg=cc[--fc],cc[fc]=null,Kd=cc[--fc],cc[fc]=null;for(;e===js;)js=rr[--nr],rr[nr]=null,on=rr[--nr],rr[nr]=null,an=rr[--nr],rr[nr]=null}function M1(e,t){rr[nr++]=an,rr[nr++]=on,rr[nr++]=js,an=t.id,on=t.overflow,js=e}var Sa=null,Lt=null,qe=!1,Vs=null,lr=!1,VC=Error(Z(519));function Xs(e){var t=Error(Z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zd(ir(t,e)),VC}function AE(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[Da]=e,t[Lo]=o,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<em.length;a++)je(em[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),l1(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),c1(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||pD(t.textContent,a)?(o.popover!=null&&(je("beforetoggle",t),je("toggle",t)),o.onScroll!=null&&je("scroll",t),o.onScrollEnd!=null&&je("scrollend",t),o.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Xs(e,!0)}function yg(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:lr=!1;return;case 27:case 3:lr=!0;return;default:Sa=Sa.return}}function Zu(e){if(e!==Sa)return!1;if(!qe)return yg(e),qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||vL(e.type,e.memoizedProps)),a=!a),a&&Lt&&Xs(e),yg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Lt=IA(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Lt=IA(e)}else t===27?(t=Lt,Qs(e.type)?(e=RL,RL=null,Lt=e):Lt=t):Lt=Sa?ur(e.stateNode.nextSibling):null;return!0}function gl(){Lt=Sa=null,qe=!1}function eC(){var e=Vs;return e!==null&&(yo===null?yo=e:yo.push.apply(yo,e),Vs=null),e}function Zd(e){Vs===null?Vs=[e]:Vs.push(e)}var BC=ln(null),El=null,zn=null;function Ds(e,t,a){Rt(BC,t._currentValue),t._currentValue=a}function _n(e){e._currentValue=BC.current,Oa(BC)}function Zh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function FC(e,t,a,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var n=r.dependencies;if(n!==null){var s=r.child;n=n.firstContext;e:for(;n!==null;){var i=n;n=r;for(var l=0;l<t.length;l++)if(i.context===t[l]){n.lanes|=a,i=n.alternate,i!==null&&(i.lanes|=a),Zh(n.return,a,e),o||(s=null);break e}n=i.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(Z(341));s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),Zh(s,a,e),s=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,s=r.alternate,s!==null&&(s.lanes|=a),Zh(r.return,a,e),s=r.child,s=s!==null?s.sibling:null):s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function xl(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(Z(387));if(s=s.memoizedProps,s!==null){var i=r.type;Go(r.pendingProps.value,s.value)||(e!==null?e.push(i):e=[i])}}else if(r===cg.current){if(s=r.alternate,s===null)throw Error(Z(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Oc):e=[Oc])}r=r.return}return e!==null&&FC(t,e,a,o),t.flags|=262144,e!==null}function Sg(e){for(e=e.firstContext;e!==null;){if(!Go(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yl(e){El=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ma(e){return O1(El,e)}function Mh(e,t){return El===null&&yl(e),O1(e,t)}function O1(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},zn===null){if(e===null)throw Error(Z(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return a}var s5=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},i5=ua.unstable_scheduleCallback,l5=ua.unstable_NormalPriority,ta={$$typeof:en,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qL(){return{controller:new s5,data:new Map,refCount:0}}function mm(e){e.refCount--,e.refCount===0&&i5(l5,function(){e.controller.abort()})}function PE(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}var Pd=null;function u5(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Nd=null,zC=0,Sl=0,gc=null;function c5(e,t){if(Nd===null){var a=Nd=[];zC=0,Sl=xR(),gc={status:"pending",value:void 0,then:function(o){a.push(o)}}}return zC++,t.then(DE,DE),t}function DE(){if(--zC===0&&(Pd=null,Nd!==null)){gc!==null&&(gc.status="fulfilled");var e=Nd;Nd=null,Sl=0,gc=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function f5(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),o}var ME=Ae.S;Ae.S=function(e,t){if(QP=Ho(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&c5(e,t),Pd!==null)for(var a=Pc;a!==null;)PE(a,Pd),a=a.next;if(a=e.types,a!==null){for(var o=Pc;o!==null;)PE(o,a),o=o.next;if(Sl!==0){o=Pd,o===null&&(o=Pd=[]);for(var r=0;r<a.length;r++){var n=a[r];o.indexOf(n)===-1&&o.push(n)}}}ME!==null&&ME(e,t)};var ml=ln(null);function GL(){var e=ml.current;return e!==null?e:yt.pooledCache}function Qh(e,t){t===null?Rt(ml,ml.current):Rt(ml,t.pool)}function k1(){var e=GL();return e===null?null:{parent:ta._currentValue,pool:e}}var Fc=Error(Z(460)),jL=Error(Z(474)),Yg=Error(Z(542)),vg={then:function(){}};function OE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function N1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(tn,tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,NE(e),e===void 0&&!("reason"in t)?Error(Z(600)):e;default:if(typeof t.status=="string")t.then(tn,tn);else{if(e=yt,e!==null&&100<e.shellSuspendCounter)throw Error(Z(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,NE(e),e}throw pl=t,Fc}}function il(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(pl=a,Fc):a}}var pl=null;function kE(){if(pl===null)throw Error(Z(459));var e=pl;return pl=null,e}function NE(e){if(e===Fc||e===Yg)throw Error(Z(483))}var xc=null,Qd=0;function Oh(e){var t=Qd;return Qd+=1,xc===null&&(xc=[]),N1(xc,e,t)}function Ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kh(e,t){throw t.$$typeof===j3?Error(Z(525)):(e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function V1(e){function t(g,h){if(e){var x=g.deletions;x===null?(g.deletions=[h],g.flags|=16):x.push(h)}}function a(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function o(g){for(var h=new Map;g!==null;)g.key===null?h.set(g.index,g):h.set(g.key,g),g=g.sibling;return h}function r(g,h){return g=Hn(g,h),g.index=0,g.sibling=null,g}function n(g,h,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<h?(g.flags|=2,h):x):(g.flags|=134217730,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function i(g,h,x,S){return h===null||h.tag!==6?(h=Jb(x,g.mode,S),h.return=g,h):(h=r(h,x),h.return=g,h)}function l(g,h,x,S){var b=x.type;return b===ac?(g=c(g,h,x.props.children,S,x.key),Ls(g,x),g):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ts&&il(b)===h.type)?(h=r(h,x.props),Ls(h,x),h.return=g,h):(h=Kh(x.type,x.key,x.props,null,g.mode,S),Ls(h,x),h.return=g,h)}function u(g,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=$b(x,g.mode,S),h.return=g,h):(h=r(h,x.children||[]),h.return=g,h)}function c(g,h,x,S,b){return h===null||h.tag!==7?(h=dl(x,g.mode,S,b),h.return=g,h):(h=r(h,x),h.return=g,h)}function d(g,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Jb(""+h,g.mode,x),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Rh:return x=Kh(h.type,h.key,h.props,null,g.mode,x),Ls(x,h),x.return=g,x;case wd:return h=$b(h,g.mode,x),h.return=g,h;case Ts:return h=il(h),d(g,h,x)}if(Ed(h)||bd(h))return h=dl(h,g.mode,x,null),h.return=g,h;if(typeof h.then=="function")return d(g,Oh(h),x);if(h.$$typeof===en)return d(g,Mh(g,h),x);kh(g,h)}return null}function f(g,h,x,S){var b=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return b!==null?null:i(g,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rh:return x.key===b?l(g,h,x,S):null;case wd:return x.key===b?u(g,h,x,S):null;case Ts:return x=il(x),f(g,h,x,S)}if(Ed(x)||bd(x))return b!==null?null:c(g,h,x,S,null);if(typeof x.then=="function")return f(g,h,Oh(x),S);if(x.$$typeof===en)return f(g,h,Mh(g,x),S);kh(g,x)}return null}function m(g,h,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return g=g.get(x)||null,i(h,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Rh:return g=g.get(S.key===null?x:S.key)||null,l(h,g,S,b);case wd:return g=g.get(S.key===null?x:S.key)||null,u(h,g,S,b);case Ts:return S=il(S),m(g,h,x,S,b)}if(Ed(S)||bd(S))return g=g.get(x)||null,c(h,g,S,b,null);if(typeof S.then=="function")return m(g,h,x,Oh(S),b);if(S.$$typeof===en)return m(g,h,x,Mh(h,S),b);kh(h,S)}return null}function p(g,h,x,S){for(var b=null,I=null,L=h,C=h=0,E=null;L!==null&&C<x.length;C++){L.index>C?(E=L,L=null):E=L.sibling;var T=f(g,L,x[C],S);if(T===null){L===null&&(L=E);break}e&&L&&T.alternate===null&&t(g,L),h=n(T,h,C),I===null?b=T:I.sibling=T,I=T,L=E}if(C===x.length)return a(g,L),qe&&Fn(g,C),b;if(L===null){for(;C<x.length;C++)L=d(g,x[C],S),L!==null&&(h=n(L,h,C),I===null?b=L:I.sibling=L,I=L);return qe&&Fn(g,C),b}for(L=o(L);C<x.length;C++)E=m(L,g,C,x[C],S),E!==null&&(e&&(T=E.alternate,T!==null&&L.delete(T.key===null?C:T.key)),h=n(E,h,C),I===null?b=E:I.sibling=E,I=E);return e&&L.forEach(function(A){return t(g,A)}),qe&&Fn(g,C),b}function y(g,h,x,S){if(x==null)throw Error(Z(151));for(var b=null,I=null,L=h,C=h=0,E=null,T=x.next();L!==null&&!T.done;C++,T=x.next()){L.index>C?(E=L,L=null):E=L.sibling;var A=f(g,L,T.value,S);if(A===null){L===null&&(L=E);break}e&&L&&A.alternate===null&&t(g,L),h=n(A,h,C),I===null?b=A:I.sibling=A,I=A,L=E}if(T.done)return a(g,L),qe&&Fn(g,C),b;if(L===null){for(;!T.done;C++,T=x.next())T=d(g,T.value,S),T!==null&&(h=n(T,h,C),I===null?b=T:I.sibling=T,I=T);return qe&&Fn(g,C),b}for(L=o(L);!T.done;C++,T=x.next())T=m(L,g,C,T.value,S),T!==null&&(e&&(E=T.alternate,E!==null&&L.delete(E.key===null?C:E.key)),h=n(T,h,C),I===null?b=T:I.sibling=T,I=T);return e&&L.forEach(function(N){return t(g,N)}),qe&&Fn(g,C),b}function v(g,h,x,S){if(typeof x=="object"&&x!==null&&x.type===ac&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rh:e:{for(var b=x.key;h!==null;){if(h.key===b){if(b=x.type,b===ac){if(h.tag===7){a(g,h.sibling),S=r(h,x.props.children),Ls(S,x),S.return=g,g=S;break e}}else if(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ts&&il(b)===h.type){a(g,h.sibling),S=r(h,x.props),Ls(S,x),S.return=g,g=S;break e}a(g,h);break}else t(g,h);h=h.sibling}x.type===ac?(S=dl(x.props.children,g.mode,S,x.key),Ls(S,x),S.return=g,g=S):(S=Kh(x.type,x.key,x.props,null,g.mode,S),Ls(S,x),S.return=g,g=S)}return s(g);case wd:e:{for(b=x.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(g,h.sibling),S=r(h,x.children||[]),S.return=g,g=S;break e}else{a(g,h);break}else t(g,h);h=h.sibling}S=$b(x,g.mode,S),S.return=g,g=S}return s(g);case Ts:return x=il(x),v(g,h,x,S)}if(Ed(x))return p(g,h,x,S);if(bd(x)){if(b=bd(x),typeof b!="function")throw Error(Z(150));return x=b.call(x),y(g,h,x,S)}if(typeof x.then=="function")return v(g,h,Oh(x),S);if(x.$$typeof===en)return v(g,h,Mh(g,x),S);kh(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(a(g,h.sibling),S=r(h,x),S.return=g,g=S):(a(g,h),S=Jb(x,g.mode,S),S.return=g,g=S),s(g)):a(g,h)}return function(g,h,x,S){try{Qd=0;var b=v(g,h,x,S);return xc=null,b}catch(L){if(L===Fc||L===Yg)throw L;var I=vo(29,L,null,g.mode);return I.lanes=S,I.return=g,I}finally{}}}var vl=V1(!0),B1=V1(!1),ws=!1;function XL(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function HC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Bs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fs(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(rt&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=gg(e),E1(e,null,a),t}return jg(e,o,t,a),gg(e)}function Vd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,e1(e,a)}}function tC(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var _C=!1;function Bd(){if(_C){var e=gc;if(e!==null)throw e}}function Fd(e,t,a,o){_C=!1;var r=e.updateQueue;ws=!1;var n=r.firstBaseUpdate,s=r.lastBaseUpdate,i=r.shared.pending;if(i!==null){r.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(n!==null){var d=r.baseState;s=0,c=u=l=null,i=n;do{var f=i.lane&-536870913,m=f!==i.lane;if(m?(Ye&f)===f:(o&f)===f){f!==0&&f===Sl&&(_C=!0),c!==null&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var p=e,y=i;f=t;var v=a;switch(y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(v,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(v,d,f):p,f==null)break e;d=St({},d,f);break e;case 2:ws=!0}}f=i.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(i=i.next,i===null){if(i=r.shared.pending,i===null)break;m=i,i=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,n===null&&(r.shared.lanes=0),Ks|=s,e.lanes=s,e.memoizedState=d}}function F1(e,t){if(typeof e!="function")throw Error(Z(191,e));e.call(t)}function z1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)F1(a[e],t)}var Ys=ln(null),bg=ln(0);function VE(e,t){e=Yn,Rt(bg,e),Rt(Ys,t),Yn=e|t.baseLanes}function UC(){Rt(bg,Yn),Rt(Ys,Ys.current)}function YL(){Yn=bg.current,Oa(Ys),Oa(bg)}var Va=ln(null),qa=null;function zs(e){var t=e.alternate;Rt(ka,ka.current&1),Rt(Va,e),qa===null&&(t===null||Ys.current!==null||t.memoizedState!==null)&&(qa=e)}function qC(e){Rt(ka,ka.current),Rt(Va,e),qa===null&&(qa=e)}function H1(e){e.tag===22?(Rt(ka,ka.current),Rt(Va,e),qa===null&&(qa=e)):Hs()}function Hs(){Rt(ka,ka.current),Rt(Va,Va.current)}function Bo(e){Oa(Va),qa===e&&(qa=null),Oa(ka)}var ka=ln(0);function Jd(e,t){Rt(Va,Va.current),Rt(ka,t)}function WL(e){Oa(ka),Oa(Va),qa===e&&(qa=null)}function Cg(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||LL(a)||bR(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gn=0,Fe=null,ht=null,ea=null,Lg=!1,yc=!1,bl=!1,Rg=0,$d=0,Sc=null,d5=0;function Ut(){throw Error(Z(321))}function KL(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Go(e[a],t[a]))return!1;return!0}function ZL(e,t,a,o,r,n){return Gn=n,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ae.H=e===null||e.memoizedState===null?xP:yP,bl=!1,n=a(o,r),bl=!1,yc&&(n=U1(t,a,o,r)),_1(e),n}function _1(e){Ae.H=Ig;var t=ht!==null&&ht.next!==null;if(Gn=0,ea=ht=Fe=null,Lg=!1,$d=0,Sc=null,t)throw Error(Z(300));e===null||aa||(e=e.dependencies,e!==null&&Sg(e)&&(aa=!0))}function U1(e,t,a,o){Fe=e;var r=0;do{if(yc&&(Sc=null),$d=0,yc=!1,25<=r)throw Error(Z(301));if(r+=1,ea=ht=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Ae.H=v5,n=t(a,o)}while(yc);return n}function m5(){var e=Ae.H,t=e.useState()[0];return t=typeof t.then=="function"?pm(t):t,e=e.useState()[0],(ht!==null?ht.memoizedState:null)!==e&&(Fe.flags|=1024),t}function QL(){var e=Rg!==0;return Rg=0,e}function JL(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function $L(e){if(Lg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lg=!1}Gn=0,ea=ht=Fe=null,yc=!1,$d=Rg=0,Sc=null}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?Fe.memoizedState=ea=e:ea=ea.next=e,ea}function jt(){if(ht===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=ea===null?Fe.memoizedState:ea.next;if(t!==null)ea=t,ht=e;else{if(e===null)throw Fe.alternate===null?Error(Z(467)):Error(Z(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},ea===null?Fe.memoizedState=ea=e:ea=ea.next=e}return ea}function Wg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pm(e){var t=$d;return $d+=1,Sc===null&&(Sc=[]),e=N1(Sc,e,t),t=Fe,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,Ae.H=t===null||t.memoizedState===null?xP:yP),e}function Kg(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pm(e);if(e.$$typeof===W3)return;if(e.$$typeof===en)return Ma(e)}throw Error(Z(438,String(e)))}function eR(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Wg(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=Y3;return t.index++,a}function jn(e,t){return typeof t=="function"?t(e):t}function Jh(e){var t=jt();return tR(t,ht,e)}function tR(e,t,a){var o=e.queue;if(o===null)throw Error(Z(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var s=r.next;r.next=n.next,n.next=s}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var i=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ye&d)===d:(Gn&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Sl&&(c=!0);else if((Gn&f)===f){u=u.next,f===Sl&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=d,s=n):l=l.next=d,Fe.lanes|=f,Ks|=f;d=u.action,bl&&a(n,d),n=u.hasEagerState?u.eagerState:a(n,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=f,s=n):l=l.next=f,Fe.lanes|=d,Ks|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=n:l.next=i,!Go(n,e.memoizedState)&&(aa=!0,c&&(a=gc,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=l,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function aC(e){var t=jt(),a=t.queue;if(a===null)throw Error(Z(311));a.lastRenderedReducer=e;var o=a.dispatch,r=a.pending,n=t.memoizedState;if(r!==null){a.pending=null;var s=r=r.next;do n=e(n,s.action),s=s.next;while(s!==r);Go(n,t.memoizedState)||(aa=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function q1(e,t,a){var o=Fe,r=jt(),n=qe;if(n){if(a===void 0)throw Error(Z(407));a=a()}else a=t();var s=!Go((ht||r).memoizedState,a);if(s&&(r.memoizedState=a,aa=!0),r=r.queue,aR(X1.bind(null,o,r,e),[e]),e=r.getSnapshot!==t||s||ea!==null&&(ea.memoizedState.tag&1)!==0,Tc(e?9:8,{destroy:void 0},j1.bind(null,o,r,a,t),null),e){if(o.flags|=2048,yt===null)throw Error(Z(349));n||(Gn&127)!==0||G1(o,t,a)}return a}function G1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Wg(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function j1(e,t,a,o){t.value=a,t.getSnapshot=o,Y1(t)&&W1(e)}function X1(e,t,a){return a(function(){Y1(t)&&W1(e)})}function Y1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Go(e,a)}catch{return!0}}function W1(e){var t=wl(e,2);t!==null&&bo(t,e,2)}function GC(e){var t=oo();if(typeof e=="function"){var a=e;if(e=a(),bl){As(!0);try{a()}finally{As(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},t}function K1(e,t,a,o){return e.baseState=a,tR(e,ht,typeof o=="function"?o:jn)}function p5(e,t,a,o,r){if(Qg(e))throw Error(Z(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};Ae.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,Z1(t,n)):(n.next=a.next,t.pending=a.next=n)}}function Z1(e,t){var a=t.action,o=t.payload,r=e.state;if(t.isTransition){var n=Ae.T,s={};s.types=n!==null?n.types:null,Ae.T=s;try{var i=a(r,o),l=Ae.S;l!==null&&l(s,i),BE(e,t,i)}catch(u){jC(e,t,u)}finally{n!==null&&s.types!==null&&(n.types=s.types),Ae.T=n}}else try{n=a(r,o),BE(e,t,n)}catch(u){jC(e,t,u)}}function BE(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){FE(e,t,o)},function(o){return jC(e,t,o)}):FE(e,t,a)}function FE(e,t,a){t.status="fulfilled",t.value=a,Q1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Z1(e,a)))}function jC(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Q1(t),t=t.next;while(t!==o)}e.action=null}function Q1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function J1(e,t){return t}function zE(e,t){if(qe){var a=yt.formState;if(a!==null){e:{var o=Fe;if(qe){if(Lt){t:{for(var r=Lt,n=lr;r.nodeType!==8;){if(!n){r=null;break t}if(r=ur(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){Lt=ur(r.nextSibling),o=r.data==="F!";break e}}Xs(o)}o=!1}o&&(t=a[0])}}return a=oo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:J1,lastRenderedState:t},a.queue=o,a=pP.bind(null,Fe,o),o.dispatch=a,o=GC(!1),n=sR.bind(null,Fe,!1,o.queue),o=oo(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=p5.bind(null,Fe,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function HE(e){var t=jt();return $1(t,ht,e)}function $1(e,t,a){if(t=tR(e,t,J1)[0],e=Jh(jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=pm(t)}catch(s){throw s===Fc?Yg:s}else o=t;t=jt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,Tc(9,{destroy:void 0},h5.bind(null,r,a),null)),[o,n,e]}function h5(e,t){e.action=t}function _E(e){var t=jt(),a=ht;if(a!==null)return $1(t,a,e);jt(),t=t.memoizedState,a=jt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Tc(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Wg(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function eP(){return jt().memoizedState}function $h(e,t,a,o){var r=oo();Fe.flags|=e,r.memoizedState=Tc(1|t,{destroy:void 0},a,o===void 0?null:o)}function Zg(e,t,a,o){var r=jt();o=o===void 0?null:o;var n=r.memoizedState.inst;ht!==null&&o!==null&&KL(o,ht.memoizedState.deps)?r.memoizedState=Tc(t,n,a,o):(Fe.flags|=e,r.memoizedState=Tc(1|t,n,a,o))}function UE(e,t){$h(8390656,8,e,t)}function aR(e,t){Zg(2048,8,e,t)}function g5(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Wg(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function tP(e){var t=jt().memoizedState;return g5({ref:t,nextImpl:e}),function(){if((rt&2)!==0)throw Error(Z(440));return t.impl.apply(void 0,arguments)}}function aP(e,t){return Zg(4,2,e,t)}function oP(e,t){return Zg(4,4,e,t)}function rP(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nP(e,t,a){a=a!=null?a.concat([e]):null,Zg(4,4,rP.bind(null,t,e),a)}function oR(){}function sP(e,t){var a=jt();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&KL(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function iP(e,t){var a=jt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&KL(t,o[1]))return o[0];if(o=e(),bl){As(!0);try{e()}finally{As(!1)}}return a.memoizedState=[o,t],o}function rR(e,t,a){return a===void 0||(Gn&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=$P(),Fe.lanes|=e,Ks|=e,a)}function lP(e,t,a,o){return Go(a,t)?a:Ys.current!==null?(e=rR(e,a,o),Go(e,t)||(aa=!0),e):(Gn&106)===0||(Gn&1073741824)!==0&&(Ye&261930)===0?(aa=!0,e.memoizedState=a):(e=$P(),Fe.lanes|=e,Ks|=e,t)}function uP(e,t,a,o,r){var n=nt.p;nt.p=n!==0&&8>n?n:8;var s=Ae.T,i={};i.types=s!==null?s.types:null,Ae.T=i,sR(e,!1,t,a);try{var l=r(),u=Ae.S;if(u!==null&&u(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=f5(l,o);zd(e,t,c,qo(e))}else zd(e,t,o,qo(e))}catch(d){zd(e,t,{then:function(){},status:"rejected",reason:d},qo())}finally{nt.p=n,s!==null&&i.types!==null&&(s.types=i.types),Ae.T=s}}function x5(){}function XC(e,t,a,o){if(e.tag!==5)throw Error(Z(476));var r=cP(e).queue;uP(e,r,t,fl,a===null?x5:function(){return fP(e),a(o)})}function cP(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fl,baseState:fl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:fl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fP(e){var t=cP(e);t.next===null&&(t=e.alternate.memoizedState),zd(e,t.next.queue,{},qo())}function nR(){return Ma(Oc)}function dP(){return jt().memoizedState}function mP(){return jt().memoizedState}function y5(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qo();e=Bs(a);var o=Fs(t,e,a);o!==null&&(bo(o,t,a),Vd(o,t,a)),t={cache:qL()},e.payload=t;return}t=t.return}}function S5(e,t,a){var o=qo();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qg(e)?hP(t,a):(a=HL(e,t,a,o),a!==null&&(bo(a,e,o),gP(a,t,o)))}function pP(e,t,a){var o=qo();zd(e,t,a,o)}function zd(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Qg(e))hP(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(r.hasEagerState=!0,r.eagerState=i,Go(i,s))return jg(e,t,r,0),yt===null&&Gg(),!1}catch{}finally{}if(a=HL(e,t,r,o),a!==null)return bo(a,e,o),gP(a,t,o),!0}return!1}function sR(e,t,a,o){if(o={lane:2,revertLane:xR(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Qg(e)){if(t)throw Error(Z(479))}else t=HL(e,a,o,2),t!==null&&bo(t,e,2)}function Qg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function hP(e,t){yc=Lg=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gP(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,e1(e,a)}}var Ig={readContext:Ma,use:Kg,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut,useEffectEvent:Ut},xP={readContext:Ma,use:Kg,useCallback:function(e,t){return oo().memoizedState=[e,t===void 0?null:t],e},useContext:Ma,useEffect:UE,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$h(4194308,4,rP.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $h(4194308,4,e,t)},useInsertionEffect:function(e,t){$h(4,2,e,t)},useMemo:function(e,t){var a=oo();t=t===void 0?null:t;var o=e();if(bl){As(!0);try{e()}finally{As(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=oo();if(a!==void 0){var r=a(t);if(bl){As(!0);try{a(t)}finally{As(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=S5.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var t=oo();return e={current:e},t.memoizedState=e},useState:function(e){e=GC(e);var t=e.queue,a=pP.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:oR,useDeferredValue:function(e,t){var a=oo();return rR(a,e,t)},useTransition:function(){var e=GC(!1);return e=uP.bind(null,Fe,e.queue,!0,!1),oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Fe,r=oo();if(qe){if(a===void 0)throw Error(Z(407));a=a()}else{if(a=t(),yt===null)throw Error(Z(349));(Ye&127)!==0||G1(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,UE(X1.bind(null,o,n,e),[e]),o.flags|=2048,Tc(9,{destroy:void 0},j1.bind(null,o,n,a,t),null),a},useId:function(){var e=oo(),t=yt.identifierPrefix;if(qe){var a=on,o=an;a=(o&~(1<<32-Uo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Rg++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=d5++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nR,useFormState:zE,useActionState:zE,useOptimistic:function(e){var t=oo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=sR.bind(null,Fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:eR,useCacheRefresh:function(){return oo().memoizedState=y5.bind(null,Fe)},useEffectEvent:function(e){var t=oo(),a={impl:e};return t.memoizedState=a,function(){if((rt&2)!==0)throw Error(Z(440));return a.impl.apply(void 0,arguments)}}},yP={readContext:Ma,use:Kg,useCallback:sP,useContext:Ma,useEffect:aR,useImperativeHandle:nP,useInsertionEffect:aP,useLayoutEffect:oP,useMemo:iP,useReducer:Jh,useRef:eP,useState:function(){return Jh(jn)},useDebugValue:oR,useDeferredValue:function(e,t){var a=jt();return lP(a,ht.memoizedState,e,t)},useTransition:function(){var e=Jh(jn)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:pm(e),t]},useSyncExternalStore:q1,useId:dP,useHostTransitionStatus:nR,useFormState:HE,useActionState:HE,useOptimistic:function(e,t){var a=jt();return K1(a,ht,e,t)},useMemoCache:eR,useCacheRefresh:mP,useEffectEvent:tP},v5={readContext:Ma,use:Kg,useCallback:sP,useContext:Ma,useEffect:aR,useImperativeHandle:nP,useInsertionEffect:aP,useLayoutEffect:oP,useMemo:iP,useReducer:aC,useRef:eP,useState:function(){return aC(jn)},useDebugValue:oR,useDeferredValue:function(e,t){var a=jt();return ht===null?rR(a,e,t):lP(a,ht.memoizedState,e,t)},useTransition:function(){var e=aC(jn)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:pm(e),t]},useSyncExternalStore:q1,useId:dP,useHostTransitionStatus:nR,useFormState:_E,useActionState:_E,useOptimistic:function(e,t){var a=jt();return ht!==null?K1(a,ht,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:eR,useCacheRefresh:mP,useEffectEvent:tP};function oC(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:St({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var YC={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=qo(),r=Bs(o);r.payload=t,a!=null&&(r.callback=a),t=Fs(e,r,o),t!==null&&(bo(t,e,o),Vd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=qo(),r=Bs(o);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Fs(e,r,o),t!==null&&(bo(t,e,o),Vd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qo(),o=Bs(a);o.tag=2,t!=null&&(o.callback=t),t=Fs(e,o,a),t!==null&&(bo(t,e,a),Vd(t,e,a))}};function qE(e,t,a,o,r,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,n,s):t.prototype&&t.prototype.isPureReactComponent?!Wd(a,o)||!Wd(r,n):!0}function GE(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&YC.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=St({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function SP(e){hg(e)}function vP(e){console.error(e)}function bP(e){hg(e)}function Tg(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function jE(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function WC(e,t,a){return a=Bs(a),a.tag=3,a.payload={element:null},a.callback=function(){Tg(e,t)},a}function CP(e){return e=Bs(e),e.tag=3,e}function LP(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){jE(t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){jE(t,a,o),typeof r!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var i=o.stack;this.componentDidCatch(o.value,{componentStack:i!==null?i:""})})}function b5(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&xl(t,a,r,!0),a=Va.current,a!==null){switch(a.tag){case 31:case 13:case 19:return qa===null?kg():a.alternate===null&&qt===0&&(qt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===vg?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),cC(e,o,r)),!1;case 22:return a.flags|=65536,o===vg?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),cC(e,o,r)),!1}throw Error(Z(435,a.tag))}return cC(e,o,r),kg(),!1}if(qe)return t=Va.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==VC&&(e=Error(Z(422),{cause:o}),Zd(ir(e,a)))):(o!==VC&&(t=Error(Z(423),{cause:o}),Zd(ir(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=ir(o,a),r=WC(e.stateNode,o,r),tC(e,r),qt!==4&&(qt=2)),!1;var n=Error(Z(520),{cause:o});if(n=ir(n,a),qd===null?qd=[n]:qd.push(n),qt!==4&&(qt=2),t===null)return!0;o=ir(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=WC(a.stateNode,o,e),tC(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(_s===null||!_s.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=CP(r),LP(r,e,a,o),tC(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var iR=Error(Z(461)),aa=!1;function ia(e,t,a,o){t.child=e===null?B1(t,null,a,o):vl(t,e.child,a,o)}function XE(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var i in o)i!=="ref"&&(s[i]=o[i])}else s=o;return yl(t),o=ZL(e,t,a,s,n,r),i=QL(),e!==null&&!aa?(JL(e,t,r),Xn(e,t,r)):(qe&&i&&Xg(t),t.flags|=1,ia(e,t,o,r),t.child)}function YE(e,t,a,o,r){if(e===null){var n=a.type;return typeof n=="function"&&!_L(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,RP(e,t,n,o,r)):(e=Kh(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!uR(e,r)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Wd,a(s,o)&&e.ref===t.ref)return Xn(e,t,r)}return t.flags|=1,e=Hn(n,o),e.ref=t.ref,e.return=t,t.child=e}function RP(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(Wd(n,o)&&e.ref===t.ref)if(aa=!1,t.pendingProps=o=n,uR(e,r))(e.flags&131072)!==0&&(aa=!0);else return t.lanes=e.lanes,Xn(e,t,r)}return KC(e,t,a,o,r)}function IP(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return WE(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qh(t,n!==null?n.cachePool:null),n!==null?VE(t,n):UC(),H1(t);else return o=t.lanes=536870912,WE(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(Qh(t,n.cachePool),VE(t,n),Hs(),t.memoizedState=null):(e!==null&&Qh(t,null),UC(),Hs());return ia(e,t,r,a),t.child}function Hd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function WE(e,t,a,o,r){var n=GL();return n=n===null?null:{parent:ta._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Qh(t,null),UC(),H1(t),e!==null&&xl(e,t,o,!0),t.childLanes=r,null}function eg(e,t){return t=Jg({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function KE(e,t,a){return vl(t,e.child,null,a),e=eg(t,t.pendingProps),e.flags|=2,Bo(t),t.memoizedState=null,e}function C5(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(o.mode==="hidden")return e=eg(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Hd(null,e);if(qC(t),(e=Lt)?(e=ID(e,lr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:js!==null?{id:an,overflow:on}:null,retryLane:536870912,hydrationErrors:null},a=P1(e),a.return=t,t.child=a,Sa=t,Lt=null)):e=null,e===null)throw Xs(t);return t.lanes=536870912,null}return eg(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(qC(t),r)if(t.flags&256)t.flags&=-257,t=KE(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(Z(558));else if(aa||xl(e,t,a,!1),r=(a&e.childLanes)!==0,aa||r){if(Ys.current===null){if(o=yt,o!==null&&(s=t1(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,wl(e,s),bo(o,e,s),iR;kg()}t=KE(e,t,a)}else e=n.treeContext,Lt=ur(s.nextSibling),Sa=t,qe=!0,Vs=null,lr=!1,e!==null&&M1(t,e),t=eg(t,o),t.flags|=134221824;return t}return e=Hn(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ju(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(Z(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function KC(e,t,a,o,r){return yl(t),a=ZL(e,t,a,o,void 0,r),o=QL(),e!==null&&!aa?(JL(e,t,r),Xn(e,t,r)):(qe&&o&&Xg(t),t.flags|=1,ia(e,t,a,r),t.child)}function ZE(e,t,a,o,r,n){return yl(t),t.updateQueue=null,a=U1(t,o,a,r),_1(e),o=QL(),e!==null&&!aa?(JL(e,t,n),Xn(e,t,n)):(qe&&o&&Xg(t),t.flags|=1,ia(e,t,a,n),t.child)}function QE(e,t,a,o,r){if(yl(t),t.stateNode===null){var n=uc,s=a.contextType;typeof s=="object"&&s!==null&&(n=Ma(s)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=YC,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},XL(t),s=a.contextType,n.context=typeof s=="object"&&s!==null?Ma(s):uc,n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s=="function"&&(oC(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(s=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&YC.enqueueReplaceState(n,n.state,null),Fd(t,o,n,r),Bd(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var i=t.memoizedProps,l=Cl(a,i);n.props=l;var u=n.context,c=a.contextType;s=uc,typeof c=="object"&&c!==null&&(s=Ma(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof n.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,c||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i||u!==s)&&GE(t,n,o,s),ws=!1;var f=t.memoizedState;n.state=f,Fd(t,o,n,r),Bd(),u=t.memoizedState,i||f!==u||ws?(typeof d=="function"&&(oC(t,a,d,o),u=t.memoizedState),(l=ws||qE(t,a,l,o,f,u,s))?(c||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),n.props=o,n.state=u,n.context=s,o=l):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,HC(e,t),s=t.memoizedProps,c=Cl(a,s),n.props=c,d=t.pendingProps,f=n.context,u=a.contextType,l=uc,typeof u=="object"&&u!==null&&(l=Ma(u)),i=a.getDerivedStateFromProps,(u=typeof i=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(s!==d||f!==l)&&GE(t,n,o,l),ws=!1,f=t.memoizedState,n.state=f,Fd(t,o,n,r),Bd();var m=t.memoizedState;s!==d||f!==m||ws||e!==null&&e.dependencies!==null&&Sg(e.dependencies)?(typeof i=="function"&&(oC(t,a,i,o),m=t.memoizedState),(c=ws||qE(t,a,c,o,f,m,l)||e!==null&&e.dependencies!==null&&Sg(e.dependencies))?(u||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,m,l),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,m,l)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),n.props=o,n.state=m,n.context=l,o=c):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Ju(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=vl(t,e.child,null,r),t.child=vl(t,null,a,r)):ia(e,t,a,r),t.memoizedState=n.state,e=t.child):e=Xn(e,t,r),e}function JE(e,t,a,o){return gl(),t.flags|=256,ia(e,t,a,o),t.child}var ZC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function QC(e){return{baseLanes:e,cachePool:k1()}}function JC(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zo),e}function TP(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,s;if((s=n)||(s=e!==null&&e.memoizedState===null?!1:(ka.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(r?zs(t):Hs(),(e=Lt)?(e=ID(e,lr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:js!==null?{id:an,overflow:on}:null,retryLane:536870912,hydrationErrors:null},a=P1(e),a.return=t,t.child=a,Sa=t,Lt=null)):e=null,e===null)throw Xs(t);return bR(e)?t.lanes=32:t.lanes=536870912,null}return n=o.children,o=o.fallback,r?(Hs(),r=t.mode,n=Jg({mode:"hidden",children:n},r),o=dl(o,r,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=QC(a),o.childLanes=JC(e,s,a),t.memoizedState=ZC,Hd(null,o)):(zs(t),lR(t,n))}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(l!==null)return L5(e,t,n,s,o,l,i,a)}return r?(Hs(),r=o.fallback,n=t.mode,i=e.child,l=i.sibling,o=Hn(i,{mode:"hidden",children:o.children}),o.subtreeFlags=i.subtreeFlags&1206910976,l!==null?r=Hn(l,r):(r=dl(r,n,a,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,Hd(null,o),o=t.child,r=e.child.memoizedState,r===null?r=QC(a):(n=r.cachePool,n!==null?(i=ta._currentValue,n=n.parent!==i?{parent:i,pool:i}:n):n=k1(),r={baseLanes:r.baseLanes|a,cachePool:n}),o.memoizedState=r,o.childLanes=JC(e,s,a),t.memoizedState=ZC,Hd(e.child,o)):(zs(t),a=e.child,e=a.sibling,a=Hn(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=a,t.memoizedState=null,a)}function lR(e,t){return t=Jg({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Jg(e,t){return e=vo(22,e,null,t),e.lanes=0,e}function Nh(e,t,a){return vl(t,e.child,null,a),e=lR(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function L5(e,t,a,o,r,n,s,i){if(a)return t.flags&256?(zs(t),t.flags&=-257,Nh(e,t,i)):t.memoizedState!==null?(Hs(),t.child=e.child,t.flags|=128,null):(Hs(),n=r.fallback,s=t.mode,r=Jg({mode:"visible",children:r.children},s),n=dl(n,s,i,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,vl(t,e.child,null,i),r=t.child,r.memoizedState=QC(i),r.childLanes=JC(e,o,i),t.memoizedState=ZC,Hd(null,r));if(zs(t),bR(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(r=Error(Z(419)),r.stack="",r.digest=o,Zd({value:r,source:null,stack:null})),Nh(e,t,i)}if(aa||xl(e,t,i,!1),o=(i&e.childLanes)!==0,aa||o){if(Ys.current!==null)return Nh(e,t,i);if(o=yt,o!==null&&(r=t1(o,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,wl(e,r),bo(o,e,r),iR;return LL(n)||kg(),Nh(e,t,i)}return LL(n)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Lt=ur(n.nextSibling),Sa=t,qe=!0,Vs=null,lr=!1,e!==null&&M1(t,e),t=lR(t,r.children),t.flags|=134221824,t)}function $E(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Zh(e.return,t,a)}function eA(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&Cg(a)===null&&(t=e),e=e.sibling}return t}function Vh(e,t,a,o,r,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=r,s.treeForkCount=n)}function rC(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function $C(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var s=ka.current;if(t.flags&128)return Jd(t,s),null;var i=(s&2)!==0;if(i?(s=s&1|2,t.flags|=128):s&=1,Jd(t,s),r==="backwards"&&e!==null?(rC(e),ia(e,t,o,a),rC(e)):ia(e,t,o,a),o=qe?Kd:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$E(e,a,t);else if(e.tag===19)$E(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"backwards":a=eA(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null,rC(t)),Vh(t,!0,r,null,n,o);break;case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Cg(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Vh(t,!0,a,null,n,o);break;case"together":Vh(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=eA(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Vh(t,!1,r,a,n,o)}return t.child}function tA(e,t,a){var o=t.pendingProps;return Ds(t,t.type,o.value),ia(e,t,o.children,a),t.child}function Xn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ks|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(xl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,a=Hn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Hn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uR(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sg(e)))}function R5(e,t,a){switch(t.tag){case 3:fg(t,t.stateNode.containerInfo),Ds(t,ta,e.memoizedState.cache),gl();break;case 27:case 5:TC(t);break;case 4:fg(t,t.stateNode.containerInfo);break;case 10:Ds(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qC(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return zs(t),t.flags|=128,null;o=xl(e,t,a,!1);var r=t.child.childLanes;return o||(a&r)!==0?TP(e,t,a):(zs(t),e=Xn(e,t,a),e!==null?e.sibling:null)}zs(t);break;case 19:if(t.flags&128)return $C(e,t,a);if(r=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(xl(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return $C(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Jd(t,ka.current),o)break;return null;case 22:return t.lanes=0,IP(e,t,a,t.pendingProps);case 24:Ds(t,ta,e.memoizedState.cache)}return Xn(e,t,a)}function wP(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)aa=!0;else{if(!uR(e,a)&&(t.flags&128)===0)return aa=!1,R5(e,t,a);aa=(e.flags&131072)!==0}else aa=!1,qe&&(t.flags&1048576)!==0&&D1(t,Kd,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=il(t.elementType),t.type=e,typeof e=="function")_L(e)?(o=Cl(e,o),t.tag=1,t=QE(null,t,e,o,a)):(t.tag=0,t=KC(null,t,e,o,a));else{if(e!=null){var r=e.$$typeof;if(r===EL){t.tag=11,t=XE(null,t,e,o,a);break e}else if(r===AL){t.tag=14,t=YE(null,t,e,o,a);break e}else if(r===en){t.tag=10,t.type=e,t=tA(null,t,a);break e}}throw t=RC(e)||e,Error(Z(306,t,""))}}return t;case 0:return KC(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=Cl(o,t.pendingProps),QE(e,t,o,r,a);case 3:e:{if(fg(t,t.stateNode.containerInfo),e===null)throw Error(Z(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,HC(e,t),Fd(t,o,null,a);var s=t.memoizedState;if(o=s.cache,Ds(t,ta,o),o!==n.cache&&FC(t,[ta],a,!0),Bd(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=JE(e,t,o,a);break e}else if(o!==r){r=ir(Error(Z(424)),t),Zd(r),t=JE(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Lt=ur(e.firstChild),Sa=t,qe=!0,Vs=null,lr=!0,a=B1(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(gl(),o===r){t=Xn(e,t,a);break e}ia(e,t,o,a)}t=t.child}return t;case 26:return Ju(e,t),e===null?(a=EA(t.type,null,t.pendingProps,null))?t.memoizedState=a:qe||(t.stateNode=gD(t.type,t.pendingProps,Ns.current,t)):t.memoizedState=EA(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return TC(t),e===null&&qe&&(o=t.stateNode=TD(t.type,t.pendingProps,Ns.current),Sa=t,lr=!0,r=Lt,Qs(t.type)?(RL=r,Lt=ur(o.firstChild)):Lt=r),ia(e,t,t.pendingProps.children,a),Ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((r=o=Lt)&&(o=gq(o,t.type,t.pendingProps,lr),o!==null?(t.stateNode=o,Sa=t,Lt=ur(o.firstChild),lr=!1,r=!0):r=!1),r||Xs(t)),TC(t),r=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,vL(r,n)?o=null:s!==null&&vL(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=ZL(e,t,m5,null,null,a),Oc._currentValue=r),Ju(e,t),ia(e,t,o,a),t.child;case 6:return e===null&&qe&&((e=a=Lt)&&(a=xq(a,t.pendingProps,lr),a!==null?(t.stateNode=a,Sa=t,Lt=null,e=!0):e=!1),e||Xs(t)),null;case 13:return TP(e,t,a);case 4:return fg(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=vl(t,null,o,a):ia(e,t,o,a),t.child;case 11:return XE(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,Ju(e,t),ia(e,t,o,a),t.child;case 8:return ia(e,t,t.pendingProps.children,a),t.child;case 12:return ia(e,t,t.pendingProps.children,a),t.child;case 10:return tA(e,t,a);case 9:return r=t.type._context,o=t.pendingProps.children,yl(t),r=Ma(r),o=o(r),t.flags|=1,ia(e,t,o,a),t.child;case 14:return YE(e,t,t.type,t.pendingProps,a);case 15:return RP(e,t,t.type,t.pendingProps,a);case 19:return $C(e,t,a);case 31:return C5(e,t,a);case 22:return IP(e,t,a,t.pendingProps);case 24:return yl(t),o=Ma(ta),e===null?(r=GL(),r===null&&(r=yt,n=qL(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},XL(t),Ds(t,ta,r)):((e.lanes&a)!==0&&(HC(e,t),Fd(t,null,null,a),Bd()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ds(t,ta,o)):(o=n.cache,Ds(t,ta,o),o!==r.cache&&FC(t,[ta],a,!0))),ia(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:qe&&Xg(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:Ju(e,t),ia(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(Z(156,t.tag))}function Bn(e){e.flags|=4}function nC(e,t,a,o,r){var n;if((n=(e.mode&32)!==0)&&(n=a===null?DA(t,o):DA(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(aD())e.flags|=8192;else throw pl=vg,jL}else e.flags&=-16777217}function aA(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!PD(t))if(aD())e.flags|=8192;else throw pl=vg,jL}function Bh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?JA():536870912,e.lanes|=t,wc|=t)}function Ld(e,t){if(!qe)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&1206910976,o|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function I5(e,t,a){var o=t.pendingProps;switch(UL(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Ct(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),_n(ta),Lc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Zu(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,eC())),Ct(t),null;case 26:var r=t.type,n=t.memoizedState;return e===null?(Bn(t),n!==null?(Ct(t),aA(t,n)):(Ct(t),nC(t,r,null,o,a))):n?n!==e.memoizedState?(Bn(t),Ct(t),aA(t,n)):(Ct(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Bn(t),Ct(t),nC(t,r,e,o,a)),null;case 27:if(dg(t),a=Ns.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Bn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Ct(t),t.subtreeFlags&=-33554433,null}e=rn.current,Zu(t)?AE(t,e):(e=TD(r,o,a),t.stateNode=e,Bn(t))}return Ct(t),t.subtreeFlags&=-33554433,null;case 5:if(dg(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Bn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Ct(t),t.subtreeFlags&=-33554433,null}if(n=rn.current,Zu(t))AE(t,n);else{var s=am(Ns.current);switch(n){case 1:n=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=s.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?s.createElement(r,{is:o.is}):s.createElement(r)}}n[Da]=t,n[Lo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch(Na(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Bn(t)}}return Ct(t),t.subtreeFlags&=-33554433,nC(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Bn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(Z(166));if(e=Ns.current,Zu(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Sa,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Da]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||pD(e.nodeValue,a)),e||Xs(t,!0)}else e=am(e).createTextNode(o),e[Da]=t,t.stateNode=e}return Ct(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Zu(t),a!==null){if(e===null){if(!o)throw Error(Z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(557));e[Da]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ct(t),e=!1}else a=eC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Bo(t),t):(Bo(t),null);if((t.flags&128)!==0)throw Error(Z(558))}return Ct(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Zu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(Z(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(Z(317));r[Da]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ct(t),r=!1}else r=eC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Bo(t),t):(Bo(t),null)}return Bo(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bh(t,t.updateQueue),Ct(t),null);case 4:return Lc(),e===null&&yR(t.stateNode.containerInfo),t.flags|=67108864,Ct(t),null;case 10:return _n(t.type),Ct(t),null;case 19:if(WL(t),o=t.memoizedState,o===null)return Ct(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)Ld(o,!1);else{if(qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Cg(e),n!==null){for(t.flags|=128,Ld(o,!1),e=n.updateQueue,t.updateQueue=e,Bh(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)A1(a,e),a=a.sibling;return Jd(t,ka.current&1|2),qe&&Fn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ho()>Mg&&(t.flags|=128,r=!0,Ld(o,!1),t.lanes=4194304)}else{if(!r)if(e=Cg(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Bh(t,e),Ld(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!qe)return Ct(t),null}else 2*Ho()-o.renderingStartTime>Mg&&a!==536870912&&(t.flags|=128,r=!0,Ld(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ho(),e.sibling=null,n=ka.current,n=r?n&1|2:n&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||qe?Jd(t,n):(a=n,Rt(Va,t),Rt(ka,a),qa===null&&(qa=t)),qe&&Fn(t,o.treeForkCount),e}return Ct(t),null;case 22:case 23:return Bo(t),YL(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),a=t.updateQueue,a!==null&&Bh(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Oa(ml),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(ta),Ct(t),null;case 25:return null;case 30:return t.flags|=33554432,Ct(t),null}throw Error(Z(156,t.tag))}function T5(e,t){switch(UL(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(ta),Lc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return dg(t),null;case 31:if(t.memoizedState!==null){if(Bo(t),t.alternate===null)throw Error(Z(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return WL(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Lc(),null;case 10:return _n(t.type),null;case 22:case 23:return Bo(t),YL(),e!==null&&Oa(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(ta),null;case 25:return null;default:return null}}function EP(e,t){switch(UL(t),t.tag){case 3:_n(ta),Lc();break;case 26:case 27:case 5:dg(t);break;case 4:Lc();break;case 31:t.memoizedState!==null&&Bo(t);break;case 13:Bo(t);break;case 19:WL(t);break;case 10:_n(t.type);break;case 22:case 23:Bo(t),YL(),e!==null&&Oa(ml);break;case 24:_n(ta)}}function hm(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var n=a.create,s=a.inst;o=n(),s.destroy=o}a=a.next}while(a!==r)}}catch(i){dt(t,t.return,i)}}function Ws(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var s=o.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,r=t;var l=a,u=i;try{u()}catch(c){dt(r,l,c)}}}o=o.next}while(o!==n)}}catch(c){dt(t,t.return,c)}}function AP(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{z1(t,a)}catch(o){dt(e,e.return,o)}}}function PP(e,t,a){a.props=Cl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){dt(e,t,o)}}function Jr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,n=qn(e.memoizedProps,r);(r.ref===null||r.ref.name!==n)&&(r.ref=vD(n)),o=r.ref;break;case 7:if(e.stateNode===null){var s=new jo(e);Co(e.child,!1,pq,s,void 0,void 0),e.stateNode=s}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(i){dt(e,t,i)}}function Pa(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(r){dt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){dt(e,t,r)}else a.current=null}function wg(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)RD(e.stateNode,t[a])}function oA(e){for(var t=e.return;t!==null&&(fR(t)&&RD(e.stateNode,t.stateNode),!cR(t));)t=t.return}function _d(e){for(var t=e.return;t!==null&&(fR(t)&&hq(e.stateNode,t.stateNode),!cR(t));)t=t.return}function cR(e){return e.tag===5||e.tag===3||e.tag===27}function fR(e){return e&&e.tag===7&&e.stateNode!==null}function eL(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){dt(e,e.return,r)}}function sC(e,t,a){try{var o=e.stateNode;Z5(o,e.type,a,t),o[Lo]=t}catch(r){dt(e,e.return,r)}}function DP(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qs(e.type)||e.tag===4}function iC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qs(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tL(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(r),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=tn)),wg(e,o),tt=!0;else if(r!==4&&(r===27&&(wg(e,o),o=null,Qs(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(tL(e,t,a,o),e=e.sibling;e!==null;)tL(e,t,a,o),e=e.sibling}function Eg(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?a.insertBefore(r,t):a.appendChild(r),wg(e,o),tt=!0;else if(r!==4&&(r===27&&(wg(e,o),o=null,Qs(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Eg(e,t,a,o),e=e.sibling;e!==null;)Eg(e,t,a,o),e=e.sibling}function MP(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Na(t,o,a),t[Da]=e,t[Lo]=a}catch(n){dt(e,e.return,n)}}var Ag=!1,Fo=null;function rA(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Ag=!0)}var $r=null;function nA(){var e=$r;return $r=null,e}var So=0;function zc(e,t,a,o,r){return So=0,OP(e.child,t,a,o,r)}function OP(e,t,a,o,r){for(var n=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(o!==null){var i=bL(s);o.push(i),i.view&&(n=!0)}else n||bL(s).view&&(n=!0);Ag=!0,xD(s,So===0?t:t+"_"+So,a),So++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||OP(e.child,t,a,o,r)&&(n=!0));e=e.sibling}return n}function sn(e,t){for(;e!==null;)e.tag===5?yD(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||sn(e.child,t)),e=e.sibling}function tg(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(tg(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(Z(544));var a=t.name;t=Kn(t.default,t.share),t!=="none"&&(zc(e,a,t,null,!1)||sn(e.child,!1))}e=e.sibling}}function aL(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,r=qn(o,a),n=Kn(o.default,a.paired?o.share:o.enter);n!=="none"?zc(e,r,n,null,!1)?(tg(e),a.paired||t||Ec(e,o.onEnter)):sn(e.child,!1):tg(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)aL(e,t),e=e.sibling;else tg(e)}function oL(e){if(Fo!==null&&Fo.size!==0){var t=Fo;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var r=t.get(o);if(r!==void 0){var n=Kn(a.default,a.share);if(n!=="none"&&(zc(e,o,n,null,!1)?(n=e.stateNode,r.paired=n,n.paired=r,Ec(e,a.onShare)):sn(e.child,!1)),t.delete(o),t.size===0)break}}}oL(e)}e=e.sibling}}}function rL(e){if(e.tag===30){var t=e.memoizedProps,a=qn(t,e.stateNode),o=Fo!==null?Fo.get(a):void 0,r=Kn(t.default,o!==void 0?t.share:t.exit);r!=="none"&&(zc(e,a,r,null,!1)?o!==void 0?(r=e.stateNode,o.paired=r,r.paired=o,Fo.delete(a),Ec(e,t.onShare)):Ec(e,t.onExit):sn(e.child,!1)),Fo!==null&&oL(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)rL(e),e=e.sibling;else Fo!==null&&oL(e)}function kP(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=qn(t,e.stateNode);t=Kn(t.default,t.update),e.flags&=-5,t!=="none"&&zc(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&kP(e);e=e.sibling}}function nL(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,sn(e.child,!1))}nL(e)}e=e.sibling}}function ag(e){if(e.tag===30)e.stateNode.paired=null,sn(e.child,!1),nL(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ag(e),e=e.sibling;else nL(e)}function NP(e){for(e=e.child;e!==null;)e.tag===30?sn(e.child,!1):(e.subtreeFlags&33554432)!==0&&NP(e),e=e.sibling}function dR(e,t,a,o,r,n,s){for(var i=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(n!==null&&So<n.length){var u=n[So],c=bL(l);(u.view||c.view)&&(i=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&xD(l,So===0?a:a+"_"+So,r),i&&(e.flags&4)!==0||($r===null&&($r=[]),$r.push(l,So===0?o:o+"_"+So,t.memoizedProps)),So++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:dR(e,t.child,a,o,r,n,s)&&(i=!0));t=t.sibling}return i}function VP(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,r=qn(a,o),n=Kn(a.default,a.update);if(t){o=o.clones;var s=o===null?null:o.map(aq)}else s=e.memoizedState,e.memoizedState=null;o=e;var i=e.child;So=0,r=dR(o,i,r,r,n,s,!1),(e.flags&4)!==0&&r&&(t||Ec(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&VP(e,t);e=e.sibling}}var ga=!1,it=!1,Kr=!1,lC=!1,sA=typeof WeakSet=="function"?WeakSet:Set,xa=null,Zr=!1,Dd=!1,Pg=!1,sL=!1;function w5(e,t,a){if(e=e.containerInfo,yL=kc,e=b1(e),FL(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var n=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{o.nodeType,s.nodeType}catch{o=null;break e}var i=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==o||n!==0&&f.nodeType!==3||(l=i+n),f!==s||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===o&&++c===n&&(l=i),m===s&&++d===r&&(u=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;for(SL={focusedElem:e,selectionRange:o},kc=!1,a=(a&335544064)===a,xa=t,t=a?9270:1024;xa!==null;){if(e=xa,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&rL(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&rA(e),Fh(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&rL(o),Fh(a);continue}else if(o!==null&&o.memoizedState!==null){a&&rA(e),Fh(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,xa=o):(a&&kP(e),Fh(a))}}Fo=null}function Fh(e){for(;xa!==null;){var t=xa,a=e,o=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&o!==null){a=void 0,r=o.memoizedProps,o=o.memoizedState;var n=t.stateNode;try{var s=Cl(t.type,r);a=n.getSnapshotBeforeUpdate(s,o),n.__reactInternalSnapshotBeforeUpdate=a}catch(i){dt(t,t.return,i)}}break;case 3:if((r&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)CL(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":CL(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=qn(o.memoizedProps,o.stateNode),r=t.memoizedProps,r=Kn(r.default,r.update),r!=="none"&&zc(o,a,r,o.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(Z(163))}if(o=t.sibling,o!==null){o.return=t.return,xa=o;break}xa=t.return}}function BP(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Qr(e,a),o&4&&hm(5,a);break;case 1:if(Qr(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(s){dt(a,a.return,s)}else{var r=Cl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){dt(a,a.return,s)}}o&64&&AP(a),o&512&&Jr(a,a.return);break;case 3:if(Qr(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{z1(e,t)}catch(s){dt(a,a.return,s)}}break;case 27:t===null&&o&4&&MP(a);case 26:case 5:Qr(e,a),t===null&&o&4&&eL(a),o&512&&Jr(a,a.return);break;case 12:Qr(e,a);break;case 31:Qr(e,a),o&4&&_P(e,a);break;case 13:Qr(e,a),o&4&&UP(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=z5.bind(null,a),yq(e,a))));break;case 22:if(o=a.memoizedState!==null||ga,!o){var n=t!==null&&t.memoizedState!==null||it;t=ga,r=it,ga=o,(it=n)&&!r?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),Pr(e,a,o)):Qr(e,a),ga=t,it=r}break;case 30:Qr(e,a),o&512&&Jr(a,a.return);break;case 7:o&512&&Jr(a,a.return);default:Qr(e,a)}}function iL(e,t){for(e=e.child;e!==null;)FP(e,t),e=e.sibling}function FP(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}else{var r=e.stateNode,n=e.memoizedProps.style,s=n!=null&&n.hasOwnProperty("display")?n.display:null;r.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(l){dt(e,e.return,l)}lL(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,tt=!0}catch(l){dt(e,e.return,l)}break;case 18:try{var i=e.stateNode;t?CA(i,!0):CA(e.stateNode,!1)}catch(l){dt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&iL(e,t);break;default:iL(e,t)}}function lL(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:FP(a,o);break e;case 22:a.memoizedState===null&&lL(a,o);break e;default:lL(a,o)}}e=e.sibling}}function zP(e){var t=e.alternate;t!==null&&(e.alternate=null,zP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ot=null,xo=!1;function Ar(e,t,a){for(a=a.child;a!==null;)HP(e,t,a),a=a.sibling}function HP(e,t,a){if(_o&&typeof _o.onCommitFiberUnmount=="function")try{_o.onCommitFiberUnmount(lm,a)}catch{}switch(a.tag){case 26:it||Pa(a,t),Ar(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!it&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Pa(a,t),_d(a);var o=Ot,r=xo;Qs(a.type)&&(Ot=a.stateNode,xo=!1),Ar(e,t,a),wD(a.stateNode,a.type,a.memoizedProps),Ot=o,xo=r;break;case 5:it||Pa(a,t),_d(a);case 6:if(a.tag===6&&_d(a),o=Ot,r=xo,Ot=null,Ar(e,t,a),Ot=o,xo=r,Ot!==null)if(xo)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode),tt=!0}catch(n){dt(a,t,n)}else try{Ot.removeChild(a.stateNode),tt=!0}catch(n){dt(a,t,n)}break;case 18:Ot!==null&&(xo?(e=Ot,bA(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nc(e)):bA(Ot,a.stateNode));break;case 4:o=Ot,r=xo,Ot=a.stateNode.containerInfo,xo=!0,Ar(e,t,a),Ot=o,xo=r;break;case 0:case 11:case 14:case 15:Ws(2,a,t),it||Ws(4,a,t),Ar(e,t,a);break;case 1:it||(Pa(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&PP(a,t,o)),Ar(e,t,a);break;case 21:Ar(e,t,a);break;case 22:it=(o=it)||a.memoizedState!==null,Ar(e,t,a),it=o;break;case 30:Pa(a,t),Ar(e,t,a);break;case 7:it||Pa(a,t),Ar(e,t,a);break;default:Ar(e,t,a)}}function _P(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nc(e)}catch(a){dt(t,t.return,a)}}}function UP(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nc(e)}catch(a){dt(t,t.return,a)}}function E5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sA),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sA),t;default:throw Error(Z(435,e.tag))}}function zh(e,t){var a=E5(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=H5.bind(null,e,o);o.then(r,r)}})}function to(e,t,a){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var n=o[r],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Qs(l.type)){Ot=l.stateNode,xo=!1;break e}break;case 5:Ot=l.stateNode,xo=!1;break e;case 3:case 4:Ot=l.stateNode.containerInfo,xo=!0;break e}l=l.return}if(Ot===null)throw Error(Z(160));HP(s,i,n),Ot=null,xo=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qP(t,e,a),t=t.sibling}var Dr=null;function qP(e,t,a){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var n=0;n<o.length;n++){var s=o[n];s.ref.impl=s.nextImpl}to(t,e,a),ao(e),r&4&&(Ws(3,e,e.return),hm(3,e),Ws(5,e,e.return));break;case 1:to(t,e,a),ao(e),r&512&&(it||o===null||Pa(o,o.return)),r&64&&ga&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(n=Dr,to(t,e,a),ao(e),r&512&&(it||o===null||Pa(o,o.return)),r&4)if(r=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(ga)e.stateNode=gD(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,r=n.ownerDocument||n;t:switch(t){case"title":o=r.getElementsByTagName("title")[0],(!o||o[fm]||o[Da]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(t),r.head.insertBefore(o,r.querySelector("head > title"))),Na(o,t,a),o[Da]=e,ya(o),t=o;break e;case"link":if(n=PA("link","href",r).get(t+(a.href||""))){for(s=0;s<n.length;s++)if(o=n[s],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(s,1);break t}}o=r.createElement(t),Na(o,t,a),r.head.appendChild(o);break;case"meta":if(n=PA("meta","content",r).get(t+(a.content||""))){for(s=0;s<n.length;s++)if(o=n[s],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(s,1);break t}}o=r.createElement(t),Na(o,t,a),r.head.appendChild(o);break;default:throw Error(Z(468,t))}o[Da]=e,ya(o),t=o}e.stateNode=t}else ga||IL(n,e.type,e.stateNode);else e.stateNode=AA(n,a,e.memoizedProps);else r!==a?(r===null?(t=o.stateNode,t===null||it||t.parentNode.removeChild(t)):r.count--,a===null?ga||IL(n,e.type,e.stateNode):AA(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&sC(e,e.memoizedProps,o.memoizedProps);break;case 27:to(t,e,a),ao(e),r&512&&(it||o===null||Pa(o,o.return)),o!==null&&r&4&&sC(e,e.memoizedProps,o.memoizedProps);break;case 5:if(n=Kr,Kr=!1,to(t,e,a),Kr=n,ao(e),r&512&&(it||o===null||Pa(o,o.return)),e.flags&32){t=e.stateNode;try{Ic(t,""),tt=!0}catch(c){dt(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,sC(e,t,o!==null?o.memoizedProps:t)),r&1024&&(lC=!0);break;case 6:if(to(t,e,a),ao(e),r&4){if(e.stateNode===null)throw Error(Z(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,tt=!0}catch(c){dt(e,e.return,c)}}break;case 3:if(tt=!1,sg=null,n=Dr,Dr=om(t.containerInfo),to(t,e,a),Dr=n,ao(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Nc(t.containerInfo)}catch(c){dt(e,e.return,c)}lC&&(lC=!1,GP(e)),tt=!1;break;case 4:r=Kr,Kr=ga,o=dE(),n=Dr,Dr=om(e.stateNode.containerInfo),to(t,e,a),ao(e),Dr=n,tt&&Dd&&(Pg=!0),tt=o,Kr=r;break;case 12:to(t,e,a),ao(e);break;case 31:to(t,e,a),ao(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zh(e,t)));break;case 13:to(t,e,a),ao(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&($g=Ho()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zh(e,t)));break;case 22:n=e.memoizedState!==null,s=o!==null&&o.memoizedState!==null;var i=ga,l=it,u=Kr;ga=i||n,Kr=u||n,it=l||s,to(t,e,a),it=l,Kr=u,ga=i,ao(e),r&8192&&(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,!n||o===null||s||ga||it||(t=s||it,a=ga,o=it,ga=n||ga,it=t,Is(e,2),ga=a,it=o),!n&&Kr||iL(e,n)),r&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,zh(e,a))));break;case 19:to(t,e,a),ao(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zh(e,t)));break;case 30:r&512&&(it||o===null||Pa(o,o.return)),r=dE(),n=Dd,s=(a&335544064)===a,i=e.memoizedProps,Dd=s&&Kn(i.default,i.update)!=="none",to(t,e,a),ao(e),s&&o!==null&&tt&&(e.flags|=4),Dd=n,tt=r;break;case 21:break;case 7:r&512&&(it||o===null||Pa(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:to(t,e,a),ao(e)}}function ao(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(DP(o)){a=o;break}o=o.return}o=null;for(var r=e.return;r!==null;){if(fR(r)){var n=r.stateNode;o===null?o=[n]:o.push(n)}if(cR(r))break;r=r.return}var s=o;if(a==null)throw Error(Z(160));switch(a.tag){case 27:var i=a.stateNode,l=iC(e);Eg(e,l,i,s);break;case 5:var u=a.stateNode;a.flags&32&&(Ic(u,""),a.flags&=-33);var c=iC(e);Eg(e,c,u,s);break;case 3:case 4:var d=a.stateNode.containerInfo,f=iC(e);tL(e,f,d,s);break;default:throw Error(Z(161))}}catch(m){dt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function GP(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;GP(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,kc=!0,t.reset(),kc=!1),e=e.sibling}}function Qu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)jP(t,e),t=t.sibling;else VP(t,!1)}function jP(e,t){var a=e.alternate;if(a===null)aL(e,!1);else switch(e.tag){case 3:if(sL=Zr=!1,nA(),Qu(t,e),!Zr&&!Pg){if(e=$r,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var r=e[o+1];yD(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),sL=!0}$r=null;break;case 5:Qu(t,e);break;case 4:o=Zr,Zr=!1,Qu(t,e),Zr&&(Pg=!0),Zr=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?aL(e,!1):Qu(t,e));break;case 30:o=Zr,r=nA(),Zr=!1,Qu(t,e),Zr&&(e.flags|=4);var n=e.memoizedProps,s=e.stateNode;t=qn(n,s),s=qn(a.memoizedProps,s);var i=Kn(n.default,n.update);i==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,So=0,t=dR(e,a,t,s,i,n,!0),So!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ec(e,e.memoizedProps.onUpdate),$r=r):r!==null&&(r.push.apply(r,$r),$r=r),Zr=(e.flags&32)!==0?!0:o;break;default:Qu(t,e)}}function Qr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)BP(e,t.alternate,t),t=t.sibling}function Is(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:Ws(4,a,a.return),Is(a,o);break;case 1:Pa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&PP(a,a.return,r),Is(a,o);break;case 27:(o&2)!==0&&wD(a.stateNode,a.type,a.memoizedProps);case 5:Pa(a,a.return),a.tag!==5&&a.tag!==27||_d(a),Is(a,o);break;case 6:_d(a);break;case 26:Pa(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||it||r.parentNode.removeChild(r),Is(a,o);break;case 22:a.memoizedState===null&&Is(a,o);break;case 30:Pa(a,a.return),Is(a,o);break;case 7:Pa(a,a.return);default:Is(a,o)}e=e.sibling}}function Pr(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var o=t.alternate,r=e,n=t,s=n.flags,i=(a&1)!==0;switch(n.tag){case 0:case 11:case 15:Pr(r,n,a),hm(4,n);break;case 1:if(Pr(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){dt(o,o.return,c)}if(o=n,r=o.updateQueue,r!==null){var l=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)F1(u[r],l)}catch(c){dt(o,o.return,c)}}i&&s&64&&AP(n),Jr(n,n.return);break;case 27:(a&2)!==0&&MP(n);case 5:n.tag!==5&&n.tag!==27||oA(n),Pr(r,n,a),i&&o===null&&s&4&&eL(n),Jr(n,n.return);break;case 6:oA(n);break;case 26:l=n.stateNode,n.memoizedState!==null||l===null||ga||IL(om(l.ownerDocument),n.type,l),Pr(r,n,a),i&&o===null&&s&4&&eL(n),Jr(n,n.return);break;case 12:Pr(r,n,a);break;case 31:Pr(r,n,a),i&&s&4&&_P(r,n);break;case 13:Pr(r,n,a),i&&s&4&&UP(r,n);break;case 22:n.memoizedState===null&&Pr(r,n,a),Jr(n,n.return);break;case 30:Pr(r,n,a),Jr(n,n.return);break;case 7:Jr(n,n.return);default:Pr(r,n,a)}t=t.sibling}}function mR(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&mm(a))}function pR(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mm(e))}function ar(e,t,a,o){var r=(a&335544064)===a;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)XP(e,t,a,o),t=t.sibling;else r&&NP(t)}function XP(e,t,a,o){var r=(a&335544064)===a;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ag(t);var n=t.flags;switch(t.tag){case 0:case 11:case 15:ar(e,t,a,o),n&2048&&hm(9,t);break;case 1:ar(e,t,a,o);break;case 3:ar(e,t,a,o),r&&sL&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),n&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(t.refCount++,n!=null&&mm(n)));break;case 12:if(n&2048){ar(e,t,a,o),n=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(u){dt(t,t.return,u)}}else ar(e,t,a,o);break;case 31:ar(e,t,a,o);break;case 13:ar(e,t,a,o);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?(r&&i!==null&&i.memoizedState===null&&ag(i),s._visibility&2?ar(e,t,a,o):Ud(e,t)):(r&&i!==null&&i.memoizedState!==null&&ag(t),s._visibility&2?ar(e,t,a,o):(s._visibility|=2,$u(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),n&2048&&mR(i,t);break;case 24:ar(e,t,a,o),n&2048&&pR(t.alternate,t);break;case 30:r&&(n=t.alternate,n!==null&&(sn(n.child,!0),sn(t.child,!0))),ar(e,t,a,o);break;default:ar(e,t,a,o)}}function $u(e,t,a,o,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,s=t,i=a,l=o,u=s.flags;switch(s.tag){case 0:case 11:case 15:$u(n,s,i,l,r),hm(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?$u(n,s,i,l,r):Ud(n,s):(c._visibility|=2,$u(n,s,i,l,r)),r&&u&2048&&mR(s.alternate,s);break;case 24:$u(n,s,i,l,r),r&&u&2048&&pR(s.alternate,s);break;default:$u(n,s,i,l,r)}t=t.sibling}}function Ud(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Ud(a,o),r&2048&&mR(o.alternate,o);break;case 24:Ud(a,o),r&2048&&pR(o.alternate,o);break;default:Ud(a,o)}t=t.sibling}}var ll=8192;function nl(e,t,a){if(e.subtreeFlags&ll)for(e=e.child;e!==null;)YP(e,t,a),e=e.sibling}function YP(e,t,a){switch(e.tag){case 26:nl(e,t,a),e.flags&ll&&(e.memoizedState!==null?Mq(a,Dr,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&MA(a,e)));break;case 5:nl(e,t,a),e.flags&ll&&(e=e.stateNode,(t&335544128)===t&&MA(a,e));break;case 3:case 4:var o=Dr;Dr=om(e.stateNode.containerInfo),nl(e,t,a),Dr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ll,ll=16777216,nl(e,t,a),ll=o):nl(e,t,a));break;case 30:if((e.flags&ll)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var r=e.stateNode;r.paired=null,Fo===null&&(Fo=new Map),Fo.set(o,r)}nl(e,t,a);break;default:nl(e,t,a)}}function WP(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,ZP(o,e)}WP(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)KP(e),e=e.sibling}function KP(e){switch(e.tag){case 0:case 11:case 15:Rd(e),e.flags&2048&&Ws(9,e,e.return);break;case 3:Rd(e);break;case 12:Rd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,og(e)):Rd(e);break;default:Rd(e)}}function og(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,ZP(o,e)}WP(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ws(8,t,t.return),og(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,og(t));break;default:og(t)}e=e.sibling}}function ZP(e,t){for(;xa!==null;){var a=xa;switch(a.tag){case 0:case 11:case 15:Ws(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:mm(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,xa=o;else e:for(a=e;xa!==null;){o=xa;var r=o.sibling,n=o.return;if(zP(o),o===a){xa=null;break e}if(r!==null){r.return=n,xa=r;break e}xa=n}}}var A5={getCacheForType:function(e){var t=Ma(ta),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ma(ta).controller.signal}},P5=typeof WeakMap=="function"?WeakMap:Map,rt=0,yt=null,Xe=null,Ye=0,ct=0,No=null,Ms=!1,Hc=!1,hR=!1,Yn=0,qt=0,Ks=0,hl=0,Dg=0,zo=0,wc=0,qd=null,yo=null,uL=!1,$g=0,QP=0,Mg=1/0,Og=null,_s=null,Ft=0,Or=null,Ll=null,nn=0,cL=0,fL=null,JP=null,vc=null,bc=null,Cc=null,Gd=0,rg=null;function qo(){return(rt&2)!==0&&Ye!==0?Ye&-Ye:Ae.T!==null?xR():a1()}function $P(){if(zo===0)if((Ye&536870912)===0||qe){var e=Th;Th<<=1,(Th&3932160)===0&&(Th=262144),zo=e}else zo=536870912;return e=Va.current,e!==null&&(e.flags|=32),zo}function Ec(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=vD(qn(e.memoizedProps,a))),bc===null&&(bc=[]),bc.push(t.bind(null,o))}}function bo(e,t,a){(e===yt&&(ct===2||ct===9)||e.cancelPendingCommit!==null)&&(Ac(e,0),Os(e,Ye,zo,!1)),cm(e,a),((rt&2)===0||e!==yt)&&(e===yt&&((rt&2)===0&&(hl|=a),qt===4&&Os(e,Ye,zo,!1)),un(e))}function eD(e,t,a){if((rt&6)!==0)throw Error(Z(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||um(e,t),r=o?O5(e,t):uC(e,t,!0),n=o;do{if(r===0){Hc&&!o&&Os(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!D5(a)){r=uC(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=qd;var l=i.current.memoizedState.isDehydrated;if(l&&(Ac(i,s).flags|=256),s=uC(i,s,!1),s!==2&&s!==6){if(hR&&!l){i.errorRecoveryDisabledLanes|=n,hl|=n,r=4;break e}n=yo,yo=r,n!==null&&(yo===null?yo=n:yo.push.apply(yo,n))}r=s}if(n=!1,r!==2)continue}}if(r===1){Ac(e,0),Os(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(Z(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Os(o,t,zo,!Ms);break e;case 2:yo=null;break;case 3:case 5:break;default:throw Error(Z(329))}if((t&62914560)===t&&(r=$g+300-Ho(),10<r)){if(Os(o,t,zo,!Ms),zg(o,0,!0)!==0)break e;nn=t,o.timeoutHandle=SR(iA.bind(null,o,a,yo,Og,uL,t,zo,hl,wc,Ms,n,"Throttled",-0,0),r);break e}iA(o,a,yo,Og,uL,t,zo,hl,wc,Ms,n,null,-0,0)}}break}while(!0);un(e)}function iA(e,t,a,o,r,n,s,i,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,y=(n&335544064)===n;if(d=null,(y||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Fo=null,YP(t,n,d),y&&(p=d,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(p.count++,p.waitingForViewTransition=!0,p=rm.bind(p),y.finished.then(p,p))),p=(n&62914560)===n?$g-Ho():(n&4194048)===n?QP-Ho():0,p=Oq(d,p),p!==null)){nn=n,e.cancelPendingCommit=p(uA.bind(null,e,t,n,a,o,r,s,i,l,u,c,d,null,f,m)),Os(e,n,s,!u);return}uA(e,t,n,a,o,r,s,i,l,u,c,d)}function D5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!Go(n(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Os(e,t,a,o){t=QA(e,t),t&=~Dg,t&=~hl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-Uo(r),s=1<<n;o[n]=-1,r&=~s}a!==0&&$A(e,a,t)}function ex(){return(rt&6)===0?(gm(0,!1),!1):!0}function gR(){if(Xe!==null){if(ct===0)var e=Xe.return;else e=Xe,zn=El=null,$L(e),xc=null,Qd=0,e=Xe;for(;e!==null;)EP(e.alternate,e),e=e.return;Xe=null}}function Ac(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,$5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),nn=0,gR(),yt=e,Xe=a=Hn(e.current,null),Ye=t,ct=0,No=null,Ms=!1,Hc=um(e,t),hR=!1,wc=zo=Dg=hl=Ks=qt=0,yo=qd=null,uL=!1,Yn=QA(e,t),Gg(),a}function tD(e,t){Fe=null,Ae.H=Ig,t===Fc||t===Yg?(t=kE(),ct=3):t===jL?(t=kE(),ct=4):ct=t===iR?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,No=t,Xe===null&&(qt=1,Tg(e,ir(t,e.current)))}function aD(){var e=Va.current;return e===null?!0:(Ye&4194048)===Ye?qa===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===qa:!1}function oD(){var e=Ae.H;return Ae.H=Ig,e===null?Ig:e}function rD(){var e=Ae.A;return Ae.A=A5,e}function kg(){qt=4,Ms||(Ye&4194048)!==Ye&&Va.current!==null||(Hc=!0),(Ks&134217727)===0&&(hl&134217727)===0||yt===null||Os(yt,Ye,zo,!1)}function uC(e,t,a){var o=rt;rt|=2;var r=oD(),n=rD();(yt!==e||Ye!==t)&&(Og=null,Ac(e,t)),t=!1;var s=qt;e:do try{if(ct!==0&&Xe!==null){var i=Xe,l=No;switch(ct){case 8:gR(),s=6;break e;case 3:case 2:case 9:case 6:Va.current===null&&(t=!0);var u=ct;if(ct=0,No=null,dc(e,i,l,u),a&&Hc){s=0;break e}break;default:u=ct,ct=0,No=null,dc(e,i,l,u)}}M5(),s=qt;break}catch(c){tD(e,c)}while(!0);return t&&e.shellSuspendCounter++,zn=El=null,rt=o,Ae.H=r,Ae.A=n,Xe===null&&(yt=null,Ye=0,Gg()),s}function M5(){for(;Xe!==null;)nD(Xe)}function O5(e,t){var a=rt;rt|=2;var o=oD(),r=rD();yt!==e||Ye!==t?(Og=null,Mg=Ho()+500,Ac(e,t)):Hc=um(e,t);e:do try{if(ct!==0&&Xe!==null){t=Xe;var n=No;t:switch(ct){case 1:ct=0,No=null,dc(e,t,n,1);break;case 2:case 9:if(OE(n)){ct=0,No=null,lA(t);break}t=function(){ct!==2&&ct!==9||yt!==e||(ct=7),un(e)},n.then(t,t);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:OE(n)?(ct=0,No=null,lA(t)):(ct=0,No=null,dc(e,t,n,7));break;case 5:var s=null;switch(Xe.tag){case 26:s=Xe.memoizedState;case 5:case 27:var i=Xe;if(s?PD(s):i.stateNode.complete){ct=0,No=null;var l=i.sibling;if(l!==null)Xe=l;else{var u=i.return;u!==null?(Xe=u,tx(u)):Xe=null}break t}}ct=0,No=null,dc(e,t,n,5);break;case 6:ct=0,No=null,dc(e,t,n,6);break;case 8:gR(),qt=6;break e;default:throw Error(Z(462))}}k5();break}catch(c){tD(e,c)}while(!0);return zn=El=null,Ae.H=o,Ae.A=r,rt=a,Xe!==null?0:(yt=null,Ye=0,Gg(),qt)}function k5(){for(;Xe!==null&&!Q3();)nD(Xe)}function nD(e){var t=wP(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?tx(e):Xe=t}function lA(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ZE(a,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=ZE(a,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:$L(t);var o=t;o===Sa&&(qe?(yg(o),o.tag===5&&o.stateNode!=null&&(Lt=o.stateNode)):(yg(o),qe=!0));default:EP(a,t),t=Xe=A1(t,Yn),t=wP(a,t,Yn)}e.memoizedProps=e.pendingProps,t===null?tx(e):Xe=t}function dc(e,t,a,o){zn=El=null,$L(t),xc=null,Qd=0;var r=t.return;try{if(b5(e,r,t,a,Ye)){qt=1,Tg(e,ir(a,e.current)),Xe=null;return}}catch(n){if(r!==null)throw Xe=r,n;qt=1,Tg(e,ir(a,e.current)),Xe=null;return}t.flags&32768?(qe||o===1?e=!0:Hc||(Ye&536870912)!==0?e=!1:(Ms=e=!0,(o===2||o===9||o===3||o===6)&&(o=Va.current,o!==null&&o.tag===13&&(o.flags|=16384))),sD(t,e)):tx(t)}function tx(e){var t=e;do{if((t.flags&32768)!==0){sD(t,Ms);return}e=t.return;var a=I5(t.alternate,t,Yn);if(a!==null){Xe=a;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);qt===0&&(qt=5)}function sD(e,t){do{var a=T5(e.alternate,e);if(a!==null){a.flags&=32767,Xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Xe=e;return}Xe=e=a}while(e!==null);qt=6,Xe=null}function uA(e,t,a,o,r,n,s,i,l,u,c,d){e.cancelPendingCommit=null;do ax();while(Ft!==0);if((rt&6)!==0)throw Error(Z(327));if(t!==null){if(t===e.current)throw Error(Z(177));e===yt&&(Xe=yt=null,Ye=0),Ll=t,Or=e,nn=a,fL=r,JP=o,N5(e,t,a,s,i,l,d)}}function N5(e,t,a,o,r,n,s){var i=t.lanes|t.childLanes;if(cL=i,i|=zL,i4(e,a,i,o,r,n),bc=null,(a&335544064)===a?(Cc=u5(e),o=10262):(Cc=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,_5(mg,function(){return hL(),null})):(e.callbackNode=null,e.callbackPriority=0),Ag=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Ae.T,Ae.T=null,r=nt.p,nt.p=2,n=rt,rt|=4;try{w5(e,t,a)}finally{rt=n,nt.p=r,Ae.T=o}}Ft=1,Ag?vc=nq(s,e.containerInfo,Cc,dL,mL,B5,pL,hL,V5,null,null):(dL(),mL(),pL())}function V5(e){if(Ft!==0){var t=Or.onRecoverableError;t(e,{componentStack:null})}}function B5(){Ft===3&&(Ft=0,jP(Ll,Or),Ft=4)}function dL(){if(Ft===1){Ft=0;var e=Or,t=Ll,a=nn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=Ae.T,Ae.T=null;var r=nt.p;nt.p=2;var n=rt;rt|=4;try{Dd=Pg=!1,qP(t,e,a),a=SL;var s=b1(e.containerInfo),i=a.focusedElem,l=a.selectionRange;if(s!==i&&i&&i.ownerDocument&&v1(i.ownerDocument.documentElement,i)){if(l!==null&&FL(i)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=i.textContent.length,y=Math.min(l.start,p),v=l.end===void 0?y:Math.min(l.end,p);!m.extend&&y>v&&(s=v,v=y,y=s);var g=IE(i,y),h=IE(i,v);if(g&&h&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var x=d.createRange();x.setStart(g.node,g.offset),m.removeAllRanges(),y>v?(m.addRange(x),m.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),m.addRange(x))}}}}for(d=[],m=i;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<d.length;i++){var S=d[i];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}kc=!!yL,SL=yL=null}finally{rt=n,nt.p=r,Ae.T=o}}e.current=t,Ft=2}}function mL(){if(Ft===2){Ft=0;var e=Or,t=Ll,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Ae.T,Ae.T=null;var o=nt.p;nt.p=2;var r=rt;rt|=4;try{BP(e,t.alternate,t)}finally{rt=r,nt.p=o,Ae.T=a}}Ft=3}}function pL(){if(Ft===4||Ft===3){Ft=0;var e=vc;vc=null,J3();var t=Or,a=Ll,o=nn,r=JP,n=(o&335544064)===o?10262:10256;if((a.subtreeFlags&n)!==0||(a.flags&n)!==0?Ft=5:(Ft=0,Ll=Or=null,iD(t,t.pendingLanes)),n=t.pendingLanes,n===0&&(_s=null),ML(o),a=a.stateNode,_o&&typeof _o.onCommitFiberRoot=="function")try{_o.onCommitFiberRoot(lm,a,void 0,(a.current.flags&128)===128)}catch{}if(r!==null){a=Ae.T,n=nt.p,nt.p=2,Ae.T=null;try{for(var s=t.onRecoverableError,i=0;i<r.length;i++){var l=r[i];s(l.value,{componentStack:l.stack})}}finally{Ae.T=a,nt.p=n}}if(r=bc,s=Cc,Cc=null,r!==null&&(bc=null,s===null&&(s=[]),e!==null))for(l=0;l<r.length;l++)a=(0,r[l])(s),a!==void 0&&e.finished.finally(a);(nn&3)!==0&&ax(),un(t),n=t.pendingLanes,(o&261930)!==0&&(n&42)!==0?t===rg?Gd++:(Gd=0,rg=t):(Gd=0,rg=null),gm(0,!1)}}function iD(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mm(t)))}function ax(){return vc!==null&&(vc.skipTransition(),vc=null),dL(),mL(),pL(),hL()}function hL(){if(Ft!==5)return!1;var e=Or,t=cL;cL=0;var a=ML(nn),o=Ae.T,r=nt.p;try{nt.p=32>a?32:a,Ae.T=null,a=fL,fL=null;var n=Or,s=nn;if(Ft=0,Ll=Or=null,nn=0,(rt&6)!==0)throw Error(Z(331));var i=rt;if(rt|=4,KP(n.current),XP(n,n.current,s,a),rt=i,gm(0,!1),_o&&typeof _o.onPostCommitFiberRoot=="function")try{_o.onPostCommitFiberRoot(lm,n)}catch{}return!0}finally{nt.p=r,Ae.T=o,iD(e,t)}}function cA(e,t,a){t=ir(a,t),t=WC(e.stateNode,t,2),e=Fs(e,t,2),e!==null&&(cm(e,2),un(e))}function dt(e,t,a){if(e.tag===3)cA(e,e,a);else for(;t!==null;){if(t.tag===3){cA(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(_s===null||!_s.has(o))){e=ir(a,e),a=CP(2),o=Fs(t,a,2),o!==null&&(LP(a,o,t,e),cm(o,2),un(o));break}}t=t.return}}function cC(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new P5;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(hR=!0,r.add(a),e=F5.bind(null,e,t,a),t.then(e,e))}function F5(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,yt===e&&(Ye&a)===a&&((qt===4||qt===3&&(Ye&62914560)===Ye&&300>Ho()-$g)&&(rt&2)===0?Ac(e,0):Dg|=a,wc===Ye&&(wc=0)),un(e)}function lD(e,t){t===0&&(t=JA()),e=wl(e,t),e!==null&&(cm(e,t),un(e))}function z5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),lD(e,a)}function H5(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(Z(314))}o!==null&&o.delete(t),lD(e,a)}function _5(e,t){return PL(e,t)}var Pc=null,ec=null,gL=!1,Ng=!1,fC=!1,ks=0;function un(e){e!==ec&&e.next===null&&(ec===null?Pc=ec=e:ec=ec.next=e),Ng=!0,gL||(gL=!0,q5())}function gm(e,t){if(!fC&&Ng){fC=!0;do for(var a=!1,o=Pc;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var s=o.suspendedLanes,i=o.pingedLanes;n=(1<<31-Uo(42|e)+1)-1,n&=r&~(s&~i),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,fA(o,n))}else n=Ye,n=zg(o,o===yt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||um(o,n)||(a=!0,fA(o,n));o=o.next}while(a);fC=!1}}function U5(){uD()}function uD(){Ng=gL=!1;var e=0;ks!==0&&J5()&&(e=ks);for(var t=Ho(),a=null,o=Pc;o!==null;){var r=o.next,n=cD(o,t);n===0?(o.next=null,a===null?Pc=r:a.next=r,r===null&&(ec=a)):(a=o,(e!==0||(n&3)!==0)&&(Ng=!0)),o=r}Ft!==0&&Ft!==5||gm(e,!1),ks!==0&&(ks=0)}function cD(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var s=31-Uo(n),i=1<<s,l=r[s];l===-1?((i&a)===0||(i&o)!==0)&&(r[s]=s4(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}if(t=yt,a=Ye,a=zg(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(ct===2||ct===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&qb(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||um(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&qb(o),ML(a)){case 2:case 8:a=KA;break;case 32:a=mg;break;case 268435456:a=ZA;break;default:a=mg}return o=fD.bind(null,e),a=PL(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&qb(o),e.callbackPriority=2,e.callbackNode=null,2}function fD(e,t){if(Ft!==0&&Ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ax()&&e.callbackNode!==a)return null;var o=Ye;return o=zg(e,e===yt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(eD(e,o,t),cD(e,Ho()),e.callbackNode!=null&&e.callbackNode===a?fD.bind(null,e):null)}function fA(e,t){if(ax())return null;eD(e,t,!0)}function q5(){eq(function(){(rt&6)!==0?PL(WA,U5):uD()})}function xR(){if(ks===0){var e=Sl;e===0&&(e=Ih,Ih<<=1,(Ih&261888)===0&&(Ih=256)),ks=e}return ks}function dA(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xh(e)}function G5(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=dA((r[Lo]||null).action),s=o.submitter;s&&(t=(t=s[Lo]||null)?dA(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var i=new _g("action","action",null,o,r);e.push({event:i,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ks!==0){var l=new FormData(r,s);XC(a,{pending:!0,data:l,method:r.method,action:n},null,l)}}else typeof n=="function"&&(i.preventDefault(),l=new FormData(r,s),XC(a,{pending:!0,data:l,method:r.method,action:n},n,l))},currentTarget:r}]})}}for(Hh=0;Hh<NC.length;Hh++)_h=NC[Hh],mA=_h.toLowerCase(),pA=_h[0].toUpperCase()+_h.slice(1),kr(mA,"on"+pA);var _h,mA,pA,Hh;kr(L1,"onAnimationEnd");kr(R1,"onAnimationIteration");kr(I1,"onAnimationStart");kr("dblclick","onDoubleClick");kr("focusin","onFocus");kr("focusout","onBlur");kr(t5,"onTransitionRun");kr(a5,"onTransitionStart");kr(o5,"onTransitionCancel");kr(T1,"onTransitionEnd");Rc("onMouseEnter",["mouseout","mouseover"]);Rc("onMouseLeave",["mouseout","mouseover"]);Rc("onPointerEnter",["pointerout","pointerover"]);Rc("onPointerLeave",["pointerout","pointerover"]);Il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Il("onBeforeInput",["compositionend","keypress","textInput","paste"]);Il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var em="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(" "),j5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(em));function dD(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var s=o.length-1;0<=s;s--){var i=o[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&r.isPropagationStopped())break e;n=i,r.currentTarget=u;try{n(r)}catch(c){hg(c)}r.currentTarget=null,n=l}else for(s=0;s<o.length;s++){if(i=o[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&r.isPropagationStopped())break e;n=i,r.currentTarget=u;try{n(r)}catch(c){hg(c)}r.currentTarget=null,n=l}}}}function je(e,t){var a=t[lE];a===void 0&&(a=t[lE]=new Set);var o=e+"__bubble";a.has(o)||(mD(t,e,2,!1),a.add(o))}function dC(e,t,a){var o=0;t&&(o|=4),mD(a,e,o,t)}var Uh="_reactListening"+Math.random().toString(36).slice(2);function yR(e){if(!e[Uh]){e[Uh]=!0,r1.forEach(function(a){a!=="selectionchange"&&(j5.has(a)||dC(a,!1,e),dC(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uh]||(t[Uh]=!0,dC("selectionchange",!1,t))}}function mD(e,t,a,o){switch(BD(t)){case 2:var r=Bq;break;case 8:r=Fq;break;default:r=IR}a=r.bind(null,t,a,e),r=void 0,!DC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function mC(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var i=o.stateNode.containerInfo;if(i===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;i!==null;){if(s=ul(i),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){o=n=s;continue e}i=i.parentNode}}o=o.return}d1(function(){var u=n,c=kL(a),d=[];e:{var f=w1.get(e);if(f!==void 0){var m=_g,p=e;switch(e){case"keypress":if(Wh(a)===0)break e;case"keydown":case"keyup":m=D4;break;case"focusin":p="focus",m=Kb;break;case"focusout":p="blur",m=Kb;break;case"beforeblur":case"afterblur":m=Kb;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":m=gE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=S4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=V4;break;case L1:case R1:case I1:m=C4;break;case T1:m=F4;break;case"scroll":case"scrollend":m=x4;break;case"wheel":m=H4;break;case"copy":case"cut":case"paste":m=R4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=yE;break;case"submit":m=k4;break;case"toggle":case"beforetoggle":m=U4}var y=(t&4)!==0,v=!y&&(e==="scroll"||e==="scrollend"),g=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,x;h!==null;){var S=h;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||g===null||(S=Xd(h,g),S!=null&&y.push(tm(h,S,x))),v)break;h=h.return}0<y.length&&(f=new m(f,p,null,a,c),d.push({event:f,listeners:y}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&a!==PC&&(p=a.relatedTarget||a.fromElement)&&(ul(p)||p[Vc]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?ul(m):null,m!==null&&(v=im(m),y=m.tag,m!==v||y!==5&&y!==27&&y!==6)&&(m=null)):(f=null,m=u),f!==m&&(y=gE,S="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=yE,S="onPointerLeave",g="onPointerEnter",h="pointer"),v=f==null?p:Ad(f),x=m==null?p:Ad(m),p=new y(S,h+"leave",f,a,c),p.target=v,p.relatedTarget=x,S=null,ul(c)===u&&(y=new y(g,h+"enter",m,a,c),y.target=x,y.relatedTarget=v,S=y),v=S,y=f&&m?yC(f,m,X5):null,f!==null&&hA(d,p,f,y,!1),m!==null&&v!==null&&hA(d,v,m,y,!0)))}e:{if(f=u?Ad(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var b=CE;else if(bE(f))if(y1)b=J4;else{b=Z4;var I=K4}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&OL(u.elementType)&&(b=CE):b=Q4;if(b&&(b=b(e,u))){x1(d,b,a,c);break e}I&&I(e,f,u)}switch(I=u?Ad(u):window,e){case"focusin":(bE(I)||I.contentEditable==="true")&&(sc=I,OC=u,kd=null);break;case"focusout":kd=OC=sc=null;break;case"mousedown":kC=!0;break;case"contextmenu":case"mouseup":case"dragend":kC=!1,TE(d,a,c);break;case"selectionchange":if(e5)break;case"keydown":case"keyup":TE(d,a,c)}var L;if(BL)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else nc?h1(e,a)&&(C="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(C="onCompositionStart");C&&(p1&&a.locale!=="ko"&&(nc||C!=="onCompositionStart"?C==="onCompositionEnd"&&nc&&(L=m1()):(Ps=c,NL="value"in Ps?Ps.value:Ps.textContent,nc=!0)),I=Vg(u,C),0<I.length&&(C=new xE(C,e,null,a,c),d.push({event:C,listeners:I}),L?C.data=L:(L=g1(a),L!==null&&(C.data=L)))),(L=G4?j4(e,a):X4(e,a))&&(C=Vg(u,"onBeforeInput"),0<C.length&&(I=new xE("onBeforeInput","beforeinput",null,a,c),d.push({event:I,listeners:C}),I.data=L)),G5(d,e,u,a,c)}dD(d,t)})}function tm(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Vg(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=Xd(e,a),r!=null&&o.unshift(tm(e,r,n)),r=Xd(e,t),r!=null&&o.push(tm(e,r,n))),e.tag===3)return o;e=e.return}return[]}function X5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hA(e,t,a,o,r){for(var n=t._reactName,s=[];a!==null&&a!==o;){var i=a,l=i.alternate,u=i.stateNode;if(i=i.tag,l!==null&&l===o)break;i!==5&&i!==26&&i!==27||u===null||(l=u,r?(u=Xd(a,n),u!=null&&s.unshift(tm(a,u,l))):r||(u=Xd(a,n),u!=null&&s.push(tm(a,u,l)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var Y5=/\r\n?/g,W5=/\u0000|\uFFFD/g;function gA(e){return(typeof e=="string"?e:""+e).replace(Y5,`
9
- `).replace(W5,"")}function pD(e,t){return t=gA(t),gA(e)===t}function ft(e,t,a,o,r,n){switch(a){case"children":if(typeof o=="string")t==="body"||t==="textarea"&&o===""||Ic(e,o);else if(typeof o=="number"||typeof o=="bigint")t!=="body"&&Ic(e,""+o);else return;break;case"className":Eh(e,"class",o);break;case"tabIndex":Eh(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Eh(e,a,o);break;case"style":f1(e,o,n);return;case"data":if(t!=="object"){Eh(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Xh(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.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 n=="function"&&(a==="formAction"?(t!=="input"&&ft(e,t,"name",r.name,r,null),ft(e,t,"formEncType",r.formEncType,r,null),ft(e,t,"formMethod",r.formMethod,r,null),ft(e,t,"formTarget",r.formTarget,r,null)):(ft(e,t,"encType",r.encType,r,null),ft(e,t,"method",r.method,r,null),ft(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Xh(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=tn);return;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Xh(o),e.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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":je("beforetoggle",e),je("toggle",e),jh(e,"popover",o);break;case"xlinkActuate":Vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Vn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Vn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Vn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Vn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":jh(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=h4.get(a)||a,jh(e,a,o);else return}tt=!0}function xL(e,t,a,o,r,n){switch(a){case"style":f1(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")Ic(e,o);else if(typeof o=="number"||typeof o=="bigint")Ic(e,""+o);else return;break;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"onClick":o!=null&&(e.onclick=tn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!n1.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),t=e[Lo]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(n,t,r),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,r);break e}tt=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):jh(e,a,o)}return}tt=!0}function Na(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,n,s,a,null)}}r&&ft(e,t,"srcSet",a.srcSet,a,null),o&&ft(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var i=n=s=r=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":r=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":n=c;break;case"defaultValue":i=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Z(137,t));break;default:ft(e,t,o,c,a,null)}}l1(e,n,i,l,u,s,r,!1);return;case"select":je("invalid",e),o=s=n=null;for(r in a)if(a.hasOwnProperty(r)&&(i=a[r],i!=null))switch(r){case"value":n=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:ft(e,t,r,i,a,null)}t=n,a=s,e.multiple=!!o,t!=null?pc(e,!!o,t,!1):a!=null&&pc(e,!!o,a,!0);return;case"textarea":je("invalid",e),n=r=o=null;for(s in a)if(a.hasOwnProperty(s)&&(i=a[s],i!=null))switch(s){case"value":o=i;break;case"defaultValue":r=i;break;case"children":n=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Z(91));break;default:ft(e,t,s,i,a,null)}c1(e,o,r,n);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ft(e,t,l,o,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(o=0;o<em.length;o++)je(em[o],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,u,o,a,null)}return;default:if(OL(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&xL(e,t,c,o,a,void 0));return}}for(i in a)a.hasOwnProperty(i)&&(o=a[i],o!=null&&ft(e,t,i,o,a,null))}var K5={};function Z5(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,s=null,i=null,l=null,u=null,c=null;for(m in a){var d=a[m];if(a.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:o.hasOwnProperty(m)||ft(e,t,m,null,o,d)}}for(var f in o){var m=o[f];if(d=a[f],o.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(tt=!0),n=m;break;case"name":m!==d&&(tt=!0),r=m;break;case"checked":m!==d&&(tt=!0),u=m;break;case"defaultChecked":m!==d&&(tt=!0),c=m;break;case"value":m!==d&&(tt=!0),s=m;break;case"defaultValue":m!==d&&(tt=!0),i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(Z(137,t));break;default:m!==d&&ft(e,t,f,m,o,d)}}AC(e,s,i,l,u,c,n,r);return;case"select":m=s=i=f=null;for(n in a)if(l=a[n],a.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":m=l;default:o.hasOwnProperty(n)||ft(e,t,n,null,o,l)}for(r in o)if(n=o[r],l=a[r],o.hasOwnProperty(r)&&(n!=null||l!=null))switch(r){case"value":n!==l&&(tt=!0),f=n;break;case"defaultValue":n!==l&&(tt=!0),i=n;break;case"multiple":n!==l&&(tt=!0),s=n;default:n!==l&&ft(e,t,r,n,o,l)}t=i,a=s,o=m,f!=null?pc(e,!!a,f,!1):!!o!=!!a&&(t!=null?pc(e,!!a,t,!0):pc(e,!!a,a?[]:"",!1));return;case"textarea":m=f=null;for(i in a)if(r=a[i],a.hasOwnProperty(i)&&r!=null&&!o.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:ft(e,t,i,null,o,r)}for(s in o)if(r=o[s],n=a[s],o.hasOwnProperty(s)&&(r!=null||n!=null))switch(s){case"value":r!==n&&(tt=!0),f=r;break;case"defaultValue":r!==n&&(tt=!0),m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(Z(91));break;default:r!==n&&ft(e,t,s,r,o,n)}u1(e,f,m);return;case"option":for(var p in a)if(f=a[p],a.hasOwnProperty(p)&&f!=null&&!o.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:ft(e,t,p,null,o,f)}for(l in o)if(f=o[l],m=a[l],o.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(tt=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:ft(e,t,l,f,o,m)}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 y in a)f=a[y],a.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&ft(e,t,y,null,o,f);for(u in o)if(f=o[u],m=a[u],o.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(Z(137,t));break;default:ft(e,t,u,f,o,m)}return;default:if(OL(t)){for(var v in a)f=a[v],a.hasOwnProperty(v)&&f!==void 0&&!o.hasOwnProperty(v)&&xL(e,t,v,void 0,o,f);for(c in o)f=o[c],m=a[c],!o.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||xL(e,t,c,f,o,m);return}}for(var g in a)f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g)&&ft(e,t,g,null,o,f);for(d in o)f=o[d],m=a[d],!o.hasOwnProperty(d)||f===m||f==null&&m==null||ft(e,t,d,f,o,m)}function xA(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],n=r.transferSize,s=r.initiatorType,i=r.duration;if(n&&i&&xA(s)){for(s=0,i=r.responseEnd,o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>i)break;var c=l.transferSize,d=l.initiatorType;c&&xA(d)&&(l=l.responseEnd,s+=c*(l<i?1:(i-u)/(l-u)))}if(--o,t+=8*(n+s)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yL=null,SL=null;function am(e){return e.nodeType===9?e:e.ownerDocument}function yA(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hD(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gD(e,t,a,o){return a=am(a).createElement(e),a[Da]=o,a[Lo]=t,Na(a,e,t),ya(a),a}function vL(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pC=null;function J5(){var e=window.event;return e&&e.type==="popstate"?e===pC?!1:(pC=e,!0):(pC=null,!1)}var SR=typeof setTimeout=="function"?setTimeout:void 0,$5=typeof clearTimeout=="function"?clearTimeout:void 0,SA=typeof Promise=="function"?Promise:void 0,vA=typeof requestAnimationFrame=="function"?requestAnimationFrame:SR,eq=typeof queueMicrotask=="function"?queueMicrotask:typeof SA<"u"?function(e){return SA.resolve(null).then(e).catch(tq)}:SR;function tq(e){setTimeout(function(){throw e})}function Qs(e){return e==="head"}function bA(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Nc(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")gC(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,gC(a);for(var n=a.firstChild;n;){var s=n.nextSibling,i=n.nodeName;n[fm]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a==="body"&&gC(e.ownerDocument.body);a=r}while(a);Nc(t)}function CA(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function xD(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var r=o=0;r<t.length;r++){var n=t[r];0<n.width&&0<n.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function yD(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function SD(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function bL(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return SD(t,a,e)}function aq(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return SD(t,a,e)}function oq(e){return e.documentElement.clientHeight}function rq(e){this.addEventListener("load",e),this.addEventListener("error",e)}function nq(e,t,a,o,r,n,s,i,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;o();var y=[];if(p==="loaded"&&(oq(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),p=y.length,e!==null)for(var v=e.suspenseyImages,g=0,h=0;h<v.length;h++){var x=v[h];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<f.innerHeight&&S.left<f.innerWidth){if(g+=DD(x),g>ig){y.length=p;break}x=new Promise(rq.bind(x)),y.push(x)}}}if(0<y.length)return f=Promise.race([Promise.all(y),new Promise(function(b){return setTimeout(b,500)})]).then(r,r),(m?Promise.allSettled([m.finished,f]):f).then(n,n);if(r(),m)return m.finished.then(n,n);n()},types:a});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],y=p.effect,v=y.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){d.push(p),p=y.getKeyframes();for(var g=v=void 0,h=!0,x=0;x<p.length;x++){var S=p[x],b=S.width;if(v===void 0)v=b;else if(v!==b){h=!1;break}if(b=S.height,g===void 0)g=b;else if(g!==b){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&v!==void 0&&g!==void 0&&(y.setKeyframes(p),h=getComputedStyle(y.target,y.pseudoElement),h.width!==v||h.height!==g)&&(h=p[0],h.width=v,h.height=g,h=p[p.length-1],h.width=v,h.height=g,y.setKeyframes(p))}}s()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{o(),r(),s()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),i()}),c}catch{return o(),r(),s(),null}}function cl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}cl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:St({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};cl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],r=0;r<a.length;r++){var n=a[r].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[r])}return o};cl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function vD(e){return{name:e,group:new cl("group",e),imagePair:new cl("image-pair",e),old:new cl("old",e),new:new cl("new",e)}}function jo(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}jo.prototype.addEventListener=function(e,t,a){var o=null,r=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(bD(n,e,t,a)===-1){var s=this,i=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(i=function(l){s.removeEventListener(e,t,a),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(r=s.removeEventListener.bind(s,e,t,a),o.addEventListener("abort",r,{once:!0}),r=o.removeEventListener.bind(o,"abort",r)),o=Dc(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:i,cleanup:r}),Co(this._fragmentFiber.child,!1,sq,e,i,o)}this._eventListeners=n}};function sq(e,t,a,o){return la(e).addEventListener(t,a,o),!1}jo.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=bD(o,e,t,a),t!==-1)){var r=o[t];a=r.attachedListener;var n=r.cleanup;r=Dc(r.optionsOrUseCapture),Co(this._fragmentFiber.child,!1,iq,e,a,r),o.splice(t,1),n!==null&&n()}};function iq(e,t,a,o){return la(e).removeEventListener(t,a,o),!1}function Dc(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function LA(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function bD(e,t,a,o){if(e.length===0)return-1;o=LA(o);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===t&&n.listener===a&&LA(n.optionsOrUseCapture)===o)return r}return-1}jo.prototype.dispatchEvent=function(e){var t=Rl(this._fragmentFiber);if(t===null)return!0;t=la(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var n=a[r];o.addEventListener(n.type,n.attachedListener,Dc(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(r=0;r<a.length;r++)n=a[r],o.removeEventListener(n.type,n.attachedListener,Dc(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};jo.prototype.focus=function(e){Co(this._fragmentFiber.child,!0,CD,e,void 0,void 0)};function CD(e,t){return e.tag===6?!1:(e=la(e),Sq(e,t))}jo.prototype.focusLast=function(e){var t=[];Co(this._fragmentFiber.child,!0,vR,t,void 0,void 0);for(var a=t.length-1;0<=a&&!CD(t[a],e);a--);};function vR(e,t){return t.push(e),!1}jo.prototype.blur=function(){var e=Rl(this._fragmentFiber);e!==null&&(e=la(e),e=am(e).activeElement,e!==null&&Co(this._fragmentFiber.child,!1,lq,e,void 0,void 0))};function lq(e,t){return e.tag===6?!1:(e=la(e),e===t||e.contains(t)?(t.blur(),!0):!1)}jo.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Co(this._fragmentFiber.child,!1,uq,e,void 0,void 0)};function uq(e,t){return e.tag===6||(e=la(e),t.observe(e)),!1}jo.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Co(this._fragmentFiber.child,!1,cq,e,void 0,void 0);for(var a=t=0;a<Mr.length;a++){var o=Mr[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Mr[t++]=o}Mr.length=t}};function cq(e,t){return e.tag===6||(e=la(e),t.unobserve(e)),!1}var Mr=[],hC=!1;function fq(e,t,a){Mr.push({fragmentInstance:e,observer:t,instance:a}),hC||(hC=!0,vq(function(){hC=!1;var o=Mr;Mr=[];for(var r=0;r<o.length;r++){var n=o[r];n.observer.unobserve(n.instance)}}))}jo.prototype.getClientRects=function(){var e=[];return Co(this._fragmentFiber.child,!1,dq,e,void 0,void 0),e};function dq(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=la(e),t.push.apply(t,e.getClientRects());return!1}jo.prototype.getRootNode=function(e){var t=Rl(this._fragmentFiber);return t===null?this:la(t).getRootNode(e)};jo.prototype.compareDocumentPosition=function(e){var t=Rl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Co(this._fragmentFiber.child,!1,vR,a,void 0,void 0);var o=la(t);if(a.length===0){if(a=o,aE(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var r=o=a.compareDocumentPosition(e);return a===e?r=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=GA(t)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=la(a).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=la(a[0]),r=la(a[a.length-1]);var n=aE(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),i=r.compareDocumentPosition(e),l=s&Node.DOCUMENT_POSITION_CONTAINED_BY||i&Node.DOCUMENT_POSITION_CONTAINED_BY;return i=o&&n&&s&Node.DOCUMENT_POSITION_FOLLOWING&&i&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&r===e||l||i?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||mq(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function mq(e,t,a,o,r){var n=ul(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=r.ownerDocument,r===n||r===n.documentElement||r===n.body;e:{for(n=t,t=Rl(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=yC(a,n,oE),t===null?t=!1:(Co(t,!0,q3,n,a),n=tc,tc=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=yC(o,n,oE),t===null?t=!1:(Co(t,!0,G3,n,o),n=tc,xC=tc=null,t=n!==null)),t):!1}function RA(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}jo.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(Z(566));var t=[];Co(this._fragmentFiber.child,!1,vR,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=GA(this._fragmentFiber);if(o=a?o[1]||o[0]||Rl(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=la(o),RA(e,a);return}if(o=la(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var r=t[o];r.tag===6?(r=la(r),RA(r,a)):la(r).scrollIntoView(e),o+=a?-1:1}};function pq(e,t){return e=la(e),LD(e,t),!1}function LD(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function RD(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.addEventListener(r.type,r.attachedListener,Dc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var s=0,i=0;i<Mr.length;i++){var l=Mr[i];(l.fragmentInstance!==t||l.observer!==n||l.instance!==e)&&(Mr[s++]=l)}Mr.length=s,n.observe(e)}),LD(e,t))}function hq(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.removeEventListener(r.type,r.attachedListener,Dc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin=="string"?fq(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function CL(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":CL(a),Hg(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function gq(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[fm])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=ur(e.nextSibling),e===null)break}return null}function xq(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ur(e.nextSibling),e===null))return null;return e}function ID(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ur(e.nextSibling),e===null))return null;return e}function LL(e){return e.data==="$?"||e.data==="$~"}function bR(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yq(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function ur(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var RL=null;function IA(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ur(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function TA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Sq(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function vq(e){vA(function(){vA(function(t){return e(t)})})}function TD(e,t,a){switch(t=am(a),e){case"html":if(e=t.documentElement,!e)throw Error(Z(452));return e;case"head":if(e=t.head,!e)throw Error(Z(453));return e;case"body":if(e=t.body,!e)throw Error(Z(454));return e;default:throw Error(Z(451))}}function wD(e,t,a){for(var o in a){var r=a[o];a.hasOwnProperty(o)&&r!=null&&ft(e,t,o,null,K5,r)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===tn&&(e.onclick=null),Hg(e)}function gC(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hg(e)}var cr=new Map,wA=new Set;function om(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Zn=nt.d;nt.d={f:bq,r:Cq,D:Lq,C:Rq,L:Iq,m:Tq,X:Eq,S:wq,M:Aq};function bq(){var e=Zn.f(),t=ex();return e||t}function Cq(e){var t=Bc(e);t!==null&&t.tag===5&&t.type==="form"?fP(t):Zn.r(e)}var _c=typeof document>"u"?null:document;function ED(e,t,a){var o=_c;if(o&&typeof t=="string"&&t){var r=sr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),wA.has(r)||(wA.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Na(t,"link",e),ya(t),o.head.appendChild(t)))}}function Lq(e){Zn.D(e),ED("dns-prefetch",e,null)}function Rq(e,t){Zn.C(e,t),ED("preconnect",e,t)}function Iq(e,t,a){Zn.L(e,t,a);var o=_c;if(o&&e&&t){var r='link[rel="preload"][as="'+sr(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+sr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+sr(a.imageSizes)+'"]')):r+='[href="'+sr(e)+'"]';var n=r;switch(t){case"style":n=Mc(e);break;case"script":n=Uc(e)}if(!(cr.has(n)||(e=St({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),cr.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(xm(n))||t==="script"&&o.querySelector(ym(n))))){var s=o.createElement("link");Na(s,"link",e),t==="style"&&(s[pg]=!0,s.onload=s.onerror=function(){o1(s)}),ya(s),o.head.appendChild(s)}}}function Tq(e,t){Zn.m(e,t);var a=_c;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+sr(o)+'"][href="'+sr(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Uc(e)}if(!cr.has(n)&&(e=St({rel:"modulepreload",href:e},t),cr.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ym(n)))return}o=a.createElement("link"),Na(o,"link",e),ya(o),a.head.appendChild(o)}}}function wq(e,t,a){Zn.S(e,t,a);var o=_c;if(o&&e){var r=mc(o).hoistableStyles,n=Mc(e);t=t||"default";var s=r.get(n);if(!s){var i={loading:0,preload:null};if(s=o.querySelector(xm(n)))i.loading=5;else{e=St({rel:"stylesheet",href:e,"data-precedence":t},a),(a=cr.get(n))&&CR(e,a);var l=s=o.createElement("link");ya(l),Na(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,ng(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(n,s)}}}function Eq(e,t){Zn.X(e,t);var a=_c;if(a&&e){var o=mc(a).hoistableScripts,r=Uc(e),n=o.get(r);n||(n=a.querySelector(ym(r)),n||(e=St({src:e,async:!0},t),(t=cr.get(r))&&LR(e,t),n=a.createElement("script"),ya(n),Na(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function Aq(e,t){Zn.M(e,t);var a=_c;if(a&&e){var o=mc(a).hoistableScripts,r=Uc(e),n=o.get(r);n||(n=a.querySelector(ym(r)),n||(e=St({src:e,async:!0,type:"module"},t),(t=cr.get(r))&&LR(e,t),n=a.createElement("script"),ya(n),Na(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function EA(e,t,a,o){var r=(r=Ns.current)?om(r):null;if(!r)throw Error(Z(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Mc(a.href),t=mc(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mc(a.href);var n=mc(r).hoistableStyles,s=n.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,s),(n=r.querySelector(xm(e)))?n._p||(s.instance=n,s.state.loading=5):(n=cr.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cr.set(e,n)),Pq(r,e,n,s.state))),t&&o===null)throw Error(Z(528,""));return s}if(t&&o!==null)throw Error(Z(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Uc(a),t=mc(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(Z(444,e))}}function Mc(e){return'href="'+sr(e)+'"'}function xm(e){return'link[rel="stylesheet"]['+e+"]"}function AD(e){return St({},e,{"data-precedence":e.precedence,precedence:null})}function Pq(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[pg]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[pg]=!0,t.onload=t.onerror=o1.bind(null,t),Na(t,"link",a),ya(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Uc(e){return'[src="'+sr(e)+'"]'}function ym(e){return"script[async]"+e}function AA(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+sr(a.href)+'"]');if(o)return t.instance=o,ya(o),o;var r=St({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ya(o),Na(o,"style",r),ng(o,a.precedence,e),t.instance=o;case"stylesheet":r=Mc(a.href);var n=e.querySelector(xm(r));if(n)return t.state.loading|=4,t.instance=n,ya(n),n;o=AD(a),(r=cr.get(r))&&CR(o,r),n=(e.ownerDocument||e).createElement("link"),ya(n);var s=n;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Na(n,"link",o),t.state.loading|=4,ng(n,a.precedence,e),t.instance=n;case"script":return n=Uc(a.src),(r=e.querySelector(ym(n)))?(t.instance=r,ya(r),r):(o=a,(r=cr.get(n))&&(o=St({},a),LR(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),ya(r),Na(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(Z(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,ng(o,a.precedence,e));return t.instance}function ng(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,s=0;s<o.length;s++){var i=o[s];if(i.dataset.precedence===t)n=i;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function CR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function LR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var sg=null;function PA(e,t,a){if(sg===null){var o=new Map,r=sg=new Map;r.set(a,o)}else r=sg,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var n=a[r];if(!(n[fm]||n[Da]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var s=n.getAttribute(t)||"";s=e+s;var i=o.get(s);i?i.push(n):o.set(s,[n])}}return o}function IL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Dq(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function DA(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function PD(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function DD(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function MA(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=DD(t),e.suspenseyImages.push(t)),e=kq.bind(e),t.decode().then(e,e))}function Mq(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Mc(o.href),n=t.querySelector(xm(r));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=rm.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,ya(n);return}n=t.ownerDocument||t,o=AD(o),(r=cr.get(r))&&CR(o,r),n=n.createElement("link"),ya(n);var s=n;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Na(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=rm.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ig=0;function Oq(e,t){return e.stylesheets&&e.count===0&&lg(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&lg(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&ig===0&&(ig=62500*Q5());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lg(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>ig?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function MD(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lg(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rm(){this.count--,MD(this)}function kq(){this.imgCount--,MD(this)}var Bg=null;function lg(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bg=new Map,t.forEach(Nq,e),Bg=null,rm.call(e))}function Nq(e,t){if(!(t.state.loading&4)){var a=Bg.get(e);if(a)var o=a.get(null);else{a=new Map,Bg.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var s=r[n];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(a.set(s.dataset.precedence,s),o=s)}o&&a.set(null,o)}r=t.instance,s=r.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(null,r),a.set(s,r),this.count++,o=rm.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Oc={$$typeof:en,Provider:null,Consumer:null,_currentValue:fl,_currentValue2:fl,_threadCount:0};function Vq(e,t,a,o,r,n,s,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gb(0),this.hiddenUpdates=Gb(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function OD(e,t,a,o,r,n,s,i,l,u,c,d){return e=new Vq(e,t,a,s,l,u,c,d,i),t=1,n===!0&&(t|=24),n=vo(3,null,null,t),e.current=n,n.stateNode=e,t=qL(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},XL(n),e}function kD(e){return e?(e=uc,e):uc}function ND(e,t,a,o,r,n){r=kD(r),o.context===null?o.context=r:o.pendingContext=r,o=Bs(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=Fs(e,o,t),a!==null&&(bo(a,e,t),Vd(a,e,t))}function OA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function RR(e,t){OA(e,t),(e=e.alternate)&&OA(e,t)}function VD(e){if(e.tag===13||e.tag===31){var t=wl(e,67108864);t!==null&&bo(t,e,67108864),RR(e,67108864)}}function kA(e){if(e.tag===13||e.tag===31){var t=qo();t=DL(t);var a=wl(e,t);a!==null&&bo(a,e,t),RR(e,t)}}var kc=!0;function Bq(e,t,a,o){var r=Ae.T;Ae.T=null;var n=nt.p;try{nt.p=2,IR(e,t,a,o)}finally{nt.p=n,Ae.T=r}}function Fq(e,t,a,o){var r=Ae.T;Ae.T=null;var n=nt.p;try{nt.p=8,IR(e,t,a,o)}finally{nt.p=n,Ae.T=r}}function IR(e,t,a,o){if(kc){var r=TL(o);if(r===null)mC(e,t,o,Fg,a),NA(e,o);else if(Hq(r,e,t,a,o))o.stopPropagation();else if(NA(e,o),t&4&&-1<zq.indexOf(e)){for(;r!==null;){var n=Bc(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=sl(n.pendingLanes);if(s!==0){var i=n;for(i.pendingLanes|=2,i.entangledLanes|=2;s;){var l=1<<31-Uo(s);i.entanglements[1]|=l,s&=~l}un(n),(rt&6)===0&&(Mg=Ho()+500,gm(0,!1))}}break;case 31:case 13:i=wl(n,2),i!==null&&bo(i,n,2),ex(),RR(n,2)}if(n=TL(o),n===null&&mC(e,t,o,Fg,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else mC(e,t,o,null,a)}}function TL(e){return e=kL(e),TR(e)}var Fg=null;function TR(e){if(Fg=null,e=ul(e),e!==null){var t=im(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=_A(t),e!==null)return e;e=null}else if(a===31){if(e=UA(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fg=e,null}function BD(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($3()){case WA:return 2;case KA:return 8;case mg:case e4:return 32;case ZA:return 268435456;default:return 32}default:return 32}}var wL=!1,Us=null,qs=null,Gs=null,nm=new Map,sm=new Map,Es=[],zq="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 NA(e,t){switch(e){case"focusin":case"focusout":Us=null;break;case"dragenter":case"dragleave":qs=null;break;case"mouseover":case"mouseout":Gs=null;break;case"pointerover":case"pointerout":nm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sm.delete(t.pointerId)}}function Id(e,t,a,o,r,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Bc(t),t!==null&&VD(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Hq(e,t,a,o,r){switch(t){case"focusin":return Us=Id(Us,e,t,a,o,r),!0;case"dragenter":return qs=Id(qs,e,t,a,o,r),!0;case"mouseover":return Gs=Id(Gs,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return nm.set(n,Id(nm.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,sm.set(n,Id(sm.get(n)||null,e,t,a,o,r)),!0}return!1}function FD(e){var t=ul(e.target);if(t!==null){var a=im(t);if(a!==null){if(t=a.tag,t===13){if(t=_A(a),t!==null){e.blockedOn=t,iE(e.priority,function(){kA(a)});return}}else if(t===31){if(t=UA(a),t!==null){e.blockedOn=t,iE(e.priority,function(){kA(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ug(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=TL(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);PC=o,a.target.dispatchEvent(o),PC=null}else return t=Bc(a),t!==null&&VD(t),e.blockedOn=a,!1;t.shift()}return!0}function VA(e,t,a){ug(e)&&a.delete(t)}function _q(){wL=!1,Us!==null&&ug(Us)&&(Us=null),qs!==null&&ug(qs)&&(qs=null),Gs!==null&&ug(Gs)&&(Gs=null),nm.forEach(VA),sm.forEach(VA)}function qh(e,t){e.blockedOn===t&&(e.blockedOn=null,wL||(wL=!0,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,_q)))}var Gh=null;function BA(e){Gh!==e&&(Gh=e,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,function(){Gh===e&&(Gh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(TR(o||a)===null)continue;break}var n=Bc(a);n!==null&&(e.splice(t,3),t-=3,XC(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Nc(e){function t(l){return qh(l,e)}Us!==null&&qh(Us,e),qs!==null&&qh(qs,e),Gs!==null&&qh(Gs,e),nm.forEach(t),sm.forEach(t);for(var a=0;a<Es.length;a++){var o=Es[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Es.length&&(a=Es[0],a.blockedOn===null);)FD(a),a.blockedOn===null&&Es.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],s=r[Lo]||null;if(typeof n=="function")s||BA(a);else if(s){var i=null;if(n&&n.hasAttribute("formAction")){if(r=n,s=n[Lo]||null)i=s.formAction;else if(TR(r)!==null)continue}else i=s.action;typeof i=="function"?a[o+1]=i:(a.splice(o,3),o-=3),BA(a)}}}function zD(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return r=s})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function wR(e){this._internalRoot=e}ox.prototype.render=wR.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));var a=t.current,o=qo();ND(a,o,e,t,null,null)};ox.prototype.unmount=wR.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ND(e.current,2,null,e,null,null),ex(),t[Vc]=null}};function ox(e){this._internalRoot=e}ox.prototype.unstable_scheduleHydration=function(e){if(e){var t=a1();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Es.length&&t!==0&&t<Es[a].priority;a++);Es.splice(a,0,e),a===0&&FD(e)}};var FA=zA.version;if(FA!=="19.3.0")throw Error(Z(527,FA,"19.3.0"));nt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=U3(t),e=e!==null?qA(e):null,e=e===null?null:e.stateNode,e};var Uq={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ae,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Td=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Td.isDisabled&&Td.supportsFiber))try{lm=Td.inject(Uq),_o=Td}catch{}var Td;rx.createRoot=function(e,t){if(!HA(e))throw Error(Z(299));var a=!1,o="",r=SP,n=vP,s=bP;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=OD(e,1,!1,null,null,a,o,null,r,n,s,zD),e[Vc]=t.current,yR(e),new wR(t)};rx.hydrateRoot=function(e,t,a){if(!HA(e))throw Error(Z(299));var o=!1,r="",n=SP,s=vP,i=bP,l=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(i=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=OD(e,1,!0,t,a??null,o,r,l,n,s,i,zD),t.context=kD(null),a=t.current,o=qo(),o=DL(o),r=Bs(o),r.callback=null,Fs(a,r,o),a=o,t.current.lanes=a,cm(t,a),un(t),e[Vc]=t.current,yR(e),new ox(t)};rx.version="19.3.0"});var qD=go((NW,UD)=>{"use strict";function _D(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_D)}catch(e){console.error(e)}}_D(),UD.exports=HD()});var pO=go(mx=>{"use strict";var KG=Symbol.for("react.transitional.element"),ZG=Symbol.for("react.fragment");function mO(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:KG,type:e,key:o,ref:t!==void 0?t:null,props:a}}mx.Fragment=ZG;mx.jsx=mO;mx.jsxs=mO});var Q=go((bQ,hO)=>{"use strict";hO.exports=pO()});var NB=go(kB=>{"use strict";var Nf=D();function e7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t7=typeof Object.is=="function"?Object.is:e7,a7=Nf.useState,o7=Nf.useEffect,r7=Nf.useLayoutEffect,n7=Nf.useDebugValue;function s7(e,t){var a=t(),o=a7({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return r7(function(){r.value=a,r.getSnapshot=t,$I(r)&&n({inst:r})},[e,a,t]),o7(function(){return $I(r)&&n({inst:r}),e(function(){$I(r)&&n({inst:r})})},[e]),n7(a),a}function $I(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!t7(e,a)}catch{return!0}}function i7(e,t){return t()}var l7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i7:s7;kB.useSyncExternalStore=Nf.useSyncExternalStore!==void 0?Nf.useSyncExternalStore:l7});var Zp=go((zye,VB)=>{"use strict";VB.exports=NB()});var FB=go(BB=>{"use strict";var xS=D(),u7=Zp();function c7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var f7=typeof Object.is=="function"?Object.is:c7,d7=u7.useSyncExternalStore,m7=xS.useRef,p7=xS.useEffect,h7=xS.useMemo,g7=xS.useDebugValue;BB.useSyncExternalStoreWithSelector=function(e,t,a,o,r){var n=m7(null);if(n.current===null){var s={hasValue:!1,value:null};n.current=s}else s=n.current;n=h7(function(){function l(m){if(!u){if(u=!0,c=m,m=o(m),r!==void 0&&s.hasValue){var p=s.value;if(r(p,m))return d=p}return d=m}if(p=d,f7(c,m))return p;var y=o(m);return r!==void 0&&r(p,y)?(c=m,p):(c=m,d=y)}var u=!1,c,d,f=a===void 0?null:a;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,a,o,r]);var i=d7(e,n[0],n[1]);return p7(function(){s.hasValue=!0,s.value=i},[i]),g7(i),i}});var HB=go((_ye,zB)=>{"use strict";zB.exports=FB()});var c3=R(D(),1),f3=R(qD(),1);var nx=R(D(),1);var GD=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function jD(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:GD(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var XD=e=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}t.length===0?t+=o.toLowerCase():t+=a?o.toUpperCase():o,a=!1}return t};var YD=e=>{let t=XD(e);return t.charAt(0).toUpperCase()+t.slice(1)};var vm=R(D(),1);var Sm=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Js={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function ER(e){return e!=null}function WD(e,t={}){let a=t.attributeNames??{},o=f=>a[f]??f,r=e.size??e.width??Js.width,n=e.size??e.height??Js.height,s=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],i=[...e.name?[`lucide-${e.name}`]:[],...s],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?Sm(...l):Sm("lucide",...i,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??Js["stroke-width"])*Number(e.size??e.width??Js.width)/Number(t.size??t.width??Js.width):t.strokeWidth??Js["stroke-width"];return["svg",{...Object.entries(Js).reduce((f,[m,p])=>(f[o(m)]=p,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&ER(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&ER(t.width)&&{[o("width")]:t.width},..."height"in t&&ER(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...u&&{[o("class")]:u},[o("viewBox")]:`0 0 ${r} ${n}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,y]=f,v=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...p}:p;return y?[m,v,y]:[m,v]})]}function KD(e,t={}){return WD(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var ZD=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var qc=R(D(),1);var qq=(0,qc.createContext)({});var QD=()=>(0,qc.useContext)(qq);var JD=(0,vm.forwardRef)(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:s,className:i="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:y=!1,nonScalingStroke:v=!1,color:g="currentColor",className:h=""}=QD()??{},x=!!l||ZD(d),[S,b,I=[]]=KD(c,{color:e??g,width:a??t??m,height:o??t??m,strokeWidth:r??p,absoluteStrokeWidth:n??y,nonScalingStroke:s??v,className:Sm(h,i),hasA11yProp:x,attributes:d});return(0,vm.createElement)(S,{ref:f,...b},[...I.map(([L,C])=>(0,vm.createElement)(L,C)),...Array.isArray(l)?l:[l]])});function be(e,t=[],a=[]){let o=typeof e=="string"?jD(e,t,a):e,r=(0,nx.forwardRef)(({className:n,...s},i)=>(0,nx.createElement)(JD,{ref:i,icon:o,className:n,...s}));return o.name&&(r.displayName=YD(o.name)),r}var $D={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};$D.node;var Qn=be($D);var eM={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};eM.node;var $s=be(eM);var tM={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};tM.node;var bm=be(tM);var aM={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};aM.node;var ei=be(aM);var oM={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};oM.node;var Cm=be(oM);var rM={name:"circle-x",size:24,node:[["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"}]],aliases:["x-circle"]};rM.node;var ti=be(rM);var nM={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};nM.node;var Lm=be(nM);var sM={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};sM.node;var Rm=be(sM);var iM={name:"copy",size:24,node:[["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"}]]};iM.node;var Im=be(iM);var lM={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};lM.node;var ai=be(lM);var uM={name:"eye",size:24,node:[["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"}]]};uM.node;var Tm=be(uM);var cM={name:"file-text",size:24,node:[["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"}]]};cM.node;var wm=be(cM);var fM={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};fM.node;var Em=be(fM);var dM={name:"globe",size:24,node:[["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"}]]};dM.node;var Am=be(dM);var mM={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};mM.node;var Pm=be(mM);var pM={name:"image",size:24,node:[["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"}]]};pM.node;var Dm=be(pM);var hM={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};hM.node;var Mm=be(hM);var gM={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};gM.node;var oi=be(gM);var xM={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};xM.node;var Al=be(xM);var yM={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};yM.node;var Om=be(yM);var SM={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["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"}]]};SM.node;var ri=be(SM);var vM={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};vM.node;var Nr=be(vM);var bM={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};bM.node;var ni=be(bM);var CM={name:"square-terminal",size:24,node:[["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"}]],aliases:["terminal-square"]};CM.node;var Vr=be(CM);var LM={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};LM.node;var km=be(LM);var RM={name:"wrench",size:24,node:[["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"}]]};RM.node;var si=be(RM);var IM={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};IM.node;var Pl=be(IM);var On=R(D(),1);async function sx(e,t={}){let a=new URLSearchParams;for(let[r,n]of Object.entries(t))n!==void 0&&n!==""&&a.set(r,String(n));let o=await fetch(`${e}${a.size?`?${a}`:""}`);if(!o.ok)throw new Error(`${e}: ${o.status}`);return o.json()}var fr={state:(e,t)=>sx("/api/state",{limit:e,group:t}),run:e=>sx(`/api/run/${e}`),history:e=>sx("/api/history",e),stats:e=>sx("/api/stats",{days:e})};var Xy=R(D(),1);function Nm(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var AR={};function Ga(e,t,a,o,r){if(!a&&!o&&!r&&!e)return ix(t);let n=ix(e);return t&&(n=Vm(n,t)),a&&(n=Vm(n,a)),o&&(n=Vm(n,o)),r&&(n=Vm(n,r)),n}function TM(e){if(e.length===0)return AR;if(e.length===1)return ix(e[0]);let t=ix(e[0]);for(let a=1;a<e.length;a+=1)t=Vm(t,e[a]);return t}function ix(e){return PR(e)?{...EM(e,AR)}:Gq(e)}function Vm(e,t){return PR(t)?EM(t,e):jq(e,t)}function Gq(e){let t={...e};for(let a in t){let o=t[a];wM(a,o)&&(t[a]=AM(o))}return t}function jq(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=Nm(e.style,o);break}case"className":{e[a]=DR(e.className,o);break}default:wM(a,o)?e[a]=Xq(e[a],o):e[a]=o}}return e}function wM(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return a===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function PR(e){return typeof e=="function"}function EM(e,t){return PR(e)?e(t):e??AR}function Xq(e,t){return t?e?(...a)=>{let o=a[0];if(PM(o)){let n=o;Bm(n);let s=t(...a);return n.baseUIHandlerPrevented||e?.(...a),s}let r=t(...a);return e?.(...a),r}:AM(t):e}function AM(e){return e&&((...t)=>{let a=t[0];return PM(a)&&Bm(a),e(...t)})}function Bm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function DR(e,t){return t?e?t+" "+e:t:e}function PM(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Yq(e,t){return function(o,...r){let n=new URL(e);return n.searchParams.set("code",o.toString()),r.forEach(s=>n.searchParams.append("args[]",s)),`${t} error #${o}; visit ${n} for the full message.`}}var Wq=Yq("https://base-ui.com/production-error","Base UI"),Pe=Wq;var ii=R(D(),1);var MM=R(D(),1),DM={};function at(e,t){let a=MM.useRef(DM);return a.current===DM&&(a.current=e(t)),a}function dr(e,t,a,o){let r=at(kM).current;return Kq(r,e,t,a,o)&&NM(r,[e,t,a,o]),r.callback}function OM(e){let t=at(kM).current;return Zq(t,e)&&NM(t,e),t.callback}function kM(){return{callback:null,cleanup:null,refs:[]}}function Kq(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function Zq(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function NM(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let s=n(a);typeof s=="function"&&(o[r]=s);break}case"object":{n.current=a;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let s=o[r];typeof s=="function"?s():n(null);break}case"object":{n.current=null;break}default:}}}}}}var BM=R(D(),1);var VM=R(D(),1),Qq=parseInt(VM.version,10);function Gc(e){return Qq>=e}function MR(e){if(!BM.isValidElement(e))return null;let t=e,a=t.props;return(Gc(19)?a?.ref:t.ref)??null}function Ne(){}var Ro=Object.freeze([]),We=Object.freeze({});function FM(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let n=t[o](r);n!=null&&Object.assign(a,n);continue}r===!0?a[`data-${o.toLowerCase()}`]="":r&&(a[`data-${o.toLowerCase()}`]=r.toString())}return a}function zM(e,t){return typeof e=="function"?e(t):e}function HM(e,t){return typeof e=="function"?e(t):e}var OR=R(D(),1);function $(e,t,a={}){let o=t.render;a.enabled!==!1&&(o=tG(o));let r=Jq(t,a,o);if(a.enabled===!1)return null;let n=a.state??We;return aG(e,o,r,n)}function Jq(e,t,a){let{className:o,style:r}=e,{state:n=We,ref:s,props:i,stateAttributesMapping:l,enabled:u=!0}=t,c=u?zM(o,n):void 0,d=u?HM(r,n):void 0,f=u?FM(n,l):We,m=u&&i?$q(i):void 0,p=u?Nm(f,m)??{}:We;return typeof document<"u"&&(u?Array.isArray(s)?p.ref=OM([p.ref,MR(a),...s]):p.ref=dr(p.ref,MR(a),s):dr(null,null)),u?(c!==void 0&&(p.className=DR(p.className,c)),d!==void 0&&(p.style=Nm(p.style,d)),p):We}function $q(e){return Array.isArray(e)?TM(e):Ga(void 0,e)}var eG=Symbol.for("react.lazy");function tG(e){if(e?.$$typeof!==eG)return e;let t=ii.Children.toArray(e)[0];return ii.isValidElement(t)?t:e}function aG(e,t,a,o){if(t){if(typeof t=="function")return t(a,o);let r=Ga(a,t.props);return r.ref=a.ref,ii.cloneElement(t,r)}if(e&&typeof e=="string")return oG(e,a);throw new Error(Pe(8))}function oG(e,t){return e==="button"?(0,OR.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,OR.createElement)("img",{alt:"",...t,key:t.key}):ii.createElement(e,t)}function _M(e){return $(e.defaultTagName??"div",e,e)}function UM(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=UM(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function lx(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=UM(e))&&(o&&(o+=" "),o+=t);return o}var qM=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GM=lx,jc=(e,t)=>a=>{var o;if(t?.variants==null)return GM(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,s=Object.keys(r).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=qM(c)||qM(d);return r[u][f]}),i=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[y,v]=p;return Array.isArray(v)?v.includes({...n,...i}[y]):{...n,...i}[y]===v})?[...u,d,f]:u},[]);return GM(e,s,l,a?.class,a?.className)};var rG=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},nG=(e,t)=>({classGroupId:e,validator:t}),ZM=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var jM=[],sG="arbitrary..",iG=e=>{let t=uG(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return lG(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return QM(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=o[s],u=a[s];return l?u?rG(u,l):l:u||jM}return a[s]||jM}}},QM=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=QM(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},lG=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?sG+o:void 0})(),uG=e=>{let{theme:t,classGroups:a}=e;return cG(a,t)},cG=(e,t)=>{let a=ZM();for(let o in e){let r=e[o];NR(r,a,o,t)}return a},NR=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let s=e[n];fG(s,t,a,o)}},fG=(e,t,a,o)=>{if(typeof e=="string"){dG(e,t,a);return}if(typeof e=="function"){mG(e,t,a,o);return}pG(e,t,a,o)},dG=(e,t,a)=>{let o=e===""?t:JM(t,e);o.classGroupId=a},mG=(e,t,a,o)=>{if(hG(e)){NR(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(nG(a,e))},pG=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let s=0;s<n;s++){let[i,l]=r[s];NR(l,JM(t,i),a,o)}},JM=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let s=o[n],i=a.nextPart.get(s);i||(i=ZM(),a.nextPart.set(s,i)),a=i}return a},hG=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,gG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,s)=>{a[n]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=o[n])!==void 0)return r(n,s),s},set(n,s){n in a?a[n]=s:r(n,s)}}};var xG=[],XM=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),yG=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],s=0,i=0,l=0,u,c=r.length;for(let y=0;y<c;y++){let v=r[y];if(s===0&&i===0){if(v===":"){n.push(r.slice(l,y)),l=y+1;continue}if(v==="/"){u=y;continue}}v==="["?s++:v==="]"?s--:v==="("?i++:v===")"&&i--}let d=n.length===0?r:r.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return XM(n,m,f,p)};if(t){let r=t+":",n=o;o=s=>s.startsWith(r)?n(s.slice(r.length)):XM(xG,!1,s,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},SG=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},vG=e=>({cache:gG(e.cacheSize),parseClassName:yG(e),sortModifiers:SG(e),postfixLookupClassGroupIds:bG(e),...iG(e)}),bG=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},CG=/\s+/,LG=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(CG),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:v}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let g=!!v,h;if(g){let L=y.substring(0,v);h=o(L);let C=h&&s[h]?o(y):void 0;C&&C!==h&&(h=C,g=!1)}else h=o(y);if(!h){if(!g){u=d+(u.length>0?" "+u:u);continue}if(h=o(y),!h){u=d+(u.length>0?" "+u:u);continue}g=!1}let x=m.length===0?"":m.length===1?m[0]:n(m).join(":"),S=p?x+"!":x,b=S+h;if(i.indexOf(b)>-1)continue;i.push(b);let I=r(h,g);for(let L=0;L<I.length;++L){let C=I[L];i.push(S+C)}u=d+(u.length>0?" "+u:u)}return u},RG=(...e)=>{let t=0,a,o,r="";for(;t<e.length;)(a=e[t++])&&(o=$M(a))&&(r&&(r+=" "),r+=o);return r},$M=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=$M(e[o]))&&(a&&(a+=" "),a+=t);return a},IG=(e,...t)=>{let a,o,r,n,s=l=>{let u=t.reduce((c,d)=>d(c),e());return a=vG(u),o=a.cache.get,r=a.cache.set,n=i,i(l)},i=l=>{let u=o(l);if(u)return u;let c=LG(l,a);return r(l,c),c};return n=s,(...l)=>n(RG(...l))},TG=[],ca=e=>{let t=a=>a[e]||TG;return t.isThemeGetter=!0,t.themeKey=e,t},eO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wG=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,EG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,PG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,DG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,li=e=>wG.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),cn=e=>!!e&&Number.isInteger(Number(e)),kR=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Jn=e=>EG.test(e),aO=()=>!0,OG=e=>AG.test(e)&&!PG.test(e),VR=()=>!1,kG=e=>DG.test(e),NG=e=>MG.test(e),VG=e=>!xe(e)&&!ye(e),BG=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),FG=e=>ui(e,nO,VR),xe=e=>eO.test(e),Dl=e=>ui(e,sO,OG),YM=e=>ui(e,XG,Ge),zG=e=>ui(e,lO,aO),HG=e=>ui(e,iO,VR),WM=e=>ui(e,oO,VR),_G=e=>ui(e,rO,NG),ux=e=>ui(e,uO,kG),ye=e=>tO.test(e),Fm=e=>Ml(e,sO),UG=e=>Ml(e,iO),KM=e=>Ml(e,oO),qG=e=>Ml(e,nO),GG=e=>Ml(e,rO),cx=e=>Ml(e,uO,!0),jG=e=>Ml(e,lO,!0),ui=(e,t,a)=>{let o=eO.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Ml=(e,t,a=!1)=>{let o=tO.exec(e);return o?o[1]?t(o[1]):a:!1},oO=e=>e==="position"||e==="percentage",rO=e=>e==="image"||e==="url",nO=e=>e==="length"||e==="size"||e==="bg-size",sO=e=>e==="length",XG=e=>e==="number",iO=e=>e==="family-name",lO=e=>e==="number"||e==="weight",uO=e=>e==="shadow";var YG=()=>{let e=ca("color"),t=ca("font"),a=ca("text"),o=ca("font-weight"),r=ca("tracking"),n=ca("leading"),s=ca("breakpoint"),i=ca("container"),l=ca("spacing"),u=ca("radius"),c=ca("shadow"),d=ca("inset-shadow"),f=ca("text-shadow"),m=ca("drop-shadow"),p=ca("blur"),y=ca("perspective"),v=ca("aspect"),g=ca("ease"),h=ca("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...S(),ye,xe],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],C=()=>[ye,xe,l],E=()=>[li,"full","auto",...C()],T=()=>[cn,"none","subgrid",ye,xe],A=()=>["auto",{span:["full",cn,ye,xe]},cn,ye,xe],N=()=>[cn,"auto",ye,xe],P=()=>["auto","min","max","fr",ye,xe],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],k=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...C()],q=()=>[li,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],O=()=>[i,li,"screen","full","dvw","lvw","svw","min","max","fit",...C()],V=()=>[li,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],w=()=>[e,ye,xe],z=()=>[...S(),KM,WM,{position:[ye,xe]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",qG,FG,{size:[ye,xe]}],M=()=>[kR,Fm,Dl],_=()=>["","none","full",u,ye,xe],B=()=>["",Ge,Fm,Dl],J=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Ge,kR,KM,WM],ie=()=>["","none",p,ye,xe],ce=()=>["none",Ge,ye,xe],ee=()=>["none",Ge,ye,xe],ae=()=>[Ge,ye,xe],me=()=>[li,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[aO],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[VG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",Ge],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",li,xe,ye,v]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,xe]}],"container-named":[BG],columns:[{columns:[Ge,"auto",xe,ye,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[cn,"auto",ye,xe]}],basis:[{basis:[li,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,li,"auto","initial","none",xe]}],grow:[{grow:["",Ge,ye,xe]}],shrink:[{shrink:["",Ge,ye,xe]}],order:[{order:[cn,"first","last","none",ye,xe]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...k(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...k(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...k(),"baseline"]}],"place-self":[{"place-self":["auto",...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh","none",...q()]}],"font-size":[{text:["base",a,Fm,Dl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,jG,zG]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kR,xe]}],"font-family":[{font:[UG,HG,t]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ye,xe]}],"line-clamp":[{"line-clamp":[Ge,"none",ye,YM]}],leading:[{leading:["none",n,...C()]}],"list-image":[{"list-image":["none",ye,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",ye,Dl]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Ge,"auto",ye,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[cn,ye,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cn,ye,xe],radial:["",ye,xe],conic:["",cn,ye,xe]},GG,_G]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,ye,xe]}],"outline-w":[{outline:["",Ge,Fm,Dl]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","inner","none",c,cx,ux]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,cx,ux]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Ge,Dl]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",f,cx,ux]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Ge,ye,xe]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[ye,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,xe]}],filter:[{filter:["","none",ye,xe]}],blur:[{blur:ie()}],brightness:[{brightness:[Ge,ye,xe]}],contrast:[{contrast:[Ge,ye,xe]}],"drop-shadow":[{"drop-shadow":["","none",m,cx,ux]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Ge,ye,xe]}],"hue-rotate":[{"hue-rotate":[Ge,ye,xe]}],invert:[{invert:["",Ge,ye,xe]}],saturate:[{saturate:[Ge,ye,xe]}],sepia:[{sepia:["",Ge,ye,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,xe]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,ye,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,ye,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,ye,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,ye,xe]}],"backdrop-invert":[{"backdrop-invert":["",Ge,ye,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,ye,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,ye,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,ye,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",ye,xe]}],ease:[{ease:["linear","initial",g,ye,xe]}],delay:[{delay:[Ge,ye,xe]}],animate:[{animate:["none",h,ye,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ye,xe]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[ye,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],zoom:[{zoom:[cn,ye,xe]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,xe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Ge,Fm,Dl,YM]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var cO=IG(YG);function re(...e){return cO(lx(e))}var WG=jc("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function fx({className:e,variant:t="default",render:a,...o}){return _M({defaultTagName:"span",props:Ga({className:re(WG({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}var $n=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),Ol=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),fn=e=>`$${e.toFixed(2)}`;function fO(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function dx(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var dO={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)"};var kl=R(Q(),1);function px({worker:e,backend:t,model:a}){let o=e?dx(e):{backend:t??"",model:a};return(0,kl.jsxs)(fx,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,kl.jsx)("span",{className:"size-1.5 rounded-full",style:{background:dO[o.backend]??"var(--muted-foreground)"}}),o.backend,o.model&&(0,kl.jsx)("span",{className:"font-normal text-muted-foreground",children:o.model.split("/").pop()})]})}function gO({verdict:e}){let t=/PASS/.test(e)&&/APPROVED/.test(e),a=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,kl.jsx)(fx,{className:re("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:a})}function hx({children:e,tone:t}){return(0,kl.jsx)(fx,{variant:"secondary",className:re(t==="good"&&"bg-success/10 text-success"),children:e})}var Cp=R(Q(),1),vn=R(D(),1);var xO=R(D(),1),Xc=(0,xO.createContext)({});var yO=R(D(),1);function ci(e){let t=(0,yO.useRef)(null);return t.current===null&&(t.current=e()),t.current}var gx=R(D(),1);var SO=typeof window<"u";var fi=SO?gx.useLayoutEffect:gx.useEffect;var W0=R(Q(),1),zN=R(D(),1),Li=R(D(),1);var vO=R(D(),1),di=(0,vO.createContext)(null);var BN=R(Q(),1);function Nl(e,t){e.indexOf(t)===-1&&e.push(t)}function mi(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var fa=(e,t,a)=>a>t?t:a<e?e:a;var es=()=>{},Io=()=>{};var Ba={};var Vl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var zm=e=>typeof e=="object"&&e!==null;var Bl=e=>/^0[^.\s]+$/u.test(e);function Hm(e){let t;return()=>(t===void 0&&(t=e()),t)}var Xt=e=>e;var Br=(...e)=>e.reduce((t,a)=>o=>a(t(o)));var dn=(e,t,a)=>{let o=t-e;return o?(a-e)/o:1};var mn=class{constructor(){this.subscriptions=[]}add(t){return Nl(this.subscriptions,t),()=>this.remove(t)}remove(t){mi(this.subscriptions,t)}notify(t,a,o){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,o);else for(let n=0;n<r;n++){let s=this.subscriptions[n];s&&s(t,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var oa=e=>e*1e3,va=e=>e/1e3;var _m=(e,t)=>t?e*(1e3/t):0;var bO=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,QG=1e-7,JG=12;function $G(e,t,a,o,r){let n,s,i=0;do s=t+(a-t)/2,n=bO(s,o,r)-e,n>0?a=s:t=s;while(Math.abs(n)>QG&&++i<JG);return s}function pi(e,t,a,o){if(e===t&&a===o)return Xt;let r=n=>$G(n,0,1,e,a);return n=>n===0||n===1?n:bO(r(n),t,o)}var xx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var yx=e=>t=>1-e(1-t);var Sx=pi(.33,1.53,.69,.99),Yc=yx(Sx),Um=xx(Yc);var qm=e=>e>=1?1:(e*=2)<1?.5*Yc(e):.5*(2-Math.pow(2,-10*(e-1)));var Gm=e=>1-Math.sin(Math.acos(e)),jm=yx(Gm),Xm=xx(Gm);var BR=pi(.42,0,1,1),FR=pi(0,0,.58,1),Wc=pi(.42,0,.58,1);var zR=e=>Array.isArray(e)&&typeof e[0]!="number";var Ym=e=>Array.isArray(e)&&typeof e[0]=="number";var CO={linear:Xt,easeIn:BR,easeInOut:Wc,easeOut:FR,circIn:Gm,circInOut:Xm,circOut:jm,backIn:Yc,backInOut:Um,backOut:Sx,anticipate:qm},e6=e=>typeof e=="string",vx=e=>{if(Ym(e)){Io(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,a,o,r]=e;return pi(t,a,o,r)}else if(e6(e))return Io(CO[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),CO[e];return e};var It={delta:0,timestamp:0,isProcessing:!1};var bx;function t6(){bx=void 0}var gt={now:()=>(bx===void 0&&gt.set(It.isProcessing||Ba.useManualTiming?It.timestamp:performance.now()),bx),set:e=>{bx=e,queueMicrotask(t6)}};var pn=e=>Math.round(e*1e5)/1e5;var LO=e=>t=>typeof t=="string"&&t.startsWith(e),Cx=LO("--"),a6=LO("var(--"),Kc=e=>a6(e)?o6.test(e.split("/*")[0].trim()):!1,o6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function HR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ts={...hn,transform:e=>fa(0,1,e)},Wm={...hn,default:1};var Zc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function RO(e){return e==null}var IO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Qc=(e,t)=>a=>!!(typeof a=="string"&&IO.test(a)&&a.startsWith(e)||t&&!RO(a)&&Object.prototype.hasOwnProperty.call(a,t)),Lx=(e,t,a)=>o=>{if(typeof o!="string")return o;let[r,n,s,i]=o.match(Zc);return{[e]:parseFloat(r),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var r6=e=>fa(0,255,e),_R={...hn,transform:e=>Math.round(r6(e))},gn={test:Qc("rgb","red"),parse:Lx("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:o=1})=>"rgba("+_R.transform(e)+", "+_R.transform(t)+", "+_R.transform(a)+", "+pn(ts.transform(o))+")"};function n6(e){let t="",a="",o="",r="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,a+=a,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}var Km={test:Qc("#"),parse:n6,transform:gn.transform};var Zm=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mr=Zm("deg"),ja=Zm("%"),de=Zm("px"),UR=Zm("vh"),qR=Zm("vw"),Rx={...ja,parse:e=>ja.parse(e)/100,transform:e=>ja.transform(e*100)};var hi={test:Qc("hsl","hue"),parse:Lx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(e)+", "+ja.transform(pn(t))+", "+ja.transform(pn(a))+", "+pn(ts.transform(o))+")"};var Gt={test:e=>gn.test(e)||Km.test(e)||hi.test(e),parse:e=>gn.test(e)?gn.parse(e):hi.test(e)?hi.parse(e):Km.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gn.transform(e):hi.transform(e),getAnimatableNone:e=>{let t=Gt.parse(e);return t.alpha=0,Gt.transform(t)}};var TO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var EO=new RegExp(Zc.source),AO=new RegExp(TO.source,"i");function s6(e){return isNaN(e)&&typeof e=="string"&&(EO.test(e)||AO.test(e))}var PO="number",DO="color",i6="var",l6="var(",wO="${}",u6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function MO(e){let t=e.toString();return EO.test(t)||AO.test(t)}function Jc(e){let t=e.toString(),a=[],o={color:[],number:[],var:[]},r=[],n=0,i=t.replace(u6,l=>(Gt.test(l)?(o.color.push(n),r.push(DO),a.push(Gt.parse(l))):l.startsWith(l6)?(o.var.push(n),r.push(i6),a.push(l)):(o.number.push(n),r.push(PO),a.push(parseFloat(l))),++n,wO)).split(wO);return{values:a,split:i,indexes:o,types:r}}function c6(e){return Jc(e).values}function OO({split:e,types:t}){let a=e.length;return o=>{let r="";for(let n=0;n<a;n++)if(r+=e[n],o[n]!==void 0){let s=t[n];s===PO?r+=pn(o[n]):s===DO?r+=Gt.transform(o[n]):r+=o[n]}return r}}function f6(e){return OO(Jc(e))}var d6=e=>typeof e=="number"?0:Gt.test(e)?Gt.getAnimatableNone(e):e,m6=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:d6(e);function p6(e){let t=Jc(e);return OO(t)(t.values.map((o,r)=>m6(o,t.split[r])))}var Yt={test:s6,parse:c6,createTransformer:f6,getAnimatableNone:p6};function GR(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function kO({hue:e,saturation:t,lightness:a,alpha:o}){e/=360,t/=100,a/=100;let r=0,n=0,s=0;if(!t)r=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;r=GR(l,i,e+1/3),n=GR(l,i,e),s=GR(l,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:o}}function $c(e,t){return a=>a>0?t:e}var Ue=(e,t,a)=>e+(t-e)*a;var jR=(e,t,a)=>{let o=e*e,r=a*(t*t-o)+o;return r<0?0:Math.sqrt(r)},h6=[Km,gn,hi],g6=e=>h6.find(t=>t.test(e));function NO(e){let t=g6(e);if(!t)return es(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let a=t.parse(e);return t===hi&&(a=kO(a)),a}var XR=(e,t)=>{let a=NO(e),o=NO(t);if(!a||!o)return $c(e,t);let r={...a};return n=>(r.red=jR(a.red,o.red,n),r.green=jR(a.green,o.green,n),r.blue=jR(a.blue,o.blue,n),r.alpha=Ue(a.alpha,o.alpha,n),gn.transform(r))};var Ix=new Set(["none","hidden"]);function VO(e,t){return Ix.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function x6(e,t){return a=>Ue(e,t,a)}function Tx(e){return typeof e=="number"?x6:typeof e=="string"?Kc(e)?$c:Gt.test(e)?XR:v6:Array.isArray(e)?BO:typeof e=="object"?Gt.test(e)?XR:y6:$c}function BO(e,t){let a=[...e],o=a.length,r=e.map((n,s)=>Tx(n)(n,t[s]));return n=>{for(let s=0;s<o;s++)a[s]=r[s](n);return a}}function y6(e,t){let a={...e,...t},o={};for(let r in a)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Tx(e[r])(e[r],t[r]));return r=>{for(let n in o)a[n]=o[n](r);return a}}function S6(e,t){let a=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let n=t.types[r],s=e.indexes[n][o[n]],i=e.values[s]??0;a[r]=i,o[n]++}return a}var v6=(e,t)=>{let a=Yt.createTransformer(t),o=Jc(e),r=Jc(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ix.has(e)&&!r.values.length||Ix.has(t)&&!o.values.length?VO(e,t):Br(BO(S6(o,r),r.values),a):(es(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),$c(e,t))};var FO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function b6(e,t){let a=FO.exec(e);if(!a)return;let o=FO.exec(t);if(!o||a[2]!==o[2])return;let r=a[2],n=parseFloat(a[1]),s=parseFloat(o[1]);return i=>pn(Ue(n,s,i))+r}function ef(e,t,a){if(typeof e=="number"&&typeof t=="number"&&typeof a=="number")return Ue(e,t,a);if(typeof e=="string"&&typeof t=="string"){let r=b6(e,t);if(r)return r}return Tx(e)(e,t)}var Qm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zO(e){let t=new Set,a=new Set,o=!1,r=!1,n=new Set,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(a.add(u),e()),u(s)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&o?t:a;return c&&n.add(u),m.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,o){r=!0;return}o=!0;let c=t;t=a,a=c,t.forEach(i),t.clear(),o=!1,r&&(r=!1,l.process(u))}};return l}var C6=40;function wx(e,t,a={delta:0,timestamp:0,isProcessing:!1}){let o=!1,r=!0,n=()=>o=!0,s=Qm.reduce((x,S)=>(x[S]=zO(n),x),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=s,y=()=>{let x=Ba.useManualTiming,S=x?a.timestamp:performance.now();o=!1,x||(a.delta=r?1e3/60:Math.max(Math.min(S-a.timestamp,C6),1)),a.timestamp=S,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),p.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(y))},v=()=>{o=!0,r=!0,a.isProcessing||e(y)};return{schedule:Qm.reduce((x,S)=>{let b=s[S];return x[S]=(I,L=!1,C=!1)=>(o||v(),b.schedule(I,L,C)),x},{}),cancel:x=>{for(let S=0;S<Qm.length;S++)s[Qm[S]].cancel(x)},state:a,steps:s}}var{schedule:ze,cancel:To,steps:Jm}=wx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0,It);var HO=e=>{let t=({timestamp:a})=>e(a);return{start:(a=!0)=>ze.update(t,a),stop:()=>To(t),now:()=>It.isProcessing?It.timestamp:gt.now()}};var Ex=(e,t,a=10)=>{let o="",r=Math.max(Math.round(t/a),2);for(let n=0;n<r;n++)o+=Math.round(e(n/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function tf(e,t=50,a=2e4,o){let r=0,n=e.next(r);for(o?.push(n.value);!n.done&&r<a;)r+=t,n=e.next(r),o?.push(n.value);return r>=a?1/0:r}function _O(e,t=100,a){let o=a({...e,keyframes:[0,t]}),r=Math.min(tf(o),2e4);return{type:"keyframes",ease:n=>o.next(r*n).value/t,duration:va(r)}}var ba={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},UO=e=>e<0?1/Math.max(1+e,ba.minDamping):Math.max(1-e,ba.minDamping);function qO(e,t){if(!(e>1))return 1;let a=Math.sqrt(e*e-1),o=e-a,r=e+a,n=2*a*Math.exp(-t)*(1+t);return GO(s=>r*Math.exp(-o*s)-o*Math.exp(-r*s)-n,s=>Math.exp(-r*s)-Math.exp(-o*s),t)/t}function ZR(e,t){return e*Math.sqrt(1-t*t)}var L6=12;function GO(e,t,a){let o=a;for(let r=1;r<L6;r++)o=o-e(o)/t(o);return o}var WR=.001;function R6({duration:e=ba.duration,bounce:t=ba.bounce}){let a,o;es(e<=oa(ba.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=UO(t);e=fa(ba.minDuration,ba.maxDuration,va(e)),r<1?(a=u=>{let c=u*r,d=c*e,f=ZR(u,r),m=Math.exp(-d);return WR-c/f*m},o=u=>{let d=u*r*e,f=r*r*u*u*e,m=Math.exp(-d),p=ZR(u*u,r);return(-a(u)+WR>0?-1:1)*-f*m/p}):(a=u=>{let c=Math.exp(-u*e),d=u*e+1;return-WR+c*d},o=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let n=5/e,s=GO(a,o,n),i=s*qO(r,s*e),l=i*i;return{stiffness:l,damping:r*2*Math.sqrt(l),duration:oa(e)}}var QR=(e,t)=>(t?e>=0:e>0)&&e<1/0;function KR(e,t){if(QR(e,t))return e}function I6(e){let t=KR(e.stiffness),a=KR(e.damping,!0),o=KR(e.mass),r={...e,stiffness:t??ba.stiffness,damping:a??ba.damping,mass:o??ba.mass,isResolvedFromDuration:!1,isTimeDefined:(t??a??o)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(r.isTimeDefined){if(e.visualDuration){let n=UO(e.bounce||0),s=2*Math.PI/(e.visualDuration*1.2)*qO(n,2*Math.PI/1.2);r.stiffness=s*s,r.damping=2*n*Math.sqrt(r.stiffness)}else Object.assign(r,R6(r)),r.isResolvedFromDuration=!0;(!QR(r.stiffness)||!QR(r.damping,!0))&&(r.stiffness=ba.stiffness,r.damping=ba.damping)}return r}function af(e=ba.visualDuration,t=ba.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,o=a.keyframes[0],r=a.keyframes[a.keyframes.length-1],n={done:!1,value:o},{stiffness:s,damping:i,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=I6({...a}),f=L=>d?0:-va(L),m=i/(2*Math.sqrt(s*l)),p=va(Math.sqrt(s/l)),y=m*p,v={target:r,delta:r-o,velocity:f(a.velocity||0)||0,restSpeed:0,restDelta:0},g=()=>{let L=Math.abs(v.delta)<5;v.restSpeed=a.restSpeed||(L?ba.restSpeed.granular:ba.restSpeed.default),v.restDelta=a.restDelta||(L?ba.restDelta.granular:ba.restDelta.default)};g();let h,x,S;if(m<1){let L=ZR(p,m),C={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{C.A=(v.velocity+y*v.delta)/L,C.sinC=y*C.A+v.delta*L,C.cosC=y*v.delta-C.A*L};let E=T=>{T!==C.t&&(C.t=T,C.env=Math.exp(-y*T),C.sin=Math.sin(L*T),C.cos=Math.cos(L*T))};h=T=>(E(T),v.target-C.env*(C.A*C.sin+v.delta*C.cos)),x=T=>(E(T),C.env*(C.sinC*C.sin+C.cosC*C.cos))}else if(m===1){h=C=>v.target-Math.exp(-p*C)*(v.delta+(v.velocity+p*v.delta)*C);let L={C:0};S=()=>{L.C=v.velocity+p*v.delta},x=C=>Math.exp(-p*C)*(p*L.C*C-v.velocity)}else{let L=p*Math.sqrt(m*m-1),C=y-L,E=y+L,T=d?1/0:300/L,A=(P,F)=>Math.exp(F>T?-P*T-y*(F-T):-P*F),N={S:0,F:0};S=()=>{let P=(v.velocity+y*v.delta)/L;N.S=(v.delta+P)/2,N.F=(v.delta-P)/2},h=P=>v.target-N.S*A(C,P)-N.F*A(E,P),x=P=>C*N.S*A(C,P)+E*N.F*A(E,P)}S();let b=c&&u||null,I={calculatedDuration:b,retarget:(L,C)=>{v.target=L[L.length-1],v.delta=v.target-L[0],v.velocity=f(C),a.restSpeed&&a.restDelta||g(),I.calculatedDuration=b,n.done=!1,S()},velocity:L=>oa(x(L)),next:L=>{let C=h(L);if(c)n.done=L>=u;else{let E=oa(x(L));n.done=Math.abs(E)<=v.restSpeed&&Math.abs(v.target-C)<=v.restDelta}return n.value=n.done?v.target:C,n},toString:()=>{let L=Math.min(tf(I),2e4),C=Ex(E=>I.next(L*E).value,L,30);return L+"ms "+C},toTransition:()=>{}};return I}af.applyToOptions=e=>{let t=_O(e,100,af);return e.ease=t.ease,e.duration=oa(t.duration),e.type="keyframes",e};function $m({keyframes:e,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=L=>L<i||L>l,p=L=>i===void 0?l:l===void 0||Math.abs(i-L)<Math.abs(l-L)?i:l,y=a*t,v=d+y,g=s===void 0?v:s(v);g!==v&&(y=g-d);let h=L=>-y*Math.exp(-L/o),x=L=>{let C=h(L);f.done=Math.abs(C)<=u,f.value=f.done?g:g+C},S,b,I=L=>{m(f.value)&&(S=L,b=af({keyframes:[f.value,p(f.value)],velocity:-h(L)/o*1e3,damping:r,stiffness:n,restDelta:u,restSpeed:c}))};return I(0),{calculatedDuration:null,next:L=>{let C=!1;return!b&&S===void 0&&(C=!0,x(L),I(L)),S!==void 0&&L>=S?b.next(L-S):(!C&&x(L),f)}}}function T6(e,t,a){let o=[],r=a||Ba.mix||ef,n=e.length-1;for(let s=0;s<n;s++){let i=r(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Xt:t;i=Br(l,i)}o.push(i)}return o}function jO(e,t,{clamp:a=!0,ease:o,mixer:r}={}){let n=e.length;if(Io(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=T6(t,o,r),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=dn(e[d],e[d+1],c);return i[d](f)};return a?c=>u(fa(e[0],e[n-1],c)):u}function XO(e,t){let a=e[e.length-1];for(let o=1;o<=t;o++){let r=dn(0,t,o);e.push(Ue(a,1,r))}}function YO(e){let t=[0];return XO(t,e.length-1),t}function WO(e,t){return e.map(a=>a*t)}function w6(e,t){return e.map(()=>t||Wc).splice(0,e.length-1)}function Fl({duration:e=300,keyframes:t,times:a,ease:o="easeInOut"}){let r=zR(o)?o.map(vx):vx(o)||Wc,n={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(r)&&(!a||a.length!==2||a[0]===0&&a[1]===1)){let[l,u]=t,c=l===u?void 0:(Ba.mix||ef)(l,u);return{calculatedDuration:e,next:d=>(n.value=c?c(r(e>0?fa(0,1,d/e):1)):u,n.done=d>=e,n)}}let s=WO(a&&a.length===t.length?a:YO(t),e),i=jO(s,t,{ease:Array.isArray(r)?r:w6(t,r)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var E6=5;function A6(e,t,a){let o=Math.max(t-E6,0);return _m(a-e(o),t-o)}function KO(e,t,a=0){return t<=0?a:e.velocity?e.velocity(t):A6(o=>e.next(o).value,t,e.next(t).value)}var P6=e=>e!==null;function gi(e,{repeat:t,repeatType:a="loop"},o,r=1){let n=e.filter(P6),i=r<0||t&&a!=="loop"&&t%2===1?0:n.length-1;return!i||o===void 0?n[i]:o}var D6={decay:$m,inertia:$m,tween:Fl,keyframes:Fl,spring:af};function Ax(e){typeof e.type=="string"&&(e.type=D6[e.type])}function ZO(e,t){return{kind:e,animation:t,timestamp:gt.now(),frameTimestamp:It.timestamp,frameIsProcessing:It.isProcessing}}function Px(e,t,a){let o=globalThis.__MOTION_INSPECT__;if(o)try{o({...ZO("animation-start",e),options:a?{...t,...a}:t})}catch{}}function QO(e,t){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...ZO("layout-animation-start",e),node:t})}catch{}}var xi=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,a){return this.finished.then(t,a)}};var M6=e=>e/100,as=class extends xi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==gt.now()&&this.tick(gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),Px(this,this.options)}initAnimation(){let{options:t}=this;Ax(t);let{type:a=Fl,repeat:o=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=a||Fl;l!==Fl&&typeof i[0]!="number"&&(this.mixKeyframes=Br(M6,ef(i[0],i[1])),i=[0,100]);let u=l(i===t.keyframes?t:{...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=tf(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){let a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){let{generator:o,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(d){let C=Math.min(this.currentTime,r)/i,E=Math.floor(C),T=C%1;!T&&C>=1&&(T=1),T===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(f==="reverse"?(T=1-T,m&&(T-=m/i)):f==="mirror"&&(S=s)),x=fa(0,1,T)*i}let b;h?(this.delayState.value=c[0],b=this.delayState):b=S.next(x),n&&!h&&(b.value=n(b.value));let{done:I}=b;!h&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return L&&p!==$m&&(b.value=gi(c,this.options,v,this.speed)),y&&y(b.value),L&&this.finish(),b}then(t,a){return this.finished.then(t,a)}get duration(){return va(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+va(t)}get time(){return va(this.currentTime)}set time(t){t=oa(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return KO(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(gt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=va(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=HO,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=a??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var O6=new Set(["brightness","contrast","saturate","opacity"]);function k6(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=a.match(Zc)||[];if(!o)return e;let r=a.replace(o,""),n=O6.has(t)?1:0;return o!==a&&(n*=100),t+"("+n+r+")"}var N6=/\b([a-z-]*)\(.*?\)/gu,ep={...Yt,getAnimatableNone:e=>{let t=e.match(N6);return t?t.map(k6).join(" "):e}};var tp={...Yt,getAnimatableNone:e=>{let t=Yt.parse(e);return Yt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var JR={...hn,transform:Math.round};var JO={rotate:mr,pathRotation:mr,rotateX:mr,rotateY:mr,rotateZ:mr,scale:Wm,scaleX:Wm,scaleY:Wm,scaleZ:Wm,skew:mr,skewX:mr,skewY:mr,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:ts,originX:Rx,originY:Rx,originZ:de};var zl={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...JO,zIndex:JR,fillOpacity:ts,strokeOpacity:ts,numOctaves:JR};var V6={...zl,color:Gt,backgroundColor:Gt,outlineColor:Gt,fill:Gt,stroke:Gt,borderColor:Gt,borderTopColor:Gt,borderRightColor:Gt,borderBottomColor:Gt,borderLeftColor:Gt,filter:ep,WebkitFilter:ep,mask:tp,WebkitMask:tp},Dx=e=>V6[e];var B6=new Set([ep,tp]);function of(e,t){let a=Dx(e);return B6.has(a)||(a=Yt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}function $O(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Hl=e=>e*180/Math.PI,$R=e=>{let t=Hl(Math.atan2(e[1],e[0]));return e0(t)},F6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$R,rotateZ:$R,skewX:e=>Hl(Math.atan(e[1])),skewY:e=>Hl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},e0=e=>(e=e%360,e<0&&(e+=360),e),ek=$R,tk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ak=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),z6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tk,scaleY:ak,scale:e=>(tk(e)+ak(e))/2,rotateX:e=>e0(Hl(Math.atan2(e[6],e[5]))),rotateY:e=>e0(Hl(Math.atan2(-e[2],e[0]))),rotateZ:ek,rotate:ek,skewX:e=>Hl(Math.atan(e[4])),skewY:e=>Hl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _l(e){return e.includes("scale")?1:0}function Mx(e,t){if(!e||e==="none")return _l(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,r;if(a)o=z6,r=a;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=F6,r=i}if(!r)return _l(t);let n=o[t],s=r[1].split(",").map(H6);return typeof n=="function"?n(s):s[n]}var ok=(e,t)=>{let{transform:a="none"}=getComputedStyle(e);return Mx(a,t)};function H6(e){return parseFloat(e.trim())}var xn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wo=new Set([...xn,"pathRotation"]);var t0=e=>e===hn||e===de,_6=new Set(["x","y","z"]),U6=xn.filter(e=>!_6.has(e));function nk(e){let t=[];return U6.forEach(a=>{let o=e.getValue(a);if(o!==void 0){let r=o.get(),n=a.startsWith("scale")?1:0;if(r===n)return;t.push([a,r]),o.set(n)}}),t}var sk=new Set(["bottom","right"]);function rk(e,t,a,o,r,n){let s=parseFloat(e);if(!isNaN(s))return s;let{min:i,max:l}=t()[a],u=l-i;return n==="border-box"?u:u-parseFloat(o)-parseFloat(r)}var yi={width:({width:e,paddingLeft:t="0",paddingRight:a="0",boxSizing:o},r)=>rk(e,r,"x",t,a,o),height:({height:e,paddingTop:t="0",paddingBottom:a="0",boxSizing:o},r)=>rk(e,r,"y",t,a,o),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:a}=t();return parseFloat(e)+(a.max-a.min)},right:({left:e},t)=>{let{x:a}=t();return parseFloat(e)+(a.max-a.min)},x:({transform:e})=>Mx(e,"x"),y:({transform:e})=>Mx(e,"y")};yi.translateX=yi.x;yi.translateY=yi.y;var Ul=new Set,a0=!1,o0=!1,r0=!1;function ik(){if(o0){let e=[],t=new Set,a=new Set;Ul.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),sk.has(r.name)&&a.add(r.element))});let o=new Map;a.forEach(r=>{let n=nk(r);n.length&&(o.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}o0=!1,a0=!1,Ul.forEach(e=>e.complete(r0)),Ul.clear()}function lk(){Ul.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o0=!0)})}function uk(){r0=!0,lk(),ik(),r0=!1}function q6(e,t,a){if(typeof e=="string"){if(Vl(e)||Bl(e))return parseFloat(e);if(!Yt.test(e)&&Yt.test(a))return of(t,a)}return e??void 0}var Si=class{constructor(t,a,o,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ul.add(this),a0||(a0=!0,ze.read(lk),ze.resolveKeyframes(ik))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:o,motionValue:r}=this;if(t[0]===null){let n=r?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(o&&a){let i=q6(o.readValue(a,s),a,s);i!==void 0&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&n===void 0&&r.set(t[0])}$O(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ul.delete(this)}cancel(){this.state==="scheduled"&&(Ul.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ck=e=>e.startsWith("--");function Ox(e,t,a){ck(t)?e.style.setProperty(t,a):e.style[t]=a}var fk={};function kx(e,t){let a=Hm(e);return()=>fk[t]??a()}var dk=kx(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Nx=kx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ql=([e,t,a,o])=>`cubic-bezier(${e}, ${t}, ${a}, ${o})`;var n0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ql([0,.65,.55,1]),circOut:ql([.55,0,1,.45]),backIn:ql([.31,.01,.66,-.59]),backOut:ql([.33,1.53,.69,.99])};function s0(e,t){if(e)return typeof e=="function"?Nx()?Ex(e,t):"ease-out":Ym(e)?ql(e):Array.isArray(e)?e.map(a=>s0(a,t)||n0.easeOut):n0[e]}function mk(e,t,a,{delay:o=0,duration:r=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:a};l&&(c.offset=l);let d=s0(i,r);Array.isArray(d)&&(c.easing=d);let f={delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Vx(e){return typeof e=="function"&&"applyToOptions"in e}function pk({type:e,...t}){return Vx(e)&&Nx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var rf=class extends xi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:a,name:o,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,Io(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=pk(t);this.animation=mk(a,o,r,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=gi(r,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Ox(a,o,c),this.animation.cancel()}l?.(),this.notifyFinished()},Px(this,t,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return va(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+va(t)}get time(){return va(Number(this.animation.currentTime)||0)}set time(t){let a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oa(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&dk()?(this.animation.timeline=t,a?.(this.animation),Xt):o(this)}};var hk={anticipate:qm,backInOut:Um,circInOut:Xm};function G6(e){return e in hk}function gk(e){typeof e.ease=="string"&&G6(e.ease)&&(e.ease=hk[e.ease])}var i0=10,Bx=class extends rf{constructor(t){gk(t),Ax(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:a,onUpdate:o,onComplete:r,element:n,...s}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}let i=new as({...s,autoplay:!1}),l=Math.max(i0,gt.now()-this.startTime),u=fa(0,i0,l-i0),c=i.sample(l).value,{name:d}=this.options;n&&d&&Ox(n,d,c),a.setWithVelocity(i.sample(Math.max(0,l-u)).value,c,u),i.stop()}};var l0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yt.test(e)||e==="0")&&!e.startsWith("url("));function j6(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function xk(e,t,a,o){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=l0(r,t),i=l0(n,t);return!s||!i?(s!==i&&es(!1,`You are trying to animate ${t} from "${r}" to "${n}". "${s?n:r}" is not an animatable value.`,"value-not-animatable"),!1):j6(e)||(a==="spring"||Vx(a))&&o}function ap(e){e.duration=0,e.type="keyframes"}var op=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var X6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function yk(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&X6.test(e[t]))return!0;return!1}var Sk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Y6=Hm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vk(e){let{motionValue:t,name:a,repeatDelay:o,repeatType:r,damping:n,type:s,keyframes:i}=e;if(!a||!(op.has(a)||Sk.has(a)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return Y6()&&(op.has(a)||Sk.has(a)&&yk(i))&&(a!=="transform"||!c)&&!u&&!o&&r!=="mirror"&&n!==0&&s!=="inertia"}var W6=40,Fx=class extends xi{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gt.now();let{keyframes:a,name:o,motionValue:r,element:n}=t,s=t;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let i=n?.KeyframeResolver||Si;this.keyframeResolver=new i(a,(l,u,c)=>this.onKeyframesResolved(l,u,s,!c),o,r,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=o;this.resolvedAt=gt.now();let d=!0;xk(t,n,s,i)||(d=!1,(Ba.instantAnimations||!l)&&c?.(gi(t,o,a)),t[0]=t[t.length-1],ap(o),o.repeat=0);let f=r?this.resolvedAt?this.resolvedAt-this.createdAt>W6?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=o;o.startTime??(o.startTime=f),o.finalKeyframe=a,o.keyframes=t,o.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&vk(o),y;if(p){o.element=o.motionValue?.owner?.current;try{y=new Bx(o)}catch{y=new as(o)}}else y=new as(o);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uk()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function zx(e,t,a,o=0,r=1){let n=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,i=(s-1)*o;return typeof a=="function"?a(n,s):r===1?n*o:i-n*o}var bk=30,K6=e=>!isNaN(parseFloat(e)),Ck={current:void 0},u0=class{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let r=gt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=K6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){var o;return t==="change"?this.onChangeSubscribe(a):((o=this.events)[t]||(o[t]=new mn)).add(a)}onChangeSubscribe(t){let{events:a}=this;return!a.change&&!this.changeSubscriber?this.changeSubscriber=t:(a.change||(a.change=new mn,a.change.add(this.changeSubscriber),this.changeSubscriber=void 0),a.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:a.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){ze.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:a}=this;a?a(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ck.current&&Ck.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bk)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,bk);return _m(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0;let o=!1,r;r=t(()=>{o=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),a()}),o||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Fr(e,t){return new u0(e,t)}function Gl(e,t){if(e?.inherit&&t){let{inherit:a,...o}=e;return{...t,...o}}return e}function nf(e,t){let a=e?.[t]??e?.default??e;return a!==e?Gl(a,e):a}var Z6={type:"spring",stiffness:500,damping:25,restSpeed:10},Q6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),J6={type:"keyframes",duration:.8},$6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lk=(e,{keyframes:t})=>t.length>2?J6:wo.has(e)?e.startsWith("scale")?Q6(t[1]):Z6:$6;var e8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Rk(e){for(let t in e)if(!e8.has(t))return!0;return!1}var jl=(e,t,a,o={},r,n)=>s=>{let i=nf(o,e)||{},l=i.delay||o.delay||0,{elapsed:u=0}=o;u=u-oa(l);let c={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:r};Rk(i)||Object.assign(c,Lk(e,c)),c.duration&&(c.duration=oa(c.duration)),c.repeatDelay&&(c.repeatDelay=oa(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ap(c),c.delay===0&&(d=!0)),(Ba.instantAnimations||Ba.skipAnimations||r?.shouldSkipAnimations||i.skipAnimations)&&(d=!0,ap(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!n&&t.get()!==void 0){let f=gi(c.keyframes,i);if(f!==void 0){ze.update(()=>{c.onUpdate(f),c.onComplete()});return}}return i.isSync?new as(c):new Fx(c)};var t8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function a8(e){let t=t8.exec(e);if(!t)return[,];let[,a,o,r]=t;return[`--${a??o}`,r]}var o8=4;function c0(e,t,a=1){Io(a<=o8,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,r]=a8(e);if(!o)return;let n=window.getComputedStyle(t).getPropertyValue(o);if(n){let s=n.trim();return Vl(s)?parseFloat(s):s}return Kc(r)?c0(r,t,a+1):r}function Ik(e){let t=[{},{}];return e?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function Xl(e,t,a,o){if(typeof t=="function"){let[r,n]=Ik(o);t=t(a!==void 0?a:e.custom,r,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,n]=Ik(o);t=t(a!==void 0?a:e.custom,r,n)}return t}function Xo(e,t,a){let o=e.getProps();return Xl(o,t,a!==void 0?a:o.custom,e)}var Hx=new Set(["width","height","top","left","right","bottom",...xn]);var rp=e=>Array.isArray(e);function r8(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Fr(a))}function n8(e){return rp(e)?e[e.length-1]||0:e}function Tk(e,t){let a=Xo(e,t),{transitionEnd:o={},transition:r={},...n}=a||{};n={...n,...o};for(let s in n){let i=n8(n[s]);r8(e,s,i)}}var mt=e=>!!(e&&e.getVelocity);function wk(e){return!!(mt(e)&&e.add)}function sf(e,t){let a=e.getValue("willChange");if(wk(a))return a.add(t);if(!a&&Ba.WillChange){let o=new Ba.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function lf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var Ek="framerAppearId",np="data-"+lf(Ek);function _x(e){return e.props[np]}var s8=typeof window<"u";function i8({protectedKeys:e,needsAnimating:t},a){let o=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function Ux(e,t,{delay:a=0,transitionOverride:o,type:r}={}){let{transition:n,transitionEnd:s,...i}=t,l=e.getDefaultTransition();n=n?Gl(n,l):l;let u=n?.reduceMotion,c=n?.skipAnimations;o&&(n=o);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],m=n?.path;m&&m.animateVisualElement(e,i,n,a,d);for(let p in i){let y=e.getValue(p,e.latestValues[p]??null),v=i[p];if(v===void 0||f&&i8(f,p))continue;let g={delay:a,...nf(n||{},p)};c&&(g.skipAnimations=!0);let h=y.get();if(h!==void 0&&!y.isAnimating()&&!Array.isArray(v)&&v===h&&!g.velocity){ze.update(()=>y.set(v));continue}let x=!1;if(s8&&window.MotionHandoffAnimation){let I=_x(e);if(I){let L=window.MotionHandoffAnimation(I,p,ze);L!==null&&(g.startTime=L,x=!0)}}sf(e,p);let S=u??e.shouldReduceMotion;y.start(jl(p,y,v,S&&Hx.has(p)?{type:!1}:g,e,x));let b=y.animation;b&&d.push(b)}if(s){let p=()=>ze.update(()=>{s&&Tk(e,s)});d.length?Promise.all(d).then(p):p()}return d}function qx(e,t,a={}){let o=Xo(e,t,a.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(r=a.transitionOverride);let n=o?()=>Promise.all(Ux(e,o,a)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return l8(e,t,l,u,c,d,a)}:()=>Promise.resolve(),{when:i}=r;if(i){let[l,u]=i==="beforeChildren"?[n,s]:[s,n];return l().then(()=>u())}else return Promise.all([n(),s(a.delay)])}function l8(e,t,a=0,o=0,r=0,n=1,s){let i=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),i.push(qx(l,t,{...s,delay:a+(typeof o=="function"?0:o)+zx(e.variantChildren,l,o,r,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function Ak(e,t,a={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let r=t.map(n=>qx(e,n,a));o=Promise.all(r)}else if(typeof t=="string")o=qx(e,t,a);else{let r=typeof t=="function"?Xo(e,t,a.custom):t;o=Promise.all(Ux(e,r,a))}return o.then(()=>{e.notify("AnimationComplete",t)})}var Pk={test:e=>e==="auto",parse:e=>e};var Dk=e=>t=>t.test(e);var u8=[hn,de,ja,mr,qR,UR,Pk],f0=e=>u8.find(Dk(e));function Mk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Bl(e):!0}var c8=new Set(["auto","none","0"]);function Ok(e,t,a){let o=0,r;for(;o<e.length&&!r;){let n=e[o];typeof n=="string"&&!c8.has(n)&&MO(n)&&(r=e[o]),o++}if(r&&a)for(let n of t)e[n]!==r&&(e[n]=of(a,r))}var Gx=class extends Si{constructor(t,a,o,r,n){super(t,a,o,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Kc(d))){let f=c0(d,a.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Hx.has(o)||t.length!==2)return;let[r,n]=t;if(typeof r=="number"&&typeof n=="number")return;let s=f0(r),i=f0(n),l=HR(r),u=HR(n);if(l!==u&&yi[o]){this.needsMeasurement=!0;return}if(s!==i)if(t0(s)&&t0(i))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else yi[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Mk(t[r]))&&o.push(r);o.length&&Ok(t,o,a)}measure(){let{element:t,name:a}=this;return yi[a](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),a[0]=this.measuredOrigin;let r=a[a.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:a}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let o=a.length-1,r=a[o];a[o]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([n,s])=>{t.getValue(n).set(s)}),this.resolveNoneKeyframes()}};var sp=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Yl(e){return zm(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function uf(e){return zm(e)&&"ownerSVGElement"in e}var ip=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function jx(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let r=a?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}var f8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},d8=xn.length;function kk(e,t,a){let o="",r=!0;for(let s=0;s<d8;s++){let i=xn[s],l=e[i];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(i.startsWith("scale")?1:0);else{let c=parseFloat(l);u=i.startsWith("scale")?c===1:c===0}if(!u||a){let c=ip(l,zl[i]);if(!u){r=!1;let d=f8[i]||i;o+=`${d}(${c}) `}a&&(t[i]=c)}}let n=e.pathRotation;return n&&(r=!1,o+=`rotate(${ip(n,zl.pathRotation)}) `),o=o.trim(),a?o=a(t,r?"":o):r&&(o="none"),o}function Wl(e,t,a){let{style:o,vars:r,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(wo.has(l)){s=!0;continue}else if(Cx(l)){r[l]=u;continue}else{let c=ip(u,zl[l]);l.startsWith("origin")?(i=!0,n[l]=c):o[l]=c}}if(t.transform||(s||a?o.transform=kk(t,e.transform,a):o.transform&&(o.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:c=0}=n;o.transformOrigin=`${l} ${u} ${c}`}}var m8={offset:"stroke-dashoffset",array:"stroke-dasharray"},p8={offset:"strokeDashoffset",array:"strokeDasharray"};function Nk(e,t,a=1,o=0,r=!0){e.pathLength=1;let n=r?m8:p8;e[n.offset]=`${-o}`,e[n.array]=`${t} ${a}`}var d0=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lp(e,{attrX:t,attrY:a,attrScale:o,pathLength:r,pathSpacing:n=1,pathOffset:s=0,...i},l,u,c){if(Wl(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of d0)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),a!==void 0&&(d.y=a),o!==void 0&&(d.scale=o),r!==void 0&&Nk(d,r,n,s,!1)}function up({top:e,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:e,max:o}}}function m0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function p0(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function h0(e){return e===void 0||e===1}function Xx({scale:e,scaleX:t,scaleY:a}){return!h0(e)||!h0(t)||!h0(a)}function os(e){return Xx(e)||g0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function g0(e){return Vk(e.x)||Vk(e.y)}function Vk(e){return e&&e!=="0%"}function cp(e,t,a){let o=e-a,r=t*o;return a+r}function Bk(e,t,a,o,r){return r!==void 0&&(e=cp(e,r,o)),cp(e,a,o)+t}function x0(e,t=0,a=1,o,r){e.min=Bk(e.min,t,a,o,r),e.max=Bk(e.max,t,a,o,r)}function y0(e,{x:t,y:a}){x0(e.x,t.translate,t.scale,t.originPoint),x0(e.y,a.translate,a.scale,a.originPoint)}var Fk=.999999999999,zk=1.0000000000001;function Uk(e,t,a,o=!1){let r=a.length;if(!r)return;t.x=t.y=1;let n,s;for(let i=0;i<r;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(pr(e.x,-n.scroll.offset.x),pr(e.y,-n.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,y0(e,s)),o&&os(n.latestValues)&&fp(e,n.latestValues,n.layout?.layoutBox))}t.x<zk&&t.x>Fk&&(t.x=1),t.y<zk&&t.y>Fk&&(t.y=1)}function pr(e,t){e.min+=t,e.max+=t}function Hk(e,t,a,o,r=.5){let n=Ue(e.min,e.max,r);x0(e,t,a,n,o)}function _k(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function fp(e,t,a){let o=a??e;Hk(e.x,_k(t.x,o.x),t.scaleX,t.scale,t.originX),Hk(e.y,_k(t.y,o.y),t.scaleY,t.scale,t.originY)}function Yx(e,t){return up(p0(e.getBoundingClientRect(),t))}function S0(e,t,a){let o=Yx(e,a),{scroll:r}=t;return r&&(pr(o.x,r.offset.x),pr(o.y,r.offset.y)),o}var{schedule:Kl,cancel:h8}=wx(queueMicrotask,!1);var hr={x:!1,y:!1};function Wx(){return hr.x||hr.y}function v0(e){return e==="x"||e==="y"?hr[e]?null:(hr[e]=!0,()=>{hr[e]=!1}):hr.x||hr.y?null:(hr.x=hr.y=!0,()=>{hr.x=hr.y=!1})}function Kx(e,t){let a=jx(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[a,r,()=>o.abort()]}function g8(e){return!(e.pointerType==="touch"||Wx())}function b0(e,t,a={}){let[o,r,n]=Kx(e,a);return o.forEach(s=>{let i=!1,l=!1,u,c=()=>{s.removeEventListener("pointerleave",p)},d=v=>{u&&(u(v),u=void 0),c()},f=v=>{i=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(v))},m=()=>{i=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},p=v=>{if(v.pointerType!=="touch"){if(i){l=!0;return}d(v)}},y=v=>{if(!g8(v))return;l=!1;let g=t(s,v);typeof g=="function"&&(u=g,s.addEventListener("pointerleave",p,r))};s.addEventListener("pointerenter",y,r),s.addEventListener("pointerdown",m,r)}),n}var C0=(e,t)=>t?e===t?!0:C0(e,t.parentElement):!1;var Zl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var x8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L0(e){return x8.has(e.tagName)||e.isContentEditable===!0}var y8=new Set(["INPUT","SELECT","TEXTAREA"]);function R0(e){return y8.has(e.tagName)||e.isContentEditable===!0}var cf=new WeakSet;function qk(e){return t=>{t.key==="Enter"&&e(t)}}function I0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var Gk=(e,t)=>{let a=e.currentTarget;if(!a)return;let o=qk(()=>{if(cf.has(a))return;I0(a,"down");let r=qk(()=>{I0(a,"up")}),n=()=>I0(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function jk(e){return Zl(e)&&!Wx()}var Xk=new WeakSet;function T0(e,t,a={}){let[o,r,n]=Kx(e,a),s=i=>{let l=i.currentTarget;if(!jk(i)||Xk.has(i))return;cf.add(l),a.stopPropagation&&Xk.add(i);let u=t(l,i),c={...r,capture:!0},d=(p,y)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),cf.has(l)&&cf.delete(l),jk(p)&&typeof u=="function"&&u(p,{success:y})},f=p=>{d(p,l===window||l===document||a.useGlobalTarget||C0(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return o.forEach(i=>{(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),Yl(i)&&(i.addEventListener("focus",u=>Gk(u,r)),!L0(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}var Zx=new WeakMap,Qx,Yk=(e,t,a)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:uf(o)&&"getBBox"in o?o.getBBox()[t]:o[a],S8=Yk("inline","width","offsetWidth"),v8=Yk("block","height","offsetHeight");function b8({target:e,borderBoxSize:t}){Zx.get(e)?.forEach(a=>{a(e,{get width(){return S8(e,t)},get height(){return v8(e,t)}})})}function C8(e){e.forEach(b8)}function L8(){typeof ResizeObserver>"u"||(Qx=new ResizeObserver(C8))}function Wk(e,t){Qx||L8();let a=jx(e);return a.forEach(o=>{let r=Zx.get(o);r||(r=new Set,Zx.set(o,r)),r.add(t),Qx?.observe(o)}),()=>{a.forEach(o=>{let r=Zx.get(o);r?.delete(t),r?.size||Qx?.unobserve(o)})}}var Jx=new Set,ff;function R8(){ff=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Jx.forEach(t=>t(e))},window.addEventListener("resize",ff)}function Kk(e){return Jx.add(e),ff||R8(),()=>{Jx.delete(e),!Jx.size&&typeof ff=="function"&&(window.removeEventListener("resize",ff),ff=void 0)}}function $x(e,t){return typeof e=="function"?Kk(e):Wk(e,t)}var Ql={value:null,addProjectionMetrics:null};function Zk(e){return uf(e)&&e.tagName==="svg"}var w0=e=>typeof e=="number"?e:parseFloat(e);var E0=()=>({translate:0,scale:1,origin:0,originPoint:0}),vi=()=>({x:E0(),y:E0()}),A0=()=>({min:0,max:0}),kt=()=>({x:A0(),y:A0()});var Qk=new WeakMap;function rs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yn(e){return typeof e=="string"||Array.isArray(e)}var ey=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],df=["initial",...ey];function bi(e){if(rs(e.animate))return!0;for(let t=0;t<df.length;t++)if(yn(e[df[t]]))return!0;return!1}function dp(e){return!!(bi(e)||e.variants)}function Jk(e,t,a){for(let o in t){let r=t[o],n=a[o];if(mt(r))e.addValue(o,r);else if(mt(n))e.addValue(o,Fr(r,{owner:e}));else if(n!==r)if(e.hasValue(o)){let s=e.getValue(o);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{let s=e.getStaticValue(o);e.addValue(o,Fr(s!==void 0?s:r,{owner:e}))}}for(let o in a)t[o]===void 0&&e.removeValue(o);return t}var Ci={current:null},Jl={current:!1};var I8=typeof window<"u";function mp(){if(Jl.current=!0,!!I8)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ci.current=e.matches;e.addEventListener("change",t),t()}else Ci.current=!1}var $k=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ty={};function hp(e){ty=e}function P0(){return ty}var pp=class{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Si,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=gt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ze.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=a.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=a,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=bi(a),this.isVariantNode=dp(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&mt(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,Qk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Jl.current||mp(),this.shouldReduceMotion=Ci.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),To(this.notifyUpdate),To(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&op.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:i,times:l,ease:u,duration:c}=a.accelerate,d=new rf({element:this.current,name:t,keyframes:i,times:l,ease:u,duration:oa(c)}),f=s(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let o=wo.has(t);o&&this.onBindTransform&&this.onBindTransform();let r=a.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ze.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),n&&n()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ty){let a=ty[t];if(!a)continue;let{isEnabled:o,Feature:r}=a;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<$k.length;o++){let r=$k[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n="on"+r,s=t[n];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Jk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let o=this.values.get(t);if(a!==o){o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a);let r=a.get();r!==void 0&&(this.latestValues[t]=r)}}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=Fr(a??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Vl(o)||Bl(o))?o=parseFloat(o):typeof o!="number"&&!Yt.test(o)&&Yt.test(a)&&(o=of(t,a)),this.setBaseTarget(t,mt(o)?o.get():o)),mt(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){let{initial:a}=this.props,o;if(typeof a=="string"||typeof a=="object"){let n=Xl(this.props,a,this.presenceContext?.custom);n&&(o=n[t])}if(a&&o!==void 0)return o;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!mt(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new mn),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Kl.render(this.render)}};var mf=class extends pp{constructor(){super(...arguments),this.KeyframeResolver=Gx}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){let o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};var da=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function ay(e,{style:t,vars:a},o,r){let n=e.style,s;for(s in t)n[s]=t[s];r?.applyProjectionStyles(n,o);for(s in a)n.setProperty(s,a[s])}var $l={};function gp(e,{layout:t,layoutId:a}){return wo.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!$l[e]||e==="opacity")}function eu(e,t,a){let o=e.style,r=t?.style,n={};if(!o)return n;for(let s in o)(mt(o[s])||r&&mt(r[s])||gp(s,e)||a?.getValue(s)?.liveStyle!==void 0)&&(n[s]=o[s]);return n}function T8(e){return window.getComputedStyle(e)}var xp=class extends mf{constructor(){super(...arguments),this.type="html",this.renderInstance=ay}mount(t){Io(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,a){if(wo.has(a))return this.projection?.isProjecting?_l(a):ok(t,a);{let o=T8(t),r=(Cx(a)?o.getPropertyValue(a):o[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return Yx(t,a)}build(t,a,o){Wl(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return eu(t,a,o)}};var oy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var yp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function eN(e,t,a,o){ay(e,t,void 0,o);for(let r in t.attrs)e.setAttribute(oy.has(r)?r:lf(r),t.attrs[r])}function Sp(e,t,a){let o=eu(e,t,a);for(let r in e)if(mt(e[r])||mt(t[r])){let n=xn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[n]=e[r]}return o}var vp=class extends mf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,a){return wo.has(a)?super.getBaseTargetFromProps(t,a)??_l(a):t[a]}getDefaultValue(t){return wo.has(t)?this.latestValues[t]??_l(t):void 0}readValueFromInstance(t,a){if(wo.has(a)){let o=Dx(a);return o&&o.default||0}if(d0.includes(a)){let r=getComputedStyle(t)[a];if(typeof r=="string"&&r)return r.trim()}return a=oy.has(a)?a:lf(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return Sp(t,a,o)}build(t,a,o){lp(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,r){eN(t,a,o,r)}mount(t){this.isSVGTag=yp(t.tagName),super.mount(t)}};var w8=df.length;function D0(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?D0(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<w8;a++){let o=df[a],r=e.props[o];(yn(r)||r===!1)&&(t[o]=r)}return t}function M0(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let o=0;o<a;o++)if(t[o]!==e[o])return!1;return!0}var E8=[...ey].reverse(),A8=ey.length;function P8(e){return t=>Promise.all(t.map(({animation:a,options:o})=>Ak(e,a,o)))}function O0(e){let t=P8(e),a=tN(),o=!0,r=!1,n=u=>(c,d)=>{let f=Xo(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...y}=f;c={...c,...y,...p}}return c};function s(u){t=u(e)}function i(u){let{props:c}=e,d=D0(e.parent)||{},f=[],m=new Set,p={},y=1/0;for(let g=0;g<A8;g++){let h=E8[g],x=a[h],S=c[h]!==void 0?c[h]:d[h],b=yn(S),I=h===u?x.isActive:null;I===!1&&(y=g);let L=S===d[h]&&S!==c[h]&&b;if(L&&(o||r)&&e.manuallyAnimateOnMount&&(L=!1),x.protectedKeys={...p},!x.isActive&&I===null||!S&&!x.prevProp||rs(S)||typeof S=="boolean")continue;if(h==="exit"&&x.isActive&&I!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}let C=aN(x.prevProp,S),E=C||h===u&&x.isActive&&!L&&b||g>y&&b,T=!1,A=Array.isArray(S)?S:[S],N=A.reduce(n(h),{});I===!1&&(N={});let{prevResolvedValues:P={}}=x,F={...P,...N},k=O=>{E=!0,m.has(O)&&(T=!0,m.delete(O)),x.needsAnimating[O]=!0;let V=e.getValue(O);V&&(V.liveStyle=!1)};for(let O in F){let V=N[O],w=P[O];if(p.hasOwnProperty(O))continue;let z=!1;rp(V)&&rp(w)?z=!M0(V,w)||C:z=V!==w,z?V!=null?k(O):m.add(O):V!==void 0&&m.has(O)?k(O):x.protectedKeys[O]=!0}x.prevProp=S,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),(o||r)&&e.blockInitialAnimation&&(E=!1);let H=L&&C;E&&(!H||T)&&f.push(...A.map(O=>{let V={type:h};if(typeof O=="string"&&(o||r)&&!H&&e.manuallyAnimateOnMount&&e.parent){let{parent:w}=e,z=Xo(w,O);if(w.enteringChildren&&z){let{delayChildren:U}=z.transition||{};V.delay=zx(w.enteringChildren,e,U)}}return{animation:O,options:V}}))}if(m.size){let g={};if(typeof c.initial!="boolean"){let h=Xo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(g.transition=h.transition)}m.forEach(h=>{let x=e.getBaseTarget(h),S=e.getValue(h);S&&(S.liveStyle=!0),g[h]=x??null}),f.push({animation:g})}let v=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),o=!1,r=!1,v?t(f):Promise.resolve()}function l(u,c){if(a[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),a[u].isActive=c;let d=i(u);for(let f in a)a[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:s,getState:()=>a,reset:()=>{a=tN(),r=!0}}}function aN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!M0(t,e):!1}function tu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tN(){return{animate:tu(!0),whileInView:tu(),whileHover:tu(),whileTap:tu(),whileDrag:tu(),whileFocus:tu(),exit:tu()}}function ry(e,t){e.min=t.min,e.max=t.max}function gr(e,t){ry(e.x,t.x),ry(e.y,t.y)}function k0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var oN=1e-4,D8=1-oN,M8=1+oN,rN=.01,O8=0-rN,k8=0+rN;function ra(e){return e.max-e.min}function F0(e,t,a){return Math.abs(e-t)<=a}function N0(e,t,a,o=.5){e.origin=o,e.originPoint=Ue(t.min,t.max,e.origin),e.scale=ra(a)/ra(t),e.translate=Ue(a.min,a.max,e.origin)-e.originPoint,(e.scale>=D8&&e.scale<=M8||isNaN(e.scale))&&(e.scale=1),(e.translate>=O8&&e.translate<=k8||isNaN(e.translate))&&(e.translate=0)}function au(e,t,a,o){N0(e.x,t.x,a.x,o?o.originX:void 0),N0(e.y,t.y,a.y,o?o.originY:void 0)}function V0(e,t,a,o=0){let r=o?Ue(a.min,a.max,o):a.min;e.min=r+t.min,e.max=e.min+ra(t)}function z0(e,t,a,o){V0(e.x,t.x,a.x,o?.x),V0(e.y,t.y,a.y,o?.y)}function B0(e,t,a,o=0){let r=o?Ue(a.min,a.max,o):a.min;e.min=t.min-r,e.max=e.min+ra(t)}function pf(e,t,a,o){B0(e.x,t.x,a.x,o?.x),B0(e.y,t.y,a.y,o?.y)}function nN(e,t,a,o,r){return e-=t,e=cp(e,1/a,o),r!==void 0&&(e=cp(e,1/r,o)),e}function N8(e,t=0,a=1,o=.5,r,n=e,s=e){if(ja.test(t)&&(t=parseFloat(t),t=Ue(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ue(n.min,n.max,o);e===n&&(i-=t),e.min=nN(e.min,t,a,i,r),e.max=nN(e.max,t,a,i,r)}function sN(e,t,[a,o,r],n,s){N8(e,t[a],t[o],t[r],t.scale,n,s)}var V8=["x","scaleX","originX"],B8=["y","scaleY","originY"];function H0(e,t,a,o){sN(e.x,t,V8,a?a.x:void 0,o?o.x:void 0),sN(e.y,t,B8,a?a.y:void 0,o?o.y:void 0)}function iN(e){return e.translate===0&&e.scale===1}function _0(e){return iN(e.x)&&iN(e.y)}function lN(e,t){return e.min===t.min&&e.max===t.max}function cN(e,t){return lN(e.x,t.x)&&lN(e.y,t.y)}function uN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function U0(e,t){return uN(e.x,t.x)&&uN(e.y,t.y)}function q0(e){return ra(e.x)/ra(e.y)}function G0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yo(e){return[e("x"),e("y")]}function fN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;let a=fN(e,t.target.x),o=fN(e,t.target.y);return`${a}% ${o}%`}};var dN={correct:(e,{treeScale:t,projectionDelta:a})=>{let o=e,r=Yt.parse(e);if(r.length>5)return o;let n=Yt.createTransformer(e),s=typeof r[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;r[0+s]/=i,r[1+s]/=l;let u=Ue(i,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),n(r)}};function mN(e,t,a){let o="",r=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((r||n||s)&&(o=`translate3d(${r}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:y}=a;u&&(o=`perspective(${u}px) ${o}`),c&&(o+=`rotate(${c}deg) `),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),m&&(o+=`rotateY(${m}deg) `),p&&(o+=`skewX(${p}deg) `),y&&(o+=`skewY(${y}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(o+=`scale(${i}, ${l})`),o||"none"}var F8=sp.length,pN=e=>typeof e=="number"||de.test(e);function gN(e,t,a,o,r,n){r?(e.opacity=Ue(0,a.opacity??1,z8(o)),e.opacityExit=Ue(t.opacity??1,0,H8(o))):n&&(e.opacity=Ue(t.opacity??1,a.opacity??1,o));for(let s=0;s<F8;s++){let i=sp[s],l=hN(t,i),u=hN(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||pN(l)===pN(u)?(e[i]=Math.max(Ue(w0(l),w0(u),o),0),(ja.test(u)||ja.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=Ue(t.rotate||0,a.rotate||0,o))}function hN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var z8=xN(0,.5,jm),H8=xN(.5,.95,Xt);function xN(e,t,a){return o=>o<e?0:o>t?1:a(dn(e,t,o))}function yN(e,t,a){let o=mt(e)?e:Fr(e);return o.start(jl("",o,t,a)),o.animation}function Sn(e,t,a,o={passive:!0}){return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)}var SN=(e,t)=>e.depth-t.depth;var ny=class{constructor(){this.children=[],this.isDirty=!1}add(t){Nl(this.children,t),this.isDirty=!0}remove(t){mi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SN),this.isDirty=!1,this.children.forEach(t)}};function vN(e,t){let a=gt.now(),o=({timestamp:r})=>{let n=r-a;n>=t&&(To(o),e(n-t))};return ze.setup(o,!0),()=>To(o)}function ou(e){return mt(e)?e.get():e}var sy=class{constructor(){this.members=[]}add(t){Nl(this.members,t);for(let a=this.members.length-1;a>=0;a--){let o=this.members[a];if(o===t||o===this.lead||o===this.prevLead)continue;let r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(mi(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(mi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){let o=this.members[a];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,a){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=o.options,{layoutDependency:n}=t.options;(r===void 0||r!==n)&&(t.resumeFrom=o,a&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var bN={borderRadius:{...hf,applyTo:[...sp]},borderTopLeftRadius:hf,borderTopRightRadius:hf,borderBottomLeftRadius:hf,borderBottomRightRadius:hf,boxShadow:dN};var ru={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign($l,{...bN,...$l});var nu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},j0=["","X","Y","Z"],_8=1e3,U8=0;function X0(e,t,a,o){let{latestValues:r}=t;r[e]&&(a[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function PN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=_x(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:r,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",ze,!(r||n))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&PN(o)}function iy({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(s={},i=t?.()){this.id=U8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ql.value&&(nu.nodes=nu.calculatedTargetDeltas=nu.calculatedProjections=0),this.nodes.forEach(j8),this.nodes.forEach(J8),this.nodes.forEach($8),this.nodes.forEach(X8),Ql.addProjectionMetrics&&Ql.addProjectionMetrics(nu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ny)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new mn),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=uf(s)&&!Zk(s),this.instance=s;let{layoutId:i,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{d=window.innerWidth}),e(s,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=vN(f,250),ru.hasAnimatedSinceResize&&(ru.hasAnimatedSinceResize=!1,this.nodes.forEach(RN)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||rj,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!U0(this.targetLayout,m),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...nf(p,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,h,x.path)}else d||RN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),To(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ej),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&PN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(W8),this.nodes.forEach(CN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(LN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(K8),this.nodes.forEach(Z8),this.nodes.forEach(Q8),this.nodes.forEach(q8),this.nodes.forEach(G8)):this.nodes.forEach(LN),this.clearAllSnapshots();let i=gt.now();It.delta=fa(0,1e3/60,i-It.timestamp),It.timestamp=i,It.isProcessing=!0,Jm.update.process(It),Jm.preRender.process(It),Jm.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Y8),this.sharedNodes.forEach(tj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ra(this.snapshot.measuredBox.x)&&!ra(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){let l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!_0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||os(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),nj(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return kt();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sj))){let{scroll:u}=this.root;u&&(pr(i.x,u.offset.x),pr(i.y,u.offset.y))}return i}removeElementScroll(s){let i=kt();if(gr(i,s),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&gr(i,s),pr(i.x,c.offset.x),pr(i.y,c.offset.y))}return i}applyTransform(s,i=!1,l){let u=l||kt();gr(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(pr(u.x,-d.scroll.offset.x),pr(u.y,-d.scroll.offset.y)),os(d.latestValues)&&fp(u,d.latestValues,d.layout?.layoutBox)}return os(this.latestValues)&&fp(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){let i=kt();gr(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!os(u.latestValues))continue;let c;u.instance&&(Xx(u.latestValues)&&u.updateSnapshot(),c=kt(),gr(c,u.measurePageBox())),H0(i,u.latestValues,u.snapshot?.layoutBox,c)}return os(this.latestValues)&&H0(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==i;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=It.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),z0(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):gr(this.target,this.layout.layoutBox),y0(this.target,this.targetDelta)):gr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Ql.value&&nu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Xx(this.parent.latestValues)||g0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,i,l){this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),pf(this.relativeTargetOrigin,i,l,this.options.layoutAnchor||void 0),gr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let s=this.getLead(),i=!!this.resumingFrom||this!==s,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===It.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;gr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;Uk(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=kt());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(k0(this.prevProjectionDelta.x,this.projectionDelta.x),k0(this.prevProjectionDelta.y,this.projectionDelta.y)),au(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!G0(this.projectionDelta.x,this.prevProjectionDelta.x)||!G0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ql.value&&nu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vi(),this.projectionDelta=vi(),this.projectionDeltaWithTransform=vi()}setAnimationOrigin(s,i=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let m=kt(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,v=p!==y,g=this.getStack(),h=!g||g.members.length<=1,x=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(oj));this.animationProgress=0;let S,b=l?.interpolateProjection(s);this.mixTargetDelta=I=>{let L=I/1e3,C=b?.(L);C?(f.x.translate=C.x,f.x.scale=Ue(s.x.scale,1,L),f.x.origin=s.x.origin,f.x.originPoint=s.x.originPoint,f.y.translate=C.y,f.y.scale=Ue(s.y.scale,1,L),f.y.origin=s.y.origin,f.y.originPoint=s.y.originPoint):(IN(f.x,s.x,L),IN(f.y,s.y,L)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),aj(this.relativeTarget,this.relativeTargetOrigin,m,L),S&&cN(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=kt()),gr(S,this.relativeTarget)),v&&(this.animationValues=d,gN(d,c,this.latestValues,L,x,h)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(To(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{ru.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fr(0)),this.motionValue.jump(0,!1),this.currentAnimation=yN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),QO(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,layout:l,latestValues:u}=s,{target:c}=s;if(!(!i||!c||!l)){if(this!==s&&this.layout&&l&&DN(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||kt();let d=ra(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;let f=ra(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}gr(i,c),fp(i,u),au(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new sy),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&X0("z",s,u,this.animationValues);for(let c=0;c<j0.length;c++)X0(`rotate${j0[c]}`,s,u,this.animationValues),X0(`skew${j0[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ou(i?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ou(i?.pointerEvents)||""),this.hasProjected&&!os(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=mN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;let{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in $l){if(c[p]===void 0)continue;let{correct:y,applyTo:v,isCSSVariable:g}=$l[p],h=d==="none"?c[p]:y(c[p],u);if(v){let x=v.length;for(let S=0;S<x;S++)s[v[S]]=h}else g?this.options.visualElement.renderState.vars[p]=h:s[p]=h}this.options.layoutId&&(s.pointerEvents=u===this?ou(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(CN),this.root.sharedNodes.clear()}}}function q8(e){e.updateLayout()}function G8(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:o}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;if(r==="size")Yo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=ra(d);d.min=a[c].min,d.max=d.min+f});else if(r==="x"||r==="y"){let c=r==="x"?"y":"x";ry(n?t.measuredBox[c]:t.layoutBox[c],a[c])}else DN(r,t.layoutBox,a)&&Yo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=ra(a[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let s=vi();au(s,a,t.layoutBox);let i=vi();n?au(i,e.applyTransform(o,!0),t.measuredBox):au(i,a,t.layoutBox);let l=!_0(s),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=kt();pf(p,t.layoutBox,d.layoutBox,m);let y=kt();pf(y,a,f.layoutBox,m),U0(p,y)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function j8(e){Ql.value&&nu.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function X8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Y8(e){e.clearSnapshot()}function CN(e){e.clearMeasurements()}function W8(e){e.isLayoutDirty=!0,e.updateLayout()}function LN(e){e.isLayoutDirty=!1}function K8(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Z8(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Q8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function RN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J8(e){e.resolveTargetDelta()}function $8(e){e.calcProjection()}function ej(e){e.resetSkewAndRotation()}function tj(e){e.removeLeadSnapshot()}function IN(e,t,a){e.translate=Ue(t.translate,0,a),e.scale=Ue(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function TN(e,t,a,o){e.min=Ue(t.min,a.min,o),e.max=Ue(t.max,a.max,o)}function aj(e,t,a,o){TN(e.x,t.x,a.x,o),TN(e.y,t.y,a.y,o)}function oj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rj={duration:.45,ease:[.4,0,.1,1]},wN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),EN=wN("applewebkit/")&&!wN("chrome/")?Math.round:Xt;function AN(e){e.min=EN(e.min),e.max=EN(e.max)}function nj(e){AN(e.x),AN(e.y)}function DN(e,t,a){return e==="position"||e==="preserve-aspect"&&!F0(q0(t),q0(a),.2)}function sj(e){return e!==e.root&&e.scroll?.wasRoot}var MN=iy({attachResizeListener:(e,t)=>Sn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var ly={current:void 0},bp=iy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ly.current){let e=new MN({});e.mount(window),e.setOptions({layoutScroll:!0}),ly.current=e}return ly.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var uy=R(D(),1),ss=R(D(),1);var ON=R(D(),1),ns=(0,ON.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var NN=R(D(),1);function kN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ij(...e){return t=>{let a=!1,o=e.map(r=>{let n=kN(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():kN(e[r],null)}}}}function VN(...e){return NN.useCallback(ij(...e),e)}var Y0=class extends uy.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(Yl(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=a.offsetParent,r=Yl(o)&&o.offsetWidth||0,n=Yl(o)&&o.offsetHeight||0,s=getComputedStyle(a),i=this.props.sizeRef.current;i.height=parseFloat(s.height),i.width=parseFloat(s.width),i.top=a.offsetTop,i.left=a.offsetLeft,i.right=r-i.width-i.left,i.bottom=n-i.height-i.top,i.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function FN({children:e,isPresent:t,anchorX:a,anchorY:o,root:r,pop:n}){let s=(0,ss.useId)(),i=(0,ss.useRef)(null),l=(0,ss.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,ss.useContext)(ns),c=n!==!1?e.props?.ref??e?.ref:void 0,d=VN(i,c);return(0,ss.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:y,right:v,bottom:g,direction:h}=l.current;if(t||n===!1||!i.current||!f||!m)return;let x=h==="rtl",S=a==="left"?x?`right: ${v}`:`left: ${y}`:x?`left: ${y}`:`right: ${v}`,b=o==="bottom"?`bottom: ${g}`:`top: ${p}`;i.current.dataset.motionPopId=s;let I=document.createElement("style");u&&(I.nonce=u);let L=r??document.head;return L.appendChild(I),I.sheet&&I.sheet.insertRule(`
10
- [data-motion-pop-id="${s}"] {
8
+ `+o.stack}}var Zb=Object.prototype.hasOwnProperty,$C=ua.unstable_scheduleCallback,db=ua.unstable_cancelCallback,JU=ua.unstable_shouldYield,$U=ua.unstable_requestPaint,Bo=ua.unstable_now,e3=ua.unstable_getCurrentPriorityLevel,pA=ua.unstable_ImmediatePriority,hA=ua.unstable_UserBlockingPriority,tg=ua.unstable_NormalPriority,t3=ua.unstable_LowPriority,gA=ua.unstable_IdlePriority,a3=ua.log,o3=ua.unstable_setDisableYieldValue,tm=null,Fo=null;function Ti(e){if(typeof a3=="function"&&o3(e),Fo&&typeof Fo.setStrictMode=="function")try{Fo.setStrictMode(tm,e)}catch{}}var zo=Math.clz32?Math.clz32:i3,r3=Math.log,n3=Math.LN2;function i3(e){return e>>>=0,e===0?32:31-(r3(e)/n3|0)|0}var mh=256,ph=262144,hh=4194304;function al(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wg(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?r=al(o):(i&=s,i!==0?r=al(i):a||(a=s&~e,a!==0&&(r=al(a))))):(s=o&~n,s!==0?r=al(s):i!==0?r=al(i):a||(a=o&~e,a!==0&&(r=al(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function am(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xA(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-zo(a),r=1<<o;t|=e[o],a&=~r}return t}function s3(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yA(){var e=hh;return hh<<=1,(hh&62914560)===0&&(hh=4194304),e}function mb(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function om(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function l3(e,t,a,o,r,n){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-zo(a),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}a&=~d}o!==0&&SA(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(i&~t))}function SA(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-zo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function vA(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-zo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function bA(e,t){var a=t&-t;return a=(a&42)!==0?1:eL(a),(a&(e.suspendedLanes|t))!==0?0:a}function eL(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tL(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function CA(){var e=rt.p;return e!==0?e:(e=window.event,e===void 0?32:oP(e.type))}function ww(e,t){var a=rt.p;try{return rt.p=e,t()}finally{rt.p=a}}var qn=Math.random().toString(36).slice(2),Ea="__reactFiber$"+qn,vo="__reactProps$"+qn,Ac="__reactContainer$"+qn,Ew="__reactEvents$"+qn,u3="__reactListeners$"+qn,c3="__reactHandles$"+qn,Aw="__reactResources$"+qn,rm="__reactMarker$"+qn,ag="__reactLoad$"+qn;function Eg(e){delete e[Ea],delete e[vo],delete e[u3],delete e[c3]}function nl(e){var t;if(t=e[Ea])return t;for(var a=e.parentNode;a;){if(t=a[Ac]||a[Ea]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=XE(e);e!==null;){if(a=e[Ea])return a;e=XE(e)}return t}e=a,a=e.parentNode}return null}function Mc(e){if(e=e[Ea]||e[Ac]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Cd(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(Z(33))}function ic(e){var t=e[Aw];return t||(t=e[Aw]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ya(e){e[rm]=!0}function LA(e){e[ag]=void 0}var RA=new Set,IA={};function bl(e,t){xc(e,t),xc(e+"Capture",t)}function xc(e,t){for(IA[e]=t,e=0;e<t.length;e++)RA.add(t[e])}var f3=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]*$"),Mw={},Pw={};function d3(e){return Zb.call(Pw,e)?!0:Zb.call(Mw,e)?!1:f3.test(e)?Pw[e]=!0:(Mw[e]=!0,!1)}var et=!1;function Dw(){var e=et;return et=!1,e}function Oh(e,t,a){if(d3(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function gh(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Pn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Oo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m3(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qb(e){if(!e._valueTracker){var t=TA(e)?"checked":"value";e._valueTracker=m3(e,t,""+e[t])}}function wA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=TA(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}var p3=/[\n"\\]/g;function or(e){return e.replace(p3,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jb(e,t,a,o,r,n,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Oo(t)):e.value!==""+Oo(t)&&(e.value=""+Oo(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?pb(e,Oo(e.value)):pb(e,Oo(t)):a!=null?pb(e,Oo(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Oo(s):e.removeAttribute("name")}function EA(e,t,a,o,r,n,i,s){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){Qb(e);return}a=a!=null?""+Oo(a):"",t=t!=null?""+Oo(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Qb(e)}function pb(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function sc(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Oo(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function AA(e,t,a){if(t!=null&&(t=""+Oo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Oo(a):""}function MA(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(Z(92));if(bd(o)){if(1<o.length)throw Error(Z(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Oo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Qb(e)}function yc(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var h3=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 Ow(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||h3.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function PA(e,t,a){if(t!=null&&typeof t!="object")throw Error(Z(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",et=!0);for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&(Ow(e,r,o),et=!0)}else for(var n in t)t.hasOwnProperty(n)&&Ow(e,n,t[n])}function aL(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var g3=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"],["maskType","mask-type"],["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"]]),x3=/^[\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 kh(e){return x3.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qr(){}var $b=null;function oL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qu=null,lc=null;function kw(e){var t=Mc(e);if(t&&(e=t.stateNode)){var a=e[vo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jb(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+or(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[vo]||null;if(!r)throw Error(Z(90));Jb(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&wA(o)}break e;case"textarea":AA(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sc(e,!!a.multiple,t,!1)}}}var hb=!1;function DA(e,t,a){if(hb)return e(t,a);hb=!0;try{var o=e(t);return o}finally{if(hb=!1,(Qu!==null||lc!==null)&&(Ug(),Qu&&(t=Qu,e=lc,lc=Qu=null,kw(t),e)))for(t=0;t<e.length;t++)kw(e[t])}}function zd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[vo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(Z(231,t,typeof a));return a}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eC=!1;if(Bn)try{Uu={},Object.defineProperty(Uu,"passive",{get:function(){eC=!0}}),window.addEventListener("test",Uu,Uu),window.removeEventListener("test",Uu,Uu)}catch{eC=!1}var Uu,wi=null,rL=null,Nh=null;function OA(){if(Nh)return Nh;var e,t=rL,a=t.length,o,r="value"in wi?wi.value:wi.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===r[n-o];o++);return Nh=r.slice(e,1<o?1-o:void 0)}function Vh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xh(){return!0}function Nw(){return!1}function ao(e){function t(a,o,r,n,i){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?xh:Nw,this.isPropagationStopped=Nw,this}return St(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=xh)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=xh)},persist:function(){},isPersistent:xh}),t}var Yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ag=ao(Yi),nm=St({},Yi,{view:0,detail:0}),y3=ao(nm),gb,xb,hd,Mg=St({},nm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nL,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hd&&(hd&&e.type==="mousemove"?(gb=e.screenX-hd.screenX,xb=e.screenY-hd.screenY):xb=gb=0,hd=e),gb)},movementY:function(e){return"movementY"in e?e.movementY:xb}}),Vw=ao(Mg),S3=St({},Mg,{dataTransfer:0}),v3=ao(S3),b3=St({},nm,{relatedTarget:0}),yb=ao(b3),C3=St({},Yi,{animationName:0,elapsedTime:0,pseudoElement:0}),L3=ao(C3),R3=St({},Yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I3=ao(R3),T3=St({},Yi,{data:0}),Bw=ao(T3),w3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E3={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"},A3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A3[e])?!!t[e]:!1}function nL(){return M3}var P3=St({},nm,{key:function(e){if(e.key){var t=w3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?E3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nL,charCode:function(e){return e.type==="keypress"?Vh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D3=ao(P3),O3=St({},Mg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fw=ao(O3),k3=St({},Yi,{submitter:0}),N3=ao(k3),V3=St({},nm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nL}),B3=ao(V3),F3=St({},Yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),z3=ao(F3),H3=St({},Mg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_3=ao(H3),U3=St({},Yi,{newState:0,oldState:0,source:0}),q3=ao(U3),G3=[9,13,27,32],iL=Bn&&"CompositionEvent"in window,Id=null;Bn&&"documentMode"in document&&(Id=document.documentMode);var j3=Bn&&"TextEvent"in window&&!Id,kA=Bn&&(!iL||Id&&8<Id&&11>=Id),zw=" ",Hw=!1;function NA(e,t){switch(e){case"keyup":return G3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ju=!1;function X3(e,t){switch(e){case"compositionend":return VA(t);case"keypress":return t.which!==32?null:(Hw=!0,zw);case"textInput":return e=t.data,e===zw&&Hw?null:e;default:return null}}function Y3(e,t){if(Ju)return e==="compositionend"||!iL&&NA(e,t)?(e=OA(),Nh=rL=wi=null,Ju=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kA&&t.locale!=="ko"?null:t.data;default:return null}}var W3={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 _w(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!W3[e.type]:t==="textarea"}function BA(e,t,a,o){Qu?lc?lc.push(o):lc=[o]:Qu=o,t=Rg(t,"onChange"),0<t.length&&(a=new Ag("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Td=null,Hd=null;function K3(e){DM(e,0)}function Pg(e){var t=Cd(e);if(wA(t))return e}function Uw(e,t){if(e==="change")return t}var FA=!1;Bn&&(Bn?(Sh="oninput"in document,Sh||(Sb=document.createElement("div"),Sb.setAttribute("oninput","return;"),Sh=typeof Sb.oninput=="function"),yh=Sh):yh=!1,FA=yh&&(!document.documentMode||9<document.documentMode));var yh,Sh,Sb;function qw(){Td&&(Td.detachEvent("onpropertychange",zA),Hd=Td=null)}function zA(e){if(e.propertyName==="value"&&Pg(Hd)){var t=[];BA(t,Hd,e,oL(e)),DA(K3,t)}}function Z3(e,t,a){e==="focusin"?(qw(),Td=t,Hd=a,Td.attachEvent("onpropertychange",zA)):e==="focusout"&&qw()}function Q3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pg(Hd)}function J3(e,t){if(e==="click")return Pg(t)}function $3(e,t){if(e==="input"||e==="change")return Pg(t)}function e4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _o=typeof Object.is=="function"?Object.is:e4;function _d(e,t){if(_o(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!Zb.call(t,r)||!_o(e[r],t[r]))return!1}return!0}function tC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jw(e,t){var a=Gw(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Gw(a)}}function HA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?HA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _A(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tC(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=tC(e.document)}return t}function sL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var t4=Bn&&"documentMode"in document&&11>=document.documentMode,$u=null,aC=null,wd=null,oC=!1;function Xw(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;oC||$u==null||$u!==tC(o)||(o=$u,"selectionStart"in o&&sL(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),wd&&_d(wd,o)||(wd=o,o=Rg(aC,"onSelect"),0<o.length&&(t=new Ag("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=$u)))}function el(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ec={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionrun:el("Transition","TransitionRun"),transitionstart:el("Transition","TransitionStart"),transitioncancel:el("Transition","TransitionCancel"),transitionend:el("Transition","TransitionEnd")},vb={},UA={};Bn&&(UA=document.createElement("div").style,"AnimationEvent"in window||(delete ec.animationend.animation,delete ec.animationiteration.animation,delete ec.animationstart.animation),"TransitionEvent"in window||delete ec.transitionend.transition);function Cl(e){if(vb[e])return vb[e];if(!ec[e])return e;var t=ec[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in UA)return vb[e]=t[a];return e}var qA=Cl("animationend"),GA=Cl("animationiteration"),jA=Cl("animationstart"),a4=Cl("transitionrun"),o4=Cl("transitionstart"),r4=Cl("transitioncancel"),XA=Cl("transitionend"),YA=new Map,rC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");rC.push("scrollEnd");function Pr(e,t){YA.set(e,t),bl(t,[e])}var n4=0;function Fn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Mr.identifierPrefix;var a=n4++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function Yw(e){if(e==null||typeof e=="string")return e;var t=null,a=hc;if(a!==null)for(var o=0;o<a.length;o++){var r=e[a[o]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function Gn(e,t){return e=Yw(e),t=Yw(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var og=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},er=[],tc=0,lL=0;function Dg(){for(var e=tc,t=lL=tc=0;t<e;){var a=er[t];er[t++]=null;var o=er[t];er[t++]=null;var r=er[t];er[t++]=null;var n=er[t];if(er[t++]=null,o!==null&&r!==null){var i=o.pending;i===null?r.next=r:(r.next=i.next,i.next=r),o.pending=r}n!==0&&WA(a,r,n)}}function Og(e,t,a,o){er[tc++]=e,er[tc++]=t,er[tc++]=a,er[tc++]=o,lL|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function uL(e,t,a,o){return Og(e,t,a,o),rg(e)}function Ll(e,t){return Og(e,null,null,t),rg(e)}function WA(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-zo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function rg(e){if(50<Bd)throw Bd=0,Xh=null,Error(Z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ac={};function i4(e,t,a,o){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xo(e,t,a,o){return new i4(e,t,a,o)}function cL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var a=e.alternate;return a===null?(a=xo(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function KA(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bh(e,t,a,o,r,n){var i=0;if(o=e,typeof o=="function")cL(o)&&(i=1);else if(typeof o=="string")i=D5(e,a,en.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case jb:return e=xo(31,a,t,r),e.elementType=jb,e.lanes=n,e;case Ku:return ll(a.children,r,n,t);case dA:i=8,r|=24;break;case Ub:return e=xo(12,a,t,r|2),e.elementType=Ub,e.lanes=n,e;case qb:return e=xo(13,a,t,r),e.elementType=qb,e.lanes=n,e;case Gb:return e=xo(19,a,t,r),e.elementType=Gb,e.lanes=n,e;case YU:case Xb:return e=r|32,e=xo(30,a,t,e),e.elementType=Xb,e.lanes=n,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Zr:i=10;break e;case mA:i=9;break e;case QC:i=11;break e;case JC:i=14;break e;case Li:i=16,o=null;break e}i=29,a=Error(Z(130,e===null?"null":typeof e,"")),o=null}return t=xo(i,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function ll(e,t,a,o){return e=xo(7,e,o,t),e.lanes=a,e}function bb(e,t,a){return e=xo(6,e,null,t),e.lanes=a,e}function ZA(e){var t=xo(18,null,null,0);return t.stateNode=e,t}function Cb(e,t,a){return t=xo(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ww=new WeakMap;function rr(e,t){if(typeof e=="object"&&e!==null){var a=Ww.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Tw(t)},Ww.set(e,t),t)}return{value:e,source:t,stack:Tw(t)}}var oc=[],rc=0,ng=null,Ud=0,tr=[],ar=0,Ui=null,Jr=1,$r="";function On(e,t){oc[rc++]=Ud,oc[rc++]=ng,ng=e,Ud=t}function QA(e,t,a){tr[ar++]=Jr,tr[ar++]=$r,tr[ar++]=Ui,Ui=e;var o=Jr;e=$r;var r=32-zo(o)-1;o&=~(1<<r),a+=1;var n=32-zo(t)+r;if(30<n){var i=r-r%5;n=(o&(1<<i)-1).toString(32),o>>=i,r-=i,Jr=1<<32-zo(t)+r|a<<r|o,$r=n+e}else Jr=1<<n|a<<r|o,$r=e}function kg(e){e.return!==null&&(On(e,1),QA(e,1,0))}function fL(e){for(;e===ng;)ng=oc[--rc],oc[rc]=null,Ud=oc[--rc],oc[rc]=null;for(;e===Ui;)Ui=tr[--ar],tr[ar]=null,$r=tr[--ar],tr[ar]=null,Jr=tr[--ar],tr[ar]=null}function JA(e,t){tr[ar++]=Jr,tr[ar++]=$r,tr[ar++]=Ui,Jr=t.id,$r=t.overflow,Ui=e}var Sa=null,Rt=null,qe=!1,Oi=null,nr=!1,nC=Error(Z(519));function qi(e){var t=Error(Z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qd(rr(t,e)),nC}function Kw(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[Ea]=e,t[vo]=o,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<Yd.length;a++)je(Yd[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),EA(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),MA(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||kM(t.textContent,a)?(o.popover!=null&&(je("beforetoggle",t),je("toggle",t)),o.onScroll!=null&&je("scroll",t),o.onScrollEnd!=null&&je("scrollend",t),o.onClick!=null&&(t.onclick=Qr),t=!0):t=!1,t||qi(e,!0)}function ig(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:Sa=Sa.return}}function qu(e){if(e!==Sa)return!1;if(!qe)return ig(e),qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||qC(e.type,e.memoizedProps)),a=!a),a&&Rt&&qi(e),ig(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Rt=jE(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Rt=jE(e)}else t===27?(t=Rt,Wi(e.type)?(e=YC,YC=null,Rt=e):Rt=t):Rt=Sa?ir(e.stateNode.nextSibling):null;return!0}function dl(){Rt=Sa=null,qe=!1}function Lb(){var e=Oi;return e!==null&&(ho===null?ho=e:ho.push.apply(ho,e),Oi=null),e}function qd(e){Oi===null?Oi=[e]:Oi.push(e)}var iC=on(null),Rl=null,kn=null;function Ei(e,t,a){It(iC,t._currentValue),t._currentValue=a}function Vn(e){e._currentValue=iC.current,Ma(iC)}function Fh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function sC(e,t,a,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var n=r.dependencies;if(n!==null){var i=r.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=r;for(var l=0;l<t.length;l++)if(s.context===t[l]){n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),Fh(n.return,a,e),o||(i=null);break e}n=s.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(Z(341));i.lanes|=a,n=i.alternate,n!==null&&(n.lanes|=a),Fh(i,a,e),i=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),Fh(r.return,a,e),i=r.child,i=i!==null?i.sibling:null):i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function ml(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(Z(387));if(i=i.memoizedProps,i!==null){var s=r.type;_o(r.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(r===Jh.current){if(i=r.alternate,i===null)throw Error(Z(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Tc):e=[Tc])}r=r.return}return e!==null&&sC(t,e,a,o),t.flags|=262144,e!==null}function sg(e){for(e=e.firstContext;e!==null;){if(!_o(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){Rl=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Aa(e){return $A(Rl,e)}function vh(e,t){return Rl===null&&pl(e),$A(e,t)}function $A(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},kn===null){if(e===null)throw Error(Z(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return a}var s4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},l4=ua.unstable_scheduleCallback,u4=ua.unstable_NormalPriority,ea={$$typeof:Zr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dL(){return{controller:new s4,data:new Map,refCount:0}}function im(e){e.refCount--,e.refCount===0&&l4(u4,function(){e.controller.abort()})}function Zw(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}var Ld=null;function c4(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ed=null,lC=0,hl=0,uc=null;function f4(e,t){if(Ed===null){var a=Ed=[];lC=0,hl=HL(),uc={status:"pending",value:void 0,then:function(o){a.push(o)}}}return lC++,t.then(Qw,Qw),t}function Qw(){if(--lC===0&&(Ld=null,Ed!==null)){uc!==null&&(uc.status="fulfilled");var e=Ed;Ed=null,hl=0,uc=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function d4(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),o}var Jw=Me.S;Me.S=function(e,t){if(xM=Bo(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&f4(e,t),Ld!==null)for(var a=Lc;a!==null;)Zw(a,Ld),a=a.next;if(a=e.types,a!==null){for(var o=Lc;o!==null;)Zw(o,a),o=o.next;if(hl!==0){o=Ld,o===null&&(o=Ld=[]);for(var r=0;r<a.length;r++){var n=a[r];o.indexOf(n)===-1&&o.push(n)}}}Jw!==null&&Jw(e,t)};var ul=on(null);function mL(){var e=ul.current;return e!==null?e:yt.pooledCache}function zh(e,t){t===null?It(ul,ul.current):It(ul,t.pool)}function e1(){var e=mL();return e===null?null:{parent:ea._currentValue,pool:e}}var Pc=Error(Z(460)),pL=Error(Z(474)),Ng=Error(Z(542)),lg={then:function(){}};function $w(e){return e=e.status,e==="fulfilled"||e==="rejected"}function t1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Qr,Qr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tE(e),e===void 0&&!("reason"in t)?Error(Z(600)):e;default:if(typeof t.status=="string")t.then(Qr,Qr);else{if(e=yt,e!==null&&100<e.shellSuspendCounter)throw Error(Z(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tE(e),e}throw cl=t,Pc}}function ol(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(cl=a,Pc):a}}var cl=null;function eE(){if(cl===null)throw Error(Z(459));var e=cl;return cl=null,e}function tE(e){if(e===Pc||e===Ng)throw Error(Z(483))}var cc=null,Gd=0;function bh(e){var t=Gd;return Gd+=1,cc===null&&(cc=[]),t1(cc,e,t)}function vi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ch(e,t){throw t.$$typeof===XU?Error(Z(525)):(e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function a1(e){function t(g,h){if(e){var x=g.deletions;x===null?(g.deletions=[h],g.flags|=16):x.push(h)}}function a(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function o(g){for(var h=new Map;g!==null;)g.key===null?h.set(g.index,g):h.set(g.key,g),g=g.sibling;return h}function r(g,h){return g=Nn(g,h),g.index=0,g.sibling=null,g}function n(g,h,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<h?(g.flags|=2,h):x):(g.flags|=134217730,h)):(g.flags|=1048576,h)}function i(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function s(g,h,x,S){return h===null||h.tag!==6?(h=bb(x,g.mode,S),h.return=g,h):(h=r(h,x),h.return=g,h)}function l(g,h,x,S){var b=x.type;return b===Ku?(g=c(g,h,x.props.children,S,x.key),vi(g,x),g):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Li&&ol(b)===h.type)?(h=r(h,x.props),vi(h,x),h.return=g,h):(h=Bh(x.type,x.key,x.props,null,g.mode,S),vi(h,x),h.return=g,h)}function u(g,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Cb(x,g.mode,S),h.return=g,h):(h=r(h,x.children||[]),h.return=g,h)}function c(g,h,x,S,b){return h===null||h.tag!==7?(h=ll(x,g.mode,S,b),h.return=g,h):(h=r(h,x),h.return=g,h)}function d(g,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=bb(""+h,g.mode,x),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case dh:return x=Bh(h.type,h.key,h.props,null,g.mode,x),vi(x,h),x.return=g,x;case vd:return h=Cb(h,g.mode,x),h.return=g,h;case Li:return h=ol(h),d(g,h,x)}if(bd(h)||pd(h))return h=ll(h,g.mode,x,null),h.return=g,h;if(typeof h.then=="function")return d(g,bh(h),x);if(h.$$typeof===Zr)return d(g,vh(g,h),x);Ch(g,h)}return null}function f(g,h,x,S){var b=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return b!==null?null:s(g,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case dh:return x.key===b?l(g,h,x,S):null;case vd:return x.key===b?u(g,h,x,S):null;case Li:return x=ol(x),f(g,h,x,S)}if(bd(x)||pd(x))return b!==null?null:c(g,h,x,S,null);if(typeof x.then=="function")return f(g,h,bh(x),S);if(x.$$typeof===Zr)return f(g,h,vh(g,x),S);Ch(g,x)}return null}function m(g,h,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return g=g.get(x)||null,s(h,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case dh:return g=g.get(S.key===null?x:S.key)||null,l(h,g,S,b);case vd:return g=g.get(S.key===null?x:S.key)||null,u(h,g,S,b);case Li:return S=ol(S),m(g,h,x,S,b)}if(bd(S)||pd(S))return g=g.get(x)||null,c(h,g,S,b,null);if(typeof S.then=="function")return m(g,h,x,bh(S),b);if(S.$$typeof===Zr)return m(g,h,x,vh(h,S),b);Ch(h,S)}return null}function p(g,h,x,S){for(var b=null,R=null,L=h,C=h=0,E=null;L!==null&&C<x.length;C++){L.index>C?(E=L,L=null):E=L.sibling;var T=f(g,L,x[C],S);if(T===null){L===null&&(L=E);break}e&&L&&T.alternate===null&&t(g,L),h=n(T,h,C),R===null?b=T:R.sibling=T,R=T,L=E}if(C===x.length)return a(g,L),qe&&On(g,C),b;if(L===null){for(;C<x.length;C++)L=d(g,x[C],S),L!==null&&(h=n(L,h,C),R===null?b=L:R.sibling=L,R=L);return qe&&On(g,C),b}for(L=o(L);C<x.length;C++)E=m(L,g,C,x[C],S),E!==null&&(e&&(T=E.alternate,T!==null&&L.delete(T.key===null?C:T.key)),h=n(E,h,C),R===null?b=E:R.sibling=E,R=E);return e&&L.forEach(function(A){return t(g,A)}),qe&&On(g,C),b}function y(g,h,x,S){if(x==null)throw Error(Z(151));for(var b=null,R=null,L=h,C=h=0,E=null,T=x.next();L!==null&&!T.done;C++,T=x.next()){L.index>C?(E=L,L=null):E=L.sibling;var A=f(g,L,T.value,S);if(A===null){L===null&&(L=E);break}e&&L&&A.alternate===null&&t(g,L),h=n(A,h,C),R===null?b=A:R.sibling=A,R=A,L=E}if(T.done)return a(g,L),qe&&On(g,C),b;if(L===null){for(;!T.done;C++,T=x.next())T=d(g,T.value,S),T!==null&&(h=n(T,h,C),R===null?b=T:R.sibling=T,R=T);return qe&&On(g,C),b}for(L=o(L);!T.done;C++,T=x.next())T=m(L,g,C,T.value,S),T!==null&&(e&&(E=T.alternate,E!==null&&L.delete(E.key===null?C:E.key)),h=n(T,h,C),R===null?b=T:R.sibling=T,R=T);return e&&L.forEach(function(V){return t(g,V)}),qe&&On(g,C),b}function v(g,h,x,S){if(typeof x=="object"&&x!==null&&x.type===Ku&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case dh:e:{for(var b=x.key;h!==null;){if(h.key===b){if(b=x.type,b===Ku){if(h.tag===7){a(g,h.sibling),S=r(h,x.props.children),vi(S,x),S.return=g,g=S;break e}}else if(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Li&&ol(b)===h.type){a(g,h.sibling),S=r(h,x.props),vi(S,x),S.return=g,g=S;break e}a(g,h);break}else t(g,h);h=h.sibling}x.type===Ku?(S=ll(x.props.children,g.mode,S,x.key),vi(S,x),S.return=g,g=S):(S=Bh(x.type,x.key,x.props,null,g.mode,S),vi(S,x),S.return=g,g=S)}return i(g);case vd:e:{for(b=x.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(g,h.sibling),S=r(h,x.children||[]),S.return=g,g=S;break e}else{a(g,h);break}else t(g,h);h=h.sibling}S=Cb(x,g.mode,S),S.return=g,g=S}return i(g);case Li:return x=ol(x),v(g,h,x,S)}if(bd(x))return p(g,h,x,S);if(pd(x)){if(b=pd(x),typeof b!="function")throw Error(Z(150));return x=b.call(x),y(g,h,x,S)}if(typeof x.then=="function")return v(g,h,bh(x),S);if(x.$$typeof===Zr)return v(g,h,vh(g,x),S);Ch(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(a(g,h.sibling),S=r(h,x),S.return=g,g=S):(a(g,h),S=bb(x,g.mode,S),S.return=g,g=S),i(g)):a(g,h)}return function(g,h,x,S){try{Gd=0;var b=v(g,h,x,S);return cc=null,b}catch(L){if(L===Pc||L===Ng)throw L;var R=xo(29,L,null,g.mode);return R.lanes=S,R.return=g,R}finally{}}}var gl=a1(!0),o1=a1(!1),Ri=!1;function hL(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ki(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ni(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ot&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=rg(e),WA(e,null,a),t}return Og(e,o,t,a),rg(e)}function Ad(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,vA(e,a)}}function Rb(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var cC=!1;function Md(){if(cC){var e=uc;if(e!==null)throw e}}function Pd(e,t,a,o){cC=!1;var r=e.updateQueue;Ri=!1;var n=r.firstBaseUpdate,i=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?n=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(n!==null){var d=r.baseState;i=0,c=u=l=null,s=n;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Ye&f)===f:(o&f)===f){f!==0&&f===hl&&(cC=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var p=e,y=s;f=t;var v=a;switch(y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(v,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(v,d,f):p,f==null)break e;d=St({},d,f);break e;case 2:Ri=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,i|=f;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;m=s,s=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,n===null&&(r.shared.lanes=0),Xi|=i,e.lanes=i,e.memoizedState=d}}function r1(e,t){if(typeof e!="function")throw Error(Z(191,e));e.call(t)}function n1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)r1(a[e],t)}var Gi=on(null),ug=on(0);function aE(e,t){e=Un,It(ug,e),It(Gi,t),Un=e|t.baseLanes}function fC(){It(ug,Un),It(Gi,Gi.current)}function gL(){Un=ug.current,Ma(Gi),Ma(ug)}var Oa=on(null),Ha=null;function Vi(e){var t=e.alternate;It(Pa,Pa.current&1),It(Oa,e),Ha===null&&(t===null||Gi.current!==null||t.memoizedState!==null)&&(Ha=e)}function dC(e){It(Pa,Pa.current),It(Oa,e),Ha===null&&(Ha=e)}function i1(e){e.tag===22?(It(Pa,Pa.current),It(Oa,e),Ha===null&&(Ha=e)):Bi()}function Bi(){It(Pa,Pa.current),It(Oa,Oa.current)}function ko(e){Ma(Oa),Ha===e&&(Ha=null),Ma(Pa)}var Pa=on(0);function jd(e,t){It(Oa,Oa.current),It(Pa,t)}function xL(e){Ma(Pa),Ma(Oa),Ha===e&&(Ha=null)}function cg(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||XC(a)||GL(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zn=0,Ve=null,ht=null,$t=null,fg=!1,fc=!1,xl=!1,dg=0,Xd=0,dc=null,m4=0;function _t(){throw Error(Z(321))}function yL(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_o(e[a],t[a]))return!1;return!0}function SL(e,t,a,o,r,n){return zn=n,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Me.H=e===null||e.memoizedState===null?B1:F1,xl=!1,n=a(o,r),xl=!1,fc&&(n=l1(t,a,o,r)),s1(e),n}function s1(e){Me.H=mg;var t=ht!==null&&ht.next!==null;if(zn=0,$t=ht=Ve=null,fg=!1,Xd=0,dc=null,t)throw Error(Z(300));e===null||ta||(e=e.dependencies,e!==null&&sg(e)&&(ta=!0))}function l1(e,t,a,o){Ve=e;var r=0;do{if(fc&&(dc=null),Xd=0,fc=!1,25<=r)throw Error(Z(301));if(r+=1,$t=ht=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Me.H=b4,n=t(a,o)}while(fc);return n}function p4(){var e=Me.H,t=e.useState()[0];return t=typeof t.then=="function"?sm(t):t,e=e.useState()[0],(ht!==null?ht.memoizedState:null)!==e&&(Ve.flags|=1024),t}function vL(){var e=dg!==0;return dg=0,e}function bL(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function CL(e){if(fg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fg=!1}zn=0,$t=ht=Ve=null,fc=!1,Xd=dg=0,dc=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?Ve.memoizedState=$t=e:$t=$t.next=e,$t}function Gt(){if(ht===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=$t===null?Ve.memoizedState:$t.next;if(t!==null)$t=t,ht=e;else{if(e===null)throw Ve.alternate===null?Error(Z(467)):Error(Z(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},$t===null?Ve.memoizedState=$t=e:$t=$t.next=e}return $t}function Vg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sm(e){var t=Xd;return Xd+=1,dc===null&&(dc=[]),e=t1(dc,e,t),t=Ve,($t===null?t.memoizedState:$t.next)===null&&(t=t.alternate,Me.H=t===null||t.memoizedState===null?B1:F1),e}function Bg(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sm(e);if(e.$$typeof===KU)return;if(e.$$typeof===Zr)return Aa(e)}throw Error(Z(438,String(e)))}function LL(e){var t=null,a=Ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Vg(),Ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=WU;return t.index++,a}function Hn(e,t){return typeof t=="function"?t(e):t}function Hh(e){var t=Gt();return RL(t,ht,e)}function RL(e,t,a){var o=e.queue;if(o===null)throw Error(Z(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var i=r.next;r.next=n.next,n.next=i}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var s=i=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ye&d)===d:(zn&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===hl&&(c=!0);else if((zn&f)===f){u=u.next,f===hl&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,i=n):l=l.next=d,Ve.lanes|=f,Xi|=f;d=u.action,xl&&a(n,d),n=u.hasEagerState?u.eagerState:a(n,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,i=n):l=l.next=f,Ve.lanes|=d,Xi|=d;u=u.next}while(u!==null&&u!==t);if(l===null?i=n:l.next=s,!_o(n,e.memoizedState)&&(ta=!0,c&&(a=uc,a!==null)))throw a;e.memoizedState=n,e.baseState=i,e.baseQueue=l,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ib(e){var t=Gt(),a=t.queue;if(a===null)throw Error(Z(311));a.lastRenderedReducer=e;var o=a.dispatch,r=a.pending,n=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do n=e(n,i.action),i=i.next;while(i!==r);_o(n,t.memoizedState)||(ta=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function u1(e,t,a){var o=Ve,r=Gt(),n=qe;if(n){if(a===void 0)throw Error(Z(407));a=a()}else a=t();var i=!_o((ht||r).memoizedState,a);if(i&&(r.memoizedState=a,ta=!0),r=r.queue,IL(d1.bind(null,o,r,e),[e]),e=r.getSnapshot!==t||i||$t!==null&&($t.memoizedState.tag&1)!==0,Sc(e?9:8,{destroy:void 0},f1.bind(null,o,r,a,t),null),e){if(o.flags|=2048,yt===null)throw Error(Z(349));n||(zn&127)!==0||c1(o,t,a)}return a}function c1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ve.updateQueue,t===null?(t=Vg(),Ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function f1(e,t,a,o){t.value=a,t.getSnapshot=o,m1(t)&&p1(e)}function d1(e,t,a){return a(function(){m1(t)&&p1(e)})}function m1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_o(e,a)}catch{return!0}}function p1(e){var t=Ll(e,2);t!==null&&yo(t,e,2)}function mC(e){var t=to();if(typeof e=="function"){var a=e;if(e=a(),xl){Ti(!0);try{a()}finally{Ti(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},t}function h1(e,t,a,o){return e.baseState=a,RL(e,ht,typeof o=="function"?o:Hn)}function h4(e,t,a,o,r){if(zg(e))throw Error(Z(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};Me.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,g1(t,n)):(n.next=a.next,t.pending=a.next=n)}}function g1(e,t){var a=t.action,o=t.payload,r=e.state;if(t.isTransition){var n=Me.T,i={};i.types=n!==null?n.types:null,Me.T=i;try{var s=a(r,o),l=Me.S;l!==null&&l(i,s),oE(e,t,s)}catch(u){pC(e,t,u)}finally{n!==null&&i.types!==null&&(n.types=i.types),Me.T=n}}else try{n=a(r,o),oE(e,t,n)}catch(u){pC(e,t,u)}}function oE(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){rE(e,t,o)},function(o){return pC(e,t,o)}):rE(e,t,a)}function rE(e,t,a){t.status="fulfilled",t.value=a,x1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,g1(e,a)))}function pC(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,x1(t),t=t.next;while(t!==o)}e.action=null}function x1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function y1(e,t){return t}function nE(e,t){if(qe){var a=yt.formState;if(a!==null){e:{var o=Ve;if(qe){if(Rt){t:{for(var r=Rt,n=nr;r.nodeType!==8;){if(!n){r=null;break t}if(r=ir(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){Rt=ir(r.nextSibling),o=r.data==="F!";break e}}qi(o)}o=!1}o&&(t=a[0])}}return a=to(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:y1,lastRenderedState:t},a.queue=o,a=k1.bind(null,Ve,o),o.dispatch=a,o=mC(!1),n=AL.bind(null,Ve,!1,o.queue),o=to(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=h4.bind(null,Ve,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function iE(e){var t=Gt();return S1(t,ht,e)}function S1(e,t,a){if(t=RL(e,t,y1)[0],e=Hh(Hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=sm(t)}catch(i){throw i===Pc?Ng:i}else o=t;t=Gt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Ve.flags|=2048,Sc(9,{destroy:void 0},g4.bind(null,r,a),null)),[o,n,e]}function g4(e,t){e.action=t}function sE(e){var t=Gt(),a=ht;if(a!==null)return S1(t,a,e);Gt(),t=t.memoizedState,a=Gt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Sc(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Vg(),Ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function v1(){return Gt().memoizedState}function _h(e,t,a,o){var r=to();Ve.flags|=e,r.memoizedState=Sc(1|t,{destroy:void 0},a,o===void 0?null:o)}function Fg(e,t,a,o){var r=Gt();o=o===void 0?null:o;var n=r.memoizedState.inst;ht!==null&&o!==null&&yL(o,ht.memoizedState.deps)?r.memoizedState=Sc(t,n,a,o):(Ve.flags|=e,r.memoizedState=Sc(1|t,n,a,o))}function lE(e,t){_h(8390656,8,e,t)}function IL(e,t){Fg(2048,8,e,t)}function x4(e){Ve.flags|=4;var t=Ve.updateQueue;if(t===null)t=Vg(),Ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function b1(e){var t=Gt().memoizedState;return x4({ref:t,nextImpl:e}),function(){if((ot&2)!==0)throw Error(Z(440));return t.impl.apply(void 0,arguments)}}function C1(e,t){return Fg(4,2,e,t)}function L1(e,t){return Fg(4,4,e,t)}function R1(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function I1(e,t,a){a=a!=null?a.concat([e]):null,Fg(4,4,R1.bind(null,t,e),a)}function TL(){}function T1(e,t){var a=Gt();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&yL(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function w1(e,t){var a=Gt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&yL(t,o[1]))return o[0];if(o=e(),xl){Ti(!0);try{e()}finally{Ti(!1)}}return a.memoizedState=[o,t],o}function wL(e,t,a){return a===void 0||(zn&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=SM(),Ve.lanes|=e,Xi|=e,a)}function E1(e,t,a,o){return _o(a,t)?a:Gi.current!==null?(e=wL(e,a,o),_o(e,t)||(ta=!0),e):(zn&106)===0||(zn&1073741824)!==0&&(Ye&261930)===0?(ta=!0,e.memoizedState=a):(e=SM(),Ve.lanes|=e,Xi|=e,t)}function A1(e,t,a,o,r){var n=rt.p;rt.p=n!==0&&8>n?n:8;var i=Me.T,s={};s.types=i!==null?i.types:null,Me.T=s,AL(e,!1,t,a);try{var l=r(),u=Me.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=d4(l,o);Dd(e,t,c,Ho(e))}else Dd(e,t,o,Ho(e))}catch(d){Dd(e,t,{then:function(){},status:"rejected",reason:d},Ho())}finally{rt.p=n,i!==null&&s.types!==null&&(i.types=s.types),Me.T=i}}function y4(){}function hC(e,t,a,o){if(e.tag!==5)throw Error(Z(476));var r=M1(e).queue;A1(e,r,t,sl,a===null?y4:function(){return P1(e),a(o)})}function M1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:sl,baseState:sl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:sl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function P1(e){var t=M1(e);t.next===null&&(t=e.alternate.memoizedState),Dd(e,t.next.queue,{},Ho())}function EL(){return Aa(Tc)}function D1(){return Gt().memoizedState}function O1(){return Gt().memoizedState}function S4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ho();e=ki(a);var o=Ni(t,e,a);o!==null&&(yo(o,t,a),Ad(o,t,a)),t={cache:dL()},e.payload=t;return}t=t.return}}function v4(e,t,a){var o=Ho();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zg(e)?N1(t,a):(a=uL(e,t,a,o),a!==null&&(yo(a,e,o),V1(a,t,o)))}function k1(e,t,a){var o=Ho();Dd(e,t,a,o)}function Dd(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(zg(e))N1(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,s=n(i,a);if(r.hasEagerState=!0,r.eagerState=s,_o(s,i))return Og(e,t,r,0),yt===null&&Dg(),!1}catch{}finally{}if(a=uL(e,t,r,o),a!==null)return yo(a,e,o),V1(a,t,o),!0}return!1}function AL(e,t,a,o){if(o={lane:2,revertLane:HL(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},zg(e)){if(t)throw Error(Z(479))}else t=uL(e,a,o,2),t!==null&&yo(t,e,2)}function zg(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function N1(e,t){fc=fg=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function V1(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,vA(e,a)}}var mg={readContext:Aa,use:Bg,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t,useEffectEvent:_t},B1={readContext:Aa,use:Bg,useCallback:function(e,t){return to().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:lE,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,_h(4194308,4,R1.bind(null,t,e),a)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){_h(4,2,e,t)},useMemo:function(e,t){var a=to();t=t===void 0?null:t;var o=e();if(xl){Ti(!0);try{e()}finally{Ti(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=to();if(a!==void 0){var r=a(t);if(xl){Ti(!0);try{a(t)}finally{Ti(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=v4.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=to();return e={current:e},t.memoizedState=e},useState:function(e){e=mC(e);var t=e.queue,a=k1.bind(null,Ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:TL,useDeferredValue:function(e,t){var a=to();return wL(a,e,t)},useTransition:function(){var e=mC(!1);return e=A1.bind(null,Ve,e.queue,!0,!1),to().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Ve,r=to();if(qe){if(a===void 0)throw Error(Z(407));a=a()}else{if(a=t(),yt===null)throw Error(Z(349));(Ye&127)!==0||c1(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,lE(d1.bind(null,o,n,e),[e]),o.flags|=2048,Sc(9,{destroy:void 0},f1.bind(null,o,n,a,t),null),a},useId:function(){var e=to(),t=yt.identifierPrefix;if(qe){var a=$r,o=Jr;a=(o&~(1<<32-zo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=dg++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=m4++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:EL,useFormState:nE,useActionState:nE,useOptimistic:function(e){var t=to();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=AL.bind(null,Ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:LL,useCacheRefresh:function(){return to().memoizedState=S4.bind(null,Ve)},useEffectEvent:function(e){var t=to(),a={impl:e};return t.memoizedState=a,function(){if((ot&2)!==0)throw Error(Z(440));return a.impl.apply(void 0,arguments)}}},F1={readContext:Aa,use:Bg,useCallback:T1,useContext:Aa,useEffect:IL,useImperativeHandle:I1,useInsertionEffect:C1,useLayoutEffect:L1,useMemo:w1,useReducer:Hh,useRef:v1,useState:function(){return Hh(Hn)},useDebugValue:TL,useDeferredValue:function(e,t){var a=Gt();return E1(a,ht.memoizedState,e,t)},useTransition:function(){var e=Hh(Hn)[0],t=Gt().memoizedState;return[typeof e=="boolean"?e:sm(e),t]},useSyncExternalStore:u1,useId:D1,useHostTransitionStatus:EL,useFormState:iE,useActionState:iE,useOptimistic:function(e,t){var a=Gt();return h1(a,ht,e,t)},useMemoCache:LL,useCacheRefresh:O1,useEffectEvent:b1},b4={readContext:Aa,use:Bg,useCallback:T1,useContext:Aa,useEffect:IL,useImperativeHandle:I1,useInsertionEffect:C1,useLayoutEffect:L1,useMemo:w1,useReducer:Ib,useRef:v1,useState:function(){return Ib(Hn)},useDebugValue:TL,useDeferredValue:function(e,t){var a=Gt();return ht===null?wL(a,e,t):E1(a,ht.memoizedState,e,t)},useTransition:function(){var e=Ib(Hn)[0],t=Gt().memoizedState;return[typeof e=="boolean"?e:sm(e),t]},useSyncExternalStore:u1,useId:D1,useHostTransitionStatus:EL,useFormState:sE,useActionState:sE,useOptimistic:function(e,t){var a=Gt();return ht!==null?h1(a,ht,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:LL,useCacheRefresh:O1,useEffectEvent:b1};function Tb(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:St({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var gC={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ho(),r=ki(o);r.payload=t,a!=null&&(r.callback=a),t=Ni(e,r,o),t!==null&&(yo(t,e,o),Ad(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ho(),r=ki(o);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ni(e,r,o),t!==null&&(yo(t,e,o),Ad(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ho(),o=ki(a);o.tag=2,t!=null&&(o.callback=t),t=Ni(e,o,a),t!==null&&(yo(t,e,a),Ad(t,e,a))}};function uE(e,t,a,o,r,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,n,i):t.prototype&&t.prototype.isPureReactComponent?!_d(a,o)||!_d(r,n):!0}function cE(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&gC.enqueueReplaceState(t,t.state,null)}function yl(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=St({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function z1(e){og(e)}function H1(e){console.error(e)}function _1(e){og(e)}function pg(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function fE(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function xC(e,t,a){return a=ki(a),a.tag=3,a.payload={element:null},a.callback=function(){pg(e,t)},a}function U1(e){return e=ki(e),e.tag=3,e}function q1(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){fE(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){fE(t,a,o),typeof r!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function C4(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&ml(t,a,r,!0),a=Oa.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Ha===null?Cg():a.alternate===null&&Ut===0&&(Ut=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===lg?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Ob(e,o,r)),!1;case 22:return a.flags|=65536,o===lg?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Ob(e,o,r)),!1}throw Error(Z(435,a.tag))}return Ob(e,o,r),Cg(),!1}if(qe)return t=Oa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==nC&&(e=Error(Z(422),{cause:o}),qd(rr(e,a)))):(o!==nC&&(t=Error(Z(423),{cause:o}),qd(rr(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=rr(o,a),r=xC(e.stateNode,o,r),Rb(e,r),Ut!==4&&(Ut=2)),!1;var n=Error(Z(520),{cause:o});if(n=rr(n,a),Vd===null?Vd=[n]:Vd.push(n),Ut!==4&&(Ut=2),t===null)return!0;o=rr(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=xC(a.stateNode,o,e),Rb(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(Fi===null||!Fi.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=U1(r),q1(r,e,a,o),Rb(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var ML=Error(Z(461)),ta=!1;function sa(e,t,a,o){t.child=e===null?o1(t,null,a,o):gl(t,e.child,a,o)}function dE(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;return pl(t),o=SL(e,t,a,i,n,r),s=vL(),e!==null&&!ta?(bL(e,t,r),_n(e,t,r)):(qe&&s&&kg(t),t.flags|=1,sa(e,t,o,r),t.child)}function mE(e,t,a,o,r){if(e===null){var n=a.type;return typeof n=="function"&&!cL(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,G1(e,t,n,o,r)):(e=Bh(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!DL(e,r)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:_d,a(i,o)&&e.ref===t.ref)return _n(e,t,r)}return t.flags|=1,e=Nn(n,o),e.ref=t.ref,e.return=t,t.child=e}function G1(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(_d(n,o)&&e.ref===t.ref)if(ta=!1,t.pendingProps=o=n,DL(e,r))(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,_n(e,t,r)}return yC(e,t,a,o,r)}function j1(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return pE(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zh(t,n!==null?n.cachePool:null),n!==null?aE(t,n):fC(),i1(t);else return o=t.lanes=536870912,pE(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(zh(t,n.cachePool),aE(t,n),Bi(),t.memoizedState=null):(e!==null&&zh(t,null),fC(),Bi());return sa(e,t,r,a),t.child}function Od(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pE(e,t,a,o,r){var n=mL();return n=n===null?null:{parent:ea._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&zh(t,null),fC(),i1(t),e!==null&&ml(e,t,o,!0),t.childLanes=r,null}function Uh(e,t){return t=Hg({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hE(e,t,a){return gl(t,e.child,null,a),e=Uh(t,t.pendingProps),e.flags|=2,ko(t),t.memoizedState=null,e}function L4(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(o.mode==="hidden")return e=Uh(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Od(null,e);if(dC(t),(e=Rt)?(e=jM(e,nr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui!==null?{id:Jr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},a=ZA(e),a.return=t,t.child=a,Sa=t,Rt=null)):e=null,e===null)throw qi(t);return t.lanes=536870912,null}return Uh(t,o)}var n=e.memoizedState;if(n!==null){var i=n.dehydrated;if(dC(t),r)if(t.flags&256)t.flags&=-257,t=hE(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(Z(558));else if(ta||ml(e,t,a,!1),r=(a&e.childLanes)!==0,ta||r){if(Gi.current===null){if(o=yt,o!==null&&(i=bA(o,a),i!==0&&i!==n.retryLane))throw n.retryLane=i,Ll(e,i),yo(o,e,i),ML;Cg()}t=hE(e,t,a)}else e=n.treeContext,Rt=ir(i.nextSibling),Sa=t,qe=!0,Oi=null,nr=!1,e!==null&&JA(t,e),t=Uh(t,o),t.flags|=134221824;return t}return e=Nn(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ju(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(Z(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function yC(e,t,a,o,r){return pl(t),a=SL(e,t,a,o,void 0,r),o=vL(),e!==null&&!ta?(bL(e,t,r),_n(e,t,r)):(qe&&o&&kg(t),t.flags|=1,sa(e,t,a,r),t.child)}function gE(e,t,a,o,r,n){return pl(t),t.updateQueue=null,a=l1(t,o,a,r),s1(e),o=vL(),e!==null&&!ta?(bL(e,t,n),_n(e,t,n)):(qe&&o&&kg(t),t.flags|=1,sa(e,t,a,n),t.child)}function xE(e,t,a,o,r){if(pl(t),t.stateNode===null){var n=ac,i=a.contextType;typeof i=="object"&&i!==null&&(n=Aa(i)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=gC,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},hL(t),i=a.contextType,n.context=typeof i=="object"&&i!==null?Aa(i):ac,n.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Tb(t,a,i,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&gC.enqueueReplaceState(n,n.state,null),Pd(t,o,n,r),Md(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,l=yl(a,s);n.props=l;var u=n.context,c=a.contextType;i=ac,typeof c=="object"&&c!==null&&(i=Aa(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof n.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(s||u!==i)&&cE(t,n,o,i),Ri=!1;var f=t.memoizedState;n.state=f,Pd(t,o,n,r),Md(),u=t.memoizedState,s||f!==u||Ri?(typeof d=="function"&&(Tb(t,a,d,o),u=t.memoizedState),(l=Ri||uE(t,a,l,o,f,u,i))?(c||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),n.props=o,n.state=u,n.context=i,o=l):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,uC(e,t),i=t.memoizedProps,c=yl(a,i),n.props=c,d=t.pendingProps,f=n.context,u=a.contextType,l=ac,typeof u=="object"&&u!==null&&(l=Aa(u)),s=a.getDerivedStateFromProps,(u=typeof s=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==d||f!==l)&&cE(t,n,o,l),Ri=!1,f=t.memoizedState,n.state=f,Pd(t,o,n,r),Md();var m=t.memoizedState;i!==d||f!==m||Ri||e!==null&&e.dependencies!==null&&sg(e.dependencies)?(typeof s=="function"&&(Tb(t,a,s,o),m=t.memoizedState),(c=Ri||uE(t,a,c,o,f,m,l)||e!==null&&e.dependencies!==null&&sg(e.dependencies))?(u||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,m,l),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,m,l)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),n.props=o,n.state=m,n.context=l,o=c):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,ju(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=gl(t,e.child,null,r),t.child=gl(t,null,a,r)):sa(e,t,a,r),t.memoizedState=n.state,e=t.child):e=_n(e,t,r),e}function yE(e,t,a,o){return dl(),t.flags|=256,sa(e,t,a,o),t.child}var SC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vC(e){return{baseLanes:e,cachePool:e1()}}function bC(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Vo),e}function X1(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=e!==null&&e.memoizedState===null?!1:(Pa.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(r?Vi(t):Bi(),(e=Rt)?(e=jM(e,nr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui!==null?{id:Jr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},a=ZA(e),a.return=t,t.child=a,Sa=t,Rt=null)):e=null,e===null)throw qi(t);return GL(e)?t.lanes=32:t.lanes=536870912,null}return n=o.children,o=o.fallback,r?(Bi(),r=t.mode,n=Hg({mode:"hidden",children:n},r),o=ll(o,r,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=vC(a),o.childLanes=bC(e,i,a),t.memoizedState=SC,Od(null,o)):(Vi(t),PL(t,n))}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return R4(e,t,n,i,o,l,s,a)}return r?(Bi(),r=o.fallback,n=t.mode,s=e.child,l=s.sibling,o=Nn(s,{mode:"hidden",children:o.children}),o.subtreeFlags=s.subtreeFlags&1206910976,l!==null?r=Nn(l,r):(r=ll(r,n,a,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,Od(null,o),o=t.child,r=e.child.memoizedState,r===null?r=vC(a):(n=r.cachePool,n!==null?(s=ea._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=e1(),r={baseLanes:r.baseLanes|a,cachePool:n}),o.memoizedState=r,o.childLanes=bC(e,i,a),t.memoizedState=SC,Od(e.child,o)):(Vi(t),a=e.child,e=a.sibling,a=Nn(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function PL(e,t){return t=Hg({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hg(e,t){return e=xo(22,e,null,t),e.lanes=0,e}function Lh(e,t,a){return gl(t,e.child,null,a),e=PL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function R4(e,t,a,o,r,n,i,s){if(a)return t.flags&256?(Vi(t),t.flags&=-257,Lh(e,t,s)):t.memoizedState!==null?(Bi(),t.child=e.child,t.flags|=128,null):(Bi(),n=r.fallback,i=t.mode,r=Hg({mode:"visible",children:r.children},i),n=ll(n,i,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,gl(t,e.child,null,s),r=t.child,r.memoizedState=vC(s),r.childLanes=bC(e,o,s),t.memoizedState=SC,Od(null,r));if(Vi(t),GL(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(r=Error(Z(419)),r.stack="",r.digest=o,qd({value:r,source:null,stack:null})),Lh(e,t,s)}if(ta||ml(e,t,s,!1),o=(s&e.childLanes)!==0,ta||o){if(Gi.current!==null)return Lh(e,t,s);if(o=yt,o!==null&&(r=bA(o,s),r!==0&&r!==i.retryLane))throw i.retryLane=r,Ll(e,r),yo(o,e,r),ML;return XC(n)||Cg(),Lh(e,t,s)}return XC(n)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,Rt=ir(n.nextSibling),Sa=t,qe=!0,Oi=null,nr=!1,e!==null&&JA(t,e),t=PL(t,r.children),t.flags|=134221824,t)}function SE(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Fh(e.return,t,a)}function vE(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&cg(a)===null&&(t=e),e=e.sibling}return t}function Rh(e,t,a,o,r,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=r,i.treeForkCount=n)}function wb(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function CC(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var i=Pa.current;if(t.flags&128)return jd(t,i),null;var s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,jd(t,i),r==="backwards"&&e!==null?(wb(e),sa(e,t,o,a),wb(e)):sa(e,t,o,a),o=qe?Ud:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&SE(e,a,t);else if(e.tag===19)SE(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"backwards":a=vE(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null,wb(t)),Rh(t,!0,r,null,n,o);break;case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&cg(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Rh(t,!0,a,null,n,o);break;case"together":Rh(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=vE(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Rh(t,!1,r,a,n,o)}return t.child}function bE(e,t,a){var o=t.pendingProps;return Ei(t,t.type,o.value),sa(e,t,o.children,a),t.child}function _n(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ml(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,a=Nn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Nn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function DL(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&sg(e)))}function I4(e,t,a){switch(t.tag){case 3:$h(t,t.stateNode.containerInfo),Ei(t,ea,e.memoizedState.cache),dl();break;case 27:case 5:Kb(t);break;case 4:$h(t,t.stateNode.containerInfo);break;case 10:Ei(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dC(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Vi(t),t.flags|=128,null;o=ml(e,t,a,!1);var r=t.child.childLanes;return o||(a&r)!==0?X1(e,t,a):(Vi(t),e=_n(e,t,a),e!==null?e.sibling:null)}Vi(t);break;case 19:if(t.flags&128)return CC(e,t,a);if(r=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(ml(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return CC(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),jd(t,Pa.current),o)break;return null;case 22:return t.lanes=0,j1(e,t,a,t.pendingProps);case 24:Ei(t,ea,e.memoizedState.cache)}return _n(e,t,a)}function Y1(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ta=!0;else{if(!DL(e,a)&&(t.flags&128)===0)return ta=!1,I4(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,qe&&(t.flags&1048576)!==0&&QA(t,Ud,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ol(t.elementType),t.type=e,typeof e=="function")cL(e)?(o=yl(e,o),t.tag=1,t=xE(null,t,e,o,a)):(t.tag=0,t=yC(null,t,e,o,a));else{if(e!=null){var r=e.$$typeof;if(r===QC){t.tag=11,t=dE(null,t,e,o,a);break e}else if(r===JC){t.tag=14,t=mE(null,t,e,o,a);break e}else if(r===Zr){t.tag=10,t.type=e,t=bE(null,t,a);break e}}throw t=Yb(e)||e,Error(Z(306,t,""))}}return t;case 0:return yC(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=yl(o,t.pendingProps),xE(e,t,o,r,a);case 3:e:{if($h(t,t.stateNode.containerInfo),e===null)throw Error(Z(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,uC(e,t),Pd(t,o,null,a);var i=t.memoizedState;if(o=i.cache,Ei(t,ea,o),o!==n.cache&&sC(t,[ea],a,!0),Md(),o=i.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=yE(e,t,o,a);break e}else if(o!==r){r=rr(Error(Z(424)),t),qd(r),t=yE(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Rt=ir(e.firstChild),Sa=t,qe=!0,Oi=null,nr=!0,a=o1(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(dl(),o===r){t=_n(e,t,a);break e}sa(e,t,o,a)}t=t.child}return t;case 26:return ju(e,t),e===null?(a=WE(t.type,null,t.pendingProps,null))?t.memoizedState=a:qe||(t.stateNode=VM(t.type,t.pendingProps,Di.current,t)):t.memoizedState=WE(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kb(t),e===null&&qe&&(o=t.stateNode=XM(t.type,t.pendingProps,Di.current),Sa=t,nr=!0,r=Rt,Wi(t.type)?(YC=r,Rt=ir(o.firstChild)):Rt=r),sa(e,t,t.pendingProps.children,a),ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((r=o=Rt)&&(o=x5(o,t.type,t.pendingProps,nr),o!==null?(t.stateNode=o,Sa=t,Rt=ir(o.firstChild),nr=!1,r=!0):r=!1),r||qi(t)),Kb(t),r=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,o=n.children,qC(r,n)?o=null:i!==null&&qC(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=SL(e,t,p4,null,null,a),Tc._currentValue=r),ju(e,t),sa(e,t,o,a),t.child;case 6:return e===null&&qe&&((e=a=Rt)&&(a=y5(a,t.pendingProps,nr),a!==null?(t.stateNode=a,Sa=t,Rt=null,e=!0):e=!1),e||qi(t)),null;case 13:return X1(e,t,a);case 4:return $h(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=gl(t,null,o,a):sa(e,t,o,a),t.child;case 11:return dE(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,ju(e,t),sa(e,t,o,a),t.child;case 8:return sa(e,t,t.pendingProps.children,a),t.child;case 12:return sa(e,t,t.pendingProps.children,a),t.child;case 10:return bE(e,t,a);case 9:return r=t.type._context,o=t.pendingProps.children,pl(t),r=Aa(r),o=o(r),t.flags|=1,sa(e,t,o,a),t.child;case 14:return mE(e,t,t.type,t.pendingProps,a);case 15:return G1(e,t,t.type,t.pendingProps,a);case 19:return CC(e,t,a);case 31:return L4(e,t,a);case 22:return j1(e,t,a,t.pendingProps);case 24:return pl(t),o=Aa(ea),e===null?(r=mL(),r===null&&(r=yt,n=dL(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},hL(t),Ei(t,ea,r)):((e.lanes&a)!==0&&(uC(e,t),Pd(t,null,null,a),Md()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ei(t,ea,o)):(o=n.cache,Ei(t,ea,o),o!==r.cache&&sC(t,[ea],a,!0))),sa(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:qe&&kg(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:ju(e,t),sa(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(Z(156,t.tag))}function Dn(e){e.flags|=4}function Eb(e,t,a,o,r){var n;if((n=(e.mode&32)!==0)&&(n=a===null?QE(t,o):QE(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(CM())e.flags|=8192;else throw cl=lg,pL}else e.flags&=-16777217}function CE(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ZM(t))if(CM())e.flags|=8192;else throw cl=lg,pL}function Ih(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yA():536870912,e.lanes|=t,vc|=t)}function gd(e,t){if(!qe)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&1206910976,o|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function T4(e,t,a){var o=t.pendingProps;switch(fL(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Vn(ea),gc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(qu(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lb())),Lt(t),null;case 26:var r=t.type,n=t.memoizedState;return e===null?(Dn(t),n!==null?(Lt(t),CE(t,n)):(Lt(t),Eb(t,r,null,o,a))):n?n!==e.memoizedState?(Dn(t),Lt(t),CE(t,n)):(Lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Dn(t),Lt(t),Eb(t,r,e,o,a)),null;case 27:if(eg(t),a=Di.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Lt(t),t.subtreeFlags&=-33554433,null}e=en.current,qu(t)?Kw(t,e):(e=XM(r,o,a),t.stateNode=e,Dn(t))}return Lt(t),t.subtreeFlags&=-33554433,null;case 5:if(eg(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Lt(t),t.subtreeFlags&=-33554433,null}if(n=en.current,qu(t))Kw(t,n);else{var i=Kd(Di.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?i.createElement(r,{is:o.is}):i.createElement(r)}}n[Ea]=t,n[vo]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;e:switch(Da(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Dn(t)}}return Lt(t),t.subtreeFlags&=-33554433,Eb(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(Z(166));if(e=Di.current,qu(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Sa,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Ea]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||kM(e.nodeValue,a)),e||qi(t,!0)}else e=Kd(e).createTextNode(o),e[Ea]=t,t.stateNode=e}return Lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=qu(t),a!==null){if(e===null){if(!o)throw Error(Z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(557));e[Ea]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Lt(t),e=!1}else a=Lb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ko(t),t):(ko(t),null);if((t.flags&128)!==0)throw Error(Z(558))}return Lt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=qu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(Z(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(Z(317));r[Ea]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Lt(t),r=!1}else r=Lb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ko(t),t):(ko(t),null)}return ko(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ih(t,t.updateQueue),Lt(t),null);case 4:return gc(),e===null&&_L(t.stateNode.containerInfo),t.flags|=67108864,Lt(t),null;case 10:return Vn(t.type),Lt(t),null;case 19:if(xL(t),o=t.memoizedState,o===null)return Lt(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)gd(o,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=cg(e),n!==null){for(t.flags|=128,gd(o,!1),e=n.updateQueue,t.updateQueue=e,Ih(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)KA(a,e),a=a.sibling;return jd(t,Pa.current&1|2),qe&&On(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Bo()>vg&&(t.flags|=128,r=!0,gd(o,!1),t.lanes=4194304)}else{if(!r)if(e=cg(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ih(t,e),gd(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!qe)return Lt(t),null}else 2*Bo()-o.renderingStartTime>vg&&a!==536870912&&(t.flags|=128,r=!0,gd(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Bo(),e.sibling=null,n=Pa.current,n=r?n&1|2:n&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||qe?jd(t,n):(a=n,It(Oa,t),It(Pa,a),Ha===null&&(Ha=t)),qe&&On(t,o.treeForkCount),e}return Lt(t),null;case 22:case 23:return ko(t),gL(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),a=t.updateQueue,a!==null&&Ih(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ma(ul),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vn(ea),Lt(t),null;case 25:return null;case 30:return t.flags|=33554432,Lt(t),null}throw Error(Z(156,t.tag))}function w4(e,t){switch(fL(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(ea),gc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return eg(t),null;case 31:if(t.memoizedState!==null){if(ko(t),t.alternate===null)throw Error(Z(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ko(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xL(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return gc(),null;case 10:return Vn(t.type),null;case 22:case 23:return ko(t),gL(),e!==null&&Ma(ul),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vn(ea),null;case 25:return null;default:return null}}function W1(e,t){switch(fL(t),t.tag){case 3:Vn(ea),gc();break;case 26:case 27:case 5:eg(t);break;case 4:gc();break;case 31:t.memoizedState!==null&&ko(t);break;case 13:ko(t);break;case 19:xL(t);break;case 10:Vn(t.type);break;case 22:case 23:ko(t),gL(),e!==null&&Ma(ul);break;case 24:Vn(ea)}}function lm(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var n=a.create,i=a.inst;o=n(),i.destroy=o}a=a.next}while(a!==r)}}catch(s){dt(t,t.return,s)}}function ji(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,r=t;var l=a,u=s;try{u()}catch(c){dt(r,l,c)}}}o=o.next}while(o!==n)}}catch(c){dt(t,t.return,c)}}function K1(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{n1(t,a)}catch(o){dt(e,e.return,o)}}}function Z1(e,t,a){a.props=yl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){dt(e,t,o)}}function Wr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,n=Fn(e.memoizedProps,r);(r.ref===null||r.ref.name!==n)&&(r.ref=HM(n)),o=r.ref;break;case 7:if(e.stateNode===null){var i=new Uo(e);So(e.child,!1,h5,i,void 0,void 0),e.stateNode=i}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(s){dt(e,t,s)}}function wa(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(r){dt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){dt(e,t,r)}else a.current=null}function hg(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)GM(e.stateNode,t[a])}function LE(e){for(var t=e.return;t!==null&&(kL(t)&&GM(e.stateNode,t.stateNode),!OL(t));)t=t.return}function kd(e){for(var t=e.return;t!==null&&(kL(t)&&g5(e.stateNode,t.stateNode),!OL(t));)t=t.return}function OL(e){return e.tag===5||e.tag===3||e.tag===27}function kL(e){return e&&e.tag===7&&e.stateNode!==null}function LC(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){dt(e,e.return,r)}}function Ab(e,t,a){try{var o=e.stateNode;Q4(o,e.type,a,t),o[vo]=t}catch(r){dt(e,e.return,r)}}function Q1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wi(e.type)||e.tag===4}function Mb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Q1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function RC(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(r),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qr)),hg(e,o),et=!0;else if(r!==4&&(r===27&&(hg(e,o),o=null,Wi(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(RC(e,t,a,o),e=e.sibling;e!==null;)RC(e,t,a,o),e=e.sibling}function gg(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?a.insertBefore(r,t):a.appendChild(r),hg(e,o),et=!0;else if(r!==4&&(r===27&&(hg(e,o),o=null,Wi(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(gg(e,t,a,o),e=e.sibling;e!==null;)gg(e,t,a,o),e=e.sibling}function J1(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Da(t,o,a),t[Ea]=e,t[vo]=a}catch(n){dt(e,e.return,n)}}var xg=!1,No=null;function RE(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(xg=!0)}var Kr=null;function IE(){var e=Kr;return Kr=null,e}var go=0;function Dc(e,t,a,o,r){return go=0,$1(e.child,t,a,o,r)}function $1(e,t,a,o,r){for(var n=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(o!==null){var s=GC(i);o.push(s),s.view&&(n=!0)}else n||GC(i).view&&(n=!0);xg=!0,BM(i,go===0?t:t+"_"+go,a),go++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||$1(e.child,t,a,o,r)&&(n=!0));e=e.sibling}return n}function an(e,t){for(;e!==null;)e.tag===5?FM(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||an(e.child,t)),e=e.sibling}function qh(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(qh(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(Z(544));var a=t.name;t=Gn(t.default,t.share),t!=="none"&&(Dc(e,a,t,null,!1)||an(e.child,!1))}e=e.sibling}}function IC(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,r=Fn(o,a),n=Gn(o.default,a.paired?o.share:o.enter);n!=="none"?Dc(e,r,n,null,!1)?(qh(e),a.paired||t||bc(e,o.onEnter)):an(e.child,!1):qh(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)IC(e,t),e=e.sibling;else qh(e)}function TC(e){if(No!==null&&No.size!==0){var t=No;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var r=t.get(o);if(r!==void 0){var n=Gn(a.default,a.share);if(n!=="none"&&(Dc(e,o,n,null,!1)?(n=e.stateNode,r.paired=n,n.paired=r,bc(e,a.onShare)):an(e.child,!1)),t.delete(o),t.size===0)break}}}TC(e)}e=e.sibling}}}function wC(e){if(e.tag===30){var t=e.memoizedProps,a=Fn(t,e.stateNode),o=No!==null?No.get(a):void 0,r=Gn(t.default,o!==void 0?t.share:t.exit);r!=="none"&&(Dc(e,a,r,null,!1)?o!==void 0?(r=e.stateNode,o.paired=r,r.paired=o,No.delete(a),bc(e,t.onShare)):bc(e,t.onExit):an(e.child,!1)),No!==null&&TC(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)wC(e),e=e.sibling;else No!==null&&TC(e)}function eM(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Fn(t,e.stateNode);t=Gn(t.default,t.update),e.flags&=-5,t!=="none"&&Dc(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&eM(e);e=e.sibling}}function EC(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,an(e.child,!1))}EC(e)}e=e.sibling}}function Gh(e){if(e.tag===30)e.stateNode.paired=null,an(e.child,!1),EC(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Gh(e),e=e.sibling;else EC(e)}function tM(e){for(e=e.child;e!==null;)e.tag===30?an(e.child,!1):(e.subtreeFlags&33554432)!==0&&tM(e),e=e.sibling}function NL(e,t,a,o,r,n,i){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(n!==null&&go<n.length){var u=n[go],c=GC(l);(u.view||c.view)&&(s=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&BM(l,go===0?a:a+"_"+go,r),s&&(e.flags&4)!==0||(Kr===null&&(Kr=[]),Kr.push(l,go===0?o:o+"_"+go,t.memoizedProps)),go++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:NL(e,t.child,a,o,r,n,i)&&(s=!0));t=t.sibling}return s}function aM(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,r=Fn(a,o),n=Gn(a.default,a.update);if(t){o=o.clones;var i=o===null?null:o.map(o5)}else i=e.memoizedState,e.memoizedState=null;o=e;var s=e.child;go=0,r=NL(o,s,r,r,n,i,!1),(e.flags&4)!==0&&r&&(t||bc(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&aM(e,t);e=e.sibling}}var ga=!1,st=!1,jr=!1,Pb=!1,TE=typeof WeakSet=="function"?WeakSet:Set,xa=null,Xr=!1,Rd=!1,yg=!1,AC=!1;function E4(e,t,a){if(e=e.containerInfo,_C=wc,e=_A(e),sL(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var n=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{o.nodeType,i.nodeType}catch{o=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==o||n!==0&&f.nodeType!==3||(l=s+n),f!==i||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===o&&++c===n&&(l=s),m===i&&++d===r&&(u=s),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;for(UC={focusedElem:e,selectionRange:o},wc=!1,a=(a&335544064)===a,xa=t,t=a?9270:1024;xa!==null;){if(e=xa,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&wC(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&RE(e),Th(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&wC(o),Th(a);continue}else if(o!==null&&o.memoizedState!==null){a&&RE(e),Th(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,xa=o):(a&&eM(e),Th(a))}}No=null}function Th(e){for(;xa!==null;){var t=xa,a=e,o=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&o!==null){a=void 0,r=o.memoizedProps,o=o.memoizedState;var n=t.stateNode;try{var i=yl(t.type,r);a=n.getSnapshotBeforeUpdate(i,o),n.__reactInternalSnapshotBeforeUpdate=a}catch(s){dt(t,t.return,s)}}break;case 3:if((r&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)jC(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":jC(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=Fn(o.memoizedProps,o.stateNode),r=t.memoizedProps,r=Gn(r.default,r.update),r!=="none"&&Dc(o,a,r,o.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(Z(163))}if(o=t.sibling,o!==null){o.return=t.return,xa=o;break}xa=t.return}}function oM(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Yr(e,a),o&4&&lm(5,a);break;case 1:if(Yr(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){dt(a,a.return,i)}else{var r=yl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){dt(a,a.return,i)}}o&64&&K1(a),o&512&&Wr(a,a.return);break;case 3:if(Yr(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{n1(e,t)}catch(i){dt(a,a.return,i)}}break;case 27:t===null&&o&4&&J1(a);case 26:case 5:Yr(e,a),t===null&&o&4&&LC(a),o&512&&Wr(a,a.return);break;case 12:Yr(e,a);break;case 31:Yr(e,a),o&4&&sM(e,a);break;case 13:Yr(e,a),o&4&&lM(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=H4.bind(null,a),S5(e,a))));break;case 22:if(o=a.memoizedState!==null||ga,!o){var n=t!==null&&t.memoizedState!==null||st;t=ga,r=st,ga=o,(st=n)&&!r?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),wr(e,a,o)):Yr(e,a),ga=t,st=r}break;case 30:Yr(e,a),o&512&&Wr(a,a.return);break;case 7:o&512&&Wr(a,a.return);default:Yr(e,a)}}function MC(e,t){for(e=e.child;e!==null;)rM(e,t),e=e.sibling}function rM(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}else{var r=e.stateNode,n=e.memoizedProps.style,i=n!=null&&n.hasOwnProperty("display")?n.display:null;r.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(l){dt(e,e.return,l)}PC(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,et=!0}catch(l){dt(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?UE(s,!0):UE(e.stateNode,!1)}catch(l){dt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&MC(e,t);break;default:MC(e,t)}}function PC(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:rM(a,o);break e;case 22:a.memoizedState===null&&PC(a,o);break e;default:PC(a,o)}}e=e.sibling}}function nM(e){var t=e.alternate;t!==null&&(e.alternate=null,nM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ot=null,po=!1;function Tr(e,t,a){for(a=a.child;a!==null;)iM(e,t,a),a=a.sibling}function iM(e,t,a){if(Fo&&typeof Fo.onCommitFiberUnmount=="function")try{Fo.onCommitFiberUnmount(tm,a)}catch{}switch(a.tag){case 26:st||wa(a,t),Tr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!st&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:st||wa(a,t),kd(a);var o=Ot,r=po;Wi(a.type)&&(Ot=a.stateNode,po=!1),Tr(e,t,a),YM(a.stateNode,a.type,a.memoizedProps),Ot=o,po=r;break;case 5:st||wa(a,t),kd(a);case 6:if(a.tag===6&&kd(a),o=Ot,r=po,Ot=null,Tr(e,t,a),Ot=o,po=r,Ot!==null)if(po)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode),et=!0}catch(n){dt(a,t,n)}else try{Ot.removeChild(a.stateNode),et=!0}catch(n){dt(a,t,n)}break;case 18:Ot!==null&&(po?(e=Ot,_E(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ec(e)):_E(Ot,a.stateNode));break;case 4:o=Ot,r=po,Ot=a.stateNode.containerInfo,po=!0,Tr(e,t,a),Ot=o,po=r;break;case 0:case 11:case 14:case 15:ji(2,a,t),st||ji(4,a,t),Tr(e,t,a);break;case 1:st||(wa(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Z1(a,t,o)),Tr(e,t,a);break;case 21:Tr(e,t,a);break;case 22:st=(o=st)||a.memoizedState!==null,Tr(e,t,a),st=o;break;case 30:wa(a,t),Tr(e,t,a);break;case 7:st||wa(a,t),Tr(e,t,a);break;default:Tr(e,t,a)}}function sM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ec(e)}catch(a){dt(t,t.return,a)}}}function lM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(a){dt(t,t.return,a)}}function A4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new TE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new TE),t;default:throw Error(Z(435,e.tag))}}function wh(e,t){var a=A4(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=_4.bind(null,e,o);o.then(r,r)}})}function $a(e,t,a){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var n=o[r],i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Wi(l.type)){Ot=l.stateNode,po=!1;break e}break;case 5:Ot=l.stateNode,po=!1;break e;case 3:case 4:Ot=l.stateNode.containerInfo,po=!0;break e}l=l.return}if(Ot===null)throw Error(Z(160));iM(i,s,n),Ot=null,po=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)uM(t,e,a),t=t.sibling}var Er=null;function uM(e,t,a){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var n=0;n<o.length;n++){var i=o[n];i.ref.impl=i.nextImpl}$a(t,e,a),eo(e),r&4&&(ji(3,e,e.return),lm(3,e),ji(5,e,e.return));break;case 1:$a(t,e,a),eo(e),r&512&&(st||o===null||wa(o,o.return)),r&64&&ga&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(n=Er,$a(t,e,a),eo(e),r&512&&(st||o===null||wa(o,o.return)),r&4)if(r=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(ga)e.stateNode=VM(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,r=n.ownerDocument||n;t:switch(t){case"title":o=r.getElementsByTagName("title")[0],(!o||o[rm]||o[Ea]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(t),r.head.insertBefore(o,r.querySelector("head > title"))),Da(o,t,a),o[Ea]=e,ya(o),t=o;break e;case"link":if(n=ZE("link","href",r).get(t+(a.href||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(i,1);break t}}o=r.createElement(t),Da(o,t,a),r.head.appendChild(o);break;case"meta":if(n=ZE("meta","content",r).get(t+(a.content||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(i,1);break t}}o=r.createElement(t),Da(o,t,a),r.head.appendChild(o);break;default:throw Error(Z(468,t))}o[Ea]=e,ya(o),t=o}e.stateNode=t}else ga||WC(n,e.type,e.stateNode);else e.stateNode=KE(n,a,e.memoizedProps);else r!==a?(r===null?(t=o.stateNode,t===null||st||t.parentNode.removeChild(t)):r.count--,a===null?ga||WC(n,e.type,e.stateNode):KE(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ab(e,e.memoizedProps,o.memoizedProps);break;case 27:$a(t,e,a),eo(e),r&512&&(st||o===null||wa(o,o.return)),o!==null&&r&4&&Ab(e,e.memoizedProps,o.memoizedProps);break;case 5:if(n=jr,jr=!1,$a(t,e,a),jr=n,eo(e),r&512&&(st||o===null||wa(o,o.return)),e.flags&32){t=e.stateNode;try{yc(t,""),et=!0}catch(c){dt(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,Ab(e,t,o!==null?o.memoizedProps:t)),r&1024&&(Pb=!0);break;case 6:if($a(t,e,a),eo(e),r&4){if(e.stateNode===null)throw Error(Z(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,et=!0}catch(c){dt(e,e.return,c)}}break;case 3:if(et=!1,Wh=null,n=Er,Er=Zd(t.containerInfo),$a(t,e,a),Er=n,eo(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(c){dt(e,e.return,c)}Pb&&(Pb=!1,cM(e)),et=!1;break;case 4:r=jr,jr=ga,o=Dw(),n=Er,Er=Zd(e.stateNode.containerInfo),$a(t,e,a),eo(e),Er=n,et&&Rd&&(yg=!0),et=o,jr=r;break;case 12:$a(t,e,a),eo(e);break;case 31:$a(t,e,a),eo(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wh(e,t)));break;case 13:$a(t,e,a),eo(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(_g=Bo()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wh(e,t)));break;case 22:n=e.memoizedState!==null,i=o!==null&&o.memoizedState!==null;var s=ga,l=st,u=jr;ga=s||n,jr=u||n,st=l||i,$a(t,e,a),st=l,jr=u,ga=s,eo(e),r&8192&&(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,!n||o===null||i||ga||st||(t=i||st,a=ga,o=st,ga=n||ga,st=t,Ci(e,2),ga=a,st=o),!n&&jr||MC(e,n)),r&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,wh(e,a))));break;case 19:$a(t,e,a),eo(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wh(e,t)));break;case 30:r&512&&(st||o===null||wa(o,o.return)),r=Dw(),n=Rd,i=(a&335544064)===a,s=e.memoizedProps,Rd=i&&Gn(s.default,s.update)!=="none",$a(t,e,a),eo(e),i&&o!==null&&et&&(e.flags|=4),Rd=n,et=r;break;case 21:break;case 7:r&512&&(st||o===null||wa(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:$a(t,e,a),eo(e)}}function eo(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(Q1(o)){a=o;break}o=o.return}o=null;for(var r=e.return;r!==null;){if(kL(r)){var n=r.stateNode;o===null?o=[n]:o.push(n)}if(OL(r))break;r=r.return}var i=o;if(a==null)throw Error(Z(160));switch(a.tag){case 27:var s=a.stateNode,l=Mb(e);gg(e,l,s,i);break;case 5:var u=a.stateNode;a.flags&32&&(yc(u,""),a.flags&=-33);var c=Mb(e);gg(e,c,u,i);break;case 3:case 4:var d=a.stateNode.containerInfo,f=Mb(e);RC(e,f,d,i);break;default:throw Error(Z(161))}}catch(m){dt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cM(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cM(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wc=!0,t.reset(),wc=!1),e=e.sibling}}function Gu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)fM(t,e),t=t.sibling;else aM(t,!1)}function fM(e,t){var a=e.alternate;if(a===null)IC(e,!1);else switch(e.tag){case 3:if(AC=Xr=!1,IE(),Gu(t,e),!Xr&&!yg){if(e=Kr,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var r=e[o+1];FM(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),AC=!0}Kr=null;break;case 5:Gu(t,e);break;case 4:o=Xr,Xr=!1,Gu(t,e),Xr&&(yg=!0),Xr=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?IC(e,!1):Gu(t,e));break;case 30:o=Xr,r=IE(),Xr=!1,Gu(t,e),Xr&&(e.flags|=4);var n=e.memoizedProps,i=e.stateNode;t=Fn(n,i),i=Fn(a.memoizedProps,i);var s=Gn(n.default,n.update);s==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,go=0,t=NL(e,a,t,i,s,n,!0),go!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(bc(e,e.memoizedProps.onUpdate),Kr=r):r!==null&&(r.push.apply(r,Kr),Kr=r),Xr=(e.flags&32)!==0?!0:o;break;default:Gu(t,e)}}function Yr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)oM(e,t.alternate,t),t=t.sibling}function Ci(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:ji(4,a,a.return),Ci(a,o);break;case 1:wa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&Z1(a,a.return,r),Ci(a,o);break;case 27:(o&2)!==0&&YM(a.stateNode,a.type,a.memoizedProps);case 5:wa(a,a.return),a.tag!==5&&a.tag!==27||kd(a),Ci(a,o);break;case 6:kd(a);break;case 26:wa(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||st||r.parentNode.removeChild(r),Ci(a,o);break;case 22:a.memoizedState===null&&Ci(a,o);break;case 30:wa(a,a.return),Ci(a,o);break;case 7:wa(a,a.return);default:Ci(a,o)}e=e.sibling}}function wr(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var o=t.alternate,r=e,n=t,i=n.flags,s=(a&1)!==0;switch(n.tag){case 0:case 11:case 15:wr(r,n,a),lm(4,n);break;case 1:if(wr(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){dt(o,o.return,c)}if(o=n,r=o.updateQueue,r!==null){var l=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)r1(u[r],l)}catch(c){dt(o,o.return,c)}}s&&i&64&&K1(n),Wr(n,n.return);break;case 27:(a&2)!==0&&J1(n);case 5:n.tag!==5&&n.tag!==27||LE(n),wr(r,n,a),s&&o===null&&i&4&&LC(n),Wr(n,n.return);break;case 6:LE(n);break;case 26:l=n.stateNode,n.memoizedState!==null||l===null||ga||WC(Zd(l.ownerDocument),n.type,l),wr(r,n,a),s&&o===null&&i&4&&LC(n),Wr(n,n.return);break;case 12:wr(r,n,a);break;case 31:wr(r,n,a),s&&i&4&&sM(r,n);break;case 13:wr(r,n,a),s&&i&4&&lM(r,n);break;case 22:n.memoizedState===null&&wr(r,n,a),Wr(n,n.return);break;case 30:wr(r,n,a),Wr(n,n.return);break;case 7:Wr(n,n.return);default:wr(r,n,a)}t=t.sibling}}function VL(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&im(a))}function BL(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&im(e))}function $o(e,t,a,o){var r=(a&335544064)===a;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)dM(e,t,a,o),t=t.sibling;else r&&tM(t)}function dM(e,t,a,o){var r=(a&335544064)===a;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Gh(t);var n=t.flags;switch(t.tag){case 0:case 11:case 15:$o(e,t,a,o),n&2048&&lm(9,t);break;case 1:$o(e,t,a,o);break;case 3:$o(e,t,a,o),r&&AC&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),n&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(t.refCount++,n!=null&&im(n)));break;case 12:if(n&2048){$o(e,t,a,o),n=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;typeof l=="function"&&l(s,t.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(u){dt(t,t.return,u)}}else $o(e,t,a,o);break;case 31:$o(e,t,a,o);break;case 13:$o(e,t,a,o);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?(r&&s!==null&&s.memoizedState===null&&Gh(s),i._visibility&2?$o(e,t,a,o):Nd(e,t)):(r&&s!==null&&s.memoizedState!==null&&Gh(t),i._visibility&2?$o(e,t,a,o):(i._visibility|=2,Xu(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),n&2048&&VL(s,t);break;case 24:$o(e,t,a,o),n&2048&&BL(t.alternate,t);break;case 30:r&&(n=t.alternate,n!==null&&(an(n.child,!0),an(t.child,!0))),$o(e,t,a,o);break;default:$o(e,t,a,o)}}function Xu(e,t,a,o,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,i=t,s=a,l=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:Xu(n,i,s,l,r),lm(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Xu(n,i,s,l,r):Nd(n,i):(c._visibility|=2,Xu(n,i,s,l,r)),r&&u&2048&&VL(i.alternate,i);break;case 24:Xu(n,i,s,l,r),r&&u&2048&&BL(i.alternate,i);break;default:Xu(n,i,s,l,r)}t=t.sibling}}function Nd(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Nd(a,o),r&2048&&VL(o.alternate,o);break;case 24:Nd(a,o),r&2048&&BL(o.alternate,o);break;default:Nd(a,o)}t=t.sibling}}var rl=8192;function tl(e,t,a){if(e.subtreeFlags&rl)for(e=e.child;e!==null;)mM(e,t,a),e=e.sibling}function mM(e,t,a){switch(e.tag){case 26:tl(e,t,a),e.flags&rl&&(e.memoizedState!==null?O5(a,Er,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&JE(a,e)));break;case 5:tl(e,t,a),e.flags&rl&&(e=e.stateNode,(t&335544128)===t&&JE(a,e));break;case 3:case 4:var o=Er;Er=Zd(e.stateNode.containerInfo),tl(e,t,a),Er=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=rl,rl=16777216,tl(e,t,a),rl=o):tl(e,t,a));break;case 30:if((e.flags&rl)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var r=e.stateNode;r.paired=null,No===null&&(No=new Map),No.set(o,r)}tl(e,t,a);break;default:tl(e,t,a)}}function pM(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,gM(o,e)}pM(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hM(e),e=e.sibling}function hM(e){switch(e.tag){case 0:case 11:case 15:xd(e),e.flags&2048&&ji(9,e,e.return);break;case 3:xd(e);break;case 12:xd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jh(e)):xd(e);break;default:xd(e)}}function jh(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,gM(o,e)}pM(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ji(8,t,t.return),jh(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,jh(t));break;default:jh(t)}e=e.sibling}}function gM(e,t){for(;xa!==null;){var a=xa;switch(a.tag){case 0:case 11:case 15:ji(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:im(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,xa=o;else e:for(a=e;xa!==null;){o=xa;var r=o.sibling,n=o.return;if(nM(o),o===a){xa=null;break e}if(r!==null){r.return=n,xa=r;break e}xa=n}}}var M4={getCacheForType:function(e){var t=Aa(ea),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Aa(ea).controller.signal}},P4=typeof WeakMap=="function"?WeakMap:Map,ot=0,yt=null,Xe=null,Ye=0,ct=0,Do=null,Ai=!1,Oc=!1,FL=!1,Un=0,Ut=0,Xi=0,fl=0,Sg=0,Vo=0,vc=0,Vd=null,ho=null,DC=!1,_g=0,xM=0,vg=1/0,bg=null,Fi=null,Bt=0,Mr=null,Sl=null,tn=0,OC=0,kC=null,yM=null,mc=null,pc=null,hc=null,Bd=0,Xh=null;function Ho(){return(ot&2)!==0&&Ye!==0?Ye&-Ye:Me.T!==null?HL():CA()}function SM(){if(Vo===0)if((Ye&536870912)===0||qe){var e=ph;ph<<=1,(ph&3932160)===0&&(ph=262144),Vo=e}else Vo=536870912;return e=Oa.current,e!==null&&(e.flags|=32),Vo}function bc(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=HM(Fn(e.memoizedProps,a))),pc===null&&(pc=[]),pc.push(t.bind(null,o))}}function yo(e,t,a){(e===yt&&(ct===2||ct===9)||e.cancelPendingCommit!==null)&&(Cc(e,0),Mi(e,Ye,Vo,!1)),om(e,a),((ot&2)===0||e!==yt)&&(e===yt&&((ot&2)===0&&(fl|=a),Ut===4&&Mi(e,Ye,Vo,!1)),rn(e))}function vM(e,t,a){if((ot&6)!==0)throw Error(Z(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||am(e,t),r=o?k4(e,t):Db(e,t,!0),n=o;do{if(r===0){Oc&&!o&&Mi(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!D4(a)){r=Db(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;r=Vd;var l=s.current.memoizedState.isDehydrated;if(l&&(Cc(s,i).flags|=256),i=Db(s,i,!1),i!==2&&i!==6){if(FL&&!l){s.errorRecoveryDisabledLanes|=n,fl|=n,r=4;break e}n=ho,ho=r,n!==null&&(ho===null?ho=n:ho.push.apply(ho,n))}r=i}if(n=!1,r!==2)continue}}if(r===1){Cc(e,0),Mi(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(Z(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Mi(o,t,Vo,!Ai);break e;case 2:ho=null;break;case 3:case 5:break;default:throw Error(Z(329))}if((t&62914560)===t&&(r=_g+300-Bo(),10<r)){if(Mi(o,t,Vo,!Ai),wg(o,0,!0)!==0)break e;tn=t,o.timeoutHandle=UL(wE.bind(null,o,a,ho,bg,DC,t,Vo,fl,vc,Ai,n,"Throttled",-0,0),r);break e}wE(o,a,ho,bg,DC,t,Vo,fl,vc,Ai,n,null,-0,0)}}break}while(!0);rn(e)}function wE(e,t,a,o,r,n,i,s,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,y=(n&335544064)===n;if(d=null,(y||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},No=null,mM(t,n,d),y&&(p=d,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(p.count++,p.waitingForViewTransition=!0,p=Qd.bind(p),y.finished.then(p,p))),p=(n&62914560)===n?_g-Bo():(n&4194048)===n?xM-Bo():0,p=k5(d,p),p!==null)){tn=n,e.cancelPendingCommit=p(AE.bind(null,e,t,n,a,o,r,i,s,l,u,c,d,null,f,m)),Mi(e,n,i,!u);return}AE(e,t,n,a,o,r,i,s,l,u,c,d)}function D4(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!_o(n(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mi(e,t,a,o){t=xA(e,t),t&=~Sg,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-zo(r),i=1<<n;o[n]=-1,r&=~i}a!==0&&SA(e,a,t)}function Ug(){return(ot&6)===0?(um(0,!1),!1):!0}function zL(){if(Xe!==null){if(ct===0)var e=Xe.return;else e=Xe,kn=Rl=null,CL(e),cc=null,Gd=0,e=Xe;for(;e!==null;)W1(e.alternate,e),e=e.return;Xe=null}}function Cc(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,e5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),tn=0,zL(),yt=e,Xe=a=Nn(e.current,null),Ye=t,ct=0,Do=null,Ai=!1,Oc=am(e,t),FL=!1,vc=Vo=Sg=fl=Xi=Ut=0,ho=Vd=null,DC=!1,Un=xA(e,t),Dg(),a}function bM(e,t){Ve=null,Me.H=mg,t===Pc||t===Ng?(t=eE(),ct=3):t===pL?(t=eE(),ct=4):ct=t===ML?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Do=t,Xe===null&&(Ut=1,pg(e,rr(t,e.current)))}function CM(){var e=Oa.current;return e===null?!0:(Ye&4194048)===Ye?Ha===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===Ha:!1}function LM(){var e=Me.H;return Me.H=mg,e===null?mg:e}function RM(){var e=Me.A;return Me.A=M4,e}function Cg(){Ut=4,Ai||(Ye&4194048)!==Ye&&Oa.current!==null||(Oc=!0),(Xi&134217727)===0&&(fl&134217727)===0||yt===null||Mi(yt,Ye,Vo,!1)}function Db(e,t,a){var o=ot;ot|=2;var r=LM(),n=RM();(yt!==e||Ye!==t)&&(bg=null,Cc(e,t)),t=!1;var i=Ut;e:do try{if(ct!==0&&Xe!==null){var s=Xe,l=Do;switch(ct){case 8:zL(),i=6;break e;case 3:case 2:case 9:case 6:Oa.current===null&&(t=!0);var u=ct;if(ct=0,Do=null,nc(e,s,l,u),a&&Oc){i=0;break e}break;default:u=ct,ct=0,Do=null,nc(e,s,l,u)}}O4(),i=Ut;break}catch(c){bM(e,c)}while(!0);return t&&e.shellSuspendCounter++,kn=Rl=null,ot=o,Me.H=r,Me.A=n,Xe===null&&(yt=null,Ye=0,Dg()),i}function O4(){for(;Xe!==null;)IM(Xe)}function k4(e,t){var a=ot;ot|=2;var o=LM(),r=RM();yt!==e||Ye!==t?(bg=null,vg=Bo()+500,Cc(e,t)):Oc=am(e,t);e:do try{if(ct!==0&&Xe!==null){t=Xe;var n=Do;t:switch(ct){case 1:ct=0,Do=null,nc(e,t,n,1);break;case 2:case 9:if($w(n)){ct=0,Do=null,EE(t);break}t=function(){ct!==2&&ct!==9||yt!==e||(ct=7),rn(e)},n.then(t,t);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:$w(n)?(ct=0,Do=null,EE(t)):(ct=0,Do=null,nc(e,t,n,7));break;case 5:var i=null;switch(Xe.tag){case 26:i=Xe.memoizedState;case 5:case 27:var s=Xe;if(i?ZM(i):s.stateNode.complete){ct=0,Do=null;var l=s.sibling;if(l!==null)Xe=l;else{var u=s.return;u!==null?(Xe=u,qg(u)):Xe=null}break t}}ct=0,Do=null,nc(e,t,n,5);break;case 6:ct=0,Do=null,nc(e,t,n,6);break;case 8:zL(),Ut=6;break e;default:throw Error(Z(462))}}N4();break}catch(c){bM(e,c)}while(!0);return kn=Rl=null,Me.H=o,Me.A=r,ot=a,Xe!==null?0:(yt=null,Ye=0,Dg(),Ut)}function N4(){for(;Xe!==null&&!JU();)IM(Xe)}function IM(e){var t=Y1(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?qg(e):Xe=t}function EE(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=gE(a,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=gE(a,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:CL(t);var o=t;o===Sa&&(qe?(ig(o),o.tag===5&&o.stateNode!=null&&(Rt=o.stateNode)):(ig(o),qe=!0));default:W1(a,t),t=Xe=KA(t,Un),t=Y1(a,t,Un)}e.memoizedProps=e.pendingProps,t===null?qg(e):Xe=t}function nc(e,t,a,o){kn=Rl=null,CL(t),cc=null,Gd=0;var r=t.return;try{if(C4(e,r,t,a,Ye)){Ut=1,pg(e,rr(a,e.current)),Xe=null;return}}catch(n){if(r!==null)throw Xe=r,n;Ut=1,pg(e,rr(a,e.current)),Xe=null;return}t.flags&32768?(qe||o===1?e=!0:Oc||(Ye&536870912)!==0?e=!1:(Ai=e=!0,(o===2||o===9||o===3||o===6)&&(o=Oa.current,o!==null&&o.tag===13&&(o.flags|=16384))),TM(t,e)):qg(t)}function qg(e){var t=e;do{if((t.flags&32768)!==0){TM(t,Ai);return}e=t.return;var a=T4(t.alternate,t,Un);if(a!==null){Xe=a;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);Ut===0&&(Ut=5)}function TM(e,t){do{var a=w4(e.alternate,e);if(a!==null){a.flags&=32767,Xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Xe=e;return}Xe=e=a}while(e!==null);Ut=6,Xe=null}function AE(e,t,a,o,r,n,i,s,l,u,c,d){e.cancelPendingCommit=null;do Gg();while(Bt!==0);if((ot&6)!==0)throw Error(Z(327));if(t!==null){if(t===e.current)throw Error(Z(177));e===yt&&(Xe=yt=null,Ye=0),Sl=t,Mr=e,tn=a,kC=r,yM=o,V4(e,t,a,i,s,l,d)}}function V4(e,t,a,o,r,n,i){var s=t.lanes|t.childLanes;if(OC=s,s|=lL,l3(e,a,s,o,r,n),pc=null,(a&335544064)===a?(hc=c4(e),o=10262):(hc=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,U4(tg,function(){return FC(),null})):(e.callbackNode=null,e.callbackPriority=0),xg=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Me.T,Me.T=null,r=rt.p,rt.p=2,n=ot,ot|=4;try{E4(e,t,a)}finally{ot=n,rt.p=r,Me.T=o}}Bt=1,xg?mc=i5(i,e.containerInfo,hc,NC,VC,F4,BC,FC,B4,null,null):(NC(),VC(),BC())}function B4(e){if(Bt!==0){var t=Mr.onRecoverableError;t(e,{componentStack:null})}}function F4(){Bt===3&&(Bt=0,fM(Sl,Mr),Bt=4)}function NC(){if(Bt===1){Bt=0;var e=Mr,t=Sl,a=tn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=Me.T,Me.T=null;var r=rt.p;rt.p=2;var n=ot;ot|=4;try{Rd=yg=!1,uM(t,e,a),a=UC;var i=_A(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&HA(s.ownerDocument.documentElement,s)){if(l!==null&&sL(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=s.textContent.length,y=Math.min(l.start,p),v=l.end===void 0?y:Math.min(l.end,p);!m.extend&&y>v&&(i=v,v=y,y=i);var g=jw(s,y),h=jw(s,v);if(g&&h&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var x=d.createRange();x.setStart(g.node,g.offset),m.removeAllRanges(),y>v?(m.addRange(x),m.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),m.addRange(x))}}}}for(d=[],m=s;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var S=d[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}wc=!!_C,UC=_C=null}finally{ot=n,rt.p=r,Me.T=o}}e.current=t,Bt=2}}function VC(){if(Bt===2){Bt=0;var e=Mr,t=Sl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Me.T,Me.T=null;var o=rt.p;rt.p=2;var r=ot;ot|=4;try{oM(e,t.alternate,t)}finally{ot=r,rt.p=o,Me.T=a}}Bt=3}}function BC(){if(Bt===4||Bt===3){Bt=0;var e=mc;mc=null,$U();var t=Mr,a=Sl,o=tn,r=yM,n=(o&335544064)===o?10262:10256;if((a.subtreeFlags&n)!==0||(a.flags&n)!==0?Bt=5:(Bt=0,Sl=Mr=null,wM(t,t.pendingLanes)),n=t.pendingLanes,n===0&&(Fi=null),tL(o),a=a.stateNode,Fo&&typeof Fo.onCommitFiberRoot=="function")try{Fo.onCommitFiberRoot(tm,a,void 0,(a.current.flags&128)===128)}catch{}if(r!==null){a=Me.T,n=rt.p,rt.p=2,Me.T=null;try{for(var i=t.onRecoverableError,s=0;s<r.length;s++){var l=r[s];i(l.value,{componentStack:l.stack})}}finally{Me.T=a,rt.p=n}}if(r=pc,i=hc,hc=null,r!==null&&(pc=null,i===null&&(i=[]),e!==null))for(l=0;l<r.length;l++)a=(0,r[l])(i),a!==void 0&&e.finished.finally(a);(tn&3)!==0&&Gg(),rn(t),n=t.pendingLanes,(o&261930)!==0&&(n&42)!==0?t===Xh?Bd++:(Bd=0,Xh=t):(Bd=0,Xh=null),um(0,!1)}}function wM(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,im(t)))}function Gg(){return mc!==null&&(mc.skipTransition(),mc=null),NC(),VC(),BC(),FC()}function FC(){if(Bt!==5)return!1;var e=Mr,t=OC;OC=0;var a=tL(tn),o=Me.T,r=rt.p;try{rt.p=32>a?32:a,Me.T=null,a=kC,kC=null;var n=Mr,i=tn;if(Bt=0,Sl=Mr=null,tn=0,(ot&6)!==0)throw Error(Z(331));var s=ot;if(ot|=4,hM(n.current),dM(n,n.current,i,a),ot=s,um(0,!1),Fo&&typeof Fo.onPostCommitFiberRoot=="function")try{Fo.onPostCommitFiberRoot(tm,n)}catch{}return!0}finally{rt.p=r,Me.T=o,wM(e,t)}}function ME(e,t,a){t=rr(a,t),t=xC(e.stateNode,t,2),e=Ni(e,t,2),e!==null&&(om(e,2),rn(e))}function dt(e,t,a){if(e.tag===3)ME(e,e,a);else for(;t!==null;){if(t.tag===3){ME(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fi===null||!Fi.has(o))){e=rr(a,e),a=U1(2),o=Ni(t,a,2),o!==null&&(q1(a,o,t,e),om(o,2),rn(o));break}}t=t.return}}function Ob(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new P4;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(FL=!0,r.add(a),e=z4.bind(null,e,t,a),t.then(e,e))}function z4(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,yt===e&&(Ye&a)===a&&((Ut===4||Ut===3&&(Ye&62914560)===Ye&&300>Bo()-_g)&&(ot&2)===0?Cc(e,0):Sg|=a,vc===Ye&&(vc=0)),rn(e)}function EM(e,t){t===0&&(t=yA()),e=Ll(e,t),e!==null&&(om(e,t),rn(e))}function H4(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),EM(e,a)}function _4(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(Z(314))}o!==null&&o.delete(t),EM(e,a)}function U4(e,t){return $C(e,t)}var Lc=null,Yu=null,zC=!1,Lg=!1,kb=!1,Pi=0;function rn(e){e!==Yu&&e.next===null&&(Yu===null?Lc=Yu=e:Yu=Yu.next=e),Lg=!0,zC||(zC=!0,G4())}function um(e,t){if(!kb&&Lg){kb=!0;do for(var a=!1,o=Lc;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var i=o.suspendedLanes,s=o.pingedLanes;n=(1<<31-zo(42|e)+1)-1,n&=r&~(i&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,PE(o,n))}else n=Ye,n=wg(o,o===yt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||am(o,n)||(a=!0,PE(o,n));o=o.next}while(a);kb=!1}}function q4(){AM()}function AM(){Lg=zC=!1;var e=0;Pi!==0&&$4()&&(e=Pi);for(var t=Bo(),a=null,o=Lc;o!==null;){var r=o.next,n=MM(o,t);n===0?(o.next=null,a===null?Lc=r:a.next=r,r===null&&(Yu=a)):(a=o,(e!==0||(n&3)!==0)&&(Lg=!0)),o=r}Bt!==0&&Bt!==5||um(e,!1),Pi!==0&&(Pi=0)}function MM(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var i=31-zo(n),s=1<<i,l=r[i];l===-1?((s&a)===0||(s&o)!==0)&&(r[i]=s3(s,t)):l<=t&&(e.expiredLanes|=s),n&=~s}if(t=yt,a=Ye,a=wg(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(ct===2||ct===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&db(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||am(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&db(o),tL(a)){case 2:case 8:a=hA;break;case 32:a=tg;break;case 268435456:a=gA;break;default:a=tg}return o=PM.bind(null,e),a=$C(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&db(o),e.callbackPriority=2,e.callbackNode=null,2}function PM(e,t){if(Bt!==0&&Bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gg()&&e.callbackNode!==a)return null;var o=Ye;return o=wg(e,e===yt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(vM(e,o,t),MM(e,Bo()),e.callbackNode!=null&&e.callbackNode===a?PM.bind(null,e):null)}function PE(e,t){if(Gg())return null;vM(e,t,!0)}function G4(){t5(function(){(ot&6)!==0?$C(pA,q4):AM()})}function HL(){if(Pi===0){var e=hl;e===0&&(e=mh,mh<<=1,(mh&261888)===0&&(mh=256)),Pi=e}return Pi}function DE(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:kh(e)}function j4(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=DE((r[vo]||null).action),i=o.submitter;i&&(t=(t=i[vo]||null)?DE(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var s=new Ag("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Pi!==0){var l=new FormData(r,i);hC(a,{pending:!0,data:l,method:r.method,action:n},null,l)}}else typeof n=="function"&&(s.preventDefault(),l=new FormData(r,i),hC(a,{pending:!0,data:l,method:r.method,action:n},n,l))},currentTarget:r}]})}}for(Eh=0;Eh<rC.length;Eh++)Ah=rC[Eh],OE=Ah.toLowerCase(),kE=Ah[0].toUpperCase()+Ah.slice(1),Pr(OE,"on"+kE);var Ah,OE,kE,Eh;Pr(qA,"onAnimationEnd");Pr(GA,"onAnimationIteration");Pr(jA,"onAnimationStart");Pr("dblclick","onDoubleClick");Pr("focusin","onFocus");Pr("focusout","onBlur");Pr(a4,"onTransitionRun");Pr(o4,"onTransitionStart");Pr(r4,"onTransitionCancel");Pr(XA,"onTransitionEnd");xc("onMouseEnter",["mouseout","mouseover"]);xc("onMouseLeave",["mouseout","mouseover"]);xc("onPointerEnter",["pointerout","pointerover"]);xc("onPointerLeave",["pointerout","pointerover"]);bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));bl("onBeforeInput",["compositionend","keypress","textInput","paste"]);bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yd="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(" "),X4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yd));function DM(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(c){og(c)}r.currentTarget=null,n=l}else for(i=0;i<o.length;i++){if(s=o[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(c){og(c)}r.currentTarget=null,n=l}}}}function je(e,t){var a=t[Ew];a===void 0&&(a=t[Ew]=new Set);var o=e+"__bubble";a.has(o)||(OM(t,e,2,!1),a.add(o))}function Nb(e,t,a){var o=0;t&&(o|=4),OM(a,e,o,t)}var Mh="_reactListening"+Math.random().toString(36).slice(2);function _L(e){if(!e[Mh]){e[Mh]=!0,RA.forEach(function(a){a!=="selectionchange"&&(X4.has(a)||Nb(a,!1,e),Nb(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mh]||(t[Mh]=!0,Nb("selectionchange",!1,t))}}function OM(e,t,a,o){switch(oP(t)){case 2:var r=F5;break;case 8:r=z5;break;default:r=WL}a=r.bind(null,t,a,e),r=void 0,!eC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Vb(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===r)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;s!==null;){if(i=nl(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){o=n=i;continue e}s=s.parentNode}}o=o.return}DA(function(){var u=n,c=oL(a),d=[];e:{var f=YA.get(e);if(f!==void 0){var m=Ag,p=e;switch(e){case"keypress":if(Vh(a)===0)break e;case"keydown":case"keyup":m=D3;break;case"focusin":p="focus",m=yb;break;case"focusout":p="blur",m=yb;break;case"beforeblur":case"afterblur":m=yb;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":m=Vw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=v3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=B3;break;case qA:case GA:case jA:m=L3;break;case XA:m=z3;break;case"scroll":case"scrollend":m=y3;break;case"wheel":m=_3;break;case"copy":case"cut":case"paste":m=I3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Fw;break;case"submit":m=N3;break;case"toggle":case"beforetoggle":m=q3}var y=(t&4)!==0,v=!y&&(e==="scroll"||e==="scrollend"),g=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,x;h!==null;){var S=h;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||g===null||(S=zd(h,g),S!=null&&y.push(Wd(h,S,x))),v)break;h=h.return}0<y.length&&(f=new m(f,p,null,a,c),d.push({event:f,listeners:y}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&a!==$b&&(p=a.relatedTarget||a.fromElement)&&(nl(p)||p[Ac]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?nl(m):null,m!==null&&(v=em(m),y=m.tag,m!==v||y!==5&&y!==27&&y!==6)&&(m=null)):(f=null,m=u),f!==m&&(y=Vw,S="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=Fw,S="onPointerLeave",g="onPointerEnter",h="pointer"),v=f==null?p:Cd(f),x=m==null?p:Cd(m),p=new y(S,h+"leave",f,a,c),p.target=v,p.relatedTarget=x,S=null,nl(c)===u&&(y=new y(g,h+"enter",m,a,c),y.target=x,y.relatedTarget=v,S=y),v=S,y=f&&m?_b(f,m,Y4):null,f!==null&&NE(d,p,f,y,!1),m!==null&&v!==null&&NE(d,v,m,y,!0)))}e:{if(f=u?Cd(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var b=Uw;else if(_w(f))if(FA)b=$3;else{b=Q3;var R=Z3}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&aL(u.elementType)&&(b=Uw):b=J3;if(b&&(b=b(e,u))){BA(d,b,a,c);break e}R&&R(e,f,u)}switch(R=u?Cd(u):window,e){case"focusin":(_w(R)||R.contentEditable==="true")&&($u=R,aC=u,wd=null);break;case"focusout":wd=aC=$u=null;break;case"mousedown":oC=!0;break;case"contextmenu":case"mouseup":case"dragend":oC=!1,Xw(d,a,c);break;case"selectionchange":if(t4)break;case"keydown":case"keyup":Xw(d,a,c)}var L;if(iL)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Ju?NA(e,a)&&(C="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(C="onCompositionStart");C&&(kA&&a.locale!=="ko"&&(Ju||C!=="onCompositionStart"?C==="onCompositionEnd"&&Ju&&(L=OA()):(wi=c,rL="value"in wi?wi.value:wi.textContent,Ju=!0)),R=Rg(u,C),0<R.length&&(C=new Bw(C,e,null,a,c),d.push({event:C,listeners:R}),L?C.data=L:(L=VA(a),L!==null&&(C.data=L)))),(L=j3?X3(e,a):Y3(e,a))&&(C=Rg(u,"onBeforeInput"),0<C.length&&(R=new Bw("onBeforeInput","beforeinput",null,a,c),d.push({event:R,listeners:C}),R.data=L)),j4(d,e,u,a,c)}DM(d,t)})}function Wd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Rg(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=zd(e,a),r!=null&&o.unshift(Wd(e,r,n)),r=zd(e,t),r!=null&&o.push(Wd(e,r,n))),e.tag===3)return o;e=e.return}return[]}function Y4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function NE(e,t,a,o,r){for(var n=t._reactName,i=[];a!==null&&a!==o;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||u===null||(l=u,r?(u=zd(a,n),u!=null&&i.unshift(Wd(a,u,l))):r||(u=zd(a,n),u!=null&&i.push(Wd(a,u,l)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var W4=/\r\n?/g,K4=/\u0000|\uFFFD/g;function VE(e){return(typeof e=="string"?e:""+e).replace(W4,`
9
+ `).replace(K4,"")}function kM(e,t){return t=VE(t),VE(e)===t}function ft(e,t,a,o,r,n){switch(a){case"children":if(typeof o=="string")t==="body"||t==="textarea"&&o===""||yc(e,o);else if(typeof o=="number"||typeof o=="bigint")t!=="body"&&yc(e,""+o);else return;break;case"className":gh(e,"class",o);break;case"tabIndex":gh(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":gh(e,a,o);break;case"style":PA(e,o,n);return;case"data":if(t!=="object"){gh(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=kh(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.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 n=="function"&&(a==="formAction"?(t!=="input"&&ft(e,t,"name",r.name,r,null),ft(e,t,"formEncType",r.formEncType,r,null),ft(e,t,"formMethod",r.formMethod,r,null),ft(e,t,"formTarget",r.formTarget,r,null)):(ft(e,t,"encType",r.encType,r,null),ft(e,t,"method",r.method,r,null),ft(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=kh(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Qr);return;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=kh(o),e.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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":je("beforetoggle",e),je("toggle",e),Oh(e,"popover",o);break;case"xlinkActuate":Pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Pn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Pn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Pn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Pn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Oh(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=g3.get(a)||a,Oh(e,a,o);else return}et=!0}function HC(e,t,a,o,r,n){switch(a){case"style":PA(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")yc(e,o);else if(typeof o=="number"||typeof o=="bigint")yc(e,""+o);else return;break;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"onClick":o!=null&&(e.onclick=Qr);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!IA.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),t=e[vo]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(n,t,r),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,r);break e}et=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):Oh(e,a,o)}return}et=!0}function Da(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var i=a[n];if(i!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,n,i,a,null)}}r&&ft(e,t,"srcSet",a.srcSet,a,null),o&&ft(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var s=n=i=r=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":r=c;break;case"type":i=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":n=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Z(137,t));break;default:ft(e,t,o,c,a,null)}}EA(e,n,s,l,u,i,r,!1);return;case"select":je("invalid",e),o=i=n=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":n=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:ft(e,t,r,s,a,null)}t=n,a=i,e.multiple=!!o,t!=null?sc(e,!!o,t,!1):a!=null&&sc(e,!!o,a,!0);return;case"textarea":je("invalid",e),n=r=o=null;for(i in a)if(a.hasOwnProperty(i)&&(s=a[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":r=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(Z(91));break;default:ft(e,t,i,s,a,null)}MA(e,o,r,n);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ft(e,t,l,o,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(o=0;o<Yd.length;o++)je(Yd[o],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,u,o,a,null)}return;default:if(aL(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&HC(e,t,c,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&ft(e,t,s,o,a,null))}var Z4={};function Q4(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,i=null,s=null,l=null,u=null,c=null;for(m in a){var d=a[m];if(a.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:o.hasOwnProperty(m)||ft(e,t,m,null,o,d)}}for(var f in o){var m=o[f];if(d=a[f],o.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(et=!0),n=m;break;case"name":m!==d&&(et=!0),r=m;break;case"checked":m!==d&&(et=!0),u=m;break;case"defaultChecked":m!==d&&(et=!0),c=m;break;case"value":m!==d&&(et=!0),i=m;break;case"defaultValue":m!==d&&(et=!0),s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(Z(137,t));break;default:m!==d&&ft(e,t,f,m,o,d)}}Jb(e,i,s,l,u,c,n,r);return;case"select":m=i=s=f=null;for(n in a)if(l=a[n],a.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":m=l;default:o.hasOwnProperty(n)||ft(e,t,n,null,o,l)}for(r in o)if(n=o[r],l=a[r],o.hasOwnProperty(r)&&(n!=null||l!=null))switch(r){case"value":n!==l&&(et=!0),f=n;break;case"defaultValue":n!==l&&(et=!0),s=n;break;case"multiple":n!==l&&(et=!0),i=n;default:n!==l&&ft(e,t,r,n,o,l)}t=s,a=i,o=m,f!=null?sc(e,!!a,f,!1):!!o!=!!a&&(t!=null?sc(e,!!a,t,!0):sc(e,!!a,a?[]:"",!1));return;case"textarea":m=f=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ft(e,t,s,null,o,r)}for(i in o)if(r=o[i],n=a[i],o.hasOwnProperty(i)&&(r!=null||n!=null))switch(i){case"value":r!==n&&(et=!0),f=r;break;case"defaultValue":r!==n&&(et=!0),m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(Z(91));break;default:r!==n&&ft(e,t,i,r,o,n)}AA(e,f,m);return;case"option":for(var p in a)if(f=a[p],a.hasOwnProperty(p)&&f!=null&&!o.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:ft(e,t,p,null,o,f)}for(l in o)if(f=o[l],m=a[l],o.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(et=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:ft(e,t,l,f,o,m)}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 y in a)f=a[y],a.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&ft(e,t,y,null,o,f);for(u in o)if(f=o[u],m=a[u],o.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(Z(137,t));break;default:ft(e,t,u,f,o,m)}return;default:if(aL(t)){for(var v in a)f=a[v],a.hasOwnProperty(v)&&f!==void 0&&!o.hasOwnProperty(v)&&HC(e,t,v,void 0,o,f);for(c in o)f=o[c],m=a[c],!o.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||HC(e,t,c,f,o,m);return}}for(var g in a)f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g)&&ft(e,t,g,null,o,f);for(d in o)f=o[d],m=a[d],!o.hasOwnProperty(d)||f===m||f==null&&m==null||ft(e,t,d,f,o,m)}function BE(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function J4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],n=r.transferSize,i=r.initiatorType,s=r.duration;if(n&&s&&BE(i)){for(i=0,s=r.responseEnd,o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&BE(d)&&(l=l.responseEnd,i+=c*(l<s?1:(s-u)/(l-u)))}if(--o,t+=8*(n+i)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _C=null,UC=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function FE(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function NM(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function VM(e,t,a,o){return a=Kd(a).createElement(e),a[Ea]=o,a[vo]=t,Da(a,e,t),ya(a),a}function qC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bb=null;function $4(){var e=window.event;return e&&e.type==="popstate"?e===Bb?!1:(Bb=e,!0):(Bb=null,!1)}var UL=typeof setTimeout=="function"?setTimeout:void 0,e5=typeof clearTimeout=="function"?clearTimeout:void 0,zE=typeof Promise=="function"?Promise:void 0,HE=typeof requestAnimationFrame=="function"?requestAnimationFrame:UL,t5=typeof queueMicrotask=="function"?queueMicrotask:typeof zE<"u"?function(e){return zE.resolve(null).then(e).catch(a5)}:UL;function a5(e){setTimeout(function(){throw e})}function Wi(e){return e==="head"}function _E(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Ec(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")zb(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,zb(a);for(var n=a.firstChild;n;){var i=n.nextSibling,s=n.nodeName;n[rm]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=i}}else a==="body"&&zb(e.ownerDocument.body);a=r}while(a);Ec(t)}function UE(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function BM(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var r=o=0;r<t.length;r++){var n=t[r];0<n.width&&0<n.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function FM(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function zM(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function GC(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return zM(t,a,e)}function o5(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return zM(t,a,e)}function r5(e){return e.documentElement.clientHeight}function n5(e){this.addEventListener("load",e),this.addEventListener("error",e)}function i5(e,t,a,o,r,n,i,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;o();var y=[];if(p==="loaded"&&(r5(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),p=y.length,e!==null)for(var v=e.suspenseyImages,g=0,h=0;h<v.length;h++){var x=v[h];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<f.innerHeight&&S.left<f.innerWidth){if(g+=QM(x),g>Kh){y.length=p;break}x=new Promise(n5.bind(x)),y.push(x)}}}if(0<y.length)return f=Promise.race([Promise.all(y),new Promise(function(b){return setTimeout(b,500)})]).then(r,r),(m?Promise.allSettled([m.finished,f]):f).then(n,n);if(r(),m)return m.finished.then(n,n);n()},types:a});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],y=p.effect,v=y.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){d.push(p),p=y.getKeyframes();for(var g=v=void 0,h=!0,x=0;x<p.length;x++){var S=p[x],b=S.width;if(v===void 0)v=b;else if(v!==b){h=!1;break}if(b=S.height,g===void 0)g=b;else if(g!==b){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&v!==void 0&&g!==void 0&&(y.setKeyframes(p),h=getComputedStyle(y.target,y.pseudoElement),h.width!==v||h.height!==g)&&(h=p[0],h.width=v,h.height=g,h=p[p.length-1],h.width=v,h.height=g,y.setKeyframes(p))}}i()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{o(),r(),i()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return o(),r(),i(),null}}function il(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}il.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:St({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};il.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],r=0;r<a.length;r++){var n=a[r].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[r])}return o};il.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function HM(e){return{name:e,group:new il("group",e),imagePair:new il("image-pair",e),old:new il("old",e),new:new il("new",e)}}function Uo(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Uo.prototype.addEventListener=function(e,t,a){var o=null,r=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(_M(n,e,t,a)===-1){var i=this,s=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(s=function(l){i.removeEventListener(e,t,a),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(r=i.removeEventListener.bind(i,e,t,a),o.addEventListener("abort",r,{once:!0}),r=o.removeEventListener.bind(o,"abort",r)),o=Rc(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:s,cleanup:r}),So(this._fragmentFiber.child,!1,s5,e,s,o)}this._eventListeners=n}};function s5(e,t,a,o){return la(e).addEventListener(t,a,o),!1}Uo.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=_M(o,e,t,a),t!==-1)){var r=o[t];a=r.attachedListener;var n=r.cleanup;r=Rc(r.optionsOrUseCapture),So(this._fragmentFiber.child,!1,l5,e,a,r),o.splice(t,1),n!==null&&n()}};function l5(e,t,a,o){return la(e).removeEventListener(t,a,o),!1}function Rc(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qE(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function _M(e,t,a,o){if(e.length===0)return-1;o=qE(o);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===t&&n.listener===a&&qE(n.optionsOrUseCapture)===o)return r}return-1}Uo.prototype.dispatchEvent=function(e){var t=vl(this._fragmentFiber);if(t===null)return!0;t=la(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var n=a[r];o.addEventListener(n.type,n.attachedListener,Rc(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(r=0;r<a.length;r++)n=a[r],o.removeEventListener(n.type,n.attachedListener,Rc(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};Uo.prototype.focus=function(e){So(this._fragmentFiber.child,!0,UM,e,void 0,void 0)};function UM(e,t){return e.tag===6?!1:(e=la(e),v5(e,t))}Uo.prototype.focusLast=function(e){var t=[];So(this._fragmentFiber.child,!0,qL,t,void 0,void 0);for(var a=t.length-1;0<=a&&!UM(t[a],e);a--);};function qL(e,t){return t.push(e),!1}Uo.prototype.blur=function(){var e=vl(this._fragmentFiber);e!==null&&(e=la(e),e=Kd(e).activeElement,e!==null&&So(this._fragmentFiber.child,!1,u5,e,void 0,void 0))};function u5(e,t){return e.tag===6?!1:(e=la(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Uo.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),So(this._fragmentFiber.child,!1,c5,e,void 0,void 0)};function c5(e,t){return e.tag===6||(e=la(e),t.observe(e)),!1}Uo.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),So(this._fragmentFiber.child,!1,f5,e,void 0,void 0);for(var a=t=0;a<Ar.length;a++){var o=Ar[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Ar[t++]=o}Ar.length=t}};function f5(e,t){return e.tag===6||(e=la(e),t.unobserve(e)),!1}var Ar=[],Fb=!1;function d5(e,t,a){Ar.push({fragmentInstance:e,observer:t,instance:a}),Fb||(Fb=!0,b5(function(){Fb=!1;var o=Ar;Ar=[];for(var r=0;r<o.length;r++){var n=o[r];n.observer.unobserve(n.instance)}}))}Uo.prototype.getClientRects=function(){var e=[];return So(this._fragmentFiber.child,!1,m5,e,void 0,void 0),e};function m5(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=la(e),t.push.apply(t,e.getClientRects());return!1}Uo.prototype.getRootNode=function(e){var t=vl(this._fragmentFiber);return t===null?this:la(t).getRootNode(e)};Uo.prototype.compareDocumentPosition=function(e){var t=vl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];So(this._fragmentFiber.child,!1,qL,a,void 0,void 0);var o=la(t);if(a.length===0){if(a=o,Cw(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var r=o=a.compareDocumentPosition(e);return a===e?r=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=cA(t)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=la(a).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=la(a[0]),r=la(a[a.length-1]);var n=Cw(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),s=r.compareDocumentPosition(e),l=i&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=o&&n&&i&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&r===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||p5(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function p5(e,t,a,o,r){var n=nl(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=r.ownerDocument,r===n||r===n.documentElement||r===n.body;e:{for(n=t,t=vl(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=_b(a,n,Lw),t===null?t=!1:(So(t,!0,GU,n,a),n=Wu,Wu=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=_b(o,n,Lw),t===null?t=!1:(So(t,!0,jU,n,o),n=Wu,Hb=Wu=null,t=n!==null)),t):!1}function GE(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Uo.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(Z(566));var t=[];So(this._fragmentFiber.child,!1,qL,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=cA(this._fragmentFiber);if(o=a?o[1]||o[0]||vl(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=la(o),GE(e,a);return}if(o=la(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var r=t[o];r.tag===6?(r=la(r),GE(r,a)):la(r).scrollIntoView(e),o+=a?-1:1}};function h5(e,t){return e=la(e),qM(e,t),!1}function qM(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function GM(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.addEventListener(r.type,r.attachedListener,Rc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var i=0,s=0;s<Ar.length;s++){var l=Ar[s];(l.fragmentInstance!==t||l.observer!==n||l.instance!==e)&&(Ar[i++]=l)}Ar.length=i,n.observe(e)}),qM(e,t))}function g5(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.removeEventListener(r.type,r.attachedListener,Rc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin=="string"?d5(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function jC(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":jC(a),Eg(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function x5(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[rm])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=ir(e.nextSibling),e===null)break}return null}function y5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ir(e.nextSibling),e===null))return null;return e}function jM(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ir(e.nextSibling),e===null))return null;return e}function XC(e){return e.data==="$?"||e.data==="$~"}function GL(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function ir(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var YC=null;function jE(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ir(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function XE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function v5(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function b5(e){HE(function(){HE(function(t){return e(t)})})}function XM(e,t,a){switch(t=Kd(a),e){case"html":if(e=t.documentElement,!e)throw Error(Z(452));return e;case"head":if(e=t.head,!e)throw Error(Z(453));return e;case"body":if(e=t.body,!e)throw Error(Z(454));return e;default:throw Error(Z(451))}}function YM(e,t,a){for(var o in a){var r=a[o];a.hasOwnProperty(o)&&r!=null&&ft(e,t,o,null,Z4,r)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Qr&&(e.onclick=null),Eg(e)}function zb(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eg(e)}var sr=new Map,YE=new Set;function Zd(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var jn=rt.d;rt.d={f:C5,r:L5,D:R5,C:I5,L:T5,m:w5,X:A5,S:E5,M:M5};function C5(){var e=jn.f(),t=Ug();return e||t}function L5(e){var t=Mc(e);t!==null&&t.tag===5&&t.type==="form"?P1(t):jn.r(e)}var kc=typeof document>"u"?null:document;function WM(e,t,a){var o=kc;if(o&&typeof t=="string"&&t){var r=or(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),YE.has(r)||(YE.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Da(t,"link",e),ya(t),o.head.appendChild(t)))}}function R5(e){jn.D(e),WM("dns-prefetch",e,null)}function I5(e,t){jn.C(e,t),WM("preconnect",e,t)}function T5(e,t,a){jn.L(e,t,a);var o=kc;if(o&&e&&t){var r='link[rel="preload"][as="'+or(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+or(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+or(a.imageSizes)+'"]')):r+='[href="'+or(e)+'"]';var n=r;switch(t){case"style":n=Ic(e);break;case"script":n=Nc(e)}if(!(sr.has(n)||(e=St({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),sr.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(cm(n))||t==="script"&&o.querySelector(fm(n))))){var i=o.createElement("link");Da(i,"link",e),t==="style"&&(i[ag]=!0,i.onload=i.onerror=function(){LA(i)}),ya(i),o.head.appendChild(i)}}}function w5(e,t){jn.m(e,t);var a=kc;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+or(o)+'"][href="'+or(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Nc(e)}if(!sr.has(n)&&(e=St({rel:"modulepreload",href:e},t),sr.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(fm(n)))return}o=a.createElement("link"),Da(o,"link",e),ya(o),a.head.appendChild(o)}}}function E5(e,t,a){jn.S(e,t,a);var o=kc;if(o&&e){var r=ic(o).hoistableStyles,n=Ic(e);t=t||"default";var i=r.get(n);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(cm(n)))s.loading=5;else{e=St({rel:"stylesheet",href:e,"data-precedence":t},a),(a=sr.get(n))&&jL(e,a);var l=i=o.createElement("link");ya(l),Da(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Yh(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},r.set(n,i)}}}function A5(e,t){jn.X(e,t);var a=kc;if(a&&e){var o=ic(a).hoistableScripts,r=Nc(e),n=o.get(r);n||(n=a.querySelector(fm(r)),n||(e=St({src:e,async:!0},t),(t=sr.get(r))&&XL(e,t),n=a.createElement("script"),ya(n),Da(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function M5(e,t){jn.M(e,t);var a=kc;if(a&&e){var o=ic(a).hoistableScripts,r=Nc(e),n=o.get(r);n||(n=a.querySelector(fm(r)),n||(e=St({src:e,async:!0,type:"module"},t),(t=sr.get(r))&&XL(e,t),n=a.createElement("script"),ya(n),Da(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function WE(e,t,a,o){var r=(r=Di.current)?Zd(r):null;if(!r)throw Error(Z(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ic(a.href),t=ic(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ic(a.href);var n=ic(r).hoistableStyles,i=n.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,i),(n=r.querySelector(cm(e)))?n._p||(i.instance=n,i.state.loading=5):(n=sr.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},sr.set(e,n)),P5(r,e,n,i.state))),t&&o===null)throw Error(Z(528,""));return i}if(t&&o!==null)throw Error(Z(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Nc(a),t=ic(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(Z(444,e))}}function Ic(e){return'href="'+or(e)+'"'}function cm(e){return'link[rel="stylesheet"]['+e+"]"}function KM(e){return St({},e,{"data-precedence":e.precedence,precedence:null})}function P5(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[ag]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[ag]=!0,t.onload=t.onerror=LA.bind(null,t),Da(t,"link",a),ya(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Nc(e){return'[src="'+or(e)+'"]'}function fm(e){return"script[async]"+e}function KE(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+or(a.href)+'"]');if(o)return t.instance=o,ya(o),o;var r=St({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ya(o),Da(o,"style",r),Yh(o,a.precedence,e),t.instance=o;case"stylesheet":r=Ic(a.href);var n=e.querySelector(cm(r));if(n)return t.state.loading|=4,t.instance=n,ya(n),n;o=KM(a),(r=sr.get(r))&&jL(o,r),n=(e.ownerDocument||e).createElement("link"),ya(n);var i=n;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Da(n,"link",o),t.state.loading|=4,Yh(n,a.precedence,e),t.instance=n;case"script":return n=Nc(a.src),(r=e.querySelector(fm(n)))?(t.instance=r,ya(r),r):(o=a,(r=sr.get(n))&&(o=St({},a),XL(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),ya(r),Da(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(Z(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Yh(o,a.precedence,e));return t.instance}function Yh(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)n=s;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function jL(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function XL(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wh=null;function ZE(e,t,a){if(Wh===null){var o=new Map,r=Wh=new Map;r.set(a,o)}else r=Wh,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var n=a[r];if(!(n[rm]||n[Ea]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(n):o.set(i,[n])}}return o}function WC(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function D5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function QE(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function ZM(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function QM(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function JE(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=QM(t),e.suspenseyImages.push(t)),e=N5.bind(e),t.decode().then(e,e))}function O5(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Ic(o.href),n=t.querySelector(cm(r));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qd.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,ya(n);return}n=t.ownerDocument||t,o=KM(o),(r=sr.get(r))&&jL(o,r),n=n.createElement("link"),ya(n);var i=n;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Da(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Qd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Kh=0;function k5(e,t){return e.stylesheets&&e.count===0&&Zh(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Zh(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&Kh===0&&(Kh=62500*J4());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zh(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>Kh?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function JM(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Zh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Qd(){this.count--,JM(this)}function N5(){this.imgCount--,JM(this)}var Ig=null;function Zh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ig=new Map,t.forEach(V5,e),Ig=null,Qd.call(e))}function V5(e,t){if(!(t.state.loading&4)){var a=Ig.get(e);if(a)var o=a.get(null);else{a=new Map,Ig.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var i=r[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),o=i)}o&&a.set(null,o)}r=t.instance,i=r.getAttribute("data-precedence"),n=a.get(i)||o,n===o&&a.set(null,r),a.set(i,r),this.count++,o=Qd.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Tc={$$typeof:Zr,Provider:null,Consumer:null,_currentValue:sl,_currentValue2:sl,_threadCount:0};function B5(e,t,a,o,r,n,i,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mb(0),this.hiddenUpdates=mb(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function $M(e,t,a,o,r,n,i,s,l,u,c,d){return e=new B5(e,t,a,i,l,u,c,d,s),t=1,n===!0&&(t|=24),n=xo(3,null,null,t),e.current=n,n.stateNode=e,t=dL(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},hL(n),e}function eP(e){return e?(e=ac,e):ac}function tP(e,t,a,o,r,n){r=eP(r),o.context===null?o.context=r:o.pendingContext=r,o=ki(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=Ni(e,o,t),a!==null&&(yo(a,e,t),Ad(a,e,t))}function $E(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function YL(e,t){$E(e,t),(e=e.alternate)&&$E(e,t)}function aP(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&yo(t,e,67108864),YL(e,67108864)}}function eA(e){if(e.tag===13||e.tag===31){var t=Ho();t=eL(t);var a=Ll(e,t);a!==null&&yo(a,e,t),YL(e,t)}}var wc=!0;function F5(e,t,a,o){var r=Me.T;Me.T=null;var n=rt.p;try{rt.p=2,WL(e,t,a,o)}finally{rt.p=n,Me.T=r}}function z5(e,t,a,o){var r=Me.T;Me.T=null;var n=rt.p;try{rt.p=8,WL(e,t,a,o)}finally{rt.p=n,Me.T=r}}function WL(e,t,a,o){if(wc){var r=KC(o);if(r===null)Vb(e,t,o,Tg,a),tA(e,o);else if(_5(r,e,t,a,o))o.stopPropagation();else if(tA(e,o),t&4&&-1<H5.indexOf(e)){for(;r!==null;){var n=Mc(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=al(n.pendingLanes);if(i!==0){var s=n;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-zo(i);s.entanglements[1]|=l,i&=~l}rn(n),(ot&6)===0&&(vg=Bo()+500,um(0,!1))}}break;case 31:case 13:s=Ll(n,2),s!==null&&yo(s,n,2),Ug(),YL(n,2)}if(n=KC(o),n===null&&Vb(e,t,o,Tg,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else Vb(e,t,o,null,a)}}function KC(e){return e=oL(e),KL(e)}var Tg=null;function KL(e){if(Tg=null,e=nl(e),e!==null){var t=em(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=sA(t),e!==null)return e;e=null}else if(a===31){if(e=lA(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tg=e,null}function oP(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(e3()){case pA:return 2;case hA:return 8;case tg:case t3:return 32;case gA:return 268435456;default:return 32}default:return 32}}var ZC=!1,zi=null,Hi=null,_i=null,Jd=new Map,$d=new Map,Ii=[],H5="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 tA(e,t){switch(e){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":Jd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$d.delete(t.pointerId)}}function yd(e,t,a,o,r,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Mc(t),t!==null&&aP(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function _5(e,t,a,o,r){switch(t){case"focusin":return zi=yd(zi,e,t,a,o,r),!0;case"dragenter":return Hi=yd(Hi,e,t,a,o,r),!0;case"mouseover":return _i=yd(_i,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return Jd.set(n,yd(Jd.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,$d.set(n,yd($d.get(n)||null,e,t,a,o,r)),!0}return!1}function rP(e){var t=nl(e.target);if(t!==null){var a=em(t);if(a!==null){if(t=a.tag,t===13){if(t=sA(a),t!==null){e.blockedOn=t,ww(e.priority,function(){eA(a)});return}}else if(t===31){if(t=lA(a),t!==null){e.blockedOn=t,ww(e.priority,function(){eA(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=KC(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);$b=o,a.target.dispatchEvent(o),$b=null}else return t=Mc(a),t!==null&&aP(t),e.blockedOn=a,!1;t.shift()}return!0}function aA(e,t,a){Qh(e)&&a.delete(t)}function U5(){ZC=!1,zi!==null&&Qh(zi)&&(zi=null),Hi!==null&&Qh(Hi)&&(Hi=null),_i!==null&&Qh(_i)&&(_i=null),Jd.forEach(aA),$d.forEach(aA)}function Ph(e,t){e.blockedOn===t&&(e.blockedOn=null,ZC||(ZC=!0,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,U5)))}var Dh=null;function oA(e){Dh!==e&&(Dh=e,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,function(){Dh===e&&(Dh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(KL(o||a)===null)continue;break}var n=Mc(a);n!==null&&(e.splice(t,3),t-=3,hC(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Ec(e){function t(l){return Ph(l,e)}zi!==null&&Ph(zi,e),Hi!==null&&Ph(Hi,e),_i!==null&&Ph(_i,e),Jd.forEach(t),$d.forEach(t);for(var a=0;a<Ii.length;a++){var o=Ii[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ii.length&&(a=Ii[0],a.blockedOn===null);)rP(a),a.blockedOn===null&&Ii.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],i=r[vo]||null;if(typeof n=="function")i||oA(a);else if(i){var s=null;if(n&&n.hasAttribute("formAction")){if(r=n,i=n[vo]||null)s=i.formAction;else if(KL(r)!==null)continue}else s=i.action;typeof s=="function"?a[o+1]=s:(a.splice(o,3),o-=3),oA(a)}}}function nP(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function ZL(e){this._internalRoot=e}jg.prototype.render=ZL.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));var a=t.current,o=Ho();tP(a,o,e,t,null,null)};jg.prototype.unmount=ZL.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tP(e.current,2,null,e,null,null),Ug(),t[Ac]=null}};function jg(e){this._internalRoot=e}jg.prototype.unstable_scheduleHydration=function(e){if(e){var t=CA();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ii.length&&t!==0&&t<Ii[a].priority;a++);Ii.splice(a,0,e),a===0&&rP(e)}};var rA=nA.version;if(rA!=="19.3.0")throw Error(Z(527,rA,"19.3.0"));rt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=qU(t),e=e!==null?uA(e):null,e=e===null?null:e.stateNode,e};var q5={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Me,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Sd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Sd.isDisabled&&Sd.supportsFiber))try{tm=Sd.inject(q5),Fo=Sd}catch{}var Sd;Xg.createRoot=function(e,t){if(!iA(e))throw Error(Z(299));var a=!1,o="",r=z1,n=H1,i=_1;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=$M(e,1,!1,null,null,a,o,null,r,n,i,nP),e[Ac]=t.current,_L(e),new ZL(t)};Xg.hydrateRoot=function(e,t,a){if(!iA(e))throw Error(Z(299));var o=!1,r="",n=z1,i=H1,s=_1,l=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=$M(e,1,!0,t,a??null,o,r,l,n,i,s,nP),t.context=eP(null),a=t.current,o=Ho(),o=eL(o),r=ki(o),r.callback=null,Ni(a,r,o),a=o,t.current.lanes=a,om(t,a),rn(t),e[Ac]=t.current,_L(e),new jg(t)};Xg.version="19.3.0"});var uP=mo((PY,lP)=>{"use strict";function sP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sP)}catch(e){console.error(e)}}sP(),lP.exports=iP()});var kD=mo(tx=>{"use strict";var Zq=Symbol.for("react.transitional.element"),Qq=Symbol.for("react.fragment");function OD(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:Zq,type:e,key:o,ref:t!==void 0?t:null,props:a}}tx.Fragment=Qq;tx.jsx=OD;tx.jsxs=OD});var Q=mo((xZ,ND)=>{"use strict";ND.exports=kD()});var lB=mo(sB=>{"use strict";var wf=k();function a9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var o9=typeof Object.is=="function"?Object.is:a9,r9=wf.useState,n9=wf.useEffect,i9=wf.useLayoutEffect,s9=wf.useDebugValue;function l9(e,t){var a=t(),o=r9({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return i9(function(){r.value=a,r.getSnapshot=t,PI(r)&&n({inst:r})},[e,a,t]),n9(function(){return PI(r)&&n({inst:r}),e(function(){PI(r)&&n({inst:r})})},[e]),s9(a),a}function PI(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!o9(e,a)}catch{return!0}}function u9(e,t){return t()}var c9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u9:l9;sB.useSyncExternalStore=wf.useSyncExternalStore!==void 0?wf.useSyncExternalStore:c9});var qp=mo((Txe,uB)=>{"use strict";uB.exports=lB()});var fB=mo(cB=>{"use strict";var iS=k(),f9=qp();function d9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var m9=typeof Object.is=="function"?Object.is:d9,p9=f9.useSyncExternalStore,h9=iS.useRef,g9=iS.useEffect,x9=iS.useMemo,y9=iS.useDebugValue;cB.useSyncExternalStoreWithSelector=function(e,t,a,o,r){var n=h9(null);if(n.current===null){var i={hasValue:!1,value:null};n.current=i}else i=n.current;n=x9(function(){function l(m){if(!u){if(u=!0,c=m,m=o(m),r!==void 0&&i.hasValue){var p=i.value;if(r(p,m))return d=p}return d=m}if(p=d,m9(c,m))return p;var y=o(m);return r!==void 0&&r(p,y)?(c=m,p):(c=m,d=y)}var u=!1,c,d,f=a===void 0?null:a;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,a,o,r]);var s=p9(e,n[0],n[1]);return g9(function(){i.hasValue=!0,i.value=s},[s]),y9(s),s}});var mB=mo((Exe,dB)=>{"use strict";dB.exports=fB()});var fU=I(k(),1),dU=I(uP(),1);var Yg=I(k(),1);var cP=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function fP(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:cP(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var dP=e=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}t.length===0?t+=o.toLowerCase():t+=a?o.toUpperCase():o,a=!1}return t};var mP=e=>{let t=dP(e);return t.charAt(0).toUpperCase()+t.slice(1)};var mm=I(k(),1);var dm=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Ki={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function QL(e){return e!=null}function pP(e,t={}){let a=t.attributeNames??{},o=f=>a[f]??f,r=e.size??e.width??Ki.width,n=e.size??e.height??Ki.height,i=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...i],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?dm(...l):dm("lucide",...s,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??Ki["stroke-width"])*Number(e.size??e.width??Ki.width)/Number(t.size??t.width??Ki.width):t.strokeWidth??Ki["stroke-width"];return["svg",{...Object.entries(Ki).reduce((f,[m,p])=>(f[o(m)]=p,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&QL(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&QL(t.width)&&{[o("width")]:t.width},..."height"in t&&QL(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...u&&{[o("class")]:u},[o("viewBox")]:`0 0 ${r} ${n}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,y]=f,v=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...p}:p;return y?[m,v,y]:[m,v]})]}function hP(e,t={}){return pP(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var gP=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Vc=I(k(),1);var G5=(0,Vc.createContext)({});var xP=()=>(0,Vc.useContext)(G5);var yP=(0,mm.forwardRef)(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:i,className:s="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:y=!1,nonScalingStroke:v=!1,color:g="currentColor",className:h=""}=xP()??{},x=!!l||gP(d),[S,b,R=[]]=hP(c,{color:e??g,width:a??t??m,height:o??t??m,strokeWidth:r??p,absoluteStrokeWidth:n??y,nonScalingStroke:i??v,className:dm(h,s),hasA11yProp:x,attributes:d});return(0,mm.createElement)(S,{ref:f,...b},[...R.map(([L,C])=>(0,mm.createElement)(L,C)),...Array.isArray(l)?l:[l]])});function Ce(e,t=[],a=[]){let o=typeof e=="string"?fP(e,t,a):e,r=(0,Yg.forwardRef)(({className:n,...i},s)=>(0,Yg.createElement)(yP,{ref:s,icon:o,className:n,...i}));return o.name&&(r.displayName=mP(o.name)),r}var SP={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};SP.node;var Xn=Ce(SP);var vP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};vP.node;var Zi=Ce(vP);var bP={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};bP.node;var pm=Ce(bP);var CP={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};CP.node;var Qi=Ce(CP);var LP={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};LP.node;var hm=Ce(LP);var RP={name:"circle-x",size:24,node:[["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"}]],aliases:["x-circle"]};RP.node;var Ji=Ce(RP);var IP={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};IP.node;var gm=Ce(IP);var TP={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};TP.node;var xm=Ce(TP);var wP={name:"copy",size:24,node:[["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"}]]};wP.node;var ym=Ce(wP);var EP={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};EP.node;var $i=Ce(EP);var AP={name:"eye",size:24,node:[["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"}]]};AP.node;var Sm=Ce(AP);var MP={name:"file-text",size:24,node:[["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"}]]};MP.node;var vm=Ce(MP);var PP={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};PP.node;var bm=Ce(PP);var DP={name:"globe",size:24,node:[["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"}]]};DP.node;var Cm=Ce(DP);var OP={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};OP.node;var Lm=Ce(OP);var kP={name:"image",size:24,node:[["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"}]]};kP.node;var Rm=Ce(kP);var NP={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};NP.node;var Im=Ce(NP);var VP={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};VP.node;var es=Ce(VP);var BP={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};BP.node;var Il=Ce(BP);var FP={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};FP.node;var Tm=Ce(FP);var zP={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["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"}]]};zP.node;var ts=Ce(zP);var HP={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};HP.node;var Dr=Ce(HP);var _P={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};_P.node;var as=Ce(_P);var UP={name:"square-terminal",size:24,node:[["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"}]],aliases:["terminal-square"]};UP.node;var Or=Ce(UP);var qP={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};qP.node;var wm=Ce(qP);var GP={name:"wrench",size:24,node:[["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"}]]};GP.node;var os=Ce(GP);var jP={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};jP.node;var Em=Ce(jP);var Ir=I(k(),1);async function Wg(e,t={}){let a=new URLSearchParams;for(let[r,n]of Object.entries(t))n!==void 0&&n!==""&&a.set(r,String(n));let o=await fetch(`${e}${a.size?`?${a}`:""}`);if(!o.ok)throw new Error(`${e}: ${o.status}`);return o.json()}var qo={state:(e,t)=>Wg("/api/state",{limit:e,group:t}),run:e=>Wg(`/api/run/${e}`),history:e=>Wg("/api/history",e),stats:e=>Wg("/api/stats",{days:e})};var XS=I(k(),1);function Am(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var JL={};function _a(e,t,a,o,r){if(!a&&!o&&!r&&!e)return Kg(t);let n=Kg(e);return t&&(n=Mm(n,t)),a&&(n=Mm(n,a)),o&&(n=Mm(n,o)),r&&(n=Mm(n,r)),n}function XP(e){if(e.length===0)return JL;if(e.length===1)return Kg(e[0]);let t=Kg(e[0]);for(let a=1;a<e.length;a+=1)t=Mm(t,e[a]);return t}function Kg(e){return $L(e)?{...WP(e,JL)}:j5(e)}function Mm(e,t){return $L(t)?WP(t,e):X5(e,t)}function j5(e){let t={...e};for(let a in t){let o=t[a];YP(a,o)&&(t[a]=KP(o))}return t}function X5(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=Am(e.style,o);break}case"className":{e[a]=e0(e.className,o);break}default:YP(a,o)?e[a]=Y5(e[a],o):e[a]=o}}return e}function YP(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return a===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function $L(e){return typeof e=="function"}function WP(e,t){return $L(e)?e(t):e??JL}function Y5(e,t){return t?e?(...a)=>{let o=a[0];if(ZP(o)){let n=o;Pm(n);let i=t(...a);return n.baseUIHandlerPrevented||e?.(...a),i}let r=t(...a);return e?.(...a),r}:KP(t):e}function KP(e){return e&&((...t)=>{let a=t[0];return ZP(a)&&Pm(a),e(...t)})}function Pm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function e0(e,t){return t?e?t+" "+e:t:e}function ZP(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function W5(e,t){return function(o,...r){let n=new URL(e);return n.searchParams.set("code",o.toString()),r.forEach(i=>n.searchParams.append("args[]",i)),`${t} error #${o}; visit ${n} for the full message.`}}var K5=W5("https://base-ui.com/production-error","Base UI"),Be=K5;var rs=I(k(),1);var JP=I(k(),1),QP={};function tt(e,t){let a=JP.useRef(QP);return a.current===QP&&(a.current=e(t)),a}function lr(e,t,a,o){let r=tt(eD).current;return Z5(r,e,t,a,o)&&tD(r,[e,t,a,o]),r.callback}function $P(e){let t=tt(eD).current;return Q5(t,e)&&tD(t,e),t.callback}function eD(){return{callback:null,cleanup:null,refs:[]}}function Z5(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function Q5(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function tD(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let i=n(a);typeof i=="function"&&(o[r]=i);break}case"object":{n.current=a;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let i=o[r];typeof i=="function"?i():n(null);break}case"object":{n.current=null;break}default:}}}}}}var oD=I(k(),1);var aD=I(k(),1),J5=parseInt(aD.version,10);function Bc(e){return J5>=e}function t0(e){if(!oD.isValidElement(e))return null;let t=e,a=t.props;return(Bc(19)?a?.ref:t.ref)??null}function Oe(){}var bo=Object.freeze([]),We=Object.freeze({});function rD(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let n=t[o](r);n!=null&&Object.assign(a,n);continue}r===!0?a[`data-${o.toLowerCase()}`]="":r&&(a[`data-${o.toLowerCase()}`]=r.toString())}return a}function nD(e,t){return typeof e=="function"?e(t):e}function iD(e,t){return typeof e=="function"?e(t):e}var a0=I(k(),1);function oe(e,t,a={}){let o=t.render;a.enabled!==!1&&(o=aq(o));let r=$5(t,a,o);if(a.enabled===!1)return null;let n=a.state??We;return oq(e,o,r,n)}function $5(e,t,a){let{className:o,style:r}=e,{state:n=We,ref:i,props:s,stateAttributesMapping:l,enabled:u=!0}=t,c=u?nD(o,n):void 0,d=u?iD(r,n):void 0,f=u?rD(n,l):We,m=u&&s?eq(s):void 0,p=u?Am(f,m)??{}:We;return typeof document<"u"&&(u?Array.isArray(i)?p.ref=$P([p.ref,t0(a),...i]):p.ref=lr(p.ref,t0(a),i):lr(null,null)),u?(c!==void 0&&(p.className=e0(p.className,c)),d!==void 0&&(p.style=Am(p.style,d)),p):We}function eq(e){return Array.isArray(e)?XP(e):_a(void 0,e)}var tq=Symbol.for("react.lazy");function aq(e){if(e?.$$typeof!==tq)return e;let t=rs.Children.toArray(e)[0];return rs.isValidElement(t)?t:e}function oq(e,t,a,o){if(t){if(typeof t=="function")return t(a,o);let r=_a(a,t.props);return r.ref=a.ref,rs.cloneElement(t,r)}if(e&&typeof e=="string")return rq(e,a);throw new Error(Be(8))}function rq(e,t){return e==="button"?(0,a0.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,a0.createElement)("img",{alt:"",...t,key:t.key}):rs.createElement(e,t)}function sD(e){return oe(e.defaultTagName??"div",e,e)}function lD(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=lD(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function Zg(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=lD(e))&&(o&&(o+=" "),o+=t);return o}var uD=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cD=Zg,Fc=(e,t)=>a=>{var o;if(t?.variants==null)return cD(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,i=Object.keys(r).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=uD(c)||uD(d);return r[u][f]}),s=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[y,v]=p;return Array.isArray(v)?v.includes({...n,...s}[y]):{...n,...s}[y]===v})?[...u,d,f]:u},[]);return cD(e,i,l,a?.class,a?.className)};var nq=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},iq=(e,t)=>({classGroupId:e,validator:t}),gD=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var fD=[],sq="arbitrary..",lq=e=>{let t=cq(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return uq(i);let s=i.split("-"),l=s[0]===""&&s.length>1?1:0;return xD(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let l=o[i],u=a[i];return l?u?nq(u,l):l:u||fD}return a[i]||fD}}},xD=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=xD(e,t+1,n);if(u)return u}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=i.length;for(let u=0;u<l;u++){let c=i[u];if(c.validator(s))return c.classGroupId}},uq=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?sq+o:void 0})(),cq=e=>{let{theme:t,classGroups:a}=e;return fq(a,t)},fq=(e,t)=>{let a=gD();for(let o in e){let r=e[o];r0(r,a,o,t)}return a},r0=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let i=e[n];dq(i,t,a,o)}},dq=(e,t,a,o)=>{if(typeof e=="string"){mq(e,t,a);return}if(typeof e=="function"){pq(e,t,a,o);return}hq(e,t,a,o)},mq=(e,t,a)=>{let o=e===""?t:yD(t,e);o.classGroupId=a},pq=(e,t,a,o)=>{if(gq(e)){r0(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(iq(a,e))},hq=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let i=0;i<n;i++){let[s,l]=r[i];r0(l,yD(t,s),a,o)}},yD=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let i=o[n],s=a.nextPart.get(i);s||(s=gD(),a.nextPart.set(i,s)),a=s}return a},gq=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,i)=>{a[n]=i,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let i=a[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return r(n,i),i},set(n,i){n in a?a[n]=i:r(n,i)}}};var yq=[],dD=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),Sq=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],i=0,s=0,l=0,u,c=r.length;for(let y=0;y<c;y++){let v=r[y];if(i===0&&s===0){if(v===":"){n.push(r.slice(l,y)),l=y+1;continue}if(v==="/"){u=y;continue}}v==="["?i++:v==="]"?i--:v==="("?s++:v===")"&&s--}let d=n.length===0?r:r.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return dD(n,m,f,p)};if(t){let r=t+":",n=o;o=i=>i.startsWith(r)?n(i.slice(r.length)):dD(yq,!1,i,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},vq=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n<a.length;n++){let i=a[n],s=i[0]==="[",l=t.has(i);s||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},bq=e=>({cache:xq(e.cacheSize),parseClassName:Sq(e),sortModifiers:vq(e),postfixLookupClassGroupIds:Cq(e),...lq(e)}),Cq=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},Lq=/\s+/,Rq=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(Lq),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:v}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let g=!!v,h;if(g){let L=y.substring(0,v);h=o(L);let C=h&&i[h]?o(y):void 0;C&&C!==h&&(h=C,g=!1)}else h=o(y);if(!h){if(!g){u=d+(u.length>0?" "+u:u);continue}if(h=o(y),!h){u=d+(u.length>0?" "+u:u);continue}g=!1}let x=m.length===0?"":m.length===1?m[0]:n(m).join(":"),S=p?x+"!":x,b=S+h;if(s.indexOf(b)>-1)continue;s.push(b);let R=r(h,g);for(let L=0;L<R.length;++L){let C=R[L];s.push(S+C)}u=d+(u.length>0?" "+u:u)}return u},Iq=(...e)=>{let t=0,a,o,r="";for(;t<e.length;)(a=e[t++])&&(o=SD(a))&&(r&&(r+=" "),r+=o);return r},SD=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=SD(e[o]))&&(a&&(a+=" "),a+=t);return a},Tq=(e,...t)=>{let a,o,r,n,i=l=>{let u=t.reduce((c,d)=>d(c),e());return a=bq(u),o=a.cache.get,r=a.cache.set,n=s,s(l)},s=l=>{let u=o(l);if(u)return u;let c=Rq(l,a);return r(l,c),c};return n=i,(...l)=>n(Iq(...l))},wq=[],ca=e=>{let t=a=>a[e]||wq;return t.isThemeGetter=!0,t.themeKey=e,t},vD=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bD=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Eq=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Aq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Dq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ns=e=>Eq.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),nn=e=>!!e&&Number.isInteger(Number(e)),o0=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Yn=e=>Aq.test(e),CD=()=>!0,kq=e=>Mq.test(e)&&!Pq.test(e),n0=()=>!1,Nq=e=>Dq.test(e),Vq=e=>Oq.test(e),Bq=e=>!ge(e)&&!xe(e),Fq=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),zq=e=>is(e,ID,n0),ge=e=>vD.test(e),Tl=e=>is(e,TD,kq),mD=e=>is(e,Yq,Ge),Hq=e=>is(e,ED,CD),_q=e=>is(e,wD,n0),pD=e=>is(e,LD,n0),Uq=e=>is(e,RD,Vq),Qg=e=>is(e,AD,Nq),xe=e=>bD.test(e),Dm=e=>wl(e,TD),qq=e=>wl(e,wD),hD=e=>wl(e,LD),Gq=e=>wl(e,ID),jq=e=>wl(e,RD),Jg=e=>wl(e,AD,!0),Xq=e=>wl(e,ED,!0),is=(e,t,a)=>{let o=vD.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},wl=(e,t,a=!1)=>{let o=bD.exec(e);return o?o[1]?t(o[1]):a:!1},LD=e=>e==="position"||e==="percentage",RD=e=>e==="image"||e==="url",ID=e=>e==="length"||e==="size"||e==="bg-size",TD=e=>e==="length",Yq=e=>e==="number",wD=e=>e==="family-name",ED=e=>e==="number"||e==="weight",AD=e=>e==="shadow";var Wq=()=>{let e=ca("color"),t=ca("font"),a=ca("text"),o=ca("font-weight"),r=ca("tracking"),n=ca("leading"),i=ca("breakpoint"),s=ca("container"),l=ca("spacing"),u=ca("radius"),c=ca("shadow"),d=ca("inset-shadow"),f=ca("text-shadow"),m=ca("drop-shadow"),p=ca("blur"),y=ca("perspective"),v=ca("aspect"),g=ca("ease"),h=ca("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...S(),xe,ge],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],C=()=>[xe,ge,l],E=()=>[ns,"full","auto",...C()],T=()=>[nn,"none","subgrid",xe,ge],A=()=>["auto",{span:["full",nn,xe,ge]},nn,xe,ge],V=()=>[nn,"auto",xe,ge],M=()=>["auto","min","max","fr",xe,ge],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...C()],q=()=>[ns,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],D=()=>[s,ns,"screen","full","dvw","lvw","svw","min","max","fit",...C()],N=()=>[ns,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],w=()=>[e,xe,ge],z=()=>[...S(),hD,pD,{position:[xe,ge]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Gq,zq,{size:[xe,ge]}],P=()=>[o0,Dm,Tl],_=()=>["","none","full",u,xe,ge],B=()=>["",Ge,Dm,Tl],J=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Ge,o0,hD,pD],se=()=>["","none",p,xe,ge],ue=()=>["none",Ge,xe,ge],$=()=>["none",Ge,xe,ge],te=()=>[Ge,xe,ge],me=()=>[ns,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yn],breakpoint:[Yn],color:[CD],container:[Yn],"drop-shadow":[Yn],ease:["in","out","in-out"],font:[Bq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yn],shadow:[Yn],spacing:["px",Ge],text:[Yn],"text-shadow":[Yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ns,ge,xe,v]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ge]}],"container-named":[Fq],columns:[{columns:[Ge,"auto",ge,xe,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[nn,"auto",xe,ge]}],basis:[{basis:[ns,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,ns,"auto","initial","none",ge]}],grow:[{grow:["",Ge,xe,ge]}],shrink:[{shrink:["",Ge,xe,ge]}],order:[{order:[nn,"first","last","none",xe,ge]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[s,"screen",...q()]}],"min-w":[{"min-w":[s,"screen","none",...q()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh","none",...q()]}],"font-size":[{text:["base",a,Dm,Tl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Xq,Hq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o0,ge]}],"font-family":[{font:[qq,_q,t]}],"font-features":[{"font-features":[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,xe,ge]}],"line-clamp":[{"line-clamp":[Ge,"none",xe,mD]}],leading:[{leading:["none",n,...C()]}],"list-image":[{"list-image":["none",xe,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",xe,Tl]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Ge,"auto",xe,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[nn,xe,ge]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nn,xe,ge],radial:["",xe,ge],conic:["",nn,xe,ge]},jq,Uq]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,xe,ge]}],"outline-w":[{outline:["",Ge,Dm,Tl]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","inner","none",c,Jg,Qg]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,Jg,Qg]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Ge,Tl]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",f,Jg,Qg]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Ge,xe,ge]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[xe,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ge]}],filter:[{filter:["","none",xe,ge]}],blur:[{blur:se()}],brightness:[{brightness:[Ge,xe,ge]}],contrast:[{contrast:[Ge,xe,ge]}],"drop-shadow":[{"drop-shadow":["","none",m,Jg,Qg]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Ge,xe,ge]}],"hue-rotate":[{"hue-rotate":[Ge,xe,ge]}],invert:[{invert:["",Ge,xe,ge]}],saturate:[{saturate:[Ge,xe,ge]}],sepia:[{sepia:["",Ge,xe,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ge]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,xe,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,xe,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,xe,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,xe,ge]}],"backdrop-invert":[{"backdrop-invert":["",Ge,xe,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,xe,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,xe,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,xe,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",xe,ge]}],ease:[{ease:["linear","initial",g,xe,ge]}],delay:[{delay:[Ge,xe,ge]}],animate:[{animate:["none",h,xe,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,xe,ge]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[xe,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],zoom:[{zoom:[nn,xe,ge]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,ge]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Ge,Dm,Tl,mD]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var MD=Tq(Wq);function re(...e){return MD(Zg(e))}var Kq=Fc("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function $g({className:e,variant:t="default",render:a,...o}){return sD({defaultTagName:"span",props:_a({className:re(Kq({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}var Wn=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),El=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),sn=e=>`$${e.toFixed(2)}`;function PD(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function ex(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var DD={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)"};var Al=I(Q(),1);function ax({worker:e,backend:t,model:a}){let o=e?ex(e):{backend:t??"",model:a};return(0,Al.jsxs)($g,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,Al.jsx)("span",{className:"size-1.5 rounded-full",style:{background:DD[o.backend]??"var(--muted-foreground)"}}),o.backend,o.model&&(0,Al.jsx)("span",{className:"font-normal text-muted-foreground",children:o.model.split("/").pop()})]})}function VD({verdict:e}){let t=/PASS/.test(e)&&/APPROVED/.test(e),a=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,Al.jsx)($g,{className:re("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:a})}function ox({children:e,tone:t}){return(0,Al.jsx)($g,{variant:"secondary",className:re(t==="good"&&"bg-success/10 text-success"),children:e})}var vt=I(k(),1),hV=I(Gr(),1);var gp=I(Q(),1),gn=I(k(),1);var BD=I(k(),1),zc=(0,BD.createContext)({});var FD=I(k(),1);function ss(e){let t=(0,FD.useRef)(null);return t.current===null&&(t.current=e()),t.current}var rx=I(k(),1);var zD=typeof window<"u";var ls=zD?rx.useLayoutEffect:rx.useEffect;var xR=I(Q(),1),nN=I(k(),1),vs=I(k(),1);var HD=I(k(),1),us=(0,HD.createContext)(null);var oN=I(Q(),1);function Ml(e,t){e.indexOf(t)===-1&&e.push(t)}function cs(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var fa=(e,t,a)=>a>t?t:a<e?e:a;var Kn=()=>{},Co=()=>{};var ka={};var Pl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Om=e=>typeof e=="object"&&e!==null;var Dl=e=>/^0[^.\s]+$/u.test(e);function km(e){let t;return()=>(t===void 0&&(t=e()),t)}var jt=e=>e;var kr=(...e)=>e.reduce((t,a)=>o=>a(t(o)));var ln=(e,t,a)=>{let o=t-e;return o?(a-e)/o:1};var un=class{constructor(){this.subscriptions=[]}add(t){return Ml(this.subscriptions,t),()=>this.remove(t)}remove(t){cs(this.subscriptions,t)}notify(t,a,o){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,o);else for(let n=0;n<r;n++){let i=this.subscriptions[n];i&&i(t,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var aa=e=>e*1e3,va=e=>e/1e3;var Nm=(e,t)=>t?e*(1e3/t):0;var _D=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,Jq=1e-7,$q=12;function eG(e,t,a,o,r){let n,i,s=0;do i=t+(a-t)/2,n=_D(i,o,r)-e,n>0?a=i:t=i;while(Math.abs(n)>Jq&&++s<$q);return i}function fs(e,t,a,o){if(e===t&&a===o)return jt;let r=n=>eG(n,0,1,e,a);return n=>n===0||n===1?n:_D(r(n),t,o)}var nx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var ix=e=>t=>1-e(1-t);var sx=fs(.33,1.53,.69,.99),Hc=ix(sx),Vm=nx(Hc);var Bm=e=>e>=1?1:(e*=2)<1?.5*Hc(e):.5*(2-Math.pow(2,-10*(e-1)));var Fm=e=>1-Math.sin(Math.acos(e)),zm=ix(Fm),Hm=nx(Fm);var i0=fs(.42,0,1,1),s0=fs(0,0,.58,1),_c=fs(.42,0,.58,1);var l0=e=>Array.isArray(e)&&typeof e[0]!="number";var _m=e=>Array.isArray(e)&&typeof e[0]=="number";var UD={linear:jt,easeIn:i0,easeInOut:_c,easeOut:s0,circIn:Fm,circInOut:Hm,circOut:zm,backIn:Hc,backInOut:Vm,backOut:sx,anticipate:Bm},tG=e=>typeof e=="string",lx=e=>{if(_m(e)){Co(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,a,o,r]=e;return fs(t,a,o,r)}else if(tG(e))return Co(UD[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),UD[e];return e};var Tt={delta:0,timestamp:0,isProcessing:!1};var ux;function aG(){ux=void 0}var gt={now:()=>(ux===void 0&&gt.set(Tt.isProcessing||ka.useManualTiming?Tt.timestamp:performance.now()),ux),set:e=>{ux=e,queueMicrotask(aG)}};var cn=e=>Math.round(e*1e5)/1e5;var qD=e=>t=>typeof t=="string"&&t.startsWith(e),cx=qD("--"),oG=qD("var(--"),Uc=e=>oG(e)?rG.test(e.split("/*")[0].trim()):!1,rG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function u0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var fn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zn={...fn,transform:e=>fa(0,1,e)},Um={...fn,default:1};var qc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GD(e){return e==null}var jD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Gc=(e,t)=>a=>!!(typeof a=="string"&&jD.test(a)&&a.startsWith(e)||t&&!GD(a)&&Object.prototype.hasOwnProperty.call(a,t)),fx=(e,t,a)=>o=>{if(typeof o!="string")return o;let[r,n,i,s]=o.match(qc);return{[e]:parseFloat(r),[t]:parseFloat(n),[a]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var nG=e=>fa(0,255,e),c0={...fn,transform:e=>Math.round(nG(e))},dn={test:Gc("rgb","red"),parse:fx("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:o=1})=>"rgba("+c0.transform(e)+", "+c0.transform(t)+", "+c0.transform(a)+", "+cn(Zn.transform(o))+")"};function iG(e){let t="",a="",o="",r="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,a+=a,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}var qm={test:Gc("#"),parse:iG,transform:dn.transform};var Gm=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ur=Gm("deg"),Ua=Gm("%"),de=Gm("px"),f0=Gm("vh"),d0=Gm("vw"),dx={...Ua,parse:e=>Ua.parse(e)/100,transform:e=>Ua.transform(e*100)};var ds={test:Gc("hsl","hue"),parse:fx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ua.transform(cn(t))+", "+Ua.transform(cn(a))+", "+cn(Zn.transform(o))+")"};var qt={test:e=>dn.test(e)||qm.test(e)||ds.test(e),parse:e=>dn.test(e)?dn.parse(e):ds.test(e)?ds.parse(e):qm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dn.transform(e):ds.transform(e),getAnimatableNone:e=>{let t=qt.parse(e);return t.alpha=0,qt.transform(t)}};var XD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var WD=new RegExp(qc.source),KD=new RegExp(XD.source,"i");function sG(e){return isNaN(e)&&typeof e=="string"&&(WD.test(e)||KD.test(e))}var ZD="number",QD="color",lG="var",uG="var(",YD="${}",cG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function JD(e){let t=e.toString();return WD.test(t)||KD.test(t)}function jc(e){let t=e.toString(),a=[],o={color:[],number:[],var:[]},r=[],n=0,s=t.replace(cG,l=>(qt.test(l)?(o.color.push(n),r.push(QD),a.push(qt.parse(l))):l.startsWith(uG)?(o.var.push(n),r.push(lG),a.push(l)):(o.number.push(n),r.push(ZD),a.push(parseFloat(l))),++n,YD)).split(YD);return{values:a,split:s,indexes:o,types:r}}function fG(e){return jc(e).values}function $D({split:e,types:t}){let a=e.length;return o=>{let r="";for(let n=0;n<a;n++)if(r+=e[n],o[n]!==void 0){let i=t[n];i===ZD?r+=cn(o[n]):i===QD?r+=qt.transform(o[n]):r+=o[n]}return r}}function dG(e){return $D(jc(e))}var mG=e=>typeof e=="number"?0:qt.test(e)?qt.getAnimatableNone(e):e,pG=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:mG(e);function hG(e){let t=jc(e);return $D(t)(t.values.map((o,r)=>pG(o,t.split[r])))}var Xt={test:sG,parse:fG,createTransformer:dG,getAnimatableNone:hG};function m0(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function eO({hue:e,saturation:t,lightness:a,alpha:o}){e/=360,t/=100,a/=100;let r=0,n=0,i=0;if(!t)r=n=i=a;else{let s=a<.5?a*(1+t):a+t-a*t,l=2*a-s;r=m0(l,s,e+1/3),n=m0(l,s,e),i=m0(l,s,e-1/3)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(i*255),alpha:o}}function Xc(e,t){return a=>a>0?t:e}var _e=(e,t,a)=>e+(t-e)*a;var p0=(e,t,a)=>{let o=e*e,r=a*(t*t-o)+o;return r<0?0:Math.sqrt(r)},gG=[qm,dn,ds],xG=e=>gG.find(t=>t.test(e));function tO(e){let t=xG(e);if(!t)return Kn(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let a=t.parse(e);return t===ds&&(a=eO(a)),a}var h0=(e,t)=>{let a=tO(e),o=tO(t);if(!a||!o)return Xc(e,t);let r={...a};return n=>(r.red=p0(a.red,o.red,n),r.green=p0(a.green,o.green,n),r.blue=p0(a.blue,o.blue,n),r.alpha=_e(a.alpha,o.alpha,n),dn.transform(r))};var mx=new Set(["none","hidden"]);function aO(e,t){return mx.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function yG(e,t){return a=>_e(e,t,a)}function px(e){return typeof e=="number"?yG:typeof e=="string"?Uc(e)?Xc:qt.test(e)?h0:bG:Array.isArray(e)?oO:typeof e=="object"?qt.test(e)?h0:SG:Xc}function oO(e,t){let a=[...e],o=a.length,r=e.map((n,i)=>px(n)(n,t[i]));return n=>{for(let i=0;i<o;i++)a[i]=r[i](n);return a}}function SG(e,t){let a={...e,...t},o={};for(let r in a)e[r]!==void 0&&t[r]!==void 0&&(o[r]=px(e[r])(e[r],t[r]));return r=>{for(let n in o)a[n]=o[n](r);return a}}function vG(e,t){let a=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let n=t.types[r],i=e.indexes[n][o[n]],s=e.values[i]??0;a[r]=s,o[n]++}return a}var bG=(e,t)=>{let a=Xt.createTransformer(t),o=jc(e),r=jc(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?mx.has(e)&&!r.values.length||mx.has(t)&&!o.values.length?aO(e,t):kr(oO(vG(o,r),r.values),a):(Kn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Xc(e,t))};var rO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function CG(e,t){let a=rO.exec(e);if(!a)return;let o=rO.exec(t);if(!o||a[2]!==o[2])return;let r=a[2],n=parseFloat(a[1]),i=parseFloat(o[1]);return s=>cn(_e(n,i,s))+r}function Yc(e,t,a){if(typeof e=="number"&&typeof t=="number"&&typeof a=="number")return _e(e,t,a);if(typeof e=="string"&&typeof t=="string"){let r=CG(e,t);if(r)return r}return px(e)(e,t)}var jm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nO(e){let t=new Set,a=new Set,o=!1,r=!1,n=new Set,i={delta:0,timestamp:0,isProcessing:!1};function s(u){n.has(u)&&(a.add(u),e()),u(i)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&o?t:a;return c&&n.add(u),m.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(i=u,o){r=!0;return}o=!0;let c=t;t=a,a=c,t.forEach(s),t.clear(),o=!1,r&&(r=!1,l.process(u))}};return l}var LG=40;function hx(e,t,a={delta:0,timestamp:0,isProcessing:!1}){let o=!1,r=!0,n=()=>o=!0,i=jm.reduce((x,S)=>(x[S]=nO(n),x),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=i,y=()=>{let x=ka.useManualTiming,S=x?a.timestamp:performance.now();o=!1,x||(a.delta=r?1e3/60:Math.max(Math.min(S-a.timestamp,LG),1)),a.timestamp=S,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),p.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(y))},v=()=>{o=!0,r=!0,a.isProcessing||e(y)};return{schedule:jm.reduce((x,S)=>{let b=i[S];return x[S]=(R,L=!1,C=!1)=>(o||v(),b.schedule(R,L,C)),x},{}),cancel:x=>{for(let S=0;S<jm.length;S++)i[jm[S]].cancel(x)},state:a,steps:i}}var{schedule:Fe,cancel:Lo,steps:Xm}=hx(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0,Tt);var iO=e=>{let t=({timestamp:a})=>e(a);return{start:(a=!0)=>Fe.update(t,a),stop:()=>Lo(t),now:()=>Tt.isProcessing?Tt.timestamp:gt.now()}};var gx=(e,t,a=10)=>{let o="",r=Math.max(Math.round(t/a),2);for(let n=0;n<r;n++)o+=Math.round(e(n/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function Wc(e,t=50,a=2e4,o){let r=0,n=e.next(r);for(o?.push(n.value);!n.done&&r<a;)r+=t,n=e.next(r),o?.push(n.value);return r>=a?1/0:r}function sO(e,t=100,a){let o=a({...e,keyframes:[0,t]}),r=Math.min(Wc(o),2e4);return{type:"keyframes",ease:n=>o.next(r*n).value/t,duration:va(r)}}var ba={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},lO=e=>e<0?1/Math.max(1+e,ba.minDamping):Math.max(1-e,ba.minDamping);function uO(e,t){if(!(e>1))return 1;let a=Math.sqrt(e*e-1),o=e-a,r=e+a,n=2*a*Math.exp(-t)*(1+t);return cO(i=>r*Math.exp(-o*i)-o*Math.exp(-r*i)-n,i=>Math.exp(-r*i)-Math.exp(-o*i),t)/t}function S0(e,t){return e*Math.sqrt(1-t*t)}var RG=12;function cO(e,t,a){let o=a;for(let r=1;r<RG;r++)o=o-e(o)/t(o);return o}var x0=.001;function IG({duration:e=ba.duration,bounce:t=ba.bounce}){let a,o;Kn(e<=aa(ba.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=lO(t);e=fa(ba.minDuration,ba.maxDuration,va(e)),r<1?(a=u=>{let c=u*r,d=c*e,f=S0(u,r),m=Math.exp(-d);return x0-c/f*m},o=u=>{let d=u*r*e,f=r*r*u*u*e,m=Math.exp(-d),p=S0(u*u,r);return(-a(u)+x0>0?-1:1)*-f*m/p}):(a=u=>{let c=Math.exp(-u*e),d=u*e+1;return-x0+c*d},o=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let n=5/e,i=cO(a,o,n),s=i*uO(r,i*e),l=s*s;return{stiffness:l,damping:r*2*Math.sqrt(l),duration:aa(e)}}var v0=(e,t)=>(t?e>=0:e>0)&&e<1/0;function y0(e,t){if(v0(e,t))return e}function TG(e){let t=y0(e.stiffness),a=y0(e.damping,!0),o=y0(e.mass),r={...e,stiffness:t??ba.stiffness,damping:a??ba.damping,mass:o??ba.mass,isResolvedFromDuration:!1,isTimeDefined:(t??a??o)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(r.isTimeDefined){if(e.visualDuration){let n=lO(e.bounce||0),i=2*Math.PI/(e.visualDuration*1.2)*uO(n,2*Math.PI/1.2);r.stiffness=i*i,r.damping=2*n*Math.sqrt(r.stiffness)}else Object.assign(r,IG(r)),r.isResolvedFromDuration=!0;(!v0(r.stiffness)||!v0(r.damping,!0))&&(r.stiffness=ba.stiffness,r.damping=ba.damping)}return r}function Kc(e=ba.visualDuration,t=ba.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,o=a.keyframes[0],r=a.keyframes[a.keyframes.length-1],n={done:!1,value:o},{stiffness:i,damping:s,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=TG({...a}),f=L=>d?0:-va(L),m=s/(2*Math.sqrt(i*l)),p=va(Math.sqrt(i/l)),y=m*p,v={target:r,delta:r-o,velocity:f(a.velocity||0)||0,restSpeed:0,restDelta:0},g=()=>{let L=Math.abs(v.delta)<5;v.restSpeed=a.restSpeed||(L?ba.restSpeed.granular:ba.restSpeed.default),v.restDelta=a.restDelta||(L?ba.restDelta.granular:ba.restDelta.default)};g();let h,x,S;if(m<1){let L=S0(p,m),C={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{C.A=(v.velocity+y*v.delta)/L,C.sinC=y*C.A+v.delta*L,C.cosC=y*v.delta-C.A*L};let E=T=>{T!==C.t&&(C.t=T,C.env=Math.exp(-y*T),C.sin=Math.sin(L*T),C.cos=Math.cos(L*T))};h=T=>(E(T),v.target-C.env*(C.A*C.sin+v.delta*C.cos)),x=T=>(E(T),C.env*(C.sinC*C.sin+C.cosC*C.cos))}else if(m===1){h=C=>v.target-Math.exp(-p*C)*(v.delta+(v.velocity+p*v.delta)*C);let L={C:0};S=()=>{L.C=v.velocity+p*v.delta},x=C=>Math.exp(-p*C)*(p*L.C*C-v.velocity)}else{let L=p*Math.sqrt(m*m-1),C=y-L,E=y+L,T=d?1/0:300/L,A=(M,F)=>Math.exp(F>T?-M*T-y*(F-T):-M*F),V={S:0,F:0};S=()=>{let M=(v.velocity+y*v.delta)/L;V.S=(v.delta+M)/2,V.F=(v.delta-M)/2},h=M=>v.target-V.S*A(C,M)-V.F*A(E,M),x=M=>C*V.S*A(C,M)+E*V.F*A(E,M)}S();let b=c&&u||null,R={calculatedDuration:b,retarget:(L,C)=>{v.target=L[L.length-1],v.delta=v.target-L[0],v.velocity=f(C),a.restSpeed&&a.restDelta||g(),R.calculatedDuration=b,n.done=!1,S()},velocity:L=>aa(x(L)),next:L=>{let C=h(L);if(c)n.done=L>=u;else{let E=aa(x(L));n.done=Math.abs(E)<=v.restSpeed&&Math.abs(v.target-C)<=v.restDelta}return n.value=n.done?v.target:C,n},toString:()=>{let L=Math.min(Wc(R),2e4),C=gx(E=>R.next(L*E).value,L,30);return L+"ms "+C},toTransition:()=>{}};return R}Kc.applyToOptions=e=>{let t=sO(e,100,Kc);return e.ease=t.ease,e.duration=aa(t.duration),e.type="keyframes",e};function Ym({keyframes:e,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=L=>L<s||L>l,p=L=>s===void 0?l:l===void 0||Math.abs(s-L)<Math.abs(l-L)?s:l,y=a*t,v=d+y,g=i===void 0?v:i(v);g!==v&&(y=g-d);let h=L=>-y*Math.exp(-L/o),x=L=>{let C=h(L);f.done=Math.abs(C)<=u,f.value=f.done?g:g+C},S,b,R=L=>{m(f.value)&&(S=L,b=Kc({keyframes:[f.value,p(f.value)],velocity:-h(L)/o*1e3,damping:r,stiffness:n,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:L=>{let C=!1;return!b&&S===void 0&&(C=!0,x(L),R(L)),S!==void 0&&L>=S?b.next(L-S):(!C&&x(L),f)}}}function wG(e,t,a){let o=[],r=a||ka.mix||Yc,n=e.length-1;for(let i=0;i<n;i++){let s=r(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||jt:t;s=kr(l,s)}o.push(s)}return o}function fO(e,t,{clamp:a=!0,ease:o,mixer:r}={}){let n=e.length;if(Co(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=wG(t,o,r),l=s.length,u=c=>{if(i&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=ln(e[d],e[d+1],c);return s[d](f)};return a?c=>u(fa(e[0],e[n-1],c)):u}function dO(e,t){let a=e[e.length-1];for(let o=1;o<=t;o++){let r=ln(0,t,o);e.push(_e(a,1,r))}}function mO(e){let t=[0];return dO(t,e.length-1),t}function pO(e,t){return e.map(a=>a*t)}function EG(e,t){return e.map(()=>t||_c).splice(0,e.length-1)}function Ol({duration:e=300,keyframes:t,times:a,ease:o="easeInOut"}){let r=l0(o)?o.map(lx):lx(o)||_c,n={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(r)&&(!a||a.length!==2||a[0]===0&&a[1]===1)){let[l,u]=t,c=l===u?void 0:(ka.mix||Yc)(l,u);return{calculatedDuration:e,next:d=>(n.value=c?c(r(e>0?fa(0,1,d/e):1)):u,n.done=d>=e,n)}}let i=pO(a&&a.length===t.length?a:mO(t),e),s=fO(i,t,{ease:Array.isArray(r)?r:EG(t,r)});return{calculatedDuration:e,next:l=>(n.value=s(l),n.done=l>=e,n)}}var AG=5;function MG(e,t,a){let o=Math.max(t-AG,0);return Nm(a-e(o),t-o)}function hO(e,t,a=0){return t<=0?a:e.velocity?e.velocity(t):MG(o=>e.next(o).value,t,e.next(t).value)}var PG=e=>e!==null;function ms(e,{repeat:t,repeatType:a="loop"},o,r=1){let n=e.filter(PG),s=r<0||t&&a!=="loop"&&t%2===1?0:n.length-1;return!s||o===void 0?n[s]:o}var DG={decay:Ym,inertia:Ym,tween:Ol,keyframes:Ol,spring:Kc};function xx(e){typeof e.type=="string"&&(e.type=DG[e.type])}function gO(e,t){return{kind:e,animation:t,timestamp:gt.now(),frameTimestamp:Tt.timestamp,frameIsProcessing:Tt.isProcessing}}function yx(e,t,a){let o=globalThis.__MOTION_INSPECT__;if(o)try{o({...gO("animation-start",e),options:a?{...t,...a}:t})}catch{}}function xO(e,t){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...gO("layout-animation-start",e),node:t})}catch{}}var ps=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,a){return this.finished.then(t,a)}};var OG=e=>e/100,Qn=class extends ps{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==gt.now()&&this.tick(gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),yx(this,this.options)}initAnimation(){let{options:t}=this;xx(t);let{type:a=Ol,repeat:o=0,repeatDelay:r=0,repeatType:n,velocity:i=0}=t,{keyframes:s}=t,l=a||Ol;l!==Ol&&typeof s[0]!="number"&&(this.mixKeyframes=kr(OG,Yc(s[0],s[1])),s=[0,100]);let u=l(s===t.keyframes?t:{...t,keyframes:s});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Wc(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){let a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){let{generator:o,totalDuration:r,mixKeyframes:n,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(d){let C=Math.min(this.currentTime,r)/s,E=Math.floor(C),T=C%1;!T&&C>=1&&(T=1),T===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(f==="reverse"?(T=1-T,m&&(T-=m/s)):f==="mirror"&&(S=i)),x=fa(0,1,T)*s}let b;h?(this.delayState.value=c[0],b=this.delayState):b=S.next(x),n&&!h&&(b.value=n(b.value));let{done:R}=b;!h&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return L&&p!==Ym&&(b.value=ms(c,this.options,v,this.speed)),y&&y(b.value),L&&this.finish(),b}then(t,a){return this.finished.then(t,a)}get duration(){return va(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+va(t)}get time(){return va(this.currentTime)}set time(t){t=aa(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return hO(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(gt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=va(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=iO,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=a??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var kG=new Set(["brightness","contrast","saturate","opacity"]);function NG(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=a.match(qc)||[];if(!o)return e;let r=a.replace(o,""),n=kG.has(t)?1:0;return o!==a&&(n*=100),t+"("+n+r+")"}var VG=/\b([a-z-]*)\(.*?\)/gu,Wm={...Xt,getAnimatableNone:e=>{let t=e.match(VG);return t?t.map(NG).join(" "):e}};var Km={...Xt,getAnimatableNone:e=>{let t=Xt.parse(e);return Xt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var b0={...fn,transform:Math.round};var yO={rotate:ur,pathRotation:ur,rotateX:ur,rotateY:ur,rotateZ:ur,scale:Um,scaleX:Um,scaleY:Um,scaleZ:Um,skew:ur,skewX:ur,skewY:ur,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:Zn,originX:dx,originY:dx,originZ:de};var kl={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...yO,zIndex:b0,fillOpacity:Zn,strokeOpacity:Zn,numOctaves:b0};var BG={...kl,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Wm,WebkitFilter:Wm,mask:Km,WebkitMask:Km},Sx=e=>BG[e];var FG=new Set([Wm,Km]);function Zc(e,t){let a=Sx(e);return FG.has(a)||(a=Xt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}function SO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Nl=e=>e*180/Math.PI,C0=e=>{let t=Nl(Math.atan2(e[1],e[0]));return L0(t)},zG={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:C0,rotateZ:C0,skewX:e=>Nl(Math.atan(e[1])),skewY:e=>Nl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},L0=e=>(e=e%360,e<0&&(e+=360),e),vO=C0,bO=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),CO=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),HG={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bO,scaleY:CO,scale:e=>(bO(e)+CO(e))/2,rotateX:e=>L0(Nl(Math.atan2(e[6],e[5]))),rotateY:e=>L0(Nl(Math.atan2(-e[2],e[0]))),rotateZ:vO,rotate:vO,skewX:e=>Nl(Math.atan(e[4])),skewY:e=>Nl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vl(e){return e.includes("scale")?1:0}function vx(e,t){if(!e||e==="none")return Vl(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,r;if(a)o=HG,r=a;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=zG,r=s}if(!r)return Vl(t);let n=o[t],i=r[1].split(",").map(_G);return typeof n=="function"?n(i):i[n]}var LO=(e,t)=>{let{transform:a="none"}=getComputedStyle(e);return vx(a,t)};function _G(e){return parseFloat(e.trim())}var mn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ro=new Set([...mn,"pathRotation"]);var R0=e=>e===fn||e===de,UG=new Set(["x","y","z"]),qG=mn.filter(e=>!UG.has(e));function IO(e){let t=[];return qG.forEach(a=>{let o=e.getValue(a);if(o!==void 0){let r=o.get(),n=a.startsWith("scale")?1:0;if(r===n)return;t.push([a,r]),o.set(n)}}),t}var TO=new Set(["bottom","right"]);function RO(e,t,a,o,r,n){let i=parseFloat(e);if(!isNaN(i))return i;let{min:s,max:l}=t()[a],u=l-s;return n==="border-box"?u:u-parseFloat(o)-parseFloat(r)}var hs={width:({width:e,paddingLeft:t="0",paddingRight:a="0",boxSizing:o},r)=>RO(e,r,"x",t,a,o),height:({height:e,paddingTop:t="0",paddingBottom:a="0",boxSizing:o},r)=>RO(e,r,"y",t,a,o),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:a}=t();return parseFloat(e)+(a.max-a.min)},right:({left:e},t)=>{let{x:a}=t();return parseFloat(e)+(a.max-a.min)},x:({transform:e})=>vx(e,"x"),y:({transform:e})=>vx(e,"y")};hs.translateX=hs.x;hs.translateY=hs.y;var Bl=new Set,I0=!1,T0=!1,w0=!1;function wO(){if(T0){let e=[],t=new Set,a=new Set;Bl.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),TO.has(r.name)&&a.add(r.element))});let o=new Map;a.forEach(r=>{let n=IO(r);n.length&&(o.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}T0=!1,I0=!1,Bl.forEach(e=>e.complete(w0)),Bl.clear()}function EO(){Bl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(T0=!0)})}function AO(){w0=!0,EO(),wO(),w0=!1}function GG(e,t,a){if(typeof e=="string"){if(Pl(e)||Dl(e))return parseFloat(e);if(!Xt.test(e)&&Xt.test(a))return Zc(t,a)}return e??void 0}var gs=class{constructor(t,a,o,r,n,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=r,this.element=n,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Bl.add(this),I0||(I0=!0,Fe.read(EO),Fe.resolveKeyframes(wO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:o,motionValue:r}=this;if(t[0]===null){let n=r?.get(),i=t[t.length-1];if(n!==void 0)t[0]=n;else if(o&&a){let s=GG(o.readValue(a,i),a,i);s!==void 0&&(t[0]=s)}t[0]===void 0&&(t[0]=i),r&&n===void 0&&r.set(t[0])}SO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Bl.delete(this)}cancel(){this.state==="scheduled"&&(Bl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var MO=e=>e.startsWith("--");function bx(e,t,a){MO(t)?e.style.setProperty(t,a):e.style[t]=a}var PO={};function Cx(e,t){let a=km(e);return()=>PO[t]??a()}var DO=Cx(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Lx=Cx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Fl=([e,t,a,o])=>`cubic-bezier(${e}, ${t}, ${a}, ${o})`;var E0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fl([0,.65,.55,1]),circOut:Fl([.55,0,1,.45]),backIn:Fl([.31,.01,.66,-.59]),backOut:Fl([.33,1.53,.69,.99])};function A0(e,t){if(e)return typeof e=="function"?Lx()?gx(e,t):"ease-out":_m(e)?Fl(e):Array.isArray(e)?e.map(a=>A0(a,t)||E0.easeOut):E0[e]}function OO(e,t,a,{delay:o=0,duration:r=300,repeat:n=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[t]:a};l&&(c.offset=l);let d=A0(s,r);Array.isArray(d)&&(c.easing=d);let f={delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:i==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Rx(e){return typeof e=="function"&&"applyToOptions"in e}function kO({type:e,...t}){return Rx(e)&&Lx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Qc=class extends ps{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:a,name:o,keyframes:r,pseudoElement:n,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=i,this.options=t,Co(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=kO(t);this.animation=OO(a,o,r,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=ms(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(c),bx(a,o,c),this.animation.cancel()}l?.(),this.notifyFinished()},yx(this,t,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return va(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+va(t)}get time(){return va(Number(this.animation.currentTime)||0)}set time(t){let a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=aa(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&DO()?(this.animation.timeline=t,a?.(this.animation),jt):o(this)}};var NO={anticipate:Bm,backInOut:Vm,circInOut:Hm};function jG(e){return e in NO}function VO(e){typeof e.ease=="string"&&jG(e.ease)&&(e.ease=NO[e.ease])}var M0=10,Ix=class extends Qc{constructor(t){VO(t),xx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:a,onUpdate:o,onComplete:r,element:n,...i}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}let s=new Qn({...i,autoplay:!1}),l=Math.max(M0,gt.now()-this.startTime),u=fa(0,M0,l-M0),c=s.sample(l).value,{name:d}=this.options;n&&d&&bx(n,d,c),a.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}};var P0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xt.test(e)||e==="0")&&!e.startsWith("url("));function XG(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function BO(e,t,a,o){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],i=P0(r,t),s=P0(n,t);return!i||!s?(i!==s&&Kn(!1,`You are trying to animate ${t} from "${r}" to "${n}". "${i?n:r}" is not an animatable value.`,"value-not-animatable"),!1):XG(e)||(a==="spring"||Rx(a))&&o}function Zm(e){e.duration=0,e.type="keyframes"}var Qm=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var YG=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function FO(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&YG.test(e[t]))return!0;return!1}var zO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),WG=km(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HO(e){let{motionValue:t,name:a,repeatDelay:o,repeatType:r,damping:n,type:i,keyframes:s}=e;if(!a||!(Qm.has(a)||zO.has(a)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return WG()&&(Qm.has(a)||zO.has(a)&&FO(s))&&(a!=="transform"||!c)&&!u&&!o&&r!=="mirror"&&n!==0&&i!=="inertia"}var KG=40,Tx=class extends ps{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gt.now();let{keyframes:a,name:o,motionValue:r,element:n}=t,i=t;i.autoplay??(i.autoplay=!0),i.delay??(i.delay=0),i.type??(i.type="keyframes"),i.repeat??(i.repeat=0),i.repeatDelay??(i.repeatDelay=0),i.repeatType??(i.repeatType="loop");let s=n?.KeyframeResolver||gs;this.keyframeResolver=new s(a,(l,u,c)=>this.onKeyframesResolved(l,u,i,!c),o,r,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,r){this.keyframeResolver=void 0;let{name:n,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:c}=o;this.resolvedAt=gt.now();let d=!0;BO(t,n,i,s)||(d=!1,(ka.instantAnimations||!l)&&c?.(ms(t,o,a)),t[0]=t[t.length-1],Zm(o),o.repeat=0);let f=r?this.resolvedAt?this.resolvedAt-this.createdAt>KG?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=o;o.startTime??(o.startTime=f),o.finalKeyframe=a,o.keyframes=t,o.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&HO(o),y;if(p){o.element=o.motionValue?.owner?.current;try{y=new Ix(o)}catch{y=new Qn(o)}}else y=new Qn(o);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function wx(e,t,a,o=0,r=1){let n=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),i=e.size,s=(i-1)*o;return typeof a=="function"?a(n,i):r===1?n*o:s-n*o}var _O=30,ZG=e=>!isNaN(parseFloat(e)),UO={current:void 0},D0=class{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let r=gt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){var o;return t==="change"?this.onChangeSubscribe(a):((o=this.events)[t]||(o[t]=new un)).add(a)}onChangeSubscribe(t){let{events:a}=this;return!a.change&&!this.changeSubscriber?this.changeSubscriber=t:(a.change||(a.change=new un,a.change.add(this.changeSubscriber),this.changeSubscriber=void 0),a.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:a.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){Fe.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:a}=this;a?a(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return UO.current&&UO.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_O)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,_O);return Nm(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0;let o=!1,r;r=t(()=>{o=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),a()}),o||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Nr(e,t){return new D0(e,t)}function zl(e,t){if(e?.inherit&&t){let{inherit:a,...o}=e;return{...t,...o}}return e}function Jc(e,t){let a=e?.[t]??e?.default??e;return a!==e?zl(a,e):a}var QG={type:"spring",stiffness:500,damping:25,restSpeed:10},JG=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$G={type:"keyframes",duration:.8},e6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qO=(e,{keyframes:t})=>t.length>2?$G:Ro.has(e)?e.startsWith("scale")?JG(t[1]):QG:e6;var t6=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function GO(e){for(let t in e)if(!t6.has(t))return!0;return!1}var Hl=(e,t,a,o={},r,n)=>i=>{let s=Jc(o,e)||{},l=s.delay||o.delay||0,{elapsed:u=0}=o;u=u-aa(l);let c={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:n?void 0:r};GO(s)||Object.assign(c,qO(e,c)),c.duration&&(c.duration=aa(c.duration)),c.repeatDelay&&(c.repeatDelay=aa(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Zm(c),c.delay===0&&(d=!0)),(ka.instantAnimations||ka.skipAnimations||r?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Zm(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!n&&t.get()!==void 0){let f=ms(c.keyframes,s);if(f!==void 0){Fe.update(()=>{c.onUpdate(f),c.onComplete()});return}}return s.isSync?new Qn(c):new Tx(c)};var a6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o6(e){let t=a6.exec(e);if(!t)return[,];let[,a,o,r]=t;return[`--${a??o}`,r]}var r6=4;function O0(e,t,a=1){Co(a<=r6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,r]=o6(e);if(!o)return;let n=window.getComputedStyle(t).getPropertyValue(o);if(n){let i=n.trim();return Pl(i)?parseFloat(i):i}return Uc(r)?O0(r,t,a+1):r}function jO(e){let t=[{},{}];return e?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function _l(e,t,a,o){if(typeof t=="function"){let[r,n]=jO(o);t=t(a!==void 0?a:e.custom,r,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,n]=jO(o);t=t(a!==void 0?a:e.custom,r,n)}return t}function Go(e,t,a){let o=e.getProps();return _l(o,t,a!==void 0?a:o.custom,e)}var Ex=new Set(["width","height","top","left","right","bottom",...mn]);var Jm=e=>Array.isArray(e);function n6(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Nr(a))}function i6(e){return Jm(e)?e[e.length-1]||0:e}function XO(e,t){let a=Go(e,t),{transitionEnd:o={},transition:r={},...n}=a||{};n={...n,...o};for(let i in n){let s=i6(n[i]);n6(e,i,s)}}var mt=e=>!!(e&&e.getVelocity);function YO(e){return!!(mt(e)&&e.add)}function $c(e,t){let a=e.getValue("willChange");if(YO(a))return a.add(t);if(!a&&ka.WillChange){let o=new ka.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function ef(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var WO="framerAppearId",$m="data-"+ef(WO);function Ax(e){return e.props[$m]}var s6=typeof window<"u";function l6({protectedKeys:e,needsAnimating:t},a){let o=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function Mx(e,t,{delay:a=0,transitionOverride:o,type:r}={}){let{transition:n,transitionEnd:i,...s}=t,l=e.getDefaultTransition();n=n?zl(n,l):l;let u=n?.reduceMotion,c=n?.skipAnimations;o&&(n=o);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],m=n?.path;m&&m.animateVisualElement(e,s,n,a,d);for(let p in s){let y=e.getValue(p,e.latestValues[p]??null),v=s[p];if(v===void 0||f&&l6(f,p))continue;let g={delay:a,...Jc(n||{},p)};c&&(g.skipAnimations=!0);let h=y.get();if(h!==void 0&&!y.isAnimating()&&!Array.isArray(v)&&v===h&&!g.velocity){Fe.update(()=>y.set(v));continue}let x=!1;if(s6&&window.MotionHandoffAnimation){let R=Ax(e);if(R){let L=window.MotionHandoffAnimation(R,p,Fe);L!==null&&(g.startTime=L,x=!0)}}$c(e,p);let S=u??e.shouldReduceMotion;y.start(Hl(p,y,v,S&&Ex.has(p)?{type:!1}:g,e,x));let b=y.animation;b&&d.push(b)}if(i){let p=()=>Fe.update(()=>{i&&XO(e,i)});d.length?Promise.all(d).then(p):p()}return d}function Px(e,t,a={}){let o=Go(e,t,a.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(r=a.transitionOverride);let n=o?()=>Promise.all(Mx(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return u6(e,t,l,u,c,d,a)}:()=>Promise.resolve(),{when:s}=r;if(s){let[l,u]=s==="beforeChildren"?[n,i]:[i,n];return l().then(()=>u())}else return Promise.all([n(),i(a.delay)])}function u6(e,t,a=0,o=0,r=0,n=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(Px(l,t,{...i,delay:a+(typeof o=="function"?0:o)+wx(e.variantChildren,l,o,r,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function KO(e,t,a={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let r=t.map(n=>Px(e,n,a));o=Promise.all(r)}else if(typeof t=="string")o=Px(e,t,a);else{let r=typeof t=="function"?Go(e,t,a.custom):t;o=Promise.all(Mx(e,r,a))}return o.then(()=>{e.notify("AnimationComplete",t)})}var ZO={test:e=>e==="auto",parse:e=>e};var QO=e=>t=>t.test(e);var c6=[fn,de,Ua,ur,d0,f0,ZO],k0=e=>c6.find(QO(e));function JO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dl(e):!0}var f6=new Set(["auto","none","0"]);function $O(e,t,a){let o=0,r;for(;o<e.length&&!r;){let n=e[o];typeof n=="string"&&!f6.has(n)&&JD(n)&&(r=e[o]),o++}if(r&&a)for(let n of t)e[n]!==r&&(e[n]=Zc(a,r))}var Dx=class extends gs{constructor(t,a,o,r,n){super(t,a,o,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Uc(d))){let f=O0(d,a.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ex.has(o)||t.length!==2)return;let[r,n]=t;if(typeof r=="number"&&typeof n=="number")return;let i=k0(r),s=k0(n),l=u0(r),u=u0(n);if(l!==u&&hs[o]){this.needsMeasurement=!0;return}if(i!==s)if(R0(i)&&R0(s))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else hs[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||JO(t[r]))&&o.push(r);o.length&&$O(t,o,a)}measure(){let{element:t,name:a}=this;return hs[a](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),a[0]=this.measuredOrigin;let r=a[a.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:a}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let o=a.length-1,r=a[o];a[o]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([n,i])=>{t.getValue(n).set(i)}),this.resolveNoneKeyframes()}};var ep=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Ul(e){return Om(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function tf(e){return Om(e)&&"ownerSVGElement"in e}var tp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ox(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let r=a?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}var d6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m6=mn.length;function ek(e,t,a){let o="",r=!0;for(let i=0;i<m6;i++){let s=mn[i],l=e[s];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(s.startsWith("scale")?1:0);else{let c=parseFloat(l);u=s.startsWith("scale")?c===1:c===0}if(!u||a){let c=tp(l,kl[s]);if(!u){r=!1;let d=d6[s]||s;o+=`${d}(${c}) `}a&&(t[s]=c)}}let n=e.pathRotation;return n&&(r=!1,o+=`rotate(${tp(n,kl.pathRotation)}) `),o=o.trim(),a?o=a(t,r?"":o):r&&(o="none"),o}function ql(e,t,a){let{style:o,vars:r,transformOrigin:n}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(Ro.has(l)){i=!0;continue}else if(cx(l)){r[l]=u;continue}else{let c=tp(u,kl[l]);l.startsWith("origin")?(s=!0,n[l]=c):o[l]=c}}if(t.transform||(i||a?o.transform=ek(t,e.transform,a):o.transform&&(o.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=n;o.transformOrigin=`${l} ${u} ${c}`}}var p6={offset:"stroke-dashoffset",array:"stroke-dasharray"},h6={offset:"strokeDashoffset",array:"strokeDasharray"};function tk(e,t,a=1,o=0,r=!0){e.pathLength=1;let n=r?p6:h6;e[n.offset]=`${-o}`,e[n.array]=`${t} ${a}`}var N0=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ap(e,{attrX:t,attrY:a,attrScale:o,pathLength:r,pathSpacing:n=1,pathOffset:i=0,...s},l,u,c){if(ql(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of N0)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),a!==void 0&&(d.y=a),o!==void 0&&(d.scale=o),r!==void 0&&tk(d,r,n,i,!1)}function op({top:e,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:e,max:o}}}function V0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B0(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function F0(e){return e===void 0||e===1}function kx({scale:e,scaleX:t,scaleY:a}){return!F0(e)||!F0(t)||!F0(a)}function Jn(e){return kx(e)||z0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z0(e){return ak(e.x)||ak(e.y)}function ak(e){return e&&e!=="0%"}function rp(e,t,a){let o=e-a,r=t*o;return a+r}function ok(e,t,a,o,r){return r!==void 0&&(e=rp(e,r,o)),rp(e,a,o)+t}function H0(e,t=0,a=1,o,r){e.min=ok(e.min,t,a,o,r),e.max=ok(e.max,t,a,o,r)}function _0(e,{x:t,y:a}){H0(e.x,t.translate,t.scale,t.originPoint),H0(e.y,a.translate,a.scale,a.originPoint)}var rk=.999999999999,nk=1.0000000000001;function lk(e,t,a,o=!1){let r=a.length;if(!r)return;t.x=t.y=1;let n,i;for(let s=0;s<r;s++){n=a[s],i=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(cr(e.x,-n.scroll.offset.x),cr(e.y,-n.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,_0(e,i)),o&&Jn(n.latestValues)&&np(e,n.latestValues,n.layout?.layoutBox))}t.x<nk&&t.x>rk&&(t.x=1),t.y<nk&&t.y>rk&&(t.y=1)}function cr(e,t){e.min+=t,e.max+=t}function ik(e,t,a,o,r=.5){let n=_e(e.min,e.max,r);H0(e,t,a,n,o)}function sk(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function np(e,t,a){let o=a??e;ik(e.x,sk(t.x,o.x),t.scaleX,t.scale,t.originX),ik(e.y,sk(t.y,o.y),t.scaleY,t.scale,t.originY)}function Nx(e,t){return op(B0(e.getBoundingClientRect(),t))}function U0(e,t,a){let o=Nx(e,a),{scroll:r}=t;return r&&(cr(o.x,r.offset.x),cr(o.y,r.offset.y)),o}var{schedule:Gl,cancel:g6}=hx(queueMicrotask,!1);var fr={x:!1,y:!1};function Vx(){return fr.x||fr.y}function q0(e){return e==="x"||e==="y"?fr[e]?null:(fr[e]=!0,()=>{fr[e]=!1}):fr.x||fr.y?null:(fr.x=fr.y=!0,()=>{fr.x=fr.y=!1})}function Bx(e,t){let a=Ox(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[a,r,()=>o.abort()]}function x6(e){return!(e.pointerType==="touch"||Vx())}function G0(e,t,a={}){let[o,r,n]=Bx(e,a);return o.forEach(i=>{let s=!1,l=!1,u,c=()=>{i.removeEventListener("pointerleave",p)},d=v=>{u&&(u(v),u=void 0),c()},f=v=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(v))},m=()=>{s=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},p=v=>{if(v.pointerType!=="touch"){if(s){l=!0;return}d(v)}},y=v=>{if(!x6(v))return;l=!1;let g=t(i,v);typeof g=="function"&&(u=g,i.addEventListener("pointerleave",p,r))};i.addEventListener("pointerenter",y,r),i.addEventListener("pointerdown",m,r)}),n}var j0=(e,t)=>t?e===t?!0:j0(e,t.parentElement):!1;var jl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var y6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function X0(e){return y6.has(e.tagName)||e.isContentEditable===!0}var S6=new Set(["INPUT","SELECT","TEXTAREA"]);function Y0(e){return S6.has(e.tagName)||e.isContentEditable===!0}var af=new WeakSet;function uk(e){return t=>{t.key==="Enter"&&e(t)}}function W0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var ck=(e,t)=>{let a=e.currentTarget;if(!a)return;let o=uk(()=>{if(af.has(a))return;W0(a,"down");let r=uk(()=>{W0(a,"up")}),n=()=>W0(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function fk(e){return jl(e)&&!Vx()}var dk=new WeakSet;function K0(e,t,a={}){let[o,r,n]=Bx(e,a),i=s=>{let l=s.currentTarget;if(!fk(s)||dk.has(s))return;af.add(l),a.stopPropagation&&dk.add(s);let u=t(l,s),c={...r,capture:!0},d=(p,y)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),af.has(l)&&af.delete(l),fk(p)&&typeof u=="function"&&u(p,{success:y})},f=p=>{d(p,l===window||l===document||a.useGlobalTarget||j0(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return o.forEach(s=>{(a.useGlobalTarget?window:s).addEventListener("pointerdown",i,r),Ul(s)&&(s.addEventListener("focus",u=>ck(u,r)),!X0(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),n}var Fx=new WeakMap,zx,mk=(e,t,a)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:tf(o)&&"getBBox"in o?o.getBBox()[t]:o[a],v6=mk("inline","width","offsetWidth"),b6=mk("block","height","offsetHeight");function C6({target:e,borderBoxSize:t}){Fx.get(e)?.forEach(a=>{a(e,{get width(){return v6(e,t)},get height(){return b6(e,t)}})})}function L6(e){e.forEach(C6)}function R6(){typeof ResizeObserver>"u"||(zx=new ResizeObserver(L6))}function pk(e,t){zx||R6();let a=Ox(e);return a.forEach(o=>{let r=Fx.get(o);r||(r=new Set,Fx.set(o,r)),r.add(t),zx?.observe(o)}),()=>{a.forEach(o=>{let r=Fx.get(o);r?.delete(t),r?.size||zx?.unobserve(o)})}}var Hx=new Set,of;function I6(){of=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Hx.forEach(t=>t(e))},window.addEventListener("resize",of)}function hk(e){return Hx.add(e),of||I6(),()=>{Hx.delete(e),!Hx.size&&typeof of=="function"&&(window.removeEventListener("resize",of),of=void 0)}}function _x(e,t){return typeof e=="function"?hk(e):pk(e,t)}var Xl={value:null,addProjectionMetrics:null};function gk(e){return tf(e)&&e.tagName==="svg"}var Z0=e=>typeof e=="number"?e:parseFloat(e);var Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),xs=()=>({x:Q0(),y:Q0()}),J0=()=>({min:0,max:0}),kt=()=>({x:J0(),y:J0()});var xk=new WeakMap;function $n(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pn(e){return typeof e=="string"||Array.isArray(e)}var Ux=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rf=["initial",...Ux];function ys(e){if($n(e.animate))return!0;for(let t=0;t<rf.length;t++)if(pn(e[rf[t]]))return!0;return!1}function ip(e){return!!(ys(e)||e.variants)}function yk(e,t,a){for(let o in t){let r=t[o],n=a[o];if(mt(r))e.addValue(o,r);else if(mt(n))e.addValue(o,Nr(r,{owner:e}));else if(n!==r)if(e.hasValue(o)){let i=e.getValue(o);i.liveStyle===!0?i.jump(r):i.hasAnimated||i.set(r)}else{let i=e.getStaticValue(o);e.addValue(o,Nr(i!==void 0?i:r,{owner:e}))}}for(let o in a)t[o]===void 0&&e.removeValue(o);return t}var Ss={current:null},Yl={current:!1};var T6=typeof window<"u";function sp(){if(Yl.current=!0,!!T6)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ss.current=e.matches;e.addEventListener("change",t),t()}else Ss.current=!1}var Sk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qx={};function up(e){qx=e}function $0(){return qx}var lp=class{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=gs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=gt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Fe.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=a.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=a,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=ys(a),this.isVariantNode=ip(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&mt(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,xk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Yl.current||sp(),this.shouldReduceMotion=Ss.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Lo(this.notifyUpdate),Lo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&Qm.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:l,ease:u,duration:c}=a.accelerate,d=new Qc({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:aa(c)}),f=i(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let o=Ro.has(t);o&&this.onBindTransform&&this.onBindTransform();let r=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Fe.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),n&&n()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qx){let a=qx[t];if(!a)continue;let{isEnabled:o,Feature:r}=a;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<Sk.length;o++){let r=Sk[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n="on"+r,i=t[n];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=yk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let o=this.values.get(t);if(a!==o){o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a);let r=a.get();r!==void 0&&(this.latestValues[t]=r)}}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=Nr(a??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Pl(o)||Dl(o))?o=parseFloat(o):typeof o!="number"&&!Xt.test(o)&&Xt.test(a)&&(o=Zc(t,a)),this.setBaseTarget(t,mt(o)?o.get():o)),mt(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){let{initial:a}=this.props,o;if(typeof a=="string"||typeof a=="object"){let n=_l(this.props,a,this.presenceContext?.custom);n&&(o=n[t])}if(a&&o!==void 0)return o;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!mt(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new un),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Gl.render(this.render)}};var nf=class extends lp{constructor(){super(...arguments),this.KeyframeResolver=Dx}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){let o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};var da=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Gx(e,{style:t,vars:a},o,r){let n=e.style,i;for(i in t)n[i]=t[i];r?.applyProjectionStyles(n,o);for(i in a)n.setProperty(i,a[i])}var Wl={};function cp(e,{layout:t,layoutId:a}){return Ro.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Wl[e]||e==="opacity")}function Kl(e,t,a){let o=e.style,r=t?.style,n={};if(!o)return n;for(let i in o)(mt(o[i])||r&&mt(r[i])||cp(i,e)||a?.getValue(i)?.liveStyle!==void 0)&&(n[i]=o[i]);return n}function w6(e){return window.getComputedStyle(e)}var fp=class extends nf{constructor(){super(...arguments),this.type="html",this.renderInstance=Gx}mount(t){Co(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,a){if(Ro.has(a))return this.projection?.isProjecting?Vl(a):LO(t,a);{let o=w6(t),r=(cx(a)?o.getPropertyValue(a):o[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return Nx(t,a)}build(t,a,o){ql(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return Kl(t,a,o)}};var jx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var dp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vk(e,t,a,o){Gx(e,t,void 0,o);for(let r in t.attrs)e.setAttribute(jx.has(r)?r:ef(r),t.attrs[r])}function mp(e,t,a){let o=Kl(e,t,a);for(let r in e)if(mt(e[r])||mt(t[r])){let n=mn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[n]=e[r]}return o}var pp=class extends nf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,a){return Ro.has(a)?super.getBaseTargetFromProps(t,a)??Vl(a):t[a]}getDefaultValue(t){return Ro.has(t)?this.latestValues[t]??Vl(t):void 0}readValueFromInstance(t,a){if(Ro.has(a)){let o=Sx(a);return o&&o.default||0}if(N0.includes(a)){let r=getComputedStyle(t)[a];if(typeof r=="string"&&r)return r.trim()}return a=jx.has(a)?a:ef(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return mp(t,a,o)}build(t,a,o){ap(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,r){vk(t,a,o,r)}mount(t){this.isSVGTag=dp(t.tagName),super.mount(t)}};var E6=rf.length;function eR(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?eR(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<E6;a++){let o=rf[a],r=e.props[o];(pn(r)||r===!1)&&(t[o]=r)}return t}function tR(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let o=0;o<a;o++)if(t[o]!==e[o])return!1;return!0}var A6=[...Ux].reverse(),M6=Ux.length;function P6(e){return t=>Promise.all(t.map(({animation:a,options:o})=>KO(e,a,o)))}function aR(e){let t=P6(e),a=bk(),o=!0,r=!1,n=u=>(c,d)=>{let f=Go(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...y}=f;c={...c,...y,...p}}return c};function i(u){t=u(e)}function s(u){let{props:c}=e,d=eR(e.parent)||{},f=[],m=new Set,p={},y=1/0;for(let g=0;g<M6;g++){let h=A6[g],x=a[h],S=c[h]!==void 0?c[h]:d[h],b=pn(S),R=h===u?x.isActive:null;R===!1&&(y=g);let L=S===d[h]&&S!==c[h]&&b;if(L&&(o||r)&&e.manuallyAnimateOnMount&&(L=!1),x.protectedKeys={...p},!x.isActive&&R===null||!S&&!x.prevProp||$n(S)||typeof S=="boolean")continue;if(h==="exit"&&x.isActive&&R!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}let C=Ck(x.prevProp,S),E=C||h===u&&x.isActive&&!L&&b||g>y&&b,T=!1,A=Array.isArray(S)?S:[S],V=A.reduce(n(h),{});R===!1&&(V={});let{prevResolvedValues:M={}}=x,F={...M,...V},O=D=>{E=!0,m.has(D)&&(T=!0,m.delete(D)),x.needsAnimating[D]=!0;let N=e.getValue(D);N&&(N.liveStyle=!1)};for(let D in F){let N=V[D],w=M[D];if(p.hasOwnProperty(D))continue;let z=!1;Jm(N)&&Jm(w)?z=!tR(N,w)||C:z=N!==w,z?N!=null?O(D):m.add(D):N!==void 0&&m.has(D)?O(D):x.protectedKeys[D]=!0}x.prevProp=S,x.prevResolvedValues=V,x.isActive&&(p={...p,...V}),(o||r)&&e.blockInitialAnimation&&(E=!1);let H=L&&C;E&&(!H||T)&&f.push(...A.map(D=>{let N={type:h};if(typeof D=="string"&&(o||r)&&!H&&e.manuallyAnimateOnMount&&e.parent){let{parent:w}=e,z=Go(w,D);if(w.enteringChildren&&z){let{delayChildren:U}=z.transition||{};N.delay=wx(w.enteringChildren,e,U)}}return{animation:D,options:N}}))}if(m.size){let g={};if(typeof c.initial!="boolean"){let h=Go(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(g.transition=h.transition)}m.forEach(h=>{let x=e.getBaseTarget(h),S=e.getValue(h);S&&(S.liveStyle=!0),g[h]=x??null}),f.push({animation:g})}let v=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),o=!1,r=!1,v?t(f):Promise.resolve()}function l(u,c){if(a[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),a[u].isActive=c;let d=s(u);for(let f in a)a[f].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>a,reset:()=>{a=bk(),r=!0}}}function Ck(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tR(t,e):!1}function Zl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bk(){return{animate:Zl(!0),whileInView:Zl(),whileHover:Zl(),whileTap:Zl(),whileDrag:Zl(),whileFocus:Zl(),exit:Zl()}}function Xx(e,t){e.min=t.min,e.max=t.max}function dr(e,t){Xx(e.x,t.x),Xx(e.y,t.y)}function oR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Lk=1e-4,D6=1-Lk,O6=1+Lk,Rk=.01,k6=0-Rk,N6=0+Rk;function oa(e){return e.max-e.min}function sR(e,t,a){return Math.abs(e-t)<=a}function rR(e,t,a,o=.5){e.origin=o,e.originPoint=_e(t.min,t.max,e.origin),e.scale=oa(a)/oa(t),e.translate=_e(a.min,a.max,e.origin)-e.originPoint,(e.scale>=D6&&e.scale<=O6||isNaN(e.scale))&&(e.scale=1),(e.translate>=k6&&e.translate<=N6||isNaN(e.translate))&&(e.translate=0)}function Ql(e,t,a,o){rR(e.x,t.x,a.x,o?o.originX:void 0),rR(e.y,t.y,a.y,o?o.originY:void 0)}function nR(e,t,a,o=0){let r=o?_e(a.min,a.max,o):a.min;e.min=r+t.min,e.max=e.min+oa(t)}function lR(e,t,a,o){nR(e.x,t.x,a.x,o?.x),nR(e.y,t.y,a.y,o?.y)}function iR(e,t,a,o=0){let r=o?_e(a.min,a.max,o):a.min;e.min=t.min-r,e.max=e.min+oa(t)}function sf(e,t,a,o){iR(e.x,t.x,a.x,o?.x),iR(e.y,t.y,a.y,o?.y)}function Ik(e,t,a,o,r){return e-=t,e=rp(e,1/a,o),r!==void 0&&(e=rp(e,1/r,o)),e}function V6(e,t=0,a=1,o=.5,r,n=e,i=e){if(Ua.test(t)&&(t=parseFloat(t),t=_e(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=_e(n.min,n.max,o);e===n&&(s-=t),e.min=Ik(e.min,t,a,s,r),e.max=Ik(e.max,t,a,s,r)}function Tk(e,t,[a,o,r],n,i){V6(e,t[a],t[o],t[r],t.scale,n,i)}var B6=["x","scaleX","originX"],F6=["y","scaleY","originY"];function uR(e,t,a,o){Tk(e.x,t,B6,a?a.x:void 0,o?o.x:void 0),Tk(e.y,t,F6,a?a.y:void 0,o?o.y:void 0)}function wk(e){return e.translate===0&&e.scale===1}function cR(e){return wk(e.x)&&wk(e.y)}function Ek(e,t){return e.min===t.min&&e.max===t.max}function Mk(e,t){return Ek(e.x,t.x)&&Ek(e.y,t.y)}function Ak(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fR(e,t){return Ak(e.x,t.x)&&Ak(e.y,t.y)}function dR(e){return oa(e.x)/oa(e.y)}function mR(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function jo(e){return[e("x"),e("y")]}function Pk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var lf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;let a=Pk(e,t.target.x),o=Pk(e,t.target.y);return`${a}% ${o}%`}};var Dk={correct:(e,{treeScale:t,projectionDelta:a})=>{let o=e,r=Xt.parse(e);if(r.length>5)return o;let n=Xt.createTransformer(e),i=typeof r[0]!="number"?1:0,s=a.x.scale*t.x,l=a.y.scale*t.y;r[0+i]/=s,r[1+i]/=l;let u=_e(s,l,.5);return typeof r[2+i]=="number"&&(r[2+i]/=u),typeof r[3+i]=="number"&&(r[3+i]/=u),n(r)}};function Ok(e,t,a){let o="",r=e.x.translate/t.x,n=e.y.translate/t.y,i=a?.z||0;if((r||n||i)&&(o=`translate3d(${r}px, ${n}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:y}=a;u&&(o=`perspective(${u}px) ${o}`),c&&(o+=`rotate(${c}deg) `),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),m&&(o+=`rotateY(${m}deg) `),p&&(o+=`skewX(${p}deg) `),y&&(o+=`skewY(${y}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}var z6=ep.length,kk=e=>typeof e=="number"||de.test(e);function Vk(e,t,a,o,r,n){r?(e.opacity=_e(0,a.opacity??1,H6(o)),e.opacityExit=_e(t.opacity??1,0,_6(o))):n&&(e.opacity=_e(t.opacity??1,a.opacity??1,o));for(let i=0;i<z6;i++){let s=ep[i],l=Nk(t,s),u=Nk(a,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||kk(l)===kk(u)?(e[s]=Math.max(_e(Z0(l),Z0(u),o),0),(Ua.test(u)||Ua.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||a.rotate)&&(e.rotate=_e(t.rotate||0,a.rotate||0,o))}function Nk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var H6=Bk(0,.5,zm),_6=Bk(.5,.95,jt);function Bk(e,t,a){return o=>o<e?0:o>t?1:a(ln(e,t,o))}function Fk(e,t,a){let o=mt(e)?e:Nr(e);return o.start(Hl("",o,t,a)),o.animation}function hn(e,t,a,o={passive:!0}){return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)}var zk=(e,t)=>e.depth-t.depth;var Yx=class{constructor(){this.children=[],this.isDirty=!1}add(t){Ml(this.children,t),this.isDirty=!0}remove(t){cs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zk),this.isDirty=!1,this.children.forEach(t)}};function Hk(e,t){let a=gt.now(),o=({timestamp:r})=>{let n=r-a;n>=t&&(Lo(o),e(n-t))};return Fe.setup(o,!0),()=>Lo(o)}function Jl(e){return mt(e)?e.get():e}var Wx=class{constructor(){this.members=[]}add(t){Ml(this.members,t);for(let a=this.members.length-1;a>=0;a--){let o=this.members[a];if(o===t||o===this.lead||o===this.prevLead)continue;let r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(cs(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(cs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){let o=this.members[a];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,a){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=o.options,{layoutDependency:n}=t.options;(r===void 0||r!==n)&&(t.resumeFrom=o,a&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var _k={borderRadius:{...lf,applyTo:[...ep]},borderTopLeftRadius:lf,borderTopRightRadius:lf,borderBottomLeftRadius:lf,borderBottomRightRadius:lf,boxShadow:Dk};var $l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Wl,{..._k,...Wl});var eu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},pR=["","X","Y","Z"],U6=1e3,q6=0;function hR(e,t,a,o){let{latestValues:r}=t;r[e]&&(a[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Zk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=Ax(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:r,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Fe,!(r||n))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Zk(o)}function Kx({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(i={},s=t?.()){this.id=q6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xl.value&&(eu.nodes=eu.calculatedTargetDeltas=eu.calculatedProjections=0),this.nodes.forEach(X6),this.nodes.forEach($6),this.nodes.forEach(e8),this.nodes.forEach(Y6),Xl.addProjectionMetrics&&Xl.addProjectionMetrics(eu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yx)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new un),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=tf(i)&&!gk(i),this.instance=i;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;Fe.read(()=>{d=window.innerWidth}),e(i,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=Hk(f,250),$l.hasAnimatedSinceResize&&($l.hasAnimatedSinceResize=!1,this.nodes.forEach(Gk)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||n8,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!fR(this.targetLayout,m),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...Jc(p,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,h,x.path)}else d||Gk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Lo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(t8),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(K6),this.nodes.forEach(Uk);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qk);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Z6),this.nodes.forEach(Q6),this.nodes.forEach(J6),this.nodes.forEach(G6),this.nodes.forEach(j6)):this.nodes.forEach(qk),this.clearAllSnapshots();let s=gt.now();Tt.delta=fa(0,1e3/60,s-Tt.timestamp),Tt.timestamp=s,Tt.isProcessing=!0,Xm.update.process(Tt),Xm.preRender.process(Tt),Xm.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(W6),this.sharedNodes.forEach(a8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oa(this.snapshot.measuredBox.x)&&!oa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){let l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!cR(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&this.instance&&(s||Jn(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),i8(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return kt();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(s8))){let{scroll:u}=this.root;u&&(cr(s.x,u.offset.x),cr(s.y,u.offset.y))}return s}removeElementScroll(i){let s=kt();if(dr(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&dr(s,i),cr(s.x,c.offset.x),cr(s.y,c.offset.y))}return s}applyTransform(i,s=!1,l){let u=l||kt();dr(u,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(cr(u.x,-d.scroll.offset.x),cr(u.y,-d.scroll.offset.y)),Jn(d.latestValues)&&np(u,d.latestValues,d.layout?.layoutBox)}return Jn(this.latestValues)&&np(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(i){let s=kt();dr(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!Jn(u.latestValues))continue;let c;u.instance&&(kx(u.latestValues)&&u.updateSnapshot(),c=kt(),dr(c,u.measurePageBox())),uR(s,u.latestValues,u.snapshot?.layoutBox,c)}return Jn(this.latestValues)&&uR(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Tt.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lR(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):dr(this.target,this.layout.layoutBox),_0(this.target,this.targetDelta)):dr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Xl.value&&eu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||kx(this.parent.latestValues)||z0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,s,l){this.relativeParent=i,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),sf(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),dr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;dr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;lk(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=kt());let{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oR(this.prevProjectionDelta.x,this.projectionDelta.x),oR(this.prevProjectionDelta.y,this.projectionDelta.y)),Ql(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!mR(this.projectionDelta.x,this.prevProjectionDelta.x)||!mR(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Xl.value&&eu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xs(),this.projectionDelta=xs(),this.projectionDeltaWithTransform=xs()}setAnimationOrigin(i,s=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=xs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let m=kt(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,v=p!==y,g=this.getStack(),h=!g||g.members.length<=1,x=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(r8));this.animationProgress=0;let S,b=l?.interpolateProjection(i);this.mixTargetDelta=R=>{let L=R/1e3,C=b?.(L);C?(f.x.translate=C.x,f.x.scale=_e(i.x.scale,1,L),f.x.origin=i.x.origin,f.x.originPoint=i.x.originPoint,f.y.translate=C.y,f.y.scale=_e(i.y.scale,1,L),f.y.origin=i.y.origin,f.y.originPoint=i.y.originPoint):(jk(f.x,i.x,L),jk(f.y,i.y,L)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),o8(this.relativeTarget,this.relativeTargetOrigin,m,L),S&&Mk(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=kt()),dr(S,this.relativeTarget)),v&&(this.animationValues=d,Vk(d,c,this.latestValues,L,x,h)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Lo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{$l.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nr(0)),this.motionValue.jump(0,!1),this.currentAnimation=Fk(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),xO(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,layout:l,latestValues:u}=i,{target:c}=i;if(!(!s||!c||!l)){if(this!==i&&this.layout&&l&&Qk(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||kt();let d=oa(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+d;let f=oa(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+f}dr(s,c),np(s,u),Ql(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Wx),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&hR("z",i,u,this.animationValues);for(let c=0;c<pR.length;c++)hR(`rotate${pR[c]}`,i,u,this.animationValues),hR(`skew${pR[c]}`,i,u,this.animationValues);i.render();for(let c in u)i.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Jl(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Jl(s?.pointerEvents)||""),this.hasProjected&&!Jn(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=Ok(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),i.transform=d;let{x:f,y:m}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:i.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in Wl){if(c[p]===void 0)continue;let{correct:y,applyTo:v,isCSSVariable:g}=Wl[p],h=d==="none"?c[p]:y(c[p],u);if(v){let x=v.length;for(let S=0;S<x;S++)i[v[S]]=h}else g?this.options.visualElement.renderState.vars[p]=h:i[p]=h}this.options.layoutId&&(i.pointerEvents=u===this?Jl(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Uk),this.root.sharedNodes.clear()}}}function G6(e){e.updateLayout()}function j6(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:o}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;if(r==="size")jo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=oa(d);d.min=a[c].min,d.max=d.min+f});else if(r==="x"||r==="y"){let c=r==="x"?"y":"x";Xx(n?t.measuredBox[c]:t.layoutBox[c],a[c])}else Qk(r,t.layoutBox,a)&&jo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=oa(a[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let i=xs();Ql(i,a,t.layoutBox);let s=xs();n?Ql(s,e.applyTransform(o,!0),t.measuredBox):Ql(s,a,t.layoutBox);let l=!cR(i),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=kt();sf(p,t.layoutBox,d.layoutBox,m);let y=kt();sf(y,a,f.layoutBox,m),fR(p,y)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function X6(e){Xl.value&&eu.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Y6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function W6(e){e.clearSnapshot()}function Uk(e){e.clearMeasurements()}function K6(e){e.isLayoutDirty=!0,e.updateLayout()}function qk(e){e.isLayoutDirty=!1}function Z6(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Q6(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function J6(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $6(e){e.resolveTargetDelta()}function e8(e){e.calcProjection()}function t8(e){e.resetSkewAndRotation()}function a8(e){e.removeLeadSnapshot()}function jk(e,t,a){e.translate=_e(t.translate,0,a),e.scale=_e(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Xk(e,t,a,o){e.min=_e(t.min,a.min,o),e.max=_e(t.max,a.max,o)}function o8(e,t,a,o){Xk(e.x,t.x,a.x,o),Xk(e.y,t.y,a.y,o)}function r8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var n8={duration:.45,ease:[.4,0,.1,1]},Yk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wk=Yk("applewebkit/")&&!Yk("chrome/")?Math.round:jt;function Kk(e){e.min=Wk(e.min),e.max=Wk(e.max)}function i8(e){Kk(e.x),Kk(e.y)}function Qk(e,t,a){return e==="position"||e==="preserve-aspect"&&!sR(dR(t),dR(a),.2)}function s8(e){return e!==e.root&&e.scroll?.wasRoot}var Jk=Kx({attachResizeListener:(e,t)=>hn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Zx={current:void 0},hp=Kx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zx.current){let e=new Jk({});e.mount(window),e.setOptions({layoutScroll:!0}),Zx.current=e}return Zx.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Qx=I(k(),1),ti=I(k(),1);var $k=I(k(),1),ei=(0,$k.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var tN=I(k(),1);function eN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l8(...e){return t=>{let a=!1,o=e.map(r=>{let n=eN(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():eN(e[r],null)}}}}function aN(...e){return tN.useCallback(l8(...e),e)}var gR=class extends Qx.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(Ul(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=a.offsetParent,r=Ul(o)&&o.offsetWidth||0,n=Ul(o)&&o.offsetHeight||0,i=getComputedStyle(a),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=a.offsetTop,s.left=a.offsetLeft,s.right=r-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function rN({children:e,isPresent:t,anchorX:a,anchorY:o,root:r,pop:n}){let i=(0,ti.useId)(),s=(0,ti.useRef)(null),l=(0,ti.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,ti.useContext)(ei),c=n!==!1?e.props?.ref??e?.ref:void 0,d=aN(s,c);return(0,ti.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:y,right:v,bottom:g,direction:h}=l.current;if(t||n===!1||!s.current||!f||!m)return;let x=h==="rtl",S=a==="left"?x?`right: ${v}`:`left: ${y}`:x?`left: ${y}`:`right: ${v}`,b=o==="bottom"?`bottom: ${g}`:`top: ${p}`;s.current.dataset.motionPopId=i;let R=document.createElement("style");u&&(R.nonce=u);let L=r??document.head;return L.appendChild(R),R.sheet&&R.sheet.insertRule(`
10
+ [data-motion-pop-id="${i}"] {
11
11
  position: absolute !important;
12
12
  width: ${f}px !important;
13
13
  height: ${m}px !important;
14
14
  ${S}px !important;
15
15
  ${b}px !important;
16
16
  }
17
- `),()=>{i.current?.removeAttribute("data-motion-pop-id"),L.contains(I)&&L.removeChild(I)}},[t]),(0,BN.jsx)(Y0,{isPresent:t,childRef:i,sizeRef:l,pop:n,children:n===!1?e:uy.cloneElement(e,{ref:d})})}var HN=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:r,presenceAffectsLayout:n,mode:s,anchorX:i,anchorY:l,root:u})=>{let c=ci(lj),d=(0,Li.useId)(),f=(0,Li.useRef)(a),m=(0,Li.useRef)(o);fi(()=>{f.current=a,m.current=o});let p=!0,y=(0,Li.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:a,custom:r,onExitComplete:v=>{c.set(v,!0);for(let g of c.values())if(!g)return;o&&o()},register:v=>(c.set(v,!1),()=>{c.delete(v),!f.current&&!c.size&&m.current?.()})}),[a,c,o]);return n&&p&&(y={...y}),(0,Li.useMemo)(()=>{c.forEach((v,g)=>c.set(g,!1))},[a]),zN.useEffect(()=>{!a&&!c.size&&o&&o()},[a]),e=(0,W0.jsx)(FN,{pop:s==="popLayout",isPresent:a,anchorX:i,anchorY:l,root:u,children:e}),(0,W0.jsx)(di.Provider,{value:y,children:e})};function lj(){return new Map}var Ri=R(D(),1);function cy(e=!0){let t=(0,Ri.useContext)(di);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:o,register:r}=t,n=(0,Ri.useId)();(0,Ri.useEffect)(()=>{if(e)return r(n)},[e]);let s=(0,Ri.useCallback)(()=>e&&o&&o(n),[n,o,e]);return!a&&o?[!1,s]:[!0]}var fy=R(D(),1),gf=e=>e.key||"";function K0(e){let t=[];return fy.Children.forEach(e,a=>{(0,fy.isValidElement)(a)&&t.push(a)}),t}var Ii=({children:e,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:n="sync",propagate:s=!1,anchorX:i="left",anchorY:l="top",root:u})=>{let[c,d]=cy(s),f=(0,vn.useMemo)(()=>K0(e),[e]),m=s&&!c?[]:f.map(gf),p=(0,vn.useRef)(!0),y=ci(()=>new Map),v=(0,vn.useRef)(new Set),[g,h]=(0,vn.useState)(f),[x,S]=(0,vn.useState)(f);fi(()=>{s&&!c&&!x.length&&d?.()},[c,s,x.length,d]),fi(()=>{p.current=!1;for(let L=0;L<x.length;L++){let C=gf(x[L]);m.includes(C)?(y.delete(C),v.current.delete(C)):y.get(C)!==!0&&y.set(C,!1)}},[x,m.length,m.join("-")]);let b=[];if(f!==g){let L=[...f],C=0;for(let E of x){let T=m.indexOf(gf(E));T===-1?(L.splice(C++,0,E),b.push(E)):C=T+b.length+1}return b.every(E=>y.get(gf(E)))?L=f:n==="wait"&&(L=b),S(K0(L)),h(f),null}let{forceRender:I}=(0,vn.useContext)(Xc);return(0,Cp.jsx)(Cp.Fragment,{children:x.map(L=>{let C=gf(L),E=s&&!c?!1:f===x||m.includes(C),T=()=>{if(v.current.has(C))return;if(y.has(C))v.current.add(C),y.set(C,!0);else return;let A=!0;y.forEach(N=>{N||(A=!1)}),A&&(I?.(),h([]),s&&d?.(),o&&o())};return(0,Cp.jsx)(HN,{isPresent:E,initial:!p.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:n,root:u,onExitComplete:E?void 0:T,anchorX:i,anchorY:l,children:L},C)})})};var _N=R(D(),1),dy=(0,_N.createContext)({strict:!1});var UN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qN=!1;function uj(){if(qN)return;let e={};for(let t in UN)e[t]={isEnabled:a=>UN[t].some(o=>!!a[o])};hp(e),qN=!0}function my(){return uj(),P0()}function GN(e){let t=my();for(let a in e)t[a]={...t[a],...e[a]};hp(t)}var jN=R(Q(),1),py=R(D(),1);function hy({children:e,...t}){let a=(0,py.useContext)(ns);t={...a,...t},t.transition=Gl(t.transition,a.transition),t.isStatic=ci(()=>t.isStatic);let o=(0,py.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,jN.jsx)(ns.Provider,{value:o,children:e})}var vy=R(Q(),1);var vf=R(D(),1);var XN=R(D(),1),Ti=(0,XN.createContext)({});var gy=R(D(),1);function YN(e,t){if(bi(e)){let{initial:a,animate:o}=e;return{initial:a===!1||yn(a)?a:void 0,animate:yn(o)?o:void 0}}return e.inherit!==!1?t:{}}function KN(e){let{initial:t,animate:a}=YN(e,(0,gy.useContext)(Ti));return(0,gy.useMemo)(()=>({initial:t,animate:a}),[WN(t),WN(a)])}function WN(e){return Array.isArray(e)?e.join(" "):e}var Sf=R(D(),1);var ZN=R(D(),1);var xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Z0(e,t,a){for(let o in t)!mt(t[o])&&!gp(o,a)&&(e[o]=t[o])}function cj({transformTemplate:e},t){return(0,ZN.useMemo)(()=>{let a=xf();return Wl(a,t,e),Object.assign({},a.vars,a.style)},[t])}function fj(e,t){let a=e.style||{},o={};return Z0(o,a,e),Object.assign(o,cj(e,t)),o}function QN(e,t){let a={},o=fj(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}var JN=R(D(),1);var xy=()=>({...xf(),attrs:{}});function $N(e,t,a,o){let r=(0,JN.useMemo)(()=>{let n=xy();return lp(n,t,yp(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Z0(n,e.style,e),r.style={...n,...r.style}}return r}var dj=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Lp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dj.has(e)}function mj(e,t){return e.startsWith("on")?!Lp(e):t?.(e)??!Lp(e)}function eV(e,t,a,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||mt(e[n])||(mj(n,o)||a===!0&&Lp(n)||!t&&!Lp(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}var tV=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function yf(e){return typeof e!="string"||e.includes("-")?!1:!!(tV.indexOf(e)>-1||/[A-Z]/u.test(e))}function aV(e,t,a,{latestValues:o},r,n=!1,s,i){let u=(s??yf(e)?$N:QN)(t,o,r,e),c=eV(t,typeof e=="string",n,i),d=e!==Sf.Fragment?{...c,...u,ref:a}:{},{children:f}=t,m=(0,Sf.useMemo)(()=>mt(f)?f.get():f,[f]);return(0,Sf.createElement)(e,{...d,children:m})}var Q0=R(D(),1);function pj({scrapeMotionValuesFromProps:e,createRenderState:t},a,o,r){return{latestValues:hj(a,o,r,e),renderState:t()}}function hj(e,t,a,o){let r={},n=o(e,{});for(let f in n)r[f]=ou(n[f]);let{initial:s,animate:i}=e,l=bi(e),u=dp(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let c=a?a.initial===!1:!1;c=c||s===!1;let d=c?i:s;if(d&&typeof d!="boolean"&&!rs(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=Xl(e,f[m]);if(p){let{transitionEnd:y,transition:v,...g}=p;for(let h in g){let x=g[h];if(Array.isArray(x)){let S=c?x.length-1:0;x=x[S]}x!==null&&(r[h]=x)}for(let h in y)r[h]=y[h]}}}return r}var yy=e=>(t,a)=>{let o=(0,Q0.useContext)(Ti),r=(0,Q0.useContext)(di),n=()=>pj(e,t,o,r);return a?n():ci(n)};var oV=yy({scrapeMotionValuesFromProps:eu,createRenderState:xf});var rV=yy({scrapeMotionValuesFromProps:Sp,createRenderState:xy});var nV=Symbol.for("motionComponentSymbol");var su=R(D(),1);function sV(e,t,a){let o=(0,su.useRef)(a);(0,su.useInsertionEffect)(()=>{o.current=a});let r=(0,su.useRef)(null);return(0,su.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let s=o.current;if(typeof s=="function")if(n){let i=s(n);typeof i=="function"&&(r.current=i)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n)},[t])}var no=R(D(),1);var iV=R(D(),1),Sy=(0,iV.createContext)({});function wi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lV(e,t,a,o,r,n){let{visualElement:s}=(0,no.useContext)(Ti),i=(0,no.useContext)(dy),l=(0,no.useContext)(di),u=(0,no.useContext)(ns),c=u.reducedMotion,d=u.skipAnimations,f=(0,no.useRef)(null),m=(0,no.useRef)(!1);o=o||i.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:s,props:a,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:n}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,y=(0,no.useContext)(Sy);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&gj(f.current,a,r,y);let v=(0,no.useRef)(!1);(0,no.useInsertionEffect)(()=>{p&&v.current&&p.update(a,l)});let g=a[np],h=(0,no.useRef)(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return fi(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),fi(()=>{m.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),(0,no.useEffect)(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),h.current=!1),p.enteringChildren=void 0)}),p}function gj(e,t,a,o){let{layoutId:r,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:uV(e.parent)),e.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!s||i&&wi(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function uV(e){if(e)return e.options.allowProjection!==!1?e.projection:uV(e.parent)}function by(e,{forwardMotionProps:t=!1,type:a}={},o,r){o&&GN(o);let n=a?a==="svg":yf(e),s=n?rV:oV;function i(u,c){let d,f={...(0,vf.useContext)(ns),...u,layoutId:xj(u)},{isStatic:m,isValidProp:p}=f,y=KN(u),v=s(u,m);if(!m&&typeof window<"u"){yj(f,o);let g=Sj(f);d=g.MeasureLayout,y.visualElement=lV(e,v,f,r,g.ProjectionNode,n)}return(0,vy.jsxs)(Ti.Provider,{value:y,children:[d&&y.visualElement?(0,vy.jsx)(d,{visualElement:y.visualElement,...f}):null,aV(e,u,sV(v,y.visualElement,c),v,m,t,n,p)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,vf.forwardRef)(i);return l[nV]=e,l}function xj({layoutId:e}){let t=(0,vf.useContext)(Xc).id;return t&&e!==void 0?t+"-"+e:e}function yj(e,t){let a=(0,vf.useContext)(dy).strict}function Sj(e){let t=my(),{drag:a,layout:o}=t;if(!a&&!o)return{};let r={...a,...o};return{MeasureLayout:a?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function cV(e,t){if(typeof Proxy>"u")return by;let a=new Map,o=(n,s)=>by(n,s,e,t),r=(n,s)=>o(n,s);return new Proxy(r,{get:(n,s)=>s==="create"?o:(a.has(s)||a.set(s,by(s,void 0,e,t)),a.get(s))})}var fV=R(D(),1);var dV=(e,t)=>t.isSVG??yf(e)?new vp(t):new xp(t,{allowProjection:e!==fV.Fragment});var Cy=class extends da{constructor(t){super(t),t.animationState||(t.animationState=O0(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();rs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var vj=0,Ly=class extends da{constructor(){super(...arguments),this.id=vj++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:n,custom:s}=this.node.getProps();if(typeof n=="string"||typeof n=="object"&&n!==null&&!Array.isArray(n)){let i=Xo(this.node,n,s);if(i){let{transition:l,transitionEnd:u,...c}=i;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,a(this.id))})}mount(){let{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var mV={animation:{Feature:Cy},exit:{Feature:Ly}};function iu(e){return{point:{x:e.pageX,y:e.pageY}}}var pV=e=>t=>Zl(t)&&e(t,iu(t));function Ei(e,t,a,o){return Sn(e,t,pV(a),o)}var Ry=({current:e})=>e?e.ownerDocument.defaultView:null;var hV=(e,t)=>Math.abs(e-t);function gV(e,t){let a=hV(e.x,t.x),o=hV(e.y,t.y);return Math.sqrt(a**2+o**2)}var xV=new Set(["auto","scroll"]),bf=class{constructor(t,a,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Iy(this.lastRawMoveEventInfo,this.transformPagePoint));let p=J0(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=gV(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;let{point:g}=p;this.history.push({...g,timestamp:gt.now()});let{onStart:h,onMove:x}=this.handlers;y||(h&&h(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Iy(y,this.transformPagePoint),this.hasPendingMove=!0,ze.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:v,onSessionEnd:g,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let x=J0(p.type==="pointercancel"?this.lastMoveEventInfo:Iy(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,x),g&&g(p,x)},!Zl(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=r||window;let l=iu(t),u=Iy(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=It;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=a;f&&f(t,J0(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=Br(Ei(this.contextWindow,"pointermove",this.handlePointerMove,m),Ei(this.contextWindow,"pointerup",this.handlePointerUp,m),Ei(this.contextWindow,"pointercancel",this.handlePointerUp,m)),i&&this.startScrollTracking(i)}startScrollTracking(t){let a=t.parentElement;for(;a;){let o=getComputedStyle(a);(xV.has(o.overflowX)||xV.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let a=this.scrollPositions.get(t);if(!a)return;let o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-a.x,y:r.y-a.y};n.x===0&&n.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),ze.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),To(this.updatePoint)}};function Iy(e,t){return t?{point:t(e.point)}:e}function yV(e,t){return{x:e.x-t.x,y:e.y-t.y}}function J0({point:e},t){return{point:e,delta:yV(e,SV(t)),offset:yV(e,bj(t)),velocity:Cj(t,.1)}}function bj(e){return e[0]}function SV(e){return e[e.length-1]}function Cj(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,o=null,r=SV(e);for(;a>=0&&(o=e[a],!(r.timestamp-o.timestamp>oa(t)));)a--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>oa(t)*2&&(o=e[1]);let n=va(r.timestamp-o.timestamp);if(n===0)return{x:0,y:0};let s={x:(r.x-o.x)/n,y:(r.y-o.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function RV(e,{min:t,max:a},o){return t!==void 0&&e<t?e=o?Ue(t,e,o.min):Math.max(e,t):a!==void 0&&e>a&&(e=o?Ue(a,e,o.max):Math.min(e,a)),e}function vV(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function IV(e,{top:t,left:a,bottom:o,right:r}){return{x:vV(e.x,a,r),y:vV(e.y,t,o)}}function bV(e,t){let a=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,o]=[o,a]),{min:a,max:o}}function TV(e,t){return{x:bV(e.x,t.x),y:bV(e.y,t.y)}}function wV(e,t){let a=.5,o=ra(e),r=ra(t);return r>o?a=dn(t.min,t.max-o,e.min):o>r&&(a=dn(e.min,e.max-r,t.min)),fa(0,1,a)}function EV(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Ty=.35;function AV(e=Ty){return e===!1?e=0:e===!0&&(e=Ty),{x:CV(e,"left","right"),y:CV(e,"top","bottom")}}function CV(e,t,a){return{min:LV(e,t),max:LV(e,a)}}function LV(e,t){return typeof e=="number"?e:e[t]||0}var Lj=new WeakMap,Ey=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=d=>{a&&this.snapToCursor(d),this.stopAnimation()},s=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=v0(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yo(g=>{let h=this.getAxisMotionValue(g).get()||0;if(ja.test(h)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[g];S&&(h=ra(S)*(parseFloat(h)/100))}}this.originPoint[g]=h}),y&&ze.update(()=>y(d,f),!1,!0),sf(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},i=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=Ij(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),v&&ze.update(()=>v(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new bf(t,{onSessionStart:n,onStart:s,onMove:i,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:o,contextWindow:Ry(this.visualElement),element:this.visualElement.current})}stop(t,a){let o=t||this.latestPointerEvent,r=a||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!o)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&ze.postRender(()=>i(o,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){let{drag:r}=this.getProps();if(!o||!wy(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(s=RV(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&wi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=IV(o.layoutBox,t):this.constraints=!1,this.elastic=AV(a),r!==this.constraints&&!wi(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Yo(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=EV(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!wi(t))return!1;let o=t.current;Io(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let n=S0(o,r.root,this.visualElement.getTransformPagePoint()),s=TV(r.layout.layoutBox,n);if(a){let i=a(m0(s));this.hasMutatedConstraints=!!i,i&&(s=up(i))}return s}startAnimation(t){let{drag:a,dragMomentum:o,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Yo(c=>{if(!wy(c,a,this.currentDirection))return;let d=l&&l[c]||{};(s===!0||s===c)&&(d={min:0,max:0});let f=r?200:1e6,m=r?40:1e7,p={type:"inertia",velocity:o?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...n,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let o=this.getAxisMotionValue(t);return sf(this.visualElement,t),o.start(jl(t,o,0,a,this.visualElement,!1))}stopAnimation(){Yo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[a];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:a}){let{drag:o}=this.getProps(),r={x:t,y:a},n=this.visualElement.getTransformPagePoint()?.(r)||r,s=this.visualElement.measureViewportBox();Yo(i=>{if(!wy(i,o,this.currentDirection))return;let l=this.getAxisMotionValue(i),{min:u,max:c}=s[i];l.set((l.get()||0)+n[i]-Ue(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!wi(a)||!o||!this.constraints)return;this.stopAnimation();let r=this.constraints,n={x:0,y:0};Yo(i=>{let l=this.getAxisMotionValue(i).get();n[i]=wV({min:l,max:l},r[i])});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Yo(i=>{let l=this.getAxisMotionValue(i);if(!wy(i,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[i];l.set(Ue(u,c,n[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Lj.set(this.visualElement,this);let t=this.visualElement.current,a=Ei(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&R0(f);c&&d&&!m&&this.start(u)}),o,r=()=>{let{dragConstraints:u}=this.getProps();wi(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=Rj(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ze.read(r);let i=Sn(window,"resize",()=>this.scalePositionWithinConstraints()),l=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Yo(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{i(),a(),s(),l&&l(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=Ty,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function PV(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Rj(e,t,a){let o=$x(e,PV(a)),r=$x(t,PV(a));return()=>{o(),r()}}function wy(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function Ij(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Ay=class extends da{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new Ey(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var $0=e=>(t,a)=>{e&&ze.update(()=>e(t,a),!1,!0)},Py=class extends da{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new bf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ry(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:$0(t),onStart:$0(a),onMove:$0(o),onEnd:(n,s)=>{delete this.session,r&&ze.postRender(()=>r(n,s))}}}mount(){this.removePointerDownListener=Ei(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var DV=R(Q(),1);var Rp=R(D(),1);var eI=!1,tI=class extends Rp.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:r}=this.props,{projection:n}=t;n&&(a.group&&a.group.add(n),o&&o.register&&r&&o.register(n),eI&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ru.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:o,drag:r,isPresent:n}=this.props,{projection:s}=o;return s&&(s.isPresent=n,t.layoutDependency!==a&&s.setOptions({...s.options,layoutDependency:a}),eI=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||ze.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:a}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=a,o.root.didUpdate(),Kl.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:r}=t;eI=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Dy(e){let[t,a]=cy(),o=(0,Rp.useContext)(Xc);return(0,DV.jsx)(tI,{...e,layoutGroup:o,switchLayoutGroup:(0,Rp.useContext)(Sy),isPresent:t,safeToRemove:a})}var MV={pan:{Feature:Py},drag:{Feature:Ay,ProjectionNode:bp,MeasureLayout:Dy}};function OV(e,t,a){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",a==="Start");let r="onHover"+a,n=o[r];n&&ze.postRender(()=>n(t,iu(t)))}var My=class extends da{mount(){let{current:t}=this.node;t&&(this.unmount=b0(t,(a,o)=>(OV(this.node,o,"Start"),r=>OV(this.node,r,"End"))))}unmount(){}};var Oy=class extends da{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Br(Sn(this.node.current,"focus",()=>this.onFocus()),Sn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function kV(e,t,a){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",a==="Start");let r="onTap"+(a==="End"?"":a),n=o[r];n&&ze.postRender(()=>n(t,iu(t)))}var ky=class extends da{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:a,propagate:o}=this.node.props;this.unmount=T0(t,(r,n)=>(kV(this.node,n,"Start"),(s,{success:i})=>kV(this.node,s,i?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:o?.tap===!1})}unmount(){}};var oI=new WeakMap,aI=new WeakMap,Tj=e=>{let t=oI.get(e.target);t&&t(e)},wj=e=>{e.forEach(Tj)};function Ej({root:e,...t}){let a=e||document;aI.has(a)||aI.set(a,{});let o=aI.get(a),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(wj,{root:e,...t})),o[r]}function NV(e,t,a){let o=Ej(t);return oI.set(e,a),o.observe(e),()=>{oI.delete(e),o.unobserve(e)}}var Aj={some:0,all:1},Ny=class extends da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:r="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:Aj[r]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=NV(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(Pj(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Pj({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var VV={inView:{Feature:Ny},tap:{Feature:ky},focus:{Feature:Oy},hover:{Feature:My}};var BV={layout:{ProjectionNode:bp,MeasureLayout:Dy}};var FV={...mV,...VV,...MV,...BV};var rI=cV(FV,dV);var zV=R(D(),1);function lu(){!Jl.current&&mp();let[e]=(0,zV.useState)(Ci.current);return e}var Ca=rI;var so=R(D(),1);var HV="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",_V="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function UV(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var uu=R(Q(),1);function Vy({children:e,as:t="span",duration:a=2.5,className:o}){return(0,uu.jsxs)(uu.Fragment,{children:[(0,uu.jsx)("style",{children:HV}),(0,uu.jsx)(t,{style:UV(a),className:re("inline-block",_V,o),children:e})]})}var GV=R(Q(),1);function qV({children:e="Thinking\u2026",duration:t=1.8,className:a}){return(0,GV.jsx)(Vy,{as:"span",duration:t,className:re("font-medium",a),children:e})}var Cf=[.16,1,.3,1];var jV={type:"spring",stiffness:460,damping:30,mass:.55};var cu={type:"spring",stiffness:360,damping:32,mass:.6};var YV=R(Q(),1);function XV({open:e,openHeight:t="auto",className:a,style:o,transition:r,...n}){let s=lu()??!1;return(0,YV.jsx)(Ca.div,{...n,"aria-hidden":!e,inert:!e,initial:!1,animate:s?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:r??{duration:s?0:e?.22:.14,ease:Cf},className:re("overflow-hidden",a),style:{...o,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var Se=R(Q(),1);function Mj({item:e}){let t=e.status??"complete";return(0,Se.jsxs)("div",{className:"flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:t==="complete"?(0,Se.jsx)(Qn,{className:"size-4",strokeWidth:1.8}):t==="active"?(0,Se.jsxs)("span",{className:"relative grid size-3 place-items-center",children:[(0,Se.jsx)(Ca.span,{className:"absolute inset-0 rounded-full bg-foreground/10",animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY}}),(0,Se.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/60"})]}):(0,Se.jsx)(Lm,{className:"size-3",strokeWidth:1.5})}),(0,Se.jsx)("span",{className:re("min-w-0 flex-1 leading-5",t==="pending"?"text-muted-foreground/55":"text-foreground/90"),children:e.label}),e.meta?(0,Se.jsx)("span",{className:"shrink-0 leading-5 text-muted-foreground/55",children:e.meta}):null]})}function Oj({item:e}){return(0,Se.jsx)("div",{className:"rounded-md px-1.5 py-1 leading-5 text-muted-foreground",children:e.content})}function kj({result:e}){let t=(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-5 shrink-0 place-items-center text-muted-foreground",children:e.icon??(0,Se.jsx)(ai,{className:"size-3",strokeWidth:2})}),(0,Se.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground/90",children:e.title}),e.domain?(0,Se.jsx)("span",{className:"min-w-0 truncate text-muted-foreground/55",children:e.domain}):null]}),a=re("flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors",e.url&&"focus-visible:ring-2 focus-visible:ring-ring");return e.url?(0,Se.jsx)("a",{href:e.url,className:a,children:t}):(0,Se.jsx)("div",{className:a,children:t})}function Nj({item:e}){let t=lu()??!1,a=t?{opacity:1}:{opacity:0,y:6},o={opacity:1,y:0},r=t?{opacity:0}:{opacity:0,y:-3},n=t?{duration:0}:{opacity:{duration:.18,ease:Cf},y:cu,layout:cu};return(0,Se.jsxs)("div",{className:"space-y-0.5",children:[(0,Se.jsxs)("div",{className:"flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground",children:[(0,Se.jsx)(Nr,{"aria-hidden":"true",className:"size-4 shrink-0",strokeWidth:1.7}),(0,Se.jsx)("span",{className:"min-w-0 truncate",children:e.query})]}),e.results?.length?(0,Se.jsx)("div",{className:"space-y-0.5 pl-4",children:(0,Se.jsx)(Ii,{initial:!0,mode:"popLayout",children:e.results.map(s=>(0,Se.jsx)(Ca.div,{layout:"position",initial:a,animate:o,exit:r,transition:n,children:(0,Se.jsx)(kj,{result:s})},s.id))})}):null,(0,Se.jsx)(Ii,{initial:!0,children:e.moreCount?(0,Se.jsxs)(Ca.div,{initial:a,animate:o,exit:r,transition:n,className:"px-1.5 py-1 pl-8 text-muted-foreground/55",children:["+",e.moreCount," more"]},"more-results"):null})]})}function Vj({action:e}){return e==="read"?(0,Se.jsx)(wm,{className:"size-4"}):e==="edit"||e==="write"?(0,Se.jsx)(ri,{className:"size-4"}):e==="run"?(0,Se.jsx)(Vr,{className:"size-4"}):(0,Se.jsx)(si,{className:"size-4"})}function Bj({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1);return(0,Se.jsxs)("div",{className:"flex min-h-8 min-w-0 items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:(0,Se.jsx)(Vj,{action:e.action})}),(0,Se.jsx)("span",{className:"shrink-0 font-medium text-foreground/90",children:t}),(0,Se.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.target}),typeof e.additions=="number"||typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono tabular-nums",children:[typeof e.additions=="number"?(0,Se.jsxs)("span",{className:"text-emerald-500",children:["+",e.additions]}):null,typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"text-rose-500",children:["\u2212",e.deletions]}):null]}):null]})}function Fj({kind:e}){return e==="thinking"?(0,Se.jsx)(ni,{className:"size-4"}):e==="message"?(0,Se.jsx)(Al,{className:"size-4"}):e==="write"?(0,Se.jsx)(ri,{className:"size-4"}):e==="run"?(0,Se.jsx)(Vr,{className:"size-4"}):e==="read"?(0,Se.jsx)(Dm,{className:"size-4"}):(0,Se.jsx)(si,{className:"size-4"})}function zj({item:e}){return(0,Se.jsxs)("div",{className:"grid min-h-8 grid-cols-[1rem_auto_minmax(0,1fr)] items-center gap-2.5 rounded-md px-1.5 py-0.5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 place-items-center text-muted-foreground/70",children:e.icon??(0,Se.jsx)(Fj,{kind:e.kind})}),(0,Se.jsx)("span",{className:"font-medium text-foreground/90",children:e.label}),e.detail?(0,Se.jsx)("span",{className:"min-w-0 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.detail}):(0,Se.jsx)("span",{})]})}function WV({item:e}){return e.type==="text"?(0,Se.jsx)(Oj,{item:e}):e.type==="search"?(0,Se.jsx)(Nj,{item:e}):e.type==="tool"?(0,Se.jsx)(Bj,{item:e}):e.type==="trace"?(0,Se.jsx)(zj,{item:e}):(0,Se.jsx)(Mj,{item:e})}var ma=R(Q(),1);function Hj(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let a=Math.floor(t/60),o=t%60;return o===0?`${a}m`:`${a}m ${o}s`}function _j({open:e,defaultOpen:t,onOpenChange:a}){let[o,r]=(0,so.useState)(t),n=e!==void 0,s=e??o,i=(0,so.useCallback)(l=>{n||r(l),a?.(l)},[n,a]);return[s,i]}function Uj(e){let t=e[0]?.type;return t&&e.every(a=>a.type===t)?t:"mixed"}function qj(e){return e==="search"?"Searching the web\u2026":e==="tool"?"Running tools\u2026":e==="trace"?"Working through the run\u2026":e==="mixed"?"Working through it\u2026":"Thinking\u2026"}function Gj(e,t,a){if(e==="step"||e==="text")return(0,ma.jsxs)(ma.Fragment,{children:["Thought for ",(0,ma.jsx)("span",{className:"tabular-nums",children:Hj(a)})]});if(e==="search")return"Searched the web";if(e==="tool")return`Ran ${t.length} ${t.length===1?"tool":"tools"}`;if(e==="trace"){let o=t.filter(n=>n.type==="trace"&&(n.kind==="thinking"||n.kind==="message")).length,r=t.length-o;return`${r} ${r===1?"tool call":"tool calls"}, ${o} ${o===1?"message":"messages"}`}return`Completed ${t.length} ${t.length===1?"step":"steps"}`}function KV({items:e,contentType:t,status:a="working",duration:o=0,open:r,defaultOpen:n=!1,onOpenChange:s,collapseOnComplete:i=!0,activeLabel:l,summary:u,renderWorkingStatus:c,renderCompletedStatus:d,maxHeight:f=208,className:m,contentClassName:p}){let y=lu()??!1,v=(0,so.useId)(),g=`${v}-trigger`,h=`${v}-content`,x=(0,so.useRef)(null),S=(0,so.useRef)(null),b=(0,so.useRef)(a),[I,L]=(0,so.useState)(0),[C,E]=_j({open:r,defaultOpen:n,onOpenChange:s}),T=a==="working",A=T||C,N=e.length?Uj(e):t??"mixed",P=Math.min(I,Math.max(0,f)),F=T?Math.max(0,f):P,k=I>f,H=T?Math.min(0,F-I):0;(0,so.useLayoutEffect)(()=>{let z=x.current;if(!z)return;let U=()=>L(z.offsetHeight);if(U(),typeof ResizeObserver>"u")return;let X=new ResizeObserver(U);return X.observe(z),()=>X.disconnect()},[]),(0,so.useEffect)(()=>{b.current==="working"&&a==="complete"&&E(!i),b.current=a},[i,E,a]);let q=()=>{let z=!C;E(z),z&&requestAnimationFrame(()=>S.current?.scrollTo({top:0}))},O=l??qj(N),V=u??Gj(N,e,o),w=k?T?"linear-gradient(to bottom, transparent, black 12px)":"linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)":void 0;return(0,ma.jsxs)("div",{"data-state":T?"working":A?"open":"closed","data-content":N,"aria-busy":T,className:re("w-full text-sm",m),children:[T?(0,ma.jsx)("div",{id:g,role:"status",className:"flex h-7 min-w-0 items-center text-muted-foreground",children:c?c({label:O,duration:o}):(0,ma.jsx)(qV,{children:O})}):(0,ma.jsxs)("button",{id:g,type:"button","aria-expanded":A,"aria-controls":h,onClick:q,className:"group flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[(0,ma.jsx)("span",{className:"truncate",children:d?d({summary:V,duration:o}):V}),(0,ma.jsx)(Ca.span,{"aria-hidden":"true",animate:{rotate:A?180:0},transition:y?{duration:0}:jV,className:"inline-flex shrink-0 text-muted-foreground/70 group-hover:text-foreground",children:(0,ma.jsx)($s,{className:"size-3.5"})})]}),(0,ma.jsx)(XV,{id:h,role:"region","aria-labelledby":g,open:A,openHeight:F,children:(0,ma.jsx)("div",{ref:S,className:re("scrollbar-hide pr-1",k&&A&&!T?"overflow-y-auto":"overflow-y-hidden"),style:{height:F,maskImage:w,WebkitMaskImage:w},children:(0,ma.jsx)(Ca.div,{ref:x,role:"list",initial:!1,animate:{y:H},transition:y?{duration:0}:cu,className:re("space-y-0.5 py-2",p),children:(0,ma.jsx)(Ii,{mode:"popLayout",children:e.map(z=>(0,ma.jsx)(Ca.div,{layout:"position",role:"listitem",initial:y?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:y?{opacity:0}:{opacity:0,y:-3},transition:y?{duration:0}:{opacity:{duration:.18,ease:Cf},y:cu,layout:cu},children:(0,ma.jsx)(WV,{item:z})},z.id))})})})})]})}var By=R(D(),1);function Fy(){let e=(0,By.useRef)(null);return(0,By.useEffect)(()=>{let t=e.current;if(!t)return;let a=()=>{t.dataset.fadeTop=String(t.scrollTop>2),t.dataset.fadeBottom=String(t.scrollTop+t.clientHeight<t.scrollHeight-2)};a(),t.addEventListener("scroll",a,{passive:!0});let o=new ResizeObserver(a);return o.observe(t),t.firstElementChild&&o.observe(t.firstElementChild),()=>{t.removeEventListener("scroll",a),o.disconnect()}},[]),e}var ZV=R(Q(),1);function nI({className:e,children:t}){let a=Fy();return(0,ZV.jsx)("div",{ref:a,className:re("scroll-fade overflow-auto",e),children:t})}var o2=R(D(),1);var Rf=R(D(),1);function zy(){return typeof window<"u"}function Wt(e){return Hy(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){var t;return(t=(Hy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hy(e){return zy()?e instanceof Node||e instanceof He(e).Node:!1}function Te(e){return zy()?e instanceof Element||e instanceof He(e).Element:!1}function _e(e){return zy()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function bn(e){return!zy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function du(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=pa(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function QV(e){return/^(table|td|th)$/.test(Wt(e))}function Ip(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var jj=/transform|translate|scale|rotate|perspective|filter/,Xj=/paint|layout|strict|content/,fu=e=>!!e&&e!=="none",sI;function _y(e){let t=Te(e)?pa(e):e;return fu(t.transform)||fu(t.translate)||fu(t.scale)||fu(t.rotate)||fu(t.perspective)||!Uy()&&(fu(t.backdropFilter)||fu(t.filter))||jj.test(t.willChange||"")||Xj.test(t.contain||"")}function JV(e){let t=Wo(e);for(;_e(t)&&!xr(t);){if(_y(t))return t;if(Ip(t))return null;t=Wo(t)}return null}function Uy(){return sI==null&&(sI=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sI}function xr(e){return/^(html|body|#document)$/.test(Wt(e))}function pa(e){return He(e).getComputedStyle(e)}function Tp(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wo(e){if(Wt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||bn(e)&&e.host||Cn(e);return bn(t)?t.host:t}function $V(e){let t=Wo(e);return xr(t)?(e.ownerDocument||e).body:_e(t)&&du(t)?t:$V(t)}function Ai(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=$V(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=He(r);if(n){let i=qy(s);return t.concat(s,s.visualViewport||[],du(r)?r:[],i&&a?Ai(i):[])}else return t.concat(r,Ai(r,[],a))}function qy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Yj=R(D(),1),wp={...Yj};var iI=wp.useInsertionEffect,Wj=iI&&iI!==wp.useLayoutEffect?iI:e=>e();function W(e){let t=at(Kj).current;return t.next=e,Wj(t.effect),t.trampoline}function Kj(){let e={next:void 0,callback:Zj,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Zj(){}var e2=R(D(),1),Qj=()=>{},G=typeof document<"u"?e2.useLayoutEffect:Qj;var Gy=R(D(),1),lI=Gy.createContext(void 0);function Lf(e=!1){let t=Gy.useContext(lI);if(t===void 0&&!e)throw new Error(Pe(16));return t}var t2=R(D(),1);function a2(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:r=0,isNativeButton:n}=e,s=o&&t!==!1,i=o&&t===!1;return{props:t2.useMemo(()=>{let u={onKeyDown(c){a&&t&&c.key!=="Tab"&&c.preventDefault()}};return o||(u.tabIndex=r,!n&&a&&(u.tabIndex=t?r:-1)),(n&&(t||s)||!n&&a)&&(u["aria-disabled"]=a),n&&(!t||i)&&(u.disabled=a),u},[o,a,t,s,i,n,r])}}function ve(e){return e?.ownerDocument||document}function jy(e,t,{detail:a=0}={}){e.dispatchEvent(new(He(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Ko(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:r=!0,composite:n}=e,s=Rf.useRef(null),i=Lf(!0),l=n??i!==void 0,{props:u}=a2({focusableWhenDisabled:a,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),c=Rf.useCallback(()=>{let m=s.current;uI(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);G(c,[c]);let d=Rf.useCallback((m={})=>{let{onClick:p,onMouseDown:y,onKeyUp:v,onKeyDown:g,onPointerDown:h,...x}=m;return Ga({onClick(S){if(t){S.preventDefault();return}p?.(S)},onMouseDown(S){t||y?.(S)},onKeyDown(S){if(t||(Bm(S),g?.(S),S.baseUIHandlerPrevented))return;let b=S.target===S.currentTarget,I=S.currentTarget,L=uI(I),C=!r&&Jj(I),E=b&&(r?L:!C),T=S.key==="Enter",A=S.key===" ",N=I.getAttribute("role"),P=N?.startsWith("menuitem")||N==="option"||N==="gridcell";if(b&&l&&A){if(S.defaultPrevented&&P)return;S.preventDefault(),(!r||L)&&(S.preventBaseUIHandler(),jy(I,S));return}if(!E||r||!A&&!T){b&&C&&A&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),T&&(S.preventBaseUIHandler(),jy(I,S)))},onKeyUp(S){if(!t){if(Bm(S),v?.(S),S.target===S.currentTarget&&r&&l&&uI(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!r&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),jy(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}h?.(S)}},r?{type:"button"}:{role:"button"},u,x)},[t,u,l,r]),f=W(m=>{s.current=m,c()});return{getButtonProps:d,buttonRef:f}}function uI(e){return _e(e)&&e.tagName==="BUTTON"}function Jj(e){return _e(e)&&e.tagName==="A"&&!!e.href}var cI=o2.forwardRef(function(t,a){let{render:o,className:r,disabled:n=!1,focusableWhenDisabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=Ko({disabled:n,focusableWhenDisabled:s,native:i});return $("button",t,{state:{disabled:n},ref:[a,d],props:[u,c]})});var r2=R(Q(),1),$j=jc("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Eo({className:e,variant:t="default",size:a="default",...o}){return(0,r2.jsx)(cI,{"data-slot":"button",className:re($j({variant:t,size:a,className:e})),...o})}var n2=R(Q(),1);function is({className:e,...t}){return(0,n2.jsx)("div",{"data-slot":"skeleton",className:re("animate-pulse rounded-md bg-muted",e),...t})}var Ln=R(D(),1);function Pi(e,t,a){let[o,r]=(0,Ln.useState)(),[n,s]=(0,Ln.useState)(!1),[i,l]=(0,Ln.useState)(0),u=(0,Ln.useRef)(e);u.current=e;let c=(0,Ln.useCallback)(async()=>{if(!document.hidden)try{r(await u.current()),s(!1),l(d=>d+1)}catch{s(!0)}},[]);return(0,Ln.useEffect)(()=>{c();let d=setInterval(c,t);return()=>clearInterval(d)},[t,c,...a]),{data:o,error:n,tick:i,reload:c}}var io=R(Q(),1),Di="size-4";function eX(e){let t=(e.name??"").toLowerCase();return e.kind==="say"?{kind:"message",label:"Said",icon:(0,io.jsx)(Al,{className:Di})}:e.kind==="shell"?{kind:"run",label:"Ran command",icon:(0,io.jsx)(Vr,{className:Di})}:e.kind==="edit"?{kind:"write",label:"Edited",icon:(0,io.jsx)(ri,{className:Di})}:/^(read|cat|view|open)$/.test(t)?{kind:"read",label:"Read",icon:(0,io.jsx)(Tm,{className:Di})}:/grep|search|rg/.test(t)&&!/web/.test(t)?{kind:"tool",label:"Searched",icon:(0,io.jsx)(Nr,{className:Di})}:/glob|list|ls|tree|find/.test(t)?{kind:"tool",label:"Listed files",icon:(0,io.jsx)(Em,{className:Di})}:/web|fetch/.test(t)?{kind:"tool",label:"Fetched",icon:(0,io.jsx)(Am,{className:Di})}:{kind:"tool",label:e.name??"Tool",icon:(0,io.jsx)(si,{className:Di})}}function s2(e){return e.map((t,a)=>{let o=eX(t);return{id:`step-${a}`,type:"trace",kind:o.kind,icon:o.icon,label:(0,io.jsxs)(io.Fragment,{children:[o.label,t.ok===!1&&(0,io.jsx)("span",{className:"ml-1.5 text-xs font-normal text-destructive",children:"failed"}),t.t!=null&&(0,io.jsxs)("span",{className:"ml-1.5 text-xs font-normal tabular-nums text-muted-foreground/60",children:["+",$n(t.t)]})]}),detail:t.text.length>200?`${t.text.slice(0,199)}\u2026`:t.text}})}var De=R(Q(),1);function Ep({title:e,children:t}){return(0,De.jsxs)("section",{className:"space-y-2",children:[(0,De.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}var fI=({children:e,mono:t})=>(0,De.jsx)(nI,{className:re("max-h-60 whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e});function tX({patch:e}){return(0,De.jsx)(nI,{className:"max-h-72 rounded-lg border bg-muted/40",children:(0,De.jsx)("pre",{className:"min-w-max p-3 font-mono text-xs leading-5",children:e.split(`
18
- `).map((t,a)=>(0,De.jsx)("div",{className:re(t.startsWith("+")&&!t.startsWith("+++")&&"bg-success/10 text-success",t.startsWith("-")&&!t.startsWith("---")&&"bg-destructive/10 text-destructive",t.startsWith("@@")&&"text-info"),children:t||" "},a))})})}var i2={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function aX(e,t){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?Ol(Number(t)):e==="cost"?Number(t)?`$${Number(t).toFixed(3)}`:"free":e==="saved"?`~${fn(Number(t))}`:String(t)}function Ap({children:e,tone:t}){return(0,De.jsx)("p",{className:re("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function oX({d:e}){let[t,a]=(0,Xy.useState)(!1),[o,r]=(0,Xy.useState)(!1),[n,s]=(0,Xy.useState)(!1),i=e.state==="running"||e.state==="queued";return(0,De.jsxs)("div",{className:"space-y-5",children:[!/^Review of /.test(e.task)&&(0,De.jsx)(Ep,{title:"Task",children:(0,De.jsx)(fI,{children:e.task})}),(0,De.jsx)(Ep,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,De.jsx)(KV,{items:s2(e.steps),status:i?"working":"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:260,activeLabel:"Working\u2026"}):(0,De.jsx)("p",{className:"text-sm text-muted-foreground",children:i?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,De.jsx)(Ep,{title:"Result",children:(0,De.jsx)(fI,{children:e.answer})}),e.changes.length>0&&(0,De.jsxs)(Ep,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,De.jsx)("div",{className:"space-y-0.5 font-mono text-xs",children:e.changes.map(l=>(0,De.jsxs)("div",{className:"flex gap-2",children:[(0,De.jsx)("b",{className:re("w-3",l.status==="A"&&"text-success",l.status==="M"&&"text-warning",l.status==="D"&&"text-destructive"),children:l.status}),(0,De.jsx)("span",{className:"break-all",children:l.path})]},l.path))}),e.patch&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(Eo,{variant:"ghost",size:"sm",onClick:()=>a(l=>!l),children:t?"Hide the diff":"Show the diff"}),t&&(0,De.jsx)(tX,{patch:e.patch})]})]}),(0,De.jsxs)(Ep,{title:"Details",children:[(0,De.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(i2).map(l=>{let u=e.info[l];return u==null||u===""||u===0&&l!=="cost"?null:(0,De.jsxs)("div",{className:"min-w-0",children:[(0,De.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:i2[l]}),(0,De.jsx)("dd",{className:"break-words text-[13px]",children:aX(l,u)})]},l)})}),e.refs&&(0,De.jsxs)(Ap,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((l,u)=>(0,De.jsxs)(Ap,{children:["Fell back from ",l.target,": ",l.error]},u)),e.warnings.map((l,u)=>(0,De.jsx)(Ap,{children:l},u)),e.verify&&(0,De.jsxs)(Ap,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,De.jsx)(Ap,{tone:"bad",children:e.error}),(0,De.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,De.jsxs)(Eo,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),s(!0),setTimeout(()=>s(!1),1400)},children:[n?(0,De.jsx)(Qn,{}):(0,De.jsx)(Im,{}),n?"Copied":e.id]}),(0,De.jsx)(Eo,{variant:"ghost",size:"sm",onClick:()=>r(l=>!l),children:o?"Hide full report":"Full report"})]}),o&&(0,De.jsx)(fI,{mono:!0,children:e.report})]})]})}function Yy({id:e,live:t}){let{data:a,error:o}=Pi(()=>fr.run(e),t?3e3:6e5,[e,t]);return a?(0,De.jsx)(oX,{d:a}):o?(0,De.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,De.jsxs)("div",{className:"space-y-3",children:[(0,De.jsx)(is,{className:"h-16"}),(0,De.jsx)(is,{className:"h-24"})]})}var En={};Aa(En,{Backdrop:()=>c2,Close:()=>d2,Description:()=>g2,Handle:()=>oh,Popup:()=>pF,Portal:()=>yF,Root:()=>PF,Title:()=>kF,Trigger:()=>zF,Viewport:()=>MF,createHandle:()=>HF});var u2=R(D(),1);var Wy=R(D(),1),dI=Wy.createContext(void 0);function La(e){let t=Wy.useContext(dI);if(!e&&t===void 0)throw new Error(Pe(27));return t}var pu={};Aa(pu,{endingStyle:()=>Pp,startingStyle:()=>mu});var mu="data-starting-style",Pp="data-ending-style";var rX={[mu]:""},nX={[Pp]:""},Xa={transitionStatus(e){return e==="starting"?rX:e==="ending"?nX:null}};var hu={};Aa(hu,{align:()=>uX,anchorHidden:()=>hI,closed:()=>pI,endingStyle:()=>iX,open:()=>mI,side:()=>lX,startingStyle:()=>sX});var mI="data-open",pI="data-closed",sX=mu,iX=Pp,hI="data-anchor-hidden",lX="data-side",uX="data-align";var gu={};Aa(gu,{popupOpen:()=>Ky,pressed:()=>gI});var Ky="data-popup-open",gI="data-pressed";var cX={[Ky]:""},fX={[Ky]:"",[gI]:""},dX={[mI]:""},mX={[pI]:""},pX={[hI]:""},If={open(e){return e?cX:null}},l2={open(e){return e?fX:null}},zr={open(e){return e?dX:mX},anchorHidden(e){return e?pX:null}},Tf={...zr,...Xa};var c2=u2.forwardRef(function(t,a){let{render:o,className:r,style:n,forceRender:s=!1,...i}=t,l=La(),u=l.useState("open"),c=l.useState("nested"),d=l.useState("mounted"),f=l.useState("transitionStatus");return $("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,a],stateAttributesMapping:Tf,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},i],enabled:s||!c})});var f2=R(D(),1);var ne={};Aa(ne,{cancelOpen:()=>UX,chipRemovePress:()=>RX,clearPress:()=>LX,closePress:()=>bX,closeWatcher:()=>NX,decrementPress:()=>wX,disabled:()=>GX,drag:()=>zX,escapeKey:()=>kX,focusOut:()=>OX,imperativeAction:()=>YX,incrementPress:()=>TX,initial:()=>XX,inputBlur:()=>PX,inputChange:()=>EX,inputClear:()=>AX,inputPaste:()=>DX,inputPress:()=>MX,itemPress:()=>vX,keyboard:()=>BX,linkPress:()=>CX,listNavigation:()=>VX,missing:()=>jX,none:()=>hX,outsidePress:()=>SX,pointer:()=>FX,scrub:()=>_X,siblingOpen:()=>qX,swipe:()=>WX,trackPress:()=>IX,triggerFocus:()=>yX,triggerHover:()=>xX,triggerPress:()=>gX,wheel:()=>HX,windowResize:()=>KX});var hX="none",gX="trigger-press",xX="trigger-hover",yX="trigger-focus",SX="outside-press",vX="item-press",bX="close-press",CX="link-press",LX="clear-press",RX="chip-remove-press",IX="track-press",TX="increment-press",wX="decrement-press",EX="input-change",AX="input-clear",PX="input-blur",DX="input-paste",MX="input-press",OX="focus-out",kX="escape-key",NX="close-watcher",VX="list-navigation",BX="keyboard",FX="pointer",zX="drag",HX="wheel",_X="scrub",UX="cancel-open",qX="sibling-open",GX="disabled",jX="missing",XX="initial",YX="imperative-action",WX="swipe",KX="window-resize";function he(e,t,a,o){let r=!1,n=!1,s=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){n=!0},get isCanceled(){return r},get isPropagationAllowed(){return n},trigger:a,...s}}var d2=f2.forwardRef(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,nativeButton:i=!0,...l}=t,u=La(),c=u.useState("open"),{getButtonProps:d,buttonRef:f}=Ko({disabled:s,native:i}),m={disabled:s};function p(y){c&&u.setOpen(!1,he(ne.closePress,y.nativeEvent))}return $("button",t,{state:m,ref:[a,f],props:[{onClick:p},l,d]})});var h2=R(D(),1);var Zy=R(D(),1);var m2=0;function ZX(e,t="mui"){let[a,o]=Zy.useState(e),r=e||a;return Zy.useEffect(()=>{a==null&&(m2+=1,o(`${t}-${m2}`))},[a,t]),r}var p2=wp.useId;function Mi(e,t){if(p2!==void 0){let a=p2();return e??(t?`${t}-${a}`:a)}return ZX(e,t)}function Tt(e){return Mi(e,"base-ui")}var g2=h2.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,l=La(),u=Tt(s);return l.useSyncedValueWithCleanup("descriptionElementId",u),$("p",t,{ref:a,props:[{id:u},i]})});var dF=R(D(),1);var lo=R(D(),1);var x2=R(D(),1);function wf(e){x2.useEffect(e,Ro)}var Dp=0,Ya=class e{static create(){return new e}currentId=Dp;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Dp,a()},t)}isStarted(){return this.currentId!==Dp}clear=()=>{this.currentId!==Dp&&(clearTimeout(this.currentId),this.currentId=Dp)};disposeEffect=()=>this.clear};function Ze(){let e=at(Ya.create).current;return wf(e.disposeEffect),e}var ot={};Aa(ot,{engine:()=>bI,env:()=>LI,mediaQuery:()=>RI,os:()=>SI,screenReader:()=>CI});var SI={};Aa(SI,{android:()=>v2,apple:()=>yI,ios:()=>xI,linux:()=>t9,mac:()=>b2,windows:()=>e9});function QX(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:JX,platform:$X,maxTouchPoints:y2}=QX(),xu=JX.toLowerCase(),yu=$X.toLowerCase();var xI=/^i(os$|p)/.test(yu)||yu==="macintel"&&y2>1,S2="android",v2=yu===S2||xu.includes(S2),b2=!xI&&yu.startsWith("mac"),e9=yu.startsWith("win"),t9=!v2&&/^(linux|chrome os)/.test(yu),yI=b2||xI;var bI={};Aa(bI,{blink:()=>o9,gecko:()=>a9,webkit:()=>vI});var vI=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),a9=!vI&&xu.includes("firefox"),o9=!vI&&xu.includes("chrom");var CI={};Aa(CI,{voiceOver:()=>r9});var r9=yI;var LI={};Aa(LI,{jsdom:()=>n9});var n9=/jsdom|happydom/.test(xu);var RI={};Aa(RI,{iOS:()=>s9});var s9="@supports (-webkit-touch-callout: none)";function Ao(e){e.preventDefault(),e.stopPropagation()}function C2(e){return"nativeEvent"in e}function Oi(e){return e.pointerType===""&&e.isTrusted?!0:ot.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ef(e){return ot.env.jsdom?!1:!ot.os.android&&e.width===0&&e.height===0||ot.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Zo(e,t){let a=["mouse","pen"];return t||a.push("",void 0),a.includes(e)}function L2(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function zt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ue(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&bn(a)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function $e(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var Mp="data-base-ui-focusable";var II="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Op="ArrowLeft",kp="ArrowRight",TI="ArrowUp",Qy="ArrowDown";var tge=gu.popupOpen,Np="data-trigger-disabled";function ki(e,t){if(!Te(e))return!1;let a=e;if(t.hasElement(a))return!a.hasAttribute(Np);for(let[,o]of t.entries())if(ue(o,a))return!o.hasAttribute(Np);return!1}function Jy(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function I2(e){return e.matches("html,body")}function Su(e){return _e(e)&&e.matches(II)}function wI(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${II}`)!=null}function Vp(e){return e?e.getAttribute("role")==="combobox"&&Su(e):!1}function T2(e){if(!e||ot.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function vu(e){return e?e.hasAttribute(Mp)?e:e.querySelector(`[${Mp}]`)||e:null}function i9(e,t){return t!=null&&!Zo(t)?0:typeof e=="function"?e():e}function Hr(e,t,a){let o=i9(e,a);return typeof o=="number"?o:o?.[t]}function EI(e){return typeof e=="function"?e():e}function $y(e,t){return t||e==="click"||e==="mousedown"}function w2(e){return e?.includes("mouse")&&e!=="mousedown"}var E2=R(Q(),1),A2=lo.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ya,currentIdRef:{current:null},currentContextRef:{current:null}});function l9(e,t){e.current=t.current}function AI(e){let{children:t,delay:a,timeoutMs:o=0}=e,r=lo.useRef(a),n=lo.useRef(a),s=lo.useRef(null),i=lo.useRef(null),l=Ze();return G(()=>{if(n.current=a,!s.current){r.current=a;return}r.current={open:Hr(r.current,"open"),close:Hr(a,"close")}},[a,s,r,n]),(0,E2.jsx)(A2.Provider,{value:lo.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:n,currentIdRef:s,timeoutMs:o,currentContextRef:i,timeout:l}),[o,l]),children:t})}function PI(e,t={open:!1}){let{open:a}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),n=lo.useContext(A2),{currentIdRef:s,delayRef:i,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=n,[m,p]=lo.useState(!1),y=lo.useRef(a);return G(()=>{y.current=a},[a]),G(()=>{function v(){c.current?.setIsInstantPhase(!1),s.current=null,c.current=null,i.current=u.current,f.clear()}if(s.current&&!a&&s.current===r){if(p(!1),l){let g=r;return f.start(l,()=>{o.select("open")||s.current&&s.current!==g||v()}),()=>{(y.current||s.current!==g)&&f.clear()}}v()}},[a,r,s,i,l,u,c,f,o]),G(()=>{if(!a)return;let v=c.current,g=s.current;f.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:p},s.current=r,i.current={open:0,close:Hr(u.current,"close")},g!==null&&g!==r?(p(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,he(ne.none))):(p(!1),v?.setIsInstantPhase(!1))},[a,r,o,s,i,u,c,f]),G(()=>()=>{if(s.current===r){if(c.current=null,!y.current)return;s.current=null,l9(i,u),f.clear()}},[c,s,i,r,u,f]),lo.useMemo(()=>({activeIdRef:s,hasProvider:d,delayRef:i,isInstantPhase:m}),[s,d,i,m])}var Za=R(D(),1);function Le(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}function Wa(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];a&&a()}}}function pt(e){let t=at(u9,e).current;return t.next=e,G(t.effect),t}function u9(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var eS=null,Lge=globalThis.requestAnimationFrame,DI=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let a=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<a.length;r+=1)a[r]?.(t)};request(t){let a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){let a=t-this.startId;a<0||a>=this.callbacks.length||this.callbacks[a]!==null&&(this.callbacks[a]=null,this.callbacksCount-=1)}},tS=new DI;var yr=class e{static create(){return new e}static request(t){return tS.request(t)}static cancel(t){return tS.cancel(t)}currentId=eS;request(t){this.cancel(),this.currentId=tS.request(()=>{this.currentId=eS,t()})}cancel=()=>{this.currentId!==eS&&(tS.cancel(this.currentId),this.currentId=eS)};disposeEffect=()=>this.cancel};function uo(){let e=at(yr.create).current;return wf(e.disposeEffect),e}var aS=R(D(),1);var P2={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Af={...P2,position:"fixed",top:0,left:0},D2={...P2,position:"absolute"};var M2=R(Q(),1),Pf=aS.forwardRef(function(t,a){let[o,r]=aS.useState();return G(()=>{ot.screenReader.voiceOver&&ot.engine.webkit&&r("button")},[]),(0,M2.jsx)("span",{...t,ref:a,style:Af,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});var Ni=Math.min,_r=Math.max,Vi=Math.round,Fp=Math.floor,Rn=e=>({x:e,y:e}),c9={left:"right",right:"left",bottom:"top",top:"bottom"};function rS(e,t,a){return _r(e,Ni(t,a))}function In(e,t){return typeof e=="function"?e(t):e}function Ka(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function nS(e){return e==="x"?"y":"x"}function zp(e){return e==="y"?"height":"width"}function Po(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Hp(e){return nS(Po(e))}function N2(e,t,a){a===void 0&&(a=!1);let o=Sr(e),r=Hp(e),n=zp(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Bp(s)),[s,Bp(s)]}function V2(e){let t=Bp(e);return[oS(e),t,oS(t)]}function oS(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var O2=["left","right"],k2=["right","left"],f9=["top","bottom"],d9=["bottom","top"];function m9(e,t,a){switch(e){case"top":case"bottom":return a?t?k2:O2:t?O2:k2;case"left":case"right":return t?f9:d9;default:return[]}}function B2(e,t,a,o){let r=Sr(e),n=m9(Ka(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(oS)))),n}function Bp(e){let t=Ka(e);return c9[t]+e.slice(t.length)}function p9(e){var t,a,o,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function sS(e){return typeof e!="number"?p9(e):{top:e,right:e,bottom:e,left:e}}function ls(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Bi(e,t){return t<0||t>=e.length}function bu(e,t){return vr(e.current,{disabledIndices:t})}function Df(e,t){return vr(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function vr(e,{startingIndex:t=-1,decrement:a=!1,disabledIndices:o,amount:r=1}={}){let n=t;do n+=a?-r:r;while(n>=0&&n<=e.length-1&&us(e,n,o));return n}function us(e,t,a){if(typeof a=="function"?a(t):a?.includes(t)??!1)return!0;let r=e[t];return r?!Cu(r)||r.matches(":disabled")?!0:!a&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function h9(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Cu(e,t=e?pa(e):null){return!e||!e.isConnected||!t||h9(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var g9='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function x9(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return bn(a)?a.host:null}function OI(e){for(let t of Array.from(e.children))if(Wt(t)==="summary")return t;return null}function y9(e,t){let a=OI(t);return!!a&&(e===a||ue(a,e))}function F2(e){let t=e?Wt(e):"";return e!=null&&e.matches(g9)&&(t!=="summary"||e.parentElement!=null&&Wt(e.parentElement)==="details"&&OI(e.parentElement)===e)&&(t!=="details"||OI(e)==null)&&(t!=="input"||e.type!=="hidden")}function z2(e){if(!F2(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=x9(t)){let a=t!==e,o=Wt(t)==="slot";if(t.hasAttribute("inert")||a&&Wt(t)==="details"&&!t.open&&!y9(e,t)||t.hasAttribute("hidden")||!o&&!S9(t,a))return!1}return!0}function S9(e,t){let a=pa(e);return t?a.display!=="none":Cu(e,a)}function H2(e){let t=e.tabIndex;if(t<0){let a=Wt(e);if(a==="details"||a==="audio"||a==="video"||_e(e)&&e.isContentEditable)return 0}return t}function MI(e){if(Wt(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function v9(e,t){let a=MI(e);if(!a)return!0;let o=t.find(r=>{let n=MI(r);return n?.name===a.name&&n.form===a.form&&n.checked});return o?o===a:t.find(r=>{let n=MI(r);return n?.name===a.name&&n.form===a.form})===a}function _2(e){if(_e(e)&&Wt(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return _e(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function U2(e,t){_2(e).forEach(a=>{F2(a)&&t.push(a),U2(a,t)})}function q2(e,t,a){_2(e).forEach(o=>{_e(o)&&o.matches(t)&&a.push(o),q2(o,t,a)})}function iS(e){return z2(e)&&H2(e)>=0}function kI(e){let t=[];return U2(e,t),t.filter(z2)}function _p(e){let t=kI(e);return t.filter(a=>H2(a)>=0&&v9(a,t))}function G2(e,t){let a=_p(e),o=a.length;if(o===0)return;let r=zt(ve(e)),n=a.indexOf(r),s=n===-1?t===1?0:o-1:n+t;return a[s]}function lS(e){return G2(ve(e).body,1)||e}function uS(e){return G2(ve(e).body,-1)||e}function Lu(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!ue(a,o)}function j2(e){_p(e).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function NI(e){let t=[];q2(e,"[data-tabindex]",t),t.forEach(a=>{let o=a.dataset.tabindex;delete a.dataset.tabindex,o?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")})}function br(e,t,a=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!a||r.context?.open?[r]:[],...br(e,r.id,a)])}function VI(e,t){let a=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){let r=e.find(n=>n.id===o);o=r?.parentId,r&&(a=a.concat(r))}return a}function cs(e){return`data-base-ui-${e}`}var cS=0;function Mf(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(cS);function n(){r&&!r()||e?.focus({preventScroll:a})}if(o)return n(),Ne;let s=requestAnimationFrame(n);return cS=s,()=>{cS===s&&(cancelAnimationFrame(s),cS=0)}}var BI={inert:new WeakMap,"aria-hidden":new WeakMap},X2="data-base-ui-inert",zI={inert:new WeakSet,"aria-hidden":new WeakSet},Up=new WeakMap,FI=0;function b9(e){return zI[e]}function Z2(e){return e?bn(e)?e.host:Z2(e.parentNode):null}var Y2=(e,t)=>t.map(a=>{if(e.contains(a))return a;let o=Z2(a);return e.contains(o)?o:null}).filter(a=>a!=null),W2=e=>{let t=new Set;return e.forEach(a=>{let o=a;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},K2=(e,t,a)=>{let o=[],r=n=>{!n||a.has(n)||Array.from(n.children).forEach(s=>{Wt(s)!=="script"&&(t.has(s)?r(s):o.push(s))})};return r(e),o};function C9(e,t,a,o,{mark:r=!0}){let n=null;o?n="inert":a&&(n="aria-hidden");let s=null,i=null,l=Y2(t,e),u=r?K2(t,W2(l),new Set(l)):[],c=[],d=[];if(n){let f=BI[n],m=b9(n);i=m,s=f;let p=Y2(t,Array.from(t.querySelectorAll("[aria-live]"))),y=l.concat(p);K2(t,W2(y),new Set(y)).forEach(g=>{let h=g.getAttribute(n),x=h!==null&&h!=="false",S=(f.get(g)||0)+1;f.set(g,S),c.push(g),S===1&&x&&m.add(g),x||g.setAttribute(n,n==="inert"?"":"true")})}return r&&u.forEach(f=>{let m=(Up.get(f)||0)+1;Up.set(f,m),d.push(f),m===1&&f.setAttribute(X2,"")}),FI+=1,()=>{s&&c.forEach(f=>{let p=(s.get(f)||0)-1;s.set(f,p),p||(!i?.has(f)&&n&&f.removeAttribute(n),i?.delete(f))}),r&&d.forEach(f=>{let m=(Up.get(f)||0)-1;Up.set(f,m),m||f.removeAttribute(X2)}),FI-=1,FI||(BI.inert=new WeakMap,BI["aria-hidden"]=new WeakMap,zI.inert=new WeakSet,zI["aria-hidden"]=new WeakSet,Up=new WeakMap)}}function HI(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:r=!0}=t,n=ve(e[0]).body;return C9(e,n,a,o,{mark:r})}var At=R(D(),1),_I=R(Wr(),1);var Q2={style:{transition:"none"}},fS="data-base-ui-click-trigger",L9="data-base-ui-swipe-ignore",R9="data-swipe-ignore",jge=`[${L9}]`,Xge=`[${R9}]`,J2={fallbackAxisSide:"none"},$2={fallbackAxisSide:"end"},eB={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Ru=R(Q(),1),tB=At.createContext(null),UI=()=>At.useContext(tB),I9=cs("portal");function dS(e={}){let{ref:t,container:a,componentProps:o=We,elementProps:r}=e,n=Mi(),i=UI()?.portalNode,[l,u]=At.useState(null),[c,d]=At.useState(null),f=W(v=>{v!==null&&d(v)}),m=At.useRef(null);G(()=>{if(a===null){m.current&&(m.current=null,d(null),u(null));return}let v=(a&&(Hy(a)?a:a.current))??i??document.body;if(v==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==v&&(m.current=v,d(null),u(v))},[a,i]);let p=$("div",o,{ref:[t,f],props:[{id:n,[I9]:""},r]}),y=l&&p?_I.createPortal(p,l):null;return{node:c,nodeId:At.isValidElement(p)?p.props.id:void 0,subtree:y}}var qp=At.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,container:i,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=dS({container:i,ref:a,componentProps:t,elementProps:u}),m=At.useRef(null),p=At.useRef(null),y=At.useRef(null),v=At.useRef(null),[g,h]=At.useState(null),x=At.useRef(!1),S=g?.modal,b=g?.open,I=!!g&&!g.modal&&g.open&&!!c;At.useEffect(()=>{if(!c||S)return;function C(E){c&&E.relatedTarget&&Lu(E)&&(E.type==="focusin"?x.current&&(NI(c),x.current=!1):(j2(c),x.current=!0))}return Wa(Le(c,"focusin",C,!0),Le(c,"focusout",C,!0))},[c,S]),G(()=>{!c||b!==!0||!x.current||(NI(c),x.current=!1)},[b,c]);let L=At.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:y,afterInsideRef:v,portalNode:c,setFocusManagerState:h}),[c]);return(0,Ru.jsxs)(At.Fragment,{children:[f,(0,Ru.jsxs)(tB.Provider,{value:L,children:[I&&c&&(0,Ru.jsx)(Pf,{"data-type":"outside",ref:m,onFocus:C=>{if(Lu(C,c))y.current?.focus();else{let E=g?g.domReference:null;uS(E)?.focus()}}}),I&&c&&(0,Ru.jsx)("span",{role:l,"aria-owns":d,style:eB}),c&&_I.createPortal(s,c),I&&c&&(0,Ru.jsx)(Pf,{"data-type":"outside",ref:p,onFocus:C=>{if(Lu(C,c))v.current?.focus();else{let E=g?g.domReference:null;lS(E)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,he(ne.focusOut,C.nativeEvent))}}})]})]})});var Iu=R(D(),1);function aB(){let e=new Map;return{emit(t,a){e.get(t)?.forEach(o=>o(a))},on(t,a){e.has(t)||e.set(t,new Set),e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var T9=R(Q(),1),w9=Iu.createContext(null),E9=Iu.createContext(null),Fi=()=>Iu.useContext(w9)?.id||null,Cr=e=>{let t=Iu.useContext(E9);return e??t};function Ur(e){return e==null?e:"current"in e?e.current:e}var Gp=R(Q(),1);function A9(e,t){let a=He($e(e));return e instanceof a.KeyboardEvent?"keyboard":e instanceof a.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof a.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var oB=20,zi=[];function qI(){zi=zi.filter(e=>e.deref()?.isConnected)}function rB(e){qI(),e&&Wt(e)!=="body"&&(zi.push(new WeakRef(e)),zi.length>oB&&(zi=zi.slice(-oB)))}function nB(){return qI(),zi[zi.length-1]?.deref()}function P9(e){return e?iS(e)?e:_p(e)[0]||e:null}function sB(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let a=kI(e).filter(r=>{let n=r.getAttribute("data-tabindex")||"";return iS(r)||r.hasAttribute("data-tabindex")&&!n.startsWith("-")}),o=e.getAttribute("tabindex");a.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function jp(e){let{context:t,children:a,disabled:o=!1,initialFocus:r=!0,returnFocus:n=!0,restoreFocus:s=!1,modal:i=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,y="rootStore"in t?t.rootStore:t,v=y.useState("open"),g=y.useState("domReferenceElement"),h=y.useState("floatingElement"),{events:x,dataRef:S}=y.context,b=W(()=>S.current.floatingContext?.nodeId),I=r===!1,L=Vp(g)&&I,C=pt(r),E=pt(n),T=pt(u),A=pt(v),N=Cr(m),P=UI(),F=Za.useRef(!1),k=Za.useRef(!1),H=Za.useRef(!1),q=Za.useRef(null),O=Za.useRef(""),V=Za.useRef(""),w=Za.useRef(null),z=Za.useRef(null),U=dr(w,f,P?.beforeInsideRef),X=dr(z,P?.afterInsideRef),M=Ze(),_=Ze(),B=uo(),J=P!=null,Y=vu(h),te=W((ee=Y)=>ee?_p(ee):[]),ie=W(()=>p?.().filter(ee=>ee!=null)??[]);Za.useEffect(()=>{if(o||!i)return;function ee(me){me.key==="Tab"&&ue(Y,zt(ve(Y)))&&te().length===0&&!L&&Ao(me)}let ae=ve(Y);return Le(ae,"keydown",ee)},[o,Y,i,L,te]),Za.useEffect(()=>{if(o||!v)return;let ee=ve(Y);function ae(){H.current=!1}function me(we){let pe=$e(we),Re=ie(),le=ue(h,pe)||ue(g,pe)||ue(P?.portalNode,pe)||Re.some(Ie=>Ie===pe||ue(Ie,pe));H.current=!le,V.current=we.pointerType||"keyboard",pe?.closest(`[${fS}]`)&&(k.current=!0,_.start(0,()=>{k.current=!1}))}function ge(){V.current="keyboard"}return Wa(Le(ee,"pointerdown",me,!0),Le(ee,"pointerup",ae,!0),Le(ee,"pointercancel",ae,!0),Le(ee,"keydown",ge,!0),ae)},[o,h,g,Y,v,P,_,ie]),Za.useEffect(()=>{if(o||!l)return;let ee=ve(Y);function ae(){k.current=!0,_.start(0,()=>{k.current=!1})}function me(Re){let le=$e(Re);iS(le)&&(q.current=le)}function ge(Re){let le=Re.relatedTarget,Ie=Re.currentTarget,Ve=$e(Re);i&&le==null&&Ve!=null&&ue(h,Ve)&&rB(Ve),queueMicrotask(()=>{let Me=b(),ut=y.context.triggerElements,oe=ie(),fe=le?.hasAttribute(cs("focus-guard"))&&[w.current,z.current,P?.beforeInsideRef.current,P?.afterInsideRef.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,Ur(d),Ur(c)].includes(le),K=!(ue(g,le)||ue(h,le)||ue(le,h)||ue(P?.portalNode,le)||oe.some(j=>j===le||ue(j,le))||ut.hasMatchingElement(j=>ue(j,le))||fe||N&&(br(N.nodesRef.current,Me).find(j=>ue(j.context?.elements.floating,le)||ue(j.context?.elements.domReference,le))||VI(N.nodesRef.current,Me).find(j=>[j.context?.elements.floating,vu(j.context?.elements.floating)].includes(le)||j.context?.elements.domReference===le)));if(Ie===g&&Y&&sB(Y),s&&Ie!==g&&!Cu(Ve)&&zt(ee)===ee.body){if(_e(Y)&&(Y.focus(),s==="popup")){B.request(()=>{Y.focus()});return}let j=te(),se=q.current,Be=(se&&j.includes(se)?se:null)||j[j.length-1]||Y;_e(Be)&&Be.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(L||!i)&&le&&K&&!k.current&&(L||le!==nB())&&(F.current=!0,y.setOpen(!1,he(ne.focusOut,Re)))})}function we(){H.current||(S.current.insideReactTree=!0,M.start(0,()=>{S.current.insideReactTree=!1}))}let pe=_e(g)?g:null;if(!(!h&&!pe))return Wa(pe&&Le(pe,"focusout",ge),pe&&Le(pe,"pointerdown",ae),h&&Le(h,"focusin",me),h&&Le(h,"focusout",ge),h&&P&&Le(h,"focusout",we,!0))},[o,g,h,Y,i,N,P,y,l,s,te,L,b,S,M,_,B,c,d,ie]),Za.useEffect(()=>{if(o||!h||!v)return;let ee=Array.from(P?.portalNode?.querySelectorAll(`[${cs("portal")}]`)||[]),me=(N?VI(N.nodesRef.current,b()):[]).find(Ie=>Vp(Ie.context?.elements.domReference||null))?.context?.elements.domReference,we=[...[h,...ee,w.current,z.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,...ie()],me,Ur(d),Ur(c),L?g:null].filter(Ie=>Ie!=null),pe=HI(we,{ariaHidden:i||L,mark:!1}),Re=[h,...ee].filter(Ie=>Ie!=null),le=HI(Re);return()=>{le(),pe()}},[v,o,g,h,i,P,L,N,b,c,d,ie]),G(()=>{if(!v||o||!_e(Y))return;O.current="",V.current="";let ee=ve(Y),ae=zt(ee);queueMicrotask(()=>{let me=C.current,ge=typeof me=="function"?me(T.current||""):me;if(ge===void 0||ge===!1||ue(Y,ae))return;let pe=null,Re=()=>(pe==null&&(pe=te(Y)),pe[0]||Y),le;ge===!0||ge===null?le=Re():le=Ur(ge),le=le||Re();let Ie=ue(Y,zt(ee));Mf(le,{preventScroll:le===Y,shouldFocus(){if(!A.current)return!1;if(Ie)return!0;let Ve=zt(ee);return!(Ve!==le&&ue(Y,Ve))}})})},[o,v,Y,te,C,T,A]),G(()=>{if(o||!Y)return;let ee=ve(Y),ae=zt(ee),me=T.current==null;rB(ae);function ge(pe){if(pe.open||(O.current=A9(pe.nativeEvent,V.current)),pe.reason===ne.triggerHover&&pe.nativeEvent.type==="mouseleave"&&(F.current=!0),pe.reason===ne.outsidePress)if(pe.nested)F.current=!1;else if(Oi(pe.nativeEvent)||Ef(pe.nativeEvent))F.current=!1;else{let Re=!1;ve(Y).createElement("div").focus({get preventScroll(){return Re=!0,!1}}),Re?F.current=!1:F.current=!0}}x.on("openchange",ge);function we(pe){let Re=E.current,le=typeof Re=="function"?Re(pe):Re;if(le===void 0||le===!1)return null;le===null&&(le=!0);let Ie=g?.isConnected?g:null,Ve=ae?.isConnected&&Wt(ae)!=="body"?ae:null,Me=me?Ve||Ie:Ie||Ve;return Me||(Me=nB()||null),typeof le=="boolean"?Me:Ur(le)||Me||null}return()=>{x.off("openchange",ge);let pe=zt(ee),Re=ie(),le=ue(h,pe)||Re.some(ut=>ut===pe||ue(ut,pe))||N&&br(N.nodesRef.current,b(),!1).some(ut=>ue(ut.context?.elements.floating,pe)),Ie=E.current,Ve=O.current,Me=we(Ve);queueMicrotask(()=>{let ut=P9(Me),oe=typeof Ie!="boolean";if(Ie&&!F.current&&_e(ut)&&(!(!oe&&ut!==pe&&pe!==ee.body)||le)){let fe={preventScroll:!0};Ve==="keyboard"&&(fe.focusVisible=!0),ut.focus(fe)}F.current=!1})}},[o,h,Y,E,T,x,N,g,b,ie]),G(()=>{if(!ot.engine.webkit||v||!h)return;let ee=zt(ve(h));!_e(ee)||!Su(ee)||ue(h,ee)&&ee.blur()},[v,h]),G(()=>{if(!(o||!P))return P.setFocusManagerState({modal:i,closeOnFocusOut:l,open:v,onOpenChange:y.setOpen,domReference:g}),()=>{P.setFocusManagerState(null)}},[o,P,i,v,y,l,g]),G(()=>{if(!(o||!Y))return sB(Y),()=>{queueMicrotask(qI)}},[o,Y]);let ce=!o&&(i?!L:!0)&&(J||i);return(0,Gp.jsxs)(Za.Fragment,{children:[ce&&(0,Gp.jsx)(Pf,{"data-type":"inside",ref:U,onFocus:ee=>{if(i){let ae=te();Mf(ae[ae.length-1])}else P?.portalNode&&(F.current=!1,Lu(ee,P.portalNode)?lS(g)?.focus():Ur(d??P.beforeOutsideRef)?.focus())}}),a,ce&&(0,Gp.jsx)(Pf,{"data-type":"inside",ref:X,onFocus:ee=>{i?Mf(te()[0]):P?.portalNode&&(l&&(F.current=!0),Lu(ee,P.portalNode)?uS(g)?.focus():Ur(c??P.afterOutsideRef)?.focus())}})]})}var Xp=R(D(),1);function Yp(e,t={}){let{enabled:a=!0,event:o="click",toggle:r=!0,ignoreMouse:n=!1,stickIfOpen:s=!0,touchOpenDelay:i=0,reason:l=ne.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=Xp.useRef(void 0),f=uo(),m=Ze(),p=Xp.useMemo(()=>{function y(g,h,x,S){let b=he(l,h,x);g&&S==="touch"&&i>0?m.start(i,()=>{u.setOpen(!0,b)}):u.setOpen(g,b)}function v(g,h,x){let S=c.current.openEvent,b=u.select("domReferenceElement")!==h;return g&&b||!g||!r?!0:S&&s?!x(S.type):!1}return{onPointerDown(g){d.current=Zo(g.pointerType,!0)&&Ef(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let h=d.current,x=g.nativeEvent,S=u.select("open");if(g.button!==0||o==="click"||Zo(h,!0)&&n)return;let b=v(S,g.currentTarget,C=>C==="click"||C==="mousedown"),I=$e(x);if(Su(I)){y(b,x,I,h);return}let L=g.currentTarget;f.request(()=>{y(b,x,L,h)})},onClick(g){if(o==="mousedown-only")return;let h=d.current;if(o==="mousedown"&&h){d.current=void 0;return}if(Zo(h,!0)&&n)return;let x=u.select("open"),S=v(x,g.currentTarget,b=>b==="click"||b==="mousedown"||b==="keydown"||b==="keyup");y(S,g.nativeEvent,g.currentTarget,h)},onKeyDown(){d.current=void 0}}},[c,o,n,l,u,s,r,f,m,i]);return Xp.useMemo(()=>a?{reference:p}:We,[a,p])}var Do=R(D(),1);function D9(e,t){let a=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let n=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",i=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=n.width,c=n.height,d=n.x,f=n.y;return a==null&&t.x&&s&&(a=n.x-t.x),o==null&&t.y&&i&&(o=n.y-t.y),d-=a||0,f-=o||0,u=0,c=0,!r||l?(u=t.axis==="y"?n.width:0,c=t.axis==="x"?n.height:0,d=s&&t.x!=null?t.x:d,f=i&&t.y!=null?t.y:f):r&&!l&&(c=t.axis==="x"?n.height:c,u=t.axis==="y"?n.width:u),r=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function iB(e){return e!=null&&e.clientX!=null}function GI(e,t={}){let{enabled:a=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("open"),s=r.useState("floatingElement"),i=r.useState("domReferenceElement"),l=r.context.dataRef,u=Do.useRef(!1),c=Do.useRef(null),[d,f]=Do.useState(),[m,p]=Do.useState([]),y=W(S=>{r.set("positionReference",S)}),v=W((S,b,I)=>{u.current||l.current.openEvent&&!iB(l.current.openEvent)||r.set("positionReference",D9(I??i,{x:S,y:b,axis:o,dataRef:l,pointerType:d}))}),g=W(S=>{n?c.current||(v(S.clientX,S.clientY,S.currentTarget),p([])):v(S.clientX,S.clientY,S.currentTarget)}),h=Zo(d)?s:n;Do.useEffect(()=>{if(!a){y(i);return}if(!h)return;function S(){c.current?.(),c.current=null}let b=He(s);function I(L){let C=$e(L);ue(s,C)?S():v(L.clientX,L.clientY)}return!l.current.openEvent||iB(l.current.openEvent)?c.current=Le(b,"mousemove",I):y(i),S},[h,a,s,l,i,r,v,y,m]),Do.useEffect(()=>()=>{r.set("positionReference",null)},[r]),Do.useEffect(()=>{a&&!s&&(u.current=!1)},[a,s]),Do.useEffect(()=>{!a&&n&&(u.current=!0)},[a,n]);let x=Do.useMemo(()=>{function S(b){f(b.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:g,onMouseEnter:g}},[g]);return Do.useMemo(()=>a?{reference:x,trigger:x}:{},[a,x])}var co=R(D(),1);function M9(){return!1}function O9(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Tu(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:n="sloppy",referencePress:s=M9,bubbles:i,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=Cr(l),y=W(typeof r=="function"?r:()=>!1),v=typeof r=="function"?y:r,g=v!==!1,h=W(()=>n),{escapeKey:x,outsidePress:S}=O9(i),b=co.useRef(!1),I=co.useRef(!1),L=co.useRef(!1),C=co.useRef(!1),E=co.useRef(!1),T=co.useRef(""),A=co.useRef(null),N=Ze(),P=Ze(),F=W(()=>{P.clear(),f.current.insideReactTree=!1}),k=W(M=>{let _=f.current.floatingContext?.nodeId;return(p?br(p.nodesRef.current,_):[]).some(J=>J.context?.open&&!J.context.dataRef.current[M])}),H=W(M=>Jy(M,u.select("floatingElement"))||Jy(M,u.select("domReferenceElement"))),q=W(M=>{s()&&u.setOpen(!1,he(ne.triggerPress,M.nativeEvent))}),O=W(M=>{if(!c||!a||!o||M.key!=="Escape"||E.current||!x&&k("__escapeKeyBubbles"))return;let _=C2(M)?M.nativeEvent:M,B=he(ne.escapeKey,_);u.setOpen(!1,B),B.isCanceled||M.preventDefault(),!x&&!B.isPropagationAllowed&&M.stopPropagation()}),V=W(()=>{f.current.insideReactTree=!0,P.start(0,F)}),w=W(M=>{if(!c||!a||M.button!==0)return;let _=$e(M.nativeEvent);ue(u.select("floatingElement"),_)&&(b.current||(b.current=!0,I.current=!1))}),z=W(M=>{!c||!a||(M.defaultPrevented||M.nativeEvent.defaultPrevented)&&b.current&&(I.current=!0)});co.useEffect(()=>{function M(_){_.open||(C.current=!1)}return m.on("openchange",M),()=>{m.off("openchange",M)}},[m]),co.useEffect(()=>{if(!c||!a)return c||(C.current=!1),F;f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=S;let M=new Ya,_=new Ya,B=ve(d);function J(){M.clear(),E.current=!0}function Y(){M.start(ot.engine.webkit?5:0,()=>{E.current=!1})}function te(){L.current=!0,_.start(0,()=>{L.current=!1})}function ie(){b.current=!1,I.current=!1}function ce(){let K=T.current,j=K==="pen"||!K?"mouse":K,se=h(),Be=typeof se=="function"?se():se;return typeof Be=="string"?Be:Be[j]}function ee(K){let j=ce();return j==="intentional"&&K.type!=="click"||j==="sloppy"&&K.type==="click"}function ae(K){let j=f.current.floatingContext?.nodeId,se=p&&br(p.nodesRef.current,j).some(Be=>Jy(K,Be.context?.elements.floating));return H(K)||se}function me(K){if(ee(K)){K.type!=="click"&&!H(K)&&(_.clear(),L.current=!1),F();return}if(f.current.insideReactTree){F();return}let j=$e(K),se=`[${cs("inert")}]`,Be=Te(j)?j.getRootNode():null,Vt=Array.from((bn(Be)?Be:ve(u.select("floatingElement"))).querySelectorAll(se)),Jt=u.context.triggerElements;if(j&&(Jt.hasElement(j)||Jt.hasMatchingElement(vt=>ue(vt,j))))return;let Et=Te(j)?j:null;for(;Et&&!xr(Et);){let vt=Wo(Et);if(xr(vt)||!Te(vt))break;Et=vt}if(!(Vt.length&&Te(j)&&!I2(j)&&!ue(j,u.select("floatingElement"))&&Vt.every(vt=>!ue(Et,vt)))){if(_e(j)&&!("touches"in K)){let vt=xr(j),wa=pa(j),Ea=/auto|scroll/,$t=vt||Ea.test(wa.overflowX),Ha=vt||Ea.test(wa.overflowY),mo=$t&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,er=Ha&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,ha=wa.direction==="rtl",_t=er&&(ha?K.offsetX<=j.offsetWidth-j.clientWidth:K.offsetX>j.clientWidth),Ee=mo&&K.offsetY>j.clientHeight;if(_t||Ee)return}if(!ae(K)){if(ce()==="intentional"){if(K.detail!==0&&!Oi(K)&&!C.current)return;if(L.current){_.clear(),L.current=!1;return}}typeof v=="function"&&!v(K)||k("__outsidePressBubbles")||(u.setOpen(!1,he(ne.outsidePress,K)),F())}}}function ge(K){ce()!=="sloppy"||K.pointerType==="touch"||!u.select("open")||!a||H(K)||me(K)}function we(K){if(ce()!=="sloppy"||!u.select("open")||!a||H(K))return;let j=K.touches[0];j&&(A.current={startTime:Date.now(),startX:j.clientX,startY:j.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function pe(K,j){let se=$e(K);if(!se)return;let Be=Le(se,K.type,()=>{j(K),Be()})}function Re(K){T.current="touch",pe(K,we)}function le(K){N.clear(),K.type==="pointerdown"&&(K.button===0&&(C.current=!0),T.current=K.pointerType),!(K.type==="mousedown"&&A.current&&!A.current.dismissOnMouseDown)&&pe(K,j=>{j.type==="pointerdown"?ge(j):me(j)})}function Ie(K){if(K.type==="pointercancel"&&(C.current=!1),!b.current)return;let j=I.current;if(ie(),ce()==="intentional"){if(K.type==="pointercancel"){j&&te();return}if(!ae(K)){if(j){te();return}typeof v=="function"&&!v(K)||(_.clear(),L.current=!0,F())}}}function Ve(K){if(ce()!=="sloppy"||!A.current||H(K))return;let j=K.touches[0];if(!j)return;let se=Math.abs(j.clientX-A.current.startX),Be=Math.abs(j.clientY-A.current.startY),Vt=Math.sqrt(se*se+Be*Be);Vt>5&&(A.current.dismissOnTouchEnd=!0),Vt>10&&(me(K),N.clear(),A.current=null)}function Me(K){pe(K,Ve)}function ut(K){ce()!=="sloppy"||!A.current||H(K)||(A.current.dismissOnTouchEnd&&me(K),N.clear(),A.current=null)}function oe(K){pe(K,ut)}let fe=Wa(o&&Wa(Le(B,"keydown",O),Le(B,"compositionstart",J),Le(B,"compositionend",Y)),g&&Wa(Le(B,"click",le,!0),Le(B,"pointerdown",le,!0),Le(B,"pointerup",Ie,!0),Le(B,"pointercancel",Ie,!0),Le(B,"mousedown",le,!0),Le(B,"mouseup",Ie,!0),Le(B,"touchstart",Re,{capture:!0,passive:!0}),Le(B,"touchmove",Me,{capture:!0,passive:!0}),Le(B,"touchend",oe,{capture:!0,passive:!0})));return()=>{fe(),M.clear(),_.clear(),ie(),L.current=!1,F()}},[f,d,o,g,v,c,a,x,S,O,F,h,k,H,p,u,N]);let U=co.useMemo(()=>({onKeyDown:O,onPointerDown:q,onClick:q}),[O,q]),X=co.useMemo(()=>({onKeyDown:O,onPointerDown:z,onMouseDown:z,onClickCapture:V,onMouseDownCapture(M){V(),w(M)},onPointerDownCapture(M){V(),w(M)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[O,V,w,z]);return co.useMemo(()=>a?{reference:U,floating:X,trigger:U}:{},[a,U,X])}var Qa=R(D(),1);function lB(e,t,a){let{reference:o,floating:r}=e,n=Po(t),s=Hp(t),i=zp(s),l=Ka(t),u=n==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[i]/2-r[i]/2,m;switch(l){case"top":m={x:c,y:o.y-r.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}let p=Sr(t);return p&&(m[s]+=f*(p==="end"?1:-1)*(a&&u?-1:1)),m}async function uB(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=In(t,e),p=sS(m),v=i[f?d==="floating"?"reference":"floating":d],g=ls(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(v)))==null||a?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),h=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),S=await(n.isElement==null?void 0:n.isElement(x))&&await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1},b=ls(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:x,strategy:l}):h);return{top:(g.top-b.top+p.top)/S.y,bottom:(b.bottom-g.bottom+p.bottom)/S.y,left:(g.left-b.left+p.left)/S.x,right:(b.right-g.right+p.right)/S.x}}var k9=50,cB=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:uB},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=lB(u,o,l),f=o,m=0,p={};for(let y=0;y<n.length;y++){let v=n[y];if(!v)continue;let{name:g,fn:h}=v,{x,y:S,data:b,reset:I}=await h({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=x??c,d=S??d,p[g]={...p[g],...b},I&&m<k9&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:c,y:d}=lB(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};var fB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...v}=In(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let g=Ka(r),h=Po(i),x=Ka(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=f||(x||!y?[Bp(i)]:V2(i)),I=p!=="none";!f&&I&&b.push(...B2(i,y,p,S));let L=[i,...b],C=await l.detectOverflow(t,v),E=[],T=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&E.push(C[g]),d){let F=N2(r,s,S);E.push(C[F[0]],C[F[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(F=>F<=0)){var A,N;let F=(((A=n.flip)==null?void 0:A.index)||0)+1,k=L[F];if(k&&(!(d==="alignment"?h!==Po(k):!1)||T.every(O=>Po(O.placement)===h?O.overflows[0]>0:!0)))return{data:{index:F,overflows:T},reset:{placement:k}};let H=(N=T.filter(q=>q.overflows[0]<=0).sort((q,O)=>q.overflows[1]-O.overflows[1])[0])==null?void 0:N.placement;if(!H)switch(m){case"bestFit":{var P;let q=(P=T.filter(O=>{if(I){let V=Po(O.placement);return V===h||V==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(V=>V>0).reduce((V,w)=>V+w,0)]).sort((O,V)=>O[1]-V[1])[0])==null?void 0:P[0];q&&(H=q);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};var dB=new Set(["left","top"]);async function N9(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ka(a),i=Sr(a),l=Po(a)==="y",u=dB.has(s)?-1:1,c=n&&l?-1:1,d=In(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var mB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await N9(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},pB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:h=>{let{x,y:S}=h;return{x,y:S}}},...u}=In(e,t),c={x:a,y:o},d=await n.detectOverflow(t,u),f=Po(r),m=nS(f),p=c[m],y=c[f],v=(h,x)=>rS(x+d[h==="y"?"top":"left"],x,x-d[h==="y"?"bottom":"right"]);s&&(p=v(m,p)),i&&(y=v(f,y));let g=l.fn({...t,[m]:p,[f]:y});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[m]:s,[f]:i}}}}}},hB=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:r,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=In(e,t),f={x:r,y:n},m=Po(s),p=nS(m),y=f[p],v=f[m],g=In(u,t),h=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(c){let b=p==="y"?"height":"width",I=i.reference[p]-i.floating[b]+h.mainAxis,L=i.reference[p]+i.reference[b]-h.mainAxis;y<I?y=I:y>L&&(y=L)}if(d){var x,S;let b=p==="y"?"width":"height",I=dB.has(Ka(s)),L=i.reference[m]-i.floating[b]+(I&&((x=l.offset)==null?void 0:x[m])||0)+(I?0:h.crossAxis),C=i.reference[m]+i.reference[b]+(I?0:((S=l.offset)==null?void 0:S[m])||0)-(I?h.crossAxis:0);v<L?v=L:v>C&&(v=C)}return{[p]:y,[m]:v}}}},gB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=In(e,t),l=await r.detectOverflow(t,i),u=Ka(a),c=Sr(a),d=Po(a)==="y",{width:f,height:m}=o.floating,p,y;u==="top"||u==="bottom"?(p=u,y=c===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(y=u,p=c==="end"?"top":"bottom");let v=m-l.top-l.bottom,g=f-l.left-l.right,h=Ni(m-l[p],v),x=Ni(f-l[y],g),S=t.middlewareData.shift,b=!S,I=h,L=x;S!=null&&S.enabled.x&&(L=g),S!=null&&S.enabled.y&&(I=v),b&&!c&&(d?L=f-2*_r(l.left,l.right):I=m-2*_r(l.top,l.bottom)),await s({...t,availableWidth:L,availableHeight:I});let C=await r.getDimensions(n.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function SB(e){let t=pa(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=_e(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Vi(a)!==n||Vi(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function XI(e){return Te(e)?e:e.contextElement}function Of(e){let t=XI(e);if(!_e(t))return Rn(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=SB(t),s=(n?Vi(a.width):a.width)/o,i=(n?Vi(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var V9=Rn(0);function vB(e){let t=He(e);return!Uy()||!t.visualViewport?V9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B9(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===He(e)}function wu(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=XI(e),s=Rn(1);t&&(o?Te(o)&&(s=Of(o)):s=Of(e));let i=B9(n,a,o)?vB(n):Rn(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(n&&o){let f=He(n),m=Te(o)?He(o):o,p=f,y=qy(p);for(;y&&m!==p;){let v=Of(y),g=y.getBoundingClientRect(),h=pa(y),x=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*v.x,S=g.top+(y.clientTop+parseFloat(h.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=x,u+=S,p=He(y),y=qy(p)}}return ls({width:c,height:d,x:l,y:u})}function mS(e,t){let a=Tp(e).scrollLeft;return t?t.left+a:wu(Cn(e)).left+a}function bB(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-mS(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function F9(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=Cn(o),i=t?Ip(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Rn(1),c=Rn(0),d=_e(o);if((d||!n)&&((Wt(o)!=="body"||du(s))&&(l=Tp(o)),d)){let m=wu(o);u=Of(o),c.x=m.x+o.clientLeft,c.y=m.y+o.clientTop}let f=s&&!d&&!n?bB(s,l):Rn(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function z9(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function H9(e){let t=Tp(e),a=e.ownerDocument.body,o=_r(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=_r(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+mS(e),s=-t.scrollTop;return pa(a).direction==="rtl"&&(n+=_r(e.clientWidth,a.clientWidth)-o),{width:o,height:r,x:n,y:s}}var _9=25;function U9(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",r=He(e),n=Cn(e),s=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(s){let f=!Uy()||t==="fixed";o?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if(mS(n)<=0){let f=n.ownerDocument,m=f.body,p=getComputedStyle(m),y=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(n.clientWidth-m.clientWidth-y),g=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;g<=_9&&(i-=g)}return{width:i,height:l,x:u,y:c}}function q9(e,t){let a=wu(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Of(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function xB(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=U9(e,a,t);else if(t==="document")o=H9(Cn(e));else if(Te(t))o=q9(t,a);else{let r=vB(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ls(o)}function G9(e,t){let a=t.get(e);if(a)return a;let o=Ai(e,[],!1).filter(i=>Te(i)&&Wt(i)!=="body"),r=null,n=pa(e).position==="fixed",s=n?Wo(e):e;for(;Te(s)&&!xr(s);){let i=pa(s),l=_y(s),u=r?r.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?o=o.filter(d=>d!==s):r=i,s=Wo(s)}return t.set(e,o),o}function j9(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Ip(t)?[]:G9(t,this._c):[].concat(a),o],i=xB(t,s[0],r),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let m=xB(t,s[f],r);l=_r(m.top,l),u=Ni(m.right,u),c=Ni(m.bottom,c),d=_r(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function X9(e){let{width:t,height:a}=SB(e);return{width:t,height:a}}function Y9(e,t,a){let o=_e(t),r=Cn(t),n=a==="fixed",s=wu(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Rn(0);if((o||!n)&&((Wt(t)!=="body"||du(r))&&(i=Tp(t)),o)){let f=wu(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=mS(r));let u=r&&!o&&!n?bB(r,i):Rn(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function jI(e){return pa(e).position==="static"}function yB(e,t){if(!_e(e)||pa(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Cn(e)===a&&(a=a.ownerDocument.body),a}function CB(e,t){let a=He(e);if(Ip(e))return a;if(!_e(e)){let r=Wo(e);for(;r&&!xr(r);){if(Te(r)&&!jI(r))return r;r=Wo(r)}return a}let o=yB(e,t);for(;o&&QV(o)&&jI(o);)o=yB(o,t);return o&&xr(o)&&jI(o)&&!_y(o)?a:o||JV(e)||a}var W9=async function(e){let t=this.getOffsetParent||CB,a=this.getDimensions,o=await a(e.floating);return{reference:Y9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function K9(e){return pa(e).direction==="rtl"}var Wp={convertOffsetParentRelativeRectToViewportRelativeRect:F9,getDocumentElement:Cn,getClippingRect:j9,getOffsetParent:CB,getElementRects:W9,getClientRects:z9,getDimensions:X9,getScale:Of,isElement:Te,isRTL:K9};function LB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z9(e,t,a){let o=null,r,n=Cn(e);function s(){var c;clearTimeout(r),(c=o)==null||c.disconnect(),o=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:m,top:p,width:y,height:v}=f;if(c||t(),!y||!v)return;let g=Fp(p),h=Fp(n.clientWidth-(m+y)),x=Fp(n.clientHeight-(p+v)),S=Fp(m),I={rootMargin:-g+"px "+-h+"px "+-x+"px "+-S+"px",threshold:_r(0,Ni(1,d))||1},L=!0;function C(E){let T=E[0].intersectionRatio;if(!LB(f,e.getBoundingClientRect()))return i();if(T!==d){if(!L)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}L=!1}try{o=new IntersectionObserver(C,{...I,root:n.ownerDocument})}catch{o=new IntersectionObserver(C,I)}o.observe(e)}let l=He(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Kp(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=XI(e),c=r||n?[...u?Ai(u):[],...t?Ai(t):[]]:[];c.forEach(g=>{r&&g.addEventListener("scroll",a),n&&g.addEventListener("resize",a)});let d=u&&i?Z9(u,a,n):null,f=-1,m=null;s&&(m=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),a()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,y=l?wu(e):null;l&&v();function v(){let g=wu(e);y&&!LB(y,g)&&a(),y=g,p=requestAnimationFrame(v)}return a(),()=>{var g;c.forEach(h=>{r&&h.removeEventListener("scroll",a),n&&h.removeEventListener("resize",a)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var RB=mB;var IB=pB,TB=fB,wB=gB;var EB=hB,pS=(e,t,a)=>{let o=new Map,r=a??{},n={...Wp,...r.platform,_c:o};return cB(e,t,{...r,platform:n})};var na=R(D(),1),PB=R(D(),1),DB=R(Wr(),1),J9=typeof document<"u",$9=function(){},hS=J9?PB.useLayoutEffect:$9;function gS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!gS(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!gS(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function MB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AB(e,t){let a=MB(e);return Math.round(t*a)/a}function YI(e){let t=na.useRef(e);return hS(()=>{t.current=e}),t}function OB(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=na.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=na.useState(o);gS(f,o)||m(o);let[p,y]=na.useState(null),[v,g]=na.useState(null),h=na.useCallback(O=>{O!==I.current&&(I.current=O,y(O))},[]),x=na.useCallback(O=>{O!==L.current&&(L.current=O,g(O))},[]),S=n||p,b=s||v,I=na.useRef(null),L=na.useRef(null),C=na.useRef(c),E=l!=null,T=YI(l),A=YI(r),N=YI(u),P=na.useCallback(()=>{if(!I.current||!L.current)return;let O={placement:t,strategy:a,middleware:f};A.current&&(O.platform=A.current),pS(I.current,L.current,O).then(V=>{let w={...V,isPositioned:N.current!==!1};F.current&&!gS(C.current,w)&&(C.current=w,DB.flushSync(()=>{d(w)}))})},[f,t,a,A,N]);hS(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);let F=na.useRef(!1);hS(()=>(F.current=!0,()=>{F.current=!1}),[]),hS(()=>{if(S&&(I.current=S),b&&(L.current=b),S&&b){if(T.current)return T.current(S,b,P);P()}},[S,b,P,T,E]);let k=na.useMemo(()=>({reference:I,floating:L,setReference:h,setFloating:x}),[h,x]),H=na.useMemo(()=>({reference:S,floating:b}),[S,b]),q=na.useMemo(()=>{let O={position:a,left:0,top:0};if(!H.floating)return O;let V=AB(H.floating,c.x),w=AB(H.floating,c.y);return i?{...O,transform:"translate("+V+"px, "+w+"px)",...MB(H.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:V,top:w}},[a,i,H.floating,c.x,c.y]);return na.useMemo(()=>({...c,update:P,refs:k,elements:H,floatingStyles:q}),[c,P,k,H,q])}var WI=(e,t)=>{let a=RB(e);return{name:a.name,fn:a.fn,options:[e,t]}},KI=(e,t)=>{let a=IB(e);return{name:a.name,fn:a.fn,options:[e,t]}},ZI=(e,t)=>({fn:EB(e).fn,options:[e,t]}),QI=(e,t)=>{let a=TB(e);return{name:a.name,fn:a.fn,options:[e,t]}},JI=(e,t)=>{let a=wB(e);return{name:a.name,fn:a.fn,options:[e,t]}};var kf=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,a,o=!0){this.fallbackStore=t,this.componentName=a,this.throwOnMissingTrigger=o}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let a=this.attachedStores.lastIndexOf(t);a!==-1&&this.attachedStores.splice(a,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(a=>{a()}))}openByTrigger(t){let a=this.attachedStore;if(a===null)return;let o;if(t){for(let r=this.attachedStores.length-1;r>=0&&!o;r-=1)o=this.attachedStores[r].context.triggerElements.getById(t);o??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!o&&this.throwOnMissingTrigger)throw new Error(Pe(99,this.componentName,t,this.componentName));a.setOpen(!0,he(ne.imperativeAction,void 0,o))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,he(ne.imperativeAction))}};var nT=R(D(),1),QB=R(Wr(),1);var YB=R(D(),1);var GB=R(D(),1),aT=R(Zp(),1),jB=R(HB(),1);var _B=R(D(),1);var eT=[],tT;function UB(){return tT}function qB(e){eT.push(e)}function Qp(e){let t=(a,o)=>{let r=at(x7).current,n;try{tT=r;for(let s of eT)s.before(r);n=e(a,o);for(let s of eT)s.after(r);r.didInitialize=!0}finally{tT=void 0}return n};return t.displayName=e.displayName||e.name,t}function yS(e){return _B.forwardRef(Qp(e))}function x7(){return{didInitialize:!1}}var y7=Gc(19),S7=y7?b7:C7;function SS(e,t,a,o,r){return S7(e,t,a,o,r)}function v7(e,t,a,o,r){let n=GB.useCallback(()=>t(e.getSnapshot(),a,o,r),[e,t,a,o,r]);return(0,aT.useSyncExternalStore)(e.subscribe,n,n)}qB({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let a=new Set;for(let r of e.syncHooks)a.add(r.store);let o=[];for(let r of a)o.push(r.subscribe(t));return()=>{for(let r of o)r()}}),(0,aT.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function b7(e,t,a,o,r){let n=UB();if(!n)return v7(e,t,a,o,r);let s=n.syncIndex;n.syncIndex+=1;let i;return n.didInitialize?(i=n.syncHooks[s],(i.store!==e||i.selector!==t||!Object.is(i.a1,a)||!Object.is(i.a2,o)||!Object.is(i.a3,r))&&(i.store!==e&&(n.didChangeStore=!0),i.store=e,i.selector=t,i.a1=a,i.a2=o,i.a3=r,i.value=t(e.getSnapshot(),a,o,r))):(i={store:e,selector:t,a1:a,a2:o,a3:r,value:t(e.getSnapshot(),a,o,r)},n.syncHooks.push(i)),i.value}function C7(e,t,a,o,r){return(0,jB.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,n=>t(n,a,o,r))}var vS=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let a=this.updateTick;for(let o of this.listeners){if(a!==this.updateTick)return;o(t)}}update(t){for(let a in t)if(!Object.is(this.state[a],t[a])){this.setState({...this.state,...t});return}}set(t,a){Object.is(this.state[t],a)||this.setState({...this.state,[t]:a})}notifyAll(){let t={...this.state};this.setState(t)}use(t,a,o,r){return SS(this,t,a,o,r)}};var Eu=R(D(),1);var Lr=class extends vS{constructor(t,a={},o){super(t),this.context=a,this.selectors=o}useSyncedValue(t,a){Eu.useDebugValue(t);let o=this;G(()=>{o.state[t]!==a&&o.set(t,a)},[o,t,a])}useSyncedValueWithCleanup(t,a){let o=this;G(()=>(o.state[t]!==a&&o.set(t,a),()=>{o.set(t,void 0)}),[o,t,a])}useSyncedValues(t){let a=this,o=Object.values(t);G(()=>{a.update(t)},[a,...o])}useControlledProp(t,a){Eu.useDebugValue(t);let o=this,r=a!==void 0;G(()=>{r&&!Object.is(o.state[t],a)&&o.setState({...o.state,[t]:a})},[o,t,a,r])}select(t,a,o,r){let n=this.selectors[t];return n(this.state,a,o,r)}useState(t,a,o,r){return Eu.useDebugValue(t),SS(this,this.selectors[t],a,o,r)}useContextCallback(t,a){Eu.useDebugValue(t);let o=W(a??Ne);this.context[t]=o}useStateSetter(t){let a=Eu.useRef(void 0);return a.current===void 0&&(a.current=o=>{this.set(t,o)}),a.current}observe(t,a){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return a(r,r,this),this.subscribe(n=>{let s=o(n);if(!Object.is(r,s)){let i=r;r=s,a(s,i,this)}})}};var bS=R(D(),1);function XB(){let[,e]=bS.useState({});return bS.useCallback(()=>{e({})},[])}var L7={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Hi=class extends Lr{constructor(t){let{syncOnly:a,nested:o,onOpenChange:r,triggerElements:n,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:aB(),nested:o,triggerElements:n},L7),this.syncOnly=a}syncOpenEvent=(t,a)=>{(!t||!this.state.open||a!=null&&L2(a))&&(this.context.dataRef.current.openEvent=t?a:void 0)};dispatchOpenChange=(t,a)=>{this.syncOpenEvent(t,a.event);let o={open:t,reason:a.reason,nativeEvent:a.event,nested:this.context.nested,triggerElement:a.trigger};this.context.events.emit("openchange",o)};setOpen=(t,a)=>{if(this.syncOnly){this.context.onOpenChange?.(t,a);return}this.dispatchOpenChange(t,a),this.context.onOpenChange?.(t,a)}};function WB(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:r,nested:n,onOpenChange:s}=e,i=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=s,f=YB.useRef(null);o===void 0&&f.current===null&&(f.current=new Hi({open:i,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:n}));let m=o??f.current;return t.useSyncedValue("floatingId",r),G(()=>{let p={open:i,floatingId:r,referenceElement:l,floatingElement:u};Te(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[i,r,l,u,m]),m.context.onOpenChange=d,m.context.nested=n,m}var oT=R(D(),1);function Mo(e,t=!1,a=!1,o=!1){let[r,n]=oT.useState(e&&t?"idle":void 0),[s,i]=oT.useState(e&&!o);return e&&!s&&(i(!0),n("starting")),!e&&s&&r!=="ending"&&!a&&n("ending"),!e&&!s&&r==="ending"&&n(void 0),G(()=>{if(!e&&s&&r!=="ending"&&a){let l=yr.request(()=>{n("ending")});return()=>{yr.cancel(l)}}},[e,s,r,a]),G(()=>{if(!e||t)return;let l=yr.request(()=>{n(void 0)});return()=>{yr.cancel(l)}},[t,e]),G(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&n("starting");let l=yr.request(()=>{n("idle")});return()=>{yr.cancel(l)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var KB=R(D(),1);var rT=R(Wr(),1);var CS=null;function R7(e){if(!CS){let t=[];CS=t,queueMicrotask(()=>{CS=null,rT.flushSync(()=>{for(let a of t)a()})})}CS.push(e)}function Vf(e,t=!1,a=!1){let o=uo();return W((r,n=null)=>{o.cancel();let s=Ur(e);if(s==null)return;let i=s,l=()=>{if(!a){rT.flushSync(r);return}R7(()=>{n?.aborted||r()})};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(i.getAnimations().map(c=>c.finished)).then(()=>{n?.aborted||l()},()=>{if(n?.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=mu;if(!i.hasAttribute(c)){o.request(u);return}let d=new MutationObserver(()=>{i.hasAttribute(c)||(d.disconnect(),u())});d.observe(i,{attributes:!0,attributeFilter:[c]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(u)})}function Ra(e){let{enabled:t=!0,open:a,ref:o,batch:r=!1,onComplete:n}=e,s=W(n),i=Vf(o,a,r);KB.useEffect(()=>{if(!t)return;let l=new AbortController;return i(s,l.signal),()=>{l.abort()}},[t,a,s,i])}var Bf={tabIndex:-1,[Mp]:""};function JB(e){return t=>t==="touch"?e.current:!0}function LS(e,t=!1){let a=Mi(),o=Fi()!=null,r=at(()=>e(a,o)).current;return WB({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:r.setOpen}),r}function RS({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function ZB(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function I7(e,t){let a=nT.useRef(null);return W(o=>{let r=a.current;if(r!==null){if(r.element===o&&r.store===t&&r.id===e)return;a.current=null;let n=r.store;n.context.triggerElements.getById(r.id)===r.element&&(n.context.triggerElements.delete(r.id),ZB(n))}o!==null&&e!==void 0&&(a.current={store:t,id:e,element:o},t.context.triggerElements.add(e,o),ZB(t))})}function sT(e,t,a,o=!1){let r=e.preventUnmountingOnClose;t?r=!1:o&&(r=!0);let n=a?.id??null,s=e.activeTriggerId,i=e.activeTriggerElement;return(n||t)&&(s=n,i=a??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:i}}function T7(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function $B(e,t,a,o={}){let r=a.reason,n=r===ne.triggerHover,s=t&&r===ne.triggerFocus,i=!t&&(r===ne.triggerPress||r===ne.escapeKey),l=T7(a);if(e.context.onOpenChange?.(t,a),a.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,a);let u=()=>{let c=sT(e.state,t,a.trigger,l()),d={...o.extraState,...c};s?d.instantType="focus":i?d.instantType="dismiss":n&&(d.instantType=void 0),e.update(d)};n?QB.flushSync(u):u()}function IS(e,t,a,o){let r=a.useState("isMountedByTrigger",e),n=I7(e,a),s=W(l=>{let u=a.select("open"),c=a.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?o:null};a.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...o};a.update(d)}}),i=W(l=>{n(l),l&&s(l)});return G(()=>(i(t.current),()=>i(null)),[i,t,a,e]),G(()=>{if(r){let l={activeTriggerElement:t.current,...o};a.update(l)}},[r,a,t,...Object.values(o)]),{registerTrigger:i,isMountedByThisTrigger:r}}function TS(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=nT.useRef(null),r=e.useState("open"),n=e.useState("triggerCount"),s=e.useState("activeTriggerId"),i=e.useState("activeTriggerElement");G(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)o.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m;break}u.activeTriggerId===void 0&&(o.current===c?d=c:o.current=null)}}else o.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&a&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=he(ne.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,s,i,a])}function wS(e,t,a,o){let{mounted:r,setMounted:n,transitionStatus:s}=Mo(e,!1,!1,o),i=t.useState("preventUnmountingOnClose"),l=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:l});let u=W(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return Ra({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function ES(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function eF(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var Tn=class{constructor(){this.idMap=new Map}add(t,a){this.idMap.set(t,a)}delete(t){this.idMap.delete(t)}hasElement(t){for(let a of this.idMap.values())if(a===t)return!0;return!1}hasMatchingElement(t){for(let a of this.idMap.values())if(t(a))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function AS(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Hi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}var Jp=e=>e.triggerIdProp??e.activeTriggerId,iT=e=>e.openProp??e.open,tF=e=>(e.popupElement?.id??e.floatingId)||void 0;function aF(e,t){return t!==void 0&&iT(e)&&Jp(e)===t}function w7(e,t){return aF(e,t)?!0:t!==void 0&&iT(e)&&Jp(e)==null&&e.triggerCount===1}var PS={open:iT,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Jp,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:tF,isTriggerActive:(e,t)=>t!==void 0&&Jp(e)===t,isOpenedByTrigger:(e,t)=>aF(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Jp(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>w7(e,t)?tF(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var lT=R(D(),1),oF=R(Zp(),1);function DS(e){let t=lT.useCallback(o=>e===void 0?Ne:e.subscribeStore(o),[e]),a=lT.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,oF.useSyncExternalStore)(t,a,()=>e?.serverStore)}function uT(e){let{open:t=!1,onOpenChange:a,elements:o={}}=e,r=Mi(),n=Fi()!=null,s=at(()=>new Hi({open:t,transitionStatus:void 0,onOpenChange:a,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Tn,floatingId:r,syncOnly:!1,nested:n})).current;return G(()=>{let i={open:t,floatingId:r};o.reference!==void 0&&(i.referenceElement=o.reference,i.domReferenceElement=Te(o.reference)?o.reference:null),o.floating!==void 0&&(i.floatingElement=o.floating),s.update(i)},[t,r,o.reference,o.floating,s]),s.context.onOpenChange=a,s.context.nested=n,s}function rF(e){return E7(e,e.rootContext)}function E7(e,t){let{nodeId:a,externalTree:o}=e,r=t.useState("referenceElement"),n=t.useState("floatingElement"),s=t.useState("domReferenceElement"),i=t.useState("open"),l=t.useState("floatingId"),[u,c]=Qa.useState(null),[d,f]=Qa.useState(void 0),[m,p]=Qa.useState(void 0),y=Qa.useRef(null),v=Cr(o),g=Qa.useMemo(()=>({reference:r,floating:n,domReference:s}),[r,n,s]),h=OB({...e,elements:{...g,...u&&{reference:u}}}),x=Te(d)?d:null,S=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?s:x),t.useSyncedValue("floatingElement",S);let b=Qa.useCallback(A=>{let N=Te(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(N),h.refs.setReference(N)},[h.refs]),I=Qa.useCallback(A=>{(Te(A)||A===null)&&(y.current=A,f(A)),(Te(h.refs.reference.current)||h.refs.reference.current===null||A!==null&&!Te(A))&&h.refs.setReference(A)},[h.refs,f]),L=Qa.useCallback(A=>{p(A),h.refs.setFloating(A)},[h.refs]),C=Qa.useMemo(()=>({...h.refs,setReference:I,setFloating:L,setPositionReference:b,domReference:y}),[h.refs,I,L,b]),E=Qa.useMemo(()=>({...h.elements,domReference:s}),[h.elements,s]),T=Qa.useMemo(()=>({...h,dataRef:t.context.dataRef,open:i,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:C,elements:E,nodeId:a,rootStore:t}),[h,C,E,a,t,i,l]);return G(()=>{s&&(y.current=s)},[s]),G(()=>{t.context.dataRef.current.floatingContext=T;let A=v?.nodesRef.current.find(N=>N.id===a);A&&(A.context=T)}),Qa.useMemo(()=>({...h,context:T,refs:C,elements:E,rootStore:t}),[h,C,E,T,t])}var wn=R(D(),1);var cT=ot.os.mac&&ot.engine.webkit;function fT(e,t={}){let{enabled:a=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:n,dataRef:s}=r.context,i=wn.useRef(!1),l=wn.useRef(null),u=wn.useRef(!0),c=Ze();wn.useEffect(()=>{let f=r.select("domReferenceElement");if(!a)return;let m=He(f);function p(){let g=r.select("domReferenceElement");!r.select("open")&&_e(g)&&g===zt(ve(g))&&(i.current=!0,l.current=g)}function y(){u.current=!0}function v(){u.current=!1}return Wa(Le(m,"blur",p),cT&&Le(m,"keydown",y,!0),cT&&Le(m,"pointerdown",v,!0))},[r,a]),wn.useEffect(()=>{if(!a)return;function f(m){if(m.reason===ne.triggerPress||m.reason===ne.escapeKey){let p=r.select("domReferenceElement");Te(p)&&(l.current=p,i.current=!0)}}return n.on("openchange",f),()=>{n.off("openchange",f)}},[n,a,r]);let d=wn.useMemo(()=>{function f(){i.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(i.current){if(l.current===p)return;f()}let y=$e(m.nativeEvent);if(Te(y)){if(cT&&!m.relatedTarget){if(!u.current&&!Su(y))return}else if(!T2(y))return}let v=ki(m.relatedTarget,r.context.triggerElements),{nativeEvent:g,currentTarget:h}=m,x=typeof o=="function"?o():o;if(r.select("open")&&v||x===0||x===void 0){r.setOpen(!0,he(ne.triggerFocus,g,h));return}c.start(x,()=>{i.current||r.setOpen(!0,he(ne.triggerFocus,g,h))})},onBlur(m){f();let p=m.relatedTarget,y=m.nativeEvent,v=Te(p)&&p.hasAttribute(cs("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let g=r.select("domReferenceElement"),h=zt(ve(g));!p&&h===g||ue(s.current.floatingContext?.refs.floating.current,h)||ue(g,h)||v||ki(p??h,r.context.triggerElements)||r.setOpen(!1,he(ne.triggerFocus,y))})}}},[s,o,r,c]);return wn.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var mT=R(D(),1);var dT=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ya,this.restTimeout=new Ya,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},MS=new WeakMap;function Ff(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&MS.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),MS.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function OS(e,t){let{scopeElement:a,referenceElement:o,floatingElement:r}=t,n=MS.get(a);n&&n!==e&&Ff(n),Ff(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=a,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,MS.set(a,e),a.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function zf(e){let t=e.context.dataRef.current,a=at(()=>t.hoverInteractionState??dT.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=a),wf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function pT(e,t={}){let{enabled:a=!0,closeDelay:o=0,nodeId:r}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),l=n.useState("domReferenceElement"),{dataRef:u}=n.context,c=Cr(),d=Fi(),f=zf(n),m=Ze(),p=W(()=>$y(u.current.openEvent?.type,f.interactedInside)),y=W(()=>w2(u.current.openEvent?.type)),v=W(()=>{Ff(f)});G(()=>{s||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,v())},[s,f,v]),mT.useEffect(()=>v,[v]),G(()=>{if(a&&s&&f.handleCloseOptions?.blockPointerEvents&&y()&&Te(l)&&i){let g=l,h=i,x=ve(i),S=c?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;S&&(S.style.pointerEvents="");let b=f.pointerEventsScopeElement!==h?f.pointerEventsScopeElement:null,I=S!==h?S:null,L=f.handleCloseOptions?.getScope?.()??b??I??g.closest("[data-rootownerid]")??x.body;return OS(f,{scopeElement:L,referenceElement:g,floatingElement:h}),()=>{v()}}},[a,s,l,i,f,y,c,d,v]),mT.useEffect(()=>{if(!a)return;function g(){return!!(c&&d&&br(c.nodesRef.current,d).length>0)}function h(C){let E=Hr(o,"close",f.pointerType),T=()=>{n.setOpen(!1,he(ne.triggerHover,C)),c?.events.emit("floating.closed",C)};E?f.openChangeTimeout.start(E,T):(f.openChangeTimeout.clear(),T())}function x(C){let E=$e(C);if(!wI(E)){f.interactedInside=!1;return}f.interactedInside=E?.closest("[aria-haspopup]")!=null}function S(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",I),v()}function b(C){if(g()&&c){c.events.on("floating.closed",I);return}if(ki(C.relatedTarget,n.context.triggerElements))return;let E=u.current.floatingContext?.nodeId??r,T=C.relatedTarget;if(!(c&&E&&Te(T)&&br(c.nodesRef.current,E,!1).some(N=>ue(N.context?.elements.floating,T)))){if(f.handler){f.handler(C);return}v(),y()&&!p()&&h(C)}}function I(C){!c||!d||g()||m.start(0,()=>{c.events.off("floating.closed",I),n.setOpen(!1,he(ne.triggerHover,C)),c.events.emit("floating.closed",C)})}let L=i;return Wa(L&&Le(L,"mouseenter",S),L&&Le(L,"mouseleave",b),L&&Le(L,"pointerdown",x,!0),()=>{c?.events.off("floating.closed",I)})},[a,i,n,u,o,r,y,p,v,f,c,d,m])}var _i=R(D(),1),nF=R(Wr(),1);var A7={current:null};function hT(e,t={}){let{enabled:a=!0,delay:o=0,handleClose:r=null,mouseOnly:n=!1,restMs:s=0,move:i=!0,triggerElementRef:l=A7,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,y="rootStore"in e?e.rootStore:e,{dataRef:v,events:g}=y.context,h=Cr(u),x=zf(y),S=_i.useRef(!1),b=pt(r),I=pt(o),L=pt(s),C=pt(a),E=pt(m),T=pt(f),A=W(()=>$y(v.current.openEvent?.type,x.interactedInside)),N=W(()=>E.current?.()!==!1),P=W((H,q,O)=>{let V=y.context.triggerElements;if(V.hasElement(q))return!H||!ue(H,q);if(!Te(O))return!1;let w=O;return V.hasMatchingElement(z=>ue(z,w))&&(!H||!ue(H,w))}),F=W(()=>{if(!x.handler)return;ve(y.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),k=W(()=>{Ff(x)});return c&&(x.handleCloseOptions=r?.__options),_i.useEffect(()=>F,[F]),_i.useEffect(()=>{if(!a)return;function H(q){q.open?S.current=!1:(S.current=q.reason===ne.triggerHover,F(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return g.on("openchange",H),()=>{g.off("openchange",H)}},[a,g,x,F]),_i.useEffect(()=>{if(!a)return;function H(U,X=!0){let M=Hr(I.current,"close",x.pointerType);M?x.openChangeTimeout.start(M,()=>{y.setOpen(!1,he(ne.triggerHover,U)),h?.events.emit("floating.closed",U)}):X&&(x.openChangeTimeout.clear(),y.setOpen(!1,he(ne.triggerHover,U)),h?.events.emit("floating.closed",U))}let q=l.current??(c?y.select("domReferenceElement"):null);if(!Te(q))return;function O(U){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,n&&!Zo(x.pointerType))return;let X=EI(L.current),M=Hr(I.current,"open",x.pointerType),_=$e(U),B=U.currentTarget??null,J=y.select("domReferenceElement"),Y=B;if(Te(_)&&!y.context.triggerElements.hasElement(_)){for(let pe of y.context.triggerElements.elements())if(ue(pe,_)){Y=pe;break}}Te(B)&&Te(J)&&!y.context.triggerElements.hasElement(B)&&ue(B,J)&&(Y=J);let te=Y==null?!1:P(J,Y,_),ie=y.select("open"),ce=T.current?.()??y.select("transitionStatus")==="ending",ee=!ie&&ce&&S.current,ae=!te&&Te(Y)&&Te(J)&&ue(J,Y)&&ee,me=X>0&&!M,ge=te&&(ie||ee)||ae,we=!ie||te;if(ge){N()&&y.setOpen(!0,he(ne.triggerHover,U,Y));return}me||(M?x.openChangeTimeout.start(M,()=>{we&&N()&&y.setOpen(!0,he(ne.triggerHover,U,Y))}):we&&N()&&y.setOpen(!0,he(ne.triggerHover,U,Y)))}function V(U){if(A()){k();return}F();let X=y.select("domReferenceElement"),M=ve(X);x.restTimeout.clear(),x.restTimeoutPending=!1;let _=v.current.floatingContext??d?.();if(ki(U.relatedTarget,y.context.triggerElements))return;if(b.current&&_){y.select("open")||x.openChangeTimeout.clear();let J=l.current;x.handler=b.current({..._,tree:h,x:U.clientX,y:U.clientY,onClose(){k(),F(),C.current&&!A()&&J===y.select("domReferenceElement")&&H(U,!0)}}),M.addEventListener("mousemove",x.handler),x.handler(U);return}(x.pointerType==="touch"?!ue(y.select("floatingElement"),U.relatedTarget):!0)&&H(U)}function w(U){ue(q,U.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let z=p?Le(q,"mouseout",w):void 0;return i?Wa(Le(q,"mousemove",O,{once:!0}),Le(q,"mouseenter",O),Le(q,"mouseleave",V),z):Wa(Le(q,"mouseenter",O),Le(q,"mouseleave",V),z)},[F,k,v,I,y,a,b,x,c,P,A,n,i,L,l,h,C,d,T,N,p]),_i.useMemo(()=>{if(!a)return;function H(q){x.pointerType=q.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(q){let{nativeEvent:O}=q,V=q.currentTarget,w=y.select("domReferenceElement"),z=y.select("open"),U=P(w,V,q.target);if(n&&!Zo(x.pointerType))return;if(z&&U&&x.handleCloseOptions?.blockPointerEvents){let _=y.select("floatingElement");if(_){let B=x.handleCloseOptions?.getScope?.()??V.ownerDocument.body;OS(x,{scopeElement:B,referenceElement:V,floatingElement:_})}}let X=EI(L.current);if(z&&!U||X===0||!U&&x.restTimeoutPending&&q.movementX**2+q.movementY**2<2)return;x.restTimeout.clear();function M(){if(x.restTimeoutPending=!1,A())return;let _=y.select("open");!x.blockMouseMove&&(!_||U)&&N()&&y.setOpen(!0,he(ne.triggerHover,O,V))}x.pointerType==="touch"?nF.flushSync(()=>{M()}):U&&z?M():(x.restTimeoutPending=!0,x.restTimeout.start(X,M))}}},[a,x,A,P,n,y,L,N])}var Fa=R(D(),1);var P7="Escape";function sF(e){return ot.engine.webkit&&e.movementX===0&&e.movementY===0}function NS(e,t,a){switch(e){case"vertical":return t;case"horizontal":return a;default:return t||a}}function kS(e,t){return NS(t,e===TI||e===Qy,e===Op||e===kp)}function gT(e,t,a){return NS(t,e===Qy,a?e===Op:e===kp)||e==="Enter"||e===" "||e===""}function D7(e,t,a){return NS(t,a?e===Op:e===kp,e===Qy)}function M7(e,t,a,o){let r=a?e===kp:e===Op,n=e===TI;return t==="both"||t==="horizontal"&&o?e===P7:NS(t,r,n)}function xT(e,t){let{listRef:a,activeIndex:o,onNavigate:r=()=>{},enabled:n=!0,selectedIndex:s=null,allowEscape:i=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:y=void 0,orientation:v="vertical",parentOrientation:g,id:h,resetOnPointerLeave:x=!0,externalTree:S,grid:b}=t,I=b!=null,L="rootStore"in e?e.rootStore:e,C=L.useState("open"),E=L.useState("floatingElement"),T=L.useState("domReferenceElement"),A=L.context.dataRef,N=vu(E),P=Vp(T),F=pt(N),k=Fi(),H=Cr(S),q=Fa.useRef(f),O=Fa.useRef(s??-1),V=Fa.useRef(null),w=Fa.useRef(!0),z=W(oe=>{r(O.current===-1?null:O.current,oe)}),U=Fa.useRef(!!E),X=Fa.useRef(C),M=Fa.useRef(!1),_=Fa.useRef(!1),B=Fa.useRef(null),J=pt(y),Y=pt(C),te=pt(s),ie=pt(x),ce=uo(),ee=uo(),ae=W(()=>{function oe(se){d?H?.events.emit("virtualfocus",se):B.current=Mf(se,{sync:M.current,preventScroll:!0})}let fe=a.current[O.current],K=_.current;fe&&oe(fe),(M.current?se=>se():se=>ce.request(se))(()=>{let se=a.current[O.current]||fe;if(!se)return;fe||oe(se),le&&(K||!w.current)&&se.scrollIntoView?.({block:"nearest",inline:"nearest"})})});G(()=>{A.current.orientation=v},[A,v]),G(()=>{n&&(C&&E?(O.current=s??-1,q.current&&s!=null&&(_.current=!0,z())):U.current&&(O.current=-1,z()))},[n,C,E,s,z]),G(()=>{if(n){if(!C){M.current=!1;return}if(E)if(o==null){if(M.current=!1,te.current!=null)return;if(U.current&&(O.current=-1,ae()),(!X.current||!U.current)&&q.current&&(V.current!=null||q.current===!0&&V.current==null)){let oe=0,fe=()=>{a.current[0]==null?(oe<2&&(oe?j=>ee.request(j):queueMicrotask)(fe),oe+=1):(O.current=V.current==null||gT(V.current,v,c)||u?bu(a):Df(a),V.current=null,z())};fe()}}else Bi(a.current,o)||(O.current=o,ae(),_.current=!1)}},[n,C,E,o,te,u,a,v,c,z,ae,ee]),G(()=>{if(!n||E||!H||d||!U.current)return;let oe=H.nodesRef.current,fe=oe.find(se=>se.id===k)?.context?.elements.floating,K=zt(ve(T??fe??null)),j=oe.some(se=>se.context&&ue(se.context.elements.floating,K));fe&&!j&&w.current&&fe.focus({preventScroll:!0})},[n,E,T,H,k,d]),G(()=>{X.current=C,U.current=!!E}),G(()=>{C||(V.current=null,q.current=f)},[C,f]);let me=o!=null,ge=W(oe=>{if(!Y.current)return;let fe=a.current.indexOf(oe.currentTarget);fe!==-1&&(O.current!==fe||o!==fe)&&(O.current=fe,z(oe))}),we=W(()=>g??H?.nodesRef.current.find(oe=>oe.id===k)?.context?.dataRef?.current.orientation),pe=W(()=>bu(a,J.current)),Re=W(oe=>{if(w.current=!1,M.current=!0,oe.which===229||!Y.current&&oe.currentTarget===F.current)return;if(u&&M7(oe.key,v,c,I)){kS(oe.key,we())||Ao(oe),L.setOpen(!1,he(ne.listNavigation,oe.nativeEvent)),_e(T)&&(d?H?.events.emit("virtualfocus",T):T.focus());return}let fe=O.current,K=bu(a,y),j=Df(a,y);if(P||(oe.key==="Home"&&(Ao(oe),O.current=K,z(oe)),oe.key==="End"&&(Ao(oe),O.current=j,z(oe))),b!=null){let se=b(oe,O.current,a,v,l,c,y,K,j);if(se!=null&&(O.current=se,z(oe)),v==="both")return}if(kS(oe.key,v)){if(Ao(oe),C&&!d&&zt(oe.currentTarget.ownerDocument)===oe.currentTarget){O.current=gT(oe.key,v,c)?K:j,z(oe);return}gT(oe.key,v,c)?l?fe>=j?i&&fe!==a.current.length?O.current=-1:(M.current=!1,O.current=K):O.current=vr(a.current,{startingIndex:fe,disabledIndices:y}):O.current=Math.min(j,vr(a.current,{startingIndex:fe,disabledIndices:y})):l?fe<=K?i&&fe!==-1?O.current=a.current.length:(M.current=!1,O.current=j):O.current=vr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y}):O.current=Math.max(K,vr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y})),Bi(a.current,O.current)&&(O.current=-1),z(oe)}}),le=Fa.useMemo(()=>({onFocus(fe){M.current=!0,ge(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){sF(fe)||(M.current=!0,_.current=!1,m&&ge(fe))},onPointerLeave(fe){if(!Y.current||!w.current||fe.pointerType==="touch")return;M.current=!0;let K=fe.relatedTarget;if(!(!m||a.current.includes(K))&&ie.current&&(B.current?.(),B.current=null,O.current=-1,z(fe),!d)){let j=F.current,se=zt(ve(j));j&&ue(j,se)&&j.focus({preventScroll:!0})}}}),[ge,Y,F,m,a,z,ie,d]),Ie=Fa.useMemo(()=>d&&C&&me&&{"aria-activedescendant":`${h}-${o}`},[d,C,me,h,o]),Ve=Fa.useMemo(()=>({...P?{}:Ie,onKeyDown(oe){if(oe.key==="Tab"&&oe.shiftKey&&C&&!d){let fe=$e(oe.nativeEvent);if(fe&&!ue(F.current,fe))return;Ao(oe),L.setOpen(!1,he(ne.focusOut,oe.nativeEvent)),_e(T)&&T.focus();return}Re(oe)},onPointerMove(oe){sF(oe)||(w.current=!0)}}),[Ie,Re,F,P,L,C,d,T]),Me=Fa.useMemo(()=>{function oe(j){L.setOpen(!0,he(ne.listNavigation,j.nativeEvent,j.currentTarget))}function fe(j){f==="auto"&&Oi(j.nativeEvent)&&(q.current=!d)}function K(j){q.current=f,f==="auto"&&Ef(j.nativeEvent)&&(q.current=!0)}return{onKeyDown(j){let se=L.select("open");w.current=!1;let Be=j.key.startsWith("Arrow"),Vt=D7(j.key,we(),c),Jt=kS(j.key,v),Et=(u?Vt:Jt)||j.key==="Enter"||j.key.trim()==="";if(d&&se)return Re(j);if(!(!se&&!p&&Be)){if(Et){let vt=kS(j.key,we());V.current=u&&vt?null:j.key}if(u){Vt&&(Ao(j),se?(O.current=pe(),z(j)):oe(j));return}Jt&&(te.current!=null&&(O.current=te.current),Ao(j),!se&&p?oe(j):Re(j),se&&z(j))}},onFocus(j){L.select("open")&&!d&&(O.current=-1,z(j))},onPointerDown:K,onPointerEnter:K,onMouseDown:fe,onClick:fe}},[Re,f,pe,u,z,L,p,v,we,c,te,d]),ut=Fa.useMemo(()=>({...Ie,...Me}),[Ie,Me]);return Fa.useMemo(()=>n?{reference:ut,floating:Ve,item:le,trigger:Me}:{},[n,ut,Ve,Me,le])}var Au=R(D(),1);function yT(e,t){let{listRef:a,elementsRef:o,activeIndex:r,onMatch:n,disabledIndices:s,onTyping:i,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=Ze(),p=Au.useRef(""),y=Au.useRef(c??r??-1),v=Au.useRef(null),g=W(S=>{function b(F){return o?.current[F]}function I(F){let k=b(F);return k&&!Cu(k)||k?.matches(":disabled")?!1:s==null||!us(Ro,F,s)}function L(F,k,H=0){if(F.length===0)return-1;let q=(H%F.length+F.length)%F.length,O=k.toLowerCase();for(let V=0;V<F.length;V+=1){let w=(q+V)%F.length;if(!(!F[w]?.toLowerCase().startsWith(O)||!I(w)))return w}return-1}let C=a.current;if(p.current.length>0&&S.key===" "&&(Ao(S),i?.(!0)),p.current.length>0&&p.current[0]!==" "&&L(C,p.current)===-1&&S.key!==" "&&i?.(!1),C==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Ao(S),i?.(!0));let E=p.current==="";E&&(y.current=c??r??-1),C.every((F,k)=>F&&I(k)?F[0]?.toLowerCase()!==F[1]?.toLowerCase():!0)&&p.current===S.key&&(p.current="",y.current=v.current),p.current+=S.key,m.start(u,()=>{p.current="",y.current=v.current,i?.(!1)});let N=((E?c??r??-1:y.current)??0)+1,P=L(C,p.current,N);P!==-1?(n?.(P),v.current=P):S.key!==" "&&(p.current="",i?.(!1))}),h=W(S=>{let b=S.relatedTarget,I=d.select("domReferenceElement"),L=d.select("floatingElement");ue(I,b)||ue(L,b)||(m.clear(),p.current="",y.current=v.current,i?.(!1))});G(()=>{!f&&c!==null||(m.clear(),v.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let x=Au.useMemo(()=>({onKeyDown:g,onBlur:h}),[g,h]);return Au.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}var iF=.1,O7=iF*iF,xt=.5;function VS(e,t,a,o,r,n){return o>=t!=n>=t&&e<=(r-a)*(t-o)/(n-o)+a}function BS(e,t,a,o,r,n,s,i,l,u){let c=!1;return VS(e,t,a,o,r,n)&&(c=!c),VS(e,t,r,n,s,i)&&(c=!c),VS(e,t,s,i,l,u)&&(c=!c),VS(e,t,l,u,a,o)&&(c=!c),c}function k7(e,t,a){return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function FS(e,t,a,o,r,n){let s=Math.min(a,r),i=Math.max(a,r),l=Math.min(o,n),u=Math.max(o,n);return e>=s&&e<=i&&t>=l&&t<=u}function ST(e={}){let{blockPointerEvents:t=!1}=e,a=new Ya,o=({x:r,y:n,placement:s,elements:i,onClose:l,nodeId:u,tree:c})=>{let d=s?.split("-")[0],f=!1,m=null,p=null,y=typeof performance<"u"?performance.now():0;function v(h,x){let S=performance.now(),b=S-y;if(m===null||p===null||b===0)return m=h,p=x,y=S,!1;let I=h-m,L=x-p,C=I*I+L*L,E=b*b*O7;return m=h,p=x,y=S,C<E}function g(){a.clear(),l()}return function(x){a.clear();let S=i.domReference,b=i.floating;if(!S||!b||d==null||r==null||n==null)return;let{clientX:I,clientY:L}=x,C=$e(x),E=x.type==="mouseleave",T=ue(b,C),A=ue(S,C);if(T&&(f=!0,!E))return;if(A&&(f=!1,!E)){f=!0;return}if(E&&Te(x.relatedTarget)&&ue(b,x.relatedTarget))return;function N(){return!!(c&&br(c.nodesRef.current,u).length>0)}function P(){N()||g()}if(N())return;let F=S.getBoundingClientRect(),k=b.getBoundingClientRect(),H=r>k.right-k.width/2,q=n>k.bottom-k.height/2,O=k.width>F.width,V=k.height>F.height,w=(O?F:k).left,z=(O?F:k).right,U=(V?F:k).top,X=(V?F:k).bottom;if(d==="top"&&n>=F.bottom-1||d==="bottom"&&n<=F.top+1||d==="left"&&r>=F.right-1||d==="right"&&r<=F.left+1){P();return}let M=!1;switch(d){case"top":M=FS(I,L,w,F.top+1,z,k.bottom-1);break;case"bottom":M=FS(I,L,w,k.top+1,z,F.bottom-1);break;case"left":M=FS(I,L,k.right-1,X,F.left+1,U);break;case"right":M=FS(I,L,F.right-1,X,k.left+1,U);break;default:}if(M)return;if(f&&!k7(I,L,F)){P();return}if(!E&&v(I,L)){P();return}let _=!1;switch(d){case"top":{let B=O?xt/2:xt*4,J=O||H?r+B:r-B,Y=O?r-B:H?r+B:r-B,te=n+xt+1,ie=H||O?k.bottom-xt:k.top,ce=H?O?k.bottom-xt:k.top:k.bottom-xt;_=BS(I,L,J,te,Y,te,k.left,ie,k.right,ce);break}case"bottom":{let B=O?xt/2:xt*4,J=O||H?r+B:r-B,Y=O?r-B:H?r+B:r-B,te=n-xt,ie=H||O?k.top+xt:k.bottom,ce=H?O?k.top+xt:k.bottom:k.top+xt;_=BS(I,L,J,te,Y,te,k.left,ie,k.right,ce);break}case"left":{let B=V?xt/2:xt*4,J=V||q?n+B:n-B,Y=V?n-B:q?n+B:n-B,te=r+xt+1,ie=q||V?k.right-xt:k.left,ce=q?V?k.right-xt:k.left:k.right-xt;_=BS(I,L,ie,k.top,ce,k.bottom,te,J,te,Y);break}case"right":{let B=V?xt/2:xt*4,J=V||q?n+B:n-B,Y=V?n-B:q?n+B:n-B,te=r-xt,ie=q||V?k.left+xt:k.right,ce=q?V?k.left+xt:k.right:k.left+xt;_=BS(I,L,te,J,te,Y,ie,k.top,ce,k.bottom);break}default:}_?f||a.start(40,P):P()}};return o.__options={...e,blockPointerEvents:t},o}var zS=R(D(),1),vT=zS.createContext(void 0);function HS(){let e=zS.useContext(vT);if(e===void 0)throw new Error(Pe(26));return e}var US="ArrowUp",qS="ArrowDown",GS="ArrowLeft",jS="ArrowRight",XS="Home",YS="End";var Hf=new Set([US,qS,GS,jS,XS,YS]),N7="Shift",uF=[N7,"Control","Alt","Meta"];function V7(e){return _e(e)&&e.tagName==="INPUT"}function bT(e){return!!(V7(e)&&e.selectionStart!=null||_e(e)&&e.tagName==="TEXTAREA")}function CT(e,t,a,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,n=e.scrollTop,s=e.clientWidth<e.scrollWidth,i=e.clientHeight<e.scrollHeight;if(s&&o!=="vertical"){let l=lF(e,t,"left"),u=_S(e),c=_S(t);a==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-c.scrollMarginLeft-u.scrollPaddingLeft)),a==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(i&&o!=="horizontal"){let l=lF(e,t,"top"),u=_S(e),c=_S(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?n=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(n=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:n,behavior:"auto"})}function lF(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function _S(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var cF="--nested-dialogs";var qbe=hu.open,Gbe=hu.closed,jbe=hu.startingStyle,Xbe=hu.endingStyle;var fF="data-nested-dialog-open";var WS={...zr,...Xa,nestedDialogOpen(e){return e?{[fF]:""}:null}};var mF=R(Q(),1),pF=dF.forwardRef(function(t,a){let{render:o,className:r,style:n,finalFocus:s,initialFocus:i,...l}=t,u=La(),c=u.useState("descriptionElementId"),d=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),p=u.useState("modal"),y=u.useState("mounted"),v=u.useState("nested"),g=u.useState("nestedOpenDialogCount"),h=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),b=u.useState("transitionStatus"),I=u.useState("role"),L=f.useState("floatingId");HS(),Ra({open:h,ref:u.context.popupRef,onComplete(){h&&u.context.onOpenChangeComplete?.(!0)}});let C=i===void 0?JB(u.context.popupRef):i,E=g>0,T=u.useStateSetter("popupElement"),N=$("div",t,{state:{open:h,nested:v,transitionStatus:b,nestedDialogOpen:E},props:[m,{id:L,"aria-labelledby":S,"aria-describedby":c,role:I,...Bf,hidden:!y,onKeyDown(P){Hf.has(P.key)&&P.stopPropagation()},style:{[cF]:g}},l],ref:[a,u.context.popupRef,T],stateAttributesMapping:WS});return(0,mF.jsx)(jp,{context:f,openInteractionType:x,disabled:!y,closeOnFocusOut:!d,initialFocus:C,returnFocus:s,modal:p!==!1,restoreFocus:"popup",children:N})});var xF=R(D(),1);function Ui(e){return Gc(19)?e:e?"true":void 0}var hF=R(D(),1),gF=R(Q(),1),KS=hF.forwardRef(function(t,a){let{cutout:o,...r}=t,n;if(o){let s=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,gF.jsx)("div",{ref:a,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});var $p=R(Q(),1),yF=xF.forwardRef(function(t,a){let{keepMounted:o=!1,...r}=t,n=La(),s=n.useState("mounted"),i=n.useState("modal"),l=n.useState("open");return s||o?(0,$p.jsx)(vT.Provider,{value:o,children:(0,$p.jsxs)(qp,{ref:a,...r,children:[s&&i===!0&&(0,$p.jsx)(KS,{ref:n.context.internalBackdropRef,inert:Ui(!l)}),t.children]})}):null});var EF=R(D(),1);var RT=R(D(),1);var SF={},vF={},bF="";function ZS(e,t){return du(e)?e:t}function CF(e,t,a){return/hidden|clip/.test(e.getComputedStyle(ZS(t,a)).overflowY)}function z7(e){if(typeof document>"u")return!1;let t=ve(e);return He(t).innerWidth-t.documentElement.clientWidth>0}function H7(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=ve(e),o=a.documentElement,r=a.body,n=ZS(o,r),s=n.style.overflowY,i=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",n.style.overflowY="scroll";let l=n.offsetWidth;n.style.overflowY="hidden";let u=n.offsetWidth;return n.style.overflowY=s,o.style.scrollbarGutter=i,l===u}function _7(e){let t=ve(e),a=t.documentElement,o=t.body,r=ZS(a,o),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}function U7(e){let t=ve(e),a=t.documentElement,o=t.body,r=He(a),n=0,s=0,i=!1,l=yr.create();if(ot.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=r.getComputedStyle(a),p=r.getComputedStyle(o),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";n=a.scrollTop,s=a.scrollLeft,SF={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},bF=a.style.scrollBehavior,vF={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,S=m.overflowY==="scroll"||p.overflowY==="scroll",b=m.overflowX==="scroll"||p.overflowX==="scroll",I=Math.max(0,r.innerWidth-o.clientWidth),L=Math.max(0,r.innerHeight-o.clientHeight),C=parseFloat(p.marginTop)+parseFloat(p.marginBottom),E=parseFloat(p.marginLeft)+parseFloat(p.marginRight),T=ZS(a,o);if(i=H7(e),i){a.style.scrollbarGutter=g,T.style.overflowY="hidden",T.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(h||S)&&(a.style.overflowY="scroll"),(x||b)&&(a.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:C||L?`calc(100dvh - ${C+L}px)`:"100dvh",width:E||I?`calc(100vw - ${E+I}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=n,o.scrollLeft=s,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){Object.assign(a.style,SF),Object.assign(o.style,vF),i||(a.scrollTop=n,a.scrollLeft=s,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=bF)}function d(){c(),l.request(u)}u();let f=Le(r,"resize",d);return()=>{l.cancel(),c(),typeof r.removeEventListener=="function"&&f()}}var LT=class{lockCount=0;restore=null;timeoutLock=Ya.create();timeoutUnlock=Ya.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let a=ve(t),o=a.documentElement,r=a.body,n=He(o);if(CF(n,o,r)){let i=new n.MutationObserver(()=>{CF(n,o,r)||(i.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};i.observe(o,l),i.observe(r,l),this.restore=()=>i.disconnect();return}let s=ot.os.ios||!z7(t);this.restore=s?_7(t):U7(t)}},q7=new LT;function QS(e=!0,t=null){G(()=>{if(e)return q7.acquire(t)},[e,t])}function LF({store:e,parentContext:t,isDrawer:a}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),n=e.useState("modal"),s=e.useState("popupElement"),i=e.useState("floatingRootContext"),[l,u]=RT.useState(0),[c,d]=RT.useState(0),f=l===0,m=Tu(i,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:n==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(p){if(!e.context.outsidePressEnabledRef.current||"button"in p&&p.button!==0)return!1;if("touches"in p){if(p.type==="touchend"){if(p.changedTouches.length!==1||p.touches.length!==0)return!1}else if(p.touches.length!==1)return!1}let y=$e(p);if(f&&!r){if(n){let v=e.context.internalBackdropRef.current,g=e.context.backdropRef.current;return v||g?v===y||g===y||ue(y,s)&&!y?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:f});return QS(o&&n===!0,s),e.useContextCallback("onNestedDialogOpen",(p,y)=>{u(p),d(y)}),G(()=>(t?.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,c+(a?1:0)):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[a,o,l,c,t]),ES(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:c}),null}var JS=R(D(),1);var _f=class extends Lr{setState(t){}update(t){}set(t,a){}notifyAll(){}};var RF={...PS,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},$S=class extends Lr{constructor(t,a,o){let r=new Tn,n=TF(t,r,a,o);super(n,wF(r),RF)}setOpen=(t,a)=>{a.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&a.trigger==null&&this.state.activeTriggerId!=null&&(a.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,a),!a.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(t,a),this.update(sT(this.state,t,a.trigger)))}};function IF(){let e=new Tn;return new _f(Object.freeze(TF(void 0,e)),Object.freeze(wF(e)),RF)}function TF(e,t,a,o=!1){return{...AS(t,a,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function wF(e){return{popupRef:JS.createRef(),backdropRef:JS.createRef(),internalBackdropRef:JS.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}var eh=R(Q(),1);function AF(e,t){let{children:a,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:s,disablePointerDismissal:i=!1,modal:l=!0,actionsRef:u,handle:c,triggerId:d,defaultTriggerId:f=null}=t,m=e==="drawer",p=e==="alert-dialog",y=p?!0:l,v=p||i,g=p?"alertdialog":"dialog",h=La(!0),x=h!=null,S={modal:y,disablePointerDismissal:v,nested:x,role:g},b=LS((A,N)=>new $S({open:r,openProp:o,activeTriggerId:f,triggerIdProp:d,...S},A,N),!0);b.useControlledProp("openProp",o),b.useControlledProp("triggerIdProp",d),b.useSyncedValues(S),b.useContextCallback("onOpenChange",n),b.useContextCallback("onOpenChangeComplete",s);let I=b.useState("open"),L=b.useState("mounted"),C=b.useState("payload");eF(b,I),TS(b);let{forceUnmount:E}=wS(I,b);EF.useImperativeHandle(u,()=>({unmount:E,close:()=>b.setOpen(!1,he(ne.imperativeAction))}),[E,b]);let T=I||L;return(0,eh.jsxs)(dI.Provider,{value:b,children:[c&&(0,eh.jsx)(RS,{handle:c,store:b}),T&&(0,eh.jsx)(LF,{store:b,parentContext:h?.context,isDrawer:m}),typeof a=="function"?a({payload:C}):a]})}var PF=Qp(function(t){return AF("dialog",t)});var DF=R(D(),1);var MF=DF.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,...i}=t,l=HS(),u=La(),c=u.useState("open"),d=u.useState("nested"),f=u.useState("transitionStatus"),m=u.useState("nestedOpenDialogCount"),p=u.useState("mounted"),y=u.useStateSetter("viewportElement"),v=m>0;return $("div",t,{enabled:l||p,state:{open:c,nested:d,transitionStatus:f,nestedDialogOpen:v},ref:[a,y],stateAttributesMapping:WS,props:[{role:"presentation",hidden:!p,style:{pointerEvents:c?void 0:"none"},children:s},i]})});var OF=R(D(),1);var kF=OF.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,l=La(),u=Tt(s);return l.useSyncedValueWithCleanup("titleElementId",u),$("h2",t,{ref:a,props:[{id:u},i]})});var FF=R(D(),1);var ah=R(D(),1);var th=R(D(),1);function NF(e){let t=th.useRef(""),a=th.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:th.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:a}}var VF=R(D(),1);function Uf(e,t){let a=VF.useRef(e),o=W(t);G(()=>{a.current!==e&&o(a.current),a.current=e},[e,o])}function IT(e,t){let a=W((n,s)=>{(typeof e=="function"?e():e)||t(s||(ot.os.ios?"touch":""))}),{onClick:o,onPointerDown:r}=NF(a);return ah.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function BF(e){let[t,a]=ah.useState(null),o=IT(e,a);return Uf(e,r=>{r&&!e&&a(null)}),ah.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}var zF=yS(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,nativeButton:i=!0,id:l,payload:u,handle:c,...d}=t,f=La(!0),p=DS(c)??f;if(!p)throw new Error(Pe(79));let y=Tt(l),v=p.useState("floatingRootContext"),g=p.useState("isOpenedByTrigger",y),h=p.useState("triggerPopupId",y),x=FF.useRef(null),{registerTrigger:S,isMountedByThisTrigger:b}=IS(y,x,p,{payload:u}),{getButtonProps:I,buttonRef:L}=Ko({disabled:s,native:i}),C=Yp(v),E=IT(()=>p.select("open"),N=>{p.set("openMethod",N)}),T={disabled:s,open:g},A=p.useState("triggerProps",b);return $("button",t,{state:T,ref:[L,a,S,x],props:[C.reference,A,E,{[fS]:"",id:y,"aria-haspopup":"dialog","aria-expanded":g,"aria-controls":h},d,I],stateAttributesMapping:If})});var oh=class extends kf{constructor(){super(IF(),"Dialog",!1)}open(t){this.openByTrigger(t)}openWithPayload(t){let a=this.attachedStore;a!==null&&(a.set("payload",t),a.setOpen(!0,he(ne.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function HF(){return new oh}var fo=R(Q(),1);function _F({...e}){return(0,fo.jsx)(En.Root,{"data-slot":"sheet",...e})}function G7({...e}){return(0,fo.jsx)(En.Portal,{"data-slot":"sheet-portal",...e})}function j7({className:e,...t}){return(0,fo.jsx)(En.Backdrop,{"data-slot":"sheet-overlay",className:re("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function UF({className:e,children:t,side:a="right",showCloseButton:o=!0,...r}){return(0,fo.jsxs)(G7,{children:[(0,fo.jsx)(j7,{}),(0,fo.jsxs)(En.Popup,{"data-slot":"sheet-content","data-side":a,className:re("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...r,children:[t,o&&(0,fo.jsxs)(En.Close,{"data-slot":"sheet-close",render:(0,fo.jsx)(Eo,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,fo.jsx)(Pl,{}),(0,fo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function qF({className:e,...t}){return(0,fo.jsx)("div",{"data-slot":"sheet-header",className:re("flex flex-col gap-0.5 p-4",e),...t})}function GF({className:e,...t}){return(0,fo.jsx)(En.Title,{"data-slot":"sheet-title",className:re("text-base font-medium text-foreground",e),...t})}function jF({className:e,...t}){return(0,fo.jsx)(En.Description,{"data-slot":"sheet-description",className:re("text-sm text-muted-foreground",e),...t})}var Wf={};Aa(Wf,{Indicator:()=>gz,List:()=>Cz,Panel:()=>yz,Root:()=>QF,Tab:()=>ez});var Kt=R(D(),1);var Pu=R(D(),1);function Du({controlled:e,default:t,name:a,state:o="value"}){let{current:r}=Pu.useRef(e!==void 0),[n,s]=Pu.useState(t),i=r&&e!==void 0?e:n,l=Pu.useCallback(u=>{r||s(u)},[]);return[i,l]}var fs=R(D(),1);var ev=R(D(),1),TT=ev.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function XF(){return ev.useContext(TT)}var YF=R(Q(),1);function qf(e){let{children:t,elementsRef:a,labelsRef:o,onMapChange:r}=e,n=W(r),[,s]=fs.useState(!1),i=at(Y7).current,l=at(X7).current,u=fs.useRef(0),c=fs.useRef(!0),d=fs.useRef(null),f=fs.useRef(null),m=W(()=>{c.current||(c.current=!0,s(b=>!b))}),p=W((b,I)=>{l.set(b,I),m()}),y=W(b=>{l.delete(b),m()}),v=W(b=>{let I=new Map;return a.current.length=0,o&&(o.current.length=0),b.forEach(L=>{I.set(L.element,{...L.registration.metadata??{},index:L.index}),a.current[L.index]=L.element,o&&(o.current[L.index]=L.registration.label!==void 0?L.registration.label:L.registration.textRef?.current?.textContent??L.element.textContent)}),u.current=a.current.length,I});function g(b){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||b.length<2)return;let I=new MutationObserver(C=>{if(!Z7(C))return;let E=null;for(let T of b)if(T.isConnected){if(E&&WF(E,T)>0){I.disconnect(),m();return}E=T}});f.current=I;let L=new Set;for(let C=1;C<b.length;C+=1){let E=K7(b[C-1],b[C]);E&&L.add(E)}L.forEach(C=>I.observe(C,{childList:!0}))}let h=W(()=>{let[b,I]=W7(l),L=v(b),C=d.current,E=!C||C.length!==b.length||b.some((T,A)=>{let N=C[A];return T.index!==N.index||T.element!==N.element||T.registration.index!==N.registration.index||T.registration.metadata!==N.registration.metadata});g(I),d.current=b,c.current=!1,E&&(i.forEach(T=>T(L)),n(L))});G(()=>(!c.current&&d.current&&v(d.current),()=>{a.current=[],o&&(o.current=[])}),[a,o,v]),G(()=>{c.current&&h()}),G(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let x=W(b=>(i.add(b),()=>{i.delete(b)})),S=fs.useMemo(()=>({register:p,unregister:y,subscribeMapChange:x,nextIndexRef:u}),[p,y,x,u]);return(0,YF.jsx)(TT.Provider,{value:S,children:t})}function X7(){return new Map}function Y7(){return new Set}function W7(e){let t=new Set,a=[],o=[];e.forEach((n,s)=>{if(!s.isConnected)return;let i=n.index,l={index:i??-1,element:s,registration:n};i===null?o.push(l):i>=0&&(t.add(i),a.push(l))});let r=0;return o.sort((n,s)=>WF(n.element,s.element)),o.forEach(n=>{for(;t.has(r);)r+=1;n.index=r,a.push(n),r+=1}),t.size>0&&a.sort((n,s)=>n.index-s.index),[a,o.map(n=>n.element)]}function K7(e,t){let a=e.parentElement;for(;a&&!a.contains(t);)a=a.parentElement;return a}function Z7(e){for(let t of e)for(let a=0;a<t.removedNodes.length;a+=1)if(t.removedNodes[a].isConnected)return!0;return!1}function WF(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var tv=R(D(),1),wT=tv.createContext(void 0);function qi(){let e=tv.useContext(wT);if(e===void 0)throw new Error(Pe(64));return e}var KF="data-activation-direction";var An={tabActivationDirection:e=>({[KF]:e})};var ET=R(Q(),1),QF=Kt.forwardRef(function(t,a){let{className:o,defaultValue:r=0,onValueChange:n,orientation:s="horizontal",render:i,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=Kt.useRef([]),[m,p]=Kt.useState(()=>new Map),[y,v]=Du({controlled:l,default:r,name:"Tabs",state:"value"}),g=l!==void 0,[h,x]=Kt.useState(()=>new Map),S=Kt.useRef(void 0),b=Kt.useCallback(Y=>AT(h,Y),[h]),[I,L]=Kt.useState(()=>({previousValue:y,tabActivationDirection:"none"})),{previousValue:C,tabActivationDirection:E}=I,T=E,A=!1;C!==y&&(T=ZF(C,y,s,h),A=C!=null&&y!=null&&b(y)==null);let N=A?C:y,P=C!==N||E!==T;G(()=>{P&&L({previousValue:N,tabActivationDirection:T})},[N,P,T]);let F=W((Y,te)=>{let ie=ZF(y,Y,s,h);te.activationDirection=ie,n?.(Y,te),!te.isCanceled&&v(Y)}),k=W((Y,te)=>{n?.(Y,he(te,void 0,void 0,{activationDirection:"none"}))}),H=W((Y,te)=>(p(ie=>{let ce=new Map(ie);return ce.set(Y,te),ce}),()=>{p(ie=>{if(ie.get(Y)!==te)return ie;let ce=new Map(ie);return ce.delete(Y),ce})})),q=Kt.useCallback(Y=>m.get(Y),[m]),O=Kt.useCallback(Y=>{for(let te of h.values())if(Y===te.value)return te.id},[h]),V=Kt.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:O,getTabPanelIdByValue:q,onValueChange:F,orientation:s,registerMountedTabPanel:H,setTabMap:x,tabActivationDirection:T,value:y}),[b,O,q,F,s,H,x,T,y]),w=Kt.useMemo(()=>{for(let Y of h.values())if(Y.value===y)return Y},[h,y]),z=Kt.useMemo(()=>{for(let Y of h.values())if(!Y.disabled)return Y.value},[h]),U=Kt.useRef(!d),X=Kt.useRef(r),M=Kt.useRef(d),_=Kt.useRef(!1);G(()=>{if(g)return;function Y(ee,ae){v(ee),L({previousValue:ee,tabActivationDirection:"none"}),k(ee,ae),U.current=!1}if(h.size===0){_.current&&y!==null&&!S.current?.isConnected&&Y(null,ne.missing);return}_.current=!0,S.current=h.keys().next().value;let te=w?.disabled,ie=w==null&&y!==null;if(!te&&y===X.current&&(M.current=!1),M.current&&te&&y===X.current)return;let ce=U.current;if(te||ie){let ee=z??null;if(y===ee){U.current=!1;return}let ae=ne.missing;ce?ae=ne.initial:te&&(ae=ne.disabled),Y(ee,ae);return}ce&&w!=null&&(k(y,ne.initial),U.current=!1)},[z,g,k,w,v,h,y]);let J=$("div",t,{state:{orientation:s,tabActivationDirection:T},ref:a,props:c,stateAttributesMapping:An});return(0,ET.jsx)(wT.Provider,{value:V,children:(0,ET.jsx)(qf,{elementsRef:f,children:J})})});function AT(e,t){for(let[a,o]of e.entries())if(t===o.value)return a;return null}function ZF(e,t,a,o){if(e==null||t==null)return"none";let[r,n,s]=a==="horizontal"?["left","left","right"]:["top","up","down"],i=AT(o,e),l=AT(o,t);if(i==null||l==null)return i!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:n:"none";let u=i.getBoundingClientRect()[r],c=l.getBoundingClientRect()[r];return c<u?n:c>u?s:"none"}var ds=R(D(),1);var rh="data-composite-item-active";var JF=R(D(),1);var Mu=R(D(),1);function Gf(e={}){let{guess:t,label:a,metadata:o,textRef:r,index:n}=e,{register:s,unregister:i,subscribeMapChange:l,nextIndexRef:u}=XF(),c=Mu.useRef(-1),[d,f]=Mu.useState(n==null&&t?()=>{if(c.current===-1){let v=u.current;u.current+=1,c.current=v}return c.current}:-1),m=n??d,p=Mu.useRef(null),y=Mu.useCallback(v=>{let g=p.current;g&&i(g),p.current=v,v&&s(v,{metadata:o??null,index:n??null,label:a,textRef:r})},[n,s,i,o,a,r]);return G(()=>{if(n==null)return l(v=>{let g=p.current?v.get(p.current)?.index:null;g!=null&&f(g)})},[n,l]),{ref:y,index:m}}function $F(e={}){let{highlightItemOnHover:t,highlightedIndex:a,onHighlightedIndexChange:o}=Lf(),{ref:r,index:n}=Gf(e),s=a===n,i=JF.useRef(null),l=dr(r,i);return{compositeProps:{tabIndex:s?0:-1,onFocus(){o(n)},onMouseMove(){let c=i.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!s&&!d&&c.focus()}},compositeRef:l,index:n}}var av=R(D(),1),PT=av.createContext(void 0);function ov(){let e=av.useContext(PT);if(e===void 0)throw new Error(Pe(65));return e}var ez=ds.forwardRef(function(t,a){let{className:o,disabled:r=!1,render:n,value:s,id:i,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:y}=qi(),{activateOnFocus:v,registerTabResizeObserverElement:g,tabsListElement:h}=ov(),{highlightedIndex:x,onHighlightedIndexChange:S}=Lf(),b=Tt(i),I=ds.useMemo(()=>({disabled:r,id:b,value:s}),[r,b,s]),{compositeProps:L,compositeRef:C,index:E}=$F({metadata:I}),T=s===d,A=ds.useRef(!1),N=ds.useRef(null),P=W(_=>{N.current?.(),N.current=_?g(_):null});G(()=>{if(A.current){A.current=!1;return}if(!(T&&E>-1&&x!==E))return;let _=h;if(_!=null){let B=zt(ve(_));if(B&&ue(_,B))return}r||S(E)},[T,E,x,S,r,h]);let{getButtonProps:F,buttonRef:k}=Ko({disabled:r,native:l,focusableWhenDisabled:!0}),H=f(s),q=ds.useRef(!1),O=ds.useRef(!1);function V(_){m(s,he(ne.none,_.nativeEvent,void 0,{activationDirection:"none"}))}function w(_){T||r||V(_)}function z(_){T||r||v&&(!q.current||O.current)&&V(_)}function U(_){if(T||r)return;q.current=!0,O.current=_.button===0;let B=ve(_.currentTarget);function J(){q.current=!1,O.current=!1,B.removeEventListener("pointerup",J),B.removeEventListener("pointercancel",J)}B.addEventListener("pointerup",J),B.addEventListener("pointercancel",J)}return $("button",t,{state:{disabled:r,active:T,orientation:p,tabActivationDirection:y},ref:[a,k,C,P],props:[L,{role:"tab","aria-controls":H,"aria-selected":T,id:b,onClick:w,onFocus:z,onPointerDown:U,[rh]:T?"":void 0,onKeyDownCapture(){A.current=!0}},c,F],stateAttributesMapping:An})});var Yf=R(D(),1);var FRe=R(D(),1);var tz=R(Zp(),1);function J7(){return Ne}function $7(){return!1}function eY(){return!0}function az(){return(0,tz.useSyncExternalStore)(J7,$7,eY)}var rv=R(D(),1),tY=rv.createContext(void 0),aY={disableStyleElements:!1};function jf(){return rv.useContext(tY)??aY}var oz=R(Q(),1);function rz(e){let{script:t}=e,{nonce:a}=jf();return az()?(0,oz.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function Xf(e){let t=pa(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=_e(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o;return(Vi(a)!==n||Vi(o)!==s)&&(a=n,o=s),{width:a,height:o}}function nz(e,t){let a=(t??He(e).getComputedStyle(e)).transform,o=0,r=0,n=1;if(a&&a!=="none"){let s=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let i=s[1].split(", ").map(parseFloat);i.length===6?(o=i[4],r=i[5],n=Math.sqrt(i[0]*i[0]+i[1]*i[1])):i.length===16&&(o=i[12],r=i[13],n=i[0])}}return{x:o,y:r,scale:n}}var sz="--active-tab-left",iz="--active-tab-right",lz="--active-tab-top",uz="--active-tab-bottom",cz="--active-tab-width",fz="--active-tab-height";var nv=R(Q(),1),dz,rY={...An,activeTabPosition:()=>null,activeTabSize:()=>null},mz=2,gz=Yf.forwardRef(function(t,a){let{className:o,render:r,renderBeforeHydration:n=!1,style:s,...i}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=qi(),{tabsListElement:f,registerIndicatorUpdateListener:m}=ov(),p=XB();Yf.useEffect(()=>m(p),[m,p]);let y=0,v=0,g=0,h=0,x=0,S=0,b=!1;if(d!=null&&f!=null){let N=l(d);if(N!=null){b=!0;let{width:P,height:F}=Xf(N),{width:k,height:H}=Xf(f),q=N.getBoundingClientRect(),O=f.getBoundingClientRect(),V=k>0?O.width/k:1,w=H>0?O.height/H:1,z=nY(N,f);y=z.left,g=z.top;let U=(q.left-O.left)/V+f.scrollLeft-f.clientLeft,X=(q.top-O.top)/w+f.scrollTop-f.clientTop,M=sY(N);Math.abs(U-M.x-y)<=mz&&Math.abs(X-M.y-g)<=mz&&(y=U,g=X),x=P,S=F,v=f.scrollWidth-y-x,h=f.scrollHeight-g-S}}let I=b?{left:y,right:v,top:g,bottom:h}:null,L=b?{width:x,height:S}:null,C=b?{[sz]:`${y}px`,[iz]:`${v}px`,[lz]:`${g}px`,[uz]:`${h}px`,[cz]:`${x}px`,[fz]:`${S}px`}:void 0,E=b&&x>0&&S>0,A=$("span",t,{state:{orientation:u,activeTabPosition:I,activeTabSize:L,tabActivationDirection:c},ref:a,props:[{role:"presentation",style:C,hidden:!E},i,{suppressHydrationWarning:!0}],stateAttributesMapping:rY});return d==null?null:(0,nv.jsxs)(Yf.Fragment,{children:[A,n&&(dz||(dz=(0,nv.jsx)(rz,{script:""})))]})});function nY(e,t){let a=pz(e),o=pz(t),r=a.left-o.left-t.clientLeft,n=a.top-o.top-t.clientTop,s=Wo(e);for(;_e(s)&&s!==t&&!xr(s);)r-=s.scrollLeft,n-=s.scrollTop,s=Wo(s);return{left:r,top:n}}function pz(e){let t=0,a=0,o=e;for(;o!=null;){t+=o.offsetLeft,a+=o.offsetTop;let r=o.offsetParent;r!=null&&(t+=r.clientLeft,a+=r.clientTop),o=r}return{left:t,top:a}}function sY(e){let t=He(e).getComputedStyle(e),{x:a,y:o}=nz(e,t),r=a,n=o,{translate:s}=t;if(s&&s!=="none"){let i=s.split(" ");r+=hz(i[0],e.offsetWidth),n+=hz(i[1],e.offsetHeight)}return{x:r,y:n}}function hz(e,t){if(!e)return 0;let a=parseFloat(e);return Number.isFinite(a)?e.endsWith("%")?a/100*t:a:0}var sv=R(D(),1);var xz="data-index";var s0e=pu.startingStyle,i0e=pu.endingStyle;var lY={...An,...Xa},yz=sv.forwardRef(function(t,a){let{className:o,value:r,render:n,keepMounted:s=!1,style:i,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=qi(),p=Tt(),{ref:y,index:v}=Gf(),g=r===u,{mounted:h,transitionStatus:x,setMounted:S}=Mo(g),b=!h,I=c(r),L={hidden:b,orientation:d,tabActivationDirection:f,transitionStatus:x},C=sv.useRef(null),E=$("div",t,{state:L,ref:[a,y,C],props:[{"aria-labelledby":I,hidden:b,id:p,role:"tabpanel",tabIndex:g?0:-1,inert:Ui(!g),[xz]:v},l],stateAttributesMapping:lY});return Ra({open:g,ref:C,onComplete(){g||S(!1)}}),G(()=>{if(!(p==null||b&&!s))return m(r,p)},[b,s,r,p,m]),s||h?E:null});var qr=R(D(),1);var vz=R(D(),1);var Ou=R(D(),1);function iv(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function Sz(e){let{loopFocus:t=!0,orientation:a="both",grid:o,onLoop:r,direction:n,highlightedIndex:s,onHighlightedIndexChange:i,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=Ro}=e,[m,p]=Ou.useState(0),y=o!=null,v=Ou.useRef(null),g=dr(v,l),h=Ou.useRef([]),x=Ou.useRef(!1),S=Ou.useRef(null),b=s??m,I=W((A,N=!1)=>{if(S.current=h.current[A]??null,(i??p)(A),N){let P=h.current[A];CT(v.current,P,n,a)}}),L=W(A=>{if(A.size===0)return;if(x.current){let k=h.current,H=k.indexOf(S.current);if(H===-1){let q=k[b];!q||us(k,b,d)?I(uY(k,d)):S.current=q}else H!==b&&I(H);return}x.current=!0;let N=Array.from(A.keys()),P=N.find(k=>k?.hasAttribute(rh))??null,F=P?A.get(P)?.index??-1:-1;if(F!==-1)I(F);else if(us(N,b,d)){let k=vr(N,{disabledIndices:d});Bi(N,k)||I(k)}CT(v.current,P,n,a)});G(()=>{if(d==null||s!=null||!x.current)return;let A=h.current;if(us(A,b,d)){let N=vr(A,{disabledIndices:d});Bi(A,N)||I(N)}},[d,s,b,h,I]);let C=W((A,N,P)=>r?r(A,N,P,h):P),E=W(A=>{let N=A.key===XS||A.key===YS;if(!Hf.has(A.key)||!u&&N||cY(A,f)||!v.current)return;let F=n==="rtl",k=F?GS:jS,H=F?jS:GS,q=a==="vertical"?qS:k,O=a==="vertical"?US:H,V=$e(A.nativeEvent);if(V!=null&&bT(V)&&!iv(V)){let _=V.selectionStart,B=V.selectionEnd,J=V.value;if(_==null||A.shiftKey||_!==B||A.key!==O&&_<J.length||A.key!==q&&_>0)return}let w=b,z=bu(h,d),U=Df(h,d);o!=null&&(w=o({disabledIndices:d,elementsRef:h,event:A,highlightedIndex:b,loopFocus:t,maxIndex:U,minIndex:z,onLoop:C,orientation:a,rtl:F}));let X=a!=="vertical"&&A.key===k||a!=="horizontal"&&A.key===qS,M=a!=="vertical"&&A.key===H||a!=="horizontal"&&A.key===US;u&&(A.key===XS?w=z:A.key===YS&&(w=U)),w===b&&(X||M)&&(t&&w===U&&X?(w=z,r&&(w=r(A,b,w,h))):t&&w===z&&M?(w=U,r&&(w=r(A,b,w,h))):w=vr(h.current,{startingIndex:w,decrement:M,disabledIndices:d})),w!==b&&!Bi(h.current,w)&&(c&&A.stopPropagation(),(y||N||X||M)&&A.preventDefault(),I(w,!0),queueMicrotask(()=>{h.current[w]?.focus()}))});return{props:{ref:g,onFocus(A){let N=v.current,P=$e(A.nativeEvent);!N||P==null||!bT(P)||P.setSelectionRange(0,P.value.length)},onKeyDown:E},highlightedIndex:b,onHighlightedIndexChange:I,elementsRef:h,onMapChange:L,relayKeyboardEvent:E}}function uY(e,t){let a=-1;for(let o=0;o<e.length;o+=1){let r=e[o];if(!(!r||us(e,o,t))){if(r.hasAttribute(rh))return o;a===-1&&(a=o)}}return Math.max(a,0)}function cY(e,t){for(let a of uF)if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}var lv=R(D(),1),fY=lv.createContext(void 0);function Oo(){return lv.useContext(fY)?.direction??"ltr"}var DT=R(Q(),1);function bz(e){let{render:t,className:a,style:o,refs:r=Ro,props:n=Ro,state:s=We,stateAttributesMapping:i,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:y,stopEventPropagation:v=!0,rootRef:g,disabledIndices:h,modifierKeys:x,highlightItemOnHover:S=!1,tag:b="div",...I}=e,L=Oo(),{props:C,highlightedIndex:E,onHighlightedIndexChange:T,elementsRef:A,onMapChange:N,relayKeyboardEvent:P}=Sz({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:g,stopEventPropagation:v,enableHomeAndEndKeys:p,direction:L,disabledIndices:h,modifierKeys:x}),F=$(b,e,{state:s,ref:r,props:[C,...n,I],stateAttributesMapping:i}),k=vz.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:T,highlightItemOnHover:S,relayKeyboardEvent:P}),[E,T,S,P]);return(0,DT.jsx)(lI.Provider,{value:k,children:(0,DT.jsx)(qf,{elementsRef:A,onMapChange:H=>{y?.(H),N(H)},children:F})})}var MT=R(Q(),1),Cz=qr.forwardRef(function(t,a){let{activateOnFocus:o=!1,className:r,loopFocus:n=!0,render:s,style:i,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=qi(),[f,m]=qr.useState(0),[p,y]=qr.useState(null),v=qr.useRef(new Set),g=qr.useRef(new Set),h=qr.useRef(null);G(()=>{if(typeof ResizeObserver>"u")return;let C=new ResizeObserver(()=>{v.current.forEach(E=>{E()})});return h.current=C,p&&C.observe(p),g.current.forEach(E=>{C.observe(E)}),()=>{C.disconnect(),h.current=null}},[p]);let x=W(C=>(v.current.add(C),()=>{v.current.delete(C)})),S=W(C=>(g.current.add(C),h.current?.observe(C),()=>{g.current.delete(C),h.current?.unobserve(C)})),b={orientation:u,tabActivationDirection:d},I={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},L=qr.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:p}),[o,x,S,p]);return(0,MT.jsx)(PT.Provider,{value:L,children:(0,MT.jsx)(bz,{render:s,className:r,style:i,state:b,refs:[a,y],props:[I,l],stateAttributesMapping:An,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:n,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:Ro})})});var fv=R(Q(),1);function uv({className:e,orientation:t="horizontal",...a}){return(0,fv.jsx)(Wf.Root,{"data-slot":"tabs","data-orientation":t,className:re("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var dY=jc("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cv({className:e,variant:t="default",...a}){return(0,fv.jsx)(Wf.List,{"data-slot":"tabs-list","data-variant":t,className:re(dY({variant:t}),e),...a})}function Kf({className:e,...t}){return(0,fv.jsx)(Wf.Tab,{"data-slot":"tabs-trigger",className:re("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var Pn={};Aa(Pn,{Arrow:()=>oH,Handle:()=>lh,Popup:()=>tH,Portal:()=>Fz,Positioner:()=>$z,Provider:()=>nH,Root:()=>Ez,Trigger:()=>Mz,Viewport:()=>xH,createHandle:()=>yH});var Zf=R(D(),1);var dv=R(D(),1),OT=dv.createContext(void 0);function Rr(e){let t=dv.useContext(OT);if(t===void 0&&!e)throw new Error(Pe(72));return t}var Lz=R(D(),1);var Rz={...PS,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},mv=class extends Lr{constructor(t,a,o){let r=new Tn;super(Tz(t,r,a,o),wz(r),Rz)}setOpen=(t,a)=>{$B(this,t,a,{extraState:{openChangeReason:a.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,he(ne.triggerPress,t))}};function Iz(){let e=new Tn,t=new _f(Object.freeze(Tz(void 0,e)),Object.freeze(wz(e)),Rz);return Object.assign(t,{setOpen:Ne,cancelPendingOpen:Ne})}function Tz(e,t,a,o=!1){return{...AS(t,a,o),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function wz(e){return{popupRef:Lz.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var nh=R(Q(),1),Ez=Qp(function(t){let{disabled:a=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:n=!1,trackCursorAxis:s="none",actionsRef:i,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=LS((A,N)=>new mv({open:o,openProp:r,activeTriggerId:f,triggerIdProp:d},A,N));p.useControlledProp("openProp",r),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let y=p.useState("open"),v=!a&&y,g=p.useState("activeTriggerId"),h=p.useState("mounted"),x=p.useState("payload");p.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:n,disabled:a}),TS(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:b}=wS(v,p),I=p.useState("isInstantPhase"),L=p.useState("instantType"),C=p.useState("lastOpenChangeReason"),E=Zf.useRef(null);G(()=>{y&&a&&p.setOpen(!1,he(ne.disabled))},[y,a,p]),G(()=>{b==="ending"&&C===ne.none||b!=="ending"&&I?(L!=="delay"&&(E.current=L),p.set("instantType","delay")):E.current!==null&&(p.set("instantType",E.current),E.current=null)},[b,I,C,L,p]),G(()=>{v&&g==null&&p.set("payload",void 0)},[p,g,v]),Zf.useImperativeHandle(i,()=>({unmount:S,close:()=>p.setOpen(!1,he(ne.imperativeAction))}),[S,p]);let T=v||h||!a&&s!=="none";return(0,nh.jsxs)(OT.Provider,{value:p,children:[c&&(0,nh.jsx)(RS,{handle:c,store:p}),T&&(0,nh.jsx)(mY,{store:p,disabled:a,trackCursorAxis:s}),typeof m=="function"?m({payload:x}):m]})});function mY({store:e,disabled:t,trackCursorAxis:a}){let o=e.useState("floatingRootContext"),r=Tu(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),n=GI(o,{enabled:!t&&a!=="none",axis:a==="none"?void 0:a}),s=Zf.useMemo(()=>Ga(n.reference,r.reference),[n.reference,r.reference]);return ES(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:r.floating??We}),null}var hv=R(D(),1);var pv=R(D(),1),kT=pv.createContext(void 0);function Az(){return pv.useContext(kT)}var Dz="data-base-ui-tooltip-trigger";function Pz(e){if("composedPath"in e){let a=e.composedPath();for(let o=0;o<a.length;o+=1){let r=a[o];if(Te(r))return r}}let t=e.target;return Te(t)?t:null}function pY(e){let t=e;for(;t;){let a=t.closest(`[${Dz}]`);if(a)return a;let o=t.getRootNode();t="host"in o&&Te(o.host)?o.host:null}return null}var Mz=yS(function(t,a){let{render:o,className:r,style:n,handle:s,payload:i,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=Rr(!0),v=DS(s)??p;if(!v)throw new Error(Pe(82));let g=Tt(f),h=v.useState("isTriggerActive",g),x=v.useState("isOpenedByTrigger",g),S=v.useState("floatingRootContext"),b=hv.useRef(null),I=d??0,{registerTrigger:L,isMountedByThisTrigger:C}=IS(g,b,v,{payload:i,closeOnClick:c,closeDelay:I}),E=Az(),{activeIdRef:T,delayRef:A,isInstantPhase:N,hasProvider:P}=PI(S,{open:x}),F=zf(S);v.useSyncedValue("isInstantPhase",N);let k=v.useState("disabled"),H=l??k,q=pt(H),O=v.useState("trackCursorAxis"),V=v.useState("disableHoverablePopup"),w=hv.useRef(!1),z=Ze(),U=hv.useRef(void 0);function X(){return P&&T.current!=null?0:u??E??600}function M(ae){let me=b.current;if(!me||!ae)return!1;let ge=pY(ae);return ge!==null&&ge!==me&&ue(me,ge)}function _(ae){let me=M(ae);return w.current=me,me&&(F.openChangeTimeout.clear(),F.restTimeout.clear(),F.restTimeoutPending=!1,z.clear()),me}let B=hT(S,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!V&&O!=="both"?ST():null,restMs:X,delay(){return d==null&&P?{close:Hr(A.current,"close")}:{close:I}},triggerElementRef:b,isActiveTrigger:h,isClosing:()=>v.select("transitionStatus")==="ending",shouldOpen(){return!w.current}}),J=fT(S,{enabled:!H}).reference,Y=ae=>{let me=w.current,ge=Pz(ae),we=_(ge),pe=b.current,Re=pe&&ge&&ue(pe,ge);if(we&&v.select("open")&&v.select("lastOpenChangeReason")===ne.triggerHover){v.setOpen(!1,he(ne.triggerHover,ae));return}if(me&&!we&&Re&&!q.current&&!v.select("open")&&pe&&Zo(U.current)){let le=()=>{!w.current&&!q.current&&!v.select("open")&&v.setOpen(!0,he(ne.triggerHover,ae,pe))},Ie=X();Ie===0?(z.clear(),le()):z.start(Ie,le)}},te=v.useState("triggerProps",C);return $("button",t,{state:{open:x},ref:[a,L,b],props:[B,J,C||O!=="none"?te:void 0,{onMouseOver(ae){Y(ae.nativeEvent)},onFocus(ae){M(Pz(ae.nativeEvent))&&ae.preventBaseUIHandler()},onMouseLeave(){w.current=!1,z.clear(),U.current=void 0},onPointerEnter(ae){U.current=ae.pointerType},onPointerDown(ae){U.current=ae.pointerType,v.set("closeOnClick",c),c&&!v.select("open")&&v.cancelPendingOpen(ae.nativeEvent)},onClick(ae){c&&!v.select("open")&&v.cancelPendingOpen(ae.nativeEvent)},id:g,[Np]:H?"":void 0,[Dz]:H?void 0:""},m],stateAttributesMapping:If})});var Bz=R(D(),1);var gv=R(D(),1),NT=gv.createContext(void 0);function Oz(){let e=gv.useContext(NT);if(e===void 0)throw new Error(Pe(70));return e}var xv=R(D(),1),kz=R(Wr(),1);var Nz=R(Q(),1),Vz=xv.forwardRef(function(t,a){let{children:o,container:r,className:n,render:s,style:i,...l}=t,{node:u,subtree:c}=dS({container:r,ref:a,componentProps:t,elementProps:l});return!c&&!u?null:(0,Nz.jsxs)(xv.Fragment,{children:[c,u&&kz.createPortal(o,u)]})});var VT=R(Q(),1),Fz=Bz.forwardRef(function(t,a){let{keepMounted:o=!1,...r}=t;return Rr().useState("mounted")||o?(0,VT.jsx)(NT.Provider,{value:o,children:(0,VT.jsx)(Vz,{ref:a,...r})}):null});var Lv=R(D(),1);var yv=R(D(),1),BT=yv.createContext(void 0);function Qf(){let e=yv.useContext(BT);if(e===void 0)throw new Error(Pe(71));return e}var Qo=R(D(),1);var hY=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=In(e,t)||{};if(u==null)return{};let f=sS(c),m={x:a,y:o},p=Hp(r),y=zp(p),v=await s.getDimensions(u),g=p==="y",h=g?"top":"left",x=g?"bottom":"right",S=g?"clientHeight":"clientWidth",b=n.reference[y]+n.reference[p]-m[p]-n.floating[y],I=m[p]-n.reference[p],L=d==="real"?await s.getOffsetParent?.(u):i.floating,C=i.floating[S]||n.floating[y];(!C||!await s.isElement?.(L))&&(C=i.floating[S]||n.floating[y]);let E=b/2-I/2,T=C/2-v[y]/2-1,A=Math.min(f[h],T),N=Math.min(f[x],T),P=A,F=C-v[y]-N,k=C/2-v[y]/2+E,H=rS(P,k,F),q=!l.arrow&&Sr(r)!=null&&k!==H&&n.reference[y]/2-(k<P?A:N)-v[y]/2<0,O=q?k<P?k-P:k-F:0;return{[p]:m[p]+O,data:{[p]:H,centerOffset:k-H-O,...q&&{alignmentOffset:O}},reset:q}}}),zz=(e,t)=>{let{name:a,fn:o}=hY(e);return{name:a,fn:o,options:[e,t]}};var Hz={name:"hide",async fn(e){let{width:t,height:a,x:o,y:r}=e.rects.reference,n=t===0&&a===0&&o===0&&r===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-a>=0||s.right-t>=0||s.bottom-a>=0||s.left-t>=0||n}}}};var Jf={sideX:"left",sideY:"top"};var Sv="--available-width",vv="--available-height",_z="--anchor-width",Uz="--anchor-height",qz="--transform-origin",Gz="--positioner-width",jz="--positioner-height";var Yz=Sv,Wz=vv;function Qz(e,t,a){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?a?"inline-start":"inline-end":"right",bottom:"bottom",left:o?a?"inline-end":"inline-start":"left"}[t]}function Kz(e,t,a){let{rects:o,placement:r}=e;return{side:Qz(t,Ka(r),a),align:Sr(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function bv(e){return gY(e,rF)}function gY(e,t){let{anchor:a,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:y,mounted:v,collisionAvoidance:g,shift:h,nodeId:x,adaptiveOrigin:S,lazyFlip:b=!1,externalTree:I}=e,[L,C]=Qo.useState(null);!v&&L!==null&&C(null);let E=g.side||"flip",T=g.align||"flip",A=g.fallbackAxisSide||"end",N=h?.crossAxis??!1,P=h?.rootBoundary,F=typeof a=="function"?a:void 0,k=W(F),H=F?k:a,q=pt(a),O=pt(v),w=Oo()==="rtl",z=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":w?"left":"right","inline-start":w?"right":"left"}[r],U=s==="center"?z:`${z}-${s}`,X=u;typeof X=="number"?X={top:X,right:X,bottom:X,left:X}:X&&(X={top:X.top||0,right:X.right||0,bottom:X.bottom||0,left:X.left||0});let M=1,_=r==="bottom"?M:0,B=r==="top"?M:0,J=r==="right"?M:0,Y=r==="left"?M:0,te={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:X},ie=Qo.useRef(null),ce=pt(n),ee=pt(i),ae=typeof n!="function"?n:0,me=typeof i!="function"?i:0,ge=[];m&&ge.push(m),ge.push(WI(Ee=>{let Pt=Kz(Ee,r,w),Je=typeof ce.current=="function"?ce.current(Pt):ce.current,Bt=typeof ee.current=="function"?ee.current(Pt):ee.current;return{mainAxis:Je,crossAxis:Bt,alignmentAxis:Bt}},[ae,me,w,r]));let we=T==="none"&&E!=="shift",pe=!we&&(c||N||E==="shift"),Re=E==="none"?null:QI({...te,padding:{top:X.top+M+_,right:X.right+M+Y,bottom:X.bottom+M+B,left:X.left+M+J},mainAxis:!N&&E==="flip",crossAxis:T==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),le=we?null:KI({...te,rootBoundary:P,mainAxis:T!=="none",crossAxis:pe,limiter:c||N?void 0:ZI(Ee=>{if(!ie.current)return{};let{width:Pt,height:Je}=ie.current.getBoundingClientRect(),Bt=Po(Ka(Ee.placement)),po=Bt==="y"?Pt:Je,ho=Bt==="y"?X.left+X.right:X.top+X.bottom;return{offset:po/2+ho/2}})},[te,c,N,P,X,T]);E==="shift"||T==="shift"||s==="center"?ge.push(le,Re):ge.push(Re,le),ge.push(JI({...te,apply({elements:{floating:Ee},availableWidth:Pt,availableHeight:Je,rects:Bt}){if(!O.current)return;let po=Ee.style;po.setProperty(Yz,`${Pt}px`),po.setProperty(Wz,`${Je}px`);let ho=He(Ee).devicePixelRatio||1,{x:Gu,y:vs,width:tl,height:Xr}=Bt.reference,Ke=(Math.round((Gu+tl)*ho)-Math.round(Gu*ho))/ho,Dt=(Math.round((vs+Xr)*ho)-Math.round(vs*ho))/ho;po.setProperty(_z,`${Ke}px`),po.setProperty(Uz,`${Dt}px`)}}),zz(Ee=>({element:ie.current||ve(Ee.elements.floating).createElement("div"),padding:ie.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Ee){let{elements:{floating:Pt},middlewareData:Je,placement:Bt,platform:po,rects:ho,y:Gu}=Ee,vs=Ka(Bt),tl=Sr(Bt),Xr=Po(vs)==="y",Ke=ie.current,Dt=typeof n=="function"?n(Kz(Ee,r,w)):n,kn;if(!Ke&&tl&&Math.abs(Xr?Je.shift?.x||0:Je.shift?.y||0)<=1)kn=tl==="start"===(Xr&&po.isRTL?.(Pt)===!0)?"100%":"0%";else{let ol=Xr?Je.arrow?.x||0:Je.arrow?.y||0,gd=Xr?Ke?.clientWidth||0:Ke?.clientHeight||0;kn=`${ol+gd/2}px`}let al=vs==="top"||vs==="left"?`calc(100% + ${Dt}px)`:`${-Dt}px`;return pe&&Xr&&Math.abs(Je.shift?.y||0)>Dt&&(al=`${ho.reference.y+ho.reference.height/2-Gu}px`),Pt.style.setProperty(qz,Xr?`${kn} ${al}`:`${al} ${kn}`),{}}},Hz,S),G(()=>{!v&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,y]);let Ie=Qo.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Ve,elements:Me,x:ut,y:oe,middlewareData:fe,update:K,placement:j,context:se,isPositioned:Be,floatingStyles:Vt}=t({rootContext:y,open:p?v:void 0,placement:U,middleware:ge,strategy:o,whileElementsMounted:p?void 0:(...Ee)=>Kp(...Ee,Ie),nodeId:x,externalTree:I}),{sideX:Jt,sideY:Et}=fe.adaptiveOrigin||Jf,vt=Be?o:"fixed",wa=Qo.useMemo(()=>{let Ee;return Be?S?Ee={position:vt,[Jt]:ut,[Et]:oe}:Ee={...Vt,position:vt}:Ee={position:vt,top:0,left:0},Ee[Yz]="100vw",Ee[Wz]="100vh",Be||(Ee.opacity=0),Ee},[S,vt,Jt,ut,Et,oe,Vt,Be]),Ea=Qo.useRef(null);G(()=>{if(!v)return;let Ee=q.current,Pt=typeof Ee=="function"?Ee():Ee,Bt=(Zz(Pt)?Pt.current:Pt)||null||null;Bt!==Ea.current&&(Ve.setPositionReference(Bt),Ea.current=Bt)},[v,Ve,H,q]),Qo.useEffect(()=>{if(!v)return;let Ee=q.current;typeof Ee!="function"&&Zz(Ee)&&Ee.current!==Ea.current&&(Ve.setPositionReference(Ee.current),Ea.current=Ee.current)},[v,Ve,H,q]),Qo.useEffect(()=>{if(p&&v&&Me.reference&&Me.floating)return Kp(Me.reference,Me.floating,K,Ie)},[p,v,Me,K,Ie]);let $t=Ka(j),Ha=Qz(r,$t,w),mo=Sr(j)||"center",er=!!fe.hide?.referenceHidden;G(()=>{b&&v&&Be&&$t!==z&&C($t)},[b,v,Be,$t,z]);let ha=Qo.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),_t=fe.arrow?.centerOffset!==0;return Qo.useMemo(()=>({positionerStyles:wa,arrowStyles:ha,arrowRef:ie,arrowUncentered:_t,side:Ha,align:mo,physicalSide:$t,anchorHidden:er,refs:Ve,context:se,isPositioned:Be,update:K}),[wa,ha,ie,_t,Ha,mo,$t,er,Ve,se,Be,K])}function Zz(e){return e!=null&&"current"in e}function $f(e){return e==="starting"?Q2:We}function Cv(e,t,{styles:a,transitionStatus:o,props:r,refs:n,hidden:s,inert:i=!1}){let l={...a};return i&&(l.pointerEvents="none"),$("div",e,{state:t,ref:n,props:[{role:"presentation",hidden:s,style:l},$f(o),r],stateAttributesMapping:zr})}var Jz=R(Q(),1),$z=Lv.forwardRef(function(t,a){let{render:o,className:r,anchor:n,positionMethod:s="absolute",side:i="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:y=!1,collisionAvoidance:v=$2,style:g,...h}=t,x=Rr(),S=Oz(),b=x.useState("open"),I=x.useState("mounted"),L=x.useState("trackCursorAxis"),C=x.useState("disableHoverablePopup"),E=x.useState("floatingRootContext"),T=x.useState("instantType"),A=x.useState("transitionStatus"),N=x.useState("adaptiveOrigin"),P=bv({anchor:n,positionMethod:s,floatingRootContext:E,mounted:I,side:i,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:y,keepMounted:S,collisionAvoidance:v,adaptiveOrigin:N}),F=Lv.useMemo(()=>({open:b,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:L!=="none"?"tracking-cursor":T}),[b,P.side,P.align,P.anchorHidden,L,T]),k=Cv(t,F,{styles:P.positionerStyles,transitionStatus:A,props:h,refs:[a,x.useStateSetter("positionerElement")],hidden:!I,inert:!b||L==="both"||C});return(0,Jz.jsx)(BT.Provider,{value:P,children:k})});var eH=R(D(),1);var tH=eH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=Rr(),{side:l,align:u}=Qf(),c=i.useState("open"),d=i.useState("instantType"),f=i.useState("transitionStatus"),m=i.useState("popupProps"),p=i.useState("floatingRootContext"),y=i.useState("disabled"),v=i.useState("closeDelay");Ra({open:c,ref:i.context.popupRef,onComplete(){c&&i.context.onOpenChangeComplete?.(!0)}}),pT(p,{enabled:!y,closeDelay:v});let g=i.useStateSetter("popupElement");return $("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[a,i.context.popupRef,g],props:[Bf,m,$f(f),s],stateAttributesMapping:Tf})});var aH=R(D(),1);var oH=aH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=Rr(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Qf(),m=i.useState("open"),p=i.useState("instantType");return $("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[a,l],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:zr})});var rH=R(D(),1);var FT=R(Q(),1),nH=function(t){let{delay:a,closeDelay:o,timeout:r=400}=t,n=rH.useMemo(()=>({open:a,close:o}),[a,o]);return(0,FT.jsx)(kT.Provider,{value:a,children:(0,FT.jsx)(AI,{delay:n,timeoutMs:r,children:t.children})})};var gH=R(D(),1);var za=R(D(),1),mH=R(Wr(),1);var sH=R(D(),1);function Rv(e){let[t,a]=sH.useState({current:e,previous:null});return Object.is(e,t.current)||a({current:e,previous:t.current}),t.previous}var ed=R(D(),1);var sh="--popup-width",ih="--popup-height";function uH(e){let{popupElement:t,positionerElement:a,content:o,mounted:r,onMeasureLayout:n,onMeasureLayoutComplete:s,side:i,direction:l}=e,u=Vf(t,!0),c=uo(),d=ed.useRef(null),f=ed.useRef(!0),m=ed.useRef(Ne),p=W(n),y=W(s),v=ed.useMemo(()=>xY(i,l),[i,l]);G(()=>{if(!r){m.current=Ne,f.current=!0,d.current=null;return}if(!t||!a)return;m.current=lH(t,v),zT(t,"auto");let g=Tv(t,"position","static"),h=Tv(t,"transform","none"),x=Tv(t,"scale","1"),S=lH(a,{[Sv]:"max-content",[vv]:"max-content"});function b(){g(),h(),S()}function I(){b(),x()}if(p?.(),f.current||d.current===null){Iv(a,"max-content");let T=Xf(t);return d.current=T,Iv(a,T),I(),y?.(null,T),f.current=!1,()=>{m.current(),m.current=Ne}}Iv(a,"max-content");let L=d.current,C=Xf(t);d.current=C,zT(t,L),I(),y?.(L,C),Iv(a,C);let E=new AbortController;return c.request(()=>{zT(t,C),u(()=>{t.style.setProperty(sh,"auto"),t.style.setProperty(ih,"auto")},E.signal)}),()=>{E.abort(),c.cancel(),m.current(),m.current=Ne}},[o,t,a,u,c,r,p,y,v])}function xY(e,t){let a=e==="top",o=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!a&&!o?We:{position:"absolute",[a?"bottom":"top"]:"0",[o?"right":"left"]:"0"}}function Tv(e,t,a){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,a),()=>{e.style.setProperty(t,o)}}function lH(e,t){let a=[];for(let[o,r]of Object.entries(t))a.push(Tv(e,o,r));return a.length?()=>{a.forEach(o=>o())}:Ne}function zT(e,t){let a=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(sh,a),e.style.setProperty(ih,o)}function Iv(e,t){let a=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(Gz,a),e.style.setProperty(jz,o)}var cH={name:"adaptiveOrigin",async fn(e){let{x:t,y:a,rects:{floating:o},elements:{floating:r},platform:n,strategy:s,placement:i}=e,l=He(r),u=l.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:a,data:Jf};let d=await n.getOffsetParent?.(r),f={width:0,height:0};if(s==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let h=ve(r);f={width:h.documentElement.clientWidth,height:h.documentElement.clientHeight}}else await n.isElement?.(d)&&(f=await n.getDimensions(d));let m=Ka(i),p=t,y=a;m==="left"&&(p=f.width-(t+o.width)),m==="top"&&(y=f.height-(a+o.height));let v=m==="left"?"right":Jf.sideX,g=m==="top"?"bottom":Jf.sideY;return{x:p,y,data:{sideX:v,sideY:g}}}};var fH="data-activation-direction";var td=R(Q(),1),pH={activationDirection:e=>e?{[fH]:e}:null};function hH(e){let{store:t,side:a,children:o}=e,r=Oo(),n=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),i=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=Rv(i?n:null),m=bY(s,l),p=za.useRef(null),[y,v]=za.useState(null),[g,h]=za.useState(null),x=za.useRef(null),S=za.useRef(null),b=Vf(x,!0),I=uo(),L=za.useRef(null),[C,E]=za.useState(null),[T,A]=za.useState(!1);G(()=>(t.set("adaptiveOrigin",cH),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let N=W(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),P=W(V=>{x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),V&&E(V)}),F=W(()=>{L.current?.abort();let V=new AbortController;L.current=V,b(()=>{v(null),E(null),p.current=null},V.signal)}),k=za.useRef(null);G(()=>{(!i||!u)&&(k.current=null)},[i,u]),G(()=>{if(n&&f&&n!==f&&k.current!==n&&p.current){v(p.current),A(!0);let V=vY(f,n);h(V),k.current=n}},[n,f]),G(()=>{y!=null&&(L.current?.abort(),A(!0),I.request(()=>{mH.flushSync(()=>{A(!1)}),F()}))},[m,y,F,I]),G(()=>{let V=x.current;if(!V)return;let w=ve(V).createElement("div");for(let z of Array.from(V.childNodes))w.appendChild(z.cloneNode(!0));p.current=w});let H=y!=null,q;H?q=(0,td.jsxs)(za.Fragment,{children:[(0,td.jsx)("div",{"data-previous":!0,inert:Ui(!0),ref:S,style:{...C?{[sh]:`${C.width}px`,[ih]:`${C.height}px`}:null,position:"absolute"},"data-ending-style":T?void 0:""},"previous"),(0,td.jsx)("div",{"data-current":!0,ref:x,"data-starting-style":T?"":void 0,children:o},m)]}):q=(0,td.jsx)("div",{"data-current":!0,ref:x,children:o},m),G(()=>{let V=S.current;!V||!y||V.replaceChildren(...Array.from(y.childNodes))},[y]),uH({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:N,onMeasureLayoutComplete:P,side:a,direction:r});let O={activationDirection:SY(g),transitioning:H};return{children:q,state:O}}function SY(e){if(e)return`${dH(e.horizontal,5,"right","left")} ${dH(e.vertical,5,"down","up")}`}function dH(e,t,a,o){return e>t?a:e<-t?o:""}function vY(e,t){let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r={x:a.left+a.width/2,y:a.top+a.height/2},n={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:n.x-r.x,vertical:n.y-r.y}}function bY(e,t){let[a,o]=za.useState(0),r=za.useRef(e),n=za.useRef(t),s=za.useRef(!1);return G(()=>{let i=r.current,l=n.current,u=e!==i,c=t!==l;u?(o(d=>d+1),s.current=!c):s.current&&c&&(o(d=>d+1),s.current=!1),r.current=e,n.current=t},[e,t]),`${e??"current"}-${a}`}var xH=gH.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,...i}=t,l=Rr(),u=Qf(),c=l.useState("instantType"),{children:d,state:f}=hH({store:l,side:u.side,children:s}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return $("div",t,{state:m,ref:a,props:[i,{children:d}],stateAttributesMapping:pH})});var lh=class extends kf{constructor(){super(Iz(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function yH(){return new lh}var ms=R(Q(),1);function SH({delay:e=0,...t}){return(0,ms.jsx)(Pn.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function wv({...e}){return(0,ms.jsx)(Pn.Root,{"data-slot":"tooltip",...e})}function Ev({...e}){return(0,ms.jsx)(Pn.Trigger,{"data-slot":"tooltip-trigger",...e})}function Av({className:e,side:t="top",sideOffset:a=4,align:o="center",alignOffset:r=0,children:n,...s}){return(0,ms.jsx)(Pn.Portal,{children:(0,ms.jsx)(Pn.Positioner,{align:o,alignOffset:r,side:t,sideOffset:a,className:"isolate z-50",children:(0,ms.jsxs)(Pn.Popup,{"data-slot":"tooltip-content",className:re("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,(0,ms.jsx)(Pn.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var ko=R(D(),1);var FH=R(D(),1);var Gv={};Aa(Gv,{Control:()=>kH,Description:()=>OH,Error:()=>DH,Item:()=>BH,Label:()=>PH,Root:()=>AH,Validity:()=>VH});var Ta=R(D(),1);var Pv=R(D(),1);var vH="data-valid",bH="data-invalid";var ku={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},LY={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},CH={disabled:!1,...LY},Ja={valid(e){return e===null?null:e?{[vH]:""}:{[bH]:""}}};var RY={invalid:void 0,name:void 0,validityData:{state:ku,errors:[],error:"",value:"",initialValue:null},setValidityData:Ne,disabled:void 0,setTouched:Ne,setDirty:Ne,setFilled:Ne,setFocused:Ne,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:CH,registerFieldControl:Ne,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ne,getInputControl:()=>null,commit:async()=>{},change:Ne}},HT=Pv.createContext(RY);function sa(e=!0){let t=Pv.useContext(HT);if(t.setValidityData===Ne&&!e)throw new Error(Pe(28));return t}var Dv=R(D(),1),IY=Dv.createContext(void 0);function LH(e=!1){let t=Dv.useContext(IY);if(!t&&!e)throw new Error(Pe(86));return t}var Mv=R(D(),1);var TY=Mv.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ne,validationMode:"onSubmit",submitCountRef:{current:0}});function Ir(){return Mv.useContext(TY)}var Gi=R(D(),1);var Ov=R(D(),1);var _T=Ov.createContext({controlId:void 0,registerControlId:Ne,resetControlId:Ne,labelId:void 0,setLabelId:Ne,messageIds:[],setMessageIds:Ne,getDescriptionProps:e=>e});function Ia(){return Ov.useContext(_T)}var RH=R(Q(),1),kv=function(t){let a=Tt(),[o,r]=Gi.useState(a),[n,s]=Gi.useState(),[i,l]=Gi.useState([]),u=o===void 0?a:o,c=at(()=>new Map),{messageIds:d}=Ia(),f=W((v,g)=>{let h=c.current;g===void 0?h.delete(v):h.set(v,g),r(x=>{if(h.size===0)return x;let S;for(let b of h.values()){if(b===x)return x;S===void 0&&(S=b)}return S})}),m=W(()=>{c.current.size===0&&r(a)}),p=Gi.useCallback(v=>{let g=v["aria-describedby"]?v["aria-describedby"].split(" "):[];return g.push(...d,...i),{...v,"aria-describedby":Array.from(new Set(g)).join(" ")||void 0}},[d,i]),y=Gi.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:n,setLabelId:s,messageIds:i,setMessageIds:l,getDescriptionProps:p}),[u,f,m,n,s,i,l,p]);return(0,RH.jsx)(_T.Provider,{value:y,children:t.children})};var UT=R(D(),1);function ad(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:r,resetControlId:n}=Ia(),s=Tt(),i=at(()=>Symbol()),l=UT.useRef(!1),u=UT.useRef(!1),c=W(()=>{!l.current||r===Ne||(l.current=!1,r(i.current,void 0))});return G(()=>{if(!a||r===Ne){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=s;else{n();return}if(d===void 0){c();return}l.current=!0,r(i.current,d)},[t,a,r,n,s,i,c]),G(()=>c,[c]),(a?o:void 0)??t??s}function Nv(e,t){let a=Tt(e);return G(()=>(t(a),()=>{t(o=>o===a?void 0:o)}),[a,t]),a}function Vv(e={}){let{id:t,fallbackControlId:a,native:o=!1,setLabelId:r,focusControl:n}=e,{controlId:s,setLabelId:i}=Ia(),l=W(m=>{i(m),r?.(m)}),u=Nv(t,l),c=s??a;function d(m){if(n){n(m,c);return}if(!c)return;let p=ve(m.currentTarget).getElementById(c);_e(p)&&wY(p)}function f(m){$e(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!o&&d(m))}return o?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function wY(e){e.focus({focusVisible:!0})}var ps=R(D(),1);function Nu(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var qT=Object.keys(ku);function EY(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function IH(e,t){let a=null;for(let o of e.keys())if(EY(o,t)){if(!o.validity.valid)return o;a??=o}return a}function TH(e){return{...ku,valid:!e,customError:e}}function GT(e){return e&&e.validationMessage?[e.validationMessage]:[]}function wH(e){let{elementRef:t,formRef:a}=Ir(),{setValidityData:o,validate:r,validityData:n,validationDebounceTime:s,invalid:i,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=Ia(),y=Ze(),v=ps.useRef(null),g=at(()=>new Map).current,h=ps.useRef(0),x=ps.useRef(null),S=ps.useCallback((E,T)=>(g.set(E,T),()=>{g.delete(E)}),[g]),b=W(()=>{let E=IH(g,t.current);return E&&g.get(E)?.controlRef.current||null}),I=W(async(E,T=!1)=>{h.current+=1;let A=h.current;function N(M,_=i){let B=f.current??m;if(B==null)return;let J=a.current.fields.get(B);if(!J)return;let Y=Nu(M,_);a.current.fields.set(B,{...J,validityData:Y})}function P(M,_){let B=M.valid===!1?_:[];return{value:E,state:M,error:B[0]??"",errors:B,initialValue:n.initialValue}}function F(M,_){let B=M.validity.customError?M.validationMessage:"",J=_.replace(/\r\n?/g,`
19
- `);M.setCustomValidity(J),x.current=[M,J,B]}function k(){let M=x.current;x.current=null,M&&(!M[0].willValidate||M[0].validationMessage===M[1])&&M[0].setCustomValidity(M[2])}function H(M,_,B){let J=P(M,_);N(J,B),o(J)}function q(M){let _=qT.reduce((J,Y)=>(J[Y]=M.validity[Y],J),{}),B=!1;for(let J of qT)if(J!=="valid"){if(J==="valueMissing"&&_[J])B=!0;else if(_[J])return _}return B&&!l.current&&(_.valid=!0,_.valueMissing=!1),_}function O(){return g.size>0?IH(g,t.current):v.current}let V=O();function w(){return V=O(),V?.willValidate?q(V):TH(!1)}if(T){if(u.valid!==!1||!V)return;if(!V.validity.valueMissing){k();let M=O(),_=M?.validity.customError?GT(M):[];H(TH(_.length>0),_,!1);return}for(let M of qT)if(M!=="valid"&&M!=="valueMissing"&&M!=="customError"&&V.validity[M])return}y.clear(),k();let z=w(),U=GT(V),X=c();if(U.length===0||X){let M=Array.from(a.current.fields.values()).reduce((J,Y)=>(Y.name&&(J[Y.name]=Y.getValue()),J),{}),_=r(E,M),B;if(typeof _=="object"&&_!==null&&"then"in _){if(z.valid===!1?H(z,U):(d==="onSubmit"||!n.state.customError)&&(z.valid=null,H(z,U)),B=await _,A!==h.current)return;z=w()}else B=_;U=B?[].concat(B).filter(Boolean):[],U.length>0?(z.valid=!1,z.customError=!0,V?.willValidate&&F(V,U.join(`
20
- `))):U=GT(V)}H(z,U)}),L=W((E,T=!1)=>{if(y.clear(),h.current+=1,T)return;let A=c();A&&E!==""&&s?y.start(s,()=>{I(E)}):I(E,!A)}),C=ps.useCallback((E,T={})=>Ga(p(T),u.valid===!1&&!u.disabled&&!E?{"aria-invalid":!0}:We),[p,u.disabled,u.valid]);return ps.useMemo(()=>({getValidationProps:C,inputRef:v,registeredInputs:g,registerInput:S,getInputControl:b,commit:I,change:L}),[C,g,S,b,I,L])}var Bv=R(D(),1);function EH(e){let{change:t,commit:a,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:s,registeredFieldIdRef:i,setValidityData:l,validityData:u}=e,{formRef:c}=Ir(),d=Bv.useRef(null),f=Bv.useRef(null),m=Bv.useRef(!1),p=W(()=>{let b=f.current;if(b)return b.getValue?b.getValue():b.value});function y(b){return b.value===void 0?p():b.value}let v=W(()=>{let b=f.current;if(r.current=!0,!b){a(u.value);return}a(y(b))});function g(){let b=f.current;!b||!b.id||c.current.fields.set(b.id,{getValue:p,name:n??b.name,controlRef:b.controlRef,validityData:Nu(u,o),validate:v})}function h(b=f.current?.id){b&&c.current.fields.delete(b)}function x(b){if(m.current)return;m.current=!0;let I=y(b);l(L=>L.initialValue===I?L:{...L,initialValue:I})}G(()=>{let b=f.current;!b||!b.id||(s(n?void 0:b.name),c.current.fields.set(b.id,{getValue:p,name:n??b.name,controlRef:b.controlRef,validityData:Nu(u,o),validate:v}))},[c,p,o,n,s,v,u]),G(()=>{let b=c.current.fields;return()=>{let I=f.current?.id;I&&b.delete(I)}},[c]);let S=W((b,I)=>{if(!I){d.current===b&&(d.current=null,t(void 0,!0),h(),f.current=null,s(void 0),i.current=void 0);return}let L=f.current?.id,C=d.current;C&&C!==b&&t(void 0,!0),d.current=b,f.current=I,n||s(I.name),i.current=I.id,L&&L!==I.id&&h(L),x(I),g()});return[v,S]}var Fv=R(Q(),1),AY=Ta.forwardRef(function(t,a){let{errors:o,validationMode:r,submitCountRef:n}=Ir(),{render:s,className:i,validate:l,validationDebounceTime:u=0,validationMode:c=r,name:d,disabled:f=!1,invalid:m,dirty:p,touched:y,actionsRef:v,style:g,...h}=t,x=LH(!0)?.disabled,S=W(l||(()=>null)),b=x||f,[I,L]=Ta.useState(!1),[C,E]=Ta.useState(!1),[T,A]=Ta.useState(!1),[N,P]=Ta.useState(!1),F=p??C,k=y??I,H=Ta.useRef(F),q=Ta.useRef(void 0),[O,V]=Ta.useState(),w=d??O;G(()=>{p!==void 0&&(H.current=p)},[p]);let z=W(we=>{p===void 0&&(we&&(H.current=!0),E(we))}),U=W(we=>{y===void 0&&L(we)}),X=W(()=>c==="onChange"||c==="onSubmit"&&n.current>0),M=w&&Object.hasOwn(o,w)?o[w]:null,_=!!(Array.isArray(M)?M.length:M),B=m===!0||_,[J,Y]=Ta.useState({state:ku,error:"",errors:[],value:null,initialValue:null}),te=!B&&(b?null:J.state.valid),ie=Ta.useMemo(()=>({disabled:b,touched:k,dirty:F,valid:te,filled:T,focused:N}),[b,k,F,te,T,N]),ce=wH({setValidityData:Y,validate:S,validityData:J,validationDebounceTime:u,invalid:B,markedDirtyRef:H,state:ie,shouldValidateOnChange:X,validationMode:c,registeredFieldIdRef:q}),[ee,ae]=EH({change:ce.change,commit:ce.commit,invalid:B,markedDirtyRef:H,name:d,setRegisteredFieldName:V,registeredFieldIdRef:q,setValidityData:Y,validityData:J});Ta.useImperativeHandle(v,()=>({validate:ee}),[ee]);let me=Ta.useMemo(()=>({invalid:B,name:w,validityData:J,setValidityData:Y,disabled:b,setTouched:U,setDirty:z,setFilled:A,setFocused:P,validationMode:c,shouldValidateOnChange:X,state:ie,registerFieldControl:ae,validation:ce}),[B,w,J,b,U,z,A,P,c,X,ie,ae,ce]),ge=$("div",t,{ref:a,state:ie,props:h,stateAttributesMapping:Ja});return(0,Fv.jsx)(HT.Provider,{value:me,children:ge})}),AH=Ta.forwardRef(function(t,a){return(0,Fv.jsx)(kv,{children:(0,Fv.jsx)(AY,{...t,ref:a})})});var uh=R(D(),1);var zv=R(D(),1),jT=zv.createContext({disabled:!1});function Hv(){return zv.useContext(jT)}var PH=uh.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,nativeLabel:i=!0,...l}=t,u=sa(!1),c=Hv(),{labelId:d}=Ia(),f={...u.state,disabled:u.disabled||c.disabled},m=uh.useRef(null),p=Vv({id:d??s,native:i});return $("label",t,{ref:[a,m],state:f,props:[p,l],stateAttributesMapping:Ja})});var Vu=R(D(),1);var XT=R(Q(),1),PY={...Ja,...Xa},DH=Vu.forwardRef(function(t,a){let{render:o,id:r,className:n,match:s,style:i,...l}=t,u=Tt(r),{validityData:c,state:d,name:f}=sa(!1),{setMessageIds:m}=Ia(),{errors:p}=Ir(),y=f&&Object.hasOwn(p,f)?p[f]:null,v=!!(Array.isArray(y)?y.length:y),g=typeof s=="string",h=!1;s===!0?h=!0:d.disabled?h=!1:g?h=!!c.state[s]:h=v||c.state.valid===!1;let{mounted:x,transitionStatus:S,setMounted:b}=Mo(h);G(()=>{if(!(!h||!u))return m(H=>H.concat(u)),()=>{m(H=>H.filter(q=>q!==u))}},[h,u,m]);let I=Vu.useRef(null),[L,C]=Vu.useState(null),[E,T]=Vu.useState(null),A=c.error;!g&&v?A=y:c.errors.length>1&&(A=c.errors);let N=A;Array.isArray(A)&&(N=A.length>1?(0,XT.jsx)("ul",{children:A.map(H=>(0,XT.jsx)("li",{children:H},H))}):A[0]);let P=Array.isArray(A)?JSON.stringify(A):A;h&&P!==E&&(T(P),C(N)),Ra({open:h,ref:I,onComplete(){h||b(!1)}});let F={...d,transitionStatus:S},k=$("div",t,{ref:[a,I],state:F,props:[{id:u,children:h?N:L},l],stateAttributesMapping:PY,enabled:x});return x?k:null});var MH=R(D(),1);var OH=MH.forwardRef(function(t,a){let{render:o,id:r,className:n,style:s,...i}=t,l=Tt(r),u=sa(!1),c=Hv(),{setMessageIds:d}=Ia(),f={...u.state,disabled:u.disabled||c.disabled};return G(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(y=>y!==l))}},[l,d]),$("p",t,{ref:a,state:f,props:[{id:l},i],stateAttributesMapping:Ja})});var Uv=R(D(),1);function _v(e,t,a,o,r=!0,n){let{registerFieldControl:s}=sa(),i=at(()=>Symbol());G(()=>{let l=i.current;if(!r){s(l,void 0);return}s(l,{controlRef:e,getValue:o,id:t,name:n,value:a})},[e,r,o,t,n,s,i,a]),G(()=>{let l=i.current;return()=>{s(l,void 0)}},[s,i])}var kH=Uv.forwardRef(function(t,a){let{render:o,className:r,id:n,name:s,value:i,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:y,disabled:v,setTouched:g,setDirty:h,validityData:x,setFocused:S,setFilled:b,validationMode:I,validation:L}=sa(),{clearErrors:C,elementRef:E,submitCountRef:T}=Ir(),A=v||l,N=y??s,P={...p,disabled:A},{labelId:F}=Ia(),k=ad({id:n}),[H]=Du({controlled:i,default:c,name:"FieldControl",state:"value"}),q=i!==void 0,O=q?H:void 0,V=O==null?void 0:String(O),w=W(()=>L.inputRef.current?.value);_v(L.inputRef,k,V,w,!A,s),G(()=>{let M=V??L.inputRef.current?.value;M!==void 0&&b(M!=="")},[V,L.inputRef,b]),Uf(V,()=>{V!==void 0&&(C(N),h(V!==(x.initialValue??"")),L.change(V))});let z=Uv.useRef(null),U=Ze();return G(()=>{d&&z.current===zt(ve(z.current))&&S(!0)},[d,S]),$("input",t,{ref:[a,z],state:P,props:[{id:k,disabled:A,name:N,ref:L.inputRef,"aria-labelledby":F,autoFocus:d,...q?{value:O}:{defaultValue:c},onChange(M){let _=M.currentTarget.value,B=he(ne.none,M.nativeEvent);u?.(_,B),!q&&(h(_!==(x.initialValue??"")),b(_!==""),!M.nativeEvent.defaultPrevented&&!B.isCanceled&&(C(N),L.change(_)))},onFocus(){S(!0)},onBlur(M){if(g(!0),S(!1),I==="onBlur"){let _=M.currentTarget.value;L.commit(_),q&&queueMicrotask(()=>{let B=L.inputRef.current?.value;B!==void 0&&B!==_&&B!==(x.initialValue??"")&&L.commit(B)})}},onKeyDown(M){if(M.currentTarget.tagName==="INPUT"&&M.key==="Enter"){g(!0);let _=M.currentTarget.value,B=M.currentTarget.form;if(B&&B===E.current&&!M.defaultPrevented){let J=M.currentTarget,Y=T.current;U.start(0,()=>{T.current===Y&&L.commit(J.value)})}else L.commit(_)}}},m,M=>L.getValidationProps(A,M)],stateAttributesMapping:Ja})});var ch=R(D(),1);var NH=R(Q(),1),VH=function(t){let{children:a}=t,{validityData:o,invalid:r}=sa(!1),n=ch.useMemo(()=>Nu(o,r),[o,r]),s=n.state.valid===!1,{transitionStatus:i}=Mo(s),l=ch.useMemo(()=>({...n,validity:n.state,transitionStatus:i}),[n,i]);return(0,NH.jsx)(ch.Fragment,{children:a(l)})};var qv=R(D(),1);var YT=R(Q(),1),BH=qv.forwardRef(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,...i}=t,{state:l,disabled:u}=sa(!1),c=u||s,d={...l,disabled:c},f=qv.useMemo(()=>({disabled:c}),[c]),m=$("div",t,{ref:a,state:d,props:i,stateAttributesMapping:Ja});return(0,YT.jsx)(kv,{children:(0,YT.jsx)(jT.Provider,{value:f,children:m})})});var zH=R(Q(),1),WT=FH.forwardRef(function(t,a){return(0,zH.jsx)(Gv.Control,{ref:a,...t})});var HH=R(Q(),1);function jv({className:e,type:t,...a}){return(0,HH.jsx)(WT,{type:t,"data-slot":"input",className:re("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}var $a={};Aa($a,{Arrow:()=>O_,Backdrop:()=>h_,Group:()=>q_,GroupLabel:()=>j_,Icon:()=>c_,Item:()=>E_,ItemIndicator:()=>P_,ItemText:()=>D_,Label:()=>o_,List:()=>T_,Popup:()=>R_,Portal:()=>m_,Positioner:()=>y_,Root:()=>$H,ScrollDownArrow:()=>B_,ScrollUpArrow:()=>H_,Separator:()=>W_,Trigger:()=>s_,Value:()=>l_});var Ht=R(D(),1);var _H=R(D(),1);function UH(e){let t=_H.useRef(!0);t.current&&(t.current=!1,e())}var ji=R(D(),1),KT=ji.createContext(void 0),ZT=ji.createContext(void 0),QT=ji.createContext(void 0);function wt(){let e=ji.useContext(KT);if(e===void 0)throw new Error(Pe(60));return e}function Xi(){let e=ji.useContext(ZT);if(e===void 0)throw new Error(Pe(101));return e}function Xv(){let e=ji.useContext(QT);if(e===void 0)throw new Error(Pe(61));return e}function qH(e,t,a=Object.is){let{length:o}=e;if(o!==t.length)return!1;for(let r=0;r<o;r+=1)if(!a(e[r],t[r]))return!1;return!0}var $T=(e,t)=>Object.is(e,t);function hs(e,t,a){return e==null||t==null?Object.is(e,t):a(e,t)}function GH(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!qH(e,t,(o,r)=>hs(o,r,a)):e!==t}function JT(e,t,a){return e?e.some(o=>o===void 0?!1:hs(t,o,a)):!1}function fh(e,t,a){return e?e.findIndex(o=>o===void 0?!1:hs(o,t,a)):-1}function DY(e,t){if(t!==$T)return o=>JT(e,o,t);let a=new Set(e);return a.delete(void 0),o=>a.has(o)&&(o!==0||e.some(r=>Object.is(o,r)))}function ew(e,t,a,o){let r=o&&Array.isArray(t)?e.findIndex(DY(t,a)):fh(e,t,a);return r===-1?null:r}function jH(e,t,a,o,r,n){return JT(o,t,r)?n!=null&&e>n&&JT(o,a[n],r)?n:e:e===n?ew(a,o,r,!0):n}function XH(e,t,a){return e.filter(o=>!hs(t,o,a))}var YH=R(D(),1);function Yv(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var WH=R(Q(),1);function MY(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function KH(e){return MY(e?.[0])}function OY(e){return KH(e)?e.flatMap(t=>t.items):e}function ZH(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(KH(t)){for(let a of t)for(let o of a.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(let a of t)if(a&&a.value==null&&a.label!=null)return!0;return!1}function tw(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Yv(e)}function Yi(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Yv(e.value):Yv(e)}function aw(e,t,a){function o(){return tw(e,a)}if(a&&e!=null)return a(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??o();if(Array.isArray(t)){let n=OY(t);if(e==null||typeof e!="object"){let s=n.find(i=>i.value===e);return s&&s.label!=null?s.label:o()}if("value"in e){let s=n.find(i=>i&&i.value===e.value);if(s&&s.label!=null)return s.label}}return o()}function QH(e,t,a){return e.reduce((o,r,n)=>(n>0&&o.push(", "),o.push((0,WH.jsx)(YH.Fragment,{children:aw(r,t,a)},n)),o),[])}var JH={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:a,itemToStringValue:o}=e;return t==null?!1:a&&Array.isArray(t)?t.length>0:Yi(t,o)!==""},hasNullItemLabel:(e,t)=>t?ZH(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let a=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>hs(t,r,a)):hs(t,o,a)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function Tr(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}var Jo=1;function od(e,t){return Math.max(0,e-t)}function gs(e,t){if(t<=0)return 0;let a=Tr(e,0,t),o=a,r=t-a,n=o<=Jo,s=r<=Jo;return n&&s?o<=r?0:t:n?0:s?t:a}var Bu=R(Q(),1);function $H(e){let{id:t,value:a,defaultValue:o=null,onValueChange:r,open:n,defaultOpen:s=!1,onOpenChange:i,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:y,inputRef:v,onOpenChangeComplete:g,items:h,multiple:x=!1,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:I=$T,highlightItemOnHover:L=!0,children:C}=e,{clearErrors:E}=Ir(),{setDirty:T,setTouched:A,setFocused:N,validityData:P,setFilled:F,name:k,disabled:H,validation:q,validationMode:O}=sa(),V=ad({id:t}),w=H||d,z=k??l,[U,X]=Du({controlled:a,default:x?o??Ro:o,name:"Select",state:"value"}),[M,_]=Du({controlled:n,default:s,name:"Select",state:"open"}),B=Ht.useRef([]),J=Ht.useRef([]),Y=Ht.useRef(null),te=Ht.useRef(null),ie=Ht.useRef(0),ce=Ht.useRef(null),ee=Ht.useRef([]),ae=Ht.useRef(!1),me=Ht.useRef(null),ge=Ht.useRef(null),we=Ht.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=Ht.useRef(!1),Re=Ht.useRef(U),{mounted:le,setMounted:Ie,transitionStatus:Ve}=Mo(M),{openMethod:Me,triggerProps:ut}=BF(M),oe=at(()=>new Lr({id:V,labelId:void 0,modal:p,multiple:x,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:I,value:U,open:M,mounted:le,transitionStatus:Ve,items:h,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:We,triggerProps:We,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Ne,setOpen:Ne,handleScrollArrowVisibility:Ne,onOpenChangeComplete:Ne,listRef:B,popupRef:Y,scrollHandlerRef:te,scrollArrowsMountedCountRef:ie,valueRef:ce,valuesRef:ee,labelsRef:J,typingRef:ae,selectionRef:we,firstItemTextRef:me,selectedItemTextRef:ge,alignItemWithTriggerActiveRef:pe,initialValueRef:Re},JH)).current,fe=oe.useState("activeIndex"),K=oe.useState("selectedIndex"),j=oe.useState("triggerElement"),se=oe.useState("positionerElement"),Be=Rv(Me),Vt=Me??Be,Jt=Ht.useMemo(()=>x?"":Yi(U,b),[x,U,b]),Et=Ht.useMemo(()=>x&&Array.isArray(U)?U.map(Ke=>Yi(Ke,b)):Yi(U,b),[x,U,b]),vt=pt(j),wa=W(()=>Et);_v(vt,V,U,wa,!w,l);let Ea=x?Array.isArray(U)&&U.length>0:U!=null&&Jt!=="";G(()=>{F(Ea)},[Ea,F]),G(function(){let Dt=ew(ee.current,U,I,x);Dt===null&&(ge.current=null),!M&&oe.set("selectedIndex",Dt)},[x,M,U,I,oe]),Uf(U,()=>{E(z),T(GH(U,P.initialValue,I)),q.change(U)});let $t=W((Ke,Dt)=>{i?.(Ke,Dt),!Dt.isCanceled&&(_(Ke),!Ke&&(Dt.reason===ne.focusOut||Dt.reason===ne.outsidePress)&&(A(!0),N(!1),O==="onBlur"&&q.commit(U)))}),Ha=W(()=>{Ie(!1),oe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),g?.(!1)});Ra({enabled:!y,open:M,ref:Y,onComplete(){M||Ha()}}),Ht.useImperativeHandle(y,()=>({unmount:Ha}),[Ha]);let mo=W((Ke,Dt)=>{r?.(Ke,Dt),!Dt.isCanceled&&X(Ke)}),er=W(Ke=>{let Dt=od(Ke.scrollHeight,Ke.clientHeight),kn=gs(Ke.scrollTop,Dt),al=kn>0,ol=kn<Dt;oe.set("scrollUpArrowVisible",al),oe.set("scrollDownArrowVisible",ol)}),ha=uT({open:M,onOpenChange:$t,elements:{reference:j,floating:se}}),_t=Yp(ha,{enabled:!w,event:"mousedown"}),Ee=Tu(ha),Pt=xT(ha,{enabled:!w,listRef:B,activeIndex:fe,selectedIndex:K,disabledIndices:Ro,onNavigate(Ke){Ke===null&&!M||oe.set("activeIndex",Ke)},focusItemOnHover:L}),Je=yT(ha,{enabled:!w&&(M||!f&&!x),listRef:J,activeIndex:fe,selectedIndex:K,disabledIndices:Ke=>iv(B.current[Ke]),onMatch(Ke){M?oe.set("activeIndex",Ke):mo(ee.current[Ke],he(ne.none))},onTyping(Ke){ae.current=Ke}}),Bt=Ht.useMemo(()=>Ga(Je.reference,Pt.reference,Ee.reference,_t.reference,ut),[_t.reference,Je.reference,Pt.reference,Ee.reference,ut]),po=Ht.useMemo(()=>Ga(Bf,Je.floating,Pt.floating,Ee.floating),[Je.floating,Pt.floating,Ee.floating]),ho=Pt.item??We;oe.useContextCallback("setValue",mo),oe.useContextCallback("setOpen",$t),oe.useContextCallback("handleScrollArrowVisibility",er),oe.useContextCallback("onOpenChangeComplete",g),UH(()=>{oe.update({popupProps:po,triggerProps:Bt})}),oe.useSyncedValues({id:V,modal:p,multiple:x,value:U,open:M,mounted:le,transitionStatus:Ve,popupProps:po,triggerProps:Bt,items:h,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:I,openMethod:Vt});let Gu=Ht.useMemo(()=>({disabled:w,readOnly:f,required:m,multiple:x,highlightItemOnHover:L,itemProps:ho}),[w,f,m,x,L,ho]),vs=dr(v,q.inputRef),tl=x?void 0:z,Xr=Ht.useMemo(()=>!x||!Array.isArray(U)||!z?null:U.map(Ke=>{let Dt=Yi(Ke,b);return(0,Bu.jsx)("input",{type:"hidden",form:u,name:z,value:Dt,disabled:w},Dt)}),[x,U,u,z,b,w]);return(0,Bu.jsxs)(KT.Provider,{value:oe,children:[(0,Bu.jsx)(ZT.Provider,{value:Gu,children:(0,Bu.jsx)(QT.Provider,{value:ha,children:C})}),(0,Bu.jsx)("input",{...q.getValidationProps(w,{onFocus(){oe.state.triggerElement?.focus({focusVisible:!0})},onChange(Ke){if(Ke.nativeEvent.defaultPrevented||w||f)return;let Dt=Ke.currentTarget.value,kn=he(ne.none,Ke.nativeEvent);function al(){if(x)return;let ol=Dt.toLowerCase(),gd=ee.current.findIndex(Lb=>Yi(Lb,b).toLowerCase()===ol||tw(Lb,S).toLowerCase()===ol);gd===-1&&(gd=ee.current.findIndex((Lb,d3)=>{let Lw=J.current[d3];return Lw!=null&&Lw.toLowerCase()===ol}));let Cw=ee.current[gd];Cw!=null&&mo(Cw,kn)}oe.set("forceMount",!0),queueMicrotask(al)}}),id:V&&tl==null?`${V}-hidden-input`:void 0,form:u,name:tl,autoComplete:c,value:Jt,disabled:w,required:m&&!(x&&Ea),readOnly:f,ref:vs,style:z?D2:Af,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Xr]})}var a_=R(D(),1);function e_(e){return e==null?void 0:`${e}-label`}function t_(e,t){return e??t}var o_=a_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=s;delete i.id;let l=sa(),u=wt(),c=u.useState("triggerElement"),d=u.useState("id"),f=e_(d),m=Vv({id:f,fallbackControlId:c?.id??d,setLabelId(p){let y=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",y)}});return $("div",t,{ref:a,state:l.state,props:[m,s],stateAttributesMapping:Ja})});var rd=R(D(),1);var Wv=5;function r_(e,t){let a=kY(t);return e.clientX>=a.left-Wv&&e.clientX<=a.right+Wv&&e.clientY>=a.top-Wv&&e.clientY<=a.bottom+Wv}function kY(e){let t=e.getBoundingClientRect(),a=He(e);if(ot.env.jsdom)return t;let o=a.getComputedStyle(e,"::before"),r=a.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;let s=parseFloat(o.width)||0,i=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,c=Math.max(t.width,s,l),d=Math.max(t.height,i,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var xPe=gu.popupOpen,yPe=gu.pressed;var n_="data-popup-side";var VY=400,BY={...l2,...Ja,popupSide:e=>e?{[n_]:e}:null,value:()=>null},s_=rd.forwardRef(function(t,a){let{render:o,className:r,id:n,disabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:y}=sa(),{labelId:v}=Ia(),g=wt(),{readOnly:h,required:x,disabled:S}=Xi(),b=y||S||s,I=g.useState("open"),L=g.useState("mounted"),C=g.useState("value"),E=g.useState("triggerProps"),T=g.useState("positionerElement"),A=g.useState("listElement"),N=g.useState("popupSide"),P=g.useState("id"),F=g.useState("labelId"),k=g.useState("hasSelectedValue"),H=L&&T?N:null,q=n??P,O=t_(v,F);ad({id:n});let V=pt(T),w=rd.useRef(null),{getButtonProps:z,buttonRef:U}=Ko({disabled:b,native:i}),X=g.useStateSetter("triggerElement"),M=Ze(),_=Ze(),B=Ze();rd.useEffect(()=>{if(I)return B.start(VY,()=>{g.context.selectionRef.current.allowUnselectedMouseUp=!0,g.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{B.clear()};g.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},_.clear()},[I,g,_,B]);let J=Ga(E,{id:q,role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-controls":I?A?.id??vu(T)?.id:void 0,"aria-labelledby":O,"aria-readonly":h||void 0,"aria-required":x||void 0,tabIndex:b?-1:0,onFocus(ie){d(!0),I&&g.context.alignItemWithTriggerActiveRef.current&&g.context.setOpen(!1,he(ne.none,ie.nativeEvent)),M.start(0,()=>{g.set("forceMount",!0)})},onBlur(ie){ue(T,ie.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(C))},onMouseDown(ie){if(I)return;let ce=ve(ie.currentTarget);function ee(ae){if(!w.current)return;let me=ae.target;ue(w.current,me)||ue(V.current,me)||r_(ae,w.current)||g.context.setOpen(!1,he(ne.cancelOpen,ae))}_.start(0,()=>{ce.addEventListener("mouseup",ee,{once:!0})})}},u,z),Y=m.getValidationProps(b,J);Y.role="combobox";let te={...p,open:I,disabled:b,value:C,readOnly:h,popupSide:H,placeholder:!k};return $("button",t,{ref:[a,w,U,X],state:te,stateAttributesMapping:BY,props:Y})});var i_=R(D(),1);var FY={value:()=>null},l_=i_.forwardRef(function(t,a){let{className:o,render:r,children:n,placeholder:s,style:i,...l}=t,u=wt(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&s!=null&&n==null,y=u.useState("hasNullItemLabel",p),v={value:c,placeholder:!m},g=null;return typeof n=="function"?g=n(c):n!=null?g=n:p&&!y?g=s:Array.isArray(c)?g=QH(c,d,f):g=aw(c,d,f),$("span",t,{state:v,ref:[a,u.context.valueRef],props:[{children:g},l],stateAttributesMapping:FY})});var u_=R(D(),1);var c_=u_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,u={open:wt().useState("open")};return $("span",t,{state:u,ref:a,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:If})});var f_=R(D(),1);var d_=R(Q(),1),m_=f_.forwardRef(function(t,a){let o=wt(),r=o.useState("mounted"),n=o.useState("forceMount");return r||n?(0,d_.jsx)(qp,{ref:a,...t}):null});var p_=R(D(),1);var zY={...zr,...Xa},h_=p_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),l=i.useState("open"),u=i.useState("mounted"),c=i.useState("transitionStatus");return $("div",t,{state:{open:l,transitionStatus:c},ref:a,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:zY})});var wr=R(D(),1);var Kv=R(D(),1),ow=Kv.createContext(void 0);function Wi(){let e=Kv.useContext(ow);if(!e)throw new Error(Pe(59));return e}function nd(e,t){e&&Object.assign(e.style,t)}var Zv={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var g_=R(D(),1);var HY=20;function x_(e,t,a,o){let[r,n]=g_.useState(!1);G(()=>{if(!e||!t||a==null){n(!1);return}let s=ve(a).documentElement.clientWidth,i=a.offsetWidth;n(s>0&&i>0&&i>=s-HY)},[e,t,a]),QS(e&&(!t||r),o)}var dh=R(Q(),1),_Y={position:"fixed"},y_=wr.forwardRef(function(t,a){let{anchor:o,className:r,render:n,positionMethod:s,side:i,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:y,alignItemWithTrigger:v=!0,collisionAvoidance:g=J2,style:h,...x}=t,S=wt(),b=Xv(),I=S.useState("open"),L=S.useState("mounted"),C=S.useState("modal"),E=S.useState("value"),T=S.useState("openMethod"),A=S.useState("positionerElement"),N=S.useState("triggerElement"),P=S.useState("isItemEqualToValue"),F=S.useState("transitionStatus"),k=wr.useRef(null),H=wr.useRef(null),[q,O]=wr.useState(v),V=L&&q&&T!=="touch";!L&&q!==v&&O(v),wr.useImperativeHandle(S.context.alignItemWithTriggerActiveRef,()=>V),x_((V||C)&&I,T==="touch",A,N);let w=bv({anchor:o,floatingRootContext:b,positionMethod:s,mounted:L,side:i,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:y??V,collisionAvoidance:g,keepMounted:!0}),z=V?"none":w.side,U=V?_Y:w.positionerStyles,X={open:I,side:z,align:w.align,anchorHidden:w.anchorHidden};G(()=>{S.set("popupSide",w.side)},[S,w.side]);let M=S.useStateSetter("positionerElement"),_=Cv(t,X,{styles:U,transitionStatus:F,props:x,refs:[a,M],hidden:!L,inert:!I}),B=wr.useRef(0),J=W(te=>{if(S.context.valuesRef.current.length===0)return;let ie=B.current;B.current=te.size;let ce=he(ne.none);if(ie!==0&&!S.state.multiple&&E!==null&&fh(S.context.valuesRef.current,E,P)===-1){let ae=S.context.initialValueRef.current,ge=ae!=null&&fh(S.context.valuesRef.current,ae,P)!==-1?ae:null;S.context.setValue(ge,ce),ge===null&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null)}if(ie!==0&&S.state.multiple&&Array.isArray(E)){let ee=E.filter(ae=>fh(S.context.valuesRef.current,ae,P)!==-1);ee.length!==E.length&&(S.context.setValue(ee,ce),ee.length===0&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null))}if(I&&V){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ee={height:""};nd(A,ee),nd(S.context.popupRef.current,ee)}}),Y=wr.useMemo(()=>({...w,side:z,alignItemWithTriggerActive:V,setControlledAlignItemWithTrigger:O,scrollUpArrowRef:k,scrollDownArrowRef:H}),[w,z,V,O]);return(0,dh.jsx)(qf,{elementsRef:S.context.listRef,labelsRef:S.context.labelsRef,onMapChange:J,children:(0,dh.jsxs)(ow.Provider,{value:Y,children:[L&&C&&(0,dh.jsx)(KS,{inert:Ui(!I),cutout:N}),_]})})});var Er=R(D(),1);var S_=R(Q(),1),Qv="base-ui-disable-scrollbar",xs={className:Qv,getElement(e){return(0,S_.jsx)("style",{nonce:e,href:Qv,precedence:"base-ui:low",children:`.${Qv}{scrollbar-width:none}.${Qv}::-webkit-scrollbar{display:none}`})}};var Jv=R(D(),1),UY=Jv.createContext(void 0);function v_(e){let t=Jv.useContext(UY);if(t===void 0&&!e)throw new Error(Pe(69));return t}var rw="--transform-origin";var tb=R(Q(),1),GY={...zr,...Xa},R_=Er.forwardRef(function(t,a){let{render:o,className:r,style:n,finalFocus:s,...i}=t,l=wt(),{multiple:u,readOnly:c,highlightItemOnHover:d}=Xi(),f=Xv(),{side:m,align:p,alignItemWithTriggerActive:y,isPositioned:v,setControlledAlignItemWithTrigger:g}=Wi(),h=v_(!0)!=null,x=Oo(),{nonce:S,disableStyleElements:b}=jf(),I=l.useState("id"),L=l.useState("open"),C=l.useState("openMethod"),E=l.useState("mounted"),T=l.useState("popupProps"),A=l.useState("transitionStatus"),N=l.useState("triggerElement"),P=l.useState("positionerElement"),F=l.useState("listElement"),k=Er.useRef(!1),H=Er.useRef(!1),q=Er.useRef({}),O=uo(),V=W(X=>{if(!P||!l.context.popupRef.current||!H.current)return;let M=P.style.top==="0px",_=P.style.bottom==="0px";if(k.current||!y||!M&&!_){l.context.handleScrollArrowVisibility(X);return}let B=C_(P),J=mh(P.getBoundingClientRect().height,"y",B),Y=ve(P),te=He(P),ie=te.getComputedStyle(P),ce=parseFloat(ie.marginTop),ee=parseFloat(ie.marginBottom),ae=b_(te.getComputedStyle(l.context.popupRef.current)),me=Math.min(Y.documentElement.clientHeight-ce-ee,ae),ge=X.scrollTop,we=$v(X),pe=null,Re=Me=>{P.style.height=`${Me}px`},le=M?we-ge:ge,Ie=Math.min(J+le,me);if(le<=Jo){let Me=Tr(le,0,me-J);Me>0&&Re(J+Me),X.scrollTop=M?we:0,me-(J+Me)<=Jo&&(k.current=!0),l.context.handleScrollArrowVisibility(X);return}if(me-Ie>Jo)pe=M?1/0:0;else if(_&&ge<we){let Me=J+le-me;pe=ge-(le-Me)}let Ve=Math.ceil(Ie);if(Ve!==0&&Re(Ve),pe!=null){let Me=Tr(pe,0,$v(X));Math.abs(X.scrollTop-Me)>Jo&&(X.scrollTop=Me)}Ve>=me-Jo&&(k.current=!0),l.context.handleScrollArrowVisibility(X)});Er.useImperativeHandle(l.context.scrollHandlerRef,()=>V,[V]),Ra({open:L,ref:l.context.popupRef,onComplete(){L&&l.context.onOpenChangeComplete(!0)}});let w={open:L,transitionStatus:A,side:m,align:p};G(()=>{!P||!l.context.popupRef.current||Object.keys(q.current).length||(q.current={top:P.style.top||"0",left:P.style.left||"0",right:P.style.right,height:P.style.height,bottom:P.style.bottom,minHeight:P.style.minHeight,maxHeight:P.style.maxHeight,marginTop:P.style.marginTop,marginBottom:P.style.marginBottom})},[l,P]),G(()=>{L||y||(H.current=!1,k.current=!1,nd(P,q.current))},[L,y,P]),G(()=>{let X=l.context.popupRef.current;if(!L||!N||!P||!X||y&&!v||l.state.transitionStatus==="ending")return;if(H.current=!0,X.style.removeProperty(rw),!y){O.request(()=>l.context.handleScrollArrowVisibility(F||X));return}let M=jY(X);try{let _=l.context.selectedItemTextRef.current;_?.isConnected||(_=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let B=l.context.valueRef.current,J=He(P),Y=J.getComputedStyle(P),te=J.getComputedStyle(X),ie=ve(N),ce=C_(N),ee=eb(N.getBoundingClientRect(),ce),ae=eb(P.getBoundingClientRect(),ce),me=ee.height,ge=F||X,we=ge.scrollHeight,pe=parseFloat(te.borderBottomWidth),Re=parseFloat(Y.marginTop)||10,le=parseFloat(Y.marginBottom)||10,Ie=parseFloat(Y.minHeight)||100,Ve=b_(te),Me=5,ut=5,oe=20,fe=ie.documentElement.clientHeight-Re-le,K=ie.documentElement.clientWidth,j=fe-ee.bottom+me,se,Be=x==="rtl"?ee.right-ae.width:ee.left,Vt=0;if(_&&B){let _t=eb(B.getBoundingClientRect(),ce);se=eb(_.getBoundingClientRect(),ce),Be=ae.left+(x==="rtl"?_t.right-se.right:_t.left-se.left);let Ee=_t.top-ee.top+_t.height/2;Vt=se.top-ae.top+se.height/2-Ee}let Jt=j+Vt+le+pe,Et=Math.min(fe,Jt),vt=fe-Re-le,wa=Jt-Et,Ea=K-ut;P.style.left=`${Tr(Be,Me,Ea-ae.width)}px`,P.style.height=`${Et}px`,P.style.maxHeight="none",P.style.marginTop=`${Re}px`,P.style.marginBottom=`${le}px`,X.style.height="100%";let $t=$v(ge),Ha=wa>=$t-Jo;Ha&&(Et=Math.min(fe,ae.height)-(wa-$t));let mo=ee.top<oe||ee.bottom>fe-oe||Math.ceil(Et)+Jo<Math.min(we,Ie),er=(J.visualViewport?.scale??1)!==1&&ot.engine.webkit;if(mo||er){nd(P,q.current),g(!1);return}let ha=Math.max(Ie,Et);if(Ha){let _t=Math.max(0,fe-Jt);P.style.top=ae.height>=vt?"0":`${_t}px`,P.style.height=`${Et}px`,ge.scrollTop=$v(ge)}else P.style.bottom="0",ge.scrollTop=wa;if(se){let _t=ae.top,Ee=ae.height,Pt=se.top+se.height/2,Je=Tr(Ee>0?(Pt-_t)/Ee*100:50,0,100);X.style.setProperty(rw,`50% ${Je}%`)}(ha===fe||Et>=Ve)&&(k.current=!0),l.context.handleScrollArrowVisibility(ge),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{M()}},[l,L,P,N,y,g,O,F,d,x,v]),Er.useEffect(()=>{if(!y||!P||!L)return;let X=He(P);function M(_){l.context.setOpen(!1,he(ne.windowResize,_))}return Le(X,"resize",M)},[l,y,P,L]);let z={...F?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${I}-list`},onKeyDown(X){h&&Hf.has(X.key)&&X.stopPropagation()},onScroll(X){F||V(X.currentTarget)},...y&&{style:F?{height:"100%"}:Zv},className:!F&&y?xs.className:void 0},U=$("div",t,{ref:[a,l.context.popupRef],state:w,stateAttributesMapping:GY,props:[T,z,$f(A),i]});return(0,tb.jsxs)(Er.Fragment,{children:[!b&&xs.getElement(S),(0,tb.jsx)(jp,{context:f,modal:!1,disabled:!E,openInteractionType:C,returnFocus:s,restoreFocus:!0,children:U})]})});function b_(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function $v(e){return od(e.scrollHeight,e.clientHeight)}function C_(e){return Wp.getScale(e)}function mh(e,t,a){return e/a[t]}function eb(e,t){return ls({x:mh(e.x,"x",t),y:mh(e.y,"y",t),width:mh(e.width,"x",t),height:mh(e.height,"y",t)})}var L_=[["transform","none"],["scale","1"],["translate","0 0"]];function jY(e){let{style:t}=e,a={};for(let[o,r]of L_)a[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(let[o]of L_){let r=a[o];r?t.setProperty(o,r):t.removeProperty(o)}}}var I_=R(D(),1);var T_=I_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),{multiple:l,readOnly:u}=Xi(),{alignItemWithTriggerActive:c}=Wi(),d=i.useState("hasScrollArrows"),f=i.useState("openMethod"),p={id:`${i.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(v){i.context.scrollHandlerRef.current?.(v.currentTarget)},...c&&{style:Zv},className:d&&f!=="touch"?xs.className:void 0},y=i.useStateSetter("listElement");return $("div",t,{ref:[a,y],props:[p,s]})});var Gr=R(D(),1);var ab=R(D(),1),nw=ab.createContext(void 0);function ph(){let e=ab.useContext(nw);if(!e)throw new Error(Pe(57));return e}var w_=R(Q(),1),E_=Gr.memo(Gr.forwardRef(function(t,a){let{render:o,className:r,style:n,value:s=null,label:i,disabled:l=!1,nativeButton:u=!1,...c}=t,d=Gr.useRef(null),f=Gf({guess:!0,label:i,textRef:d}),m=wt(),{itemProps:p,multiple:y,disabled:v,readOnly:g}=Xi(),h=v||l,x=m.useState("isActive",f.index),S=m.useState("open"),b=m.useState("isSelected",s),I=m.useState("isSelectedByFocus",f.index),L=m.useState("isItemEqualToValue"),C=f.index,E=Gr.useRef(null);G(()=>{let w=m.context.valuesRef.current;return w[C]=s,()=>{delete w[C]}},[C,s,m]),G(()=>{let w=m.state.value,z=m.state.selectedIndex,U=z,X;y&&Array.isArray(w)?(U=jH(C,s,m.context.valuesRef.current,w,L,z),X=U===C,C===z&&!X&&(m.context.selectedItemTextRef.current=null)):(X=w!==void 0&&hs(s,w,L),X&&(U=C)),m.set("selectedIndex",U),X&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[C,y,L,m,s]);let T=Gr.useRef("mouse"),A=Gr.useRef(!1),{getButtonProps:N,buttonRef:P}=Ko({disabled:h,focusableWhenDisabled:!0,native:u,composite:!0}),F={disabled:h,selected:b,highlighted:x};function k(w){if(v||g)return;let z=m.state.value;if(y){let U=Array.isArray(z)?z:[],X=b?XH(U,s,L):[...U,s];m.context.setValue(X,he(ne.itemPress,w))}else m.context.setValue(s,he(ne.itemPress,w)),m.context.setOpen(!1,he(ne.itemPress,w))}function H(){m.context.selectionRef.current.dragY=0}let q={role:"option","aria-selected":b,tabIndex:S&&x?0:-1,onKeyDown(w){m.set("activeIndex",C),w.key===" "&&m.context.typingRef.current&&w.preventDefault()},onClick(w){let z=T.current!=="touch",U=w.nativeEvent.pointerType,X=z&&Oi(w.nativeEvent)&&(U!==void 0||x),M=z&&!X&&!A.current;A.current=!1,!(h||M)&&k(w.nativeEvent)},onPointerEnter(w){T.current=w.pointerType},onPointerMove(w){if(w.pointerType==="mouse"&&w.buttons===1){let z=m.context.selectionRef.current;z.dragY+=w.movementY,z.dragY**2>=64&&(z.allowUnselectedMouseUp=!0)}},onPointerDown(w){T.current=w.pointerType,A.current=!0,H()},onMouseUp(){if(H(),h||T.current==="touch"||A.current)return;let w=!m.context.selectionRef.current.allowSelectedMouseUp&&b,z=!m.context.selectionRef.current.allowUnselectedMouseUp&&!b;w||z||(A.current=!0,E.current?.click(),A.current=!1)}},O=$("div",t,{ref:[P,a,f.ref,E],state:F,props:[p,q,c,N]}),V=Gr.useMemo(()=>({selected:b,index:C,textRef:d,selectedByFocus:I}),[b,C,d,I]);return(0,w_.jsx)(nw.Provider,{value:V,children:O})}));var Fu=R(D(),1);var A_=R(Q(),1),P_=Fu.forwardRef(function(t,a){let{selected:o}=ph();return t.keepMounted||o?(0,A_.jsx)(XY,{...t,ref:a}):null}),XY=Fu.memo(Fu.forwardRef((e,t)=>{let{render:a,className:o,style:r,keepMounted:n,...s}=e,{selected:i}=ph(),l=Fu.useRef(null),{transitionStatus:u,setMounted:c}=Mo(i),f=$("span",e,{ref:[t,l],state:{selected:i,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Xa});return Ra({batch:!0,enabled:!i,open:i,ref:l,onComplete(){i||c(!1)}}),f}));var sd=R(D(),1);var D_=sd.memo(sd.forwardRef(function(t,a){let{index:o,textRef:r,selectedByFocus:n}=ph(),s=wt(),{render:i,className:l,style:u,...c}=t,d=sd.useCallback(m=>{m&&(o===0&&(s.context.firstItemTextRef.current=m),n&&(s.context.selectedItemTextRef.current=m))},[s,o,n]);return $("div",t,{ref:[d,a,r],props:c})}));var M_=R(D(),1);var O_=M_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Wi(),y={open:i.useState("open"),side:l,align:u,uncentered:f},v=$("div",t,{state:y,ref:[c,a],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:Tf});return m?null:v});var N_=R(D(),1);var k_=R(D(),1);var ob=k_.forwardRef(function(t,a){let{render:o,className:r,style:n,direction:s,keepMounted:i,...l}=t,u=s==="up",c=wt(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Wi(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",y=c.useState(p),v=c.useState("openMethod"),g=y&&v!=="touch",h=Ze(),x=u?m:f,{mounted:S,transitionStatus:b,setMounted:I}=Mo(g);G(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),Ra({open:g,ref:x,onComplete(){g||I(!1)}});let E=$("div",t,{ref:[a,x],state:{direction:s,visible:g,side:d,transitionStatus:b},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(A){if(A.movementX===0&&A.movementY===0||h.isStarted())return;c.set("activeIndex",null);function N(){let P=c.state.listElement??c.context.popupRef.current;if(!P)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(P);let F=od(P.scrollHeight,P.clientHeight),k=gs(P.scrollTop,F),H=k===(u?0:F),q=c.context.listRef.current;if(k!==P.scrollTop&&(P.scrollTop=k),H){h.clear();return}if(q.length>0){let O=x.current?.offsetHeight||0;P.scrollTop=YY(q,u,k,P.clientHeight,O,F)}h.start(40,N)}h.start(40,N)},onMouseLeave(){h.clear()}},l],stateAttributesMapping:Xa});return S||i?E:null});function YY(e,t,a,o,r,n){if(t){let c=0,d=a+r-Jo;for(let p=0;p<e.length;p+=1){let y=e[p];if(y&&y.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?gs(m.offsetTop-r,n):0}let s=e.length-1,i=a+o-r+Jo;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>i){s=Math.max(0,c-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?gs(u.offsetTop+u.offsetHeight-o+r,n):n}var V_=R(Q(),1),B_=N_.forwardRef(function(t,a){return(0,V_.jsx)(ob,{...t,ref:a,direction:"down"})});var F_=R(D(),1);var z_=R(Q(),1),H_=F_.forwardRef(function(t,a){return(0,z_.jsx)(ob,{...t,ref:a,direction:"up"})});var id=R(D(),1);var rb=R(D(),1),sw=rb.createContext(void 0);function __(){let e=rb.useContext(sw);if(e===void 0)throw new Error(Pe(56));return e}var U_=R(Q(),1),q_=id.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,[i,l]=id.useState(),u=id.useMemo(()=>({labelId:i,setLabelId:l}),[i,l]),c=$("div",t,{ref:a,props:[{role:"group","aria-labelledby":i},s]});return(0,U_.jsx)(sw.Provider,{value:u,children:c})});var G_=R(D(),1);var j_=G_.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,{setLabelId:l}=__(),u=Tt(s);return G(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),$("div",t,{ref:a,props:[{id:u,"aria-hidden":!0},i]})});var X_=R(D(),1);var Y_=X_.forwardRef(function(t,a){let{className:o,render:r,orientation:n="horizontal",style:s,...i}=t;return $("div",t,{state:{orientation:n},ref:a,props:[{role:"presentation"},i]})});var W_=Y_;var Zt=R(Q(),1),ld=$a.Root;function ud({className:e,...t}){return(0,Zt.jsx)($a.Value,{"data-slot":"select-value",className:re("flex flex-1 text-left",e),...t})}function cd({className:e,size:t="default",children:a,...o}){return(0,Zt.jsxs)($a.Trigger,{"data-slot":"select-trigger","data-size":t,className:re("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[a,(0,Zt.jsx)($a.Icon,{render:(0,Zt.jsx)($s,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function fd({className:e,children:t,side:a="bottom",sideOffset:o=4,align:r="center",alignOffset:n=0,alignItemWithTrigger:s=!0,...i}){return(0,Zt.jsx)($a.Portal,{children:(0,Zt.jsx)($a.Positioner,{side:a,sideOffset:o,align:r,alignOffset:n,alignItemWithTrigger:s,className:"isolate z-50",children:(0,Zt.jsxs)($a.Popup,{"data-slot":"select-content","data-align-trigger":s,className:re("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[(0,Zt.jsx)(WY,{}),(0,Zt.jsx)($a.List,{children:t}),(0,Zt.jsx)(KY,{})]})})})}function Ki({className:e,children:t,...a}){return(0,Zt.jsxs)($a.Item,{"data-slot":"select-item",className:re("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Zt.jsx)($a.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,Zt.jsx)($a.ItemIndicator,{render:(0,Zt.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,Zt.jsx)(Qn,{className:"pointer-events-none"})})]})}function WY({className:e,...t}){return(0,Zt.jsx)($a.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:re("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)(bm,{})})}function KY({className:e,...t}){return(0,Zt.jsx)($a.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:re("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)($s,{})})}var hb=R(D(),1);var Nt=R(D(),1),Z_=R(Wr(),1);var hh=R(D(),1),K_=({ref:e,callback:t,eventType:a="mousedown",eventListenerOptions:o})=>{let r=(0,hh.useRef)(t);r.current=t;let n=(0,hh.useRef)(e);n.current=e,(0,hh.useEffect)(()=>{let s=i=>{let l=i.target;if(!l||!l.isConnected)return;(Array.isArray(n.current)?n.current:[n.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&r.current(i)};return document.addEventListener(a,s,o),()=>document.removeEventListener(a,s,o)},[a,o])};var Qt=R(Q(),1),Q_=(0,Nt.createContext)(null),dd=()=>{let e=(0,Nt.useContext)(Q_);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},ZY=Ca.create(Eo),QY=({children:e,transition:t})=>{let[a,o]=(0,Nt.useState)(!1),r=(0,Nt.useId)(),n=(0,Nt.useRef)(null),s=(0,Nt.useMemo)(()=>({isOpen:a,uniqueId:r,triggerRef:n,setIsOpen:o}),[a,r]);return(0,Qt.jsx)(Q_.Provider,{value:s,children:(0,Qt.jsx)(hy,{transition:t,children:e})})},iw=({children:e,transition:t})=>{let a=Nt.default.Children.toArray(e);return(0,Qt.jsx)(QY,{children:(0,Qt.jsx)(hy,{transition:t,children:a.map(o=>o)})})},nb=(0,Nt.forwardRef)(({children:e,className:t,...a},o)=>{let{isOpen:r,setIsOpen:n,uniqueId:s}=dd(),i=(0,Nt.useCallback)(()=>{n(!0)},[n]);return(0,Qt.jsx)(Ca.div,{ref:o,"data-slot":"expandable-card-body",layoutId:`card-${s}`,className:re("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>i(),"aria-haspopup":"dialog","aria-expanded":r,"aria-controls":`shadix-ui-expandable-card-${s}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...a,children:e})}),lw=({children:e,className:t,...a})=>{let{uniqueId:o}=dd();return(0,Qt.jsx)(Ca.div,{layoutId:`card-content-${o}`,className:re("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${o}-title`,"aria-describedby":`shadix-ui-expandable-card-${o}-description`,...a,children:e})},uw=({children:e,className:t})=>{let{isOpen:a,uniqueId:o,setIsOpen:r}=dd(),[n,s]=(0,Nt.useState)(!1),i=(0,Nt.useRef)(null);return K_({ref:i,callback:()=>{r(!1)}}),(0,Nt.useEffect)(()=>(s(!0),()=>s(!1)),[]),(0,Nt.useEffect)(()=>{if(!a)return;let l=c=>c.key==="Escape"&&r(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[a,r]),n?(0,Z_.createPortal)((0,Qt.jsx)(Ii,{initial:!1,mode:"sync",children:a&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(Ca.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${o}`),(0,Qt.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:(0,Qt.jsxs)(nb,{ref:i,className:re("pointer-events-auto",t),children:[e,(0,Qt.jsx)(J_,{})]})})]})}),document.body):null},cw=({className:e,children:t,...a})=>{let{uniqueId:o}=dd();return(0,Qt.jsx)(Ca.h2,{layout:"position",layoutId:`card-title-${o}`,className:re("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...a,children:t})},fw=({className:e,children:t,...a})=>{let{uniqueId:o}=dd();return(0,Qt.jsx)(Ca.h3,{id:`card-description-${o}`,layout:"position",layoutId:`card-description-${o}`,className:re("text-sm text-muted-foreground px-4",e),...a,children:t})},JY=({className:e,...t})=>(0,Qt.jsx)(Ca.img,{style:{willChange:"transform,scale"},className:re("w-full h-full object-cover object-top not-prose",e),...t}),J_=({className:e,children:t,...a})=>{let{setIsOpen:o,uniqueId:r}=dd(),n=(0,Nt.useCallback)(()=>{o(!1)},[o]);return(0,Qt.jsx)(ZY,{layout:"position",layoutId:`card-close-button-${r}`,onClick:n,"aria-label":"Close",size:"icon-sm",className:re("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...a,children:t??(0,Qt.jsx)(Pl,{})})};iw.displayName="ExpandableCard";nb.displayName="ExpandableCardBody";lw.displayName="ExpandableCardContent";uw.displayName="ExpandableCardExpandContainer";cw.displayName="ExpandableCardTitle";fw.displayName="ExpandableCardDescription";JY.displayName="ExpandableCardImage";J_.displayName="ExpandableCardCloseButton";var eU=R(Q(),1),$Y={running:{Icon:oi,cls:"text-info animate-spin"},queued:{Icon:Pm,cls:"text-warning animate-pulse"},done:{Icon:ei,cls:"text-success animate-in zoom-in-50 duration-300"},failed:{Icon:ti,cls:"text-destructive animate-in zoom-in-50 duration-300"},timeout:{Icon:Rm,cls:"text-warning animate-in zoom-in-50 duration-300"},stopped:{Icon:Cm,cls:"text-muted-foreground"}};function $_({state:e,className:t}){let{Icon:a,cls:o}=$Y[e];return(0,eU.jsx)(a,{className:re("size-5 shrink-0",o,t),"aria-label":e})}var tU="data:image/gif;base64,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";var aU="data:image/gif;base64,R0lGODdhgACAAMQAAAAAABQWGi4uMzQ0OT09PkBAQUdHS0lJSllZXmBgZWZma5WVlrCws8LCxc7O0eDg4evr7fDw8P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCAATACwAAAAAgACAAAAF/+AkjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4M0Cv2+2ju75O2u/bfoGCg4R8aoWIiYOHdBCOj5CQdZGUj3aVlYZnk5iRnJ2Wn6AQmmaioKedl6OOpWWpmLCZspSuYHusrY25q6x/XoG5pLu+tJ5+XcG8xKO9zchbxsLT1LF00czV2tvHAdgB3OHitlXS4uez3la46O3Ld1HK7vPWv03y9Pmh9kvm+v+SrjHxBxAgOSMEC+o7WCShQnoMiTh86C7ikIkU0VkUgjHjOIH9snlUuDFIx5HbSv8COYmymsofLFtOe6mDncyC/GD6uUkSmk6bPBf67BEzqEaQPIoa/aiOqMilHmm+UAo1JdIdVKu6vFrzqdaeTZN6/WqQaw6CANKqBUBWm1QXaNembbs1LNaxkeTOpTvTLI64cvn2tdsVXC69bAW/+ykMseLFPgCvfVyM8Fm8oxxT3seYm+bNwyz/xQzq8+a3LViapoyahWq9oHWJvvE6cOzWK2pPvu13NNBHqzshHg57XiCTOykFx0S8+d6KQ386A16clfPmEPUkgbW80nXi2WdLfNpd+ffyVsVfJF898/n2R9VzZG/b+vv67XC3EMC/v///AMYGAYAEFnhDgQj6J2D6ggweyCCCCz5ooA39KWDhhRhe6J8CEQqQ4YcW/ueghyBmuGGHJZro34gpYnhibBW2GOKKFPIn44w2onijiDWSKOOGIFb1IZA/0liDhEgKUFWSEo7IJIRQPdlgj1ISuGSVEx6JpZVRbgkgizvG+KGQKtoYZn9gFmnmmFANKWaLPGrpI5xvpkhkigncWaJ/A5w5p51G0lDnnoOCqCeIeRZapgB9qvknoWj2eKMChxqqKIYIVLpoo3Su2Sl/Tnop6qikEhhqqaimWuWpqrbqKoKsviqrrHLUauutuOaq66689urrr8AGK+ywxBZr7LHIJqvsssw26+yz0DIRAgAh+QQJCAATACwLACEAaQBMAAAF/+AkjmRpnkGqruvIvioJw2dt37g973zvx7mgMPcrGnvDpNKVgjifUKgqSn2uqlXgcoubYqPerzUshmi5aBNZvP5ey85zej5pY+1ZPFVOV8LgcU2Ab3A0fUI7gGaChXpgM4dEM4qOUpVjhpE1l4qdnnspmpuMn6WmoAGiKKSnraV8qpyus4+pqnUvtLqUL4eJu8BukHO/wcaWmVyyx8yBtsqszdJ5z1vL08GwQ9fYu9qI0d3Y30Hc4rPkkgHn7Old4ezM7jfm8abzOvD22aFo9fue8MnIBVBaslF/CjbbQW+SQnnDVq17WFDbP4q0LOrDOE3jRI7xPIK0J3Jku35qNv9CWcCy5QKTr1CWkAWgpk0AMD+VhHPTZs6AMgd+LNOz5s9OO4kWPcqrmlBFRXEybeSUyVAxUadSRaiIgNevBFy21IqM66msZJ2ZNYU2bdJPbcm+9RRX69xOdafehbo07aKqImSJZQn2a5XBiBOPkymgsePHj6vkxRK1ct9dkDNr3txY8mWllkMH40yas+eefENbHl0asoLXsGMrOH0zterJrWTH3qxbNm2fgG6vBtb7Ne/ir38bDS4c9ynkx5E3aMCgOoMGBbJrL+Cge/fp06McGE9+PNjt6L2Dn+69vXvq1ddD14x8t+PZfu/XN966v18I/QUo4H8CFlgagQYmmBl2ggrqt99j+KXlYH3RUXjfeuC9l6F7HDqwXocabtgehtRNOF9m+/HXWHEc6QZhihWeKACLGLloYnEx4nhjcjXK9uKDDbbGUZBE+odRkUiadmSSTD5m3ZNQRinllFRK2aQAvhyh5ZaA3QIOl2D64GUaYZbZSyQhAAAh+QQJCAATACwLAB4AaQBMAAAF/+AkjmRpnkGqruvIvioJw2dt37g973zvx7mgMPcrGnvDpNKVgjifUKgqSn2uqlXgcoubYqPerzUshmi5aBNZvP5ey85zej5pY+1ZPFVOV8LgcU2Ab3A0fUI7gGaChXpgM4dEM4qOUpVjhpE1l4qdnnspmpuMn6WmoAGiKKSnraV8qpyus4+pqnUvtLqUL4eJu8BukHO/wcaWmVyyx8yBtsqszdJ5z1vL08GwQ9fYu9qI0d3Y30Hc4rPkkgHn7Old4ezM7jfm8abzOvD22aFo9fue8MnIBVBaslF/CjbbQW+SQnnDVq17WFDbP4q0LOrDOE3jRI7xPIK0J3Jku35qNv+aNFYSDoCXMAGs/NSyTEyYMwOiLCHr5sucnWqK8SkT6KCdAz/a9Gn0aLWkiog2bfSUidKhTKeyQWq1lVStzhB6zQpWqKevZbmKuIhWq9lObae+jUrWrVpcV8/WlXsXL8EocZsyzJcQ8F7BEQkTghLY6EERAiJLnjy5SmOglDNr3hzZ8mGjnENz9nwTrBPRmRWoXs1aAemYpiG0Zr15tu3Jrk1Ltj27Nm/au2Pv/r3aN3EFuIVHPq7aOPHkupczR01dgPLq2EVfz8498/bu4DdzDC+aOfLhszn2Rv9cs3ncttW3hn/c+W/6reUDl17f/XT2rOlXHIC82VcggaoJ2BwYguuRF9p4DkYo4YQUVmjhhRhmqOGGqIUAACH5BAkIABMALAsAFgBpAFQAAAX/4CSOZGmeQaqu68i+KgnDZ23fuD3vfO/HuaAw9ysae8Ok0pWCOJ9QqCpKfa6qVeByi5tio96vNSyGaLloE1m8/l7LznN6Pmlj7Vk8VU5XwuBxTYBvcDR9QjuAZoKFemAzh0Qzio5SlWOGkTWXip2eeymam4yfpaagAaIopKetpXyqnK6zj6mqdS+0upQvh4m7wG6Qc7/BxpaZXLLHzIG2yqzN0nnPW8vTwbBD19i72ojR3djfQdzis+SSAefs6V3h7MzuN+bxpvM68PbZoWj1+57wycgFUFqyUX8KNttBb5JCecNWrXtYUNs/irQs6sM4TeNEjvE8grQncmS7fmo2/5o0VhIOgJcwAaz81LJMTJgzA6IsIevmy5ydaorxKRPooJ0DP9r0afRotaSKiDZt9JSJ0qFMp7JBarWVVK3OEHrNClaop69luYq4iFar2U5tp76NStatWlxXz9aVexcvwShxmzLMlxDwXsERCROCEtjowXLhGgMVKLGK5JyUU+aFcHlmZp6RDzvuC66w3cdLip3u1cc0Xxa38IINq0SA7du4c+ueDUG379/Ag9vmLby48d2zjwdXwLy58+a4nzfnKD269Oq+r2O3rZ36c+vaoWcPL577de/OwZP/Tb68gO4Yt79vr4A9ffXO0bunX1+5fwEc/SfggMNhROCBCCao4HOCDDbo4IL84aedhNIlgFsEGGaoIYa4DXDfbRGO1x6F8tFn4W0bphhBhx+aN6KI64HY4nzknWibihuy+KKLMeoWIo/hkeicjQLgqKGOPdKYpJDpybijktohcKGRHN7m4ZM/Pqjlllx26eWXYIYp5phk/hYCACH5BAkIABMALAsAEwBpAFcAAAX/4CSOZGmeQaqu68i+KgnDZ23fuD3vfO/HuaAw9ysae8Ok0pWCOJ9QqCpKfa6qVeByi5tio96vNSyGaLloE1m8/l7LznN6Pmlj7Vk8VU5XwuBxTYBvcDR9QjuAZoKFemAzh0Qzio5SlWOGkTWXip2eeymam4yfpaagAaIopKetpXyqnK6zj6mqdS+0upQvh4m7wG6Qc7/BxpaZXLLHzIG2yqzN0nnPW8vTwbBD19i72ojR3djfQdzis+SSAefs6V3h7MzuN+bxpvM68PbZoWj1+57wycgFUFqyUX8KNttBb5JCecNWrXtYUNs/irQs6sM4TeNEjvE8grQncmS7fmo2/5o0VhIOgJcwAaz81LJMTJgzA6IsIevmy5ydaorxKRPooJ0DP9r0afRotaSKiDZt9JSJ0qFMp7JBarWVVK3OEHrNClaop69luYq4iFar2U5tp76NStatWlxXz9aVexcvwShxvxAdvBddRIl/oQTGQrjxT2AM37GospiyY8L8WCyxU5nKZcyQ+5YL1xnw59KvRKuzfJPu6dahqybhXJjxa9jeVKtLzPegNYdpfUObDHaR5lsX9wn0p9Lk8uHFjd/i2Xzk8wkCsmvfzr27d47ew4sfT548+PLo06sXcH49egXw48uPv31+fI7269vP730//+z+4Teffv7R11+BBgK4n5yA8hGIYHgIJihAgBj9N2GECkCIoYMFbhfBhyCG+OEDHO633QAbaodhhu616OKLMMYo44w01mjjjTjmqOOOPCoYYYkmqhhhAkAOqB2KPwqZZHcrFmmkjwUSqWSHR6YIJZVMWnnhkltG6aSESD44JZbcNTmmf1/CJ+WVQWYXJplmZsllnF36h0CaLLqpJZ099unnn4AGKuighBbqZwgAIfkECQgAEwAsCwAaAGkAUAAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/mjRWEg6AlzABrPzUskxMmDMDoiwh6+bLnJ1qivEpE+ignQM/2vRp9Gi1pIqINm30lInSoUynskFqtZVUrc4Qes0KVqinr2W5iriIVqvZTm2nvo1K1q1aXFfP1pV7Fy/BKHG/EB28F11EiX+hBMZCuPFPYAzfsaiymLJjwvxYLLFTmcplzJD7lgvXGfDn0q9Eq7N8k+7p1qGrJuFcmPFr2N5UC9jNu7fv32Cd/B5OvLjx3cEhHF/OHHjw5sYVSJ9OfXpvBcl5V98unTj37dez7/5e3Tt569rFCziP/jf77umfj39vnv117hzBa6cPvb8Ajv4FKCByGA1oIHQAHqigX3EJLujbewrct11+5e1n33AQSlgdhdRpSF5953n4nYjbJUBihbsNwN98F7q34novvmeihR/ypmKLMOJ4Ioo5hkjjdwjs2J4AN/rIopEOJqnkkkw26eSTUEYp5ZRUChgCACH5BAkIABMALAsAIQBpAEwAAAX/4CSOZGmeQaqu68i+KgnDZ23fuD3vfO/HuaAw9ysae8Ok0pWCOJ9QqCpKfa6qVeByi5tio96vNSyGaLloE1m8/l7LznN6Pmlj7Vk8VU5XwuBxTYBvcDR9QjuAZoKFemAzh0Qzio5SlWOGkTWXip2eeymam4yfpaagAaIopKetpXyqnK6zj6mqdS+0upQvh4m7wG6Qc7/BxpaZXLLHzIG2yqzN0nnPW8vTwbBD19i72ojR3djfQdzis+SSAefs6V3h7MzuN+bxpvM68PbZoWj1+57wycgFUFqyUX8KNttBb5JCecNWrXtYUNs/irQs6sM4TeNEjvE8grQncmS7fmo2/0JZwLLlApOvUJaQBaCmTQAwP5WEc9NmzoAyB34s07Pmz047iRY9yquaUEVFcTJt5JTJUDFRp1JFqIiA168EXLbUiozrqaxknZk1hTZt0k9tyb71FFfr3E51p96FujTtoqoiZIllCfar378kBChezJhxlbxMG0ueTFnx475pK2uufLnn4c2SFYgeTVpB55uHS5OmrLr0aZ9+W4tmLVv0a6OxZdOu3aABg98MGhQYTryAg+PHe/cGpLwB8ufQmzuHTt337+a1d9dWwNi038XbR4MeL+Az+fOgzaNfP1k9+/eWv8MHH547ePX17Yeu31167+jKUSdgcwICGKCByjFAX1F42mW3oGsYqdYdf5PlN6FqHEn4oIP7MbjhaBmWduF286WHUYkobsZRiiy2d2KLMCoG3Iw01mjjjTjaGKMvR/ToI2C3gPPjkD4EmQaRSPYSSQgAIfkECQgAEwAsCwAeAGkATAAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/mjRWEg6AlzABrPzUskxMmDMDoiwh6+bLnJ1qivEpE+ignQM/2vRp9Gi1pIqINm30lInSoUynskFqtZVUrc4Qes0KVqinr2W5iriIVqvZTm2nvo1K1q1aXFfP1pV7Fy/BKHGbMsyXEPBewREJE4IS2OhBEQIiS548uUpjoJQza94c2fJho5xDc/Z8E6wT0ZkVqF7NWgHpmKYhtGa9ebbtya5NS7Y9uzZv2rtj7/692jdxBbiFRz6u2jjx5LqXM0dNXYDy6thFX8/OPfP27uA3cwwvmjny4bM59kb/XLN53LbVt4Z/3Plv+q3lA5de3/109qzpVxyAvNlXIIGqCdgcGILrkRfaeA5GKOGEFFZo4YUYZqjhhqiFAAAh+QQJCAATACwLABYAaQBUAAAF/+AkjmRpnkGqruvIvioJw2dt37g973zvx7mgMPcrGnvDpNKVgjifUKgqSn2uqlXgcoubYqPerzUshmi5aBNZvP5ey85zej5pY+1ZPFVOV8LgcU2Ab3A0fUI7gGaChXpgM4dEM4qOUpVjhpE1l4qdnnspmpuMn6WmoAGiKKSnraV8qpyus4+pqnUvtLqUL4eJu8BukHO/wcaWmVyyx8yBtsqszdJ5z1vL08GwQ9fYu9qI0d3Y30Hc4rPkkgHn7Old4ezM7jfm8abzOvD22aFo9fue8MnIBVBaslF/CjbbQW+SQnnDVq17WFDbP4q0LOrDOE3jRI7xPIK0J3Jku35qNv+aNFYSDoCXMAGs/NSyTEyYMwOiLCHr5sucnWqK8SkT6KCdAz/a9Gn0aLWkiog2bfSUidKhTKeyQWq1lVStzhB6zQpWqKevZbmKuIhWq9lObae+jUrWrVpcV8/WlXsXL8Eocb8QHbwXXUSJf6EExkK48U9gDN+xqLKYsmPC/FgssVOZymXMkPuWC9cZ8OfSr0Srs3yT7unWoasm4VyY8WvY3lSrS8z3oDWHaX1Dmwx2keZbF/cJHCGgufPn0KMXhxC9uvXr2JtPz869u/Ti3rFHGE++PPnnCtKrT89xfXr07uMrsG6+/nj48du7xy9fPX375vG3nn7rCdjffwCe51ySfwT6t2B/BVaXYHkGsodRfBViGN6GAnDE4YcgaodRiCSWaOKJKKao4oooQhhhcy46CGOMCWT4ogADxDjfgzFap+OOM/bII4Q1DnmgczkKGaSLPupo4406Frnkkc0lyaSRVEL345MyChAll0Di6CSW8jWppJdjTikfAmA+ZyWEYIbJ4px01mnnnXjmqeeefPZZXQgAIfkECQgAEwAsCwATAGkAVwAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/mjRWEg6AlzABrPzUskxMmDMDoiwh6+bLnJ1qivEpE+ignQM/2vRp9Gi1pIqINm30lInSoUynskFqtZVUrc4Qes0KVqinr2W5iriIVqvZTm2nvo1K1q1aXFfP1pV7Fy/BKHG/EB28F11EiX+hBMZCuPFPYAzfsaiymLJjwvxYLLFTmcplzJD7lgvXGfDn0q9Eq7N8k+7p1qGrJuFcmPFr2N5Uq0vM96A1h2l9Q5sMdpHmWxf3CfSn0uTy4cWN3+LZfOTzCQKya9/Ovbt3jt7Dix9Pnjz48ujTqxdwfj16BfDjy4+/fX58jvbr28/vfT//7P7hN59+/tHXX4EGArifkYDyEYhgeAgmKECAGP03YYQKQIihgwVyuF8CHlo4wIbaYZiheyimqOKKLLbo4oswxijjjDTWaOONCkYYooUYgliijtqNCGSODx445IVH9rhjg0GSSGSHRhb5pH9LxufjlCI6iaSU3JlYpYRK/silkFx6GSWUWPIYIQJfnpgdmWhuGSeOdNZp55145qnnnnzWGQIAIfkECQgAEwAsCwAaAGkAUAAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/mjRWEg6AlzABrPzUskxMmDMDoiwh6+bLnJ1qivEpE+ignQM/2vRp9Gi1pIqINm30lInSoUynskFqtZVUrc4Qes0KVqinr2W5iriIVqvZTm2nvo1K1q1aXFfP1pV7Fy/BKHGbMsyXEPBewREJE4IS2OjBcuEaAxUosYrknJRT5oVweWZmnpEPO+4rQoDp06hTqwbrRLXr17Bjm2YNQbbt26tZ446toLfv375RR6B9Grjx3q+PGxdO3LRy4MmfBz89XLdz6chdY89uujrY4tujYxceobx57w+Xgx+/u70Aju7jy5+Ncb793fDv64+df3/q7QqgphxH6l3HnmoACngcTIHQrSedeA86+JyC0iVA4YSnDRCehMpBiKGBEYKonIUcFiiAhgcKkKB2G4rYYYnAIXDhi6ahGKKKLfqn44489ujjj0AGKeSQRBYpXwgAIfkECQgAEwAsCwAhAGkATAAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/QlnAsuUCk69QlpAFoKZNADA/lYRz02bOgDIHfizTs+bPTjuJFj3Kq5pQRUVxMm3klMlQMVGnUkWoiIDXrwRcttSKjOuprGSdmTWFNm3ST23JvvUUV+vcTnWn3oW6NO2iqiJkiWUJ9qvfvyQEKF7MmHGVvEwbS55MWfHjvmkra658uefhzZIViB5NWkHnm4dLk6asuvRpn35bi2YtW/Rro7Fl067doAGD3wwgHBhO/ECU3r0dKF/OfDnyBs2jO3gOXTpz37+f195dWwHjCJ8Vdx8NuryA8ObTb0avvr1k9u7jn/crn/H42YtN0xd/n/v2/NQldx1y1jX3XIHOHWggVnUM5NffZPd556BqHKlm34OhYSiAbBWWduF4/uk2oWsYWTjif/VpxlGKLK6HUYswTrZijDQqBtyNOOao44486lijL0cEKSRgt4Az5JE+FJkGkkz2EkkIACH5BAkIABMALAsAHgBpAEwAAAX/4CSOZGmeQaqu68i+KgnDZ23fuD3vfO/HuaAw9ysae8Ok0pWCOJ9QqCpKfa6qVeByi5tio96vNSyGaLloE1m8/l7LznN6Pmlj7Vk8VU5XwuBxTYBvcDR9QjuAZoKFemAzh0Qzio5SlWOGkTWXip2eeymam4yfpaagAaIopKetpXyqnK6zj6mqdS+0upQvh4m7wG6Qc7/BxpaZXLLHzIG2yqzN0nnPW8vTwbBD19i72ojR3djfQdzis+SSAefs6V3h7MzuN+bxpvM68PbZoWj1+57wycgFUFqyUX8KNttBb5JCecNWrXtYUNs/irQs6sM4TeNEjvE8grQncmS7fmo2/5o0VhIOgJcwAaz81LJMTJgzA6IsIevmy5ydaorxKRPooJ0DP9r0afRotaSKiDZt9JSJ0qFMp7JBarWVVK3OEHrNClaop69luYq4iFar2U5tp76NStatWlxXz9aVexcvwShxvxAdvBddRIl/oQTGQrjxT2AM37GospiyY8L8WJwQwLmzZ8+Wb9K9XPnU59OoU3MOHXM0adHAVMtWzRonoNelTc0+raC3798Kaj92iRv2LuC/UyNf7jk4WAidlyNXLj159OfQOVe3znt77+bYo3tXQN07+Ofize9eH369e/ft38unjX6+ffYY7+8eTz49cI7TdRbBgAQWSGB52zW3HD+AwHlm4IMDIlidgsgxyJ0AED4ooXQU/odRgJxlaOCGzPn3m4W+OSjigfrtxlGLMMYo44w01mjjjTjmqOOMIQAAIfkECQgAEwAsCwAWAGkAVAAABf/gJI5kaZ5Bqq7ryL4qCcNnbd+4Pe9878e5oDD3Kxp7w6TSlYI4n1CoKkp9rqpV4HKLm2Kj3q81LIZouWgTWbz+XsvOc3o+aWPtWTxVTlfC4HFNgG9wNH1CO4BmgoV6YDOHRDOKjlKVY4aRNZeKnZ57KZqbjJ+lpqABoiikp62lfKqcrrOPqap1L7S6lC+HibvAbpBzv8HGlplcssfMgbbKrM3Sec9by9PBsEPX2LvaiNHd2N9B3OKz5JIB5+zpXeHszO435vGm8zrw9tmhaPX7nvDJyAVQWrJRfwo220FvkkJ5w1ate1hQ2z+KtCzqwzhN40SO8TyCtCdyZLt+ajb/mjRWEg6AlzABrPzUskxMmDMDoiwh6+bLnJ1qivEpE+ignQM/2vRp9Gi1pIqINm30lInSoUynskFqtZVUrc4Qes0KVqinr2W5iriIVqvZTm2nvo1K1q1aXFfP1pV7Fy/BKHG/EB28F11EiX+hBMZCuPFPYAzfsaiymLJjwvxYLLFTmcplzJD7lgvXGfDn0q9Eq7N8k+7p1qGrJuFcmPFr2N5Uq0vM96A1h2l9Q5sMdpHmWxf3CRwhoLnz59CjF4cQvbr169ibT8/Ovbv04t6xKxhPvjz55+bJc0yPPj376u7fN4+/3nz7+Ofh488/33398vftZ91+/AlAH0byGUigjQIDLhhgef8VuCCD4VUoAEcWZqihdhht6OGHIIYo4ogklijihA/Gl2J6Caxon3MGRCDjjDTK6OKL0aHonI797dfijgQ+F2ONRN4IoH5BAplkj/j9yKSKMBJZpJICIlnlk1BiyaKR4wkpZY1cdmklfmFSqKV5CITp5Zczlmnim3DGKeecdNZp55145pldCAAh+QQJCAATACwLABMAaQBXAAAF/+AkjmRpnkGqruvIvioJw2dt37g973zvx7mgMPcrGnvDpNKVgjifUKgqSn2uqlXgcoubYqPerzUshmi5aBNZvP5ey85zej5pY+1ZPFVOV8LgcU2Ab3A0fUI7gGaChXpgM4dEM4qOUpVjhpE1l4qdnnspmpuMn6WmoAGiKKSnraV8qpyus4+pqnUvtLqUL4eJu8BukHO/wcaWmVyyx8yBtsqszdJ5z1vL08GwQ9fYu9qI0d3Y30Hc4rPkkgHn7Old4ezM7jfm8abzOvD22aFo9fue8MnIBVBaslF/CjbbQW+SQnnDVq17WFDbP4q0LOrDOE3jRI7xPIK0J3Jku35qNv+aNFYSDoCXMAGs/NSyTEyYMwOiLCHr5sucnWqK8SkT6KCdAz/a9Gn0aLWkiog2bfSUidKhTKeyQWq1lVStzhB6zQpWqKevZbmKuIhWq9lObae+jUrWrVpcV8/WlXsXL8EocZsyzJcQ8F7BEQkTghLY6MFy4RoDFSixiuSclFPmhXB5ZmaekQ877guusN3HS4qd7tXHNF8Wt/CCDRu76+zPqVWaxO1H98jPAoILH068uHGOxpMrX86cOfLm0KNLF/B8OnQF2LNrzz48gvfv3jluVzB8vPnk5sd3B/9d/Pby6bWjj89dOPv2GNULp1+/OH/s693nnnz7/TcffwHeBx6CfPQlwGB8ww1gYIEIWmfhhRhmqOGGHHbo4YcghijiiCSWGNx/5FFI34PpOahiehFOeKKMxKHIIowvmufijCsKJ2GFPPboH4025jjejgLQ+KOQSdJ443lG6hdki0++5yORTkZp5ZQ4cjkeAlUSGNySEGoppolopqnmmmy26eabcKoZAgA7";var oU="data:image/gif;base64,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";var $o=R(Q(),1),oW={claude:tU,codex:aU,opencode:oU},rW={opencode:"OpenCode",codex:"Codex",claude:"Claude Code"};function rU({backend:e,active:t,className:a}){let o=rW[e];if(!o)return null;let r=t?oW[e]:void 0;return r?(0,$o.jsx)("img",{src:r,alt:o,title:o,draggable:!1,className:"size-8 shrink-0 [image-rendering:pixelated]"}):(0,$o.jsxs)("svg",{viewBox:e==="opencode"?"0 0 512 512":"0 0 24 24",role:"img","aria-label":o,className:re("size-5 shrink-0",e==="opencode"&&"ring-1 ring-foreground/20",a),children:[(0,$o.jsx)("title",{children:o}),e==="opencode"&&(0,$o.jsxs)($o.Fragment,{children:[(0,$o.jsx)("rect",{width:"512",height:"512",rx:"96",className:"fill-[#131010]"}),(0,$o.jsx)("path",{d:"M320 224V352H192V224H320Z",fill:"#5A5858"}),(0,$o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384 416H128V96H384V416ZM320 160H192V352H320V160Z",fill:"white"})]}),e==="codex"&&(0,$o.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e==="claude"&&(0,$o.jsx)("path",{fill:"#D97757",fillRule:"evenodd",clipRule:"evenodd",d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"})]})}var Qi={};Aa(Qi,{Content:()=>DU,Corner:()=>NU,Root:()=>hU,Scrollbar:()=>PU,Thumb:()=>OU,Viewport:()=>wU});var st=R(D(),1);var sb=R(D(),1),dw=sb.createContext(void 0);function Dn(){let e=sb.useContext(dw);if(e===void 0)throw new Error(Pe(53));return e}function jr(e,t,a){if(!e)return 0;let o=getComputedStyle(e),r=`${t}${a==="x"?"Inline":"Block"}`,n=parseFloat(o[`${r}Start`]);return a==="x"&&t==="margin"?n*2:n+parseFloat(o[`${r}End`])}var nU="data-has-overflow-x",sU="data-has-overflow-y",iU="data-overflow-x-start",lU="data-overflow-x-end",uU="data-overflow-y-start",cU="data-overflow-y-end";var md=e=>t=>t?{[e]:""}:null,Zi={hasOverflowX:md(nU),hasOverflowY:md(sU),overflowXStart:md(iU),overflowXEnd:md(lU),overflowYStart:md(uU),overflowYEnd:md(cU),cornerHidden:()=>null};var ib="--scroll-area-corner-height",lb="--scroll-area-corner-width";var dU="data-orientation";var pU=R(Q(),1),iW={x:0,y:0},mU={width:0,height:0},lW={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},uW={x:!0,y:!0,corner:!0},hU=st.forwardRef(function(t,a){let{render:o,className:r,overflowEdgeThreshold:n,style:s,...i}=t,{xStart:l,xEnd:u,yStart:c,yEnd:d}=cW(n),f=Tt(),m=Ze(),p=Ze(),{nonce:y,disableStyleElements:v}=jf(),[g,h]=st.useState(!1),[x,S]=st.useState(!1),[b,I]=st.useState(!1),[L,C]=st.useState(!1),[E,T]=st.useState(!1),[A,N]=st.useState(mU),[P,F]=st.useState(mU),[k,H]=st.useState(lW),[q,O]=st.useState(uW),V=st.useRef(null),w=st.useRef(null),z=st.useRef(null),U=st.useRef(null),X=st.useRef(null),M=st.useRef(null),_=st.useRef(null),B=st.useRef(null),J=st.useRef(0),Y=st.useRef(0),te=st.useRef(0),ie=st.useRef(0),ce=st.useRef("vertical"),ee=st.useRef(iW),ae=st.useRef(null);function me(K){let j=K?I:S,se=K?m:p;j(!0),se.start(500,()=>{j(!1)})}let ge=W(K=>{let j=K.x-ee.current.x,se=K.y-ee.current.y;ee.current=K,se!==0&&me(!0),j!==0&&me(!1)}),we=W(()=>{let K=w.current;K&&ae.current===null&&(ae.current=K.style.scrollSnapType,K.style.scrollSnapType="none")}),pe=W(K=>{if(K.button!==0||B.current!==null&&(ce.current==="vertical"?X.current:M.current)?.hasPointerCapture(B.current))return;B.current=K.pointerId,J.current=K.clientY,Y.current=K.clientX,ce.current=K.currentTarget.getAttribute(dU);let j=w.current;j&&(te.current=j.scrollTop,ie.current=j.scrollLeft,we()),(ce.current==="vertical"?X.current:M.current)?.setPointerCapture(K.pointerId)}),Re=W(K=>{if(K.pointerId!==B.current)return;B.current=null,(ce.current==="vertical"?I:S)(!1),ae.current!==null&&(w.current&&(w.current.style.scrollSnapType=ae.current),ae.current=null);let j=ce.current==="vertical"?X.current:M.current;j?.hasPointerCapture(K.pointerId)&&j.releasePointerCapture(K.pointerId)}),le=W(K=>{if(K.pointerId!==B.current)return;if(K.buttons%2===0){Re(K);return}let j=w.current;if(!j)return;let se=ce.current==="vertical",Be=se?X.current:M.current,Vt=se?z.current:U.current;if(!Be||!Vt)return;let Jt=se?"y":"x",Et=jr(Vt,"padding",Jt),vt=jr(Be,"margin",Jt),wa=se?Be.offsetHeight:Be.offsetWidth,$t=(se?Vt.offsetHeight:Vt.offsetWidth)-wa-Et-vt,Ha=se?K.clientY-J.current:K.clientX-Y.current,mo=$t<=0?0:Ha/$t,er=se?j.scrollHeight:j.scrollWidth,ha=se?j.clientHeight:j.clientWidth,Ee=(se?te.current:ie.current)+mo*(er-ha);se?j.scrollTop=Ee:j.scrollLeft=Ee,K.preventDefault(),me(se)});function Ie(K){C(K.pointerType==="touch")}function Ve(K){if(Ie(K),K.pointerType!=="touch"){let j=ue(V.current,K.target);h(j)}}let Me=st.useMemo(()=>({scrolling:x||b,hasOverflowX:!q.x,hasOverflowY:!q.y,overflowXStart:k.xStart,overflowXEnd:k.xEnd,overflowYStart:k.yStart,overflowYEnd:k.yEnd,cornerHidden:q.corner}),[x,b,q.x,q.y,q.corner,k]),ut={role:"presentation",onPointerEnter:Ve,onPointerMove:Ve,onPointerDown:Ie,onPointerLeave(){h(!1)},style:{position:"relative",[ib]:`${A.height}px`,[lb]:`${A.width}px`}},oe=$("div",t,{state:Me,ref:[a,V],props:[ut,i],stateAttributesMapping:Zi}),fe=st.useMemo(()=>({handlePointerDown:pe,handlePointerMove:le,handlePointerUp:Re,handleScroll:ge,disableViewportSnap:we,cornerSize:A,setCornerSize:N,thumbSize:P,setThumbSize:F,hasMeasuredScrollbar:E,setHasMeasuredScrollbar:T,touchModality:L,cornerRef:_,scrollingX:x,scrollingY:b,hovering:g,setHovering:h,viewportRef:w,scrollbarYRef:z,scrollbarXRef:U,thumbYRef:X,thumbXRef:M,rootId:f,hiddenState:q,setHiddenState:O,overflowEdges:k,setOverflowEdges:H,viewportState:Me,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:c,yEnd:d}}),[pe,le,Re,ge,we,A,P,E,L,x,b,g,f,q,k,Me,l,u,c,d]);return(0,pU.jsxs)(dw.Provider,{value:fe,children:[!v&&xs.getElement(y),oe]})});function cW(e){let t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var zu=R(D(),1);var ub=R(D(),1),mw=ub.createContext(void 0);function gU(){let e=ub.useContext(mw);if(e===void 0)throw new Error(Pe(55));return e}var xU="--scroll-area-overflow-x-start",yU="--scroll-area-overflow-x-end",SU="--scroll-area-overflow-y-start",vU="--scroll-area-overflow-y-end";var cb="--scroll-area-thumb-height",fb="--scroll-area-thumb-width";var IU=R(Q(),1),TU=[xU,yU,SU,vU],LU=!1;function dW(){LU||ot.engine.webkit||(typeof CSS<"u"&&"registerProperty"in CSS&&TU.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),LU=!0)}var wU=zu.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{viewportRef:i,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:c,thumbXRef:d,cornerRef:f,cornerSize:m,setCornerSize:p,setThumbSize:y,rootId:v,setHiddenState:g,hiddenState:h,setHasMeasuredScrollbar:x,handleScroll:S,touchModality:b,setHovering:I,setOverflowEdges:L,overflowEdgeThreshold:C,viewportState:E}=Dn(),T=Oo(),A=zu.useRef(!0),N=zu.useRef([NaN,NaN,NaN,NaN]),P=Ze(),F=Ze(),k=W(()=>{let w=i.current,z=l.current,U=u.current,X=c.current,M=d.current,_=f.current;if(!w)return;let B=w.scrollHeight,J=w.scrollWidth,Y=w.clientHeight,te=w.clientWidth,ie=w.scrollTop,ce=w.scrollLeft,ee=N.current,ae=Number.isNaN(ee[0]);if(ee[0]=Y,ee[1]=B,ee[2]=te,ee[3]=J,ae&&x(!0),B===0||J===0)return;let me=mW(w),ge=me.y,we=me.x,pe=te/J,Re=Y/B,le=Math.max(0,J-te),Ie=Math.max(0,B-Y),Ve=0,Me=0;we||(Ve=gs(T==="rtl"?-ce:ce,le),Me=le-Ve);let ut=ge?0:gs(ie,Ie),oe=ge?0:Ie-ut,fe=we?0:te,K=ge?0:Y,j=0,se=0;!we&&!ge&&(j=z?.offsetWidth||0,se=U?.offsetHeight||0);let Be=m.width===0&&m.height===0,Vt=Be?j:0,Jt=Be?se:0,Et=jr(U,"padding","x"),vt=jr(z,"padding","y"),wa=jr(M,"margin","x"),Ea=jr(X,"margin","y"),$t=fe-Et-wa,Ha=K-vt-Ea,mo=U?Math.min(U.offsetWidth-Vt,$t):$t,er=z?Math.min(z.offsetHeight-Jt,Ha):Ha,ha=Math.max(16,mo*pe),_t=Math.max(16,er*Re);if(y(Je=>db(Je,{width:ha,height:_t})),z&&X){let Je=z.offsetHeight-_t-vt-Ea,Bt=RU(X,cb,ie,Ie,B,_t,Je);X.style.transform=`translate3d(0,${Bt}px,0)`}if(U&&M){let Je=U.offsetWidth-ha-Et-wa,Bt=T==="rtl"?-ce:ce,po=RU(M,fb,Bt,le,J,ha,Je);M.style.transform=`translate3d(${T==="rtl"?-po:po}px,0,0)`}let Ee=[Ve,Me,ut,oe];TU.forEach((Je,Bt)=>{w.style.setProperty(Je,`${Ee[Bt]}px`)}),_&&p(Je=>db(Je,{width:j,height:se})),g(Je=>db(Je,me));let Pt={xStart:!we&&Ve>C.xStart,xEnd:!we&&Me>C.xEnd,yStart:!ge&&ut>C.yStart,yEnd:!ge&&oe>C.yEnd};L(Je=>db(Je,Pt))});G(()=>{dW()},[]),G(()=>{queueMicrotask(k)},[k,h,T,C.xStart,C.xEnd,C.yStart,C.yEnd]),G(()=>{i.current?.matches(":hover")&&I(!0)},[i,I]),G(()=>{let w=i.current;if(typeof ResizeObserver>"u"||!w)return;let z=!1,U=new ResizeObserver(()=>{if(!z){z=!0;let X=N.current;if(X[0]===w.clientHeight&&X[1]===w.scrollHeight&&X[2]===w.clientWidth&&X[3]===w.scrollWidth)return}k()});return U.observe(w),F.start(0,()=>{let X=w.getAnimations({subtree:!0});X.length!==0&&Promise.allSettled(X.map(M=>M.finished)).then(k).catch(()=>{})}),()=>{U.disconnect(),F.clear()}},[k,i,F]);function H(){A.current=!1}let q={role:"presentation",...v&&{"data-id":`${v}-viewport`},tabIndex:h.x&&h.y?-1:0,className:xs.className,style:{overflow:"scroll"},onScroll(){i.current&&(k(),(b||!A.current)&&S({x:i.current.scrollLeft,y:i.current.scrollTop}),P.start(100,()=>{A.current=!0}))},onWheel:H,onPointerMove:H,onPointerEnter:H,onKeyDown:H},O=$("div",t,{ref:[a,i],state:E,props:[q,s],stateAttributesMapping:Zi}),V=zu.useMemo(()=>({computeThumbPosition:k}),[k]);return(0,IU.jsx)(mw.Provider,{value:V,children:O})});function mW(e){let t=e.clientHeight>=e.scrollHeight,a=e.clientWidth>=e.scrollWidth;return{y:t,x:a,corner:t||a}}function db(e,t){for(let a in t)if(e[a]!==t[a])return t;return e}function RU(e,t,a,o,r,n,s){let i=Tr(a,0,o),l=a-i,u=Math.max(16,n*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?i/o*s:0)+(l>0?n-u:0)}var pb=R(D(),1);var mb=R(D(),1),pw=mb.createContext(void 0);function EU(){let e=mb.useContext(pw);if(e===void 0)throw new Error(Pe(54));return e}var AU=R(Q(),1),PU=pb.forwardRef(function(t,a){let{render:o,className:r,orientation:n="vertical",keepMounted:s=!1,style:i,...l}=t,{hovering:u,scrollingX:c,scrollingY:d,hiddenState:f,scrollbarYRef:m,scrollbarXRef:p,viewportRef:y,thumbYRef:v,thumbXRef:g,handlePointerDown:h,handlePointerUp:x,handleScroll:S,disableViewportSnap:b,rootId:I,thumbSize:L,hasMeasuredScrollbar:C,viewportState:E}=Dn(),T=n==="vertical",A={...E,hovering:u,scrolling:T?d:c,orientation:n},N=Oo(),P=!C&&!s,F=T?f.y:f.x,k=s||!F;pb.useEffect(()=>{if(!k)return;let O=y.current,V=T?m.current:p.current;if(!V)return;function w(z){if(!O||z.ctrlKey)return;let U=!T,X=U?"scrollLeft":"scrollTop",M=U?z.deltaX:z.deltaY;if(M===0)return;let _=U?O.scrollWidth-O.clientWidth:O.scrollHeight-O.clientHeight,B=U&&N==="rtl"?-_:0,J=U&&N==="rtl"?0:_,Y=O[X];Y<=B&&M<0||Y>=J&&M>0||(z.preventDefault(),O[X]=Math.min(J,Math.max(B,Y+M)),S({x:O.scrollLeft,y:O.scrollTop}))}return Le(V,"wheel",w,{passive:!1})},[N,S,T,p,m,k,y]);let H={...I&&{"data-id":`${I}-scrollbar`},"aria-hidden":!0,onPointerDown(O){if(O.button!==0)return;let V=$e(O.nativeEvent),w=T?v.current:g.current;if(w&&ue(w,V))return;let z=y.current;if(!z)return;let U=T?m.current:p.current;if(!w||!U)return;let X=T?"y":"x",M=jr(w,"margin",X),_=jr(U,"padding",X),B=T?w.offsetHeight:w.offsetWidth,J=U.getBoundingClientRect(),Y=T?O.clientY-J.top-B/2-_+M/2:O.clientX-J.left-B/2-_+M/2,te=T?z.scrollHeight:z.scrollWidth,ie=T?z.clientHeight:z.clientWidth,ee=(T?U.offsetHeight:U.offsetWidth)-B-_-M;if(ee<=0)return;let ae=Y/ee,me=te-ie;b(),T?z.scrollTop=ae*me:N==="rtl"?z.scrollLeft=-(1-ae)*me:z.scrollLeft=ae*me,S({x:z.scrollLeft,y:z.scrollTop}),h(O)},onMouseDown(O){O.preventDefault()},onPointerUp:x,onPointerCancel:x,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:P?"hidden":void 0,...T?{top:0,bottom:`var(${ib})`,insetInlineEnd:0,[cb]:`${L.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${lb})`,bottom:0,[fb]:`${L.width}px`}}},q=$("div",t,{ref:[a,T?m:p],state:A,props:[H,l],stateAttributesMapping:Zi});return k?(0,AU.jsx)(pw.Provider,{value:n,children:q}):null});var gh=R(D(),1);var DU=gh.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{computeThumbPosition:i}=gU(),{hasMeasuredScrollbar:l,viewportState:u}=Dn(),c=gh.useRef(null),d=gh.useRef(l);return G(()=>{if(typeof ResizeObserver>"u")return;let m=!1,p=new ResizeObserver(()=>{!m&&(m=!0,!d.current)||i()});return c.current&&p.observe(c.current),()=>{p.disconnect()}},[i]),$("div",t,{ref:[a,c],state:u,stateAttributesMapping:Zi,props:[{role:"presentation",style:{minWidth:"fit-content"}},s]})});var MU=R(D(),1);var OU=MU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{thumbYRef:i,thumbXRef:l,handlePointerDown:u,handlePointerMove:c,handlePointerUp:d,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:p}=Dn(),y=EU(),v=y==="vertical";return $("div",t,{ref:[a,v?i:l],state:{scrolling:v?m:f,orientation:y},props:[{onPointerDown:u,onPointerMove:c,onPointerUp:d,onPointerCancel:d,style:{visibility:p?void 0:"hidden",...v?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},s]})});var kU=R(D(),1);var NU=kU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{cornerRef:i,cornerSize:l,hiddenState:u}=Dn(),c=$("div",t,{ref:[a,i],props:[{"aria-hidden":!0,style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},s]});return u.corner?null:c});var Ji=R(Q(),1);function VU({className:e,children:t,...a}){let o=Fy();return(0,Ji.jsxs)(Qi.Root,{"data-slot":"scroll-area",className:re("relative",e),...a,children:[(0,Ji.jsx)(Qi.Viewport,{ref:o,"data-slot":"scroll-area-viewport",className:"scroll-fade size-full max-h-[inherit] rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,Ji.jsx)(pW,{}),(0,Ji.jsx)(Qi.Corner,{})]})}function pW({className:e,orientation:t="vertical",...a}){return(0,Ji.jsx)(Qi.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:re("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...a,children:(0,Ji.jsx)(Qi.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var Qe=R(Q(),1);function hW({run:e,active:t}){let[a,o]=(0,hb.useState)(Date.now());return(0,hb.useEffect)(()=>{if(!t)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[t]),(0,Qe.jsx)("span",{className:re("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?$n((a-Date.parse(e.startedAt))/1e3):e.time})}function BU({run:e,expanded:t,when:a}){let o=e.state==="running"||e.state==="queued";return(0,Qe.jsxs)("div",{className:re("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,Qe.jsxs)("div",{className:"mt-0.5 flex w-5 flex-col items-center justify-between gap-2.5 self-stretch",children:[(0,Qe.jsx)($_,{state:e.state}),(0,Qe.jsx)(rU,{backend:dx(e.worker).backend,active:e.state==="running",className:"size-[18px] rounded-[5px] opacity-90"})]}),(0,Qe.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,Qe.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,Qe.jsx)(px,{worker:e.worker}),(0,Qe.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,Qe.jsx)(gO,{verdict:e.verdict}),e.changes?(0,Qe.jsxs)(hx,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,Qe.jsx)(hx,{tone:"good",children:"applied"})]}),(0,Qe.jsx)(cw,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(o||e.note)&&(0,Qe.jsx)(fw,{className:"line-clamp-2 break-words px-0 text-[13px]",children:o?(0,Qe.jsx)(Vy,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,Qe.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,Qe.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,Qe.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,Qe.jsx)(hW,{run:e,active:o}),(0,Qe.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${Ol(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,Qe.jsxs)("span",{className:"text-xs text-success",children:["~",fn(e.saved)]}):null,a&&(0,Qe.jsx)("span",{title:new Date(e.startedAt).toLocaleString(),className:"text-xs text-muted-foreground/80",children:fO(e.startedAt)})]})]})}function gb({run:e,index:t,when:a}){let o=e.state==="running"||e.state==="queued";return(0,Qe.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,Qe.jsxs)(iw,{children:[(0,Qe.jsx)(nb,{className:re("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,Qe.jsx)(BU,{run:e,when:a})}),(0,Qe.jsxs)(uw,{className:"max-h-[88vh] w-full border pb-0 shadow-2xl",children:[(0,Qe.jsx)("div",{className:"shrink-0",children:(0,Qe.jsx)(BU,{run:e,expanded:!0,when:a})}),(0,Qe.jsx)(VU,{className:"max-h-[calc(88vh-6.5rem)] border-t",children:(0,Qe.jsx)(lw,{className:"px-4 pb-5 pt-4 sm:pl-[3.4rem]",children:(0,Qe.jsx)(Yy,{id:e.id,live:o})})})]})]})})}var lt=R(Q(),1),FU={all:"Any state",done:"Done",problem:"Needs attention"},zU={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"},gW=e=>(e.split("/").pop()??e).replace(/-(contributor-)?free$/,"").replace(/-\d+\.\d+$/,""),xW=e=>({id:e.id,state:e.state,kind:e.kind,worker:e.model?`${e.backend} (${gW(e.model)})`:e.backend,task:e.task,group:e.group,startedAt:e.startedAt,time:e.seconds!=null?$n(e.seconds):"",steps:e.steps??0,tokens:e.tokens,saved:e.saved,verdict:e.verdict,changes:e.files||void 0,applied:e.applied||void 0,note:""});function HU(){let[e,t]=(0,ko.useState)(""),[a,o]=(0,ko.useState)(""),[r,n]=(0,ko.useState)("all"),[s,i]=(0,ko.useState)("all"),[l,u]=(0,ko.useState)("0"),[c,d]=(0,ko.useState)([]),[f,m]=(0,ko.useState)(),[p,y]=(0,ko.useState)(!1),[v,g]=(0,ko.useState)();(0,ko.useEffect)(()=>{fr.stats(0).then(g).catch(()=>{})},[]),(0,ko.useEffect)(()=>{let b=setTimeout(()=>o(e),250);return()=>clearTimeout(b)},[e]);let h={q:a,state:r==="all"?void 0:r,model:s==="all"?void 0:s,days:Number(l)||void 0};(0,ko.useEffect)(()=>{let b=!0;return y(!0),fr.history({...h,limit:30}).then(I=>{b&&(d(I.rows),m(I.total),y(!1))}).catch(()=>b&&y(!1)),()=>{b=!1}},[a,r,s,l]);let x=async()=>{let b=await fr.history({...h,limit:30,before:c.at(-1)?.id});d(I=>[...I,...b.rows])},S=[...new Set((v?.byWorker??[]).map(b=>b.model).filter(Boolean))];return(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,lt.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,lt.jsx)(Nr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,lt.jsx)(jv,{value:e,onChange:b=>t(b.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,lt.jsxs)(ld,{value:r,onValueChange:b=>n(b??"all"),items:FU,children:[(0,lt.jsx)(cd,{className:"w-40",children:(0,lt.jsx)(ud,{})}),(0,lt.jsx)(fd,{children:Object.entries(FU).map(([b,I])=>(0,lt.jsx)(Ki,{value:b,children:I},b))})]}),(0,lt.jsxs)(ld,{value:s,onValueChange:b=>i(b??"all"),items:{all:"Any model",...Object.fromEntries(S.map(b=>[b,b.split("/").pop()]))},children:[(0,lt.jsx)(cd,{className:"w-44",children:(0,lt.jsx)(ud,{})}),(0,lt.jsxs)(fd,{children:[(0,lt.jsx)(Ki,{value:"all",children:"Any model"}),S.map(b=>(0,lt.jsx)(Ki,{value:b,children:b.split("/").pop()},b))]})]}),(0,lt.jsxs)(ld,{value:l,onValueChange:b=>u(b??"0"),items:zU,children:[(0,lt.jsx)(cd,{className:"w-40",children:(0,lt.jsx)(ud,{})}),(0,lt.jsx)(fd,{children:Object.entries(zU).map(([b,I])=>(0,lt.jsx)(Ki,{value:b,children:I},b))})]})]}),(0,lt.jsxs)("div",{className:"space-y-2.5",children:[p&&!c.length&&[0,1,2,3].map(b=>(0,lt.jsx)(is,{className:"h-24 rounded-xl"},b)),c.map((b,I)=>(0,lt.jsx)(gb,{run:xW(b),index:I,when:!0},b.id)),!p&&!c.length&&(0,lt.jsx)("div",{className:"py-16 text-center text-muted-foreground",children:"No runs match."})]}),(0,lt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,lt.jsx)("span",{children:f!=null?`${c.length} of ${f} runs`:""}),f!=null&&c.length<f&&(0,lt.jsx)(Eo,{variant:"outline",onClick:()=>void x(),children:"Load more"})]})]})}var ys=R(D(),1);var Hu=R(Q(),1);function xb({children:e}){return(0,Hu.jsxs)(wv,{children:[(0,Hu.jsx)(Ev,{render:(0,Hu.jsx)("span",{tabIndex:0,"aria-label":"What is this?",className:"inline-flex cursor-help items-center text-muted-foreground/70 outline-none hover:text-foreground focus-visible:text-foreground"}),children:(0,Hu.jsx)(Mm,{className:"size-3.5"})}),(0,Hu.jsx)(Av,{className:"max-w-64 text-balance",children:e})]})}var Sb=R(Q(),1);function yb({price:e}){return(0,Sb.jsxs)(Sb.Fragment,{children:["An estimate, not money back. It is what your main model (",e??"Claude Sonnet"," list prices) would have charged to read the tokens the workers read, minus what the workers cost and the cost of reading their reports."]})}var vb=R(Q(),1);function bb({value:e,onChange:t,options:a}){return(0,vb.jsx)(uv,{value:e,onValueChange:o=>t(o),children:(0,vb.jsx)(cv,{children:a.map(o=>(0,vb.jsx)(Kf,{value:o.value,children:o.label},o.value))})})}var _U=R(Q(),1);function pd({className:e,size:t="default",...a}){return(0,_U.jsx)("div",{"data-slot":"card","data-size":t,className:re("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}var et=R(Q(),1);function hw(e,t=450){let[a,o]=(0,ys.useState)(e),[r,n]=(0,ys.useState)(e);if(r!==e){n(e);let s=performance.now(),i=a,l=u=>{let c=Math.min(1,(u-s)/t);o(i+(e-i)*(1-(1-c)**3)),c<1&&requestAnimationFrame(l)};requestAnimationFrame(l)}return a}function gw({label:e,value:t,tone:a,pulse:o,hint:r}){return(0,et.jsxs)(pd,{className:re("relative gap-1 overflow-hidden px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",o&&"border-info/30"),children:[(0,et.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,et.jsx)(xb,{children:r})]}),(0,et.jsxs)("p",{className:re("flex items-center gap-2.5 text-3xl font-semibold tabular-nums tracking-tight",a),children:[o!==void 0&&(0,et.jsx)("span",{className:re("size-2.5 rounded-full",o?"animate-ping-slow bg-info":"bg-muted-foreground/40")}),t]})]})}var yW=(e,t)=>!t||`${e.task} ${e.worker} ${e.kind} ${e.note}`.toLowerCase().includes(t);function UU({focus:e}){let[t,a]=(0,ys.useState)(40),[o,r]=(0,ys.useState)("all"),[n,s]=(0,ys.useState)(""),[i,l]=(0,ys.useState)(""),{data:u}=Pi(()=>fr.state(t,n||void 0),2e3,[t,n]),c=hw(u?.running??0),d=hw(u?.saved??0),f=hw(u?.runs.filter(p=>p.state==="done").length??0),m=(0,ys.useMemo)(()=>(u?.runs??[]).filter(p=>yW(p,i.trim().toLowerCase())&&(o==="all"||(o==="running"?p.state==="running"||p.state==="queued":p.state==="failed"||p.state==="timeout"||p.state==="stopped"))),[u,i,o]);return(0,et.jsxs)("div",{className:"space-y-5",children:[(0,et.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,et.jsx)(gw,{label:"Running now",value:String(Math.round(c)),pulse:(u?.running??0)>0,tone:u?.running?"text-info":void 0}),(0,et.jsx)(gw,{label:"Finished",value:String(Math.round(f))}),(0,et.jsx)(gw,{label:"Est. saved this week",value:fn(d),tone:"text-success",hint:(0,et.jsx)(yb,{price:u?.price})})]}),(0,et.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,et.jsxs)("div",{className:"relative min-w-48 flex-1",children:[(0,et.jsx)(Nr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,et.jsx)(jv,{value:i,onChange:p=>l(p.target.value),placeholder:"Filter these runs",className:"pl-8"})]}),(0,et.jsx)(bb,{value:o,onChange:r,options:[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"problem",label:"Needs attention"}]}),u&&u.groups.length>0&&(0,et.jsxs)(ld,{value:n||"all",onValueChange:p=>s(p==="all"?"":p??""),items:{all:"All groups",...Object.fromEntries(u.groups.map(p=>[p,p]))},children:[(0,et.jsx)(cd,{className:"w-40",children:(0,et.jsx)(ud,{})}),(0,et.jsxs)(fd,{children:[(0,et.jsx)(Ki,{value:"all",children:"All groups"}),u.groups.map(p=>(0,et.jsx)(Ki,{value:p,children:p},p))]})]})]}),(0,et.jsxs)("div",{className:"space-y-2.5",children:[!u&&[0,1,2].map(p=>(0,et.jsx)(is,{className:"h-24 rounded-xl"},p)),u&&m.length===0&&(0,et.jsxs)("div",{className:"flex flex-col items-center gap-2 py-16 text-center text-muted-foreground animate-in fade-in duration-500",children:[(0,et.jsx)("span",{className:"text-5xl animate-wave",children:"\u{1F3C1}"}),(0,et.jsx)("p",{children:u.runs.length?"Nothing matches this filter.":"All quiet. Workers appear here the moment they start."}),!u.runs.length&&(0,et.jsx)("code",{className:"rounded-lg border bg-card px-3 py-1.5 text-sm text-foreground",children:'pitroom run "your task"'})]}),m.map((p,y)=>(0,et.jsx)(gb,{run:p,index:y},p.id)),u&&u.runs.length>=t&&(0,et.jsx)("div",{className:"flex justify-center pt-1",children:(0,et.jsx)(Eo,{variant:"outline",onClick:()=>a(p=>p+40),children:"Show older runs"})})]})]})}var hd={};Aa(hd,{Indicator:()=>JU,Label:()=>a3,Root:()=>WU,Track:()=>ZU,Value:()=>e3});var Ss=R(D(),1);function xw(e){return Array.isArray(e)?e.map(t=>xw(t)).join(","):e==null?"":String(e)}var qU=new Map;function SW(e,t){let a=JSON.stringify({locale:xw(e),options:t}),o=qU.get(a);if(o)return o;let r=new Intl.NumberFormat(e,t);return qU.set(a,r),r}function yw(e,t,a){return e==null?"":SW(t,a).format(e)}function GU(e,t,a){return(e-t)*100/(a-t)}var Cb=R(D(),1),Sw=Cb.createContext(void 0);function $i(){let e=Cb.useContext(Sw);if(e===void 0)throw new Error(Pe(51));return e}var jU="data-complete",XU="data-indeterminate",YU="data-progressing";var Mn={status(e){return e==="progressing"?{[YU]:""}:e==="complete"?{[jU]:""}:e==="indeterminate"?{[XU]:""}:null}};var xh=R(Q(),1),WU=Ss.forwardRef(function(t,a){let{format:o,getAriaValueText:r,locale:n,max:s=100,min:i=0,value:l,render:u,className:c,children:d,style:f,...m}=t,[p,y]=Ss.useState(),v="indeterminate",g=null,h=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){let E=GU(l,i,s);g=Tr(Number.isNaN(E)?0:E,0,100),h=Tr(l,i,s),v=h===s?"complete":"progressing",x=o?yw(h,n,o):yw(g/100,n,{style:"percent"}),S=x}let b=Ss.useMemo(()=>({status:v}),[v]),I={"aria-labelledby":p,"aria-valuemax":s,"aria-valuemin":i,"aria-valuenow":h??void 0,"aria-valuetext":r?r(x,l):S,role:"progressbar",children:(0,xh.jsxs)(Ss.Fragment,{children:[d,(0,xh.jsx)("span",{role:"presentation",style:Af,children:"x"})]})},L=Ss.useMemo(()=>({formattedValue:x,percentageValue:g,setLabelId:y,state:b,value:l}),[x,g,y,b,l]),C=$("div",t,{state:b,ref:a,props:[I,m],stateAttributesMapping:Mn});return(0,xh.jsx)(Sw.Provider,{value:L,children:C})});var KU=R(D(),1);var ZU=KU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{state:i}=$i();return $("div",t,{state:i,ref:a,props:s,stateAttributesMapping:Mn})});var QU=R(D(),1);var JU=QU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{percentageValue:i,state:l}=$i(),u=i==null?{}:{insetInlineStart:0,height:"inherit",width:`${i}%`};return $("div",t,{state:l,ref:a,props:[{style:u},s],stateAttributesMapping:Mn})});var $U=R(D(),1);var e3=$U.forwardRef(function(t,a){let{className:o,render:r,children:n,style:s,...i}=t,{value:l,formattedValue:u,state:c}=$i(),d=c.status==="indeterminate";return $("span",t,{state:c,ref:a,props:[{"aria-hidden":!0,children:typeof n=="function"?n(d?"indeterminate":u,l):d?null:u},i],stateAttributesMapping:Mn})});var t3=R(D(),1);var a3=t3.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,{setLabelId:l,state:u}=$i(),c=Nv(s,l);return $("span",t,{state:u,ref:a,props:[{id:c,role:"presentation"},i],stateAttributesMapping:Mn})});var _u=R(Q(),1);function o3({className:e,children:t,value:a,...o}){return(0,_u.jsxs)(hd.Root,{value:a,"data-slot":"progress",className:re("flex flex-wrap gap-3",e),...o,children:[t,(0,_u.jsx)(bW,{children:(0,_u.jsx)(CW,{})})]})}function bW({className:e,...t}){return(0,_u.jsx)(hd.Track,{className:re("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function CW({className:e,...t}){return(0,_u.jsx)(hd.Indicator,{"data-slot":"progress-indicator",className:re("h-full bg-primary transition-all",e),...t})}var el=R(Q(),1);function r3({className:e,...t}){return(0,el.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,el.jsx)("table",{"data-slot":"table",className:re("w-full caption-bottom text-sm",e),...t})})}function n3({className:e,...t}){return(0,el.jsx)("thead",{"data-slot":"table-header",className:re("[&_tr]:border-b",e),...t})}function s3({className:e,...t}){return(0,el.jsx)("tbody",{"data-slot":"table-body",className:re("[&_tr:last-child]:border-0",e),...t})}function vw({className:e,...t}){return(0,el.jsx)("tr",{"data-slot":"table-row",className:re("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function Uu({className:e,...t}){return(0,el.jsx)("th",{"data-slot":"table-head",className:re("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function qu({className:e,...t}){return(0,el.jsx)("td",{"data-slot":"table-cell",className:re("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}var i3=R(D(),1),Ce=R(Q(),1);function yh({label:e,value:t,sub:a,tone:o,hint:r}){return(0,Ce.jsxs)(pd,{className:"gap-1 px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",children:[(0,Ce.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,Ce.jsx)(xb,{children:r})]}),(0,Ce.jsx)("p",{className:`text-3xl lg:text-2xl font-semibold tabular-nums tracking-tight ${o??""}`,children:t}),a&&(0,Ce.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]})}function l3(){let[e,t]=(0,i3.useState)("30"),{data:a}=Pi(()=>fr.stats(Number(e)),15e3,[e]),o=a?.totals,r=Math.max(1,...(a?.byDay??[]).map(n=>n.runs));return(0,Ce.jsxs)("div",{className:"space-y-5",children:[(0,Ce.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Ce.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Statistics"}),(0,Ce.jsx)(bb,{value:e,onChange:t,options:[{value:"7",label:"7 days"},{value:"30",label:"30 days"},{value:"90",label:"90 days"},{value:"0",label:"All"}]})]}),o?(0,Ce.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[(0,Ce.jsx)(yh,{label:"Runs",value:String(o.runs),sub:`${o.failed} not ok`}),(0,Ce.jsx)(yh,{label:"Success",value:o.runs?`${Math.round(100*o.ok/o.runs)}%`:"-",tone:"text-success"}),(0,Ce.jsx)(yh,{label:"Worker time",value:$n(o.seconds)}),(0,Ce.jsx)(yh,{label:"Tokens",value:Ol(o.tokens)}),(0,Ce.jsx)(yh,{label:"Est. saved",value:fn(o.saved),tone:"text-success",hint:(0,Ce.jsx)(yb,{price:a?.price})})]}):(0,Ce.jsx)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(n=>(0,Ce.jsx)(is,{className:"h-24 rounded-xl"},n))}),a&&a.byDay.length>0&&(0,Ce.jsxs)(pd,{className:"gap-3 px-5 py-4 animate-in fade-in duration-700",children:[(0,Ce.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Ce.jsx)("h3",{className:"text-sm font-medium",children:"Runs per day"}),(0,Ce.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.byDay[0]?.day," \u2192 ",a.byDay.at(-1)?.day]})]}),(0,Ce.jsx)("div",{className:"flex h-36 items-end gap-1.5",children:a.byDay.map((n,s)=>(0,Ce.jsxs)(wv,{children:[(0,Ce.jsx)(Ev,{render:(0,Ce.jsx)("div",{className:"group flex h-full max-w-14 flex-1 flex-col justify-end"}),children:(0,Ce.jsxs)("div",{className:"flex w-full flex-col justify-end overflow-hidden rounded-t-md transition-opacity group-hover:opacity-80 origin-bottom animate-in slide-in-from-bottom-4 fill-mode-both",style:{height:`${n.runs/r*100}%`,animationDelay:`${s*18}ms`},children:[(0,Ce.jsx)("div",{className:"bg-destructive/70",style:{height:`${n.runs?(n.runs-n.ok)/n.runs*100:0}%`}}),(0,Ce.jsx)("div",{className:"flex-1 bg-success/80"})]})}),(0,Ce.jsxs)(Av,{children:[n.day,": ",n.runs," runs, ",n.ok," ok, ~",fn(n.saved)," saved"]})]},n.day))})]}),a&&(0,Ce.jsx)(pd,{className:"overflow-hidden py-0 animate-in fade-in duration-700",children:(0,Ce.jsxs)(r3,{children:[(0,Ce.jsx)(n3,{children:(0,Ce.jsxs)(vw,{className:"hover:bg-transparent",children:[(0,Ce.jsx)(Uu,{children:"Worker"}),(0,Ce.jsx)(Uu,{className:"text-right",children:"Runs"}),(0,Ce.jsx)(Uu,{className:"w-44",children:"Success"}),(0,Ce.jsx)(Uu,{className:"hidden text-right sm:table-cell",children:"Avg time"}),(0,Ce.jsx)(Uu,{className:"hidden text-right md:table-cell",children:"Avg tokens"}),(0,Ce.jsx)(Uu,{className:"text-right",children:"Saved"})]})}),(0,Ce.jsx)(s3,{children:a.byWorker.map(n=>{let s=Math.round(100*n.ok/n.runs);return(0,Ce.jsxs)(vw,{children:[(0,Ce.jsx)(qu,{children:(0,Ce.jsx)(px,{backend:n.backend,model:n.model})}),(0,Ce.jsx)(qu,{className:"text-right tabular-nums",children:n.runs}),(0,Ce.jsx)(qu,{children:(0,Ce.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ce.jsx)(o3,{value:s,className:"flex-1"}),(0,Ce.jsxs)("span",{className:"w-9 text-right text-xs tabular-nums text-muted-foreground",children:[s,"%"]})]})}),(0,Ce.jsx)(qu,{className:"hidden text-right tabular-nums sm:table-cell",children:n.avgSeconds!=null?$n(n.avgSeconds):"-"}),(0,Ce.jsx)(qu,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",children:n.avgTokens?Ol(n.avgTokens):"-"}),(0,Ce.jsx)(qu,{className:"text-right tabular-nums text-success",children:n.saved?fn(n.saved):"-"})]},`${n.backend}:${n.model}`)})})]})})]})}var ke=R(Q(),1),LW=/^\d{8}-\d{6}-[0-9a-f]{4}$/;function RW(){return(0,ke.jsx)("div",{className:"grid size-9 place-items-center rounded-xl bg-gradient-to-br from-brand to-orange-300 shadow-lg shadow-brand/25",children:(0,ke.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 fill-white",children:(0,ke.jsx)("path",{d:"M4 4h4v4H4zm8 0h4v4h-4zM8 8h4v4H8zm8 0h4v4h-4zM4 12h4v4H4zm8 0h4v4h-4zm-4 4h4v4H8zm8 0h4v4h-4z"})})})}function IW(){let[e,t]=(0,On.useState)(document.documentElement.classList.contains("dark"));return(0,ke.jsx)(Eo,{variant:"ghost",size:"icon","aria-label":"Toggle theme",onClick:()=>{let a=!e;document.documentElement.classList.toggle("dark",a);try{localStorage.setItem("pitroom-theme",a?"dark":"light")}catch{}t(a)},children:e?(0,ke.jsx)(km,{}):(0,ke.jsx)(Om,{})})}function TW(){let[e,t]=(0,On.useState)(!1),[a,o]=(0,On.useState)(!1);(0,On.useEffect)(()=>{let n=()=>{t(window.scrollY>8),o(window.scrollY+window.innerHeight<document.documentElement.scrollHeight-8)};n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let s=new ResizeObserver(n);return s.observe(document.body),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),s.disconnect()}},[]);let r="pointer-events-none fixed inset-x-0 z-30 transition-opacity duration-300";return(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{"aria-hidden":!0,className:re(r,"top-0 h-14 bg-gradient-to-b from-background via-background/60 to-transparent",e?"opacity-100":"opacity-0")}),(0,ke.jsx)("div",{"aria-hidden":!0,className:re(r,"bottom-0 h-20 bg-gradient-to-t from-background via-background/60 to-transparent",a?"opacity-100":"opacity-0")})]})}function u3(){let e=location.hash.slice(1),[t,a]=(0,On.useState)(e==="history"||e==="stats"?e:"live"),[o,r]=(0,On.useState)(null),n=LW.test(e)?e:void 0,{data:s,error:i}=Pi(()=>fr.state(1),4e3,[]);return(0,On.useEffect)(()=>{document.title=`${s?.running?`(${s.running}) `:""}Pitroom`},[s?.running]),(0,On.useEffect)(()=>{n&&r(n)},[n]),(0,ke.jsx)(SH,{delay:150,children:(0,ke.jsxs)("div",{className:"relative min-h-screen",children:[(0,ke.jsx)("div",{className:"pointer-events-none fixed inset-0 -z-10 bg-[radial-gradient(60rem_30rem_at_85%_-10%,color-mix(in_oklab,var(--brand)_14%,transparent),transparent_60%),radial-gradient(50rem_28rem_at_-10%_0%,color-mix(in_oklab,var(--info)_12%,transparent),transparent_60%)]"}),(0,ke.jsxs)("main",{className:"mx-auto max-w-4xl px-4 pb-16 pt-8",children:[(0,ke.jsxs)("header",{className:"mb-6 flex items-center gap-3 animate-in fade-in slide-in-from-top-2 duration-700",children:[(0,ke.jsx)(RW,{}),(0,ke.jsxs)("div",{className:"leading-tight",children:[(0,ke.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Pitroom"}),(0,ke.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Your agent's pit crew, live"})]}),(0,ke.jsx)("div",{className:"flex-1"}),(0,ke.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,ke.jsx)("span",{className:re("size-1.5 rounded-full",i?"bg-destructive":"bg-success animate-pulse")}),i?"offline":"live"]}),(0,ke.jsx)(IW,{})]}),(0,ke.jsx)(uv,{value:t,onValueChange:l=>a(l),children:(0,ke.jsxs)(cv,{className:"mb-5",children:[(0,ke.jsx)(Kf,{value:"live",children:"Live"}),(0,ke.jsx)(Kf,{value:"history",children:"History"}),(0,ke.jsx)(Kf,{value:"stats",children:"Stats"})]})}),(0,ke.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-1 duration-300",children:[t==="live"&&(0,ke.jsx)(UU,{focus:n}),t==="history"&&(0,ke.jsx)(HU,{}),t==="stats"&&(0,ke.jsx)(l3,{})]},t),(0,ke.jsxs)("footer",{className:"mt-10 text-center text-xs text-muted-foreground/70",children:["Read-only \xB7 this machine only \xB7 stops itself when left idle (",(0,ke.jsx)("code",{className:"font-mono",children:"pitroom dash --stop"})," ends it now)"]})]}),(0,ke.jsx)(TW,{}),(0,ke.jsx)(_F,{open:!!o,onOpenChange:l=>!l&&r(null),children:(0,ke.jsxs)(UF,{side:"right",className:"w-full overflow-y-auto sm:max-w-2xl",children:[(0,ke.jsxs)(qF,{children:[(0,ke.jsx)(GF,{children:"Run"}),(0,ke.jsx)(jF,{className:"font-mono text-xs",children:o})]}),(0,ke.jsx)("div",{className:"px-4 pb-6",children:o&&(0,ke.jsx)(Yy,{id:o})})]})})]})})}var bw=R(Q(),1);(0,f3.createRoot)(document.getElementById("root")).render((0,bw.jsx)(c3.StrictMode,{children:(0,bw.jsx)(u3,{})}));
17
+ `),()=>{s.current?.removeAttribute("data-motion-pop-id"),L.contains(R)&&L.removeChild(R)}},[t]),(0,oN.jsx)(gR,{isPresent:t,childRef:s,sizeRef:l,pop:n,children:n===!1?e:Qx.cloneElement(e,{ref:d})})}var iN=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:r,presenceAffectsLayout:n,mode:i,anchorX:s,anchorY:l,root:u})=>{let c=ss(u8),d=(0,vs.useId)(),f=(0,vs.useRef)(a),m=(0,vs.useRef)(o);ls(()=>{f.current=a,m.current=o});let p=!0,y=(0,vs.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:a,custom:r,onExitComplete:v=>{c.set(v,!0);for(let g of c.values())if(!g)return;o&&o()},register:v=>(c.set(v,!1),()=>{c.delete(v),!f.current&&!c.size&&m.current?.()})}),[a,c,o]);return n&&p&&(y={...y}),(0,vs.useMemo)(()=>{c.forEach((v,g)=>c.set(g,!1))},[a]),nN.useEffect(()=>{!a&&!c.size&&o&&o()},[a]),e=(0,xR.jsx)(rN,{pop:i==="popLayout",isPresent:a,anchorX:s,anchorY:l,root:u,children:e}),(0,xR.jsx)(us.Provider,{value:y,children:e})};function u8(){return new Map}var bs=I(k(),1);function Jx(e=!0){let t=(0,bs.useContext)(us);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:o,register:r}=t,n=(0,bs.useId)();(0,bs.useEffect)(()=>{if(e)return r(n)},[e]);let i=(0,bs.useCallback)(()=>e&&o&&o(n),[n,o,e]);return!a&&o?[!1,i]:[!0]}var $x=I(k(),1),uf=e=>e.key||"";function yR(e){let t=[];return $x.Children.forEach(e,a=>{(0,$x.isValidElement)(a)&&t.push(a)}),t}var Cs=({children:e,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:n="sync",propagate:i=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=Jx(i),f=(0,gn.useMemo)(()=>yR(e),[e]),m=i&&!c?[]:f.map(uf),p=(0,gn.useRef)(!0),y=ss(()=>new Map),v=(0,gn.useRef)(new Set),[g,h]=(0,gn.useState)(f),[x,S]=(0,gn.useState)(f);ls(()=>{i&&!c&&!x.length&&d?.()},[c,i,x.length,d]),ls(()=>{p.current=!1;for(let L=0;L<x.length;L++){let C=uf(x[L]);m.includes(C)?(y.delete(C),v.current.delete(C)):y.get(C)!==!0&&y.set(C,!1)}},[x,m.length,m.join("-")]);let b=[];if(f!==g){let L=[...f],C=0;for(let E of x){let T=m.indexOf(uf(E));T===-1?(L.splice(C++,0,E),b.push(E)):C=T+b.length+1}return b.every(E=>y.get(uf(E)))?L=f:n==="wait"&&(L=b),S(yR(L)),h(f),null}let{forceRender:R}=(0,gn.useContext)(zc);return(0,gp.jsx)(gp.Fragment,{children:x.map(L=>{let C=uf(L),E=i&&!c?!1:f===x||m.includes(C),T=()=>{if(v.current.has(C))return;if(y.has(C))v.current.add(C),y.set(C,!0);else return;let A=!0;y.forEach(V=>{V||(A=!1)}),A&&(R?.(),h([]),i&&d?.(),o&&o())};return(0,gp.jsx)(iN,{isPresent:E,initial:!p.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:n,root:u,onExitComplete:E?void 0:T,anchorX:s,anchorY:l,children:L},C)})})};var sN=I(k(),1),ey=(0,sN.createContext)({strict:!1});var lN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},uN=!1;function c8(){if(uN)return;let e={};for(let t in lN)e[t]={isEnabled:a=>lN[t].some(o=>!!a[o])};up(e),uN=!0}function ty(){return c8(),$0()}function cN(e){let t=ty();for(let a in e)t[a]={...t[a],...e[a]};up(t)}var fN=I(Q(),1),ay=I(k(),1);function oy({children:e,...t}){let a=(0,ay.useContext)(ei);t={...a,...t},t.transition=zl(t.transition,a.transition),t.isStatic=ss(()=>t.isStatic);let o=(0,ay.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,fN.jsx)(ei.Provider,{value:o,children:e})}var ly=I(Q(),1);var mf=I(k(),1);var dN=I(k(),1),Ls=(0,dN.createContext)({});var ry=I(k(),1);function mN(e,t){if(ys(e)){let{initial:a,animate:o}=e;return{initial:a===!1||pn(a)?a:void 0,animate:pn(o)?o:void 0}}return e.inherit!==!1?t:{}}function hN(e){let{initial:t,animate:a}=mN(e,(0,ry.useContext)(Ls));return(0,ry.useMemo)(()=>({initial:t,animate:a}),[pN(t),pN(a)])}function pN(e){return Array.isArray(e)?e.join(" "):e}var df=I(k(),1);var gN=I(k(),1);var cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function SR(e,t,a){for(let o in t)!mt(t[o])&&!cp(o,a)&&(e[o]=t[o])}function f8({transformTemplate:e},t){return(0,gN.useMemo)(()=>{let a=cf();return ql(a,t,e),Object.assign({},a.vars,a.style)},[t])}function d8(e,t){let a=e.style||{},o={};return SR(o,a,e),Object.assign(o,f8(e,t)),o}function xN(e,t){let a={},o=d8(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}var yN=I(k(),1);var ny=()=>({...cf(),attrs:{}});function SN(e,t,a,o){let r=(0,yN.useMemo)(()=>{let n=ny();return ap(n,t,dp(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};SR(n,e.style,e),r.style={...n,...r.style}}return r}var m8=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function xp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||m8.has(e)}function p8(e,t){return e.startsWith("on")?!xp(e):t?.(e)??!xp(e)}function vN(e,t,a,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||mt(e[n])||(p8(n,o)||a===!0&&xp(n)||!t&&!xp(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}var bN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ff(e){return typeof e!="string"||e.includes("-")?!1:!!(bN.indexOf(e)>-1||/[A-Z]/u.test(e))}function CN(e,t,a,{latestValues:o},r,n=!1,i,s){let u=(i??ff(e)?SN:xN)(t,o,r,e),c=vN(t,typeof e=="string",n,s),d=e!==df.Fragment?{...c,...u,ref:a}:{},{children:f}=t,m=(0,df.useMemo)(()=>mt(f)?f.get():f,[f]);return(0,df.createElement)(e,{...d,children:m})}var vR=I(k(),1);function h8({scrapeMotionValuesFromProps:e,createRenderState:t},a,o,r){return{latestValues:g8(a,o,r,e),renderState:t()}}function g8(e,t,a,o){let r={},n=o(e,{});for(let f in n)r[f]=Jl(n[f]);let{initial:i,animate:s}=e,l=ys(e),u=ip(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=a?a.initial===!1:!1;c=c||i===!1;let d=c?s:i;if(d&&typeof d!="boolean"&&!$n(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=_l(e,f[m]);if(p){let{transitionEnd:y,transition:v,...g}=p;for(let h in g){let x=g[h];if(Array.isArray(x)){let S=c?x.length-1:0;x=x[S]}x!==null&&(r[h]=x)}for(let h in y)r[h]=y[h]}}}return r}var iy=e=>(t,a)=>{let o=(0,vR.useContext)(Ls),r=(0,vR.useContext)(us),n=()=>h8(e,t,o,r);return a?n():ss(n)};var LN=iy({scrapeMotionValuesFromProps:Kl,createRenderState:cf});var RN=iy({scrapeMotionValuesFromProps:mp,createRenderState:ny});var IN=Symbol.for("motionComponentSymbol");var tu=I(k(),1);function TN(e,t,a){let o=(0,tu.useRef)(a);(0,tu.useInsertionEffect)(()=>{o.current=a});let r=(0,tu.useRef)(null);return(0,tu.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let i=o.current;if(typeof i=="function")if(n){let s=i(n);typeof s=="function"&&(r.current=s)}else r.current?(r.current(),r.current=null):i(n);else i&&(i.current=n)},[t])}var oo=I(k(),1);var wN=I(k(),1),sy=(0,wN.createContext)({});function Rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EN(e,t,a,o,r,n){let{visualElement:i}=(0,oo.useContext)(Ls),s=(0,oo.useContext)(ey),l=(0,oo.useContext)(us),u=(0,oo.useContext)(ei),c=u.reducedMotion,d=u.skipAnimations,f=(0,oo.useRef)(null),m=(0,oo.useRef)(!1);o=o||s.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:i,props:a,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:n}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,y=(0,oo.useContext)(sy);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&x8(f.current,a,r,y);let v=(0,oo.useRef)(!1);(0,oo.useInsertionEffect)(()=>{p&&v.current&&p.update(a,l)});let g=a[$m],h=(0,oo.useRef)(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return ls(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),ls(()=>{m.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),(0,oo.useEffect)(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),h.current=!1),p.enteringChildren=void 0)}),p}function x8(e,t,a,o){let{layoutId:r,layout:n,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:AN(e.parent)),e.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!i||s&&Rs(s),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function AN(e){if(e)return e.options.allowProjection!==!1?e.projection:AN(e.parent)}function uy(e,{forwardMotionProps:t=!1,type:a}={},o,r){o&&cN(o);let n=a?a==="svg":ff(e),i=n?RN:LN;function s(u,c){let d,f={...(0,mf.useContext)(ei),...u,layoutId:y8(u)},{isStatic:m,isValidProp:p}=f,y=hN(u),v=i(u,m);if(!m&&typeof window<"u"){S8(f,o);let g=v8(f);d=g.MeasureLayout,y.visualElement=EN(e,v,f,r,g.ProjectionNode,n)}return(0,ly.jsxs)(Ls.Provider,{value:y,children:[d&&y.visualElement?(0,ly.jsx)(d,{visualElement:y.visualElement,...f}):null,CN(e,u,TN(v,y.visualElement,c),v,m,t,n,p)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,mf.forwardRef)(s);return l[IN]=e,l}function y8({layoutId:e}){let t=(0,mf.useContext)(zc).id;return t&&e!==void 0?t+"-"+e:e}function S8(e,t){let a=(0,mf.useContext)(ey).strict}function v8(e){let t=ty(),{drag:a,layout:o}=t;if(!a&&!o)return{};let r={...a,...o};return{MeasureLayout:a?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function MN(e,t){if(typeof Proxy>"u")return uy;let a=new Map,o=(n,i)=>uy(n,i,e,t),r=(n,i)=>o(n,i);return new Proxy(r,{get:(n,i)=>i==="create"?o:(a.has(i)||a.set(i,uy(i,void 0,e,t)),a.get(i))})}var PN=I(k(),1);var DN=(e,t)=>t.isSVG??ff(e)?new pp(t):new fp(t,{allowProjection:e!==PN.Fragment});var cy=class extends da{constructor(t){super(t),t.animationState||(t.animationState=aR(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();$n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var b8=0,fy=class extends da{constructor(){super(...arguments),this.id=b8++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:n,custom:i}=this.node.getProps();if(typeof n=="string"||typeof n=="object"&&n!==null&&!Array.isArray(n)){let s=Go(this.node,n,i);if(s){let{transition:l,transitionEnd:u,...c}=s;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,a(this.id))})}mount(){let{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var ON={animation:{Feature:cy},exit:{Feature:fy}};function au(e){return{point:{x:e.pageX,y:e.pageY}}}var kN=e=>t=>jl(t)&&e(t,au(t));function Is(e,t,a,o){return hn(e,t,kN(a),o)}var dy=({current:e})=>e?e.ownerDocument.defaultView:null;var NN=(e,t)=>Math.abs(e-t);function VN(e,t){let a=NN(e.x,t.x),o=NN(e.y,t.y);return Math.sqrt(a**2+o**2)}var BN=new Set(["auto","scroll"]),pf=class{constructor(t,a,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:i=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=my(this.lastRawMoveEventInfo,this.transformPagePoint));let p=bR(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=VN(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;let{point:g}=p;this.history.push({...g,timestamp:gt.now()});let{onStart:h,onMove:x}=this.handlers;y||(h&&h(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=my(y,this.transformPagePoint),this.hasPendingMove=!0,Fe.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:v,onSessionEnd:g,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let x=bR(p.type==="pointercancel"?this.lastMoveEventInfo:my(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,x),g&&g(p,x)},!jl(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=i,this.contextWindow=r||window;let l=au(t),u=my(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Tt;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=a;f&&f(t,bR(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=kr(Is(this.contextWindow,"pointermove",this.handlePointerMove,m),Is(this.contextWindow,"pointerup",this.handlePointerUp,m),Is(this.contextWindow,"pointercancel",this.handlePointerUp,m)),s&&this.startScrollTracking(s)}startScrollTracking(t){let a=t.parentElement;for(;a;){let o=getComputedStyle(a);(BN.has(o.overflowX)||BN.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let a=this.scrollPositions.get(t);if(!a)return;let o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-a.x,y:r.y-a.y};n.x===0&&n.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),Fe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Lo(this.updatePoint)}};function my(e,t){return t?{point:t(e.point)}:e}function FN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bR({point:e},t){return{point:e,delta:FN(e,zN(t)),offset:FN(e,C8(t)),velocity:L8(t,.1)}}function C8(e){return e[0]}function zN(e){return e[e.length-1]}function L8(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,o=null,r=zN(e);for(;a>=0&&(o=e[a],!(r.timestamp-o.timestamp>aa(t)));)a--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>aa(t)*2&&(o=e[1]);let n=va(r.timestamp-o.timestamp);if(n===0)return{x:0,y:0};let i={x:(r.x-o.x)/n,y:(r.y-o.y)/n};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function GN(e,{min:t,max:a},o){return t!==void 0&&e<t?e=o?_e(t,e,o.min):Math.max(e,t):a!==void 0&&e>a&&(e=o?_e(a,e,o.max):Math.min(e,a)),e}function HN(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function jN(e,{top:t,left:a,bottom:o,right:r}){return{x:HN(e.x,a,r),y:HN(e.y,t,o)}}function _N(e,t){let a=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,o]=[o,a]),{min:a,max:o}}function XN(e,t){return{x:_N(e.x,t.x),y:_N(e.y,t.y)}}function YN(e,t){let a=.5,o=oa(e),r=oa(t);return r>o?a=ln(t.min,t.max-o,e.min):o>r&&(a=ln(e.min,e.max-r,t.min)),fa(0,1,a)}function WN(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var py=.35;function KN(e=py){return e===!1?e=0:e===!0&&(e=py),{x:UN(e,"left","right"),y:UN(e,"top","bottom")}}function UN(e,t,a){return{min:qN(e,t),max:qN(e,a)}}function qN(e,t){return typeof e=="number"?e:e[t]||0}var R8=new WeakMap,gy=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=d=>{a&&this.snapToCursor(d),this.stopAnimation()},i=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=q0(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jo(g=>{let h=this.getAxisMotionValue(g).get()||0;if(Ua.test(h)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[g];S&&(h=oa(S)*(parseFloat(h)/100))}}this.originPoint[g]=h}),y&&Fe.update(()=>y(d,f),!1,!0),$c(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=T8(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),v&&Fe.update(()=>v(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new pf(t,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:o,contextWindow:dy(this.visualElement),element:this.visualElement.current})}stop(t,a){let o=t||this.latestPointerEvent,r=a||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!o)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&Fe.postRender(()=>s(o,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){let{drag:r}=this.getProps();if(!o||!hy(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=GN(i,this.constraints[t],this.elastic[t])),n.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Rs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=jN(o.layoutBox,t):this.constraints=!1,this.elastic=KN(a),r!==this.constraints&&!Rs(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&jo(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=WN(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Rs(t))return!1;let o=t.current;Co(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let n=U0(o,r.root,this.visualElement.getTransformPagePoint()),i=XN(r.layout.layoutBox,n);if(a){let s=a(V0(i));this.hasMutatedConstraints=!!s,s&&(i=op(s))}return i}startAnimation(t){let{drag:a,dragMomentum:o,dragElastic:r,dragTransition:n,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=jo(c=>{if(!hy(c,a,this.currentDirection))return;let d=l&&l[c]||{};(i===!0||i===c)&&(d={min:0,max:0});let f=r?200:1e6,m=r?40:1e7,p={type:"inertia",velocity:o?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...n,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(s)}startAxisValueAnimation(t,a){let o=this.getAxisMotionValue(t);return $c(this.visualElement,t),o.start(Hl(t,o,0,a,this.visualElement,!1))}stopAnimation(){jo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[a];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:a}){let{drag:o}=this.getProps(),r={x:t,y:a},n=this.visualElement.getTransformPagePoint()?.(r)||r,i=this.visualElement.measureViewportBox();jo(s=>{if(!hy(s,o,this.currentDirection))return;let l=this.getAxisMotionValue(s),{min:u,max:c}=i[s];l.set((l.get()||0)+n[s]-_e(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!Rs(a)||!o||!this.constraints)return;this.stopAnimation();let r=this.constraints,n={x:0,y:0};jo(s=>{let l=this.getAxisMotionValue(s).get();n[s]=YN({min:l,max:l},r[s])});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),jo(s=>{let l=this.getAxisMotionValue(s);if(!hy(s,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[s];l.set(_e(u,c,n[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;R8.set(this.visualElement,this);let t=this.visualElement.current,a=Is(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&Y0(f);c&&d&&!m&&this.start(u)}),o,r=()=>{let{dragConstraints:u}=this.getProps();Rs(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=I8(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Fe.read(r);let s=hn(window,"resize",()=>this.scalePositionWithinConstraints()),l=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(jo(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),i(),l&&l(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:i=py,dragMomentum:s=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:r,dragConstraints:n,dragElastic:i,dragMomentum:s}}};function ZN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function I8(e,t,a){let o=_x(e,ZN(a)),r=_x(t,ZN(a));return()=>{o(),r()}}function hy(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function T8(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var xy=class extends da{constructor(t){super(t),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new gy(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var CR=e=>(t,a)=>{e&&Fe.update(()=>e(t,a),!1,!0)},yy=class extends da{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(t){this.session=new pf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dy(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:CR(t),onStart:CR(a),onMove:CR(o),onEnd:(n,i)=>{delete this.session,r&&Fe.postRender(()=>r(n,i))}}}mount(){this.removePointerDownListener=Is(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var QN=I(Q(),1);var yp=I(k(),1);var LR=!1,RR=class extends yp.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:r}=this.props,{projection:n}=t;n&&(a.group&&a.group.add(n),o&&o.register&&r&&o.register(n),LR&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:o,drag:r,isPresent:n}=this.props,{projection:i}=o;return i&&(i.isPresent=n,t.layoutDependency!==a&&i.setOptions({...i.options,layoutDependency:a}),LR=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==n?i.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?i.promote():i.relegate()||Fe.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:a}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=a,o.root.didUpdate(),Gl.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:r}=t;LR=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Sy(e){let[t,a]=Jx(),o=(0,yp.useContext)(zc);return(0,QN.jsx)(RR,{...e,layoutGroup:o,switchLayoutGroup:(0,yp.useContext)(sy),isPresent:t,safeToRemove:a})}var JN={pan:{Feature:yy},drag:{Feature:xy,ProjectionNode:hp,MeasureLayout:Sy}};function $N(e,t,a){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",a==="Start");let r="onHover"+a,n=o[r];n&&Fe.postRender(()=>n(t,au(t)))}var vy=class extends da{mount(){let{current:t}=this.node;t&&(this.unmount=G0(t,(a,o)=>($N(this.node,o,"Start"),r=>$N(this.node,r,"End"))))}unmount(){}};var by=class extends da{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kr(hn(this.node.current,"focus",()=>this.onFocus()),hn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function eV(e,t,a){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",a==="Start");let r="onTap"+(a==="End"?"":a),n=o[r];n&&Fe.postRender(()=>n(t,au(t)))}var Cy=class extends da{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:a,propagate:o}=this.node.props;this.unmount=K0(t,(r,n)=>(eV(this.node,n,"Start"),(i,{success:s})=>eV(this.node,i,s?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:o?.tap===!1})}unmount(){}};var TR=new WeakMap,IR=new WeakMap,w8=e=>{let t=TR.get(e.target);t&&t(e)},E8=e=>{e.forEach(w8)};function A8({root:e,...t}){let a=e||document;IR.has(a)||IR.set(a,{});let o=IR.get(a),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(E8,{root:e,...t})),o[r]}function tV(e,t,a){let o=A8(t);return TR.set(e,a),o.observe(e),()=>{TR.delete(e),o.unobserve(e)}}var M8={some:0,all:1},Ly=class extends da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:r="some",once:n}=t,i={root:a?a.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:M8[r]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=tV(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(P8(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function P8({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var aV={inView:{Feature:Ly},tap:{Feature:Cy},focus:{Feature:by},hover:{Feature:vy}};var oV={layout:{ProjectionNode:hp,MeasureLayout:Sy}};var rV={...ON,...aV,...JN,...oV};var wR=MN(rV,DN);var nV=I(k(),1);function ou(){!Yl.current&&sp();let[e]=(0,nV.useState)(Ss.current);return e}var Ca=wR;var Sp=I(k(),1),iV=({ref:e,callback:t,eventType:a="mousedown",eventListenerOptions:o})=>{let r=(0,Sp.useRef)(t);r.current=t;let n=(0,Sp.useRef)(e);n.current=e,(0,Sp.useEffect)(()=>{let i=s=>{let l=s.target;if(!l||!l.isConnected)return;(Array.isArray(n.current)?n.current:[n.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&r.current(s)};return document.addEventListener(a,i,o),()=>document.removeEventListener(a,i,o)},[a,o])};var mV=I(k(),1);var gf=I(k(),1);function Ry(){return typeof window<"u"}function Yt(e){return Iy(e)?(e.nodeName||"").toLowerCase():"#document"}function ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yn(e){var t;return(t=(Iy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Iy(e){return Ry()?e instanceof Node||e instanceof ze(e).Node:!1}function Te(e){return Ry()?e instanceof Element||e instanceof ze(e).Element:!1}function He(e){return Ry()?e instanceof HTMLElement||e instanceof ze(e).HTMLElement:!1}function xn(e){return!Ry()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ze(e).ShadowRoot}function nu(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function sV(e){return/^(table|td|th)$/.test(Yt(e))}function vp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var O8=/transform|translate|scale|rotate|perspective|filter/,k8=/paint|layout|strict|content/,ru=e=>!!e&&e!=="none",ER;function Ty(e){let t=Te(e)?ma(e):e;return ru(t.transform)||ru(t.translate)||ru(t.scale)||ru(t.rotate)||ru(t.perspective)||!wy()&&(ru(t.backdropFilter)||ru(t.filter))||O8.test(t.willChange||"")||k8.test(t.contain||"")}function lV(e){let t=Xo(e);for(;He(t)&&!mr(t);){if(Ty(t))return t;if(vp(t))return null;t=Xo(t)}return null}function wy(){return ER==null&&(ER=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ER}function mr(e){return/^(html|body|#document)$/.test(Yt(e))}function ma(e){return ze(e).getComputedStyle(e)}function bp(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xo(e){if(Yt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xn(e)&&e.host||yn(e);return xn(t)?t.host:t}function uV(e){let t=Xo(e);return mr(t)?(e.ownerDocument||e).body:He(t)&&nu(t)?t:uV(t)}function Ts(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=uV(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),i=ze(r);if(n){let s=Ey(i);return t.concat(i,i.visualViewport||[],nu(r)?r:[],s&&a?Ts(s):[])}else return t.concat(r,Ts(r,[],a))}function Ey(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var N8=I(k(),1),Cp={...N8};var AR=Cp.useInsertionEffect,V8=AR&&AR!==Cp.useLayoutEffect?AR:e=>e();function W(e){let t=tt(B8).current;return t.next=e,V8(t.effect),t.trampoline}function B8(){let e={next:void 0,callback:F8,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function F8(){}var cV=I(k(),1),z8=()=>{},j=typeof document<"u"?cV.useLayoutEffect:z8;var Ay=I(k(),1),MR=Ay.createContext(void 0);function hf(e=!1){let t=Ay.useContext(MR);if(t===void 0&&!e)throw new Error(Be(16));return t}var fV=I(k(),1);function dV(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:r=0,isNativeButton:n}=e,i=o&&t!==!1,s=o&&t===!1;return{props:fV.useMemo(()=>{let u={onKeyDown(c){a&&t&&c.key!=="Tab"&&c.preventDefault()}};return o||(u.tabIndex=r,!n&&a&&(u.tabIndex=t?r:-1)),(n&&(t||i)||!n&&a)&&(u["aria-disabled"]=a),n&&(!t||s)&&(u.disabled=a),u},[o,a,t,i,s,n,r])}}function ve(e){return e?.ownerDocument||document}function My(e,t,{detail:a=0}={}){e.dispatchEvent(new(ze(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function ai(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:r=!0,composite:n}=e,i=gf.useRef(null),s=hf(!0),l=n??s!==void 0,{props:u}=dV({focusableWhenDisabled:a,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),c=gf.useCallback(()=>{let m=i.current;PR(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);j(c,[c]);let d=gf.useCallback((m={})=>{let{onClick:p,onMouseDown:y,onKeyUp:v,onKeyDown:g,onPointerDown:h,...x}=m;return _a({onClick(S){if(t){S.preventDefault();return}p?.(S)},onMouseDown(S){t||y?.(S)},onKeyDown(S){if(t||(Pm(S),g?.(S),S.baseUIHandlerPrevented))return;let b=S.target===S.currentTarget,R=S.currentTarget,L=PR(R),C=!r&&H8(R),E=b&&(r?L:!C),T=S.key==="Enter",A=S.key===" ",V=R.getAttribute("role"),M=V?.startsWith("menuitem")||V==="option"||V==="gridcell";if(b&&l&&A){if(S.defaultPrevented&&M)return;S.preventDefault(),(!r||L)&&(S.preventBaseUIHandler(),My(R,S));return}if(!E||r||!A&&!T){b&&C&&A&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),T&&(S.preventBaseUIHandler(),My(R,S)))},onKeyUp(S){if(!t){if(Pm(S),v?.(S),S.target===S.currentTarget&&r&&l&&PR(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!r&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),My(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}h?.(S)}},r?{type:"button"}:{role:"button"},u,x)},[t,u,l,r]),f=W(m=>{i.current=m,c()});return{getButtonProps:d,buttonRef:f}}function PR(e){return He(e)&&e.tagName==="BUTTON"}function H8(e){return He(e)&&e.tagName==="A"&&!!e.href}var DR=mV.forwardRef(function(t,a){let{render:o,className:r,disabled:n=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=ai({disabled:n,focusableWhenDisabled:i,native:s});return oe("button",t,{state:{disabled:n},ref:[a,d],props:[u,c]})});var pV=I(Q(),1),_8=Fc("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function pr({className:e,variant:t="default",size:a="default",...o}){return(0,pV.jsx)(DR,{"data-slot":"button",className:re(_8({variant:t,size:a,className:e})),...o})}var Wt=I(Q(),1),gV=(0,vt.createContext)(null),xf=()=>{let e=(0,vt.useContext)(gV);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},U8=Ca.create(pr),q8=({children:e,transition:t,defaultOpen:a,onClose:o})=>{let[r,n]=(0,vt.useState)(!!a),i=(0,vt.useId)(),s=(0,vt.useRef)(null),l=(0,vt.useRef)(o);l.current=o;let u=(0,vt.useRef)(!0);(0,vt.useEffect)(()=>{if(u.current){u.current=!1;return}r||l.current?.()},[r]);let c=(0,vt.useMemo)(()=>({isOpen:r,uniqueId:i,triggerRef:s,setIsOpen:n}),[r,i]);return(0,Wt.jsx)(gV.Provider,{value:c,children:(0,Wt.jsx)(oy,{transition:t,children:e})})},OR=({children:e,transition:t,defaultOpen:a,onClose:o})=>{let r=vt.default.Children.toArray(e);return(0,Wt.jsx)(q8,{defaultOpen:a,onClose:o,children:(0,Wt.jsx)(oy,{transition:t,children:r.map(n=>n)})})},Py=(0,vt.forwardRef)(({children:e,className:t,...a},o)=>{let{isOpen:r,setIsOpen:n,uniqueId:i}=xf(),s=(0,vt.useCallback)(()=>{n(!0)},[n]);return(0,Wt.jsx)(Ca.div,{ref:o,"data-slot":"expandable-card-body",layoutId:`card-${i}`,className:re("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>s(),"aria-haspopup":"dialog","aria-expanded":r,"aria-controls":`shadix-ui-expandable-card-${i}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...a,children:e})}),kR=({children:e,className:t,...a})=>{let{uniqueId:o}=xf();return(0,Wt.jsx)(Ca.div,{layoutId:`card-content-${o}`,className:re("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${o}-title`,"aria-describedby":`shadix-ui-expandable-card-${o}-description`,...a,children:e})},NR=({children:e,className:t})=>{let{isOpen:a,uniqueId:o,setIsOpen:r}=xf(),[n,i]=(0,vt.useState)(!1),s=(0,vt.useRef)(null);return iV({ref:s,callback:()=>{r(!1)}}),(0,vt.useEffect)(()=>(i(!0),()=>i(!1)),[]),(0,vt.useEffect)(()=>{if(!a)return;let l=c=>c.key==="Escape"&&r(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[a,r]),n?(0,hV.createPortal)((0,Wt.jsx)(Cs,{initial:!1,mode:"sync",children:a&&(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)(Ca.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${o}`),(0,Wt.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:(0,Wt.jsxs)(Py,{ref:s,className:re("pointer-events-auto",t),children:[e,(0,Wt.jsx)(xV,{})]})})]})}),document.body):null},VR=({className:e,children:t,...a})=>{let{uniqueId:o}=xf();return(0,Wt.jsx)(Ca.h2,{layout:"position",layoutId:`card-title-${o}`,className:re("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...a,children:t})},BR=({className:e,children:t,...a})=>{let{uniqueId:o}=xf();return(0,Wt.jsx)(Ca.h3,{id:`card-description-${o}`,layout:"position",layoutId:`card-description-${o}`,className:re("text-sm text-muted-foreground px-4",e),...a,children:t})},G8=({className:e,...t})=>(0,Wt.jsx)(Ca.img,{style:{willChange:"transform,scale"},className:re("w-full h-full object-cover object-top not-prose",e),...t}),xV=({className:e,children:t,...a})=>{let{setIsOpen:o,uniqueId:r}=xf(),n=(0,vt.useCallback)(i=>{i.stopPropagation(),o(!1)},[o]);return(0,Wt.jsx)(U8,{layout:"position",layoutId:`card-close-button-${r}`,onClick:n,"aria-label":"Close",size:"icon-sm",className:re("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...a,children:t??(0,Wt.jsx)(Em,{})})};OR.displayName="ExpandableCard";Py.displayName="ExpandableCardBody";kR.displayName="ExpandableCardContent";NR.displayName="ExpandableCardExpandContainer";VR.displayName="ExpandableCardTitle";BR.displayName="ExpandableCardDescription";G8.displayName="ExpandableCardImage";xV.displayName="ExpandableCardCloseButton";var yV="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",SV="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function vV(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var iu=I(Q(),1);function Dy({children:e,as:t="span",duration:a=2.5,className:o}){return(0,iu.jsxs)(iu.Fragment,{children:[(0,iu.jsx)("style",{children:yV}),(0,iu.jsx)(t,{style:vV(a),className:re("inline-block",SV,o),children:e})]})}var vn=I(k(),1);var ro=I(k(),1);var CV=I(Q(),1);function bV({children:e="Thinking\u2026",duration:t=1.8,className:a}){return(0,CV.jsx)(Dy,{as:"span",duration:t,className:re("font-medium",a),children:e})}var yf=[.16,1,.3,1];var LV={type:"spring",stiffness:460,damping:30,mass:.55};var su={type:"spring",stiffness:360,damping:32,mass:.6};var IV=I(Q(),1);function RV({open:e,openHeight:t="auto",className:a,style:o,transition:r,...n}){let i=ou()??!1;return(0,IV.jsx)(Ca.div,{...n,"aria-hidden":!e,inert:!e,initial:!1,animate:i?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:r??{duration:i?0:e?.22:.14,ease:yf},className:re("overflow-hidden",a),style:{...o,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var Se=I(Q(),1);function j8({item:e}){let t=e.status??"complete";return(0,Se.jsxs)("div",{className:"flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:t==="complete"?(0,Se.jsx)(Xn,{className:"size-4",strokeWidth:1.8}):t==="active"?(0,Se.jsxs)("span",{className:"relative grid size-3 place-items-center",children:[(0,Se.jsx)(Ca.span,{className:"absolute inset-0 rounded-full bg-foreground/10",animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY}}),(0,Se.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/60"})]}):(0,Se.jsx)(gm,{className:"size-3",strokeWidth:1.5})}),(0,Se.jsx)("span",{className:re("min-w-0 flex-1 leading-5",t==="pending"?"text-muted-foreground/55":"text-foreground/90"),children:e.label}),e.meta?(0,Se.jsx)("span",{className:"shrink-0 leading-5 text-muted-foreground/55",children:e.meta}):null]})}function X8({item:e}){return(0,Se.jsx)("div",{className:"rounded-md px-1.5 py-1 leading-5 text-muted-foreground",children:e.content})}function Y8({result:e}){let t=(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-5 shrink-0 place-items-center text-muted-foreground",children:e.icon??(0,Se.jsx)($i,{className:"size-3",strokeWidth:2})}),(0,Se.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground/90",children:e.title}),e.domain?(0,Se.jsx)("span",{className:"min-w-0 truncate text-muted-foreground/55",children:e.domain}):null]}),a=re("flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors",e.url&&"focus-visible:ring-2 focus-visible:ring-ring");return e.url?(0,Se.jsx)("a",{href:e.url,className:a,children:t}):(0,Se.jsx)("div",{className:a,children:t})}function W8({item:e}){let t=ou()??!1,a=t?{opacity:1}:{opacity:0,y:6},o={opacity:1,y:0},r=t?{opacity:0}:{opacity:0,y:-3},n=t?{duration:0}:{opacity:{duration:.18,ease:yf},y:su,layout:su};return(0,Se.jsxs)("div",{className:"space-y-0.5",children:[(0,Se.jsxs)("div",{className:"flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground",children:[(0,Se.jsx)(Dr,{"aria-hidden":"true",className:"size-4 shrink-0",strokeWidth:1.7}),(0,Se.jsx)("span",{className:"min-w-0 truncate",children:e.query})]}),e.results?.length?(0,Se.jsx)("div",{className:"space-y-0.5 pl-4",children:(0,Se.jsx)(Cs,{initial:!0,mode:"popLayout",children:e.results.map(i=>(0,Se.jsx)(Ca.div,{layout:"position",initial:a,animate:o,exit:r,transition:n,children:(0,Se.jsx)(Y8,{result:i})},i.id))})}):null,(0,Se.jsx)(Cs,{initial:!0,children:e.moreCount?(0,Se.jsxs)(Ca.div,{initial:a,animate:o,exit:r,transition:n,className:"px-1.5 py-1 pl-8 text-muted-foreground/55",children:["+",e.moreCount," more"]},"more-results"):null})]})}function K8({action:e}){return e==="read"?(0,Se.jsx)(vm,{className:"size-4"}):e==="edit"||e==="write"?(0,Se.jsx)(ts,{className:"size-4"}):e==="run"?(0,Se.jsx)(Or,{className:"size-4"}):(0,Se.jsx)(os,{className:"size-4"})}function Z8({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1);return(0,Se.jsxs)("div",{className:"flex min-h-8 min-w-0 items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:(0,Se.jsx)(K8,{action:e.action})}),(0,Se.jsx)("span",{className:"shrink-0 font-medium text-foreground/90",children:t}),(0,Se.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.target}),typeof e.additions=="number"||typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono tabular-nums",children:[typeof e.additions=="number"?(0,Se.jsxs)("span",{className:"text-emerald-500",children:["+",e.additions]}):null,typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"text-rose-500",children:["\u2212",e.deletions]}):null]}):null]})}function Q8({kind:e}){return e==="thinking"?(0,Se.jsx)(as,{className:"size-4"}):e==="message"?(0,Se.jsx)(Il,{className:"size-4"}):e==="write"?(0,Se.jsx)(ts,{className:"size-4"}):e==="run"?(0,Se.jsx)(Or,{className:"size-4"}):e==="read"?(0,Se.jsx)(Rm,{className:"size-4"}):(0,Se.jsx)(os,{className:"size-4"})}function J8({item:e}){return(0,Se.jsxs)("div",{className:"grid min-h-8 grid-cols-[1rem_auto_minmax(0,1fr)] items-center gap-2.5 rounded-md px-1.5 py-0.5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 place-items-center text-muted-foreground/70",children:e.icon??(0,Se.jsx)(Q8,{kind:e.kind})}),(0,Se.jsx)("span",{className:"font-medium text-foreground/90",children:e.label}),e.detail?(0,Se.jsx)("span",{className:"min-w-0 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.detail}):(0,Se.jsx)("span",{})]})}function TV({item:e}){return e.type==="text"?(0,Se.jsx)(X8,{item:e}):e.type==="search"?(0,Se.jsx)(W8,{item:e}):e.type==="tool"?(0,Se.jsx)(Z8,{item:e}):e.type==="trace"?(0,Se.jsx)(J8,{item:e}):(0,Se.jsx)(j8,{item:e})}var pa=I(Q(),1);function $8(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let a=Math.floor(t/60),o=t%60;return o===0?`${a}m`:`${a}m ${o}s`}function ej({open:e,defaultOpen:t,onOpenChange:a}){let[o,r]=(0,ro.useState)(t),n=e!==void 0,i=e??o,s=(0,ro.useCallback)(l=>{n||r(l),a?.(l)},[n,a]);return[i,s]}function tj(e){let t=e[0]?.type;return t&&e.every(a=>a.type===t)?t:"mixed"}function aj(e){return e==="search"?"Searching the web\u2026":e==="tool"?"Running tools\u2026":e==="trace"?"Working through the run\u2026":e==="mixed"?"Working through it\u2026":"Thinking\u2026"}function oj(e,t,a){if(e==="step"||e==="text")return(0,pa.jsxs)(pa.Fragment,{children:["Thought for ",(0,pa.jsx)("span",{className:"tabular-nums",children:$8(a)})]});if(e==="search")return"Searched the web";if(e==="tool")return`Ran ${t.length} ${t.length===1?"tool":"tools"}`;if(e==="trace"){let o=t.filter(n=>n.type==="trace"&&(n.kind==="thinking"||n.kind==="message")).length,r=t.length-o;return`${r} ${r===1?"tool call":"tool calls"}, ${o} ${o===1?"message":"messages"}`}return`Completed ${t.length} ${t.length===1?"step":"steps"}`}function wV({items:e,contentType:t,status:a="working",duration:o=0,open:r,defaultOpen:n=!1,onOpenChange:i,collapseOnComplete:s=!0,activeLabel:l,summary:u,renderWorkingStatus:c,renderCompletedStatus:d,maxHeight:f=208,className:m,contentClassName:p}){let y=ou()??!1,v=(0,ro.useId)(),g=`${v}-trigger`,h=`${v}-content`,x=(0,ro.useRef)(null),S=(0,ro.useRef)(null),b=(0,ro.useRef)(a),[R,L]=(0,ro.useState)(0),[C,E]=ej({open:r,defaultOpen:n,onOpenChange:i}),T=a==="working",A=T||C,V=e.length?tj(e):t??"mixed",M=Math.min(R,Math.max(0,f)),F=T?Math.max(0,f):M,O=R>f,H=T?Math.min(0,F-R):0;(0,ro.useLayoutEffect)(()=>{let z=x.current;if(!z)return;let U=()=>L(z.offsetHeight);if(U(),typeof ResizeObserver>"u")return;let X=new ResizeObserver(U);return X.observe(z),()=>X.disconnect()},[]),(0,ro.useEffect)(()=>{b.current==="working"&&a==="complete"&&E(!s),b.current=a},[s,E,a]);let q=()=>{let z=!C;E(z),z&&requestAnimationFrame(()=>S.current?.scrollTo({top:0}))},D=l??aj(V),N=u??oj(V,e,o),w=O?T?"linear-gradient(to bottom, transparent, black 12px)":"linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)":void 0;return(0,pa.jsxs)("div",{"data-state":T?"working":A?"open":"closed","data-content":V,"aria-busy":T,className:re("w-full text-sm",m),children:[T?(0,pa.jsx)("div",{id:g,role:"status",className:"flex h-7 min-w-0 items-center text-muted-foreground",children:c?c({label:D,duration:o}):(0,pa.jsx)(bV,{children:D})}):(0,pa.jsxs)("button",{id:g,type:"button","aria-expanded":A,"aria-controls":h,onClick:q,className:"group flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[(0,pa.jsx)("span",{className:"truncate",children:d?d({summary:N,duration:o}):N}),(0,pa.jsx)(Ca.span,{"aria-hidden":"true",animate:{rotate:A?180:0},transition:y?{duration:0}:LV,className:"inline-flex shrink-0 text-muted-foreground/70 group-hover:text-foreground",children:(0,pa.jsx)(Zi,{className:"size-3.5"})})]}),(0,pa.jsx)(RV,{id:h,role:"region","aria-labelledby":g,open:A,openHeight:F,children:(0,pa.jsx)("div",{ref:S,className:re("scrollbar-hide pr-1",O&&A&&!T?"overflow-y-auto":"overflow-y-hidden"),style:{height:F,maskImage:w,WebkitMaskImage:w},children:(0,pa.jsx)(Ca.div,{ref:x,role:"list",initial:!1,animate:{y:H},transition:y?{duration:0}:su,className:re("space-y-0.5 py-2",p),children:(0,pa.jsx)(Cs,{mode:"popLayout",children:e.map(z=>(0,pa.jsx)(Ca.div,{layout:"position",role:"listitem",initial:y?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:y?{opacity:0}:{opacity:0,y:-3},transition:y?{duration:0}:{opacity:{duration:.18,ease:yf},y:su,layout:su},children:(0,pa.jsx)(TV,{item:z})},z.id))})})})})]})}var Oy=I(k(),1);function ky(){let e=(0,Oy.useRef)(null);return(0,Oy.useEffect)(()=>{let t=e.current;if(!t)return;let a=()=>{t.dataset.fadeTop=String(t.scrollTop>2),t.dataset.fadeBottom=String(t.scrollTop+t.clientHeight<t.scrollHeight-2)};a(),t.addEventListener("scroll",a,{passive:!0});let o=new ResizeObserver(a);return o.observe(t),t.firstElementChild&&o.observe(t.firstElementChild),()=>{t.removeEventListener("scroll",a),o.disconnect()}},[]),e}var EV=I(Q(),1);function FR({className:e,children:t}){let a=ky();return(0,EV.jsx)("div",{ref:a,className:re("scroll-fade overflow-auto",e),children:t})}var AV=I(Q(),1);function oi({className:e,...t}){return(0,AV.jsx)("div",{"data-slot":"skeleton",className:re("animate-pulse rounded-md bg-muted",e),...t})}var Sn=I(k(),1);function ws(e,t,a){let[o,r]=(0,Sn.useState)(),[n,i]=(0,Sn.useState)(!1),[s,l]=(0,Sn.useState)(0),u=(0,Sn.useRef)(e);u.current=e;let c=(0,Sn.useCallback)(async()=>{if(!document.hidden)try{r(await u.current()),i(!1),l(d=>d+1)}catch{i(!0)}},[]);return(0,Sn.useEffect)(()=>{c();let d=setInterval(c,t),f=()=>{document.hidden||c()};return document.addEventListener("visibilitychange",f),()=>{clearInterval(d),document.removeEventListener("visibilitychange",f)}},[t,c,...a]),{data:o,error:n,tick:s,reload:c}}var no=I(Q(),1),Es="size-4";function rj(e){let t=(e.name??"").toLowerCase();return e.kind==="say"?{kind:"message",label:"Said",icon:(0,no.jsx)(Il,{className:Es})}:e.kind==="shell"?{kind:"run",label:"Ran command",icon:(0,no.jsx)(Or,{className:Es})}:e.kind==="edit"?{kind:"write",label:"Edited",icon:(0,no.jsx)(ts,{className:Es})}:/^(read|cat|view|open)$/.test(t)?{kind:"read",label:"Read",icon:(0,no.jsx)(Sm,{className:Es})}:/grep|search|rg/.test(t)&&!/web/.test(t)?{kind:"tool",label:"Searched",icon:(0,no.jsx)(Dr,{className:Es})}:/glob|list|ls|tree|find/.test(t)?{kind:"tool",label:"Listed files",icon:(0,no.jsx)(bm,{className:Es})}:/web|fetch/.test(t)?{kind:"tool",label:"Fetched",icon:(0,no.jsx)(Cm,{className:Es})}:{kind:"tool",label:e.name??"Tool",icon:(0,no.jsx)(os,{className:Es})}}function MV(e){return e.map((t,a)=>{let o=rj(t);return{id:`step-${a}`,type:"trace",kind:o.kind,icon:o.icon,label:(0,no.jsxs)(no.Fragment,{children:[o.label,t.ok===!1&&(0,no.jsx)("span",{className:"ml-1.5 text-xs font-normal text-destructive",children:"failed"}),t.t!=null&&(0,no.jsxs)("span",{className:"ml-1.5 text-xs font-normal tabular-nums text-muted-foreground/60",children:["+",Wn(t.t)]})]}),detail:t.text.length>200?`${t.text.slice(0,199)}\u2026`:t.text}})}var we=I(Q(),1);function Lp({title:e,children:t}){return(0,we.jsxs)("section",{className:"space-y-2",children:[(0,we.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}var zR=({children:e,mono:t})=>(0,we.jsx)(FR,{className:re("max-h-60 whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e});function nj({patch:e}){return(0,we.jsx)(FR,{className:"max-h-72 rounded-lg border bg-muted/40",children:(0,we.jsx)("pre",{className:"min-w-max p-3 font-mono text-xs leading-5",children:e.split(`
18
+ `).map((t,a)=>(0,we.jsx)("div",{className:re(t.startsWith("+")&&!t.startsWith("+++")&&"bg-success/10 text-success",t.startsWith("-")&&!t.startsWith("---")&&"bg-destructive/10 text-destructive",t.startsWith("@@")&&"text-info"),children:t||" "},a))})})}var PV={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function ij(e,t){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?El(Number(t)):e==="cost"?Number(t)?`$${Number(t).toFixed(3)}`:"free":e==="saved"?`~${sn(Number(t))}`:String(t)}function Rp({children:e,tone:t}){return(0,we.jsx)("p",{className:re("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function sj({d:e}){let[t,a]=(0,vn.useState)(!1),[o,r]=(0,vn.useState)(!1),[n,i]=(0,vn.useState)(!1),s=e.state==="running"||e.state==="queued",l=(0,vn.useRef)(null),u=(0,vn.useRef)(!0),c=e.steps.length;return(0,vn.useEffect)(()=>{let d=l.current?.querySelector('[role="list"]')?.parentElement;if(!d)return;let f=()=>{u.current=d.scrollHeight-d.scrollTop-d.clientHeight<40};return d.addEventListener("scroll",f,{passive:!0}),()=>d.removeEventListener("scroll",f)},[c>0]),(0,vn.useEffect)(()=>{let d=l.current?.querySelector('[role="list"]')?.parentElement;s&&d&&u.current&&d.scrollTo({top:d.scrollHeight,behavior:"smooth"})},[c,s]),(0,we.jsxs)("div",{className:"space-y-5",children:[!/^Review of /.test(e.task)&&(0,we.jsx)(Lp,{title:"Task",children:(0,we.jsx)(zR,{children:e.task})}),(0,we.jsx)(Lp,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,we.jsx)("div",{ref:l,children:(0,we.jsx)(wV,{items:MV(e.steps),status:"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:260,activeLabel:"Working\u2026"})}):(0,we.jsx)("p",{className:"text-sm text-muted-foreground",children:s?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,we.jsx)(Lp,{title:"Result",children:(0,we.jsx)(zR,{children:e.answer})}),e.changes.length>0&&(0,we.jsxs)(Lp,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,we.jsx)("div",{className:"space-y-0.5 font-mono text-xs",children:e.changes.map(d=>(0,we.jsxs)("div",{className:"flex gap-2",children:[(0,we.jsx)("b",{className:re("w-3",d.status==="A"&&"text-success",d.status==="M"&&"text-warning",d.status==="D"&&"text-destructive"),children:d.status}),(0,we.jsx)("span",{className:"break-all",children:d.path})]},d.path))}),e.patch&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(pr,{variant:"ghost",size:"sm",onClick:()=>a(d=>!d),children:t?"Hide the diff":"Show the diff"}),t&&(0,we.jsx)(nj,{patch:e.patch})]})]}),(0,we.jsxs)(Lp,{title:"Details",children:[(0,we.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(PV).map(d=>{let f=e.info[d];return f==null||f===""||f===0&&d!=="cost"?null:(0,we.jsxs)("div",{className:"min-w-0",children:[(0,we.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:PV[d]}),(0,we.jsx)("dd",{className:"break-words text-[13px]",children:ij(d,f)})]},d)})}),e.refs&&(0,we.jsxs)(Rp,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((d,f)=>(0,we.jsxs)(Rp,{children:["Fell back from ",d.target,": ",d.error]},f)),e.warnings.map((d,f)=>(0,we.jsx)(Rp,{children:d},f)),e.verify&&(0,we.jsxs)(Rp,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,we.jsx)(Rp,{tone:"bad",children:e.error}),(0,we.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,we.jsxs)(pr,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),i(!0),setTimeout(()=>i(!1),1400)},children:[n?(0,we.jsx)(Xn,{}):(0,we.jsx)(ym,{}),n?"Copied":e.id]}),(0,we.jsx)(pr,{variant:"ghost",size:"sm",onClick:()=>r(d=>!d),children:o?"Hide full report":"Full report"})]}),o&&(0,we.jsx)(zR,{mono:!0,children:e.report})]})]})}function DV({id:e,live:t}){let{data:a,error:o}=ws(()=>qo.run(e),t?3e3:6e5,[e,t]);return a?(0,we.jsx)(sj,{d:a}):o?(0,we.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,we.jsxs)("div",{className:"space-y-3",children:[(0,we.jsx)(oi,{className:"h-16"}),(0,we.jsx)(oi,{className:"h-24"})]})}var In={};Qa(In,{Arrow:()=>SF,Handle:()=>Wp,Popup:()=>xF,Portal:()=>eF,Positioner:()=>hF,Provider:()=>bF,Root:()=>GB,Trigger:()=>WB,Viewport:()=>OF,createHandle:()=>kF});var Pf=I(k(),1);var OV=I(k(),1);var HR=[],_R;function kV(){return _R}function NV(e){HR.push(e)}function UR(e){let t=(a,o)=>{let r=tt(lj).current,n;try{_R=r;for(let i of HR)i.before(r);n=e(a,o);for(let i of HR)i.after(r);r.didInitialize=!0}finally{_R=void 0}return n};return t.displayName=e.displayName||e.name,t}function VV(e){return OV.forwardRef(UR(e))}function lj(){return{didInitialize:!1}}var Ny=I(k(),1),qR=Ny.createContext(void 0);function hr(e){let t=Ny.useContext(qR);if(t===void 0&&!e)throw new Error(Be(72));return t}var io=I(k(),1);var BV=I(k(),1);function Sf(e){BV.useEffect(e,bo)}var Ip=0,qa=class e{static create(){return new e}currentId=Ip;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ip,a()},t)}isStarted(){return this.currentId!==Ip}clear=()=>{this.currentId!==Ip&&(clearTimeout(this.currentId),this.currentId=Ip)};disposeEffect=()=>this.clear};function Ze(){let e=tt(qa.create).current;return Sf(e.disposeEffect),e}var at={};Qa(at,{engine:()=>WR,env:()=>ZR,mediaQuery:()=>QR,os:()=>XR,screenReader:()=>KR});var XR={};Qa(XR,{android:()=>HV,apple:()=>jR,ios:()=>GR,linux:()=>mj,mac:()=>_V,windows:()=>dj});function uj(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:cj,platform:fj,maxTouchPoints:FV}=uj(),lu=cj.toLowerCase(),uu=fj.toLowerCase();var GR=/^i(os$|p)/.test(uu)||uu==="macintel"&&FV>1,zV="android",HV=uu===zV||lu.includes(zV),_V=!GR&&uu.startsWith("mac"),dj=uu.startsWith("win"),mj=!HV&&/^(linux|chrome os)/.test(uu),jR=_V||GR;var WR={};Qa(WR,{blink:()=>hj,gecko:()=>pj,webkit:()=>YR});var YR=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),pj=!YR&&lu.includes("firefox"),hj=!YR&&lu.includes("chrom");var KR={};Qa(KR,{voiceOver:()=>gj});var gj=jR;var ZR={};Qa(ZR,{jsdom:()=>xj});var xj=/jsdom|happydom/.test(lu);var QR={};Qa(QR,{iOS:()=>yj});var yj="@supports (-webkit-touch-callout: none)";function Io(e){e.preventDefault(),e.stopPropagation()}function UV(e){return"nativeEvent"in e}function As(e){return e.pointerType===""&&e.isTrusted?!0:at.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function vf(e){return at.env.jsdom?!1:!at.os.android&&e.width===0&&e.height===0||at.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Yo(e,t){let a=["mouse","pen"];return t||a.push("",void 0),a.includes(e)}function qV(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Ft(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ce(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&xn(a)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function nt(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var Tp="data-base-ui-focusable";var JR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",wp="ArrowLeft",Ep="ArrowRight",$R="ArrowUp",Vy="ArrowDown";var bf={};Qa(bf,{endingStyle:()=>eI,startingStyle:()=>Ap});var Ap="data-starting-style",eI="data-ending-style";var Sj={[Ap]:""},vj={[eI]:""},To={transitionStatus(e){return e==="starting"?Sj:e==="ending"?vj:null}};var GV="data-open",jV="data-closed";var XV="data-anchor-hidden";var cu={};Qa(cu,{popupOpen:()=>By,pressed:()=>tI});var By="data-popup-open",tI="data-pressed";var Cj={[By]:""},Lj={[By]:"",[tI]:""},Rj={[GV]:""},Ij={[jV]:""},Tj={[XV]:""},Fy={open(e){return e?Cj:null}},YV={open(e){return e?Lj:null}},ri={open(e){return e?Rj:Ij},anchorHidden(e){return e?Tj:null}},zy={...ri,...To};var Bpe=cu.popupOpen,Mp="data-trigger-disabled";function Ms(e,t){if(!Te(e))return!1;let a=e;if(t.hasElement(a))return!a.hasAttribute(Mp);for(let[,o]of t.entries())if(ce(o,a))return!o.hasAttribute(Mp);return!1}function Hy(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function KV(e){return e.matches("html,body")}function fu(e){return He(e)&&e.matches(JR)}function aI(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${JR}`)!=null}function Pp(e){return e?e.getAttribute("role")==="combobox"&&fu(e):!1}function ZV(e){if(!e||at.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function du(e){return e?e.hasAttribute(Tp)?e:e.querySelector(`[${Tp}]`)||e:null}function wj(e,t){return t!=null&&!Yo(t)?0:typeof e=="function"?e():e}function Vr(e,t,a){let o=wj(e,a);return typeof o=="number"?o:o?.[t]}function oI(e){return typeof e=="function"?e():e}function _y(e,t){return t||e==="click"||e==="mousedown"}function QV(e){return e?.includes("mouse")&&e!=="mousedown"}var ne={};Qa(ne,{cancelOpen:()=>tX,chipRemovePress:()=>Bj,clearPress:()=>Vj,closePress:()=>kj,closeWatcher:()=>Wj,decrementPress:()=>Hj,disabled:()=>oX,drag:()=>Jj,escapeKey:()=>Yj,focusOut:()=>Xj,imperativeAction:()=>iX,incrementPress:()=>zj,initial:()=>nX,inputBlur:()=>qj,inputChange:()=>_j,inputClear:()=>Uj,inputPaste:()=>Gj,inputPress:()=>jj,itemPress:()=>Oj,keyboard:()=>Zj,linkPress:()=>Nj,listNavigation:()=>Kj,missing:()=>rX,none:()=>Ej,outsidePress:()=>Dj,pointer:()=>Qj,scrub:()=>eX,siblingOpen:()=>aX,swipe:()=>sX,trackPress:()=>Fj,triggerFocus:()=>Pj,triggerHover:()=>Mj,triggerPress:()=>Aj,wheel:()=>$j,windowResize:()=>lX});var Ej="none",Aj="trigger-press",Mj="trigger-hover",Pj="trigger-focus",Dj="outside-press",Oj="item-press",kj="close-press",Nj="link-press",Vj="clear-press",Bj="chip-remove-press",Fj="track-press",zj="increment-press",Hj="decrement-press",_j="input-change",Uj="input-clear",qj="input-blur",Gj="input-paste",jj="input-press",Xj="focus-out",Yj="escape-key",Wj="close-watcher",Kj="list-navigation",Zj="keyboard",Qj="pointer",Jj="drag",$j="wheel",eX="scrub",tX="cancel-open",aX="sibling-open",oX="disabled",rX="missing",nX="initial",iX="imperative-action",sX="swipe",lX="window-resize";function ye(e,t,a,o){let r=!1,n=!1,i=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){n=!0},get isCanceled(){return r},get isPropagationAllowed(){return n},trigger:a,...i}}var JV=I(Q(),1),$V=io.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qa,currentIdRef:{current:null},currentContextRef:{current:null}});function uX(e,t){e.current=t.current}function rI(e){let{children:t,delay:a,timeoutMs:o=0}=e,r=io.useRef(a),n=io.useRef(a),i=io.useRef(null),s=io.useRef(null),l=Ze();return j(()=>{if(n.current=a,!i.current){r.current=a;return}r.current={open:Vr(r.current,"open"),close:Vr(a,"close")}},[a,i,r,n]),(0,JV.jsx)($V.Provider,{value:io.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:n,currentIdRef:i,timeoutMs:o,currentContextRef:s,timeout:l}),[o,l]),children:t})}function nI(e,t={open:!1}){let{open:a}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),n=io.useContext($V),{currentIdRef:i,delayRef:s,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=n,[m,p]=io.useState(!1),y=io.useRef(a);return j(()=>{y.current=a},[a]),j(()=>{function v(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,s.current=u.current,f.clear()}if(i.current&&!a&&i.current===r){if(p(!1),l){let g=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==g||v()}),()=>{(y.current||i.current!==g)&&f.clear()}}v()}},[a,r,i,s,l,u,c,f,o]),j(()=>{if(!a)return;let v=c.current,g=i.current;f.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:p},i.current=r,s.current={open:0,close:Vr(u.current,"close")},g!==null&&g!==r?(p(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,ye(ne.none))):(p(!1),v?.setIsInstantPhase(!1))},[a,r,o,i,s,u,c,f]),j(()=>()=>{if(i.current===r){if(c.current=null,!y.current)return;i.current=null,uX(s,u),f.clear()}},[c,i,s,r,u,f]),io.useMemo(()=>({activeIdRef:i,hasProvider:d,delayRef:s,isInstantPhase:m}),[i,d,s,m])}var Xa=I(k(),1);function Le(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}function Ga(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];a&&a()}}}function pt(e){let t=tt(cX,e).current;return t.next=e,j(t.effect),t}function cX(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Uy=null,lhe=globalThis.requestAnimationFrame,iI=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let a=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<a.length;r+=1)a[r]?.(t)};request(t){let a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){let a=t-this.startId;a<0||a>=this.callbacks.length||this.callbacks[a]!==null&&(this.callbacks[a]=null,this.callbacksCount-=1)}},qy=new iI;var gr=class e{static create(){return new e}static request(t){return qy.request(t)}static cancel(t){return qy.cancel(t)}currentId=Uy;request(t){this.cancel(),this.currentId=qy.request(()=>{this.currentId=Uy,t()})}cancel=()=>{this.currentId!==Uy&&(qy.cancel(this.currentId),this.currentId=Uy)};disposeEffect=()=>this.cancel};function so(){let e=tt(gr.create).current;return Sf(e.disposeEffect),e}var Gy=I(k(),1);var e2={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Cf={...e2,position:"fixed",top:0,left:0},t2={...e2,position:"absolute"};var a2=I(Q(),1),Lf=Gy.forwardRef(function(t,a){let[o,r]=Gy.useState();return j(()=>{at.screenReader.voiceOver&&at.engine.webkit&&r("button")},[]),(0,a2.jsx)("span",{...t,ref:a,style:Cf,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});var Ps=Math.min,Br=Math.max,Ds=Math.round,Op=Math.floor,bn=e=>({x:e,y:e}),fX={left:"right",right:"left",bottom:"top",top:"bottom"};function Xy(e,t,a){return Br(e,Ps(t,a))}function Cn(e,t){return typeof e=="function"?e(t):e}function ja(e){return e.split("-")[0]}function xr(e){return e.split("-")[1]}function Yy(e){return e==="x"?"y":"x"}function kp(e){return e==="y"?"height":"width"}function wo(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Np(e){return Yy(wo(e))}function n2(e,t,a){a===void 0&&(a=!1);let o=xr(e),r=Np(e),n=kp(r),i=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Dp(i)),[i,Dp(i)]}function i2(e){let t=Dp(e);return[jy(e),t,jy(t)]}function jy(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var o2=["left","right"],r2=["right","left"],dX=["top","bottom"],mX=["bottom","top"];function pX(e,t,a){switch(e){case"top":case"bottom":return a?t?r2:o2:t?o2:r2;case"left":case"right":return t?dX:mX;default:return[]}}function s2(e,t,a,o){let r=xr(e),n=pX(ja(e),a==="start",o);return r&&(n=n.map(i=>i+"-"+r),t&&(n=n.concat(n.map(jy)))),n}function Dp(e){let t=ja(e);return fX[t]+e.slice(t.length)}function hX(e){var t,a,o,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Wy(e){return typeof e!="number"?hX(e):{top:e,right:e,bottom:e,left:e}}function ni(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Os(e,t){return t<0||t>=e.length}function mu(e,t){return yr(e.current,{disabledIndices:t})}function Rf(e,t){return yr(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function yr(e,{startingIndex:t=-1,decrement:a=!1,disabledIndices:o,amount:r=1}={}){let n=t;do n+=a?-r:r;while(n>=0&&n<=e.length-1&&ii(e,n,o));return n}function ii(e,t,a){if(typeof a=="function"?a(t):a?.includes(t)??!1)return!0;let r=e[t];return r?!pu(r)||r.matches(":disabled")?!0:!a&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function gX(e){return e.visibility==="hidden"||e.visibility==="collapse"}function pu(e,t=e?ma(e):null){return!e||!e.isConnected||!t||gX(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var xX='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function yX(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return xn(a)?a.host:null}function lI(e){for(let t of Array.from(e.children))if(Yt(t)==="summary")return t;return null}function SX(e,t){let a=lI(t);return!!a&&(e===a||ce(a,e))}function l2(e){let t=e?Yt(e):"";return e!=null&&e.matches(xX)&&(t!=="summary"||e.parentElement!=null&&Yt(e.parentElement)==="details"&&lI(e.parentElement)===e)&&(t!=="details"||lI(e)==null)&&(t!=="input"||e.type!=="hidden")}function u2(e){if(!l2(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=yX(t)){let a=t!==e,o=Yt(t)==="slot";if(t.hasAttribute("inert")||a&&Yt(t)==="details"&&!t.open&&!SX(e,t)||t.hasAttribute("hidden")||!o&&!vX(t,a))return!1}return!0}function vX(e,t){let a=ma(e);return t?a.display!=="none":pu(e,a)}function c2(e){let t=e.tabIndex;if(t<0){let a=Yt(e);if(a==="details"||a==="audio"||a==="video"||He(e)&&e.isContentEditable)return 0}return t}function sI(e){if(Yt(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function bX(e,t){let a=sI(e);if(!a)return!0;let o=t.find(r=>{let n=sI(r);return n?.name===a.name&&n.form===a.form&&n.checked});return o?o===a:t.find(r=>{let n=sI(r);return n?.name===a.name&&n.form===a.form})===a}function f2(e){if(He(e)&&Yt(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return He(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function d2(e,t){f2(e).forEach(a=>{l2(a)&&t.push(a),d2(a,t)})}function m2(e,t,a){f2(e).forEach(o=>{He(o)&&o.matches(t)&&a.push(o),m2(o,t,a)})}function Ky(e){return u2(e)&&c2(e)>=0}function uI(e){let t=[];return d2(e,t),t.filter(u2)}function Vp(e){let t=uI(e);return t.filter(a=>c2(a)>=0&&bX(a,t))}function p2(e,t){let a=Vp(e),o=a.length;if(o===0)return;let r=Ft(ve(e)),n=a.indexOf(r),i=n===-1?t===1?0:o-1:n+t;return a[i]}function Zy(e){return p2(ve(e).body,1)||e}function Qy(e){return p2(ve(e).body,-1)||e}function hu(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!ce(a,o)}function h2(e){Vp(e).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function cI(e){let t=[];m2(e,"[data-tabindex]",t),t.forEach(a=>{let o=a.dataset.tabindex;delete a.dataset.tabindex,o?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")})}function Sr(e,t,a=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!a||r.context?.open?[r]:[],...Sr(e,r.id,a)])}function fI(e,t){let a=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){let r=e.find(n=>n.id===o);o=r?.parentId,r&&(a=a.concat(r))}return a}function si(e){return`data-base-ui-${e}`}var Jy=0;function If(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(Jy);function n(){r&&!r()||e?.focus({preventScroll:a})}if(o)return n(),Oe;let i=requestAnimationFrame(n);return Jy=i,()=>{Jy===i&&(cancelAnimationFrame(i),Jy=0)}}var dI={inert:new WeakMap,"aria-hidden":new WeakMap},g2="data-base-ui-inert",pI={inert:new WeakSet,"aria-hidden":new WeakSet},Bp=new WeakMap,mI=0;function CX(e){return pI[e]}function v2(e){return e?xn(e)?e.host:v2(e.parentNode):null}var x2=(e,t)=>t.map(a=>{if(e.contains(a))return a;let o=v2(a);return e.contains(o)?o:null}).filter(a=>a!=null),y2=e=>{let t=new Set;return e.forEach(a=>{let o=a;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},S2=(e,t,a)=>{let o=[],r=n=>{!n||a.has(n)||Array.from(n.children).forEach(i=>{Yt(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function LX(e,t,a,o,{mark:r=!0}){let n=null;o?n="inert":a&&(n="aria-hidden");let i=null,s=null,l=x2(t,e),u=r?S2(t,y2(l),new Set(l)):[],c=[],d=[];if(n){let f=dI[n],m=CX(n);s=m,i=f;let p=x2(t,Array.from(t.querySelectorAll("[aria-live]"))),y=l.concat(p);S2(t,y2(y),new Set(y)).forEach(g=>{let h=g.getAttribute(n),x=h!==null&&h!=="false",S=(f.get(g)||0)+1;f.set(g,S),c.push(g),S===1&&x&&m.add(g),x||g.setAttribute(n,n==="inert"?"":"true")})}return r&&u.forEach(f=>{let m=(Bp.get(f)||0)+1;Bp.set(f,m),d.push(f),m===1&&f.setAttribute(g2,"")}),mI+=1,()=>{i&&c.forEach(f=>{let p=(i.get(f)||0)-1;i.set(f,p),p||(!s?.has(f)&&n&&f.removeAttribute(n),s?.delete(f))}),r&&d.forEach(f=>{let m=(Bp.get(f)||0)-1;Bp.set(f,m),m||f.removeAttribute(g2)}),mI-=1,mI||(dI.inert=new WeakMap,dI["aria-hidden"]=new WeakMap,pI.inert=new WeakSet,pI["aria-hidden"]=new WeakSet,Bp=new WeakMap)}}function hI(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:r=!0}=t,n=ve(e[0]).body;return LX(e,n,a,o,{mark:r})}var At=I(k(),1),gI=I(Gr(),1);var $y=I(k(),1);var b2=0;function RX(e,t="mui"){let[a,o]=$y.useState(e),r=e||a;return $y.useEffect(()=>{a==null&&(b2+=1,o(`${t}-${b2}`))},[a,t]),r}var C2=Cp.useId;function ks(e,t){if(C2!==void 0){let a=C2();return e??(t?`${t}-${a}`:a)}return RX(e,t)}var L2={style:{transition:"none"}},R2="data-base-ui-click-trigger",IX="data-base-ui-swipe-ignore",TX="data-swipe-ignore",Dhe=`[${IX}]`,Ohe=`[${TX}]`,I2={fallbackAxisSide:"none"},T2={fallbackAxisSide:"end"},w2={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var gu=I(Q(),1),E2=At.createContext(null),xI=()=>At.useContext(E2),wX=si("portal");function eS(e={}){let{ref:t,container:a,componentProps:o=We,elementProps:r}=e,n=ks(),s=xI()?.portalNode,[l,u]=At.useState(null),[c,d]=At.useState(null),f=W(v=>{v!==null&&d(v)}),m=At.useRef(null);j(()=>{if(a===null){m.current&&(m.current=null,d(null),u(null));return}let v=(a&&(Iy(a)?a:a.current))??s??document.body;if(v==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==v&&(m.current=v,d(null),u(v))},[a,s]);let p=oe("div",o,{ref:[t,f],props:[{id:n,[wX]:""},r]}),y=l&&p?gI.createPortal(p,l):null;return{node:c,nodeId:At.isValidElement(p)?p.props.id:void 0,subtree:y}}var yI=At.forwardRef(function(t,a){let{render:o,className:r,style:n,children:i,container:s,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=eS({container:s,ref:a,componentProps:t,elementProps:u}),m=At.useRef(null),p=At.useRef(null),y=At.useRef(null),v=At.useRef(null),[g,h]=At.useState(null),x=At.useRef(!1),S=g?.modal,b=g?.open,R=!!g&&!g.modal&&g.open&&!!c;At.useEffect(()=>{if(!c||S)return;function C(E){c&&E.relatedTarget&&hu(E)&&(E.type==="focusin"?x.current&&(cI(c),x.current=!1):(h2(c),x.current=!0))}return Ga(Le(c,"focusin",C,!0),Le(c,"focusout",C,!0))},[c,S]),j(()=>{!c||b!==!0||!x.current||(cI(c),x.current=!1)},[b,c]);let L=At.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:y,afterInsideRef:v,portalNode:c,setFocusManagerState:h}),[c]);return(0,gu.jsxs)(At.Fragment,{children:[f,(0,gu.jsxs)(E2.Provider,{value:L,children:[R&&c&&(0,gu.jsx)(Lf,{"data-type":"outside",ref:m,onFocus:C=>{if(hu(C,c))y.current?.focus();else{let E=g?g.domReference:null;Qy(E)?.focus()}}}),R&&c&&(0,gu.jsx)("span",{role:l,"aria-owns":d,style:w2}),c&&gI.createPortal(i,c),R&&c&&(0,gu.jsx)(Lf,{"data-type":"outside",ref:p,onFocus:C=>{if(hu(C,c))v.current?.focus();else{let E=g?g.domReference:null;Zy(E)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ye(ne.focusOut,C.nativeEvent))}}})]})]})});var xu=I(k(),1);function A2(){let e=new Map;return{emit(t,a){e.get(t)?.forEach(o=>o(a))},on(t,a){e.has(t)||e.set(t,new Set),e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var EX=I(Q(),1),AX=xu.createContext(null),MX=xu.createContext(null),Ns=()=>xu.useContext(AX)?.id||null,vr=e=>{let t=xu.useContext(MX);return e??t};function Fr(e){return e==null?e:"current"in e?e.current:e}var Fp=I(Q(),1);function PX(e,t){let a=ze(nt(e));return e instanceof a.KeyboardEvent?"keyboard":e instanceof a.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof a.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var M2=20,Vs=[];function SI(){Vs=Vs.filter(e=>e.deref()?.isConnected)}function P2(e){SI(),e&&Yt(e)!=="body"&&(Vs.push(new WeakRef(e)),Vs.length>M2&&(Vs=Vs.slice(-M2)))}function D2(){return SI(),Vs[Vs.length-1]?.deref()}function DX(e){return e?Ky(e)?e:Vp(e)[0]||e:null}function O2(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let a=uI(e).filter(r=>{let n=r.getAttribute("data-tabindex")||"";return Ky(r)||r.hasAttribute("data-tabindex")&&!n.startsWith("-")}),o=e.getAttribute("tabindex");a.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function vI(e){let{context:t,children:a,disabled:o=!1,initialFocus:r=!0,returnFocus:n=!0,restoreFocus:i=!1,modal:s=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,y="rootStore"in t?t.rootStore:t,v=y.useState("open"),g=y.useState("domReferenceElement"),h=y.useState("floatingElement"),{events:x,dataRef:S}=y.context,b=W(()=>S.current.floatingContext?.nodeId),R=r===!1,L=Pp(g)&&R,C=pt(r),E=pt(n),T=pt(u),A=pt(v),V=vr(m),M=xI(),F=Xa.useRef(!1),O=Xa.useRef(!1),H=Xa.useRef(!1),q=Xa.useRef(null),D=Xa.useRef(""),N=Xa.useRef(""),w=Xa.useRef(null),z=Xa.useRef(null),U=lr(w,f,M?.beforeInsideRef),X=lr(z,M?.afterInsideRef),P=Ze(),_=Ze(),B=so(),J=M!=null,Y=du(h),ee=W(($=Y)=>$?Vp($):[]),se=W(()=>p?.().filter($=>$!=null)??[]);Xa.useEffect(()=>{if(o||!s)return;function $(me){me.key==="Tab"&&ce(Y,Ft(ve(Y)))&&ee().length===0&&!L&&Io(me)}let te=ve(Y);return Le(te,"keydown",$)},[o,Y,s,L,ee]),Xa.useEffect(()=>{if(o||!v)return;let $=ve(Y);function te(){H.current=!1}function me(Ee){let pe=nt(Ee),Re=se(),le=ce(h,pe)||ce(g,pe)||ce(M?.portalNode,pe)||Re.some(Ie=>Ie===pe||ce(Ie,pe));H.current=!le,N.current=Ee.pointerType||"keyboard",pe?.closest(`[${R2}]`)&&(O.current=!0,_.start(0,()=>{O.current=!1}))}function he(){N.current="keyboard"}return Ga(Le($,"pointerdown",me,!0),Le($,"pointerup",te,!0),Le($,"pointercancel",te,!0),Le($,"keydown",he,!0),te)},[o,h,g,Y,v,M,_,se]),Xa.useEffect(()=>{if(o||!l)return;let $=ve(Y);function te(){O.current=!0,_.start(0,()=>{O.current=!1})}function me(Re){let le=nt(Re);Ky(le)&&(q.current=le)}function he(Re){let le=Re.relatedTarget,Ie=Re.currentTarget,ke=nt(Re);s&&le==null&&ke!=null&&ce(h,ke)&&P2(ke),queueMicrotask(()=>{let Pe=b(),ut=y.context.triggerElements,ae=se(),fe=le?.hasAttribute(si("focus-guard"))&&[w.current,z.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,Fr(d),Fr(c)].includes(le),K=!(ce(g,le)||ce(h,le)||ce(le,h)||ce(M?.portalNode,le)||ae.some(G=>G===le||ce(G,le))||ut.hasMatchingElement(G=>ce(G,le))||fe||V&&(Sr(V.nodesRef.current,Pe).find(G=>ce(G.context?.elements.floating,le)||ce(G.context?.elements.domReference,le))||fI(V.nodesRef.current,Pe).find(G=>[G.context?.elements.floating,du(G.context?.elements.floating)].includes(le)||G.context?.elements.domReference===le)));if(Ie===g&&Y&&O2(Y),i&&Ie!==g&&!pu(ke)&&Ft($)===$.body){if(He(Y)&&(Y.focus(),i==="popup")){B.request(()=>{Y.focus()});return}let G=ee(),ie=q.current,Ne=(ie&&G.includes(ie)?ie:null)||G[G.length-1]||Y;He(Ne)&&Ne.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(L||!s)&&le&&K&&!O.current&&(L||le!==D2())&&(F.current=!0,y.setOpen(!1,ye(ne.focusOut,Re)))})}function Ee(){H.current||(S.current.insideReactTree=!0,P.start(0,()=>{S.current.insideReactTree=!1}))}let pe=He(g)?g:null;if(!(!h&&!pe))return Ga(pe&&Le(pe,"focusout",he),pe&&Le(pe,"pointerdown",te),h&&Le(h,"focusin",me),h&&Le(h,"focusout",he),h&&M&&Le(h,"focusout",Ee,!0))},[o,g,h,Y,s,V,M,y,l,i,ee,L,b,S,P,_,B,c,d,se]),Xa.useEffect(()=>{if(o||!h||!v)return;let $=Array.from(M?.portalNode?.querySelectorAll(`[${si("portal")}]`)||[]),me=(V?fI(V.nodesRef.current,b()):[]).find(Ie=>Pp(Ie.context?.elements.domReference||null))?.context?.elements.domReference,Ee=[...[h,...$,w.current,z.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...se()],me,Fr(d),Fr(c),L?g:null].filter(Ie=>Ie!=null),pe=hI(Ee,{ariaHidden:s||L,mark:!1}),Re=[h,...$].filter(Ie=>Ie!=null),le=hI(Re);return()=>{le(),pe()}},[v,o,g,h,s,M,L,V,b,c,d,se]),j(()=>{if(!v||o||!He(Y))return;D.current="",N.current="";let $=ve(Y),te=Ft($);queueMicrotask(()=>{let me=C.current,he=typeof me=="function"?me(T.current||""):me;if(he===void 0||he===!1||ce(Y,te))return;let pe=null,Re=()=>(pe==null&&(pe=ee(Y)),pe[0]||Y),le;he===!0||he===null?le=Re():le=Fr(he),le=le||Re();let Ie=ce(Y,Ft($));If(le,{preventScroll:le===Y,shouldFocus(){if(!A.current)return!1;if(Ie)return!0;let ke=Ft($);return!(ke!==le&&ce(Y,ke))}})})},[o,v,Y,ee,C,T,A]),j(()=>{if(o||!Y)return;let $=ve(Y),te=Ft($),me=T.current==null;P2(te);function he(pe){if(pe.open||(D.current=PX(pe.nativeEvent,N.current)),pe.reason===ne.triggerHover&&pe.nativeEvent.type==="mouseleave"&&(F.current=!0),pe.reason===ne.outsidePress)if(pe.nested)F.current=!1;else if(As(pe.nativeEvent)||vf(pe.nativeEvent))F.current=!1;else{let Re=!1;ve(Y).createElement("div").focus({get preventScroll(){return Re=!0,!1}}),Re?F.current=!1:F.current=!0}}x.on("openchange",he);function Ee(pe){let Re=E.current,le=typeof Re=="function"?Re(pe):Re;if(le===void 0||le===!1)return null;le===null&&(le=!0);let Ie=g?.isConnected?g:null,ke=te?.isConnected&&Yt(te)!=="body"?te:null,Pe=me?ke||Ie:Ie||ke;return Pe||(Pe=D2()||null),typeof le=="boolean"?Pe:Fr(le)||Pe||null}return()=>{x.off("openchange",he);let pe=Ft($),Re=se(),le=ce(h,pe)||Re.some(ut=>ut===pe||ce(ut,pe))||V&&Sr(V.nodesRef.current,b(),!1).some(ut=>ce(ut.context?.elements.floating,pe)),Ie=E.current,ke=D.current,Pe=Ee(ke);queueMicrotask(()=>{let ut=DX(Pe),ae=typeof Ie!="boolean";if(Ie&&!F.current&&He(ut)&&(!(!ae&&ut!==pe&&pe!==$.body)||le)){let fe={preventScroll:!0};ke==="keyboard"&&(fe.focusVisible=!0),ut.focus(fe)}F.current=!1})}},[o,h,Y,E,T,x,V,g,b,se]),j(()=>{if(!at.engine.webkit||v||!h)return;let $=Ft(ve(h));!He($)||!fu($)||ce(h,$)&&$.blur()},[v,h]),j(()=>{if(!(o||!M))return M.setFocusManagerState({modal:s,closeOnFocusOut:l,open:v,onOpenChange:y.setOpen,domReference:g}),()=>{M.setFocusManagerState(null)}},[o,M,s,v,y,l,g]),j(()=>{if(!(o||!Y))return O2(Y),()=>{queueMicrotask(SI)}},[o,Y]);let ue=!o&&(s?!L:!0)&&(J||s);return(0,Fp.jsxs)(Xa.Fragment,{children:[ue&&(0,Fp.jsx)(Lf,{"data-type":"inside",ref:U,onFocus:$=>{if(s){let te=ee();If(te[te.length-1])}else M?.portalNode&&(F.current=!1,hu($,M.portalNode)?Zy(g)?.focus():Fr(d??M.beforeOutsideRef)?.focus())}}),a,ue&&(0,Fp.jsx)(Lf,{"data-type":"inside",ref:X,onFocus:$=>{s?If(ee()[0]):M?.portalNode&&(l&&(F.current=!0),hu($,M.portalNode)?Qy(g)?.focus():Fr(c??M.afterOutsideRef)?.focus())}})]})}var zp=I(k(),1);function bI(e,t={}){let{enabled:a=!0,event:o="click",toggle:r=!0,ignoreMouse:n=!1,stickIfOpen:i=!0,touchOpenDelay:s=0,reason:l=ne.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=zp.useRef(void 0),f=so(),m=Ze(),p=zp.useMemo(()=>{function y(g,h,x,S){let b=ye(l,h,x);g&&S==="touch"&&s>0?m.start(s,()=>{u.setOpen(!0,b)}):u.setOpen(g,b)}function v(g,h,x){let S=c.current.openEvent,b=u.select("domReferenceElement")!==h;return g&&b||!g||!r?!0:S&&i?!x(S.type):!1}return{onPointerDown(g){d.current=Yo(g.pointerType,!0)&&vf(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let h=d.current,x=g.nativeEvent,S=u.select("open");if(g.button!==0||o==="click"||Yo(h,!0)&&n)return;let b=v(S,g.currentTarget,C=>C==="click"||C==="mousedown"),R=nt(x);if(fu(R)){y(b,x,R,h);return}let L=g.currentTarget;f.request(()=>{y(b,x,L,h)})},onClick(g){if(o==="mousedown-only")return;let h=d.current;if(o==="mousedown"&&h){d.current=void 0;return}if(Yo(h,!0)&&n)return;let x=u.select("open"),S=v(x,g.currentTarget,b=>b==="click"||b==="mousedown"||b==="keydown"||b==="keyup");y(S,g.nativeEvent,g.currentTarget,h)},onKeyDown(){d.current=void 0}}},[c,o,n,l,u,i,r,f,m,s]);return zp.useMemo(()=>a?{reference:p}:We,[a,p])}var Eo=I(k(),1);function OX(e,t){let a=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let n=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",s=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=n.width,c=n.height,d=n.x,f=n.y;return a==null&&t.x&&i&&(a=n.x-t.x),o==null&&t.y&&s&&(o=n.y-t.y),d-=a||0,f-=o||0,u=0,c=0,!r||l?(u=t.axis==="y"?n.width:0,c=t.axis==="x"?n.height:0,d=i&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):r&&!l&&(c=t.axis==="x"?n.height:c,u=t.axis==="y"?n.width:u),r=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function k2(e){return e!=null&&e.clientX!=null}function CI(e,t={}){let{enabled:a=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("open"),i=r.useState("floatingElement"),s=r.useState("domReferenceElement"),l=r.context.dataRef,u=Eo.useRef(!1),c=Eo.useRef(null),[d,f]=Eo.useState(),[m,p]=Eo.useState([]),y=W(S=>{r.set("positionReference",S)}),v=W((S,b,R)=>{u.current||l.current.openEvent&&!k2(l.current.openEvent)||r.set("positionReference",OX(R??s,{x:S,y:b,axis:o,dataRef:l,pointerType:d}))}),g=W(S=>{n?c.current||(v(S.clientX,S.clientY,S.currentTarget),p([])):v(S.clientX,S.clientY,S.currentTarget)}),h=Yo(d)?i:n;Eo.useEffect(()=>{if(!a){y(s);return}if(!h)return;function S(){c.current?.(),c.current=null}let b=ze(i);function R(L){let C=nt(L);ce(i,C)?S():v(L.clientX,L.clientY)}return!l.current.openEvent||k2(l.current.openEvent)?c.current=Le(b,"mousemove",R):y(s),S},[h,a,i,l,s,r,v,y,m]),Eo.useEffect(()=>()=>{r.set("positionReference",null)},[r]),Eo.useEffect(()=>{a&&!i&&(u.current=!1)},[a,i]),Eo.useEffect(()=>{!a&&n&&(u.current=!0)},[a,n]);let x=Eo.useMemo(()=>{function S(b){f(b.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:g,onMouseEnter:g}},[g]);return Eo.useMemo(()=>a?{reference:x,trigger:x}:{},[a,x])}var lo=I(k(),1);function kX(){return!1}function NX(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Hp(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:n="sloppy",referencePress:i=kX,bubbles:s,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=vr(l),y=W(typeof r=="function"?r:()=>!1),v=typeof r=="function"?y:r,g=v!==!1,h=W(()=>n),{escapeKey:x,outsidePress:S}=NX(s),b=lo.useRef(!1),R=lo.useRef(!1),L=lo.useRef(!1),C=lo.useRef(!1),E=lo.useRef(!1),T=lo.useRef(""),A=lo.useRef(null),V=Ze(),M=Ze(),F=W(()=>{M.clear(),f.current.insideReactTree=!1}),O=W(P=>{let _=f.current.floatingContext?.nodeId;return(p?Sr(p.nodesRef.current,_):[]).some(J=>J.context?.open&&!J.context.dataRef.current[P])}),H=W(P=>Hy(P,u.select("floatingElement"))||Hy(P,u.select("domReferenceElement"))),q=W(P=>{i()&&u.setOpen(!1,ye(ne.triggerPress,P.nativeEvent))}),D=W(P=>{if(!c||!a||!o||P.key!=="Escape"||E.current||!x&&O("__escapeKeyBubbles"))return;let _=UV(P)?P.nativeEvent:P,B=ye(ne.escapeKey,_);u.setOpen(!1,B),B.isCanceled||P.preventDefault(),!x&&!B.isPropagationAllowed&&P.stopPropagation()}),N=W(()=>{f.current.insideReactTree=!0,M.start(0,F)}),w=W(P=>{if(!c||!a||P.button!==0)return;let _=nt(P.nativeEvent);ce(u.select("floatingElement"),_)&&(b.current||(b.current=!0,R.current=!1))}),z=W(P=>{!c||!a||(P.defaultPrevented||P.nativeEvent.defaultPrevented)&&b.current&&(R.current=!0)});lo.useEffect(()=>{function P(_){_.open||(C.current=!1)}return m.on("openchange",P),()=>{m.off("openchange",P)}},[m]),lo.useEffect(()=>{if(!c||!a)return c||(C.current=!1),F;f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=S;let P=new qa,_=new qa,B=ve(d);function J(){P.clear(),E.current=!0}function Y(){P.start(at.engine.webkit?5:0,()=>{E.current=!1})}function ee(){L.current=!0,_.start(0,()=>{L.current=!1})}function se(){b.current=!1,R.current=!1}function ue(){let K=T.current,G=K==="pen"||!K?"mouse":K,ie=h(),Ne=typeof ie=="function"?ie():ie;return typeof Ne=="string"?Ne:Ne[G]}function $(K){let G=ue();return G==="intentional"&&K.type!=="click"||G==="sloppy"&&K.type==="click"}function te(K){let G=f.current.floatingContext?.nodeId,ie=p&&Sr(p.nodesRef.current,G).some(Ne=>Hy(K,Ne.context?.elements.floating));return H(K)||ie}function me(K){if($(K)){K.type!=="click"&&!H(K)&&(_.clear(),L.current=!1),F();return}if(f.current.insideReactTree){F();return}let G=nt(K),ie=`[${si("inert")}]`,Ne=Te(G)?G.getRootNode():null,Nt=Array.from((xn(Ne)?Ne:ve(u.select("floatingElement"))).querySelectorAll(ie)),Qt=u.context.triggerElements;if(G&&(Qt.hasElement(G)||Qt.hasMatchingElement(bt=>ce(bt,G))))return;let Et=Te(G)?G:null;for(;Et&&!mr(Et);){let bt=Xo(Et);if(mr(bt)||!Te(bt))break;Et=bt}if(!(Nt.length&&Te(G)&&!KV(G)&&!ce(G,u.select("floatingElement"))&&Nt.every(bt=>!ce(Et,bt)))){if(He(G)&&!("touches"in K)){let bt=mr(G),Ia=ma(G),Ta=/auto|scroll/,Jt=bt||Ta.test(Ia.overflowX),Ba=bt||Ta.test(Ia.overflowY),uo=Jt&&G.clientWidth>0&&G.scrollWidth>G.clientWidth,Qo=Ba&&G.clientHeight>0&&G.scrollHeight>G.clientHeight,ha=Ia.direction==="rtl",Ht=Qo&&(ha?K.offsetX<=G.offsetWidth-G.clientWidth:K.offsetX>G.clientWidth),Ae=uo&&K.offsetY>G.clientHeight;if(Ht||Ae)return}if(!te(K)){if(ue()==="intentional"){if(K.detail!==0&&!As(K)&&!C.current)return;if(L.current){_.clear(),L.current=!1;return}}typeof v=="function"&&!v(K)||O("__outsidePressBubbles")||(u.setOpen(!1,ye(ne.outsidePress,K)),F())}}}function he(K){ue()!=="sloppy"||K.pointerType==="touch"||!u.select("open")||!a||H(K)||me(K)}function Ee(K){if(ue()!=="sloppy"||!u.select("open")||!a||H(K))return;let G=K.touches[0];G&&(A.current={startTime:Date.now(),startX:G.clientX,startY:G.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function pe(K,G){let ie=nt(K);if(!ie)return;let Ne=Le(ie,K.type,()=>{G(K),Ne()})}function Re(K){T.current="touch",pe(K,Ee)}function le(K){V.clear(),K.type==="pointerdown"&&(K.button===0&&(C.current=!0),T.current=K.pointerType),!(K.type==="mousedown"&&A.current&&!A.current.dismissOnMouseDown)&&pe(K,G=>{G.type==="pointerdown"?he(G):me(G)})}function Ie(K){if(K.type==="pointercancel"&&(C.current=!1),!b.current)return;let G=R.current;if(se(),ue()==="intentional"){if(K.type==="pointercancel"){G&&ee();return}if(!te(K)){if(G){ee();return}typeof v=="function"&&!v(K)||(_.clear(),L.current=!0,F())}}}function ke(K){if(ue()!=="sloppy"||!A.current||H(K))return;let G=K.touches[0];if(!G)return;let ie=Math.abs(G.clientX-A.current.startX),Ne=Math.abs(G.clientY-A.current.startY),Nt=Math.sqrt(ie*ie+Ne*Ne);Nt>5&&(A.current.dismissOnTouchEnd=!0),Nt>10&&(me(K),V.clear(),A.current=null)}function Pe(K){pe(K,ke)}function ut(K){ue()!=="sloppy"||!A.current||H(K)||(A.current.dismissOnTouchEnd&&me(K),V.clear(),A.current=null)}function ae(K){pe(K,ut)}let fe=Ga(o&&Ga(Le(B,"keydown",D),Le(B,"compositionstart",J),Le(B,"compositionend",Y)),g&&Ga(Le(B,"click",le,!0),Le(B,"pointerdown",le,!0),Le(B,"pointerup",Ie,!0),Le(B,"pointercancel",Ie,!0),Le(B,"mousedown",le,!0),Le(B,"mouseup",Ie,!0),Le(B,"touchstart",Re,{capture:!0,passive:!0}),Le(B,"touchmove",Pe,{capture:!0,passive:!0}),Le(B,"touchend",ae,{capture:!0,passive:!0})));return()=>{fe(),P.clear(),_.clear(),se(),L.current=!1,F()}},[f,d,o,g,v,c,a,x,S,D,F,h,O,H,p,u,V]);let U=lo.useMemo(()=>({onKeyDown:D,onPointerDown:q,onClick:q}),[D,q]),X=lo.useMemo(()=>({onKeyDown:D,onPointerDown:z,onMouseDown:z,onClickCapture:N,onMouseDownCapture(P){N(),w(P)},onPointerDownCapture(P){N(),w(P)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[D,N,w,z]);return lo.useMemo(()=>a?{reference:U,floating:X,trigger:U}:{},[a,U,X])}var Wa=I(k(),1);function N2(e,t,a){let{reference:o,floating:r}=e,n=wo(t),i=Np(t),s=kp(i),l=ja(t),u=n==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2,m;switch(l){case"top":m={x:c,y:o.y-r.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}let p=xr(t);return p&&(m[i]+=f*(p==="end"?1:-1)*(a&&u?-1:1)),m}async function V2(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Cn(t,e),p=Wy(m),v=s[f?d==="floating"?"reference":"floating":d],g=ni(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(v)))==null||a?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),h=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(s.floating)),S=await(n.isElement==null?void 0:n.isElement(x))&&await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1},b=ni(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:x,strategy:l}):h);return{top:(g.top-b.top+p.top)/S.y,bottom:(b.bottom-g.bottom+p.bottom)/S.y,left:(g.left-b.left+p.left)/S.x,right:(b.right-g.right+p.right)/S.x}}var VX=50,B2=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:i}=a,s=i.detectOverflow?i:{...i,detectOverflow:V2},l=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=N2(u,o,l),f=o,m=0,p={};for(let y=0;y<n.length;y++){let v=n[y];if(!v)continue;let{name:g,fn:h}=v,{x,y:S,data:b,reset:R}=await h({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,d=S??d,p[g]={...p[g],...b},R&&m<VX&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:c,y:d}=N2(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};var F2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...v}=Cn(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let g=ja(r),h=wo(s),x=ja(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=f||(x||!y?[Dp(s)]:i2(s)),R=p!=="none";!f&&R&&b.push(...s2(s,y,p,S));let L=[s,...b],C=await l.detectOverflow(t,v),E=[],T=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&E.push(C[g]),d){let F=n2(r,i,S);E.push(C[F[0]],C[F[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(F=>F<=0)){var A,V;let F=(((A=n.flip)==null?void 0:A.index)||0)+1,O=L[F];if(O&&(!(d==="alignment"?h!==wo(O):!1)||T.every(D=>wo(D.placement)===h?D.overflows[0]>0:!0)))return{data:{index:F,overflows:T},reset:{placement:O}};let H=(V=T.filter(q=>q.overflows[0]<=0).sort((q,D)=>q.overflows[1]-D.overflows[1])[0])==null?void 0:V.placement;if(!H)switch(m){case"bestFit":{var M;let q=(M=T.filter(D=>{if(R){let N=wo(D.placement);return N===h||N==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(N=>N>0).reduce((N,w)=>N+w,0)]).sort((D,N)=>D[1]-N[1])[0])==null?void 0:M[0];q&&(H=q);break}case"initialPlacement":H=s;break}if(r!==H)return{reset:{placement:H}}}return{}}}};var z2=new Set(["left","top"]);async function BX(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ja(a),s=xr(a),l=wo(a)==="y",u=z2.has(i)?-1:1,c=n&&l?-1:1,d=Cn(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(m=s==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var H2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:i,middlewareData:s}=t,l=await BX(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:i}}}}},_2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x,y:S}=h;return{x,y:S}}},...u}=Cn(e,t),c={x:a,y:o},d=await n.detectOverflow(t,u),f=wo(r),m=Yy(f),p=c[m],y=c[f],v=(h,x)=>Xy(x+d[h==="y"?"top":"left"],x,x-d[h==="y"?"bottom":"right"]);i&&(p=v(m,p)),s&&(y=v(f,y));let g=l.fn({...t,[m]:p,[f]:y});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[m]:i,[f]:s}}}}}},U2=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:r,y:n,placement:i,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Cn(e,t),f={x:r,y:n},m=wo(i),p=Yy(m),y=f[p],v=f[m],g=Cn(u,t),h=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(c){let b=p==="y"?"height":"width",R=s.reference[p]-s.floating[b]+h.mainAxis,L=s.reference[p]+s.reference[b]-h.mainAxis;y<R?y=R:y>L&&(y=L)}if(d){var x,S;let b=p==="y"?"width":"height",R=z2.has(ja(i)),L=s.reference[m]-s.floating[b]+(R&&((x=l.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),C=s.reference[m]+s.reference[b]+(R?0:((S=l.offset)==null?void 0:S[m])||0)-(R?h.crossAxis:0);v<L?v=L:v>C&&(v=C)}return{[p]:y,[m]:v}}}},q2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:i=()=>{},...s}=Cn(e,t),l=await r.detectOverflow(t,s),u=ja(a),c=xr(a),d=wo(a)==="y",{width:f,height:m}=o.floating,p,y;u==="top"||u==="bottom"?(p=u,y=c===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(y=u,p=c==="end"?"top":"bottom");let v=m-l.top-l.bottom,g=f-l.left-l.right,h=Ps(m-l[p],v),x=Ps(f-l[y],g),S=t.middlewareData.shift,b=!S,R=h,L=x;S!=null&&S.enabled.x&&(L=g),S!=null&&S.enabled.y&&(R=v),b&&!c&&(d?L=f-2*Br(l.left,l.right):R=m-2*Br(l.top,l.bottom)),await i({...t,availableWidth:L,availableHeight:R});let C=await r.getDimensions(n.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function X2(e){let t=ma(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=He(e),n=r?e.offsetWidth:a,i=r?e.offsetHeight:o,s=Ds(a)!==n||Ds(o)!==i;return s&&(a=n,o=i),{width:a,height:o,$:s}}function RI(e){return Te(e)?e:e.contextElement}function Tf(e){let t=RI(e);if(!He(t))return bn(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=X2(t),i=(n?Ds(a.width):a.width)/o,s=(n?Ds(a.height):a.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var FX=bn(0);function Y2(e){let t=ze(e);return!wy()||!t.visualViewport?FX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zX(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===ze(e)}function yu(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=RI(e),i=bn(1);t&&(o?Te(o)&&(i=Tf(o)):i=Tf(e));let s=zX(n,a,o)?Y2(n):bn(0),l=(r.left+s.x)/i.x,u=(r.top+s.y)/i.y,c=r.width/i.x,d=r.height/i.y;if(n&&o){let f=ze(n),m=Te(o)?ze(o):o,p=f,y=Ey(p);for(;y&&m!==p;){let v=Tf(y),g=y.getBoundingClientRect(),h=ma(y),x=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*v.x,S=g.top+(y.clientTop+parseFloat(h.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=x,u+=S,p=ze(y),y=Ey(p)}}return ni({width:c,height:d,x:l,y:u})}function tS(e,t){let a=bp(e).scrollLeft;return t?t.left+a:yu(yn(e)).left+a}function W2(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-tS(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function HX(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",i=yn(o),s=t?vp(t.floating):!1;if(o===i||s&&n)return a;let l={scrollLeft:0,scrollTop:0},u=bn(1),c=bn(0),d=He(o);if((d||!n)&&((Yt(o)!=="body"||nu(i))&&(l=bp(o)),d)){let m=yu(o);u=Tf(o),c.x=m.x+o.clientLeft,c.y=m.y+o.clientTop}let f=i&&!d&&!n?W2(i,l):bn(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function _X(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function UX(e){let t=bp(e),a=e.ownerDocument.body,o=Br(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=Br(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+tS(e),i=-t.scrollTop;return ma(a).direction==="rtl"&&(n+=Br(e.clientWidth,a.clientWidth)-o),{width:o,height:r,x:n,y:i}}var qX=25;function GX(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",r=ze(e),n=yn(e),i=r.visualViewport,s=n.clientWidth,l=n.clientHeight,u=0,c=0;if(i){let f=!wy()||t==="fixed";o?f||(u=-i.offsetLeft,c=-i.offsetTop):(s=i.width,l=i.height,f&&(u=i.offsetLeft,c=i.offsetTop))}if(tS(n)<=0){let f=n.ownerDocument,m=f.body,p=getComputedStyle(m),y=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(n.clientWidth-m.clientWidth-y),g=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;g<=qX&&(s-=g)}return{width:s,height:l,x:u,y:c}}function jX(e,t){let a=yu(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Tf(e),i=e.clientWidth*n.x,s=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:i,height:s,x:l,y:u}}function G2(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=GX(e,a,t);else if(t==="document")o=UX(yn(e));else if(Te(t))o=jX(t,a);else{let r=Y2(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ni(o)}function XX(e,t){let a=t.get(e);if(a)return a;let o=Ts(e,[],!1).filter(s=>Te(s)&&Yt(s)!=="body"),r=null,n=ma(e).position==="fixed",i=n?Xo(e):e;for(;Te(i)&&!mr(i);){let s=ma(i),l=Ty(i),u=r?r.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?o=o.filter(d=>d!==i):r=s,i=Xo(i)}return t.set(e,o),o}function YX(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,i=[...a==="clippingAncestors"?vp(t)?[]:XX(t,this._c):[].concat(a),o],s=G2(t,i[0],r),l=s.top,u=s.right,c=s.bottom,d=s.left;for(let f=1;f<i.length;f++){let m=G2(t,i[f],r);l=Br(m.top,l),u=Ps(m.right,u),c=Ps(m.bottom,c),d=Br(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function WX(e){let{width:t,height:a}=X2(e);return{width:t,height:a}}function KX(e,t,a){let o=He(t),r=yn(t),n=a==="fixed",i=yu(e,!0,n,t),s={scrollLeft:0,scrollTop:0},l=bn(0);if((o||!n)&&((Yt(t)!=="body"||nu(r))&&(s=bp(t)),o)){let f=yu(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=tS(r));let u=r&&!o&&!n?W2(r,s):bn(0),c=i.left+s.scrollLeft-l.x-u.x,d=i.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:i.width,height:i.height}}function LI(e){return ma(e).position==="static"}function j2(e,t){if(!He(e)||ma(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return yn(e)===a&&(a=a.ownerDocument.body),a}function K2(e,t){let a=ze(e);if(vp(e))return a;if(!He(e)){let r=Xo(e);for(;r&&!mr(r);){if(Te(r)&&!LI(r))return r;r=Xo(r)}return a}let o=j2(e,t);for(;o&&sV(o)&&LI(o);)o=j2(o,t);return o&&mr(o)&&LI(o)&&!Ty(o)?a:o||lV(e)||a}var ZX=async function(e){let t=this.getOffsetParent||K2,a=this.getDimensions,o=await a(e.floating);return{reference:KX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function QX(e){return ma(e).direction==="rtl"}var _p={convertOffsetParentRelativeRectToViewportRelativeRect:HX,getDocumentElement:yn,getClippingRect:YX,getOffsetParent:K2,getElementRects:ZX,getClientRects:_X,getDimensions:WX,getScale:Tf,isElement:Te,isRTL:QX};function Z2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JX(e,t,a){let o=null,r,n=yn(e);function i(){var c;clearTimeout(r),(c=o)==null||c.disconnect(),o=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();let f=e.getBoundingClientRect(),{left:m,top:p,width:y,height:v}=f;if(c||t(),!y||!v)return;let g=Op(p),h=Op(n.clientWidth-(m+y)),x=Op(n.clientHeight-(p+v)),S=Op(m),R={rootMargin:-g+"px "+-h+"px "+-x+"px "+-S+"px",threshold:Br(0,Ps(1,d))||1},L=!0;function C(E){let T=E[0].intersectionRatio;if(!Z2(f,e.getBoundingClientRect()))return s();if(T!==d){if(!L)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L=!1}try{o=new IntersectionObserver(C,{...R,root:n.ownerDocument})}catch{o=new IntersectionObserver(C,R)}o.observe(e)}let l=ze(e),u=()=>s(a);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),i()}}function Up(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=RI(e),c=r||n?[...u?Ts(u):[],...t?Ts(t):[]]:[];c.forEach(g=>{r&&g.addEventListener("scroll",a),n&&g.addEventListener("resize",a)});let d=u&&s?JX(u,a,n):null,f=-1,m=null;i&&(m=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),a()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,y=l?yu(e):null;l&&v();function v(){let g=yu(e);y&&!Z2(y,g)&&a(),y=g,p=requestAnimationFrame(v)}return a(),()=>{var g;c.forEach(h=>{r&&h.removeEventListener("scroll",a),n&&h.removeEventListener("resize",a)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var Q2=H2;var J2=_2,$2=F2,eB=q2;var tB=U2,aS=(e,t,a)=>{let o=new Map,r=a??{},n={..._p,...r.platform,_c:o};return B2(e,t,{...r,platform:n})};var ra=I(k(),1),oB=I(k(),1),rB=I(Gr(),1),e9=typeof document<"u",t9=function(){},oS=e9?oB.useLayoutEffect:t9;function rS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!rS(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!rS(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function nB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aB(e,t){let a=nB(e);return Math.round(t*a)/a}function II(e){let t=ra.useRef(e);return oS(()=>{t.current=e}),t}function iB(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=ra.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=ra.useState(o);rS(f,o)||m(o);let[p,y]=ra.useState(null),[v,g]=ra.useState(null),h=ra.useCallback(D=>{D!==R.current&&(R.current=D,y(D))},[]),x=ra.useCallback(D=>{D!==L.current&&(L.current=D,g(D))},[]),S=n||p,b=i||v,R=ra.useRef(null),L=ra.useRef(null),C=ra.useRef(c),E=l!=null,T=II(l),A=II(r),V=II(u),M=ra.useCallback(()=>{if(!R.current||!L.current)return;let D={placement:t,strategy:a,middleware:f};A.current&&(D.platform=A.current),aS(R.current,L.current,D).then(N=>{let w={...N,isPositioned:V.current!==!1};F.current&&!rS(C.current,w)&&(C.current=w,rB.flushSync(()=>{d(w)}))})},[f,t,a,A,V]);oS(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[u]);let F=ra.useRef(!1);oS(()=>(F.current=!0,()=>{F.current=!1}),[]),oS(()=>{if(S&&(R.current=S),b&&(L.current=b),S&&b){if(T.current)return T.current(S,b,M);M()}},[S,b,M,T,E]);let O=ra.useMemo(()=>({reference:R,floating:L,setReference:h,setFloating:x}),[h,x]),H=ra.useMemo(()=>({reference:S,floating:b}),[S,b]),q=ra.useMemo(()=>{let D={position:a,left:0,top:0};if(!H.floating)return D;let N=aB(H.floating,c.x),w=aB(H.floating,c.y);return s?{...D,transform:"translate("+N+"px, "+w+"px)",...nB(H.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:N,top:w}},[a,s,H.floating,c.x,c.y]);return ra.useMemo(()=>({...c,update:M,refs:O,elements:H,floatingStyles:q}),[c,M,O,H,q])}var TI=(e,t)=>{let a=Q2(e);return{name:a.name,fn:a.fn,options:[e,t]}},wI=(e,t)=>{let a=J2(e);return{name:a.name,fn:a.fn,options:[e,t]}},EI=(e,t)=>({fn:tB(e).fn,options:[e,t]}),AI=(e,t)=>{let a=$2(e);return{name:a.name,fn:a.fn,options:[e,t]}},MI=(e,t)=>{let a=eB(e);return{name:a.name,fn:a.fn,options:[e,t]}};var nS=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,a,o=!0){this.fallbackStore=t,this.componentName=a,this.throwOnMissingTrigger=o}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let a=this.attachedStores.lastIndexOf(t);a!==-1&&this.attachedStores.splice(a,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(a=>{a()}))}openByTrigger(t){let a=this.attachedStore;if(a===null)return;let o;if(t){for(let r=this.attachedStores.length-1;r>=0&&!o;r-=1)o=this.attachedStores[r].context.triggerElements.getById(t);o??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!o&&this.throwOnMissingTrigger)throw new Error(Be(99,this.componentName,t,this.componentName));a.setOpen(!0,ye(ne.imperativeAction,void 0,o))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,ye(ne.imperativeAction))}};var NI=I(k(),1),bB=I(Gr(),1);var xB=I(k(),1);var pB=I(k(),1),DI=I(qp(),1),hB=I(mB(),1);var S9=Bc(19),v9=S9?C9:L9;function sS(e,t,a,o,r){return v9(e,t,a,o,r)}function b9(e,t,a,o,r){let n=pB.useCallback(()=>t(e.getSnapshot(),a,o,r),[e,t,a,o,r]);return(0,DI.useSyncExternalStore)(e.subscribe,n,n)}NV({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let a=new Set;for(let r of e.syncHooks)a.add(r.store);let o=[];for(let r of a)o.push(r.subscribe(t));return()=>{for(let r of o)r()}}),(0,DI.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function C9(e,t,a,o,r){let n=kV();if(!n)return b9(e,t,a,o,r);let i=n.syncIndex;n.syncIndex+=1;let s;return n.didInitialize?(s=n.syncHooks[i],(s.store!==e||s.selector!==t||!Object.is(s.a1,a)||!Object.is(s.a2,o)||!Object.is(s.a3,r))&&(s.store!==e&&(n.didChangeStore=!0),s.store=e,s.selector=t,s.a1=a,s.a2=o,s.a3=r,s.value=t(e.getSnapshot(),a,o,r))):(s={store:e,selector:t,a1:a,a2:o,a3:r,value:t(e.getSnapshot(),a,o,r)},n.syncHooks.push(s)),s.value}function L9(e,t,a,o,r){return(0,hB.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,n=>t(n,a,o,r))}var lS=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let a=this.updateTick;for(let o of this.listeners){if(a!==this.updateTick)return;o(t)}}update(t){for(let a in t)if(!Object.is(this.state[a],t[a])){this.setState({...this.state,...t});return}}set(t,a){Object.is(this.state[t],a)||this.setState({...this.state,[t]:a})}notifyAll(){let t={...this.state};this.setState(t)}use(t,a,o,r){return sS(this,t,a,o,r)}};var Su=I(k(),1);var Ln=class extends lS{constructor(t,a={},o){super(t),this.context=a,this.selectors=o}useSyncedValue(t,a){Su.useDebugValue(t);let o=this;j(()=>{o.state[t]!==a&&o.set(t,a)},[o,t,a])}useSyncedValueWithCleanup(t,a){let o=this;j(()=>(o.state[t]!==a&&o.set(t,a),()=>{o.set(t,void 0)}),[o,t,a])}useSyncedValues(t){let a=this,o=Object.values(t);j(()=>{a.update(t)},[a,...o])}useControlledProp(t,a){Su.useDebugValue(t);let o=this,r=a!==void 0;j(()=>{r&&!Object.is(o.state[t],a)&&o.setState({...o.state,[t]:a})},[o,t,a,r])}select(t,a,o,r){let n=this.selectors[t];return n(this.state,a,o,r)}useState(t,a,o,r){return Su.useDebugValue(t),sS(this,this.selectors[t],a,o,r)}useContextCallback(t,a){Su.useDebugValue(t);let o=W(a??Oe);this.context[t]=o}useStateSetter(t){let a=Su.useRef(void 0);return a.current===void 0&&(a.current=o=>{this.set(t,o)}),a.current}observe(t,a){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return a(r,r,this),this.subscribe(n=>{let i=o(n);if(!Object.is(r,i)){let s=r;r=i,a(i,s,this)}})}};var uS=I(k(),1);function gB(){let[,e]=uS.useState({});return uS.useCallback(()=>{e({})},[])}var R9={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Bs=class extends Ln{constructor(t){let{syncOnly:a,nested:o,onOpenChange:r,triggerElements:n,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:A2(),nested:o,triggerElements:n},R9),this.syncOnly=a}syncOpenEvent=(t,a)=>{(!t||!this.state.open||a!=null&&qV(a))&&(this.context.dataRef.current.openEvent=t?a:void 0)};dispatchOpenChange=(t,a)=>{this.syncOpenEvent(t,a.event);let o={open:t,reason:a.reason,nativeEvent:a.event,nested:this.context.nested,triggerElement:a.trigger};this.context.events.emit("openchange",o)};setOpen=(t,a)=>{if(this.syncOnly){this.context.onOpenChange?.(t,a);return}this.dispatchOpenChange(t,a),this.context.onOpenChange?.(t,a)}};function yB(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:r,nested:n,onOpenChange:i}=e,s=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=i,f=xB.useRef(null);o===void 0&&f.current===null&&(f.current=new Bs({open:s,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:n}));let m=o??f.current;return t.useSyncedValue("floatingId",r),j(()=>{let p={open:s,floatingId:r,referenceElement:l,floatingElement:u};Te(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[s,r,l,u,m]),m.context.onOpenChange=d,m.context.nested=n,m}var OI=I(k(),1);function Ao(e,t=!1,a=!1,o=!1){let[r,n]=OI.useState(e&&t?"idle":void 0),[i,s]=OI.useState(e&&!o);return e&&!i&&(s(!0),n("starting")),!e&&i&&r!=="ending"&&!a&&n("ending"),!e&&!i&&r==="ending"&&n(void 0),j(()=>{if(!e&&i&&r!=="ending"&&a){let l=gr.request(()=>{n("ending")});return()=>{gr.cancel(l)}}},[e,i,r,a]),j(()=>{if(!e||t)return;let l=gr.request(()=>{n(void 0)});return()=>{gr.cancel(l)}},[t,e]),j(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let l=gr.request(()=>{n("idle")});return()=>{gr.cancel(l)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}var SB=I(k(),1);var kI=I(Gr(),1);var cS=null;function I9(e){if(!cS){let t=[];cS=t,queueMicrotask(()=>{cS=null,kI.flushSync(()=>{for(let a of t)a()})})}cS.push(e)}function Ef(e,t=!1,a=!1){let o=so();return W((r,n=null)=>{o.cancel();let i=Fr(e);if(i==null)return;let s=i,l=()=>{if(!a){kI.flushSync(r);return}I9(()=>{n?.aborted||r()})};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(s.getAnimations().map(c=>c.finished)).then(()=>{n?.aborted||l()},()=>{if(n?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=Ap;if(!s.hasAttribute(c)){o.request(u);return}let d=new MutationObserver(()=>{s.hasAttribute(c)||(d.disconnect(),u())});d.observe(s,{attributes:!0,attributeFilter:[c]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(u)})}function Ya(e){let{enabled:t=!0,open:a,ref:o,batch:r=!1,onComplete:n}=e,i=W(n),s=Ef(o,a,r);SB.useEffect(()=>{if(!t)return;let l=new AbortController;return s(i,l.signal),()=>{l.abort()}},[t,a,i,s])}var fS={tabIndex:-1,[Tp]:""};function CB(e,t=!1){let a=ks(),o=Ns()!=null,r=tt(()=>e(a,o)).current;return yB({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:r.setOpen}),r}function LB({handle:e,store:t}){return j(()=>e.attachStore(t),[e,t]),null}function vB(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function T9(e,t){let a=NI.useRef(null);return W(o=>{let r=a.current;if(r!==null){if(r.element===o&&r.store===t&&r.id===e)return;a.current=null;let n=r.store;n.context.triggerElements.getById(r.id)===r.element&&(n.context.triggerElements.delete(r.id),vB(n))}o!==null&&e!==void 0&&(a.current={store:t,id:e,element:o},t.context.triggerElements.add(e,o),vB(t))})}function w9(e,t,a,o=!1){let r=e.preventUnmountingOnClose;t?r=!1:o&&(r=!0);let n=a?.id??null,i=e.activeTriggerId,s=e.activeTriggerElement;return(n||t)&&(i=n,s=a??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:i,activeTriggerElement:s}}function E9(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function RB(e,t,a,o={}){let r=a.reason,n=r===ne.triggerHover,i=t&&r===ne.triggerFocus,s=!t&&(r===ne.triggerPress||r===ne.escapeKey),l=E9(a);if(e.context.onOpenChange?.(t,a),a.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,a);let u=()=>{let c=w9(e.state,t,a.trigger,l()),d={...o.extraState,...c};i?d.instantType="focus":s?d.instantType="dismiss":n&&(d.instantType=void 0),e.update(d)};n?bB.flushSync(u):u()}function IB(e,t,a,o){let r=a.useState("isMountedByTrigger",e),n=T9(e,a),i=W(l=>{let u=a.select("open"),c=a.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?o:null};a.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...o};a.update(d)}}),s=W(l=>{n(l),l&&i(l)});return j(()=>(s(t.current),()=>s(null)),[s,t,a,e]),j(()=>{if(r){let l={activeTriggerElement:t.current,...o};a.update(l)}},[r,a,t,...Object.values(o)]),{registerTrigger:s,isMountedByThisTrigger:r}}function TB(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=NI.useRef(null),r=e.useState("open"),n=e.useState("triggerCount"),i=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");j(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)o.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m;break}u.activeTriggerId===void 0&&(o.current===c?d=c:o.current=null)}}else o.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&a&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=ye(ne.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,i,s,a])}function wB(e,t,a,o){let{mounted:r,setMounted:n,transitionStatus:i}=Ao(e,!1,!1,o),s=t.useState("preventUnmountingOnClose"),l=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:l});let u=W(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return Ya({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:i}}function EB(e,t){e.useSyncedValues(t),j(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}var vu=class{constructor(){this.idMap=new Map}add(t,a){this.idMap.set(t,a)}delete(t){this.idMap.delete(t)}hasElement(t){for(let a of this.idMap.values())if(a===t)return!0;return!1}hasMatchingElement(t){for(let a of this.idMap.values())if(t(a))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function MB(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Bs({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}var Gp=e=>e.triggerIdProp??e.activeTriggerId,VI=e=>e.openProp??e.open,AB=e=>(e.popupElement?.id??e.floatingId)||void 0;function PB(e,t){return t!==void 0&&VI(e)&&Gp(e)===t}function A9(e,t){return PB(e,t)?!0:t!==void 0&&VI(e)&&Gp(e)==null&&e.triggerCount===1}var DB={open:VI,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Gp,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:AB,isTriggerActive:(e,t)=>t!==void 0&&Gp(e)===t,isOpenedByTrigger:(e,t)=>PB(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Gp(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>A9(e,t)?AB(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var BI=I(k(),1),OB=I(qp(),1);function kB(e){let t=BI.useCallback(o=>e===void 0?Oe:e.subscribeStore(o),[e]),a=BI.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,OB.useSyncExternalStore)(t,a,()=>e?.serverStore)}function FI(e){let{open:t=!1,onOpenChange:a,elements:o={}}=e,r=ks(),n=Ns()!=null,i=tt(()=>new Bs({open:t,transitionStatus:void 0,onOpenChange:a,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new vu,floatingId:r,syncOnly:!1,nested:n})).current;return j(()=>{let s={open:t,floatingId:r};o.reference!==void 0&&(s.referenceElement=o.reference,s.domReferenceElement=Te(o.reference)?o.reference:null),o.floating!==void 0&&(s.floatingElement=o.floating),i.update(s)},[t,r,o.reference,o.floating,i]),i.context.onOpenChange=a,i.context.nested=n,i}function NB(e){return M9(e,e.rootContext)}function M9(e,t){let{nodeId:a,externalTree:o}=e,r=t.useState("referenceElement"),n=t.useState("floatingElement"),i=t.useState("domReferenceElement"),s=t.useState("open"),l=t.useState("floatingId"),[u,c]=Wa.useState(null),[d,f]=Wa.useState(void 0),[m,p]=Wa.useState(void 0),y=Wa.useRef(null),v=vr(o),g=Wa.useMemo(()=>({reference:r,floating:n,domReference:i}),[r,n,i]),h=iB({...e,elements:{...g,...u&&{reference:u}}}),x=Te(d)?d:null,S=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?i:x),t.useSyncedValue("floatingElement",S);let b=Wa.useCallback(A=>{let V=Te(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(V),h.refs.setReference(V)},[h.refs]),R=Wa.useCallback(A=>{(Te(A)||A===null)&&(y.current=A,f(A)),(Te(h.refs.reference.current)||h.refs.reference.current===null||A!==null&&!Te(A))&&h.refs.setReference(A)},[h.refs,f]),L=Wa.useCallback(A=>{p(A),h.refs.setFloating(A)},[h.refs]),C=Wa.useMemo(()=>({...h.refs,setReference:R,setFloating:L,setPositionReference:b,domReference:y}),[h.refs,R,L,b]),E=Wa.useMemo(()=>({...h.elements,domReference:i}),[h.elements,i]),T=Wa.useMemo(()=>({...h,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:C,elements:E,nodeId:a,rootStore:t}),[h,C,E,a,t,s,l]);return j(()=>{i&&(y.current=i)},[i]),j(()=>{t.context.dataRef.current.floatingContext=T;let A=v?.nodesRef.current.find(V=>V.id===a);A&&(A.context=T)}),Wa.useMemo(()=>({...h,context:T,refs:C,elements:E,rootStore:t}),[h,C,E,T,t])}var Rn=I(k(),1);var zI=at.os.mac&&at.engine.webkit;function HI(e,t={}){let{enabled:a=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:n,dataRef:i}=r.context,s=Rn.useRef(!1),l=Rn.useRef(null),u=Rn.useRef(!0),c=Ze();Rn.useEffect(()=>{let f=r.select("domReferenceElement");if(!a)return;let m=ze(f);function p(){let g=r.select("domReferenceElement");!r.select("open")&&He(g)&&g===Ft(ve(g))&&(s.current=!0,l.current=g)}function y(){u.current=!0}function v(){u.current=!1}return Ga(Le(m,"blur",p),zI&&Le(m,"keydown",y,!0),zI&&Le(m,"pointerdown",v,!0))},[r,a]),Rn.useEffect(()=>{if(!a)return;function f(m){if(m.reason===ne.triggerPress||m.reason===ne.escapeKey){let p=r.select("domReferenceElement");Te(p)&&(l.current=p,s.current=!0)}}return n.on("openchange",f),()=>{n.off("openchange",f)}},[n,a,r]);let d=Rn.useMemo(()=>{function f(){s.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(s.current){if(l.current===p)return;f()}let y=nt(m.nativeEvent);if(Te(y)){if(zI&&!m.relatedTarget){if(!u.current&&!fu(y))return}else if(!ZV(y))return}let v=Ms(m.relatedTarget,r.context.triggerElements),{nativeEvent:g,currentTarget:h}=m,x=typeof o=="function"?o():o;if(r.select("open")&&v||x===0||x===void 0){r.setOpen(!0,ye(ne.triggerFocus,g,h));return}c.start(x,()=>{s.current||r.setOpen(!0,ye(ne.triggerFocus,g,h))})},onBlur(m){f();let p=m.relatedTarget,y=m.nativeEvent,v=Te(p)&&p.hasAttribute(si("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let g=r.select("domReferenceElement"),h=Ft(ve(g));!p&&h===g||ce(i.current.floatingContext?.refs.floating.current,h)||ce(g,h)||v||Ms(p??h,r.context.triggerElements)||r.setOpen(!1,ye(ne.triggerFocus,y))})}}},[i,o,r,c]);return Rn.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var UI=I(k(),1);var _I=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new qa,this.restTimeout=new qa,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},dS=new WeakMap;function Af(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&dS.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),dS.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function mS(e,t){let{scopeElement:a,referenceElement:o,floatingElement:r}=t,n=dS.get(a);n&&n!==e&&Af(n),Af(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=a,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,dS.set(a,e),a.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Mf(e){let t=e.context.dataRef.current,a=tt(()=>t.hoverInteractionState??_I.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=a),Sf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function qI(e,t={}){let{enabled:a=!0,closeDelay:o=0,nodeId:r}=t,n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),l=n.useState("domReferenceElement"),{dataRef:u}=n.context,c=vr(),d=Ns(),f=Mf(n),m=Ze(),p=W(()=>_y(u.current.openEvent?.type,f.interactedInside)),y=W(()=>QV(u.current.openEvent?.type)),v=W(()=>{Af(f)});j(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,v())},[i,f,v]),UI.useEffect(()=>v,[v]),j(()=>{if(a&&i&&f.handleCloseOptions?.blockPointerEvents&&y()&&Te(l)&&s){let g=l,h=s,x=ve(s),S=c?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;S&&(S.style.pointerEvents="");let b=f.pointerEventsScopeElement!==h?f.pointerEventsScopeElement:null,R=S!==h?S:null,L=f.handleCloseOptions?.getScope?.()??b??R??g.closest("[data-rootownerid]")??x.body;return mS(f,{scopeElement:L,referenceElement:g,floatingElement:h}),()=>{v()}}},[a,i,l,s,f,y,c,d,v]),UI.useEffect(()=>{if(!a)return;function g(){return!!(c&&d&&Sr(c.nodesRef.current,d).length>0)}function h(C){let E=Vr(o,"close",f.pointerType),T=()=>{n.setOpen(!1,ye(ne.triggerHover,C)),c?.events.emit("floating.closed",C)};E?f.openChangeTimeout.start(E,T):(f.openChangeTimeout.clear(),T())}function x(C){let E=nt(C);if(!aI(E)){f.interactedInside=!1;return}f.interactedInside=E?.closest("[aria-haspopup]")!=null}function S(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",R),v()}function b(C){if(g()&&c){c.events.on("floating.closed",R);return}if(Ms(C.relatedTarget,n.context.triggerElements))return;let E=u.current.floatingContext?.nodeId??r,T=C.relatedTarget;if(!(c&&E&&Te(T)&&Sr(c.nodesRef.current,E,!1).some(V=>ce(V.context?.elements.floating,T)))){if(f.handler){f.handler(C);return}v(),y()&&!p()&&h(C)}}function R(C){!c||!d||g()||m.start(0,()=>{c.events.off("floating.closed",R),n.setOpen(!1,ye(ne.triggerHover,C)),c.events.emit("floating.closed",C)})}let L=s;return Ga(L&&Le(L,"mouseenter",S),L&&Le(L,"mouseleave",b),L&&Le(L,"pointerdown",x,!0),()=>{c?.events.off("floating.closed",R)})},[a,s,n,u,o,r,y,p,v,f,c,d,m])}var Fs=I(k(),1),VB=I(Gr(),1);var P9={current:null};function GI(e,t={}){let{enabled:a=!0,delay:o=0,handleClose:r=null,mouseOnly:n=!1,restMs:i=0,move:s=!0,triggerElementRef:l=P9,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,y="rootStore"in e?e.rootStore:e,{dataRef:v,events:g}=y.context,h=vr(u),x=Mf(y),S=Fs.useRef(!1),b=pt(r),R=pt(o),L=pt(i),C=pt(a),E=pt(m),T=pt(f),A=W(()=>_y(v.current.openEvent?.type,x.interactedInside)),V=W(()=>E.current?.()!==!1),M=W((H,q,D)=>{let N=y.context.triggerElements;if(N.hasElement(q))return!H||!ce(H,q);if(!Te(D))return!1;let w=D;return N.hasMatchingElement(z=>ce(z,w))&&(!H||!ce(H,w))}),F=W(()=>{if(!x.handler)return;ve(y.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),O=W(()=>{Af(x)});return c&&(x.handleCloseOptions=r?.__options),Fs.useEffect(()=>F,[F]),Fs.useEffect(()=>{if(!a)return;function H(q){q.open?S.current=!1:(S.current=q.reason===ne.triggerHover,F(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return g.on("openchange",H),()=>{g.off("openchange",H)}},[a,g,x,F]),Fs.useEffect(()=>{if(!a)return;function H(U,X=!0){let P=Vr(R.current,"close",x.pointerType);P?x.openChangeTimeout.start(P,()=>{y.setOpen(!1,ye(ne.triggerHover,U)),h?.events.emit("floating.closed",U)}):X&&(x.openChangeTimeout.clear(),y.setOpen(!1,ye(ne.triggerHover,U)),h?.events.emit("floating.closed",U))}let q=l.current??(c?y.select("domReferenceElement"):null);if(!Te(q))return;function D(U){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,n&&!Yo(x.pointerType))return;let X=oI(L.current),P=Vr(R.current,"open",x.pointerType),_=nt(U),B=U.currentTarget??null,J=y.select("domReferenceElement"),Y=B;if(Te(_)&&!y.context.triggerElements.hasElement(_)){for(let pe of y.context.triggerElements.elements())if(ce(pe,_)){Y=pe;break}}Te(B)&&Te(J)&&!y.context.triggerElements.hasElement(B)&&ce(B,J)&&(Y=J);let ee=Y==null?!1:M(J,Y,_),se=y.select("open"),ue=T.current?.()??y.select("transitionStatus")==="ending",$=!se&&ue&&S.current,te=!ee&&Te(Y)&&Te(J)&&ce(J,Y)&&$,me=X>0&&!P,he=ee&&(se||$)||te,Ee=!se||ee;if(he){V()&&y.setOpen(!0,ye(ne.triggerHover,U,Y));return}me||(P?x.openChangeTimeout.start(P,()=>{Ee&&V()&&y.setOpen(!0,ye(ne.triggerHover,U,Y))}):Ee&&V()&&y.setOpen(!0,ye(ne.triggerHover,U,Y)))}function N(U){if(A()){O();return}F();let X=y.select("domReferenceElement"),P=ve(X);x.restTimeout.clear(),x.restTimeoutPending=!1;let _=v.current.floatingContext??d?.();if(Ms(U.relatedTarget,y.context.triggerElements))return;if(b.current&&_){y.select("open")||x.openChangeTimeout.clear();let J=l.current;x.handler=b.current({..._,tree:h,x:U.clientX,y:U.clientY,onClose(){O(),F(),C.current&&!A()&&J===y.select("domReferenceElement")&&H(U,!0)}}),P.addEventListener("mousemove",x.handler),x.handler(U);return}(x.pointerType==="touch"?!ce(y.select("floatingElement"),U.relatedTarget):!0)&&H(U)}function w(U){ce(q,U.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let z=p?Le(q,"mouseout",w):void 0;return s?Ga(Le(q,"mousemove",D,{once:!0}),Le(q,"mouseenter",D),Le(q,"mouseleave",N),z):Ga(Le(q,"mouseenter",D),Le(q,"mouseleave",N),z)},[F,O,v,R,y,a,b,x,c,M,A,n,s,L,l,h,C,d,T,V,p]),Fs.useMemo(()=>{if(!a)return;function H(q){x.pointerType=q.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(q){let{nativeEvent:D}=q,N=q.currentTarget,w=y.select("domReferenceElement"),z=y.select("open"),U=M(w,N,q.target);if(n&&!Yo(x.pointerType))return;if(z&&U&&x.handleCloseOptions?.blockPointerEvents){let _=y.select("floatingElement");if(_){let B=x.handleCloseOptions?.getScope?.()??N.ownerDocument.body;mS(x,{scopeElement:B,referenceElement:N,floatingElement:_})}}let X=oI(L.current);if(z&&!U||X===0||!U&&x.restTimeoutPending&&q.movementX**2+q.movementY**2<2)return;x.restTimeout.clear();function P(){if(x.restTimeoutPending=!1,A())return;let _=y.select("open");!x.blockMouseMove&&(!_||U)&&V()&&y.setOpen(!0,ye(ne.triggerHover,D,N))}x.pointerType==="touch"?VB.flushSync(()=>{P()}):U&&z?P():(x.restTimeoutPending=!0,x.restTimeout.start(X,P))}}},[a,x,A,M,n,y,L,V])}var Na=I(k(),1);var D9="Escape";function BB(e){return at.engine.webkit&&e.movementX===0&&e.movementY===0}function hS(e,t,a){switch(e){case"vertical":return t;case"horizontal":return a;default:return t||a}}function pS(e,t){return hS(t,e===$R||e===Vy,e===wp||e===Ep)}function jI(e,t,a){return hS(t,e===Vy,a?e===wp:e===Ep)||e==="Enter"||e===" "||e===""}function O9(e,t,a){return hS(t,a?e===wp:e===Ep,e===Vy)}function k9(e,t,a,o){let r=a?e===Ep:e===wp,n=e===$R;return t==="both"||t==="horizontal"&&o?e===D9:hS(t,r,n)}function XI(e,t){let{listRef:a,activeIndex:o,onNavigate:r=()=>{},enabled:n=!0,selectedIndex:i=null,allowEscape:s=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:y=void 0,orientation:v="vertical",parentOrientation:g,id:h,resetOnPointerLeave:x=!0,externalTree:S,grid:b}=t,R=b!=null,L="rootStore"in e?e.rootStore:e,C=L.useState("open"),E=L.useState("floatingElement"),T=L.useState("domReferenceElement"),A=L.context.dataRef,V=du(E),M=Pp(T),F=pt(V),O=Ns(),H=vr(S),q=Na.useRef(f),D=Na.useRef(i??-1),N=Na.useRef(null),w=Na.useRef(!0),z=W(ae=>{r(D.current===-1?null:D.current,ae)}),U=Na.useRef(!!E),X=Na.useRef(C),P=Na.useRef(!1),_=Na.useRef(!1),B=Na.useRef(null),J=pt(y),Y=pt(C),ee=pt(i),se=pt(x),ue=so(),$=so(),te=W(()=>{function ae(ie){d?H?.events.emit("virtualfocus",ie):B.current=If(ie,{sync:P.current,preventScroll:!0})}let fe=a.current[D.current],K=_.current;fe&&ae(fe),(P.current?ie=>ie():ie=>ue.request(ie))(()=>{let ie=a.current[D.current]||fe;if(!ie)return;fe||ae(ie),le&&(K||!w.current)&&ie.scrollIntoView?.({block:"nearest",inline:"nearest"})})});j(()=>{A.current.orientation=v},[A,v]),j(()=>{n&&(C&&E?(D.current=i??-1,q.current&&i!=null&&(_.current=!0,z())):U.current&&(D.current=-1,z()))},[n,C,E,i,z]),j(()=>{if(n){if(!C){P.current=!1;return}if(E)if(o==null){if(P.current=!1,ee.current!=null)return;if(U.current&&(D.current=-1,te()),(!X.current||!U.current)&&q.current&&(N.current!=null||q.current===!0&&N.current==null)){let ae=0,fe=()=>{a.current[0]==null?(ae<2&&(ae?G=>$.request(G):queueMicrotask)(fe),ae+=1):(D.current=N.current==null||jI(N.current,v,c)||u?mu(a):Rf(a),N.current=null,z())};fe()}}else Os(a.current,o)||(D.current=o,te(),_.current=!1)}},[n,C,E,o,ee,u,a,v,c,z,te,$]),j(()=>{if(!n||E||!H||d||!U.current)return;let ae=H.nodesRef.current,fe=ae.find(ie=>ie.id===O)?.context?.elements.floating,K=Ft(ve(T??fe??null)),G=ae.some(ie=>ie.context&&ce(ie.context.elements.floating,K));fe&&!G&&w.current&&fe.focus({preventScroll:!0})},[n,E,T,H,O,d]),j(()=>{X.current=C,U.current=!!E}),j(()=>{C||(N.current=null,q.current=f)},[C,f]);let me=o!=null,he=W(ae=>{if(!Y.current)return;let fe=a.current.indexOf(ae.currentTarget);fe!==-1&&(D.current!==fe||o!==fe)&&(D.current=fe,z(ae))}),Ee=W(()=>g??H?.nodesRef.current.find(ae=>ae.id===O)?.context?.dataRef?.current.orientation),pe=W(()=>mu(a,J.current)),Re=W(ae=>{if(w.current=!1,P.current=!0,ae.which===229||!Y.current&&ae.currentTarget===F.current)return;if(u&&k9(ae.key,v,c,R)){pS(ae.key,Ee())||Io(ae),L.setOpen(!1,ye(ne.listNavigation,ae.nativeEvent)),He(T)&&(d?H?.events.emit("virtualfocus",T):T.focus());return}let fe=D.current,K=mu(a,y),G=Rf(a,y);if(M||(ae.key==="Home"&&(Io(ae),D.current=K,z(ae)),ae.key==="End"&&(Io(ae),D.current=G,z(ae))),b!=null){let ie=b(ae,D.current,a,v,l,c,y,K,G);if(ie!=null&&(D.current=ie,z(ae)),v==="both")return}if(pS(ae.key,v)){if(Io(ae),C&&!d&&Ft(ae.currentTarget.ownerDocument)===ae.currentTarget){D.current=jI(ae.key,v,c)?K:G,z(ae);return}jI(ae.key,v,c)?l?fe>=G?s&&fe!==a.current.length?D.current=-1:(P.current=!1,D.current=K):D.current=yr(a.current,{startingIndex:fe,disabledIndices:y}):D.current=Math.min(G,yr(a.current,{startingIndex:fe,disabledIndices:y})):l?fe<=K?s&&fe!==-1?D.current=a.current.length:(P.current=!1,D.current=G):D.current=yr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y}):D.current=Math.max(K,yr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y})),Os(a.current,D.current)&&(D.current=-1),z(ae)}}),le=Na.useMemo(()=>({onFocus(fe){P.current=!0,he(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){BB(fe)||(P.current=!0,_.current=!1,m&&he(fe))},onPointerLeave(fe){if(!Y.current||!w.current||fe.pointerType==="touch")return;P.current=!0;let K=fe.relatedTarget;if(!(!m||a.current.includes(K))&&se.current&&(B.current?.(),B.current=null,D.current=-1,z(fe),!d)){let G=F.current,ie=Ft(ve(G));G&&ce(G,ie)&&G.focus({preventScroll:!0})}}}),[he,Y,F,m,a,z,se,d]),Ie=Na.useMemo(()=>d&&C&&me&&{"aria-activedescendant":`${h}-${o}`},[d,C,me,h,o]),ke=Na.useMemo(()=>({...M?{}:Ie,onKeyDown(ae){if(ae.key==="Tab"&&ae.shiftKey&&C&&!d){let fe=nt(ae.nativeEvent);if(fe&&!ce(F.current,fe))return;Io(ae),L.setOpen(!1,ye(ne.focusOut,ae.nativeEvent)),He(T)&&T.focus();return}Re(ae)},onPointerMove(ae){BB(ae)||(w.current=!0)}}),[Ie,Re,F,M,L,C,d,T]),Pe=Na.useMemo(()=>{function ae(G){L.setOpen(!0,ye(ne.listNavigation,G.nativeEvent,G.currentTarget))}function fe(G){f==="auto"&&As(G.nativeEvent)&&(q.current=!d)}function K(G){q.current=f,f==="auto"&&vf(G.nativeEvent)&&(q.current=!0)}return{onKeyDown(G){let ie=L.select("open");w.current=!1;let Ne=G.key.startsWith("Arrow"),Nt=O9(G.key,Ee(),c),Qt=pS(G.key,v),Et=(u?Nt:Qt)||G.key==="Enter"||G.key.trim()==="";if(d&&ie)return Re(G);if(!(!ie&&!p&&Ne)){if(Et){let bt=pS(G.key,Ee());N.current=u&&bt?null:G.key}if(u){Nt&&(Io(G),ie?(D.current=pe(),z(G)):ae(G));return}Qt&&(ee.current!=null&&(D.current=ee.current),Io(G),!ie&&p?ae(G):Re(G),ie&&z(G))}},onFocus(G){L.select("open")&&!d&&(D.current=-1,z(G))},onPointerDown:K,onPointerEnter:K,onMouseDown:fe,onClick:fe}},[Re,f,pe,u,z,L,p,v,Ee,c,ee,d]),ut=Na.useMemo(()=>({...Ie,...Pe}),[Ie,Pe]);return Na.useMemo(()=>n?{reference:ut,floating:ke,item:le,trigger:Pe}:{},[n,ut,ke,Pe,le])}var bu=I(k(),1);function YI(e,t){let{listRef:a,elementsRef:o,activeIndex:r,onMatch:n,disabledIndices:i,onTyping:s,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=Ze(),p=bu.useRef(""),y=bu.useRef(c??r??-1),v=bu.useRef(null),g=W(S=>{function b(F){return o?.current[F]}function R(F){let O=b(F);return O&&!pu(O)||O?.matches(":disabled")?!1:i==null||!ii(bo,F,i)}function L(F,O,H=0){if(F.length===0)return-1;let q=(H%F.length+F.length)%F.length,D=O.toLowerCase();for(let N=0;N<F.length;N+=1){let w=(q+N)%F.length;if(!(!F[w]?.toLowerCase().startsWith(D)||!R(w)))return w}return-1}let C=a.current;if(p.current.length>0&&S.key===" "&&(Io(S),s?.(!0)),p.current.length>0&&p.current[0]!==" "&&L(C,p.current)===-1&&S.key!==" "&&s?.(!1),C==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Io(S),s?.(!0));let E=p.current==="";E&&(y.current=c??r??-1),C.every((F,O)=>F&&R(O)?F[0]?.toLowerCase()!==F[1]?.toLowerCase():!0)&&p.current===S.key&&(p.current="",y.current=v.current),p.current+=S.key,m.start(u,()=>{p.current="",y.current=v.current,s?.(!1)});let V=((E?c??r??-1:y.current)??0)+1,M=L(C,p.current,V);M!==-1?(n?.(M),v.current=M):S.key!==" "&&(p.current="",s?.(!1))}),h=W(S=>{let b=S.relatedTarget,R=d.select("domReferenceElement"),L=d.select("floatingElement");ce(R,b)||ce(L,b)||(m.clear(),p.current="",y.current=v.current,s?.(!1))});j(()=>{!f&&c!==null||(m.clear(),v.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let x=bu.useMemo(()=>({onKeyDown:g,onBlur:h}),[g,h]);return bu.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}var FB=.1,N9=FB*FB,xt=.5;function gS(e,t,a,o,r,n){return o>=t!=n>=t&&e<=(r-a)*(t-o)/(n-o)+a}function xS(e,t,a,o,r,n,i,s,l,u){let c=!1;return gS(e,t,a,o,r,n)&&(c=!c),gS(e,t,r,n,i,s)&&(c=!c),gS(e,t,i,s,l,u)&&(c=!c),gS(e,t,l,u,a,o)&&(c=!c),c}function V9(e,t,a){return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function yS(e,t,a,o,r,n){let i=Math.min(a,r),s=Math.max(a,r),l=Math.min(o,n),u=Math.max(o,n);return e>=i&&e<=s&&t>=l&&t<=u}function WI(e={}){let{blockPointerEvents:t=!1}=e,a=new qa,o=({x:r,y:n,placement:i,elements:s,onClose:l,nodeId:u,tree:c})=>{let d=i?.split("-")[0],f=!1,m=null,p=null,y=typeof performance<"u"?performance.now():0;function v(h,x){let S=performance.now(),b=S-y;if(m===null||p===null||b===0)return m=h,p=x,y=S,!1;let R=h-m,L=x-p,C=R*R+L*L,E=b*b*N9;return m=h,p=x,y=S,C<E}function g(){a.clear(),l()}return function(x){a.clear();let S=s.domReference,b=s.floating;if(!S||!b||d==null||r==null||n==null)return;let{clientX:R,clientY:L}=x,C=nt(x),E=x.type==="mouseleave",T=ce(b,C),A=ce(S,C);if(T&&(f=!0,!E))return;if(A&&(f=!1,!E)){f=!0;return}if(E&&Te(x.relatedTarget)&&ce(b,x.relatedTarget))return;function V(){return!!(c&&Sr(c.nodesRef.current,u).length>0)}function M(){V()||g()}if(V())return;let F=S.getBoundingClientRect(),O=b.getBoundingClientRect(),H=r>O.right-O.width/2,q=n>O.bottom-O.height/2,D=O.width>F.width,N=O.height>F.height,w=(D?F:O).left,z=(D?F:O).right,U=(N?F:O).top,X=(N?F:O).bottom;if(d==="top"&&n>=F.bottom-1||d==="bottom"&&n<=F.top+1||d==="left"&&r>=F.right-1||d==="right"&&r<=F.left+1){M();return}let P=!1;switch(d){case"top":P=yS(R,L,w,F.top+1,z,O.bottom-1);break;case"bottom":P=yS(R,L,w,O.top+1,z,F.bottom-1);break;case"left":P=yS(R,L,O.right-1,X,F.left+1,U);break;case"right":P=yS(R,L,F.right-1,X,O.left+1,U);break;default:}if(P)return;if(f&&!V9(R,L,F)){M();return}if(!E&&v(R,L)){M();return}let _=!1;switch(d){case"top":{let B=D?xt/2:xt*4,J=D||H?r+B:r-B,Y=D?r-B:H?r+B:r-B,ee=n+xt+1,se=H||D?O.bottom-xt:O.top,ue=H?D?O.bottom-xt:O.top:O.bottom-xt;_=xS(R,L,J,ee,Y,ee,O.left,se,O.right,ue);break}case"bottom":{let B=D?xt/2:xt*4,J=D||H?r+B:r-B,Y=D?r-B:H?r+B:r-B,ee=n-xt,se=H||D?O.top+xt:O.bottom,ue=H?D?O.top+xt:O.bottom:O.top+xt;_=xS(R,L,J,ee,Y,ee,O.left,se,O.right,ue);break}case"left":{let B=N?xt/2:xt*4,J=N||q?n+B:n-B,Y=N?n-B:q?n+B:n-B,ee=r+xt+1,se=q||N?O.right-xt:O.left,ue=q?N?O.right-xt:O.left:O.right-xt;_=xS(R,L,se,O.top,ue,O.bottom,ee,J,ee,Y);break}case"right":{let B=N?xt/2:xt*4,J=N||q?n+B:n-B,Y=N?n-B:q?n+B:n-B,ee=r-xt,se=q||N?O.left+xt:O.right,ue=q?N?O.left+xt:O.right:O.left+xt;_=xS(R,L,ee,J,ee,Y,se,O.top,ue,O.bottom);break}default:}_?f||a.start(40,M):M()}};return o.__options={...e,blockPointerEvents:t},o}var zB=I(k(),1);var SS=class extends Ln{setState(t){}update(t){}set(t,a){}notifyAll(){}};var HB={...DB,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},vS=class extends Ln{constructor(t,a,o){let r=new vu;super(UB(t,r,a,o),qB(r),HB)}setOpen=(t,a)=>{RB(this,t,a,{extraState:{openChangeReason:a.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ye(ne.triggerPress,t))}};function _B(){let e=new vu,t=new SS(Object.freeze(UB(void 0,e)),Object.freeze(qB(e)),HB);return Object.assign(t,{setOpen:Oe,cancelPendingOpen:Oe})}function UB(e,t,a,o=!1){return{...MB(t,a,o),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function qB(e){return{popupRef:zB.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jp=I(Q(),1),GB=UR(function(t){let{disabled:a=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:n=!1,trackCursorAxis:i="none",actionsRef:s,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=CB((A,V)=>new vS({open:o,openProp:r,activeTriggerId:f,triggerIdProp:d},A,V));p.useControlledProp("openProp",r),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let y=p.useState("open"),v=!a&&y,g=p.useState("activeTriggerId"),h=p.useState("mounted"),x=p.useState("payload");p.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:n,disabled:a}),TB(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:b}=wB(v,p),R=p.useState("isInstantPhase"),L=p.useState("instantType"),C=p.useState("lastOpenChangeReason"),E=Pf.useRef(null);j(()=>{y&&a&&p.setOpen(!1,ye(ne.disabled))},[y,a,p]),j(()=>{b==="ending"&&C===ne.none||b!=="ending"&&R?(L!=="delay"&&(E.current=L),p.set("instantType","delay")):E.current!==null&&(p.set("instantType",E.current),E.current=null)},[b,R,C,L,p]),j(()=>{v&&g==null&&p.set("payload",void 0)},[p,g,v]),Pf.useImperativeHandle(s,()=>({unmount:S,close:()=>p.setOpen(!1,ye(ne.imperativeAction))}),[S,p]);let T=v||h||!a&&i!=="none";return(0,jp.jsxs)(qR.Provider,{value:p,children:[c&&(0,jp.jsx)(LB,{handle:c,store:p}),T&&(0,jp.jsx)(B9,{store:p,disabled:a,trackCursorAxis:i}),typeof m=="function"?m({payload:x}):m]})});function B9({store:e,disabled:t,trackCursorAxis:a}){let o=e.useState("floatingRootContext"),r=Hp(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),n=CI(o,{enabled:!t&&a!=="none",axis:a==="none"?void 0:a}),i=Pf.useMemo(()=>_a(n.reference,r.reference),[n.reference,r.reference]);return EB(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}var CS=I(k(),1);function na(e){return ks(e,"base-ui")}var bS=I(k(),1),KI=bS.createContext(void 0);function jB(){return bS.useContext(KI)}var YB="data-base-ui-tooltip-trigger";function XB(e){if("composedPath"in e){let a=e.composedPath();for(let o=0;o<a.length;o+=1){let r=a[o];if(Te(r))return r}}let t=e.target;return Te(t)?t:null}function F9(e){let t=e;for(;t;){let a=t.closest(`[${YB}]`);if(a)return a;let o=t.getRootNode();t="host"in o&&Te(o.host)?o.host:null}return null}var WB=VV(function(t,a){let{render:o,className:r,style:n,handle:i,payload:s,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=hr(!0),v=kB(i)??p;if(!v)throw new Error(Be(82));let g=na(f),h=v.useState("isTriggerActive",g),x=v.useState("isOpenedByTrigger",g),S=v.useState("floatingRootContext"),b=CS.useRef(null),R=d??0,{registerTrigger:L,isMountedByThisTrigger:C}=IB(g,b,v,{payload:s,closeOnClick:c,closeDelay:R}),E=jB(),{activeIdRef:T,delayRef:A,isInstantPhase:V,hasProvider:M}=nI(S,{open:x}),F=Mf(S);v.useSyncedValue("isInstantPhase",V);let O=v.useState("disabled"),H=l??O,q=pt(H),D=v.useState("trackCursorAxis"),N=v.useState("disableHoverablePopup"),w=CS.useRef(!1),z=Ze(),U=CS.useRef(void 0);function X(){return M&&T.current!=null?0:u??E??600}function P(te){let me=b.current;if(!me||!te)return!1;let he=F9(te);return he!==null&&he!==me&&ce(me,he)}function _(te){let me=P(te);return w.current=me,me&&(F.openChangeTimeout.clear(),F.restTimeout.clear(),F.restTimeoutPending=!1,z.clear()),me}let B=GI(S,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!N&&D!=="both"?WI():null,restMs:X,delay(){return d==null&&M?{close:Vr(A.current,"close")}:{close:R}},triggerElementRef:b,isActiveTrigger:h,isClosing:()=>v.select("transitionStatus")==="ending",shouldOpen(){return!w.current}}),J=HI(S,{enabled:!H}).reference,Y=te=>{let me=w.current,he=XB(te),Ee=_(he),pe=b.current,Re=pe&&he&&ce(pe,he);if(Ee&&v.select("open")&&v.select("lastOpenChangeReason")===ne.triggerHover){v.setOpen(!1,ye(ne.triggerHover,te));return}if(me&&!Ee&&Re&&!q.current&&!v.select("open")&&pe&&Yo(U.current)){let le=()=>{!w.current&&!q.current&&!v.select("open")&&v.setOpen(!0,ye(ne.triggerHover,te,pe))},Ie=X();Ie===0?(z.clear(),le()):z.start(Ie,le)}},ee=v.useState("triggerProps",C);return oe("button",t,{state:{open:x},ref:[a,L,b],props:[B,J,C||D!=="none"?ee:void 0,{onMouseOver(te){Y(te.nativeEvent)},onFocus(te){P(XB(te.nativeEvent))&&te.preventBaseUIHandler()},onMouseLeave(){w.current=!1,z.clear(),U.current=void 0},onPointerEnter(te){U.current=te.pointerType},onPointerDown(te){U.current=te.pointerType,v.set("closeOnClick",c),c&&!v.select("open")&&v.cancelPendingOpen(te.nativeEvent)},onClick(te){c&&!v.select("open")&&v.cancelPendingOpen(te.nativeEvent)},id:g,[Mp]:H?"":void 0,[YB]:H?void 0:""},m],stateAttributesMapping:Fy})});var $B=I(k(),1);var LS=I(k(),1),ZI=LS.createContext(void 0);function KB(){let e=LS.useContext(ZI);if(e===void 0)throw new Error(Be(70));return e}var RS=I(k(),1),ZB=I(Gr(),1);var QB=I(Q(),1),JB=RS.forwardRef(function(t,a){let{children:o,container:r,className:n,render:i,style:s,...l}=t,{node:u,subtree:c}=eS({container:r,ref:a,componentProps:t,elementProps:l});return!c&&!u?null:(0,QB.jsxs)(RS.Fragment,{children:[c,u&&ZB.createPortal(o,u)]})});var QI=I(Q(),1),eF=$B.forwardRef(function(t,a){let{keepMounted:o=!1,...r}=t;return hr().useState("mounted")||o?(0,QI.jsx)(ZI.Provider,{value:o,children:(0,QI.jsx)(JB,{ref:a,...r})}):null});var PS=I(k(),1);var IS=I(k(),1),JI=IS.createContext(void 0);function Df(){let e=IS.useContext(JI);if(e===void 0)throw new Error(Be(71));return e}var Wo=I(k(),1);var TS=I(k(),1),z9=TS.createContext(void 0);function Mo(){return TS.useContext(z9)?.direction??"ltr"}var H9=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=Cn(e,t)||{};if(u==null)return{};let f=Wy(c),m={x:a,y:o},p=Np(r),y=kp(p),v=await i.getDimensions(u),g=p==="y",h=g?"top":"left",x=g?"bottom":"right",S=g?"clientHeight":"clientWidth",b=n.reference[y]+n.reference[p]-m[p]-n.floating[y],R=m[p]-n.reference[p],L=d==="real"?await i.getOffsetParent?.(u):s.floating,C=s.floating[S]||n.floating[y];(!C||!await i.isElement?.(L))&&(C=s.floating[S]||n.floating[y]);let E=b/2-R/2,T=C/2-v[y]/2-1,A=Math.min(f[h],T),V=Math.min(f[x],T),M=A,F=C-v[y]-V,O=C/2-v[y]/2+E,H=Xy(M,O,F),q=!l.arrow&&xr(r)!=null&&O!==H&&n.reference[y]/2-(O<M?A:V)-v[y]/2<0,D=q?O<M?O-M:O-F:0;return{[p]:m[p]+D,data:{[p]:H,centerOffset:O-H-D,...q&&{alignmentOffset:D}},reset:q}}}),tF=(e,t)=>{let{name:a,fn:o}=H9(e);return{name:a,fn:o,options:[e,t]}};var aF={name:"hide",async fn(e){let{width:t,height:a,x:o,y:r}=e.rects.reference,n=t===0&&a===0&&o===0&&r===0,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-a>=0||i.right-t>=0||i.bottom-a>=0||i.left-t>=0||n}}}};var Of={sideX:"left",sideY:"top"};var wS="--available-width",ES="--available-height",oF="--anchor-width",rF="--anchor-height",nF="--transform-origin",iF="--positioner-width",sF="--positioner-height";var uF=wS,cF=ES;function mF(e,t,a){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?a?"inline-start":"inline-end":"right",bottom:"bottom",left:o?a?"inline-end":"inline-start":"left"}[t]}function fF(e,t,a){let{rects:o,placement:r}=e;return{side:mF(t,ja(r),a),align:xr(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function AS(e){return _9(e,NB)}function _9(e,t){let{anchor:a,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:i="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:y,mounted:v,collisionAvoidance:g,shift:h,nodeId:x,adaptiveOrigin:S,lazyFlip:b=!1,externalTree:R}=e,[L,C]=Wo.useState(null);!v&&L!==null&&C(null);let E=g.side||"flip",T=g.align||"flip",A=g.fallbackAxisSide||"end",V=h?.crossAxis??!1,M=h?.rootBoundary,F=typeof a=="function"?a:void 0,O=W(F),H=F?O:a,q=pt(a),D=pt(v),w=Mo()==="rtl",z=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":w?"left":"right","inline-start":w?"right":"left"}[r],U=i==="center"?z:`${z}-${i}`,X=u;typeof X=="number"?X={top:X,right:X,bottom:X,left:X}:X&&(X={top:X.top||0,right:X.right||0,bottom:X.bottom||0,left:X.left||0});let P=1,_=r==="bottom"?P:0,B=r==="top"?P:0,J=r==="right"?P:0,Y=r==="left"?P:0,ee={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:X},se=Wo.useRef(null),ue=pt(n),$=pt(s),te=typeof n!="function"?n:0,me=typeof s!="function"?s:0,he=[];m&&he.push(m),he.push(TI(Ae=>{let Mt=fF(Ae,r,w),Je=typeof ue.current=="function"?ue.current(Mt):ue.current,Vt=typeof $.current=="function"?$.current(Mt):$.current;return{mainAxis:Je,crossAxis:Vt,alignmentAxis:Vt}},[te,me,w,r]));let Ee=T==="none"&&E!=="shift",pe=!Ee&&(c||V||E==="shift"),Re=E==="none"?null:AI({...ee,padding:{top:X.top+P+_,right:X.right+P+Y,bottom:X.bottom+P+B,left:X.left+P+J},mainAxis:!V&&E==="flip",crossAxis:T==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),le=Ee?null:wI({...ee,rootBoundary:M,mainAxis:T!=="none",crossAxis:pe,limiter:c||V?void 0:EI(Ae=>{if(!se.current)return{};let{width:Mt,height:Je}=se.current.getBoundingClientRect(),Vt=wo(ja(Ae.placement)),co=Vt==="y"?Mt:Je,fo=Vt==="y"?X.left+X.right:X.top+X.bottom;return{offset:co/2+fo/2}})},[ee,c,V,M,X,T]);E==="shift"||T==="shift"||i==="center"?he.push(le,Re):he.push(Re,le),he.push(MI({...ee,apply({elements:{floating:Ae},availableWidth:Mt,availableHeight:Je,rects:Vt}){if(!D.current)return;let co=Ae.style;co.setProperty(uF,`${Mt}px`),co.setProperty(cF,`${Je}px`);let fo=ze(Ae).devicePixelRatio||1,{x:Bu,y:xi,width:Qs,height:Ur}=Vt.reference,Ke=(Math.round((Bu+Qs)*fo)-Math.round(Bu*fo))/fo,Pt=(Math.round((xi+Ur)*fo)-Math.round(xi*fo))/fo;co.setProperty(oF,`${Ke}px`),co.setProperty(rF,`${Pt}px`)}}),tF(Ae=>({element:se.current||ve(Ae.elements.floating).createElement("div"),padding:se.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Ae){let{elements:{floating:Mt},middlewareData:Je,placement:Vt,platform:co,rects:fo,y:Bu}=Ae,xi=ja(Vt),Qs=xr(Vt),Ur=wo(xi)==="y",Ke=se.current,Pt=typeof n=="function"?n(fF(Ae,r,w)):n,An;if(!Ke&&Qs&&Math.abs(Ur?Je.shift?.x||0:Je.shift?.y||0)<=1)An=Qs==="start"===(Ur&&co.isRTL?.(Mt)===!0)?"100%":"0%";else{let $s=Ur?Je.arrow?.x||0:Je.arrow?.y||0,ud=Ur?Ke?.clientWidth||0:Ke?.clientHeight||0;An=`${$s+ud/2}px`}let Js=xi==="top"||xi==="left"?`calc(100% + ${Pt}px)`:`${-Pt}px`;return pe&&Ur&&Math.abs(Je.shift?.y||0)>Pt&&(Js=`${fo.reference.y+fo.reference.height/2-Bu}px`),Mt.style.setProperty(nF,Ur?`${An} ${Js}`:`${Js} ${An}`),{}}},aF,S),j(()=>{!v&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,y]);let Ie=Wo.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:ke,elements:Pe,x:ut,y:ae,middlewareData:fe,update:K,placement:G,context:ie,isPositioned:Ne,floatingStyles:Nt}=t({rootContext:y,open:p?v:void 0,placement:U,middleware:he,strategy:o,whileElementsMounted:p?void 0:(...Ae)=>Up(...Ae,Ie),nodeId:x,externalTree:R}),{sideX:Qt,sideY:Et}=fe.adaptiveOrigin||Of,bt=Ne?o:"fixed",Ia=Wo.useMemo(()=>{let Ae;return Ne?S?Ae={position:bt,[Qt]:ut,[Et]:ae}:Ae={...Nt,position:bt}:Ae={position:bt,top:0,left:0},Ae[uF]="100vw",Ae[cF]="100vh",Ne||(Ae.opacity=0),Ae},[S,bt,Qt,ut,Et,ae,Nt,Ne]),Ta=Wo.useRef(null);j(()=>{if(!v)return;let Ae=q.current,Mt=typeof Ae=="function"?Ae():Ae,Vt=(dF(Mt)?Mt.current:Mt)||null||null;Vt!==Ta.current&&(ke.setPositionReference(Vt),Ta.current=Vt)},[v,ke,H,q]),Wo.useEffect(()=>{if(!v)return;let Ae=q.current;typeof Ae!="function"&&dF(Ae)&&Ae.current!==Ta.current&&(ke.setPositionReference(Ae.current),Ta.current=Ae.current)},[v,ke,H,q]),Wo.useEffect(()=>{if(p&&v&&Pe.reference&&Pe.floating)return Up(Pe.reference,Pe.floating,K,Ie)},[p,v,Pe,K,Ie]);let Jt=ja(G),Ba=mF(r,Jt,w),uo=xr(G)||"center",Qo=!!fe.hide?.referenceHidden;j(()=>{b&&v&&Ne&&Jt!==z&&C(Jt)},[b,v,Ne,Jt,z]);let ha=Wo.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),Ht=fe.arrow?.centerOffset!==0;return Wo.useMemo(()=>({positionerStyles:Ia,arrowStyles:ha,arrowRef:se,arrowUncentered:Ht,side:Ba,align:uo,physicalSide:Jt,anchorHidden:Qo,refs:ke,context:ie,isPositioned:Ne,update:K}),[Ia,ha,se,Ht,Ba,uo,Jt,Qo,ke,ie,Ne,K])}function dF(e){return e!=null&&"current"in e}function kf(e){return e==="starting"?L2:We}function MS(e,t,{styles:a,transitionStatus:o,props:r,refs:n,hidden:i,inert:s=!1}){let l={...a};return s&&(l.pointerEvents="none"),oe("div",e,{state:t,ref:n,props:[{role:"presentation",hidden:i,style:l},kf(o),r],stateAttributesMapping:ri})}var pF=I(Q(),1),hF=PS.forwardRef(function(t,a){let{render:o,className:r,anchor:n,positionMethod:i="absolute",side:s="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:y=!1,collisionAvoidance:v=T2,style:g,...h}=t,x=hr(),S=KB(),b=x.useState("open"),R=x.useState("mounted"),L=x.useState("trackCursorAxis"),C=x.useState("disableHoverablePopup"),E=x.useState("floatingRootContext"),T=x.useState("instantType"),A=x.useState("transitionStatus"),V=x.useState("adaptiveOrigin"),M=AS({anchor:n,positionMethod:i,floatingRootContext:E,mounted:R,side:s,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:y,keepMounted:S,collisionAvoidance:v,adaptiveOrigin:V}),F=PS.useMemo(()=>({open:b,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:L!=="none"?"tracking-cursor":T}),[b,M.side,M.align,M.anchorHidden,L,T]),O=MS(t,F,{styles:M.positionerStyles,transitionStatus:A,props:h,refs:[a,x.useStateSetter("positionerElement")],hidden:!R,inert:!b||L==="both"||C});return(0,pF.jsx)(JI.Provider,{value:M,children:O})});var gF=I(k(),1);var xF=gF.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=hr(),{side:l,align:u}=Df(),c=s.useState("open"),d=s.useState("instantType"),f=s.useState("transitionStatus"),m=s.useState("popupProps"),p=s.useState("floatingRootContext"),y=s.useState("disabled"),v=s.useState("closeDelay");Ya({open:c,ref:s.context.popupRef,onComplete(){c&&s.context.onOpenChangeComplete?.(!0)}}),qI(p,{enabled:!y,closeDelay:v});let g=s.useStateSetter("popupElement");return oe("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[a,s.context.popupRef,g],props:[fS,m,kf(f),i],stateAttributesMapping:zy})});var yF=I(k(),1);var SF=yF.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=hr(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Df(),m=s.useState("open"),p=s.useState("instantType");return oe("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[a,l],props:[{style:f,"aria-hidden":!0},i],stateAttributesMapping:ri})});var vF=I(k(),1);var $I=I(Q(),1),bF=function(t){let{delay:a,closeDelay:o,timeout:r=400}=t,n=vF.useMemo(()=>({open:a,close:o}),[a,o]);return(0,$I.jsx)(KI.Provider,{value:a,children:(0,$I.jsx)(rI,{delay:n,timeoutMs:r,children:t.children})})};var DF=I(k(),1);var Va=I(k(),1),AF=I(Gr(),1);function Nf(e){return Bc(19)?e:e?"true":void 0}var CF=I(k(),1);function DS(e){let[t,a]=CF.useState({current:e,previous:null});return Object.is(e,t.current)||a({current:e,previous:t.current}),t.previous}var Bf=I(k(),1);function Vf(e){let t=ma(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=He(e),n=r?e.offsetWidth:a,i=r?e.offsetHeight:o;return(Ds(a)!==n||Ds(o)!==i)&&(a=n,o=i),{width:a,height:o}}var Xp="--popup-width",Yp="--popup-height";function IF(e){let{popupElement:t,positionerElement:a,content:o,mounted:r,onMeasureLayout:n,onMeasureLayoutComplete:i,side:s,direction:l}=e,u=Ef(t,!0),c=so(),d=Bf.useRef(null),f=Bf.useRef(!0),m=Bf.useRef(Oe),p=W(n),y=W(i),v=Bf.useMemo(()=>U9(s,l),[s,l]);j(()=>{if(!r){m.current=Oe,f.current=!0,d.current=null;return}if(!t||!a)return;m.current=RF(t,v),eT(t,"auto");let g=kS(t,"position","static"),h=kS(t,"transform","none"),x=kS(t,"scale","1"),S=RF(a,{[wS]:"max-content",[ES]:"max-content"});function b(){g(),h(),S()}function R(){b(),x()}if(p?.(),f.current||d.current===null){OS(a,"max-content");let T=Vf(t);return d.current=T,OS(a,T),R(),y?.(null,T),f.current=!1,()=>{m.current(),m.current=Oe}}OS(a,"max-content");let L=d.current,C=Vf(t);d.current=C,eT(t,L),R(),y?.(L,C),OS(a,C);let E=new AbortController;return c.request(()=>{eT(t,C),u(()=>{t.style.setProperty(Xp,"auto"),t.style.setProperty(Yp,"auto")},E.signal)}),()=>{E.abort(),c.cancel(),m.current(),m.current=Oe}},[o,t,a,u,c,r,p,y,v])}function U9(e,t){let a=e==="top",o=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!a&&!o?We:{position:"absolute",[a?"bottom":"top"]:"0",[o?"right":"left"]:"0"}}function kS(e,t,a){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,a),()=>{e.style.setProperty(t,o)}}function RF(e,t){let a=[];for(let[o,r]of Object.entries(t))a.push(kS(e,o,r));return a.length?()=>{a.forEach(o=>o())}:Oe}function eT(e,t){let a=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(Xp,a),e.style.setProperty(Yp,o)}function OS(e,t){let a=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(iF,a),e.style.setProperty(sF,o)}var TF={name:"adaptiveOrigin",async fn(e){let{x:t,y:a,rects:{floating:o},elements:{floating:r},platform:n,strategy:i,placement:s}=e,l=ze(r),u=l.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:a,data:Of};let d=await n.getOffsetParent?.(r),f={width:0,height:0};if(i==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let h=ve(r);f={width:h.documentElement.clientWidth,height:h.documentElement.clientHeight}}else await n.isElement?.(d)&&(f=await n.getDimensions(d));let m=ja(s),p=t,y=a;m==="left"&&(p=f.width-(t+o.width)),m==="top"&&(y=f.height-(a+o.height));let v=m==="left"?"right":Of.sideX,g=m==="top"?"bottom":Of.sideY;return{x:p,y,data:{sideX:v,sideY:g}}}};var wF="data-activation-direction";var Ff=I(Q(),1),MF={activationDirection:e=>e?{[wF]:e}:null};function PF(e){let{store:t,side:a,children:o}=e,r=Mo(),n=t.useState("activeTriggerElement"),i=t.useState("activeTriggerId"),s=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=DS(s?n:null),m=X9(i,l),p=Va.useRef(null),[y,v]=Va.useState(null),[g,h]=Va.useState(null),x=Va.useRef(null),S=Va.useRef(null),b=Ef(x,!0),R=so(),L=Va.useRef(null),[C,E]=Va.useState(null),[T,A]=Va.useState(!1);j(()=>(t.set("adaptiveOrigin",TF),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let V=W(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),M=W(N=>{x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),N&&E(N)}),F=W(()=>{L.current?.abort();let N=new AbortController;L.current=N,b(()=>{v(null),E(null),p.current=null},N.signal)}),O=Va.useRef(null);j(()=>{(!s||!u)&&(O.current=null)},[s,u]),j(()=>{if(n&&f&&n!==f&&O.current!==n&&p.current){v(p.current),A(!0);let N=j9(f,n);h(N),O.current=n}},[n,f]),j(()=>{y!=null&&(L.current?.abort(),A(!0),R.request(()=>{AF.flushSync(()=>{A(!1)}),F()}))},[m,y,F,R]),j(()=>{let N=x.current;if(!N)return;let w=ve(N).createElement("div");for(let z of Array.from(N.childNodes))w.appendChild(z.cloneNode(!0));p.current=w});let H=y!=null,q;H?q=(0,Ff.jsxs)(Va.Fragment,{children:[(0,Ff.jsx)("div",{"data-previous":!0,inert:Nf(!0),ref:S,style:{...C?{[Xp]:`${C.width}px`,[Yp]:`${C.height}px`}:null,position:"absolute"},"data-ending-style":T?void 0:""},"previous"),(0,Ff.jsx)("div",{"data-current":!0,ref:x,"data-starting-style":T?"":void 0,children:o},m)]}):q=(0,Ff.jsx)("div",{"data-current":!0,ref:x,children:o},m),j(()=>{let N=S.current;!N||!y||N.replaceChildren(...Array.from(y.childNodes))},[y]),IF({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:V,onMeasureLayoutComplete:M,side:a,direction:r});let D={activationDirection:G9(g),transitioning:H};return{children:q,state:D}}function G9(e){if(e)return`${EF(e.horizontal,5,"right","left")} ${EF(e.vertical,5,"down","up")}`}function EF(e,t,a,o){return e>t?a:e<-t?o:""}function j9(e,t){let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r={x:a.left+a.width/2,y:a.top+a.height/2},n={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:n.x-r.x,vertical:n.y-r.y}}function X9(e,t){let[a,o]=Va.useState(0),r=Va.useRef(e),n=Va.useRef(t),i=Va.useRef(!1);return j(()=>{let s=r.current,l=n.current,u=e!==s,c=t!==l;u?(o(d=>d+1),i.current=!c):i.current&&c&&(o(d=>d+1),i.current=!1),r.current=e,n.current=t},[e,t]),`${e??"current"}-${a}`}var OF=DF.forwardRef(function(t,a){let{render:o,className:r,style:n,children:i,...s}=t,l=hr(),u=Df(),c=l.useState("instantType"),{children:d,state:f}=PF({store:l,side:u.side,children:i}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return oe("div",t,{state:m,ref:a,props:[s,{children:d}],stateAttributesMapping:MF})});var Wp=class extends nS{constructor(){super(_B(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function kF(){return new Wp}var li=I(Q(),1);function NF({delay:e=0,...t}){return(0,li.jsx)(In.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function zf({...e}){return(0,li.jsx)(In.Root,{"data-slot":"tooltip",...e})}function Hf({...e}){return(0,li.jsx)(In.Trigger,{"data-slot":"tooltip-trigger",...e})}function _f({className:e,side:t="top",sideOffset:a=4,align:o="center",alignOffset:r=0,children:n,...i}){return(0,li.jsx)(In.Portal,{children:(0,li.jsx)(In.Positioner,{align:o,alignOffset:r,side:t,sideOffset:a,className:"isolate z-50",children:(0,li.jsxs)(In.Popup,{"data-slot":"tooltip-content",className:re("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[n,(0,li.jsx)(In.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var Cu=I(Q(),1),Y9={running:{Icon:es,cls:"text-info animate-spin",hint:"Running"},queued:{Icon:Lm,cls:"text-warning animate-pulse",hint:"Queued: waiting for a free worker slot"},done:{Icon:Qi,cls:"text-success animate-in zoom-in-50 duration-300",hint:"Done"},failed:{Icon:Ji,cls:"text-destructive animate-in zoom-in-50 duration-300",hint:"Failed: the worker or its model reported an error"},timeout:{Icon:xm,cls:"text-warning animate-in zoom-in-50 duration-300",hint:"Timed out: the worker passed its time limit (30 minutes unless set otherwise) and was stopped; what it had done is kept"},stopped:{Icon:hm,cls:"text-muted-foreground",hint:"Stopped: ended with pitroom stop"}};function VF({state:e,className:t}){let{Icon:a,cls:o,hint:r}=Y9[e];return(0,Cu.jsxs)(zf,{children:[(0,Cu.jsx)(Hf,{render:(0,Cu.jsx)("span",{tabIndex:0,className:"inline-flex rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring"}),children:(0,Cu.jsx)(a,{className:re("size-5 shrink-0",o,t),"aria-label":e})}),(0,Cu.jsx)(_f,{className:"max-w-64",children:r})]})}var BF="data:image/gif;base64,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";var FF="data:image/gif;base64,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";var zF="data:image/gif;base64,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";var Ko=I(Q(),1),Q9={claude:BF,codex:FF,opencode:zF},J9={opencode:"OpenCode",codex:"Codex",claude:"Claude Code"};function HF({backend:e,active:t,className:a}){let o=J9[e];if(!o)return null;let r=t?Q9[e]:void 0;return r?(0,Ko.jsx)("img",{src:r,alt:o,title:o,draggable:!1,className:"size-8 shrink-0 [image-rendering:pixelated]"}):(0,Ko.jsxs)("svg",{viewBox:e==="opencode"?"0 0 512 512":"0 0 24 24",role:"img","aria-label":o,className:re("size-5 shrink-0",e==="opencode"&&"ring-1 ring-foreground/20",a),children:[(0,Ko.jsx)("title",{children:o}),e==="opencode"&&(0,Ko.jsxs)(Ko.Fragment,{children:[(0,Ko.jsx)("rect",{width:"512",height:"512",rx:"96",className:"fill-[#131010]"}),(0,Ko.jsx)("path",{d:"M320 224V352H192V224H320Z",fill:"#5A5858"}),(0,Ko.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384 416H128V96H384V416ZM320 160H192V352H320V160Z",fill:"white"})]}),e==="codex"&&(0,Ko.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e==="claude"&&(0,Ko.jsx)("path",{fill:"#D97757",fillRule:"evenodd",clipRule:"evenodd",d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"})]})}var Hs={};Qa(Hs,{Content:()=>pz,Corner:()=>yz,Root:()=>JF,Scrollbar:()=>mz,Thumb:()=>gz,Viewport:()=>cz});var it=I(k(),1);var NS=I(k(),1),tT=NS.createContext(void 0);function Tn(){let e=NS.useContext(tT);if(e===void 0)throw new Error(Be(53));return e}function zr(e,t,a){if(!e)return 0;let o=getComputedStyle(e),r=`${t}${a==="x"?"Inline":"Block"}`,n=parseFloat(o[`${r}Start`]);return a==="x"&&t==="margin"?n*2:n+parseFloat(o[`${r}End`])}var _F=I(Q(),1),VS="base-ui-disable-scrollbar",ui={className:VS,getElement(e){return(0,_F.jsx)("style",{nonce:e,href:VS,precedence:"base-ui:low",children:`.${VS}{scrollbar-width:none}.${VS}::-webkit-scrollbar{display:none}`})}};var UF="data-has-overflow-x",qF="data-has-overflow-y",GF="data-overflow-x-start",jF="data-overflow-x-end",XF="data-overflow-y-start",YF="data-overflow-y-end";var Uf=e=>t=>t?{[e]:""}:null,zs={hasOverflowX:Uf(UF),hasOverflowY:Uf(qF),overflowXStart:Uf(GF),overflowXEnd:Uf(jF),overflowYStart:Uf(XF),overflowYEnd:Uf(YF),cornerHidden:()=>null};var BS=I(k(),1),e7=BS.createContext(void 0),t7={disableStyleElements:!1};function qf(){return BS.useContext(e7)??t7}var FS="--scroll-area-corner-height",zS="--scroll-area-corner-width";var KF="data-orientation";var QF=I(Q(),1),o7={x:0,y:0},ZF={width:0,height:0},r7={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},n7={x:!0,y:!0,corner:!0},JF=it.forwardRef(function(t,a){let{render:o,className:r,overflowEdgeThreshold:n,style:i,...s}=t,{xStart:l,xEnd:u,yStart:c,yEnd:d}=i7(n),f=na(),m=Ze(),p=Ze(),{nonce:y,disableStyleElements:v}=qf(),[g,h]=it.useState(!1),[x,S]=it.useState(!1),[b,R]=it.useState(!1),[L,C]=it.useState(!1),[E,T]=it.useState(!1),[A,V]=it.useState(ZF),[M,F]=it.useState(ZF),[O,H]=it.useState(r7),[q,D]=it.useState(n7),N=it.useRef(null),w=it.useRef(null),z=it.useRef(null),U=it.useRef(null),X=it.useRef(null),P=it.useRef(null),_=it.useRef(null),B=it.useRef(null),J=it.useRef(0),Y=it.useRef(0),ee=it.useRef(0),se=it.useRef(0),ue=it.useRef("vertical"),$=it.useRef(o7),te=it.useRef(null);function me(K){let G=K?R:S,ie=K?m:p;G(!0),ie.start(500,()=>{G(!1)})}let he=W(K=>{let G=K.x-$.current.x,ie=K.y-$.current.y;$.current=K,ie!==0&&me(!0),G!==0&&me(!1)}),Ee=W(()=>{let K=w.current;K&&te.current===null&&(te.current=K.style.scrollSnapType,K.style.scrollSnapType="none")}),pe=W(K=>{if(K.button!==0||B.current!==null&&(ue.current==="vertical"?X.current:P.current)?.hasPointerCapture(B.current))return;B.current=K.pointerId,J.current=K.clientY,Y.current=K.clientX,ue.current=K.currentTarget.getAttribute(KF);let G=w.current;G&&(ee.current=G.scrollTop,se.current=G.scrollLeft,Ee()),(ue.current==="vertical"?X.current:P.current)?.setPointerCapture(K.pointerId)}),Re=W(K=>{if(K.pointerId!==B.current)return;B.current=null,(ue.current==="vertical"?R:S)(!1),te.current!==null&&(w.current&&(w.current.style.scrollSnapType=te.current),te.current=null);let G=ue.current==="vertical"?X.current:P.current;G?.hasPointerCapture(K.pointerId)&&G.releasePointerCapture(K.pointerId)}),le=W(K=>{if(K.pointerId!==B.current)return;if(K.buttons%2===0){Re(K);return}let G=w.current;if(!G)return;let ie=ue.current==="vertical",Ne=ie?X.current:P.current,Nt=ie?z.current:U.current;if(!Ne||!Nt)return;let Qt=ie?"y":"x",Et=zr(Nt,"padding",Qt),bt=zr(Ne,"margin",Qt),Ia=ie?Ne.offsetHeight:Ne.offsetWidth,Jt=(ie?Nt.offsetHeight:Nt.offsetWidth)-Ia-Et-bt,Ba=ie?K.clientY-J.current:K.clientX-Y.current,uo=Jt<=0?0:Ba/Jt,Qo=ie?G.scrollHeight:G.scrollWidth,ha=ie?G.clientHeight:G.clientWidth,Ae=(ie?ee.current:se.current)+uo*(Qo-ha);ie?G.scrollTop=Ae:G.scrollLeft=Ae,K.preventDefault(),me(ie)});function Ie(K){C(K.pointerType==="touch")}function ke(K){if(Ie(K),K.pointerType!=="touch"){let G=ce(N.current,K.target);h(G)}}let Pe=it.useMemo(()=>({scrolling:x||b,hasOverflowX:!q.x,hasOverflowY:!q.y,overflowXStart:O.xStart,overflowXEnd:O.xEnd,overflowYStart:O.yStart,overflowYEnd:O.yEnd,cornerHidden:q.corner}),[x,b,q.x,q.y,q.corner,O]),ut={role:"presentation",onPointerEnter:ke,onPointerMove:ke,onPointerDown:Ie,onPointerLeave(){h(!1)},style:{position:"relative",[FS]:`${A.height}px`,[zS]:`${A.width}px`}},ae=oe("div",t,{state:Pe,ref:[a,N],props:[ut,s],stateAttributesMapping:zs}),fe=it.useMemo(()=>({handlePointerDown:pe,handlePointerMove:le,handlePointerUp:Re,handleScroll:he,disableViewportSnap:Ee,cornerSize:A,setCornerSize:V,thumbSize:M,setThumbSize:F,hasMeasuredScrollbar:E,setHasMeasuredScrollbar:T,touchModality:L,cornerRef:_,scrollingX:x,scrollingY:b,hovering:g,setHovering:h,viewportRef:w,scrollbarYRef:z,scrollbarXRef:U,thumbYRef:X,thumbXRef:P,rootId:f,hiddenState:q,setHiddenState:D,overflowEdges:O,setOverflowEdges:H,viewportState:Pe,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:c,yEnd:d}}),[pe,le,Re,he,Ee,A,M,E,L,x,b,g,f,q,O,Pe,l,u,c,d]);return(0,QF.jsxs)(tT.Provider,{value:fe,children:[!v&&ui.getElement(y),ae]})});function i7(e){let t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var Lu=I(k(),1);function br(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}var HS=I(k(),1),aT=HS.createContext(void 0);function $F(){let e=HS.useContext(aT);if(e===void 0)throw new Error(Be(55));return e}var Zo=1;function Gf(e,t){return Math.max(0,e-t)}function ci(e,t){if(t<=0)return 0;let a=br(e,0,t),o=a,r=t-a,n=o<=Zo,i=r<=Zo;return n&&i?o<=r?0:t:n?0:i?t:a}var ez="--scroll-area-overflow-x-start",tz="--scroll-area-overflow-x-end",az="--scroll-area-overflow-y-start",oz="--scroll-area-overflow-y-end";var _S="--scroll-area-thumb-height",US="--scroll-area-thumb-width";var lz=I(Q(),1),uz=[ez,tz,az,oz],iz=!1;function l7(){iz||at.engine.webkit||(typeof CSS<"u"&&"registerProperty"in CSS&&uz.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),iz=!0)}var cz=Lu.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{viewportRef:s,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:c,thumbXRef:d,cornerRef:f,cornerSize:m,setCornerSize:p,setThumbSize:y,rootId:v,setHiddenState:g,hiddenState:h,setHasMeasuredScrollbar:x,handleScroll:S,touchModality:b,setHovering:R,setOverflowEdges:L,overflowEdgeThreshold:C,viewportState:E}=Tn(),T=Mo(),A=Lu.useRef(!0),V=Lu.useRef([NaN,NaN,NaN,NaN]),M=Ze(),F=Ze(),O=W(()=>{let w=s.current,z=l.current,U=u.current,X=c.current,P=d.current,_=f.current;if(!w)return;let B=w.scrollHeight,J=w.scrollWidth,Y=w.clientHeight,ee=w.clientWidth,se=w.scrollTop,ue=w.scrollLeft,$=V.current,te=Number.isNaN($[0]);if($[0]=Y,$[1]=B,$[2]=ee,$[3]=J,te&&x(!0),B===0||J===0)return;let me=u7(w),he=me.y,Ee=me.x,pe=ee/J,Re=Y/B,le=Math.max(0,J-ee),Ie=Math.max(0,B-Y),ke=0,Pe=0;Ee||(ke=ci(T==="rtl"?-ue:ue,le),Pe=le-ke);let ut=he?0:ci(se,Ie),ae=he?0:Ie-ut,fe=Ee?0:ee,K=he?0:Y,G=0,ie=0;!Ee&&!he&&(G=z?.offsetWidth||0,ie=U?.offsetHeight||0);let Ne=m.width===0&&m.height===0,Nt=Ne?G:0,Qt=Ne?ie:0,Et=zr(U,"padding","x"),bt=zr(z,"padding","y"),Ia=zr(P,"margin","x"),Ta=zr(X,"margin","y"),Jt=fe-Et-Ia,Ba=K-bt-Ta,uo=U?Math.min(U.offsetWidth-Nt,Jt):Jt,Qo=z?Math.min(z.offsetHeight-Qt,Ba):Ba,ha=Math.max(16,uo*pe),Ht=Math.max(16,Qo*Re);if(y(Je=>qS(Je,{width:ha,height:Ht})),z&&X){let Je=z.offsetHeight-Ht-bt-Ta,Vt=sz(X,_S,se,Ie,B,Ht,Je);X.style.transform=`translate3d(0,${Vt}px,0)`}if(U&&P){let Je=U.offsetWidth-ha-Et-Ia,Vt=T==="rtl"?-ue:ue,co=sz(P,US,Vt,le,J,ha,Je);P.style.transform=`translate3d(${T==="rtl"?-co:co}px,0,0)`}let Ae=[ke,Pe,ut,ae];uz.forEach((Je,Vt)=>{w.style.setProperty(Je,`${Ae[Vt]}px`)}),_&&p(Je=>qS(Je,{width:G,height:ie})),g(Je=>qS(Je,me));let Mt={xStart:!Ee&&ke>C.xStart,xEnd:!Ee&&Pe>C.xEnd,yStart:!he&&ut>C.yStart,yEnd:!he&&ae>C.yEnd};L(Je=>qS(Je,Mt))});j(()=>{l7()},[]),j(()=>{queueMicrotask(O)},[O,h,T,C.xStart,C.xEnd,C.yStart,C.yEnd]),j(()=>{s.current?.matches(":hover")&&R(!0)},[s,R]),j(()=>{let w=s.current;if(typeof ResizeObserver>"u"||!w)return;let z=!1,U=new ResizeObserver(()=>{if(!z){z=!0;let X=V.current;if(X[0]===w.clientHeight&&X[1]===w.scrollHeight&&X[2]===w.clientWidth&&X[3]===w.scrollWidth)return}O()});return U.observe(w),F.start(0,()=>{let X=w.getAnimations({subtree:!0});X.length!==0&&Promise.allSettled(X.map(P=>P.finished)).then(O).catch(()=>{})}),()=>{U.disconnect(),F.clear()}},[O,s,F]);function H(){A.current=!1}let q={role:"presentation",...v&&{"data-id":`${v}-viewport`},tabIndex:h.x&&h.y?-1:0,className:ui.className,style:{overflow:"scroll"},onScroll(){s.current&&(O(),(b||!A.current)&&S({x:s.current.scrollLeft,y:s.current.scrollTop}),M.start(100,()=>{A.current=!0}))},onWheel:H,onPointerMove:H,onPointerEnter:H,onKeyDown:H},D=oe("div",t,{ref:[a,s],state:E,props:[q,i],stateAttributesMapping:zs}),N=Lu.useMemo(()=>({computeThumbPosition:O}),[O]);return(0,lz.jsx)(aT.Provider,{value:N,children:D})});function u7(e){let t=e.clientHeight>=e.scrollHeight,a=e.clientWidth>=e.scrollWidth;return{y:t,x:a,corner:t||a}}function qS(e,t){for(let a in t)if(e[a]!==t[a])return t;return e}function sz(e,t,a,o,r,n,i){let s=br(a,0,o),l=a-s,u=Math.max(16,n*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?s/o*i:0)+(l>0?n-u:0)}var jS=I(k(),1);var GS=I(k(),1),oT=GS.createContext(void 0);function fz(){let e=GS.useContext(oT);if(e===void 0)throw new Error(Be(54));return e}var dz=I(Q(),1),mz=jS.forwardRef(function(t,a){let{render:o,className:r,orientation:n="vertical",keepMounted:i=!1,style:s,...l}=t,{hovering:u,scrollingX:c,scrollingY:d,hiddenState:f,scrollbarYRef:m,scrollbarXRef:p,viewportRef:y,thumbYRef:v,thumbXRef:g,handlePointerDown:h,handlePointerUp:x,handleScroll:S,disableViewportSnap:b,rootId:R,thumbSize:L,hasMeasuredScrollbar:C,viewportState:E}=Tn(),T=n==="vertical",A={...E,hovering:u,scrolling:T?d:c,orientation:n},V=Mo(),M=!C&&!i,F=T?f.y:f.x,O=i||!F;jS.useEffect(()=>{if(!O)return;let D=y.current,N=T?m.current:p.current;if(!N)return;function w(z){if(!D||z.ctrlKey)return;let U=!T,X=U?"scrollLeft":"scrollTop",P=U?z.deltaX:z.deltaY;if(P===0)return;let _=U?D.scrollWidth-D.clientWidth:D.scrollHeight-D.clientHeight,B=U&&V==="rtl"?-_:0,J=U&&V==="rtl"?0:_,Y=D[X];Y<=B&&P<0||Y>=J&&P>0||(z.preventDefault(),D[X]=Math.min(J,Math.max(B,Y+P)),S({x:D.scrollLeft,y:D.scrollTop}))}return Le(N,"wheel",w,{passive:!1})},[V,S,T,p,m,O,y]);let H={...R&&{"data-id":`${R}-scrollbar`},"aria-hidden":!0,onPointerDown(D){if(D.button!==0)return;let N=nt(D.nativeEvent),w=T?v.current:g.current;if(w&&ce(w,N))return;let z=y.current;if(!z)return;let U=T?m.current:p.current;if(!w||!U)return;let X=T?"y":"x",P=zr(w,"margin",X),_=zr(U,"padding",X),B=T?w.offsetHeight:w.offsetWidth,J=U.getBoundingClientRect(),Y=T?D.clientY-J.top-B/2-_+P/2:D.clientX-J.left-B/2-_+P/2,ee=T?z.scrollHeight:z.scrollWidth,se=T?z.clientHeight:z.clientWidth,$=(T?U.offsetHeight:U.offsetWidth)-B-_-P;if($<=0)return;let te=Y/$,me=ee-se;b(),T?z.scrollTop=te*me:V==="rtl"?z.scrollLeft=-(1-te)*me:z.scrollLeft=te*me,S({x:z.scrollLeft,y:z.scrollTop}),h(D)},onMouseDown(D){D.preventDefault()},onPointerUp:x,onPointerCancel:x,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:M?"hidden":void 0,...T?{top:0,bottom:`var(${FS})`,insetInlineEnd:0,[_S]:`${L.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${zS})`,bottom:0,[US]:`${L.width}px`}}},q=oe("div",t,{ref:[a,T?m:p],state:A,props:[H,l],stateAttributesMapping:zs});return O?(0,dz.jsx)(oT.Provider,{value:n,children:q}):null});var Kp=I(k(),1);var pz=Kp.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{computeThumbPosition:s}=$F(),{hasMeasuredScrollbar:l,viewportState:u}=Tn(),c=Kp.useRef(null),d=Kp.useRef(l);return j(()=>{if(typeof ResizeObserver>"u")return;let m=!1,p=new ResizeObserver(()=>{!m&&(m=!0,!d.current)||s()});return c.current&&p.observe(c.current),()=>{p.disconnect()}},[s]),oe("div",t,{ref:[a,c],state:u,stateAttributesMapping:zs,props:[{role:"presentation",style:{minWidth:"fit-content"}},i]})});var hz=I(k(),1);var gz=hz.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{thumbYRef:s,thumbXRef:l,handlePointerDown:u,handlePointerMove:c,handlePointerUp:d,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:p}=Tn(),y=fz(),v=y==="vertical";return oe("div",t,{ref:[a,v?s:l],state:{scrolling:v?m:f,orientation:y},props:[{onPointerDown:u,onPointerMove:c,onPointerUp:d,onPointerCancel:d,style:{visibility:p?void 0:"hidden",...v?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})});var xz=I(k(),1);var yz=xz.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{cornerRef:s,cornerSize:l,hiddenState:u}=Tn(),c=oe("div",t,{ref:[a,s],props:[{"aria-hidden":!0,style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:c});var _s=I(Q(),1);function Sz({className:e,children:t,...a}){let o=ky();return(0,_s.jsxs)(Hs.Root,{"data-slot":"scroll-area",className:re("relative",e),...a,children:[(0,_s.jsx)(Hs.Viewport,{ref:o,"data-slot":"scroll-area-viewport",className:"scroll-fade size-full max-h-[inherit] rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,_s.jsx)(c7,{}),(0,_s.jsx)(Hs.Corner,{})]})}function c7({className:e,orientation:t="vertical",...a}){return(0,_s.jsx)(Hs.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:re("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...a,children:(0,_s.jsx)(Hs.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var Qe=I(Q(),1);function f7({run:e,active:t}){let[a,o]=(0,XS.useState)(Date.now());return(0,XS.useEffect)(()=>{if(!t)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[t]),(0,Qe.jsx)("span",{className:re("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?Wn((a-Date.parse(e.startedAt))/1e3):e.time})}function vz({run:e,expanded:t,when:a}){let o=e.state==="running"||e.state==="queued";return(0,Qe.jsxs)("div",{className:re("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,Qe.jsxs)("div",{className:"mt-0.5 flex w-5 flex-col items-center justify-between gap-2.5 self-stretch",children:[(0,Qe.jsx)(VF,{state:e.state}),(0,Qe.jsx)(HF,{backend:ex(e.worker).backend,active:e.state==="running",className:"size-[18px] rounded-[5px] opacity-90"})]}),(0,Qe.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,Qe.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,Qe.jsx)(ax,{worker:e.worker}),(0,Qe.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,Qe.jsx)(VD,{verdict:e.verdict}),e.changes?(0,Qe.jsxs)(ox,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,Qe.jsx)(ox,{tone:"good",children:"applied"})]}),(0,Qe.jsx)(VR,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(o||e.note)&&(0,Qe.jsx)(BR,{className:"line-clamp-2 break-words px-0 text-[13px]",children:o?(0,Qe.jsx)(Dy,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,Qe.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,Qe.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,Qe.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,Qe.jsx)(f7,{run:e,active:o}),(0,Qe.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${El(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,Qe.jsxs)("span",{className:"text-xs text-success",children:["~",sn(e.saved)]}):null,a&&(0,Qe.jsx)("span",{title:new Date(e.startedAt).toLocaleString(),className:"text-xs text-muted-foreground/80",children:PD(e.startedAt)})]})]})}function jf({run:e,index:t,when:a,defaultOpen:o,onClose:r}){let n=e.state==="running"||e.state==="queued";return(0,Qe.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,Qe.jsxs)(OR,{defaultOpen:o,onClose:r,children:[(0,Qe.jsx)(Py,{className:re("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,Qe.jsx)(vz,{run:e,when:a})}),(0,Qe.jsxs)(NR,{className:"max-h-[88vh] w-full border pb-0 shadow-2xl",children:[(0,Qe.jsx)("div",{className:"shrink-0",children:(0,Qe.jsx)(vz,{run:e,expanded:!0,when:a})}),(0,Qe.jsx)(Sz,{className:"max-h-[calc(88vh-6.5rem)] border-t",children:(0,Qe.jsx)(kR,{className:"px-4 pb-5 pt-4 sm:pl-[3.4rem]",children:(0,Qe.jsx)(DV,{id:e.id,live:n})})})]})]})})}var Kf={};Qa(Kf,{Indicator:()=>jz,List:()=>$z,Panel:()=>Yz,Root:()=>Tz,Tab:()=>Az});var Kt=I(k(),1);var Ru=I(k(),1);function Iu({controlled:e,default:t,name:a,state:o="value"}){let{current:r}=Ru.useRef(e!==void 0),[n,i]=Ru.useState(t),s=r&&e!==void 0?e:n,l=Ru.useCallback(u=>{r||i(u)},[]);return[s,l]}var fi=I(k(),1);var YS=I(k(),1),rT=YS.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function bz(){return YS.useContext(rT)}var Cz=I(Q(),1);function Xf(e){let{children:t,elementsRef:a,labelsRef:o,onMapChange:r}=e,n=W(r),[,i]=fi.useState(!1),s=tt(m7).current,l=tt(d7).current,u=fi.useRef(0),c=fi.useRef(!0),d=fi.useRef(null),f=fi.useRef(null),m=W(()=>{c.current||(c.current=!0,i(b=>!b))}),p=W((b,R)=>{l.set(b,R),m()}),y=W(b=>{l.delete(b),m()}),v=W(b=>{let R=new Map;return a.current.length=0,o&&(o.current.length=0),b.forEach(L=>{R.set(L.element,{...L.registration.metadata??{},index:L.index}),a.current[L.index]=L.element,o&&(o.current[L.index]=L.registration.label!==void 0?L.registration.label:L.registration.textRef?.current?.textContent??L.element.textContent)}),u.current=a.current.length,R});function g(b){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||b.length<2)return;let R=new MutationObserver(C=>{if(!g7(C))return;let E=null;for(let T of b)if(T.isConnected){if(E&&Lz(E,T)>0){R.disconnect(),m();return}E=T}});f.current=R;let L=new Set;for(let C=1;C<b.length;C+=1){let E=h7(b[C-1],b[C]);E&&L.add(E)}L.forEach(C=>R.observe(C,{childList:!0}))}let h=W(()=>{let[b,R]=p7(l),L=v(b),C=d.current,E=!C||C.length!==b.length||b.some((T,A)=>{let V=C[A];return T.index!==V.index||T.element!==V.element||T.registration.index!==V.registration.index||T.registration.metadata!==V.registration.metadata});g(R),d.current=b,c.current=!1,E&&(s.forEach(T=>T(L)),n(L))});j(()=>(!c.current&&d.current&&v(d.current),()=>{a.current=[],o&&(o.current=[])}),[a,o,v]),j(()=>{c.current&&h()}),j(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let x=W(b=>(s.add(b),()=>{s.delete(b)})),S=fi.useMemo(()=>({register:p,unregister:y,subscribeMapChange:x,nextIndexRef:u}),[p,y,x,u]);return(0,Cz.jsx)(rT.Provider,{value:S,children:t})}function d7(){return new Map}function m7(){return new Set}function p7(e){let t=new Set,a=[],o=[];e.forEach((n,i)=>{if(!i.isConnected)return;let s=n.index,l={index:s??-1,element:i,registration:n};s===null?o.push(l):s>=0&&(t.add(s),a.push(l))});let r=0;return o.sort((n,i)=>Lz(n.element,i.element)),o.forEach(n=>{for(;t.has(r);)r+=1;n.index=r,a.push(n),r+=1}),t.size>0&&a.sort((n,i)=>n.index-i.index),[a,o.map(n=>n.element)]}function h7(e,t){let a=e.parentElement;for(;a&&!a.contains(t);)a=a.parentElement;return a}function g7(e){for(let t of e)for(let a=0;a<t.removedNodes.length;a+=1)if(t.removedNodes[a].isConnected)return!0;return!1}function Lz(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var WS=I(k(),1),nT=WS.createContext(void 0);function Us(){let e=WS.useContext(nT);if(e===void 0)throw new Error(Be(64));return e}var Rz="data-activation-direction";var wn={tabActivationDirection:e=>({[Rz]:e})};var iT=I(Q(),1),Tz=Kt.forwardRef(function(t,a){let{className:o,defaultValue:r=0,onValueChange:n,orientation:i="horizontal",render:s,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=Kt.useRef([]),[m,p]=Kt.useState(()=>new Map),[y,v]=Iu({controlled:l,default:r,name:"Tabs",state:"value"}),g=l!==void 0,[h,x]=Kt.useState(()=>new Map),S=Kt.useRef(void 0),b=Kt.useCallback(Y=>sT(h,Y),[h]),[R,L]=Kt.useState(()=>({previousValue:y,tabActivationDirection:"none"})),{previousValue:C,tabActivationDirection:E}=R,T=E,A=!1;C!==y&&(T=Iz(C,y,i,h),A=C!=null&&y!=null&&b(y)==null);let V=A?C:y,M=C!==V||E!==T;j(()=>{M&&L({previousValue:V,tabActivationDirection:T})},[V,M,T]);let F=W((Y,ee)=>{let se=Iz(y,Y,i,h);ee.activationDirection=se,n?.(Y,ee),!ee.isCanceled&&v(Y)}),O=W((Y,ee)=>{n?.(Y,ye(ee,void 0,void 0,{activationDirection:"none"}))}),H=W((Y,ee)=>(p(se=>{let ue=new Map(se);return ue.set(Y,ee),ue}),()=>{p(se=>{if(se.get(Y)!==ee)return se;let ue=new Map(se);return ue.delete(Y),ue})})),q=Kt.useCallback(Y=>m.get(Y),[m]),D=Kt.useCallback(Y=>{for(let ee of h.values())if(Y===ee.value)return ee.id},[h]),N=Kt.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:D,getTabPanelIdByValue:q,onValueChange:F,orientation:i,registerMountedTabPanel:H,setTabMap:x,tabActivationDirection:T,value:y}),[b,D,q,F,i,H,x,T,y]),w=Kt.useMemo(()=>{for(let Y of h.values())if(Y.value===y)return Y},[h,y]),z=Kt.useMemo(()=>{for(let Y of h.values())if(!Y.disabled)return Y.value},[h]),U=Kt.useRef(!d),X=Kt.useRef(r),P=Kt.useRef(d),_=Kt.useRef(!1);j(()=>{if(g)return;function Y($,te){v($),L({previousValue:$,tabActivationDirection:"none"}),O($,te),U.current=!1}if(h.size===0){_.current&&y!==null&&!S.current?.isConnected&&Y(null,ne.missing);return}_.current=!0,S.current=h.keys().next().value;let ee=w?.disabled,se=w==null&&y!==null;if(!ee&&y===X.current&&(P.current=!1),P.current&&ee&&y===X.current)return;let ue=U.current;if(ee||se){let $=z??null;if(y===$){U.current=!1;return}let te=ne.missing;ue?te=ne.initial:ee&&(te=ne.disabled),Y($,te);return}ue&&w!=null&&(O(y,ne.initial),U.current=!1)},[z,g,O,w,v,h,y]);let J=oe("div",t,{state:{orientation:i,tabActivationDirection:T},ref:a,props:c,stateAttributesMapping:wn});return(0,iT.jsx)(nT.Provider,{value:N,children:(0,iT.jsx)(Xf,{elementsRef:f,children:J})})});function sT(e,t){for(let[a,o]of e.entries())if(t===o.value)return a;return null}function Iz(e,t,a,o){if(e==null||t==null)return"none";let[r,n,i]=a==="horizontal"?["left","left","right"]:["top","up","down"],s=sT(o,e),l=sT(o,t);if(s==null||l==null)return s!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:n:"none";let u=s.getBoundingClientRect()[r],c=l.getBoundingClientRect()[r];return c<u?n:c>u?i:"none"}var di=I(k(),1);var Zp="data-composite-item-active";var wz=I(k(),1);var Tu=I(k(),1);function Yf(e={}){let{guess:t,label:a,metadata:o,textRef:r,index:n}=e,{register:i,unregister:s,subscribeMapChange:l,nextIndexRef:u}=bz(),c=Tu.useRef(-1),[d,f]=Tu.useState(n==null&&t?()=>{if(c.current===-1){let v=u.current;u.current+=1,c.current=v}return c.current}:-1),m=n??d,p=Tu.useRef(null),y=Tu.useCallback(v=>{let g=p.current;g&&s(g),p.current=v,v&&i(v,{metadata:o??null,index:n??null,label:a,textRef:r})},[n,i,s,o,a,r]);return j(()=>{if(n==null)return l(v=>{let g=p.current?v.get(p.current)?.index:null;g!=null&&f(g)})},[n,l]),{ref:y,index:m}}function Ez(e={}){let{highlightItemOnHover:t,highlightedIndex:a,onHighlightedIndexChange:o}=hf(),{ref:r,index:n}=Yf(e),i=a===n,s=wz.useRef(null),l=lr(r,s);return{compositeProps:{tabIndex:i?0:-1,onFocus(){o(n)},onMouseMove(){let c=s.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!i&&!d&&c.focus()}},compositeRef:l,index:n}}var KS=I(k(),1),lT=KS.createContext(void 0);function ZS(){let e=KS.useContext(lT);if(e===void 0)throw new Error(Be(65));return e}var Az=di.forwardRef(function(t,a){let{className:o,disabled:r=!1,render:n,value:i,id:s,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:y}=Us(),{activateOnFocus:v,registerTabResizeObserverElement:g,tabsListElement:h}=ZS(),{highlightedIndex:x,onHighlightedIndexChange:S}=hf(),b=na(s),R=di.useMemo(()=>({disabled:r,id:b,value:i}),[r,b,i]),{compositeProps:L,compositeRef:C,index:E}=Ez({metadata:R}),T=i===d,A=di.useRef(!1),V=di.useRef(null),M=W(_=>{V.current?.(),V.current=_?g(_):null});j(()=>{if(A.current){A.current=!1;return}if(!(T&&E>-1&&x!==E))return;let _=h;if(_!=null){let B=Ft(ve(_));if(B&&ce(_,B))return}r||S(E)},[T,E,x,S,r,h]);let{getButtonProps:F,buttonRef:O}=ai({disabled:r,native:l,focusableWhenDisabled:!0}),H=f(i),q=di.useRef(!1),D=di.useRef(!1);function N(_){m(i,ye(ne.none,_.nativeEvent,void 0,{activationDirection:"none"}))}function w(_){T||r||N(_)}function z(_){T||r||v&&(!q.current||D.current)&&N(_)}function U(_){if(T||r)return;q.current=!0,D.current=_.button===0;let B=ve(_.currentTarget);function J(){q.current=!1,D.current=!1,B.removeEventListener("pointerup",J),B.removeEventListener("pointercancel",J)}B.addEventListener("pointerup",J),B.addEventListener("pointercancel",J)}return oe("button",t,{state:{disabled:r,active:T,orientation:p,tabActivationDirection:y},ref:[a,O,C,M],props:[L,{role:"tab","aria-controls":H,"aria-selected":T,id:b,onClick:w,onFocus:z,onPointerDown:U,[Zp]:T?"":void 0,onKeyDownCapture(){A.current=!0}},c,F],stateAttributesMapping:wn})});var Wf=I(k(),1);var $Re=I(k(),1);var Mz=I(qp(),1);function y7(){return Oe}function S7(){return!1}function v7(){return!0}function Pz(){return(0,Mz.useSyncExternalStore)(y7,S7,v7)}var Dz=I(Q(),1);function Oz(e){let{script:t}=e,{nonce:a}=qf();return Pz()?(0,Dz.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function kz(e,t){let a=(t??ze(e).getComputedStyle(e)).transform,o=0,r=0,n=1;if(a&&a!=="none"){let i=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(i){let s=i[1].split(", ").map(parseFloat);s.length===6?(o=s[4],r=s[5],n=Math.sqrt(s[0]*s[0]+s[1]*s[1])):s.length===16&&(o=s[12],r=s[13],n=s[0])}}return{x:o,y:r,scale:n}}var Nz="--active-tab-left",Vz="--active-tab-right",Bz="--active-tab-top",Fz="--active-tab-bottom",zz="--active-tab-width",Hz="--active-tab-height";var QS=I(Q(),1),_z,C7={...wn,activeTabPosition:()=>null,activeTabSize:()=>null},Uz=2,jz=Wf.forwardRef(function(t,a){let{className:o,render:r,renderBeforeHydration:n=!1,style:i,...s}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=Us(),{tabsListElement:f,registerIndicatorUpdateListener:m}=ZS(),p=gB();Wf.useEffect(()=>m(p),[m,p]);let y=0,v=0,g=0,h=0,x=0,S=0,b=!1;if(d!=null&&f!=null){let V=l(d);if(V!=null){b=!0;let{width:M,height:F}=Vf(V),{width:O,height:H}=Vf(f),q=V.getBoundingClientRect(),D=f.getBoundingClientRect(),N=O>0?D.width/O:1,w=H>0?D.height/H:1,z=L7(V,f);y=z.left,g=z.top;let U=(q.left-D.left)/N+f.scrollLeft-f.clientLeft,X=(q.top-D.top)/w+f.scrollTop-f.clientTop,P=R7(V);Math.abs(U-P.x-y)<=Uz&&Math.abs(X-P.y-g)<=Uz&&(y=U,g=X),x=M,S=F,v=f.scrollWidth-y-x,h=f.scrollHeight-g-S}}let R=b?{left:y,right:v,top:g,bottom:h}:null,L=b?{width:x,height:S}:null,C=b?{[Nz]:`${y}px`,[Vz]:`${v}px`,[Bz]:`${g}px`,[Fz]:`${h}px`,[zz]:`${x}px`,[Hz]:`${S}px`}:void 0,E=b&&x>0&&S>0,A=oe("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:L,tabActivationDirection:c},ref:a,props:[{role:"presentation",style:C,hidden:!E},s,{suppressHydrationWarning:!0}],stateAttributesMapping:C7});return d==null?null:(0,QS.jsxs)(Wf.Fragment,{children:[A,n&&(_z||(_z=(0,QS.jsx)(Oz,{script:""})))]})});function L7(e,t){let a=qz(e),o=qz(t),r=a.left-o.left-t.clientLeft,n=a.top-o.top-t.clientTop,i=Xo(e);for(;He(i)&&i!==t&&!mr(i);)r-=i.scrollLeft,n-=i.scrollTop,i=Xo(i);return{left:r,top:n}}function qz(e){let t=0,a=0,o=e;for(;o!=null;){t+=o.offsetLeft,a+=o.offsetTop;let r=o.offsetParent;r!=null&&(t+=r.clientLeft,a+=r.clientTop),o=r}return{left:t,top:a}}function R7(e){let t=ze(e).getComputedStyle(e),{x:a,y:o}=kz(e,t),r=a,n=o,{translate:i}=t;if(i&&i!=="none"){let s=i.split(" ");r+=Gz(s[0],e.offsetWidth),n+=Gz(s[1],e.offsetHeight)}return{x:r,y:n}}function Gz(e,t){if(!e)return 0;let a=parseFloat(e);return Number.isFinite(a)?e.endsWith("%")?a/100*t:a:0}var JS=I(k(),1);var Xz="data-index";var yIe=bf.startingStyle,SIe=bf.endingStyle;var T7={...wn,...To},Yz=JS.forwardRef(function(t,a){let{className:o,value:r,render:n,keepMounted:i=!1,style:s,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=Us(),p=na(),{ref:y,index:v}=Yf(),g=r===u,{mounted:h,transitionStatus:x,setMounted:S}=Ao(g),b=!h,R=c(r),L={hidden:b,orientation:d,tabActivationDirection:f,transitionStatus:x},C=JS.useRef(null),E=oe("div",t,{state:L,ref:[a,y,C],props:[{"aria-labelledby":R,hidden:b,id:p,role:"tabpanel",tabIndex:g?0:-1,inert:Nf(!g),[Xz]:v},l],stateAttributesMapping:T7});return Ya({open:g,ref:C,onComplete(){g||S(!1)}}),j(()=>{if(!(p==null||b&&!i))return m(r,p)},[b,i,r,p,m]),i||h?E:null});var Hr=I(k(),1);var Qz=I(k(),1);var wu=I(k(),1);function $S(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var tv="ArrowUp",av="ArrowDown",ov="ArrowLeft",rv="ArrowRight",nv="Home",iv="End";var sv=new Set([tv,av,ov,rv,nv,iv]),w7="Shift",Kz=[w7,"Control","Alt","Meta"];function E7(e){return He(e)&&e.tagName==="INPUT"}function uT(e){return!!(E7(e)&&e.selectionStart!=null||He(e)&&e.tagName==="TEXTAREA")}function cT(e,t,a,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,n=e.scrollTop,i=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(i&&o!=="vertical"){let l=Wz(e,t,"left"),u=ev(e),c=ev(t);a==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-c.scrollMarginLeft-u.scrollPaddingLeft)),a==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&o!=="horizontal"){let l=Wz(e,t,"top"),u=ev(e),c=ev(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?n=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(n=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:n,behavior:"auto"})}function Wz(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function ev(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Zz(e){let{loopFocus:t=!0,orientation:a="both",grid:o,onLoop:r,direction:n,highlightedIndex:i,onHighlightedIndexChange:s,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=bo}=e,[m,p]=wu.useState(0),y=o!=null,v=wu.useRef(null),g=lr(v,l),h=wu.useRef([]),x=wu.useRef(!1),S=wu.useRef(null),b=i??m,R=W((A,V=!1)=>{if(S.current=h.current[A]??null,(s??p)(A),V){let M=h.current[A];cT(v.current,M,n,a)}}),L=W(A=>{if(A.size===0)return;if(x.current){let O=h.current,H=O.indexOf(S.current);if(H===-1){let q=O[b];!q||ii(O,b,d)?R(A7(O,d)):S.current=q}else H!==b&&R(H);return}x.current=!0;let V=Array.from(A.keys()),M=V.find(O=>O?.hasAttribute(Zp))??null,F=M?A.get(M)?.index??-1:-1;if(F!==-1)R(F);else if(ii(V,b,d)){let O=yr(V,{disabledIndices:d});Os(V,O)||R(O)}cT(v.current,M,n,a)});j(()=>{if(d==null||i!=null||!x.current)return;let A=h.current;if(ii(A,b,d)){let V=yr(A,{disabledIndices:d});Os(A,V)||R(V)}},[d,i,b,h,R]);let C=W((A,V,M)=>r?r(A,V,M,h):M),E=W(A=>{let V=A.key===nv||A.key===iv;if(!sv.has(A.key)||!u&&V||M7(A,f)||!v.current)return;let F=n==="rtl",O=F?ov:rv,H=F?rv:ov,q=a==="vertical"?av:O,D=a==="vertical"?tv:H,N=nt(A.nativeEvent);if(N!=null&&uT(N)&&!$S(N)){let _=N.selectionStart,B=N.selectionEnd,J=N.value;if(_==null||A.shiftKey||_!==B||A.key!==D&&_<J.length||A.key!==q&&_>0)return}let w=b,z=mu(h,d),U=Rf(h,d);o!=null&&(w=o({disabledIndices:d,elementsRef:h,event:A,highlightedIndex:b,loopFocus:t,maxIndex:U,minIndex:z,onLoop:C,orientation:a,rtl:F}));let X=a!=="vertical"&&A.key===O||a!=="horizontal"&&A.key===av,P=a!=="vertical"&&A.key===H||a!=="horizontal"&&A.key===tv;u&&(A.key===nv?w=z:A.key===iv&&(w=U)),w===b&&(X||P)&&(t&&w===U&&X?(w=z,r&&(w=r(A,b,w,h))):t&&w===z&&P?(w=U,r&&(w=r(A,b,w,h))):w=yr(h.current,{startingIndex:w,decrement:P,disabledIndices:d})),w!==b&&!Os(h.current,w)&&(c&&A.stopPropagation(),(y||V||X||P)&&A.preventDefault(),R(w,!0),queueMicrotask(()=>{h.current[w]?.focus()}))});return{props:{ref:g,onFocus(A){let V=v.current,M=nt(A.nativeEvent);!V||M==null||!uT(M)||M.setSelectionRange(0,M.value.length)},onKeyDown:E},highlightedIndex:b,onHighlightedIndexChange:R,elementsRef:h,onMapChange:L,relayKeyboardEvent:E}}function A7(e,t){let a=-1;for(let o=0;o<e.length;o+=1){let r=e[o];if(!(!r||ii(e,o,t))){if(r.hasAttribute(Zp))return o;a===-1&&(a=o)}}return Math.max(a,0)}function M7(e,t){for(let a of Kz)if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}var fT=I(Q(),1);function Jz(e){let{render:t,className:a,style:o,refs:r=bo,props:n=bo,state:i=We,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:y,stopEventPropagation:v=!0,rootRef:g,disabledIndices:h,modifierKeys:x,highlightItemOnHover:S=!1,tag:b="div",...R}=e,L=Mo(),{props:C,highlightedIndex:E,onHighlightedIndexChange:T,elementsRef:A,onMapChange:V,relayKeyboardEvent:M}=Zz({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:g,stopEventPropagation:v,enableHomeAndEndKeys:p,direction:L,disabledIndices:h,modifierKeys:x}),F=oe(b,e,{state:i,ref:r,props:[C,...n,R],stateAttributesMapping:s}),O=Qz.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:T,highlightItemOnHover:S,relayKeyboardEvent:M}),[E,T,S,M]);return(0,fT.jsx)(MR.Provider,{value:O,children:(0,fT.jsx)(Xf,{elementsRef:A,onMapChange:H=>{y?.(H),V(H)},children:F})})}var dT=I(Q(),1),$z=Hr.forwardRef(function(t,a){let{activateOnFocus:o=!1,className:r,loopFocus:n=!0,render:i,style:s,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=Us(),[f,m]=Hr.useState(0),[p,y]=Hr.useState(null),v=Hr.useRef(new Set),g=Hr.useRef(new Set),h=Hr.useRef(null);j(()=>{if(typeof ResizeObserver>"u")return;let C=new ResizeObserver(()=>{v.current.forEach(E=>{E()})});return h.current=C,p&&C.observe(p),g.current.forEach(E=>{C.observe(E)}),()=>{C.disconnect(),h.current=null}},[p]);let x=W(C=>(v.current.add(C),()=>{v.current.delete(C)})),S=W(C=>(g.current.add(C),h.current?.observe(C),()=>{g.current.delete(C),h.current?.unobserve(C)})),b={orientation:u,tabActivationDirection:d},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},L=Hr.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:p}),[o,x,S,p]);return(0,dT.jsx)(lT.Provider,{value:L,children:(0,dT.jsx)(Jz,{render:i,className:r,style:s,state:b,refs:[a,y],props:[R,l],stateAttributesMapping:wn,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:n,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:bo})})});var cv=I(Q(),1);function lv({className:e,orientation:t="horizontal",...a}){return(0,cv.jsx)(Kf.Root,{"data-slot":"tabs","data-orientation":t,className:re("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var P7=Fc("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function uv({className:e,variant:t="default",...a}){return(0,cv.jsx)(Kf.List,{"data-slot":"tabs-list","data-variant":t,className:re(P7({variant:t}),e),...a})}function Zf({className:e,...t}){return(0,cv.jsx)(Kf.Tab,{"data-slot":"tabs-trigger",className:re("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var Po=I(k(),1);var SH=I(k(),1);var Iv={};Qa(Iv,{Control:()=>hH,Description:()=>mH,Error:()=>fH,Item:()=>yH,Label:()=>cH,Root:()=>uH,Validity:()=>xH});var Ra=I(k(),1);var fv=I(k(),1);var eH="data-valid",tH="data-invalid";var Eu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},O7={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},aH={disabled:!1,...O7},Ka={valid(e){return e===null?null:e?{[eH]:""}:{[tH]:""}}};var k7={invalid:void 0,name:void 0,validityData:{state:Eu,errors:[],error:"",value:"",initialValue:null},setValidityData:Oe,disabled:void 0,setTouched:Oe,setDirty:Oe,setFilled:Oe,setFocused:Oe,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:aH,registerFieldControl:Oe,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Oe,getInputControl:()=>null,commit:async()=>{},change:Oe}},mT=fv.createContext(k7);function ia(e=!0){let t=fv.useContext(mT);if(t.setValidityData===Oe&&!e)throw new Error(Be(28));return t}var dv=I(k(),1),N7=dv.createContext(void 0);function oH(e=!1){let t=dv.useContext(N7);if(!t&&!e)throw new Error(Be(86));return t}var mv=I(k(),1);var V7=mv.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Oe,validationMode:"onSubmit",submitCountRef:{current:0}});function Cr(){return mv.useContext(V7)}var qs=I(k(),1);var pv=I(k(),1);var pT=pv.createContext({controlId:void 0,registerControlId:Oe,resetControlId:Oe,labelId:void 0,setLabelId:Oe,messageIds:[],setMessageIds:Oe,getDescriptionProps:e=>e});function La(){return pv.useContext(pT)}var rH=I(Q(),1),hv=function(t){let a=na(),[o,r]=qs.useState(a),[n,i]=qs.useState(),[s,l]=qs.useState([]),u=o===void 0?a:o,c=tt(()=>new Map),{messageIds:d}=La(),f=W((v,g)=>{let h=c.current;g===void 0?h.delete(v):h.set(v,g),r(x=>{if(h.size===0)return x;let S;for(let b of h.values()){if(b===x)return x;S===void 0&&(S=b)}return S})}),m=W(()=>{c.current.size===0&&r(a)}),p=qs.useCallback(v=>{let g=v["aria-describedby"]?v["aria-describedby"].split(" "):[];return g.push(...d,...s),{...v,"aria-describedby":Array.from(new Set(g)).join(" ")||void 0}},[d,s]),y=qs.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:n,setLabelId:i,messageIds:s,setMessageIds:l,getDescriptionProps:p}),[u,f,m,n,i,s,l,p]);return(0,rH.jsx)(pT.Provider,{value:y,children:t.children})};var hT=I(k(),1);function Qf(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:r,resetControlId:n}=La(),i=na(),s=tt(()=>Symbol()),l=hT.useRef(!1),u=hT.useRef(!1),c=W(()=>{!l.current||r===Oe||(l.current=!1,r(s.current,void 0))});return j(()=>{if(!a||r===Oe){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=i;else{n();return}if(d===void 0){c();return}l.current=!0,r(s.current,d)},[t,a,r,n,i,s,c]),j(()=>c,[c]),(a?o:void 0)??t??i}function gv(e,t){let a=na(e);return j(()=>(t(a),()=>{t(o=>o===a?void 0:o)}),[a,t]),a}function xv(e={}){let{id:t,fallbackControlId:a,native:o=!1,setLabelId:r,focusControl:n}=e,{controlId:i,setLabelId:s}=La(),l=W(m=>{s(m),r?.(m)}),u=gv(t,l),c=i??a;function d(m){if(n){n(m,c);return}if(!c)return;let p=ve(m.currentTarget).getElementById(c);He(p)&&B7(p)}function f(m){nt(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!o&&d(m))}return o?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function B7(e){e.focus({focusVisible:!0})}var mi=I(k(),1);function Au(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var gT=Object.keys(Eu);function F7(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function nH(e,t){let a=null;for(let o of e.keys())if(F7(o,t)){if(!o.validity.valid)return o;a??=o}return a}function iH(e){return{...Eu,valid:!e,customError:e}}function xT(e){return e&&e.validationMessage?[e.validationMessage]:[]}function sH(e){let{elementRef:t,formRef:a}=Cr(),{setValidityData:o,validate:r,validityData:n,validationDebounceTime:i,invalid:s,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=La(),y=Ze(),v=mi.useRef(null),g=tt(()=>new Map).current,h=mi.useRef(0),x=mi.useRef(null),S=mi.useCallback((E,T)=>(g.set(E,T),()=>{g.delete(E)}),[g]),b=W(()=>{let E=nH(g,t.current);return E&&g.get(E)?.controlRef.current||null}),R=W(async(E,T=!1)=>{h.current+=1;let A=h.current;function V(P,_=s){let B=f.current??m;if(B==null)return;let J=a.current.fields.get(B);if(!J)return;let Y=Au(P,_);a.current.fields.set(B,{...J,validityData:Y})}function M(P,_){let B=P.valid===!1?_:[];return{value:E,state:P,error:B[0]??"",errors:B,initialValue:n.initialValue}}function F(P,_){let B=P.validity.customError?P.validationMessage:"",J=_.replace(/\r\n?/g,`
19
+ `);P.setCustomValidity(J),x.current=[P,J,B]}function O(){let P=x.current;x.current=null,P&&(!P[0].willValidate||P[0].validationMessage===P[1])&&P[0].setCustomValidity(P[2])}function H(P,_,B){let J=M(P,_);V(J,B),o(J)}function q(P){let _=gT.reduce((J,Y)=>(J[Y]=P.validity[Y],J),{}),B=!1;for(let J of gT)if(J!=="valid"){if(J==="valueMissing"&&_[J])B=!0;else if(_[J])return _}return B&&!l.current&&(_.valid=!0,_.valueMissing=!1),_}function D(){return g.size>0?nH(g,t.current):v.current}let N=D();function w(){return N=D(),N?.willValidate?q(N):iH(!1)}if(T){if(u.valid!==!1||!N)return;if(!N.validity.valueMissing){O();let P=D(),_=P?.validity.customError?xT(P):[];H(iH(_.length>0),_,!1);return}for(let P of gT)if(P!=="valid"&&P!=="valueMissing"&&P!=="customError"&&N.validity[P])return}y.clear(),O();let z=w(),U=xT(N),X=c();if(U.length===0||X){let P=Array.from(a.current.fields.values()).reduce((J,Y)=>(Y.name&&(J[Y.name]=Y.getValue()),J),{}),_=r(E,P),B;if(typeof _=="object"&&_!==null&&"then"in _){if(z.valid===!1?H(z,U):(d==="onSubmit"||!n.state.customError)&&(z.valid=null,H(z,U)),B=await _,A!==h.current)return;z=w()}else B=_;U=B?[].concat(B).filter(Boolean):[],U.length>0?(z.valid=!1,z.customError=!0,N?.willValidate&&F(N,U.join(`
20
+ `))):U=xT(N)}H(z,U)}),L=W((E,T=!1)=>{if(y.clear(),h.current+=1,T)return;let A=c();A&&E!==""&&i?y.start(i,()=>{R(E)}):R(E,!A)}),C=mi.useCallback((E,T={})=>_a(p(T),u.valid===!1&&!u.disabled&&!E?{"aria-invalid":!0}:We),[p,u.disabled,u.valid]);return mi.useMemo(()=>({getValidationProps:C,inputRef:v,registeredInputs:g,registerInput:S,getInputControl:b,commit:R,change:L}),[C,g,S,b,R,L])}var yv=I(k(),1);function lH(e){let{change:t,commit:a,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,registeredFieldIdRef:s,setValidityData:l,validityData:u}=e,{formRef:c}=Cr(),d=yv.useRef(null),f=yv.useRef(null),m=yv.useRef(!1),p=W(()=>{let b=f.current;if(b)return b.getValue?b.getValue():b.value});function y(b){return b.value===void 0?p():b.value}let v=W(()=>{let b=f.current;if(r.current=!0,!b){a(u.value);return}a(y(b))});function g(){let b=f.current;!b||!b.id||c.current.fields.set(b.id,{getValue:p,name:n??b.name,controlRef:b.controlRef,validityData:Au(u,o),validate:v})}function h(b=f.current?.id){b&&c.current.fields.delete(b)}function x(b){if(m.current)return;m.current=!0;let R=y(b);l(L=>L.initialValue===R?L:{...L,initialValue:R})}j(()=>{let b=f.current;!b||!b.id||(i(n?void 0:b.name),c.current.fields.set(b.id,{getValue:p,name:n??b.name,controlRef:b.controlRef,validityData:Au(u,o),validate:v}))},[c,p,o,n,i,v,u]),j(()=>{let b=c.current.fields;return()=>{let R=f.current?.id;R&&b.delete(R)}},[c]);let S=W((b,R)=>{if(!R){d.current===b&&(d.current=null,t(void 0,!0),h(),f.current=null,i(void 0),s.current=void 0);return}let L=f.current?.id,C=d.current;C&&C!==b&&t(void 0,!0),d.current=b,f.current=R,n||i(R.name),s.current=R.id,L&&L!==R.id&&h(L),x(R),g()});return[v,S]}var Sv=I(Q(),1),z7=Ra.forwardRef(function(t,a){let{errors:o,validationMode:r,submitCountRef:n}=Cr(),{render:i,className:s,validate:l,validationDebounceTime:u=0,validationMode:c=r,name:d,disabled:f=!1,invalid:m,dirty:p,touched:y,actionsRef:v,style:g,...h}=t,x=oH(!0)?.disabled,S=W(l||(()=>null)),b=x||f,[R,L]=Ra.useState(!1),[C,E]=Ra.useState(!1),[T,A]=Ra.useState(!1),[V,M]=Ra.useState(!1),F=p??C,O=y??R,H=Ra.useRef(F),q=Ra.useRef(void 0),[D,N]=Ra.useState(),w=d??D;j(()=>{p!==void 0&&(H.current=p)},[p]);let z=W(Ee=>{p===void 0&&(Ee&&(H.current=!0),E(Ee))}),U=W(Ee=>{y===void 0&&L(Ee)}),X=W(()=>c==="onChange"||c==="onSubmit"&&n.current>0),P=w&&Object.hasOwn(o,w)?o[w]:null,_=!!(Array.isArray(P)?P.length:P),B=m===!0||_,[J,Y]=Ra.useState({state:Eu,error:"",errors:[],value:null,initialValue:null}),ee=!B&&(b?null:J.state.valid),se=Ra.useMemo(()=>({disabled:b,touched:O,dirty:F,valid:ee,filled:T,focused:V}),[b,O,F,ee,T,V]),ue=sH({setValidityData:Y,validate:S,validityData:J,validationDebounceTime:u,invalid:B,markedDirtyRef:H,state:se,shouldValidateOnChange:X,validationMode:c,registeredFieldIdRef:q}),[$,te]=lH({change:ue.change,commit:ue.commit,invalid:B,markedDirtyRef:H,name:d,setRegisteredFieldName:N,registeredFieldIdRef:q,setValidityData:Y,validityData:J});Ra.useImperativeHandle(v,()=>({validate:$}),[$]);let me=Ra.useMemo(()=>({invalid:B,name:w,validityData:J,setValidityData:Y,disabled:b,setTouched:U,setDirty:z,setFilled:A,setFocused:M,validationMode:c,shouldValidateOnChange:X,state:se,registerFieldControl:te,validation:ue}),[B,w,J,b,U,z,A,M,c,X,se,te,ue]),he=oe("div",t,{ref:a,state:se,props:h,stateAttributesMapping:Ka});return(0,Sv.jsx)(mT.Provider,{value:me,children:he})}),uH=Ra.forwardRef(function(t,a){return(0,Sv.jsx)(hv,{children:(0,Sv.jsx)(z7,{...t,ref:a})})});var Qp=I(k(),1);var vv=I(k(),1),yT=vv.createContext({disabled:!1});function bv(){return vv.useContext(yT)}var cH=Qp.forwardRef(function(t,a){let{render:o,className:r,style:n,id:i,nativeLabel:s=!0,...l}=t,u=ia(!1),c=bv(),{labelId:d}=La(),f={...u.state,disabled:u.disabled||c.disabled},m=Qp.useRef(null),p=xv({id:d??i,native:s});return oe("label",t,{ref:[a,m],state:f,props:[p,l],stateAttributesMapping:Ka})});var Mu=I(k(),1);var ST=I(Q(),1),H7={...Ka,...To},fH=Mu.forwardRef(function(t,a){let{render:o,id:r,className:n,match:i,style:s,...l}=t,u=na(r),{validityData:c,state:d,name:f}=ia(!1),{setMessageIds:m}=La(),{errors:p}=Cr(),y=f&&Object.hasOwn(p,f)?p[f]:null,v=!!(Array.isArray(y)?y.length:y),g=typeof i=="string",h=!1;i===!0?h=!0:d.disabled?h=!1:g?h=!!c.state[i]:h=v||c.state.valid===!1;let{mounted:x,transitionStatus:S,setMounted:b}=Ao(h);j(()=>{if(!(!h||!u))return m(H=>H.concat(u)),()=>{m(H=>H.filter(q=>q!==u))}},[h,u,m]);let R=Mu.useRef(null),[L,C]=Mu.useState(null),[E,T]=Mu.useState(null),A=c.error;!g&&v?A=y:c.errors.length>1&&(A=c.errors);let V=A;Array.isArray(A)&&(V=A.length>1?(0,ST.jsx)("ul",{children:A.map(H=>(0,ST.jsx)("li",{children:H},H))}):A[0]);let M=Array.isArray(A)?JSON.stringify(A):A;h&&M!==E&&(T(M),C(V)),Ya({open:h,ref:R,onComplete(){h||b(!1)}});let F={...d,transitionStatus:S},O=oe("div",t,{ref:[a,R],state:F,props:[{id:u,children:h?V:L},l],stateAttributesMapping:H7,enabled:x});return x?O:null});var dH=I(k(),1);var mH=dH.forwardRef(function(t,a){let{render:o,id:r,className:n,style:i,...s}=t,l=na(r),u=ia(!1),c=bv(),{setMessageIds:d}=La(),f={...u.state,disabled:u.disabled||c.disabled};return j(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(y=>y!==l))}},[l,d]),oe("p",t,{ref:a,state:f,props:[{id:l},s],stateAttributesMapping:Ka})});var Lv=I(k(),1);function Cv(e,t,a,o,r=!0,n){let{registerFieldControl:i}=ia(),s=tt(()=>Symbol());j(()=>{let l=s.current;if(!r){i(l,void 0);return}i(l,{controlRef:e,getValue:o,id:t,name:n,value:a})},[e,r,o,t,n,i,s,a]),j(()=>{let l=s.current;return()=>{i(l,void 0)}},[i,s])}var pH=I(k(),1);function Jf(e,t){let a=pH.useRef(e),o=W(t);j(()=>{a.current!==e&&o(a.current),a.current=e},[e,o])}var hH=Lv.forwardRef(function(t,a){let{render:o,className:r,id:n,name:i,value:s,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:y,disabled:v,setTouched:g,setDirty:h,validityData:x,setFocused:S,setFilled:b,validationMode:R,validation:L}=ia(),{clearErrors:C,elementRef:E,submitCountRef:T}=Cr(),A=v||l,V=y??i,M={...p,disabled:A},{labelId:F}=La(),O=Qf({id:n}),[H]=Iu({controlled:s,default:c,name:"FieldControl",state:"value"}),q=s!==void 0,D=q?H:void 0,N=D==null?void 0:String(D),w=W(()=>L.inputRef.current?.value);Cv(L.inputRef,O,N,w,!A,i),j(()=>{let P=N??L.inputRef.current?.value;P!==void 0&&b(P!=="")},[N,L.inputRef,b]),Jf(N,()=>{N!==void 0&&(C(V),h(N!==(x.initialValue??"")),L.change(N))});let z=Lv.useRef(null),U=Ze();return j(()=>{d&&z.current===Ft(ve(z.current))&&S(!0)},[d,S]),oe("input",t,{ref:[a,z],state:M,props:[{id:O,disabled:A,name:V,ref:L.inputRef,"aria-labelledby":F,autoFocus:d,...q?{value:D}:{defaultValue:c},onChange(P){let _=P.currentTarget.value,B=ye(ne.none,P.nativeEvent);u?.(_,B),!q&&(h(_!==(x.initialValue??"")),b(_!==""),!P.nativeEvent.defaultPrevented&&!B.isCanceled&&(C(V),L.change(_)))},onFocus(){S(!0)},onBlur(P){if(g(!0),S(!1),R==="onBlur"){let _=P.currentTarget.value;L.commit(_),q&&queueMicrotask(()=>{let B=L.inputRef.current?.value;B!==void 0&&B!==_&&B!==(x.initialValue??"")&&L.commit(B)})}},onKeyDown(P){if(P.currentTarget.tagName==="INPUT"&&P.key==="Enter"){g(!0);let _=P.currentTarget.value,B=P.currentTarget.form;if(B&&B===E.current&&!P.defaultPrevented){let J=P.currentTarget,Y=T.current;U.start(0,()=>{T.current===Y&&L.commit(J.value)})}else L.commit(_)}}},m,P=>L.getValidationProps(A,P)],stateAttributesMapping:Ka})});var Jp=I(k(),1);var gH=I(Q(),1),xH=function(t){let{children:a}=t,{validityData:o,invalid:r}=ia(!1),n=Jp.useMemo(()=>Au(o,r),[o,r]),i=n.state.valid===!1,{transitionStatus:s}=Ao(i),l=Jp.useMemo(()=>({...n,validity:n.state,transitionStatus:s}),[n,s]);return(0,gH.jsx)(Jp.Fragment,{children:a(l)})};var Rv=I(k(),1);var vT=I(Q(),1),yH=Rv.forwardRef(function(t,a){let{render:o,className:r,style:n,disabled:i=!1,...s}=t,{state:l,disabled:u}=ia(!1),c=u||i,d={...l,disabled:c},f=Rv.useMemo(()=>({disabled:c}),[c]),m=oe("div",t,{ref:a,state:d,props:s,stateAttributesMapping:Ka});return(0,vT.jsx)(hv,{children:(0,vT.jsx)(yT.Provider,{value:f,children:m})})});var vH=I(Q(),1),bT=SH.forwardRef(function(t,a){return(0,vH.jsx)(Iv.Control,{ref:a,...t})});var bH=I(Q(),1);function Tv({className:e,type:t,...a}){return(0,bH.jsx)(bT,{type:t,"data-slot":"input",className:re("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}var Za={};Qa(Za,{Arrow:()=>L_,Backdrop:()=>JH,Group:()=>O_,GroupLabel:()=>N_,Icon:()=>YH,Item:()=>y_,ItemIndicator:()=>v_,ItemText:()=>b_,Label:()=>HH,List:()=>g_,Popup:()=>p_,Portal:()=>ZH,Positioner:()=>u_,Root:()=>VH,ScrollDownArrow:()=>w_,ScrollUpArrow:()=>M_,Separator:()=>F_,Trigger:()=>qH,Value:()=>jH});var zt=I(k(),1);var CH=I(k(),1);function LH(e){let t=CH.useRef(!0);t.current&&(t.current=!1,e())}var Gs=I(k(),1),CT=Gs.createContext(void 0),LT=Gs.createContext(void 0),RT=Gs.createContext(void 0);function wt(){let e=Gs.useContext(CT);if(e===void 0)throw new Error(Be(60));return e}function js(){let e=Gs.useContext(LT);if(e===void 0)throw new Error(Be(101));return e}function wv(){let e=Gs.useContext(RT);if(e===void 0)throw new Error(Be(61));return e}function RH(e,t,a=Object.is){let{length:o}=e;if(o!==t.length)return!1;for(let r=0;r<o;r+=1)if(!a(e[r],t[r]))return!1;return!0}var TT=(e,t)=>Object.is(e,t);function pi(e,t,a){return e==null||t==null?Object.is(e,t):a(e,t)}function IH(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!RH(e,t,(o,r)=>pi(o,r,a)):e!==t}function IT(e,t,a){return e?e.some(o=>o===void 0?!1:pi(t,o,a)):!1}function $p(e,t,a){return e?e.findIndex(o=>o===void 0?!1:pi(o,t,a)):-1}function _7(e,t){if(t!==TT)return o=>IT(e,o,t);let a=new Set(e);return a.delete(void 0),o=>a.has(o)&&(o!==0||e.some(r=>Object.is(o,r)))}function wT(e,t,a,o){let r=o&&Array.isArray(t)?e.findIndex(_7(t,a)):$p(e,t,a);return r===-1?null:r}function TH(e,t,a,o,r,n){return IT(o,t,r)?n!=null&&e>n&&IT(o,a[n],r)?n:e:e===n?wT(a,o,r,!0):n}function wH(e,t,a){return e.filter(o=>!pi(t,o,a))}var EH=I(k(),1);function Ev(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var AH=I(Q(),1);function U7(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function MH(e){return U7(e?.[0])}function q7(e){return MH(e)?e.flatMap(t=>t.items):e}function PH(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(MH(t)){for(let a of t)for(let o of a.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(let a of t)if(a&&a.value==null&&a.label!=null)return!0;return!1}function ET(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Ev(e)}function Xs(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Ev(e.value):Ev(e)}function AT(e,t,a){function o(){return ET(e,a)}if(a&&e!=null)return a(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??o();if(Array.isArray(t)){let n=q7(t);if(e==null||typeof e!="object"){let i=n.find(s=>s.value===e);return i&&i.label!=null?i.label:o()}if("value"in e){let i=n.find(s=>s&&s.value===e.value);if(i&&i.label!=null)return i.label}}return o()}function DH(e,t,a){return e.reduce((o,r,n)=>(n>0&&o.push(", "),o.push((0,AH.jsx)(EH.Fragment,{children:AT(r,t,a)},n)),o),[])}var OH={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:a,itemToStringValue:o}=e;return t==null?!1:a&&Array.isArray(t)?t.length>0:Xs(t,o)!==""},hasNullItemLabel:(e,t)=>t?PH(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let a=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>pi(t,r,a)):pi(t,o,a)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var th=I(k(),1);var eh=I(k(),1);function kH(e){let t=eh.useRef(""),a=eh.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:eh.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:a}}function G7(e,t){let a=W((n,i)=>{(typeof e=="function"?e():e)||t(i||(at.os.ios?"touch":""))}),{onClick:o,onPointerDown:r}=kH(a);return th.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function NH(e){let[t,a]=th.useState(null),o=G7(e,a);return Jf(e,r=>{r&&!e&&a(null)}),th.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}var Pu=I(Q(),1);function VH(e){let{id:t,value:a,defaultValue:o=null,onValueChange:r,open:n,defaultOpen:i=!1,onOpenChange:s,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:y,inputRef:v,onOpenChangeComplete:g,items:h,multiple:x=!1,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:R=TT,highlightItemOnHover:L=!0,children:C}=e,{clearErrors:E}=Cr(),{setDirty:T,setTouched:A,setFocused:V,validityData:M,setFilled:F,name:O,disabled:H,validation:q,validationMode:D}=ia(),N=Qf({id:t}),w=H||d,z=O??l,[U,X]=Iu({controlled:a,default:x?o??bo:o,name:"Select",state:"value"}),[P,_]=Iu({controlled:n,default:i,name:"Select",state:"open"}),B=zt.useRef([]),J=zt.useRef([]),Y=zt.useRef(null),ee=zt.useRef(null),se=zt.useRef(0),ue=zt.useRef(null),$=zt.useRef([]),te=zt.useRef(!1),me=zt.useRef(null),he=zt.useRef(null),Ee=zt.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=zt.useRef(!1),Re=zt.useRef(U),{mounted:le,setMounted:Ie,transitionStatus:ke}=Ao(P),{openMethod:Pe,triggerProps:ut}=NH(P),ae=tt(()=>new Ln({id:N,labelId:void 0,modal:p,multiple:x,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:R,value:U,open:P,mounted:le,transitionStatus:ke,items:h,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:We,triggerProps:We,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Oe,setOpen:Oe,handleScrollArrowVisibility:Oe,onOpenChangeComplete:Oe,listRef:B,popupRef:Y,scrollHandlerRef:ee,scrollArrowsMountedCountRef:se,valueRef:ue,valuesRef:$,labelsRef:J,typingRef:te,selectionRef:Ee,firstItemTextRef:me,selectedItemTextRef:he,alignItemWithTriggerActiveRef:pe,initialValueRef:Re},OH)).current,fe=ae.useState("activeIndex"),K=ae.useState("selectedIndex"),G=ae.useState("triggerElement"),ie=ae.useState("positionerElement"),Ne=DS(Pe),Nt=Pe??Ne,Qt=zt.useMemo(()=>x?"":Xs(U,b),[x,U,b]),Et=zt.useMemo(()=>x&&Array.isArray(U)?U.map(Ke=>Xs(Ke,b)):Xs(U,b),[x,U,b]),bt=pt(G),Ia=W(()=>Et);Cv(bt,N,U,Ia,!w,l);let Ta=x?Array.isArray(U)&&U.length>0:U!=null&&Qt!=="";j(()=>{F(Ta)},[Ta,F]),j(function(){let Pt=wT($.current,U,R,x);Pt===null&&(he.current=null),!P&&ae.set("selectedIndex",Pt)},[x,P,U,R,ae]),Jf(U,()=>{E(z),T(IH(U,M.initialValue,R)),q.change(U)});let Jt=W((Ke,Pt)=>{s?.(Ke,Pt),!Pt.isCanceled&&(_(Ke),!Ke&&(Pt.reason===ne.focusOut||Pt.reason===ne.outsidePress)&&(A(!0),V(!1),D==="onBlur"&&q.commit(U)))}),Ba=W(()=>{Ie(!1),ae.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),g?.(!1)});Ya({enabled:!y,open:P,ref:Y,onComplete(){P||Ba()}}),zt.useImperativeHandle(y,()=>({unmount:Ba}),[Ba]);let uo=W((Ke,Pt)=>{r?.(Ke,Pt),!Pt.isCanceled&&X(Ke)}),Qo=W(Ke=>{let Pt=Gf(Ke.scrollHeight,Ke.clientHeight),An=ci(Ke.scrollTop,Pt),Js=An>0,$s=An<Pt;ae.set("scrollUpArrowVisible",Js),ae.set("scrollDownArrowVisible",$s)}),ha=FI({open:P,onOpenChange:Jt,elements:{reference:G,floating:ie}}),Ht=bI(ha,{enabled:!w,event:"mousedown"}),Ae=Hp(ha),Mt=XI(ha,{enabled:!w,listRef:B,activeIndex:fe,selectedIndex:K,disabledIndices:bo,onNavigate(Ke){Ke===null&&!P||ae.set("activeIndex",Ke)},focusItemOnHover:L}),Je=YI(ha,{enabled:!w&&(P||!f&&!x),listRef:J,activeIndex:fe,selectedIndex:K,disabledIndices:Ke=>$S(B.current[Ke]),onMatch(Ke){P?ae.set("activeIndex",Ke):uo($.current[Ke],ye(ne.none))},onTyping(Ke){te.current=Ke}}),Vt=zt.useMemo(()=>_a(Je.reference,Mt.reference,Ae.reference,Ht.reference,ut),[Ht.reference,Je.reference,Mt.reference,Ae.reference,ut]),co=zt.useMemo(()=>_a(fS,Je.floating,Mt.floating,Ae.floating),[Je.floating,Mt.floating,Ae.floating]),fo=Mt.item??We;ae.useContextCallback("setValue",uo),ae.useContextCallback("setOpen",Jt),ae.useContextCallback("handleScrollArrowVisibility",Qo),ae.useContextCallback("onOpenChangeComplete",g),LH(()=>{ae.update({popupProps:co,triggerProps:Vt})}),ae.useSyncedValues({id:N,modal:p,multiple:x,value:U,open:P,mounted:le,transitionStatus:ke,popupProps:co,triggerProps:Vt,items:h,itemToStringLabel:S,itemToStringValue:b,isItemEqualToValue:R,openMethod:Nt});let Bu=zt.useMemo(()=>({disabled:w,readOnly:f,required:m,multiple:x,highlightItemOnHover:L,itemProps:fo}),[w,f,m,x,L,fo]),xi=lr(v,q.inputRef),Qs=x?void 0:z,Ur=zt.useMemo(()=>!x||!Array.isArray(U)||!z?null:U.map(Ke=>{let Pt=Xs(Ke,b);return(0,Pu.jsx)("input",{type:"hidden",form:u,name:z,value:Pt,disabled:w},Pt)}),[x,U,u,z,b,w]);return(0,Pu.jsxs)(CT.Provider,{value:ae,children:[(0,Pu.jsx)(LT.Provider,{value:Bu,children:(0,Pu.jsx)(RT.Provider,{value:ha,children:C})}),(0,Pu.jsx)("input",{...q.getValidationProps(w,{onFocus(){ae.state.triggerElement?.focus({focusVisible:!0})},onChange(Ke){if(Ke.nativeEvent.defaultPrevented||w||f)return;let Pt=Ke.currentTarget.value,An=ye(ne.none,Ke.nativeEvent);function Js(){if(x)return;let $s=Pt.toLowerCase(),ud=$.current.findIndex(Xv=>Xs(Xv,b).toLowerCase()===$s||ET(Xv,S).toLowerCase()===$s);ud===-1&&(ud=$.current.findIndex((Xv,mU)=>{let qT=J.current[mU];return qT!=null&&qT.toLowerCase()===$s}));let UT=$.current[ud];UT!=null&&uo(UT,An)}ae.set("forceMount",!0),queueMicrotask(Js)}}),id:N&&Qs==null?`${N}-hidden-input`:void 0,form:u,name:Qs,autoComplete:c,value:Qt,disabled:w,required:m&&!(x&&Ta),readOnly:f,ref:xi,style:z?t2:Cf,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ur]})}var zH=I(k(),1);function BH(e){return e==null?void 0:`${e}-label`}function FH(e,t){return e??t}var HH=zH.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=i;delete s.id;let l=ia(),u=wt(),c=u.useState("triggerElement"),d=u.useState("id"),f=BH(d),m=xv({id:f,fallbackControlId:c?.id??d,setLabelId(p){let y=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",y)}});return oe("div",t,{ref:a,state:l.state,props:[m,i],stateAttributesMapping:Ka})});var $f=I(k(),1);var Av=5;function _H(e,t){let a=j7(t);return e.clientX>=a.left-Av&&e.clientX<=a.right+Av&&e.clientY>=a.top-Av&&e.clientY<=a.bottom+Av}function j7(e){let t=e.getBoundingClientRect(),a=ze(e);if(at.env.jsdom)return t;let o=a.getComputedStyle(e,"::before"),r=a.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;let i=parseFloat(o.width)||0,s=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,c=Math.max(t.width,i,l),d=Math.max(t.height,s,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var JAe=cu.popupOpen,$Ae=cu.pressed;var UH="data-popup-side";var Y7=400,W7={...YV,...Ka,popupSide:e=>e?{[UH]:e}:null,value:()=>null},qH=$f.forwardRef(function(t,a){let{render:o,className:r,id:n,disabled:i=!1,nativeButton:s=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:y}=ia(),{labelId:v}=La(),g=wt(),{readOnly:h,required:x,disabled:S}=js(),b=y||S||i,R=g.useState("open"),L=g.useState("mounted"),C=g.useState("value"),E=g.useState("triggerProps"),T=g.useState("positionerElement"),A=g.useState("listElement"),V=g.useState("popupSide"),M=g.useState("id"),F=g.useState("labelId"),O=g.useState("hasSelectedValue"),H=L&&T?V:null,q=n??M,D=FH(v,F);Qf({id:n});let N=pt(T),w=$f.useRef(null),{getButtonProps:z,buttonRef:U}=ai({disabled:b,native:s}),X=g.useStateSetter("triggerElement"),P=Ze(),_=Ze(),B=Ze();$f.useEffect(()=>{if(R)return B.start(Y7,()=>{g.context.selectionRef.current.allowUnselectedMouseUp=!0,g.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{B.clear()};g.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},_.clear()},[R,g,_,B]);let J=_a(E,{id:q,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":R?A?.id??du(T)?.id:void 0,"aria-labelledby":D,"aria-readonly":h||void 0,"aria-required":x||void 0,tabIndex:b?-1:0,onFocus(se){d(!0),R&&g.context.alignItemWithTriggerActiveRef.current&&g.context.setOpen(!1,ye(ne.none,se.nativeEvent)),P.start(0,()=>{g.set("forceMount",!0)})},onBlur(se){ce(T,se.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(C))},onMouseDown(se){if(R)return;let ue=ve(se.currentTarget);function $(te){if(!w.current)return;let me=te.target;ce(w.current,me)||ce(N.current,me)||_H(te,w.current)||g.context.setOpen(!1,ye(ne.cancelOpen,te))}_.start(0,()=>{ue.addEventListener("mouseup",$,{once:!0})})}},u,z),Y=m.getValidationProps(b,J);Y.role="combobox";let ee={...p,open:R,disabled:b,value:C,readOnly:h,popupSide:H,placeholder:!O};return oe("button",t,{ref:[a,w,U,X],state:ee,stateAttributesMapping:W7,props:Y})});var GH=I(k(),1);var K7={value:()=>null},jH=GH.forwardRef(function(t,a){let{className:o,render:r,children:n,placeholder:i,style:s,...l}=t,u=wt(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&i!=null&&n==null,y=u.useState("hasNullItemLabel",p),v={value:c,placeholder:!m},g=null;return typeof n=="function"?g=n(c):n!=null?g=n:p&&!y?g=i:Array.isArray(c)?g=DH(c,d,f):g=AT(c,d,f),oe("span",t,{state:v,ref:[a,u.context.valueRef],props:[{children:g},l],stateAttributesMapping:K7})});var XH=I(k(),1);var YH=XH.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,u={open:wt().useState("open")};return oe("span",t,{state:u,ref:a,props:[{"aria-hidden":!0,children:"\u25BC"},i],stateAttributesMapping:Fy})});var WH=I(k(),1);var KH=I(Q(),1),ZH=WH.forwardRef(function(t,a){let o=wt(),r=o.useState("mounted"),n=o.useState("forceMount");return r||n?(0,KH.jsx)(yI,{ref:a,...t}):null});var QH=I(k(),1);var Z7={...ri,...To},JH=QH.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=wt(),l=s.useState("open"),u=s.useState("mounted"),c=s.useState("transitionStatus");return oe("div",t,{state:{open:l,transitionStatus:c},ref:a,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},i],stateAttributesMapping:Z7})});var Lr=I(k(),1);var Mv=I(k(),1),MT=Mv.createContext(void 0);function Ys(){let e=Mv.useContext(MT);if(!e)throw new Error(Be(59));return e}var $H=I(k(),1),e_=I(Q(),1),t_=$H.forwardRef(function(t,a){let{cutout:o,...r}=t,n;if(o){let i=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return(0,e_.jsx)("div",{ref:a,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});function ed(e,t){e&&Object.assign(e.style,t)}var Pv={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var s_=I(k(),1);var a_={},o_={},r_="";function Dv(e,t){return nu(e)?e:t}function n_(e,t,a){return/hidden|clip/.test(e.getComputedStyle(Dv(t,a)).overflowY)}function Q7(e){if(typeof document>"u")return!1;let t=ve(e);return ze(t).innerWidth-t.documentElement.clientWidth>0}function J7(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=ve(e),o=a.documentElement,r=a.body,n=Dv(o,r),i=n.style.overflowY,s=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",n.style.overflowY="scroll";let l=n.offsetWidth;n.style.overflowY="hidden";let u=n.offsetWidth;return n.style.overflowY=i,o.style.scrollbarGutter=s,l===u}function $7(e){let t=ve(e),a=t.documentElement,o=t.body,r=Dv(a,o),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}function eY(e){let t=ve(e),a=t.documentElement,o=t.body,r=ze(a),n=0,i=0,s=!1,l=gr.create();if(at.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=r.getComputedStyle(a),p=r.getComputedStyle(o),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";n=a.scrollTop,i=a.scrollLeft,a_={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},r_=a.style.scrollBehavior,o_={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,S=m.overflowY==="scroll"||p.overflowY==="scroll",b=m.overflowX==="scroll"||p.overflowX==="scroll",R=Math.max(0,r.innerWidth-o.clientWidth),L=Math.max(0,r.innerHeight-o.clientHeight),C=parseFloat(p.marginTop)+parseFloat(p.marginBottom),E=parseFloat(p.marginLeft)+parseFloat(p.marginRight),T=Dv(a,o);if(s=J7(e),s){a.style.scrollbarGutter=g,T.style.overflowY="hidden",T.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(h||S)&&(a.style.overflowY="scroll"),(x||b)&&(a.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:C||L?`calc(100dvh - ${C+L}px)`:"100dvh",width:E||R?`calc(100vw - ${E+R}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=n,o.scrollLeft=i,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){Object.assign(a.style,a_),Object.assign(o.style,o_),s||(a.scrollTop=n,a.scrollLeft=i,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=r_)}function d(){c(),l.request(u)}u();let f=Le(r,"resize",d);return()=>{l.cancel(),c(),typeof r.removeEventListener=="function"&&f()}}var PT=class{lockCount=0;restore=null;timeoutLock=qa.create();timeoutUnlock=qa.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let a=ve(t),o=a.documentElement,r=a.body,n=ze(o);if(n_(n,o,r)){let s=new n.MutationObserver(()=>{n_(n,o,r)||(s.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};s.observe(o,l),s.observe(r,l),this.restore=()=>s.disconnect();return}let i=at.os.ios||!Q7(t);this.restore=i?$7(t):eY(t)}},tY=new PT;function i_(e=!0,t=null){j(()=>{if(e)return tY.acquire(t)},[e,t])}var aY=20;function l_(e,t,a,o){let[r,n]=s_.useState(!1);j(()=>{if(!e||!t||a==null){n(!1);return}let i=ve(a).documentElement.clientWidth,s=a.offsetWidth;n(i>0&&s>0&&s>=i-aY)},[e,t,a]),i_(e&&(!t||r),o)}var ah=I(Q(),1),oY={position:"fixed"},u_=Lr.forwardRef(function(t,a){let{anchor:o,className:r,render:n,positionMethod:i,side:s,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:y,alignItemWithTrigger:v=!0,collisionAvoidance:g=I2,style:h,...x}=t,S=wt(),b=wv(),R=S.useState("open"),L=S.useState("mounted"),C=S.useState("modal"),E=S.useState("value"),T=S.useState("openMethod"),A=S.useState("positionerElement"),V=S.useState("triggerElement"),M=S.useState("isItemEqualToValue"),F=S.useState("transitionStatus"),O=Lr.useRef(null),H=Lr.useRef(null),[q,D]=Lr.useState(v),N=L&&q&&T!=="touch";!L&&q!==v&&D(v),Lr.useImperativeHandle(S.context.alignItemWithTriggerActiveRef,()=>N),l_((N||C)&&R,T==="touch",A,V);let w=AS({anchor:o,floatingRootContext:b,positionMethod:i,mounted:L,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:y??N,collisionAvoidance:g,keepMounted:!0}),z=N?"none":w.side,U=N?oY:w.positionerStyles,X={open:R,side:z,align:w.align,anchorHidden:w.anchorHidden};j(()=>{S.set("popupSide",w.side)},[S,w.side]);let P=S.useStateSetter("positionerElement"),_=MS(t,X,{styles:U,transitionStatus:F,props:x,refs:[a,P],hidden:!L,inert:!R}),B=Lr.useRef(0),J=W(ee=>{if(S.context.valuesRef.current.length===0)return;let se=B.current;B.current=ee.size;let ue=ye(ne.none);if(se!==0&&!S.state.multiple&&E!==null&&$p(S.context.valuesRef.current,E,M)===-1){let te=S.context.initialValueRef.current,he=te!=null&&$p(S.context.valuesRef.current,te,M)!==-1?te:null;S.context.setValue(he,ue),he===null&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null)}if(se!==0&&S.state.multiple&&Array.isArray(E)){let $=E.filter(te=>$p(S.context.valuesRef.current,te,M)!==-1);$.length!==E.length&&(S.context.setValue($,ue),$.length===0&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null))}if(R&&N){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let $={height:""};ed(A,$),ed(S.context.popupRef.current,$)}}),Y=Lr.useMemo(()=>({...w,side:z,alignItemWithTriggerActive:N,setControlledAlignItemWithTrigger:D,scrollUpArrowRef:O,scrollDownArrowRef:H}),[w,z,N,D]);return(0,ah.jsx)(Xf,{elementsRef:S.context.listRef,labelsRef:S.context.labelsRef,onMapChange:J,children:(0,ah.jsxs)(MT.Provider,{value:Y,children:[L&&C&&(0,ah.jsx)(t_,{inert:Nf(!R),cutout:V}),_]})})});var Rr=I(k(),1);var Ov=I(k(),1),rY=Ov.createContext(void 0);function c_(e){let t=Ov.useContext(rY);if(t===void 0&&!e)throw new Error(Be(69));return t}var DT="--transform-origin";var Vv=I(Q(),1),iY={...ri,...To},p_=Rr.forwardRef(function(t,a){let{render:o,className:r,style:n,finalFocus:i,...s}=t,l=wt(),{multiple:u,readOnly:c,highlightItemOnHover:d}=js(),f=wv(),{side:m,align:p,alignItemWithTriggerActive:y,isPositioned:v,setControlledAlignItemWithTrigger:g}=Ys(),h=c_(!0)!=null,x=Mo(),{nonce:S,disableStyleElements:b}=qf(),R=l.useState("id"),L=l.useState("open"),C=l.useState("openMethod"),E=l.useState("mounted"),T=l.useState("popupProps"),A=l.useState("transitionStatus"),V=l.useState("triggerElement"),M=l.useState("positionerElement"),F=l.useState("listElement"),O=Rr.useRef(!1),H=Rr.useRef(!1),q=Rr.useRef({}),D=so(),N=W(X=>{if(!M||!l.context.popupRef.current||!H.current)return;let P=M.style.top==="0px",_=M.style.bottom==="0px";if(O.current||!y||!P&&!_){l.context.handleScrollArrowVisibility(X);return}let B=d_(M),J=oh(M.getBoundingClientRect().height,"y",B),Y=ve(M),ee=ze(M),se=ee.getComputedStyle(M),ue=parseFloat(se.marginTop),$=parseFloat(se.marginBottom),te=f_(ee.getComputedStyle(l.context.popupRef.current)),me=Math.min(Y.documentElement.clientHeight-ue-$,te),he=X.scrollTop,Ee=kv(X),pe=null,Re=Pe=>{M.style.height=`${Pe}px`},le=P?Ee-he:he,Ie=Math.min(J+le,me);if(le<=Zo){let Pe=br(le,0,me-J);Pe>0&&Re(J+Pe),X.scrollTop=P?Ee:0,me-(J+Pe)<=Zo&&(O.current=!0),l.context.handleScrollArrowVisibility(X);return}if(me-Ie>Zo)pe=P?1/0:0;else if(_&&he<Ee){let Pe=J+le-me;pe=he-(le-Pe)}let ke=Math.ceil(Ie);if(ke!==0&&Re(ke),pe!=null){let Pe=br(pe,0,kv(X));Math.abs(X.scrollTop-Pe)>Zo&&(X.scrollTop=Pe)}ke>=me-Zo&&(O.current=!0),l.context.handleScrollArrowVisibility(X)});Rr.useImperativeHandle(l.context.scrollHandlerRef,()=>N,[N]),Ya({open:L,ref:l.context.popupRef,onComplete(){L&&l.context.onOpenChangeComplete(!0)}});let w={open:L,transitionStatus:A,side:m,align:p};j(()=>{!M||!l.context.popupRef.current||Object.keys(q.current).length||(q.current={top:M.style.top||"0",left:M.style.left||"0",right:M.style.right,height:M.style.height,bottom:M.style.bottom,minHeight:M.style.minHeight,maxHeight:M.style.maxHeight,marginTop:M.style.marginTop,marginBottom:M.style.marginBottom})},[l,M]),j(()=>{L||y||(H.current=!1,O.current=!1,ed(M,q.current))},[L,y,M]),j(()=>{let X=l.context.popupRef.current;if(!L||!V||!M||!X||y&&!v||l.state.transitionStatus==="ending")return;if(H.current=!0,X.style.removeProperty(DT),!y){D.request(()=>l.context.handleScrollArrowVisibility(F||X));return}let P=sY(X);try{let _=l.context.selectedItemTextRef.current;_?.isConnected||(_=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let B=l.context.valueRef.current,J=ze(M),Y=J.getComputedStyle(M),ee=J.getComputedStyle(X),se=ve(V),ue=d_(V),$=Nv(V.getBoundingClientRect(),ue),te=Nv(M.getBoundingClientRect(),ue),me=$.height,he=F||X,Ee=he.scrollHeight,pe=parseFloat(ee.borderBottomWidth),Re=parseFloat(Y.marginTop)||10,le=parseFloat(Y.marginBottom)||10,Ie=parseFloat(Y.minHeight)||100,ke=f_(ee),Pe=5,ut=5,ae=20,fe=se.documentElement.clientHeight-Re-le,K=se.documentElement.clientWidth,G=fe-$.bottom+me,ie,Ne=x==="rtl"?$.right-te.width:$.left,Nt=0;if(_&&B){let Ht=Nv(B.getBoundingClientRect(),ue);ie=Nv(_.getBoundingClientRect(),ue),Ne=te.left+(x==="rtl"?Ht.right-ie.right:Ht.left-ie.left);let Ae=Ht.top-$.top+Ht.height/2;Nt=ie.top-te.top+ie.height/2-Ae}let Qt=G+Nt+le+pe,Et=Math.min(fe,Qt),bt=fe-Re-le,Ia=Qt-Et,Ta=K-ut;M.style.left=`${br(Ne,Pe,Ta-te.width)}px`,M.style.height=`${Et}px`,M.style.maxHeight="none",M.style.marginTop=`${Re}px`,M.style.marginBottom=`${le}px`,X.style.height="100%";let Jt=kv(he),Ba=Ia>=Jt-Zo;Ba&&(Et=Math.min(fe,te.height)-(Ia-Jt));let uo=$.top<ae||$.bottom>fe-ae||Math.ceil(Et)+Zo<Math.min(Ee,Ie),Qo=(J.visualViewport?.scale??1)!==1&&at.engine.webkit;if(uo||Qo){ed(M,q.current),g(!1);return}let ha=Math.max(Ie,Et);if(Ba){let Ht=Math.max(0,fe-Qt);M.style.top=te.height>=bt?"0":`${Ht}px`,M.style.height=`${Et}px`,he.scrollTop=kv(he)}else M.style.bottom="0",he.scrollTop=Ia;if(ie){let Ht=te.top,Ae=te.height,Mt=ie.top+ie.height/2,Je=br(Ae>0?(Mt-Ht)/Ae*100:50,0,100);X.style.setProperty(DT,`50% ${Je}%`)}(ha===fe||Et>=ke)&&(O.current=!0),l.context.handleScrollArrowVisibility(he),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{P()}},[l,L,M,V,y,g,D,F,d,x,v]),Rr.useEffect(()=>{if(!y||!M||!L)return;let X=ze(M);function P(_){l.context.setOpen(!1,ye(ne.windowResize,_))}return Le(X,"resize",P)},[l,y,M,L]);let z={...F?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${R}-list`},onKeyDown(X){h&&sv.has(X.key)&&X.stopPropagation()},onScroll(X){F||N(X.currentTarget)},...y&&{style:F?{height:"100%"}:Pv},className:!F&&y?ui.className:void 0},U=oe("div",t,{ref:[a,l.context.popupRef],state:w,stateAttributesMapping:iY,props:[T,z,kf(A),s]});return(0,Vv.jsxs)(Rr.Fragment,{children:[!b&&ui.getElement(S),(0,Vv.jsx)(vI,{context:f,modal:!1,disabled:!E,openInteractionType:C,returnFocus:i,restoreFocus:!0,children:U})]})});function f_(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function kv(e){return Gf(e.scrollHeight,e.clientHeight)}function d_(e){return _p.getScale(e)}function oh(e,t,a){return e/a[t]}function Nv(e,t){return ni({x:oh(e.x,"x",t),y:oh(e.y,"y",t),width:oh(e.width,"x",t),height:oh(e.height,"y",t)})}var m_=[["transform","none"],["scale","1"],["translate","0 0"]];function sY(e){let{style:t}=e,a={};for(let[o,r]of m_)a[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(let[o]of m_){let r=a[o];r?t.setProperty(o,r):t.removeProperty(o)}}}var h_=I(k(),1);var g_=h_.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=wt(),{multiple:l,readOnly:u}=js(),{alignItemWithTriggerActive:c}=Ys(),d=s.useState("hasScrollArrows"),f=s.useState("openMethod"),p={id:`${s.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(v){s.context.scrollHandlerRef.current?.(v.currentTarget)},...c&&{style:Pv},className:d&&f!=="touch"?ui.className:void 0},y=s.useStateSetter("listElement");return oe("div",t,{ref:[a,y],props:[p,i]})});var _r=I(k(),1);var Bv=I(k(),1),OT=Bv.createContext(void 0);function rh(){let e=Bv.useContext(OT);if(!e)throw new Error(Be(57));return e}var x_=I(Q(),1),y_=_r.memo(_r.forwardRef(function(t,a){let{render:o,className:r,style:n,value:i=null,label:s,disabled:l=!1,nativeButton:u=!1,...c}=t,d=_r.useRef(null),f=Yf({guess:!0,label:s,textRef:d}),m=wt(),{itemProps:p,multiple:y,disabled:v,readOnly:g}=js(),h=v||l,x=m.useState("isActive",f.index),S=m.useState("open"),b=m.useState("isSelected",i),R=m.useState("isSelectedByFocus",f.index),L=m.useState("isItemEqualToValue"),C=f.index,E=_r.useRef(null);j(()=>{let w=m.context.valuesRef.current;return w[C]=i,()=>{delete w[C]}},[C,i,m]),j(()=>{let w=m.state.value,z=m.state.selectedIndex,U=z,X;y&&Array.isArray(w)?(U=TH(C,i,m.context.valuesRef.current,w,L,z),X=U===C,C===z&&!X&&(m.context.selectedItemTextRef.current=null)):(X=w!==void 0&&pi(i,w,L),X&&(U=C)),m.set("selectedIndex",U),X&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[C,y,L,m,i]);let T=_r.useRef("mouse"),A=_r.useRef(!1),{getButtonProps:V,buttonRef:M}=ai({disabled:h,focusableWhenDisabled:!0,native:u,composite:!0}),F={disabled:h,selected:b,highlighted:x};function O(w){if(v||g)return;let z=m.state.value;if(y){let U=Array.isArray(z)?z:[],X=b?wH(U,i,L):[...U,i];m.context.setValue(X,ye(ne.itemPress,w))}else m.context.setValue(i,ye(ne.itemPress,w)),m.context.setOpen(!1,ye(ne.itemPress,w))}function H(){m.context.selectionRef.current.dragY=0}let q={role:"option","aria-selected":b,tabIndex:S&&x?0:-1,onKeyDown(w){m.set("activeIndex",C),w.key===" "&&m.context.typingRef.current&&w.preventDefault()},onClick(w){let z=T.current!=="touch",U=w.nativeEvent.pointerType,X=z&&As(w.nativeEvent)&&(U!==void 0||x),P=z&&!X&&!A.current;A.current=!1,!(h||P)&&O(w.nativeEvent)},onPointerEnter(w){T.current=w.pointerType},onPointerMove(w){if(w.pointerType==="mouse"&&w.buttons===1){let z=m.context.selectionRef.current;z.dragY+=w.movementY,z.dragY**2>=64&&(z.allowUnselectedMouseUp=!0)}},onPointerDown(w){T.current=w.pointerType,A.current=!0,H()},onMouseUp(){if(H(),h||T.current==="touch"||A.current)return;let w=!m.context.selectionRef.current.allowSelectedMouseUp&&b,z=!m.context.selectionRef.current.allowUnselectedMouseUp&&!b;w||z||(A.current=!0,E.current?.click(),A.current=!1)}},D=oe("div",t,{ref:[M,a,f.ref,E],state:F,props:[p,q,c,V]}),N=_r.useMemo(()=>({selected:b,index:C,textRef:d,selectedByFocus:R}),[b,C,d,R]);return(0,x_.jsx)(OT.Provider,{value:N,children:D})}));var Du=I(k(),1);var S_=I(Q(),1),v_=Du.forwardRef(function(t,a){let{selected:o}=rh();return t.keepMounted||o?(0,S_.jsx)(lY,{...t,ref:a}):null}),lY=Du.memo(Du.forwardRef((e,t)=>{let{render:a,className:o,style:r,keepMounted:n,...i}=e,{selected:s}=rh(),l=Du.useRef(null),{transitionStatus:u,setMounted:c}=Ao(s),f=oe("span",e,{ref:[t,l],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},i],stateAttributesMapping:To});return Ya({batch:!0,enabled:!s,open:s,ref:l,onComplete(){s||c(!1)}}),f}));var td=I(k(),1);var b_=td.memo(td.forwardRef(function(t,a){let{index:o,textRef:r,selectedByFocus:n}=rh(),i=wt(),{render:s,className:l,style:u,...c}=t,d=td.useCallback(m=>{m&&(o===0&&(i.context.firstItemTextRef.current=m),n&&(i.context.selectedItemTextRef.current=m))},[i,o,n]);return oe("div",t,{ref:[d,a,r],props:c})}));var C_=I(k(),1);var L_=C_.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,s=wt(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Ys(),y={open:s.useState("open"),side:l,align:u,uncentered:f},v=oe("div",t,{state:y,ref:[c,a],props:[{style:d,"aria-hidden":!0},i],stateAttributesMapping:zy});return m?null:v});var I_=I(k(),1);var R_=I(k(),1);var Fv=R_.forwardRef(function(t,a){let{render:o,className:r,style:n,direction:i,keepMounted:s,...l}=t,u=i==="up",c=wt(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Ys(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",y=c.useState(p),v=c.useState("openMethod"),g=y&&v!=="touch",h=Ze(),x=u?m:f,{mounted:S,transitionStatus:b,setMounted:R}=Ao(g);j(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),Ya({open:g,ref:x,onComplete(){g||R(!1)}});let E=oe("div",t,{ref:[a,x],state:{direction:i,visible:g,side:d,transitionStatus:b},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(A){if(A.movementX===0&&A.movementY===0||h.isStarted())return;c.set("activeIndex",null);function V(){let M=c.state.listElement??c.context.popupRef.current;if(!M)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(M);let F=Gf(M.scrollHeight,M.clientHeight),O=ci(M.scrollTop,F),H=O===(u?0:F),q=c.context.listRef.current;if(O!==M.scrollTop&&(M.scrollTop=O),H){h.clear();return}if(q.length>0){let D=x.current?.offsetHeight||0;M.scrollTop=uY(q,u,O,M.clientHeight,D,F)}h.start(40,V)}h.start(40,V)},onMouseLeave(){h.clear()}},l],stateAttributesMapping:To});return S||s?E:null});function uY(e,t,a,o,r,n){if(t){let c=0,d=a+r-Zo;for(let p=0;p<e.length;p+=1){let y=e[p];if(y&&y.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?ci(m.offsetTop-r,n):0}let i=e.length-1,s=a+o-r+Zo;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>s){i=Math.max(0,c-1);break}}let l=Math.min(e.length-1,i+1),u=e[l];return l>i&&u?ci(u.offsetTop+u.offsetHeight-o+r,n):n}var T_=I(Q(),1),w_=I_.forwardRef(function(t,a){return(0,T_.jsx)(Fv,{...t,ref:a,direction:"down"})});var E_=I(k(),1);var A_=I(Q(),1),M_=E_.forwardRef(function(t,a){return(0,A_.jsx)(Fv,{...t,ref:a,direction:"up"})});var ad=I(k(),1);var zv=I(k(),1),kT=zv.createContext(void 0);function P_(){let e=zv.useContext(kT);if(e===void 0)throw new Error(Be(56));return e}var D_=I(Q(),1),O_=ad.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,[s,l]=ad.useState(),u=ad.useMemo(()=>({labelId:s,setLabelId:l}),[s,l]),c=oe("div",t,{ref:a,props:[{role:"group","aria-labelledby":s},i]});return(0,D_.jsx)(kT.Provider,{value:u,children:c})});var k_=I(k(),1);var N_=k_.forwardRef(function(t,a){let{render:o,className:r,style:n,id:i,...s}=t,{setLabelId:l}=P_(),u=na(i);return j(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),oe("div",t,{ref:a,props:[{id:u,"aria-hidden":!0},s]})});var V_=I(k(),1);var B_=V_.forwardRef(function(t,a){let{className:o,render:r,orientation:n="horizontal",style:i,...s}=t;return oe("div",t,{state:{orientation:n},ref:a,props:[{role:"presentation"},s]})});var F_=B_;var Zt=I(Q(),1),od=Za.Root;function rd({className:e,...t}){return(0,Zt.jsx)(Za.Value,{"data-slot":"select-value",className:re("flex flex-1 text-left",e),...t})}function nd({className:e,size:t="default",children:a,...o}){return(0,Zt.jsxs)(Za.Trigger,{"data-slot":"select-trigger","data-size":t,className:re("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[a,(0,Zt.jsx)(Za.Icon,{render:(0,Zt.jsx)(Zi,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function id({className:e,children:t,side:a="bottom",sideOffset:o=4,align:r="center",alignOffset:n=0,alignItemWithTrigger:i=!0,...s}){return(0,Zt.jsx)(Za.Portal,{children:(0,Zt.jsx)(Za.Positioner,{side:a,sideOffset:o,align:r,alignOffset:n,alignItemWithTrigger:i,className:"isolate z-50",children:(0,Zt.jsxs)(Za.Popup,{"data-slot":"select-content","data-align-trigger":i,className:re("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[(0,Zt.jsx)(cY,{}),(0,Zt.jsx)(Za.List,{children:t}),(0,Zt.jsx)(fY,{})]})})})}function Ws({className:e,children:t,...a}){return(0,Zt.jsxs)(Za.Item,{"data-slot":"select-item",className:re("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Zt.jsx)(Za.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,Zt.jsx)(Za.ItemIndicator,{render:(0,Zt.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,Zt.jsx)(Xn,{className:"pointer-events-none"})})]})}function cY({className:e,...t}){return(0,Zt.jsx)(Za.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:re("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)(pm,{})})}function fY({className:e,...t}){return(0,Zt.jsx)(Za.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:re("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)(Zi,{})})}var lt=I(Q(),1),z_={all:"Any state",done:"Done",problem:"Needs attention"},H_={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"},dY=e=>(e.split("/").pop()??e).replace(/-(contributor-)?free$/,"").replace(/-\d+\.\d+$/,""),mY=e=>({id:e.id,state:e.state,kind:e.kind,worker:e.model?`${e.backend} (${dY(e.model)})`:e.backend,task:e.task,group:e.group,startedAt:e.startedAt,time:e.seconds!=null?Wn(e.seconds):"",steps:e.steps??0,tokens:e.tokens,saved:e.saved,verdict:e.verdict,changes:e.files||void 0,applied:e.applied||void 0,note:""});function __(){let[e,t]=(0,Po.useState)(""),[a,o]=(0,Po.useState)(""),[r,n]=(0,Po.useState)("all"),[i,s]=(0,Po.useState)("all"),[l,u]=(0,Po.useState)("0"),[c,d]=(0,Po.useState)([]),[f,m]=(0,Po.useState)(),[p,y]=(0,Po.useState)(!1),[v,g]=(0,Po.useState)();(0,Po.useEffect)(()=>{qo.stats(0).then(g).catch(()=>{})},[]),(0,Po.useEffect)(()=>{let b=setTimeout(()=>o(e),250);return()=>clearTimeout(b)},[e]);let h={q:a,state:r==="all"?void 0:r,model:i==="all"?void 0:i,days:Number(l)||void 0};(0,Po.useEffect)(()=>{let b=!0;return y(!0),qo.history({...h,limit:30}).then(R=>{b&&(d(R.rows),m(R.total),y(!1))}).catch(()=>b&&y(!1)),()=>{b=!1}},[a,r,i,l]);let x=async()=>{let b=await qo.history({...h,limit:30,before:c.at(-1)?.id});d(R=>[...R,...b.rows])},S=[...new Set((v?.byWorker??[]).map(b=>b.model).filter(Boolean))];return(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,lt.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,lt.jsx)(Dr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,lt.jsx)(Tv,{value:e,onChange:b=>t(b.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,lt.jsxs)(od,{value:r,onValueChange:b=>n(b??"all"),items:z_,children:[(0,lt.jsx)(nd,{className:"w-40",children:(0,lt.jsx)(rd,{})}),(0,lt.jsx)(id,{children:Object.entries(z_).map(([b,R])=>(0,lt.jsx)(Ws,{value:b,children:R},b))})]}),(0,lt.jsxs)(od,{value:i,onValueChange:b=>s(b??"all"),items:{all:"Any model",...Object.fromEntries(S.map(b=>[b,b.split("/").pop()]))},children:[(0,lt.jsx)(nd,{className:"w-44",children:(0,lt.jsx)(rd,{})}),(0,lt.jsxs)(id,{children:[(0,lt.jsx)(Ws,{value:"all",children:"Any model"}),S.map(b=>(0,lt.jsx)(Ws,{value:b,children:b.split("/").pop()},b))]})]}),(0,lt.jsxs)(od,{value:l,onValueChange:b=>u(b??"0"),items:H_,children:[(0,lt.jsx)(nd,{className:"w-40",children:(0,lt.jsx)(rd,{})}),(0,lt.jsx)(id,{children:Object.entries(H_).map(([b,R])=>(0,lt.jsx)(Ws,{value:b,children:R},b))})]})]}),(0,lt.jsxs)("div",{className:"space-y-2.5",children:[p&&!c.length&&[0,1,2,3].map(b=>(0,lt.jsx)(oi,{className:"h-24 rounded-xl"},b)),c.map((b,R)=>(0,lt.jsx)(jf,{run:mY(b),index:R,when:!0},b.id)),!p&&!c.length&&(0,lt.jsx)("div",{className:"py-16 text-center text-muted-foreground",children:"No runs match."})]}),(0,lt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,lt.jsx)("span",{children:f!=null?`${c.length} of ${f} runs`:""}),f!=null&&c.length<f&&(0,lt.jsx)(pr,{variant:"outline",onClick:()=>void x(),children:"Load more"})]})]})}var hi=I(k(),1);var Ou=I(Q(),1);function Hv({children:e}){return(0,Ou.jsxs)(zf,{children:[(0,Ou.jsx)(Hf,{render:(0,Ou.jsx)("span",{tabIndex:0,"aria-label":"What is this?",className:"inline-flex cursor-help items-center text-muted-foreground/70 outline-none hover:text-foreground focus-visible:text-foreground"}),children:(0,Ou.jsx)(Im,{className:"size-3.5"})}),(0,Ou.jsx)(_f,{className:"max-w-64 text-balance",children:e})]})}var Uv=I(Q(),1);function _v({price:e}){return(0,Uv.jsxs)(Uv.Fragment,{children:["An estimate, not money back. It is what your main model (",e??"Claude Sonnet"," list prices) would have charged to read the tokens the workers read, minus what the workers cost and the cost of reading their reports."]})}var qv=I(Q(),1);function Gv({value:e,onChange:t,options:a}){return(0,qv.jsx)(lv,{value:e,onValueChange:o=>t(o),children:(0,qv.jsx)(uv,{children:a.map(o=>(0,qv.jsx)(Zf,{value:o.value,children:o.label},o.value))})})}var U_=I(Q(),1);function sd({className:e,size:t="default",...a}){return(0,U_.jsx)("div",{"data-slot":"card","data-size":t,className:re("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}var $e=I(Q(),1);function NT(e,t=450){let[a,o]=(0,hi.useState)(e),[r,n]=(0,hi.useState)(e);if(r!==e){n(e);let i=performance.now(),s=a,l=u=>{let c=Math.min(1,(u-i)/t);o(s+(e-s)*(1-(1-c)**3)),c<1&&requestAnimationFrame(l)};requestAnimationFrame(l)}return a}function VT({label:e,value:t,tone:a,pulse:o,hint:r}){return(0,$e.jsxs)(sd,{className:re("relative gap-1 overflow-hidden px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",o&&"border-info/30"),children:[(0,$e.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,$e.jsx)(Hv,{children:r})]}),(0,$e.jsxs)("p",{className:re("flex items-center gap-2.5 text-3xl font-semibold tabular-nums tracking-tight",a),children:[o!==void 0&&(0,$e.jsx)("span",{className:re("size-2.5 rounded-full",o?"animate-ping-slow bg-info":"bg-muted-foreground/40")}),t]})]})}var pY=(e,t)=>!t||`${e.task} ${e.worker} ${e.kind} ${e.note}`.toLowerCase().includes(t);function q_({focus:e}){let[t,a]=(0,hi.useState)(40),[o,r]=(0,hi.useState)("all"),[n,i]=(0,hi.useState)(""),[s,l]=(0,hi.useState)(""),{data:u}=ws(()=>qo.state(t,n||void 0),2e3,[t,n]),c=NT(u?.running??0),d=NT(u?.saved??0),f=NT(u?.runs.filter(p=>p.state==="done").length??0),m=(0,hi.useMemo)(()=>(u?.runs??[]).filter(p=>pY(p,s.trim().toLowerCase())&&(o==="all"||(o==="running"?p.state==="running"||p.state==="queued":p.state==="failed"||p.state==="timeout"||p.state==="stopped"))),[u,s,o]);return(0,$e.jsxs)("div",{className:"space-y-5",children:[(0,$e.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,$e.jsx)(VT,{label:"Running now",value:String(Math.round(c)),pulse:(u?.running??0)>0,tone:u?.running?"text-info":void 0}),(0,$e.jsx)(VT,{label:"Finished",value:String(Math.round(f))}),(0,$e.jsx)(VT,{label:"Est. saved this week",value:sn(d),tone:"text-success",hint:(0,$e.jsx)(_v,{price:u?.price})})]}),(0,$e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,$e.jsxs)("div",{className:"relative min-w-48 flex-1",children:[(0,$e.jsx)(Dr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,$e.jsx)(Tv,{value:s,onChange:p=>l(p.target.value),placeholder:"Filter these runs",className:"pl-8"})]}),(0,$e.jsx)(Gv,{value:o,onChange:r,options:[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"problem",label:"Needs attention"}]}),u&&u.groups.length>0&&(0,$e.jsxs)(od,{value:n||"all",onValueChange:p=>i(p==="all"?"":p??""),items:{all:"All groups",...Object.fromEntries(u.groups.map(p=>[p,p]))},children:[(0,$e.jsx)(nd,{className:"w-40",children:(0,$e.jsx)(rd,{})}),(0,$e.jsxs)(id,{children:[(0,$e.jsx)(Ws,{value:"all",children:"All groups"}),u.groups.map(p=>(0,$e.jsx)(Ws,{value:p,children:p},p))]})]})]}),(0,$e.jsxs)("div",{className:"space-y-2.5",children:[!u&&[0,1,2].map(p=>(0,$e.jsx)(oi,{className:"h-24 rounded-xl"},p)),u&&m.length===0&&(0,$e.jsxs)("div",{className:"flex flex-col items-center gap-2 py-16 text-center text-muted-foreground animate-in fade-in duration-500",children:[(0,$e.jsx)("span",{className:"text-5xl animate-wave",children:"\u{1F3C1}"}),(0,$e.jsx)("p",{children:u.runs.length?"Nothing matches this filter.":"All quiet. Workers appear here the moment they start."}),!u.runs.length&&(0,$e.jsx)("code",{className:"rounded-lg border bg-card px-3 py-1.5 text-sm text-foreground",children:'pitroom run "your task"'})]}),m.map((p,y)=>(0,$e.jsx)(jf,{run:p,index:y},p.id)),u&&u.runs.length>=t&&(0,$e.jsx)("div",{className:"flex justify-center pt-1",children:(0,$e.jsx)(pr,{variant:"outline",onClick:()=>a(p=>p+40),children:"Show older runs"})})]})]})}var ld={};Qa(ld,{Indicator:()=>$_,Label:()=>oU,Root:()=>K_,Track:()=>Q_,Value:()=>tU});var gi=I(k(),1);function BT(e){return Array.isArray(e)?e.map(t=>BT(t)).join(","):e==null?"":String(e)}var G_=new Map;function hY(e,t){let a=JSON.stringify({locale:BT(e),options:t}),o=G_.get(a);if(o)return o;let r=new Intl.NumberFormat(e,t);return G_.set(a,r),r}function FT(e,t,a){return e==null?"":hY(t,a).format(e)}function j_(e,t,a){return(e-t)*100/(a-t)}var jv=I(k(),1),zT=jv.createContext(void 0);function Ks(){let e=jv.useContext(zT);if(e===void 0)throw new Error(Be(51));return e}var X_="data-complete",Y_="data-indeterminate",W_="data-progressing";var En={status(e){return e==="progressing"?{[W_]:""}:e==="complete"?{[X_]:""}:e==="indeterminate"?{[Y_]:""}:null}};var nh=I(Q(),1),K_=gi.forwardRef(function(t,a){let{format:o,getAriaValueText:r,locale:n,max:i=100,min:s=0,value:l,render:u,className:c,children:d,style:f,...m}=t,[p,y]=gi.useState(),v="indeterminate",g=null,h=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){let E=j_(l,s,i);g=br(Number.isNaN(E)?0:E,0,100),h=br(l,s,i),v=h===i?"complete":"progressing",x=o?FT(h,n,o):FT(g/100,n,{style:"percent"}),S=x}let b=gi.useMemo(()=>({status:v}),[v]),R={"aria-labelledby":p,"aria-valuemax":i,"aria-valuemin":s,"aria-valuenow":h??void 0,"aria-valuetext":r?r(x,l):S,role:"progressbar",children:(0,nh.jsxs)(gi.Fragment,{children:[d,(0,nh.jsx)("span",{role:"presentation",style:Cf,children:"x"})]})},L=gi.useMemo(()=>({formattedValue:x,percentageValue:g,setLabelId:y,state:b,value:l}),[x,g,y,b,l]),C=oe("div",t,{state:b,ref:a,props:[R,m],stateAttributesMapping:En});return(0,nh.jsx)(zT.Provider,{value:L,children:C})});var Z_=I(k(),1);var Q_=Z_.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{state:s}=Ks();return oe("div",t,{state:s,ref:a,props:i,stateAttributesMapping:En})});var J_=I(k(),1);var $_=J_.forwardRef(function(t,a){let{render:o,className:r,style:n,...i}=t,{percentageValue:s,state:l}=Ks(),u=s==null?{}:{insetInlineStart:0,height:"inherit",width:`${s}%`};return oe("div",t,{state:l,ref:a,props:[{style:u},i],stateAttributesMapping:En})});var eU=I(k(),1);var tU=eU.forwardRef(function(t,a){let{className:o,render:r,children:n,style:i,...s}=t,{value:l,formattedValue:u,state:c}=Ks(),d=c.status==="indeterminate";return oe("span",t,{state:c,ref:a,props:[{"aria-hidden":!0,children:typeof n=="function"?n(d?"indeterminate":u,l):d?null:u},s],stateAttributesMapping:En})});var aU=I(k(),1);var oU=aU.forwardRef(function(t,a){let{render:o,className:r,style:n,id:i,...s}=t,{setLabelId:l,state:u}=Ks(),c=gv(i,l);return oe("span",t,{state:u,ref:a,props:[{id:c,role:"presentation"},s],stateAttributesMapping:En})});var ku=I(Q(),1);function rU({className:e,children:t,value:a,...o}){return(0,ku.jsxs)(ld.Root,{value:a,"data-slot":"progress",className:re("flex flex-wrap gap-3",e),...o,children:[t,(0,ku.jsx)(xY,{children:(0,ku.jsx)(yY,{})})]})}function xY({className:e,...t}){return(0,ku.jsx)(ld.Track,{className:re("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function yY({className:e,...t}){return(0,ku.jsx)(ld.Indicator,{"data-slot":"progress-indicator",className:re("h-full bg-primary transition-all",e),...t})}var Zs=I(Q(),1);function nU({className:e,...t}){return(0,Zs.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,Zs.jsx)("table",{"data-slot":"table",className:re("w-full caption-bottom text-sm",e),...t})})}function iU({className:e,...t}){return(0,Zs.jsx)("thead",{"data-slot":"table-header",className:re("[&_tr]:border-b",e),...t})}function sU({className:e,...t}){return(0,Zs.jsx)("tbody",{"data-slot":"table-body",className:re("[&_tr:last-child]:border-0",e),...t})}function HT({className:e,...t}){return(0,Zs.jsx)("tr",{"data-slot":"table-row",className:re("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function Nu({className:e,...t}){return(0,Zs.jsx)("th",{"data-slot":"table-head",className:re("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function Vu({className:e,...t}){return(0,Zs.jsx)("td",{"data-slot":"table-cell",className:re("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}var lU=I(k(),1),be=I(Q(),1);function ih({label:e,value:t,sub:a,tone:o,hint:r}){return(0,be.jsxs)(sd,{className:"gap-1 px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",children:[(0,be.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,be.jsx)(Hv,{children:r})]}),(0,be.jsx)("p",{className:`text-3xl lg:text-2xl font-semibold tabular-nums tracking-tight ${o??""}`,children:t}),a&&(0,be.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]})}function uU(){let[e,t]=(0,lU.useState)("30"),{data:a}=ws(()=>qo.stats(Number(e)),15e3,[e]),o=a?.totals,r=Math.max(1,...(a?.byDay??[]).map(n=>n.runs));return(0,be.jsxs)("div",{className:"space-y-5",children:[(0,be.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,be.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Statistics"}),(0,be.jsx)(Gv,{value:e,onChange:t,options:[{value:"7",label:"7 days"},{value:"30",label:"30 days"},{value:"90",label:"90 days"},{value:"0",label:"All"}]})]}),o?(0,be.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[(0,be.jsx)(ih,{label:"Runs",value:String(o.runs),sub:`${o.failed} not ok`}),(0,be.jsx)(ih,{label:"Success",value:o.runs?`${Math.round(100*o.ok/o.runs)}%`:"-",tone:"text-success"}),(0,be.jsx)(ih,{label:"Worker time",value:Wn(o.seconds)}),(0,be.jsx)(ih,{label:"Tokens",value:El(o.tokens)}),(0,be.jsx)(ih,{label:"Est. saved",value:sn(o.saved),tone:"text-success",hint:(0,be.jsx)(_v,{price:a?.price})})]}):(0,be.jsx)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(n=>(0,be.jsx)(oi,{className:"h-24 rounded-xl"},n))}),a&&a.byDay.length>0&&(0,be.jsxs)(sd,{className:"gap-3 px-5 py-4 animate-in fade-in duration-700",children:[(0,be.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,be.jsx)("h3",{className:"text-sm font-medium",children:"Runs per day"}),(0,be.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.byDay[0]?.day," \u2192 ",a.byDay.at(-1)?.day]})]}),(0,be.jsx)("div",{className:"flex h-36 items-end gap-1.5",children:a.byDay.map((n,i)=>(0,be.jsxs)(zf,{children:[(0,be.jsx)(Hf,{render:(0,be.jsx)("div",{className:"group flex h-full max-w-14 flex-1 flex-col justify-end"}),children:(0,be.jsxs)("div",{className:"flex w-full flex-col justify-end overflow-hidden rounded-t-md transition-opacity group-hover:opacity-80 origin-bottom animate-in slide-in-from-bottom-4 fill-mode-both",style:{height:`${n.runs/r*100}%`,animationDelay:`${i*18}ms`},children:[(0,be.jsx)("div",{className:"bg-destructive/70",style:{height:`${n.runs?(n.runs-n.ok)/n.runs*100:0}%`}}),(0,be.jsx)("div",{className:"flex-1 bg-success/80"})]})}),(0,be.jsxs)(_f,{children:[n.day,": ",n.runs," runs, ",n.ok," ok, ~",sn(n.saved)," saved"]})]},n.day))})]}),a&&(0,be.jsx)(sd,{className:"overflow-hidden py-0 animate-in fade-in duration-700",children:(0,be.jsxs)(nU,{children:[(0,be.jsx)(iU,{children:(0,be.jsxs)(HT,{className:"hover:bg-transparent",children:[(0,be.jsx)(Nu,{children:"Worker"}),(0,be.jsx)(Nu,{className:"text-right",children:"Runs"}),(0,be.jsx)(Nu,{className:"w-44",children:"Success"}),(0,be.jsx)(Nu,{className:"hidden text-right sm:table-cell",children:"Avg time"}),(0,be.jsx)(Nu,{className:"hidden text-right md:table-cell",children:"Avg tokens"}),(0,be.jsx)(Nu,{className:"text-right",children:"Saved"})]})}),(0,be.jsx)(sU,{children:a.byWorker.map(n=>{let i=n.runs?Math.round(100*n.ok/n.runs):void 0;return(0,be.jsxs)(HT,{children:[(0,be.jsx)(Vu,{children:(0,be.jsx)(ax,{backend:n.backend,model:n.model})}),(0,be.jsx)(Vu,{className:"text-right tabular-nums",children:n.runs}),(0,be.jsx)(Vu,{children:i===void 0?(0,be.jsx)("span",{className:"text-muted-foreground",children:"-"}):(0,be.jsxs)("div",{className:"flex items-center gap-2",children:[(0,be.jsx)(rU,{value:i,className:"flex-1"}),(0,be.jsxs)("span",{className:"w-9 text-right text-xs tabular-nums text-muted-foreground",children:[i,"%"]})]})}),(0,be.jsx)(Vu,{className:"hidden text-right tabular-nums sm:table-cell",children:n.avgSeconds!=null?Wn(n.avgSeconds):"-"}),(0,be.jsx)(Vu,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",children:n.avgTokens?El(n.avgTokens):"-"}),(0,be.jsx)(Vu,{className:"text-right tabular-nums text-success",children:n.saved?sn(n.saved):"-"})]},`${n.backend}:${n.model}`)})})]})})]})}var Ue=I(Q(),1),SY=/^\d{8}-\d{6}-[0-9a-f]{4}$/;function vY(){return(0,Ue.jsx)("div",{className:"grid size-9 place-items-center rounded-xl bg-gradient-to-br from-brand to-orange-300 shadow-lg shadow-brand/25",children:(0,Ue.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 fill-white",children:(0,Ue.jsx)("path",{d:"M4 4h4v4H4zm8 0h4v4h-4zM8 8h4v4H8zm8 0h4v4h-4zM4 12h4v4H4zm8 0h4v4h-4zm-4 4h4v4H8zm8 0h4v4h-4z"})})})}function bY(){let[e,t]=(0,Ir.useState)(document.documentElement.classList.contains("dark"));return(0,Ue.jsx)(pr,{variant:"ghost",size:"icon","aria-label":"Toggle theme",onClick:()=>{let a=!e;document.documentElement.classList.toggle("dark",a);try{localStorage.setItem("pitroom-theme",a?"dark":"light")}catch{}t(a)},children:e?(0,Ue.jsx)(wm,{}):(0,Ue.jsx)(Tm,{})})}function CY(){let[e,t]=(0,Ir.useState)(!1),[a,o]=(0,Ir.useState)(!1);(0,Ir.useEffect)(()=>{let n=()=>{t(window.scrollY>8),o(window.scrollY+window.innerHeight<document.documentElement.scrollHeight-8)};n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let i=new ResizeObserver(n);return i.observe(document.body),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),i.disconnect()}},[]);let r="pointer-events-none fixed inset-x-0 z-30 transition-opacity duration-300";return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("div",{"aria-hidden":!0,className:re(r,"top-0 h-14 bg-gradient-to-b from-background via-background/60 to-transparent",e?"opacity-100":"opacity-0")}),(0,Ue.jsx)("div",{"aria-hidden":!0,className:re(r,"bottom-0 h-20 bg-gradient-to-t from-background via-background/60 to-transparent",a?"opacity-100":"opacity-0")})]})}function cU(){let[e,t]=(0,Ir.useState)(()=>location.hash.slice(1)),[a,o]=(0,Ir.useState)(()=>{let c=location.hash.slice(1);return c==="history"||c==="stats"?c:"live"}),[r,n]=(0,Ir.useState)(null),i=SY.test(e)?e:void 0,{data:s,error:l}=ws(()=>qo.state(1),4e3,[]);(0,Ir.useEffect)(()=>{document.title=`${s?.running?`(${s.running}) `:""}Pitroom`},[s?.running]),(0,Ir.useEffect)(()=>{let c=()=>t(location.hash.slice(1));return window.addEventListener("hashchange",c),()=>window.removeEventListener("hashchange",c)},[]),(0,Ir.useEffect)(()=>{if(!i){n(null);return}let c=!1;return qo.run(i).then(d=>{c||(d.card?n(d.card):(history.replaceState(null,"",location.pathname+location.search),t(""),n(null)))}).catch(()=>{c||(history.replaceState(null,"",location.pathname+location.search),t(""),n(null))}),()=>{c=!0}},[i]);let u=()=>{history.replaceState(null,"",location.pathname+location.search),t(""),n(null)};return(0,Ue.jsx)(NF,{delay:150,children:(0,Ue.jsxs)("div",{className:"relative min-h-screen",children:[(0,Ue.jsx)("div",{className:"pointer-events-none fixed inset-0 -z-10 bg-[radial-gradient(60rem_30rem_at_85%_-10%,color-mix(in_oklab,var(--brand)_14%,transparent),transparent_60%),radial-gradient(50rem_28rem_at_-10%_0%,color-mix(in_oklab,var(--info)_12%,transparent),transparent_60%)]"}),(0,Ue.jsxs)("main",{className:"mx-auto max-w-4xl px-4 pb-16 pt-8",children:[(0,Ue.jsxs)("header",{className:"mb-6 flex items-center gap-3 animate-in fade-in slide-in-from-top-2 duration-700",children:[(0,Ue.jsx)(vY,{}),(0,Ue.jsxs)("div",{className:"leading-tight",children:[(0,Ue.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Pitroom"}),(0,Ue.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Your agent's pit crew, live"})]}),(0,Ue.jsx)("div",{className:"flex-1"}),(0,Ue.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,Ue.jsx)("span",{className:re("size-1.5 rounded-full",l?"bg-destructive":"bg-success animate-pulse")}),l?"offline":"live"]}),(0,Ue.jsx)(bY,{})]}),(0,Ue.jsx)(lv,{value:a,onValueChange:c=>o(c),children:(0,Ue.jsxs)(uv,{className:"mb-5",children:[(0,Ue.jsx)(Zf,{value:"live",children:"Live"}),(0,Ue.jsx)(Zf,{value:"history",children:"History"}),(0,Ue.jsx)(Zf,{value:"stats",children:"Stats"})]})}),r&&(0,Ue.jsx)("div",{className:"mb-5",children:(0,Ue.jsx)(jf,{run:r,index:0,defaultOpen:!0,onClose:u})}),(0,Ue.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-1 duration-300",children:[a==="live"&&(0,Ue.jsx)(q_,{focus:i}),a==="history"&&(0,Ue.jsx)(__,{}),a==="stats"&&(0,Ue.jsx)(uU,{})]},a),(0,Ue.jsxs)("footer",{className:"mt-10 text-center text-xs text-muted-foreground/70",children:["Read-only \xB7 this machine only \xB7 stops itself when left idle (",(0,Ue.jsx)("code",{className:"font-mono",children:"pitroom dash --stop"})," ends it now)"]})]}),(0,Ue.jsx)(CY,{})]})})}var _T=I(Q(),1);(0,dU.createRoot)(document.getElementById("root")).render((0,_T.jsx)(fU.StrictMode,{children:(0,_T.jsx)(cU,{})}));