agent-state-machine 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +65 -9
- package/lib/llm.js +134 -22
- package/lib/remote/client.js +19 -6
- package/lib/runtime/agent.js +127 -3
- package/lib/runtime/runtime.js +127 -5
- package/package.json +1 -1
- package/templates/project-builder/config.js +4 -4
- package/vercel-server/api/config/[token].js +76 -0
- package/vercel-server/api/history/[token].js +1 -0
- package/vercel-server/api/ws/cli.js +39 -20
- package/vercel-server/local-server.js +98 -11
- package/vercel-server/public/remote/assets/index-BHvHkNOe.css +1 -0
- package/vercel-server/public/remote/assets/index-BSL55rdk.js +188 -0
- package/vercel-server/public/remote/index.html +2 -2
- package/vercel-server/ui/src/App.jsx +36 -1
- package/vercel-server/ui/src/components/ContentCard.jsx +350 -19
- package/vercel-server/ui/src/components/Footer.jsx +1 -6
- package/vercel-server/ui/src/components/Header.jsx +59 -11
- package/vercel-server/ui/src/components/SettingsModal.jsx +130 -0
- package/vercel-server/ui/src/index.css +53 -0
- package/vercel-server/public/remote/assets/index-BTLc1QSv.js +0 -168
- package/vercel-server/public/remote/assets/index-DLa4X08t.css +0 -1
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function sm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xf={exports:{}},Cs={},wf={exports:{}},B={};/**
|
|
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 Jr=Symbol.for("react.element"),om=Symbol.for("react.portal"),lm=Symbol.for("react.fragment"),am=Symbol.for("react.strict_mode"),um=Symbol.for("react.profiler"),cm=Symbol.for("react.provider"),fm=Symbol.for("react.context"),dm=Symbol.for("react.forward_ref"),hm=Symbol.for("react.suspense"),pm=Symbol.for("react.memo"),mm=Symbol.for("react.lazy"),iu=Symbol.iterator;function gm(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sf=Object.assign,Cf={};function tr(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||kf}tr.prototype.isReactComponent={};tr.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")};tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pf(){}Pf.prototype=tr.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||kf}var $l=Ul.prototype=new Pf;$l.constructor=Ul;Sf($l,tr.prototype);$l.isPureReactComponent=!0;var su=Array.isArray,Tf=Object.prototype.hasOwnProperty,Wl={current:null},Ef={key:!0,ref:!0,__self:!0,__source:!0};function Nf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Tf.call(t,r)&&!Ef.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Jr,type:e,key:s,ref:o,props:i,_owner:Wl.current}}function ym(e,t){return{$$typeof:Jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jr}function vm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ou=/\/+/g;function Gs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vm(""+e.key):t.toString(36)}function Mi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Jr:case om:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Gs(o,0):r,su(i)?(n="",e!=null&&(n=e.replace(ou,"$&/")+"/"),Mi(i,t,n,"",function(u){return u})):i!=null&&(Hl(i)&&(i=ym(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(ou,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",su(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Gs(s,l);o+=Mi(s,t,n,a,i)}else if(a=gm(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Gs(s,l++),o+=Mi(s,t,n,a,i);else if(s==="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 ai(e,t,n){if(e==null)return e;var r=[],i=0;return Mi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function xm(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 Ne={current:null},bi={transition:null},wm={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:bi,ReactCurrentOwner:Wl};function jf(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:ai,forEach:function(e,t,n){ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ai(e,function(){t++}),t},toArray:function(e){return ai(e,function(t){return t})||[]},only:function(e){if(!Hl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=tr;B.Fragment=lm;B.Profiler=um;B.PureComponent=Ul;B.StrictMode=am;B.Suspense=hm;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wm;B.act=jf;B.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=Sf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Wl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Tf.call(t,a)&&!Ef.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:Jr,type:e.type,key:i,ref:s,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:fm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cm,_context:e},e.Consumer=e};B.createElement=Nf;B.createFactory=function(e){var t=Nf.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:dm,render:e}};B.isValidElement=Hl;B.lazy=function(e){return{$$typeof:mm,_payload:{_status:-1,_result:e},_init:xm}};B.memo=function(e,t){return{$$typeof:pm,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};B.unstable_act=jf;B.useCallback=function(e,t){return Ne.current.useCallback(e,t)};B.useContext=function(e){return Ne.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Ne.current.useDeferredValue(e)};B.useEffect=function(e,t){return Ne.current.useEffect(e,t)};B.useId=function(){return Ne.current.useId()};B.useImperativeHandle=function(e,t,n){return Ne.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Ne.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Ne.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Ne.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Ne.current.useReducer(e,t,n)};B.useRef=function(e){return Ne.current.useRef(e)};B.useState=function(e){return Ne.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Ne.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Ne.current.useTransition()};B.version="18.3.1";wf.exports=B;var S=wf.exports;const Rf=sm(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 km=S,Sm=Symbol.for("react.element"),Cm=Symbol.for("react.fragment"),Pm=Object.prototype.hasOwnProperty,Tm=km.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Em={key:!0,ref:!0,__self:!0,__source:!0};function Lf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Pm.call(t,r)&&!Em.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Sm,type:e,key:s,ref:o,props:i,_owner:Tm.current}}Cs.Fragment=Cm;Cs.jsx=Lf;Cs.jsxs=Lf;xf.exports=Cs;var p=xf.exports,Mf={exports:{}},ze={},bf={exports:{}},Af={};/**
|
|
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(P,b){var D=P.length;P.push(b);e:for(;0<D;){var L=D-1>>>1,F=P[L];if(0<i(F,b))P[L]=b,P[D]=F,D=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var b=P[0],D=P.pop();if(D!==b){P[0]=D;e:for(var L=0,F=P.length,he=F>>>1;L<he;){var pe=2*(L+1)-1,Pt=P[pe],ve=pe+1,G=P[ve];if(0>i(Pt,D))ve<F&&0>i(G,Pt)?(P[L]=G,P[ve]=D,L=ve):(P[L]=Pt,P[pe]=D,L=pe);else if(ve<F&&0>i(G,D))P[L]=G,P[ve]=D,L=ve;else break e}}return b}function i(P,b){var D=P.sortIndex-b.sortIndex;return D!==0?D:P.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],f=1,c=null,d=3,g=!1,v=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=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(P){for(var b=n(u);b!==null;){if(b.callback===null)r(u);else if(b.startTime<=P)r(u),b.sortIndex=b.expirationTime,t(a,b);else break;b=n(u)}}function w(P){if(x=!1,m(P),!v)if(n(a)!==null)v=!0,k(C);else{var b=n(u);b!==null&&A(w,b.startTime-P)}}function C(P,b){v=!1,x&&(x=!1,y(E),E=-1),g=!0;var D=d;try{for(m(b),c=n(a);c!==null&&(!(c.expirationTime>b)||P&&!$());){var L=c.callback;if(typeof L=="function"){c.callback=null,d=c.priorityLevel;var F=L(c.expirationTime<=b);b=e.unstable_now(),typeof F=="function"?c.callback=F:c===n(a)&&r(a),m(b)}else r(a);c=n(a)}if(c!==null)var he=!0;else{var pe=n(u);pe!==null&&A(w,pe.startTime-b),he=!1}return he}finally{c=null,d=D,g=!1}}var j=!1,R=null,E=-1,M=5,V=-1;function $(){return!(e.unstable_now()-V<M)}function q(){if(R!==null){var P=e.unstable_now();V=P;var b=!0;try{b=R(!0,P)}finally{b?H():(j=!1,R=null)}}else j=!1}var H;if(typeof h=="function")H=function(){h(q)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,z=O.port2;O.port1.onmessage=q,H=function(){z.postMessage(null)}}else H=function(){T(q,0)};function k(P){R=P,j||(j=!0,H())}function A(P,b){E=T(function(){P(e.unstable_now())},b)}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(P){P.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,k(C))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var b=3;break;default:b=d}var D=d;d=b;try{return P()}finally{d=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,b){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var D=d;d=P;try{return b()}finally{d=D}},e.unstable_scheduleCallback=function(P,b,D){var L=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?L+D:L):D=L,P){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=D+F,P={id:f++,callback:b,priorityLevel:P,startTime:D,expirationTime:F,sortIndex:-1},D>L?(P.sortIndex=D,t(u,P),n(a)===null&&P===n(u)&&(x?(y(E),E=-1):x=!0,A(w,D-L))):(P.sortIndex=F,t(a,P),v||g||(v=!0,k(C))),P},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(P){var b=d;return function(){var D=d;d=b;try{return P.apply(this,arguments)}finally{d=D}}}})(Af);bf.exports=Af;var Nm=bf.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 jm=S,Ie=Nm;function N(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 Df=new Set,Ar={};function yn(e,t){Kn(e,t),Kn(e+"Capture",t)}function Kn(e,t){for(Ar[e]=t,e=0;e<t.length;e++)Df.add(t[e])}var vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Rm=/^[: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]*$/,lu={},au={};function Lm(e){return Do.call(au,e)?!0:Do.call(lu,e)?!1:Rm.test(e)?au[e]=!0:(lu[e]=!0,!1)}function Mm(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 bm(e,t,n,r){if(t===null||typeof t>"u"||Mm(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 je(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new je(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){ye[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kl=/[\-:]([a-z])/g;function Ql(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(Kl,Ql);ye[t]=new je(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(Kl,Ql);ye[t]=new je(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(Kl,Ql);ye[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gl(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(bm(t,n,i,r)&&(n=null),r||i===null?Lm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ct=jm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ui=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),Tn=Symbol.for("react.fragment"),Yl=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),Vf=Symbol.for("react.provider"),_f=Symbol.for("react.context"),Xl=Symbol.for("react.forward_ref"),_o=Symbol.for("react.suspense"),Oo=Symbol.for("react.suspense_list"),Zl=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),Of=Symbol.for("react.offscreen"),uu=Symbol.iterator;function ir(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,Ys;function mr(e){if(Ys===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ys=t&&t[1]||""}return`
|
|
34
|
-
`+Ys+e}var Xs=!1;function Zs(e,t){if(!e||Xs)return"";Xs=!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 i=u.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
|
37
|
-
`+i[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{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mr(e):""}function Am(e){switch(e.tag){case 5:return mr(e.type);case 16:return mr("Lazy");case 13:return mr("Suspense");case 19:return mr("SuspenseList");case 0:case 2:case 15:return e=Zs(e.type,!1),e;case 11:return e=Zs(e.type.render,!1),e;case 1:return e=Zs(e.type,!0),e;default:return""}}function Io(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 Tn:return"Fragment";case Pn:return"Portal";case Vo:return"Profiler";case Yl:return"StrictMode";case _o:return"Suspense";case Oo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _f:return(e.displayName||"Context")+".Consumer";case Vf:return(e._context.displayName||"Context")+".Provider";case Xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zl:return t=e.displayName||null,t!==null?t:Io(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return Io(e(t))}catch{}}return null}function Dm(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 Io(t);case 8:return t===Yl?"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 Wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function If(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vm(e){var t=If(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 ci(e){e._valueTracker||(e._valueTracker=Vm(e))}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=If(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hi(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 Fo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wt(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 zf(e,t){t=t.checked,t!=null&&Gl(e,"checked",t,!1)}function zo(e,t){zf(e,t);var n=Wt(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")?Bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bo(e,t.type,Wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fu(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 Bo(e,t,n){(t!=="number"||Hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gr=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Uo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function du(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(gr(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wt(n)}}function Bf(e,t){var n=Wt(t.value),r=Wt(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 hu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Uf(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 $o(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Uf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fi,$f=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fi=fi||document.createElement("div"),fi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(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},_m=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){_m.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Wf(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 Hf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Om=ne({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 Wo(e,t){if(t){if(Om[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Ho(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 Ko=null;function ql(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,Bn=null,Un=null;function pu(e){if(e=ni(e)){if(typeof Qo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=js(t),Qo(e.stateNode,e.type,t))}}function Kf(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function Qf(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,pu(e),t)for(e=0;e<t.length;e++)pu(t[e])}}function Gf(e,t){return e(t)}function Yf(){}var qs=!1;function Xf(e,t,n){if(qs)return e(t,n);qs=!0;try{return Gf(e,t,n)}finally{qs=!1,(Bn!==null||Un!==null)&&(Yf(),Qf())}}function Vr(e,t){var n=e.stateNode;if(n===null)return null;var r=js(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(N(231,t,typeof n));return n}var Go=!1;if(vt)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){Go=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Go=!1}function Im(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var kr=!1,Ki=null,Qi=!1,Yo=null,Fm={onError:function(e){kr=!0,Ki=e}};function zm(e,t,n,r,i,s,o,l,a){kr=!1,Ki=null,Im.apply(Fm,arguments)}function Bm(e,t,n,r,i,s,o,l,a){if(zm.apply(this,arguments),kr){if(kr){var u=Ki;kr=!1,Ki=null}else throw Error(N(198));Qi||(Qi=!0,Yo=u)}}function vn(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 Zf(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 mu(e){if(vn(e)!==e)throw Error(N(188))}function Um(e){var t=e.alternate;if(!t){if(t=vn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return mu(i),e;if(s===r)return mu(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,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){for(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)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function qf(e){return e=Um(e),e!==null?Jf(e):null}function Jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jf(e);if(t!==null)return t;e=e.sibling}return null}var ed=Ie.unstable_scheduleCallback,gu=Ie.unstable_cancelCallback,$m=Ie.unstable_shouldYield,Wm=Ie.unstable_requestPaint,ie=Ie.unstable_now,Hm=Ie.unstable_getCurrentPriorityLevel,Jl=Ie.unstable_ImmediatePriority,td=Ie.unstable_UserBlockingPriority,Gi=Ie.unstable_NormalPriority,Km=Ie.unstable_LowPriority,nd=Ie.unstable_IdlePriority,Ps=null,lt=null;function Qm(e){if(lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(Ps,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:Xm,Gm=Math.log,Ym=Math.LN2;function Xm(e){return e>>>=0,e===0?32:31-(Gm(e)/Ym|0)|0}var di=64,hi=4194304;function yr(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 Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=yr(l):(s&=o,s!==0&&(r=yr(s)))}else o=n&~i,o!==0?r=yr(o):s!==0&&(r=yr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-et(t),i=1<<n,r|=e[n],t&=~i;return r}function Zm(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 qm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-et(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Zm(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Xo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rd(){var e=di;return di<<=1,!(di&4194240)&&(di=64),e}function Js(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function Jm(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 i=31-et(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ea(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var W=0;function id(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var sd,ta,od,ld,ad,Zo=!1,pi=[],Vt=null,_t=null,Ot=null,_r=new Map,Or=new Map,Mt=[],eg="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 yu(e,t){switch(e){case"focusin":case"focusout":Vt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(t.pointerId)}}function or(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ni(t),t!==null&&ta(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function tg(e,t,n,r,i){switch(t){case"focusin":return Vt=or(Vt,e,t,n,r,i),!0;case"dragenter":return _t=or(_t,e,t,n,r,i),!0;case"mouseover":return Ot=or(Ot,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return _r.set(s,or(_r.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Or.set(s,or(Or.get(s)||null,e,t,n,r,i)),!0}return!1}function ud(e){var t=sn(e.target);if(t!==null){var n=vn(t);if(n!==null){if(t=n.tag,t===13){if(t=Zf(n),t!==null){e.blockedOn=t,ad(e.priority,function(){od(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 Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ko=r,n.target.dispatchEvent(r),Ko=null}else return t=ni(n),t!==null&&ta(t),e.blockedOn=n,!1;t.shift()}return!0}function vu(e,t,n){Ai(e)&&n.delete(t)}function ng(){Zo=!1,Vt!==null&&Ai(Vt)&&(Vt=null),_t!==null&&Ai(_t)&&(_t=null),Ot!==null&&Ai(Ot)&&(Ot=null),_r.forEach(vu),Or.forEach(vu)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Zo||(Zo=!0,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,ng)))}function Ir(e){function t(i){return lr(i,e)}if(0<pi.length){lr(pi[0],e);for(var n=1;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vt!==null&&lr(Vt,e),_t!==null&&lr(_t,e),Ot!==null&&lr(Ot,e),_r.forEach(t),Or.forEach(t),n=0;n<Mt.length;n++)r=Mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&(n=Mt[0],n.blockedOn===null);)ud(n),n.blockedOn===null&&Mt.shift()}var $n=Ct.ReactCurrentBatchConfig,Xi=!0;function rg(e,t,n,r){var i=W,s=$n.transition;$n.transition=null;try{W=1,na(e,t,n,r)}finally{W=i,$n.transition=s}}function ig(e,t,n,r){var i=W,s=$n.transition;$n.transition=null;try{W=4,na(e,t,n,r)}finally{W=i,$n.transition=s}}function na(e,t,n,r){if(Xi){var i=qo(e,t,n,r);if(i===null)uo(e,t,r,Zi,n),yu(e,r);else if(tg(i,e,t,n,r))r.stopPropagation();else if(yu(e,r),t&4&&-1<eg.indexOf(e)){for(;i!==null;){var s=ni(i);if(s!==null&&sd(s),s=qo(e,t,n,r),s===null&&uo(e,t,r,Zi,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else uo(e,t,r,null,n)}}var Zi=null;function qo(e,t,n,r){if(Zi=null,e=ql(r),e=sn(e),e!==null)if(t=vn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zf(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 Zi=e,null}function cd(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(Hm()){case Jl:return 1;case td:return 4;case Gi:case Km:return 16;case nd:return 536870912;default:return 16}default:return 16}}var At=null,ra=null,Di=null;function fd(){if(Di)return Di;var e,t=ra,n=t.length,r,i="value"in At?At.value:At.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Di=i.slice(e,1<r?1-r:void 0)}function Vi(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 mi(){return!0}function xu(){return!1}function Be(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?mi:xu,this.isPropagationStopped=xu,this}return ne(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=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ia=Be(nr),ti=ne({},nr,{view:0,detail:0}),sg=Be(ti),eo,to,ar,Ts=ne({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sa,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!==ar&&(ar&&e.type==="mousemove"?(eo=e.screenX-ar.screenX,to=e.screenY-ar.screenY):to=eo=0,ar=e),eo)},movementY:function(e){return"movementY"in e?e.movementY:to}}),wu=Be(Ts),og=ne({},Ts,{dataTransfer:0}),lg=Be(og),ag=ne({},ti,{relatedTarget:0}),no=Be(ag),ug=ne({},nr,{animationName:0,elapsedTime:0,pseudoElement:0}),cg=Be(ug),fg=ne({},nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dg=Be(fg),hg=ne({},nr,{data:0}),ku=Be(hg),pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mg={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"},gg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gg[e])?!!t[e]:!1}function sa(){return yg}var vg=ne({},ti,{key:function(e){if(e.key){var t=pg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sa,charCode:function(e){return e.type==="keypress"?Vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xg=Be(vg),wg=ne({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Su=Be(wg),kg=ne({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sa}),Sg=Be(kg),Cg=ne({},nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pg=Be(Cg),Tg=ne({},Ts,{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}),Eg=Be(Tg),Ng=[9,13,27,32],oa=vt&&"CompositionEvent"in window,Sr=null;vt&&"documentMode"in document&&(Sr=document.documentMode);var jg=vt&&"TextEvent"in window&&!Sr,dd=vt&&(!oa||Sr&&8<Sr&&11>=Sr),Cu=" ",Pu=!1;function hd(e,t){switch(e){case"keyup":return Ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Rg(e,t){switch(e){case"compositionend":return pd(t);case"keypress":return t.which!==32?null:(Pu=!0,Cu);case"textInput":return e=t.data,e===Cu&&Pu?null:e;default:return null}}function Lg(e,t){if(En)return e==="compositionend"||!oa&&hd(e,t)?(e=fd(),Di=ra=At=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 dd&&t.locale!=="ko"?null:t.data;default:return null}}var Mg={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 Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mg[e.type]:t==="textarea"}function md(e,t,n,r){Kf(r),t=qi(t,"onChange"),0<t.length&&(n=new ia("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Cr=null,Fr=null;function bg(e){Ed(e,0)}function Es(e){var t=Rn(e);if(Ff(t))return e}function Ag(e,t){if(e==="change")return t}var gd=!1;if(vt){var ro;if(vt){var io="oninput"in document;if(!io){var Eu=document.createElement("div");Eu.setAttribute("oninput","return;"),io=typeof Eu.oninput=="function"}ro=io}else ro=!1;gd=ro&&(!document.documentMode||9<document.documentMode)}function Nu(){Cr&&(Cr.detachEvent("onpropertychange",yd),Fr=Cr=null)}function yd(e){if(e.propertyName==="value"&&Es(Fr)){var t=[];md(t,Fr,e,ql(e)),Xf(bg,t)}}function Dg(e,t,n){e==="focusin"?(Nu(),Cr=t,Fr=n,Cr.attachEvent("onpropertychange",yd)):e==="focusout"&&Nu()}function Vg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(Fr)}function _g(e,t){if(e==="click")return Es(t)}function Og(e,t){if(e==="input"||e==="change")return Es(t)}function Ig(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Ig;function zr(e,t){if(nt(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 i=n[r];if(!Do.call(t,i)||!nt(e[i],t[i]))return!1}return!0}function ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ru(e,t){var n=ju(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=ju(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xd(){for(var e=window,t=Hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hi(e.document)}return t}function la(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 Fg(e){var t=xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vd(n.ownerDocument.documentElement,n)){if(r!==null&&la(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Ru(n,s);var o=Ru(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zg=vt&&"documentMode"in document&&11>=document.documentMode,Nn=null,Jo=null,Pr=null,el=!1;function Lu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;el||Nn==null||Nn!==Hi(r)||(r=Nn,"selectionStart"in r&&la(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&&zr(Pr,r)||(Pr=r,r=qi(Jo,"onSelect"),0<r.length&&(t=new ia("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nn)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jn={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},so={},wd={};vt&&(wd=document.createElement("div").style,"AnimationEvent"in window||(delete jn.animationend.animation,delete jn.animationiteration.animation,delete jn.animationstart.animation),"TransitionEvent"in window||delete jn.transitionend.transition);function Ns(e){if(so[e])return so[e];if(!jn[e])return e;var t=jn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wd)return so[e]=t[n];return e}var kd=Ns("animationend"),Sd=Ns("animationiteration"),Cd=Ns("animationstart"),Pd=Ns("transitionend"),Td=new Map,Mu="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 Gt(e,t){Td.set(e,t),yn(t,[e])}for(var oo=0;oo<Mu.length;oo++){var lo=Mu[oo],Bg=lo.toLowerCase(),Ug=lo[0].toUpperCase()+lo.slice(1);Gt(Bg,"on"+Ug)}Gt(kd,"onAnimationEnd");Gt(Sd,"onAnimationIteration");Gt(Cd,"onAnimationStart");Gt("dblclick","onDoubleClick");Gt("focusin","onFocus");Gt("focusout","onBlur");Gt(Pd,"onTransitionEnd");Kn("onMouseEnter",["mouseout","mouseover"]);Kn("onMouseLeave",["mouseout","mouseover"]);Kn("onPointerEnter",["pointerout","pointerover"]);Kn("onPointerLeave",["pointerout","pointerover"]);yn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yn("onBeforeInput",["compositionend","keypress","textInput","paste"]);yn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),$g=new Set("cancel close invalid load scroll toggle".split(" ").concat(vr));function bu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bm(r,t,void 0,e),e.currentTarget=null}function Ed(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=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!==s&&i.isPropagationStopped())break e;bu(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;bu(i,l,u),s=a}}}if(Qi)throw e=Yo,Qi=!1,Yo=null,e}function Y(e,t){var n=t[sl];n===void 0&&(n=t[sl]=new Set);var r=e+"__bubble";n.has(r)||(Nd(t,e,2,!1),n.add(r))}function ao(e,t,n){var r=0;t&&(r|=4),Nd(n,e,r,t)}var yi="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[yi]){e[yi]=!0,Df.forEach(function(n){n!=="selectionchange"&&($g.has(n)||ao(n,!1,e),ao(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yi]||(t[yi]=!0,ao("selectionchange",!1,t))}}function Nd(e,t,n,r){switch(cd(t)){case 1:var i=rg;break;case 4:i=ig;break;default:i=na}n=i.bind(null,t,n,e),i=void 0,!Go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function uo(e,t,n,r,i){var s=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===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=sn(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Xf(function(){var u=s,f=ql(n),c=[];e:{var d=Td.get(e);if(d!==void 0){var g=ia,v=e;switch(e){case"keypress":if(Vi(n)===0)break e;case"keydown":case"keyup":g=xg;break;case"focusin":v="focus",g=no;break;case"focusout":v="blur",g=no;break;case"beforeblur":case"afterblur":g=no;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=wu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Sg;break;case kd:case Sd:case Cd:g=cg;break;case Pd:g=Pg;break;case"scroll":g=sg;break;case"wheel":g=Eg;break;case"copy":case"cut":case"paste":g=dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Su}var x=(t&4)!==0,T=!x&&e==="scroll",y=x?d!==null?d+"Capture":null:d;x=[];for(var h=u,m;h!==null;){m=h;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,y!==null&&(w=Vr(h,y),w!=null&&x.push(Ur(h,w,m)))),T)break;h=h.return}0<x.length&&(d=new g(d,v,null,n,f),c.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Ko&&(v=n.relatedTarget||n.fromElement)&&(sn(v)||v[xt]))break e;if((g||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?sn(v):null,v!==null&&(T=vn(v),v!==T||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(x=wu,w="onMouseLeave",y="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=Su,w="onPointerLeave",y="onPointerEnter",h="pointer"),T=g==null?d:Rn(g),m=v==null?d:Rn(v),d=new x(w,h+"leave",g,n,f),d.target=T,d.relatedTarget=m,w=null,sn(f)===u&&(x=new x(y,h+"enter",v,n,f),x.target=m,x.relatedTarget=T,w=x),T=w,g&&v)t:{for(x=g,y=v,h=0,m=x;m;m=Cn(m))h++;for(m=0,w=y;w;w=Cn(w))m++;for(;0<h-m;)x=Cn(x),h--;for(;0<m-h;)y=Cn(y),m--;for(;h--;){if(x===y||y!==null&&x===y.alternate)break t;x=Cn(x),y=Cn(y)}x=null}else x=null;g!==null&&Au(c,d,g,x,!1),v!==null&&T!==null&&Au(c,T,v,x,!0)}}e:{if(d=u?Rn(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var C=Ag;else if(Tu(d))if(gd)C=Og;else{C=Vg;var j=Dg}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=_g);if(C&&(C=C(e,u))){md(c,C,n,f);break e}j&&j(e,d,u),e==="focusout"&&(j=d._wrapperState)&&j.controlled&&d.type==="number"&&Bo(d,"number",d.value)}switch(j=u?Rn(u):window,e){case"focusin":(Tu(j)||j.contentEditable==="true")&&(Nn=j,Jo=u,Pr=null);break;case"focusout":Pr=Jo=Nn=null;break;case"mousedown":el=!0;break;case"contextmenu":case"mouseup":case"dragend":el=!1,Lu(c,n,f);break;case"selectionchange":if(zg)break;case"keydown":case"keyup":Lu(c,n,f)}var R;if(oa)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else En?hd(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(dd&&n.locale!=="ko"&&(En||E!=="onCompositionStart"?E==="onCompositionEnd"&&En&&(R=fd()):(At=f,ra="value"in At?At.value:At.textContent,En=!0)),j=qi(u,E),0<j.length&&(E=new ku(E,e,null,n,f),c.push({event:E,listeners:j}),R?E.data=R:(R=pd(n),R!==null&&(E.data=R)))),(R=jg?Rg(e,n):Lg(e,n))&&(u=qi(u,"onBeforeInput"),0<u.length&&(f=new ku("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=R))}Ed(c,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Vr(e,n),s!=null&&r.unshift(Ur(e,s,i)),s=Vr(e,t),s!=null&&r.push(Ur(e,s,i))),e=e.return}return r}function Cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Au(e,t,n,r,i){for(var s=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,i?(a=Vr(n,s),a!=null&&o.unshift(Ur(n,a,l))):i||(a=Vr(n,s),a!=null&&o.push(Ur(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Wg=/\r\n?/g,Hg=/\u0000|\uFFFD/g;function Du(e){return(typeof e=="string"?e:""+e).replace(Wg,`
|
|
38
|
-
`).replace(Hg,"")}function vi(e,t,n){if(t=Du(t),Du(e)!==t&&n)throw Error(N(425))}function Ji(){}var tl=null,nl=null;function rl(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 il=typeof setTimeout=="function"?setTimeout:void 0,Kg=typeof clearTimeout=="function"?clearTimeout:void 0,Vu=typeof Promise=="function"?Promise:void 0,Qg=typeof queueMicrotask=="function"?queueMicrotask:typeof Vu<"u"?function(e){return Vu.resolve(null).then(e).catch(Gg)}:il;function Gg(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ir(t)}function It(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 _u(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 rr=Math.random().toString(36).slice(2),ot="__reactFiber$"+rr,$r="__reactProps$"+rr,xt="__reactContainer$"+rr,sl="__reactEvents$"+rr,Yg="__reactListeners$"+rr,Xg="__reactHandles$"+rr;function sn(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_u(e);e!==null;){if(n=e[ot])return n;e=_u(e)}return t}e=n,n=e.parentNode}return null}function ni(e){return e=e[ot]||e[xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function js(e){return e[$r]||null}var ol=[],Ln=-1;function Yt(e){return{current:e}}function X(e){0>Ln||(e.current=ol[Ln],ol[Ln]=null,Ln--)}function K(e,t){Ln++,ol[Ln]=e.current,e.current=t}var Ht={},Ce=Yt(Ht),Me=Yt(!1),dn=Ht;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function be(e){return e=e.childContextTypes,e!=null}function es(){X(Me),X(Ce)}function Ou(e,t,n){if(Ce.current!==Ht)throw Error(N(168));K(Ce,t),K(Me,n)}function jd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,Dm(e)||"Unknown",i));return ne({},n,r)}function ts(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,dn=Ce.current,K(Ce,e),K(Me,Me.current),!0}function Iu(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=jd(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,X(Me),X(Ce),K(Ce,e)):X(Me),K(Me,n)}var ft=null,Rs=!1,fo=!1;function Rd(e){ft===null?ft=[e]:ft.push(e)}function Zg(e){Rs=!0,Rd(e)}function Xt(){if(!fo&&ft!==null){fo=!0;var e=0,t=W;try{var n=ft;for(W=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ft=null,Rs=!1}catch(i){throw ft!==null&&(ft=ft.slice(e+1)),ed(Jl,Xt),i}finally{W=t,fo=!1}}return null}var Mn=[],bn=0,ns=null,rs=0,We=[],He=0,hn=null,dt=1,ht="";function Jt(e,t){Mn[bn++]=rs,Mn[bn++]=ns,ns=e,rs=t}function Ld(e,t,n){We[He++]=dt,We[He++]=ht,We[He++]=hn,hn=e;var r=dt;e=ht;var i=32-et(r)-1;r&=~(1<<i),n+=1;var s=32-et(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,dt=1<<32-et(t)+i|n<<i|r,ht=s+e}else dt=1<<s|n<<i|r,ht=e}function aa(e){e.return!==null&&(Jt(e,1),Ld(e,1,0))}function ua(e){for(;e===ns;)ns=Mn[--bn],Mn[bn]=null,rs=Mn[--bn],Mn[bn]=null;for(;e===hn;)hn=We[--He],We[He]=null,ht=We[--He],We[He]=null,dt=We[--He],We[He]=null}var Oe=null,_e=null,Z=!1,Je=null;function Md(e,t){var n=Ke(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 Fu(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,Oe=e,_e=It(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oe=e,_e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hn!==null?{id:dt,overflow:ht}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ke(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oe=e,_e=null,!0):!1;default:return!1}}function ll(e){return(e.mode&1)!==0&&(e.flags&128)===0}function al(e){if(Z){var t=_e;if(t){var n=t;if(!Fu(e,t)){if(ll(e))throw Error(N(418));t=It(n.nextSibling);var r=Oe;t&&Fu(e,t)?Md(r,n):(e.flags=e.flags&-4097|2,Z=!1,Oe=e)}}else{if(ll(e))throw Error(N(418));e.flags=e.flags&-4097|2,Z=!1,Oe=e}}}function zu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oe=e}function xi(e){if(e!==Oe)return!1;if(!Z)return zu(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rl(e.type,e.memoizedProps)),t&&(t=_e)){if(ll(e))throw bd(),Error(N(418));for(;t;)Md(e,t),t=It(t.nextSibling)}if(zu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_e=It(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_e=null}}else _e=Oe?It(e.stateNode.nextSibling):null;return!0}function bd(){for(var e=_e;e;)e=It(e.nextSibling)}function Gn(){_e=Oe=null,Z=!1}function ca(e){Je===null?Je=[e]:Je.push(e)}var qg=Ct.ReactCurrentBatchConfig;function ur(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(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function wi(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bu(e){var t=e._init;return t(e._payload)}function Ad(e){function t(y,h){if(e){var m=y.deletions;m===null?(y.deletions=[h],y.flags|=16):m.push(h)}}function n(y,h){if(!e)return null;for(;h!==null;)t(y,h),h=h.sibling;return null}function r(y,h){for(y=new Map;h!==null;)h.key!==null?y.set(h.key,h):y.set(h.index,h),h=h.sibling;return y}function i(y,h){return y=Ut(y,h),y.index=0,y.sibling=null,y}function s(y,h,m){return y.index=m,e?(m=y.alternate,m!==null?(m=m.index,m<h?(y.flags|=2,h):m):(y.flags|=2,h)):(y.flags|=1048576,h)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,h,m,w){return h===null||h.tag!==6?(h=xo(m,y.mode,w),h.return=y,h):(h=i(h,m),h.return=y,h)}function a(y,h,m,w){var C=m.type;return C===Tn?f(y,h,m.props.children,w,m.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===jt&&Bu(C)===h.type)?(w=i(h,m.props),w.ref=ur(y,h,m),w.return=y,w):(w=Ui(m.type,m.key,m.props,null,y.mode,w),w.ref=ur(y,h,m),w.return=y,w)}function u(y,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=wo(m,y.mode,w),h.return=y,h):(h=i(h,m.children||[]),h.return=y,h)}function f(y,h,m,w,C){return h===null||h.tag!==7?(h=cn(m,y.mode,w,C),h.return=y,h):(h=i(h,m),h.return=y,h)}function c(y,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=xo(""+h,y.mode,m),h.return=y,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ui:return m=Ui(h.type,h.key,h.props,null,y.mode,m),m.ref=ur(y,null,h),m.return=y,m;case Pn:return h=wo(h,y.mode,m),h.return=y,h;case jt:var w=h._init;return c(y,w(h._payload),m)}if(gr(h)||ir(h))return h=cn(h,y.mode,m,null),h.return=y,h;wi(y,h)}return null}function d(y,h,m,w){var C=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:l(y,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ui:return m.key===C?a(y,h,m,w):null;case Pn:return m.key===C?u(y,h,m,w):null;case jt:return C=m._init,d(y,h,C(m._payload),w)}if(gr(m)||ir(m))return C!==null?null:f(y,h,m,w,null);wi(y,m)}return null}function g(y,h,m,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return y=y.get(m)||null,l(h,y,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ui:return y=y.get(w.key===null?m:w.key)||null,a(h,y,w,C);case Pn:return y=y.get(w.key===null?m:w.key)||null,u(h,y,w,C);case jt:var j=w._init;return g(y,h,m,j(w._payload),C)}if(gr(w)||ir(w))return y=y.get(m)||null,f(h,y,w,C,null);wi(h,w)}return null}function v(y,h,m,w){for(var C=null,j=null,R=h,E=h=0,M=null;R!==null&&E<m.length;E++){R.index>E?(M=R,R=null):M=R.sibling;var V=d(y,R,m[E],w);if(V===null){R===null&&(R=M);break}e&&R&&V.alternate===null&&t(y,R),h=s(V,h,E),j===null?C=V:j.sibling=V,j=V,R=M}if(E===m.length)return n(y,R),Z&&Jt(y,E),C;if(R===null){for(;E<m.length;E++)R=c(y,m[E],w),R!==null&&(h=s(R,h,E),j===null?C=R:j.sibling=R,j=R);return Z&&Jt(y,E),C}for(R=r(y,R);E<m.length;E++)M=g(R,y,E,m[E],w),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?E:M.key),h=s(M,h,E),j===null?C=M:j.sibling=M,j=M);return e&&R.forEach(function($){return t(y,$)}),Z&&Jt(y,E),C}function x(y,h,m,w){var C=ir(m);if(typeof C!="function")throw Error(N(150));if(m=C.call(m),m==null)throw Error(N(151));for(var j=C=null,R=h,E=h=0,M=null,V=m.next();R!==null&&!V.done;E++,V=m.next()){R.index>E?(M=R,R=null):M=R.sibling;var $=d(y,R,V.value,w);if($===null){R===null&&(R=M);break}e&&R&&$.alternate===null&&t(y,R),h=s($,h,E),j===null?C=$:j.sibling=$,j=$,R=M}if(V.done)return n(y,R),Z&&Jt(y,E),C;if(R===null){for(;!V.done;E++,V=m.next())V=c(y,V.value,w),V!==null&&(h=s(V,h,E),j===null?C=V:j.sibling=V,j=V);return Z&&Jt(y,E),C}for(R=r(y,R);!V.done;E++,V=m.next())V=g(R,y,E,V.value,w),V!==null&&(e&&V.alternate!==null&&R.delete(V.key===null?E:V.key),h=s(V,h,E),j===null?C=V:j.sibling=V,j=V);return e&&R.forEach(function(q){return t(y,q)}),Z&&Jt(y,E),C}function T(y,h,m,w){if(typeof m=="object"&&m!==null&&m.type===Tn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ui:e:{for(var C=m.key,j=h;j!==null;){if(j.key===C){if(C=m.type,C===Tn){if(j.tag===7){n(y,j.sibling),h=i(j,m.props.children),h.return=y,y=h;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===jt&&Bu(C)===j.type){n(y,j.sibling),h=i(j,m.props),h.ref=ur(y,j,m),h.return=y,y=h;break e}n(y,j);break}else t(y,j);j=j.sibling}m.type===Tn?(h=cn(m.props.children,y.mode,w,m.key),h.return=y,y=h):(w=Ui(m.type,m.key,m.props,null,y.mode,w),w.ref=ur(y,h,m),w.return=y,y=w)}return o(y);case Pn:e:{for(j=m.key;h!==null;){if(h.key===j)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(y,h.sibling),h=i(h,m.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=wo(m,y.mode,w),h.return=y,y=h}return o(y);case jt:return j=m._init,T(y,h,j(m._payload),w)}if(gr(m))return v(y,h,m,w);if(ir(m))return x(y,h,m,w);wi(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(y,h.sibling),h=i(h,m),h.return=y,y=h):(n(y,h),h=xo(m,y.mode,w),h.return=y,y=h),o(y)):n(y,h)}return T}var Yn=Ad(!0),Dd=Ad(!1),is=Yt(null),ss=null,An=null,fa=null;function da(){fa=An=ss=null}function ha(e){var t=is.current;X(is),e._currentValue=t}function ul(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 Wn(e,t){ss=e,fa=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(fa!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ss===null)throw Error(N(308));An=e,ss.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var on=null;function pa(e){on===null?on=[e]:on.push(e)}function Vd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pa(t)):(n.next=i.next,i.next=n),t.interleaved=n,wt(e,r)}function wt(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 ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _d(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 mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wt(e,n)}return i=r.interleaved,i===null?(t.next=t,pa(r)):(t.next=i.next,i.next=t),r.interleaved=t,wt(e,n)}function _i(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,ea(e,n)}}function Uu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 os(e,t,n,r){var i=e.updateQueue;Rt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(s!==null){var c=i.baseState;o=0,f=u=a=null,l=s;do{var d=l.lane,g=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,x=l;switch(d=t,g=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){c=v.call(g,c,d);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,d=typeof v=="function"?v.call(g,c,d):v,d==null)break e;c=ne({},c,d);break e;case 2:Rt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=g,a=c):f=f.next=g,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=c}}function $u(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var ri={},at=Yt(ri),Wr=Yt(ri),Hr=Yt(ri);function ln(e){if(e===ri)throw Error(N(174));return e}function ga(e,t){switch(K(Hr,t),K(Wr,e),K(at,ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$o(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$o(t,e)}X(at),K(at,t)}function Xn(){X(at),X(Wr),X(Hr)}function Od(e){ln(Hr.current);var t=ln(at.current),n=$o(t,e.type);t!==n&&(K(Wr,e),K(at,n))}function ya(e){Wr.current===e&&(X(at),X(Wr))}var J=Yt(0);function ls(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 ho=[];function va(){for(var e=0;e<ho.length;e++)ho[e]._workInProgressVersionPrimary=null;ho.length=0}var Oi=Ct.ReactCurrentDispatcher,po=Ct.ReactCurrentBatchConfig,pn=0,te=null,ae=null,ce=null,as=!1,Tr=!1,Kr=0,Jg=0;function xe(){throw Error(N(321))}function xa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function wa(e,t,n,r,i,s){if(pn=s,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oi.current=e===null||e.memoizedState===null?ry:iy,e=n(r,i),Tr){s=0;do{if(Tr=!1,Kr=0,25<=s)throw Error(N(301));s+=1,ce=ae=null,t.updateQueue=null,Oi.current=sy,e=n(r,i)}while(Tr)}if(Oi.current=us,t=ae!==null&&ae.next!==null,pn=0,ce=ae=te=null,as=!1,t)throw Error(N(300));return e}function ka(){var e=Kr!==0;return Kr=0,e}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?te.memoizedState=ce=e:ce=ce.next=e,ce}function Ye(){if(ae===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ce===null?te.memoizedState:ce.next;if(t!==null)ce=t,ae=e;else{if(e===null)throw Error(N(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ce===null?te.memoizedState=ce=e:ce=ce.next=e}return ce}function Qr(e,t){return typeof t=="function"?t(e):t}function mo(e){var t=Ye(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ae,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var f=u.lane;if((pn&f)===f)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 c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=c,o=r):a=a.next=c,te.lanes|=f,mn|=f}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,nt(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,te.lanes|=s,mn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function go(e){var t=Ye(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);nt(s,t.memoizedState)||(Le=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Id(){}function Fd(e,t){var n=te,r=Ye(),i=t(),s=!nt(r.memoizedState,i);if(s&&(r.memoizedState=i,Le=!0),r=r.queue,Sa(Ud.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,Gr(9,Bd.bind(null,n,r,i,t),void 0,null),fe===null)throw Error(N(349));pn&30||zd(n,t,i)}return i}function zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bd(e,t,n,r){t.value=n,t.getSnapshot=r,$d(t)&&Wd(e)}function Ud(e,t,n){return n(function(){$d(t)&&Wd(e)})}function $d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Wd(e){var t=wt(e,1);t!==null&&tt(t,e,1,-1)}function Wu(e){var t=st();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:e},t.queue=e,e=e.dispatch=ny.bind(null,te,e),[t.memoizedState,e]}function Gr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.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 Hd(){return Ye().memoizedState}function Ii(e,t,n,r){var i=st();te.flags|=e,i.memoizedState=Gr(1|t,n,void 0,r===void 0?null:r)}function Ls(e,t,n,r){var i=Ye();r=r===void 0?null:r;var s=void 0;if(ae!==null){var o=ae.memoizedState;if(s=o.destroy,r!==null&&xa(r,o.deps)){i.memoizedState=Gr(t,n,s,r);return}}te.flags|=e,i.memoizedState=Gr(1|t,n,s,r)}function Hu(e,t){return Ii(8390656,8,e,t)}function Sa(e,t){return Ls(2048,8,e,t)}function Kd(e,t){return Ls(4,2,e,t)}function Qd(e,t){return Ls(4,4,e,t)}function Gd(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 Yd(e,t,n){return n=n!=null?n.concat([e]):null,Ls(4,4,Gd.bind(null,t,e),n)}function Ca(){}function Xd(e,t){var n=Ye();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zd(e,t){var n=Ye();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qd(e,t,n){return pn&21?(nt(n,t)||(n=rd(),te.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function ey(e,t){var n=W;W=n!==0&&4>n?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{W=n,po.transition=r}}function Jd(){return Ye().memoizedState}function ty(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eh(e))th(t,n);else if(n=Vd(e,t,n,r),n!==null){var i=Ee();tt(n,e,r,i),nh(n,t,r)}}function ny(e,t,n){var r=Bt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eh(e))th(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,nt(l,o)){var a=t.interleaved;a===null?(i.next=i,pa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Vd(e,t,i,r),n!==null&&(i=Ee(),tt(n,e,r,i),nh(n,t,r))}}function eh(e){var t=e.alternate;return e===te||t!==null&&t===te}function th(e,t){Tr=as=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ea(e,n)}}var us={readContext:Ge,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},ry={readContext:Ge,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ii(4194308,4,Gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();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=ty.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wu,useDebugValue:Ca,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wu(!1),t=e[0];return e=ey.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,i=st();if(Z){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),fe===null)throw Error(N(349));pn&30||zd(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Hu(Ud.bind(null,r,s,e),[e]),r.flags|=2048,Gr(9,Bd.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(Z){var n=ht,r=dt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Jg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},iy={readContext:Ge,useCallback:Xd,useContext:Ge,useEffect:Sa,useImperativeHandle:Yd,useInsertionEffect:Kd,useLayoutEffect:Qd,useMemo:Zd,useReducer:mo,useRef:Hd,useState:function(){return mo(Qr)},useDebugValue:Ca,useDeferredValue:function(e){var t=Ye();return qd(t,ae.memoizedState,e)},useTransition:function(){var e=mo(Qr)[0],t=Ye().memoizedState;return[e,t]},useMutableSource:Id,useSyncExternalStore:Fd,useId:Jd,unstable_isNewReconciler:!1},sy={readContext:Ge,useCallback:Xd,useContext:Ge,useEffect:Sa,useImperativeHandle:Yd,useInsertionEffect:Kd,useLayoutEffect:Qd,useMemo:Zd,useReducer:go,useRef:Hd,useState:function(){return go(Qr)},useDebugValue:Ca,useDeferredValue:function(e){var t=Ye();return ae===null?t.memoizedState=e:qd(t,ae.memoizedState,e)},useTransition:function(){var e=go(Qr)[0],t=Ye().memoizedState;return[e,t]},useMutableSource:Id,useSyncExternalStore:Fd,useId:Jd,unstable_isNewReconciler:!1};function Ze(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function cl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ms={isMounted:function(e){return(e=e._reactInternals)?vn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Bt(e),s=mt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Ft(e,s,i),t!==null&&(tt(t,e,i,r),_i(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Bt(e),s=mt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ft(e,s,i),t!==null&&(tt(t,e,i,r),_i(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=Bt(e),i=mt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ft(e,i,r),t!==null&&(tt(t,e,r,n),_i(t,e,r))}};function Ku(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,s):!0}function rh(e,t,n){var r=!1,i=Ht,s=t.contextType;return typeof s=="object"&&s!==null?s=Ge(s):(i=be(t)?dn:Ce.current,r=t.contextTypes,s=(r=r!=null)?Qn(e,i):Ht),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ms,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qu(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&&Ms.enqueueReplaceState(t,t.state,null)}function fl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ma(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ge(s):(s=be(t)?dn:Ce.current,i.context=Qn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(cl(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ms.enqueueReplaceState(i,i.state,null),os(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Zn(e,t){try{var n="",r=t;do n+=Am(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function yo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var oy=typeof WeakMap=="function"?WeakMap:Map;function ih(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fs||(fs=!0,Sl=r),dl(e,t)},n}function sh(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){dl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){dl(e,t),typeof r!="function"&&(zt===null?zt=new Set([this]):zt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new oy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=wy.bind(null,e,t,n),t.then(e,e))}function Yu(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 Xu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=mt(-1,1),t.tag=2,Ft(n,t,1))),n.lanes|=1),e)}var ly=Ct.ReactCurrentOwner,Le=!1;function Te(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Yn(t,e.child,n,r)}function Zu(e,t,n,r,i){n=n.render;var s=t.ref;return Wn(t,i),r=wa(e,t,n,r,s,i),n=ka(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(Z&&n&&aa(t),t.flags|=1,Te(e,t,r,i),t.child)}function qu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Ma(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,oh(e,t,s,r,i)):(e=Ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:zr,n(o,r)&&e.ref===t.ref)return kt(e,t,i)}return t.flags|=1,e=Ut(s,r),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(zr(s,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,kt(e,t,i)}return hl(e,t,n,r,i)}function lh(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(Vn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(Vn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,K(Vn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,K(Vn,Ve),Ve|=r;return Te(e,t,i,n),t.child}function ah(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hl(e,t,n,r,i){var s=be(n)?dn:Ce.current;return s=Qn(t,s),Wn(t,i),n=wa(e,t,n,r,s,i),r=ka(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(Z&&r&&aa(t),t.flags|=1,Te(e,t,n,i),t.child)}function Ju(e,t,n,r,i){if(be(n)){var s=!0;ts(t)}else s=!1;if(Wn(t,i),t.stateNode===null)Fi(e,t),rh(t,n,r),fl(t,n,r,i),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=Ge(u):(u=be(n)?dn:Ce.current,u=Qn(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Qu(t,o,r,u),Rt=!1;var d=t.memoizedState;o.state=d,os(t,r,o,i),a=t.memoizedState,l!==r||d!==a||Me.current||Rt?(typeof f=="function"&&(cl(t,n,f,r),a=t.memoizedState),(l=Rt||Ku(t,n,l,r,d,a,u))?(c||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,_d(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ze(t.type,l),o.props=u,c=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ge(a):(a=be(n)?dn:Ce.current,a=Qn(t,a));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==c||d!==a)&&Qu(t,o,r,a),Rt=!1,d=t.memoizedState,o.state=d,os(t,r,o,i);var v=t.memoizedState;l!==c||d!==v||Me.current||Rt?(typeof g=="function"&&(cl(t,n,g,r),v=t.memoizedState),(u=Rt||Ku(t,n,u,r,d,v,a)||!1)?(f||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&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===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&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return pl(e,t,n,r,s,i)}function pl(e,t,n,r,i,s){ah(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Iu(t,n,!1),kt(e,t,s);r=t.stateNode,ly.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yn(t,e.child,null,s),t.child=Yn(t,null,l,s)):Te(e,t,l,s),t.memoizedState=r.state,i&&Iu(t,n,!0),t.child}function uh(e){var t=e.stateNode;t.pendingContext?Ou(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ou(e,t.context,!1),ga(e,t.containerInfo)}function ec(e,t,n,r,i){return Gn(),ca(i),t.flags|=256,Te(e,t,n,r),t.child}var ml={dehydrated:null,treeContext:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ch(e,t,n){var r=t.pendingProps,i=J.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(J,i&1),e===null)return al(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ds(o,r,0,null),e=cn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=gl(n),t.memoizedState=ml,e):Pa(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return ay(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ut(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Ut(l,s):(s=cn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?gl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=ml,r}return s=e.child,e=s.sibling,r=Ut(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pa(e,t){return t=Ds({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ki(e,t,n,r){return r!==null&&ca(r),Yn(t,e.child,null,n),e=Pa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ay(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=yo(Error(N(422))),ki(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ds({mode:"visible",children:r.children},i,0,null),s=cn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Yn(t,e.child,null,o),t.child.memoizedState=gl(o),t.memoizedState=ml,s);if(!(t.mode&1))return ki(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(N(419)),r=yo(s,r,void 0),ki(e,t,o,r)}if(l=(o&e.childLanes)!==0,Le||l){if(r=fe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,wt(e,i),tt(r,e,i,-1))}return La(),r=yo(Error(N(421))),ki(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ky.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,_e=It(i.nextSibling),Oe=t,Z=!0,Je=null,e!==null&&(We[He++]=dt,We[He++]=ht,We[He++]=hn,dt=e.id,ht=e.overflow,hn=t),t=Pa(t,r.children),t.flags|=4096,t)}function tc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ul(e.return,t,n)}function vo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function fh(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=J.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&&tc(e,n,t);else if(e.tag===19)tc(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(K(J,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ls(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ls(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vo(t,!0,n,null,s);break;case"together":vo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Ut(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ut(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uy(e,t,n){switch(t.tag){case 3:uh(t),Gn();break;case 5:Od(t);break;case 1:be(t.type)&&ts(t);break;case 4:ga(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(is,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?ch(e,t,n):(K(J,J.current&1),e=kt(e,t,n),e!==null?e.sibling:null);K(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,lh(e,t,n)}return kt(e,t,n)}var dh,yl,hh,ph;dh=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}};yl=function(){};hh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(at.current);var s=null;switch(n){case"input":i=Fo(e,i),r=Fo(e,r),s=[];break;case"select":i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),s=[];break;case"textarea":i=Uo(e,i),r=Uo(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}Wo(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ar.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[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||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ar.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function cr(e,t){if(!Z)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 we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cy(e,t,n){var r=t.pendingProps;switch(ua(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return be(t.type)&&es(),we(t),null;case 3:return r=t.stateNode,Xn(),X(Me),X(Ce),va(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(Tl(Je),Je=null))),yl(e,t),we(t),null;case 5:ya(t);var i=ln(Hr.current);if(n=t.type,e!==null&&t.stateNode!=null)hh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return we(t),null}if(e=ln(at.current),xi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ot]=t,r[$r]=s,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<vr.length;i++)Y(vr[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":cu(r,s),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Y("invalid",r);break;case"textarea":du(r,s),Y("invalid",r)}Wo(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&vi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&vi(r.textContent,l,e),i=["children",""+l]):Ar.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Y("scroll",r)}switch(n){case"input":ci(r),fu(r,s,!0);break;case"textarea":ci(r),hu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ji)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Uf(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[ot]=t,e[$r]=r,dh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ho(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<vr.length;i++)Y(vr[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":cu(e,r),i=Fo(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),Y("invalid",e);break;case"textarea":du(e,r),i=Uo(e,r),Y("invalid",e);break;default:i=r}Wo(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Hf(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&$f(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Dr(e,a):typeof a=="number"&&Dr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ar.hasOwnProperty(s)?a!=null&&s==="onScroll"&&Y("scroll",e):a!=null&&Gl(e,s,a,o))}switch(n){case"input":ci(e),fu(e,r,!1);break;case"textarea":ci(e),hu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?zn(e,!!r.multiple,s,!1):r.defaultValue!=null&&zn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ji)}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 we(t),null;case 6:if(e&&t.stateNode!=null)ph(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=ln(Hr.current),ln(at.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ot]=t,(s=r.nodeValue!==n)&&(e=Oe,e!==null))switch(e.tag){case 3:vi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ot]=t,t.stateNode=r}return we(t),null;case 13:if(X(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&_e!==null&&t.mode&1&&!(t.flags&128))bd(),Gn(),t.flags|=98560,s=!1;else if(s=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[ot]=t}else Gn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),s=!1}else Je!==null&&(Tl(Je),Je=null),s=!0;if(!s)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||J.current&1?ue===0&&(ue=3):La())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return Xn(),yl(e,t),e===null&&Br(t.stateNode.containerInfo),we(t),null;case 10:return ha(t.type._context),we(t),null;case 17:return be(t.type)&&es(),we(t),null;case 19:if(X(J),s=t.memoizedState,s===null)return we(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)cr(s,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ls(e),o!==null){for(t.flags|=128,cr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(J,J.current&1|2),t.child}e=e.sibling}s.tail!==null&&ie()>qn&&(t.flags|=128,r=!0,cr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ls(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Z)return we(t),null}else 2*ie()-s.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,cr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ie(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(we(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?Ve&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function fy(e,t){switch(ua(t),t.tag){case 1:return be(t.type)&&es(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),X(Me),X(Ce),va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ya(t),null;case 13:if(X(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(J),null;case 4:return Xn(),null;case 10:return ha(t.type._context),null;case 22:case 23:return Ra(),null;case 24:return null;default:return null}}var Si=!1,Se=!1,dy=typeof WeakSet=="function"?WeakSet:Set,_=null;function Dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function vl(e,t,n){try{n()}catch(r){re(e,t,r)}}var nc=!1;function hy(e,t){if(tl=Xi,e=xd(),la(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var g;c!==n||i!==0&&c.nodeType!==3||(l=o+i),c!==s||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(g=c.firstChild)!==null;)d=c,c=g;for(;;){if(c===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++f===r&&(a=o),(g=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(nl={focusedElem:e,selectionRange:n},Xi=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;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,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ze(t.type,x),T);y.__reactInternalSnapshotBeforeUpdate=h}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(N(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return v=nc,nc=!1,v}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&vl(t,n,s)}i=i.next}while(i!==r)}}function bs(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 xl(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 mh(e){var t=e.alternate;t!==null&&(e.alternate=null,mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ot],delete t[$r],delete t[sl],delete t[Yg],delete t[Xg])),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 gh(e){return e.tag===5||e.tag===3||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gh(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 wl(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=Ji));else if(r!==4&&(e=e.child,e!==null))for(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}function kl(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(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var me=null,qe=!1;function Et(e,t,n){for(n=n.child;n!==null;)yh(e,t,n),n=n.sibling}function yh(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Ps,n)}catch{}switch(n.tag){case 5:Se||Dn(n,t);case 6:var r=me,i=qe;me=null,Et(e,t,n),me=r,qe=i,me!==null&&(qe?(e=me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):me.removeChild(n.stateNode));break;case 18:me!==null&&(qe?(e=me,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),Ir(e)):co(me,n.stateNode));break;case 4:r=me,i=qe,me=n.stateNode.containerInfo,qe=!0,Et(e,t,n),me=r,qe=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&vl(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!Se&&(Dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){re(n,t,l)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Et(e,t,n),Se=r):Et(e,t,n);break;default:Et(e,t,n)}}function ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dy),t.forEach(function(r){var i=Sy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:me=l.stateNode,qe=!1;break e;case 3:me=l.stateNode.containerInfo,qe=!0;break e;case 4:me=l.stateNode.containerInfo,qe=!0;break e}l=l.return}if(me===null)throw Error(N(160));yh(s,o,i),me=null,qe=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vh(t,e),t=t.sibling}function vh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xe(t,e),it(e),r&4){try{Er(3,e,e.return),bs(3,e)}catch(x){re(e,e.return,x)}try{Er(5,e,e.return)}catch(x){re(e,e.return,x)}}break;case 1:Xe(t,e),it(e),r&512&&n!==null&&Dn(n,n.return);break;case 5:if(Xe(t,e),it(e),r&512&&n!==null&&Dn(n,n.return),e.flags&32){var i=e.stateNode;try{Dr(i,"")}catch(x){re(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&zf(i,s),Ho(l,o);var u=Ho(l,s);for(o=0;o<a.length;o+=2){var f=a[o],c=a[o+1];f==="style"?Hf(i,c):f==="dangerouslySetInnerHTML"?$f(i,c):f==="children"?Dr(i,c):Gl(i,f,c,u)}switch(l){case"input":zo(i,s);break;case"textarea":Bf(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?zn(i,!!s.multiple,g,!1):d!==!!s.multiple&&(s.defaultValue!=null?zn(i,!!s.multiple,s.defaultValue,!0):zn(i,!!s.multiple,s.multiple?[]:"",!1))}i[$r]=s}catch(x){re(e,e.return,x)}}break;case 6:if(Xe(t,e),it(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(x){re(e,e.return,x)}}break;case 3:if(Xe(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(x){re(e,e.return,x)}break;case 4:Xe(t,e),it(e);break;case 13:Xe(t,e),it(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Na=ie())),r&4&&ic(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||f,Xe(t,e),Se=u):Xe(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(_=e,f=e.child;f!==null;){for(c=_=f;_!==null;){switch(d=_,g=d.child,d.tag){case 0:case 11:case 14:case 15:Er(4,d,d.return);break;case 1:Dn(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){re(r,n,x)}}break;case 5:Dn(d,d.return);break;case 22:if(d.memoizedState!==null){oc(c);continue}}g!==null?(g.return=d,_=g):oc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=c.stateNode,a=c.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Wf("display",o))}catch(x){re(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){re(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Xe(t,e),it(e),r&4&&ic(e);break;case 21:break;default:Xe(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gh(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Dr(i,""),r.flags&=-33);var s=rc(e);kl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=rc(e);wl(e,l,o);break;default:throw Error(N(161))}}catch(a){re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function py(e,t,n){_=e,xh(e)}function xh(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var i=_,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Si;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Se;l=Si;var u=Se;if(Si=o,(Se=a)&&!u)for(_=i;_!==null;)o=_,a=o.child,o.tag===22&&o.memoizedState!==null?lc(i):a!==null?(a.return=o,_=a):lc(i);for(;s!==null;)_=s,xh(s),s=s.sibling;_=i,Si=l,Se=u}sc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,_=s):sc(e)}}function sc(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||bs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&$u(t,s,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}$u(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 f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ir(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Se||t.flags&512&&xl(t)}catch(d){re(t,t.return,d)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function oc(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function lc(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bs(4,t)}catch(a){re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){re(t,i,a)}}var s=t.return;try{xl(t)}catch(a){re(t,s,a)}break;case 5:var o=t.return;try{xl(t)}catch(a){re(t,o,a)}}}catch(a){re(t,t.return,a)}if(t===e){_=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_=l;break}_=t.return}}var my=Math.ceil,cs=Ct.ReactCurrentDispatcher,Ta=Ct.ReactCurrentOwner,Qe=Ct.ReactCurrentBatchConfig,U=0,fe=null,le=null,ge=0,Ve=0,Vn=Yt(0),ue=0,Yr=null,mn=0,As=0,Ea=0,Nr=null,Re=null,Na=0,qn=1/0,ct=null,fs=!1,Sl=null,zt=null,Ci=!1,Dt=null,ds=0,jr=0,Cl=null,zi=-1,Bi=0;function Ee(){return U&6?ie():zi!==-1?zi:zi=ie()}function Bt(e){return e.mode&1?U&2&&ge!==0?ge&-ge:qg.transition!==null?(Bi===0&&(Bi=rd()),Bi):(e=W,e!==0||(e=window.event,e=e===void 0?16:cd(e.type)),e):1}function tt(e,t,n,r){if(50<jr)throw jr=0,Cl=null,Error(N(185));ei(e,n,r),(!(U&2)||e!==fe)&&(e===fe&&(!(U&2)&&(As|=n),ue===4&&bt(e,ge)),Ae(e,r),n===1&&U===0&&!(t.mode&1)&&(qn=ie()+500,Rs&&Xt()))}function Ae(e,t){var n=e.callbackNode;qm(e,t);var r=Yi(e,e===fe?ge:0);if(r===0)n!==null&&gu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gu(n),t===1)e.tag===0?Zg(ac.bind(null,e)):Rd(ac.bind(null,e)),Qg(function(){!(U&6)&&Xt()}),n=null;else{switch(id(r)){case 1:n=Jl;break;case 4:n=td;break;case 16:n=Gi;break;case 536870912:n=nd;break;default:n=Gi}n=Nh(n,wh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wh(e,t){if(zi=-1,Bi=0,U&6)throw Error(N(327));var n=e.callbackNode;if(Hn()&&e.callbackNode!==n)return null;var r=Yi(e,e===fe?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hs(e,r);else{t=r;var i=U;U|=2;var s=Sh();(fe!==e||ge!==t)&&(ct=null,qn=ie()+500,un(e,t));do try{vy();break}catch(l){kh(e,l)}while(!0);da(),cs.current=s,U=i,le!==null?t=0:(fe=null,ge=0,t=ue)}if(t!==0){if(t===2&&(i=Xo(e),i!==0&&(r=i,t=Pl(e,i))),t===1)throw n=Yr,un(e,0),bt(e,r),Ae(e,ie()),n;if(t===6)bt(e,r);else{if(i=e.current.alternate,!(r&30)&&!gy(i)&&(t=hs(e,r),t===2&&(s=Xo(e),s!==0&&(r=s,t=Pl(e,s))),t===1))throw n=Yr,un(e,0),bt(e,r),Ae(e,ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:en(e,Re,ct);break;case 3:if(bt(e,r),(r&130023424)===r&&(t=Na+500-ie(),10<t)){if(Yi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ee(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=il(en.bind(null,e,Re,ct),t);break}en(e,Re,ct);break;case 4:if(bt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-et(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*my(r/1960))-r,10<r){e.timeoutHandle=il(en.bind(null,e,Re,ct),r);break}en(e,Re,ct);break;case 5:en(e,Re,ct);break;default:throw Error(N(329))}}}return Ae(e,ie()),e.callbackNode===n?wh.bind(null,e):null}function Pl(e,t){var n=Nr;return e.current.memoizedState.isDehydrated&&(un(e,t).flags|=256),e=hs(e,t),e!==2&&(t=Re,Re=n,t!==null&&Tl(t)),e}function Tl(e){Re===null?Re=e:Re.push.apply(Re,e)}function gy(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!nt(s(),i))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 bt(e,t){for(t&=~Ea,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function ac(e){if(U&6)throw Error(N(327));Hn();var t=Yi(e,0);if(!(t&1))return Ae(e,ie()),null;var n=hs(e,t);if(e.tag!==0&&n===2){var r=Xo(e);r!==0&&(t=r,n=Pl(e,r))}if(n===1)throw n=Yr,un(e,0),bt(e,t),Ae(e,ie()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,en(e,Re,ct),Ae(e,ie()),null}function ja(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(qn=ie()+500,Rs&&Xt())}}function gn(e){Dt!==null&&Dt.tag===0&&!(U&6)&&Hn();var t=U;U|=1;var n=Qe.transition,r=W;try{if(Qe.transition=null,W=1,e)return e()}finally{W=r,Qe.transition=n,U=t,!(U&6)&&Xt()}}function Ra(){Ve=Vn.current,X(Vn)}function un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Kg(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(ua(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&es();break;case 3:Xn(),X(Me),X(Ce),va();break;case 5:ya(r);break;case 4:Xn();break;case 13:X(J);break;case 19:X(J);break;case 10:ha(r.type._context);break;case 22:case 23:Ra()}n=n.return}if(fe=e,le=e=Ut(e.current,null),ge=Ve=t,ue=0,Yr=null,Ea=As=mn=0,Re=Nr=null,on!==null){for(t=0;t<on.length;t++)if(n=on[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}on=null}return e}function kh(e,t){do{var n=le;try{if(da(),Oi.current=us,as){for(var r=te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}as=!1}if(pn=0,ce=ae=te=null,Tr=!1,Kr=0,Ta.current=null,n===null||n.return===null){ue=1,Yr=t,le=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=ge,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=Yu(o);if(g!==null){g.flags&=-257,Xu(g,o,l,s,t),g.mode&1&&Gu(s,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)){Gu(s,u,t),La();break e}a=Error(N(426))}}else if(Z&&l.mode&1){var T=Yu(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Xu(T,o,l,s,t),ca(Zn(a,l));break e}}s=a=Zn(a,l),ue!==4&&(ue=2),Nr===null?Nr=[s]:Nr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=ih(s,a,t);Uu(s,y);break e;case 1:l=a;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(zt===null||!zt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=sh(s,l,t);Uu(s,w);break e}}s=s.return}while(s!==null)}Ph(n)}catch(C){t=C,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Sh(){var e=cs.current;return cs.current=us,e===null?us:e}function La(){(ue===0||ue===3||ue===2)&&(ue=4),fe===null||!(mn&268435455)&&!(As&268435455)||bt(fe,ge)}function hs(e,t){var n=U;U|=2;var r=Sh();(fe!==e||ge!==t)&&(ct=null,un(e,t));do try{yy();break}catch(i){kh(e,i)}while(!0);if(da(),U=n,cs.current=r,le!==null)throw Error(N(261));return fe=null,ge=0,ue}function yy(){for(;le!==null;)Ch(le)}function vy(){for(;le!==null&&!$m();)Ch(le)}function Ch(e){var t=Eh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Ph(e):le=t,Ta.current=null}function Ph(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fy(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,le=null;return}}else if(n=cy(n,t,Ve),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ue===0&&(ue=5)}function en(e,t,n){var r=W,i=Qe.transition;try{Qe.transition=null,W=1,xy(e,t,n,r)}finally{Qe.transition=i,W=r}return null}function xy(e,t,n,r){do Hn();while(Dt!==null);if(U&6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Jm(e,s),e===fe&&(le=fe=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ci||(Ci=!0,Nh(Gi,function(){return Hn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Qe.transition,Qe.transition=null;var o=W;W=1;var l=U;U|=4,Ta.current=null,hy(e,n),vh(n,e),Fg(nl),Xi=!!tl,nl=tl=null,e.current=n,py(n),Wm(),U=l,W=o,Qe.transition=s}else e.current=n;if(Ci&&(Ci=!1,Dt=e,ds=i),s=e.pendingLanes,s===0&&(zt=null),Qm(n.stateNode),Ae(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(fs)throw fs=!1,e=Sl,Sl=null,e;return ds&1&&e.tag!==0&&Hn(),s=e.pendingLanes,s&1?e===Cl?jr++:(jr=0,Cl=e):jr=0,Xt(),null}function Hn(){if(Dt!==null){var e=id(ds),t=Qe.transition,n=W;try{if(Qe.transition=null,W=16>e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,ds=0,U&6)throw Error(N(331));var i=U;for(U|=4,_=e.current;_!==null;){var s=_,o=s.child;if(_.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(_=u;_!==null;){var f=_;switch(f.tag){case 0:case 11:case 15:Er(8,f,s)}var c=f.child;if(c!==null)c.return=f,_=c;else for(;_!==null;){f=_;var d=f.sibling,g=f.return;if(mh(f),f===u){_=null;break}if(d!==null){d.return=g,_=d;break}_=g}}}var v=s.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)}}_=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,_=o;else e:for(;_!==null;){if(s=_,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Er(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,_=y;break e}_=s.return}}var h=e.current;for(_=h;_!==null;){o=_;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,_=m;else e:for(o=h;_!==null;){if(l=_,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:bs(9,l)}}catch(C){re(l,l.return,C)}if(l===o){_=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,_=w;break e}_=l.return}}if(U=i,Xt(),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(Ps,e)}catch{}r=!0}return r}finally{W=n,Qe.transition=t}}return!1}function uc(e,t,n){t=Zn(n,t),t=ih(e,t,1),e=Ft(e,t,1),t=Ee(),e!==null&&(ei(e,1,t),Ae(e,t))}function re(e,t,n){if(e.tag===3)uc(e,e,n);else for(;t!==null;){if(t.tag===3){uc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zt===null||!zt.has(r))){e=Zn(n,e),e=sh(t,e,1),t=Ft(t,e,1),e=Ee(),t!==null&&(ei(t,1,e),Ae(t,e));break}}t=t.return}}function wy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(ge&n)===n&&(ue===4||ue===3&&(ge&130023424)===ge&&500>ie()-Na?un(e,0):Ea|=n),Ae(e,t)}function Th(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=Ee();e=wt(e,t),e!==null&&(ei(e,t,n),Ae(e,n))}function ky(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Th(e,n)}function Sy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Th(e,n)}var Eh;Eh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,uy(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&Ld(t,rs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fi(e,t),e=t.pendingProps;var i=Qn(t,Ce.current);Wn(t,n),i=wa(null,t,r,e,i,n);var s=ka();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(s=!0,ts(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ma(t),i.updater=Ms,t.stateNode=i,i._reactInternals=t,fl(t,r,e,n),t=pl(null,t,r,!0,s,n)):(t.tag=0,Z&&s&&aa(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Py(r),e=Ze(r,e),i){case 0:t=hl(null,t,r,e,n);break e;case 1:t=Ju(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=qu(null,t,r,Ze(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),hl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ju(e,t,r,i,n);case 3:e:{if(uh(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,_d(e,t),os(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Zn(Error(N(423)),t),t=ec(e,t,r,n,i);break e}else if(r!==i){i=Zn(Error(N(424)),t),t=ec(e,t,r,n,i);break e}else for(_e=It(t.stateNode.containerInfo.firstChild),Oe=t,Z=!0,Je=null,n=Dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===i){t=kt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Od(t),e===null&&al(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,rl(r,i)?o=null:s!==null&&rl(r,s)&&(t.flags|=32),ah(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&al(t),null;case 13:return ch(e,t,n);case 4:return ga(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Zu(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(is,r._currentValue),r._currentValue=o,s!==null)if(nt(s.value,o)){if(s.children===i.children&&!Me.current){t=kt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=mt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ul(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ul(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wn(t,n),i=Ge(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),qu(e,t,r,i,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Fi(e,t),t.tag=1,be(r)?(e=!0,ts(t)):e=!1,Wn(t,n),rh(t,r,i),fl(t,r,i,n),pl(null,t,r,!0,e,n);case 19:return fh(e,t,n);case 22:return lh(e,t,n)}throw Error(N(156,t.tag))};function Nh(e,t){return ed(e,t)}function Cy(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 Ke(e,t,n,r){return new Cy(e,t,n,r)}function Ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Py(e){if(typeof e=="function")return Ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xl)return 11;if(e===Zl)return 14}return 2}function Ut(e,t){var n=e.alternate;return n===null?(n=Ke(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 Ui(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Ma(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return cn(n.children,i,s,t);case Yl:o=8,i|=8;break;case Vo:return e=Ke(12,n,t,i|2),e.elementType=Vo,e.lanes=s,e;case _o:return e=Ke(13,n,t,i),e.elementType=_o,e.lanes=s,e;case Oo:return e=Ke(19,n,t,i),e.elementType=Oo,e.lanes=s,e;case Of:return Ds(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vf:o=10;break e;case _f:o=9;break e;case Xl:o=11;break e;case Zl:o=14;break e;case jt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ke(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function cn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Ds(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Of,e.lanes=n,e.stateNode={isHidden:!1},e}function xo(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ty(e,t,n,r,i){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=Js(0),this.expirationTimes=Js(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ba(e,t,n,r,i,s,o,l,a){return e=new Ty(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ke(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ma(s),e}function Ey(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 jh(e){if(!e)return Ht;e=e._reactInternals;e:{if(vn(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(be(n))return jd(e,n,t)}return t}function Rh(e,t,n,r,i,s,o,l,a){return e=ba(n,r,!0,e,i,s,o,l,a),e.context=jh(null),n=e.current,r=Ee(),i=Bt(n),s=mt(r,i),s.callback=t??null,Ft(n,s,i),e.current.lanes=i,ei(e,i,r),Ae(e,r),e}function Vs(e,t,n,r){var i=t.current,s=Ee(),o=Bt(i);return n=jh(n),t.context===null?t.context=n:t.pendingContext=n,t=mt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ft(i,t,o),e!==null&&(tt(e,i,o,s),_i(e,i,o)),o}function ps(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 cc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Aa(e,t){cc(e,t),(e=e.alternate)&&cc(e,t)}function Ny(){return null}var Lh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Da(e){this._internalRoot=e}_s.prototype.render=Da.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Vs(e,t,null,null)};_s.prototype.unmount=Da.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){Vs(null,e,null,null)}),t[xt]=null}};function _s(e){this._internalRoot=e}_s.prototype.unstable_scheduleHydration=function(e){if(e){var t=ld();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&t!==0&&t<Mt[n].priority;n++);Mt.splice(n,0,e),n===0&&ud(e)}};function Va(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Os(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function fc(){}function jy(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=ps(o);s.call(u)}}var o=Rh(t,r,e,0,null,!1,!1,"",fc);return e._reactRootContainer=o,e[xt]=o.current,Br(e.nodeType===8?e.parentNode:e),gn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=ps(a);l.call(u)}}var a=ba(e,0,!1,null,null,!1,!1,"",fc);return e._reactRootContainer=a,e[xt]=a.current,Br(e.nodeType===8?e.parentNode:e),gn(function(){Vs(t,a,n,r)}),a}function Is(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=ps(o);l.call(a)}}Vs(t,o,e,i)}else o=jy(n,t,e,i,r);return ps(o)}sd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yr(t.pendingLanes);n!==0&&(ea(t,n|1),Ae(t,ie()),!(U&6)&&(qn=ie()+500,Xt()))}break;case 13:gn(function(){var r=wt(e,1);if(r!==null){var i=Ee();tt(r,e,1,i)}}),Aa(e,1)}};ta=function(e){if(e.tag===13){var t=wt(e,134217728);if(t!==null){var n=Ee();tt(t,e,134217728,n)}Aa(e,134217728)}};od=function(e){if(e.tag===13){var t=Bt(e),n=wt(e,t);if(n!==null){var r=Ee();tt(n,e,t,r)}Aa(e,t)}};ld=function(){return W};ad=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};Qo=function(e,t,n){switch(t){case"input":if(zo(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 i=js(r);if(!i)throw Error(N(90));Ff(r),zo(r,i)}}}break;case"textarea":Bf(e,n);break;case"select":t=n.value,t!=null&&zn(e,!!n.multiple,t,!1)}};Gf=ja;Yf=gn;var Ry={usingClientEntryPoint:!1,Events:[ni,Rn,js,Kf,Qf,ja]},fr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ly={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:Ct.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qf(e),e===null?null:e.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||Ny,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 Pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pi.isDisabled&&Pi.supportsFiber)try{Ps=Pi.inject(Ly),lt=Pi}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ry;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Va(t))throw Error(N(200));return Ey(e,t,null,n)};ze.createRoot=function(e,t){if(!Va(e))throw Error(N(299));var n=!1,r="",i=Lh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ba(e,1,!1,null,null,n,!1,r,i),e[xt]=t.current,Br(e.nodeType===8?e.parentNode:e),new Da(t)};ze.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=qf(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return gn(e)};ze.hydrate=function(e,t,n){if(!Os(t))throw Error(N(200));return Is(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!Va(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Lh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Rh(t,null,e,1,n??null,i,!1,s,o),e[xt]=t.current,Br(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _s(t)};ze.render=function(e,t,n){if(!Os(t))throw Error(N(200));return Is(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!Os(e))throw Error(N(40));return e._reactRootContainer?(gn(function(){Is(null,null,e,!1,function(){e._reactRootContainer=null,e[xt]=null})}),!0):!1};ze.unstable_batchedUpdates=ja;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Os(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Is(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function Mh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mh)}catch(e){console.error(e)}}Mh(),Mf.exports=ze;var My=Mf.exports,bh,dc=My;bh=dc.createRoot,dc.hydrateRoot;const Ah=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fs=S.createContext({}),zs=S.createContext(null),Bs=typeof document<"u",_a=Bs?S.useLayoutEffect:S.useEffect,Dh=S.createContext({strict:!1}),Oa=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),by="framerAppearId",Vh="data-"+Oa(by);function Ay(e,t,n,r){const{visualElement:i}=S.useContext(Fs),s=S.useContext(Dh),o=S.useContext(zs),l=S.useContext(Ah).reducedMotion,a=S.useRef();r=r||s.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;S.useInsertionEffect(()=>{u&&u.update(n,o)});const f=S.useRef(!!(n[Vh]&&!window.HandoffComplete));return _a(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function _n(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Dy(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):_n(n)&&(n.current=r))},[t])}function Xr(e){return typeof e=="string"||Array.isArray(e)}function Us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ia=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fa=["initial",...Ia];function $s(e){return Us(e.animate)||Fa.some(t=>Xr(e[t]))}function _h(e){return!!($s(e)||e.variants)}function Vy(e,t){if($s(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xr(n)?n:void 0,animate:Xr(r)?r:void 0}}return e.inherit!==!1?t:{}}function _y(e){const{initial:t,animate:n}=Vy(e,S.useContext(Fs));return S.useMemo(()=>({initial:t,animate:n}),[hc(t),hc(n)])}function hc(e){return Array.isArray(e)?e.join(" "):e}const pc={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"]},Zr={};for(const e in pc)Zr[e]={isEnabled:t=>pc[e].some(n=>!!t[n])};function Oy(e){for(const t in e)Zr[t]={...Zr[t],...e[t]}}const za=S.createContext({}),Oh=S.createContext({}),Iy=Symbol.for("motionComponentSymbol");function Fy({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Oy(e);function s(l,a){let u;const f={...S.useContext(Ah),...l,layoutId:zy(l)},{isStatic:c}=f,d=_y(l),g=r(l,c);if(!c&&Bs){d.visualElement=Ay(i,g,f,t);const v=S.useContext(Oh),x=S.useContext(Dh).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,x,e,v))}return S.createElement(Fs.Provider,{value:d},u&&d.visualElement?S.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,l,Dy(g,d.visualElement,a),g,c,d.visualElement))}const o=S.forwardRef(s);return o[Iy]=i,o}function zy({layoutId:e}){const t=S.useContext(za).id;return t&&e!==void 0?t+"-"+e:e}function By(e){function t(r,i={}){return Fy(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Uy=["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 Ba(e){return typeof e!="string"||e.includes("-")?!1:!!(Uy.indexOf(e)>-1||/[A-Z]/.test(e))}const ms={};function $y(e){Object.assign(ms,e)}const ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xn=new Set(ii);function Ih(e,{layout:t,layoutId:n}){return xn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ms[e]||e==="opacity")}const De=e=>!!(e&&e.getVelocity),Wy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hy=ii.length;function Ky(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;o<Hy;o++){const l=ii[o];if(e[l]!==void 0){const a=Wy[l]||l;s+=`${a}(${e[l]}) `}}return t&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,r?"":s):n&&r&&(s="none"),s}const Fh=e=>t=>typeof t=="string"&&t.startsWith(e),zh=Fh("--"),El=Fh("var(--"),Qy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Gy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Kt=(e,t,n)=>Math.min(Math.max(n,e),t),wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rr={...wn,transform:e=>Kt(0,1,e)},Ti={...wn,default:1},Lr=e=>Math.round(e*1e5)/1e5,Ws=/(-)?([\d]*\.?[\d])+/g,Bh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Yy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function si(e){return typeof e=="string"}const oi=e=>({test:t=>si(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Nt=oi("deg"),ut=oi("%"),I=oi("px"),Xy=oi("vh"),Zy=oi("vw"),mc={...ut,parse:e=>ut.parse(e)/100,transform:e=>ut.transform(e*100)},gc={...wn,transform:Math.round},Uh={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:Nt,rotateX:Nt,rotateY:Nt,rotateZ:Nt,scale:Ti,scaleX:Ti,scaleY:Ti,scaleZ:Ti,skew:Nt,skewX:Nt,skewY:Nt,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Rr,originX:mc,originY:mc,originZ:I,zIndex:gc,fillOpacity:Rr,strokeOpacity:Rr,numOctaves:gc};function Ua(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:l}=e;let a=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(zh(c)){s[c]=d;continue}const g=Uh[c],v=Gy(d,g);if(xn.has(c)){if(a=!0,o[c]=v,!f)continue;d!==(g.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,l[c]=v):i[c]=v}if(t.transform||(a||r?i.transform=Ky(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:g=0}=l;i.transformOrigin=`${c} ${d} ${g}`}}const $a=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $h(e,t,n){for(const r in t)!De(t[r])&&!Ih(r,n)&&(e[r]=t[r])}function qy({transformTemplate:e},t,n){return S.useMemo(()=>{const r=$a();return Ua(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Jy(e,t,n){const r=e.style||{},i={};return $h(i,r,e),Object.assign(i,qy(e,t,n)),e.transformValues?e.transformValues(i):i}function e0(e,t,n){const r={},i=Jy(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const t0=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 gs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||t0.has(e)}let Wh=e=>!gs(e);function n0(e){e&&(Wh=t=>t.startsWith("on")?!gs(t):e(t))}try{n0(require("@emotion/is-prop-valid").default)}catch{}function r0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Wh(i)||n===!0&&gs(i)||!t&&!gs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yc(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function i0(e,t,n){const r=yc(t,e.x,e.width),i=yc(n,e.y,e.height);return`${r} ${i}`}const s0={offset:"stroke-dashoffset",array:"stroke-dasharray"},o0={offset:"strokeDashoffset",array:"strokeDasharray"};function l0(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?s0:o0;e[s.offset]=I.transform(-r);const o=I.transform(t),l=I.transform(n);e[s.array]=`${o} ${l}`}function Wa(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},f,c,d){if(Ua(e,u,f,d),c){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&&(i!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=i0(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&l0(g,o,l,a,!1)}const Hh=()=>({...$a(),attrs:{}}),Ha=e=>typeof e=="string"&&e.toLowerCase()==="svg";function a0(e,t,n,r){const i=S.useMemo(()=>{const s=Hh();return Wa(s,t,{enableHardwareAcceleration:!1},Ha(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};$h(s,e.style,e),i.style={...s,...i.style}}return i}function u0(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Ba(n)?a0:e0)(r,s,o,n),f={...r0(r,typeof n=="string",e),...a,ref:i},{children:c}=r,d=S.useMemo(()=>De(c)?c.get():c,[c]);return S.createElement(n,{...f,children:d})}}function Kh(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}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 Gh(e,t,n,r){Kh(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Qh.has(i)?i:Oa(i),t.attrs[i])}function Ka(e,t){const{style:n}=e,r={};for(const i in n)(De(n[i])||t.style&&De(t.style[i])||Ih(i,e))&&(r[i]=n[i]);return r}function Yh(e,t){const n=Ka(e,t);for(const r in e)if(De(e[r])||De(t[r])){const i=ii.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Qa(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Xh(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ys=e=>Array.isArray(e),c0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),f0=e=>ys(e)?e[e.length-1]||0:e;function $i(e){const t=De(e)?e.get():e;return c0(t)?t.toValue():t}function d0({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:h0(r,i,s,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const Zh=e=>(t,n)=>{const r=S.useContext(Fs),i=S.useContext(zs),s=()=>d0(e,t,r,i);return n?s():Xh(s)};function h0(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=$i(s[d]);let{initial:o,animate:l}=e;const a=$s(e),u=_h(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const c=f?l:o;return c&&typeof c!="boolean"&&!Us(c)&&(Array.isArray(c)?c:[c]).forEach(g=>{const v=Qa(e,g);if(!v)return;const{transitionEnd:x,transition:T,...y}=v;for(const h in y){let m=y[h];if(Array.isArray(m)){const w=f?m.length-1:0;m=m[w]}m!==null&&(i[h]=m)}for(const h in x)i[h]=x[h]}),i}const se=e=>e;class vc{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 p0(e){let t=new vc,n=new vc,r=0,i=!1,s=!1;const o=new WeakSet,l={schedule:(a,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&o.add(a),d.add(a)&&c&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),o.delete(a)},process:a=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(a),o.has(f)&&(l.schedule(f),e())}i=!1,s&&(s=!1,l.process(a))}};return l}const Ei=["prepare","read","update","preRender","render","postRender"],m0=40;function g0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=Ei.reduce((c,d)=>(c[d]=p0(()=>n=!0),c),{}),o=c=>s[c].process(i),l=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,m0),1),i.timestamp=c,i.isProcessing=!0,Ei.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ei.reduce((c,d)=>{const g=s[d];return c[d]=(v,x=!1,T=!1)=>(n||a(),g.schedule(v,x,T)),c},{}),cancel:c=>Ei.forEach(d=>s[d].cancel(c)),state:i,steps:s}}const{schedule:Q,cancel:St,state:ke,steps:ko}=g0(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0),y0={useVisualState:Zh({scrapeMotionValuesFromProps:Yh,createRenderState:Hh,onMount:(e,t,{renderState:n,latestValues:r})=>{Q.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Q.render(()=>{Wa(n,r,{enableHardwareAcceleration:!1},Ha(t.tagName),e.transformTemplate),Gh(t,n)})}})},v0={useVisualState:Zh({scrapeMotionValuesFromProps:Ka,createRenderState:$a})};function x0(e,{forwardMotionProps:t=!1},n,r){return{...Ba(e)?y0:v0,preloadedFeatures:n,useRender:u0(t),createVisualElement:r,Component:e}}function pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const w0=e=>t=>qh(t)&&e(t,Hs(t));function gt(e,t,n,r){return pt(e,t,w0(n),r)}const k0=(e,t)=>n=>t(e(n)),$t=(...e)=>e.reduce(k0);function Jh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const xc=Jh("dragHorizontal"),wc=Jh("dragVertical");function ep(e){let t=!1;if(e==="y")t=wc();else if(e==="x")t=xc();else{const n=xc(),r=wc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function tp(){const e=ep(!0);return e?(e(),!1):!0}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function kc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||tp())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Q.update(()=>l[r](s,o))};return gt(e.current,n,i,{passive:!e.getProps()[r]})}class S0 extends Zt{mount(){this.unmount=$t(kc(this.node,!0),kc(this.node,!1))}unmount(){}}class C0 extends Zt{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=$t(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const np=(e,t)=>t?e===t?!0:np(e,t.parentElement):!1;function So(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hs(n))}class P0 extends Zt{constructor(){super(...arguments),this.removeStartListeners=se,this.removeEndListeners=se,this.removeAccessibleListeners=se,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=gt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();Q.update(()=>{!c&&!np(this.node.current,l.target)?f&&f(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),o=gt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=$t(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||So("up",(a,u)=>{const{onTap:f}=this.node.getProps();f&&Q.update(()=>f(a,u))})};this.removeEndListeners(),this.removeEndListeners=pt(this.node.current,"keyup",o),So("down",(l,a)=>{this.startPress(l,a)})},n=pt(this.node.current,"keydown",t),r=()=>{this.isPressing&&So("cancel",(s,o)=>this.cancelPress(s,o))},i=pt(this.node.current,"blur",r);this.removeAccessibleListeners=$t(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Q.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tp()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Q.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=gt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=pt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$t(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Nl=new WeakMap,Co=new WeakMap,T0=e=>{const t=Nl.get(e.target);t&&t(e)},E0=e=>{e.forEach(T0)};function N0({root:e,...t}){const n=e||document;Co.has(n)||Co.set(n,{});const r=Co.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(E0,{root:e,...t})),r[i]}function j0(e,t,n){const r=N0(t);return Nl.set(e,n),r.observe(e),()=>{Nl.delete(e),r.unobserve(e)}}const R0={some:0,all:1};class L0 extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:R0[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(a)};return j0(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(M0(t,n))&&this.startObserver()}unmount(){}}function M0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const b0={inView:{Feature:L0},tap:{Feature:P0},focus:{Feature:C0},hover:{Feature:S0}};function rp(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 A0(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function D0(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ks(e,t,n){const r=e.getProps();return Qa(r,t,n!==void 0?n:r.custom,A0(e),D0(e))}let Ga=se;const fn=e=>e*1e3,yt=e=>e/1e3,V0={current:!1},ip=e=>Array.isArray(e)&&typeof e[0]=="number";function sp(e){return!!(!e||typeof e=="string"&&op[e]||ip(e)||Array.isArray(e)&&e.every(sp))}const xr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,op={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xr([0,.65,.55,1]),circOut:xr([.55,0,1,.45]),backIn:xr([.31,.01,.66,-.59]),backOut:xr([.33,1.53,.69,.99])};function lp(e){if(e)return ip(e)?xr(e):Array.isArray(e)?e.map(lp):op[e]}function _0(e,t,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const f=lp(l);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function O0(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ap=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,I0=1e-7,F0=12;function z0(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=ap(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>I0&&++l<F0);return o}function li(e,t,n,r){if(e===t&&n===r)return se;const i=s=>z0(s,0,1,e,n);return s=>s===0||s===1?s:ap(i(s),t,r)}const B0=li(.42,0,1,1),U0=li(0,0,.58,1),up=li(.42,0,.58,1),$0=e=>Array.isArray(e)&&typeof e[0]!="number",cp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fp=e=>t=>1-e(1-t),Ya=e=>1-Math.sin(Math.acos(e)),dp=fp(Ya),W0=cp(Ya),hp=li(.33,1.53,.69,.99),Xa=fp(hp),H0=cp(Xa),K0=e=>(e*=2)<1?.5*Xa(e):.5*(2-Math.pow(2,-10*(e-1))),Q0={linear:se,easeIn:B0,easeInOut:up,easeOut:U0,circIn:Ya,circInOut:W0,circOut:dp,backIn:Xa,backInOut:H0,backOut:hp,anticipate:K0},Sc=e=>{if(Array.isArray(e)){Ga(e.length===4);const[t,n,r,i]=e;return li(t,n,r,i)}else if(typeof e=="string")return Q0[e];return e},Za=(e,t)=>n=>!!(si(n)&&Yy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),pp=(e,t,n)=>r=>{if(!si(r))return r;const[i,s,o,l]=r.match(Ws);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},G0=e=>Kt(0,255,e),Po={...wn,transform:e=>Math.round(G0(e))},an={test:Za("rgb","red"),parse:pp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Po.transform(e)+", "+Po.transform(t)+", "+Po.transform(n)+", "+Lr(Rr.transform(r))+")"};function Y0(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const jl={test:Za("#"),parse:Y0,transform:an.transform},On={test:Za("hsl","hue"),parse:pp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ut.transform(Lr(t))+", "+ut.transform(Lr(n))+", "+Lr(Rr.transform(r))+")"},Pe={test:e=>an.test(e)||jl.test(e)||On.test(e),parse:e=>an.test(e)?an.parse(e):On.test(e)?On.parse(e):jl.parse(e),transform:e=>si(e)?e:e.hasOwnProperty("red")?an.transform(e):On.transform(e)},ee=(e,t,n)=>-n*e+n*t+e;function To(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 X0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=To(a,l,e+1/3),s=To(a,l,e),o=To(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const Eo=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Z0=[jl,an,On],q0=e=>Z0.find(t=>t.test(e));function Cc(e){const t=q0(e);let n=t.parse(e);return t===On&&(n=X0(n)),n}const mp=(e,t)=>{const n=Cc(e),r=Cc(t),i={...n};return s=>(i.red=Eo(n.red,r.red,s),i.green=Eo(n.green,r.green,s),i.blue=Eo(n.blue,r.blue,s),i.alpha=ee(n.alpha,r.alpha,s),an.transform(i))};function J0(e){var t,n;return isNaN(e)&&si(e)&&(((t=e.match(Ws))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Bh))===null||n===void 0?void 0:n.length)||0)>0}const gp={regex:Qy,countKey:"Vars",token:"${v}",parse:se},yp={regex:Bh,countKey:"Colors",token:"${c}",parse:Pe.parse},vp={regex:Ws,countKey:"Numbers",token:"${n}",parse:wn.parse};function No(e,{regex:t,countKey:n,token:r,parse:i}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(i)))}function vs(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&No(n,gp),No(n,yp),No(n,vp),n}function xp(e){return vs(e).values}function wp(e){const{values:t,numColors:n,numVars:r,tokenised:i}=vs(e),s=t.length;return o=>{let l=i;for(let a=0;a<s;a++)a<r?l=l.replace(gp.token,o[a]):a<r+n?l=l.replace(yp.token,Pe.transform(o[a])):l=l.replace(vp.token,Lr(o[a]));return l}}const ev=e=>typeof e=="number"?0:e;function tv(e){const t=xp(e);return wp(e)(t.map(ev))}const Qt={test:J0,parse:xp,createTransformer:wp,getAnimatableNone:tv},kp=(e,t)=>n=>`${n>0?t:e}`;function Sp(e,t){return typeof e=="number"?n=>ee(e,t,n):Pe.test(e)?mp(e,t):e.startsWith("var(")?kp(e,t):Pp(e,t)}const Cp=(e,t)=>{const n=[...e],r=n.length,i=e.map((s,o)=>Sp(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}},nv=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sp(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},Pp=(e,t)=>{const n=Qt.createTransformer(t),r=vs(e),i=vs(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?$t(Cp(r.values,i.values),n):kp(e,t)},qr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pc=(e,t)=>n=>ee(e,t,n);function rv(e){return typeof e=="number"?Pc:typeof e=="string"?Pe.test(e)?mp:Pp:Array.isArray(e)?Cp:typeof e=="object"?nv:Pc}function iv(e,t,n){const r=[],i=n||rv(e[0]),s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||se:t;l=$t(a,l)}r.push(l)}return r}function Tp(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ga(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=iv(t,r,i),l=o.length,a=u=>{let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=qr(e[f],e[f+1],u);return o[f](c)};return n?u=>a(Kt(e[0],e[s-1],u)):a}function sv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qr(0,t,r);e.push(ee(n,1,i))}}function ov(e){const t=[0];return sv(t,e.length-1),t}function lv(e,t){return e.map(n=>n*t)}function av(e,t){return e.map(()=>t||up).splice(0,e.length-1)}function xs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$0(r)?r.map(Sc):Sc(r),s={done:!1,value:t[0]},o=lv(n&&n.length===t.length?n:ov(t),e),l=Tp(o,t,{ease:Array.isArray(i)?i:av(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}function Ep(e,t){return t?e*(1e3/t):0}const uv=5;function Np(e,t,n){const r=Math.max(t-uv,0);return Ep(n-e(r),t-r)}const jo=.001,cv=.01,fv=10,dv=.05,hv=1;function pv({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Kt(dv,hv,o),e=Kt(cv,fv,yt(e)),o<1?(i=u=>{const f=u*o,c=f*e,d=f-n,g=Rl(u,o),v=Math.exp(-c);return jo-d/g*v},s=u=>{const c=u*o*e,d=c*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-c),x=Rl(Math.pow(u,2),o);return(-i(u)+jo>0?-1:1)*((d-g)*v)/x}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-jo+f*c},s=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const l=5/e,a=gv(i,s,l);if(e=fn(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 mv=12;function gv(e,t,n){let r=n;for(let i=1;i<mv;i++)r=r-e(r)/t(r);return r}function Rl(e,t){return e*Math.sqrt(1-t*t)}const yv=["duration","bounce"],vv=["stiffness","damping","mass"];function Tc(e,t){return t.some(n=>e[n]!==void 0)}function xv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Tc(e,vv)&&Tc(e,yv)){const n=pv(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function jp({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:l,damping:a,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=xv({...r,velocity:-yt(r.velocity||0)}),g=c||0,v=a/(2*Math.sqrt(l*u)),x=s-i,T=yt(Math.sqrt(l/u)),y=Math.abs(x)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let h;if(v<1){const m=Rl(T,v);h=w=>{const C=Math.exp(-v*T*w);return s-C*((g+v*T*x)/m*Math.sin(m*w)+x*Math.cos(m*w))}}else if(v===1)h=m=>s-Math.exp(-T*m)*(x+(g+T*x)*m);else{const m=T*Math.sqrt(v*v-1);h=w=>{const C=Math.exp(-v*T*w),j=Math.min(m*w,300);return s-C*((g+v*T*x)*Math.sinh(j)+m*x*Math.cosh(j))/m}}return{calculatedDuration:d&&f||null,next:m=>{const w=h(m);if(d)o.done=m>=f;else{let C=g;m!==0&&(v<1?C=Np(h,m,w):C=0);const j=Math.abs(C)<=n,R=Math.abs(s-w)<=t;o.done=j&&R}return o.value=o.done?s:w,o}}}function Ec({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},g=E=>l!==void 0&&E<l||a!==void 0&&E>a,v=E=>l===void 0?a:a===void 0||Math.abs(l-E)<Math.abs(a-E)?l:a;let x=n*t;const T=c+x,y=o===void 0?T:o(T);y!==T&&(x=y-c);const h=E=>-x*Math.exp(-E/r),m=E=>y+h(E),w=E=>{const M=h(E),V=m(E);d.done=Math.abs(M)<=u,d.value=d.done?y:V};let C,j;const R=E=>{g(d.value)&&(C=E,j=jp({keyframes:[d.value,v(d.value)],velocity:Np(m,E,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:f}))};return R(0),{calculatedDuration:null,next:E=>{let M=!1;return!j&&C===void 0&&(M=!0,w(E),R(E)),C!==void 0&&E>C?j.next(E-C):(!M&&w(E),d)}}}const wv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>St(t),now:()=>ke.isProcessing?ke.timestamp:performance.now()}},Nc=2e4;function jc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Nc;)t+=n,r=e.next(t);return t>=Nc?1/0:t}const kv={decay:Ec,inertia:Ec,tween:xs,keyframes:xs,spring:jp};function ws({autoplay:e=!0,delay:t=0,driver:n=wv,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:f,onUpdate:c,...d}){let g=1,v=!1,x,T;const y=()=>{T=new Promise(L=>{x=L})};y();let h;const m=kv[i]||xs;let w;m!==xs&&typeof r[0]!="number"&&(w=Tp([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...d,keyframes:r});let j;l==="mirror"&&(j=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let R="idle",E=null,M=null,V=null;C.calculatedDuration===null&&s&&(C.calculatedDuration=jc(C));const{calculatedDuration:$}=C;let q=1/0,H=1/0;$!==null&&(q=$+o,H=q*(s+1)-o);let O=0;const z=L=>{if(M===null)return;g>0&&(M=Math.min(M,L)),g<0&&(M=Math.min(L-H/g,M)),E!==null?O=E:O=Math.round(L-M)*g;const F=O-t*(g>=0?1:-1),he=g>=0?F<0:F>H;O=Math.max(F,0),R==="finished"&&E===null&&(O=H);let pe=O,Pt=C;if(s){const Tt=Math.min(O,H)/q;let Sn=Math.floor(Tt),rt=Tt%1;!rt&&Tt>=1&&(rt=1),rt===1&&Sn--,Sn=Math.min(Sn,s+1),!!(Sn%2)&&(l==="reverse"?(rt=1-rt,o&&(rt-=o/q)):l==="mirror"&&(Pt=j)),pe=Kt(0,1,rt)*q}const ve=he?{done:!1,value:r[0]}:Pt.next(pe);w&&(ve.value=w(ve.value));let{done:G}=ve;!he&&$!==null&&(G=g>=0?O>=H:O<=0);const kn=E===null&&(R==="finished"||R==="running"&&G);return c&&c(ve.value),kn&&P(),ve},k=()=>{h&&h.stop(),h=void 0},A=()=>{R="idle",k(),x(),y(),M=V=null},P=()=>{R="finished",f&&f(),k(),x()},b=()=>{if(v)return;h||(h=n(z));const L=h.now();a&&a(),E!==null?M=L-E:(!M||R==="finished")&&(M=L),R==="finished"&&y(),V=M,E=null,R="running",h.start()};e&&b();const D={then(L,F){return T.then(L,F)},get time(){return yt(O)},set time(L){L=fn(L),O=L,E!==null||!h||g===0?E=L:M=h.now()-L/g},get duration(){const L=C.calculatedDuration===null?jc(C):C.calculatedDuration;return yt(L)},get speed(){return g},set speed(L){L===g||!h||(g=L,D.time=yt(O))},get state(){return R},play:b,pause:()=>{R="paused",E=O},stop:()=>{v=!0,R!=="idle"&&(R="idle",u&&u(),A())},cancel:()=>{V!==null&&z(V),A()},complete:()=>{R="finished"},sample:L=>(M=0,z(L))};return D}function Sv(e){let t;return()=>(t===void 0&&(t=e()),t)}const Cv=Sv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ni=10,Tv=2e4,Ev=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sp(t.ease);function Nv(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Cv()&&Pv.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,l,a,u=!1;const f=()=>{a=new Promise(m=>{l=m})};f();let{keyframes:c,duration:d=300,ease:g,times:v}=i;if(Ev(t,i)){const m=ws({...i,repeat:0,delay:0});let w={done:!1,value:c[0]};const C=[];let j=0;for(;!w.done&&j<Tv;)w=m.sample(j),C.push(w.value),j+=Ni;v=void 0,c=C,d=j-Ni,g="linear"}const x=_0(e.owner.current,t,c,{...i,duration:d,ease:g,times:v}),T=()=>{u=!1,x.cancel()},y=()=>{u=!0,Q.update(T),l(),f()};return x.onfinish=()=>{u||(e.set(O0(c,i)),r&&r(),y())},{then(m,w){return a.then(m,w)},attachTimeline(m){return x.timeline=m,x.onfinish=null,se},get time(){return yt(x.currentTime||0)},set time(m){x.currentTime=fn(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return yt(d)},play:()=>{o||(x.play(),St(T))},pause:()=>x.pause(),stop:()=>{if(o=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const w=ws({...i,autoplay:!1});e.setWithVelocity(w.sample(m-Ni).value,w.sample(m).value,Ni)}y()},complete:()=>{u||x.finish()},cancel:y}}function jv({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:se,pause:se,stop:se,then:s=>(s(),Promise.resolve()),cancel:se,complete:se});return t?ws({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Rv={type:"spring",stiffness:500,damping:25,restSpeed:10},Lv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mv={type:"keyframes",duration:.8},bv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Av=(e,{keyframes:t})=>t.length>2?Mv:xn.has(e)?e.startsWith("scale")?Lv(t[1]):Rv:bv,Ll=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Qt.test(t)||t==="0")&&!t.startsWith("url(")),Dv=new Set(["brightness","contrast","saturate","opacity"]);function Vv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ws)||[];if(!r)return e;const i=n.replace(r,"");let s=Dv.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const _v=/([a-z-]*)\(.*?\)/g,Ml={...Qt,getAnimatableNone:e=>{const t=e.match(_v);return t?t.map(Vv).join(" "):e}},Ov={...Uh,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:Ml,WebkitFilter:Ml},qa=e=>Ov[e];function Rp(e,t){let n=qa(e);return n!==Ml&&(n=Qt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Lp=e=>/^0[^.\s]+$/.test(e);function Iv(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Lp(e)}function Fv(e,t,n,r){const i=Ll(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<s.length;u++)s[u]===null&&(s[u]=u===0?o:s[u-1]),Iv(s[u])&&a.push(u),typeof s[u]=="string"&&s[u]!=="none"&&s[u]!=="0"&&(l=s[u]);if(i&&a.length&&l)for(let u=0;u<a.length;u++){const f=a[u];s[f]=Rp(t,l)}return s}function zv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...f}){return!!Object.keys(f).length}function Ja(e,t){return e[t]||e.default||e}const Bv={skipAnimations:!1},eu=(e,t,n,r={})=>i=>{const s=Ja(r,e)||{},o=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-fn(o);const a=Fv(t,e,n,s),u=a[0],f=a[a.length-1],c=Ll(e,u),d=Ll(e,f);let g={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-l,onUpdate:v=>{t.set(v),s.onUpdate&&s.onUpdate(v)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(zv(s)||(g={...g,...Av(e,g)}),g.duration&&(g.duration=fn(g.duration)),g.repeatDelay&&(g.repeatDelay=fn(g.repeatDelay)),!c||!d||V0.current||s.type===!1||Bv.skipAnimations)return jv(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=Nv(t,e,g);if(v)return v}return ws(g)};function ks(e){return!!(De(e)&&e.add)}const Mp=e=>/^\-?\d*\.?\d+$/.test(e);function tu(e,t){e.indexOf(t)===-1&&e.push(t)}function nu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ru{constructor(){this.subscriptions=[]}add(t){return tu(this.subscriptions,t),()=>nu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Uv=e=>!isNaN(parseFloat(e));class $v{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=ke;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Q.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Q.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=Uv(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ru);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.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?Ep(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 Jn(e,t){return new $v(e,t)}const bp=e=>t=>t.test(e),Wv={test:e=>e==="auto",parse:e=>e},Ap=[wn,I,ut,Nt,Zy,Xy,Wv],dr=e=>Ap.find(bp(e)),Hv=[...Ap,Pe,Qt],Kv=e=>Hv.find(bp(e));function Qv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jn(n))}function Gv(e,t){const n=Ks(e,t);let{transitionEnd:r={},transition:i={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const l=f0(s[o]);Qv(e,o,l)}}function Yv(e,t,n){var r,i;const s=Object.keys(t).filter(l=>!e.hasValue(l)),o=s.length;if(o)for(let l=0;l<o;l++){const a=s[l],u=t[a];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&i!==void 0?i:t[a]),f!=null&&(typeof f=="string"&&(Mp(f)||Lp(f))?f=parseFloat(f):!Kv(f)&&Qt.test(u)&&(f=Rp(a,u)),e.addValue(a,Jn(f,{owner:e})),n[a]===void 0&&(n[a]=f),f!==null&&e.setBaseTarget(a,f))}}function Xv(e,t){return t?(t[e]||t.default||t).from:void 0}function Zv(e,t,n){const r={};for(const i in e){const s=Xv(i,t);if(s!==void 0)r[i]=s;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function qv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jv(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 Dp(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(s=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in l){const d=e.getValue(c),g=l[c];if(!d||g===void 0||f&&qv(f,c))continue;const v={delay:n,elapsed:0,...Ja(s||{},c)};if(window.HandoffAppearAnimations){const y=e.getProps()[Vh];if(y){const h=window.HandoffAppearAnimations(y,c,d,Q);h!==null&&(v.elapsed=h,v.isHandoff=!0)}}let x=!v.isHandoff&&!Jv(d,g);if(v.type==="spring"&&(d.getVelocity()||v.velocity)&&(x=!1),d.animation&&(x=!1),x)continue;d.start(eu(c,d,g,e.shouldReduceMotion&&xn.has(c)?{type:!1}:v));const T=d.animation;ks(a)&&(a.add(c),T.then(()=>a.remove(c))),u.push(T)}return o&&Promise.all(u).then(()=>{o&&Gv(e,o)}),u}function bl(e,t,n={}){const r=Ks(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Dp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return ex(e,t,u+a,f,c,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[s,o]:[o,s];return a().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function ex(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(tx).forEach((u,f)=>{u.notify("AnimationStart",t),o.push(bl(u,t,{...s,delay:n+a(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function tx(e,t){return e.sortNodePosition(t)}function nx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>bl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=bl(e,t,n);else{const i=typeof t=="function"?Ks(e,t,n.custom):t;r=Promise.all(Dp(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const rx=[...Ia].reverse(),ix=Ia.length;function sx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nx(e,n,r)))}function ox(e){let t=sx(e);const n=ax();let r=!0;const i=(a,u)=>{const f=Ks(e,u);if(f){const{transition:c,transitionEnd:d,...g}=f;a={...a,...g,...d}}return a};function s(a){t=a(e)}function o(a,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],g=new Set;let v={},x=1/0;for(let y=0;y<ix;y++){const h=rx[y],m=n[h],w=f[h]!==void 0?f[h]:c[h],C=Xr(w),j=h===u?m.isActive:null;j===!1&&(x=y);let R=w===c[h]&&w!==f[h]&&C;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),m.protectedKeys={...v},!m.isActive&&j===null||!w&&!m.prevProp||Us(w)||typeof w=="boolean")continue;let M=lx(m.prevProp,w)||h===u&&m.isActive&&!R&&C||y>x&&C,V=!1;const $=Array.isArray(w)?w:[w];let q=$.reduce(i,{});j===!1&&(q={});const{prevResolvedValues:H={}}=m,O={...H,...q},z=k=>{M=!0,g.has(k)&&(V=!0,g.delete(k)),m.needsAnimating[k]=!0};for(const k in O){const A=q[k],P=H[k];if(v.hasOwnProperty(k))continue;let b=!1;ys(A)&&ys(P)?b=!rp(A,P):b=A!==P,b?A!==void 0?z(k):g.add(k):A!==void 0&&g.has(k)?z(k):m.protectedKeys[k]=!0}m.prevProp=w,m.prevResolvedValues=q,m.isActive&&(v={...v,...q}),r&&e.blockInitialAnimation&&(M=!1),M&&(!R||V)&&d.push(...$.map(k=>({animation:k,options:{type:h,...a}})))}if(g.size){const y={};g.forEach(h=>{const m=e.getBaseTarget(h);m!==void 0&&(y[h]=m)}),d.push({animation:y})}let T=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(d):Promise.resolve()}function l(a,u,f){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(g=>{var v;return(v=g.animationState)===null||v===void 0?void 0:v.setActive(a,u)}),n[a].isActive=u;const d=o(f,a);for(const g in n)n[g].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n}}function lx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rp(t,e):!1}function qt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ax(){return{animate:qt(!0),whileInView:qt(),whileHover:qt(),whileTap:qt(),whileDrag:qt(),whileFocus:qt(),exit:qt()}}class ux extends Zt{constructor(t){super(t),t.animationState||(t.animationState=ox(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Us(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 cx=0;class fx extends Zt{constructor(){super(...arguments),this.id=cx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const dx={animation:{Feature:ux},exit:{Feature:fx}},Rc=(e,t)=>Math.abs(e-t);function hx(e,t){const n=Rc(e.x,t.x),r=Rc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vp{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 c=Lo(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=hx(c.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:v}=c,{timestamp:x}=ke;this.history.push({...v,timestamp:x});const{onStart:T,onMove:y}=this.handlers;d||(T&&T(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Ro(d,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Lo(c.type==="pointercancel"?this.lastMoveEventInfo:Ro(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,T),v&&v(c,T)},!qh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Hs(t),l=Ro(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=ke;this.history=[{...a,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Lo(l,this.history)),this.removeListeners=$t(gt(this.contextWindow,"pointermove",this.handlePointerMove),gt(this.contextWindow,"pointerup",this.handlePointerUp),gt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),St(this.updatePoint)}}function Ro(e,t){return t?{point:t(e.point)}:e}function Lc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lo({point:e},t){return{point:e,delta:Lc(e,_p(t)),offset:Lc(e,px(t)),velocity:mx(t,.1)}}function px(e){return e[0]}function _p(e){return e[e.length-1]}function mx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_p(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>fn(t)));)n--;if(!r)return{x:0,y:0};const s=yt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Fe(e){return e.max-e.min}function Al(e,t=0,n=.01){return Math.abs(e-t)<=n}function Mc(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=Fe(n)/Fe(t),(Al(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(Al(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Mr(e,t,n,r){Mc(e.x,t.x,n.x,r?r.originX:void 0),Mc(e.y,t.y,n.y,r?r.originY:void 0)}function bc(e,t,n){e.min=n.min+t.min,e.max=e.min+Fe(t)}function gx(e,t,n){bc(e.x,t.x,n.x),bc(e.y,t.y,n.y)}function Ac(e,t,n){e.min=t.min-n.min,e.max=e.min+Fe(t)}function br(e,t,n){Ac(e.x,t.x,n.x),Ac(e.y,t.y,n.y)}function yx(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function Dc(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 vx(e,{top:t,left:n,bottom:r,right:i}){return{x:Dc(e.x,n,i),y:Dc(e.y,t,r)}}function Vc(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 xx(e,t){return{x:Vc(e.x,t.x),y:Vc(e.y,t.y)}}function wx(e,t){let n=.5;const r=Fe(e),i=Fe(t);return i>r?n=qr(t.min,t.max-r,e.min):r>i&&(n=qr(e.min,e.max-i,t.min)),Kt(0,1,n)}function kx(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 Dl=.35;function Sx(e=Dl){return e===!1?e=0:e===!0&&(e=Dl),{x:_c(e,"left","right"),y:_c(e,"top","bottom")}}function _c(e,t,n){return{min:Oc(e,t),max:Oc(e,n)}}function Oc(e,t){return typeof e=="number"?e:e[t]||0}const Ic=()=>({translate:0,scale:1,origin:0,originPoint:0}),In=()=>({x:Ic(),y:Ic()}),Fc=()=>({min:0,max:0}),oe=()=>({x:Fc(),y:Fc()});function $e(e){return[e("x"),e("y")]}function Op({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Px(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 Mo(e){return e===void 0||e===1}function Vl({scale:e,scaleX:t,scaleY:n}){return!Mo(e)||!Mo(t)||!Mo(n)}function tn(e){return Vl(e)||Ip(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ip(e){return zc(e.x)||zc(e.y)}function zc(e){return e&&e!=="0%"}function Ss(e,t,n){const r=e-n,i=t*r;return n+i}function Bc(e,t,n,r,i){return i!==void 0&&(e=Ss(e,i,r)),Ss(e,n,r)+t}function _l(e,t=0,n=1,r,i){e.min=Bc(e.min,t,n,r,i),e.max=Bc(e.max,t,n,r,i)}function Fp(e,{x:t,y:n}){_l(e.x,t.translate,t.scale,t.originPoint),_l(e.y,n.translate,n.scale,n.originPoint)}function Tx(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const a=s.instance;a&&a.style&&a.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Fp(e,o)),r&&tn(s.latestValues)&&Fn(e,s.latestValues))}t.x=Uc(t.x),t.y=Uc(t.y)}function Uc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Lt(e,t){e.min=e.min+t,e.max=e.max+t}function $c(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=ee(e.min,e.max,s);_l(e,t[n],t[r],o,t.scale)}const Ex=["x","scaleX","originX"],Nx=["y","scaleY","originY"];function Fn(e,t){$c(e.x,t,Ex),$c(e.y,t,Nx)}function zp(e,t){return Op(Px(e.getBoundingClientRect(),t))}function jx(e,t,n){const r=zp(e,n),{scroll:i}=t;return i&&(Lt(r.x,i.offset.x),Lt(r.y,i.offset.y)),r}const Bp=({current:e})=>e?e.ownerDocument.defaultView:null,Rx=new WeakMap;class Lx{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=oe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hs(f,"page").point)},s=(f,c)=>{const{drag:d,dragPropagation:g,onDragStart:v}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ep(d),!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),$e(T=>{let y=this.getAxisMotionValue(T).get()||0;if(ut.test(y)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[T];m&&(y=Fe(m)*(parseFloat(y)/100))}}this.originPoint[T]=y}),v&&Q.update(()=>v(f,c),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(f,c)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:T}=c;if(g&&this.currentDirection===null){this.currentDirection=Mx(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",c.point,T),this.updateAxis("y",c.point,T),this.visualElement.render(),x&&x(f,c)},l=(f,c)=>this.stop(f,c),a=()=>$e(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Vp(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Bp(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Q.update(()=>s(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:i}=this.getProps();if(!r||!ji(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=yx(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&_n(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=vx(i.layoutBox,n):this.constraints=!1,this.elastic=Sx(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$e(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=kx(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_n(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=jx(r,i.root,this.visualElement.getTransformPagePoint());let o=xx(i.layout.layoutBox,s);if(n){const l=n(Cx(o));this.hasMutatedConstraints=!!l,l&&(o=Op(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=$e(f=>{if(!ji(f,n,this.currentDirection))return;let c=a&&a[f]||{};o&&(c={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(f,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(eu(t,r,0,n))}stopAnimation(){$e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$e(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$e(n=>{const{drag:r}=this.getProps();if(!ji(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-ee(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_n(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$e(o=>{const l=this.getAxisMotionValue(o);if(l){const a=l.get();i[o]=wx({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$e(o=>{if(!ji(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(ee(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Rx.set(this.visualElement,this);const t=this.visualElement.current,n=gt(t,"pointerdown",a=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();_n(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=pt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=a[f].translate,c.set(c.get()+a[f].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Dl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function ji(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bx extends Zt{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new Lx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wc=e=>(t,n)=>{e&&Q.update(()=>e(t,n))};class Ax extends Zt{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new Vp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Wc(t),onStart:Wc(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Q.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=gt(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 Dx(){const e=S.useContext(zs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=S.useId();return S.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=Hc(e,t.target.x),r=Hc(e,t.target.y);return`${n}% ${r}%`}},Vx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qt.parse(e);if(i.length>5)return r;const s=Qt.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=ee(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class _x extends Rf.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;$y(Ox),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Q.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Up(e){const[t,n]=Dx(),r=S.useContext(za);return Rf.createElement(_x,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Oh),isPresent:t,safeToRemove:n})}const Ox={borderRadius:{...hr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hr,borderTopRightRadius:hr,borderBottomLeftRadius:hr,borderBottomRightRadius:hr,boxShadow:Vx},$p=["TopLeft","TopRight","BottomLeft","BottomRight"],Ix=$p.length,Kc=e=>typeof e=="string"?parseFloat(e):e,Qc=e=>typeof e=="number"||I.test(e);function Fx(e,t,n,r,i,s){i?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,zx(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,Bx(r))):s&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Ix;o++){const l=`border${$p[o]}Radius`;let a=Gc(t,l),u=Gc(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Qc(a)===Qc(u)?(e[l]=Math.max(ee(Kc(a),Kc(u),r),0),(ut.test(u)||ut.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function Gc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zx=Wp(0,.5,dp),Bx=Wp(.5,.95,se);function Wp(e,t,n){return r=>r<e?0:r>t?1:n(qr(e,t,r))}function Yc(e,t){e.min=t.min,e.max=t.max}function Ue(e,t){Yc(e.x,t.x),Yc(e.y,t.y)}function Xc(e,t,n,r,i){return e-=t,e=Ss(e,1/n,r),i!==void 0&&(e=Ss(e,1/i,r)),e}function Ux(e,t=0,n=1,r=.5,i,s=e,o=e){if(ut.test(t)&&(t=parseFloat(t),t=ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ee(s.min,s.max,r);e===s&&(l-=t),e.min=Xc(e.min,t,n,l,i),e.max=Xc(e.max,t,n,l,i)}function Zc(e,t,[n,r,i],s,o){Ux(e,t[n],t[r],t[i],t.scale,s,o)}const $x=["x","scaleX","originX"],Wx=["y","scaleY","originY"];function qc(e,t,n,r){Zc(e.x,t,$x,n?n.x:void 0,r?r.x:void 0),Zc(e.y,t,Wx,n?n.y:void 0,r?r.y:void 0)}function Jc(e){return e.translate===0&&e.scale===1}function Hp(e){return Jc(e.x)&&Jc(e.y)}function Hx(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 Kp(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 ef(e){return Fe(e.x)/Fe(e.y)}class Kx{constructor(){this.members=[]}add(t){tu(this.members,t),t.scheduleRender()}remove(t){if(nu(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;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:i}=t.options;i===!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 tf(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:f}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}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 Qx=(e,t)=>e.depth-t.depth;class Gx{constructor(){this.children=[],this.isDirty=!1}add(t){tu(this.children,t),this.isDirty=!0}remove(t){nu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qx),this.isDirty=!1,this.children.forEach(t)}}function Yx(e,t){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(St(r),e(s-t))};return Q.read(r,!0),()=>St(r)}function Xx(e){window.MotionDebug&&window.MotionDebug.record(e)}function Zx(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qx(e,t,n){const r=De(e)?e:Jn(e);return r.start(eu("",r,t,n)),r.animation}const nf=["","X","Y","Z"],Jx={visibility:"hidden"},rf=1e3;let e1=0;const nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Qp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=e1++,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,nn.totalNodes=nn.resolvedTargetDeltas=nn.recalculatedProjection=0,this.nodes.forEach(r1),this.nodes.forEach(a1),this.nodes.forEach(u1),this.nodes.forEach(i1),Xx(nn)},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 Gx)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ru),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=Zx(o),this.instance=o;const{layoutId:a,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Yx(d,250),Wi.hasAnimatedSinceResize&&(Wi.hasAnimatedSinceResize=!1,this.nodes.forEach(of))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&f&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||p1,{onLayoutAnimationStart:T,onLayoutAnimationComplete:y}=f.getProps(),h=!this.targetLayout||!Kp(this.targetLayout,v)||g,m=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,m);const w={...Ja(x,"layout"),onPlay:T,onComplete:y};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||of(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,St(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(c1),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 f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.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(sf);return}this.isUpdating||this.nodes.forEach(o1),this.isUpdating=!1,this.nodes.forEach(l1),this.nodes.forEach(t1),this.nodes.forEach(n1),this.clearAllSnapshots();const l=performance.now();ke.delta=Kt(0,1e3/60,l-ke.timestamp),ke.timestamp=l,ke.isProcessing=!0,ko.update.process(ke),ko.preRender.process(ke),ko.render.process(ke),ke.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(s1),this.sharedNodes.forEach(f1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.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=oe(),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(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Hp(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;o&&(l||tn(this.latestValues)||f)&&(i(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)),m1(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return oe();const l=o.measureViewportBox(),{scroll:a}=this.root;return a&&(Lt(l.x,a.offset.x),Lt(l.y,a.offset.y)),l}removeElementScroll(o){const l=oe();Ue(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){Ue(l,o);const{scroll:d}=this.root;d&&(Lt(l.x,-d.offset.x),Lt(l.y,-d.offset.y))}Lt(l.x,f.offset.x),Lt(l.y,f.offset.y)}}return l}applyTransform(o,l=!1){const a=oe();Ue(a,o);for(let u=0;u<this.path.length;u++){const f=this.path[u];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Fn(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),tn(f.latestValues)&&Fn(a,f.latestValues)}return tn(this.latestValues)&&Fn(a,this.latestValues),a}removeTransform(o){const l=oe();Ue(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!tn(u.latestValues))continue;Vl(u.latestValues)&&u.updateSnapshot();const f=oe(),c=u.measurePageBox();Ue(f,c),qc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return tn(this.latestValues)&&qc(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!==ke.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:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ke.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oe(),this.relativeTargetOrigin=oe(),br(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=oe(),this.targetWithTransforms=oe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gx(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ue(this.target,this.layout.layoutBox),Fp(this.target,this.targetDelta)):Ue(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=oe(),this.relativeTargetOrigin=oe(),br(this.relativeTargetOrigin,this.target,g.target),Ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Vl(this.parent.latestValues)||Ip(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===ke.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;Ue(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,g=this.treeScale.y;Tx(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=In(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=In(),this.projectionDeltaWithTransform=In());const x=this.projectionTransform;Mr(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=tf(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==d||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),nn.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:{},f={...this.latestValues},c=In();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=oe(),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,h=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(h1));this.animationProgress=0;let m;this.mixTargetDelta=w=>{const C=w/1e3;lf(c.x,o.x,C),lf(c.y,o.y,C),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d1(this.relativeTarget,this.relativeTargetOrigin,d,C),m&&Hx(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=oe()),Ue(m,this.relativeTarget)),x&&(this.animationValues=f,Fx(f,u,this.latestValues,C,h,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&&(St(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{Wi.hasAnimatedSinceResize=!0,this.currentAnimation=qx(0,rf,{...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(rf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:f}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&Gp(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||oe();const c=Fe(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+c;const d=Fe(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+d}Ue(l,a),Fn(l,f),Mr(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Kx),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 f=0;f<nf.length;f++){const c="rotate"+nf[f];a[c]&&(u[c]=a[c],o.setStaticValue(c,0))}o.render();for(const f in u)o.setStaticValue(f,u[f]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jx;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=$i(o==null?void 0:o.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=$i(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!tn(this.latestValues)&&(x.transform=f?f({},""):"none",this.hasProjected=!1),x}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=tf(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,c.animationValues?u.opacity=c===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in ms){if(d[x]===void 0)continue;const{correct:T,applyTo:y}=ms[x],h=u.transform==="none"?d[x]:T(d[x],c);if(y){const m=y.length;for(let w=0;w<m;w++)u[y[w]]=h}else u[x]=h}return this.options.layoutId&&(u.pointerEvents=c===this?$i(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(sf),this.root.sharedNodes.clear()}}}function t1(e){e.updateLayout()}function n1(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:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?$e(c=>{const d=o?n.measuredBox[c]:n.layoutBox[c],g=Fe(d);d.min=r[c].min,d.max=d.min+g}):Gp(s,n.layoutBox,r)&&$e(c=>{const d=o?n.measuredBox[c]:n.layoutBox[c],g=Fe(r[c]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+g)});const l=In();Mr(l,r,n.layoutBox);const a=In();o?Mr(a,e.applyTransform(i,!0),n.measuredBox):Mr(a,r,n.layoutBox);const u=!Hp(l);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:g}=c;if(d&&g){const v=oe();br(v,n.layoutBox,d.layoutBox);const x=oe();br(x,r,g.layoutBox),Kp(v,x)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function r1(e){nn.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 i1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s1(e){e.clearSnapshot()}function sf(e){e.clearMeasurements()}function o1(e){e.isLayoutDirty=!1}function l1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function of(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a1(e){e.resolveTargetDelta()}function u1(e){e.calcProjection()}function c1(e){e.resetRotation()}function f1(e){e.removeLeadSnapshot()}function lf(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function af(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function d1(e,t,n,r){af(e.x,t.x,n.x,r),af(e.y,t.y,n.y,r)}function h1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p1={duration:.45,ease:[.4,0,.1,1]},uf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),cf=uf("applewebkit/")&&!uf("chrome/")?Math.round:se;function ff(e){e.min=cf(e.min),e.max=cf(e.max)}function m1(e){ff(e.x),ff(e.y)}function Gp(e,t,n){return e==="position"||e==="preserve-aspect"&&!Al(ef(t),ef(n),.2)}const g1=Qp({attachResizeListener:(e,t)=>pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bo={current:void 0},Yp=Qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bo.current){const e=new g1({});e.mount(window),e.setOptions({layoutScroll:!0}),bo.current=e}return bo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),y1={pan:{Feature:Ax},drag:{Feature:bx,ProjectionNode:Yp,MeasureLayout:Up}},v1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function x1(e){const t=v1.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ol(e,t,n=1){const[r,i]=x1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Mp(o)?parseFloat(o):o}else return El(i)?Ol(i,t,n+1):i}function w1(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const s=i.get();if(!El(s))return;const o=Ol(s,r);o&&i.set(o)});for(const i in t){const s=t[i];if(!El(s))continue;const o=Ol(s,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const k1=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Xp=e=>k1.has(e),S1=e=>Object.keys(e).some(Xp),df=e=>e===wn||e===I,hf=(e,t)=>parseFloat(e.split(", ")[t]),pf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return hf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?hf(s[1],e):0}},C1=new Set(["x","y","z"]),P1=ii.filter(e=>!C1.has(e));function T1(e){const t=[];return P1.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 er={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:pf(4,13),y:pf(5,14)};er.translateX=er.x;er.translateY=er.y;const E1=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,s=getComputedStyle(i),{display:o}=s,l={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=er[u](r,s)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(l[u]),e[u]=er[u](a,s)}),e},N1=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Xp);let s=[],o=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let f=n[a],c=dr(f);const d=t[a];let g;if(ys(d)){const v=d.length,x=d[0]===null?1:0;f=d[x],c=dr(f);for(let T=x;T<v&&d[T]!==null;T++)g?Ga(dr(d[T])===g):g=dr(d[T])}else g=dr(d);if(c!==g)if(df(c)&&df(g)){const v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof d=="string"?t[a]=parseFloat(d):Array.isArray(d)&&g===I&&(t[a]=d.map(parseFloat))}else c!=null&&c.transform&&(g!=null&&g.transform)&&(f===0||d===0)?f===0?u.set(g.transform(f)):t[a]=c.transform(d):(o||(s=T1(e),o=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(d))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=E1(t,e,l);return s.length&&s.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),Bs&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function j1(e,t,n,r){return S1(t)?N1(e,t,n,r):{target:t,transitionEnd:r}}const R1=(e,t,n,r)=>{const i=w1(e,t,r);return t=i.target,r=i.transitionEnd,j1(e,t,n,r)},Il={current:null},Zp={current:!1};function L1(){if(Zp.current=!0,!!Bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Il.current=e.matches;e.addListener(t),t()}else Il.current=!1}function M1(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(De(s))e.addValue(i,s),ks(r)&&r.add(i);else if(De(o))e.addValue(i,Jn(s,{owner:e})),ks(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(s)}else{const l=e.getStaticValue(i);e.addValue(i,Jn(l!==void 0?l:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const mf=new WeakMap,qp=Object.keys(Zr),b1=qp.length,gf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A1=Fa.length;class D1{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},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=()=>Q.render(this.render,!1,!0);const{latestValues:l,renderState:a}=s;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=i,this.options=o,this.isControllingVariants=$s(n),this.isVariantNode=_h(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];l[c]!==void 0&&De(d)&&(d.set(l[c],!1),ks(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,mf.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)),Zp.current||L1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Il.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mf.delete(this.current),this.projection&&this.projection.unmount(),St(this.notifyUpdate),St(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=xn.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Q.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,l;for(let a=0;a<b1;a++){const u=qp[a],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:g}=Zr[u];d&&(o=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(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:f,dragConstraints:c,layoutScroll:d,layoutRoot:g}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!f||c&&_n(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:d,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):oe()}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<gf.length;r++){const i=gf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=M1(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<A1;r++){const i=Fa[r],s=this.props[i];(Xr(s)||s===!1)&&(n[i]=s)}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=Jn(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,i=typeof r=="string"||typeof r=="object"?(n=Qa(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!De(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ru),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Jp extends D1{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:i},s){let o=Zv(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){Yv(this,r,o);const l=R1(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function V1(e){return window.getComputedStyle(e)}class _1 extends Jp{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(xn.has(n)){const r=qa(n);return r&&r.default||0}else{const r=V1(t),i=(zh(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zp(t,n)}build(t,n,r,i){Ua(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ka(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;De(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Kh(t,n,r,i)}}class O1 extends Jp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xn.has(n)){const r=qa(n);return r&&r.default||0}return n=Qh.has(n)?n:Oa(n),t.getAttribute(n)}measureInstanceViewportBox(){return oe()}scrapeMotionValuesFromProps(t,n){return Yh(t,n)}build(t,n,r,i){Wa(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Gh(t,n,r,i)}mount(t){this.isSVGTag=Ha(t.tagName),super.mount(t)}}const I1=(e,t)=>Ba(e)?new O1(t,{enableHardwareAcceleration:!1}):new _1(t,{enableHardwareAcceleration:!0}),F1={layout:{ProjectionNode:Yp,MeasureLayout:Up}},z1={...dx,...b0,...y1,...F1},B1=By((e,t)=>x0(e,t,z1,I1));function em(){const e=S.useRef(!1);return _a(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function U1(){const e=em(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>Q.postRender(r),[r]),t]}class $1 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 W1({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),i=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:a}=i.current;if(t||!r.current||!s||!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: ${s}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($1,{isPresent:t,childRef:r,sizeRef:i},S.cloneElement(e,{ref:r}))}const Ao=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Xh(H1),a=S.useId(),u=S.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:f=>{l.set(f,!0);for(const c of l.values())if(!c)return;r&&r()},register:f=>(l.set(f,!1),()=>l.delete(f))}),s?void 0:[n]);return S.useMemo(()=>{l.forEach((f,c)=>l.set(c,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=S.createElement(W1,{isPresent:n},e)),S.createElement(zs.Provider,{value:u},e)};function H1(){return new Map}function K1(e){return S.useEffect(()=>()=>e(),[])}const rn=e=>e.key||"";function Q1(e,t){e.forEach(n=>{const r=rn(n);t.set(r,n)})}function G1(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Y1=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const l=S.useContext(za).forceRender||U1()[0],a=em(),u=G1(e);let f=u;const c=S.useRef(new Map).current,d=S.useRef(f),g=S.useRef(new Map).current,v=S.useRef(!0);if(_a(()=>{v.current=!1,Q1(u,g),d.current=f}),K1(()=>{v.current=!0,g.clear(),c.clear()}),v.current)return S.createElement(S.Fragment,null,f.map(h=>S.createElement(Ao,{key:rn(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o},h)));f=[...f];const x=d.current.map(rn),T=u.map(rn),y=x.length;for(let h=0;h<y;h++){const m=x[h];T.indexOf(m)===-1&&!c.has(m)&&c.set(m,void 0)}return o==="wait"&&c.size&&(f=[]),c.forEach((h,m)=>{if(T.indexOf(m)!==-1)return;const w=g.get(m);if(!w)return;const C=x.indexOf(m);let j=h;if(!j){const R=()=>{c.delete(m);const E=Array.from(g.keys()).filter(M=>!T.includes(M));if(E.forEach(M=>g.delete(M)),d.current=u.filter(M=>{const V=rn(M);return V===m||E.includes(V)}),!c.size){if(a.current===!1)return;l(),r&&r()}};j=S.createElement(Ao,{key:rn(w),isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:s,mode:o},w),c.set(m,j)}f.splice(C,0,j)}),f=f.map(h=>{const m=h.key;return c.has(m)?h:S.createElement(Ao,{key:rn(h),isPresent:!0,presenceAffectsLayout:s,mode:o},h)}),S.createElement(S.Fragment,null,c.size?f:f.map(h=>S.cloneElement(h)))};/**
|
|
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 X1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tm=(...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 Z1={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 q1=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},a)=>S.createElement("svg",{ref:a,...Z1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:tm("lucide",i),...l},[...o.map(([u,f])=>S.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
|
|
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 de=(e,t)=>{const n=S.forwardRef(({className:r,...i},s)=>S.createElement(q1,{ref:s,iconNode:t,className:tm(`lucide-${X1(e)}`,r),...i}));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 Qs=de("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 J1=de("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 nm=de("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 ew=de("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
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 Fl=de("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
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 tw=de("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"}]]);/**
|
|
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 nw=de("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
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 rw=de("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"}]]);/**
|
|
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 iw=de("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"}]]);/**
|
|
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 sw=de("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 ow=de("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 lw=de("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
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 aw=de("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"}]]);/**
|
|
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 yf=de("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 uw=de("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"}]]);/**
|
|
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 cw=de("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"}]]);/**
|
|
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 zl=de("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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 fw=de("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function rm({text:e,label:t="Copy",disabled:n=!1}){const[r,i]=S.useState(!1),s=o=>{if(o.stopPropagation(),n)return;const l=typeof e=="string"?e:JSON.stringify(e,null,2);navigator.clipboard.writeText(l),i(!0),setTimeout(()=>i(!1),2e3)};return p.jsx("button",{onClick:s,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?p.jsx(nm,{className:"w-4 h-4"}):p.jsx(rw,{className:"w-4 h-4"})})}const dw=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ri=(e,t)=>{const n=String(e??""),r=(t||"").trim();if(!r)return n;const i=new RegExp(dw(r),"gi"),s=n.match(i);if(!s)return n;const o=n.split(i),l=[];return o.forEach((a,u)=>{l.push(a),u<s.length&&l.push(p.jsx("mark",{className:"rounded bg-black/10 dark:bg-white/20 px-1",children:s[u]},`mark-${u}`))}),l};function Li({className:e=""}){return p.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:p.jsx(Qs,{className:"w-7 h-7"})})}function vf({children:e}){return p.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 Bl({children:e}){return p.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 pr({as:e="div",className:t="",children:n}){return p.jsx(e,{className:`border-t border-black/10 dark:border-white/10 p-6 ${t}`,children:n})}function hw({open:e,onToggle:t}){return p.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 pw=e=>e==null?p.jsx("span",{className:"italic",children:"—"}):typeof e=="string"?e.length>140||e.includes(`
|
|
159
|
-
`)?p.jsx(Bl,{children:e}):p.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:e}):typeof e=="object"?p.jsx("pre",{className:"raw-json-block raw-json-block--full",children:im(e)}):p.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(e)});function im(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 i=0,s;for(;(s=n.exec(t))!==null;){const{index:o}=s;o>i&&r.push(t.slice(i,o));const l=s[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(p.jsx("span",{className:a,children:l},`json-${o}`)),i=o+l.length}return i<t.length&&r.push(t.slice(i)),r}function mw({item:e}){if(!e)return null;const t=new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),[n,r]=S.useState(""),[i,s]=S.useState(!1),[o,l]=S.useState(!1),u=(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED")&&!!e.fullAuto,f=e.type||"text",c=e.options||[],d=e.autoSelectDelay??20,g=u&&f==="choice"&&c.length>0,[v,x]=S.useState(0),T=(()=>{if(!g)return null;const k=new Date(e.timestamp).getTime(),A=Math.floor((Date.now()-k)/1e3);return d-A})();S.useEffect(()=>{if(!g)return;const k=setInterval(()=>{x(A=>A+1)},1e3);return()=>clearInterval(k)},[g,e.timestamp]);const y=k=>k.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\b\w/g,P=>P.toUpperCase()),h=k=>{try{return JSON.parse(k)}catch{return null}},m=k=>{const A=k.trim(),P=h(A);if(P!==null)return P;const b=/```(?:json)?\s*([\s\S]*?)\s*```/gi;let D=b.exec(A);for(;D;){const L=D[1].trim(),F=h(L);if(F!==null)return F;D=b.exec(A)}return null},w=k=>{const A=String(k??"").trim();return A?Math.max(1,Math.round(A.length/4)):0},C=k=>k?k>=1e6?`${(k/1e6).toFixed(1).replace(/\.0$/,"")}M tokens`:k>=1e4?`${Math.round(k/1e3)}k tokens`:k>=1e3?`${(k/1e3).toFixed(1).replace(/\.0$/,"")}k tokens`:`${k} tokens`:"0 tokens",j=k=>{if(typeof k!="string"||!k.trim())return{cleanedPrompt:"",contextTitle:null,contextData:null,contextRaw:""};const P=/(^|\n)(?:#+\s*)?(Current\s+)?Context\s*\n+```json\s*([\s\S]*?)\s*```/i.exec(k);if(!P)return{cleanedPrompt:k,contextTitle:null,contextData:null,contextRaw:""};const b=P[2]?"Current Context":"Context",D=(P[3]||"").trim(),L=h(D),F=k.slice(0,P.index),he=k.slice(P.index+P[0].length);return{cleanedPrompt:`${F}
|
|
160
|
-
|
|
161
|
-
${he}`.replace(/\n{3,}/g,`
|
|
162
|
-
|
|
163
|
-
`).trim(),contextTitle:b,contextData:L??D,contextRaw:D}},R=k=>{if(typeof k!="string"||!k.trim())return[];const A=k.split(/\r?\n/),P=[];let b=null,D=!1;const L=()=>{if(!b)return;const F=b.content.join(`
|
|
164
|
-
`).replace(/\n{3,}/g,`
|
|
165
|
-
|
|
166
|
-
`).trim();if(!F){b=null;return}P.push({title:b.title||"Prompt",content:F}),b=null};return A.forEach(F=>{const he=F.trim();if(/^```/.test(he)&&(D=!D),!he){b&&b.content.push("");return}if(!D&&/^---+$/.test(he)){L();return}const pe=D?null:/^(#{1,6})\s+(.+)$/.exec(he);if(pe){L(),b={title:pe[2].trim(),content:[]};return}b||(b={title:"Prompt",content:[]}),b.content.push(F)}),L(),P},E=(k,A)=>k?k.includes("```")?p.jsx(pr,{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:Ri(k,A)}):p.jsx(pr,{className:"text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:Ri(k,A)}):p.jsx(pr,{className:"italic text-black/40 dark:text-white/40",children:"—"}),M=k=>{if(k==null)return p.jsx("span",{className:"italic",children:"—"});if(typeof k=="boolean"){const A="inline-flex items-center rounded-full px-3 py-1 text-[11px] font-semibold tracking-[0.16em] uppercase border";return k?p.jsx("span",{className:`${A} bg-black text-white border-black dark:bg-white dark:text-black dark:border-white`,children:"Yes"}):p.jsx("span",{className:`${A} bg-white text-black border-black dark:bg-black dark:text-white dark:border-white`,children:"No"})}if(typeof k=="string"){const A=m(k);return A!==null?H(A):k.length>140||k.includes(`
|
|
167
|
-
`)?p.jsx(Bl,{children:k}):p.jsx("span",{className:"text-lg sm:text-xl font-semibold whitespace-pre-wrap break-words",children:k})}return typeof k=="object"?p.jsx(vf,{children:JSON.stringify(k,null,2)}):p.jsx("span",{className:"text-lg sm:text-xl font-semibold break-words",children:String(k)})},V=6;function $(k,A){if(!k.length)return p.jsx("span",{className:"italic",children:"—"});const P=k.every(L=>L===null||["string","number","boolean"].includes(typeof L)),D=k.every(L=>L&&typeof L=="object"&&!Array.isArray(L))&&k.every(L=>Object.values(L).every(F=>F===null||["string","number","boolean"].includes(typeof F)));return P?p.jsx("div",{className:"space-y-3",children:k.map((L,F)=>p.jsx("div",{className:"text-base sm:text-lg",children:M(L)},`item-${F}`))}):D?p.jsx("div",{className:"space-y-4",children:k.map((L,F)=>p.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:O(Object.entries(L),A)},`item-${F}`))}):p.jsx("div",{className:"space-y-6",children:k.map((L,F)=>p.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:[p.jsxs("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:["Item ",F+1]}),H(L,A+1)]},`item-${F}`))})}function q(k,A){const P=Object.entries(k);return P.length?A>=V?M(k):O(P,A):p.jsx("span",{className:"italic",children:"—"})}function H(k,A=0){return k==null||typeof k=="string"||typeof k=="number"||typeof k=="boolean"?M(k):Array.isArray(k)?$(k,A):typeof k=="object"?q(k,A):M(k)}function O(k,A=0){return p.jsx("div",{className:"space-y-6",children:k.map(([P,b])=>p.jsxs("div",{className:"grid gap-2 sm:grid-cols-[160px_1fr] sm:items-start min-w-0",children:[p.jsx("div",{className:"text-xs font-semibold text-black/50 dark:text-white/50 break-words",children:y(P)}),p.jsx("div",{className:"text-base sm:text-lg leading-relaxed break-words min-w-0",children:H(b,A+1)})]},P))})}let z=null;if(e.event==="AGENT_STARTED"){const{cleanedPrompt:k,contextTitle:A,contextData:P,contextRaw:b}=j(e.prompt||""),D=R(k),L=n.trim(),F=L.toLowerCase(),he=L?D.filter(G=>`${G.title}
|
|
168
|
-
${G.content}`.toLowerCase().includes(F)):[],pe=D.length?`${D.length} sections`:null,Pt=w(b||""),ve=b?`~${C(Pt)}`:"";z=p.jsxs("div",{className:"space-y-10 py-6",children:[p.jsxs("div",{className:"space-y-3 text-center",children:[p.jsx(Li,{}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.28em] uppercase text-black/50 dark:text-white/50",children:"Agent started"}),p.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight",children:e.agent})]})]}),A&&P!==null&&p.jsxs("details",{className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[p.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Fl,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),A==="Current Context"?p.jsx(J1,{className:"w-4 h-4","aria-hidden":"true"}):null,p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60",children:A})]}),ve?p.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:ve}):null]}),typeof P=="string"?p.jsx(pr,{className:"text-base sm:text-lg leading-relaxed whitespace-pre-wrap break-words text-black/80 dark:text-white/80",children:P}):p.jsx(pr,{children:H(P)})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Prompt"}),pe?p.jsx("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:pe}):null]}),p.jsx("div",{className:"space-y-4",children:D.length>0?D.map((G,kn)=>{const Tt=/(^| )instructions$/i.test(G.title.trim()),Sn=kn===0||Tt,rt=G.content?G.content.split(/\r?\n/).length:0;return p.jsxs("details",{open:Sn,className:"group rounded-[24px] border border-black/10 dark:border-white/10 bg-black/[0.02] dark:bg-white/[0.04]",children:[p.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[p.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[p.jsx(Fl,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/60 dark:text-white/60 break-words",children:G.title||"Prompt"})]}),rt?p.jsxs("div",{className:"text-xs font-mono text-black/40 dark:text-white/40",children:[rt," lines"]}):null]}),E(G.content,"")]},`${G.title}-${kn}`)}):p.jsx(Bl,{children:k})})]}),o?p.jsx("div",{className:"fixed inset-0 z-40 bg-white text-black dark:bg-black dark:text-white",children:p.jsx("div",{className:"h-full w-full overflow-y-auto custom-scroll px-6 sm:px-10 py-10",children:p.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[p.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:"Prompt search"}),p.jsx("button",{type:"button",onClick:()=>l(!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"})]}),p.jsxs("div",{className:"relative",children:[p.jsx(yf,{className:"w-4 h-4 text-black/50 dark:text-white/60 absolute left-4 top-1/2 -translate-y-1/2"}),p.jsx("input",{value:n,onChange:G=>r(G.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}),L?p.jsx("button",{type:"button",onClick:()=>r(""),"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:p.jsx(fw,{className:"w-3.5 h-3.5"})}):null]}),L?he.length>0?p.jsx("div",{className:"space-y-4",children:he.map((G,kn)=>{const Tt=G.content?G.content.split(/\r?\n/).length:0;return p.jsxs("div",{className:"rounded-[22px] border border-black/10 dark:border-white/15 bg-black/[0.02] dark:bg-white/5 overflow-hidden",children:[p.jsxs("div",{className:"px-5 py-4 flex items-center justify-between gap-4",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/70 dark:text-white/70 break-words",children:Ri(G.title||"Prompt",L)}),Tt?p.jsxs("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:[Tt," lines"]}):null]}),p.jsx("div",{className:"border-t border-black/10 dark:border-white/10 p-5",children:p.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:Ri(G.content||"",L)})})]},`${G.title}-${kn}`)})}):p.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 "',L,'".']}):p.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 k=e.event.replace("WORKFLOW_","");z=p.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-16",children:[p.jsx("div",{className:"text-[10px] font-semibold tracking-[0.4em] uppercase text-black/50 dark:text-white/50",children:"Lifecycle status"}),p.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:[p.jsx("h2",{className:"text-4xl sm:text-6xl md:text-7xl font-black tracking-tighter leading-none uppercase",children:k}),e.error&&p.jsx("div",{className:"mt-6",children:p.jsx(vf,{children:e.error})})]})]})}else if(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED"){const A=e.event==="INTERACTION_REQUESTED"?"Interaction needed":"Question asked",P=e.question||e.prompt||"Prompt",b=e.agent||e.slug||"Agent";z=p.jsxs("div",{className:"py-10 sm:py-14 space-y-8",children:[p.jsxs("div",{className:"text-center space-y-4",children:[p.jsx(Li,{className:"w-12 h-12"}),p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.32em] uppercase text-black/50 dark:text-white/50",children:A}),p.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[b," needs your input"]})]}),p.jsx("div",{className:"text-3xl sm:text-4xl md:text-5xl font-black tracking-tight leading-tight text-center text-balance",children:P}),g&&T!==null&&p.jsx("div",{className:"text-center",children:p.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${T>0?"bg-black/5 dark:bg-white/10":"bg-black text-white dark:bg-white dark:text-black"}`,children:[p.jsx("span",{className:"text-xl",children:"⚡"}),p.jsx("span",{className:`text-sm font-semibold ${T>0?"text-black/70 dark:text-white/70":""}`,children:T>0?`Agent deciding in ${T}s...`:"Auto-selected"})]})}),f==="choice"&&c.length>0&&p.jsxs("div",{className:"space-y-3 max-w-2xl mx-auto",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50 text-center",children:"Options"}),p.jsx("div",{className:"space-y-2",children:c.map((D,L)=>p.jsxs("div",{className:`p-4 rounded-2xl border transition-all ${L===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:[p.jsx("div",{className:"flex items-center gap-3",children:p.jsxs("div",{className:`font-bold ${L===0?"":"text-black dark:text-white"}`,children:[D.label||D.key,L===0&&p.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"})]})}),D.description&&p.jsx("div",{className:`text-sm mt-1 ${L===0?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50"}`,children:D.description})]},D.key||L))}),e.allowCustom&&p.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 k=e.autoSelected||"Unknown",A=e.agent||e.slug||"Agent";z=p.jsxs("div",{className:"space-y-8 py-6",children:[p.jsxs("div",{className:"space-y-4 text-center",children:[p.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:p.jsx("span",{className:"text-2xl",children:"⚡"})}),p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Auto-selected"}),p.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[A," decided automatically"]})]}),p.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:p.jsx("div",{className:"text-2xl sm:text-3xl font-black tracking-tight",children:k})})]})}else if(e.event==="INTERACTION_RESOLVED"){const k=e.source==="remote"?"Remote response received.":"Response captured.",A=e.source==="remote"?"Received from remote":e.source?`Received from ${e.source}`:"Received",P=e.agent||e.slug||"Agent";z=p.jsxs("div",{className:"space-y-8 py-6",children:[p.jsxs("div",{className:"space-y-4 text-center",children:[p.jsx(Li,{className:"w-12 h-12"}),p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Interaction resolved"}),p.jsxs("div",{className:"text-lg sm:text-xl font-semibold text-black/70 dark:text-white/70",children:[P," received your response"]})]}),p.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:[p.jsx("div",{className:"text-xl sm:text-2xl font-semibold leading-relaxed text-balance",children:k}),p.jsx("div",{className:"mt-3 text-sm text-black/60 dark:text-white/60",children:A})]})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const k=e.answer!==void 0?e.answer:e.response;z=p.jsx("div",{className:"space-y-8 py-6",children:p.jsxs("div",{className:"space-y-3",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Response sent"}),pw(k)]})})}else if(e.event==="AGENT_COMPLETED")z=p.jsxs("div",{className:"space-y-10 py-6",children:[p.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:[p.jsx(Li,{className:"w-12 h-12"}),p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Agent completed"}),p.jsx("div",{className:"text-2xl sm:text-3xl font-black tracking-tight",children:e.agent||"Agent"}),typeof e.attempts=="number"?p.jsxs("div",{className:"text-sm text-black/60 dark:text-white/60",children:[e.attempts," ",e.attempts===1?"attempt":"attempts"]}):null]}),e.output!==void 0?p.jsxs("div",{className:"space-y-4",children:[p.jsx("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase text-black/50 dark:text-white/50",children:"Answer"}),p.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:H(e.output)})]}):null]});else{const k=Object.entries(e).filter(([A])=>A!=="event"&&A!=="timestamp");z=p.jsx("div",{className:"space-y-6 py-6",children:p.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:[p.jsx("div",{className:"text-lg sm:text-xl font-semibold leading-relaxed text-balance",children:e.event?e.event.replace(/_/g," "):"Event"}),p.jsx("div",{className:"mt-3 text-sm text-black/60 dark:text-white/60",children:k.length>0?"Open Raw for full details.":"Open Raw for more info."})]})})}return p.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:p.jsxs("div",{className:"content-width flex-1",children:[p.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:[p.jsx("div",{className:"flex items-center gap-3",children:e.event==="AGENT_STARTED"?p.jsx("button",{type:"button",onClick:()=>l(!0),className:"w-12 h-12 rounded-full bg-white text-black dark:bg-black dark:text-white border border-black/10 dark:border-white/10 flex items-center justify-center shadow-2xl shadow-black/20 dark:shadow-white/10 hover:scale-[1.02] transition-transform","aria-label":"Search prompt sections",children:p.jsx(yf,{className:"w-5 h-5"})}):null}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(hw,{open:i,onToggle:()=>s(k=>!k)}),p.jsx(rm,{text:e})]})]}),p.jsx("div",{className:"pt-6",children:p.jsx("div",{className:"text-xs font-mono text-black/50 dark:text-white/50",children:t})}),i?p.jsx("pre",{className:"raw-json-block",children:im(e)}):z]})})}const gw=e=>{const t="w-3.5 h-3.5 text-black/70 dark:text-white/70";if(!e)return p.jsx(zl,{className:`${t} opacity-40`});const n=e.toUpperCase();return n.includes("STARTED")||n.includes("START")?p.jsx(lw,{className:`${t} opacity-70`}):n.includes("SUBMITTED")||n.includes("ANSWERED")||n.includes("SUCCESS")||n.includes("RESOLVED")?p.jsx(nw,{className:`${t} opacity-80`}):n.includes("REQUESTED")||n.includes("REQUEST")?p.jsx(uw,{className:`${t} opacity-60`}):n.includes("ERROR")||n.includes("FAILED")?p.jsx(tw,{className:`${t} opacity-90`}):p.jsx(zl,{className:`${t} opacity-40`})},yw=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":p.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&p.jsx("span",{className:"text-black/60 dark:text-white/60 font-medium text-[10px] tracking-[0.24em] uppercase",children:n}),t&&p.jsx("span",{className:"opacity-70 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function vw({history:e,onJump:t}){return p.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:p.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 sm:px-8 lg:px-10 py-20",children:p.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?p.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[p.jsx(zl,{className:"w-12 h-12"}),p.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase",children:"No events yet"})]}):e.map((n,r)=>{var s;const i=new Date(n.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return p.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:[p.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:p.jsx("span",{className:"text-[10px] font-mono font-medium opacity-30 group-hover:opacity-60 transition-opacity",children:i})}),p.jsx("div",{className:"flex-shrink-0 pt-0.5",children:gw(n.event)}),p.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[p.jsx("div",{className:"text-[10px] font-semibold tracking-[0.28em] uppercase opacity-40 group-hover:opacity-70 transition-opacity",children:((s=n.event)==null?void 0:s.replace(/_/g," "))||"EVENT"}),p.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-black dark:group-hover:text-white transition-colors",children:yw(n)})]})]},r)})})})})}function xw({page:e,total:t,onNext:n,onPrev:r,onJump:i,hasNew:s,onJumpToLatest:o,className:l="",leftSlot:a=null}){const[u,f]=S.useState(e+1);S.useEffect(()=>f(e+1),[e]);const c=d=>{const{value:g}=d.target;f(g);const v=parseInt(g,10);!Number.isNaN(v)&&v>=1&&v<=t&&i(v-1)};return p.jsxs("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:[a?p.jsx("div",{className:"fixed bottom-6 left-2 sm:left-4 z-40",children:a}):null,p.jsxs("div",{className:"footer-control",children:[p.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:p.jsx(ew,{className:"w-5 h-5"})}),p.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[p.jsx("input",{type:"number",value:u,onChange:c,className:"jumper-input",min:"1",max:t}),p.jsx("span",{className:"opacity-20",children:"/"}),p.jsx("span",{children:t})]}),p.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:p.jsx(Fl,{className:"w-5 h-5"})}),s?p.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 ww({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:i,setViewMode:s,history:o}){return p.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:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.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"}),p.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"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(rm,{text:o||[],label:"Copy full history",disabled:!o||o.length===0}),p.jsx("button",{onClick:()=>s(i==="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":i==="present"?"Log view":"Present view","aria-label":i==="present"?"Switch to Log view":"Switch to Presentation view",children:i==="present"?p.jsx(iw,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):p.jsx(aw,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),p.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"?p.jsx(cw,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):p.jsx(ow,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function kw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,options:s=[],multiSelect:o,allowCustom:l,fullAuto:a,autoSelectDelay:u=20,timestamp:f}=e,[c,d]=S.useState(o?[]:null),[g,v]=S.useState(""),[x,T]=S.useState(!1),[y,h]=S.useState(0),m=S.useMemo(()=>s||[],[s]),w=r||i||"Choose an option.",C=S.useMemo(()=>{if(!a||!f)return null;const M=new Date(f).getTime(),V=Math.floor((Date.now()-M)/1e3);return u-V},[a,f,u,y]);S.useEffect(()=>{if(!a)return;const M=setInterval(()=>h(V=>V+1),1e3);return()=>clearInterval(M)},[a]);const j=M=>{o?(d(V=>V.includes(M)?V.filter($=>$!==M):[...V,M]),T(!1)):(d(M),T(!1))},R=()=>{if(x&&g.trim()){t({isCustom:!0,customText:g.trim(),raw:g.trim()});return}if(o&&c.length>0){t({selectedKeys:c,raw:c.join(", ")});return}c&&t({selectedKey:c,raw:String(c)})},E=x?!!g.trim():o?c.length>0:!!c;return p.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[p.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[p.jsxs("div",{className:"space-y-4 shrink-0",children:[p.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:p.jsx(Qs,{className:"w-8 h-8"})}),p.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),p.jsx("div",{className:"text-lg sm:text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap break-words",children:w}),a&&C!==null&&p.jsx("div",{className:"text-center",children:p.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:[p.jsx("span",{className:"text-xl",children:"⚡"}),p.jsx("span",{className:"text-sm font-bold",children:C>0?`Agent deciding in ${C}s...`:"Auto-selecting recommended option..."})]})}),p.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[m.map((M,V)=>{const $=o?c.includes(M.key):c===M.key,q=$?"text-white dark:text-black":"text-black dark:text-white",H=$?"text-white/70 dark:text-black/70":"text-black/50 dark:text-white/50";return p.jsx("button",{onClick:()=>j(M.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${$?"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:p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${$?"border-black bg-black text-white dark:border-white dark:bg-white dark:text-black":"border-black/30 dark:border-white/30"}`,children:$&&p.jsx(nm,{className:"w-4 h-4"})}),p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:`font-bold text-lg break-words flex flex-wrap items-center gap-2 ${q}`,children:[p.jsx("span",{className:"break-words",children:M.label||M.key}),V===0&&p.jsx("span",{className:`ml-2 text-xs font-medium px-2 py-0.5 rounded-full ${$?"bg-white/20 dark:bg-black/20":"bg-black/10 dark:bg-white/10"}`,children:"Recommended"})]}),M.description&&p.jsx("div",{className:`text-sm mt-1 break-words ${H}`,children:M.description})]})]})},M.key)}),l&&p.jsxs("button",{onClick:()=>{T(!0),d(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:[p.jsx("div",{className:`font-bold text-lg break-words ${x?"text-white dark:text-black":"text-black dark:text-white"}`,children:"Other"}),p.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&&p.jsx("textarea",{value:g,onChange:M=>v(M.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"})]})]}),p.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:p.jsx("button",{onClick:R,disabled:n||!E,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 Sw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,confirmLabel:s="Confirm",cancelLabel:o="Cancel",context:l}=e;return p.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[p.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:[p.jsxs("div",{className:"space-y-4",children:[p.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:p.jsx(Qs,{className:"w-8 h-8"})}),p.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),p.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||i||"Please confirm."}),(l==null?void 0:l.documentPath)&&p.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",p.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),p.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:[p.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}),p.jsx("button",{onClick:()=>t({confirmed:!0,raw:s}),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:s})]})]})}function Cw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,placeholder:s,validation:o}=e,[l,a]=S.useState(""),[u,f]=S.useState(null),c=S.useMemo(()=>o||{},[o]),d=v=>c.minLength&&v.length<c.minLength?`Minimum ${c.minLength} characters required`:c.maxLength&&v.length>c.maxLength?`Maximum ${c.maxLength} characters allowed`:c.pattern&&!new RegExp(c.pattern).test(v)?"Invalid format":null,g=()=>{const v=l.trim(),x=d(v);if(x){f(x);return}t({text:v,raw:v})};return p.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[p.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[p.jsxs("div",{className:"space-y-4 shrink-0",children:[p.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:p.jsx(Qs,{className:"w-8 h-8"})}),p.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),p.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[p.jsx("div",{className:"text-lg sm:text-xl font-medium text-fg/70 text-center whitespace-pre-wrap break-words",children:r||i||"Provide your response."}),p.jsx("textarea",{value:l,onChange:v=>{a(v.target.value),f(null)},disabled:n,placeholder:s||"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&&p.jsx("div",{className:"text-black dark:text-white text-center text-sm font-semibold",children:u})]})]}),p.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:p.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 Pw({interaction:e,onSubmit:t,disabled:n}){const r=(e==null?void 0:e.type)||"text",i=s=>{t(e.slug,e.targetKey,s)};switch(r){case"choice":return p.jsx(kw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"confirm":return p.jsx(Sw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"text":default:return p.jsx(Cw,{interaction:e,onSubmit:i,disabled:n},e.slug)}}function Tw({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 p.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:p.jsxs("div",{className:"content-width w-full flex flex-col items-center text-center gap-6",children:[p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute -inset-4 rounded-[36px] bg-black/10 dark:bg-white/10 blur-2xl opacity-60","aria-hidden":"true"}),p.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:p.jsx(sw,{className:"w-9 h-9 text-black dark:text-white animate-spin"})})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("div",{className:"text-4xl font-black tracking-tight",children:"Sending response"}),p.jsx("div",{className:"text-lg font-medium text-black/60 dark:text-white/60 max-w-xl break-words",children:t}),p.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase opacity-30",children:"Keep this tab open"})]})]})})}function Ew(){const[e,t]=S.useState([]),[n,r]=S.useState(0),[i,s]=S.useState("connecting"),[o,l]=S.useState("..."),[a,u]=S.useState("light"),[f,c]=S.useState("present"),[d,g]=S.useState(null),[v,x]=S.useState(!1),[T,y]=S.useState(null);S.useEffect(()=>{const O=localStorage.getItem("rf_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");u(O);const z=localStorage.getItem("rf_view")||"present";c(z)},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem("rf_theme",a)},[a]),S.useEffect(()=>{localStorage.setItem("rf_view",f)},[f]);const h=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,m=h?`/api/history/${h}`:"/api/history",w=h?`/api/events/${h}`:"/api/events",C=h?`/api/submit/${h}`:"/api/submit",j=async()=>{try{const z=await(await fetch(m)).json();if(z.entries){const k=[...z.entries].reverse();t(P=>(P.length===0&&k.length>0&&r(k.length-1),k));const A=k[k.length-1];A&&(A.event==="INTERACTION_REQUESTED"||A.event==="PROMPT_REQUESTED")?g(A):g(null)}z.workflowName&&l(z.workflowName),s("connected")}catch{s("disconnected")}},R=S.useRef(0);S.useEffect(()=>{e.length>R.current&&(R.current===0&&e.length>0?(r(e.length-1),x(!1)):n<e.length-1&&x(!0)),R.current=e.length},[e.length,n]),S.useEffect(()=>{if(!T||e.length===0)return;const O=e[e.length-1];if(e.length!==T.historyLength||O!=null&&O.timestamp&&O.timestamp!==T.lastEventTimestamp){if((O==null?void 0:O.event)==="INTERACTION_SUBMITTED"){y(k=>k&&{...k,historyLength:e.length,lastEventTimestamp:(O==null?void 0:O.timestamp)||k.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 O=setInterval(j,3e3),z=new EventSource(w);return z.onmessage=k=>{k.data==="update"&&j()},()=>{clearInterval(O),z.close()}},[]);const E=()=>r(O=>Math.min(e.length-1,O+1)),M=()=>r(O=>Math.max(0,O-1));S.useEffect(()=>{const O=z=>{(z.target.tagName==="TEXTAREA"||z.target.tagName==="INPUT"&&z.target.type==="number")&&z.target.className!=="jumper-input"||(z.key==="ArrowRight"&&E(),z.key==="ArrowLeft"&&M())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[e.length]);const V=e[n],$=V&&(V.event==="INTERACTION_REQUESTED"||V.event==="PROMPT_REQUESTED"),q=d&&$&&V.slug===d.slug,H=!!T;return p.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[p.jsx(ww,{workflowName:o,status:i,theme:a,toggleTheme:()=>u(O=>O==="dark"?"light":"dark"),viewMode:f,setViewMode:c,history:e}),p.jsx("main",{className:"main-stage overflow-hidden",children:f==="log"?p.jsx(vw,{history:e,onJump:O=>{r(O),c("present")}}):p.jsx(Y1,{mode:"wait",children:p.jsx(B1.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:H?p.jsx(Tw,{submission:T}):q?p.jsx("div",{className:"content-width h-full",children:p.jsx(Pw,{interaction:d,onSubmit:async(O,z,k)=>{const A=e[e.length-1];y({slug:O,targetKey:z,historyLength:e.length,lastEventTimestamp:(A==null?void 0:A.timestamp)||null});try{const P=await fetch(C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:O,targetKey:z,response:k})});if(!P.ok)throw new Error(`Submit failed with ${P.status}`)}catch{y(null)}finally{setTimeout(j,1e3)}},disabled:i==="disconnected"||H})}):p.jsx(mw,{item:V})},n)})}),p.jsx(xw,{page:n,total:e.length,onNext:E,onPrev:M,onJump:r,hasNew:v,onJumpToLatest:()=>r(e.length-1),className:f==="log"?"opacity-0 pointer-events-none":"opacity-100"})]})}const Nw=bh(document.getElementById("root"));Nw.render(p.jsx(Ew,{}));
|