agent-state-machine 2.2.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +61 -5
- package/lib/file-tree.js +1 -1
- package/lib/llm.js +134 -22
- package/lib/runtime/agent.js +98 -1
- package/lib/runtime/runtime.js +93 -3
- package/lib/setup.js +4 -4
- package/package.json +1 -1
- package/templates/project-builder/config.js +4 -4
- package/vercel-server/public/remote/assets/index-Bnvi3AUu.js +173 -0
- package/vercel-server/public/remote/assets/index-DH2uv4Ll.css +1 -0
- package/vercel-server/public/remote/index.html +2 -2
- package/vercel-server/ui/src/App.jsx +1 -16
- package/vercel-server/ui/src/components/ContentCard.jsx +177 -16
- package/vercel-server/ui/src/components/Footer.jsx +1 -6
- package/vercel-server/ui/src/index.css +53 -0
- package/vercel-server/public/remote/assets/index-BsJsLDKc.css +0 -1
- package/vercel-server/public/remote/assets/index-CmtT6ADh.js +0 -168
|
@@ -0,0 +1,173 @@
|
|
|
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 dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cd={exports:{}},Ni={},Td={exports:{}},U={};/**
|
|
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"),fm=Symbol.for("react.portal"),hm=Symbol.for("react.fragment"),pm=Symbol.for("react.strict_mode"),mm=Symbol.for("react.profiler"),gm=Symbol.for("react.provider"),ym=Symbol.for("react.context"),vm=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),km=Symbol.for("react.memo"),wm=Symbol.for("react.lazy"),lu=Symbol.iterator;function Sm(e){return e===null||typeof e!="object"?null:(e=lu&&e[lu]||e["@@iterator"],typeof e=="function"?e:null)}var Pd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nd=Object.assign,Ed={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Ed,this.updater=n||Pd}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 jd(){}jd.prototype=nr.prototype;function Wl(e,t,n){this.props=e,this.context=t,this.refs=Ed,this.updater=n||Pd}var Hl=Wl.prototype=new jd;Hl.constructor=Wl;Nd(Hl,nr.prototype);Hl.isPureReactComponent=!0;var au=Array.isArray,bd=Object.prototype.hasOwnProperty,Kl={current:null},Ld={key:!0,ref:!0,__self:!0,__source:!0};function Rd(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)bd.call(t,r)&&!Ld.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:Kl.current}}function Cm(e,t){return{$$typeof:es,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ql(e){return typeof e=="object"&&e!==null&&e.$$typeof===es}function Tm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uu=/\/+/g;function Xi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tm(""+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 fm:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Xi(o,0):r,au(s)?(n="",e!=null&&(n=e.replace(uu,"$&/")+"/"),Ds(s,t,n,"",function(u){return u})):s!=null&&(Ql(s)&&(s=Cm(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(uu,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",au(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=Sm(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 Pm(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 be={current:null},Vs={transition:null},Nm={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:Vs,ReactCurrentOwner:Kl};function Md(){throw Error("act(...) is not supported in production builds of React.")}U.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(!Ql(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=nr;U.Fragment=hm;U.Profiler=mm;U.PureComponent=Wl;U.StrictMode=pm;U.Suspense=xm;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nm;U.act=Md;U.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=Nd({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Kl.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)bd.call(t,a)&&!Ld.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}};U.createContext=function(e){return e={$$typeof:ym,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gm,_context:e},e.Consumer=e};U.createElement=Rd;U.createFactory=function(e){var t=Rd.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:vm,render:e}};U.isValidElement=Ql;U.lazy=function(e){return{$$typeof:wm,_payload:{_status:-1,_result:e},_init:Pm}};U.memo=function(e,t){return{$$typeof:km,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Vs.transition;Vs.transition={};try{e()}finally{Vs.transition=t}};U.unstable_act=Md;U.useCallback=function(e,t){return be.current.useCallback(e,t)};U.useContext=function(e){return be.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return be.current.useDeferredValue(e)};U.useEffect=function(e,t){return be.current.useEffect(e,t)};U.useId=function(){return be.current.useId()};U.useImperativeHandle=function(e,t,n){return be.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return be.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return be.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return be.current.useMemo(e,t)};U.useReducer=function(e,t,n){return be.current.useReducer(e,t,n)};U.useRef=function(e){return be.current.useRef(e)};U.useState=function(e){return be.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return be.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return be.current.useTransition()};U.version="18.3.1";Td.exports=U;var S=Td.exports;const Ad=dm(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 Em=S,jm=Symbol.for("react.element"),bm=Symbol.for("react.fragment"),Lm=Object.prototype.hasOwnProperty,Rm=Em.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mm={key:!0,ref:!0,__self:!0,__source:!0};function Dd(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)Lm.call(t,r)&&!Mm.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:jm,type:e,key:i,ref:o,props:s,_owner:Rm.current}}Ni.Fragment=bm;Ni.jsx=Dd;Ni.jsxs=Dd;Cd.exports=Ni;var f=Cd.exports,Vd={exports:{}},Ue={},_d={exports:{}},Od={};/**
|
|
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(b,_){var O=b.length;b.push(_);e:for(;0<O;){var w=O-1>>>1,L=b[w];if(0<s(L,_))b[w]=_,b[O]=L,O=w;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var _=b[0],O=b.pop();if(O!==_){b[0]=O;e:for(var w=0,L=b.length,F=L>>>1;w<F;){var z=2*(w+1)-1,$=b[z],V=z+1,Q=b[V];if(0>s($,O))V<L&&0>s(Q,$)?(b[w]=Q,b[V]=O,w=V):(b[w]=$,b[z]=O,w=z);else if(V<L&&0>s(Q,O))b[w]=Q,b[V]=O,w=V;else break e}}return _}function s(b,_){var O=b.sortIndex-_.sortIndex;return O!==0?O:b.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=[],c=1,d=null,h=3,g=!1,v=!1,x=!1,T=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(b){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=b)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function k(b){if(x=!1,m(b),!v)if(n(a)!==null)v=!0,B(C);else{var _=n(u);_!==null&&te(k,_.startTime-b)}}function C(b,_){v=!1,x&&(x=!1,y(P),P=-1),g=!0;var O=h;try{for(m(_),d=n(a);d!==null&&(!(d.expirationTime>_)||b&&!H());){var w=d.callback;if(typeof w=="function"){d.callback=null,h=d.priorityLevel;var L=w(d.expirationTime<=_);_=e.unstable_now(),typeof L=="function"?d.callback=L:d===n(a)&&r(a),m(_)}else r(a);d=n(a)}if(d!==null)var F=!0;else{var z=n(u);z!==null&&te(k,z.startTime-_),F=!1}return F}finally{d=null,h=O,g=!1}}var j=!1,N=null,P=-1,R=5,M=-1;function H(){return!(e.unstable_now()-M<R)}function ee(){if(N!==null){var b=e.unstable_now();M=b;var _=!0;try{_=N(!0,b)}finally{_?oe():(j=!1,N=null)}}else j=!1}var oe;if(typeof p=="function")oe=function(){p(ee)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,K=D.port2;D.port1.onmessage=ee,oe=function(){K.postMessage(null)}}else oe=function(){T(ee,0)};function B(b){N=b,j||(j=!0,oe())}function te(b,_){P=T(function(){b(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(b){b.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,B(C))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(b){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var O=h;h=_;try{return b()}finally{h=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,_){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var O=h;h=b;try{return _()}finally{h=O}},e.unstable_scheduleCallback=function(b,_,O){var w=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?w+O:w):O=w,b){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=O+L,b={id:c++,callback:_,priorityLevel:b,startTime:O,expirationTime:L,sortIndex:-1},O>w?(b.sortIndex=O,t(u,b),n(a)===null&&b===n(u)&&(x?(y(P),P=-1):x=!0,te(k,O-w))):(b.sortIndex=L,t(a,b),v||g||(v=!0,B(C))),b},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(b){var _=h;return function(){var O=h;h=_;try{return b.apply(this,arguments)}finally{h=O}}}})(Od);_d.exports=Od;var Am=_d.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 Dm=S,ze=Am;function E(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 Id=new Set,Dr={};function xn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Dr[e]=t,e=0;e<t.length;e++)Id.add(t[e])}var St=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=Object.prototype.hasOwnProperty,Vm=/^[: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]*$/,cu={},du={};function _m(e){return _o.call(du,e)?!0:_o.call(cu,e)?!1:Vm.test(e)?du[e]=!0:(cu[e]=!0,!1)}function Om(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 Im(e,t,n,r){if(t===null||typeof t>"u"||Om(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 Le(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 ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Le(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){ke[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Yl(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(Gl,Yl);ke[t]=new Le(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(Gl,Yl);ke[t]=new Le(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(Gl,Yl);ke[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xl(e,t,n,r){var s=ke.hasOwnProperty(t)?ke[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Im(t,n,s,r)&&(n=null),r||s===null?_m(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 Et=Dm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hs=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),Nn=Symbol.for("react.fragment"),Zl=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),Fd=Symbol.for("react.provider"),zd=Symbol.for("react.context"),ql=Symbol.for("react.forward_ref"),Io=Symbol.for("react.suspense"),Fo=Symbol.for("react.suspense_list"),Jl=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),Bd=Symbol.for("react.offscreen"),fu=Symbol.iterator;function ir(e){return e===null||typeof e!="object"?null:(e=fu&&e[fu]||e["@@iterator"],typeof e=="function"?e:null)}var ie=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 Fm(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 zo(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 Nn:return"Fragment";case Pn:return"Portal";case Oo:return"Profiler";case Zl:return"StrictMode";case Io:return"Suspense";case Fo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zd:return(e.displayName||"Context")+".Consumer";case Fd:return(e._context.displayName||"Context")+".Provider";case ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jl:return t=e.displayName||null,t!==null?t:zo(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return zo(e(t))}catch{}}return null}function zm(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 zo(t);case 8:return t===Zl?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bm(e){var t=Ud(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=Bm(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ud(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 Bo(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Wd(e,t){t=t.checked,t!=null&&Xl(e,"checked",t,!1)}function Uo(e,t){Wd(e,t);var n=Kt(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")?$o(e,t.type,n):t.hasOwnProperty("defaultValue")&&$o(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pu(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 $o(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=""+Kt(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 Wo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(yr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function Hd(e,t){var n=Kt(t.value),r=Kt(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 gu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Kd(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 Ho(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Kd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ms,Qd=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},Um=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Um.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Gd(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 Yd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var $m=ie({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 Ko(e,t){if(t){if($m[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Qo(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 Go=null;function ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yo=null,Un=null,$n=null;function yu(e){if(e=rs(e)){if(typeof Yo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ri(t),Yo(e.stateNode,e.type,t))}}function Xd(e){Un?$n?$n.push(e):$n=[e]:Un=e}function Zd(){if(Un){var e=Un,t=$n;if($n=Un=null,yu(e),t)for(e=0;e<t.length;e++)yu(t[e])}}function qd(e,t){return e(t)}function Jd(){}var eo=!1;function ef(e,t,n){if(eo)return e(t,n);eo=!0;try{return qd(e,t,n)}finally{eo=!1,(Un!==null||$n!==null)&&(Jd(),Zd())}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var r=Ri(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(E(231,t,typeof n));return n}var Xo=!1;if(St)try{var or={};Object.defineProperty(or,"passive",{get:function(){Xo=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Xo=!1}function Wm(e,t,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Sr=!1,Ys=null,Xs=!1,Zo=null,Hm={onError:function(e){Sr=!0,Ys=e}};function Km(e,t,n,r,s,i,o,l,a){Sr=!1,Ys=null,Wm.apply(Hm,arguments)}function Qm(e,t,n,r,s,i,o,l,a){if(Km.apply(this,arguments),Sr){if(Sr){var u=Ys;Sr=!1,Ys=null}else throw Error(E(198));Xs||(Xs=!0,Zo=u)}}function kn(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 tf(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 vu(e){if(kn(e)!==e)throw Error(E(188))}function Gm(e){var t=e.alternate;if(!t){if(t=kn(e),t===null)throw Error(E(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 vu(s),e;if(i===r)return vu(s),t;i=i.sibling}throw Error(E(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(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function nf(e){return e=Gm(e),e!==null?rf(e):null}function rf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rf(e);if(t!==null)return t;e=e.sibling}return null}var sf=ze.unstable_scheduleCallback,xu=ze.unstable_cancelCallback,Ym=ze.unstable_shouldYield,Xm=ze.unstable_requestPaint,ae=ze.unstable_now,Zm=ze.unstable_getCurrentPriorityLevel,ta=ze.unstable_ImmediatePriority,of=ze.unstable_UserBlockingPriority,Zs=ze.unstable_NormalPriority,qm=ze.unstable_LowPriority,lf=ze.unstable_IdlePriority,Ei=null,dt=null;function Jm(e){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Ei,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:ng,eg=Math.log,tg=Math.LN2;function ng(e){return e>>>=0,e===0?32:31-(eg(e)/tg|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-rt(t),s=1<<n,r|=e[n],t&=~s;return r}function rg(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 sg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-rt(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=rg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function qo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function af(){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-rt(t),e[t]=n}function ig(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-rt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function na(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var G=0;function uf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cf,ra,df,ff,hf,Jo=!1,vs=[],Ot=null,It=null,Ft=null,Or=new Map,Ir=new Map,At=[],og="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 ku(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Ft=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&&ra(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function lg(e,t,n,r,s){switch(t){case"focusin":return Ot=lr(Ot,e,t,n,r,s),!0;case"dragenter":return It=lr(It,e,t,n,r,s),!0;case"mouseover":return Ft=lr(Ft,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 pf(e){var t=ln(e.target);if(t!==null){var n=kn(t);if(n!==null){if(t=n.tag,t===13){if(t=tf(n),t!==null){e.blockedOn=t,hf(e.priority,function(){df(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=el(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Go=r,n.target.dispatchEvent(r),Go=null}else return t=rs(n),t!==null&&ra(t),e.blockedOn=n,!1;t.shift()}return!0}function wu(e,t,n){_s(e)&&n.delete(t)}function ag(){Jo=!1,Ot!==null&&_s(Ot)&&(Ot=null),It!==null&&_s(It)&&(It=null),Ft!==null&&_s(Ft)&&(Ft=null),Or.forEach(wu),Ir.forEach(wu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,Jo||(Jo=!0,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,ag)))}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(Ot!==null&&ar(Ot,e),It!==null&&ar(It,e),Ft!==null&&ar(Ft,e),Or.forEach(t),Ir.forEach(t),n=0;n<At.length;n++)r=At[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&(n=At[0],n.blockedOn===null);)pf(n),n.blockedOn===null&&At.shift()}var Wn=Et.ReactCurrentBatchConfig,Js=!0;function ug(e,t,n,r){var s=G,i=Wn.transition;Wn.transition=null;try{G=1,sa(e,t,n,r)}finally{G=s,Wn.transition=i}}function cg(e,t,n,r){var s=G,i=Wn.transition;Wn.transition=null;try{G=4,sa(e,t,n,r)}finally{G=s,Wn.transition=i}}function sa(e,t,n,r){if(Js){var s=el(e,t,n,r);if(s===null)fo(e,t,r,ei,n),ku(e,r);else if(lg(s,e,t,n,r))r.stopPropagation();else if(ku(e,r),t&4&&-1<og.indexOf(e)){for(;s!==null;){var i=rs(s);if(i!==null&&cf(i),i=el(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 el(e,t,n,r){if(ei=null,e=ea(r),e=ln(e),e!==null)if(t=kn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tf(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 mf(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(Zm()){case ta:return 1;case of:return 4;case Zs:case qm:return 16;case lf:return 536870912;default:return 16}default:return 16}}var Vt=null,ia=null,Os=null;function gf(){if(Os)return Os;var e,t=ia,n=t.length,r,s="value"in Vt?Vt.value:Vt.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 Su(){return!1}function $e(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:Su,this.isPropagationStopped=Su,this}return ie(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},oa=$e(rr),ns=ie({},rr,{view:0,detail:0}),dg=$e(ns),no,ro,ur,ji=ie({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:la,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}}),Cu=$e(ji),fg=ie({},ji,{dataTransfer:0}),hg=$e(fg),pg=ie({},ns,{relatedTarget:0}),so=$e(pg),mg=ie({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),gg=$e(mg),yg=ie({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vg=$e(yg),xg=ie({},rr,{data:0}),Tu=$e(xg),kg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wg={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"},Sg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sg[e])?!!t[e]:!1}function la(){return Cg}var Tg=ie({},ns,{key:function(e){if(e.key){var t=kg[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"?wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:la,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}}),Pg=$e(Tg),Ng=ie({},ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pu=$e(Ng),Eg=ie({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:la}),jg=$e(Eg),bg=ie({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lg=$e(bg),Rg=ie({},ji,{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}),Mg=$e(Rg),Ag=[9,13,27,32],aa=St&&"CompositionEvent"in window,Cr=null;St&&"documentMode"in document&&(Cr=document.documentMode);var Dg=St&&"TextEvent"in window&&!Cr,yf=St&&(!aa||Cr&&8<Cr&&11>=Cr),Nu=" ",Eu=!1;function vf(e,t){switch(e){case"keyup":return Ag.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Vg(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(Eu=!0,Nu);case"textInput":return e=t.data,e===Nu&&Eu?null:e;default:return null}}function _g(e,t){if(En)return e==="compositionend"||!aa&&vf(e,t)?(e=gf(),Os=ia=Vt=null,En=!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 yf&&t.locale!=="ko"?null:t.data;default:return null}}var Og={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 ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Og[e.type]:t==="textarea"}function kf(e,t,n,r){Xd(r),t=ti(t,"onChange"),0<t.length&&(n=new oa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tr=null,zr=null;function Ig(e){Rf(e,0)}function bi(e){var t=Ln(e);if($d(t))return e}function Fg(e,t){if(e==="change")return t}var wf=!1;if(St){var io;if(St){var oo="oninput"in document;if(!oo){var bu=document.createElement("div");bu.setAttribute("oninput","return;"),oo=typeof bu.oninput=="function"}io=oo}else io=!1;wf=io&&(!document.documentMode||9<document.documentMode)}function Lu(){Tr&&(Tr.detachEvent("onpropertychange",Sf),zr=Tr=null)}function Sf(e){if(e.propertyName==="value"&&bi(zr)){var t=[];kf(t,zr,e,ea(e)),ef(Ig,t)}}function zg(e,t,n){e==="focusin"?(Lu(),Tr=t,zr=n,Tr.attachEvent("onpropertychange",Sf)):e==="focusout"&&Lu()}function Bg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bi(zr)}function Ug(e,t){if(e==="click")return bi(t)}function $g(e,t){if(e==="input"||e==="change")return bi(t)}function Wg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var it=typeof Object.is=="function"?Object.is:Wg;function Br(e,t){if(it(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(!_o.call(t,s)||!it(e[s],t[s]))return!1}return!0}function Ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mu(e,t){var n=Ru(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=Ru(n)}}function Cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){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 ua(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 Hg(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cf(n.ownerDocument.documentElement,n)){if(r!==null&&ua(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=Mu(n,i);var o=Mu(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 Kg=St&&"documentMode"in document&&11>=document.documentMode,jn=null,tl=null,Pr=null,nl=!1;function Au(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nl||jn==null||jn!==Gs(r)||(r=jn,"selectionStart"in r&&ua(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}),Pr&&Br(Pr,r)||(Pr=r,r=ti(tl,"onSelect"),0<r.length&&(t=new oa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bn={animationend:ks("Animation","AnimationEnd"),animationiteration:ks("Animation","AnimationIteration"),animationstart:ks("Animation","AnimationStart"),transitionend:ks("Transition","TransitionEnd")},lo={},Pf={};St&&(Pf=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function Li(e){if(lo[e])return lo[e];if(!bn[e])return e;var t=bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pf)return lo[e]=t[n];return e}var Nf=Li("animationend"),Ef=Li("animationiteration"),jf=Li("animationstart"),bf=Li("transitionend"),Lf=new Map,Du="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 Xt(e,t){Lf.set(e,t),xn(t,[e])}for(var ao=0;ao<Du.length;ao++){var uo=Du[ao],Qg=uo.toLowerCase(),Gg=uo[0].toUpperCase()+uo.slice(1);Xt(Qg,"on"+Gg)}Xt(Nf,"onAnimationEnd");Xt(Ef,"onAnimationIteration");Xt(jf,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(bf,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xn("onBeforeInput",["compositionend","keypress","textInput","paste"]);xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xn("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(" "),Yg=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Vu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Qm(r,t,void 0,e),e.currentTarget=null}function Rf(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;Vu(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;Vu(s,l,u),i=a}}}if(Xs)throw e=Zo,Xs=!1,Zo=null,e}function Z(e,t){var n=t[ll];n===void 0&&(n=t[ll]=new Set);var r=e+"__bubble";n.has(r)||(Mf(t,e,2,!1),n.add(r))}function co(e,t,n){var r=0;t&&(r|=4),Mf(n,e,r,t)}var ws="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[ws]){e[ws]=!0,Id.forEach(function(n){n!=="selectionchange"&&(Yg.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 Mf(e,t,n,r){switch(mf(t)){case 1:var s=ug;break;case 4:s=cg;break;default:s=sa}n=s.bind(null,t,n,e),s=void 0,!Xo||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=ln(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}ef(function(){var u=i,c=ea(n),d=[];e:{var h=Lf.get(e);if(h!==void 0){var g=oa,v=e;switch(e){case"keypress":if(Is(n)===0)break e;case"keydown":case"keyup":g=Pg;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=Cu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=hg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=jg;break;case Nf:case Ef:case jf:g=gg;break;case bf:g=Lg;break;case"scroll":g=dg;break;case"wheel":g=Mg;break;case"copy":case"cut":case"paste":g=vg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Pu}var x=(t&4)!==0,T=!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)))),T)break;p=p.return}0<x.length&&(h=new g(h,v,null,n,c),d.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==Go&&(v=n.relatedTarget||n.fromElement)&&(ln(v)||v[Ct]))break e;if((g||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?ln(v):null,v!==null&&(T=kn(v),v!==T||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(x=Cu,k="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=Pu,k="onPointerLeave",y="onPointerEnter",p="pointer"),T=g==null?h:Ln(g),m=v==null?h:Ln(v),h=new x(k,p+"leave",g,n,c),h.target=T,h.relatedTarget=m,k=null,ln(c)===u&&(x=new x(y,p+"enter",v,n,c),x.target=m,x.relatedTarget=T,k=x),T=k,g&&v)t:{for(x=g,y=v,p=0,m=x;m;m=Tn(m))p++;for(m=0,k=y;k;k=Tn(k))m++;for(;0<p-m;)x=Tn(x),p--;for(;0<m-p;)y=Tn(y),m--;for(;p--;){if(x===y||y!==null&&x===y.alternate)break t;x=Tn(x),y=Tn(y)}x=null}else x=null;g!==null&&_u(d,h,g,x,!1),v!==null&&T!==null&&_u(d,T,v,x,!0)}}e:{if(h=u?Ln(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var C=Fg;else if(ju(h))if(wf)C=$g;else{C=Bg;var j=zg}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Ug);if(C&&(C=C(e,u))){kf(d,C,n,c);break e}j&&j(e,h,u),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&$o(h,"number",h.value)}switch(j=u?Ln(u):window,e){case"focusin":(ju(j)||j.contentEditable==="true")&&(jn=j,tl=u,Pr=null);break;case"focusout":Pr=tl=jn=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,Au(d,n,c);break;case"selectionchange":if(Kg)break;case"keydown":case"keyup":Au(d,n,c)}var N;if(aa)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else En?vf(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(yf&&n.locale!=="ko"&&(En||P!=="onCompositionStart"?P==="onCompositionEnd"&&En&&(N=gf()):(Vt=c,ia="value"in Vt?Vt.value:Vt.textContent,En=!0)),j=ti(u,P),0<j.length&&(P=new Tu(P,e,null,n,c),d.push({event:P,listeners:j}),N?P.data=N:(N=xf(n),N!==null&&(P.data=N)))),(N=Dg?Vg(e,n):_g(e,n))&&(u=ti(u,"onBeforeInput"),0<u.length&&(c=new Tu("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=N))}Rf(d,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 Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _u(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 Xg=/\r\n?/g,Zg=/\u0000|\uFFFD/g;function Ou(e){return(typeof e=="string"?e:""+e).replace(Xg,`
|
|
38
|
+
`).replace(Zg,"")}function Ss(e,t,n){if(t=Ou(t),Ou(e)!==t&&n)throw Error(E(425))}function ni(){}var rl=null,sl=null;function il(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 ol=typeof setTimeout=="function"?setTimeout:void 0,qg=typeof clearTimeout=="function"?clearTimeout:void 0,Iu=typeof Promise=="function"?Promise:void 0,Jg=typeof queueMicrotask=="function"?queueMicrotask:typeof Iu<"u"?function(e){return Iu.resolve(null).then(e).catch(ey)}:ol;function ey(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 zt(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 Fu(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),ct="__reactFiber$"+sr,Wr="__reactProps$"+sr,Ct="__reactContainer$"+sr,ll="__reactEvents$"+sr,ty="__reactListeners$"+sr,ny="__reactHandles$"+sr;function ln(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fu(e);e!==null;){if(n=e[ct])return n;e=Fu(e)}return t}e=n,n=e.parentNode}return null}function rs(e){return e=e[ct]||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(E(33))}function Ri(e){return e[Wr]||null}var al=[],Rn=-1;function Zt(e){return{current:e}}function q(e){0>Rn||(e.current=al[Rn],al[Rn]=null,Rn--)}function Y(e,t){Rn++,al[Rn]=e.current,e.current=t}var Qt={},Pe=Zt(Qt),Ae=Zt(!1),pn=Qt;function Gn(e,t){var n=e.type.contextTypes;if(!n)return Qt;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 De(e){return e=e.childContextTypes,e!=null}function ri(){q(Ae),q(Pe)}function zu(e,t,n){if(Pe.current!==Qt)throw Error(E(168));Y(Pe,t),Y(Ae,n)}function Af(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(E(108,zm(e)||"Unknown",s));return ie({},n,r)}function si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,pn=Pe.current,Y(Pe,e),Y(Ae,Ae.current),!0}function Bu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Af(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,q(Ae),q(Pe),Y(Pe,e)):q(Ae),Y(Ae,n)}var mt=null,Mi=!1,po=!1;function Df(e){mt===null?mt=[e]:mt.push(e)}function ry(e){Mi=!0,Df(e)}function qt(){if(!po&&mt!==null){po=!0;var e=0,t=G;try{var n=mt;for(G=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Mi=!1}catch(s){throw mt!==null&&(mt=mt.slice(e+1)),sf(ta,qt),s}finally{G=t,po=!1}}return null}var Mn=[],An=0,ii=null,oi=0,Ke=[],Qe=0,mn=null,gt=1,yt="";function tn(e,t){Mn[An++]=oi,Mn[An++]=ii,ii=e,oi=t}function Vf(e,t,n){Ke[Qe++]=gt,Ke[Qe++]=yt,Ke[Qe++]=mn,mn=e;var r=gt;e=yt;var s=32-rt(r)-1;r&=~(1<<s),n+=1;var i=32-rt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,gt=1<<32-rt(t)+s|n<<s|r,yt=i+e}else gt=1<<i|n<<s|r,yt=e}function ca(e){e.return!==null&&(tn(e,1),Vf(e,1,0))}function da(e){for(;e===ii;)ii=Mn[--An],Mn[An]=null,oi=Mn[--An],Mn[An]=null;for(;e===mn;)mn=Ke[--Qe],Ke[Qe]=null,yt=Ke[--Qe],Ke[Qe]=null,gt=Ke[--Qe],Ke[Qe]=null}var Fe=null,Ie=null,J=!1,nt=null;function _f(e,t){var n=Ge(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 Uu(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,Fe=e,Ie=zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fe=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mn!==null?{id:gt,overflow:yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ge(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fe=e,Ie=null,!0):!1;default:return!1}}function ul(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cl(e){if(J){var t=Ie;if(t){var n=t;if(!Uu(e,t)){if(ul(e))throw Error(E(418));t=zt(n.nextSibling);var r=Fe;t&&Uu(e,t)?_f(r,n):(e.flags=e.flags&-4097|2,J=!1,Fe=e)}}else{if(ul(e))throw Error(E(418));e.flags=e.flags&-4097|2,J=!1,Fe=e}}}function $u(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Cs(e){if(e!==Fe)return!1;if(!J)return $u(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!il(e.type,e.memoizedProps)),t&&(t=Ie)){if(ul(e))throw Of(),Error(E(418));for(;t;)_f(e,t),t=zt(t.nextSibling)}if($u(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=Fe?zt(e.stateNode.nextSibling):null;return!0}function Of(){for(var e=Ie;e;)e=zt(e.nextSibling)}function Yn(){Ie=Fe=null,J=!1}function fa(e){nt===null?nt=[e]:nt.push(e)}var sy=Et.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(E(309));var r=n.stateNode}if(!r)throw Error(E(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(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Ts(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wu(e){var t=e._init;return t(e._payload)}function If(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=Wt(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 C=m.type;return C===Nn?c(y,p,m.props.children,k,m.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Wu(C)===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 c(y,p,m,k,C){return p===null||p.tag!==7?(p=fn(m,y.mode,k,C),p.return=y,p):(p=s(p,m),p.return=y,p)}function d(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 Pn:return p=So(p,y.mode,m),p.return=y,p;case Lt:var k=p._init;return d(y,k(p._payload),m)}if(yr(p)||ir(p))return p=fn(p,y.mode,m,null),p.return=y,p;Ts(y,p)}return null}function h(y,p,m,k){var C=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:l(y,p,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case hs:return m.key===C?a(y,p,m,k):null;case Pn:return m.key===C?u(y,p,m,k):null;case Lt:return C=m._init,h(y,p,C(m._payload),k)}if(yr(m)||ir(m))return C!==null?null:c(y,p,m,k,null);Ts(y,m)}return null}function g(y,p,m,k,C){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(m)||null,l(p,y,""+k,C);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,C);case Pn:return y=y.get(k.key===null?m:k.key)||null,u(p,y,k,C);case Lt:var j=k._init;return g(y,p,m,j(k._payload),C)}if(yr(k)||ir(k))return y=y.get(m)||null,c(p,y,k,C,null);Ts(p,k)}return null}function v(y,p,m,k){for(var C=null,j=null,N=p,P=p=0,R=null;N!==null&&P<m.length;P++){N.index>P?(R=N,N=null):R=N.sibling;var M=h(y,N,m[P],k);if(M===null){N===null&&(N=R);break}e&&N&&M.alternate===null&&t(y,N),p=i(M,p,P),j===null?C=M:j.sibling=M,j=M,N=R}if(P===m.length)return n(y,N),J&&tn(y,P),C;if(N===null){for(;P<m.length;P++)N=d(y,m[P],k),N!==null&&(p=i(N,p,P),j===null?C=N:j.sibling=N,j=N);return J&&tn(y,P),C}for(N=r(y,N);P<m.length;P++)R=g(N,y,P,m[P],k),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?P:R.key),p=i(R,p,P),j===null?C=R:j.sibling=R,j=R);return e&&N.forEach(function(H){return t(y,H)}),J&&tn(y,P),C}function x(y,p,m,k){var C=ir(m);if(typeof C!="function")throw Error(E(150));if(m=C.call(m),m==null)throw Error(E(151));for(var j=C=null,N=p,P=p=0,R=null,M=m.next();N!==null&&!M.done;P++,M=m.next()){N.index>P?(R=N,N=null):R=N.sibling;var H=h(y,N,M.value,k);if(H===null){N===null&&(N=R);break}e&&N&&H.alternate===null&&t(y,N),p=i(H,p,P),j===null?C=H:j.sibling=H,j=H,N=R}if(M.done)return n(y,N),J&&tn(y,P),C;if(N===null){for(;!M.done;P++,M=m.next())M=d(y,M.value,k),M!==null&&(p=i(M,p,P),j===null?C=M:j.sibling=M,j=M);return J&&tn(y,P),C}for(N=r(y,N);!M.done;P++,M=m.next())M=g(N,y,P,M.value,k),M!==null&&(e&&M.alternate!==null&&N.delete(M.key===null?P:M.key),p=i(M,p,P),j===null?C=M:j.sibling=M,j=M);return e&&N.forEach(function(ee){return t(y,ee)}),J&&tn(y,P),C}function T(y,p,m,k){if(typeof m=="object"&&m!==null&&m.type===Nn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case hs:e:{for(var C=m.key,j=p;j!==null;){if(j.key===C){if(C=m.type,C===Nn){if(j.tag===7){n(y,j.sibling),p=s(j,m.props.children),p.return=y,y=p;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Wu(C)===j.type){n(y,j.sibling),p=s(j,m.props),p.ref=cr(y,j,m),p.return=y,y=p;break e}n(y,j);break}else t(y,j);j=j.sibling}m.type===Nn?(p=fn(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 Pn:e:{for(j=m.key;p!==null;){if(p.key===j)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 Lt:return j=m._init,T(y,p,j(m._payload),k)}if(yr(m))return v(y,p,m,k);if(ir(m))return x(y,p,m,k);Ts(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 T}var Xn=If(!0),Ff=If(!1),li=Zt(null),ai=null,Dn=null,ha=null;function pa(){ha=Dn=ai=null}function ma(e){var t=li.current;q(li),e._currentValue=t}function dl(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,ha=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(ha!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ai===null)throw Error(E(308));Dn=e,ai.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var an=null;function ga(e){an===null?an=[e]:an.push(e)}function zf(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ga(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 ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bf(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&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,ga(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,na(e,n)}}function Hu(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 c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=s.baseState;o=0,c=u=a=null,l=i;do{var h=l.lane,g=l.eventTime;if((r&h)===h){c!==null&&(c=c.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"){d=v.call(g,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,h=typeof v=="function"?v.call(g,d,h):v,h==null)break e;d=ie({},d,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},c===null?(u=c=g,a=d):c=c.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(c===null&&(a=d),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,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);yn|=o,e.lanes=o,e.memoizedState=d}}function Ku(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(E(191,s));s.call(r)}}}var ss={},ft=Zt(ss),Hr=Zt(ss),Kr=Zt(ss);function un(e){if(e===ss)throw Error(E(174));return e}function va(e,t){switch(Y(Kr,t),Y(Hr,e),Y(ft,ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ho(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ho(t,e)}q(ft),Y(ft,t)}function Zn(){q(ft),q(Hr),q(Kr)}function Uf(e){un(Kr.current);var t=un(ft.current),n=Ho(t,e.type);t!==n&&(Y(Hr,e),Y(ft,n))}function xa(e){Hr.current===e&&(q(ft),q(Hr))}var ne=Zt(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 ka(){for(var e=0;e<mo.length;e++)mo[e]._workInProgressVersionPrimary=null;mo.length=0}var zs=Et.ReactCurrentDispatcher,go=Et.ReactCurrentBatchConfig,gn=0,se=null,fe=null,ge=null,di=!1,Nr=!1,Qr=0,iy=0;function we(){throw Error(E(321))}function wa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!it(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,s,i){if(gn=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zs.current=e===null||e.memoizedState===null?uy:cy,e=n(r,s),Nr){i=0;do{if(Nr=!1,Qr=0,25<=i)throw Error(E(301));i+=1,ge=fe=null,t.updateQueue=null,zs.current=dy,e=n(r,s)}while(Nr)}if(zs.current=fi,t=fe!==null&&fe.next!==null,gn=0,ge=fe=se=null,di=!1,t)throw Error(E(300));return e}function Ca(){var e=Qr!==0;return Qr=0,e}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?se.memoizedState=ge=e:ge=ge.next=e,ge}function Ze(){if(fe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=ge===null?se.memoizedState:ge.next;if(t!==null)ge=t,fe=e;else{if(e===null)throw Error(E(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},ge===null?se.memoizedState=ge=e:ge=ge.next=e}return ge}function Gr(e,t){return typeof t=="function"?t(e):t}function yo(e){var t=Ze(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=fe,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 c=u.lane;if((gn&c)===c)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 d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,o=r):a=a.next=d,se.lanes|=c,yn|=c}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,it(r,t.memoizedState)||(Me=!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,se.lanes|=i,yn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vo(e){var t=Ze(),n=t.queue;if(n===null)throw Error(E(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);it(i,t.memoizedState)||(Me=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $f(){}function Wf(e,t){var n=se,r=Ze(),s=t(),i=!it(r.memoizedState,s);if(i&&(r.memoizedState=s,Me=!0),r=r.queue,Ta(Qf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Yr(9,Kf.bind(null,n,r,s,t),void 0,null),ye===null)throw Error(E(349));gn&30||Hf(n,t,s)}return s}function Hf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kf(e,t,n,r){t.value=n,t.getSnapshot=r,Gf(t)&&Yf(e)}function Qf(e,t,n){return n(function(){Gf(t)&&Yf(e)})}function Gf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!it(e,n)}catch{return!0}}function Yf(e){var t=Tt(e,1);t!==null&&st(t,e,1,-1)}function Qu(e){var t=ut();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=ay.bind(null,se,e),[t.memoizedState,e]}function Yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.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 Xf(){return Ze().memoizedState}function Bs(e,t,n,r){var s=ut();se.flags|=e,s.memoizedState=Yr(1|t,n,void 0,r===void 0?null:r)}function Ai(e,t,n,r){var s=Ze();r=r===void 0?null:r;var i=void 0;if(fe!==null){var o=fe.memoizedState;if(i=o.destroy,r!==null&&wa(r,o.deps)){s.memoizedState=Yr(t,n,i,r);return}}se.flags|=e,s.memoizedState=Yr(1|t,n,i,r)}function Gu(e,t){return Bs(8390656,8,e,t)}function Ta(e,t){return Ai(2048,8,e,t)}function Zf(e,t){return Ai(4,2,e,t)}function qf(e,t){return Ai(4,4,e,t)}function Jf(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 eh(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,Jf.bind(null,t,e),n)}function Pa(){}function th(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nh(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rh(e,t,n){return gn&21?(it(n,t)||(n=af(),se.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=n)}function oy(e,t){var n=G;G=n!==0&&4>n?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{G=n,go.transition=r}}function sh(){return Ze().memoizedState}function ly(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ih(e))oh(t,n);else if(n=zf(e,t,n,r),n!==null){var s=je();st(n,e,r,s),lh(n,t,r)}}function ay(e,t,n){var r=$t(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ih(e))oh(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,it(l,o)){var a=t.interleaved;a===null?(s.next=s,ga(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=zf(e,t,s,r),n!==null&&(s=je(),st(n,e,r,s),lh(n,t,r))}}function ih(e){var t=e.alternate;return e===se||t!==null&&t===se}function oh(e,t){Nr=di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}var fi={readContext:Xe,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},uy={readContext:Xe,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bs(4194308,4,Jf.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=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();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=ly.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Qu,useDebugValue:Pa,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Qu(!1),t=e[0];return e=oy.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=ut();if(J){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ye===null)throw Error(E(349));gn&30||Hf(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Gu(Qf.bind(null,r,i,e),[e]),r.flags|=2048,Yr(9,Kf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ut(),t=ye.identifierPrefix;if(J){var n=yt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=iy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cy={readContext:Xe,useCallback:th,useContext:Xe,useEffect:Ta,useImperativeHandle:eh,useInsertionEffect:Zf,useLayoutEffect:qf,useMemo:nh,useReducer:yo,useRef:Xf,useState:function(){return yo(Gr)},useDebugValue:Pa,useDeferredValue:function(e){var t=Ze();return rh(t,fe.memoizedState,e)},useTransition:function(){var e=yo(Gr)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Wf,useId:sh,unstable_isNewReconciler:!1},dy={readContext:Xe,useCallback:th,useContext:Xe,useEffect:Ta,useImperativeHandle:eh,useInsertionEffect:Zf,useLayoutEffect:qf,useMemo:nh,useReducer:vo,useRef:Xf,useState:function(){return vo(Gr)},useDebugValue:Pa,useDeferredValue:function(e){var t=Ze();return fe===null?t.memoizedState=e:rh(t,fe.memoizedState,e)},useTransition:function(){var e=vo(Gr)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Wf,useId:sh,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Di={isMounted:function(e){return(e=e._reactInternals)?kn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=je(),s=$t(e),i=xt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Bt(e,i,s),t!==null&&(st(t,e,s,r),Fs(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=je(),s=$t(e),i=xt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Bt(e,i,s),t!==null&&(st(t,e,s,r),Fs(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=je(),r=$t(e),s=xt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Bt(e,s,r),t!==null&&(st(t,e,r,n),Fs(t,e,r))}};function Yu(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 ah(e,t,n){var r=!1,s=Qt,i=t.contextType;return typeof i=="object"&&i!==null?i=Xe(i):(s=De(t)?pn:Pe.current,r=t.contextTypes,i=(r=r!=null)?Gn(e,s):Qt),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 Xu(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 hl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ya(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Xe(i):(i=De(t)?pn:Pe.current,s.context=Gn(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(fl(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+=Fm(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 pl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fy=typeof WeakMap=="function"?WeakMap:Map;function uh(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi||(pi=!0,Tl=r),pl(e,t)},n}function ch(e,t,n){n=xt(-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(){pl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){pl(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fy;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=Ny.bind(null,e,t,n),t.then(e,e))}function qu(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 Ju(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=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var hy=Et.ReactCurrentOwner,Me=!1;function Ee(e,t,n,r){t.child=e===null?Ff(t,null,n,r):Xn(t,e.child,n,r)}function ec(e,t,n,r,s){n=n.render;var i=t.ref;return Hn(t,s),r=Sa(e,t,n,r,i,s),n=Ca(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Pt(e,t,s)):(J&&n&&ca(t),t.flags|=1,Ee(e,t,r,s),t.child)}function tc(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Aa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,dh(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 Pt(e,t,s)}return t.flags|=1,e=Wt(i,r),e.ref=t.ref,e.return=t,t.child=e}function dh(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Br(i,r)&&e.ref===t.ref)if(Me=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Me=!0);else return t.lanes=e.lanes,Pt(e,t,s)}return ml(e,t,n,r,s)}function fh(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},Y(_n,Oe),Oe|=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,Y(_n,Oe),Oe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Y(_n,Oe),Oe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Y(_n,Oe),Oe|=r;return Ee(e,t,s,n),t.child}function hh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ml(e,t,n,r,s){var i=De(n)?pn:Pe.current;return i=Gn(t,i),Hn(t,s),n=Sa(e,t,n,r,i,s),r=Ca(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Pt(e,t,s)):(J&&r&&ca(t),t.flags|=1,Ee(e,t,n,s),t.child)}function nc(e,t,n,r,s){if(De(n)){var i=!0;si(t)}else i=!1;if(Hn(t,s),t.stateNode===null)Us(e,t),ah(t,n,r),hl(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=Xe(u):(u=De(n)?pn:Pe.current,u=Gn(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Xu(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||Ae.current||Rt?(typeof c=="function"&&(fl(t,n,c,r),a=t.memoizedState),(l=Rt||Yu(t,n,l,r,h,a,u))?(d||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,Bf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:et(t.type,l),o.props=u,d=t.pendingProps,h=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Xe(a):(a=De(n)?pn:Pe.current,a=Gn(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||h!==a)&&Xu(t,o,r,a),Rt=!1,h=t.memoizedState,o.state=h,ui(t,r,o,s);var v=t.memoizedState;l!==d||h!==v||Ae.current||Rt?(typeof g=="function"&&(fl(t,n,g,r),v=t.memoizedState),(u=Rt||Yu(t,n,u,r,h,v,a)||!1)?(c||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 gl(e,t,n,r,i,s)}function gl(e,t,n,r,s,i){hh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Bu(t,n,!1),Pt(e,t,i);r=t.stateNode,hy.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)):Ee(e,t,l,i),t.memoizedState=r.state,s&&Bu(t,n,!0),t.child}function ph(e){var t=e.stateNode;t.pendingContext?zu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zu(e,t.context,!1),va(e,t.containerInfo)}function rc(e,t,n,r,s){return Yn(),fa(s),t.flags|=256,Ee(e,t,n,r),t.child}var yl={dehydrated:null,treeContext:null,retryLane:0};function vl(e){return{baseLanes:e,cachePool:null,transitions:null}}function mh(e,t,n){var r=t.pendingProps,s=ne.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),Y(ne,s&1),e===null)return cl(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=fn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vl(n),t.memoizedState=yl,e):Na(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return py(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=Wt(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Wt(l,i):(i=fn(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?vl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=yl,r}return i=e.child,e=i.sibling,r=Wt(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 Na(e,t){return t=Oi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ps(e,t,n,r){return r!==null&&fa(r),Xn(t,e.child,null,n),e=Na(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function py(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=xo(Error(E(422))),Ps(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=fn(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=vl(o),t.memoizedState=yl,i);if(!(t.mode&1))return Ps(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(E(419)),r=xo(i,r,void 0),Ps(e,t,o,r)}if(l=(o&e.childLanes)!==0,Me||l){if(r=ye,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),st(r,e,s,-1))}return Ma(),r=xo(Error(E(421))),Ps(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ey.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ie=zt(s.nextSibling),Fe=t,J=!0,nt=null,e!==null&&(Ke[Qe++]=gt,Ke[Qe++]=yt,Ke[Qe++]=mn,gt=e.id,yt=e.overflow,mn=t),t=Na(t,r.children),t.flags|=4096,t)}function sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dl(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 gh(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ee(e,t,r.children,n),r=ne.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&&sc(e,n,t);else if(e.tag===19)sc(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(Y(ne,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 Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function my(e,t,n){switch(t.tag){case 3:ph(t),Yn();break;case 5:Uf(t);break;case 1:De(t.type)&&si(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Y(li,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(ne,ne.current&1),t.flags|=128,null):n&t.child.childLanes?mh(e,t,n):(Y(ne,ne.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);Y(ne,ne.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Y(ne,ne.current),r)break;return null;case 22:case 23:return t.lanes=0,fh(e,t,n)}return Pt(e,t,n)}var yh,xl,vh,xh;yh=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}};xl=function(){};vh=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,un(ft.current);var i=null;switch(n){case"input":s=Bo(e,s),r=Bo(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Wo(e,s),r=Wo(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ni)}Ko(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"&&Z("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)}};xh=function(e,t,n,r){n!==r&&(t.flags|=4)};function dr(e,t){if(!J)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 Se(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 gy(e,t,n){var r=t.pendingProps;switch(da(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return De(t.type)&&ri(),Se(t),null;case 3:return r=t.stateNode,Zn(),q(Ae),q(Pe),ka(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(El(nt),nt=null))),xl(e,t),Se(t),null;case 5:xa(t);var s=un(Kr.current);if(n=t.type,e!==null&&t.stateNode!=null)vh(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Se(t),null}if(e=un(ft.current),Cs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ct]=t,r[Wr]=i,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(s=0;s<xr.length;s++)Z(xr[s],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":hu(r,i),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Z("invalid",r);break;case"textarea":mu(r,i),Z("invalid",r)}Ko(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"&&Z("scroll",r)}switch(n){case"input":ps(r),pu(r,i,!0);break;case"textarea":ps(r),gu(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=Kd(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[ct]=t,e[Wr]=r,yh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Qo(n,r),n){case"dialog":Z("cancel",e),Z("close",e),s=r;break;case"iframe":case"object":case"embed":Z("load",e),s=r;break;case"video":case"audio":for(s=0;s<xr.length;s++)Z(xr[s],e);s=r;break;case"source":Z("error",e),s=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),s=r;break;case"details":Z("toggle",e),s=r;break;case"input":hu(e,r),s=Bo(e,r),Z("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),Z("invalid",e);break;case"textarea":mu(e,r),s=Wo(e,r),Z("invalid",e);break;default:s=r}Ko(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Yd(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Qd(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"&&Z("scroll",e):a!=null&&Xl(e,i,a,o))}switch(n){case"input":ps(e),pu(e,r,!1);break;case"textarea":ps(e),gu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(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 Se(t),null;case 6:if(e&&t.stateNode!=null)xh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=un(Kr.current),un(ft.current),Cs(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(i=r.nodeValue!==n)&&(e=Fe,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[ct]=t,t.stateNode=r}return Se(t),null;case 13:if(q(ne),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Ie!==null&&t.mode&1&&!(t.flags&128))Of(),Yn(),t.flags|=98560,i=!1;else if(i=Cs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[ct]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),i=!1}else nt!==null&&(El(nt),nt=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||ne.current&1?he===0&&(he=3):Ma())),t.updateQueue!==null&&(t.flags|=4),Se(t),null);case 4:return Zn(),xl(e,t),e===null&&Ur(t.stateNode.containerInfo),Se(t),null;case 10:return ma(t.type._context),Se(t),null;case 17:return De(t.type)&&ri(),Se(t),null;case 19:if(q(ne),i=t.memoizedState,i===null)return Se(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)dr(i,!1);else{if(he!==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 Y(ne,ne.current&1|2),t.child}e=e.sibling}i.tail!==null&&ae()>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&&!J)return Se(t),null}else 2*ae()-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=ae(),t.sibling=null,n=ne.current,Y(ne,r?n&1|2:n&1),t):(Se(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?Oe&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function yy(e,t){switch(da(t),t.tag){case 1:return De(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),q(Ae),q(Pe),ka(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xa(t),null;case 13:if(q(ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ne),null;case 4:return Zn(),null;case 10:return ma(t.type._context),null;case 22:case 23:return Ra(),null;case 24:return null;default:return null}}var Ns=!1,Te=!1,vy=typeof WeakSet=="function"?WeakSet:Set,A=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 kl(e,t,n){try{n()}catch(r){le(e,t,r)}}var ic=!1;function xy(e,t){if(rl=Js,e=Tf(),ua(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,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||s!==0&&d.nodeType!==3||(l=o+s),d!==i||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===s&&(l=o),h===i&&++c===r&&(a=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},Js=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;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,T=v.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:et(t.type,x),T);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(E(163))}}catch(k){le(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return v=ic,ic=!1,v}function Er(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&&kl(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 wl(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 kh(e){var t=e.alternate;t!==null&&(e.alternate=null,kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[Wr],delete t[ll],delete t[ty],delete t[ny])),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 wh(e){return e.tag===5||e.tag===3||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wh(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 Sl(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(Sl(e,t,n),e=e.sibling;e!==null;)Sl(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 ve=null,tt=!1;function jt(e,t,n){for(n=n.child;n!==null;)Sh(e,t,n),n=n.sibling}function Sh(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Ei,n)}catch{}switch(n.tag){case 5:Te||Vn(n,t);case 6:var r=ve,s=tt;ve=null,jt(e,t,n),ve=r,tt=s,ve!==null&&(tt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(tt?(e=ve,n=n.stateNode,e.nodeType===8?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),Fr(e)):ho(ve,n.stateNode));break;case 4:r=ve,s=tt,ve=n.stateNode.containerInfo,tt=!0,jt(e,t,n),ve=r,tt=s;break;case 0:case 11:case 14:case 15:if(!Te&&(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)&&kl(n,t,o),s=s.next}while(s!==r)}jt(e,t,n);break;case 1:if(!Te&&(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)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,jt(e,t,n),Te=r):jt(e,t,n);break;default:jt(e,t,n)}}function lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vy),t.forEach(function(r){var s=jy.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Je(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:ve=l.stateNode,tt=!1;break e;case 3:ve=l.stateNode.containerInfo,tt=!0;break e;case 4:ve=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(ve===null)throw Error(E(160));Sh(i,o,s),ve=null,tt=!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;)Ch(t,e),t=t.sibling}function Ch(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),at(e),r&4){try{Er(3,e,e.return),Vi(3,e)}catch(x){le(e,e.return,x)}try{Er(5,e,e.return)}catch(x){le(e,e.return,x)}}break;case 1:Je(t,e),at(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(Je(t,e),at(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&&Wd(s,i),Qo(l,o);var u=Qo(l,i);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?Yd(s,d):c==="dangerouslySetInnerHTML"?Qd(s,d):c==="children"?Vr(s,d):Xl(s,c,d,u)}switch(l){case"input":Uo(s,i);break;case"textarea":Hd(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(Je(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){le(e,e.return,x)}}break;case 3:if(Je(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fr(t.containerInfo)}catch(x){le(e,e.return,x)}break;case 4:Je(t,e),at(e);break;case 13:Je(t,e),at(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(ba=ae())),r&4&&lc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Te=(u=Te)||c,Je(t,e),Te=u):Je(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(A=e,c=e.child;c!==null;){for(d=A=c;A!==null;){switch(h=A,g=h.child,h.tag){case 0:case 11:case 14:case 15:Er(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){uc(d);continue}}g!==null?(g.return=h,A=g):uc(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Gd("display",o))}catch(x){le(e,e.return,x)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(x){le(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Je(t,e),at(e),r&4&&lc(e);break;case 21:break;default:Je(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wh(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Vr(s,""),r.flags&=-33);var i=oc(e);Cl(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=oc(e);Sl(e,l,o);break;default:throw Error(E(161))}}catch(a){le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ky(e,t,n){A=e,Th(e)}function Th(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var s=A,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ns;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||Te;l=Ns;var u=Te;if(Ns=o,(Te=a)&&!u)for(A=s;A!==null;)o=A,a=o.child,o.tag===22&&o.memoizedState!==null?cc(s):a!==null?(a.return=o,A=a):cc(s);for(;i!==null;)A=i,Th(i),i=i.sibling;A=s,Ns=l,Te=u}ac(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,A=i):ac(e)}}function ac(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Te||Vi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Te)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ku(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}Ku(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 c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Fr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}Te||t.flags&512&&wl(t)}catch(h){le(t,t.return,h)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function uc(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function cc(e){for(;A!==null;){var t=A;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{wl(t)}catch(a){le(t,i,a)}break;case 5:var o=t.return;try{wl(t)}catch(a){le(t,o,a)}}}catch(a){le(t,t.return,a)}if(t===e){A=null;break}var l=t.sibling;if(l!==null){l.return=t.return,A=l;break}A=t.return}}var wy=Math.ceil,hi=Et.ReactCurrentDispatcher,Ea=Et.ReactCurrentOwner,Ye=Et.ReactCurrentBatchConfig,W=0,ye=null,de=null,xe=0,Oe=0,_n=Zt(0),he=0,Xr=null,yn=0,_i=0,ja=0,jr=null,Re=null,ba=0,Jn=1/0,pt=null,pi=!1,Tl=null,Ut=null,Es=!1,_t=null,mi=0,br=0,Pl=null,$s=-1,Ws=0;function je(){return W&6?ae():$s!==-1?$s:$s=ae()}function $t(e){return e.mode&1?W&2&&xe!==0?xe&-xe:sy.transition!==null?(Ws===0&&(Ws=af()),Ws):(e=G,e!==0||(e=window.event,e=e===void 0?16:mf(e.type)),e):1}function st(e,t,n,r){if(50<br)throw br=0,Pl=null,Error(E(185));ts(e,n,r),(!(W&2)||e!==ye)&&(e===ye&&(!(W&2)&&(_i|=n),he===4&&Dt(e,xe)),Ve(e,r),n===1&&W===0&&!(t.mode&1)&&(Jn=ae()+500,Mi&&qt()))}function Ve(e,t){var n=e.callbackNode;sg(e,t);var r=qs(e,e===ye?xe:0);if(r===0)n!==null&&xu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xu(n),t===1)e.tag===0?ry(dc.bind(null,e)):Df(dc.bind(null,e)),Jg(function(){!(W&6)&&qt()}),n=null;else{switch(uf(r)){case 1:n=ta;break;case 4:n=of;break;case 16:n=Zs;break;case 536870912:n=lf;break;default:n=Zs}n=Mh(n,Ph.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ph(e,t){if($s=-1,Ws=0,W&6)throw Error(E(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=qs(e,e===ye?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gi(e,r);else{t=r;var s=W;W|=2;var i=Eh();(ye!==e||xe!==t)&&(pt=null,Jn=ae()+500,dn(e,t));do try{Ty();break}catch(l){Nh(e,l)}while(!0);pa(),hi.current=i,W=s,de!==null?t=0:(ye=null,xe=0,t=he)}if(t!==0){if(t===2&&(s=qo(e),s!==0&&(r=s,t=Nl(e,s))),t===1)throw n=Xr,dn(e,0),Dt(e,r),Ve(e,ae()),n;if(t===6)Dt(e,r);else{if(s=e.current.alternate,!(r&30)&&!Sy(s)&&(t=gi(e,r),t===2&&(i=qo(e),i!==0&&(r=i,t=Nl(e,i))),t===1))throw n=Xr,dn(e,0),Dt(e,r),Ve(e,ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:nn(e,Re,pt);break;case 3:if(Dt(e,r),(r&130023424)===r&&(t=ba+500-ae(),10<t)){if(qs(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){je(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ol(nn.bind(null,e,Re,pt),t);break}nn(e,Re,pt);break;case 4:if(Dt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-rt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wy(r/1960))-r,10<r){e.timeoutHandle=ol(nn.bind(null,e,Re,pt),r);break}nn(e,Re,pt);break;case 5:nn(e,Re,pt);break;default:throw Error(E(329))}}}return Ve(e,ae()),e.callbackNode===n?Ph.bind(null,e):null}function Nl(e,t){var n=jr;return e.current.memoizedState.isDehydrated&&(dn(e,t).flags|=256),e=gi(e,t),e!==2&&(t=Re,Re=n,t!==null&&El(t)),e}function El(e){Re===null?Re=e:Re.push.apply(Re,e)}function Sy(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(!it(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 Dt(e,t){for(t&=~ja,t&=~_i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function dc(e){if(W&6)throw Error(E(327));Kn();var t=qs(e,0);if(!(t&1))return Ve(e,ae()),null;var n=gi(e,t);if(e.tag!==0&&n===2){var r=qo(e);r!==0&&(t=r,n=Nl(e,r))}if(n===1)throw n=Xr,dn(e,0),Dt(e,t),Ve(e,ae()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,Re,pt),Ve(e,ae()),null}function La(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Jn=ae()+500,Mi&&qt())}}function vn(e){_t!==null&&_t.tag===0&&!(W&6)&&Kn();var t=W;W|=1;var n=Ye.transition,r=G;try{if(Ye.transition=null,G=1,e)return e()}finally{G=r,Ye.transition=n,W=t,!(W&6)&&qt()}}function Ra(){Oe=_n.current,q(_n)}function dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qg(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(da(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ri();break;case 3:Zn(),q(Ae),q(Pe),ka();break;case 5:xa(r);break;case 4:Zn();break;case 13:q(ne);break;case 19:q(ne);break;case 10:ma(r.type._context);break;case 22:case 23:Ra()}n=n.return}if(ye=e,de=e=Wt(e.current,null),xe=Oe=t,he=0,Xr=null,ja=_i=yn=0,Re=jr=null,an!==null){for(t=0;t<an.length;t++)if(n=an[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}an=null}return e}function Nh(e,t){do{var n=de;try{if(pa(),zs.current=fi,di){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}di=!1}if(gn=0,ge=fe=se=null,Nr=!1,Qr=0,Ea.current=null,n===null||n.return===null){he=1,Xr=t,de=null;break}e:{var i=e,o=n.return,l=n,a=t;if(t=xe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=qu(o);if(g!==null){g.flags&=-257,Ju(g,o,l,i,t),g.mode&1&&Zu(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)){Zu(i,u,t),Ma();break e}a=Error(E(426))}}else if(J&&l.mode&1){var T=qu(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Ju(T,o,l,i,t),fa(qn(a,l));break e}}i=a=qn(a,l),he!==4&&(he=2),jr===null?jr=[i]:jr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=uh(i,a,t);Hu(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"&&(Ut===null||!Ut.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=ch(i,l,t);Hu(i,k);break e}}i=i.return}while(i!==null)}bh(n)}catch(C){t=C,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function Eh(){var e=hi.current;return hi.current=fi,e===null?fi:e}function Ma(){(he===0||he===3||he===2)&&(he=4),ye===null||!(yn&268435455)&&!(_i&268435455)||Dt(ye,xe)}function gi(e,t){var n=W;W|=2;var r=Eh();(ye!==e||xe!==t)&&(pt=null,dn(e,t));do try{Cy();break}catch(s){Nh(e,s)}while(!0);if(pa(),W=n,hi.current=r,de!==null)throw Error(E(261));return ye=null,xe=0,he}function Cy(){for(;de!==null;)jh(de)}function Ty(){for(;de!==null&&!Ym();)jh(de)}function jh(e){var t=Rh(e.alternate,e,Oe);e.memoizedProps=e.pendingProps,t===null?bh(e):de=t,Ea.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yy(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=gy(n,t,Oe),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function nn(e,t,n){var r=G,s=Ye.transition;try{Ye.transition=null,G=1,Py(e,t,n,r)}finally{Ye.transition=s,G=r}return null}function Py(e,t,n,r){do Kn();while(_t!==null);if(W&6)throw Error(E(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(E(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ig(e,i),e===ye&&(de=ye=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Es||(Es=!0,Mh(Zs,function(){return Kn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ye.transition,Ye.transition=null;var o=G;G=1;var l=W;W|=4,Ea.current=null,xy(e,n),Ch(n,e),Hg(sl),Js=!!rl,sl=rl=null,e.current=n,ky(n),Xm(),W=l,G=o,Ye.transition=i}else e.current=n;if(Es&&(Es=!1,_t=e,mi=s),i=e.pendingLanes,i===0&&(Ut=null),Jm(n.stateNode),Ve(e,ae()),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===Pl?br++:(br=0,Pl=e):br=0,qt(),null}function Kn(){if(_t!==null){var e=uf(mi),t=Ye.transition,n=G;try{if(Ye.transition=null,G=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,mi=0,W&6)throw Error(E(331));var s=W;for(W|=4,A=e.current;A!==null;){var i=A,o=i.child;if(A.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(A=u;A!==null;){var c=A;switch(c.tag){case 0:case 11:case 15:Er(8,c,i)}var d=c.child;if(d!==null)d.return=c,A=d;else for(;A!==null;){c=A;var h=c.sibling,g=c.return;if(kh(c),c===u){A=null;break}if(h!==null){h.return=g,A=h;break}A=g}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var T=x.sibling;x.sibling=null,x=T}while(x!==null)}}A=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,A=o;else e:for(;A!==null;){if(i=A,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Er(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,A=y;break e}A=i.return}}var p=e.current;for(A=p;A!==null;){o=A;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,A=m;else e:for(o=p;A!==null;){if(l=A,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vi(9,l)}}catch(C){le(l,l.return,C)}if(l===o){A=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,A=k;break e}A=l.return}}if(W=s,qt(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Ei,e)}catch{}r=!0}return r}finally{G=n,Ye.transition=t}}return!1}function fc(e,t,n){t=qn(n,t),t=uh(e,t,1),e=Bt(e,t,1),t=je(),e!==null&&(ts(e,1,t),Ve(e,t))}function le(e,t,n){if(e.tag===3)fc(e,e,n);else for(;t!==null;){if(t.tag===3){fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=qn(n,e),e=ch(t,e,1),t=Bt(t,e,1),e=je(),t!==null&&(ts(t,1,e),Ve(t,e));break}}t=t.return}}function Ny(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=je(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(xe&n)===n&&(he===4||he===3&&(xe&130023424)===xe&&500>ae()-ba?dn(e,0):ja|=n),Ve(e,t)}function Lh(e,t){t===0&&(e.mode&1?(t=ys,ys<<=1,!(ys&130023424)&&(ys=4194304)):t=1);var n=je();e=Tt(e,t),e!==null&&(ts(e,t,n),Ve(e,n))}function Ey(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lh(e,n)}function jy(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(E(314))}r!==null&&r.delete(t),Lh(e,n)}var Rh;Rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,my(e,t,n);Me=!!(e.flags&131072)}else Me=!1,J&&t.flags&1048576&&Vf(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,Pe.current);Hn(t,n),s=Sa(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,De(r)?(i=!0,si(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ya(t),s.updater=Di,t.stateNode=s,s._reactInternals=t,hl(t,r,e,n),t=gl(null,t,r,!0,i,n)):(t.tag=0,J&&i&&ca(t),Ee(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=Ly(r),e=et(r,e),s){case 0:t=ml(null,t,r,e,n);break e;case 1:t=nc(null,t,r,e,n);break e;case 11:t=ec(null,t,r,e,n);break e;case 14:t=tc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),ml(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),nc(e,t,r,s,n);case 3:e:{if(ph(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Bf(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(E(423)),t),t=rc(e,t,r,n,s);break e}else if(r!==s){s=qn(Error(E(424)),t),t=rc(e,t,r,n,s);break e}else for(Ie=zt(t.stateNode.containerInfo.firstChild),Fe=t,J=!0,nt=null,n=Ff(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===s){t=Pt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return Uf(t),e===null&&cl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,il(r,s)?o=null:i!==null&&il(r,i)&&(t.flags|=32),hh(e,t),Ee(e,t,o,n),t.child;case 6:return e===null&&cl(t),null;case 13:return mh(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),ec(e,t,r,s,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(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,Y(li,r._currentValue),r._currentValue=o,i!==null)if(it(i.value,o)){if(i.children===s.children&&!Ae.current){t=Pt(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=xt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),dl(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(E(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),dl(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}Ee(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Hn(t,n),s=Xe(s),r=r(s),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,s=et(r,t.pendingProps),s=et(r.type,s),tc(e,t,r,s,n);case 15:return dh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Us(e,t),t.tag=1,De(r)?(e=!0,si(t)):e=!1,Hn(t,n),ah(t,r,s),hl(t,r,s,n),gl(null,t,r,!0,e,n);case 19:return gh(e,t,n);case 22:return fh(e,t,n)}throw Error(E(156,t.tag))};function Mh(e,t){return sf(e,t)}function by(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 Ge(e,t,n,r){return new by(e,t,n,r)}function Aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ly(e){if(typeof e=="function")return Aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ql)return 11;if(e===Jl)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ge(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")Aa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nn:return fn(n.children,s,i,t);case Zl:o=8,s|=8;break;case Oo:return e=Ge(12,n,t,s|2),e.elementType=Oo,e.lanes=i,e;case Io:return e=Ge(13,n,t,s),e.elementType=Io,e.lanes=i,e;case Fo:return e=Ge(19,n,t,s),e.elementType=Fo,e.lanes=i,e;case Bd:return Oi(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fd:o=10;break e;case zd:o=9;break e;case ql:o=11;break e;case Jl:o=14;break e;case Lt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function fn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Oi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Bd,e.lanes=n,e.stateNode={isHidden:!1},e}function wo(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ry(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 Da(e,t,n,r,s,i,o,l,a){return e=new Ry(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(i),e}function My(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ah(e){if(!e)return Qt;e=e._reactInternals;e:{if(kn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(De(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(De(n))return Af(e,n,t)}return t}function Dh(e,t,n,r,s,i,o,l,a){return e=Da(n,r,!0,e,s,i,o,l,a),e.context=Ah(null),n=e.current,r=je(),s=$t(n),i=xt(r,s),i.callback=t??null,Bt(n,i,s),e.current.lanes=s,ts(e,s,r),Ve(e,r),e}function Ii(e,t,n,r){var s=t.current,i=je(),o=$t(s);return n=Ah(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(s,t,o),e!==null&&(st(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 hc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Va(e,t){hc(e,t),(e=e.alternate)&&hc(e,t)}function Ay(){return null}var Vh=typeof reportError=="function"?reportError:function(e){console.error(e)};function _a(e){this._internalRoot=e}Fi.prototype.render=_a.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Ii(e,t,null,null)};Fi.prototype.unmount=_a.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(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=ff();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&t!==0&&t<At[n].priority;n++);At.splice(n,0,e),n===0&&pf(e)}};function Oa(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 pc(){}function Dy(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=Dh(t,r,e,0,null,!1,!1,"",pc);return e._reactRootContainer=o,e[Ct]=o.current,Ur(e.nodeType===8?e.parentNode:e),vn(),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=Da(e,0,!1,null,null,!1,!1,"",pc);return e._reactRootContainer=a,e[Ct]=a.current,Ur(e.nodeType===8?e.parentNode:e),vn(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=Dy(n,t,e,s,r);return yi(o)}cf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vr(t.pendingLanes);n!==0&&(na(t,n|1),Ve(t,ae()),!(W&6)&&(Jn=ae()+500,qt()))}break;case 13:vn(function(){var r=Tt(e,1);if(r!==null){var s=je();st(r,e,1,s)}}),Va(e,1)}};ra=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=je();st(t,e,134217728,n)}Va(e,134217728)}};df=function(e){if(e.tag===13){var t=$t(e),n=Tt(e,t);if(n!==null){var r=je();st(n,e,t,r)}Va(e,t)}};ff=function(){return G};hf=function(e,t){var n=G;try{return G=e,t()}finally{G=n}};Yo=function(e,t,n){switch(t){case"input":if(Uo(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=Ri(r);if(!s)throw Error(E(90));$d(r),Uo(r,s)}}}break;case"textarea":Hd(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};qd=La;Jd=vn;var Vy={usingClientEntryPoint:!1,Events:[rs,Ln,Ri,Xd,Zd,La]},fr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_y={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:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nf(e),e===null?null:e.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||Ay,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 js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!js.isDisabled&&js.supportsFiber)try{Ei=js.inject(_y),dt=js}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vy;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oa(t))throw Error(E(200));return My(e,t,null,n)};Ue.createRoot=function(e,t){if(!Oa(e))throw Error(E(299));var n=!1,r="",s=Vh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Da(e,1,!1,null,null,n,!1,r,s),e[Ct]=t.current,Ur(e.nodeType===8?e.parentNode:e),new _a(t)};Ue.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=nf(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return vn(e)};Ue.hydrate=function(e,t,n){if(!zi(t))throw Error(E(200));return Bi(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!Oa(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Vh;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Dh(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)};Ue.render=function(e,t,n){if(!zi(t))throw Error(E(200));return Bi(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!zi(e))throw Error(E(40));return e._reactRootContainer?(vn(function(){Bi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};Ue.unstable_batchedUpdates=La;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zi(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return Bi(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function _h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_h)}catch(e){console.error(e)}}_h(),Vd.exports=Ue;var Oy=Vd.exports,Oh,mc=Oy;Oh=mc.createRoot,mc.hydrateRoot;const Ih=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ui=S.createContext({}),$i=S.createContext(null),Wi=typeof document<"u",Ia=Wi?S.useLayoutEffect:S.useEffect,Fh=S.createContext({strict:!1}),Fa=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Iy="framerAppearId",zh="data-"+Fa(Iy);function Fy(e,t,n,r){const{visualElement:s}=S.useContext(Ui),i=S.useContext(Fh),o=S.useContext($i),l=S.useContext(Ih).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 c=S.useRef(!!(n[zh]&&!window.HandoffComplete));return Ia(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function On(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zy(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 za=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ba=["initial",...za];function Ki(e){return Hi(e.animate)||Ba.some(t=>Zr(e[t]))}function Bh(e){return!!(Ki(e)||e.variants)}function By(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 Uy(e){const{initial:t,animate:n}=By(e,S.useContext(Ui));return S.useMemo(()=>({initial:t,animate:n}),[gc(t),gc(n)])}function gc(e){return Array.isArray(e)?e.join(" "):e}const yc={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 yc)qr[e]={isEnabled:t=>yc[e].some(n=>!!t[n])};function $y(e){for(const t in e)qr[t]={...qr[t],...e[t]}}const Ua=S.createContext({}),Uh=S.createContext({}),Wy=Symbol.for("motionComponentSymbol");function Hy({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){e&&$y(e);function i(l,a){let u;const c={...S.useContext(Ih),...l,layoutId:Ky(l)},{isStatic:d}=c,h=Uy(l),g=r(l,d);if(!d&&Wi){h.visualElement=Fy(s,g,c,t);const v=S.useContext(Uh),x=S.useContext(Fh).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,x,e,v))}return S.createElement(Ui.Provider,{value:h},u&&h.visualElement?S.createElement(u,{visualElement:h.visualElement,...c}):null,n(s,l,zy(g,h.visualElement,a),g,d,h.visualElement))}const o=S.forwardRef(i);return o[Wy]=s,o}function Ky({layoutId:e}){const t=S.useContext(Ua).id;return t&&e!==void 0?t+"-"+e:e}function Qy(e){function t(r,s={}){return Hy(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 Gy=["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 $a(e){return typeof e!="string"||e.includes("-")?!1:!!(Gy.indexOf(e)>-1||/[A-Z]/.test(e))}const vi={};function Yy(e){Object.assign(vi,e)}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(is);function $h(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vi[e]||e==="opacity")}const _e=e=>!!(e&&e.getVelocity),Xy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zy=is.length;function qy(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,s){let i="";for(let o=0;o<Zy;o++){const l=is[o];if(e[l]!==void 0){const a=Xy[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 Wh=e=>t=>typeof t=="string"&&t.startsWith(e),Hh=Wh("--"),jl=Wh("var(--"),Jy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,e0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gt=(e,t,n)=>Math.min(Math.max(n,e),t),Sn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lr={...Sn,transform:e=>Gt(0,1,e)},bs={...Sn,default:1},Rr=e=>Math.round(e*1e5)/1e5,Qi=/(-)?([\d]*\.?[\d])+/g,Kh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,t0=/^(#[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}`}),bt=ls("deg"),ht=ls("%"),I=ls("px"),n0=ls("vh"),r0=ls("vw"),vc={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},xc={...Sn,transform:Math.round},Qh={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:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:bt,skewX:bt,skewY:bt,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Lr,originX:vc,originY:vc,originZ:I,zIndex:xc,fillOpacity:Lr,strokeOpacity:Lr,numOctaves:xc};function Wa(e,t,n,r){const{style:s,vars:i,transform:o,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const d in t){const h=t[d];if(Hh(d)){i[d]=h;continue}const g=Qh[d],v=e0(h,g);if(wn.has(d)){if(a=!0,o[d]=v,!c)continue;h!==(g.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,l[d]=v):s[d]=v}if(t.transform||(a||r?s.transform=qy(e.transform,n,c,r):s.transform&&(s.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:g=0}=l;s.transformOrigin=`${d} ${h} ${g}`}}const Ha=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!_e(t[r])&&!$h(r,n)&&(e[r]=t[r])}function s0({transformTemplate:e},t,n){return S.useMemo(()=>{const r=Ha();return Wa(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function i0(e,t,n){const r=e.style||{},s={};return Gh(s,r,e),Object.assign(s,s0(e,t,n)),e.transformValues?e.transformValues(s):s}function o0(e,t,n){const r={},s=i0(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 l0=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")||l0.has(e)}let Yh=e=>!xi(e);function a0(e){e&&(Yh=t=>t.startsWith("on")?!xi(t):e(t))}try{a0(require("@emotion/is-prop-valid").default)}catch{}function u0(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Yh(s)||n===!0&&xi(s)||!t&&!xi(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function kc(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function c0(e,t,n){const r=kc(t,e.x,e.width),s=kc(n,e.y,e.height);return`${r} ${s}`}const d0={offset:"stroke-dashoffset",array:"stroke-dasharray"},f0={offset:"strokeDashoffset",array:"strokeDasharray"};function h0(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?d0:f0;e[i.offset]=I.transform(-r);const o=I.transform(t),l=I.transform(n);e[i.array]=`${o} ${l}`}function Ka(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,d,h){if(Wa(e,u,c,h),d){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=c0(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&&h0(g,o,l,a,!1)}const Xh=()=>({...Ha(),attrs:{}}),Qa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function p0(e,t,n,r){const s=S.useMemo(()=>{const i=Xh();return Ka(i,t,{enableHardwareAcceleration:!1},Qa(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),s.style={...i,...s.style}}return s}function m0(e=!1){return(n,r,s,{latestValues:i},o)=>{const a=($a(n)?p0:o0)(r,i,o,n),c={...u0(r,typeof n=="string",e),...a,ref:s},{children:d}=r,h=S.useMemo(()=>_e(d)?d.get():d,[d]);return S.createElement(n,{...c,children:h})}}function Zh(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 qh=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 Jh(e,t,n,r){Zh(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(qh.has(s)?s:Fa(s),t.attrs[s])}function Ga(e,t){const{style:n}=e,r={};for(const s in n)(_e(n[s])||t.style&&_e(t.style[s])||$h(s,e))&&(r[s]=n[s]);return r}function ep(e,t){const n=Ga(e,t);for(const r in e)if(_e(e[r])||_e(t[r])){const s=is.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=e[r]}return n}function Ya(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 tp(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ki=e=>Array.isArray(e),g0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),y0=e=>ki(e)?e[e.length-1]||0:e;function Ks(e){const t=_e(e)?e.get():e;return g0(t)?t.toValue():t}function v0({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,i){const o={latestValues:x0(r,s,i,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const np=e=>(t,n)=>{const r=S.useContext(Ui),s=S.useContext($i),i=()=>v0(e,t,r,s);return n?i():tp(i)};function x0(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=Bh(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?l:o;return d&&typeof d!="boolean"&&!Hi(d)&&(Array.isArray(d)?d:[d]).forEach(g=>{const v=Ya(e,g);if(!v)return;const{transitionEnd:x,transition:T,...y}=v;for(const p in y){let m=y[p];if(Array.isArray(m)){const k=c?m.length-1:0;m=m[k]}m!==null&&(s[p]=m)}for(const p in x)s[p]=x[p]}),s}const ue=e=>e;class wc{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 k0(e){let t=new wc,n=new wc,r=0,s=!1,i=!1;const o=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const d=c&&s,h=d?t:n;return u&&o.add(a),h.add(a)&&d&&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 c=t.order[u];c(a),o.has(c)&&(l.schedule(c),e())}s=!1,i&&(i=!1,l.process(a))}};return l}const Ls=["prepare","read","update","preRender","render","postRender"],w0=40;function S0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=Ls.reduce((d,h)=>(d[h]=k0(()=>n=!0),d),{}),o=d=>i[d].process(s),l=()=>{const d=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(d-s.timestamp,w0),1),s.timestamp=d,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((d,h)=>{const g=i[h];return d[h]=(v,x=!1,T=!1)=>(n||a(),g.schedule(v,x,T)),d},{}),cancel:d=>Ls.forEach(h=>i[h].cancel(d)),state:s,steps:i}}const{schedule:X,cancel:Nt,state:Ce,steps:Co}=S0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0),C0={useVisualState:np({scrapeMotionValuesFromProps:ep,createRenderState:Xh,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{Ka(n,r,{enableHardwareAcceleration:!1},Qa(t.tagName),e.transformTemplate),Jh(t,n)})}})},T0={useVisualState:np({scrapeMotionValuesFromProps:Ga,createRenderState:Ha})};function P0(e,{forwardMotionProps:t=!1},n,r){return{...$a(e)?C0:T0,preloadedFeatures:n,useRender:m0(t),createVisualElement:r,Component:e}}function vt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const rp=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 N0=e=>t=>rp(t)&&e(t,Gi(t));function kt(e,t,n,r){return vt(e,t,N0(n),r)}const E0=(e,t)=>n=>t(e(n)),Ht=(...e)=>e.reduce(E0);function sp(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Sc=sp("dragHorizontal"),Cc=sp("dragVertical");function ip(e){let t=!1;if(e==="y")t=Cc();else if(e==="x")t=Sc();else{const n=Sc(),r=Cc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function op(){const e=ip(!0);return e?(e(),!1):!0}class Jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Tc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),s=(i,o)=>{if(i.pointerType==="touch"||op())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&X.update(()=>l[r](i,o))};return kt(e.current,n,s,{passive:!e.getProps()[r]})}class j0 extends Jt{mount(){this.unmount=Ht(Tc(this.node,!0),Tc(this.node,!1))}unmount(){}}class b0 extends Jt{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=Ht(vt(this.node.current,"focus",()=>this.onFocus()),vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lp=(e,t)=>t?e===t?!0:lp(e,t.parentElement):!1;function To(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Gi(n))}class L0 extends Jt{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=kt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!lp(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),o=kt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ht(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()||To("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=vt(this.node.current,"keyup",o),To("down",(l,a)=>{this.startPress(l,a)})},n=vt(this.node.current,"keydown",t),r=()=>{this.isPressing&&To("cancel",(i,o)=>this.cancelPress(i,o))},s=vt(this.node.current,"blur",r);this.removeAccessibleListeners=Ht(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&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!op()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=vt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ht(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const bl=new WeakMap,Po=new WeakMap,R0=e=>{const t=bl.get(e.target);t&&t(e)},M0=e=>{e.forEach(R0)};function A0({root:e,...t}){const n=e||document;Po.has(n)||Po.set(n,{});const r=Po.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(M0,{root:e,...t})),r[s]}function D0(e,t,n){const r=A0(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const V0={some:0,all:1};class _0 extends Jt{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:V0[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:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(a)};return D0(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(O0(t,n))&&this.startObserver()}unmount(){}}function O0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const I0={inView:{Feature:_0},tap:{Feature:L0},focus:{Feature:b0},hover:{Feature:j0}};function ap(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 F0(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function z0(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Yi(e,t,n){const r=e.getProps();return Ya(r,t,n!==void 0?n:r.custom,F0(e),z0(e))}let Xa=ue;const hn=e=>e*1e3,wt=e=>e/1e3,B0={current:!1},up=e=>Array.isArray(e)&&typeof e[0]=="number";function cp(e){return!!(!e||typeof e=="string"&&dp[e]||up(e)||Array.isArray(e)&&e.every(cp))}const kr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dp={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 fp(e){if(e)return up(e)?kr(e):Array.isArray(e)?e.map(fp):dp[e]}function U0(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 c=fp(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}function $0(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const hp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,W0=1e-7,H0=12;function K0(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=hp(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>W0&&++l<H0);return o}function as(e,t,n,r){if(e===t&&n===r)return ue;const s=i=>K0(i,0,1,e,n);return i=>i===0||i===1?i:hp(s(i),t,r)}const Q0=as(.42,0,1,1),G0=as(0,0,.58,1),pp=as(.42,0,.58,1),Y0=e=>Array.isArray(e)&&typeof e[0]!="number",mp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gp=e=>t=>1-e(1-t),Za=e=>1-Math.sin(Math.acos(e)),yp=gp(Za),X0=mp(Za),vp=as(.33,1.53,.69,.99),qa=gp(vp),Z0=mp(qa),q0=e=>(e*=2)<1?.5*qa(e):.5*(2-Math.pow(2,-10*(e-1))),J0={linear:ue,easeIn:Q0,easeInOut:pp,easeOut:G0,circIn:Za,circInOut:X0,circOut:yp,backIn:qa,backInOut:Z0,backOut:vp,anticipate:q0},Pc=e=>{if(Array.isArray(e)){Xa(e.length===4);const[t,n,r,s]=e;return as(t,n,r,s)}else if(typeof e=="string")return J0[e];return e},Ja=(e,t)=>n=>!!(os(n)&&t0.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),xp=(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}},ev=e=>Gt(0,255,e),No={...Sn,transform:e=>Math.round(ev(e))},cn={test:Ja("rgb","red"),parse:xp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+No.transform(e)+", "+No.transform(t)+", "+No.transform(n)+", "+Rr(Lr.transform(r))+")"};function tv(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 Ll={test:Ja("#"),parse:tv,transform:cn.transform},In={test:Ja("hsl","hue"),parse:xp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Rr(t))+", "+ht.transform(Rr(n))+", "+Rr(Lr.transform(r))+")"},Ne={test:e=>cn.test(e)||Ll.test(e)||In.test(e),parse:e=>cn.test(e)?cn.parse(e):In.test(e)?In.parse(e):Ll.parse(e),transform:e=>os(e)?e:e.hasOwnProperty("red")?cn.transform(e):In.transform(e)},re=(e,t,n)=>-n*e+n*t+e;function Eo(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 nv({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=Eo(a,l,e+1/3),i=Eo(a,l,e),o=Eo(a,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}const jo=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},rv=[Ll,cn,In],sv=e=>rv.find(t=>t.test(e));function Nc(e){const t=sv(e);let n=t.parse(e);return t===In&&(n=nv(n)),n}const kp=(e,t)=>{const n=Nc(e),r=Nc(t),s={...n};return i=>(s.red=jo(n.red,r.red,i),s.green=jo(n.green,r.green,i),s.blue=jo(n.blue,r.blue,i),s.alpha=re(n.alpha,r.alpha,i),cn.transform(s))};function iv(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(Kh))===null||n===void 0?void 0:n.length)||0)>0}const wp={regex:Jy,countKey:"Vars",token:"${v}",parse:ue},Sp={regex:Kh,countKey:"Colors",token:"${c}",parse:Ne.parse},Cp={regex:Qi,countKey:"Numbers",token:"${n}",parse:Sn.parse};function bo(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(--")&&bo(n,wp),bo(n,Sp),bo(n,Cp),n}function Tp(e){return wi(e).values}function Pp(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(wp.token,o[a]):a<r+n?l=l.replace(Sp.token,Ne.transform(o[a])):l=l.replace(Cp.token,Rr(o[a]));return l}}const ov=e=>typeof e=="number"?0:e;function lv(e){const t=Tp(e);return Pp(e)(t.map(ov))}const Yt={test:iv,parse:Tp,createTransformer:Pp,getAnimatableNone:lv},Np=(e,t)=>n=>`${n>0?t:e}`;function Ep(e,t){return typeof e=="number"?n=>re(e,t,n):Ne.test(e)?kp(e,t):e.startsWith("var(")?Np(e,t):bp(e,t)}const jp=(e,t)=>{const n=[...e],r=n.length,s=e.map((i,o)=>Ep(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}},av=(e,t)=>{const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Ep(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}},bp=(e,t)=>{const n=Yt.createTransformer(t),r=wi(e),s=wi(t);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Ht(jp(r.values,s.values),n):Np(e,t)},Jr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ec=(e,t)=>n=>re(e,t,n);function uv(e){return typeof e=="number"?Ec:typeof e=="string"?Ne.test(e)?kp:bp:Array.isArray(e)?jp:typeof e=="object"?av:Ec}function cv(e,t,n){const r=[],s=n||uv(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]||ue:t;l=Ht(a,l)}r.push(l)}return r}function Lp(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Xa(i===t.length),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=cv(t,r,s),l=o.length,a=u=>{let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=Jr(e[c],e[c+1],u);return o[c](d)};return n?u=>a(Gt(e[0],e[i-1],u)):a}function dv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Jr(0,t,r);e.push(re(n,1,s))}}function fv(e){const t=[0];return dv(t,e.length-1),t}function hv(e,t){return e.map(n=>n*t)}function pv(e,t){return e.map(()=>t||pp).splice(0,e.length-1)}function Si({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Y0(r)?r.map(Pc):Pc(r),i={done:!1,value:t[0]},o=hv(n&&n.length===t.length?n:fv(t),e),l=Lp(o,t,{ease:Array.isArray(s)?s:pv(t,s)});return{calculatedDuration:e,next:a=>(i.value=l(a),i.done=a>=e,i)}}function Rp(e,t){return t?e*(1e3/t):0}const mv=5;function Mp(e,t,n){const r=Math.max(t-mv,0);return Rp(n-e(r),t-r)}const Lo=.001,gv=.01,yv=10,vv=.05,xv=1;function kv({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,i,o=1-t;o=Gt(vv,xv,o),e=Gt(gv,yv,wt(e)),o<1?(s=u=>{const c=u*o,d=c*e,h=c-n,g=Rl(u,o),v=Math.exp(-d);return Lo-h/g*v},i=u=>{const d=u*o*e,h=d*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Rl(Math.pow(u,2),o);return(-s(u)+Lo>0?-1:1)*((h-g)*v)/x}):(s=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Lo+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const l=5/e,a=Sv(s,i,l);if(e=hn(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 wv=12;function Sv(e,t,n){let r=n;for(let s=1;s<wv;s++)r=r-e(r)/t(r);return r}function Rl(e,t){return e*Math.sqrt(1-t*t)}const Cv=["duration","bounce"],Tv=["stiffness","damping","mass"];function jc(e,t){return t.some(n=>e[n]!==void 0)}function Pv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jc(e,Tv)&&jc(e,Cv)){const n=kv(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ap({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:c,velocity:d,isResolvedFromDuration:h}=Pv({...r,velocity:-wt(r.velocity||0)}),g=d||0,v=a/(2*Math.sqrt(l*u)),x=i-s,T=wt(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(T,v);p=k=>{const C=Math.exp(-v*T*k);return i-C*((g+v*T*x)/m*Math.sin(m*k)+x*Math.cos(m*k))}}else if(v===1)p=m=>i-Math.exp(-T*m)*(x+(g+T*x)*m);else{const m=T*Math.sqrt(v*v-1);p=k=>{const C=Math.exp(-v*T*k),j=Math.min(m*k,300);return i-C*((g+v*T*x)*Math.sinh(j)+m*x*Math.cosh(j))/m}}return{calculatedDuration:h&&c||null,next:m=>{const k=p(m);if(h)o.done=m>=c;else{let C=g;m!==0&&(v<1?C=Mp(p,m,k):C=0);const j=Math.abs(C)<=n,N=Math.abs(i-k)<=t;o.done=j&&N}return o.value=o.done?i:k,o}}}function bc({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:c}){const d=e[0],h={done:!1,value:d},g=P=>l!==void 0&&P<l||a!==void 0&&P>a,v=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let x=n*t;const T=d+x,y=o===void 0?T:o(T);y!==T&&(x=y-d);const p=P=>-x*Math.exp(-P/r),m=P=>y+p(P),k=P=>{const R=p(P),M=m(P);h.done=Math.abs(R)<=u,h.value=h.done?y:M};let C,j;const N=P=>{g(h.value)&&(C=P,j=Ap({keyframes:[h.value,v(h.value)],velocity:Mp(m,P,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:P=>{let R=!1;return!j&&C===void 0&&(R=!0,k(P),N(P)),C!==void 0&&P>C?j.next(P-C):(!R&&k(P),h)}}}const Nv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>Nt(t),now:()=>Ce.isProcessing?Ce.timestamp:performance.now()}},Lc=2e4;function Rc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lc;)t+=n,r=e.next(t);return t>=Lc?1/0:t}const Ev={decay:bc,inertia:bc,tween:Si,keyframes:Si,spring:Ap};function Ci({autoplay:e=!0,delay:t=0,driver:n=Nv,keyframes:r,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:d,...h}){let g=1,v=!1,x,T;const y=()=>{T=new Promise(w=>{x=w})};y();let p;const m=Ev[s]||Si;let k;m!==Si&&typeof r[0]!="number"&&(k=Lp([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...h,keyframes:r});let j;l==="mirror"&&(j=m({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let N="idle",P=null,R=null,M=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=Rc(C));const{calculatedDuration:H}=C;let ee=1/0,oe=1/0;H!==null&&(ee=H+o,oe=ee*(i+1)-o);let D=0;const K=w=>{if(R===null)return;g>0&&(R=Math.min(R,w)),g<0&&(R=Math.min(w-oe/g,R)),P!==null?D=P:D=Math.round(w-R)*g;const L=D-t*(g>=0?1:-1),F=g>=0?L<0:L>oe;D=Math.max(L,0),N==="finished"&&P===null&&(D=oe);let z=D,$=C;if(i){const ot=Math.min(D,oe)/ee;let Cn=Math.floor(ot),lt=ot%1;!lt&&ot>=1&&(lt=1),lt===1&&Cn--,Cn=Math.min(Cn,i+1),!!(Cn%2)&&(l==="reverse"?(lt=1-lt,o&&(lt-=o/ee)):l==="mirror"&&($=j)),z=Gt(0,1,lt)*ee}const V=F?{done:!1,value:r[0]}:$.next(z);k&&(V.value=k(V.value));let{done:Q}=V;!F&&H!==null&&(Q=g>=0?D>=oe:D<=0);const qe=P===null&&(N==="finished"||N==="running"&&Q);return d&&d(V.value),qe&&b(),V},B=()=>{p&&p.stop(),p=void 0},te=()=>{N="idle",B(),x(),y(),R=M=null},b=()=>{N="finished",c&&c(),B(),x()},_=()=>{if(v)return;p||(p=n(K));const w=p.now();a&&a(),P!==null?R=w-P:(!R||N==="finished")&&(R=w),N==="finished"&&y(),M=R,P=null,N="running",p.start()};e&&_();const O={then(w,L){return T.then(w,L)},get time(){return wt(D)},set time(w){w=hn(w),D=w,P!==null||!p||g===0?P=w:R=p.now()-w/g},get duration(){const w=C.calculatedDuration===null?Rc(C):C.calculatedDuration;return wt(w)},get speed(){return g},set speed(w){w===g||!p||(g=w,O.time=wt(D))},get state(){return N},play:_,pause:()=>{N="paused",P=D},stop:()=>{v=!0,N!=="idle"&&(N="idle",u&&u(),te())},cancel:()=>{M!==null&&K(M),te()},complete:()=>{N="finished"},sample:w=>(R=0,K(w))};return O}function jv(e){let t;return()=>(t===void 0&&(t=e()),t)}const bv=jv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Rs=10,Rv=2e4,Mv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!cp(t.ease);function Av(e,t,{onUpdate:n,onComplete:r,...s}){if(!(bv()&&Lv.has(t)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let o=!1,l,a,u=!1;const c=()=>{a=new Promise(m=>{l=m})};c();let{keyframes:d,duration:h=300,ease:g,times:v}=s;if(Mv(t,s)){const m=Ci({...s,repeat:0,delay:0});let k={done:!1,value:d[0]};const C=[];let j=0;for(;!k.done&&j<Rv;)k=m.sample(j),C.push(k.value),j+=Rs;v=void 0,d=C,h=j-Rs,g="linear"}const x=U0(e.owner.current,t,d,{...s,duration:h,ease:g,times:v}),T=()=>{u=!1,x.cancel()},y=()=>{u=!0,X.update(T),l(),c()};return x.onfinish=()=>{u||(e.set($0(d,s)),r&&r(),y())},{then(m,k){return a.then(m,k)},attachTimeline(m){return x.timeline=m,x.onfinish=null,ue},get time(){return wt(x.currentTime||0)},set time(m){x.currentTime=hn(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return wt(h)},play:()=>{o||(x.play(),Nt(T))},pause:()=>x.pause(),stop:()=>{if(o=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const k=Ci({...s,autoplay:!1});e.setWithVelocity(k.sample(m-Rs).value,k.sample(m).value,Rs)}y()},complete:()=>{u||x.finish()},cancel:y}}function Dv({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:ue,pause:ue,stop:ue,then:i=>(i(),Promise.resolve()),cancel:ue,complete:ue});return t?Ci({keyframes:[0,1],duration:0,delay:t,onComplete:s}):s()}const Vv={type:"spring",stiffness:500,damping:25,restSpeed:10},_v=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ov={type:"keyframes",duration:.8},Iv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fv=(e,{keyframes:t})=>t.length>2?Ov:wn.has(e)?e.startsWith("scale")?_v(t[1]):Vv:Iv,Ml=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Yt.test(t)||t==="0")&&!t.startsWith("url(")),zv=new Set(["brightness","contrast","saturate","opacity"]);function Bv(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=zv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Uv=/([a-z-]*)\(.*?\)/g,Al={...Yt,getAnimatableNone:e=>{const t=e.match(Uv);return t?t.map(Bv).join(" "):e}},$v={...Qh,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:Al,WebkitFilter:Al},eu=e=>$v[e];function Dp(e,t){let n=eu(e);return n!==Al&&(n=Yt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Vp=e=>/^0[^.\s]+$/.test(e);function Wv(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Vp(e)}function Hv(e,t,n,r){const s=Ml(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]),Wv(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 c=a[u];i[c]=Dp(t,l)}return i}function Kv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}function tu(e,t){return e[t]||e.default||e}const Qv={skipAnimations:!1},nu=(e,t,n,r={})=>s=>{const i=tu(r,e)||{},o=i.delay||r.delay||0;let{elapsed:l=0}=r;l=l-hn(o);const a=Hv(t,e,n,i),u=a[0],c=a[a.length-1],d=Ml(e,u),h=Ml(e,c);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(Kv(i)||(g={...g,...Fv(e,g)}),g.duration&&(g.duration=hn(g.duration)),g.repeatDelay&&(g.repeatDelay=hn(g.repeatDelay)),!d||!h||B0.current||i.type===!1||Qv.skipAnimations)return Dv(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=Av(t,e,g);if(v)return v}return Ci(g)};function Ti(e){return!!(_e(e)&&e.add)}const _p=e=>/^\-?\d*\.?\d+$/.test(e);function ru(e,t){e.indexOf(t)===-1&&e.push(t)}function su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class iu{constructor(){this.subscriptions=[]}add(t){return ru(this.subscriptions,t),()=>su(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 Gv=e=>!isNaN(parseFloat(e));class Yv{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}=Ce;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,X.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=()=>X.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=Gv(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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?Rp(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 Yv(e,t)}const Op=e=>t=>t.test(e),Xv={test:e=>e==="auto",parse:e=>e},Ip=[Sn,I,ht,bt,r0,n0,Xv],hr=e=>Ip.find(Op(e)),Zv=[...Ip,Ne,Yt],qv=e=>Zv.find(Op(e));function Jv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function ex(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=y0(i[o]);Jv(e,o,l)}}function tx(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 c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(s=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&s!==void 0?s:t[a]),c!=null&&(typeof c=="string"&&(_p(c)||Vp(c))?c=parseFloat(c):!qv(c)&&Yt.test(u)&&(c=Dp(a,u)),e.addValue(a,er(c,{owner:e})),n[a]===void 0&&(n[a]=c),c!==null&&e.setBaseTarget(a,c))}}function nx(e,t){return t?(t[e]||t.default||t).from:void 0}function rx(e,t,n){const r={};for(const s in e){const i=nx(s,t);if(i!==void 0)r[s]=i;else{const o=n.getValue(s);o&&(r[s]=o.get())}}return r}function sx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ix(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 Fp(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=[],c=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const h=e.getValue(d),g=l[d];if(!h||g===void 0||c&&sx(c,d))continue;const v={delay:n,elapsed:0,...tu(i||{},d)};if(window.HandoffAppearAnimations){const y=e.getProps()[zh];if(y){const p=window.HandoffAppearAnimations(y,d,h,X);p!==null&&(v.elapsed=p,v.isHandoff=!0)}}let x=!v.isHandoff&&!ix(h,g);if(v.type==="spring"&&(h.getVelocity()||v.velocity)&&(x=!1),h.animation&&(x=!1),x)continue;h.start(nu(d,h,g,e.shouldReduceMotion&&wn.has(d)?{type:!1}:v));const T=h.animation;Ti(a)&&(a.add(d),T.then(()=>a.remove(d))),u.push(T)}return o&&Promise.all(u).then(()=>{o&&ex(e,o)}),u}function Dl(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(Fp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=s;return ox(e,t,u+a,c,d,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 ox(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(lx).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(Dl(u,t,{...i,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function lx(e,t){return e.sortNodePosition(t)}function ax(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Dl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Dl(e,t,n);else{const s=typeof t=="function"?Yi(e,t,n.custom):t;r=Promise.all(Fp(e,s,n))}return r.then(()=>e.notify("AnimationComplete",t))}const ux=[...za].reverse(),cx=za.length;function dx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ax(e,n,r)))}function fx(e){let t=dx(e);const n=px();let r=!0;const s=(a,u)=>{const c=Yi(e,u);if(c){const{transition:d,transitionEnd:h,...g}=c;a={...a,...g,...h}}return a};function i(a){t=a(e)}function o(a,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},h=[],g=new Set;let v={},x=1/0;for(let y=0;y<cx;y++){const p=ux[y],m=n[p],k=c[p]!==void 0?c[p]:d[p],C=Zr(k),j=p===u?m.isActive:null;j===!1&&(x=y);let N=k===d[p]&&k!==c[p]&&C;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),m.protectedKeys={...v},!m.isActive&&j===null||!k&&!m.prevProp||Hi(k)||typeof k=="boolean")continue;let R=hx(m.prevProp,k)||p===u&&m.isActive&&!N&&C||y>x&&C,M=!1;const H=Array.isArray(k)?k:[k];let ee=H.reduce(s,{});j===!1&&(ee={});const{prevResolvedValues:oe={}}=m,D={...oe,...ee},K=B=>{R=!0,g.has(B)&&(M=!0,g.delete(B)),m.needsAnimating[B]=!0};for(const B in D){const te=ee[B],b=oe[B];if(v.hasOwnProperty(B))continue;let _=!1;ki(te)&&ki(b)?_=!ap(te,b):_=te!==b,_?te!==void 0?K(B):g.add(B):te!==void 0&&g.has(B)?K(B):m.protectedKeys[B]=!0}m.prevProp=k,m.prevResolvedValues=ee,m.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(R=!1),R&&(!N||M)&&h.push(...H.map(B=>({animation:B,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 T=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(h):Promise.resolve()}function l(a,u,c){var d;if(n[a].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.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(c,a);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n}}function hx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ap(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function px(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class mx extends Jt{constructor(t){super(t),t.animationState||(t.animationState=fx(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 gx=0;class yx extends Jt{constructor(){super(...arguments),this.id=gx++}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 vx={animation:{Feature:mx},exit:{Feature:yx}},Mc=(e,t)=>Math.abs(e-t);function xx(e,t){const n=Mc(e.x,t.x),r=Mc(e.y,t.y);return Math.sqrt(n**2+r**2)}class zp{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 d=Mo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=xx(d.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:v}=d,{timestamp:x}=Ce;this.history.push({...v,timestamp:x});const{onStart:T,onMove:y}=this.handlers;h||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ro(h,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Mo(d.type==="pointercancel"?this.lastMoveEventInfo:Ro(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,T),v&&v(d,T)},!rp(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Gi(t),l=Ro(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=Ce;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Mo(l,this.history)),this.removeListeners=Ht(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Nt(this.updatePoint)}}function Ro(e,t){return t?{point:t(e.point)}:e}function Ac(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mo({point:e},t){return{point:e,delta:Ac(e,Bp(t)),offset:Ac(e,kx(t)),velocity:wx(t,.1)}}function kx(e){return e[0]}function Bp(e){return e[e.length-1]}function wx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Bp(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>hn(t)));)n--;if(!r)return{x:0,y:0};const i=wt(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 Be(e){return e.max-e.min}function Vl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Dc(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),(Vl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(Vl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Mr(e,t,n,r){Dc(e.x,t.x,n.x,r?r.originX:void 0),Dc(e.y,t.y,n.y,r?r.originY:void 0)}function Vc(e,t,n){e.min=n.min+t.min,e.max=e.min+Be(t)}function Sx(e,t,n){Vc(e.x,t.x,n.x),Vc(e.y,t.y,n.y)}function _c(e,t,n){e.min=t.min-n.min,e.max=e.min+Be(t)}function Ar(e,t,n){_c(e.x,t.x,n.x),_c(e.y,t.y,n.y)}function Cx(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function Oc(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 Tx(e,{top:t,left:n,bottom:r,right:s}){return{x:Oc(e.x,n,s),y:Oc(e.y,t,r)}}function Ic(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 Px(e,t){return{x:Ic(e.x,t.x),y:Ic(e.y,t.y)}}function Nx(e,t){let n=.5;const r=Be(e),s=Be(t);return s>r?n=Jr(t.min,t.max-r,e.min):r>s&&(n=Jr(e.min,e.max-s,t.min)),Gt(0,1,n)}function Ex(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 _l=.35;function jx(e=_l){return e===!1?e=0:e===!0&&(e=_l),{x:Fc(e,"left","right"),y:Fc(e,"top","bottom")}}function Fc(e,t,n){return{min:zc(e,t),max:zc(e,n)}}function zc(e,t){return typeof e=="number"?e:e[t]||0}const Bc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fn=()=>({x:Bc(),y:Bc()}),Uc=()=>({min:0,max:0}),ce=()=>({x:Uc(),y:Uc()});function He(e){return[e("x"),e("y")]}function Up({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lx(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 Ol({scale:e,scaleX:t,scaleY:n}){return!Ao(e)||!Ao(t)||!Ao(n)}function rn(e){return Ol(e)||$p(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $p(e){return $c(e.x)||$c(e.y)}function $c(e){return e&&e!=="0%"}function Pi(e,t,n){const r=e-n,s=t*r;return n+s}function Wc(e,t,n,r,s){return s!==void 0&&(e=Pi(e,s,r)),Pi(e,n,r)+t}function Il(e,t=0,n=1,r,s){e.min=Wc(e.min,t,n,r,s),e.max=Wc(e.max,t,n,r,s)}function Wp(e,{x:t,y:n}){Il(e.x,t.translate,t.scale,t.originPoint),Il(e.y,n.translate,n.scale,n.originPoint)}function Rx(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,Wp(e,o)),r&&rn(i.latestValues)&&zn(e,i.latestValues))}t.x=Hc(t.x),t.y=Hc(t.y)}function Hc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Mt(e,t){e.min=e.min+t,e.max=e.max+t}function Kc(e,t,[n,r,s]){const i=t[s]!==void 0?t[s]:.5,o=re(e.min,e.max,i);Il(e,t[n],t[r],o,t.scale)}const Mx=["x","scaleX","originX"],Ax=["y","scaleY","originY"];function zn(e,t){Kc(e.x,t,Mx),Kc(e.y,t,Ax)}function Hp(e,t){return Up(Lx(e.getBoundingClientRect(),t))}function Dx(e,t,n){const r=Hp(e,n),{scroll:s}=t;return s&&(Mt(r.x,s.offset.x),Mt(r.y,s.offset.y)),r}const Kp=({current:e})=>e?e.ownerDocument.defaultView:null,Vx=new WeakMap;class _x{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=ce(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gi(c,"page").point)},i=(c,d)=>{const{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ip(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),He(T=>{let y=this.getAxisMotionValue(T).get()||0;if(ht.test(y)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[T];m&&(y=Be(m)*(parseFloat(y)/100))}}this.originPoint[T]=y}),v&&X.update(()=>v(c,d),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:T}=d;if(g&&this.currentDirection===null){this.currentDirection=Ox(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),x&&x(c,d)},l=(c,d)=>this.stop(c,d),a=()=>He(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zp(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Kp(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&&X.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||!Ms(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Cx(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=Tx(s.layoutBox,n):this.constraints=!1,this.elastic=jx(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&He(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=Ex(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=Dx(r,s.root,this.visualElement.getTransformPagePoint());let o=Px(s.layout.layoutBox,i);if(n){const l=n(bx(o));this.hasMutatedConstraints=!!l,l&&(o=Up(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=He(c=>{if(!Ms(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(nu(t,r,0,n))}stopAnimation(){He(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){He(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){He(n=>{const{drag:r}=this.getProps();if(!Ms(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]-re(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};He(o=>{const l=this.getAxisMotionValue(o);if(l){const a=l.get();s[o]=Nx({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(),He(o=>{if(!Ms(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(re(a,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;Vx.set(this.visualElement,this);const t=this.visualElement.current,n=kt(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&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=vt(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(He(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].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=_l,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Ms(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ox(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ix extends Jt{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new _x(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qc=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class Fx extends Jt{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new zp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Qc(t),onStart:Qc(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&X.update(()=>s(i,o))}}}mount(){this.removePointerDownListener=kt(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 zx(){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 Gc(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=Gc(e,t.target.x),r=Gc(e,t.target.y);return`${n}% ${r}%`}},Bx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Yt.parse(e);if(s.length>5)return r;const i=Yt.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=re(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 Ux extends Ad.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Yy($x),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()||X.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 Qp(e){const[t,n]=zx(),r=S.useContext(Ua);return Ad.createElement(Ux,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Uh),isPresent:t,safeToRemove:n})}const $x={borderRadius:{...pr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pr,borderTopRightRadius:pr,borderBottomLeftRadius:pr,borderBottomRightRadius:pr,boxShadow:Bx},Gp=["TopLeft","TopRight","BottomLeft","BottomRight"],Wx=Gp.length,Yc=e=>typeof e=="string"?parseFloat(e):e,Xc=e=>typeof e=="number"||I.test(e);function Hx(e,t,n,r,s,i){s?(e.opacity=re(0,n.opacity!==void 0?n.opacity:1,Kx(r)),e.opacityExit=re(t.opacity!==void 0?t.opacity:1,0,Qx(r))):i&&(e.opacity=re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Wx;o++){const l=`border${Gp[o]}Radius`;let a=Zc(t,l),u=Zc(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Xc(a)===Xc(u)?(e[l]=Math.max(re(Yc(a),Yc(u),r),0),(ht.test(u)||ht.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function Zc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Kx=Yp(0,.5,yp),Qx=Yp(.5,.95,ue);function Yp(e,t,n){return r=>r<e?0:r>t?1:n(Jr(e,t,r))}function qc(e,t){e.min=t.min,e.max=t.max}function We(e,t){qc(e.x,t.x),qc(e.y,t.y)}function Jc(e,t,n,r,s){return e-=t,e=Pi(e,1/n,r),s!==void 0&&(e=Pi(e,1/s,r)),e}function Gx(e,t=0,n=1,r=.5,s,i=e,o=e){if(ht.test(t)&&(t=parseFloat(t),t=re(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=re(i.min,i.max,r);e===i&&(l-=t),e.min=Jc(e.min,t,n,l,s),e.max=Jc(e.max,t,n,l,s)}function ed(e,t,[n,r,s],i,o){Gx(e,t[n],t[r],t[s],t.scale,i,o)}const Yx=["x","scaleX","originX"],Xx=["y","scaleY","originY"];function td(e,t,n,r){ed(e.x,t,Yx,n?n.x:void 0,r?r.x:void 0),ed(e.y,t,Xx,n?n.y:void 0,r?r.y:void 0)}function nd(e){return e.translate===0&&e.scale===1}function Xp(e){return nd(e.x)&&nd(e.y)}function Zx(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 Zp(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 rd(e){return Be(e.x)/Be(e.y)}class qx{constructor(){this.members=[]}add(t){ru(this.members,t),t.scheduleRender()}remove(t){if(su(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 sd(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:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}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 Jx=(e,t)=>e.depth-t.depth;class e1{constructor(){this.children=[],this.isDirty=!1}add(t){ru(this.children,t),this.isDirty=!0}remove(t){su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Jx),this.isDirty=!1,this.children.forEach(t)}}function t1(e,t){const n=performance.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Nt(r),e(i-t))};return X.read(r,!0),()=>Nt(r)}function n1(e){window.MotionDebug&&window.MotionDebug.record(e)}function r1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function s1(e,t,n){const r=_e(e)?e:er(e);return r.start(nu("",r,t,n)),r.animation}const id=["","X","Y","Z"],i1={visibility:"hidden"},od=1e3;let o1=0;const sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=o1++,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,sn.totalNodes=sn.resolvedTargetDeltas=sn.recalculatedProjection=0,this.nodes.forEach(u1),this.nodes.forEach(p1),this.nodes.forEach(m1),this.nodes.forEach(c1),n1(sn)},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 e1)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new iu),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=r1(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=t1(h,250),Qs.hasAnimatedSinceResize&&(Qs.hasAnimatedSinceResize=!1,this.nodes.forEach(ad))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||k1,{onLayoutAnimationStart:T,onLayoutAnimationComplete:y}=c.getProps(),p=!this.targetLayout||!Zp(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(d,m);const k={...tu(x,"layout"),onPlay:T,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else h||ad(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,Nt(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(g1),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 c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(ld);return}this.isUpdating||this.nodes.forEach(f1),this.isUpdating=!1,this.nodes.forEach(h1),this.nodes.forEach(l1),this.nodes.forEach(a1),this.clearAllSnapshots();const l=performance.now();Ce.delta=Gt(0,1e3/60,l-Ce.timestamp),Ce.timestamp=l,Ce.isProcessing=!0,Co.update.process(Ce),Co.preRender.process(Ce),Co.render.process(Ce),Ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(d1),this.sharedNodes.forEach(y1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.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=ce(),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&&!Xp(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||rn(this.latestValues)||c)&&(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)),w1(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const l=o.measureViewportBox(),{scroll:a}=this.root;return a&&(Mt(l.x,a.offset.x),Mt(l.y,a.offset.y)),l}removeElementScroll(o){const l=ce();We(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){We(l,o);const{scroll:h}=this.root;h&&(Mt(l.x,-h.offset.x),Mt(l.y,-h.offset.y))}Mt(l.x,c.offset.x),Mt(l.y,c.offset.y)}}return l}applyTransform(o,l=!1){const a=ce();We(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&zn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),rn(c.latestValues)&&zn(a,c.latestValues)}return rn(this.latestValues)&&zn(a,this.latestValues),a}removeTransform(o){const l=ce();We(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!rn(u.latestValues))continue;Ol(u.latestValues)&&u.updateSnapshot();const c=ce(),d=u.measurePageBox();We(c,d),td(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return rn(this.latestValues)&&td(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!==Ce.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:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Ce.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Ar(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sx(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),Wp(this.target,this.targetDelta)):We(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=ce(),this.relativeTargetOrigin=ce(),Ar(this.relativeTargetOrigin,this.target,g.target),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ol(this.parent.latestValues)||$p(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===Ce.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;We(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;Rx(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;Mr(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=sd(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),sn.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:{},c={...this.latestValues},d=Fn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=ce(),g=a?a.source:void 0,v=this.layout?this.layout.source:void 0,x=g!==v,T=this.getStack(),y=!T||T.members.length<=1,p=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(x1));this.animationProgress=0;let m;this.mixTargetDelta=k=>{const C=k/1e3;ud(d.x,o.x,C),ud(d.y,o.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ar(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),v1(this.relativeTarget,this.relativeTargetOrigin,h,C),m&&Zx(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ce()),We(m,this.relativeTarget)),x&&(this.animationValues=c,Hx(c,u,this.latestValues,C,p,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(Nt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Qs.hasAnimatedSinceResize=!0,this.currentAnimation=s1(0,od,{...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(od),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&Jp(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ce();const d=Be(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const h=Be(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+h}We(l,a),zn(l,c),Mr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new qx),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 c=0;c<id.length;c++){const d="rotate"+id[c];a[d]&&(u[d]=a[d],o.setStaticValue(d,0))}o.render();for(const c in u)o.setStaticValue(c,u[c]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return i1;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ks(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.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&&!rn(this.latestValues)&&(x.transform=c?c({},""):"none",this.hasProjected=!1),x}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=sd(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?u.opacity=d===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=d===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:T,applyTo:y}=vi[x],p=u.transform==="none"?h[x]:T(h[x],d);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=d===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(ld),this.root.sharedNodes.clear()}}}function l1(e){e.updateLayout()}function a1(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"?He(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],g=Be(h);h.min=r[d].min,h.max=h.min+g}):Jp(i,n.layoutBox,r)&&He(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],g=Be(r[d]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const l=Fn();Mr(l,r,n.layoutBox);const a=Fn();o?Mr(a,e.applyTransform(s,!0),n.measuredBox):Mr(a,r,n.layoutBox);const u=!Xp(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:g}=d;if(h&&g){const v=ce();Ar(v,n.layoutBox,h.layoutBox);const x=ce();Ar(x,r,g.layoutBox),Zp(v,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function u1(e){sn.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 c1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function d1(e){e.clearSnapshot()}function ld(e){e.clearMeasurements()}function f1(e){e.isLayoutDirty=!1}function h1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ad(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function p1(e){e.resolveTargetDelta()}function m1(e){e.calcProjection()}function g1(e){e.resetRotation()}function y1(e){e.removeLeadSnapshot()}function ud(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cd(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function v1(e,t,n,r){cd(e.x,t.x,n.x,r),cd(e.y,t.y,n.y,r)}function x1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const k1={duration:.45,ease:[.4,0,.1,1]},dd=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),fd=dd("applewebkit/")&&!dd("chrome/")?Math.round:ue;function hd(e){e.min=fd(e.min),e.max=fd(e.max)}function w1(e){hd(e.x),hd(e.y)}function Jp(e,t,n){return e==="position"||e==="preserve-aspect"&&!Vl(rd(t),rd(n),.2)}const S1=qp({attachResizeListener:(e,t)=>vt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Do={current:void 0},em=qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Do.current){const e=new S1({});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"}),C1={pan:{Feature:Fx},drag:{Feature:Ix,ProjectionNode:em,MeasureLayout:Qp}},T1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function P1(e){const t=T1.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Fl(e,t,n=1){const[r,s]=P1(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return _p(o)?parseFloat(o):o}else return jl(s)?Fl(s,t,n+1):s}function N1(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(!jl(i))return;const o=Fl(i,r);o&&s.set(o)});for(const s in t){const i=t[s];if(!jl(i))continue;const o=Fl(i,r);o&&(t[s]=o,n||(n={}),n[s]===void 0&&(n[s]=i))}return{target:t,transitionEnd:n}}const E1=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tm=e=>E1.has(e),j1=e=>Object.keys(e).some(tm),pd=e=>e===Sn||e===I,md=(e,t)=>parseFloat(e.split(", ")[t]),gd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return md(s[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?md(i[1],e):0}},b1=new Set(["x","y","z"]),L1=is.filter(e=>!b1.has(e));function R1(e){const t=[];return L1.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:gd(4,13),y:gd(5,14)};tr.translateX=tr.x;tr.translateY=tr.y;const M1=(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 c=t.getValue(u);c&&c.jump(l[u]),e[u]=tr[u](a,i)}),e},A1=(e,t,n={},r={})=>{t={...t},r={...r};const s=Object.keys(t).filter(tm);let i=[],o=!1;const l=[];if(s.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],d=hr(c);const h=t[a];let g;if(ki(h)){const v=h.length,x=h[0]===null?1:0;c=h[x],d=hr(c);for(let T=x;T<v&&h[T]!==null;T++)g?Xa(hr(h[T])===g):g=hr(h[T])}else g=hr(h);if(d!==g)if(pd(d)&&pd(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 d!=null&&d.transform&&(g!=null&&g.transform)&&(c===0||h===0)?c===0?u.set(g.transform(c)):t[a]=d.transform(h):(o||(i=R1(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=M1(t,e,l);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Wi&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function D1(e,t,n,r){return j1(t)?A1(e,t,n,r):{target:t,transitionEnd:r}}const V1=(e,t,n,r)=>{const s=N1(e,t,r);return t=s.target,r=s.transitionEnd,D1(e,t,n,r)},zl={current:null},nm={current:!1};function _1(){if(nm.current=!0,!!Wi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zl.current=e.matches;e.addListener(t),t()}else zl.current=!1}function O1(e,t,n){const{willChange:r}=t;for(const s in t){const i=t[s],o=n[s];if(_e(i))e.addValue(s,i),Ti(r)&&r.add(s);else if(_e(o))e.addValue(s,er(i,{owner:e})),Ti(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 yd=new WeakMap,rm=Object.keys(qr),I1=rm.length,vd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],F1=Ba.length;class z1{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=()=>X.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=Bh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const h=c[d];l[d]!==void 0&&_e(h)&&(h.set(l[d],!1),Ti(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,yd.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)),nm.current||_1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yd.delete(this.current),this.projection&&this.projection.unmount(),Nt(this.notifyUpdate),Nt(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=wn.has(t),s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.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<I1;a++){const u=rm[a],{isEnabled:c,Feature:d,ProjectionNode:h,MeasureLayout:g}=qr[u];h&&(o=h),c(n)&&(!this.features[u]&&d&&(this.features[u]=new d(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:c,dragConstraints:d,layoutScroll:h,layoutRoot:g}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||d&&On(d),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):ce()}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<vd.length;r++){const s=vd[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=O1(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<F1;r++){const s=Ba[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=Ya(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&&!_e(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 iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sm extends z1{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=rx(r,t||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),o&&(o=s(o))),i){tx(this,r,o);const l=V1(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function B1(e){return window.getComputedStyle(e)}class U1 extends sm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(wn.has(n)){const r=eu(n);return r&&r.default||0}else{const r=B1(t),s=(Hh(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hp(t,n)}build(t,n,r,s){Wa(t,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ga(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,s){Zh(t,n,r,s)}}class $1 extends sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=eu(n);return r&&r.default||0}return n=qh.has(n)?n:Fa(n),t.getAttribute(n)}measureInstanceViewportBox(){return ce()}scrapeMotionValuesFromProps(t,n){return ep(t,n)}build(t,n,r,s){Ka(t,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,r,s){Jh(t,n,r,s)}mount(t){this.isSVGTag=Qa(t.tagName),super.mount(t)}}const W1=(e,t)=>$a(e)?new $1(t,{enableHardwareAcceleration:!1}):new U1(t,{enableHardwareAcceleration:!0}),H1={layout:{ProjectionNode:em,MeasureLayout:Qp}},K1={...vx,...I0,...C1,...H1},Q1=Qy((e,t)=>P0(e,t,K1,W1));function im(){const e=S.useRef(!1);return Ia(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function G1(){const e=im(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>X.postRender(r),[r]),t]}class Y1 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 X1({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(Y1,{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=tp(Z1),a=S.useId(),u=S.useMemo(()=>({id:a,initial:t,isPresent:n,custom:s,onExitComplete:c=>{l.set(c,!0);for(const d of l.values())if(!d)return;r&&r()},register:c=>(l.set(c,!1),()=>l.delete(c))}),i?void 0:[n]);return S.useMemo(()=>{l.forEach((c,d)=>l.set(d,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=S.createElement(X1,{isPresent:n},e)),S.createElement($i.Provider,{value:u},e)};function Z1(){return new Map}function q1(e){return S.useEffect(()=>()=>e(),[])}const on=e=>e.key||"";function J1(e,t){e.forEach(n=>{const r=on(n);t.set(r,n)})}function ek(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const tk=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{const l=S.useContext(Ua).forceRender||G1()[0],a=im(),u=ek(e);let c=u;const d=S.useRef(new Map).current,h=S.useRef(c),g=S.useRef(new Map).current,v=S.useRef(!0);if(Ia(()=>{v.current=!1,J1(u,g),h.current=c}),q1(()=>{v.current=!0,g.clear(),d.clear()}),v.current)return S.createElement(S.Fragment,null,c.map(p=>S.createElement(Vo,{key:on(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:o},p)));c=[...c];const x=h.current.map(on),T=u.map(on),y=x.length;for(let p=0;p<y;p++){const m=x[p];T.indexOf(m)===-1&&!d.has(m)&&d.set(m,void 0)}return o==="wait"&&d.size&&(c=[]),d.forEach((p,m)=>{if(T.indexOf(m)!==-1)return;const k=g.get(m);if(!k)return;const C=x.indexOf(m);let j=p;if(!j){const N=()=>{d.delete(m);const P=Array.from(g.keys()).filter(R=>!T.includes(R));if(P.forEach(R=>g.delete(R)),h.current=u.filter(R=>{const M=on(R);return M===m||P.includes(M)}),!d.size){if(a.current===!1)return;l(),r&&r()}};j=S.createElement(Vo,{key:on(k),isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:o},k),d.set(m,j)}c.splice(C,0,j)}),c=c.map(p=>{const m=p.key;return d.has(m)?p:S.createElement(Vo,{key:on(p),isPresent:!0,presenceAffectsLayout:i,mode:o},p)}),S.createElement(S.Fragment,null,d.size?c:c.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 nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),om=(...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 rk={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 sk=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,...rk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:om("lucide",s),...l},[...o.map(([u,c])=>S.createElement(u,c)),...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 pe=(e,t)=>{const n=S.forwardRef(({className:r,...s},i)=>S.createElement(sk,{ref:i,iconNode:t,className:om(`lucide-${nk(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=pe("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 ik=pe("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 lm=pe("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 ok=pe("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 lk=pe("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 Bl=pe("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 ak=pe("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 uk=pe("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 ck=pe("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 dk=pe("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 fk=pe("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 hk=pe("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 pk=pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
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 mk=pe("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"}]]);/**
|
|
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 xd=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 gk=pe("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"}]]);/**
|
|
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 yk=pe("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"}]]);/**
|
|
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 Ul=pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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 vk=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function am({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 f.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?f.jsx(lm,{className:"w-4 h-4"}):f.jsx(ck,{className:"w-4 h-4"})})}const xk=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),As=(e,t)=>{const n=String(e??""),r=(t||"").trim();if(!r)return n;const s=new RegExp(xk(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(f.jsx("mark",{className:"rounded bg-black/10 dark:bg-white/20 px-1",children:i[u]},`mark-${u}`))}),l};function kd({className:e=""}){return f.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:f.jsx(us,{className:"w-7 h-7"})})}function kk({className:e=""}){return f.jsxs("div",{className:`relative mx-auto w-14 h-14 ${e}`,"aria-hidden":"true",children:[f.jsx("span",{className:"absolute inset-0 rounded-full border border-black/30 dark:border-white/30 animate-ping"}),f.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:f.jsx(us,{className:"w-7 h-7"})})]})}function wk({className:e=""}){return f.jsxs("div",{className:`relative mx-auto w-14 h-14 ${e}`,"aria-hidden":"true",children:[f.jsx("span",{className:"absolute inset-0 rounded-full border border-black/20 dark:border-white/20 success-ring"}),f.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:f.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:f.jsx("path",{d:"M5 13l4 4L19 7"})})})]})}function wd({children:e}){return f.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 $l({children:e}){return f.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 f.jsx(e,{className:`border-t border-black/10 dark:border-white/10 p-6 ${t}`,children:n})}function Sk({open:e,onToggle:t}){return f.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 Ck=e=>e==null?f.jsx("span",{className:"italic",children:"—"}):typeof e=="string"?e.length>140||e.includes(`
|
|
164
|
+
`)?f.jsx($l,{children:e}):f.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:e}):typeof e=="object"?f.jsx("pre",{className:"raw-json-block raw-json-block--full",children:um(e)}):f.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(e)});function um(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(f.jsx("span",{className:a,children:l},`json-${o}`)),s=o+l.length}return s<t.length&&r.push(t.slice(s)),r}function Sd(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 Tk({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),[c,d]=S.useState(!1),h=S.useMemo(()=>{let w={inputTokens:0,outputTokens:0},L={inputTokens:0,outputTokens:0};for(let F=0;F<n.length;F++){const z=n[F];if((z==null?void 0:z.event)==="AGENT_COMPLETED"&&z.usage){const $=z.usage.inputTokens||0,V=z.usage.outputTokens||0;L.inputTokens+=$,L.outputTokens+=V,F<=t&&(w.inputTokens+=$,w.outputTokens+=V)}}return{pointInTime:w,total:L,hasTokens:L.inputTokens>0||L.outputTokens>0}},[n,t]),v=(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED")&&!!e.fullAuto,x=e.type||"text",T=e.options||[],y=e.autoSelectDelay??20,p=v&&x==="choice"&&T.length>0,[m,k]=S.useState(0),C=(()=>{if(!p)return null;const w=new Date(e.timestamp).getTime(),L=Math.floor((Date.now()-w)/1e3);return y-L})();S.useEffect(()=>{if(!p)return;const w=setInterval(()=>{k(L=>L+1)},1e3);return()=>clearInterval(w)},[p,e.timestamp]);const j=w=>w.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\b\w/g,F=>F.toUpperCase()),N=w=>{try{return JSON.parse(w)}catch{return null}},P=w=>{const L=w.trim(),F=N(L);if(F!==null)return F;const z=/```(?:json)?\s*([\s\S]*?)\s*```/gi;let $=z.exec(L);for(;$;){const V=$[1].trim(),Q=N(V);if(Q!==null)return Q;$=z.exec(L)}return null},R=w=>{const L=String(w??"").trim();return L?Math.max(1,Math.round(L.length/4)):0},M=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",H=w=>{if(typeof w!="string"||!w.trim())return{cleanedPrompt:"",contextTitle:null,contextData:null,contextRaw:""};const F=/(^|\n)(?:#+\s*)?(Current\s+)?Context\s*\n+```json\s*([\s\S]*?)\s*```/i.exec(w);if(!F)return{cleanedPrompt:w,contextTitle:null,contextData:null,contextRaw:""};const z=F[2]?"Current Context":"Context",$=(F[3]||"").trim(),V=N($),Q=w.slice(0,F.index),qe=w.slice(F.index+F[0].length);return{cleanedPrompt:`${Q}
|
|
165
|
+
|
|
166
|
+
${qe}`.replace(/\n{3,}/g,`
|
|
167
|
+
|
|
168
|
+
`).trim(),contextTitle:z,contextData:V??$,contextRaw:$}},ee=w=>{if(typeof w!="string"||!w.trim())return[];const L=w.split(/\r?\n/),F=[];let z=null,$=!1;const V=()=>{if(!z)return;const Q=z.content.join(`
|
|
169
|
+
`).replace(/\n{3,}/g,`
|
|
170
|
+
|
|
171
|
+
`).trim();if(!Q){z=null;return}F.push({title:z.title||"Prompt",content:Q}),z=null};return L.forEach(Q=>{const qe=Q.trim();if(/^```/.test(qe)&&($=!$),!qe){z&&z.content.push("");return}if(!$&&/^---+$/.test(qe)){V();return}const ot=$?null:/^(#{1,6})\s+(.+)$/.exec(qe);if(ot){V(),z={title:ot[2].trim(),content:[]};return}z||(z={title:"Prompt",content:[]}),z.content.push(Q)}),V(),F},oe=(w,L)=>w?w.includes("```")?f.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,L)}):f.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,L)}):f.jsx(mr,{className:"italic text-black/40 dark:text-white/40",children:"—"}),D=w=>{if(w==null)return f.jsx("span",{className:"italic",children:"—"});if(typeof w=="boolean"){const L="inline-flex items-center rounded-full px-3 py-1 text-[11px] font-semibold tracking-[0.16em] uppercase border";return w?f.jsx("span",{className:`${L} bg-black text-white border-black dark:bg-white dark:text-black dark:border-white`,children:"Yes"}):f.jsx("span",{className:`${L} bg-white text-black border-black dark:bg-black dark:text-white dark:border-white`,children:"No"})}if(typeof w=="string"){const L=P(w);return L!==null?b(L):w.length>140||w.includes(`
|
|
172
|
+
`)?f.jsx($l,{children:w}):f.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:w})}return typeof w=="object"?f.jsx(wd,{children:JSON.stringify(w,null,2)}):f.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(w)})},K=6;function B(w,L){if(!w.length)return f.jsx("span",{className:"italic",children:"—"});const F=w.every(V=>V===null||["string","number","boolean"].includes(typeof V)),$=w.every(V=>V&&typeof V=="object"&&!Array.isArray(V))&&w.every(V=>Object.values(V).every(Q=>Q===null||["string","number","boolean"].includes(typeof Q)));return F?f.jsx("div",{className:"space-y-3",children:w.map((V,Q)=>f.jsx("div",{className:"text-base sm:text-lg",children:D(V)},`item-${Q}`))}):$?f.jsx("div",{className:"space-y-4",children:w.map((V,Q)=>f.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:_(Object.entries(V),L)},`item-${Q}`))}):f.jsx("div",{className:"space-y-6",children:w.map((V,Q)=>f.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:[f.jsxs("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:["Item ",Q+1]}),b(V,L+1)]},`item-${Q}`))})}function te(w,L){const F=Object.entries(w);return F.length?L>=K?D(w):_(F,L):f.jsx("span",{className:"italic",children:"—"})}function b(w,L=0){return w==null||typeof w=="string"||typeof w=="number"||typeof w=="boolean"?D(w):Array.isArray(w)?B(w,L):typeof w=="object"?te(w,L):D(w)}function _(w,L=0){return f.jsx("div",{className:"space-y-6",children:w.map(([F,z])=>f.jsxs("div",{className:"grid gap-2 sm:grid-cols-[160px_1fr] sm:items-start min-w-0",children:[f.jsx("div",{className:"text-xs font-semibold text-black/50 dark:text-white/50 break-words",children:j(F)}),f.jsx("div",{className:"text-base sm:text-lg leading-relaxed break-words min-w-0",children:b(z,L+1)})]},F))})}let O=null;if(e.event==="AGENT_STARTED"){const{cleanedPrompt:w,contextTitle:L,contextData:F,contextRaw:z}=H(e.prompt||""),$=ee(w),V=s.trim(),Q=V.toLowerCase(),qe=V?$.filter(me=>`${me.title}
|
|
173
|
+
${me.content}`.toLowerCase().includes(Q)):[],ot=$.length?`${$.length} sections`:null,Cn=R(z||""),lt=z?`~${M(Cn)}`:"";O=f.jsxs("div",{className:"space-y-10 py-6",children:[f.jsxs("div",{className:"space-y-3 text-center",children:[f.jsx(kk,{}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.28em] uppercase text-black/50 dark:text-white/50",children:"Agent started"}),f.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight",children:e.agent})]})]}),L&&F!==null&&f.jsxs("details",{className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[f.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Bl,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),L==="Current Context"?f.jsx(ik,{className:"w-4 h-4","aria-hidden":"true"}):null,f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60",children:L})]}),lt?f.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:lt}):null]}),typeof F=="string"?f.jsx(mr,{className:"text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:F}):f.jsx(mr,{children:b(F)})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Prompt"}),f.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:f.jsx(xd,{className:"w-4 h-4"})})]}),ot?f.jsx("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:ot}):null]}),f.jsx("div",{className:"space-y-4",children:$.length>0?$.map((me,cs)=>{const ds=/(^| )instructions$/i.test(me.title.trim()),cm=cs===0||ds,ou=me.content?me.content.split(/\r?\n/).length:0;return f.jsxs("details",{open:cm,className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[f.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[f.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[f.jsx(Bl,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60 break-words",children:me.title||"Prompt"})]}),ou?f.jsxs("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:[ou," lines"]}):null]}),oe(me.content,"")]},`${me.title}-${cs}`)}):f.jsx($l,{children:w})})]}),a?f.jsx("div",{className:"fixed inset-0 z-40 bg-white text-black dark:bg-black dark:text-white",children:f.jsx("div",{className:"h-full w-full overflow-y-auto custom-scroll px-6 sm:px-10 py-10",children:f.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:"Prompt search"}),f.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"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(xd,{className:"w-4 h-4 text-black/50 dark:text-white/60 absolute left-4 top-1/2 -translate-y-1/2"}),f.jsx("input",{value:s,onChange:me=>i(me.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}),V?f.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:f.jsx(vk,{className:"w-3.5 h-3.5"})}):null]}),V?qe.length>0?f.jsx("div",{className:"space-y-4",children:qe.map((me,cs)=>{const ds=me.content?me.content.split(/\r?\n/).length:0;return f.jsxs("div",{className:"rounded-[22px] border border-black/10 dark:border-white/15 bg-black/[0.02] dark:bg-white/5 overflow-hidden",children:[f.jsxs("div",{className:"px-5 py-4 flex items-center justify-between gap-4",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/70 dark:text-white/70 break-words",children:As(me.title||"Prompt",V)}),ds?f.jsxs("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:[ds," lines"]}):null]}),f.jsx("div",{className:"border-t border-black/10 dark:border-white/10 p-5",children:f.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(me.content||"",V)})})]},`${me.title}-${cs}`)})}):f.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 "',V,'".']}):f.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=f.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-16",children:[f.jsx("div",{className:"text-[10px] font-semibold tracking-[0.4em] uppercase text-black/50 dark:text-white/50",children:"Lifecycle status"}),f.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:[f.jsx("h2",{className:"text-4xl sm:text-6xl md:text-7xl font-black tracking-tighter leading-none uppercase",children:w}),e.error&&f.jsx("div",{className:"mt-6",children:f.jsx(wd,{children:e.error})})]})]})}else if(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED"){const L=e.event==="INTERACTION_REQUESTED"?"Interaction needed":"Question asked",F=e.question||e.prompt||"Prompt",z=e.agent||e.slug||"Agent";O=f.jsxs("div",{className:"py-10 sm:py-14 space-y-8",children:[f.jsxs("div",{className:"text-center space-y-4",children:[f.jsx(kd,{className:"w-12 h-12"}),f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:L}),f.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[z," needs your input"]})]}),f.jsx("div",{className:"text-3xl sm:text-4xl md:text-5xl font-black tracking-tight leading-tight text-center text-balance",children:F}),p&&C!==null&&f.jsx("div",{className:"text-center",children:f.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${C>0?"bg-black/5 dark:bg-white/10":"bg-black text-white dark:bg-white dark:text-black"}`,children:[f.jsx("span",{className:"text-xl",children:"⚡"}),f.jsx("span",{className:`text-sm font-semibold ${C>0?"text-black/70 dark:text-white/70":""}`,children:C>0?`Agent deciding in ${C}s...`:"Auto-selected"})]})}),x==="choice"&&T.length>0&&f.jsxs("div",{className:"space-y-3 max-w-2xl mx-auto",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50 text-center",children:"Options"}),f.jsx("div",{className:"space-y-2",children:T.map(($,V)=>f.jsxs("div",{className:`p-4 rounded-2xl border transition-all ${V===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:[f.jsx("div",{className:"flex items-center gap-3",children:f.jsxs("div",{className:`font-bold ${V===0?"":"text-black dark:text-white"}`,children:[$.label||$.key,V===0&&f.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"})]})}),$.description&&f.jsx("div",{className:`text-sm mt-1 ${V===0?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50"}`,children:$.description})]},$.key||V))}),e.allowCustom&&f.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",L=e.agent||e.slug||"Agent";O=f.jsxs("div",{className:"space-y-8 py-6",children:[f.jsxs("div",{className:"space-y-4 text-center",children:[f.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:f.jsx("span",{className:"text-2xl",children:"⚡"})}),f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Auto-selected"}),f.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[L," decided automatically"]})]}),f.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:f.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.",L=e.source==="remote"?"Received from remote":e.source?`Received from ${e.source}`:"Received",F=e.agent||e.slug||"Agent";O=f.jsxs("div",{className:"space-y-8 py-6",children:[f.jsxs("div",{className:"space-y-4 text-center",children:[f.jsx(kd,{className:"w-12 h-12"}),f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Interaction resolved"}),f.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[F," received your response"]})]}),f.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:[f.jsx("div",{className:"text-xl sm:text-2xl font-semibold leading-relaxed text-balance",children:w}),f.jsx("div",{className:"mt-3 text-sm text-black/60 dark:text-white/60",children:L})]})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const w=e.answer!==void 0?e.answer:e.response;O=f.jsx("div",{className:"space-y-8 py-6",children:f.jsxs("div",{className:"space-y-3",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Response sent"}),Ck(w)]})})}else if(e.event==="AGENT_COMPLETED"){const w=e.usage&&(e.usage.inputTokens>0||e.usage.outputTokens>0);O=f.jsxs("div",{className:"space-y-10 py-6",children:[f.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:[f.jsx(wk,{className:"w-12 h-12"}),f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Agent completed"}),f.jsx("div",{className:"text-2xl sm:text-3xl font-black tracking-tight",children:e.agent||"Agent"}),w&&f.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-sm",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"In:"}),f.jsx("span",{className:"font-mono font-semibold",children:M(e.usage.inputTokens)})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"Out:"}),f.jsx("span",{className:"font-mono font-semibold",children:M(e.usage.outputTokens)})]}),e.usage.cachedTokens>0&&f.jsxs("div",{className:"flex items-center gap-2 text-black/40 dark:text-white/40",children:[f.jsx("span",{children:"Cached:"}),f.jsx("span",{className:"font-mono",children:M(e.usage.cachedTokens)})]}),e.usage.cost>0&&f.jsx("div",{className:"flex items-center gap-2 text-black/60 dark:text-white/60",children:f.jsxs("span",{className:"font-mono font-semibold",children:["$",e.usage.cost.toFixed(4)]})})]}),e.model&&f.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:e.model}),typeof e.attempts=="number"&&f.jsxs("div",{className:"text-sm text-black/60 dark:text-white/60",children:[e.attempts," ",e.attempts===1?"attempt":"attempts"]})]}),e.output!==void 0?f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Answer"}),f.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:b(e.output)})]}):null]})}else{const w=Object.entries(e).filter(([L])=>L!=="event"&&L!=="timestamp");O=f.jsx("div",{className:"space-y-6 py-6",children:f.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:[f.jsx("div",{className:"text-lg sm:text-xl font-semibold leading-relaxed text-balance",children:e.event?e.event.replace(/_/g," "):"Event"}),f.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 f.jsx("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:f.jsxs("div",{className:"content-width flex-1",children:[f.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:[f.jsx("div",{className:"flex items-center gap-3",children:h.hasTokens&&f.jsxs("div",{className:"relative",children:[f.jsxs("button",{type:"button",onClick:()=>d(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":c,"aria-label":"Toggle token stats",children:[f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),f.jsx("span",{children:Sd(h.pointInTime.inputTokens)}),f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),f.jsx("span",{children:Sd(h.pointInTime.outputTokens)}),f.jsx(ok,{className:`w-3 h-3 text-black/40 dark:text-white/40 transition-transform ${c?"rotate-180":""}`})]}),c&&f.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:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40",children:["Up to page ",t+1]}),f.jsxs("div",{className:"flex items-center gap-3 text-sm font-mono",children:[f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),f.jsx("span",{className:"font-semibold",children:h.pointInTime.inputTokens.toLocaleString()}),f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),f.jsx("span",{className:"font-semibold",children:h.pointInTime.outputTokens.toLocaleString()})]})]}),f.jsxs("div",{className:"border-t border-black/10 dark:border-white/10 pt-3 space-y-1",children:[f.jsx("div",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-black/40 dark:text-white/40",children:"Session total"}),f.jsxs("div",{className:"flex items-center gap-3 text-sm font-mono",children:[f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↑"}),f.jsx("span",{className:"font-semibold",children:h.total.inputTokens.toLocaleString()}),f.jsx("span",{className:"text-black/50 dark:text-white/50",children:"↓"}),f.jsx("span",{className:"font-semibold",children:h.total.outputTokens.toLocaleString()})]})]})]})]})}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Sk,{open:o,onToggle:()=>l(w=>!w)}),f.jsx(am,{text:e})]})]}),f.jsx("div",{className:"pt-6",children:f.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:r})}),o?f.jsx("pre",{className:"raw-json-block",children:um(e)}):O]})})}const Pk=e=>{const t="w-3.5 h-3.5 text-black/70 dark:text-white/70";if(!e)return f.jsx(Ul,{className:`${t} opacity-40`});const n=e.toUpperCase();return n.includes("STARTED")||n.includes("START")?f.jsx(pk,{className:`${t} opacity-70`}):n.includes("SUBMITTED")||n.includes("ANSWERED")||n.includes("SUCCESS")||n.includes("RESOLVED")?f.jsx(uk,{className:`${t} opacity-80`}):n.includes("REQUESTED")||n.includes("REQUEST")?f.jsx(gk,{className:`${t} opacity-60`}):n.includes("ERROR")||n.includes("FAILED")?f.jsx(ak,{className:`${t} opacity-90`}):f.jsx(Ul,{className:`${t} opacity-40`})},Nk=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":f.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&f.jsx("span",{className:"text-black/60 dark:text-white/60 font-medium text-[10px] tracking-[0.24em] uppercase",children:n}),t&&f.jsx("span",{className:"opacity-70 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function Ek({history:e,onJump:t}){return f.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:f.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 sm:px-8 lg:px-10 py-20",children:f.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?f.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[f.jsx(Ul,{className:"w-12 h-12"}),f.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 f.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:[f.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:f.jsx("span",{className:"text-[10px] font-mono font-medium opacity-30 group-hover:opacity-60 transition-opacity",children:s})}),f.jsx("div",{className:"flex-shrink-0 pt-0.5",children:Pk(n.event)}),f.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[f.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"}),f.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-black dark:group-hover:text-white transition-colors",children:Nk(n)})]})]},r)})})})})}function jk({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 c=d=>{const{value:h}=d.target;u(h);const g=parseInt(h,10);!Number.isNaN(g)&&g>=1&&g<=t&&s(g-1)};return f.jsx("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:f.jsxs("div",{className:"footer-control",children:[f.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:f.jsx(lk,{className:"w-5 h-5"})}),f.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[f.jsx("input",{type:"number",value:a,onChange:c,className:"jumper-input",min:"1",max:t}),f.jsx("span",{className:"opacity-20",children:"/"}),f.jsx("span",{children:t})]}),f.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:f.jsx(Bl,{className:"w-5 h-5"})}),i?f.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 bk({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:s,setViewMode:i,history:o}){return f.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:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:`w-2.5 h-2.5 rounded-full border ${t==="connected"?"bg-black border-black dark:bg-white dark:border-white":"bg-transparent border-black/30 dark:border-white/30"}`,"aria-hidden":"true"}),f.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"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(am,{text:o||[],label:"Copy full history",disabled:!o||o.length===0}),f.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"?f.jsx(dk,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):f.jsx(mk,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),f.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"?f.jsx(yk,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):f.jsx(hk,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function Lk({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,options:i=[],multiSelect:o,allowCustom:l,fullAuto:a,autoSelectDelay:u=20,timestamp:c}=e,[d,h]=S.useState(o?[]:null),[g,v]=S.useState(""),[x,T]=S.useState(!1),[y,p]=S.useState(0),m=S.useMemo(()=>i||[],[i]),k=r||s||"Choose an option.",C=S.useMemo(()=>{if(!a||!c)return null;const R=new Date(c).getTime(),M=Math.floor((Date.now()-R)/1e3);return u-M},[a,c,u,y]);S.useEffect(()=>{if(!a)return;const R=setInterval(()=>p(M=>M+1),1e3);return()=>clearInterval(R)},[a]);const j=R=>{o?(h(M=>M.includes(R)?M.filter(H=>H!==R):[...M,R]),T(!1)):(h(R),T(!1))},N=()=>{if(x&&g.trim()){t({isCustom:!0,customText:g.trim(),raw:g.trim()});return}if(o&&d.length>0){t({selectedKeys:d,raw:d.join(", ")});return}d&&t({selectedKey:d,raw:String(d)})},P=x?!!g.trim():o?d.length>0:!!d;return f.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[f.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[f.jsxs("div",{className:"space-y-4 shrink-0",children:[f.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:f.jsx(us,{className:"w-8 h-8"})}),f.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),f.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&&C!==null&&f.jsx("div",{className:"text-center",children:f.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${C>0?"bg-yellow-500 text-black animate-pulse":"bg-black text-white dark:bg-white dark:text-black"}`,children:[f.jsx("span",{className:"text-xl",children:"⚡"}),f.jsx("span",{className:"text-sm font-bold",children:C>0?`Agent deciding in ${C}s...`:"Auto-selecting recommended option..."})]})}),f.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[m.map((R,M)=>{const H=o?d.includes(R.key):d===R.key,ee=H?"text-white dark:text-black":"text-black dark:text-white",oe=H?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50";return f.jsx("button",{onClick:()=>j(R.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${H?"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:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${H?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/30 dark:border-white/30"}`,children:H&&f.jsx(lm,{className:"w-4 h-4"})}),f.jsxs("div",{className:"flex-1",children:[f.jsxs("div",{className:`font-bold text-lg break-words flex flex-wrap items-center gap-2 ${ee}`,children:[f.jsx("span",{className:"break-words",children:R.label||R.key}),M===0&&f.jsx("span",{className:`ml-2 text-xs font-medium px-2 py-0.5 rounded-full ${H?"bg-white/20 dark:bg-black/20":"bg-black/10 dark:bg-white/10"}`,children:"Recommended"})]}),R.description&&f.jsx("div",{className:`text-sm mt-1 break-words ${oe}`,children:R.description})]})]})},R.key)}),l&&f.jsxs("button",{onClick:()=>{T(!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:[f.jsx("div",{className:`font-bold text-lg break-words ${x?"text-white dark:text-black":"text-black dark:text-white"}`,children:"Other"}),f.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&&f.jsx("textarea",{value:g,onChange:R=>v(R.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"})]})]}),f.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:f.jsx("button",{onClick:N,disabled:n||!P,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 Rk({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,confirmLabel:i="Confirm",cancelLabel:o="Cancel",context:l}=e;return f.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[f.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:[f.jsxs("div",{className:"space-y-4",children:[f.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:f.jsx(us,{className:"w-8 h-8"})}),f.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),f.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)&&f.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",f.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),f.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:[f.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}),f.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 Mk({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:s,placeholder:i,validation:o}=e,[l,a]=S.useState(""),[u,c]=S.useState(null),d=S.useMemo(()=>o||{},[o]),h=v=>d.minLength&&v.length<d.minLength?`Minimum ${d.minLength} characters required`:d.maxLength&&v.length>d.maxLength?`Maximum ${d.maxLength} characters allowed`:d.pattern&&!new RegExp(d.pattern).test(v)?"Invalid format":null,g=()=>{const v=l.trim(),x=h(v);if(x){c(x);return}t({text:v,raw:v})};return f.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[f.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[f.jsxs("div",{className:"space-y-4 shrink-0",children:[f.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:f.jsx(us,{className:"w-8 h-8"})}),f.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),f.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[f.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."}),f.jsx("textarea",{value:l,onChange:v=>{a(v.target.value),c(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&&f.jsx("div",{className:"text-black dark:text-white text-center text-sm font-semibold",children:u})]})]}),f.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:f.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 Ak({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 f.jsx(Lk,{interaction:e,onSubmit:s,disabled:n},e.slug);case"confirm":return f.jsx(Rk,{interaction:e,onSubmit:s,disabled:n},e.slug);case"text":default:return f.jsx(Mk,{interaction:e,onSubmit:s,disabled:n},e.slug)}}function Dk({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 f.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:f.jsxs("div",{className:"content-width w-full flex flex-col items-center text-center gap-6",children:[f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute -inset-4 rounded-[36px] bg-black/10 dark:bg-white/10 blur-2xl opacity-60","aria-hidden":"true"}),f.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:f.jsx(fk,{className:"w-9 h-9 text-black dark:text-white animate-spin"})})]}),f.jsxs("div",{className:"space-y-3",children:[f.jsx("div",{className:"text-4xl font-black tracking-tight",children:"Sending response"}),f.jsx("div",{className:"text-lg font-medium text-black/60 dark:text-white/60 max-w-xl break-words",children:t}),f.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase opacity-30",children:"Keep this tab open"})]})]})})}function Vk(){const[e,t]=S.useState([]),[n,r]=S.useState(0),[s,i]=S.useState("connecting"),[o,l]=S.useState("..."),[a,u]=S.useState("light"),[c,d]=S.useState("present"),[h,g]=S.useState(null),[v,x]=S.useState(!1),[T,y]=S.useState(null);S.useEffect(()=>{const D=localStorage.getItem("rf_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");u(D);const K=localStorage.getItem("rf_view")||"present";d(K)},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem("rf_theme",a)},[a]),S.useEffect(()=>{localStorage.setItem("rf_view",c)},[c]);const p=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,m=p?`/api/history/${p}`:"/api/history",k=p?`/api/events/${p}`:"/api/events",C=p?`/api/submit/${p}`:"/api/submit",j=async()=>{try{const K=await(await fetch(m)).json();if(K.entries){const B=[...K.entries].reverse();t(b=>(b.length===0&&B.length>0&&r(B.length-1),B));const te=B[B.length-1];te&&(te.event==="INTERACTION_REQUESTED"||te.event==="PROMPT_REQUESTED")?g(te):g(null)}K.workflowName&&l(K.workflowName),i("connected")}catch{i("disconnected")}},N=S.useRef(0);S.useEffect(()=>{e.length>N.current&&(N.current===0&&e.length>0?(r(e.length-1),x(!1)):n<e.length-1&&x(!0)),N.current=e.length},[e.length,n]),S.useEffect(()=>{if(!T||e.length===0)return;const D=e[e.length-1];if(e.length!==T.historyLength||D!=null&&D.timestamp&&D.timestamp!==T.lastEventTimestamp){if((D==null?void 0:D.event)==="INTERACTION_SUBMITTED"){y(B=>B&&{...B,historyLength:e.length,lastEventTimestamp:(D==null?void 0:D.timestamp)||B.lastEventTimestamp});return}y(null),r(e.length-1)}},[e,T]),S.useEffect(()=>{n===e.length-1&&x(!1)},[n,e.length]),S.useEffect(()=>{j();const D=setInterval(j,3e3),K=new EventSource(k);return K.onmessage=B=>{B.data==="update"&&j()},()=>{clearInterval(D),K.close()}},[]);const P=()=>r(D=>Math.min(e.length-1,D+1)),R=()=>r(D=>Math.max(0,D-1));S.useEffect(()=>{const D=K=>{(K.target.tagName==="TEXTAREA"||K.target.tagName==="INPUT"&&K.target.type==="number")&&K.target.className!=="jumper-input"||(K.key==="ArrowRight"&&P(),K.key==="ArrowLeft"&&R())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[e.length]);const M=e[n],H=M&&(M.event==="INTERACTION_REQUESTED"||M.event==="PROMPT_REQUESTED"),ee=h&&H&&M.slug===h.slug,oe=!!T;return f.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[f.jsx(bk,{workflowName:o,status:s,theme:a,toggleTheme:()=>u(D=>D==="dark"?"light":"dark"),viewMode:c,setViewMode:d,history:e}),f.jsx("main",{className:"main-stage overflow-hidden",children:c==="log"?f.jsx(Ek,{history:e,onJump:D=>{r(D),d("present")}}):f.jsx(tk,{mode:"wait",children:f.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:oe?f.jsx(Dk,{submission:T}):ee?f.jsx("div",{className:"content-width h-full",children:f.jsx(Ak,{interaction:h,onSubmit:async(D,K,B)=>{const te=e[e.length-1];y({slug:D,targetKey:K,historyLength:e.length,lastEventTimestamp:(te==null?void 0:te.timestamp)||null});try{const b=await fetch(C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:D,targetKey:K,response:B})});if(!b.ok)throw new Error(`Submit failed with ${b.status}`)}catch{y(null)}finally{setTimeout(j,1e3)}},disabled:s==="disconnected"||oe})}):f.jsx(Tk,{item:M,pageIndex:n,history:e})},n)})}),f.jsx(jk,{page:n,total:e.length,onNext:P,onPrev:R,onJump:r,hasNew:v,onJumpToLatest:()=>r(e.length-1),className:c==="log"?"opacity-0 pointer-events-none":"opacity-100"})]})}const _k=Oh(document.getElementById("root"));_k.render(f.jsx(Vk,{}));
|