agent-state-machine 2.3.0 → 2.5.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.
@@ -0,0 +1,188 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function gm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jd={exports:{}},ji={},Pd={exports:{}},$={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var es=Symbol.for("react.element"),ym=Symbol.for("react.portal"),vm=Symbol.for("react.fragment"),xm=Symbol.for("react.strict_mode"),km=Symbol.for("react.profiler"),wm=Symbol.for("react.provider"),Sm=Symbol.for("react.context"),Nm=Symbol.for("react.forward_ref"),Cm=Symbol.for("react.suspense"),Tm=Symbol.for("react.memo"),jm=Symbol.for("react.lazy"),cu=Symbol.iterator;function Pm(e){return e===null||typeof e!="object"?null:(e=cu&&e[cu]||e["@@iterator"],typeof e=="function"?e:null)}var bd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ed=Object.assign,Ld={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Ld,this.updater=n||bd}nr.prototype.isReactComponent={};nr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Md(){}Md.prototype=nr.prototype;function Hl(e,t,n){this.props=e,this.context=t,this.refs=Ld,this.updater=n||bd}var Kl=Hl.prototype=new Md;Kl.constructor=Hl;Ed(Kl,nr.prototype);Kl.isPureReactComponent=!0;var du=Array.isArray,Rd=Object.prototype.hasOwnProperty,Ql={current:null},Ad={key:!0,ref:!0,__self:!0,__source:!0};function Dd(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Rd.call(t,r)&&!Ad.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:es,type:e,key:i,ref:o,props:s,_owner:Ql.current}}function bm(e,t){return{$$typeof:es,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gl(e){return typeof e=="object"&&e!==null&&e.$$typeof===es}function Em(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var fu=/\/+/g;function Xi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Em(""+e.key):t.toString(36)}function Ds(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case es:case ym:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Xi(o,0):r,du(s)?(n="",e!=null&&(n=e.replace(fu,"$&/")+"/"),Ds(s,t,n,"",function(u){return u})):s!=null&&(Gl(s)&&(s=bm(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(fu,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",du(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Xi(i,l);o+=Ds(i,t,n,a,s)}else if(a=Pm(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Xi(i,l++),o+=Ds(i,t,n,a,s);else if(i==="object")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 o}function fs(e,t,n){if(e==null)return e;var r=[],s=0;return Ds(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Lm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Re={current:null},Vs={transition:null},Mm={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:Vs,ReactCurrentOwner:Ql};function Vd(){throw Error("act(...) is not supported in production builds of React.")}$.Children={map:fs,forEach:function(e,t,n){fs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fs(e,function(){t++}),t},toArray:function(e){return fs(e,function(t){return t})||[]},only:function(e){if(!Gl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=nr;$.Fragment=vm;$.Profiler=km;$.PureComponent=Hl;$.StrictMode=xm;$.Suspense=Cm;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mm;$.act=Vd;$.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ed({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ql.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Rd.call(t,a)&&!Ad.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:es,type:e.type,key:s,ref:i,props:r,_owner:o}};$.createContext=function(e){return e={$$typeof:Sm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wm,_context:e},e.Consumer=e};$.createElement=Dd;$.createFactory=function(e){var t=Dd.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:Nm,render:e}};$.isValidElement=Gl;$.lazy=function(e){return{$$typeof:jm,_payload:{_status:-1,_result:e},_init:Lm}};$.memo=function(e,t){return{$$typeof:Tm,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=Vs.transition;Vs.transition={};try{e()}finally{Vs.transition=t}};$.unstable_act=Vd;$.useCallback=function(e,t){return Re.current.useCallback(e,t)};$.useContext=function(e){return Re.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return Re.current.useDeferredValue(e)};$.useEffect=function(e,t){return Re.current.useEffect(e,t)};$.useId=function(){return Re.current.useId()};$.useImperativeHandle=function(e,t,n){return Re.current.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Re.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Re.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Re.current.useMemo(e,t)};$.useReducer=function(e,t,n){return Re.current.useReducer(e,t,n)};$.useRef=function(e){return Re.current.useRef(e)};$.useState=function(e){return Re.current.useState(e)};$.useSyncExternalStore=function(e,t,n){return Re.current.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Re.current.useTransition()};$.version="18.3.1";Pd.exports=$;var S=Pd.exports;const _d=gm(S);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Rm=S,Am=Symbol.for("react.element"),Dm=Symbol.for("react.fragment"),Vm=Object.prototype.hasOwnProperty,_m=Rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Om={key:!0,ref:!0,__self:!0,__source:!0};function Od(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Vm.call(t,r)&&!Om.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Am,type:e,key:i,ref:o,props:s,_owner:_m.current}}ji.Fragment=Dm;ji.jsx=Od;ji.jsxs=Od;jd.exports=ji;var c=jd.exports,Id={exports:{}},Ke={},Fd={exports:{}},zd={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(R,_){var E=R.length;R.push(_);e:for(;0<E;){var A=E-1>>>1,O=R[A];if(0<s(O,_))R[A]=_,R[E]=O,E=A;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var _=R[0],E=R.pop();if(E!==_){R[0]=E;e:for(var A=0,O=R.length,w=O>>>1;A<w;){var M=2*(A+1)-1,U=R[M],z=M+1,F=R[z];if(0>s(U,E))z<O&&0>s(F,U)?(R[A]=F,R[z]=E,A=z):(R[A]=U,R[M]=E,A=M);else if(z<O&&0>s(F,E))R[A]=F,R[z]=E,A=z;else break e}}return _}function s(R,_){var E=R.sortIndex-_.sortIndex;return E!==0?E:R.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],d=1,f=null,h=3,g=!1,v=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=R)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function k(R){if(x=!1,m(R),!v)if(n(a)!==null)v=!0,H(N);else{var _=n(u);_!==null&&Se(k,_.startTime-R)}}function N(R,_){v=!1,x&&(x=!1,y(j),j=-1),g=!0;var E=h;try{for(m(_),f=n(a);f!==null&&(!(f.expirationTime>_)||R&&!W());){var A=f.callback;if(typeof A=="function"){f.callback=null,h=f.priorityLevel;var O=A(f.expirationTime<=_);_=e.unstable_now(),typeof O=="function"?f.callback=O:f===n(a)&&r(a),m(_)}else r(a);f=n(a)}if(f!==null)var w=!0;else{var M=n(u);M!==null&&Se(k,M.startTime-_),w=!1}return w}finally{f=null,h=E,g=!1}}var T=!1,P=null,j=-1,L=5,V=-1;function W(){return!(e.unstable_now()-V<L)}function G(){if(P!==null){var R=e.unstable_now();V=R;var _=!0;try{_=P(!0,R)}finally{_?te():(T=!1,P=null)}}else T=!1}var te;if(typeof p=="function")te=function(){p(G)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ze=ne.port2;ne.port1.onmessage=G,te=function(){ze.postMessage(null)}}else te=function(){C(G,0)};function H(R){P=R,T||(T=!0,te())}function Se(R,_){j=C(function(){R(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,H(N))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var E=h;h=_;try{return R()}finally{h=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,_){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var E=h;h=R;try{return _()}finally{h=E}},e.unstable_scheduleCallback=function(R,_,E){var A=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?A+E:A):E=A,R){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=E+O,R={id:d++,callback:_,priorityLevel:R,startTime:E,expirationTime:O,sortIndex:-1},E>A?(R.sortIndex=E,t(u,R),n(a)===null&&R===n(u)&&(x?(y(j),j=-1):x=!0,Se(k,E-A))):(R.sortIndex=O,t(a,R),v||g||(v=!0,H(N))),R},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(R){var _=h;return function(){var E=h;h=_;try{return R.apply(this,arguments)}finally{h=E}}}})(zd);Fd.exports=zd;var Im=Fd.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Fm=S,We=Im;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Bd=new Set,Dr={};function kn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Dr[e]=t,e=0;e<t.length;e++)Bd.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=Object.prototype.hasOwnProperty,zm=/^[: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]*$/,hu={},pu={};function Bm(e){return Oo.call(pu,e)?!0:Oo.call(hu,e)?!1:zm.test(e)?pu[e]=!0:(hu[e]=!0,!1)}function Um(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $m(e,t,n,r){if(t===null||typeof t>"u"||Um(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yl=/[\-:]([a-z])/g;function Xl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yl,Xl);we[t]=new Ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yl,Xl);we[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yl,Xl);we[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zl(e,t,n,r){var s=we.hasOwnProperty(t)?we[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($m(t,n,s,r)&&(n=null),r||s===null?Bm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bt=Fm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hs=Symbol.for("react.element"),Tn=Symbol.for("react.portal"),jn=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),Io=Symbol.for("react.profiler"),Ud=Symbol.for("react.provider"),$d=Symbol.for("react.context"),Jl=Symbol.for("react.forward_ref"),Fo=Symbol.for("react.suspense"),zo=Symbol.for("react.suspense_list"),ea=Symbol.for("react.memo"),Mt=Symbol.for("react.lazy"),Wd=Symbol.for("react.offscreen"),mu=Symbol.iterator;function ir(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,Zi;function gr(e){if(Zi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zi=t&&t[1]||""}return`
34
+ `+Zi+e}var qi=!1;function Ji(e,t){if(!e||qi)return"";qi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var a=`
37
+ `+s[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{qi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function Wm(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function Bo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jn:return"Fragment";case Tn:return"Portal";case Io:return"Profiler";case ql:return"StrictMode";case Fo:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $d:return(e.displayName||"Context")+".Consumer";case Ud:return(e._context.displayName||"Context")+".Provider";case Jl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ea:return t=e.displayName||null,t!==null?t:Bo(e.type)||"Memo";case Mt:t=e._payload,e=e._init;try{return Bo(e(t))}catch{}}return null}function Hm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bo(t);case 8:return t===ql?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Km(e){var t=Hd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ps(e){e._valueTracker||(e._valueTracker=Km(e))}function Kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gs(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 Uo(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qd(e,t){t=t.checked,t!=null&&Zl(e,"checked",t,!1)}function $o(e,t){Qd(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wo(e,t,n){(t!=="number"||Gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ho(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(yr(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qt(n)}}function Gd(e,t){var n=Qt(t.value),r=Qt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ko(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ms,Xd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ms=ms||document.createElement("div"),ms.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ms.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qm=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Qm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function qd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Gm=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qo(e,t){if(t){if(Gm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Go(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Yo=null;function ta(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xo=null,Un=null,$n=null;function ku(e){if(e=rs(e)){if(typeof Xo!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Mi(t),Xo(e.stateNode,e.type,t))}}function Jd(e){Un?$n?$n.push(e):$n=[e]:Un=e}function ef(){if(Un){var e=Un,t=$n;if($n=Un=null,ku(e),t)for(e=0;e<t.length;e++)ku(t[e])}}function tf(e,t){return e(t)}function nf(){}var eo=!1;function rf(e,t,n){if(eo)return e(t,n);eo=!0;try{return tf(e,t,n)}finally{eo=!1,(Un!==null||$n!==null)&&(nf(),ef())}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var r=Mi(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(b(231,t,typeof n));return n}var Zo=!1;if(Nt)try{var or={};Object.defineProperty(or,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Zo=!1}function Ym(e,t,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Sr=!1,Ys=null,Xs=!1,qo=null,Xm={onError:function(e){Sr=!0,Ys=e}};function Zm(e,t,n,r,s,i,o,l,a){Sr=!1,Ys=null,Ym.apply(Xm,arguments)}function qm(e,t,n,r,s,i,o,l,a){if(Zm.apply(this,arguments),Sr){if(Sr){var u=Ys;Sr=!1,Ys=null}else throw Error(b(198));Xs||(Xs=!0,qo=u)}}function wn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sf(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 wu(e){if(wn(e)!==e)throw Error(b(188))}function Jm(e){var t=e.alternate;if(!t){if(t=wn(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return wu(s),e;if(i===r)return wu(s),t;i=i.sibling}throw Error(b(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function of(e){return e=Jm(e),e!==null?lf(e):null}function lf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lf(e);if(t!==null)return t;e=e.sibling}return null}var af=We.unstable_scheduleCallback,Su=We.unstable_cancelCallback,eg=We.unstable_shouldYield,tg=We.unstable_requestPaint,ue=We.unstable_now,ng=We.unstable_getCurrentPriorityLevel,na=We.unstable_ImmediatePriority,uf=We.unstable_UserBlockingPriority,Zs=We.unstable_NormalPriority,rg=We.unstable_LowPriority,cf=We.unstable_IdlePriority,Pi=null,ft=null;function sg(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Pi,e,void 0,(e.current.flags&128)===128)}catch{}}var ot=Math.clz32?Math.clz32:lg,ig=Math.log,og=Math.LN2;function lg(e){return e>>>=0,e===0?32:31-(ig(e)/og|0)|0}var gs=64,ys=4194304;function vr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=vr(l):(i&=o,i!==0&&(r=vr(i)))}else o=n&~s,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ot(t),s=1<<n,r|=e[n],t&=~s;return r}function ag(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ug(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=ag(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function df(){var e=gs;return gs<<=1,!(gs&4194240)&&(gs=64),e}function to(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function cg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-ot(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function ra(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function ff(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hf,sa,pf,mf,gf,el=!1,vs=[],It=null,Ft=null,zt=null,Or=new Map,Ir=new Map,Dt=[],dg="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 submit".split(" ");function Nu(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Ft=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ir.delete(t.pointerId)}}function lr(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=rs(t),t!==null&&sa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function fg(e,t,n,r,s){switch(t){case"focusin":return It=lr(It,e,t,n,r,s),!0;case"dragenter":return Ft=lr(Ft,e,t,n,r,s),!0;case"mouseover":return zt=lr(zt,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Or.set(i,lr(Or.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Ir.set(i,lr(Ir.get(i)||null,e,t,n,r,s)),!0}return!1}function yf(e){var t=an(e.target);if(t!==null){var n=wn(t);if(n!==null){if(t=n.tag,t===13){if(t=sf(n),t!==null){e.blockedOn=t,gf(e.priority,function(){pf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _s(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yo=r,n.target.dispatchEvent(r),Yo=null}else return t=rs(n),t!==null&&sa(t),e.blockedOn=n,!1;t.shift()}return!0}function Cu(e,t,n){_s(e)&&n.delete(t)}function hg(){el=!1,It!==null&&_s(It)&&(It=null),Ft!==null&&_s(Ft)&&(Ft=null),zt!==null&&_s(zt)&&(zt=null),Or.forEach(Cu),Ir.forEach(Cu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,el||(el=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,hg)))}function Fr(e){function t(s){return ar(s,e)}if(0<vs.length){ar(vs[0],e);for(var n=1;n<vs.length;n++){var r=vs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(It!==null&&ar(It,e),Ft!==null&&ar(Ft,e),zt!==null&&ar(zt,e),Or.forEach(t),Ir.forEach(t),n=0;n<Dt.length;n++)r=Dt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&(n=Dt[0],n.blockedOn===null);)yf(n),n.blockedOn===null&&Dt.shift()}var Wn=bt.ReactCurrentBatchConfig,Js=!0;function pg(e,t,n,r){var s=Y,i=Wn.transition;Wn.transition=null;try{Y=1,ia(e,t,n,r)}finally{Y=s,Wn.transition=i}}function mg(e,t,n,r){var s=Y,i=Wn.transition;Wn.transition=null;try{Y=4,ia(e,t,n,r)}finally{Y=s,Wn.transition=i}}function ia(e,t,n,r){if(Js){var s=tl(e,t,n,r);if(s===null)fo(e,t,r,ei,n),Nu(e,r);else if(fg(s,e,t,n,r))r.stopPropagation();else if(Nu(e,r),t&4&&-1<dg.indexOf(e)){for(;s!==null;){var i=rs(s);if(i!==null&&hf(i),i=tl(e,t,n,r),i===null&&fo(e,t,r,ei,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else fo(e,t,r,null,n)}}var ei=null;function tl(e,t,n,r){if(ei=null,e=ta(r),e=an(e),e!==null)if(t=wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ei=e,null}function vf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ng()){case na:return 1;case uf:return 4;case Zs:case rg:return 16;case cf:return 536870912;default:return 16}default:return 16}}var _t=null,oa=null,Os=null;function xf(){if(Os)return Os;var e,t=oa,n=t.length,r,s="value"in _t?_t.value:_t.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Os=s.slice(e,1<r?1-r:void 0)}function Is(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 xs(){return!0}function Tu(){return!1}function Qe(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xs:Tu,this.isPropagationStopped=Tu,this}return oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},la=Qe(rr),ns=oe({},rr,{view:0,detail:0}),gg=Qe(ns),no,ro,ur,bi=oe({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aa,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!==ur&&(ur&&e.type==="mousemove"?(no=e.screenX-ur.screenX,ro=e.screenY-ur.screenY):ro=no=0,ur=e),no)},movementY:function(e){return"movementY"in e?e.movementY:ro}}),ju=Qe(bi),yg=oe({},bi,{dataTransfer:0}),vg=Qe(yg),xg=oe({},ns,{relatedTarget:0}),so=Qe(xg),kg=oe({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),wg=Qe(kg),Sg=oe({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ng=Qe(Sg),Cg=oe({},rr,{data:0}),Pu=Qe(Cg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jg={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"},Pg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pg[e])?!!t[e]:!1}function aa(){return bg}var Eg=oe({},ns,{key:function(e){if(e.key){var t=Tg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aa,charCode:function(e){return e.type==="keypress"?Is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lg=Qe(Eg),Mg=oe({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bu=Qe(Mg),Rg=oe({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aa}),Ag=Qe(Rg),Dg=oe({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vg=Qe(Dg),_g=oe({},bi,{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}),Og=Qe(_g),Ig=[9,13,27,32],ua=Nt&&"CompositionEvent"in window,Nr=null;Nt&&"documentMode"in document&&(Nr=document.documentMode);var Fg=Nt&&"TextEvent"in window&&!Nr,kf=Nt&&(!ua||Nr&&8<Nr&&11>=Nr),Eu=" ",Lu=!1;function wf(e,t){switch(e){case"keyup":return Ig.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pn=!1;function zg(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(Lu=!0,Eu);case"textInput":return e=t.data,e===Eu&&Lu?null:e;default:return null}}function Bg(e,t){if(Pn)return e==="compositionend"||!ua&&wf(e,t)?(e=xf(),Os=oa=_t=null,Pn=!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 kf&&t.locale!=="ko"?null:t.data;default:return null}}var Ug={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 Mu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ug[e.type]:t==="textarea"}function Nf(e,t,n,r){Jd(r),t=ti(t,"onChange"),0<t.length&&(n=new la("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Cr=null,zr=null;function $g(e){Df(e,0)}function Ei(e){var t=Ln(e);if(Kd(t))return e}function Wg(e,t){if(e==="change")return t}var Cf=!1;if(Nt){var io;if(Nt){var oo="oninput"in document;if(!oo){var Ru=document.createElement("div");Ru.setAttribute("oninput","return;"),oo=typeof Ru.oninput=="function"}io=oo}else io=!1;Cf=io&&(!document.documentMode||9<document.documentMode)}function Au(){Cr&&(Cr.detachEvent("onpropertychange",Tf),zr=Cr=null)}function Tf(e){if(e.propertyName==="value"&&Ei(zr)){var t=[];Nf(t,zr,e,ta(e)),rf($g,t)}}function Hg(e,t,n){e==="focusin"?(Au(),Cr=t,zr=n,Cr.attachEvent("onpropertychange",Tf)):e==="focusout"&&Au()}function Kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(zr)}function Qg(e,t){if(e==="click")return Ei(t)}function Gg(e,t){if(e==="input"||e==="change")return Ei(t)}function Yg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var at=typeof Object.is=="function"?Object.is:Yg;function Br(e,t){if(at(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Oo.call(t,s)||!at(e[s],t[s]))return!1}return!0}function Du(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vu(e,t){var n=Du(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Du(n)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(){for(var e=window,t=Gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gs(e.document)}return t}function ca(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")}function Xg(e){var t=Pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jf(n.ownerDocument.documentElement,n)){if(r!==null&&ca(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Vu(n,i);var o=Vu(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zg=Nt&&"documentMode"in document&&11>=document.documentMode,bn=null,nl=null,Tr=null,rl=!1;function _u(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rl||bn==null||bn!==Gs(r)||(r=bn,"selectionStart"in r&&ca(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&Br(Tr,r)||(Tr=r,r=ti(nl,"onSelect"),0<r.length&&(t=new la("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bn)))}function ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var En={animationend:ks("Animation","AnimationEnd"),animationiteration:ks("Animation","AnimationIteration"),animationstart:ks("Animation","AnimationStart"),transitionend:ks("Transition","TransitionEnd")},lo={},bf={};Nt&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function Li(e){if(lo[e])return lo[e];if(!En[e])return e;var t=En[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bf)return lo[e]=t[n];return e}var Ef=Li("animationend"),Lf=Li("animationiteration"),Mf=Li("animationstart"),Rf=Li("transitionend"),Af=new Map,Ou="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zt(e,t){Af.set(e,t),kn(t,[e])}for(var ao=0;ao<Ou.length;ao++){var uo=Ou[ao],qg=uo.toLowerCase(),Jg=uo[0].toUpperCase()+uo.slice(1);Zt(qg,"on"+Jg)}Zt(Ef,"onAnimationEnd");Zt(Lf,"onAnimationIteration");Zt(Mf,"onAnimationStart");Zt("dblclick","onDoubleClick");Zt("focusin","onFocus");Zt("focusout","onBlur");Zt(Rf,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="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(" "),e0=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Iu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,qm(r,t,void 0,e),e.currentTarget=null}function Df(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&s.isPropagationStopped())break e;Iu(s,l,u),i=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&s.isPropagationStopped())break e;Iu(s,l,u),i=a}}}if(Xs)throw e=qo,Xs=!1,qo=null,e}function q(e,t){var n=t[al];n===void 0&&(n=t[al]=new Set);var r=e+"__bubble";n.has(r)||(Vf(t,e,2,!1),n.add(r))}function co(e,t,n){var r=0;t&&(r|=4),Vf(n,e,r,t)}var ws="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[ws]){e[ws]=!0,Bd.forEach(function(n){n!=="selectionchange"&&(e0.has(n)||co(n,!1,e),co(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ws]||(t[ws]=!0,co("selectionchange",!1,t))}}function Vf(e,t,n,r){switch(vf(t)){case 1:var s=pg;break;case 4:s=mg;break;default:s=ia}n=s.bind(null,t,n,e),s=void 0,!Zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function fo(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;o=o.return}for(;l!==null;){if(o=an(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}rf(function(){var u=i,d=ta(n),f=[];e:{var h=Af.get(e);if(h!==void 0){var g=la,v=e;switch(e){case"keypress":if(Is(n)===0)break e;case"keydown":case"keyup":g=Lg;break;case"focusin":v="focus",g=so;break;case"focusout":v="blur",g=so;break;case"beforeblur":case"afterblur":g=so;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=vg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Ag;break;case Ef:case Lf:case Mf:g=wg;break;case Rf:g=Vg;break;case"scroll":g=gg;break;case"wheel":g=Og;break;case"copy":case"cut":case"paste":g=Ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=bu}var x=(t&4)!==0,C=!x&&e==="scroll",y=x?h!==null?h+"Capture":null:h;x=[];for(var p=u,m;p!==null;){m=p;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,y!==null&&(k=_r(p,y),k!=null&&x.push($r(p,k,m)))),C)break;p=p.return}0<x.length&&(h=new g(h,v,null,n,d),f.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==Yo&&(v=n.relatedTarget||n.fromElement)&&(an(v)||v[Ct]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?an(v):null,v!==null&&(C=wn(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(x=ju,k="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=bu,k="onPointerLeave",y="onPointerEnter",p="pointer"),C=g==null?h:Ln(g),m=v==null?h:Ln(v),h=new x(k,p+"leave",g,n,d),h.target=C,h.relatedTarget=m,k=null,an(d)===u&&(x=new x(y,p+"enter",v,n,d),x.target=m,x.relatedTarget=C,k=x),C=k,g&&v)t:{for(x=g,y=v,p=0,m=x;m;m=Cn(m))p++;for(m=0,k=y;k;k=Cn(k))m++;for(;0<p-m;)x=Cn(x),p--;for(;0<m-p;)y=Cn(y),m--;for(;p--;){if(x===y||y!==null&&x===y.alternate)break t;x=Cn(x),y=Cn(y)}x=null}else x=null;g!==null&&Fu(f,h,g,x,!1),v!==null&&C!==null&&Fu(f,C,v,x,!0)}}e:{if(h=u?Ln(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var N=Wg;else if(Mu(h))if(Cf)N=Gg;else{N=Kg;var T=Hg}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(N=Qg);if(N&&(N=N(e,u))){Nf(f,N,n,d);break e}T&&T(e,h,u),e==="focusout"&&(T=h._wrapperState)&&T.controlled&&h.type==="number"&&Wo(h,"number",h.value)}switch(T=u?Ln(u):window,e){case"focusin":(Mu(T)||T.contentEditable==="true")&&(bn=T,nl=u,Tr=null);break;case"focusout":Tr=nl=bn=null;break;case"mousedown":rl=!0;break;case"contextmenu":case"mouseup":case"dragend":rl=!1,_u(f,n,d);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":_u(f,n,d)}var P;if(ua)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Pn?wf(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(kf&&n.locale!=="ko"&&(Pn||j!=="onCompositionStart"?j==="onCompositionEnd"&&Pn&&(P=xf()):(_t=d,oa="value"in _t?_t.value:_t.textContent,Pn=!0)),T=ti(u,j),0<T.length&&(j=new Pu(j,e,null,n,d),f.push({event:j,listeners:T}),P?j.data=P:(P=Sf(n),P!==null&&(j.data=P)))),(P=Fg?zg(e,n):Bg(e,n))&&(u=ti(u,"onBeforeInput"),0<u.length&&(d=new Pu("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=P))}Df(f,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ti(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=_r(e,n),i!=null&&r.unshift($r(e,i,s)),i=_r(e,t),i!=null&&r.push($r(e,i,s))),e=e.return}return r}function Cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fu(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=_r(n,i),a!=null&&o.unshift($r(n,a,l))):s||(a=_r(n,i),a!=null&&o.push($r(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var t0=/\r\n?/g,n0=/\u0000|\uFFFD/g;function zu(e){return(typeof e=="string"?e:""+e).replace(t0,`
38
+ `).replace(n0,"")}function Ss(e,t,n){if(t=zu(t),zu(e)!==t&&n)throw Error(b(425))}function ni(){}var sl=null,il=null;function ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ll=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,Bu=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof Bu<"u"?function(e){return Bu.resolve(null).then(e).catch(i0)}:ll;function i0(e){setTimeout(function(){throw e})}function ho(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Fr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Fr(t)}function Bt(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==="$?")break;if(t==="/$")return null}}return e}function Uu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var sr=Math.random().toString(36).slice(2),dt="__reactFiber$"+sr,Wr="__reactProps$"+sr,Ct="__reactContainer$"+sr,al="__reactEvents$"+sr,o0="__reactListeners$"+sr,l0="__reactHandles$"+sr;function an(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[dt])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function rs(e){return e=e[dt]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ln(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function Mi(e){return e[Wr]||null}var ul=[],Mn=-1;function qt(e){return{current:e}}function J(e){0>Mn||(e.current=ul[Mn],ul[Mn]=null,Mn--)}function X(e,t){Mn++,ul[Mn]=e.current,e.current=t}var Gt={},be=qt(Gt),_e=qt(!1),mn=Gt;function Gn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Oe(e){return e=e.childContextTypes,e!=null}function ri(){J(_e),J(be)}function $u(e,t,n){if(be.current!==Gt)throw Error(b(168));X(be,t),X(_e,n)}function _f(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(b(108,Hm(e)||"Unknown",s));return oe({},n,r)}function si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,mn=be.current,X(be,e),X(_e,_e.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=_f(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,J(_e),J(be),X(be,e)):J(_e),X(_e,n)}var gt=null,Ri=!1,po=!1;function Of(e){gt===null?gt=[e]:gt.push(e)}function a0(e){Ri=!0,Of(e)}function Jt(){if(!po&&gt!==null){po=!0;var e=0,t=Y;try{var n=gt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Ri=!1}catch(s){throw gt!==null&&(gt=gt.slice(e+1)),af(na,Jt),s}finally{Y=t,po=!1}}return null}var Rn=[],An=0,ii=null,oi=0,Xe=[],Ze=0,gn=null,yt=1,vt="";function nn(e,t){Rn[An++]=oi,Rn[An++]=ii,ii=e,oi=t}function If(e,t,n){Xe[Ze++]=yt,Xe[Ze++]=vt,Xe[Ze++]=gn,gn=e;var r=yt;e=vt;var s=32-ot(r)-1;r&=~(1<<s),n+=1;var i=32-ot(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,yt=1<<32-ot(t)+s|n<<s|r,vt=i+e}else yt=1<<i|n<<s|r,vt=e}function da(e){e.return!==null&&(nn(e,1),If(e,1,0))}function fa(e){for(;e===ii;)ii=Rn[--An],Rn[An]=null,oi=Rn[--An],Rn[An]=null;for(;e===gn;)gn=Xe[--Ze],Xe[Ze]=null,vt=Xe[--Ze],Xe[Ze]=null,yt=Xe[--Ze],Xe[Ze]=null}var $e=null,Ue=null,ee=!1,it=null;function Ff(e,t){var n=qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$e=e,Ue=Bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$e=e,Ue=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$e=e,Ue=null,!0):!1;default:return!1}}function cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(ee){var t=Ue;if(t){var n=t;if(!Hu(e,t)){if(cl(e))throw Error(b(418));t=Bt(n.nextSibling);var r=$e;t&&Hu(e,t)?Ff(r,n):(e.flags=e.flags&-4097|2,ee=!1,$e=e)}}else{if(cl(e))throw Error(b(418));e.flags=e.flags&-4097|2,ee=!1,$e=e}}}function Ku(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$e=e}function Ns(e){if(e!==$e)return!1;if(!ee)return Ku(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ol(e.type,e.memoizedProps)),t&&(t=Ue)){if(cl(e))throw zf(),Error(b(418));for(;t;)Ff(e,t),t=Bt(t.nextSibling)}if(Ku(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ue=Bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ue=null}}else Ue=$e?Bt(e.stateNode.nextSibling):null;return!0}function zf(){for(var e=Ue;e;)e=Bt(e.nextSibling)}function Yn(){Ue=$e=null,ee=!1}function ha(e){it===null?it=[e]:it.push(e)}var u0=bt.ReactCurrentBatchConfig;function cr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function Cs(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qu(e){var t=e._init;return t(e._payload)}function Bf(e){function t(y,p){if(e){var m=y.deletions;m===null?(y.deletions=[p],y.flags|=16):m.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function r(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function s(y,p){return y=Ht(y,p),y.index=0,y.sibling=null,y}function i(y,p,m){return y.index=m,e?(m=y.alternate,m!==null?(m=m.index,m<p?(y.flags|=2,p):m):(y.flags|=2,p)):(y.flags|=1048576,p)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,p,m,k){return p===null||p.tag!==6?(p=wo(m,y.mode,k),p.return=y,p):(p=s(p,m),p.return=y,p)}function a(y,p,m,k){var N=m.type;return N===jn?d(y,p,m.props.children,k,m.key):p!==null&&(p.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Mt&&Qu(N)===p.type)?(k=s(p,m.props),k.ref=cr(y,p,m),k.return=y,k):(k=Hs(m.type,m.key,m.props,null,y.mode,k),k.ref=cr(y,p,m),k.return=y,k)}function u(y,p,m,k){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=So(m,y.mode,k),p.return=y,p):(p=s(p,m.children||[]),p.return=y,p)}function d(y,p,m,k,N){return p===null||p.tag!==7?(p=hn(m,y.mode,k,N),p.return=y,p):(p=s(p,m),p.return=y,p)}function f(y,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=wo(""+p,y.mode,m),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case hs:return m=Hs(p.type,p.key,p.props,null,y.mode,m),m.ref=cr(y,null,p),m.return=y,m;case Tn:return p=So(p,y.mode,m),p.return=y,p;case Mt:var k=p._init;return f(y,k(p._payload),m)}if(yr(p)||ir(p))return p=hn(p,y.mode,m,null),p.return=y,p;Cs(y,p)}return null}function h(y,p,m,k){var N=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return N!==null?null:l(y,p,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case hs:return m.key===N?a(y,p,m,k):null;case Tn:return m.key===N?u(y,p,m,k):null;case Mt:return N=m._init,h(y,p,N(m._payload),k)}if(yr(m)||ir(m))return N!==null?null:d(y,p,m,k,null);Cs(y,m)}return null}function g(y,p,m,k,N){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(m)||null,l(p,y,""+k,N);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case hs:return y=y.get(k.key===null?m:k.key)||null,a(p,y,k,N);case Tn:return y=y.get(k.key===null?m:k.key)||null,u(p,y,k,N);case Mt:var T=k._init;return g(y,p,m,T(k._payload),N)}if(yr(k)||ir(k))return y=y.get(m)||null,d(p,y,k,N,null);Cs(p,k)}return null}function v(y,p,m,k){for(var N=null,T=null,P=p,j=p=0,L=null;P!==null&&j<m.length;j++){P.index>j?(L=P,P=null):L=P.sibling;var V=h(y,P,m[j],k);if(V===null){P===null&&(P=L);break}e&&P&&V.alternate===null&&t(y,P),p=i(V,p,j),T===null?N=V:T.sibling=V,T=V,P=L}if(j===m.length)return n(y,P),ee&&nn(y,j),N;if(P===null){for(;j<m.length;j++)P=f(y,m[j],k),P!==null&&(p=i(P,p,j),T===null?N=P:T.sibling=P,T=P);return ee&&nn(y,j),N}for(P=r(y,P);j<m.length;j++)L=g(P,y,j,m[j],k),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?j:L.key),p=i(L,p,j),T===null?N=L:T.sibling=L,T=L);return e&&P.forEach(function(W){return t(y,W)}),ee&&nn(y,j),N}function x(y,p,m,k){var N=ir(m);if(typeof N!="function")throw Error(b(150));if(m=N.call(m),m==null)throw Error(b(151));for(var T=N=null,P=p,j=p=0,L=null,V=m.next();P!==null&&!V.done;j++,V=m.next()){P.index>j?(L=P,P=null):L=P.sibling;var W=h(y,P,V.value,k);if(W===null){P===null&&(P=L);break}e&&P&&W.alternate===null&&t(y,P),p=i(W,p,j),T===null?N=W:T.sibling=W,T=W,P=L}if(V.done)return n(y,P),ee&&nn(y,j),N;if(P===null){for(;!V.done;j++,V=m.next())V=f(y,V.value,k),V!==null&&(p=i(V,p,j),T===null?N=V:T.sibling=V,T=V);return ee&&nn(y,j),N}for(P=r(y,P);!V.done;j++,V=m.next())V=g(P,y,j,V.value,k),V!==null&&(e&&V.alternate!==null&&P.delete(V.key===null?j:V.key),p=i(V,p,j),T===null?N=V:T.sibling=V,T=V);return e&&P.forEach(function(G){return t(y,G)}),ee&&nn(y,j),N}function C(y,p,m,k){if(typeof m=="object"&&m!==null&&m.type===jn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case hs:e:{for(var N=m.key,T=p;T!==null;){if(T.key===N){if(N=m.type,N===jn){if(T.tag===7){n(y,T.sibling),p=s(T,m.props.children),p.return=y,y=p;break e}}else if(T.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Mt&&Qu(N)===T.type){n(y,T.sibling),p=s(T,m.props),p.ref=cr(y,T,m),p.return=y,y=p;break e}n(y,T);break}else t(y,T);T=T.sibling}m.type===jn?(p=hn(m.props.children,y.mode,k,m.key),p.return=y,y=p):(k=Hs(m.type,m.key,m.props,null,y.mode,k),k.ref=cr(y,p,m),k.return=y,y=k)}return o(y);case Tn:e:{for(T=m.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(y,p.sibling),p=s(p,m.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=So(m,y.mode,k),p.return=y,y=p}return o(y);case Mt:return T=m._init,C(y,p,T(m._payload),k)}if(yr(m))return v(y,p,m,k);if(ir(m))return x(y,p,m,k);Cs(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(y,p.sibling),p=s(p,m),p.return=y,y=p):(n(y,p),p=wo(m,y.mode,k),p.return=y,y=p),o(y)):n(y,p)}return C}var Xn=Bf(!0),Uf=Bf(!1),li=qt(null),ai=null,Dn=null,pa=null;function ma(){pa=Dn=ai=null}function ga(e){var t=li.current;J(li),e._currentValue=t}function fl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){ai=e,pa=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ai===null)throw Error(b(308));Dn=e,ai.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var un=null;function ya(e){un===null?un=[e]:un.push(e)}function $f(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ya(t)):(n.next=s.next,s.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Tt(e,n)}return s=r.interleaved,s===null?(t.next=t,ya(r)):(t.next=s.next,s.next=t),r.interleaved=t,Tt(e,n)}function Fs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ra(e,n)}}function Gu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var s=e.updateQueue;Rt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var f=s.baseState;o=0,d=u=a=null,l=i;do{var h=l.lane,g=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,x=l;switch(h=t,g=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(g,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,h=typeof v=="function"?v.call(g,f,h):v,h==null)break e;f=oe({},f,h);break e;case 2:Rt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[l]:h.push(l))}else g={eventTime:g,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,a=f):d=d.next=g,o|=h;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;h=l,l=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(a=f),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);vn|=o,e.lanes=o,e.memoizedState=f}}function Yu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(b(191,s));s.call(r)}}}var ss={},ht=qt(ss),Hr=qt(ss),Kr=qt(ss);function cn(e){if(e===ss)throw Error(b(174));return e}function xa(e,t){switch(X(Kr,t),X(Hr,e),X(ht,ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ko(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ko(t,e)}J(ht),X(ht,t)}function Zn(){J(ht),J(Hr),J(Kr)}function Hf(e){cn(Kr.current);var t=cn(ht.current),n=Ko(t,e.type);t!==n&&(X(Hr,e),X(ht,n))}function ka(e){Hr.current===e&&(J(ht),J(Hr))}var re=qt(0);function ci(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 mo=[];function wa(){for(var e=0;e<mo.length;e++)mo[e]._workInProgressVersionPrimary=null;mo.length=0}var zs=bt.ReactCurrentDispatcher,go=bt.ReactCurrentBatchConfig,yn=0,ie=null,he=null,me=null,di=!1,jr=!1,Qr=0,c0=0;function Ce(){throw Error(b(321))}function Sa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!at(e[n],t[n]))return!1;return!0}function Na(e,t,n,r,s,i){if(yn=i,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zs.current=e===null||e.memoizedState===null?p0:m0,e=n(r,s),jr){i=0;do{if(jr=!1,Qr=0,25<=i)throw Error(b(301));i+=1,me=he=null,t.updateQueue=null,zs.current=g0,e=n(r,s)}while(jr)}if(zs.current=fi,t=he!==null&&he.next!==null,yn=0,me=he=ie=null,di=!1,t)throw Error(b(300));return e}function Ca(){var e=Qr!==0;return Qr=0,e}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?ie.memoizedState=me=e:me=me.next=e,me}function tt(){if(he===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=me===null?ie.memoizedState:me.next;if(t!==null)me=t,he=e;else{if(e===null)throw Error(b(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},me===null?ie.memoizedState=me=e:me=me.next=e}return me}function Gr(e,t){return typeof t=="function"?t(e):t}function yo(e){var t=tt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=he,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,a=null,u=i;do{var d=u.lane;if((yn&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,ie.lanes|=d,vn|=d}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,at(r,t.memoizedState)||(Ve=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ie.lanes|=i,vn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vo(e){var t=tt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);at(i,t.memoizedState)||(Ve=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Kf(){}function Qf(e,t){var n=ie,r=tt(),s=t(),i=!at(r.memoizedState,s);if(i&&(r.memoizedState=s,Ve=!0),r=r.queue,Ta(Xf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,Yr(9,Yf.bind(null,n,r,s,t),void 0,null),ge===null)throw Error(b(349));yn&30||Gf(n,t,s)}return s}function Gf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yf(e,t,n,r){t.value=n,t.getSnapshot=r,Zf(t)&&qf(e)}function Xf(e,t,n){return n(function(){Zf(t)&&qf(e)})}function Zf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!at(e,n)}catch{return!0}}function qf(e){var t=Tt(e,1);t!==null&&lt(t,e,1,-1)}function Xu(e){var t=ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},t.queue=e,e=e.dispatch=h0.bind(null,ie,e),[t.memoizedState,e]}function Yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Jf(){return tt().memoizedState}function Bs(e,t,n,r){var s=ct();ie.flags|=e,s.memoizedState=Yr(1|t,n,void 0,r===void 0?null:r)}function Ai(e,t,n,r){var s=tt();r=r===void 0?null:r;var i=void 0;if(he!==null){var o=he.memoizedState;if(i=o.destroy,r!==null&&Sa(r,o.deps)){s.memoizedState=Yr(t,n,i,r);return}}ie.flags|=e,s.memoizedState=Yr(1|t,n,i,r)}function Zu(e,t){return Bs(8390656,8,e,t)}function Ta(e,t){return Ai(2048,8,e,t)}function eh(e,t){return Ai(4,2,e,t)}function th(e,t){return Ai(4,4,e,t)}function nh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rh(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,nh.bind(null,t,e),n)}function ja(){}function sh(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ih(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oh(e,t,n){return yn&21?(at(n,t)||(n=df(),ie.lanes|=n,vn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ve=!0),e.memoizedState=n)}function d0(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{Y=n,go.transition=r}}function lh(){return tt().memoizedState}function f0(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ah(e))uh(t,n);else if(n=$f(e,t,n,r),n!==null){var s=Me();lt(n,e,r,s),ch(n,t,r)}}function h0(e,t,n){var r=Wt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ah(e))uh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,at(l,o)){var a=t.interleaved;a===null?(s.next=s,ya(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=$f(e,t,s,r),n!==null&&(s=Me(),lt(n,e,r,s),ch(n,t,r))}}function ah(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function uh(e,t){jr=di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ch(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ra(e,n)}}var fi={readContext:et,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},p0={readContext:et,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bs(4194308,4,nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bs(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=f0.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Xu,useDebugValue:ja,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Xu(!1),t=e[0];return e=d0.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,s=ct();if(ee){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ge===null)throw Error(b(349));yn&30||Gf(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Zu(Xf.bind(null,r,i,e),[e]),r.flags|=2048,Yr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=ge.identifierPrefix;if(ee){var n=vt,r=yt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=c0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},m0={readContext:et,useCallback:sh,useContext:et,useEffect:Ta,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:ih,useReducer:yo,useRef:Jf,useState:function(){return yo(Gr)},useDebugValue:ja,useDeferredValue:function(e){var t=tt();return oh(t,he.memoizedState,e)},useTransition:function(){var e=yo(Gr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:Kf,useSyncExternalStore:Qf,useId:lh,unstable_isNewReconciler:!1},g0={readContext:et,useCallback:sh,useContext:et,useEffect:Ta,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:ih,useReducer:vo,useRef:Jf,useState:function(){return vo(Gr)},useDebugValue:ja,useDeferredValue:function(e){var t=tt();return he===null?t.memoizedState=e:oh(t,he.memoizedState,e)},useTransition:function(){var e=vo(Gr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:Kf,useSyncExternalStore:Qf,useId:lh,unstable_isNewReconciler:!1};function rt(e,t){if(e&&e.defaultProps){t=oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Di={isMounted:function(e){return(e=e._reactInternals)?wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),s=Wt(e),i=kt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Ut(e,i,s),t!==null&&(lt(t,e,s,r),Fs(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),s=Wt(e),i=kt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ut(e,i,s),t!==null&&(lt(t,e,s,r),Fs(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=Wt(e),s=kt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ut(e,s,r),t!==null&&(lt(t,e,r,n),Fs(t,e,r))}};function qu(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(s,i):!0}function dh(e,t,n){var r=!1,s=Gt,i=t.contextType;return typeof i=="object"&&i!==null?i=et(i):(s=Oe(t)?mn:be.current,r=t.contextTypes,i=(r=r!=null)?Gn(e,s):Gt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Di,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ju(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Di.enqueueReplaceState(t,t.state,null)}function pl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},va(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=et(i):(i=Oe(t)?mn:be.current,s.context=Gn(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(hl(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Di.enqueueReplaceState(s,s.state,null),ui(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Wm(r),r=r.return;while(r);var s=n}catch(i){s=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:s,digest:null}}function xo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ml(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var y0=typeof WeakMap=="function"?WeakMap:Map;function fh(e,t,n){n=kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi||(pi=!0,Tl=r),ml(e,t)},n}function hh(e,t,n){n=kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){ml(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ml(e,t),typeof r!="function"&&($t===null?$t=new Set([this]):$t.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ec(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new y0;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=M0.bind(null,e,t,n),t.then(e,e))}function tc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nc(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=kt(-1,1),t.tag=2,Ut(n,t,1))),n.lanes|=1),e)}var v0=bt.ReactCurrentOwner,Ve=!1;function Le(e,t,n,r){t.child=e===null?Uf(t,null,n,r):Xn(t,e.child,n,r)}function rc(e,t,n,r,s){n=n.render;var i=t.ref;return Hn(t,s),r=Na(e,t,n,r,i,s),n=Ca(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,jt(e,t,s)):(ee&&n&&da(t),t.flags|=1,Le(e,t,r,s),t.child)}function sc(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Da(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ph(e,t,i,r,s)):(e=Hs(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Br,n(o,r)&&e.ref===t.ref)return jt(e,t,s)}return t.flags|=1,e=Ht(i,r),e.ref=t.ref,e.return=t,t.child=e}function ph(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Br(i,r)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,jt(e,t,s)}return gl(e,t,n,r,s)}function mh(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},X(_n,Be),Be|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,X(_n,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,X(_n,Be),Be|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,X(_n,Be),Be|=r;return Le(e,t,s,n),t.child}function gh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gl(e,t,n,r,s){var i=Oe(n)?mn:be.current;return i=Gn(t,i),Hn(t,s),n=Na(e,t,n,r,i,s),r=Ca(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,jt(e,t,s)):(ee&&r&&da(t),t.flags|=1,Le(e,t,n,s),t.child)}function ic(e,t,n,r,s){if(Oe(n)){var i=!0;si(t)}else i=!1;if(Hn(t,s),t.stateNode===null)Us(e,t),dh(t,n,r),pl(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=et(u):(u=Oe(n)?mn:be.current,u=Gn(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Ju(t,o,r,u),Rt=!1;var h=t.memoizedState;o.state=h,ui(t,r,o,s),a=t.memoizedState,l!==r||h!==a||_e.current||Rt?(typeof d=="function"&&(hl(t,n,d,r),a=t.memoizedState),(l=Rt||qu(t,n,l,r,h,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Wf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:rt(t.type,l),o.props=u,f=t.pendingProps,h=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=et(a):(a=Oe(n)?mn:be.current,a=Gn(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||h!==a)&&Ju(t,o,r,a),Rt=!1,h=t.memoizedState,o.state=h,ui(t,r,o,s);var v=t.memoizedState;l!==f||h!==v||_e.current||Rt?(typeof g=="function"&&(hl(t,n,g,r),v=t.memoizedState),(u=Rt||qu(t,n,u,r,h,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return yl(e,t,n,r,i,s)}function yl(e,t,n,r,s,i){gh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Wu(t,n,!1),jt(e,t,i);r=t.stateNode,v0.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xn(t,e.child,null,i),t.child=Xn(t,null,l,i)):Le(e,t,l,i),t.memoizedState=r.state,s&&Wu(t,n,!0),t.child}function yh(e){var t=e.stateNode;t.pendingContext?$u(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$u(e,t.context,!1),xa(e,t.containerInfo)}function oc(e,t,n,r,s){return Yn(),ha(s),t.flags|=256,Le(e,t,n,r),t.child}var vl={dehydrated:null,treeContext:null,retryLane:0};function xl(e){return{baseLanes:e,cachePool:null,transitions:null}}function vh(e,t,n){var r=t.pendingProps,s=re.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),X(re,s&1),e===null)return dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Oi(o,r,0,null),e=hn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=xl(n),t.memoizedState=vl,e):Pa(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return x0(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ht(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Ht(l,i):(i=hn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?xl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=vl,r}return i=e.child,e=i.sibling,r=Ht(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pa(e,t){return t=Oi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,n,r){return r!==null&&ha(r),Xn(t,e.child,null,n),e=Pa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function x0(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=xo(Error(b(422))),Ts(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Oi({mode:"visible",children:r.children},s,0,null),i=hn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Xn(t,e.child,null,o),t.child.memoizedState=xl(o),t.memoizedState=vl,i);if(!(t.mode&1))return Ts(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(b(419)),r=xo(i,r,void 0),Ts(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ve||l){if(r=ge,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Tt(e,s),lt(r,e,s,-1))}return Aa(),r=xo(Error(b(421))),Ts(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=R0.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ue=Bt(s.nextSibling),$e=t,ee=!0,it=null,e!==null&&(Xe[Ze++]=yt,Xe[Ze++]=vt,Xe[Ze++]=gn,yt=e.id,vt=e.overflow,gn=t),t=Pa(t,r.children),t.flags|=4096,t)}function lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fl(e.return,t,n)}function ko(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function xh(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Le(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lc(e,n,t);else if(e.tag===19)lc(e,n,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}r&=1}if(X(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ci(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ko(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ci(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ko(t,!0,n,null,i);break;case"together":ko(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function k0(e,t,n){switch(t.tag){case 3:yh(t),Yn();break;case 5:Hf(t);break;case 1:Oe(t.type)&&si(t);break;case 4:xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;X(li,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(X(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?vh(e,t,n):(X(re,re.current&1),e=jt(e,t,n),e!==null?e.sibling:null);X(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,mh(e,t,n)}return jt(e,t,n)}var kh,kl,wh,Sh;kh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kl=function(){};wh=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,cn(ht.current);var i=null;switch(n){case"input":s=Uo(e,s),r=Uo(e,r),i=[];break;case"select":s=oe({},s,{value:void 0}),r=oe({},r,{value:void 0}),i=[];break;case"textarea":s=Ho(e,s),r=Ho(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ni)}Qo(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Dr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Dr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&q("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Sh=function(e,t,n,r){n!==r&&(t.flags|=4)};function dr(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function w0(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Oe(t.type)&&ri(),Te(t),null;case 3:return r=t.stateNode,Zn(),J(_e),J(be),wa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ns(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,it!==null&&(bl(it),it=null))),kl(e,t),Te(t),null;case 5:ka(t);var s=cn(Kr.current);if(n=t.type,e!==null&&t.stateNode!=null)wh(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return Te(t),null}if(e=cn(ht.current),Ns(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dt]=t,r[Wr]=i,e=(t.mode&1)!==0,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(s=0;s<xr.length;s++)q(xr[s],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":gu(r,i),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},q("invalid",r);break;case"textarea":vu(r,i),q("invalid",r)}Qo(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Ss(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Ss(r.textContent,l,e),s=["children",""+l]):Dr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&q("scroll",r)}switch(n){case"input":ps(r),yu(r,i,!0);break;case"textarea":ps(r),xu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ni)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[dt]=t,e[Wr]=r,kh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Go(n,r),n){case"dialog":q("cancel",e),q("close",e),s=r;break;case"iframe":case"object":case"embed":q("load",e),s=r;break;case"video":case"audio":for(s=0;s<xr.length;s++)q(xr[s],e);s=r;break;case"source":q("error",e),s=r;break;case"img":case"image":case"link":q("error",e),q("load",e),s=r;break;case"details":q("toggle",e),s=r;break;case"input":gu(e,r),s=Uo(e,r),q("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=oe({},r,{value:void 0}),q("invalid",e);break;case"textarea":vu(e,r),s=Ho(e,r),q("invalid",e);break;default:s=r}Qo(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?qd(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Xd(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Vr(e,a):typeof a=="number"&&Vr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Dr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&q("scroll",e):a!=null&&Zl(e,i,a,o))}switch(n){case"input":ps(e),yu(e,r,!1);break;case"textarea":ps(e),xu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Bn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ni)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Te(t),null;case 6:if(e&&t.stateNode!=null)Sh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=cn(Kr.current),cn(ht.current),Ns(t)){if(r=t.stateNode,n=t.memoizedProps,r[dt]=t,(i=r.nodeValue!==n)&&(e=$e,e!==null))switch(e.tag){case 3:Ss(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ss(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r}return Te(t),null;case 13:if(J(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&Ue!==null&&t.mode&1&&!(t.flags&128))zf(),Yn(),t.flags|=98560,i=!1;else if(i=Ns(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(b(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[dt]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),i=!1}else it!==null&&(bl(it),it=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?pe===0&&(pe=3):Aa())),t.updateQueue!==null&&(t.flags|=4),Te(t),null);case 4:return Zn(),kl(e,t),e===null&&Ur(t.stateNode.containerInfo),Te(t),null;case 10:return ga(t.type._context),Te(t),null;case 17:return Oe(t.type)&&ri(),Te(t),null;case 19:if(J(re),i=t.memoizedState,i===null)return Te(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)dr(i,!1);else{if(pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ci(e),o!==null){for(t.flags|=128,dr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return X(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>Jn&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ee)return Te(t),null}else 2*ue()-i.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=re.current,X(re,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Ra(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function S0(e,t){switch(fa(t),t.tag){case 1:return Oe(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),J(_e),J(be),wa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ka(t),null;case 13:if(J(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(re),null;case 4:return Zn(),null;case 10:return ga(t.type._context),null;case 22:case 23:return Ra(),null;case 24:return null;default:return null}}var js=!1,Pe=!1,N0=typeof WeakSet=="function"?WeakSet:Set,D=null;function Vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function wl(e,t,n){try{n()}catch(r){le(e,t,r)}}var ac=!1;function C0(e,t){if(sl=Js,e=Pf(),ca(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===s&&(l=o),h===i&&++d===r&&(a=o),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(il={focusedElem:e,selectionRange:n},Js=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,C=v.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:rt(t.type,x),C);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(k){le(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return v=ac,ac=!1,v}function Pr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&wl(t,n,i)}s=s.next}while(s!==r)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[Wr],delete t[al],delete t[o0],delete t[l0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ch(e){return e.tag===5||e.tag===3||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ch(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.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 Nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ni));else if(r!==4&&(e=e.child,e!==null))for(Nl(e,t,n),e=e.sibling;e!==null;)Nl(e,t,n),e=e.sibling}function Cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}var xe=null,st=!1;function Et(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Pi,n)}catch{}switch(n.tag){case 5:Pe||Vn(n,t);case 6:var r=xe,s=st;xe=null,Et(e,t,n),xe=r,st=s,xe!==null&&(st?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(st?(e=xe,n=n.stateNode,e.nodeType===8?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),Fr(e)):ho(xe,n.stateNode));break;case 4:r=xe,s=st,xe=n.stateNode.containerInfo,st=!0,Et(e,t,n),xe=r,st=s;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&wl(n,t,o),s=s.next}while(s!==r)}Et(e,t,n);break;case 1:if(!Pe&&(Vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){le(n,t,l)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Et(e,t,n),Pe=r):Et(e,t,n);break;default:Et(e,t,n)}}function cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N0),t.forEach(function(r){var s=A0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:xe=l.stateNode,st=!1;break e;case 3:xe=l.stateNode.containerInfo,st=!0;break e;case 4:xe=l.stateNode.containerInfo,st=!0;break e}l=l.return}if(xe===null)throw Error(b(160));Th(i,o,s),xe=null,st=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){le(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jh(t,e),t=t.sibling}function jh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nt(t,e),ut(e),r&4){try{Pr(3,e,e.return),Vi(3,e)}catch(x){le(e,e.return,x)}try{Pr(5,e,e.return)}catch(x){le(e,e.return,x)}}break;case 1:nt(t,e),ut(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(nt(t,e),ut(e),r&512&&n!==null&&Vn(n,n.return),e.flags&32){var s=e.stateNode;try{Vr(s,"")}catch(x){le(e,e.return,x)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Qd(s,i),Go(l,o);var u=Go(l,i);for(o=0;o<a.length;o+=2){var d=a[o],f=a[o+1];d==="style"?qd(s,f):d==="dangerouslySetInnerHTML"?Xd(s,f):d==="children"?Vr(s,f):Zl(s,d,f,u)}switch(l){case"input":$o(s,i);break;case"textarea":Gd(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Bn(s,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?Bn(s,!!i.multiple,i.defaultValue,!0):Bn(s,!!i.multiple,i.multiple?[]:"",!1))}s[Wr]=i}catch(x){le(e,e.return,x)}}break;case 6:if(nt(t,e),ut(e),r&4){if(e.stateNode===null)throw Error(b(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){le(e,e.return,x)}}break;case 3:if(nt(t,e),ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fr(t.containerInfo)}catch(x){le(e,e.return,x)}break;case 4:nt(t,e),ut(e);break;case 13:nt(t,e),ut(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(La=ue())),r&4&&cc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||d,nt(t,e),Pe=u):nt(t,e),ut(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Pr(4,h,h.return);break;case 1:Vn(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){le(r,n,x)}}break;case 5:Vn(h,h.return);break;case 22:if(h.memoizedState!==null){fc(f);continue}}g!==null?(g.return=h,D=g):fc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Zd("display",o))}catch(x){le(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){le(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:nt(t,e),ut(e),r&4&&cc(e);break;case 21:break;default:nt(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ch(n)){var r=n;break e}n=n.return}throw Error(b(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Vr(s,""),r.flags&=-33);var i=uc(e);Cl(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=uc(e);Nl(e,l,o);break;default:throw Error(b(161))}}catch(a){le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T0(e,t,n){D=e,Ph(e)}function Ph(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var s=D,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||js;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||Pe;l=js;var u=Pe;if(js=o,(Pe=a)&&!u)for(D=s;D!==null;)o=D,a=o.child,o.tag===22&&o.memoizedState!==null?hc(s):a!==null?(a.return=o,D=a):hc(s);for(;i!==null;)D=i,Ph(i),i=i.sibling;D=s,js=l,Pe=u}dc(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,D=i):dc(e)}}function dc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||Vi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:rt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yu(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yu(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Fr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}Pe||t.flags&512&&Sl(t)}catch(h){le(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function fc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function hc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vi(4,t)}catch(a){le(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){le(t,s,a)}}var i=t.return;try{Sl(t)}catch(a){le(t,i,a)}break;case 5:var o=t.return;try{Sl(t)}catch(a){le(t,o,a)}}}catch(a){le(t,t.return,a)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var j0=Math.ceil,hi=bt.ReactCurrentDispatcher,ba=bt.ReactCurrentOwner,Je=bt.ReactCurrentBatchConfig,K=0,ge=null,fe=null,ke=0,Be=0,_n=qt(0),pe=0,Xr=null,vn=0,_i=0,Ea=0,br=null,De=null,La=0,Jn=1/0,mt=null,pi=!1,Tl=null,$t=null,Ps=!1,Ot=null,mi=0,Er=0,jl=null,$s=-1,Ws=0;function Me(){return K&6?ue():$s!==-1?$s:$s=ue()}function Wt(e){return e.mode&1?K&2&&ke!==0?ke&-ke:u0.transition!==null?(Ws===0&&(Ws=df()),Ws):(e=Y,e!==0||(e=window.event,e=e===void 0?16:vf(e.type)),e):1}function lt(e,t,n,r){if(50<Er)throw Er=0,jl=null,Error(b(185));ts(e,n,r),(!(K&2)||e!==ge)&&(e===ge&&(!(K&2)&&(_i|=n),pe===4&&Vt(e,ke)),Ie(e,r),n===1&&K===0&&!(t.mode&1)&&(Jn=ue()+500,Ri&&Jt()))}function Ie(e,t){var n=e.callbackNode;ug(e,t);var r=qs(e,e===ge?ke:0);if(r===0)n!==null&&Su(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Su(n),t===1)e.tag===0?a0(pc.bind(null,e)):Of(pc.bind(null,e)),s0(function(){!(K&6)&&Jt()}),n=null;else{switch(ff(r)){case 1:n=na;break;case 4:n=uf;break;case 16:n=Zs;break;case 536870912:n=cf;break;default:n=Zs}n=Vh(n,bh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bh(e,t){if($s=-1,Ws=0,K&6)throw Error(b(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=qs(e,e===ge?ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gi(e,r);else{t=r;var s=K;K|=2;var i=Lh();(ge!==e||ke!==t)&&(mt=null,Jn=ue()+500,fn(e,t));do try{E0();break}catch(l){Eh(e,l)}while(!0);ma(),hi.current=i,K=s,fe!==null?t=0:(ge=null,ke=0,t=pe)}if(t!==0){if(t===2&&(s=Jo(e),s!==0&&(r=s,t=Pl(e,s))),t===1)throw n=Xr,fn(e,0),Vt(e,r),Ie(e,ue()),n;if(t===6)Vt(e,r);else{if(s=e.current.alternate,!(r&30)&&!P0(s)&&(t=gi(e,r),t===2&&(i=Jo(e),i!==0&&(r=i,t=Pl(e,i))),t===1))throw n=Xr,fn(e,0),Vt(e,r),Ie(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:rn(e,De,mt);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=La+500-ue(),10<t)){if(qs(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ll(rn.bind(null,e,De,mt),t);break}rn(e,De,mt);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-ot(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j0(r/1960))-r,10<r){e.timeoutHandle=ll(rn.bind(null,e,De,mt),r);break}rn(e,De,mt);break;case 5:rn(e,De,mt);break;default:throw Error(b(329))}}}return Ie(e,ue()),e.callbackNode===n?bh.bind(null,e):null}function Pl(e,t){var n=br;return e.current.memoizedState.isDehydrated&&(fn(e,t).flags|=256),e=gi(e,t),e!==2&&(t=De,De=n,t!==null&&bl(t)),e}function bl(e){De===null?De=e:De.push.apply(De,e)}function P0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!at(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Vt(e,t){for(t&=~Ea,t&=~_i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function pc(e){if(K&6)throw Error(b(327));Kn();var t=qs(e,0);if(!(t&1))return Ie(e,ue()),null;var n=gi(e,t);if(e.tag!==0&&n===2){var r=Jo(e);r!==0&&(t=r,n=Pl(e,r))}if(n===1)throw n=Xr,fn(e,0),Vt(e,t),Ie(e,ue()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,De,mt),Ie(e,ue()),null}function Ma(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Jn=ue()+500,Ri&&Jt())}}function xn(e){Ot!==null&&Ot.tag===0&&!(K&6)&&Kn();var t=K;K|=1;var n=Je.transition,r=Y;try{if(Je.transition=null,Y=1,e)return e()}finally{Y=r,Je.transition=n,K=t,!(K&6)&&Jt()}}function Ra(){Be=_n.current,J(_n)}function fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,r0(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(fa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ri();break;case 3:Zn(),J(_e),J(be),wa();break;case 5:ka(r);break;case 4:Zn();break;case 13:J(re);break;case 19:J(re);break;case 10:ga(r.type._context);break;case 22:case 23:Ra()}n=n.return}if(ge=e,fe=e=Ht(e.current,null),ke=Be=t,pe=0,Xr=null,Ea=_i=vn=0,De=br=null,un!==null){for(t=0;t<un.length;t++)if(n=un[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}un=null}return e}function Eh(e,t){do{var n=fe;try{if(ma(),zs.current=fi,di){for(var r=ie.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}di=!1}if(yn=0,me=he=ie=null,jr=!1,Qr=0,ba.current=null,n===null||n.return===null){pe=1,Xr=t,fe=null;break}e:{var i=e,o=n.return,l=n,a=t;if(t=ke,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=tc(o);if(g!==null){g.flags&=-257,nc(g,o,l,i,t),g.mode&1&&ec(i,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(a),t.updateQueue=x}else v.add(a);break e}else{if(!(t&1)){ec(i,u,t),Aa();break e}a=Error(b(426))}}else if(ee&&l.mode&1){var C=tc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),nc(C,o,l,i,t),ha(qn(a,l));break e}}i=a=qn(a,l),pe!==4&&(pe=2),br===null?br=[i]:br.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=fh(i,a,t);Gu(i,y);break e;case 1:l=a;var p=i.type,m=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&($t===null||!$t.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=hh(i,l,t);Gu(i,k);break e}}i=i.return}while(i!==null)}Rh(n)}catch(N){t=N,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function Lh(){var e=hi.current;return hi.current=fi,e===null?fi:e}function Aa(){(pe===0||pe===3||pe===2)&&(pe=4),ge===null||!(vn&268435455)&&!(_i&268435455)||Vt(ge,ke)}function gi(e,t){var n=K;K|=2;var r=Lh();(ge!==e||ke!==t)&&(mt=null,fn(e,t));do try{b0();break}catch(s){Eh(e,s)}while(!0);if(ma(),K=n,hi.current=r,fe!==null)throw Error(b(261));return ge=null,ke=0,pe}function b0(){for(;fe!==null;)Mh(fe)}function E0(){for(;fe!==null&&!eg();)Mh(fe)}function Mh(e){var t=Dh(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?Rh(e):fe=t,ba.current=null}function Rh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=S0(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pe=6,fe=null;return}}else if(n=w0(n,t,Be),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);pe===0&&(pe=5)}function rn(e,t,n){var r=Y,s=Je.transition;try{Je.transition=null,Y=1,L0(e,t,n,r)}finally{Je.transition=s,Y=r}return null}function L0(e,t,n,r){do Kn();while(Ot!==null);if(K&6)throw Error(b(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(cg(e,i),e===ge&&(fe=ge=null,ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ps||(Ps=!0,Vh(Zs,function(){return Kn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Je.transition,Je.transition=null;var o=Y;Y=1;var l=K;K|=4,ba.current=null,C0(e,n),jh(n,e),Xg(il),Js=!!sl,il=sl=null,e.current=n,T0(n),tg(),K=l,Y=o,Je.transition=i}else e.current=n;if(Ps&&(Ps=!1,Ot=e,mi=s),i=e.pendingLanes,i===0&&($t=null),sg(n.stateNode),Ie(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(pi)throw pi=!1,e=Tl,Tl=null,e;return mi&1&&e.tag!==0&&Kn(),i=e.pendingLanes,i&1?e===jl?Er++:(Er=0,jl=e):Er=0,Jt(),null}function Kn(){if(Ot!==null){var e=ff(mi),t=Je.transition,n=Y;try{if(Je.transition=null,Y=16>e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,mi=0,K&6)throw Error(b(331));var s=K;for(K|=4,D=e.current;D!==null;){var i=D,o=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(D=u;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Pr(8,d,i)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var h=d.sibling,g=d.return;if(Nh(d),d===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var C=x.sibling;x.sibling=null,x=C}while(x!==null)}}D=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,D=o;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Pr(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,D=y;break e}D=i.return}}var p=e.current;for(D=p;D!==null;){o=D;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,D=m;else e:for(o=p;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vi(9,l)}}catch(N){le(l,l.return,N)}if(l===o){D=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,D=k;break e}D=l.return}}if(K=s,Jt(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Pi,e)}catch{}r=!0}return r}finally{Y=n,Je.transition=t}}return!1}function mc(e,t,n){t=qn(n,t),t=fh(e,t,1),e=Ut(e,t,1),t=Me(),e!==null&&(ts(e,1,t),Ie(e,t))}function le(e,t,n){if(e.tag===3)mc(e,e,n);else for(;t!==null;){if(t.tag===3){mc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($t===null||!$t.has(r))){e=qn(n,e),e=hh(t,e,1),t=Ut(t,e,1),e=Me(),t!==null&&(ts(t,1,e),Ie(t,e));break}}t=t.return}}function M0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(ke&n)===n&&(pe===4||pe===3&&(ke&130023424)===ke&&500>ue()-La?fn(e,0):Ea|=n),Ie(e,t)}function Ah(e,t){t===0&&(e.mode&1?(t=ys,ys<<=1,!(ys&130023424)&&(ys=4194304)):t=1);var n=Me();e=Tt(e,t),e!==null&&(ts(e,t,n),Ie(e,n))}function R0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ah(e,n)}function A0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Ah(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,k0(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ee&&t.flags&1048576&&If(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var s=Gn(t,be.current);Hn(t,n),s=Na(null,t,r,e,s,n);var i=Ca();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(i=!0,si(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,va(t),s.updater=Di,t.stateNode=s,s._reactInternals=t,pl(t,r,e,n),t=yl(null,t,r,!0,i,n)):(t.tag=0,ee&&i&&da(t),Le(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=V0(r),e=rt(r,e),s){case 0:t=gl(null,t,r,e,n);break e;case 1:t=ic(null,t,r,e,n);break e;case 11:t=rc(null,t,r,e,n);break e;case 14:t=sc(null,t,r,rt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rt(r,s),gl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rt(r,s),ic(e,t,r,s,n);case 3:e:{if(yh(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Wf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=qn(Error(b(423)),t),t=oc(e,t,r,n,s);break e}else if(r!==s){s=qn(Error(b(424)),t),t=oc(e,t,r,n,s);break e}else for(Ue=Bt(t.stateNode.containerInfo.firstChild),$e=t,ee=!0,it=null,n=Uf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===s){t=jt(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return Hf(t),e===null&&dl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ol(r,s)?o=null:i!==null&&ol(r,i)&&(t.flags|=32),gh(e,t),Le(e,t,o,n),t.child;case 6:return e===null&&dl(t),null;case 13:return vh(e,t,n);case 4:return xa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rt(r,s),rc(e,t,r,s,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,X(li,r._currentValue),r._currentValue=o,i!==null)if(at(i.value,o)){if(i.children===s.children&&!_e.current){t=jt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),fl(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(b(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),fl(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Le(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Hn(t,n),s=et(s),r=r(s),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,s=rt(r,t.pendingProps),s=rt(r.type,s),sc(e,t,r,s,n);case 15:return ph(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rt(r,s),Us(e,t),t.tag=1,Oe(r)?(e=!0,si(t)):e=!1,Hn(t,n),dh(t,r,s),pl(t,r,s,n),yl(null,t,r,!0,e,n);case 19:return xh(e,t,n);case 22:return mh(e,t,n)}throw Error(b(156,t.tag))};function Vh(e,t){return af(e,t)}function D0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,r){return new D0(e,t,n,r)}function Da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V0(e){if(typeof e=="function")return Da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jl)return 11;if(e===ea)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hs(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Da(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jn:return hn(n.children,s,i,t);case ql:o=8,s|=8;break;case Io:return e=qe(12,n,t,s|2),e.elementType=Io,e.lanes=i,e;case Fo:return e=qe(13,n,t,s),e.elementType=Fo,e.lanes=i,e;case zo:return e=qe(19,n,t,s),e.elementType=zo,e.lanes=i,e;case Wd:return Oi(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ud:o=10;break e;case $d:o=9;break e;case Jl:o=11;break e;case ea:o=14;break e;case Mt:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=qe(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function hn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Oi(e,t,n,r){return e=qe(22,e,r,t),e.elementType=Wd,e.lanes=n,e.stateNode={isHidden:!1},e}function wo(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _0(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Va(e,t,n,r,s,i,o,l,a){return e=new _0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},va(i),e}function O0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _h(e){if(!e)return Gt;e=e._reactInternals;e:{if(wn(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(Oe(n))return _f(e,n,t)}return t}function Oh(e,t,n,r,s,i,o,l,a){return e=Va(n,r,!0,e,s,i,o,l,a),e.context=_h(null),n=e.current,r=Me(),s=Wt(n),i=kt(r,s),i.callback=t??null,Ut(n,i,s),e.current.lanes=s,ts(e,s,r),Ie(e,r),e}function Ii(e,t,n,r){var s=t.current,i=Me(),o=Wt(s);return n=_h(n),t.context===null?t.context=n:t.pendingContext=n,t=kt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ut(s,t,o),e!==null&&(lt(e,s,o,i),Fs(e,s,o)),o}function yi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _a(e,t){gc(e,t),(e=e.alternate)&&gc(e,t)}function I0(){return null}var Ih=typeof reportError=="function"?reportError:function(e){console.error(e)};function Oa(e){this._internalRoot=e}Fi.prototype.render=Oa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));Ii(e,t,null,null)};Fi.prototype.unmount=Oa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xn(function(){Ii(null,e,null,null)}),t[Ct]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=mf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&t!==0&&t<Dt[n].priority;n++);Dt.splice(n,0,e),n===0&&yf(e)}};function Ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yc(){}function F0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=yi(o);i.call(u)}}var o=Oh(t,r,e,0,null,!1,!1,"",yc);return e._reactRootContainer=o,e[Ct]=o.current,Ur(e.nodeType===8?e.parentNode:e),xn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=yi(a);l.call(u)}}var a=Va(e,0,!1,null,null,!1,!1,"",yc);return e._reactRootContainer=a,e[Ct]=a.current,Ur(e.nodeType===8?e.parentNode:e),xn(function(){Ii(t,a,n,r)}),a}function Bi(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var a=yi(o);l.call(a)}}Ii(t,o,e,s)}else o=F0(n,t,e,s,r);return yi(o)}hf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vr(t.pendingLanes);n!==0&&(ra(t,n|1),Ie(t,ue()),!(K&6)&&(Jn=ue()+500,Jt()))}break;case 13:xn(function(){var r=Tt(e,1);if(r!==null){var s=Me();lt(r,e,1,s)}}),_a(e,1)}};sa=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=Me();lt(t,e,134217728,n)}_a(e,134217728)}};pf=function(e){if(e.tag===13){var t=Wt(e),n=Tt(e,t);if(n!==null){var r=Me();lt(n,e,t,r)}_a(e,t)}};mf=function(){return Y};gf=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Xo=function(e,t,n){switch(t){case"input":if($o(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Mi(r);if(!s)throw Error(b(90));Kd(r),$o(r,s)}}}break;case"textarea":Gd(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};tf=Ma;nf=xn;var z0={usingClientEntryPoint:!1,Events:[rs,Ln,Mi,Jd,ef,Ma]},fr={findFiberByHostInstance:an,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B0={bundleType:fr.bundleType,version:fr.version,rendererPackageName:fr.rendererPackageName,rendererConfig:fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=of(e),e===null?null:e.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||I0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Pi=bs.inject(B0),ft=bs}catch{}}Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z0;Ke.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ia(t))throw Error(b(200));return O0(e,t,null,n)};Ke.createRoot=function(e,t){if(!Ia(e))throw Error(b(299));var n=!1,r="",s=Ih;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Va(e,1,!1,null,null,n,!1,r,s),e[Ct]=t.current,Ur(e.nodeType===8?e.parentNode:e),new Oa(t)};Ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=of(t),e=e===null?null:e.stateNode,e};Ke.flushSync=function(e){return xn(e)};Ke.hydrate=function(e,t,n){if(!zi(t))throw Error(b(200));return Bi(null,e,t,!0,n)};Ke.hydrateRoot=function(e,t,n){if(!Ia(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Ih;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Oh(t,null,e,1,n??null,s,!1,i,o),e[Ct]=t.current,Ur(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Fi(t)};Ke.render=function(e,t,n){if(!zi(t))throw Error(b(200));return Bi(null,e,t,!1,n)};Ke.unmountComponentAtNode=function(e){if(!zi(e))throw Error(b(40));return e._reactRootContainer?(xn(function(){Bi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};Ke.unstable_batchedUpdates=Ma;Ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zi(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return Bi(e,t,n,!1,r)};Ke.version="18.3.1-next-f1338f8080-20240426";function Fh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fh)}catch(e){console.error(e)}}Fh(),Id.exports=Ke;var U0=Id.exports,zh,vc=U0;zh=vc.createRoot,vc.hydrateRoot;const Bh=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ui=S.createContext({}),$i=S.createContext(null),Wi=typeof document<"u",Fa=Wi?S.useLayoutEffect:S.useEffect,Uh=S.createContext({strict:!1}),za=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$0="framerAppearId",$h="data-"+za($0);function W0(e,t,n,r){const{visualElement:s}=S.useContext(Ui),i=S.useContext(Uh),o=S.useContext($i),l=S.useContext(Bh).reducedMotion,a=S.useRef();r=r||i.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;S.useInsertionEffect(()=>{u&&u.update(n,o)});const d=S.useRef(!!(n[$h]&&!window.HandoffComplete));return Fa(()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function On(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function H0(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):On(n)&&(n.current=r))},[t])}function Zr(e){return typeof e=="string"||Array.isArray(e)}function Hi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ba=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ua=["initial",...Ba];function Ki(e){return Hi(e.animate)||Ua.some(t=>Zr(e[t]))}function Wh(e){return!!(Ki(e)||e.variants)}function K0(e,t){if(Ki(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zr(n)?n:void 0,animate:Zr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Q0(e){const{initial:t,animate:n}=K0(e,S.useContext(Ui));return S.useMemo(()=>({initial:t,animate:n}),[xc(t),xc(n)])}function xc(e){return Array.isArray(e)?e.join(" "):e}const kc={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"]},qr={};for(const e in kc)qr[e]={isEnabled:t=>kc[e].some(n=>!!t[n])};function G0(e){for(const t in e)qr[t]={...qr[t],...e[t]}}const $a=S.createContext({}),Hh=S.createContext({}),Y0=Symbol.for("motionComponentSymbol");function X0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){e&&G0(e);function i(l,a){let u;const d={...S.useContext(Bh),...l,layoutId:Z0(l)},{isStatic:f}=d,h=Q0(l),g=r(l,f);if(!f&&Wi){h.visualElement=W0(s,g,d,t);const v=S.useContext(Hh),x=S.useContext(Uh).strict;h.visualElement&&(u=h.visualElement.loadFeatures(d,x,e,v))}return S.createElement(Ui.Provider,{value:h},u&&h.visualElement?S.createElement(u,{visualElement:h.visualElement,...d}):null,n(s,l,H0(g,h.visualElement,a),g,f,h.visualElement))}const o=S.forwardRef(i);return o[Y0]=s,o}function Z0({layoutId:e}){const t=S.useContext($a).id;return t&&e!==void 0?t+"-"+e:e}function q0(e){function t(r,s={}){return X0(e(r,s))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,s)=>(n.has(s)||n.set(s,t(s)),n.get(s))})}const J0=["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 Wa(e){return typeof e!="string"||e.includes("-")?!1:!!(J0.indexOf(e)>-1||/[A-Z]/.test(e))}const vi={};function ey(e){Object.assign(vi,e)}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sn=new Set(is);function Kh(e,{layout:t,layoutId:n}){return Sn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vi[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),ty={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ny=is.length;function ry(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,s){let i="";for(let o=0;o<ny;o++){const l=is[o];if(e[l]!==void 0){const a=ty[l]||l;i+=`${a}(${e[l]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),s?i=s(e,r?"":i):n&&r&&(i="none"),i}const Qh=e=>t=>typeof t=="string"&&t.startsWith(e),Gh=Qh("--"),El=Qh("var(--"),sy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,iy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Yt=(e,t,n)=>Math.min(Math.max(n,e),t),Nn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lr={...Nn,transform:e=>Yt(0,1,e)},Es={...Nn,default:1},Mr=e=>Math.round(e*1e5)/1e5,Qi=/(-)?([\d]*\.?[\d])+/g,Yh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,oy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function os(e){return typeof e=="string"}const ls=e=>({test:t=>os(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=ls("deg"),pt=ls("%"),I=ls("px"),ly=ls("vh"),ay=ls("vw"),wc={...pt,parse:e=>pt.parse(e)/100,transform:e=>pt.transform(e*100)},Sc={...Nn,transform:Math.round},Xh={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:Es,scaleX:Es,scaleY:Es,scaleZ:Es,skew:Lt,skewX:Lt,skewY:Lt,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Lr,originX:wc,originY:wc,originZ:I,zIndex:Sc,fillOpacity:Lr,strokeOpacity:Lr,numOctaves:Sc};function Ha(e,t,n,r){const{style:s,vars:i,transform:o,transformOrigin:l}=e;let a=!1,u=!1,d=!0;for(const f in t){const h=t[f];if(Gh(f)){i[f]=h;continue}const g=Xh[f],v=iy(h,g);if(Sn.has(f)){if(a=!0,o[f]=v,!d)continue;h!==(g.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,l[f]=v):s[f]=v}if(t.transform||(a||r?s.transform=ry(e.transform,n,d,r):s.transform&&(s.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:g=0}=l;s.transformOrigin=`${f} ${h} ${g}`}}const Ka=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zh(e,t,n){for(const r in t)!Fe(t[r])&&!Kh(r,n)&&(e[r]=t[r])}function uy({transformTemplate:e},t,n){return S.useMemo(()=>{const r=Ka();return Ha(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function cy(e,t,n){const r=e.style||{},s={};return Zh(s,r,e),Object.assign(s,uy(e,t,n)),e.transformValues?e.transformValues(s):s}function dy(e,t,n){const r={},s=cy(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const fy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fy.has(e)}let qh=e=>!xi(e);function hy(e){e&&(qh=t=>t.startsWith("on")?!xi(t):e(t))}try{hy(require("@emotion/is-prop-valid").default)}catch{}function py(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(qh(s)||n===!0&&xi(s)||!t&&!xi(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function Nc(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function my(e,t,n){const r=Nc(t,e.x,e.width),s=Nc(n,e.y,e.height);return`${r} ${s}`}const gy={offset:"stroke-dashoffset",array:"stroke-dasharray"},yy={offset:"strokeDashoffset",array:"strokeDasharray"};function vy(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?gy:yy;e[i.offset]=I.transform(-r);const o=I.transform(t),l=I.transform(n);e[i.array]=`${o} ${l}`}function Qa(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},d,f,h){if(Ha(e,u,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v,dimensions:x}=e;g.transform&&(x&&(v.transform=g.transform),delete g.transform),x&&(s!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=my(x,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&vy(g,o,l,a,!1)}const Jh=()=>({...Ka(),attrs:{}}),Ga=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xy(e,t,n,r){const s=S.useMemo(()=>{const i=Jh();return Qa(i,t,{enableHardwareAcceleration:!1},Ga(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Zh(i,e.style,e),s.style={...i,...s.style}}return s}function ky(e=!1){return(n,r,s,{latestValues:i},o)=>{const a=(Wa(n)?xy:dy)(r,i,o,n),d={...py(r,typeof n=="string",e),...a,ref:s},{children:f}=r,h=S.useMemo(()=>Fe(f)?f.get():f,[f]);return S.createElement(n,{...d,children:h})}}function ep(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tp=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"]);function np(e,t,n,r){ep(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(tp.has(s)?s:za(s),t.attrs[s])}function Ya(e,t){const{style:n}=e,r={};for(const s in n)(Fe(n[s])||t.style&&Fe(t.style[s])||Kh(s,e))&&(r[s]=n[s]);return r}function rp(e,t){const n=Ya(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const s=is.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=e[r]}return n}function Xa(e,t,n,r={},s={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),t}function sp(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ki=e=>Array.isArray(e),wy=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Sy=e=>ki(e)?e[e.length-1]||0:e;function Ks(e){const t=Fe(e)?e.get():e;return wy(t)?t.toValue():t}function Ny({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,i){const o={latestValues:Cy(r,s,i,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const ip=e=>(t,n)=>{const r=S.useContext(Ui),s=S.useContext($i),i=()=>Ny(e,t,r,s);return n?i():sp(i)};function Cy(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Ks(i[h]);let{initial:o,animate:l}=e;const a=Ki(e),u=Wh(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?l:o;return f&&typeof f!="boolean"&&!Hi(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const v=Xa(e,g);if(!v)return;const{transitionEnd:x,transition:C,...y}=v;for(const p in y){let m=y[p];if(Array.isArray(m)){const k=d?m.length-1:0;m=m[k]}m!==null&&(s[p]=m)}for(const p in x)s[p]=x[p]}),s}const ce=e=>e;class Cc{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Ty(e){let t=new Cc,n=new Cc,r=0,s=!1,i=!1;const o=new WeakSet,l={schedule:(a,u=!1,d=!1)=>{const f=d&&s,h=f?t:n;return u&&o.add(a),h.add(a)&&f&&s&&(r=t.order.length),a},cancel:a=>{n.remove(a),o.delete(a)},process:a=>{if(s){i=!0;return}if(s=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];d(a),o.has(d)&&(l.schedule(d),e())}s=!1,i&&(i=!1,l.process(a))}};return l}const Ls=["prepare","read","update","preRender","render","postRender"],jy=40;function Py(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=Ls.reduce((f,h)=>(f[h]=Ty(()=>n=!0),f),{}),o=f=>i[f].process(s),l=()=>{const f=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(f-s.timestamp,jy),1),s.timestamp=f,s.isProcessing=!0,Ls.forEach(o),s.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,s.isProcessing||e(l)};return{schedule:Ls.reduce((f,h)=>{const g=i[h];return f[h]=(v,x=!1,C=!1)=>(n||a(),g.schedule(v,x,C)),f},{}),cancel:f=>Ls.forEach(h=>i[h].cancel(f)),state:s,steps:i}}const{schedule:Z,cancel:Pt,state:je,steps:No}=Py(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0),by={useVisualState:ip({scrapeMotionValuesFromProps:rp,createRenderState:Jh,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{Qa(n,r,{enableHardwareAcceleration:!1},Ga(t.tagName),e.transformTemplate),np(t,n)})}})},Ey={useVisualState:ip({scrapeMotionValuesFromProps:Ya,createRenderState:Ka})};function Ly(e,{forwardMotionProps:t=!1},n,r){return{...Wa(e)?by:Ey,preloadedFeatures:n,useRender:ky(t),createVisualElement:r,Component:e}}function xt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const op=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Gi(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const My=e=>t=>op(t)&&e(t,Gi(t));function wt(e,t,n,r){return xt(e,t,My(n),r)}const Ry=(e,t)=>n=>t(e(n)),Kt=(...e)=>e.reduce(Ry);function lp(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Tc=lp("dragHorizontal"),jc=lp("dragVertical");function ap(e){let t=!1;if(e==="y")t=jc();else if(e==="x")t=Tc();else{const n=Tc(),r=jc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function up(){const e=ap(!0);return e?(e(),!1):!0}class en{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),s=(i,o)=>{if(i.pointerType==="touch"||up())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Z.update(()=>l[r](i,o))};return wt(e.current,n,s,{passive:!e.getProps()[r]})}class Ay extends en{mount(){this.unmount=Kt(Pc(this.node,!0),Pc(this.node,!1))}unmount(){}}class Dy extends en{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=Kt(xt(this.node.current,"focus",()=>this.onFocus()),xt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cp=(e,t)=>t?e===t?!0:cp(e,t.parentElement):!1;function Co(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Gi(n))}class Vy extends en{constructor(){super(...arguments),this.removeStartListeners=ce,this.removeEndListeners=ce,this.removeAccessibleListeners=ce,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=wt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Z.update(()=>{!f&&!cp(this.node.current,l.target)?d&&d(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),o=wt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Kt(i,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||Co("up",(a,u)=>{const{onTap:d}=this.node.getProps();d&&Z.update(()=>d(a,u))})};this.removeEndListeners(),this.removeEndListeners=xt(this.node.current,"keyup",o),Co("down",(l,a)=>{this.startPress(l,a)})},n=xt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Co("cancel",(i,o)=>this.cancelPress(i,o))},s=xt(this.node.current,"blur",r);this.removeAccessibleListeners=Kt(n,s)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!up()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=wt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=xt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Kt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ll=new WeakMap,To=new WeakMap,_y=e=>{const t=Ll.get(e.target);t&&t(e)},Oy=e=>{e.forEach(_y)};function Iy({root:e,...t}){const n=e||document;To.has(n)||To.set(n,{});const r=To.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Oy,{root:e,...t})),r[s]}function Fy(e,t,n){const r=Iy(t);return Ll.set(e,n),r.observe(e),()=>{Ll.delete(e),r.unobserve(e)}}const zy={some:0,all:1};class By extends en{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:zy[s]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(a)};return Fy(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Uy(t,n))&&this.startObserver()}unmount(){}}function Uy({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $y={inView:{Feature:By},tap:{Feature:Vy},focus:{Feature:Dy},hover:{Feature:Ay}};function dp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Hy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Yi(e,t,n){const r=e.getProps();return Xa(r,t,n!==void 0?n:r.custom,Wy(e),Hy(e))}let Za=ce;const pn=e=>e*1e3,St=e=>e/1e3,Ky={current:!1},fp=e=>Array.isArray(e)&&typeof e[0]=="number";function hp(e){return!!(!e||typeof e=="string"&&pp[e]||fp(e)||Array.isArray(e)&&e.every(hp))}const kr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kr([0,.65,.55,1]),circOut:kr([.55,0,1,.45]),backIn:kr([.31,.01,.66,-.59]),backOut:kr([.33,1.53,.69,.99])};function mp(e){if(e)return fp(e)?kr(e):Array.isArray(e)?e.map(mp):pp[e]}function Qy(e,t,n,{delay:r=0,duration:s,repeat:i=0,repeatType:o="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const d=mp(l);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}function Gy(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const gp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yy=1e-7,Xy=12;function Zy(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=gp(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Yy&&++l<Xy);return o}function as(e,t,n,r){if(e===t&&n===r)return ce;const s=i=>Zy(i,0,1,e,n);return i=>i===0||i===1?i:gp(s(i),t,r)}const qy=as(.42,0,1,1),Jy=as(0,0,.58,1),yp=as(.42,0,.58,1),ev=e=>Array.isArray(e)&&typeof e[0]!="number",vp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xp=e=>t=>1-e(1-t),qa=e=>1-Math.sin(Math.acos(e)),kp=xp(qa),tv=vp(qa),wp=as(.33,1.53,.69,.99),Ja=xp(wp),nv=vp(Ja),rv=e=>(e*=2)<1?.5*Ja(e):.5*(2-Math.pow(2,-10*(e-1))),sv={linear:ce,easeIn:qy,easeInOut:yp,easeOut:Jy,circIn:qa,circInOut:tv,circOut:kp,backIn:Ja,backInOut:nv,backOut:wp,anticipate:rv},bc=e=>{if(Array.isArray(e)){Za(e.length===4);const[t,n,r,s]=e;return as(t,n,r,s)}else if(typeof e=="string")return sv[e];return e},eu=(e,t)=>n=>!!(os(n)&&oy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Sp=(e,t,n)=>r=>{if(!os(r))return r;const[s,i,o,l]=r.match(Qi);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},iv=e=>Yt(0,255,e),jo={...Nn,transform:e=>Math.round(iv(e))},dn={test:eu("rgb","red"),parse:Sp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jo.transform(e)+", "+jo.transform(t)+", "+jo.transform(n)+", "+Mr(Lr.transform(r))+")"};function ov(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Ml={test:eu("#"),parse:ov,transform:dn.transform},In={test:eu("hsl","hue"),parse:Sp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pt.transform(Mr(t))+", "+pt.transform(Mr(n))+", "+Mr(Lr.transform(r))+")"},Ee={test:e=>dn.test(e)||Ml.test(e)||In.test(e),parse:e=>dn.test(e)?dn.parse(e):In.test(e)?In.parse(e):Ml.parse(e),transform:e=>os(e)?e:e.hasOwnProperty("red")?dn.transform(e):In.transform(e)},se=(e,t,n)=>-n*e+n*t+e;function Po(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lv({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;s=Po(a,l,e+1/3),i=Po(a,l,e),o=Po(a,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}const bo=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},av=[Ml,dn,In],uv=e=>av.find(t=>t.test(e));function Ec(e){const t=uv(e);let n=t.parse(e);return t===In&&(n=lv(n)),n}const Np=(e,t)=>{const n=Ec(e),r=Ec(t),s={...n};return i=>(s.red=bo(n.red,r.red,i),s.green=bo(n.green,r.green,i),s.blue=bo(n.blue,r.blue,i),s.alpha=se(n.alpha,r.alpha,i),dn.transform(s))};function cv(e){var t,n;return isNaN(e)&&os(e)&&(((t=e.match(Qi))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Yh))===null||n===void 0?void 0:n.length)||0)>0}const Cp={regex:sy,countKey:"Vars",token:"${v}",parse:ce},Tp={regex:Yh,countKey:"Colors",token:"${c}",parse:Ee.parse},jp={regex:Qi,countKey:"Numbers",token:"${n}",parse:Nn.parse};function Eo(e,{regex:t,countKey:n,token:r,parse:s}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(s)))}function wi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Eo(n,Cp),Eo(n,Tp),Eo(n,jp),n}function Pp(e){return wi(e).values}function bp(e){const{values:t,numColors:n,numVars:r,tokenised:s}=wi(e),i=t.length;return o=>{let l=s;for(let a=0;a<i;a++)a<r?l=l.replace(Cp.token,o[a]):a<r+n?l=l.replace(Tp.token,Ee.transform(o[a])):l=l.replace(jp.token,Mr(o[a]));return l}}const dv=e=>typeof e=="number"?0:e;function fv(e){const t=Pp(e);return bp(e)(t.map(dv))}const Xt={test:cv,parse:Pp,createTransformer:bp,getAnimatableNone:fv},Ep=(e,t)=>n=>`${n>0?t:e}`;function Lp(e,t){return typeof e=="number"?n=>se(e,t,n):Ee.test(e)?Np(e,t):e.startsWith("var(")?Ep(e,t):Rp(e,t)}const Mp=(e,t)=>{const n=[...e],r=n.length,s=e.map((i,o)=>Lp(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}},hv=(e,t)=>{const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Lp(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}},Rp=(e,t)=>{const n=Xt.createTransformer(t),r=wi(e),s=wi(t);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Kt(Mp(r.values,s.values),n):Ep(e,t)},Jr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Lc=(e,t)=>n=>se(e,t,n);function pv(e){return typeof e=="number"?Lc:typeof e=="string"?Ee.test(e)?Np:Rp:Array.isArray(e)?Mp:typeof e=="object"?hv:Lc}function mv(e,t,n){const r=[],s=n||pv(e[0]),i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||ce:t;l=Kt(a,l)}r.push(l)}return r}function Ap(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Za(i===t.length),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=mv(t,r,s),l=o.length,a=u=>{let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Jr(e[d],e[d+1],u);return o[d](f)};return n?u=>a(Yt(e[0],e[i-1],u)):a}function gv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Jr(0,t,r);e.push(se(n,1,s))}}function yv(e){const t=[0];return gv(t,e.length-1),t}function vv(e,t){return e.map(n=>n*t)}function xv(e,t){return e.map(()=>t||yp).splice(0,e.length-1)}function Si({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=ev(r)?r.map(bc):bc(r),i={done:!1,value:t[0]},o=vv(n&&n.length===t.length?n:yv(t),e),l=Ap(o,t,{ease:Array.isArray(s)?s:xv(t,s)});return{calculatedDuration:e,next:a=>(i.value=l(a),i.done=a>=e,i)}}function Dp(e,t){return t?e*(1e3/t):0}const kv=5;function Vp(e,t,n){const r=Math.max(t-kv,0);return Dp(n-e(r),t-r)}const Lo=.001,wv=.01,Sv=10,Nv=.05,Cv=1;function Tv({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,i,o=1-t;o=Yt(Nv,Cv,o),e=Yt(wv,Sv,St(e)),o<1?(s=u=>{const d=u*o,f=d*e,h=d-n,g=Rl(u,o),v=Math.exp(-f);return Lo-h/g*v},i=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-f),x=Rl(Math.pow(u,2),o);return(-s(u)+Lo>0?-1:1)*((h-g)*v)/x}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Lo+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,a=Pv(s,i,l);if(e=pn(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const jv=12;function Pv(e,t,n){let r=n;for(let s=1;s<jv;s++)r=r-e(r)/t(r);return r}function Rl(e,t){return e*Math.sqrt(1-t*t)}const bv=["duration","bounce"],Ev=["stiffness","damping","mass"];function Mc(e,t){return t.some(n=>e[n]!==void 0)}function Lv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mc(e,Ev)&&Mc(e,bv)){const n=Tv(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function _p({keyframes:e,restDelta:t,restSpeed:n,...r}){const s=e[0],i=e[e.length-1],o={done:!1,value:s},{stiffness:l,damping:a,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Lv({...r,velocity:-St(r.velocity||0)}),g=f||0,v=a/(2*Math.sqrt(l*u)),x=i-s,C=St(Math.sqrt(l/u)),y=Math.abs(x)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let p;if(v<1){const m=Rl(C,v);p=k=>{const N=Math.exp(-v*C*k);return i-N*((g+v*C*x)/m*Math.sin(m*k)+x*Math.cos(m*k))}}else if(v===1)p=m=>i-Math.exp(-C*m)*(x+(g+C*x)*m);else{const m=C*Math.sqrt(v*v-1);p=k=>{const N=Math.exp(-v*C*k),T=Math.min(m*k,300);return i-N*((g+v*C*x)*Math.sinh(T)+m*x*Math.cosh(T))/m}}return{calculatedDuration:h&&d||null,next:m=>{const k=p(m);if(h)o.done=m>=d;else{let N=g;m!==0&&(v<1?N=Vp(p,m,k):N=0);const T=Math.abs(N)<=n,P=Math.abs(i-k)<=t;o.done=T&&P}return o.value=o.done?i:k,o}}}function Rc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=j=>l!==void 0&&j<l||a!==void 0&&j>a,v=j=>l===void 0?a:a===void 0||Math.abs(l-j)<Math.abs(a-j)?l:a;let x=n*t;const C=f+x,y=o===void 0?C:o(C);y!==C&&(x=y-f);const p=j=>-x*Math.exp(-j/r),m=j=>y+p(j),k=j=>{const L=p(j),V=m(j);h.done=Math.abs(L)<=u,h.value=h.done?y:V};let N,T;const P=j=>{g(h.value)&&(N=j,T=_p({keyframes:[h.value,v(h.value)],velocity:Vp(m,j,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:j=>{let L=!1;return!T&&N===void 0&&(L=!0,k(j),P(j)),N!==void 0&&j>N?T.next(j-N):(!L&&k(j),h)}}}const Mv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>Pt(t),now:()=>je.isProcessing?je.timestamp:performance.now()}},Ac=2e4;function Dc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ac;)t+=n,r=e.next(t);return t>=Ac?1/0:t}const Rv={decay:Rc,inertia:Rc,tween:Si,keyframes:Si,spring:_p};function Ni({autoplay:e=!0,delay:t=0,driver:n=Mv,keyframes:r,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:d,onUpdate:f,...h}){let g=1,v=!1,x,C;const y=()=>{C=new Promise(A=>{x=A})};y();let p;const m=Rv[s]||Si;let k;m!==Si&&typeof r[0]!="number"&&(k=Ap([0,100],r,{clamp:!1}),r=[0,100]);const N=m({...h,keyframes:r});let T;l==="mirror"&&(T=m({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let P="idle",j=null,L=null,V=null;N.calculatedDuration===null&&i&&(N.calculatedDuration=Dc(N));const{calculatedDuration:W}=N;let G=1/0,te=1/0;W!==null&&(G=W+o,te=G*(i+1)-o);let ne=0;const ze=A=>{if(L===null)return;g>0&&(L=Math.min(L,A)),g<0&&(L=Math.min(A-te/g,L)),j!==null?ne=j:ne=Math.round(A-L)*g;const O=ne-t*(g>=0?1:-1),w=g>=0?O<0:O>te;ne=Math.max(O,0),P==="finished"&&j===null&&(ne=te);let M=ne,U=N;if(i){const Q=Math.min(ne,te)/G;let Ne=Math.floor(Q),ye=Q%1;!ye&&Q>=1&&(ye=1),ye===1&&Ne--,Ne=Math.min(Ne,i+1),!!(Ne%2)&&(l==="reverse"?(ye=1-ye,o&&(ye-=o/G)):l==="mirror"&&(U=T)),M=Yt(0,1,ye)*G}const z=w?{done:!1,value:r[0]}:U.next(M);k&&(z.value=k(z.value));let{done:F}=z;!w&&W!==null&&(F=g>=0?ne>=te:ne<=0);const B=j===null&&(P==="finished"||P==="running"&&F);return f&&f(z.value),B&&R(),z},H=()=>{p&&p.stop(),p=void 0},Se=()=>{P="idle",H(),x(),y(),L=V=null},R=()=>{P="finished",d&&d(),H(),x()},_=()=>{if(v)return;p||(p=n(ze));const A=p.now();a&&a(),j!==null?L=A-j:(!L||P==="finished")&&(L=A),P==="finished"&&y(),V=L,j=null,P="running",p.start()};e&&_();const E={then(A,O){return C.then(A,O)},get time(){return St(ne)},set time(A){A=pn(A),ne=A,j!==null||!p||g===0?j=A:L=p.now()-A/g},get duration(){const A=N.calculatedDuration===null?Dc(N):N.calculatedDuration;return St(A)},get speed(){return g},set speed(A){A===g||!p||(g=A,E.time=St(ne))},get state(){return P},play:_,pause:()=>{P="paused",j=ne},stop:()=>{v=!0,P!=="idle"&&(P="idle",u&&u(),Se())},cancel:()=>{V!==null&&ze(V),Se()},complete:()=>{P="finished"},sample:A=>(L=0,ze(A))};return E}function Av(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dv=Av(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Vv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ms=10,_v=2e4,Ov=(e,t)=>t.type==="spring"||e==="backgroundColor"||!hp(t.ease);function Iv(e,t,{onUpdate:n,onComplete:r,...s}){if(!(Dv()&&Vv.has(t)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let o=!1,l,a,u=!1;const d=()=>{a=new Promise(m=>{l=m})};d();let{keyframes:f,duration:h=300,ease:g,times:v}=s;if(Ov(t,s)){const m=Ni({...s,repeat:0,delay:0});let k={done:!1,value:f[0]};const N=[];let T=0;for(;!k.done&&T<_v;)k=m.sample(T),N.push(k.value),T+=Ms;v=void 0,f=N,h=T-Ms,g="linear"}const x=Qy(e.owner.current,t,f,{...s,duration:h,ease:g,times:v}),C=()=>{u=!1,x.cancel()},y=()=>{u=!0,Z.update(C),l(),d()};return x.onfinish=()=>{u||(e.set(Gy(f,s)),r&&r(),y())},{then(m,k){return a.then(m,k)},attachTimeline(m){return x.timeline=m,x.onfinish=null,ce},get time(){return St(x.currentTime||0)},set time(m){x.currentTime=pn(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return St(h)},play:()=>{o||(x.play(),Pt(C))},pause:()=>x.pause(),stop:()=>{if(o=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const k=Ni({...s,autoplay:!1});e.setWithVelocity(k.sample(m-Ms).value,k.sample(m).value,Ms)}y()},complete:()=>{u||x.finish()},cancel:y}}function Fv({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ce,pause:ce,stop:ce,then:i=>(i(),Promise.resolve()),cancel:ce,complete:ce});return t?Ni({keyframes:[0,1],duration:0,delay:t,onComplete:s}):s()}const zv={type:"spring",stiffness:500,damping:25,restSpeed:10},Bv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Uv={type:"keyframes",duration:.8},$v={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wv=(e,{keyframes:t})=>t.length>2?Uv:Sn.has(e)?e.startsWith("scale")?Bv(t[1]):zv:$v,Al=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xt.test(t)||t==="0")&&!t.startsWith("url(")),Hv=new Set(["brightness","contrast","saturate","opacity"]);function Kv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qi)||[];if(!r)return e;const s=n.replace(r,"");let i=Hv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Qv=/([a-z-]*)\(.*?\)/g,Dl={...Xt,getAnimatableNone:e=>{const t=e.match(Qv);return t?t.map(Kv).join(" "):e}},Gv={...Xh,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:Dl,WebkitFilter:Dl},tu=e=>Gv[e];function Op(e,t){let n=tu(e);return n!==Dl&&(n=Xt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ip=e=>/^0[^.\s]+$/.test(e);function Yv(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ip(e)}function Xv(e,t,n,r){const s=Al(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const o=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<i.length;u++)i[u]===null&&(i[u]=u===0?o:i[u-1]),Yv(i[u])&&a.push(u),typeof i[u]=="string"&&i[u]!=="none"&&i[u]!=="0"&&(l=i[u]);if(s&&a.length&&l)for(let u=0;u<a.length;u++){const d=a[u];i[d]=Op(t,l)}return i}function Zv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:a,elapsed:u,...d}){return!!Object.keys(d).length}function nu(e,t){return e[t]||e.default||e}const qv={skipAnimations:!1},ru=(e,t,n,r={})=>s=>{const i=nu(r,e)||{},o=i.delay||r.delay||0;let{elapsed:l=0}=r;l=l-pn(o);const a=Xv(t,e,n,i),u=a[0],d=a[a.length-1],f=Al(e,u),h=Al(e,d);let g={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-l,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(Zv(i)||(g={...g,...Wv(e,g)}),g.duration&&(g.duration=pn(g.duration)),g.repeatDelay&&(g.repeatDelay=pn(g.repeatDelay)),!f||!h||Ky.current||i.type===!1||qv.skipAnimations)return Fv(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=Iv(t,e,g);if(v)return v}return Ni(g)};function Ci(e){return!!(Fe(e)&&e.add)}const Fp=e=>/^\-?\d*\.?\d+$/.test(e);function su(e,t){e.indexOf(t)===-1&&e.push(t)}function iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(t){return su(this.subscriptions,t),()=>iu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jv=e=>!isNaN(parseFloat(e));class ex{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:o}=je;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Jv(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ou);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Dp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,t){return new ex(e,t)}const zp=e=>t=>t.test(e),tx={test:e=>e==="auto",parse:e=>e},Bp=[Nn,I,pt,Lt,ay,ly,tx],hr=e=>Bp.find(zp(e)),nx=[...Bp,Ee,Xt],rx=e=>nx.find(zp(e));function sx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function ix(e,t){const n=Yi(e,t);let{transitionEnd:r={},transition:s={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const o in i){const l=Sy(i[o]);sx(e,o,l)}}function ox(e,t,n){var r,s;const i=Object.keys(t).filter(l=>!e.hasValue(l)),o=i.length;if(o)for(let l=0;l<o;l++){const a=i[l],u=t[a];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(s=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&s!==void 0?s:t[a]),d!=null&&(typeof d=="string"&&(Fp(d)||Ip(d))?d=parseFloat(d):!rx(d)&&Xt.test(u)&&(d=Op(a,u)),e.addValue(a,er(d,{owner:e})),n[a]===void 0&&(n[a]=d),d!==null&&e.setBaseTarget(a,d))}}function lx(e,t){return t?(t[e]||t.default||t).from:void 0}function ax(e,t,n){const r={};for(const s in e){const i=lx(s,t);if(i!==void 0)r[s]=i;else{const o=n.getValue(s);o&&(r[s]=o.get())}}return r}function ux({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cx(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Up(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(i=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in l){const h=e.getValue(f),g=l[f];if(!h||g===void 0||d&&ux(d,f))continue;const v={delay:n,elapsed:0,...nu(i||{},f)};if(window.HandoffAppearAnimations){const y=e.getProps()[$h];if(y){const p=window.HandoffAppearAnimations(y,f,h,Z);p!==null&&(v.elapsed=p,v.isHandoff=!0)}}let x=!v.isHandoff&&!cx(h,g);if(v.type==="spring"&&(h.getVelocity()||v.velocity)&&(x=!1),h.animation&&(x=!1),x)continue;h.start(ru(f,h,g,e.shouldReduceMotion&&Sn.has(f)?{type:!1}:v));const C=h.animation;Ci(a)&&(a.add(f),C.then(()=>a.remove(f))),u.push(C)}return o&&Promise.all(u).then(()=>{o&&ix(e,o)}),u}function Vl(e,t,n={}){const r=Yi(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Up(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return dx(e,t,u+a,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[a,u]=l==="beforeChildren"?[i,o]:[o,i];return a().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function dx(e,t,n=0,r=0,s=1,i){const o=[],l=(e.variantChildren.size-1)*r,a=s===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(fx).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Vl(u,t,{...i,delay:n+a(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function fx(e,t){return e.sortNodePosition(t)}function hx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Vl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Vl(e,t,n);else{const s=typeof t=="function"?Yi(e,t,n.custom):t;r=Promise.all(Up(e,s,n))}return r.then(()=>e.notify("AnimationComplete",t))}const px=[...Ba].reverse(),mx=Ba.length;function gx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hx(e,n,r)))}function yx(e){let t=gx(e);const n=xx();let r=!0;const s=(a,u)=>{const d=Yi(e,u);if(d){const{transition:f,transitionEnd:h,...g}=d;a={...a,...g,...h}}return a};function i(a){t=a(e)}function o(a,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},h=[],g=new Set;let v={},x=1/0;for(let y=0;y<mx;y++){const p=px[y],m=n[p],k=d[p]!==void 0?d[p]:f[p],N=Zr(k),T=p===u?m.isActive:null;T===!1&&(x=y);let P=k===f[p]&&k!==d[p]&&N;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...v},!m.isActive&&T===null||!k&&!m.prevProp||Hi(k)||typeof k=="boolean")continue;let L=vx(m.prevProp,k)||p===u&&m.isActive&&!P&&N||y>x&&N,V=!1;const W=Array.isArray(k)?k:[k];let G=W.reduce(s,{});T===!1&&(G={});const{prevResolvedValues:te={}}=m,ne={...te,...G},ze=H=>{L=!0,g.has(H)&&(V=!0,g.delete(H)),m.needsAnimating[H]=!0};for(const H in ne){const Se=G[H],R=te[H];if(v.hasOwnProperty(H))continue;let _=!1;ki(Se)&&ki(R)?_=!dp(Se,R):_=Se!==R,_?Se!==void 0?ze(H):g.add(H):Se!==void 0&&g.has(H)?ze(H):m.protectedKeys[H]=!0}m.prevProp=k,m.prevResolvedValues=G,m.isActive&&(v={...v,...G}),r&&e.blockInitialAnimation&&(L=!1),L&&(!P||V)&&h.push(...W.map(H=>({animation:H,options:{type:p,...a}})))}if(g.size){const y={};g.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(y[p]=m)}),h.push({animation:y})}let C=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(h):Promise.resolve()}function l(a,u,d){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(g=>{var v;return(v=g.animationState)===null||v===void 0?void 0:v.setActive(a,u)}),n[a].isActive=u;const h=o(d,a);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n}}function vx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dp(t,e):!1}function tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xx(){return{animate:tn(!0),whileInView:tn(),whileHover:tn(),whileTap:tn(),whileDrag:tn(),whileFocus:tn(),exit:tn()}}class kx extends en{constructor(t){super(t),t.animationState||(t.animationState=yx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Hi(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let wx=0;class Sx extends en{constructor(){super(...arguments),this.id=wx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nx={animation:{Feature:kx},exit:{Feature:Sx}},Vc=(e,t)=>Math.abs(e-t);function Cx(e,t){const n=Vc(e.x,t.x),r=Vc(e.y,t.y);return Math.sqrt(n**2+r**2)}class $p{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ro(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=Cx(f.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:v}=f,{timestamp:x}=je;this.history.push({...v,timestamp:x});const{onStart:C,onMove:y}=this.handlers;h||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Mo(h,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ro(f.type==="pointercancel"?this.lastMoveEventInfo:Mo(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,C),v&&v(f,C)},!op(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Gi(t),l=Mo(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=je;this.history=[{...a,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Ro(l,this.history)),this.removeListeners=Kt(wt(this.contextWindow,"pointermove",this.handlePointerMove),wt(this.contextWindow,"pointerup",this.handlePointerUp),wt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pt(this.updatePoint)}}function Mo(e,t){return t?{point:t(e.point)}:e}function _c(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ro({point:e},t){return{point:e,delta:_c(e,Wp(t)),offset:_c(e,Tx(t)),velocity:jx(t,.1)}}function Tx(e){return e[0]}function Wp(e){return e[e.length-1]}function jx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Wp(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>pn(t)));)n--;if(!r)return{x:0,y:0};const i=St(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function He(e){return e.max-e.min}function _l(e,t=0,n=.01){return Math.abs(e-t)<=n}function Oc(e,t,n,r=.5){e.origin=r,e.originPoint=se(t.min,t.max,e.origin),e.scale=He(n)/He(t),(_l(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(_l(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Rr(e,t,n,r){Oc(e.x,t.x,n.x,r?r.originX:void 0),Oc(e.y,t.y,n.y,r?r.originY:void 0)}function Ic(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function Px(e,t,n){Ic(e.x,t.x,n.x),Ic(e.y,t.y,n.y)}function Fc(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function Ar(e,t,n){Fc(e.x,t.x,n.x),Fc(e.y,t.y,n.y)}function bx(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?se(n,e,r.max):Math.min(e,n)),e}function zc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ex(e,{top:t,left:n,bottom:r,right:s}){return{x:zc(e.x,n,s),y:zc(e.y,t,r)}}function Bc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Lx(e,t){return{x:Bc(e.x,t.x),y:Bc(e.y,t.y)}}function Mx(e,t){let n=.5;const r=He(e),s=He(t);return s>r?n=Jr(t.min,t.max-r,e.min):r>s&&(n=Jr(e.min,e.max-s,t.min)),Yt(0,1,n)}function Rx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ol=.35;function Ax(e=Ol){return e===!1?e=0:e===!0&&(e=Ol),{x:Uc(e,"left","right"),y:Uc(e,"top","bottom")}}function Uc(e,t,n){return{min:$c(e,t),max:$c(e,n)}}function $c(e,t){return typeof e=="number"?e:e[t]||0}const Wc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fn=()=>({x:Wc(),y:Wc()}),Hc=()=>({min:0,max:0}),de=()=>({x:Hc(),y:Hc()});function Ye(e){return[e("x"),e("y")]}function Hp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Dx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ao(e){return e===void 0||e===1}function Il({scale:e,scaleX:t,scaleY:n}){return!Ao(e)||!Ao(t)||!Ao(n)}function sn(e){return Il(e)||Kp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Kp(e){return Kc(e.x)||Kc(e.y)}function Kc(e){return e&&e!=="0%"}function Ti(e,t,n){const r=e-n,s=t*r;return n+s}function Qc(e,t,n,r,s){return s!==void 0&&(e=Ti(e,s,r)),Ti(e,n,r)+t}function Fl(e,t=0,n=1,r,s){e.min=Qc(e.min,t,n,r,s),e.max=Qc(e.max,t,n,r,s)}function Qp(e,{x:t,y:n}){Fl(e.x,t.translate,t.scale,t.originPoint),Fl(e.y,n.translate,n.scale,n.originPoint)}function _x(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const a=i.instance;a&&a.style&&a.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&zn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Qp(e,o)),r&&sn(i.latestValues)&&zn(e,i.latestValues))}t.x=Gc(t.x),t.y=Gc(t.y)}function Gc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function At(e,t){e.min=e.min+t,e.max=e.max+t}function Yc(e,t,[n,r,s]){const i=t[s]!==void 0?t[s]:.5,o=se(e.min,e.max,i);Fl(e,t[n],t[r],o,t.scale)}const Ox=["x","scaleX","originX"],Ix=["y","scaleY","originY"];function zn(e,t){Yc(e.x,t,Ox),Yc(e.y,t,Ix)}function Gp(e,t){return Hp(Vx(e.getBoundingClientRect(),t))}function Fx(e,t,n){const r=Gp(e,n),{scroll:s}=t;return s&&(At(r.x,s.offset.x),At(r.y,s.offset.y)),r}const Yp=({current:e})=>e?e.ownerDocument.defaultView:null,zx=new WeakMap;class Bx{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gi(d,"page").point)},i=(d,f)=>{const{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ap(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ye(C=>{let y=this.getAxisMotionValue(C).get()||0;if(pt.test(y)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[C];m&&(y=He(m)*(parseFloat(y)/100))}}this.originPoint[C]=y}),v&&Z.update(()=>v(d,f),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:C}=f;if(g&&this.currentDirection===null){this.currentDirection=Ux(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),x&&x(d,f)},l=(d,f)=>this.stop(d,f),a=()=>Ye(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new $p(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Yp(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Z.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Rs(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=bx(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&On(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Ex(s.layoutBox,n):this.constraints=!1,this.elastic=Ax(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Ye(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=Rx(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!On(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Fx(r,s.root,this.visualElement.getTransformPagePoint());let o=Lx(s.layout.layoutBox,i);if(n){const l=n(Dx(o));this.hasMutatedConstraints=!!l,l&&(o=Hp(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Ye(d=>{if(!Rs(d,n,this.currentDirection))return;let f=a&&a[d]||{};o&&(f={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ru(t,r,0,n))}stopAnimation(){Ye(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ye(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ye(n=>{const{drag:r}=this.getProps();if(!Rs(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[n];i.set(t[n]-se(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!On(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Ye(o=>{const l=this.getAxisMotionValue(o);if(l){const a=l.get();s[o]=Mx({min:a,max:a},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ye(o=>{if(!Rs(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(se(a,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;zx.set(this.visualElement,this);const t=this.visualElement.current,n=wt(t,"pointerdown",a=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();On(a)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const o=xt(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ye(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=a[d].translate,f.set(f.get()+a[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Ol,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Rs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ux(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $x extends en{constructor(t){super(t),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new Bx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xc=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class Wx extends en{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(t){this.session=new $p(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Xc(t),onStart:Xc(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Z.update(()=>s(i,o))}}}mount(){this.removePointerDownListener=wt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Hx(){const e=S.useContext($i);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,s=S.useId();return S.useEffect(()=>r(s),[]),!t&&n?[!1,()=>n&&n(s)]:[!0]}const Qs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=Zc(e,t.target.x),r=Zc(e,t.target.y);return`${n}% ${r}%`}},Kx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Xt.parse(e);if(s.length>5)return r;const i=Xt.createTransformer(e),o=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;s[0+o]/=l,s[1+o]/=a;const u=se(l,a,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}};class Qx extends _d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;ey(Gx),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Z.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xp(e){const[t,n]=Hx(),r=S.useContext($a);return _d.createElement(Qx,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Hh),isPresent:t,safeToRemove:n})}const Gx={borderRadius:{...pr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pr,borderTopRightRadius:pr,borderBottomLeftRadius:pr,borderBottomRightRadius:pr,boxShadow:Kx},Zp=["TopLeft","TopRight","BottomLeft","BottomRight"],Yx=Zp.length,qc=e=>typeof e=="string"?parseFloat(e):e,Jc=e=>typeof e=="number"||I.test(e);function Xx(e,t,n,r,s,i){s?(e.opacity=se(0,n.opacity!==void 0?n.opacity:1,Zx(r)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,qx(r))):i&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Yx;o++){const l=`border${Zp[o]}Radius`;let a=ed(t,l),u=ed(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Jc(a)===Jc(u)?(e[l]=Math.max(se(qc(a),qc(u),r),0),(pt.test(u)||pt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=se(t.rotate||0,n.rotate||0,r))}function ed(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Zx=qp(0,.5,kp),qx=qp(.5,.95,ce);function qp(e,t,n){return r=>r<e?0:r>t?1:n(Jr(e,t,r))}function td(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){td(e.x,t.x),td(e.y,t.y)}function nd(e,t,n,r,s){return e-=t,e=Ti(e,1/n,r),s!==void 0&&(e=Ti(e,1/s,r)),e}function Jx(e,t=0,n=1,r=.5,s,i=e,o=e){if(pt.test(t)&&(t=parseFloat(t),t=se(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=se(i.min,i.max,r);e===i&&(l-=t),e.min=nd(e.min,t,n,l,s),e.max=nd(e.max,t,n,l,s)}function rd(e,t,[n,r,s],i,o){Jx(e,t[n],t[r],t[s],t.scale,i,o)}const e1=["x","scaleX","originX"],t1=["y","scaleY","originY"];function sd(e,t,n,r){rd(e.x,t,e1,n?n.x:void 0,r?r.x:void 0),rd(e.y,t,t1,n?n.y:void 0,r?r.y:void 0)}function id(e){return e.translate===0&&e.scale===1}function Jp(e){return id(e.x)&&id(e.y)}function n1(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function em(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function od(e){return He(e.x)/He(e.y)}class r1{constructor(){this.members=[]}add(t){su(this.members,t),t.scheduleRender()}remove(t){if(iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ld(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y;if((s||i)&&(r=`translate3d(${s}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:d}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const s1=(e,t)=>e.depth-t.depth;class i1{constructor(){this.children=[],this.isDirty=!1}add(t){su(this.children,t),this.isDirty=!0}remove(t){iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s1),this.isDirty=!1,this.children.forEach(t)}}function o1(e,t){const n=performance.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Pt(r),e(i-t))};return Z.read(r,!0),()=>Pt(r)}function l1(e){window.MotionDebug&&window.MotionDebug.record(e)}function a1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function u1(e,t,n){const r=Fe(e)?e:er(e);return r.start(ru("",r,t,n)),r.animation}const ad=["","X","Y","Z"],c1={visibility:"hidden"},ud=1e3;let d1=0;const on={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=d1++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,on.totalNodes=on.resolvedTargetDeltas=on.recalculatedProjection=0,this.nodes.forEach(p1),this.nodes.forEach(x1),this.nodes.forEach(k1),this.nodes.forEach(m1),l1(on)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new i1)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ou),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const a=this.eventHandlers.get(o);a&&a.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=a1(o),this.instance=o;const{layoutId:a,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=o1(h,250),Qs.hasAnimatedSinceResize&&(Qs.hasAnimatedSinceResize=!1,this.nodes.forEach(dd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||T1,{onLayoutAnimationStart:C,onLayoutAnimationComplete:y}=d.getProps(),p=!this.targetLayout||!em(this.targetLayout,v)||g,m=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const k={...nu(x,"layout"),onPlay:C,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else h||dd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pt(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(w1),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cd);return}this.isUpdating||this.nodes.forEach(y1),this.isUpdating=!1,this.nodes.forEach(v1),this.nodes.forEach(f1),this.nodes.forEach(h1),this.clearAllSnapshots();const l=performance.now();je.delta=Yt(0,1e3/60,l-je.timestamp),je.timestamp=l,je.isProcessing=!0,No.update.process(je),No.preRender.process(je),No.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(g1),this.sharedNodes.forEach(S1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=de(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Jp(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||sn(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return o&&(a=this.removeTransform(a)),j1(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return de();const l=o.measureViewportBox(),{scroll:a}=this.root;return a&&(At(l.x,a.offset.x),At(l.y,a.offset.y)),l}removeElementScroll(o){const l=de();Ge(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){Ge(l,o);const{scroll:h}=this.root;h&&(At(l.x,-h.offset.x),At(l.y,-h.offset.y))}At(l.x,d.offset.x),At(l.y,d.offset.y)}}return l}applyTransform(o,l=!1){const a=de();Ge(a,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&zn(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sn(d.latestValues)&&zn(a,d.latestValues)}return sn(this.latestValues)&&zn(a,this.latestValues),a}removeTransform(o){const l=de();Ge(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!sn(u.latestValues))continue;Il(u.latestValues)&&u.updateSnapshot();const d=de(),f=u.measurePageBox();Ge(d,f),sd(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return sn(this.latestValues)&&sd(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=de(),this.relativeTargetOrigin=de(),Ar(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=de(),this.targetWithTransforms=de()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Px(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),Qp(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=de(),this.relativeTargetOrigin=de(),Ar(this.relativeTargetOrigin,this.target,g.target),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}on.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Il(this.parent.latestValues)||Kp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===je.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;Ge(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;_x(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:v}=l;if(!v){this.projectionTransform&&(this.projectionDelta=Fn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Fn(),this.projectionDeltaWithTransform=Fn());const x=this.projectionTransform;Rr(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=ld(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),on.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},d={...this.latestValues},f=Fn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=de(),g=a?a.source:void 0,v=this.layout?this.layout.source:void 0,x=g!==v,C=this.getStack(),y=!C||C.members.length<=1,p=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(C1));this.animationProgress=0;let m;this.mixTargetDelta=k=>{const N=k/1e3;fd(f.x,o.x,N),fd(f.y,o.y,N),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ar(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),N1(this.relativeTarget,this.relativeTargetOrigin,h,N),m&&n1(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=de()),Ge(m,this.relativeTarget)),x&&(this.animationValues=d,Xx(d,u,this.latestValues,N,p,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Qs.hasAnimatedSinceResize=!0,this.currentAnimation=u1(0,ud,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ud),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:d}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&nm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||de();const f=He(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+f;const h=He(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+h}Ge(l,a),zn(l,d),Rr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new r1),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let d=0;d<ad.length;d++){const f="rotate"+ad[d];a[f]&&(u[f]=a[f],o.setStaticValue(f,0))}o.render();for(const d in u)o.setStaticValue(d,u[d]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return c1;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ks(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ks(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!sn(this.latestValues)&&(x.transform=d?d({},""):"none",this.hasProjected=!1),x}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=ld(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const x in vi){if(h[x]===void 0)continue;const{correct:C,applyTo:y}=vi[x],p=u.transform==="none"?h[x]:C(h[x],f);if(y){const m=y.length;for(let k=0;k<m;k++)u[y[k]]=p}else u[x]=p}return this.options.layoutId&&(u.pointerEvents=f===this?Ks(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(cd),this.root.sharedNodes.clear()}}}function f1(e){e.updateLayout()}function h1(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Ye(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=He(h);h.min=r[f].min,h.max=h.min+g}):nm(i,n.layoutBox,r)&&Ye(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=He(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Fn();Rr(l,r,n.layoutBox);const a=Fn();o?Rr(a,e.applyTransform(s,!0),n.measuredBox):Rr(a,r,n.layoutBox);const u=!Jp(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const v=de();Ar(v,n.layoutBox,h.layoutBox);const x=de();Ar(x,r,g.layoutBox),em(v,x)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function p1(e){on.totalNodes++,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 m1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g1(e){e.clearSnapshot()}function cd(e){e.clearMeasurements()}function y1(e){e.isLayoutDirty=!1}function v1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function x1(e){e.resolveTargetDelta()}function k1(e){e.calcProjection()}function w1(e){e.resetRotation()}function S1(e){e.removeLeadSnapshot()}function fd(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hd(e,t,n,r){e.min=se(t.min,n.min,r),e.max=se(t.max,n.max,r)}function N1(e,t,n,r){hd(e.x,t.x,n.x,r),hd(e.y,t.y,n.y,r)}function C1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T1={duration:.45,ease:[.4,0,.1,1]},pd=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),md=pd("applewebkit/")&&!pd("chrome/")?Math.round:ce;function gd(e){e.min=md(e.min),e.max=md(e.max)}function j1(e){gd(e.x),gd(e.y)}function nm(e,t,n){return e==="position"||e==="preserve-aspect"&&!_l(od(t),od(n),.2)}const P1=tm({attachResizeListener:(e,t)=>xt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Do={current:void 0},rm=tm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Do.current){const e=new P1({});e.mount(window),e.setOptions({layoutScroll:!0}),Do.current=e}return Do.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),b1={pan:{Feature:Wx},drag:{Feature:$x,ProjectionNode:rm,MeasureLayout:Xp}},E1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function L1(e){const t=E1.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function zl(e,t,n=1){const[r,s]=L1(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Fp(o)?parseFloat(o):o}else return El(s)?zl(s,t,n+1):s}function M1(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(s=>{const i=s.get();if(!El(i))return;const o=zl(i,r);o&&s.set(o)});for(const s in t){const i=t[s];if(!El(i))continue;const o=zl(i,r);o&&(t[s]=o,n||(n={}),n[s]===void 0&&(n[s]=i))}return{target:t,transitionEnd:n}}const R1=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sm=e=>R1.has(e),A1=e=>Object.keys(e).some(sm),yd=e=>e===Nn||e===I,vd=(e,t)=>parseFloat(e.split(", ")[t]),xd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return vd(s[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?vd(i[1],e):0}},D1=new Set(["x","y","z"]),V1=is.filter(e=>!D1.has(e));function _1(e){const t=[];return V1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const tr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:xd(4,13),y:xd(5,14)};tr.translateX=tr.x;tr.translateY=tr.y;const O1=(e,t,n)=>{const r=t.measureViewportBox(),s=t.current,i=getComputedStyle(s),{display:o}=i,l={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=tr[u](r,i)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(l[u]),e[u]=tr[u](a,i)}),e},I1=(e,t,n={},r={})=>{t={...t},r={...r};const s=Object.keys(t).filter(sm);let i=[],o=!1;const l=[];if(s.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let d=n[a],f=hr(d);const h=t[a];let g;if(ki(h)){const v=h.length,x=h[0]===null?1:0;d=h[x],f=hr(d);for(let C=x;C<v&&h[C]!==null;C++)g?Za(hr(h[C])===g):g=hr(h[C])}else g=hr(h);if(f!==g)if(yd(f)&&yd(g)){const v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof h=="string"?t[a]=parseFloat(h):Array.isArray(h)&&g===I&&(t[a]=h.map(parseFloat))}else f!=null&&f.transform&&(g!=null&&g.transform)&&(d===0||h===0)?d===0?u.set(g.transform(d)):t[a]=f.transform(h):(o||(i=_1(e),o=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(h))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=O1(t,e,l);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Wi&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function F1(e,t,n,r){return A1(t)?I1(e,t,n,r):{target:t,transitionEnd:r}}const z1=(e,t,n,r)=>{const s=M1(e,t,r);return t=s.target,r=s.transitionEnd,F1(e,t,n,r)},Bl={current:null},im={current:!1};function B1(){if(im.current=!0,!!Wi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bl.current=e.matches;e.addListener(t),t()}else Bl.current=!1}function U1(e,t,n){const{willChange:r}=t;for(const s in t){const i=t[s],o=n[s];if(Fe(i))e.addValue(s,i),Ci(r)&&r.add(s);else if(Fe(o))e.addValue(s,er(i,{owner:e})),Ci(r)&&r.remove(s);else if(o!==i)if(e.hasValue(s)){const l=e.getValue(s);!l.hasAnimated&&l.set(i)}else{const l=e.getStaticValue(s);e.addValue(s,er(l!==void 0?l:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const kd=new WeakMap,om=Object.keys(qr),$1=om.length,wd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],W1=Ua.length;class H1{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:l,renderState:a}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=Ki(n),this.isVariantNode=Wh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const h=d[f];l[f]!==void 0&&Fe(h)&&(h.set(l[f],!1),Ci(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,kd.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((n,r)=>this.bindToMotionValue(r,n)),im.current||B1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){kd.delete(this.current),this.projection&&this.projection.unmount(),Pt(this.notifyUpdate),Pt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Sn.has(t),s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,s,i){let o,l;for(let a=0;a<$1;a++){const u=om[a],{isEnabled:d,Feature:f,ProjectionNode:h,MeasureLayout:g}=qr[u];h&&(o=h),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),g&&(l=g))}if((this.type==="html"||this.type==="svg")&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:u,drag:d,dragConstraints:f,layoutScroll:h,layoutRoot:g}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!d||f&&On(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:g})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<wd.length;r++){const s=wd[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i=t["on"+s];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=U1(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<W1;r++){const s=Ua[r],i=this.props[s];(Zr(i)||i===!1)&&(n[s]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=er(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,s=typeof r=="string"||typeof r=="object"?(n=Xa(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Fe(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class lm extends H1{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:s},i){let o=ax(r,t||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),o&&(o=s(o))),i){ox(this,r,o);const l=z1(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function K1(e){return window.getComputedStyle(e)}class Q1 extends lm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Sn.has(n)){const r=tu(n);return r&&r.default||0}else{const r=K1(t),s=(Gh(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gp(t,n)}build(t,n,r,s){Ha(t,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ya(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,s){ep(t,n,r,s)}}class G1 extends lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Sn.has(n)){const r=tu(n);return r&&r.default||0}return n=tp.has(n)?n:za(n),t.getAttribute(n)}measureInstanceViewportBox(){return de()}scrapeMotionValuesFromProps(t,n){return rp(t,n)}build(t,n,r,s){Qa(t,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,r,s){np(t,n,r,s)}mount(t){this.isSVGTag=Ga(t.tagName),super.mount(t)}}const Y1=(e,t)=>Wa(e)?new G1(t,{enableHardwareAcceleration:!1}):new Q1(t,{enableHardwareAcceleration:!0}),X1={layout:{ProjectionNode:rm,MeasureLayout:Xp}},Z1={...Nx,...$y,...b1,...X1},q1=q0((e,t)=>Ly(e,t,Z1,Y1));function am(){const e=S.useRef(!1);return Fa(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function J1(){const e=am(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>Z.postRender(r),[r]),t]}class ek extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function tk({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),s=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:o,top:l,left:a}=s.current;if(t||!r.current||!i||!o)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
41
+ [data-motion-pop-id="${n}"] {
42
+ position: absolute !important;
43
+ width: ${i}px !important;
44
+ height: ${o}px !important;
45
+ top: ${l}px !important;
46
+ left: ${a}px !important;
47
+ }
48
+ `),()=>{document.head.removeChild(u)}},[t]),S.createElement(ek,{isPresent:t,childRef:r,sizeRef:s},S.cloneElement(e,{ref:r}))}const Vo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o})=>{const l=sp(nk),a=S.useId(),u=S.useMemo(()=>({id:a,initial:t,isPresent:n,custom:s,onExitComplete:d=>{l.set(d,!0);for(const f of l.values())if(!f)return;r&&r()},register:d=>(l.set(d,!1),()=>l.delete(d))}),i?void 0:[n]);return S.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=S.createElement(tk,{isPresent:n},e)),S.createElement($i.Provider,{value:u},e)};function nk(){return new Map}function rk(e){return S.useEffect(()=>()=>e(),[])}const ln=e=>e.key||"";function sk(e,t){e.forEach(n=>{const r=ln(n);t.set(r,n)})}function ik(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const ok=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{const l=S.useContext($a).forceRender||J1()[0],a=am(),u=ik(e);let d=u;const f=S.useRef(new Map).current,h=S.useRef(d),g=S.useRef(new Map).current,v=S.useRef(!0);if(Fa(()=>{v.current=!1,sk(u,g),h.current=d}),rk(()=>{v.current=!0,g.clear(),f.clear()}),v.current)return S.createElement(S.Fragment,null,d.map(p=>S.createElement(Vo,{key:ln(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:o},p)));d=[...d];const x=h.current.map(ln),C=u.map(ln),y=x.length;for(let p=0;p<y;p++){const m=x[p];C.indexOf(m)===-1&&!f.has(m)&&f.set(m,void 0)}return o==="wait"&&f.size&&(d=[]),f.forEach((p,m)=>{if(C.indexOf(m)!==-1)return;const k=g.get(m);if(!k)return;const N=x.indexOf(m);let T=p;if(!T){const P=()=>{f.delete(m);const j=Array.from(g.keys()).filter(L=>!C.includes(L));if(j.forEach(L=>g.delete(L)),h.current=u.filter(L=>{const V=ln(L);return V===m||j.includes(V)}),!f.size){if(a.current===!1)return;l(),r&&r()}};T=S.createElement(Vo,{key:ln(k),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:i,mode:o},k),f.set(m,T)}d.splice(N,0,T)}),d=d.map(p=>{const m=p.key;return f.has(m)?p:S.createElement(Vo,{key:ln(p),isPresent:!0,presenceAffectsLayout:i,mode:o},p)}),S.createElement(S.Fragment,null,f.size?d:d.map(p=>S.cloneElement(p)))};/**
49
+ * @license lucide-react v0.469.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */const lk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),um=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
54
+ * @license lucide-react v0.469.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */var ak={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
+ * @license lucide-react v0.469.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */const uk=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},a)=>S.createElement("svg",{ref:a,...ak,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:um("lucide",s),...l},[...o.map(([u,d])=>S.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
64
+ * @license lucide-react v0.469.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const ae=(e,t)=>{const n=S.forwardRef(({className:r,...s},i)=>S.createElement(uk,{ref:i,iconNode:t,className:um(`lucide-${lk(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
69
+ * @license lucide-react v0.469.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const us=ae("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
74
+ * @license lucide-react v0.469.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const ck=ae("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
79
+ * @license lucide-react v0.469.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const cm=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
84
+ * @license lucide-react v0.469.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const dk=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
89
+ * @license lucide-react v0.469.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const fk=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
94
+ * @license lucide-react v0.469.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const Ul=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
99
+ * @license lucide-react v0.469.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const hk=ae("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
104
+ * @license lucide-react v0.469.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const pk=ae("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
109
+ * @license lucide-react v0.469.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const mk=ae("Copy",[["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"}]]);/**
114
+ * @license lucide-react v0.469.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const gk=ae("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);/**
119
+ * @license lucide-react v0.469.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const yk=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
124
+ * @license lucide-react v0.469.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const vk=ae("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
129
+ * @license lucide-react v0.469.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const xk=ae("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
134
+ * @license lucide-react v0.469.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const dm=ae("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
139
+ * @license lucide-react v0.469.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const kk=ae("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/**
144
+ * @license lucide-react v0.469.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const Sd=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
149
+ * @license lucide-react v0.469.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const wk=ae("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
154
+ * @license lucide-react v0.469.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const Sk=ae("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
159
+ * @license lucide-react v0.469.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const Nk=ae("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
164
+ * @license lucide-react v0.469.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const Ck=ae("Sun",[["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"}]]);/**
169
+ * @license lucide-react v0.469.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const $l=ae("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
174
+ * @license lucide-react v0.469.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const fm=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hm({text:e,label:t="Copy",disabled:n=!1}){const[r,s]=S.useState(!1),i=o=>{if(o.stopPropagation(),n)return;const l=typeof e=="string"?e:JSON.stringify(e,null,2);navigator.clipboard.writeText(l),s(!0),setTimeout(()=>s(!1),2e3)};return c.jsx("button",{onClick:i,className:`tooltip p-2 rounded-full text-subtle transition-colors ${n?"opacity-30 cursor-not-allowed":"hover:bg-black/5 dark:hover:bg-white/10"}`,"data-tooltip":t,"aria-label":t,disabled:n,children:r?c.jsx(cm,{className:"w-4 h-4"}):c.jsx(mk,{className:"w-4 h-4"})})}const Tk=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),_o=e=>{if(!e)return null;if(e.startsWith("api:")){const t=e.split(":");return t.length>=3?t.slice(2).join(":"):e}if(e.includes(" ")){const t=e.split(/\s+/),n=t.findIndex(r=>r==="-m"||r==="--model");return n!==-1&&t[n+1]?t[n+1]:t[0]}return e},As=(e,t)=>{const n=String(e??""),r=(t||"").trim();if(!r)return n;const s=new RegExp(Tk(r),"gi"),i=n.match(s);if(!i)return n;const o=n.split(s),l=[];return o.forEach((a,u)=>{l.push(a),u<i.length&&l.push(c.jsx("mark",{className:"rounded bg-black/10 dark:bg-white/20 px-1",children:i[u]},`mark-${u}`))}),l};function Nd({className:e=""}){return c.jsx("div",{className:`mx-auto w-14 h-14 rounded-full border border-black dark:border-white flex items-center justify-center ${e}`,"aria-hidden":"true",children:c.jsx(us,{className:"w-7 h-7"})})}function jk({className:e=""}){return c.jsxs("div",{className:`relative mx-auto w-14 h-14 ${e}`,"aria-hidden":"true",children:[c.jsx("span",{className:"absolute inset-0 rounded-full border border-black/30 dark:border-white/30 animate-ping"}),c.jsx("div",{className:"absolute inset-0 rounded-full border border-black dark:border-white flex items-center justify-center bg-white dark:bg-black",children:c.jsx(us,{className:"w-7 h-7"})})]})}function Pk({className:e=""}){return c.jsxs("div",{className:`relative mx-auto w-14 h-14 ${e}`,"aria-hidden":"true",children:[c.jsx("span",{className:"absolute inset-0 rounded-full border border-black/20 dark:border-white/20 success-ring"}),c.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-black dark:border-white bg-black text-white dark:bg-white dark:text-black flex items-center justify-center checkmark-pop",children:c.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"w-7 h-7 checkmark-draw",children:c.jsx("path",{d:"M5 13l4 4L19 7"})})})]})}function Cd({children:e}){return c.jsx("pre",{className:"text-xs sm:text-sm font-mono leading-relaxed whitespace-pre-wrap break-words overflow-auto max-h-[60vh] p-6 rounded-[24px] border border-black bg-black text-white/90 dark:border-white dark:bg-white dark:text-black/90",children:e})}function Wl({children:e}){return c.jsx("div",{className:"rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6 text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:e})}function mr({as:e="div",className:t="",children:n}){return c.jsx(e,{className:`border-t border-black/10 dark:border-white/10 p-6 ${t}`,children:n})}function bk({open:e,onToggle:t}){return c.jsx("button",{type:"button",onClick:t,className:"px-3 py-1 rounded-full text-[10px] font-bold tracking-[0.2em] uppercase border border-black/20 dark:border-white/20 text-black/60 dark:text-white/60 hover:text-black dark:hover:text-white hover:border-black/40 dark:hover:border-white/40 transition-colors","aria-pressed":e,"aria-label":e?"Hide raw event JSON":"Show raw event JSON",children:"Raw"})}const Ek=e=>e==null?c.jsx("span",{className:"italic",children:"—"}):typeof e=="string"?e.length>140||e.includes(`
179
+ `)?c.jsx(Wl,{children:e}):c.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:e}):typeof e=="object"?c.jsx("pre",{className:"raw-json-block raw-json-block--full",children:pm(e)}):c.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(e)});function pm(e){const t=JSON.stringify(e,null,2),n=/("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(?:\s*:)?|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,r=[];let s=0,i;for(;(i=n.exec(t))!==null;){const{index:o}=i;o>s&&r.push(t.slice(s,o));const l=i[0];let a="json-token-number";l.startsWith('"')?a=l.endsWith(":")?"json-token-key":"json-token-string":l==="true"||l==="false"?a="json-token-boolean":l==="null"&&(a="json-token-null"),r.push(c.jsx("span",{className:a,children:l},`json-${o}`)),s=o+l.length}return s<t.length&&r.push(t.slice(s)),r}function Td(e){return e?e>=1e6?`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M`:e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:e.toString():"0"}function Lk({item:e,pageIndex:t=0,history:n=[]}){if(!e)return null;const r=new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),[s,i]=S.useState(""),[o,l]=S.useState(!1),[a,u]=S.useState(!1),[d,f]=S.useState(!1),[h,g]=S.useState(!1),v=S.useMemo(()=>{let w={inputTokens:0,outputTokens:0},M={inputTokens:0,outputTokens:0,cost:0};const U=[];for(let z=0;z<n.length;z++){const F=n[z];if((F==null?void 0:F.event)==="AGENT_COMPLETED"&&F.usage){const B=F.usage.inputTokens||0,Q=F.usage.outputTokens||0,Ne=F.usage.cachedTokens||0,ye=F.usage.cost||0;M.inputTokens+=B,M.outputTokens+=Q,M.cost+=ye,z<=t&&(w.inputTokens+=B,w.outputTokens+=Q),U.push({agent:F.agent||"Unknown",model:F.model||null,inputTokens:B,outputTokens:Q,cachedTokens:Ne,cost:ye,timestamp:F.timestamp,index:z})}}return{pointInTime:w,total:M,agentBreakdown:U,hasTokens:M.inputTokens>0||M.outputTokens>0}},[n,t]),C=(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED")&&!!e.fullAuto,y=e.type||"text",p=e.options||[],m=e.autoSelectDelay??20,k=C&&y==="choice"&&p.length>0,[N,T]=S.useState(0),P=(()=>{if(!k)return null;const w=new Date(e.timestamp).getTime(),M=Math.floor((Date.now()-w)/1e3);return m-M})();S.useEffect(()=>{if(!k)return;const w=setInterval(()=>{T(M=>M+1)},1e3);return()=>clearInterval(w)},[k,e.timestamp]);const j=w=>w.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\b\w/g,U=>U.toUpperCase()),L=w=>{try{return JSON.parse(w)}catch{return null}},V=w=>{const M=w.trim(),U=L(M);if(U!==null)return U;const z=/```(?:json)?\s*([\s\S]*?)\s*```/gi;let F=z.exec(M);for(;F;){const B=F[1].trim(),Q=L(B);if(Q!==null)return Q;F=z.exec(M)}return null},W=w=>{const M=String(w??"").trim();return M?Math.max(1,Math.round(M.length/4)):0},G=w=>w?w>=1e6?`${(w/1e6).toFixed(1).replace(/\.0$/,"")}M tokens`:w>=1e4?`${Math.round(w/1e3)}k tokens`:w>=1e3?`${(w/1e3).toFixed(1).replace(/\.0$/,"")}k tokens`:`${w} tokens`:"0 tokens",te=w=>{if(typeof w!="string"||!w.trim())return{cleanedPrompt:"",contextTitle:null,contextData:null,contextRaw:""};const U=/(^|\n)(?:#+\s*)?(Current\s+)?Context\s*\n+```json\s*([\s\S]*?)\s*```/i.exec(w);if(!U)return{cleanedPrompt:w,contextTitle:null,contextData:null,contextRaw:""};const z=U[2]?"Current Context":"Context",F=(U[3]||"").trim(),B=L(F),Q=w.slice(0,U.index),Ne=w.slice(U.index+U[0].length);return{cleanedPrompt:`${Q}
180
+
181
+ ${Ne}`.replace(/\n{3,}/g,`
182
+
183
+ `).trim(),contextTitle:z,contextData:B??F,contextRaw:F}},ne=w=>{if(typeof w!="string"||!w.trim())return[];const M=w.split(/\r?\n/),U=[];let z=null,F=!1;const B=()=>{if(!z)return;const Q=z.content.join(`
184
+ `).replace(/\n{3,}/g,`
185
+
186
+ `).trim();if(!Q){z=null;return}U.push({title:z.title||"Prompt",content:Q}),z=null};return M.forEach(Q=>{const Ne=Q.trim();if(/^```/.test(Ne)&&(F=!F),!Ne){z&&z.content.push("");return}if(!F&&/^---+$/.test(Ne)){B();return}const ye=F?null:/^(#{1,6})\s+(.+)$/.exec(Ne);if(ye){B(),z={title:ye[2].trim(),content:[]};return}z||(z={title:"Prompt",content:[]}),z.content.push(Q)}),B(),U},ze=(w,M)=>w?w.includes("```")?c.jsx(mr,{as:"pre",className:"text-xs sm:text-sm font-mono leading-relaxed whitespace-pre-wrap break-words overflow-auto max-h-[60vh] text-black/90 dark:text-white/90",children:As(w,M)}):c.jsx(mr,{className:"text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:As(w,M)}):c.jsx(mr,{className:"italic text-black/40 dark:text-white/40",children:"—"}),H=w=>{if(w==null)return c.jsx("span",{className:"italic",children:"—"});if(typeof w=="boolean"){const M="inline-flex items-center rounded-full px-3 py-1 text-[11px] font-semibold tracking-[0.16em] uppercase border";return w?c.jsx("span",{className:`${M} bg-black text-white border-black dark:bg-white dark:text-black dark:border-white`,children:"Yes"}):c.jsx("span",{className:`${M} bg-white text-black border-black dark:bg-black dark:text-white dark:border-white`,children:"No"})}if(typeof w=="string"){const M=V(w);return M!==null?E(M):w.length>140||w.includes(`
187
+ `)?c.jsx(Wl,{children:w}):c.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:w})}return typeof w=="object"?c.jsx(Cd,{children:JSON.stringify(w,null,2)}):c.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(w)})},Se=6;function R(w,M){if(!w.length)return c.jsx("span",{className:"italic",children:"—"});const U=w.every(B=>B===null||["string","number","boolean"].includes(typeof B)),F=w.every(B=>B&&typeof B=="object"&&!Array.isArray(B))&&w.every(B=>Object.values(B).every(Q=>Q===null||["string","number","boolean"].includes(typeof Q)));return U?c.jsx("div",{className:"space-y-3",children:w.map((B,Q)=>c.jsx("div",{className:"text-base sm:text-lg",children:H(B)},`item-${Q}`))}):F?c.jsx("div",{className:"space-y-4",children:w.map((B,Q)=>c.jsx("div",{className:"rounded-[20px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-4",children:A(Object.entries(B),M)},`item-${Q}`))}):c.jsx("div",{className:"space-y-6",children:w.map((B,Q)=>c.jsxs("div",{className:"space-y-4 rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-5",children:[c.jsxs("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:["Item ",Q+1]}),E(B,M+1)]},`item-${Q}`))})}function _(w,M){const U=Object.entries(w);return U.length?M>=Se?H(w):A(U,M):c.jsx("span",{className:"italic",children:"—"})}function E(w,M=0){return w==null||typeof w=="string"||typeof w=="number"||typeof w=="boolean"?H(w):Array.isArray(w)?R(w,M):typeof w=="object"?_(w,M):H(w)}function A(w,M=0){return c.jsx("div",{className:"space-y-6",children:w.map(([U,z])=>c.jsxs("div",{className:"grid gap-2 sm:grid-cols-[160px_1fr] sm:items-start min-w-0",children:[c.jsx("div",{className:"text-xs font-semibold text-black/50 dark:text-white/50 break-words",children:j(U)}),c.jsx("div",{className:"text-base sm:text-lg leading-relaxed break-words min-w-0",children:E(z,M+1)})]},U))})}let O=null;if(e.event==="AGENT_STARTED"){const{cleanedPrompt:w,contextTitle:M,contextData:U,contextRaw:z}=te(e.prompt||""),F=ne(w),B=s.trim(),Q=B.toLowerCase(),Ne=B?F.filter(ve=>`${ve.title}
188
+ ${ve.content}`.toLowerCase().includes(Q)):[],ye=F.length?`${F.length} sections`:null,lu=W(z||""),au=z?`~${G(lu)}`:"";O=c.jsxs("div",{className:"space-y-10 py-6",children:[c.jsxs("div",{className:"space-y-3 text-center",children:[c.jsx(jk,{}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.28em] uppercase text-black/50 dark:text-white/50",children:"Agent started"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight",children:e.agent}),e.model&&c.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-black/5 dark:bg-white/10 text-xs font-mono text-black/60 dark:text-white/60",children:[e.modelAlias&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"font-semibold",children:e.modelAlias}),c.jsx("span",{className:"text-black/30 dark:text-white/30",children:"•"})]}),_o(e.model)]})]})]}),M&&U!==null&&c.jsxs("details",{className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[c.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Ul,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),M==="Current Context"?c.jsx(ck,{className:"w-4 h-4","aria-hidden":"true"}):null,c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60",children:M})]}),au?c.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:au}):null]}),typeof U=="string"?c.jsx(mr,{className:"text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:U}):c.jsx(mr,{children:E(U)})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Prompt"}),c.jsx("button",{type:"button",onClick:()=>u(!0),className:"p-1.5 rounded-full text-black/40 dark:text-white/40 hover:text-black dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/10 transition-colors","aria-label":"Search prompt",children:c.jsx(Sd,{className:"w-4 h-4"})})]}),ye?c.jsx("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:ye}):null]}),c.jsx("div",{className:"space-y-4",children:F.length>0?F.map((ve,cs)=>{const ds=/(^| )instructions$/i.test(ve.title.trim()),mm=cs===0||ds,uu=ve.content?ve.content.split(/\r?\n/).length:0;return c.jsxs("details",{open:mm,className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[c.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[c.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[c.jsx(Ul,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60 break-words",children:ve.title||"Prompt"})]}),uu?c.jsxs("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:[uu," lines"]}):null]}),ze(ve.content,"")]},`${ve.title}-${cs}`)}):c.jsx(Wl,{children:w})})]}),a?c.jsx("div",{className:"fixed inset-0 z-40 bg-white text-black dark:bg-black dark:text-white",children:c.jsx("div",{className:"h-full w-full overflow-y-auto custom-scroll px-6 sm:px-10 py-10",children:c.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:"Prompt search"}),c.jsx("button",{type:"button",onClick:()=>u(!1),className:"text-[10px] font-bold tracking-[0.2em] uppercase text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white",children:"Close"})]}),c.jsxs("div",{className:"relative",children:[c.jsx(Sd,{className:"w-4 h-4 text-black/50 dark:text-white/60 absolute left-4 top-1/2 -translate-y-1/2"}),c.jsx("input",{value:s,onChange:ve=>i(ve.target.value),placeholder:"Search the prompt...",className:"w-full rounded-full border border-black/20 dark:border-white/20 bg-transparent py-4 pl-11 pr-10 text-base text-black dark:text-white placeholder:text-black/40 dark:placeholder:text-white/40 focus:outline-none focus:ring-1 focus:ring-black/30 dark:focus:ring-white/40",autoFocus:!0}),B?c.jsx("button",{type:"button",onClick:()=>i(""),"aria-label":"Clear prompt search",className:"absolute right-3 top-1/2 -translate-y-1/2 rounded-full p-1 text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white",children:c.jsx(fm,{className:"w-3.5 h-3.5"})}):null]}),B?Ne.length>0?c.jsx("div",{className:"space-y-4",children:Ne.map((ve,cs)=>{const ds=ve.content?ve.content.split(/\r?\n/).length:0;return c.jsxs("div",{className:"rounded-[22px] border border-black/10 dark:border-white/15 bg-black/[0.02] dark:bg-white/5 overflow-hidden",children:[c.jsxs("div",{className:"px-5 py-4 flex items-center justify-between gap-4",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/70 dark:text-white/70 break-words",children:As(ve.title||"Prompt",B)}),ds?c.jsxs("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:[ds," lines"]}):null]}),c.jsx("div",{className:"border-t border-black/10 dark:border-white/10 p-5",children:c.jsx("pre",{className:"m-0 text-xs sm:text-sm font-mono leading-relaxed whitespace-pre-wrap break-words text-black/85 dark:text-white/85",children:As(ve.content||"",B)})})]},`${ve.title}-${cs}`)})}):c.jsxs("div",{className:"rounded-[20px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/5 p-5 text-sm text-black/60 dark:text-white/60",children:['No prompt sections match "',B,'".']}):c.jsx("div",{className:"text-sm text-black/50 dark:text-white/50",children:"Start typing to filter prompt sections."})]})})}):null]})}else if(e.event&&e.event.startsWith("WORKFLOW_")){const w=e.event.replace("WORKFLOW_","");O=c.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-16",children:[c.jsx("div",{className:"text-[10px] font-semibold tracking-[0.4em] uppercase text-black/50 dark:text-white/50",children:"Lifecycle status"}),c.jsxs("div",{className:"w-full max-w-5xl rounded-[28px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-10",children:[c.jsx("h2",{className:"text-4xl sm:text-6xl md:text-7xl font-black tracking-tighter leading-none uppercase",children:w}),e.error&&c.jsx("div",{className:"mt-6",children:c.jsx(Cd,{children:e.error})})]})]})}else if(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED"){const M=e.event==="INTERACTION_REQUESTED"?"Interaction needed":"Question asked",U=e.question||e.prompt||"Prompt",z=e.agent||e.slug||"Agent";O=c.jsxs("div",{className:"py-10 sm:py-14 space-y-8",children:[c.jsxs("div",{className:"text-center space-y-4",children:[c.jsx(Nd,{className:"w-12 h-12"}),c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:M}),c.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[z," needs your input"]})]}),c.jsx("div",{className:"text-3xl sm:text-4xl md:text-5xl font-black tracking-tight leading-tight text-center text-balance",children:U}),k&&P!==null&&c.jsx("div",{className:"text-center",children:c.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${P>0?"bg-black/5 dark:bg-white/10":"bg-black text-white dark:bg-white dark:text-black"}`,children:[c.jsx("span",{className:"text-xl",children:"⚡"}),c.jsx("span",{className:`text-sm font-semibold ${P>0?"text-black/70 dark:text-white/70":""}`,children:P>0?`Agent deciding in ${P}s...`:"Auto-selected"})]})}),y==="choice"&&p.length>0&&c.jsxs("div",{className:"space-y-3 max-w-2xl mx-auto",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50 text-center",children:"Options"}),c.jsx("div",{className:"space-y-2",children:p.map((F,B)=>c.jsxs("div",{className:`p-4 rounded-2xl border transition-all ${B===0?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.03]"}`,children:[c.jsx("div",{className:"flex items-center gap-3",children:c.jsxs("div",{className:`font-bold ${B===0?"":"text-black dark:text-white"}`,children:[F.label||F.key,B===0&&c.jsx("span",{className:"ml-2 text-xs font-medium px-2 py-0.5 rounded-full bg-white/20 dark:bg-black/20",children:"Recommended"})]})}),F.description&&c.jsx("div",{className:`text-sm mt-1 ${B===0?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50"}`,children:F.description})]},F.key||B))}),e.allowCustom&&c.jsx("div",{className:"text-xs text-center text-black/40 dark:text-white/40 mt-2",children:"Custom response allowed"})]})]})}else if(e.event==="INTERACTION_AUTO_RESOLVED"||e.event==="PROMPT_AUTO_ANSWERED"){const w=e.autoSelected||"Unknown",M=e.agent||e.slug||"Agent";O=c.jsxs("div",{className:"space-y-8 py-6",children:[c.jsxs("div",{className:"space-y-4 text-center",children:[c.jsx("div",{className:"mx-auto w-14 h-14 rounded-full border-2 border-black dark:border-white bg-black dark:bg-white flex items-center justify-center",children:c.jsx("span",{className:"text-2xl",children:"⚡"})}),c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Auto-selected"}),c.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[M," decided automatically"]})]}),c.jsx("div",{className:"rounded-[24px] border-2 border-black bg-black text-white dark:border-white dark:bg-white dark:text-black p-6 text-center max-w-md mx-auto",children:c.jsx("div",{className:"text-2xl sm:text-3xl font-black tracking-tight",children:w})})]})}else if(e.event==="INTERACTION_RESOLVED"){const w=e.source==="remote"?"Remote response received.":"Response captured.",M=e.source==="remote"?"Received from remote":e.source?`Received from ${e.source}`:"Received",U=e.agent||e.slug||"Agent";O=c.jsxs("div",{className:"space-y-8 py-6",children:[c.jsxs("div",{className:"space-y-4 text-center",children:[c.jsx(Nd,{className:"w-12 h-12"}),c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Interaction resolved"}),c.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[U," received your response"]})]}),c.jsxs("div",{className:"rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6 text-center",children:[c.jsx("div",{className:"text-xl sm:text-2xl font-semibold leading-relaxed text-balance",children:w}),c.jsx("div",{className:"mt-3 text-sm text-black/60 dark:text-white/60",children:M})]})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const w=e.answer!==void 0?e.answer:e.response;O=c.jsx("div",{className:"space-y-8 py-6",children:c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Response sent"}),Ek(w)]})})}else if(e.event==="AGENT_COMPLETED"){const w=e.usage&&(e.usage.inputTokens>0||e.usage.outputTokens>0);O=c.jsxs("div",{className:"space-y-10 py-6",children:[c.jsxs("div",{className:"rounded-[28px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6 sm:p-8 text-center space-y-4",children:[c.jsx(Pk,{className:"w-12 h-12"}),c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Agent completed"}),c.jsx("div",{className:"text-2xl sm:text-3xl font-black tracking-tight",children:e.agent||"Agent"}),w&&c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"In:"}),c.jsx("span",{className:"font-mono font-semibold",children:G(e.usage.inputTokens)})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"Out:"}),c.jsx("span",{className:"font-mono font-semibold",children:G(e.usage.outputTokens)})]}),e.usage.cachedTokens>0&&c.jsxs("div",{className:"flex items-center gap-2 text-black/40 dark:text-white/40",children:[c.jsx("span",{children:"Cached:"}),c.jsx("span",{className:"font-mono",children:G(e.usage.cachedTokens)})]}),e.usage.cost>0&&c.jsx("div",{className:"flex items-center gap-2 text-black/60 dark:text-white/60",children:c.jsxs("span",{className:"font-mono font-semibold",children:["$",e.usage.cost.toFixed(4)]})})]}),e.model&&c.jsx("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-black/5 dark:bg-white/10 text-xs font-mono text-black/60 dark:text-white/60",children:_o(e.model)}),typeof e.attempts=="number"&&c.jsxs("div",{className:"text-sm text-black/60 dark:text-white/60",children:[e.attempts," ",e.attempts===1?"attempt":"attempts"]})]}),e.output!==void 0?c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Answer"}),c.jsx("div",{className:"rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6",children:E(e.output)})]}):null]})}else{const w=Object.entries(e).filter(([M])=>M!=="event"&&M!=="timestamp");O=c.jsx("div",{className:"space-y-6 py-6",children:c.jsxs("div",{className:"rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6",children:[c.jsx("div",{className:"text-lg sm:text-xl font-semibold leading-relaxed text-balance",children:e.event?e.event.replace(/_/g," "):"Event"}),c.jsx("div",{className:"mt-3 text-sm text-black/60 dark:text-white/60",children:w.length>0?"Open Raw for full details.":"Open Raw for more info."})]})})}return c.jsxs("div",{className:"w-full h-full flex flex-col overflow-y-auto custom-scroll px-6 sm:px-10 lg:px-12 bg-white text-black dark:bg-black dark:text-white",children:[c.jsxs("div",{className:"content-width flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 pt-8 sm:pt-10 pb-6 border-b border-black/10 dark:border-white/10",children:[c.jsx("div",{className:"flex items-center gap-3",children:v.hasTokens&&c.jsxs("div",{className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>f(w=>!w),className:"flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-mono bg-black/5 dark:bg-white/10 hover:bg-black/10 dark:hover:bg-white/15 transition-colors","aria-expanded":d,"aria-label":"Toggle token stats",children:[c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),c.jsx("span",{children:Td(v.pointInTime.inputTokens)}),c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),c.jsx("span",{children:Td(v.pointInTime.outputTokens)}),c.jsx(dk,{className:`w-3 h-3 text-black/40 dark:text-white/40 transition-transform ${d?"rotate-180":""}`})]}),d&&c.jsxs("div",{className:"absolute top-full left-0 mt-2 z-10 min-w-[200px] rounded-2xl border border-black/10 dark:border-white/10 bg-white dark:bg-black shadow-xl shadow-black/10 dark:shadow-white/5 p-4 space-y-3",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40",children:["Up to page ",t+1]}),c.jsxs("div",{className:"flex items-center gap-3 text-sm font-mono",children:[c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),c.jsx("span",{className:"font-semibold",children:v.pointInTime.inputTokens.toLocaleString()}),c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),c.jsx("span",{className:"font-semibold",children:v.pointInTime.outputTokens.toLocaleString()})]})]}),c.jsxs("div",{className:"border-t border-black/10 dark:border-white/10 pt-3 space-y-1",children:[c.jsx("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40",children:"Session total"}),c.jsxs("div",{className:"flex items-center gap-3 text-sm font-mono",children:[c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),c.jsx("span",{className:"font-semibold",children:v.total.inputTokens.toLocaleString()}),c.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),c.jsx("span",{className:"font-semibold",children:v.total.outputTokens.toLocaleString()})]})]}),c.jsx("button",{type:"button",onClick:()=>{f(!1),g(!0)},className:"w-full mt-2 pt-3 border-t border-black/10 dark:border-white/10 text-[10px] font-semibold tracking-[0.16em] uppercase text-black/50 dark:text-white/50 hover:text-black dark:hover:text-white transition-colors text-center",children:"View details"})]})]})}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(bk,{open:o,onToggle:()=>l(w=>!w)}),c.jsx(hm,{text:e})]})]}),c.jsx("div",{className:"pt-6",children:c.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:r})}),o?c.jsx("pre",{className:"raw-json-block",children:pm(e)}):O]}),h&&c.jsx("div",{className:"fixed inset-0 z-50 bg-white text-black dark:bg-black dark:text-white",children:c.jsx("div",{className:"h-full w-full overflow-y-auto custom-scroll px-6 sm:px-10 py-10",children:c.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:"Token Usage Details"}),c.jsxs("div",{className:"text-2xl font-bold",children:[v.agentBreakdown.length," agent ",v.agentBreakdown.length===1?"call":"calls"]})]}),c.jsx("button",{type:"button",onClick:()=>g(!1),className:"text-[10px] font-bold tracking-[0.2em] uppercase text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white",children:"Close"})]}),c.jsxs("div",{className:"rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6",children:[c.jsx("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40 mb-4",children:"Session Totals"}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-6",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-black/50 dark:text-white/50",children:"Input Tokens"}),c.jsx("div",{className:"text-xl font-mono font-bold",children:v.total.inputTokens.toLocaleString()})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-black/50 dark:text-white/50",children:"Output Tokens"}),c.jsx("div",{className:"text-xl font-mono font-bold",children:v.total.outputTokens.toLocaleString()})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-black/50 dark:text-white/50",children:"Total Tokens"}),c.jsx("div",{className:"text-xl font-mono font-bold",children:(v.total.inputTokens+v.total.outputTokens).toLocaleString()})]}),v.total.cost>0&&c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-black/50 dark:text-white/50",children:"Total Cost"}),c.jsxs("div",{className:"text-xl font-mono font-bold",children:["$",v.total.cost.toFixed(4)]})]})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40",children:"Per-Agent Breakdown"}),c.jsx("div",{className:"space-y-3",children:v.agentBreakdown.map((w,M)=>c.jsxs("div",{className:"rounded-[20px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-5",children:[c.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4 mb-4",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-lg font-bold",children:w.agent}),c.jsxs("div",{className:"flex items-center gap-2",children:[w.model&&c.jsx("span",{className:"inline-flex px-2 py-0.5 rounded-full bg-black/5 dark:bg-white/10 text-xs font-mono text-black/60 dark:text-white/60",children:_o(w.model)}),c.jsx("span",{className:"text-xs text-black/40 dark:text-white/40",children:new Date(w.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})]}),w.cost>0&&c.jsx("div",{className:"text-right",children:c.jsxs("div",{className:"text-lg font-mono font-bold",children:["$",w.cost.toFixed(4)]})})]}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 text-sm",children:[c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("div",{className:"text-xs text-black/40 dark:text-white/40",children:"Input"}),c.jsx("div",{className:"font-mono font-semibold",children:w.inputTokens.toLocaleString()})]}),c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("div",{className:"text-xs text-black/40 dark:text-white/40",children:"Output"}),c.jsx("div",{className:"font-mono font-semibold",children:w.outputTokens.toLocaleString()})]}),w.cachedTokens>0&&c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("div",{className:"text-xs text-black/40 dark:text-white/40",children:"Cached"}),c.jsx("div",{className:"font-mono font-semibold text-black/60 dark:text-white/60",children:w.cachedTokens.toLocaleString()})]}),c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("div",{className:"text-xs text-black/40 dark:text-white/40",children:"Total"}),c.jsx("div",{className:"font-mono font-semibold",children:(w.inputTokens+w.outputTokens).toLocaleString()})]})]})]},`${w.agent}-${M}`))})]}),v.agentBreakdown.length===0&&c.jsx("div",{className:"rounded-[20px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04] p-6 text-center text-black/50 dark:text-white/50",children:"No token usage data available yet."})]})})})]})}const Mk=e=>{const t="w-3.5 h-3.5 text-black/70 dark:text-white/70";if(!e)return c.jsx($l,{className:`${t} opacity-40`});const n=e.toUpperCase();return n.includes("STARTED")||n.includes("START")?c.jsx(dm,{className:`${t} opacity-70`}):n.includes("SUBMITTED")||n.includes("ANSWERED")||n.includes("SUCCESS")||n.includes("RESOLVED")?c.jsx(pk,{className:`${t} opacity-80`}):n.includes("REQUESTED")||n.includes("REQUEST")?c.jsx(wk,{className:`${t} opacity-60`}):n.includes("ERROR")||n.includes("FAILED")?c.jsx(hk,{className:`${t} opacity-90`}):c.jsx($l,{className:`${t} opacity-40`})},Rk=e=>{const t=e.question||e.answer||e.prompt||e.error||e.status||e.message,n=e.slug||(e.event&&e.event.startsWith("WORKFLOW_")?e.event.replace("WORKFLOW_",""):null);return!t&&!n?e.event||"Unknown Event":c.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&c.jsx("span",{className:"text-black/60 dark:text-white/60 font-medium text-[10px] tracking-[0.24em] uppercase",children:n}),t&&c.jsx("span",{className:"opacity-70 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function Ak({history:e,onJump:t}){return c.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:c.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 sm:px-8 lg:px-10 py-20",children:c.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?c.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[c.jsx($l,{className:"w-12 h-12"}),c.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase",children:"No events yet"})]}):e.map((n,r)=>{var i;const s=new Date(n.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return c.jsxs("button",{onClick:()=>t(r),className:"w-full text-left group flex items-start gap-6 p-5 rounded-2xl transition-all border border-black/10 dark:border-white/10 hover:bg-black/[0.03] dark:hover:bg-white/[0.04]",children:[c.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:c.jsx("span",{className:"text-[10px] font-mono font-medium opacity-30 group-hover:opacity-60 transition-opacity",children:s})}),c.jsx("div",{className:"flex-shrink-0 pt-0.5",children:Mk(n.event)}),c.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[c.jsx("div",{className:"text-[10px] font-semibold tracking-[0.28em] uppercase opacity-40 group-hover:opacity-70 transition-opacity",children:((i=n.event)==null?void 0:i.replace(/_/g," "))||"EVENT"}),c.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-black dark:group-hover:text-white transition-colors",children:Rk(n)})]})]},r)})})})})}function Dk({page:e,total:t,onNext:n,onPrev:r,onJump:s,hasNew:i,onJumpToLatest:o,className:l=""}){const[a,u]=S.useState(e+1);S.useEffect(()=>u(e+1),[e]);const d=f=>{const{value:h}=f.target;u(h);const g=parseInt(h,10);!Number.isNaN(g)&&g>=1&&g<=t&&s(g-1)};return c.jsx("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:c.jsxs("div",{className:"footer-control",children:[c.jsx("button",{onClick:r,disabled:e===0,className:"tooltip p-1 hover:text-black dark:hover:text-white disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Previous","aria-label":"Previous event",children:c.jsx(fk,{className:"w-5 h-5"})}),c.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[c.jsx("input",{type:"number",value:a,onChange:d,className:"jumper-input",min:"1",max:t}),c.jsx("span",{className:"opacity-20",children:"/"}),c.jsx("span",{children:t})]}),c.jsx("button",{onClick:n,disabled:e===t-1,className:"tooltip p-1 hover:text-black dark:hover:text-white disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Next","aria-label":"Next event",children:c.jsx(Ul,{className:"w-5 h-5"})}),i?c.jsx("button",{onClick:o,className:"tooltip px-3 py-1 rounded-full text-[10px] font-bold tracking-[0.2em] uppercase bg-black text-white dark:bg-white dark:text-black shadow-[0_10px_30px_rgba(0,0,0,0.2)] dark:shadow-[0_10px_30px_rgba(255,255,255,0.1)] hover:scale-[1.02] transition-transform","data-tooltip":"Latest","aria-label":"Jump to latest event",children:"New"}):null]})})}function Vk({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:s,setViewMode:i,history:o,fullAuto:l,onToggleFullAuto:a,onOpenSettings:u,configDisabled:d}){const f=t==="connected";return c.jsxs("header",{className:"fixed top-0 inset-x-0 h-20 px-6 sm:px-10 lg:px-12 flex items-center justify-between z-50 bg-bg/80 backdrop-blur-3xl",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:`w-2.5 h-2.5 rounded-full border ${f?"bg-black border-black dark:bg-white dark:border-white":"bg-transparent border-black/30 dark:border-white/30"}`,"aria-hidden":"true"}),c.jsx("span",{className:"font-semibold text-[10px] tracking-[0.32em] uppercase text-black/50 dark:text-white/50 truncate max-w-[300px]",children:e||"Workflow"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{onClick:a,disabled:d,className:`tooltip w-10 h-10 flex items-center justify-center rounded-full transition-colors ${d?"opacity-30 cursor-not-allowed":"hover:bg-black/5 dark:hover:bg-white/10"}`,"data-tooltip":l?"Pause auto":"Enable auto","aria-label":l?"Disable full-auto mode":"Enable full-auto mode",children:l?c.jsx(xk,{className:"w-5 h-5 opacity-60"}):c.jsx(dm,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),c.jsx("button",{onClick:u,className:"tooltip w-10 h-10 flex items-center justify-center rounded-full hover:bg-black/5 dark:hover:bg-white/10 transition-colors","data-tooltip":"Settings","aria-label":"Open settings",children:c.jsx(Sk,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),c.jsx(hm,{text:o||[],label:"Copy full history",disabled:!o||o.length===0}),c.jsx("button",{onClick:()=>i(s==="present"?"log":"present"),className:"tooltip w-10 h-10 flex items-center justify-center rounded-full hover:bg-black/5 dark:hover:bg-white/10 transition-colors","data-tooltip":s==="present"?"Log view":"Present view","aria-label":s==="present"?"Switch to Log view":"Switch to Presentation view",children:s==="present"?c.jsx(gk,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):c.jsx(kk,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),c.jsx("button",{onClick:r,className:"tooltip w-10 h-10 flex items-center justify-center rounded-full hover:bg-black/5 dark:hover:bg-white/10 transition-colors","data-tooltip":n==="dark"?"Light theme":"Dark theme","aria-label":n==="dark"?"Switch to Light theme":"Switch to Dark theme",children:n==="dark"?c.jsx(Ck,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):c.jsx(vk,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function _k({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,options:i=[],multiSelect:o,allowCustom:l,fullAuto:a,autoSelectDelay:u=20,timestamp:d}=e,[f,h]=S.useState(o?[]:null),[g,v]=S.useState(""),[x,C]=S.useState(!1),[y,p]=S.useState(0),m=S.useMemo(()=>i||[],[i]),k=r||s||"Choose an option.",N=S.useMemo(()=>{if(!a||!d)return null;const L=new Date(d).getTime(),V=Math.floor((Date.now()-L)/1e3);return u-V},[a,d,u,y]);S.useEffect(()=>{if(!a)return;const L=setInterval(()=>p(V=>V+1),1e3);return()=>clearInterval(L)},[a]);const T=L=>{o?(h(V=>V.includes(L)?V.filter(W=>W!==L):[...V,L]),C(!1)):(h(L),C(!1))},P=()=>{if(x&&g.trim()){t({isCustom:!0,customText:g.trim(),raw:g.trim()});return}if(o&&f.length>0){t({selectedKeys:f,raw:f.join(", ")});return}f&&t({selectedKey:f,raw:String(f)})},j=x?!!g.trim():o?f.length>0:!!f;return c.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[c.jsxs("div",{className:"space-y-4 shrink-0",children:[c.jsx("div",{className:"w-16 h-16 rounded-3xl bg-black text-white dark:bg-white dark:text-black flex items-center justify-center mx-auto shadow-2xl shadow-black/20 dark:shadow-white/10",children:c.jsx(us,{className:"w-8 h-8"})}),c.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),c.jsx("div",{className:"text-lg sm:text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap break-words",children:k}),a&&N!==null&&c.jsx("div",{className:"text-center",children:c.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${N>0?"bg-yellow-500 text-black animate-pulse":"bg-black text-white dark:bg-white dark:text-black"}`,children:[c.jsx("span",{className:"text-xl",children:"⚡"}),c.jsx("span",{className:"text-sm font-bold",children:N>0?`Agent deciding in ${N}s...`:"Auto-selecting recommended option..."})]})}),c.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[m.map((L,V)=>{const W=o?f.includes(L.key):f===L.key,G=W?"text-white dark:text-black":"text-black dark:text-white",te=W?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50";return c.jsx("button",{onClick:()=>T(L.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${W?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/10 dark:border-white/10 hover:border-black/30 dark:hover:border-white/30 bg-black/[0.02] dark:bg-white/[0.03]"}`,children:c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${W?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/30 dark:border-white/30"}`,children:W&&c.jsx(cm,{className:"w-4 h-4"})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:`font-bold text-lg break-words flex flex-wrap items-center gap-2 ${G}`,children:[c.jsx("span",{className:"break-words",children:L.label||L.key}),V===0&&c.jsx("span",{className:`ml-2 text-xs font-medium px-2 py-0.5 rounded-full ${W?"bg-white/20 dark:bg-black/20":"bg-black/10 dark:bg-white/10"}`,children:"Recommended"})]}),L.description&&c.jsx("div",{className:`text-sm mt-1 break-words ${te}`,children:L.description})]})]})},L.key)}),l&&c.jsxs("button",{onClick:()=>{C(!0),h(o?[]:null)},disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${x?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/10 dark:border-white/10 hover:border-black/30 dark:hover:border-white/30 bg-black/[0.02] dark:bg-white/[0.03]"}`,children:[c.jsx("div",{className:`font-bold text-lg break-words ${x?"text-white dark:text-black":"text-black dark:text-white"}`,children:"Other"}),c.jsx("div",{className:`text-sm mt-1 break-words ${x?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50"}`,children:"Provide a custom response"})]}),x&&c.jsx("textarea",{value:g,onChange:L=>v(L.target.value),placeholder:"Type your response...",className:"w-full h-32 p-6 rounded-2xl bg-black/[0.02] dark:bg-white/[0.03] border-2 border-black/20 dark:border-white/20 focus:border-black dark:focus:border-white focus:outline-none text-lg"})]})]}),c.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-black/10 dark:border-white/10",children:c.jsx("button",{onClick:P,disabled:n||!j,className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl",children:"Continue"})})]})}function Ok({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,confirmLabel:i="Confirm",cancelLabel:o="Cancel",context:l}=e;return c.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center justify-center",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-3xl bg-black text-white dark:bg-white dark:text-black flex items-center justify-center mx-auto shadow-2xl shadow-black/20 dark:shadow-white/10",children:c.jsx(us,{className:"w-8 h-8"})}),c.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),c.jsx("div",{className:"text-lg sm:text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap break-words",children:r||s||"Please confirm."}),(l==null?void 0:l.documentPath)&&c.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",c.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),c.jsxs("div",{className:"p-4 flex justify-center gap-4 bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-black/10 dark:border-white/10",children:[c.jsx("button",{onClick:()=>t({confirmed:!1,raw:o}),disabled:n,className:"px-12 py-6 border border-black/20 dark:border-white/20 text-fg rounded-full font-bold text-xl hover:bg-black/5 dark:hover:bg-white/10 transition-all disabled:opacity-30",children:o}),c.jsx("button",{onClick:()=>t({confirmed:!0,raw:i}),disabled:n,className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl shadow-black/20 dark:shadow-white/10",children:i})]})]})}function Ik({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,placeholder:i,validation:o}=e,[l,a]=S.useState(""),[u,d]=S.useState(null),f=S.useMemo(()=>o||{},[o]),h=v=>f.minLength&&v.length<f.minLength?`Minimum ${f.minLength} characters required`:f.maxLength&&v.length>f.maxLength?`Maximum ${f.maxLength} characters allowed`:f.pattern&&!new RegExp(f.pattern).test(v)?"Invalid format":null,g=()=>{const v=l.trim(),x=h(v);if(x){d(x);return}t({text:v,raw:v})};return c.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[c.jsxs("div",{className:"space-y-4 shrink-0",children:[c.jsx("div",{className:"w-16 h-16 rounded-3xl bg-black text-white dark:bg-white dark:text-black flex items-center justify-center mx-auto shadow-2xl shadow-black/20 dark:shadow-white/10",children:c.jsx(us,{className:"w-8 h-8"})}),c.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),c.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[c.jsx("div",{className:"text-lg sm:text-xl font-medium text-fg/70 text-center whitespace-pre-wrap break-words",children:r||s||"Provide your response."}),c.jsx("textarea",{value:l,onChange:v=>{a(v.target.value),d(null)},disabled:n,placeholder:i||"Your response...",className:`w-full h-64 p-8 rounded-[32px] bg-black/[0.02] dark:bg-white/[0.03] border-2 ${u?"border-black dark:border-white":"border-transparent"} focus:border-black dark:focus:border-white focus:outline-none text-xl sm:text-2xl font-medium transition-all text-center placeholder:opacity-20`}),u&&c.jsx("div",{className:"text-black dark:text-white text-center text-sm font-semibold",children:u})]})]}),c.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-black/10 dark:border-white/10",children:c.jsx("button",{onClick:g,disabled:n||!l.trim(),className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl",children:"Submit Response"})})]})}function Fk({interaction:e,onSubmit:t,disabled:n}){const r=(e==null?void 0:e.type)||"text",s=i=>{t(e.slug,e.targetKey,i)};switch(r){case"choice":return c.jsx(_k,{interaction:e,onSubmit:s,disabled:n},e.slug);case"confirm":return c.jsx(Ok,{interaction:e,onSubmit:s,disabled:n},e.slug);case"text":default:return c.jsx(Ik,{interaction:e,onSubmit:s,disabled:n},e.slug)}}function zk({submission:e}){const t=e!=null&&e.slug?`Waiting for the CLI to receive ${e.slug} and log the next event.`:"Waiting for the CLI to receive the response and log the next event.";return c.jsx("div",{className:"w-full h-full flex items-center justify-center px-6 py-12 bg-white text-black dark:bg-black dark:text-white",children:c.jsxs("div",{className:"content-width w-full flex flex-col items-center text-center gap-6",children:[c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute -inset-4 rounded-[36px] bg-black/10 dark:bg-white/10 blur-2xl opacity-60","aria-hidden":"true"}),c.jsx("div",{className:"relative w-20 h-20 rounded-[28px] border border-black/10 dark:border-white/10 bg-black/[0.03] dark:bg-white/[0.03] flex items-center justify-center shadow-2xl shadow-black/20 dark:shadow-white/10",children:c.jsx(yk,{className:"w-9 h-9 text-black dark:text-white animate-spin"})})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"text-4xl font-black tracking-tight",children:"Sending response"}),c.jsx("div",{className:"text-lg font-medium text-black/60 dark:text-white/60 max-w-xl break-words",children:t}),c.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase opacity-30",children:"Keep this tab open"})]})]})})}function Bk({isOpen:e,onClose:t,fullAuto:n,onToggleFullAuto:r,autoSelectDelay:s,onDelayChange:i,onStop:o,disabled:l}){const[a,u]=S.useState(!1);if(!e)return null;const d=()=>{a?(o(),u(!1),t()):u(!0)},f=h=>{h.target===h.currentTarget&&(u(!1),t())};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",onClick:f,children:c.jsxs("div",{className:"bg-white dark:bg-black border border-black/10 dark:border-white/10 rounded-3xl p-8 w-[90vw] max-w-md shadow-2xl",children:[c.jsxs("div",{className:"flex justify-between items-center mb-6",children:[c.jsx("h2",{className:"text-xl font-bold",children:"Settings"}),c.jsx("button",{onClick:()=>{u(!1),t()},className:"p-2 hover:bg-black/5 dark:hover:bg-white/10 rounded-full transition-colors","aria-label":"Close settings",children:c.jsx(fm,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-black/10 dark:border-white/10",children:[c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold",children:"Full-Auto Mode"}),c.jsx("div",{className:"text-sm text-black/50 dark:text-white/50",children:"Auto-select recommended options"})]}),c.jsx("button",{onClick:r,disabled:l,className:`w-12 h-7 rounded-full transition-colors relative ${n?"bg-black dark:bg-white":"bg-black/20 dark:bg-white/20"} ${l?"opacity-50 cursor-not-allowed":""}`,"aria-pressed":n,"aria-label":"Toggle full-auto mode",children:c.jsx("div",{className:`absolute top-1 w-5 h-5 rounded-full bg-white dark:bg-black transition-transform ${n?"left-6":"left-1"}`})})]}),c.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-black/10 dark:border-white/10",children:[c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold",children:"Countdown Delay"}),c.jsx("div",{className:"text-sm text-black/50 dark:text-white/50",children:"Seconds before auto-select"})]}),c.jsx("input",{type:"number",value:s,onChange:h=>{const g=parseInt(h.target.value,10);!isNaN(g)&&g>=1&&g<=120&&i(g)},min:1,max:120,disabled:l,className:"w-20 p-2 text-center rounded-xl border border-black/20 dark:border-white/20 bg-transparent disabled:opacity-50"})]}),c.jsxs("div",{className:"mt-6",children:[c.jsxs("button",{onClick:d,disabled:l,className:`w-full py-4 rounded-2xl font-bold flex items-center justify-center gap-2 transition-colors ${a?"bg-red-600 text-white hover:bg-red-700":"bg-red-500/10 text-red-500 hover:bg-red-500/20"} ${l?"opacity-50 cursor-not-allowed":""}`,children:[c.jsx(Nk,{className:"w-5 h-5"}),a?"Click again to confirm":"Stop Workflow"]}),a&&c.jsx("div",{className:"text-center text-sm text-black/50 dark:text-white/50 mt-2",children:"This will terminate the CLI process"})]})]})})}function Uk(){const[e,t]=S.useState([]),[n,r]=S.useState(0),[s,i]=S.useState("connecting"),[o,l]=S.useState("..."),[a,u]=S.useState("light"),[d,f]=S.useState("present"),[h,g]=S.useState(null),[v,x]=S.useState(!1),[C,y]=S.useState(null),[p,m]=S.useState({fullAuto:!1,autoSelectDelay:20}),[k,N]=S.useState(!1);S.useEffect(()=>{const E=localStorage.getItem("rf_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");u(E);const A=localStorage.getItem("rf_view")||"present";f(A)},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem("rf_theme",a)},[a]),S.useEffect(()=>{localStorage.setItem("rf_view",d)},[d]);const T=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,P=T?`/api/history/${T}`:"/api/history",j=T?`/api/events/${T}`:"/api/events",L=T?`/api/submit/${T}`:"/api/submit",V=T?`/api/config/${T}`:"/api/config",W=async()=>{try{const A=await(await fetch(P)).json();if(A.entries){const O=[...A.entries].reverse();t(M=>(M.length===0&&O.length>0&&r(O.length-1),O));const w=O[O.length-1];w&&(w.event==="INTERACTION_REQUESTED"||w.event==="PROMPT_REQUESTED")?g(w):g(null)}A.workflowName&&l(A.workflowName),A.config&&m(A.config),i("connected")}catch{i("disconnected")}},G=async E=>{try{(await fetch(V,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)})).ok&&m(O=>({...O,...E}))}catch(A){console.error("Failed to update config:",A)}},te=S.useRef(0);S.useEffect(()=>{e.length>te.current&&(te.current===0&&e.length>0?(r(e.length-1),x(!1)):n<e.length-1&&x(!0)),te.current=e.length},[e.length,n]),S.useEffect(()=>{if(!C||e.length===0)return;const E=e[e.length-1];if(e.length!==C.historyLength||E!=null&&E.timestamp&&E.timestamp!==C.lastEventTimestamp){if((E==null?void 0:E.event)==="INTERACTION_SUBMITTED"){y(O=>O&&{...O,historyLength:e.length,lastEventTimestamp:(E==null?void 0:E.timestamp)||O.lastEventTimestamp});return}y(null),r(e.length-1)}},[e,C]),S.useEffect(()=>{n===e.length-1&&x(!1)},[n,e.length]),S.useEffect(()=>{W();const E=setInterval(W,3e3),A=new EventSource(j);return A.onmessage=O=>{O.data==="update"&&W()},()=>{clearInterval(E),A.close()}},[]);const ne=()=>r(E=>Math.min(e.length-1,E+1)),ze=()=>r(E=>Math.max(0,E-1));S.useEffect(()=>{const E=A=>{(A.target.tagName==="TEXTAREA"||A.target.tagName==="INPUT"&&A.target.type==="number")&&A.target.className!=="jumper-input"||(A.key==="ArrowRight"&&ne(),A.key==="ArrowLeft"&&ze())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[e.length]);const H=e[n],Se=H&&(H.event==="INTERACTION_REQUESTED"||H.event==="PROMPT_REQUESTED"),R=h&&Se&&H.slug===h.slug,_=!!C;return c.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[c.jsx(Vk,{workflowName:o,status:s,theme:a,toggleTheme:()=>u(E=>E==="dark"?"light":"dark"),viewMode:d,setViewMode:f,history:e,fullAuto:p.fullAuto,onToggleFullAuto:()=>G({fullAuto:!p.fullAuto}),onOpenSettings:()=>N(!0),configDisabled:s!=="connected"}),c.jsx("main",{className:"main-stage overflow-hidden",children:d==="log"?c.jsx(Ak,{history:e,onJump:E=>{r(E),f("present")}}):c.jsx(ok,{mode:"wait",children:c.jsx(q1.div,{initial:{opacity:0,scale:.99,filter:"blur(4px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},exit:{opacity:0,scale:1.01,filter:"blur(4px)"},transition:{duration:.3,ease:[.16,1,.3,1]},className:"w-full h-full",children:_?c.jsx(zk,{submission:C}):R?c.jsx("div",{className:"content-width h-full",children:c.jsx(Fk,{interaction:h,onSubmit:async(E,A,O)=>{const w=e[e.length-1];y({slug:E,targetKey:A,historyLength:e.length,lastEventTimestamp:(w==null?void 0:w.timestamp)||null});try{const M=await fetch(L,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:E,targetKey:A,response:O})});if(!M.ok)throw new Error(`Submit failed with ${M.status}`)}catch{y(null)}finally{setTimeout(W,1e3)}},disabled:s==="disconnected"||_})}):c.jsx(Lk,{item:H,pageIndex:n,history:e})},n)})}),c.jsx(Dk,{page:n,total:e.length,onNext:ne,onPrev:ze,onJump:r,hasNew:v,onJumpToLatest:()=>r(e.length-1),className:d==="log"?"opacity-0 pointer-events-none":"opacity-100"}),c.jsx(Bk,{isOpen:k,onClose:()=>N(!1),fullAuto:p.fullAuto,onToggleFullAuto:()=>G({fullAuto:!p.fullAuto}),autoSelectDelay:p.autoSelectDelay,onDelayChange:E=>G({autoSelectDelay:E}),onStop:()=>G({stop:!0}),disabled:s!=="connected"})]})}const $k=zh(document.getElementById("root"));$k.render(c.jsx(Uk,{}));