agent-state-machine 2.1.6 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,139 +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 o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var df={exports:{}},xo={},hf={exports:{}},I={};/**
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 Xr=Symbol.for("react.element"),qp=Symbol.for("react.portal"),Jp=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),im=Symbol.for("react.forward_ref"),om=Symbol.for("react.suspense"),sm=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),Ja=Symbol.iterator;function am(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mf=Object.assign,gf={};function qn(e,t,n){this.props=e,this.context=t,this.refs=gf,this.updater=n||pf}qn.prototype.isReactComponent={};qn.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")};qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yf(){}yf.prototype=qn.prototype;function Ol(e,t,n){this.props=e,this.context=t,this.refs=gf,this.updater=n||pf}var Il=Ol.prototype=new yf;Il.constructor=Ol;mf(Il,qn.prototype);Il.isPureReactComponent=!0;var eu=Array.isArray,vf=Object.prototype.hasOwnProperty,Fl={current:null},xf={key:!0,ref:!0,__self:!0,__source:!0};function wf(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)vf.call(t,r)&&!xf.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:Xr,type:e,key:o,ref:s,props:i,_owner:Fl.current}}function um(e,t){return{$$typeof:Xr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xr}function cm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tu=/\/+/g;function Ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cm(""+e.key):t.toString(36)}function Ei(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xr:case qp:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ho(s,0):r,eu(i)?(n="",e!=null&&(n=e.replace(tu,"$&/")+"/"),Ei(i,t,n,"",function(u){return u})):i!=null&&(zl(i)&&(i=um(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(tu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",eu(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Ho(o,l);s+=Ei(o,t,n,a,i)}else if(a=am(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Ho(o,l++),s+=Ei(o,t,n,a,i);else if(o==="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 s}function oi(e,t,n){if(e==null)return e;var r=[],i=0;return Ei(e,r,"","",function(o){return t.call(n,o,i++)}),r}function fm(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 ke={current:null},Ni={transition:null},dm={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:Ni,ReactCurrentOwner:Fl};function Sf(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:oi,forEach:function(e,t,n){oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oi(e,function(){t++}),t},toArray:function(e){return oi(e,function(t){return t})||[]},only:function(e){if(!zl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=qn;I.Fragment=Jp;I.Profiler=tm;I.PureComponent=Ol;I.StrictMode=em;I.Suspense=om;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dm;I.act=Sf;I.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=mf({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Fl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)vf.call(t,a)&&!xf.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:Xr,type:e.type,key:i,ref:o,props:r,_owner:s}};I.createContext=function(e){return e={$$typeof:rm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nm,_context:e},e.Consumer=e};I.createElement=wf;I.createFactory=function(e){var t=wf.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:im,render:e}};I.isValidElement=zl;I.lazy=function(e){return{$$typeof:lm,_payload:{_status:-1,_result:e},_init:fm}};I.memo=function(e,t){return{$$typeof:sm,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Ni.transition;Ni.transition={};try{e()}finally{Ni.transition=t}};I.unstable_act=Sf;I.useCallback=function(e,t){return ke.current.useCallback(e,t)};I.useContext=function(e){return ke.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};I.useEffect=function(e,t){return ke.current.useEffect(e,t)};I.useId=function(){return ke.current.useId()};I.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return ke.current.useMemo(e,t)};I.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};I.useRef=function(e){return ke.current.useRef(e)};I.useState=function(e){return ke.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return ke.current.useTransition()};I.version="18.3.1";hf.exports=I;var k=hf.exports;const kf=bp(k);/**
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 hm=k,pm=Symbol.for("react.element"),mm=Symbol.for("react.fragment"),gm=Object.prototype.hasOwnProperty,ym=hm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vm={key:!0,ref:!0,__self:!0,__source:!0};function Cf(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)gm.call(t,r)&&!vm.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:pm,type:e,key:o,ref:s,props:i,_owner:ym.current}}xo.Fragment=mm;xo.jsx=Cf;xo.jsxs=Cf;df.exports=xo;var w=df.exports,Pf={exports:{}},Ie={},Tf={exports:{}},Ef={};/**
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(j,M){var O=j.length;j.push(M);e:for(;0<O;){var _=O-1>>>1,Q=j[_];if(0<i(Q,M))j[_]=M,j[O]=Q,O=_;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var M=j[0],O=j.pop();if(O!==M){j[0]=O;e:for(var _=0,Q=j.length,Gt=Q>>>1;_<Gt;){var et=2*(_+1)-1,xn=j[et],Re=et+1,Yt=j[Re];if(0>i(xn,O))Re<Q&&0>i(Yt,xn)?(j[_]=Yt,j[Re]=O,_=Re):(j[_]=xn,j[et]=O,_=et);else if(Re<Q&&0>i(Yt,O))j[_]=Yt,j[Re]=O,_=Re;else break e}}return M}function i(j,M){var O=j.sortIndex-M.sortIndex;return O!==0?O:j.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,m=!1,y=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,g=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 p(j){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=j)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function x(j){if(v=!1,p(j),!y)if(n(a)!==null)y=!0,V(S);else{var M=n(u);M!==null&&F(x,M.startTime-j)}}function S(j,M){y=!1,v&&(v=!1,g(C),C=-1),m=!0;var O=d;try{for(p(M),f=n(a);f!==null&&(!(f.expirationTime>M)||j&&!ne());){var _=f.callback;if(typeof _=="function"){f.callback=null,d=f.priorityLevel;var Q=_(f.expirationTime<=M);M=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(a)&&r(a),p(M)}else r(a);f=n(a)}if(f!==null)var Gt=!0;else{var et=n(u);et!==null&&F(x,et.startTime-M),Gt=!1}return Gt}finally{f=null,d=O,m=!1}}var E=!1,N=null,C=-1,R=5,D=-1;function ne(){return!(e.unstable_now()-D<R)}function Y(){if(N!==null){var j=e.unstable_now();D=j;var M=!0;try{M=N(!0,j)}finally{M?ce():(E=!1,N=null)}}else E=!1}var ce;if(typeof h=="function")ce=function(){h(Y)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,z=re.port2;re.port1.onmessage=Y,ce=function(){z.postMessage(null)}}else ce=function(){P(Y,0)};function V(j){N=j,E||(E=!0,ce())}function F(j,M){C=P(function(){j(e.unstable_now())},M)}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(j){j.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,V(S))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var O=d;d=M;try{return j()}finally{d=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,M){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var O=d;d=j;try{return M()}finally{d=O}},e.unstable_scheduleCallback=function(j,M,O){var _=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?_+O:_):O=_,j){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=O+Q,j={id:c++,callback:M,priorityLevel:j,startTime:O,expirationTime:Q,sortIndex:-1},O>_?(j.sortIndex=O,t(u,j),n(a)===null&&j===n(u)&&(v?(g(C),C=-1):v=!0,F(x,O-_))):(j.sortIndex=Q,t(a,j),y||m||(y=!0,V(S))),j},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(j){var M=d;return function(){var O=d;d=M;try{return j.apply(this,arguments)}finally{d=O}}}})(Ef);Tf.exports=Ef;var xm=Tf.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 wm=k,_e=xm;function T(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 Nf=new Set,Lr={};function mn(e,t){Wn(e,t),Wn(e+"Capture",t)}function Wn(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Nf.add(t[e])}var mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=Object.prototype.hasOwnProperty,Sm=/^[: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]*$/,nu={},ru={};function km(e){return Ls.call(ru,e)?!0:Ls.call(nu,e)?!1:Sm.test(e)?ru[e]=!0:(nu[e]=!0,!1)}function Cm(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 Pm(e,t,n,r){if(t===null||typeof t>"u"||Cm(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 Ce(e,t,n,r,i,o,s){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=o,this.removeEmptyString=s}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(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){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bl=/[\-:]([a-z])/g;function Ul(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(Bl,Ul);he[t]=new Ce(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(Bl,Ul);he[t]=new Ce(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(Bl,Ul);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function $l(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pm(t,n,i,r)&&(n=null),r||i===null?km(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 wt=wm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,si=Symbol.for("react.element"),Sn=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Wl=Symbol.for("react.strict_mode"),Ms=Symbol.for("react.profiler"),jf=Symbol.for("react.provider"),Lf=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),Rs=Symbol.for("react.suspense"),Vs=Symbol.for("react.suspense_list"),Kl=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),Mf=Symbol.for("react.offscreen"),iu=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,Ko;function fr(e){if(Ko===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ko=t&&t[1]||""}return`
34
- `+Ko+e}var Qo=!1;function Go(e,t){if(!e||Qo)return"";Qo=!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
- `),o=r.stack.split(`
36
- `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fr(e):""}function Tm(e){switch(e.tag){case 5:return fr(e.type);case 16:return fr("Lazy");case 13:return fr("Suspense");case 19:return fr("SuspenseList");case 0:case 2:case 15:return e=Go(e.type,!1),e;case 11:return e=Go(e.type.render,!1),e;case 1:return e=Go(e.type,!0),e;default:return""}}function Ds(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 kn:return"Fragment";case Sn:return"Portal";case Ms:return"Profiler";case Wl:return"StrictMode";case Rs:return"Suspense";case Vs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lf:return(e.displayName||"Context")+".Consumer";case jf:return(e._context.displayName||"Context")+".Provider";case Hl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kl:return t=e.displayName||null,t!==null?t:Ds(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Ds(e(t))}catch{}}return null}function Em(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 Ds(t);case 8:return t===Wl?"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 zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nm(e){var t=Rf(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=Nm(e))}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Rf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bi(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 As(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ou(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(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 Df(e,t){t=t.checked,t!=null&&$l(e,"checked",t,!1)}function _s(e,t){Df(e,t);var n=zt(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")?Os(e,t.type,n):t.hasOwnProperty("defaultValue")&&Os(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(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 Os(e,t,n){(t!=="number"||Bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function In(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=""+zt(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 Is(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(dr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zt(n)}}function Af(e,t){var n=zt(t.value),r=zt(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 au(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _f(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 Fs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_f(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,Of=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(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={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},jm=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){jm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function If(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function Ff(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=If(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Lm=q({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 zs(e,t){if(t){if(Lm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Bs(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 Us=null;function Ql(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $s=null,Fn=null,zn=null;function uu(e){if(e=qr(e)){if(typeof $s!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Po(t),$s(e.stateNode,e.type,t))}}function zf(e){Fn?zn?zn.push(e):zn=[e]:Fn=e}function Bf(){if(Fn){var e=Fn,t=zn;if(zn=Fn=null,uu(e),t)for(e=0;e<t.length;e++)uu(t[e])}}function Uf(e,t){return e(t)}function $f(){}var Yo=!1;function Wf(e,t,n){if(Yo)return e(t,n);Yo=!0;try{return Uf(e,t,n)}finally{Yo=!1,(Fn!==null||zn!==null)&&($f(),Bf())}}function Rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Po(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(T(231,t,typeof n));return n}var Ws=!1;if(mt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Ws=!1}function Mm(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var yr=!1,Ui=null,$i=!1,Hs=null,Rm={onError:function(e){yr=!0,Ui=e}};function Vm(e,t,n,r,i,o,s,l,a){yr=!1,Ui=null,Mm.apply(Rm,arguments)}function Dm(e,t,n,r,i,o,s,l,a){if(Vm.apply(this,arguments),yr){if(yr){var u=Ui;yr=!1,Ui=null}else throw Error(T(198));$i||($i=!0,Hs=u)}}function gn(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 Hf(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 cu(e){if(gn(e)!==e)throw Error(T(188))}function Am(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cu(i),e;if(o===r)return cu(i),t;o=o.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Kf(e){return e=Am(e),e!==null?Qf(e):null}function Qf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qf(e);if(t!==null)return t;e=e.sibling}return null}var Gf=_e.unstable_scheduleCallback,fu=_e.unstable_cancelCallback,_m=_e.unstable_shouldYield,Om=_e.unstable_requestPaint,ee=_e.unstable_now,Im=_e.unstable_getCurrentPriorityLevel,Gl=_e.unstable_ImmediatePriority,Yf=_e.unstable_UserBlockingPriority,Wi=_e.unstable_NormalPriority,Fm=_e.unstable_LowPriority,Xf=_e.unstable_IdlePriority,wo=null,it=null;function zm(e){if(it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(wo,e,void 0,(e.current.flags&128)===128)}catch{}}var be=Math.clz32?Math.clz32:$m,Bm=Math.log,Um=Math.LN2;function $m(e){return e>>>=0,e===0?32:31-(Bm(e)/Um|0)|0}var ui=64,ci=4194304;function hr(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 Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=hr(l):(o&=s,o!==0&&(r=hr(o)))}else s=n&~i,s!==0?r=hr(s):o!==0&&(r=hr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-be(t),i=1<<n,r|=e[n],t&=~i;return r}function Wm(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 Hm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-be(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=Wm(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Ks(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zf(){var e=ui;return ui<<=1,!(ui&4194240)&&(ui=64),e}function Xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-be(t),e[t]=n}function Km(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-be(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Yl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var U=0;function bf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var qf,Xl,Jf,ed,td,Qs=!1,fi=[],Mt=null,Rt=null,Vt=null,Vr=new Map,Dr=new Map,Et=[],Qm="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 du(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function rr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=qr(t),t!==null&&Xl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gm(e,t,n,r,i){switch(t){case"focusin":return Mt=rr(Mt,e,t,n,r,i),!0;case"dragenter":return Rt=rr(Rt,e,t,n,r,i),!0;case"mouseover":return Vt=rr(Vt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Vr.set(o,rr(Vr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dr.set(o,rr(Dr.get(o)||null,e,t,n,r,i)),!0}return!1}function nd(e){var t=nn(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=Hf(n),t!==null){e.blockedOn=t,td(e.priority,function(){Jf(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 ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Us=r,n.target.dispatchEvent(r),Us=null}else return t=qr(n),t!==null&&Xl(t),e.blockedOn=n,!1;t.shift()}return!0}function hu(e,t,n){ji(e)&&n.delete(t)}function Ym(){Qs=!1,Mt!==null&&ji(Mt)&&(Mt=null),Rt!==null&&ji(Rt)&&(Rt=null),Vt!==null&&ji(Vt)&&(Vt=null),Vr.forEach(hu),Dr.forEach(hu)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Qs||(Qs=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,Ym)))}function Ar(e){function t(i){return ir(i,e)}if(0<fi.length){ir(fi[0],e);for(var n=1;n<fi.length;n++){var r=fi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&ir(Mt,e),Rt!==null&&ir(Rt,e),Vt!==null&&ir(Vt,e),Vr.forEach(t),Dr.forEach(t),n=0;n<Et.length;n++)r=Et[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&(n=Et[0],n.blockedOn===null);)nd(n),n.blockedOn===null&&Et.shift()}var Bn=wt.ReactCurrentBatchConfig,Ki=!0;function Xm(e,t,n,r){var i=U,o=Bn.transition;Bn.transition=null;try{U=1,Zl(e,t,n,r)}finally{U=i,Bn.transition=o}}function Zm(e,t,n,r){var i=U,o=Bn.transition;Bn.transition=null;try{U=4,Zl(e,t,n,r)}finally{U=i,Bn.transition=o}}function Zl(e,t,n,r){if(Ki){var i=Gs(e,t,n,r);if(i===null)os(e,t,r,Qi,n),du(e,r);else if(Gm(i,e,t,n,r))r.stopPropagation();else if(du(e,r),t&4&&-1<Qm.indexOf(e)){for(;i!==null;){var o=qr(i);if(o!==null&&qf(o),o=Gs(e,t,n,r),o===null&&os(e,t,r,Qi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else os(e,t,r,null,n)}}var Qi=null;function Gs(e,t,n,r){if(Qi=null,e=Ql(r),e=nn(e),e!==null)if(t=gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hf(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 Qi=e,null}function rd(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(Im()){case Gl:return 1;case Yf:return 4;case Wi:case Fm:return 16;case Xf:return 536870912;default:return 16}default:return 16}}var jt=null,bl=null,Li=null;function id(){if(Li)return Li;var e,t=bl,n=t.length,r,i="value"in jt?jt.value:jt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Li=i.slice(e,1<r?1-r:void 0)}function Mi(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 di(){return!0}function pu(){return!1}function Fe(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?di:pu,this.isPropagationStopped=pu,this}return q(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=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=Fe(Jn),br=q({},Jn,{view:0,detail:0}),bm=Fe(br),Zo,bo,or,So=q({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jl,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!==or&&(or&&e.type==="mousemove"?(Zo=e.screenX-or.screenX,bo=e.screenY-or.screenY):bo=Zo=0,or=e),Zo)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),mu=Fe(So),qm=q({},So,{dataTransfer:0}),Jm=Fe(qm),eg=q({},br,{relatedTarget:0}),qo=Fe(eg),tg=q({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),ng=Fe(tg),rg=q({},Jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ig=Fe(rg),og=q({},Jn,{data:0}),gu=Fe(og),sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lg={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"},ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ag[e])?!!t[e]:!1}function Jl(){return ug}var cg=q({},br,{key:function(e){if(e.key){var t=sg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jl,charCode:function(e){return e.type==="keypress"?Mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fg=Fe(cg),dg=q({},So,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yu=Fe(dg),hg=q({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jl}),pg=Fe(hg),mg=q({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),gg=Fe(mg),yg=q({},So,{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}),vg=Fe(yg),xg=[9,13,27,32],ea=mt&&"CompositionEvent"in window,vr=null;mt&&"documentMode"in document&&(vr=document.documentMode);var wg=mt&&"TextEvent"in window&&!vr,od=mt&&(!ea||vr&&8<vr&&11>=vr),vu=" ",xu=!1;function sd(e,t){switch(e){case"keyup":return xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ld(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Sg(e,t){switch(e){case"compositionend":return ld(t);case"keypress":return t.which!==32?null:(xu=!0,vu);case"textInput":return e=t.data,e===vu&&xu?null:e;default:return null}}function kg(e,t){if(Cn)return e==="compositionend"||!ea&&sd(e,t)?(e=id(),Li=bl=jt=null,Cn=!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 od&&t.locale!=="ko"?null:t.data;default:return null}}var Cg={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 wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cg[e.type]:t==="textarea"}function ad(e,t,n,r){zf(r),t=Gi(t,"onChange"),0<t.length&&(n=new ql("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xr=null,_r=null;function Pg(e){xd(e,0)}function ko(e){var t=En(e);if(Vf(t))return e}function Tg(e,t){if(e==="change")return t}var ud=!1;if(mt){var Jo;if(mt){var es="oninput"in document;if(!es){var Su=document.createElement("div");Su.setAttribute("oninput","return;"),es=typeof Su.oninput=="function"}Jo=es}else Jo=!1;ud=Jo&&(!document.documentMode||9<document.documentMode)}function ku(){xr&&(xr.detachEvent("onpropertychange",cd),_r=xr=null)}function cd(e){if(e.propertyName==="value"&&ko(_r)){var t=[];ad(t,_r,e,Ql(e)),Wf(Pg,t)}}function Eg(e,t,n){e==="focusin"?(ku(),xr=t,_r=n,xr.attachEvent("onpropertychange",cd)):e==="focusout"&&ku()}function Ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ko(_r)}function jg(e,t){if(e==="click")return ko(t)}function Lg(e,t){if(e==="input"||e==="change")return ko(t)}function Mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:Mg;function Or(e,t){if(Je(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(!Ls.call(t,i)||!Je(e[i],t[i]))return!1}return!0}function Cu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pu(e,t){var n=Cu(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=Cu(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(){for(var e=window,t=Bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bi(e.document)}return t}function ta(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 Rg(e){var t=dd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fd(n.ownerDocument.documentElement,n)){if(r!==null&&ta(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Pu(n,o);var s=Pu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 Vg=mt&&"documentMode"in document&&11>=document.documentMode,Pn=null,Ys=null,wr=null,Xs=!1;function Tu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xs||Pn==null||Pn!==Bi(r)||(r=Pn,"selectionStart"in r&&ta(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}),wr&&Or(wr,r)||(wr=r,r=Gi(Ys,"onSelect"),0<r.length&&(t=new ql("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},ts={},hd={};mt&&(hd=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function Co(e){if(ts[e])return ts[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in hd)return ts[e]=t[n];return e}var pd=Co("animationend"),md=Co("animationiteration"),gd=Co("animationstart"),yd=Co("transitionend"),vd=new Map,Eu="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 Wt(e,t){vd.set(e,t),mn(t,[e])}for(var ns=0;ns<Eu.length;ns++){var rs=Eu[ns],Dg=rs.toLowerCase(),Ag=rs[0].toUpperCase()+rs.slice(1);Wt(Dg,"on"+Ag)}Wt(pd,"onAnimationEnd");Wt(md,"onAnimationIteration");Wt(gd,"onAnimationStart");Wt("dblclick","onDoubleClick");Wt("focusin","onFocus");Wt("focusout","onBlur");Wt(yd,"onTransitionEnd");Wn("onMouseEnter",["mouseout","mouseover"]);Wn("onMouseLeave",["mouseout","mouseover"]);Wn("onPointerEnter",["pointerout","pointerover"]);Wn("onPointerLeave",["pointerout","pointerover"]);mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mn("onBeforeInput",["compositionend","keypress","textInput","paste"]);mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(pr));function Nu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dm(r,t,void 0,e),e.currentTarget=null}function xd(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 o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Nu(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Nu(i,l,u),o=a}}}if($i)throw e=Hs,$i=!1,Hs=null,e}function H(e,t){var n=t[el];n===void 0&&(n=t[el]=new Set);var r=e+"__bubble";n.has(r)||(wd(t,e,2,!1),n.add(r))}function is(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[pi]){e[pi]=!0,Nf.forEach(function(n){n!=="selectionchange"&&(_g.has(n)||is(n,!1,e),is(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,is("selectionchange",!1,t))}}function wd(e,t,n,r){switch(rd(t)){case 1:var i=Xm;break;case 4:i=Zm;break;default:i=Zl}n=i.bind(null,t,n,e),i=void 0,!Ws||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 os(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=nn(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Wf(function(){var u=o,c=Ql(n),f=[];e:{var d=vd.get(e);if(d!==void 0){var m=ql,y=e;switch(e){case"keypress":if(Mi(n)===0)break e;case"keydown":case"keyup":m=fg;break;case"focusin":y="focus",m=qo;break;case"focusout":y="blur",m=qo;break;case"beforeblur":case"afterblur":m=qo;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":m=mu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Jm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=pg;break;case pd:case md:case gd:m=ng;break;case yd:m=gg;break;case"scroll":m=bm;break;case"wheel":m=vg;break;case"copy":case"cut":case"paste":m=ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=yu}var v=(t&4)!==0,P=!v&&e==="scroll",g=v?d!==null?d+"Capture":null:d;v=[];for(var h=u,p;h!==null;){p=h;var x=p.stateNode;if(p.tag===5&&x!==null&&(p=x,g!==null&&(x=Rr(h,g),x!=null&&v.push(Fr(h,x,p)))),P)break;h=h.return}0<v.length&&(d=new m(d,y,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&n!==Us&&(y=n.relatedTarget||n.fromElement)&&(nn(y)||y[gt]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?nn(y):null,y!==null&&(P=gn(y),y!==P||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(v=mu,x="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=yu,x="onPointerLeave",g="onPointerEnter",h="pointer"),P=m==null?d:En(m),p=y==null?d:En(y),d=new v(x,h+"leave",m,n,c),d.target=P,d.relatedTarget=p,x=null,nn(c)===u&&(v=new v(g,h+"enter",y,n,c),v.target=p,v.relatedTarget=P,x=v),P=x,m&&y)t:{for(v=m,g=y,h=0,p=v;p;p=wn(p))h++;for(p=0,x=g;x;x=wn(x))p++;for(;0<h-p;)v=wn(v),h--;for(;0<p-h;)g=wn(g),p--;for(;h--;){if(v===g||g!==null&&v===g.alternate)break t;v=wn(v),g=wn(g)}v=null}else v=null;m!==null&&ju(f,d,m,v,!1),y!==null&&P!==null&&ju(f,P,y,v,!0)}}e:{if(d=u?En(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var S=Tg;else if(wu(d))if(ud)S=Lg;else{S=Ng;var E=Eg}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=jg);if(S&&(S=S(e,u))){ad(f,S,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Os(d,"number",d.value)}switch(E=u?En(u):window,e){case"focusin":(wu(E)||E.contentEditable==="true")&&(Pn=E,Ys=u,wr=null);break;case"focusout":wr=Ys=Pn=null;break;case"mousedown":Xs=!0;break;case"contextmenu":case"mouseup":case"dragend":Xs=!1,Tu(f,n,c);break;case"selectionchange":if(Vg)break;case"keydown":case"keyup":Tu(f,n,c)}var N;if(ea)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Cn?sd(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(od&&n.locale!=="ko"&&(Cn||C!=="onCompositionStart"?C==="onCompositionEnd"&&Cn&&(N=id()):(jt=c,bl="value"in jt?jt.value:jt.textContent,Cn=!0)),E=Gi(u,C),0<E.length&&(C=new gu(C,e,null,n,c),f.push({event:C,listeners:E}),N?C.data=N:(N=ld(n),N!==null&&(C.data=N)))),(N=wg?Sg(e,n):kg(e,n))&&(u=Gi(u,"onBeforeInput"),0<u.length&&(c=new gu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=N))}xd(f,t)})}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Rr(e,n),o!=null&&r.unshift(Fr(e,o,i)),o=Rr(e,t),o!=null&&r.push(Fr(e,o,i))),e=e.return}return r}function wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ju(e,t,n,r,i){for(var o=t._reactName,s=[];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=Rr(n,o),a!=null&&s.unshift(Fr(n,a,l))):i||(a=Rr(n,o),a!=null&&s.push(Fr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Og=/\r\n?/g,Ig=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace(Og,`
38
- `).replace(Ig,"")}function mi(e,t,n){if(t=Lu(t),Lu(e)!==t&&n)throw Error(T(425))}function Yi(){}var Zs=null,bs=null;function qs(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 Js=typeof setTimeout=="function"?setTimeout:void 0,Fg=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(e){return Mu.resolve(null).then(e).catch(Bg)}:Js;function Bg(e){setTimeout(function(){throw e})}function ss(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),Ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ar(t)}function Dt(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 Ru(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 er=Math.random().toString(36).slice(2),rt="__reactFiber$"+er,zr="__reactProps$"+er,gt="__reactContainer$"+er,el="__reactEvents$"+er,Ug="__reactListeners$"+er,$g="__reactHandles$"+er;function nn(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ru(e);e!==null;){if(n=e[rt])return n;e=Ru(e)}return t}e=n,n=e.parentNode}return null}function qr(e){return e=e[rt]||e[gt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Po(e){return e[zr]||null}var tl=[],Nn=-1;function Ht(e){return{current:e}}function K(e){0>Nn||(e.current=tl[Nn],tl[Nn]=null,Nn--)}function $(e,t){Nn++,tl[Nn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ee=Ht(!1),cn=Bt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ne(e){return e=e.childContextTypes,e!=null}function Xi(){K(Ee),K(ve)}function Vu(e,t,n){if(ve.current!==Bt)throw Error(T(168));$(ve,t),$(Ee,n)}function Sd(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(T(108,Em(e)||"Unknown",i));return q({},n,r)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,cn=ve.current,$(ve,e),$(Ee,Ee.current),!0}function Du(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Sd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,K(Ee),K(ve),$(ve,e)):K(Ee),$(Ee,n)}var at=null,To=!1,ls=!1;function kd(e){at===null?at=[e]:at.push(e)}function Wg(e){To=!0,kd(e)}function Kt(){if(!ls&&at!==null){ls=!0;var e=0,t=U;try{var n=at;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}at=null,To=!1}catch(i){throw at!==null&&(at=at.slice(e+1)),Gf(Gl,Kt),i}finally{U=t,ls=!1}}return null}var jn=[],Ln=0,bi=null,qi=0,Ue=[],$e=0,fn=null,ut=1,ct="";function bt(e,t){jn[Ln++]=qi,jn[Ln++]=bi,bi=e,qi=t}function Cd(e,t,n){Ue[$e++]=ut,Ue[$e++]=ct,Ue[$e++]=fn,fn=e;var r=ut;e=ct;var i=32-be(r)-1;r&=~(1<<i),n+=1;var o=32-be(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ut=1<<32-be(t)+i|n<<i|r,ct=o+e}else ut=1<<o|n<<i|r,ct=e}function na(e){e.return!==null&&(bt(e,1),Cd(e,1,0))}function ra(e){for(;e===bi;)bi=jn[--Ln],jn[Ln]=null,qi=jn[--Ln],jn[Ln]=null;for(;e===fn;)fn=Ue[--$e],Ue[$e]=null,ct=Ue[--$e],Ue[$e]=null,ut=Ue[--$e],Ue[$e]=null}var Ae=null,De=null,G=!1,Ze=null;function Pd(e,t){var n=We(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 Au(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,Ae=e,De=Dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fn!==null?{id:ut,overflow:ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=We(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,De=null,!0):!1;default:return!1}}function nl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rl(e){if(G){var t=De;if(t){var n=t;if(!Au(e,t)){if(nl(e))throw Error(T(418));t=Dt(n.nextSibling);var r=Ae;t&&Au(e,t)?Pd(r,n):(e.flags=e.flags&-4097|2,G=!1,Ae=e)}}else{if(nl(e))throw Error(T(418));e.flags=e.flags&-4097|2,G=!1,Ae=e}}}function _u(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ae=e}function gi(e){if(e!==Ae)return!1;if(!G)return _u(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qs(e.type,e.memoizedProps)),t&&(t=De)){if(nl(e))throw Td(),Error(T(418));for(;t;)Pd(e,t),t=Dt(t.nextSibling)}if(_u(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){De=Dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=Ae?Dt(e.stateNode.nextSibling):null;return!0}function Td(){for(var e=De;e;)e=Dt(e.nextSibling)}function Kn(){De=Ae=null,G=!1}function ia(e){Ze===null?Ze=[e]:Ze.push(e)}var Hg=wt.ReactCurrentBatchConfig;function sr(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ou(e){var t=e._init;return t(e._payload)}function Ed(e){function t(g,h){if(e){var p=g.deletions;p===null?(g.deletions=[h],g.flags|=16):p.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=It(g,h),g.index=0,g.sibling=null,g}function o(g,h,p){return g.index=p,e?(p=g.alternate,p!==null?(p=p.index,p<h?(g.flags|=2,h):p):(g.flags|=2,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,h,p,x){return h===null||h.tag!==6?(h=ps(p,g.mode,x),h.return=g,h):(h=i(h,p),h.return=g,h)}function a(g,h,p,x){var S=p.type;return S===kn?c(g,h,p.props.children,x,p.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&Ou(S)===h.type)?(x=i(h,p.props),x.ref=sr(g,h,p),x.return=g,x):(x=Ii(p.type,p.key,p.props,null,g.mode,x),x.ref=sr(g,h,p),x.return=g,x)}function u(g,h,p,x){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=ms(p,g.mode,x),h.return=g,h):(h=i(h,p.children||[]),h.return=g,h)}function c(g,h,p,x,S){return h===null||h.tag!==7?(h=an(p,g.mode,x,S),h.return=g,h):(h=i(h,p),h.return=g,h)}function f(g,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=ps(""+h,g.mode,p),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case si:return p=Ii(h.type,h.key,h.props,null,g.mode,p),p.ref=sr(g,null,h),p.return=g,p;case Sn:return h=ms(h,g.mode,p),h.return=g,h;case Ct:var x=h._init;return f(g,x(h._payload),p)}if(dr(h)||tr(h))return h=an(h,g.mode,p,null),h.return=g,h;yi(g,h)}return null}function d(g,h,p,x){var S=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:l(g,h,""+p,x);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case si:return p.key===S?a(g,h,p,x):null;case Sn:return p.key===S?u(g,h,p,x):null;case Ct:return S=p._init,d(g,h,S(p._payload),x)}if(dr(p)||tr(p))return S!==null?null:c(g,h,p,x,null);yi(g,p)}return null}function m(g,h,p,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(p)||null,l(h,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case si:return g=g.get(x.key===null?p:x.key)||null,a(h,g,x,S);case Sn:return g=g.get(x.key===null?p:x.key)||null,u(h,g,x,S);case Ct:var E=x._init;return m(g,h,p,E(x._payload),S)}if(dr(x)||tr(x))return g=g.get(p)||null,c(h,g,x,S,null);yi(h,x)}return null}function y(g,h,p,x){for(var S=null,E=null,N=h,C=h=0,R=null;N!==null&&C<p.length;C++){N.index>C?(R=N,N=null):R=N.sibling;var D=d(g,N,p[C],x);if(D===null){N===null&&(N=R);break}e&&N&&D.alternate===null&&t(g,N),h=o(D,h,C),E===null?S=D:E.sibling=D,E=D,N=R}if(C===p.length)return n(g,N),G&&bt(g,C),S;if(N===null){for(;C<p.length;C++)N=f(g,p[C],x),N!==null&&(h=o(N,h,C),E===null?S=N:E.sibling=N,E=N);return G&&bt(g,C),S}for(N=r(g,N);C<p.length;C++)R=m(N,g,C,p[C],x),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?C:R.key),h=o(R,h,C),E===null?S=R:E.sibling=R,E=R);return e&&N.forEach(function(ne){return t(g,ne)}),G&&bt(g,C),S}function v(g,h,p,x){var S=tr(p);if(typeof S!="function")throw Error(T(150));if(p=S.call(p),p==null)throw Error(T(151));for(var E=S=null,N=h,C=h=0,R=null,D=p.next();N!==null&&!D.done;C++,D=p.next()){N.index>C?(R=N,N=null):R=N.sibling;var ne=d(g,N,D.value,x);if(ne===null){N===null&&(N=R);break}e&&N&&ne.alternate===null&&t(g,N),h=o(ne,h,C),E===null?S=ne:E.sibling=ne,E=ne,N=R}if(D.done)return n(g,N),G&&bt(g,C),S;if(N===null){for(;!D.done;C++,D=p.next())D=f(g,D.value,x),D!==null&&(h=o(D,h,C),E===null?S=D:E.sibling=D,E=D);return G&&bt(g,C),S}for(N=r(g,N);!D.done;C++,D=p.next())D=m(N,g,C,D.value,x),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?C:D.key),h=o(D,h,C),E===null?S=D:E.sibling=D,E=D);return e&&N.forEach(function(Y){return t(g,Y)}),G&&bt(g,C),S}function P(g,h,p,x){if(typeof p=="object"&&p!==null&&p.type===kn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case si:e:{for(var S=p.key,E=h;E!==null;){if(E.key===S){if(S=p.type,S===kn){if(E.tag===7){n(g,E.sibling),h=i(E,p.props.children),h.return=g,g=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&Ou(S)===E.type){n(g,E.sibling),h=i(E,p.props),h.ref=sr(g,E,p),h.return=g,g=h;break e}n(g,E);break}else t(g,E);E=E.sibling}p.type===kn?(h=an(p.props.children,g.mode,x,p.key),h.return=g,g=h):(x=Ii(p.type,p.key,p.props,null,g.mode,x),x.ref=sr(g,h,p),x.return=g,g=x)}return s(g);case Sn:e:{for(E=p.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(g,h.sibling),h=i(h,p.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=ms(p,g.mode,x),h.return=g,g=h}return s(g);case Ct:return E=p._init,P(g,h,E(p._payload),x)}if(dr(p))return y(g,h,p,x);if(tr(p))return v(g,h,p,x);yi(g,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,p),h.return=g,g=h):(n(g,h),h=ps(p,g.mode,x),h.return=g,g=h),s(g)):n(g,h)}return P}var Qn=Ed(!0),Nd=Ed(!1),Ji=Ht(null),eo=null,Mn=null,oa=null;function sa(){oa=Mn=eo=null}function la(e){var t=Ji.current;K(Ji),e._currentValue=t}function il(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 Un(e,t){eo=e,oa=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(eo===null)throw Error(T(308));Mn=e,eo.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var rn=null;function aa(e){rn===null?rn=[e]:rn.push(e)}function jd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,aa(t)):(n.next=i.next,i.next=n),t.interleaved=n,yt(e,r)}function yt(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 Pt=!1;function ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ld(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 dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yt(e,n)}return i=r.interleaved,i===null?(t.next=t,aa(r)):(t.next=i.next,i.next=t),r.interleaved=t,yt(e,n)}function Ri(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,Yl(e,n)}}function Iu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 to(e,t,n,r){var i=e.updateQueue;Pt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,m=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,v=l;switch(d=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(m,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(m,f,d):y,d==null)break e;f=q({},f,d);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else m={eventTime:m,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=m,a=f):c=c.next=m,s|=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(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);hn|=s,e.lanes=s,e.memoizedState=f}}function Fu(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(T(191,i));i.call(r)}}}var Jr={},ot=Ht(Jr),Br=Ht(Jr),Ur=Ht(Jr);function on(e){if(e===Jr)throw Error(T(174));return e}function ca(e,t){switch($(Ur,t),$(Br,e),$(ot,Jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fs(t,e)}K(ot),$(ot,t)}function Gn(){K(ot),K(Br),K(Ur)}function Md(e){on(Ur.current);var t=on(ot.current),n=Fs(t,e.type);t!==n&&($(Br,e),$(ot,n))}function fa(e){Br.current===e&&(K(ot),K(Br))}var X=Ht(0);function no(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 as=[];function da(){for(var e=0;e<as.length;e++)as[e]._workInProgressVersionPrimary=null;as.length=0}var Vi=wt.ReactCurrentDispatcher,us=wt.ReactCurrentBatchConfig,dn=0,b=null,se=null,ae=null,ro=!1,Sr=!1,$r=0,Kg=0;function pe(){throw Error(T(321))}function ha(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function pa(e,t,n,r,i,o){if(dn=o,b=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vi.current=e===null||e.memoizedState===null?Xg:Zg,e=n(r,i),Sr){o=0;do{if(Sr=!1,$r=0,25<=o)throw Error(T(301));o+=1,ae=se=null,t.updateQueue=null,Vi.current=bg,e=n(r,i)}while(Sr)}if(Vi.current=io,t=se!==null&&se.next!==null,dn=0,ae=se=b=null,ro=!1,t)throw Error(T(300));return e}function ma(){var e=$r!==0;return $r=0,e}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?b.memoizedState=ae=e:ae=ae.next=e,ae}function Qe(){if(se===null){var e=b.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ae===null?b.memoizedState:ae.next;if(t!==null)ae=t,se=e;else{if(e===null)throw Error(T(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ae===null?b.memoizedState=ae=e:ae=ae.next=e}return ae}function Wr(e,t){return typeof t=="function"?t(e):t}function cs(e){var t=Qe(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=se,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((dn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,b.lanes|=c,hn|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Je(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,b.lanes|=o,hn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fs(e){var t=Qe(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Je(o,t.memoizedState)||(Te=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Rd(){}function Vd(e,t){var n=b,r=Qe(),i=t(),o=!Je(r.memoizedState,i);if(o&&(r.memoizedState=i,Te=!0),r=r.queue,ga(_d.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,Hr(9,Ad.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(T(349));dn&30||Dd(n,t,i)}return i}function Dd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=b.updateQueue,t===null?(t={lastEffect:null,stores:null},b.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ad(e,t,n,r){t.value=n,t.getSnapshot=r,Od(t)&&Id(e)}function _d(e,t,n){return n(function(){Od(t)&&Id(e)})}function Od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Je(e,n)}catch{return!0}}function Id(e){var t=yt(e,1);t!==null&&qe(t,e,1,-1)}function zu(e){var t=nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:e},t.queue=e,e=e.dispatch=Yg.bind(null,b,e),[t.memoizedState,e]}function Hr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=b.updateQueue,t===null?(t={lastEffect:null,stores:null},b.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 Fd(){return Qe().memoizedState}function Di(e,t,n,r){var i=nt();b.flags|=e,i.memoizedState=Hr(1|t,n,void 0,r===void 0?null:r)}function Eo(e,t,n,r){var i=Qe();r=r===void 0?null:r;var o=void 0;if(se!==null){var s=se.memoizedState;if(o=s.destroy,r!==null&&ha(r,s.deps)){i.memoizedState=Hr(t,n,o,r);return}}b.flags|=e,i.memoizedState=Hr(1|t,n,o,r)}function Bu(e,t){return Di(8390656,8,e,t)}function ga(e,t){return Eo(2048,8,e,t)}function zd(e,t){return Eo(4,2,e,t)}function Bd(e,t){return Eo(4,4,e,t)}function Ud(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 $d(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,Ud.bind(null,t,e),n)}function ya(){}function Wd(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ha(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ha(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kd(e,t,n){return dn&21?(Je(n,t)||(n=Zf(),b.lanes|=n,hn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function Qg(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=us.transition;us.transition={};try{e(!1),t()}finally{U=n,us.transition=r}}function Qd(){return Qe().memoizedState}function Gg(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gd(e))Yd(t,n);else if(n=jd(e,t,n,r),n!==null){var i=Se();qe(n,e,r,i),Xd(n,t,r)}}function Yg(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gd(e))Yd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Je(l,s)){var a=t.interleaved;a===null?(i.next=i,aa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=jd(e,t,i,r),n!==null&&(i=Se(),qe(n,e,r,i),Xd(n,t,r))}}function Gd(e){var t=e.alternate;return e===b||t!==null&&t===b}function Yd(e,t){Sr=ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}var io={readContext:Ke,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Xg={readContext:Ke,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Bu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();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=Gg.bind(null,b,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:zu,useDebugValue:ya,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=zu(!1),t=e[0];return e=Qg.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=b,i=nt();if(G){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ue===null)throw Error(T(349));dn&30||Dd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Bu(_d.bind(null,r,o,e),[e]),r.flags|=2048,Hr(9,Ad.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nt(),t=ue.identifierPrefix;if(G){var n=ct,r=ut;n=(r&~(1<<32-be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$r++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Kg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zg={readContext:Ke,useCallback:Wd,useContext:Ke,useEffect:ga,useImperativeHandle:$d,useInsertionEffect:zd,useLayoutEffect:Bd,useMemo:Hd,useReducer:cs,useRef:Fd,useState:function(){return cs(Wr)},useDebugValue:ya,useDeferredValue:function(e){var t=Qe();return Kd(t,se.memoizedState,e)},useTransition:function(){var e=cs(Wr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Rd,useSyncExternalStore:Vd,useId:Qd,unstable_isNewReconciler:!1},bg={readContext:Ke,useCallback:Wd,useContext:Ke,useEffect:ga,useImperativeHandle:$d,useInsertionEffect:zd,useLayoutEffect:Bd,useMemo:Hd,useReducer:fs,useRef:Fd,useState:function(){return fs(Wr)},useDebugValue:ya,useDeferredValue:function(e){var t=Qe();return se===null?t.memoizedState=e:Kd(t,se.memoizedState,e)},useTransition:function(){var e=fs(Wr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Rd,useSyncExternalStore:Vd,useId:Qd,unstable_isNewReconciler:!1};function Ye(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var No={isMounted:function(e){return(e=e._reactInternals)?gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ot(e),o=dt(r,i);o.payload=t,n!=null&&(o.callback=n),t=At(e,o,i),t!==null&&(qe(t,e,i,r),Ri(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ot(e),o=dt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=At(e,o,i),t!==null&&(qe(t,e,i,r),Ri(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Se(),r=Ot(e),i=dt(n,r);i.tag=2,t!=null&&(i.callback=t),t=At(e,i,r),t!==null&&(qe(t,e,r,n),Ri(t,e,r))}};function Uu(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(i,o):!0}function Zd(e,t,n){var r=!1,i=Bt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ke(o):(i=Ne(t)?cn:ve.current,r=t.contextTypes,o=(r=r!=null)?Hn(e,i):Bt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=No,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function $u(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&&No.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ua(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ke(o):(o=Ne(t)?cn:ve.current,i.context=Hn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ol(e,t,o,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&&No.enqueueReplaceState(i,i.state,null),to(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yn(e,t){try{var n="",r=t;do n+=Tm(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qg=typeof WeakMap=="function"?WeakMap:Map;function bd(e,t,n){n=dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){so||(so=!0,yl=r),ll(e,t)},n}function qd(e,t,n){n=dt(-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(){ll(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ll(e,t),typeof r!="function"&&(_t===null?_t=new Set([this]):_t.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qg;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=dy.bind(null,e,t,n),t.then(e,e))}function Hu(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 Ku(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=dt(-1,1),t.tag=2,At(n,t,1))),n.lanes|=1),e)}var Jg=wt.ReactCurrentOwner,Te=!1;function we(e,t,n,r){t.child=e===null?Nd(t,null,n,r):Qn(t,e.child,n,r)}function Qu(e,t,n,r,i){n=n.render;var o=t.ref;return Un(t,i),r=pa(e,t,n,r,o,i),n=ma(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(G&&n&&na(t),t.flags|=1,we(e,t,r,i),t.child)}function Gu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ta(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Jd(e,t,o,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(s,r)&&e.ref===t.ref)return vt(e,t,i)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Jd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Or(o,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,vt(e,t,i)}return al(e,t,n,r,i)}function eh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(Vn,Ve),Ve|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$(Vn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$(Vn,Ve),Ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$(Vn,Ve),Ve|=r;return we(e,t,i,n),t.child}function th(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function al(e,t,n,r,i){var o=Ne(n)?cn:ve.current;return o=Hn(t,o),Un(t,i),n=pa(e,t,n,r,o,i),r=ma(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(G&&r&&na(t),t.flags|=1,we(e,t,n,i),t.child)}function Yu(e,t,n,r,i){if(Ne(n)){var o=!0;Zi(t)}else o=!1;if(Un(t,i),t.stateNode===null)Ai(e,t),Zd(t,n,r),sl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ke(u):(u=Ne(n)?cn:ve.current,u=Hn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&$u(t,s,r,u),Pt=!1;var d=t.memoizedState;s.state=d,to(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Ee.current||Pt?(typeof c=="function"&&(ol(t,n,c,r),a=t.memoizedState),(l=Pt||Uu(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ld(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ye(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ke(a):(a=Ne(n)?cn:ve.current,a=Hn(t,a));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&$u(t,s,r,a),Pt=!1,d=t.memoizedState,s.state=d,to(t,r,s,i);var y=t.memoizedState;l!==f||d!==y||Ee.current||Pt?(typeof m=="function"&&(ol(t,n,m,r),y=t.memoizedState),(u=Pt||Uu(t,n,u,r,d,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ul(e,t,n,r,o,i)}function ul(e,t,n,r,i,o){th(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Du(t,n,!1),vt(e,t,o);r=t.stateNode,Jg.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Qn(t,e.child,null,o),t.child=Qn(t,null,l,o)):we(e,t,l,o),t.memoizedState=r.state,i&&Du(t,n,!0),t.child}function nh(e){var t=e.stateNode;t.pendingContext?Vu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vu(e,t.context,!1),ca(e,t.containerInfo)}function Xu(e,t,n,r,i){return Kn(),ia(i),t.flags|=256,we(e,t,n,r),t.child}var cl={dehydrated:null,treeContext:null,retryLane:0};function fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function rh(e,t,n){var r=t.pendingProps,i=X.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$(X,i&1),e===null)return rl(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Mo(s,r,0,null),e=an(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=fl(n),t.memoizedState=cl,e):va(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return ey(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=It(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=It(l,o):(o=an(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=cl,r}return o=e.child,e=o.sibling,r=It(o,{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 va(e,t){return t=Mo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,n,r){return r!==null&&ia(r),Qn(t,e.child,null,n),e=va(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ey(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ds(Error(T(422))),vi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Mo({mode:"visible",children:r.children},i,0,null),o=an(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Qn(t,e.child,null,s),t.child.memoizedState=fl(s),t.memoizedState=cl,o);if(!(t.mode&1))return vi(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(T(419)),r=ds(o,r,void 0),vi(e,t,s,r)}if(l=(s&e.childLanes)!==0,Te||l){if(r=ue,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,yt(e,i),qe(r,e,i,-1))}return Pa(),r=ds(Error(T(421))),vi(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hy.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,De=Dt(i.nextSibling),Ae=t,G=!0,Ze=null,e!==null&&(Ue[$e++]=ut,Ue[$e++]=ct,Ue[$e++]=fn,ut=e.id,ct=e.overflow,fn=t),t=va(t,r.children),t.flags|=4096,t)}function Zu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),il(e.return,t,n)}function hs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ih(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(we(e,t,r.children,n),r=X.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&&Zu(e,n,t);else if(e.tag===19)Zu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($(X,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&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),hs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}hs(t,!0,n,null,o);break;case"together":hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ty(e,t,n){switch(t.tag){case 3:nh(t),Kn();break;case 5:Md(t);break;case 1:Ne(t.type)&&Zi(t);break;case 4:ca(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$(Ji,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?rh(e,t,n):($(X,X.current&1),e=vt(e,t,n),e!==null?e.sibling:null);$(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ih(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,eh(e,t,n)}return vt(e,t,n)}var oh,dl,sh,lh;oh=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}};dl=function(){};sh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,on(ot.current);var o=null;switch(n){case"input":i=As(e,i),r=As(e,r),o=[];break;case"select":i=q({},i,{value:void 0}),r=q({},r,{value:void 0}),o=[];break;case"textarea":i=Is(e,i),r=Is(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yi)}zs(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).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(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&H("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};lh=function(e,t,n,r){n!==r&&(t.flags|=4)};function lr(e,t){if(!G)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 me(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 ny(e,t,n){var r=t.pendingProps;switch(ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Ne(t.type)&&Xi(),me(t),null;case 3:return r=t.stateNode,Gn(),K(Ee),K(ve),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&(wl(Ze),Ze=null))),dl(e,t),me(t),null;case 5:fa(t);var i=on(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)sh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return me(t),null}if(e=on(ot.current),gi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rt]=t,r[zr]=o,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(i=0;i<pr.length;i++)H(pr[i],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":ou(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":lu(r,o),H("invalid",r)}zs(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&mi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&mi(r.textContent,l,e),i=["children",""+l]):Lr.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&H("scroll",r)}switch(n){case"input":li(r),su(r,o,!0);break;case"textarea":li(r),au(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Yi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_f(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rt]=t,e[zr]=r,oh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bs(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;i<pr.length;i++)H(pr[i],e);i=r;break;case"source":H("error",e),i=r;break;case"img":case"image":case"link":H("error",e),H("load",e),i=r;break;case"details":H("toggle",e),i=r;break;case"input":ou(e,r),i=As(e,r),H("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=q({},r,{value:void 0}),H("invalid",e);break;case"textarea":lu(e,r),i=Is(e,r),H("invalid",e);break;default:i=r}zs(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Ff(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Of(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Mr(e,a):typeof a=="number"&&Mr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&H("scroll",e):a!=null&&$l(e,o,a,s))}switch(n){case"input":li(e),su(e,r,!1);break;case"textarea":li(e),au(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?In(e,!!r.multiple,o,!1):r.defaultValue!=null&&In(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yi)}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 me(t),null;case 6:if(e&&t.stateNode!=null)lh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=on(Ur.current),on(ot.current),gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[rt]=t,(o=r.nodeValue!==n)&&(e=Ae,e!==null))switch(e.tag){case 3:mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rt]=t,t.stateNode=r}return me(t),null;case 13:if(K(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&De!==null&&t.mode&1&&!(t.flags&128))Td(),Kn(),t.flags|=98560,o=!1;else if(o=gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(T(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(T(317));o[rt]=t}else Kn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),o=!1}else Ze!==null&&(wl(Ze),Ze=null),o=!0;if(!o)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||X.current&1?le===0&&(le=3):Pa())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Gn(),dl(e,t),e===null&&Ir(t.stateNode.containerInfo),me(t),null;case 10:return la(t.type._context),me(t),null;case 17:return Ne(t.type)&&Xi(),me(t),null;case 19:if(K(X),o=t.memoizedState,o===null)return me(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)lr(o,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=no(e),s!==null){for(t.flags|=128,lr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $(X,X.current&1|2),t.child}e=e.sibling}o.tail!==null&&ee()>Xn&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304)}else{if(!r)if(e=no(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!G)return me(t),null}else 2*ee()-o.renderingStartTime>Xn&&n!==1073741824&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=X.current,$(X,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return Ca(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function ry(e,t){switch(ra(t),t.tag){case 1:return Ne(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),K(Ee),K(ve),da(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fa(t),null;case 13:if(K(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(X),null;case 4:return Gn(),null;case 10:return la(t.type._context),null;case 22:case 23:return Ca(),null;case 24:return null;default:return null}}var xi=!1,ye=!1,iy=typeof WeakSet=="function"?WeakSet:Set,L=null;function Rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function hl(e,t,n){try{n()}catch(r){J(e,t,r)}}var bu=!1;function oy(e,t){if(Zs=Ki,e=dd(),ta(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(bs={focusedElem:e,selectionRange:n},Ki=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,P=y.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ye(t.type,v),P);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){J(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=bu,bu=!1,y}function kr(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 o=i.destroy;i.destroy=void 0,o!==void 0&&hl(t,n,o)}i=i.next}while(i!==r)}}function jo(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 pl(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 ah(e){var t=e.alternate;t!==null&&(e.alternate=null,ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[zr],delete t[el],delete t[Ug],delete t[$g])),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 uh(e){return e.tag===5||e.tag===3||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uh(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 ml(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=Yi));else if(r!==4&&(e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}function gl(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(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}var fe=null,Xe=!1;function St(e,t,n){for(n=n.child;n!==null;)ch(e,t,n),n=n.sibling}function ch(e,t,n){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(wo,n)}catch{}switch(n.tag){case 5:ye||Rn(n,t);case 6:var r=fe,i=Xe;fe=null,St(e,t,n),fe=r,Xe=i,fe!==null&&(Xe?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Xe?(e=fe,n=n.stateNode,e.nodeType===8?ss(e.parentNode,n):e.nodeType===1&&ss(e,n),Ar(e)):ss(fe,n.stateNode));break;case 4:r=fe,i=Xe,fe=n.stateNode.containerInfo,Xe=!0,St(e,t,n),fe=r,Xe=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&hl(n,t,s),i=i.next}while(i!==r)}St(e,t,n);break;case 1:if(!ye&&(Rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,St(e,t,n),ye=r):St(e,t,n);break;default:St(e,t,n)}}function Ju(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iy),t.forEach(function(r){var i=py.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:fe=l.stateNode,Xe=!1;break e;case 3:fe=l.stateNode.containerInfo,Xe=!0;break e;case 4:fe=l.stateNode.containerInfo,Xe=!0;break e}l=l.return}if(fe===null)throw Error(T(160));ch(o,s,i),fe=null,Xe=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){J(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fh(t,e),t=t.sibling}function fh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),tt(e),r&4){try{kr(3,e,e.return),jo(3,e)}catch(v){J(e,e.return,v)}try{kr(5,e,e.return)}catch(v){J(e,e.return,v)}}break;case 1:Ge(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return);break;case 5:if(Ge(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return),e.flags&32){var i=e.stateNode;try{Mr(i,"")}catch(v){J(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Df(i,o),Bs(l,s);var u=Bs(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?Ff(i,f):c==="dangerouslySetInnerHTML"?Of(i,f):c==="children"?Mr(i,f):$l(i,c,f,u)}switch(l){case"input":_s(i,o);break;case"textarea":Af(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?In(i,!!o.multiple,m,!1):d!==!!o.multiple&&(o.defaultValue!=null?In(i,!!o.multiple,o.defaultValue,!0):In(i,!!o.multiple,o.multiple?[]:"",!1))}i[zr]=o}catch(v){J(e,e.return,v)}}break;case 6:if(Ge(t,e),tt(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){J(e,e.return,v)}}break;case 3:if(Ge(t,e),tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(v){J(e,e.return,v)}break;case 4:Ge(t,e),tt(e);break;case 13:Ge(t,e),tt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Sa=ee())),r&4&&Ju(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Ge(t,e),ye=u):Ge(t,e),tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(f=L=c;L!==null;){switch(d=L,m=d.child,d.tag){case 0:case 11:case 14:case 15:kr(4,d,d.return);break;case 1:Rn(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){J(r,n,v)}}break;case 5:Rn(d,d.return);break;case 22:if(d.memoizedState!==null){tc(f);continue}}m!==null?(m.return=d,L=m):tc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=If("display",s))}catch(v){J(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){J(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ge(t,e),tt(e),r&4&&Ju(e);break;case 21:break;default:Ge(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(uh(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Mr(i,""),r.flags&=-33);var o=qu(e);gl(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=qu(e);ml(e,l,s);break;default:throw Error(T(161))}}catch(a){J(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sy(e,t,n){L=e,dh(e)}function dh(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var i=L,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||xi;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ye;l=xi;var u=ye;if(xi=s,(ye=a)&&!u)for(L=i;L!==null;)s=L,a=s.child,s.tag===22&&s.memoizedState!==null?nc(i):a!==null?(a.return=s,L=a):nc(i);for(;o!==null;)L=o,dh(o),o=o.sibling;L=i,xi=l,ye=u}ec(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,L=o):ec(e)}}function ec(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||jo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ye(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Fu(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fu(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ar(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}ye||t.flags&512&&pl(t)}catch(d){J(t,t.return,d)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function tc(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function nc(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jo(4,t)}catch(a){J(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){J(t,i,a)}}var o=t.return;try{pl(t)}catch(a){J(t,o,a)}break;case 5:var s=t.return;try{pl(t)}catch(a){J(t,s,a)}}}catch(a){J(t,t.return,a)}if(t===e){L=null;break}var l=t.sibling;if(l!==null){l.return=t.return,L=l;break}L=t.return}}var ly=Math.ceil,oo=wt.ReactCurrentDispatcher,xa=wt.ReactCurrentOwner,He=wt.ReactCurrentBatchConfig,B=0,ue=null,oe=null,de=0,Ve=0,Vn=Ht(0),le=0,Kr=null,hn=0,Lo=0,wa=0,Cr=null,Pe=null,Sa=0,Xn=1/0,lt=null,so=!1,yl=null,_t=null,wi=!1,Lt=null,lo=0,Pr=0,vl=null,_i=-1,Oi=0;function Se(){return B&6?ee():_i!==-1?_i:_i=ee()}function Ot(e){return e.mode&1?B&2&&de!==0?de&-de:Hg.transition!==null?(Oi===0&&(Oi=Zf()),Oi):(e=U,e!==0||(e=window.event,e=e===void 0?16:rd(e.type)),e):1}function qe(e,t,n,r){if(50<Pr)throw Pr=0,vl=null,Error(T(185));Zr(e,n,r),(!(B&2)||e!==ue)&&(e===ue&&(!(B&2)&&(Lo|=n),le===4&&Nt(e,de)),je(e,r),n===1&&B===0&&!(t.mode&1)&&(Xn=ee()+500,To&&Kt()))}function je(e,t){var n=e.callbackNode;Hm(e,t);var r=Hi(e,e===ue?de:0);if(r===0)n!==null&&fu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fu(n),t===1)e.tag===0?Wg(rc.bind(null,e)):kd(rc.bind(null,e)),zg(function(){!(B&6)&&Kt()}),n=null;else{switch(bf(r)){case 1:n=Gl;break;case 4:n=Yf;break;case 16:n=Wi;break;case 536870912:n=Xf;break;default:n=Wi}n=wh(n,hh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function hh(e,t){if(_i=-1,Oi=0,B&6)throw Error(T(327));var n=e.callbackNode;if($n()&&e.callbackNode!==n)return null;var r=Hi(e,e===ue?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ao(e,r);else{t=r;var i=B;B|=2;var o=mh();(ue!==e||de!==t)&&(lt=null,Xn=ee()+500,ln(e,t));do try{cy();break}catch(l){ph(e,l)}while(!0);sa(),oo.current=o,B=i,oe!==null?t=0:(ue=null,de=0,t=le)}if(t!==0){if(t===2&&(i=Ks(e),i!==0&&(r=i,t=xl(e,i))),t===1)throw n=Kr,ln(e,0),Nt(e,r),je(e,ee()),n;if(t===6)Nt(e,r);else{if(i=e.current.alternate,!(r&30)&&!ay(i)&&(t=ao(e,r),t===2&&(o=Ks(e),o!==0&&(r=o,t=xl(e,o))),t===1))throw n=Kr,ln(e,0),Nt(e,r),je(e,ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:qt(e,Pe,lt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=Sa+500-ee(),10<t)){if(Hi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Se(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Js(qt.bind(null,e,Pe,lt),t);break}qt(e,Pe,lt);break;case 4:if(Nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-be(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ly(r/1960))-r,10<r){e.timeoutHandle=Js(qt.bind(null,e,Pe,lt),r);break}qt(e,Pe,lt);break;case 5:qt(e,Pe,lt);break;default:throw Error(T(329))}}}return je(e,ee()),e.callbackNode===n?hh.bind(null,e):null}function xl(e,t){var n=Cr;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=ao(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&wl(t)),e}function wl(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function ay(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],o=i.getSnapshot;i=i.value;try{if(!Je(o(),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 Nt(e,t){for(t&=~wa,t&=~Lo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-be(t),r=1<<n;e[n]=-1,t&=~r}}function rc(e){if(B&6)throw Error(T(327));$n();var t=Hi(e,0);if(!(t&1))return je(e,ee()),null;var n=ao(e,t);if(e.tag!==0&&n===2){var r=Ks(e);r!==0&&(t=r,n=xl(e,r))}if(n===1)throw n=Kr,ln(e,0),Nt(e,t),je(e,ee()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qt(e,Pe,lt),je(e,ee()),null}function ka(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(Xn=ee()+500,To&&Kt())}}function pn(e){Lt!==null&&Lt.tag===0&&!(B&6)&&$n();var t=B;B|=1;var n=He.transition,r=U;try{if(He.transition=null,U=1,e)return e()}finally{U=r,He.transition=n,B=t,!(B&6)&&Kt()}}function Ca(){Ve=Vn.current,K(Vn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fg(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(ra(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xi();break;case 3:Gn(),K(Ee),K(ve),da();break;case 5:fa(r);break;case 4:Gn();break;case 13:K(X);break;case 19:K(X);break;case 10:la(r.type._context);break;case 22:case 23:Ca()}n=n.return}if(ue=e,oe=e=It(e.current,null),de=Ve=t,le=0,Kr=null,wa=Lo=hn=0,Pe=Cr=null,rn!==null){for(t=0;t<rn.length;t++)if(n=rn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}rn=null}return e}function ph(e,t){do{var n=oe;try{if(sa(),Vi.current=io,ro){for(var r=b.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ro=!1}if(dn=0,ae=se=b=null,Sr=!1,$r=0,xa.current=null,n===null||n.return===null){le=1,Kr=t,oe=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=de,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Hu(s);if(m!==null){m.flags&=-257,Ku(m,s,l,o,t),m.mode&1&&Wu(o,u,t),t=m,a=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(a),t.updateQueue=v}else y.add(a);break e}else{if(!(t&1)){Wu(o,u,t),Pa();break e}a=Error(T(426))}}else if(G&&l.mode&1){var P=Hu(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Ku(P,s,l,o,t),ia(Yn(a,l));break e}}o=a=Yn(a,l),le!==4&&(le=2),Cr===null?Cr=[o]:Cr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=bd(o,a,t);Iu(o,g);break e;case 1:l=a;var h=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(_t===null||!_t.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=qd(o,l,t);Iu(o,x);break e}}o=o.return}while(o!==null)}yh(n)}catch(S){t=S,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function mh(){var e=oo.current;return oo.current=io,e===null?io:e}function Pa(){(le===0||le===3||le===2)&&(le=4),ue===null||!(hn&268435455)&&!(Lo&268435455)||Nt(ue,de)}function ao(e,t){var n=B;B|=2;var r=mh();(ue!==e||de!==t)&&(lt=null,ln(e,t));do try{uy();break}catch(i){ph(e,i)}while(!0);if(sa(),B=n,oo.current=r,oe!==null)throw Error(T(261));return ue=null,de=0,le}function uy(){for(;oe!==null;)gh(oe)}function cy(){for(;oe!==null&&!_m();)gh(oe)}function gh(e){var t=xh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?yh(e):oe=t,xa.current=null}function yh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ry(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,oe=null;return}}else if(n=ny(n,t,Ve),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);le===0&&(le=5)}function qt(e,t,n){var r=U,i=He.transition;try{He.transition=null,U=1,fy(e,t,n,r)}finally{He.transition=i,U=r}return null}function fy(e,t,n,r){do $n();while(Lt!==null);if(B&6)throw Error(T(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(T(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Km(e,o),e===ue&&(oe=ue=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||wi||(wi=!0,wh(Wi,function(){return $n(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=He.transition,He.transition=null;var s=U;U=1;var l=B;B|=4,xa.current=null,oy(e,n),fh(n,e),Rg(bs),Ki=!!Zs,bs=Zs=null,e.current=n,sy(n),Om(),B=l,U=s,He.transition=o}else e.current=n;if(wi&&(wi=!1,Lt=e,lo=i),o=e.pendingLanes,o===0&&(_t=null),zm(n.stateNode),je(e,ee()),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(so)throw so=!1,e=yl,yl=null,e;return lo&1&&e.tag!==0&&$n(),o=e.pendingLanes,o&1?e===vl?Pr++:(Pr=0,vl=e):Pr=0,Kt(),null}function $n(){if(Lt!==null){var e=bf(lo),t=He.transition,n=U;try{if(He.transition=null,U=16>e?16:e,Lt===null)var r=!1;else{if(e=Lt,Lt=null,lo=0,B&6)throw Error(T(331));var i=B;for(B|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:kr(8,c,o)}var f=c.child;if(f!==null)f.return=c,L=f;else for(;L!==null;){c=L;var d=c.sibling,m=c.return;if(ah(c),c===u){L=null;break}if(d!==null){d.return=m,L=d;break}L=m}}}var y=o.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var P=v.sibling;v.sibling=null,v=P}while(v!==null)}}L=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,L=s;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:kr(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,L=g;break e}L=o.return}}var h=e.current;for(L=h;L!==null;){s=L;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,L=p;else e:for(s=h;L!==null;){if(l=L,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:jo(9,l)}}catch(S){J(l,l.return,S)}if(l===s){L=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,L=x;break e}L=l.return}}if(B=i,Kt(),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(wo,e)}catch{}r=!0}return r}finally{U=n,He.transition=t}}return!1}function ic(e,t,n){t=Yn(n,t),t=bd(e,t,1),e=At(e,t,1),t=Se(),e!==null&&(Zr(e,1,t),je(e,t))}function J(e,t,n){if(e.tag===3)ic(e,e,n);else for(;t!==null;){if(t.tag===3){ic(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_t===null||!_t.has(r))){e=Yn(n,e),e=qd(t,e,1),t=At(t,e,1),e=Se(),t!==null&&(Zr(t,1,e),je(t,e));break}}t=t.return}}function dy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Se(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(de&n)===n&&(le===4||le===3&&(de&130023424)===de&&500>ee()-Sa?ln(e,0):wa|=n),je(e,t)}function vh(e,t){t===0&&(e.mode&1?(t=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):t=1);var n=Se();e=yt(e,t),e!==null&&(Zr(e,t,n),je(e,n))}function hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vh(e,n)}function py(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(T(314))}r!==null&&r.delete(t),vh(e,n)}var xh;xh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,ty(e,t,n);Te=!!(e.flags&131072)}else Te=!1,G&&t.flags&1048576&&Cd(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var i=Hn(t,ve.current);Un(t,n),i=pa(null,t,r,e,i,n);var o=ma();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,Ne(r)?(o=!0,Zi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ua(t),i.updater=No,t.stateNode=i,i._reactInternals=t,sl(t,r,e,n),t=ul(null,t,r,!0,o,n)):(t.tag=0,G&&o&&na(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gy(r),e=Ye(r,e),i){case 0:t=al(null,t,r,e,n);break e;case 1:t=Yu(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Gu(null,t,r,Ye(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ye(r,i),al(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ye(r,i),Yu(e,t,r,i,n);case 3:e:{if(nh(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ld(e,t),to(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Yn(Error(T(423)),t),t=Xu(e,t,r,n,i);break e}else if(r!==i){i=Yn(Error(T(424)),t),t=Xu(e,t,r,n,i);break e}else for(De=Dt(t.stateNode.containerInfo.firstChild),Ae=t,G=!0,Ze=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=vt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Md(t),e===null&&rl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,qs(r,i)?s=null:o!==null&&qs(r,o)&&(t.flags|=32),th(e,t),we(e,t,s,n),t.child;case 6:return e===null&&rl(t),null;case 13:return rh(e,t,n);case 4:return ca(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ye(r,i),Qu(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,$(Ji,r._currentValue),r._currentValue=s,o!==null)if(Je(o.value,s)){if(o.children===i.children&&!Ee.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=dt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),il(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(T(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),il(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ke(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=Ye(r,t.pendingProps),i=Ye(r.type,i),Gu(e,t,r,i,n);case 15:return Jd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ye(r,i),Ai(e,t),t.tag=1,Ne(r)?(e=!0,Zi(t)):e=!1,Un(t,n),Zd(t,r,i),sl(t,r,i,n),ul(null,t,r,!0,e,n);case 19:return ih(e,t,n);case 22:return eh(e,t,n)}throw Error(T(156,t.tag))};function wh(e,t){return Gf(e,t)}function my(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 We(e,t,n,r){return new my(e,t,n,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gy(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hl)return 11;if(e===Kl)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=We(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 Ii(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ta(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case kn:return an(n.children,i,o,t);case Wl:s=8,i|=8;break;case Ms:return e=We(12,n,t,i|2),e.elementType=Ms,e.lanes=o,e;case Rs:return e=We(13,n,t,i),e.elementType=Rs,e.lanes=o,e;case Vs:return e=We(19,n,t,i),e.elementType=Vs,e.lanes=o,e;case Mf:return Mo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jf:s=10;break e;case Lf:s=9;break e;case Hl:s=11;break e;case Kl:s=14;break e;case Ct:s=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=We(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Mo(e,t,n,r){return e=We(22,e,r,t),e.elementType=Mf,e.lanes=n,e.stateNode={isHidden:!1},e}function ps(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function ms(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(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=Xo(0),this.expirationTimes=Xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ea(e,t,n,r,i,o,s,l,a){return e=new yy(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=We(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ua(o),e}function vy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Sh(e){if(!e)return Bt;e=e._reactInternals;e:{if(gn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ne(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ne(n))return Sd(e,n,t)}return t}function kh(e,t,n,r,i,o,s,l,a){return e=Ea(n,r,!0,e,i,o,s,l,a),e.context=Sh(null),n=e.current,r=Se(),i=Ot(n),o=dt(r,i),o.callback=t??null,At(n,o,i),e.current.lanes=i,Zr(e,i,r),je(e,r),e}function Ro(e,t,n,r){var i=t.current,o=Se(),s=Ot(i);return n=Sh(n),t.context===null?t.context=n:t.pendingContext=n,t=dt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=At(i,t,s),e!==null&&(qe(e,i,s,o),Ri(e,i,s)),s}function uo(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 oc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Na(e,t){oc(e,t),(e=e.alternate)&&oc(e,t)}function xy(){return null}var Ch=typeof reportError=="function"?reportError:function(e){console.error(e)};function ja(e){this._internalRoot=e}Vo.prototype.render=ja.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ro(e,t,null,null)};Vo.prototype.unmount=ja.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pn(function(){Ro(null,e,null,null)}),t[gt]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ed();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Et.length&&t!==0&&t<Et[n].priority;n++);Et.splice(n,0,e),n===0&&nd(e)}};function La(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Do(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sc(){}function wy(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=uo(s);o.call(u)}}var s=kh(t,r,e,0,null,!1,!1,"",sc);return e._reactRootContainer=s,e[gt]=s.current,Ir(e.nodeType===8?e.parentNode:e),pn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=uo(a);l.call(u)}}var a=Ea(e,0,!1,null,null,!1,!1,"",sc);return e._reactRootContainer=a,e[gt]=a.current,Ir(e.nodeType===8?e.parentNode:e),pn(function(){Ro(t,a,n,r)}),a}function Ao(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=uo(s);l.call(a)}}Ro(t,s,e,i)}else s=wy(n,t,e,i,r);return uo(s)}qf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hr(t.pendingLanes);n!==0&&(Yl(t,n|1),je(t,ee()),!(B&6)&&(Xn=ee()+500,Kt()))}break;case 13:pn(function(){var r=yt(e,1);if(r!==null){var i=Se();qe(r,e,1,i)}}),Na(e,1)}};Xl=function(e){if(e.tag===13){var t=yt(e,134217728);if(t!==null){var n=Se();qe(t,e,134217728,n)}Na(e,134217728)}};Jf=function(e){if(e.tag===13){var t=Ot(e),n=yt(e,t);if(n!==null){var r=Se();qe(n,e,t,r)}Na(e,t)}};ed=function(){return U};td=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};$s=function(e,t,n){switch(t){case"input":if(_s(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=Po(r);if(!i)throw Error(T(90));Vf(r),_s(r,i)}}}break;case"textarea":Af(e,n);break;case"select":t=n.value,t!=null&&In(e,!!n.multiple,t,!1)}};Uf=ka;$f=pn;var Sy={usingClientEntryPoint:!1,Events:[qr,En,Po,zf,Bf,ka]},ar={findFiberByHostInstance:nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ky={bundleType:ar.bundleType,version:ar.version,rendererPackageName:ar.rendererPackageName,rendererConfig:ar.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Kf(e),e===null?null:e.stateNode},findFiberByHostInstance:ar.findFiberByHostInstance||xy,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 Si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Si.isDisabled&&Si.supportsFiber)try{wo=Si.inject(ky),it=Si}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sy;Ie.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!La(t))throw Error(T(200));return vy(e,t,null,n)};Ie.createRoot=function(e,t){if(!La(e))throw Error(T(299));var n=!1,r="",i=Ch;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ea(e,1,!1,null,null,n,!1,r,i),e[gt]=t.current,Ir(e.nodeType===8?e.parentNode:e),new ja(t)};Ie.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Kf(t),e=e===null?null:e.stateNode,e};Ie.flushSync=function(e){return pn(e)};Ie.hydrate=function(e,t,n){if(!Do(t))throw Error(T(200));return Ao(null,e,t,!0,n)};Ie.hydrateRoot=function(e,t,n){if(!La(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Ch;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=kh(t,null,e,1,n??null,i,!1,o,s),e[gt]=t.current,Ir(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 Vo(t)};Ie.render=function(e,t,n){if(!Do(t))throw Error(T(200));return Ao(null,e,t,!1,n)};Ie.unmountComponentAtNode=function(e){if(!Do(e))throw Error(T(40));return e._reactRootContainer?(pn(function(){Ao(null,null,e,!1,function(){e._reactRootContainer=null,e[gt]=null})}),!0):!1};Ie.unstable_batchedUpdates=ka;Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Do(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Ao(e,t,n,!1,r)};Ie.version="18.3.1-next-f1338f8080-20240426";function Ph(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ph)}catch(e){console.error(e)}}Ph(),Pf.exports=Ie;var Cy=Pf.exports,Th,lc=Cy;Th=lc.createRoot,lc.hydrateRoot;const Eh=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_o=k.createContext({}),Oo=k.createContext(null),Io=typeof document<"u",Ma=Io?k.useLayoutEffect:k.useEffect,Nh=k.createContext({strict:!1}),Ra=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Py="framerAppearId",jh="data-"+Ra(Py);function Ty(e,t,n,r){const{visualElement:i}=k.useContext(_o),o=k.useContext(Nh),s=k.useContext(Oo),l=k.useContext(Eh).reducedMotion,a=k.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;k.useInsertionEffect(()=>{u&&u.update(n,s)});const c=k.useRef(!!(n[jh]&&!window.HandoffComplete));return Ma(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),k.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Dn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ey(e,t,n){return k.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Dn(n)&&(n.current=r))},[t])}function Qr(e){return typeof e=="string"||Array.isArray(e)}function Fo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Va=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Da=["initial",...Va];function zo(e){return Fo(e.animate)||Da.some(t=>Qr(e[t]))}function Lh(e){return!!(zo(e)||e.variants)}function Ny(e,t){if(zo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qr(n)?n:void 0,animate:Qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function jy(e){const{initial:t,animate:n}=Ny(e,k.useContext(_o));return k.useMemo(()=>({initial:t,animate:n}),[ac(t),ac(n)])}function ac(e){return Array.isArray(e)?e.join(" "):e}const uc={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"]},Gr={};for(const e in uc)Gr[e]={isEnabled:t=>uc[e].some(n=>!!t[n])};function Ly(e){for(const t in e)Gr[t]={...Gr[t],...e[t]}}const Aa=k.createContext({}),Mh=k.createContext({}),My=Symbol.for("motionComponentSymbol");function Ry({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Ly(e);function o(l,a){let u;const c={...k.useContext(Eh),...l,layoutId:Vy(l)},{isStatic:f}=c,d=jy(l),m=r(l,f);if(!f&&Io){d.visualElement=Ty(i,m,c,t);const y=k.useContext(Mh),v=k.useContext(Nh).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,y))}return k.createElement(_o.Provider,{value:d},u&&d.visualElement?k.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,Ey(m,d.visualElement,a),m,f,d.visualElement))}const s=k.forwardRef(o);return s[My]=i,s}function Vy({layoutId:e}){const t=k.useContext(Aa).id;return t&&e!==void 0?t+"-"+e:e}function Dy(e){function t(r,i={}){return Ry(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 Ay=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _a(e){return typeof e!="string"||e.includes("-")?!1:!!(Ay.indexOf(e)>-1||/[A-Z]/.test(e))}const co={};function _y(e){Object.assign(co,e)}const ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yn=new Set(ei);function Rh(e,{layout:t,layoutId:n}){return yn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!co[e]||e==="opacity")}const Le=e=>!!(e&&e.getVelocity),Oy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iy=ei.length;function Fy(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Iy;s++){const l=ei[s];if(e[l]!==void 0){const a=Oy[l]||l;o+=`${a}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const Vh=e=>t=>typeof t=="string"&&t.startsWith(e),Dh=Vh("--"),Sl=Vh("var(--"),zy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,By=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ut=(e,t,n)=>Math.min(Math.max(n,e),t),vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tr={...vn,transform:e=>Ut(0,1,e)},ki={...vn,default:1},Er=e=>Math.round(e*1e5)/1e5,Bo=/(-)?([\d]*\.?[\d])+/g,Ah=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Uy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ti(e){return typeof e=="string"}const ni=e=>({test:t=>ti(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kt=ni("deg"),st=ni("%"),A=ni("px"),$y=ni("vh"),Wy=ni("vw"),cc={...st,parse:e=>st.parse(e)/100,transform:e=>st.transform(e*100)},fc={...vn,transform:Math.round},_h={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:kt,rotateX:kt,rotateY:kt,rotateZ:kt,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:kt,skewX:kt,skewY:kt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Tr,originX:cc,originY:cc,originZ:A,zIndex:fc,fillOpacity:Tr,strokeOpacity:Tr,numOctaves:fc};function Oa(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(Dh(f)){o[f]=d;continue}const m=_h[f],y=By(d,m);if(yn.has(f)){if(a=!0,s[f]=y,!c)continue;d!==(m.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=y):i[f]=y}if(t.transform||(a||r?i.transform=Fy(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:m=0}=l;i.transformOrigin=`${f} ${d} ${m}`}}const Ia=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Oh(e,t,n){for(const r in t)!Le(t[r])&&!Rh(r,n)&&(e[r]=t[r])}function Hy({transformTemplate:e},t,n){return k.useMemo(()=>{const r=Ia();return Oa(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Ky(e,t,n){const r=e.style||{},i={};return Oh(i,r,e),Object.assign(i,Hy(e,t,n)),e.transformValues?e.transformValues(i):i}function Qy(e,t,n){const r={},i=Ky(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 Gy=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 fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gy.has(e)}let Ih=e=>!fo(e);function Yy(e){e&&(Ih=t=>t.startsWith("on")?!fo(t):e(t))}try{Yy(require("@emotion/is-prop-valid").default)}catch{}function Xy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ih(i)||n===!0&&fo(i)||!t&&!fo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dc(e,t,n){return typeof e=="string"?e:A.transform(t+n*e)}function Zy(e,t,n){const r=dc(t,e.x,e.width),i=dc(n,e.y,e.height);return`${r} ${i}`}const by={offset:"stroke-dashoffset",array:"stroke-dasharray"},qy={offset:"strokeDashoffset",array:"strokeDasharray"};function Jy(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?by:qy;e[o.offset]=A.transform(-r);const s=A.transform(t),l=A.transform(n);e[o.array]=`${s} ${l}`}function Fa(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Oa(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=Zy(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&Jy(m,s,l,a,!1)}const Fh=()=>({...Ia(),attrs:{}}),za=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ev(e,t,n,r){const i=k.useMemo(()=>{const o=Fh();return Fa(o,t,{enableHardwareAcceleration:!1},za(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Oh(o,e.style,e),i.style={...o,...i.style}}return i}function tv(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(_a(n)?ev:Qy)(r,o,s,n),c={...Xy(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=k.useMemo(()=>Le(f)?f.get():f,[f]);return k.createElement(n,{...c,children:d})}}function zh(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Bh=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 Uh(e,t,n,r){zh(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Bh.has(i)?i:Ra(i),t.attrs[i])}function Ba(e,t){const{style:n}=e,r={};for(const i in n)(Le(n[i])||t.style&&Le(t.style[i])||Rh(i,e))&&(r[i]=n[i]);return r}function $h(e,t){const n=Ba(e,t);for(const r in e)if(Le(e[r])||Le(t[r])){const i=ei.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ua(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 Wh(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const ho=e=>Array.isArray(e),nv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rv=e=>ho(e)?e[e.length-1]||0:e;function Fi(e){const t=Le(e)?e.get():e;return nv(t)?t.toValue():t}function iv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:ov(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const Hh=e=>(t,n)=>{const r=k.useContext(_o),i=k.useContext(Oo),o=()=>iv(e,t,r,i);return n?o():Wh(o)};function ov(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Fi(o[d]);let{initial:s,animate:l}=e;const a=zo(e),u=Lh(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;return f&&typeof f!="boolean"&&!Fo(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{const y=Ua(e,m);if(!y)return;const{transitionEnd:v,transition:P,...g}=y;for(const h in g){let p=g[h];if(Array.isArray(p)){const x=c?p.length-1:0;p=p[x]}p!==null&&(i[h]=p)}for(const h in v)i[h]=v[h]}),i}const te=e=>e;class hc{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 sv(e){let t=new hc,n=new hc,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(a),d.add(a)&&f&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];c(a),s.has(c)&&(l.schedule(c),e())}i=!1,o&&(o=!1,l.process(a))}};return l}const Ci=["prepare","read","update","preRender","render","postRender"],lv=40;function av(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ci.reduce((f,d)=>(f[d]=sv(()=>n=!0),f),{}),s=f=>o[f].process(i),l=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,lv),1),i.timestamp=f,i.isProcessing=!0,Ci.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ci.reduce((f,d)=>{const m=o[d];return f[d]=(y,v=!1,P=!1)=>(n||a(),m.schedule(y,v,P)),f},{}),cancel:f=>Ci.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:W,cancel:xt,state:ge,steps:gs}=av(typeof requestAnimationFrame<"u"?requestAnimationFrame:te,!0),uv={useVisualState:Hh({scrapeMotionValuesFromProps:$h,createRenderState:Fh,onMount:(e,t,{renderState:n,latestValues:r})=>{W.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),W.render(()=>{Fa(n,r,{enableHardwareAcceleration:!1},za(t.tagName),e.transformTemplate),Uh(t,n)})}})},cv={useVisualState:Hh({scrapeMotionValuesFromProps:Ba,createRenderState:Ia})};function fv(e,{forwardMotionProps:t=!1},n,r){return{..._a(e)?uv:cv,preloadedFeatures:n,useRender:tv(t),createVisualElement:r,Component:e}}function ft(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Kh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Uo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const dv=e=>t=>Kh(t)&&e(t,Uo(t));function ht(e,t,n,r){return ft(e,t,dv(n),r)}const hv=(e,t)=>n=>t(e(n)),Ft=(...e)=>e.reduce(hv);function Qh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const pc=Qh("dragHorizontal"),mc=Qh("dragVertical");function Gh(e){let t=!1;if(e==="y")t=mc();else if(e==="x")t=pc();else{const n=pc(),r=mc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Yh(){const e=Gh(!0);return e?(e(),!1):!0}class Qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function gc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Yh())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&W.update(()=>l[r](o,s))};return ht(e.current,n,i,{passive:!e.getProps()[r]})}class pv extends Qt{mount(){this.unmount=Ft(gc(this.node,!0),gc(this.node,!1))}unmount(){}}class mv extends Qt{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=Ft(ft(this.node.current,"focus",()=>this.onFocus()),ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xh=(e,t)=>t?e===t?!0:Xh(e,t.parentElement):!1;function ys(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Uo(n))}class gv extends Qt{constructor(){super(...arguments),this.removeStartListeners=te,this.removeEndListeners=te,this.removeAccessibleListeners=te,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=ht(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();W.update(()=>{!f&&!Xh(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=ht(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ft(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||ys("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&W.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=ft(this.node.current,"keyup",s),ys("down",(l,a)=>{this.startPress(l,a)})},n=ft(this.node.current,"keydown",t),r=()=>{this.isPressing&&ys("cancel",(o,s)=>this.cancelPress(o,s))},i=ft(this.node.current,"blur",r);this.removeAccessibleListeners=Ft(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&&W.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Yh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&W.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ht(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ft(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ft(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kl=new WeakMap,vs=new WeakMap,yv=e=>{const t=kl.get(e.target);t&&t(e)},vv=e=>{e.forEach(yv)};function xv({root:e,...t}){const n=e||document;vs.has(n)||vs.set(n,{});const r=vs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vv,{root:e,...t})),r[i]}function wv(e,t,n){const r=xv(t);return kl.set(e,n),r.observe(e),()=>{kl.delete(e),r.unobserve(e)}}const Sv={some:0,all:1};class kv extends Qt{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:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sv[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return wv(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Cv(t,n))&&this.startObserver()}unmount(){}}function Cv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pv={inView:{Feature:kv},tap:{Feature:gv},focus:{Feature:mv},hover:{Feature:pv}};function Zh(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 Tv(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Ev(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function $o(e,t,n){const r=e.getProps();return Ua(r,t,n!==void 0?n:r.custom,Tv(e),Ev(e))}let $a=te;const un=e=>e*1e3,pt=e=>e/1e3,Nv={current:!1},bh=e=>Array.isArray(e)&&typeof e[0]=="number";function qh(e){return!!(!e||typeof e=="string"&&Jh[e]||bh(e)||Array.isArray(e)&&e.every(qh))}const mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function ep(e){if(e)return bh(e)?mr(e):Array.isArray(e)?e.map(ep):Jh[e]}function jv(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=ep(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Lv(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const tp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Mv=1e-7,Rv=12;function Vv(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=tp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Mv&&++l<Rv);return s}function ri(e,t,n,r){if(e===t&&n===r)return te;const i=o=>Vv(o,0,1,e,n);return o=>o===0||o===1?o:tp(i(o),t,r)}const Dv=ri(.42,0,1,1),Av=ri(0,0,.58,1),np=ri(.42,0,.58,1),_v=e=>Array.isArray(e)&&typeof e[0]!="number",rp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ip=e=>t=>1-e(1-t),Wa=e=>1-Math.sin(Math.acos(e)),op=ip(Wa),Ov=rp(Wa),sp=ri(.33,1.53,.69,.99),Ha=ip(sp),Iv=rp(Ha),Fv=e=>(e*=2)<1?.5*Ha(e):.5*(2-Math.pow(2,-10*(e-1))),zv={linear:te,easeIn:Dv,easeInOut:np,easeOut:Av,circIn:Wa,circInOut:Ov,circOut:op,backIn:Ha,backInOut:Iv,backOut:sp,anticipate:Fv},yc=e=>{if(Array.isArray(e)){$a(e.length===4);const[t,n,r,i]=e;return ri(t,n,r,i)}else if(typeof e=="string")return zv[e];return e},Ka=(e,t)=>n=>!!(ti(n)&&Uy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),lp=(e,t,n)=>r=>{if(!ti(r))return r;const[i,o,s,l]=r.match(Bo);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Bv=e=>Ut(0,255,e),xs={...vn,transform:e=>Math.round(Bv(e))},sn={test:Ka("rgb","red"),parse:lp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xs.transform(e)+", "+xs.transform(t)+", "+xs.transform(n)+", "+Er(Tr.transform(r))+")"};function Uv(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 Cl={test:Ka("#"),parse:Uv,transform:sn.transform},An={test:Ka("hsl","hue"),parse:lp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+st.transform(Er(t))+", "+st.transform(Er(n))+", "+Er(Tr.transform(r))+")"},xe={test:e=>sn.test(e)||Cl.test(e)||An.test(e),parse:e=>sn.test(e)?sn.parse(e):An.test(e)?An.parse(e):Cl.parse(e),transform:e=>ti(e)?e:e.hasOwnProperty("red")?sn.transform(e):An.transform(e)},Z=(e,t,n)=>-n*e+n*t+e;function ws(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 $v({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=ws(a,l,e+1/3),o=ws(a,l,e),s=ws(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Ss=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Wv=[Cl,sn,An],Hv=e=>Wv.find(t=>t.test(e));function vc(e){const t=Hv(e);let n=t.parse(e);return t===An&&(n=$v(n)),n}const ap=(e,t)=>{const n=vc(e),r=vc(t),i={...n};return o=>(i.red=Ss(n.red,r.red,o),i.green=Ss(n.green,r.green,o),i.blue=Ss(n.blue,r.blue,o),i.alpha=Z(n.alpha,r.alpha,o),sn.transform(i))};function Kv(e){var t,n;return isNaN(e)&&ti(e)&&(((t=e.match(Bo))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ah))===null||n===void 0?void 0:n.length)||0)>0}const up={regex:zy,countKey:"Vars",token:"${v}",parse:te},cp={regex:Ah,countKey:"Colors",token:"${c}",parse:xe.parse},fp={regex:Bo,countKey:"Numbers",token:"${n}",parse:vn.parse};function ks(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function po(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ks(n,up),ks(n,cp),ks(n,fp),n}function dp(e){return po(e).values}function hp(e){const{values:t,numColors:n,numVars:r,tokenised:i}=po(e),o=t.length;return s=>{let l=i;for(let a=0;a<o;a++)a<r?l=l.replace(up.token,s[a]):a<r+n?l=l.replace(cp.token,xe.transform(s[a])):l=l.replace(fp.token,Er(s[a]));return l}}const Qv=e=>typeof e=="number"?0:e;function Gv(e){const t=dp(e);return hp(e)(t.map(Qv))}const $t={test:Kv,parse:dp,createTransformer:hp,getAnimatableNone:Gv},pp=(e,t)=>n=>`${n>0?t:e}`;function mp(e,t){return typeof e=="number"?n=>Z(e,t,n):xe.test(e)?ap(e,t):e.startsWith("var(")?pp(e,t):yp(e,t)}const gp=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>mp(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},Yv=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mp(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},yp=(e,t)=>{const n=$t.createTransformer(t),r=po(e),i=po(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ft(gp(r.values,i.values),n):pp(e,t)},Yr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xc=(e,t)=>n=>Z(e,t,n);function Xv(e){return typeof e=="number"?xc:typeof e=="string"?xe.test(e)?ap:yp:Array.isArray(e)?gp:typeof e=="object"?Yv:xc}function Zv(e,t,n){const r=[],i=n||Xv(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||te:t;l=Ft(a,l)}r.push(l)}return r}function vp(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if($a(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Zv(t,r,i),l=s.length,a=u=>{let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=Yr(e[c],e[c+1],u);return s[c](f)};return n?u=>a(Ut(e[0],e[o-1],u)):a}function bv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Yr(0,t,r);e.push(Z(n,1,i))}}function qv(e){const t=[0];return bv(t,e.length-1),t}function Jv(e,t){return e.map(n=>n*t)}function e0(e,t){return e.map(()=>t||np).splice(0,e.length-1)}function mo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_v(r)?r.map(yc):yc(r),o={done:!1,value:t[0]},s=Jv(n&&n.length===t.length?n:qv(t),e),l=vp(s,t,{ease:Array.isArray(i)?i:e0(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function xp(e,t){return t?e*(1e3/t):0}const t0=5;function wp(e,t,n){const r=Math.max(t-t0,0);return xp(n-e(r),t-r)}const Cs=.001,n0=.01,r0=10,i0=.05,o0=1;function s0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Ut(i0,o0,s),e=Ut(n0,r0,pt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,m=Pl(u,s),y=Math.exp(-f);return Cs-d/m*y},o=u=>{const f=u*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=Pl(Math.pow(u,2),s);return(-i(u)+Cs>0?-1:1)*((d-m)*y)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Cs+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=a0(i,o,l);if(e=un(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const l0=12;function a0(e,t,n){let r=n;for(let i=1;i<l0;i++)r=r-e(r)/t(r);return r}function Pl(e,t){return e*Math.sqrt(1-t*t)}const u0=["duration","bounce"],c0=["stiffness","damping","mass"];function wc(e,t){return t.some(n=>e[n]!==void 0)}function f0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wc(e,c0)&&wc(e,u0)){const n=s0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Sp({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=f0({...r,velocity:-pt(r.velocity||0)}),m=f||0,y=a/(2*Math.sqrt(l*u)),v=o-i,P=pt(Math.sqrt(l/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let h;if(y<1){const p=Pl(P,y);h=x=>{const S=Math.exp(-y*P*x);return o-S*((m+y*P*v)/p*Math.sin(p*x)+v*Math.cos(p*x))}}else if(y===1)h=p=>o-Math.exp(-P*p)*(v+(m+P*v)*p);else{const p=P*Math.sqrt(y*y-1);h=x=>{const S=Math.exp(-y*P*x),E=Math.min(p*x,300);return o-S*((m+y*P*v)*Math.sinh(E)+p*v*Math.cosh(E))/p}}return{calculatedDuration:d&&c||null,next:p=>{const x=h(p);if(d)s.done=p>=c;else{let S=m;p!==0&&(y<1?S=wp(h,p,x):S=0);const E=Math.abs(S)<=n,N=Math.abs(o-x)<=t;s.done=E&&N}return s.value=s.done?o:x,s}}}function Sc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},m=C=>l!==void 0&&C<l||a!==void 0&&C>a,y=C=>l===void 0?a:a===void 0||Math.abs(l-C)<Math.abs(a-C)?l:a;let v=n*t;const P=f+v,g=s===void 0?P:s(P);g!==P&&(v=g-f);const h=C=>-v*Math.exp(-C/r),p=C=>g+h(C),x=C=>{const R=h(C),D=p(C);d.done=Math.abs(R)<=u,d.value=d.done?g:D};let S,E;const N=C=>{m(d.value)&&(S=C,E=Sp({keyframes:[d.value,y(d.value)],velocity:wp(p,C,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:C=>{let R=!1;return!E&&S===void 0&&(R=!0,x(C),N(C)),S!==void 0&&C>S?E.next(C-S):(!R&&x(C),d)}}}const d0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>W.update(t,!0),stop:()=>xt(t),now:()=>ge.isProcessing?ge.timestamp:performance.now()}},kc=2e4;function Cc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<kc;)t+=n,r=e.next(t);return t>=kc?1/0:t}const h0={decay:Sc,inertia:Sc,tween:mo,keyframes:mo,spring:Sp};function go({autoplay:e=!0,delay:t=0,driver:n=d0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let m=1,y=!1,v,P;const g=()=>{P=new Promise(_=>{v=_})};g();let h;const p=h0[i]||mo;let x;p!==mo&&typeof r[0]!="number"&&(x=vp([0,100],r,{clamp:!1}),r=[0,100]);const S=p({...d,keyframes:r});let E;l==="mirror"&&(E=p({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let N="idle",C=null,R=null,D=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Cc(S));const{calculatedDuration:ne}=S;let Y=1/0,ce=1/0;ne!==null&&(Y=ne+s,ce=Y*(o+1)-s);let re=0;const z=_=>{if(R===null)return;m>0&&(R=Math.min(R,_)),m<0&&(R=Math.min(_-ce/m,R)),C!==null?re=C:re=Math.round(_-R)*m;const Q=re-t*(m>=0?1:-1),Gt=m>=0?Q<0:Q>ce;re=Math.max(Q,0),N==="finished"&&C===null&&(re=ce);let et=re,xn=S;if(o){const Wo=Math.min(re,ce)/Y;let ii=Math.floor(Wo),Xt=Wo%1;!Xt&&Wo>=1&&(Xt=1),Xt===1&&ii--,ii=Math.min(ii,o+1),!!(ii%2)&&(l==="reverse"?(Xt=1-Xt,s&&(Xt-=s/Y)):l==="mirror"&&(xn=E)),et=Ut(0,1,Xt)*Y}const Re=Gt?{done:!1,value:r[0]}:xn.next(et);x&&(Re.value=x(Re.value));let{done:Yt}=Re;!Gt&&ne!==null&&(Yt=m>=0?re>=ce:re<=0);const Zp=C===null&&(N==="finished"||N==="running"&&Yt);return f&&f(Re.value),Zp&&j(),Re},V=()=>{h&&h.stop(),h=void 0},F=()=>{N="idle",V(),v(),g(),R=D=null},j=()=>{N="finished",c&&c(),V(),v()},M=()=>{if(y)return;h||(h=n(z));const _=h.now();a&&a(),C!==null?R=_-C:(!R||N==="finished")&&(R=_),N==="finished"&&g(),D=R,C=null,N="running",h.start()};e&&M();const O={then(_,Q){return P.then(_,Q)},get time(){return pt(re)},set time(_){_=un(_),re=_,C!==null||!h||m===0?C=_:R=h.now()-_/m},get duration(){const _=S.calculatedDuration===null?Cc(S):S.calculatedDuration;return pt(_)},get speed(){return m},set speed(_){_===m||!h||(m=_,O.time=pt(re))},get state(){return N},play:M,pause:()=>{N="paused",C=re},stop:()=>{y=!0,N!=="idle"&&(N="idle",u&&u(),F())},cancel:()=>{D!==null&&z(D),F()},complete:()=>{N="finished"},sample:_=>(R=0,z(_))};return O}function p0(e){let t;return()=>(t===void 0&&(t=e()),t)}const m0=p0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),g0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pi=10,y0=2e4,v0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!qh(t.ease);function x0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(m0()&&g0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a,u=!1;const c=()=>{a=new Promise(p=>{l=p})};c();let{keyframes:f,duration:d=300,ease:m,times:y}=i;if(v0(t,i)){const p=go({...i,repeat:0,delay:0});let x={done:!1,value:f[0]};const S=[];let E=0;for(;!x.done&&E<y0;)x=p.sample(E),S.push(x.value),E+=Pi;y=void 0,f=S,d=E-Pi,m="linear"}const v=jv(e.owner.current,t,f,{...i,duration:d,ease:m,times:y}),P=()=>{u=!1,v.cancel()},g=()=>{u=!0,W.update(P),l(),c()};return v.onfinish=()=>{u||(e.set(Lv(f,i)),r&&r(),g())},{then(p,x){return a.then(p,x)},attachTimeline(p){return v.timeline=p,v.onfinish=null,te},get time(){return pt(v.currentTime||0)},set time(p){v.currentTime=un(p)},get speed(){return v.playbackRate},set speed(p){v.playbackRate=p},get duration(){return pt(d)},play:()=>{s||(v.play(),xt(P))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:p}=v;if(p){const x=go({...i,autoplay:!1});e.setWithVelocity(x.sample(p-Pi).value,x.sample(p).value,Pi)}g()},complete:()=>{u||v.finish()},cancel:g}}function w0({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:te,pause:te,stop:te,then:o=>(o(),Promise.resolve()),cancel:te,complete:te});return t?go({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const S0={type:"spring",stiffness:500,damping:25,restSpeed:10},k0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),C0={type:"keyframes",duration:.8},P0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T0=(e,{keyframes:t})=>t.length>2?C0:yn.has(e)?e.startsWith("scale")?k0(t[1]):S0:P0,Tl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url(")),E0=new Set(["brightness","contrast","saturate","opacity"]);function N0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bo)||[];if(!r)return e;const i=n.replace(r,"");let o=E0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const j0=/([a-z-]*)\(.*?\)/g,El={...$t,getAnimatableNone:e=>{const t=e.match(j0);return t?t.map(N0).join(" "):e}},L0={..._h,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:El,WebkitFilter:El},Qa=e=>L0[e];function kp(e,t){let n=Qa(e);return n!==El&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Cp=e=>/^0[^.\s]+$/.test(e);function M0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Cp(e)}function R0(e,t,n,r){const i=Tl(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),M0(o[u])&&a.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(l=o[u]);if(i&&a.length&&l)for(let u=0;u<a.length;u++){const c=a[u];o[c]=kp(t,l)}return o}function V0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}function Ga(e,t){return e[t]||e.default||e}const D0={skipAnimations:!1},Ya=(e,t,n,r={})=>i=>{const o=Ga(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-un(s);const a=R0(t,e,n,o),u=a[0],c=a[a.length-1],f=Tl(e,u),d=Tl(e,c);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(V0(o)||(m={...m,...T0(e,m)}),m.duration&&(m.duration=un(m.duration)),m.repeatDelay&&(m.repeatDelay=un(m.repeatDelay)),!f||!d||Nv.current||o.type===!1||D0.skipAnimations)return w0(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=x0(t,e,m);if(y)return y}return go(m)};function yo(e){return!!(Le(e)&&e.add)}const Pp=e=>/^\-?\d*\.?\d+$/.test(e);function Xa(e,t){e.indexOf(t)===-1&&e.push(t)}function Za(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ba{constructor(){this.subscriptions=[]}add(t){return Xa(this.subscriptions,t),()=>Za(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 o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const A0=e=>!isNaN(parseFloat(e));class _0{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:o,timestamp:s}=ge;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,W.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=()=>W.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=A0(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ba);const r=this.events[t].add(n);return t==="change"?()=>{r(),W.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?xp(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 Zn(e,t){return new _0(e,t)}const Tp=e=>t=>t.test(e),O0={test:e=>e==="auto",parse:e=>e},Ep=[vn,A,st,kt,Wy,$y,O0],ur=e=>Ep.find(Tp(e)),I0=[...Ep,xe,$t],F0=e=>I0.find(Tp(e));function z0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zn(n))}function B0(e,t){const n=$o(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=rv(o[s]);z0(e,s,l)}}function U0(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const a=o[l],u=t[a];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&i!==void 0?i:t[a]),c!=null&&(typeof c=="string"&&(Pp(c)||Cp(c))?c=parseFloat(c):!F0(c)&&$t.test(u)&&(c=kp(a,u)),e.addValue(a,Zn(c,{owner:e})),n[a]===void 0&&(n[a]=c),c!==null&&e.setBaseTarget(a,c))}}function $0(e,t){return t?(t[e]||t.default||t).from:void 0}function W0(e,t,n){const r={};for(const i in e){const o=$0(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function H0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function K0(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 Np(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f),m=l[f];if(!d||m===void 0||c&&H0(c,f))continue;const y={delay:n,elapsed:0,...Ga(o||{},f)};if(window.HandoffAppearAnimations){const g=e.getProps()[jh];if(g){const h=window.HandoffAppearAnimations(g,f,d,W);h!==null&&(y.elapsed=h,y.isHandoff=!0)}}let v=!y.isHandoff&&!K0(d,m);if(y.type==="spring"&&(d.getVelocity()||y.velocity)&&(v=!1),d.animation&&(v=!1),v)continue;d.start(Ya(f,d,m,e.shouldReduceMotion&&yn.has(f)?{type:!1}:y));const P=d.animation;yo(a)&&(a.add(f),P.then(()=>a.remove(f))),u.push(P)}return s&&Promise.all(u).then(()=>{s&&B0(e,s)}),u}function Nl(e,t,n={}){const r=$o(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Np(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Q0(e,t,u+a,c,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function Q0(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(G0).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Nl(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function G0(e,t){return e.sortNodePosition(t)}function Y0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Nl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Nl(e,t,n);else{const i=typeof t=="function"?$o(e,t,n.custom):t;r=Promise.all(Np(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const X0=[...Va].reverse(),Z0=Va.length;function b0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y0(e,n,r)))}function q0(e){let t=b0(e);const n=e1();let r=!0;const i=(a,u)=>{const c=$o(e,u);if(c){const{transition:f,transitionEnd:d,...m}=c;a={...a,...m,...d}}return a};function o(a){t=a(e)}function s(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],m=new Set;let y={},v=1/0;for(let g=0;g<Z0;g++){const h=X0[g],p=n[h],x=c[h]!==void 0?c[h]:f[h],S=Qr(x),E=h===u?p.isActive:null;E===!1&&(v=g);let N=x===f[h]&&x!==c[h]&&S;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),p.protectedKeys={...y},!p.isActive&&E===null||!x&&!p.prevProp||Fo(x)||typeof x=="boolean")continue;let R=J0(p.prevProp,x)||h===u&&p.isActive&&!N&&S||g>v&&S,D=!1;const ne=Array.isArray(x)?x:[x];let Y=ne.reduce(i,{});E===!1&&(Y={});const{prevResolvedValues:ce={}}=p,re={...ce,...Y},z=V=>{R=!0,m.has(V)&&(D=!0,m.delete(V)),p.needsAnimating[V]=!0};for(const V in re){const F=Y[V],j=ce[V];if(y.hasOwnProperty(V))continue;let M=!1;ho(F)&&ho(j)?M=!Zh(F,j):M=F!==j,M?F!==void 0?z(V):m.add(V):F!==void 0&&m.has(V)?z(V):p.protectedKeys[V]=!0}p.prevProp=x,p.prevResolvedValues=Y,p.isActive&&(y={...y,...Y}),r&&e.blockInitialAnimation&&(R=!1),R&&(!N||D)&&d.push(...ne.map(V=>({animation:V,options:{type:h,...a}})))}if(m.size){const g={};m.forEach(h=>{const p=e.getBaseTarget(h);p!==void 0&&(g[h]=p)}),d.push({animation:g})}let P=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(d):Promise.resolve()}function l(a,u,c){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const d=s(c,a);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function J0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zh(t,e):!1}function Zt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e1(){return{animate:Zt(!0),whileInView:Zt(),whileHover:Zt(),whileTap:Zt(),whileDrag:Zt(),whileFocus:Zt(),exit:Zt()}}class t1 extends Qt{constructor(t){super(t),t.animationState||(t.animationState=q0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Fo(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 n1=0;class r1 extends Qt{constructor(){super(...arguments),this.id=n1++}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 o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const i1={animation:{Feature:t1},exit:{Feature:r1}},Pc=(e,t)=>Math.abs(e-t);function o1(e,t){const n=Pc(e.x,t.x),r=Pc(e.y,t.y);return Math.sqrt(n**2+r**2)}class jp{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ts(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=o1(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:y}=f,{timestamp:v}=ge;this.history.push({...y,timestamp:v});const{onStart:P,onMove:g}=this.handlers;d||(P&&P(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ps(d,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Ts(f.type==="pointercancel"?this.lastMoveEventInfo:Ps(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,P),y&&y(f,P)},!Kh(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Uo(t),l=Ps(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=ge;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ts(l,this.history)),this.removeListeners=Ft(ht(this.contextWindow,"pointermove",this.handlePointerMove),ht(this.contextWindow,"pointerup",this.handlePointerUp),ht(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xt(this.updatePoint)}}function Ps(e,t){return t?{point:t(e.point)}:e}function Tc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ts({point:e},t){return{point:e,delta:Tc(e,Lp(t)),offset:Tc(e,s1(t)),velocity:l1(t,.1)}}function s1(e){return e[0]}function Lp(e){return e[e.length-1]}function l1(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Lp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>un(t)));)n--;if(!r)return{x:0,y:0};const o=pt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Oe(e){return e.max-e.min}function jl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ec(e,t,n,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=Oe(n)/Oe(t),(jl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Z(n.min,n.max,e.origin)-e.originPoint,(jl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Nr(e,t,n,r){Ec(e.x,t.x,n.x,r?r.originX:void 0),Ec(e.y,t.y,n.y,r?r.originY:void 0)}function Nc(e,t,n){e.min=n.min+t.min,e.max=e.min+Oe(t)}function a1(e,t,n){Nc(e.x,t.x,n.x),Nc(e.y,t.y,n.y)}function jc(e,t,n){e.min=t.min-n.min,e.max=e.min+Oe(t)}function jr(e,t,n){jc(e.x,t.x,n.x),jc(e.y,t.y,n.y)}function u1(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Z(n,e,r.max):Math.min(e,n)),e}function Lc(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 c1(e,{top:t,left:n,bottom:r,right:i}){return{x:Lc(e.x,n,i),y:Lc(e.y,t,r)}}function Mc(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 f1(e,t){return{x:Mc(e.x,t.x),y:Mc(e.y,t.y)}}function d1(e,t){let n=.5;const r=Oe(e),i=Oe(t);return i>r?n=Yr(t.min,t.max-r,e.min):r>i&&(n=Yr(e.min,e.max-i,t.min)),Ut(0,1,n)}function h1(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 Ll=.35;function p1(e=Ll){return e===!1?e=0:e===!0&&(e=Ll),{x:Rc(e,"left","right"),y:Rc(e,"top","bottom")}}function Rc(e,t,n){return{min:Vc(e,t),max:Vc(e,n)}}function Vc(e,t){return typeof e=="number"?e:e[t]||0}const Dc=()=>({translate:0,scale:1,origin:0,originPoint:0}),_n=()=>({x:Dc(),y:Dc()}),Ac=()=>({min:0,max:0}),ie=()=>({x:Ac(),y:Ac()});function Be(e){return[e("x"),e("y")]}function Mp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function m1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function g1(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 Es(e){return e===void 0||e===1}function Ml({scale:e,scaleX:t,scaleY:n}){return!Es(e)||!Es(t)||!Es(n)}function Jt(e){return Ml(e)||Rp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Rp(e){return _c(e.x)||_c(e.y)}function _c(e){return e&&e!=="0%"}function vo(e,t,n){const r=e-n,i=t*r;return n+i}function Oc(e,t,n,r,i){return i!==void 0&&(e=vo(e,i,r)),vo(e,n,r)+t}function Rl(e,t=0,n=1,r,i){e.min=Oc(e.min,t,n,r,i),e.max=Oc(e.max,t,n,r,i)}function Vp(e,{x:t,y:n}){Rl(e.x,t.translate,t.scale,t.originPoint),Rl(e.y,n.translate,n.scale,n.originPoint)}function y1(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const a=o.instance;a&&a.style&&a.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&On(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Vp(e,s)),r&&Jt(o.latestValues)&&On(e,o.latestValues))}t.x=Ic(t.x),t.y=Ic(t.y)}function Ic(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Tt(e,t){e.min=e.min+t,e.max=e.max+t}function Fc(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Z(e.min,e.max,o);Rl(e,t[n],t[r],s,t.scale)}const v1=["x","scaleX","originX"],x1=["y","scaleY","originY"];function On(e,t){Fc(e.x,t,v1),Fc(e.y,t,x1)}function Dp(e,t){return Mp(g1(e.getBoundingClientRect(),t))}function w1(e,t,n){const r=Dp(e,n),{scroll:i}=t;return i&&(Tt(r.x,i.offset.x),Tt(r.y,i.offset.y)),r}const Ap=({current:e})=>e?e.ownerDocument.defaultView:null,S1=new WeakMap;class k1{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=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Uo(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gh(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),Be(P=>{let g=this.getAxisMotionValue(P).get()||0;if(st.test(g)){const{projection:h}=this.visualElement;if(h&&h.layout){const p=h.layout.layoutBox[P];p&&(g=Oe(p)*(parseFloat(g)/100))}}this.originPoint[P]=g}),y&&W.update(()=>y(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:P}=f;if(m&&this.currentDirection===null){this.currentDirection=C1(P),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,P),this.updateAxis("y",f.point,P),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Be(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new jp(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ap(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&W.update(()=>o(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||!Ti(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=u1(s,this.constraints[t],this.elastic[t])),o.set(s)}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,o=this.constraints;n&&Dn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=c1(i.layoutBox,n):this.constraints=!1,this.elastic=p1(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Be(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=h1(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Dn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=w1(r,i.root,this.visualElement.getTransformPagePoint());let s=f1(i.layout.layoutBox,o);if(n){const l=n(m1(s));this.hasMutatedConstraints=!!l,l&&(s=Mp(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Be(c=>{if(!Ti(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ya(t,r,0,n))}stopAnimation(){Be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Be(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){Be(n=>{const{drag:r}=this.getProps();if(!Ti(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-Z(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Dn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Be(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=d1({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Be(s=>{if(!Ti(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(Z(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;S1.set(this.visualElement,this);const t=this.visualElement.current,n=ht(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Dn(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ft(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Be(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ll,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Ti(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P1 extends Qt{constructor(t){super(t),this.removeGroupControls=te,this.removeListeners=te,this.controls=new k1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||te}unmount(){this.removeGroupControls(),this.removeListeners()}}const zc=e=>(t,n)=>{e&&W.update(()=>e(t,n))};class T1 extends Qt{constructor(){super(...arguments),this.removePointerDownListener=te}onPointerDown(t){this.session=new jp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ap(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:zc(t),onStart:zc(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&W.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ht(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 E1(){const e=k.useContext(Oo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=k.useId();return k.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const zi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Bc(e,t.target.x),r=Bc(e,t.target.y);return`${n}% ${r}%`}},N1={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$t.parse(e);if(i.length>5)return r;const o=$t.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=Z(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class j1 extends kf.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_y(L1),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),zi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||W.postRender(()=>{const l=s.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 _p(e){const[t,n]=E1(),r=k.useContext(Aa);return kf.createElement(j1,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(Mh),isPresent:t,safeToRemove:n})}const L1={borderRadius:{...cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cr,borderTopRightRadius:cr,borderBottomLeftRadius:cr,borderBottomRightRadius:cr,boxShadow:N1},Op=["TopLeft","TopRight","BottomLeft","BottomRight"],M1=Op.length,Uc=e=>typeof e=="string"?parseFloat(e):e,$c=e=>typeof e=="number"||A.test(e);function R1(e,t,n,r,i,o){i?(e.opacity=Z(0,n.opacity!==void 0?n.opacity:1,V1(r)),e.opacityExit=Z(t.opacity!==void 0?t.opacity:1,0,D1(r))):o&&(e.opacity=Z(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<M1;s++){const l=`border${Op[s]}Radius`;let a=Wc(t,l),u=Wc(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||$c(a)===$c(u)?(e[l]=Math.max(Z(Uc(a),Uc(u),r),0),(st.test(u)||st.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Z(t.rotate||0,n.rotate||0,r))}function Wc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const V1=Ip(0,.5,op),D1=Ip(.5,.95,te);function Ip(e,t,n){return r=>r<e?0:r>t?1:n(Yr(e,t,r))}function Hc(e,t){e.min=t.min,e.max=t.max}function ze(e,t){Hc(e.x,t.x),Hc(e.y,t.y)}function Kc(e,t,n,r,i){return e-=t,e=vo(e,1/n,r),i!==void 0&&(e=vo(e,1/i,r)),e}function A1(e,t=0,n=1,r=.5,i,o=e,s=e){if(st.test(t)&&(t=parseFloat(t),t=Z(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Z(o.min,o.max,r);e===o&&(l-=t),e.min=Kc(e.min,t,n,l,i),e.max=Kc(e.max,t,n,l,i)}function Qc(e,t,[n,r,i],o,s){A1(e,t[n],t[r],t[i],t.scale,o,s)}const _1=["x","scaleX","originX"],O1=["y","scaleY","originY"];function Gc(e,t,n,r){Qc(e.x,t,_1,n?n.x:void 0,r?r.x:void 0),Qc(e.y,t,O1,n?n.y:void 0,r?r.y:void 0)}function Yc(e){return e.translate===0&&e.scale===1}function Fp(e){return Yc(e.x)&&Yc(e.y)}function I1(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function zp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Xc(e){return Oe(e.x)/Oe(e.y)}class F1{constructor(){this.members=[]}add(t){Xa(this.members,t),t.scheduleRender()}remove(t){if(Za(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 Zc(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const z1=(e,t)=>e.depth-t.depth;class B1{constructor(){this.children=[],this.isDirty=!1}add(t){Xa(this.children,t),this.isDirty=!0}remove(t){Za(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(z1),this.isDirty=!1,this.children.forEach(t)}}function U1(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xt(r),e(o-t))};return W.read(r,!0),()=>xt(r)}function $1(e){window.MotionDebug&&window.MotionDebug.record(e)}function W1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function H1(e,t,n){const r=Le(e)?e:Zn(e);return r.start(Ya("",r,t,n)),r.animation}const bc=["","X","Y","Z"],K1={visibility:"hidden"},qc=1e3;let Q1=0;const en={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Bp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=Q1++,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,en.totalNodes=en.resolvedTargetDeltas=en.recalculatedProjection=0,this.nodes.forEach(X1),this.nodes.forEach(ex),this.nodes.forEach(tx),this.nodes.forEach(Z1),$1(en)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 B1)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ba),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W1(s),this.instance=s;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=U1(d,250),zi.hasAnimatedSinceResize&&(zi.hasAnimatedSinceResize=!1,this.nodes.forEach(ef))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||sx,{onLayoutAnimationStart:P,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!zp(this.targetLayout,y)||m,p=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,p);const x={...Ga(v,"layout"),onPlay:P,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||ef(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xt(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(nx),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jc);return}this.isUpdating||this.nodes.forEach(q1),this.isUpdating=!1,this.nodes.forEach(J1),this.nodes.forEach(G1),this.nodes.forEach(Y1),this.clearAllSnapshots();const l=performance.now();ge.delta=Ut(0,1e3/60,l-ge.timestamp),ge.timestamp=l,ge.isProcessing=!0,gs.update.process(ge),gs.preRender.process(ge),gs.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(b1),this.sharedNodes.forEach(rx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Fp(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(l||Jt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),lx(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ie();const l=s.measureViewportBox(),{scroll:a}=this.root;return a&&(Tt(l.x,a.offset.x),Tt(l.y,a.offset.y)),l}removeElementScroll(s){const l=ie();ze(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){ze(l,s);const{scroll:d}=this.root;d&&(Tt(l.x,-d.offset.x),Tt(l.y,-d.offset.y))}Tt(l.x,c.offset.x),Tt(l.y,c.offset.y)}}return l}applyTransform(s,l=!1){const a=ie();ze(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&On(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Jt(c.latestValues)&&On(a,c.latestValues)}return Jt(this.latestValues)&&On(a,this.latestValues),a}removeTransform(s){const l=ie();ze(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!Jt(u.latestValues))continue;Ml(u.latestValues)&&u.updateSnapshot();const c=ie(),f=u.measurePageBox();ze(c,f),Gc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Jt(this.latestValues)&&Gc(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=ge.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ze(this.target,this.layout.layoutBox),Vp(this.target,this.targetDelta)):ze(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.target,m.target),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}en.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ml(this.parent.latestValues)||Rp(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 s;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ge.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ze(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;y1(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:y}=l;if(!y){this.projectionTransform&&(this.projectionDelta=_n(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=_n(),this.projectionDeltaWithTransform=_n());const v=this.projectionTransform;Nr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=Zc(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),en.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=_n();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=ie(),m=a?a.source:void 0,y=this.layout?this.layout.source:void 0,v=m!==y,P=this.getStack(),g=!P||P.members.length<=1,h=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(ox));this.animationProgress=0;let p;this.mixTargetDelta=x=>{const S=x/1e3;tf(f.x,s.x,S),tf(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ix(this.relativeTarget,this.relativeTargetOrigin,d,S),p&&I1(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=ie()),ze(p,this.relativeTarget)),v&&(this.animationValues=c,R1(c,u,this.latestValues,S,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{zi.hasAnimatedSinceResize=!0,this.currentAnimation=H1(0,qc,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&Up(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ie();const f=Oe(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=Oe(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}ze(l,a),On(l,c),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new F1),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c<bc.length;c++){const f="rotate"+bc[c];a[f]&&(u[f]=a[f],s.setStaticValue(f,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return K1;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Fi(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Fi(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Jt(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Zc(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:m,y}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===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=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in co){if(d[v]===void 0)continue;const{correct:P,applyTo:g}=co[v],h=u.transform==="none"?d[v]:P(d[v],f);if(g){const p=g.length;for(let x=0;x<p;x++)u[g[x]]=h}else u[v]=h}return this.options.layoutId&&(u.pointerEvents=f===this?Fi(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Jc),this.root.sharedNodes.clear()}}}function G1(e){e.updateLayout()}function Y1(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:o}=e.options,s=n.source!==e.layout.source;o==="size"?Be(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Oe(d);d.min=r[f].min,d.max=d.min+m}):Up(o,n.layoutBox,r)&&Be(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Oe(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const l=_n();Nr(l,r,n.layoutBox);const a=_n();s?Nr(a,e.applyTransform(i,!0),n.measuredBox):Nr(a,r,n.layoutBox);const u=!Fp(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const y=ie();jr(y,n.layoutBox,d.layoutBox);const v=ie();jr(v,r,m.layoutBox),zp(y,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X1(e){en.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 Z1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function b1(e){e.clearSnapshot()}function Jc(e){e.clearMeasurements()}function q1(e){e.isLayoutDirty=!1}function J1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ef(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ex(e){e.resolveTargetDelta()}function tx(e){e.calcProjection()}function nx(e){e.resetRotation()}function rx(e){e.removeLeadSnapshot()}function tf(e,t,n){e.translate=Z(t.translate,0,n),e.scale=Z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nf(e,t,n,r){e.min=Z(t.min,n.min,r),e.max=Z(t.max,n.max,r)}function ix(e,t,n,r){nf(e.x,t.x,n.x,r),nf(e.y,t.y,n.y,r)}function ox(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sx={duration:.45,ease:[.4,0,.1,1]},rf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),of=rf("applewebkit/")&&!rf("chrome/")?Math.round:te;function sf(e){e.min=of(e.min),e.max=of(e.max)}function lx(e){sf(e.x),sf(e.y)}function Up(e,t,n){return e==="position"||e==="preserve-aspect"&&!jl(Xc(t),Xc(n),.2)}const ax=Bp({attachResizeListener:(e,t)=>ft(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ns={current:void 0},$p=Bp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ns.current){const e=new ax({});e.mount(window),e.setOptions({layoutScroll:!0}),Ns.current=e}return Ns.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ux={pan:{Feature:T1},drag:{Feature:P1,ProjectionNode:$p,MeasureLayout:_p}},cx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fx(e){const t=cx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Vl(e,t,n=1){const[r,i]=fx(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Pp(s)?parseFloat(s):s}else return Sl(i)?Vl(i,t,n+1):i}function dx(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Sl(o))return;const s=Vl(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Sl(o))continue;const s=Vl(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const hx=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wp=e=>hx.has(e),px=e=>Object.keys(e).some(Wp),lf=e=>e===vn||e===A,af=(e,t)=>parseFloat(e.split(", ")[t]),uf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return af(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?af(o[1],e):0}},mx=new Set(["x","y","z"]),gx=ei.filter(e=>!mx.has(e));function yx(e){const t=[];return gx.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 bn={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:uf(4,13),y:uf(5,14)};bn.translateX=bn.x;bn.translateY=bn.y;const vx=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=bn[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=bn[u](a,o)}),e},xx=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Wp);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],f=ur(c);const d=t[a];let m;if(ho(d)){const y=d.length,v=d[0]===null?1:0;c=d[v],f=ur(c);for(let P=v;P<y&&d[P]!==null;P++)m?$a(ur(d[P])===m):m=ur(d[P])}else m=ur(d);if(f!==m)if(lf(f)&&lf(m)){const y=u.get();typeof y=="string"&&u.set(parseFloat(y)),typeof d=="string"?t[a]=parseFloat(d):Array.isArray(d)&&m===A&&(t[a]=d.map(parseFloat))}else f!=null&&f.transform&&(m!=null&&m.transform)&&(c===0||d===0)?c===0?u.set(m.transform(c)):t[a]=f.transform(d):(s||(o=yx(e),s=!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=vx(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Io&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function wx(e,t,n,r){return px(t)?xx(e,t,n,r):{target:t,transitionEnd:r}}const Sx=(e,t,n,r)=>{const i=dx(e,t,r);return t=i.target,r=i.transitionEnd,wx(e,t,n,r)},Dl={current:null},Hp={current:!1};function kx(){if(Hp.current=!0,!!Io)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dl.current=e.matches;e.addListener(t),t()}else Dl.current=!1}function Cx(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Le(o))e.addValue(i,o),yo(r)&&r.add(i);else if(Le(s))e.addValue(i,Zn(o,{owner:e})),yo(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Zn(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const cf=new WeakMap,Kp=Object.keys(Gr),Px=Kp.length,ff=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tx=Da.length;class Ex{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>W.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;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=s,this.isControllingVariants=zo(n),this.isVariantNode=Lh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];l[f]!==void 0&&Le(d)&&(d.set(l[f],!1),yo(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,cf.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)),Hp.current||kx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cf.delete(this.current),this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(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=yn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&W.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;a<Px;a++){const u=Kp[a],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:m}=Gr[u];d&&(s=d),c(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),m&&(l=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:u,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:m}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||f&&Dn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}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):ie()}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<ff.length;r++){const i=ff[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Cx(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<Tx;r++){const i=Da[r],o=this.props[i];(Qr(o)||o===!1)&&(n[i]=o)}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=Zn(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=Ua(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Le(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ba),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Qp extends Ex{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},o){let s=W0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){U0(this,r,s);const l=Sx(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function Nx(e){return window.getComputedStyle(e)}class jx extends Qp{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(yn.has(n)){const r=Qa(n);return r&&r.default||0}else{const r=Nx(t),i=(Dh(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dp(t,n)}build(t,n,r,i){Oa(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ba(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){zh(t,n,r,i)}}class Lx extends Qp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(yn.has(n)){const r=Qa(n);return r&&r.default||0}return n=Bh.has(n)?n:Ra(n),t.getAttribute(n)}measureInstanceViewportBox(){return ie()}scrapeMotionValuesFromProps(t,n){return $h(t,n)}build(t,n,r,i){Fa(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Uh(t,n,r,i)}mount(t){this.isSVGTag=za(t.tagName),super.mount(t)}}const Mx=(e,t)=>_a(e)?new Lx(t,{enableHardwareAcceleration:!1}):new jx(t,{enableHardwareAcceleration:!0}),Rx={layout:{ProjectionNode:$p,MeasureLayout:_p}},Vx={...i1,...Pv,...ux,...Rx},Dx=Dy((e,t)=>fv(e,t,Vx,Mx));function Gp(){const e=k.useRef(!1);return Ma(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ax(){const e=Gp(),[t,n]=k.useState(0),r=k.useCallback(()=>{e.current&&n(t+1)},[t]);return[k.useCallback(()=>W.postRender(r),[r]),t]}class _x extends k.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 Ox({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),i=k.useRef({width:0,height:0,top:0,left:0});return k.useInsertionEffect(()=>{const{width:o,height:s,top:l,left:a}=i.current;if(t||!r.current||!o||!s)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: ${o}px !important;
44
- height: ${s}px !important;
45
- top: ${l}px !important;
46
- left: ${a}px !important;
47
- }
48
- `),()=>{document.head.removeChild(u)}},[t]),k.createElement(_x,{isPresent:t,childRef:r,sizeRef:i},k.cloneElement(e,{ref:r}))}const js=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=Wh(Ix),a=k.useId(),u=k.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:c=>{l.set(c,!0);for(const f of l.values())if(!f)return;r&&r()},register:c=>(l.set(c,!1),()=>l.delete(c))}),o?void 0:[n]);return k.useMemo(()=>{l.forEach((c,f)=>l.set(f,!1))},[n]),k.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=k.createElement(Ox,{isPresent:n},e)),k.createElement(Oo.Provider,{value:u},e)};function Ix(){return new Map}function Fx(e){return k.useEffect(()=>()=>e(),[])}const tn=e=>e.key||"";function zx(e,t){e.forEach(n=>{const r=tn(n);t.set(r,n)})}function Bx(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Ux=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=k.useContext(Aa).forceRender||Ax()[0],a=Gp(),u=Bx(e);let c=u;const f=k.useRef(new Map).current,d=k.useRef(c),m=k.useRef(new Map).current,y=k.useRef(!0);if(Ma(()=>{y.current=!1,zx(u,m),d.current=c}),Fx(()=>{y.current=!0,m.clear(),f.clear()}),y.current)return k.createElement(k.Fragment,null,c.map(h=>k.createElement(js,{key:tn(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},h)));c=[...c];const v=d.current.map(tn),P=u.map(tn),g=v.length;for(let h=0;h<g;h++){const p=v[h];P.indexOf(p)===-1&&!f.has(p)&&f.set(p,void 0)}return s==="wait"&&f.size&&(c=[]),f.forEach((h,p)=>{if(P.indexOf(p)!==-1)return;const x=m.get(p);if(!x)return;const S=v.indexOf(p);let E=h;if(!E){const N=()=>{f.delete(p);const C=Array.from(m.keys()).filter(R=>!P.includes(R));if(C.forEach(R=>m.delete(R)),d.current=u.filter(R=>{const D=tn(R);return D===p||C.includes(D)}),!f.size){if(a.current===!1)return;l(),r&&r()}};E=k.createElement(js,{key:tn(x),isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:o,mode:s},x),f.set(p,E)}c.splice(S,0,E)}),c=c.map(h=>{const p=h.key;return f.has(p)?h:k.createElement(js,{key:tn(h),isPresent:!0,presenceAffectsLayout:o,mode:s},h)}),k.createElement(k.Fragment,null,f.size?c:c.map(h=>k.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 $x=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yp=(...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 Wx={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 Hx=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>k.createElement("svg",{ref:a,...Wx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yp("lucide",i),...l},[...s.map(([u,c])=>k.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
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 Me=(e,t)=>{const n=k.forwardRef(({className:r,...i},o)=>k.createElement(Hx,{ref:o,iconNode:t,className:Yp(`lucide-${$x(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 qa=Me("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 Xp=Me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 Kx=Me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 Qx=Me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 Gx=Me("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"}]]);/**
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 Yx=Me("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 Xx=Me("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"}]]);/**
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 Zx=Me("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"}]]);/**
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 bx=Me("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
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 qx=Me("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
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 Jx=Me("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"}]]);/**
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 ew=Me("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"}]]);/**
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 tw=Me("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"}]]);/**
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 Al=Me("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);function _l({text:e,label:t="Copy",disabled:n=!1}){const[r,i]=k.useState(!1),o=s=>{if(s.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 w.jsx("button",{onClick:o,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?w.jsx(Xp,{className:"w-4 h-4"}):w.jsx(Xx,{className:"w-4 h-4"})})}function nw({item:e}){if(!e)return null;const t=new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),n=e.event?e.event.replace(/_/g," "):"EVENT",r=s=>{if(s==null)return w.jsx("span",{className:"opacity-40",children:"—"});if(typeof s=="string"){const l=s.trim();if(l.startsWith("{")||l.startsWith("["))try{const u=JSON.parse(l);return w.jsx("pre",{className:"text-sm font-mono opacity-80 leading-relaxed custom-scroll overflow-auto bg-black/[0.015] dark:bg-white/[0.015] p-6 rounded-[24px] border border-border",children:JSON.stringify(u,null,2)})}catch{return w.jsx("span",{className:"text-2xl font-semibold whitespace-pre-wrap break-words",children:s})}return s.length>140||s.includes(`
139
- `)?w.jsx("pre",{className:"text-sm font-mono opacity-80 leading-relaxed custom-scroll overflow-auto bg-black/[0.015] dark:bg-white/[0.015] p-6 rounded-[24px] border border-border",children:s}):w.jsx("span",{className:"text-2xl font-semibold whitespace-pre-wrap break-words",children:s})}return typeof s=="object"?w.jsx("pre",{className:"text-sm font-mono opacity-80 leading-relaxed custom-scroll overflow-auto bg-black/[0.015] dark:bg-white/[0.015] p-6 rounded-[24px] border border-border",children:JSON.stringify(s,null,2)}):w.jsx("span",{className:"text-2xl font-semibold",children:String(s)})},i=s=>w.jsx("div",{className:"space-y-8",children:s.map(([l,a])=>w.jsxs("div",{className:"space-y-2",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase opacity-40",children:l.replace(/_/g," ")}),w.jsx("div",{className:"text-base",children:r(a)})]},l))});let o=null;if(e.event==="AGENT_STARTED")o=w.jsxs("div",{className:"space-y-12 py-24",children:[w.jsxs("div",{className:"space-y-3 text-center",children:[w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase opacity-40",children:"Agent invocation"}),w.jsx("h2",{className:"text-4xl font-black tracking-tight",children:e.agent}),w.jsx("div",{className:"text-xs font-mono opacity-20",children:t})]}),w.jsx("div",{className:"markdown-body opacity-80 leading-relaxed text-xl font-light whitespace-pre-wrap",children:e.prompt})]});else if(e.event&&e.event.startsWith("WORKFLOW_")){const s=e.event.replace("WORKFLOW_","");o=w.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-20",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.5em] uppercase opacity-20",children:"Lifecycle status"}),w.jsx("h2",{className:"text-8xl font-black tracking-tighter opacity-10 leading-none uppercase",children:s}),e.error&&w.jsx("pre",{className:"text-red-500 font-mono text-xs max-w-xl whitespace-pre-wrap bg-red-50 dark:bg-red-900/5 p-6 rounded-[24px] mt-4",children:e.error})]})}else if(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED"){const s=[["slug",e.slug],["targetKey",e.targetKey],["type",e.type]].filter(l=>l[1]!==void 0);o=w.jsxs("div",{className:"space-y-10 py-24",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase text-accent",children:"Awaiting response"}),w.jsx("div",{className:"text-xs font-mono opacity-20",children:t})]}),w.jsx("div",{className:"text-4xl font-bold tracking-tight text-balance leading-tight",children:e.question||e.prompt||"Prompt"}),e.prompt&&e.question&&e.prompt!==e.question&&w.jsx("div",{className:"text-lg font-medium opacity-70 whitespace-pre-wrap",children:e.prompt}),s.length>0&&w.jsx("div",{className:"pt-4",children:i(s)})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const s=e.answer!==void 0?e.answer:e.response,l=[["slug",e.slug],["targetKey",e.targetKey]].filter(a=>a[1]!==void 0);o=w.jsxs("div",{className:"space-y-10 py-24",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase text-accent",children:"Response recorded"}),w.jsx("div",{className:"text-xs font-mono opacity-20",children:t})]}),w.jsx("div",{className:"text-4xl font-bold tracking-tight text-balance leading-tight",children:r(s)}),l.length>0&&w.jsx("div",{className:"pt-4",children:i(l)})]})}else{const s=Object.entries(e).filter(([a])=>a!=="event"&&a!=="timestamp"),l=s.length>0?s:[["event",e.event||"Event"]];o=w.jsxs("div",{className:"space-y-12 py-24",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase opacity-40",children:n}),w.jsxs("div",{className:"flex items-center gap-6",children:[w.jsx("span",{className:"text-xs font-mono opacity-20",children:t}),w.jsx(_l,{text:e})]})]}),i(l)]})}return w.jsx("div",{className:"w-full h-full flex flex-col overflow-y-auto custom-scroll px-12",children:w.jsxs("div",{className:"content-width flex-1",children:[w.jsxs("div",{className:"flex items-center justify-between pt-10",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.4em] uppercase opacity-30",children:n}),w.jsx(_l,{text:e})]}),o]})})}const rw=e=>{if(!e)return w.jsx(Al,{className:"w-3.5 h-3.5 opacity-40"});const t=e.toUpperCase();return t.includes("STARTED")||t.includes("START")?w.jsx(qx,{className:"w-3.5 h-3.5 text-blue-500"}):t.includes("SUBMITTED")||t.includes("ANSWERED")||t.includes("SUCCESS")?w.jsx(Yx,{className:"w-3.5 h-3.5 text-green-500"}):t.includes("REQUESTED")||t.includes("REQUEST")?w.jsx(ew,{className:"w-3.5 h-3.5 text-accent"}):t.includes("ERROR")||t.includes("FAILED")?w.jsx(Gx,{className:"w-3.5 h-3.5 text-red-500"}):w.jsx(Al,{className:"w-3.5 h-3.5 opacity-40"})},iw=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":w.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&w.jsx("span",{className:"text-accent font-medium text-[10px] tracking-wider uppercase opacity-80",children:n}),t&&w.jsx("span",{className:"opacity-80 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function ow({history:e,onJump:t}){return w.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:w.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-24",children:w.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?w.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[w.jsx(Al,{className:"w-12 h-12"}),w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase",children:"No events yet"})]}):e.map((n,r)=>{var o;const i=new Date(n.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return w.jsxs("button",{onClick:()=>t(r),className:"w-full text-left group flex items-start gap-6 p-4 rounded-2xl hover:bg-black/[0.03] dark:hover:bg-white/[0.03] transition-all border border-transparent hover:border-border",children:[w.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:w.jsx("span",{className:"text-[10px] font-mono font-medium opacity-20 group-hover:opacity-40 transition-opacity",children:i})}),w.jsx("div",{className:"flex-shrink-0 pt-0.5",children:rw(n.event)}),w.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.2em] uppercase opacity-30 group-hover:opacity-50 transition-opacity",children:((o=n.event)==null?void 0:o.replace(/_/g," "))||"EVENT"}),w.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-accent transition-colors",children:iw(n)})]})]},r)})})})})}function sw({page:e,total:t,onNext:n,onPrev:r,onJump:i,hasNew:o,onJumpToLatest:s,className:l=""}){const[a,u]=k.useState(e+1);k.useEffect(()=>u(e+1),[e]);const c=f=>{const{value:d}=f.target;u(d);const m=parseInt(d,10);!Number.isNaN(m)&&m>=1&&m<=t&&i(m-1)};return w.jsx("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:w.jsxs("div",{className:"footer-control",children:[w.jsx("button",{onClick:r,disabled:e===0,className:"tooltip p-1 hover:text-accent disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Previous","aria-label":"Previous event",children:w.jsx(Kx,{className:"w-5 h-5"})}),w.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[w.jsx("input",{type:"number",value:a,onChange:c,className:"jumper-input",min:"1",max:t}),w.jsx("span",{className:"opacity-20",children:"/"}),w.jsx("span",{children:t})]}),w.jsx("button",{onClick:n,disabled:e===t-1,className:"tooltip p-1 hover:text-accent disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Next","aria-label":"Next event",children:w.jsx(Qx,{className:"w-5 h-5"})}),o?w.jsx("button",{onClick:s,className:"tooltip px-3 py-1 rounded-full text-[10px] font-bold tracking-[0.2em] uppercase bg-accent text-white shadow-[0_10px_30px_rgba(0,122,255,0.25)] hover:scale-[1.02] transition-transform","data-tooltip":"Latest","aria-label":"Jump to latest event",children:"New"}):null]})})}function lw({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:i,setViewMode:o,history:s}){return w.jsxs("header",{className:"fixed top-0 inset-x-0 h-20 px-12 flex items-center justify-between z-50 bg-bg/80 backdrop-blur-3xl",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("div",{className:`w-2 h-2 rounded-full ${t==="connected"?"bg-green-500 shadow-[0_0_15px_rgba(34,197,94,0.6)]":"bg-red-500"}`}),w.jsx("span",{className:"font-bold text-[10px] tracking-[0.4em] uppercase opacity-30 truncate max-w-[300px]",children:e||"Workflow"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(_l,{text:s||[],label:"Copy full history",disabled:!s||s.length===0}),w.jsx("button",{onClick:()=>o(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"?w.jsx(Zx,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):w.jsx(Jx,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),w.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"?w.jsx(tw,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):w.jsx(bx,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function aw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,options:o=[],multiSelect:s,allowCustom:l}=e,[a,u]=k.useState(s?[]:null),[c,f]=k.useState(""),[d,m]=k.useState(!1),y=k.useMemo(()=>o||[],[o]),v=r||i||"Choose an option.",P=p=>{s?(u(x=>x.includes(p)?x.filter(S=>S!==p):[...x,p]),m(!1)):(u(p),m(!1))},g=()=>{if(d&&c.trim()){t({isCustom:!0,customText:c.trim(),raw:c.trim()});return}if(s&&a.length>0){t({selectedKeys:a,raw:a.join(", ")});return}a&&t({selectedKey:a,raw:String(a)})},h=d?!!c.trim():s?a.length>0:!!a;return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[w.jsxs("div",{className:"space-y-4 shrink-0",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(qa,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap",children:v}),w.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[y.map(p=>{const x=s?a.includes(p.key):a===p.key;return w.jsx("button",{onClick:()=>P(p.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${x?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${x?"border-accent bg-accent text-white":"border-white/20"}`,children:x&&w.jsx(Xp,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex-1",children:[w.jsx("div",{className:"font-bold text-lg",children:p.label||p.key}),p.description&&w.jsx("div",{className:"text-sm text-fg/50 mt-1",children:p.description})]})]})},p.key)}),l&&w.jsxs("button",{onClick:()=>{m(!0),u(s?[]:null)},disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${d?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:[w.jsx("div",{className:"font-bold text-lg",children:"Other"}),w.jsx("div",{className:"text-sm text-fg/50 mt-1",children:"Provide a custom response"})]}),d&&w.jsx("textarea",{value:c,onChange:p=>f(p.target.value),placeholder:"Type your response...",className:"w-full h-32 p-6 rounded-2xl bg-black/[0.03] dark:bg-white/[0.03] border-2 border-accent/30 focus:border-accent focus:outline-none text-lg"})]})]}),w.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-white/5",children:w.jsx("button",{onClick:g,disabled:n||!h,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 uw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,confirmLabel:o="Confirm",cancelLabel:s="Cancel",context:l}=e;return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.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:[w.jsxs("div",{className:"space-y-4",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(qa,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap",children:r||i||"Please confirm."}),(l==null?void 0:l.documentPath)&&w.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",w.jsx("code",{className:"bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),w.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-white/5",children:[w.jsx("button",{onClick:()=>t({confirmed:!1,raw:s}),disabled:n,className:"px-12 py-6 bg-white/10 text-fg rounded-full font-bold text-xl hover:bg-white/20 transition-all disabled:opacity-30",children:s}),w.jsx("button",{onClick:()=>t({confirmed:!0,raw:o}),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",children:o})]})]})}function cw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,placeholder:o,validation:s}=e,[l,a]=k.useState(""),[u,c]=k.useState(null),f=k.useMemo(()=>s||{},[s]),d=y=>f.minLength&&y.length<f.minLength?`Minimum ${f.minLength} characters required`:f.maxLength&&y.length>f.maxLength?`Maximum ${f.maxLength} characters allowed`:f.pattern&&!new RegExp(f.pattern).test(y)?"Invalid format":null,m=()=>{const y=l.trim(),v=d(y);if(v){c(v);return}t({text:y,raw:y})};return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[w.jsxs("div",{className:"space-y-4 shrink-0",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(qa,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),w.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center whitespace-pre-wrap",children:r||i||"Provide your response."}),w.jsx("textarea",{value:l,onChange:y=>{a(y.target.value),c(null)},disabled:n,placeholder:o||"Your response...",className:`w-full h-64 p-8 rounded-[32px] bg-black/[0.03] dark:bg-white/[0.03] border-2 ${u?"border-red-500":"border-transparent"} focus:ring-4 focus:ring-accent/10 focus:outline-none text-2xl font-medium transition-all text-center placeholder:opacity-20`}),u&&w.jsx("div",{className:"text-red-500 text-center text-sm",children:u})]})]}),w.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-white/5",children:w.jsx("button",{onClick:m,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 fw({interaction:e,onSubmit:t,disabled:n}){const r=(e==null?void 0:e.type)||"text",i=o=>{t(e.slug,e.targetKey,o)};switch(r){case"choice":return w.jsx(aw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"confirm":return w.jsx(uw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"text":default:return w.jsx(cw,{interaction:e,onSubmit:i,disabled:n},e.slug)}}function dw(){const[e,t]=k.useState([]),[n,r]=k.useState(0),[i,o]=k.useState("connecting"),[s,l]=k.useState("..."),[a,u]=k.useState("light"),[c,f]=k.useState("present"),[d,m]=k.useState(null),[y,v]=k.useState(!1);k.useEffect(()=>{const z=localStorage.getItem("rf_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");u(z);const V=localStorage.getItem("rf_view")||"present";f(V)},[]),k.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem("rf_theme",a)},[a]),k.useEffect(()=>{localStorage.setItem("rf_view",c)},[c]);const P=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,g=P?`/api/history/${P}`:"/api/history",h=P?`/api/events/${P}`:"/api/events",p=P?`/api/submit/${P}`:"/api/submit",x=async()=>{try{const V=await(await fetch(g)).json();if(V.entries){const F=[...V.entries].reverse();t(M=>(M.length===0&&F.length>0&&r(F.length-1),F));const j=F[F.length-1];j&&(j.event==="INTERACTION_REQUESTED"||j.event==="PROMPT_REQUESTED")?m(j):m(null)}V.workflowName&&l(V.workflowName),o("connected")}catch{o("disconnected")}},S=k.useRef(0);k.useEffect(()=>{e.length>S.current&&(S.current===0&&e.length>0?(r(e.length-1),v(!1)):n<e.length-1&&v(!0)),S.current=e.length},[e.length,n]),k.useEffect(()=>{n===e.length-1&&v(!1)},[n,e.length]),k.useEffect(()=>{x();const z=setInterval(x,3e3),V=new EventSource(h);return V.onmessage=F=>{F.data==="update"&&x()},()=>{clearInterval(z),V.close()}},[]);const E=()=>r(z=>Math.min(e.length-1,z+1)),N=()=>r(z=>Math.max(0,z-1)),C=k.useRef(null),R=k.useRef(!1),D=z=>{const V=z.target;if((V.tagName==="TEXTAREA"||V.tagName==="INPUT"&&V.type==="number")&&V.className!=="jumper-input"){R.current=!0;return}R.current=!1;const j=z.touches[0];C.current={x:j.clientX,y:j.clientY}},ne=z=>{if(R.current||!C.current)return;const V=z.changedTouches[0],F=V.clientX-C.current.x,j=V.clientY-C.current.y,M=Math.abs(F),O=Math.abs(j);M>50&&M>O+10&&(F>0&&N(),F<0&&E()),C.current=null};k.useEffect(()=>{const z=V=>{(V.target.tagName==="TEXTAREA"||V.target.tagName==="INPUT"&&V.target.type==="number")&&V.target.className!=="jumper-input"||(V.key==="ArrowRight"&&E(),V.key==="ArrowLeft"&&N())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[e.length]);const Y=e[n],ce=Y&&(Y.event==="INTERACTION_REQUESTED"||Y.event==="PROMPT_REQUESTED"),re=d&&ce&&Y.slug===d.slug;return w.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[w.jsx(lw,{workflowName:s,status:i,theme:a,toggleTheme:()=>u(z=>z==="dark"?"light":"dark"),viewMode:c,setViewMode:f,history:e}),w.jsx("main",{className:"main-stage overflow-hidden",children:c==="log"?w.jsx(ow,{history:e,onJump:z=>{r(z),f("present")}}):w.jsx(Ux,{mode:"wait",children:w.jsx(Dx.div,{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.2,style:{touchAction:"pan-y"},onTouchStart:D,onTouchEnd:ne,onDragEnd:(z,{offset:V,velocity:F})=>{V.x>50||F.x>500?N():(V.x<-50||F.x<-500)&&E()},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:re?w.jsx("div",{className:"content-width h-full",children:w.jsx(fw,{interaction:d,onSubmit:async(z,V,F)=>{const j=typeof F=="string"?F:JSON.stringify(F);t(M=>[...M,{timestamp:new Date().toISOString(),event:"INTERACTION_SUBMITTED",answer:j,response:F}]),r(M=>M+1),await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:z,targetKey:V,response:F})}),setTimeout(x,1e3)},disabled:i==="disconnected"})}):w.jsx(nw,{item:Y})},n)})}),w.jsx(sw,{page:n,total:e.length,onNext:E,onPrev:N,onJump:r,hasNew:y,onJumpToLatest:()=>r(e.length-1),className:c==="log"?"opacity-0 pointer-events-none":"opacity-100"})]})}const hw=Th(document.getElementById("root"));hw.render(w.jsx(dw,{}));