Files
n8n_Demo/web_frontend/exhibition-demo/dist/assets/index-ucnX0kDr.js
Yep_Q 1564396449 feat: 完善会展策划演示系统
详细说明:
- 添加了V2版本的工作流页面和结果页面
- 更新了Serena记忆文件
- 添加了详细实施计划文档
- 优化了Vite配置
- 更新了项目文档CLAUDE.md
- 构建了演示系统的dist版本
- 包含了exhibition-demo的完整依赖
2025-09-08 11:15:23 +08:00

165 lines
287 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},Ss={},Xf={exports:{}},_={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zr=Symbol.for("react.element"),Wm=Symbol.for("react.portal"),Hm=Symbol.for("react.fragment"),Km=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Qm=Symbol.for("react.provider"),Ym=Symbol.for("react.context"),Xm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),qm=Symbol.for("react.memo"),bm=Symbol.for("react.lazy"),yu=Symbol.iterator;function Jm(e){return e===null||typeof e!="object"?null:(e=yu&&e[yu]||e["@@iterator"],typeof e=="function"?e:null)}var Zf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qf=Object.assign,bf={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Zf}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 Jf(){}Jf.prototype=Qn.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Zf}var $l=Ul.prototype=new Jf;$l.constructor=Ul;qf($l,Qn.prototype);$l.isPureReactComponent=!0;var vu=Array.isArray,ed=Object.prototype.hasOwnProperty,Wl={current:null},td={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ed.call(t,r)&&!td.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:Zr,type:e,key:s,ref:o,props:i,_owner:Wl.current}}function eg(e,t){return{$$typeof:Zr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zr}function tg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xu=/\/+/g;function Ks(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tg(""+e.key):t.toString(36)}function Mi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Zr:case Wm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ks(o,0):r,vu(i)?(n="",e!=null&&(n=e.replace(xu,"$&/")+"/"),Mi(i,t,n,"",function(u){return u})):i!=null&&(Hl(i)&&(i=eg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(xu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",vu(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Ks(s,l);o+=Mi(s,t,n,a,i)}else if(a=Jm(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Ks(s,l++),o+=Mi(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ai(e,t,n){if(e==null)return e;var r=[],i=0;return Mi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function ng(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 xe={current:null},Ri={transition:null},rg={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:Ri,ReactCurrentOwner:Wl};function rd(){throw Error("act(...) is not supported in production builds of React.")}_.Children={map:ai,forEach:function(e,t,n){ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ai(e,function(){t++}),t},toArray:function(e){return ai(e,function(t){return t})||[]},only:function(e){if(!Hl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_.Component=Qn;_.Fragment=Hm;_.Profiler=Gm;_.PureComponent=Ul;_.StrictMode=Km;_.Suspense=Zm;_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rg;_.act=rd;_.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=qf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Wl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)ed.call(t,a)&&!td.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:Zr,type:e.type,key:i,ref:s,props:r,_owner:o}};_.createContext=function(e){return e={$$typeof:Ym,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qm,_context:e},e.Consumer=e};_.createElement=nd;_.createFactory=function(e){var t=nd.bind(null,e);return t.type=e,t};_.createRef=function(){return{current:null}};_.forwardRef=function(e){return{$$typeof:Xm,render:e}};_.isValidElement=Hl;_.lazy=function(e){return{$$typeof:bm,_payload:{_status:-1,_result:e},_init:ng}};_.memo=function(e,t){return{$$typeof:qm,type:e,compare:t===void 0?null:t}};_.startTransition=function(e){var t=Ri.transition;Ri.transition={};try{e()}finally{Ri.transition=t}};_.unstable_act=rd;_.useCallback=function(e,t){return xe.current.useCallback(e,t)};_.useContext=function(e){return xe.current.useContext(e)};_.useDebugValue=function(){};_.useDeferredValue=function(e){return xe.current.useDeferredValue(e)};_.useEffect=function(e,t){return xe.current.useEffect(e,t)};_.useId=function(){return xe.current.useId()};_.useImperativeHandle=function(e,t,n){return xe.current.useImperativeHandle(e,t,n)};_.useInsertionEffect=function(e,t){return xe.current.useInsertionEffect(e,t)};_.useLayoutEffect=function(e,t){return xe.current.useLayoutEffect(e,t)};_.useMemo=function(e,t){return xe.current.useMemo(e,t)};_.useReducer=function(e,t,n){return xe.current.useReducer(e,t,n)};_.useRef=function(e){return xe.current.useRef(e)};_.useState=function(e){return xe.current.useState(e)};_.useSyncExternalStore=function(e,t,n){return xe.current.useSyncExternalStore(e,t,n)};_.useTransition=function(){return xe.current.useTransition()};_.version="18.3.1";Xf.exports=_;var D=Xf.exports;const Kl=Qf(D);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ig=D,sg=Symbol.for("react.element"),og=Symbol.for("react.fragment"),lg=Object.prototype.hasOwnProperty,ag=ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ug={key:!0,ref:!0,__self:!0,__source:!0};function id(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lg.call(t,r)&&!ug.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:sg,type:e,key:s,ref:o,props:i,_owner:ag.current}}Ss.Fragment=og;Ss.jsx=id;Ss.jsxs=id;Yf.exports=Ss;var w=Yf.exports,jo={},sd={exports:{}},Le={},od={exports:{}},ld={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(A,j){var L=A.length;A.push(j);e:for(;0<L;){var X=L-1>>>1,re=A[X];if(0<i(re,j))A[X]=j,A[L]=re,L=X;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var j=A[0],L=A.pop();if(L!==j){A[0]=L;e:for(var X=0,re=A.length,oi=re>>>1;X<oi;){var Wt=2*(X+1)-1,Hs=A[Wt],Ht=Wt+1,li=A[Ht];if(0>i(Hs,L))Ht<re&&0>i(li,Hs)?(A[X]=li,A[Ht]=L,X=Ht):(A[X]=Hs,A[Wt]=L,X=Wt);else if(Ht<re&&0>i(li,L))A[X]=li,A[Ht]=L,X=Ht;else break e}}return j}function i(A,j){var L=A.sortIndex-j.sortIndex;return L!==0?L:A.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(A){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=A)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function v(A){if(x=!1,m(A),!y)if(n(a)!==null)y=!0,si(S);else{var j=n(u);j!==null&&J(v,j.startTime-A)}}function S(A,j){y=!1,x&&(x=!1,p(T),T=-1),g=!0;var L=d;try{for(m(j),f=n(a);f!==null&&(!(f.expirationTime>j)||A&&!ne());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var re=X(f.expirationTime<=j);j=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),m(j)}else r(a);f=n(a)}if(f!==null)var oi=!0;else{var Wt=n(u);Wt!==null&&J(v,Wt.startTime-j),oi=!1}return oi}finally{f=null,d=L,g=!1}}var P=!1,E=null,T=-1,V=5,N=-1;function ne(){return!(e.unstable_now()-N<V)}function yt(){if(E!==null){var A=e.unstable_now();N=A;var j=!0;try{j=E(!0,A)}finally{j?$t():(P=!1,E=null)}}else P=!1}var $t;if(typeof h=="function")$t=function(){h(yt)};else if(typeof MessageChannel<"u"){var bn=new MessageChannel,gu=bn.port2;bn.port1.onmessage=yt,$t=function(){gu.postMessage(null)}}else $t=function(){k(yt,0)};function si(A){E=A,P||(P=!0,$t())}function J(A,j){T=k(function(){A(e.unstable_now())},j)}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(A){A.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,si(S))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var L=d;d=j;try{return A()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var L=d;d=A;try{return j()}finally{d=L}},e.unstable_scheduleCallback=function(A,j,L){var X=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?X+L:X):L=X,A){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=L+re,A={id:c++,callback:j,priorityLevel:A,startTime:L,expirationTime:re,sortIndex:-1},L>X?(A.sortIndex=L,t(u,A),n(a)===null&&A===n(u)&&(x?(p(T),T=-1):x=!0,J(v,L-X))):(A.sortIndex=re,t(a,A),y||g||(y=!0,si(S))),A},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(A){var j=d;return function(){var L=d;d=j;try{return A.apply(this,arguments)}finally{d=L}}}})(ld);od.exports=ld;var cg=od.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fg=D,Ne=cg;function C(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 ad=new Set,Ar={};function un(e,t){Fn(e,t),Fn(e+"Capture",t)}function Fn(e,t){for(Ar[e]=t,e=0;e<t.length;e++)ad.add(t[e])}var ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lo=Object.prototype.hasOwnProperty,dg=/^[: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]*$/,wu={},Su={};function hg(e){return Lo.call(Su,e)?!0:Lo.call(wu,e)?!1:dg.test(e)?Su[e]=!0:(wu[e]=!0,!1)}function pg(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 mg(e,t,n,r){if(t===null||typeof t>"u"||pg(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 we(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new we(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){ce[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Ql(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gl,Ql);ce[t]=new we(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gl,Ql);ce[t]=new we(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gl,Ql);ce[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yl(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(mg(t,n,i,r)&&(n=null),r||i===null?hg(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 gt=fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ui=Symbol.for("react.element"),hn=Symbol.for("react.portal"),pn=Symbol.for("react.fragment"),Xl=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),ud=Symbol.for("react.provider"),cd=Symbol.for("react.context"),Zl=Symbol.for("react.forward_ref"),_o=Symbol.for("react.suspense"),Fo=Symbol.for("react.suspense_list"),ql=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),fd=Symbol.for("react.offscreen"),ku=Symbol.iterator;function Jn(e){return e===null||typeof e!="object"?null:(e=ku&&e[ku]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Gs;function ar(e){if(Gs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gs=t&&t[1]||""}return`
`+Gs+e}var Qs=!1;function Ys(e,t){if(!e||Qs)return"";Qs=!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(`
`),s=r.stack.split(`
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ar(e):""}function gg(e){switch(e.tag){case 5:return ar(e.type);case 16:return ar("Lazy");case 13:return ar("Suspense");case 19:return ar("SuspenseList");case 0:case 2:case 15:return e=Ys(e.type,!1),e;case 11:return e=Ys(e.type.render,!1),e;case 1:return e=Ys(e.type,!0),e;default:return""}}function Oo(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 pn:return"Fragment";case hn:return"Portal";case Vo:return"Profiler";case Xl:return"StrictMode";case _o:return"Suspense";case Fo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cd:return(e.displayName||"Context")+".Consumer";case ud:return(e._context.displayName||"Context")+".Provider";case Zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ql:return t=e.displayName||null,t!==null?t:Oo(e.type)||"Memo";case wt:t=e._payload,e=e._init;try{return Oo(e(t))}catch{}}return null}function yg(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 Oo(t);case 8:return t===Xl?"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 Vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vg(e){var t=dd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){e._valueTracker||(e._valueTracker=vg(e))}function hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Io(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vt(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 pd(e,t){t=t.checked,t!=null&&Yl(e,"checked",t,!1)}function zo(e,t){pd(e,t);var n=Vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bo(e,t.type,Vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bo(e,t,n){(t!=="number"||Hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Rn(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=""+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Uo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(ur(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vt(n)}}function md(e,t){var n=Vt(t.value),r=Vt(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 Eu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function $o(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fi,yd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fi=fi||document.createElement("div"),fi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function 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 mr={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},xg=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){xg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function vd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function xd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wg=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wo(e,t){if(t){if(wg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ho(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ko=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Go=null,Nn=null,jn=null;function Du(e){if(e=Jr(e)){if(typeof Go!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Es(t),Go(e.stateNode,e.type,t))}}function wd(e){Nn?jn?jn.push(e):jn=[e]:Nn=e}function Sd(){if(Nn){var e=Nn,t=jn;if(jn=Nn=null,Du(e),t)for(e=0;e<t.length;e++)Du(t[e])}}function kd(e,t){return e(t)}function Pd(){}var Xs=!1;function Td(e,t,n){if(Xs)return e(t,n);Xs=!0;try{return kd(e,t,n)}finally{Xs=!1,(Nn!==null||jn!==null)&&(Pd(),Sd())}}function Rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Es(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(C(231,t,typeof n));return n}var Qo=!1;if(ft)try{var er={};Object.defineProperty(er,"passive",{get:function(){Qo=!0}}),window.addEventListener("test",er,er),window.removeEventListener("test",er,er)}catch{Qo=!1}function Sg(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var gr=!1,Ki=null,Gi=!1,Yo=null,kg={onError:function(e){gr=!0,Ki=e}};function Pg(e,t,n,r,i,s,o,l,a){gr=!1,Ki=null,Sg.apply(kg,arguments)}function Tg(e,t,n,r,i,s,o,l,a){if(Pg.apply(this,arguments),gr){if(gr){var u=Ki;gr=!1,Ki=null}else throw Error(C(198));Gi||(Gi=!0,Yo=u)}}function cn(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 Cd(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 Au(e){if(cn(e)!==e)throw Error(C(188))}function Cg(e){var t=e.alternate;if(!t){if(t=cn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Au(i),e;if(s===r)return Au(i),t;s=s.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Ed(e){return e=Cg(e),e!==null?Dd(e):null}function Dd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dd(e);if(t!==null)return t;e=e.sibling}return null}var Ad=Ne.unstable_scheduleCallback,Mu=Ne.unstable_cancelCallback,Eg=Ne.unstable_shouldYield,Dg=Ne.unstable_requestPaint,q=Ne.unstable_now,Ag=Ne.unstable_getCurrentPriorityLevel,Jl=Ne.unstable_ImmediatePriority,Md=Ne.unstable_UserBlockingPriority,Qi=Ne.unstable_NormalPriority,Mg=Ne.unstable_LowPriority,Rd=Ne.unstable_IdlePriority,ks=null,et=null;function Rg(e){if(et&&typeof et.onCommitFiberRoot=="function")try{et.onCommitFiberRoot(ks,e,void 0,(e.current.flags&128)===128)}catch{}}var Ye=Math.clz32?Math.clz32:Lg,Ng=Math.log,jg=Math.LN2;function Lg(e){return e>>>=0,e===0?32:31-(Ng(e)/jg|0)|0}var di=64,hi=4194304;function cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=cr(l):(s&=o,s!==0&&(r=cr(s)))}else o=n&~i,o!==0?r=cr(o):s!==0&&(r=cr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ye(t),i=1<<n,r|=e[n],t&=~i;return r}function Vg(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 _g(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ye(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Vg(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Xo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Nd(){var e=di;return di<<=1,!(di&4194240)&&(di=64),e}function Zs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Fg(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-Ye(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ea(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var O=0;function jd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ld,ta,Vd,_d,Fd,Zo=!1,pi=[],Et=null,Dt=null,At=null,Nr=new Map,jr=new Map,kt=[],Og="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ru(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jr.delete(t.pointerId)}}function tr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Jr(t),t!==null&&ta(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ig(e,t,n,r,i){switch(t){case"focusin":return Et=tr(Et,e,t,n,r,i),!0;case"dragenter":return Dt=tr(Dt,e,t,n,r,i),!0;case"mouseover":return At=tr(At,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Nr.set(s,tr(Nr.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,jr.set(s,tr(jr.get(s)||null,e,t,n,r,i)),!0}return!1}function Od(e){var t=Zt(e.target);if(t!==null){var n=cn(t);if(n!==null){if(t=n.tag,t===13){if(t=Cd(n),t!==null){e.blockedOn=t,Fd(e.priority,function(){Vd(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 Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ko=r,n.target.dispatchEvent(r),Ko=null}else return t=Jr(n),t!==null&&ta(t),e.blockedOn=n,!1;t.shift()}return!0}function Nu(e,t,n){Ni(e)&&n.delete(t)}function zg(){Zo=!1,Et!==null&&Ni(Et)&&(Et=null),Dt!==null&&Ni(Dt)&&(Dt=null),At!==null&&Ni(At)&&(At=null),Nr.forEach(Nu),jr.forEach(Nu)}function nr(e,t){e.blockedOn===t&&(e.blockedOn=null,Zo||(Zo=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,zg)))}function Lr(e){function t(i){return nr(i,e)}if(0<pi.length){nr(pi[0],e);for(var n=1;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&nr(Et,e),Dt!==null&&nr(Dt,e),At!==null&&nr(At,e),Nr.forEach(t),jr.forEach(t),n=0;n<kt.length;n++)r=kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&(n=kt[0],n.blockedOn===null);)Od(n),n.blockedOn===null&&kt.shift()}var Ln=gt.ReactCurrentBatchConfig,Xi=!0;function Bg(e,t,n,r){var i=O,s=Ln.transition;Ln.transition=null;try{O=1,na(e,t,n,r)}finally{O=i,Ln.transition=s}}function Ug(e,t,n,r){var i=O,s=Ln.transition;Ln.transition=null;try{O=4,na(e,t,n,r)}finally{O=i,Ln.transition=s}}function na(e,t,n,r){if(Xi){var i=qo(e,t,n,r);if(i===null)oo(e,t,r,Zi,n),Ru(e,r);else if(Ig(i,e,t,n,r))r.stopPropagation();else if(Ru(e,r),t&4&&-1<Og.indexOf(e)){for(;i!==null;){var s=Jr(i);if(s!==null&&Ld(s),s=qo(e,t,n,r),s===null&&oo(e,t,r,Zi,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else oo(e,t,r,null,n)}}var Zi=null;function qo(e,t,n,r){if(Zi=null,e=bl(r),e=Zt(e),e!==null)if(t=cn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zi=e,null}function Id(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(Ag()){case Jl:return 1;case Md:return 4;case Qi:case Mg:return 16;case Rd:return 536870912;default:return 16}default:return 16}}var Tt=null,ra=null,ji=null;function zd(){if(ji)return ji;var e,t=ra,n=t.length,r,i="value"in Tt?Tt.value:Tt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return ji=i.slice(e,1<r?1-r:void 0)}function Li(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function ju(){return!1}function Ve(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?mi:ju,this.isPropagationStopped=ju,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var Yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ia=Ve(Yn),br=G({},Yn,{view:0,detail:0}),$g=Ve(br),qs,bs,rr,Ps=G({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rr&&(rr&&e.type==="mousemove"?(qs=e.screenX-rr.screenX,bs=e.screenY-rr.screenY):bs=qs=0,rr=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:bs}}),Lu=Ve(Ps),Wg=G({},Ps,{dataTransfer:0}),Hg=Ve(Wg),Kg=G({},br,{relatedTarget:0}),Js=Ve(Kg),Gg=G({},Yn,{animationName:0,elapsedTime:0,pseudoElement:0}),Qg=Ve(Gg),Yg=G({},Yn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xg=Ve(Yg),Zg=G({},Yn,{data:0}),Vu=Ve(Zg),qg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bg={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"},Jg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jg[e])?!!t[e]:!1}function sa(){return e0}var t0=G({},br,{key:function(e){if(e.key){var t=qg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sa,charCode:function(e){return e.type==="keypress"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n0=Ve(t0),r0=G({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_u=Ve(r0),i0=G({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sa}),s0=Ve(i0),o0=G({},Yn,{propertyName:0,elapsedTime:0,pseudoElement:0}),l0=Ve(o0),a0=G({},Ps,{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}),u0=Ve(a0),c0=[9,13,27,32],oa=ft&&"CompositionEvent"in window,yr=null;ft&&"documentMode"in document&&(yr=document.documentMode);var f0=ft&&"TextEvent"in window&&!yr,Bd=ft&&(!oa||yr&&8<yr&&11>=yr),Fu=" ",Ou=!1;function Ud(e,t){switch(e){case"keyup":return c0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function d0(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(Ou=!0,Fu);case"textInput":return e=t.data,e===Fu&&Ou?null:e;default:return null}}function h0(e,t){if(mn)return e==="compositionend"||!oa&&Ud(e,t)?(e=zd(),ji=ra=Tt=null,mn=!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 Bd&&t.locale!=="ko"?null:t.data;default:return null}}var p0={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 Iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p0[e.type]:t==="textarea"}function Wd(e,t,n,r){wd(r),t=qi(t,"onChange"),0<t.length&&(n=new ia("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vr=null,Vr=null;function m0(e){eh(e,0)}function Ts(e){var t=vn(e);if(hd(t))return e}function g0(e,t){if(e==="change")return t}var Hd=!1;if(ft){var eo;if(ft){var to="oninput"in document;if(!to){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),to=typeof zu.oninput=="function"}eo=to}else eo=!1;Hd=eo&&(!document.documentMode||9<document.documentMode)}function Bu(){vr&&(vr.detachEvent("onpropertychange",Kd),Vr=vr=null)}function Kd(e){if(e.propertyName==="value"&&Ts(Vr)){var t=[];Wd(t,Vr,e,bl(e)),Td(m0,t)}}function y0(e,t,n){e==="focusin"?(Bu(),vr=t,Vr=n,vr.attachEvent("onpropertychange",Kd)):e==="focusout"&&Bu()}function v0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Vr)}function x0(e,t){if(e==="click")return Ts(t)}function w0(e,t){if(e==="input"||e==="change")return Ts(t)}function S0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ze=typeof Object.is=="function"?Object.is:S0;function _r(e,t){if(Ze(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(!Lo.call(t,i)||!Ze(e[i],t[i]))return!1}return!0}function Uu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $u(e,t){var n=Uu(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=Uu(n)}}function Gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qd(){for(var e=window,t=Hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hi(e.document)}return t}function la(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function k0(e){var t=Qd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gd(n.ownerDocument.documentElement,n)){if(r!==null&&la(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=$u(n,s);var o=$u(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var P0=ft&&"documentMode"in document&&11>=document.documentMode,gn=null,bo=null,xr=null,Jo=!1;function Wu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jo||gn==null||gn!==Hi(r)||(r=gn,"selectionStart"in r&&la(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&_r(xr,r)||(xr=r,r=qi(bo,"onSelect"),0<r.length&&(t=new ia("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gn)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yn={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},no={},Yd={};ft&&(Yd=document.createElement("div").style,"AnimationEvent"in window||(delete yn.animationend.animation,delete yn.animationiteration.animation,delete yn.animationstart.animation),"TransitionEvent"in window||delete yn.transitionend.transition);function Cs(e){if(no[e])return no[e];if(!yn[e])return e;var t=yn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yd)return no[e]=t[n];return e}var Xd=Cs("animationend"),Zd=Cs("animationiteration"),qd=Cs("animationstart"),bd=Cs("transitionend"),Jd=new Map,Hu="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 It(e,t){Jd.set(e,t),un(t,[e])}for(var ro=0;ro<Hu.length;ro++){var io=Hu[ro],T0=io.toLowerCase(),C0=io[0].toUpperCase()+io.slice(1);It(T0,"on"+C0)}It(Xd,"onAnimationEnd");It(Zd,"onAnimationIteration");It(qd,"onAnimationStart");It("dblclick","onDoubleClick");It("focusin","onFocus");It("focusout","onBlur");It(bd,"onTransitionEnd");Fn("onMouseEnter",["mouseout","mouseover"]);Fn("onMouseLeave",["mouseout","mouseover"]);Fn("onPointerEnter",["pointerout","pointerover"]);Fn("onPointerLeave",["pointerout","pointerover"]);un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));un("onBeforeInput",["compositionend","keypress","textInput","paste"]);un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),E0=new Set("cancel close invalid load scroll toggle".split(" ").concat(fr));function Ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Tg(r,t,void 0,e),e.currentTarget=null}function eh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;Ku(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;Ku(i,l,u),s=a}}}if(Gi)throw e=Yo,Gi=!1,Yo=null,e}function z(e,t){var n=t[il];n===void 0&&(n=t[il]=new Set);var r=e+"__bubble";n.has(r)||(th(t,e,2,!1),n.add(r))}function so(e,t,n){var r=0;t&&(r|=4),th(n,e,r,t)}var yi="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[yi]){e[yi]=!0,ad.forEach(function(n){n!=="selectionchange"&&(E0.has(n)||so(n,!1,e),so(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yi]||(t[yi]=!0,so("selectionchange",!1,t))}}function th(e,t,n,r){switch(Id(t)){case 1:var i=Bg;break;case 4:i=Ug;break;default:i=na}n=i.bind(null,t,n,e),i=void 0,!Qo||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 oo(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Zt(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Td(function(){var u=s,c=bl(n),f=[];e:{var d=Jd.get(e);if(d!==void 0){var g=ia,y=e;switch(e){case"keypress":if(Li(n)===0)break e;case"keydown":case"keyup":g=n0;break;case"focusin":y="focus",g=Js;break;case"focusout":y="blur",g=Js;break;case"beforeblur":case"afterblur":g=Js;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Lu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Hg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=s0;break;case Xd:case Zd:case qd:g=Qg;break;case bd:g=l0;break;case"scroll":g=$g;break;case"wheel":g=u0;break;case"copy":case"cut":case"paste":g=Xg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=_u}var x=(t&4)!==0,k=!x&&e==="scroll",p=x?d!==null?d+"Capture":null:d;x=[];for(var h=u,m;h!==null;){m=h;var v=m.stateNode;if(m.tag===5&&v!==null&&(m=v,p!==null&&(v=Rr(h,p),v!=null&&x.push(Or(h,v,m)))),k)break;h=h.return}0<x.length&&(d=new g(d,y,null,n,c),f.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Ko&&(y=n.relatedTarget||n.fromElement)&&(Zt(y)||y[dt]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?Zt(y):null,y!==null&&(k=cn(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(x=Lu,v="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=_u,v="onPointerLeave",p="onPointerEnter",h="pointer"),k=g==null?d:vn(g),m=y==null?d:vn(y),d=new x(v,h+"leave",g,n,c),d.target=k,d.relatedTarget=m,v=null,Zt(c)===u&&(x=new x(p,h+"enter",y,n,c),x.target=m,x.relatedTarget=k,v=x),k=v,g&&y)t:{for(x=g,p=y,h=0,m=x;m;m=dn(m))h++;for(m=0,v=p;v;v=dn(v))m++;for(;0<h-m;)x=dn(x),h--;for(;0<m-h;)p=dn(p),m--;for(;h--;){if(x===p||p!==null&&x===p.alternate)break t;x=dn(x),p=dn(p)}x=null}else x=null;g!==null&&Gu(f,d,g,x,!1),y!==null&&k!==null&&Gu(f,k,y,x,!0)}}e:{if(d=u?vn(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var S=g0;else if(Iu(d))if(Hd)S=w0;else{S=v0;var P=y0}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=x0);if(S&&(S=S(e,u))){Wd(f,S,n,c);break e}P&&P(e,d,u),e==="focusout"&&(P=d._wrapperState)&&P.controlled&&d.type==="number"&&Bo(d,"number",d.value)}switch(P=u?vn(u):window,e){case"focusin":(Iu(P)||P.contentEditable==="true")&&(gn=P,bo=u,xr=null);break;case"focusout":xr=bo=gn=null;break;case"mousedown":Jo=!0;break;case"contextmenu":case"mouseup":case"dragend":Jo=!1,Wu(f,n,c);break;case"selectionchange":if(P0)break;case"keydown":case"keyup":Wu(f,n,c)}var E;if(oa)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else mn?Ud(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Bd&&n.locale!=="ko"&&(mn||T!=="onCompositionStart"?T==="onCompositionEnd"&&mn&&(E=zd()):(Tt=c,ra="value"in Tt?Tt.value:Tt.textContent,mn=!0)),P=qi(u,T),0<P.length&&(T=new Vu(T,e,null,n,c),f.push({event:T,listeners:P}),E?T.data=E:(E=$d(n),E!==null&&(T.data=E)))),(E=f0?d0(e,n):h0(e,n))&&(u=qi(u,"onBeforeInput"),0<u.length&&(c=new Vu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}eh(f,t)})}function Or(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Rr(e,n),s!=null&&r.unshift(Or(e,s,i)),s=Rr(e,t),s!=null&&r.push(Or(e,s,i))),e=e.return}return r}function dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gu(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Rr(n,s),a!=null&&o.unshift(Or(n,a,l))):i||(a=Rr(n,s),a!=null&&o.push(Or(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var D0=/\r\n?/g,A0=/\u0000|\uFFFD/g;function Qu(e){return(typeof e=="string"?e:""+e).replace(D0,`
`).replace(A0,"")}function vi(e,t,n){if(t=Qu(t),Qu(e)!==t&&n)throw Error(C(425))}function bi(){}var el=null,tl=null;function nl(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 rl=typeof setTimeout=="function"?setTimeout:void 0,M0=typeof clearTimeout=="function"?clearTimeout:void 0,Yu=typeof Promise=="function"?Promise:void 0,R0=typeof queueMicrotask=="function"?queueMicrotask:typeof Yu<"u"?function(e){return Yu.resolve(null).then(e).catch(N0)}:rl;function N0(e){setTimeout(function(){throw e})}function lo(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),Lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Lr(t)}function Mt(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 Xu(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 Xn=Math.random().toString(36).slice(2),Je="__reactFiber$"+Xn,Ir="__reactProps$"+Xn,dt="__reactContainer$"+Xn,il="__reactEvents$"+Xn,j0="__reactListeners$"+Xn,L0="__reactHandles$"+Xn;function Zt(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dt]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xu(e);e!==null;){if(n=e[Je])return n;e=Xu(e)}return t}e=n,n=e.parentNode}return null}function Jr(e){return e=e[Je]||e[dt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Es(e){return e[Ir]||null}var sl=[],xn=-1;function zt(e){return{current:e}}function B(e){0>xn||(e.current=sl[xn],sl[xn]=null,xn--)}function I(e,t){xn++,sl[xn]=e.current,e.current=t}var _t={},ge=zt(_t),Pe=zt(!1),rn=_t;function On(e,t){var n=e.type.contextTypes;if(!n)return _t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function Ji(){B(Pe),B(ge)}function Zu(e,t,n){if(ge.current!==_t)throw Error(C(168));I(ge,t),I(Pe,n)}function nh(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(C(108,yg(e)||"Unknown",i));return G({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,rn=ge.current,I(ge,e),I(Pe,Pe.current),!0}function qu(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=nh(e,t,rn),r.__reactInternalMemoizedMergedChildContext=e,B(Pe),B(ge),I(ge,e)):B(Pe),I(Pe,n)}var st=null,Ds=!1,ao=!1;function rh(e){st===null?st=[e]:st.push(e)}function V0(e){Ds=!0,rh(e)}function Bt(){if(!ao&&st!==null){ao=!0;var e=0,t=O;try{var n=st;for(O=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}st=null,Ds=!1}catch(i){throw st!==null&&(st=st.slice(e+1)),Ad(Jl,Bt),i}finally{O=t,ao=!1}}return null}var wn=[],Sn=0,ts=null,ns=0,Oe=[],Ie=0,sn=null,ot=1,lt="";function Gt(e,t){wn[Sn++]=ns,wn[Sn++]=ts,ts=e,ns=t}function ih(e,t,n){Oe[Ie++]=ot,Oe[Ie++]=lt,Oe[Ie++]=sn,sn=e;var r=ot;e=lt;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var s=32-Ye(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ot=1<<32-Ye(t)+i|n<<i|r,lt=s+e}else ot=1<<s|n<<i|r,lt=e}function aa(e){e.return!==null&&(Gt(e,1),ih(e,1,0))}function ua(e){for(;e===ts;)ts=wn[--Sn],wn[Sn]=null,ns=wn[--Sn],wn[Sn]=null;for(;e===sn;)sn=Oe[--Ie],Oe[Ie]=null,lt=Oe[--Ie],Oe[Ie]=null,ot=Oe[--Ie],Oe[Ie]=null}var Me=null,Ae=null,$=!1,Qe=null;function sh(e,t){var n=ze(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 bu(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,Me=e,Ae=Mt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Me=e,Ae=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sn!==null?{id:ot,overflow:lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Me=e,Ae=null,!0):!1;default:return!1}}function ol(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ll(e){if($){var t=Ae;if(t){var n=t;if(!bu(e,t)){if(ol(e))throw Error(C(418));t=Mt(n.nextSibling);var r=Me;t&&bu(e,t)?sh(r,n):(e.flags=e.flags&-4097|2,$=!1,Me=e)}}else{if(ol(e))throw Error(C(418));e.flags=e.flags&-4097|2,$=!1,Me=e}}}function Ju(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Me=e}function xi(e){if(e!==Me)return!1;if(!$)return Ju(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nl(e.type,e.memoizedProps)),t&&(t=Ae)){if(ol(e))throw oh(),Error(C(418));for(;t;)sh(e,t),t=Mt(t.nextSibling)}if(Ju(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ae=Mt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ae=null}}else Ae=Me?Mt(e.stateNode.nextSibling):null;return!0}function oh(){for(var e=Ae;e;)e=Mt(e.nextSibling)}function In(){Ae=Me=null,$=!1}function ca(e){Qe===null?Qe=[e]:Qe.push(e)}var _0=gt.ReactCurrentBatchConfig;function ir(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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function wi(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ec(e){var t=e._init;return t(e._payload)}function lh(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=Lt(p,h),p.index=0,p.sibling=null,p}function s(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,m,v){return h===null||h.tag!==6?(h=go(m,p.mode,v),h.return=p,h):(h=i(h,m),h.return=p,h)}function a(p,h,m,v){var S=m.type;return S===pn?c(p,h,m.props.children,v,m.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wt&&ec(S)===h.type)?(v=i(h,m.props),v.ref=ir(p,h,m),v.return=p,v):(v=Bi(m.type,m.key,m.props,null,p.mode,v),v.ref=ir(p,h,m),v.return=p,v)}function u(p,h,m,v){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=yo(m,p.mode,v),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,v,S){return h===null||h.tag!==7?(h=tn(m,p.mode,v,S),h.return=p,h):(h=i(h,m),h.return=p,h)}function f(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=go(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ui:return m=Bi(h.type,h.key,h.props,null,p.mode,m),m.ref=ir(p,null,h),m.return=p,m;case hn:return h=yo(h,p.mode,m),h.return=p,h;case wt:var v=h._init;return f(p,v(h._payload),m)}if(ur(h)||Jn(h))return h=tn(h,p.mode,m,null),h.return=p,h;wi(p,h)}return null}function d(p,h,m,v){var S=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:l(p,h,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ui:return m.key===S?a(p,h,m,v):null;case hn:return m.key===S?u(p,h,m,v):null;case wt:return S=m._init,d(p,h,S(m._payload),v)}if(ur(m)||Jn(m))return S!==null?null:c(p,h,m,v,null);wi(p,m)}return null}function g(p,h,m,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(m)||null,l(h,p,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ui:return p=p.get(v.key===null?m:v.key)||null,a(h,p,v,S);case hn:return p=p.get(v.key===null?m:v.key)||null,u(h,p,v,S);case wt:var P=v._init;return g(p,h,m,P(v._payload),S)}if(ur(v)||Jn(v))return p=p.get(m)||null,c(h,p,v,S,null);wi(h,v)}return null}function y(p,h,m,v){for(var S=null,P=null,E=h,T=h=0,V=null;E!==null&&T<m.length;T++){E.index>T?(V=E,E=null):V=E.sibling;var N=d(p,E,m[T],v);if(N===null){E===null&&(E=V);break}e&&E&&N.alternate===null&&t(p,E),h=s(N,h,T),P===null?S=N:P.sibling=N,P=N,E=V}if(T===m.length)return n(p,E),$&&Gt(p,T),S;if(E===null){for(;T<m.length;T++)E=f(p,m[T],v),E!==null&&(h=s(E,h,T),P===null?S=E:P.sibling=E,P=E);return $&&Gt(p,T),S}for(E=r(p,E);T<m.length;T++)V=g(E,p,T,m[T],v),V!==null&&(e&&V.alternate!==null&&E.delete(V.key===null?T:V.key),h=s(V,h,T),P===null?S=V:P.sibling=V,P=V);return e&&E.forEach(function(ne){return t(p,ne)}),$&&Gt(p,T),S}function x(p,h,m,v){var S=Jn(m);if(typeof S!="function")throw Error(C(150));if(m=S.call(m),m==null)throw Error(C(151));for(var P=S=null,E=h,T=h=0,V=null,N=m.next();E!==null&&!N.done;T++,N=m.next()){E.index>T?(V=E,E=null):V=E.sibling;var ne=d(p,E,N.value,v);if(ne===null){E===null&&(E=V);break}e&&E&&ne.alternate===null&&t(p,E),h=s(ne,h,T),P===null?S=ne:P.sibling=ne,P=ne,E=V}if(N.done)return n(p,E),$&&Gt(p,T),S;if(E===null){for(;!N.done;T++,N=m.next())N=f(p,N.value,v),N!==null&&(h=s(N,h,T),P===null?S=N:P.sibling=N,P=N);return $&&Gt(p,T),S}for(E=r(p,E);!N.done;T++,N=m.next())N=g(E,p,T,N.value,v),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?T:N.key),h=s(N,h,T),P===null?S=N:P.sibling=N,P=N);return e&&E.forEach(function(yt){return t(p,yt)}),$&&Gt(p,T),S}function k(p,h,m,v){if(typeof m=="object"&&m!==null&&m.type===pn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ui:e:{for(var S=m.key,P=h;P!==null;){if(P.key===S){if(S=m.type,S===pn){if(P.tag===7){n(p,P.sibling),h=i(P,m.props.children),h.return=p,p=h;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wt&&ec(S)===P.type){n(p,P.sibling),h=i(P,m.props),h.ref=ir(p,P,m),h.return=p,p=h;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===pn?(h=tn(m.props.children,p.mode,v,m.key),h.return=p,p=h):(v=Bi(m.type,m.key,m.props,null,p.mode,v),v.ref=ir(p,h,m),v.return=p,p=v)}return o(p);case hn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=yo(m,p.mode,v),h.return=p,p=h}return o(p);case wt:return P=m._init,k(p,h,P(m._payload),v)}if(ur(m))return y(p,h,m,v);if(Jn(m))return x(p,h,m,v);wi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=go(m,p.mode,v),h.return=p,p=h),o(p)):n(p,h)}return k}var zn=lh(!0),ah=lh(!1),rs=zt(null),is=null,kn=null,fa=null;function da(){fa=kn=is=null}function ha(e){var t=rs.current;B(rs),e._currentValue=t}function al(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 Vn(e,t){is=e,fa=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(fa!==e)if(e={context:e,memoizedValue:t,next:null},kn===null){if(is===null)throw Error(C(308));kn=e,is.dependencies={lanes:0,firstContext:e}}else kn=kn.next=e;return t}var qt=null;function pa(e){qt===null?qt=[e]:qt.push(e)}function uh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pa(t)):(n.next=i.next,i.next=n),t.interleaved=n,ht(e,r)}function ht(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 St=!1;function ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ch(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 at(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ht(e,n)}return i=r.interleaved,i===null?(t.next=t,pa(r)):(t.next=i.next,i.next=t),r.interleaved=t,ht(e,n)}function Vi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ea(e,n)}}function tc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ss(e,t,n,r){var i=e.updateQueue;St=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(d=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(g,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,d=typeof y=="function"?y.call(g,f,d):y,d==null)break e;f=G({},f,d);break e;case 2:St=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ln|=o,e.lanes=o,e.memoizedState=f}}function nc(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(C(191,i));i.call(r)}}}var ei={},tt=zt(ei),zr=zt(ei),Br=zt(ei);function bt(e){if(e===ei)throw Error(C(174));return e}function ga(e,t){switch(I(Br,t),I(zr,e),I(tt,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$o(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$o(t,e)}B(tt),I(tt,t)}function Bn(){B(tt),B(zr),B(Br)}function fh(e){bt(Br.current);var t=bt(tt.current),n=$o(t,e.type);t!==n&&(I(zr,e),I(tt,n))}function ya(e){zr.current===e&&(B(tt),B(zr))}var W=zt(0);function os(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 uo=[];function va(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var _i=gt.ReactCurrentDispatcher,co=gt.ReactCurrentBatchConfig,on=0,K=null,ee=null,ie=null,ls=!1,wr=!1,Ur=0,F0=0;function fe(){throw Error(C(321))}function xa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}function wa(e,t,n,r,i,s){if(on=s,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=e===null||e.memoizedState===null?B0:U0,e=n(r,i),wr){s=0;do{if(wr=!1,Ur=0,25<=s)throw Error(C(301));s+=1,ie=ee=null,t.updateQueue=null,_i.current=$0,e=n(r,i)}while(wr)}if(_i.current=as,t=ee!==null&&ee.next!==null,on=0,ie=ee=K=null,ls=!1,t)throw Error(C(300));return e}function Sa(){var e=Ur!==0;return Ur=0,e}function be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?K.memoizedState=ie=e:ie=ie.next=e,ie}function $e(){if(ee===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=ie===null?K.memoizedState:ie.next;if(t!==null)ie=t,ee=e;else{if(e===null)throw Error(C(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},ie===null?K.memoizedState=ie=e:ie=ie.next=e}return ie}function $r(e,t){return typeof t=="function"?t(e):t}function fo(e){var t=$e(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=ee,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((on&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,o=r):a=a.next=f,K.lanes|=c,ln|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Ze(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,K.lanes|=s,ln|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ho(e){var t=$e(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ze(s,t.memoizedState)||(ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function dh(){}function hh(e,t){var n=K,r=$e(),i=t(),s=!Ze(r.memoizedState,i);if(s&&(r.memoizedState=i,ke=!0),r=r.queue,ka(gh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,Wr(9,mh.bind(null,n,r,i,t),void 0,null),se===null)throw Error(C(349));on&30||ph(n,t,i)}return i}function ph(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mh(e,t,n,r){t.value=n,t.getSnapshot=r,yh(t)&&vh(e)}function gh(e,t,n){return n(function(){yh(t)&&vh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ze(e,n)}catch{return!0}}function vh(e){var t=ht(e,1);t!==null&&Xe(t,e,1,-1)}function rc(e){var t=be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:e},t.queue=e,e=e.dispatch=z0.bind(null,K,e),[t.memoizedState,e]}function Wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.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 xh(){return $e().memoizedState}function Fi(e,t,n,r){var i=be();K.flags|=e,i.memoizedState=Wr(1|t,n,void 0,r===void 0?null:r)}function As(e,t,n,r){var i=$e();r=r===void 0?null:r;var s=void 0;if(ee!==null){var o=ee.memoizedState;if(s=o.destroy,r!==null&&xa(r,o.deps)){i.memoizedState=Wr(t,n,s,r);return}}K.flags|=e,i.memoizedState=Wr(1|t,n,s,r)}function ic(e,t){return Fi(8390656,8,e,t)}function ka(e,t){return As(2048,8,e,t)}function wh(e,t){return As(4,2,e,t)}function Sh(e,t){return As(4,4,e,t)}function kh(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 Ph(e,t,n){return n=n!=null?n.concat([e]):null,As(4,4,kh.bind(null,t,e),n)}function Pa(){}function Th(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ch(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eh(e,t,n){return on&21?(Ze(n,t)||(n=Nd(),K.lanes|=n,ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function O0(e,t){var n=O;O=n!==0&&4>n?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{O=n,co.transition=r}}function Dh(){return $e().memoizedState}function I0(e,t,n){var r=jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ah(e))Mh(t,n);else if(n=uh(e,t,n,r),n!==null){var i=ve();Xe(n,e,r,i),Rh(n,t,r)}}function z0(e,t,n){var r=jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ah(e))Mh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ze(l,o)){var a=t.interleaved;a===null?(i.next=i,pa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=uh(e,t,i,r),n!==null&&(i=ve(),Xe(n,e,r,i),Rh(n,t,r))}}function Ah(e){var t=e.alternate;return e===K||t!==null&&t===K}function Mh(e,t){wr=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ea(e,n)}}var as={readContext:Ue,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},B0={readContext:Ue,useCallback:function(e,t){return be().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:ic,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=be();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=I0.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=be();return e={current:e},t.memoizedState=e},useState:rc,useDebugValue:Pa,useDeferredValue:function(e){return be().memoizedState=e},useTransition:function(){var e=rc(!1),t=e[0];return e=O0.bind(null,e[1]),be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,i=be();if($){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),se===null)throw Error(C(349));on&30||ph(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ic(gh.bind(null,r,s,e),[e]),r.flags|=2048,Wr(9,mh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=be(),t=se.identifierPrefix;if($){var n=lt,r=ot;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=F0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},U0={readContext:Ue,useCallback:Th,useContext:Ue,useEffect:ka,useImperativeHandle:Ph,useInsertionEffect:wh,useLayoutEffect:Sh,useMemo:Ch,useReducer:fo,useRef:xh,useState:function(){return fo($r)},useDebugValue:Pa,useDeferredValue:function(e){var t=$e();return Eh(t,ee.memoizedState,e)},useTransition:function(){var e=fo($r)[0],t=$e().memoizedState;return[e,t]},useMutableSource:dh,useSyncExternalStore:hh,useId:Dh,unstable_isNewReconciler:!1},$0={readContext:Ue,useCallback:Th,useContext:Ue,useEffect:ka,useImperativeHandle:Ph,useInsertionEffect:wh,useLayoutEffect:Sh,useMemo:Ch,useReducer:ho,useRef:xh,useState:function(){return ho($r)},useDebugValue:Pa,useDeferredValue:function(e){var t=$e();return ee===null?t.memoizedState=e:Eh(t,ee.memoizedState,e)},useTransition:function(){var e=ho($r)[0],t=$e().memoizedState;return[e,t]},useMutableSource:dh,useSyncExternalStore:hh,useId:Dh,unstable_isNewReconciler:!1};function Ke(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ul(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ms={isMounted:function(e){return(e=e._reactInternals)?cn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ve(),i=jt(e),s=at(r,i);s.payload=t,n!=null&&(s.callback=n),t=Rt(e,s,i),t!==null&&(Xe(t,e,i,r),Vi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ve(),i=jt(e),s=at(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Rt(e,s,i),t!==null&&(Xe(t,e,i,r),Vi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ve(),r=jt(e),i=at(n,r);i.tag=2,t!=null&&(i.callback=t),t=Rt(e,i,r),t!==null&&(Xe(t,e,r,n),Vi(t,e,r))}};function sc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!_r(n,r)||!_r(i,s):!0}function Nh(e,t,n){var r=!1,i=_t,s=t.contextType;return typeof s=="object"&&s!==null?s=Ue(s):(i=Te(t)?rn:ge.current,r=t.contextTypes,s=(r=r!=null)?On(e,i):_t),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ms,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function oc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ms.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ma(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ue(s):(s=Te(t)?rn:ge.current,i.context=On(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ul(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ms.enqueueReplaceState(i,i.state,null),ss(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Un(e,t){try{var n="",r=t;do n+=gg(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function po(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var W0=typeof WeakMap=="function"?WeakMap:Map;function jh(e,t,n){n=at(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cs||(cs=!0,Sl=r),fl(e,t)},n}function Lh(e,t,n){n=at(-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(){fl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){fl(e,t),typeof r!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function lc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new W0;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=ry.bind(null,e,t,n),t.then(e,e))}function ac(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 uc(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=at(-1,1),t.tag=2,Rt(n,t,1))),n.lanes|=1),e)}var H0=gt.ReactCurrentOwner,ke=!1;function ye(e,t,n,r){t.child=e===null?ah(t,null,n,r):zn(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var s=t.ref;return Vn(t,i),r=wa(e,t,n,r,s,i),n=Sa(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pt(e,t,i)):($&&n&&aa(t),t.flags|=1,ye(e,t,r,i),t.child)}function fc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Na(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Vh(e,t,s,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:_r,n(o,r)&&e.ref===t.ref)return pt(e,t,i)}return t.flags|=1,e=Lt(s,r),e.ref=t.ref,e.return=t,t.child=e}function Vh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(_r(s,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,pt(e,t,i)}return dl(e,t,n,r,i)}function _h(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Tn,Ee),Ee|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Tn,Ee),Ee|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,I(Tn,Ee),Ee|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,I(Tn,Ee),Ee|=r;return ye(e,t,i,n),t.child}function Fh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dl(e,t,n,r,i){var s=Te(n)?rn:ge.current;return s=On(t,s),Vn(t,i),n=wa(e,t,n,r,s,i),r=Sa(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pt(e,t,i)):($&&r&&aa(t),t.flags|=1,ye(e,t,n,i),t.child)}function dc(e,t,n,r,i){if(Te(n)){var s=!0;es(t)}else s=!1;if(Vn(t,i),t.stateNode===null)Oi(e,t),Nh(t,n,r),cl(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ue(u):(u=Te(n)?rn:ge.current,u=On(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&oc(t,o,r,u),St=!1;var d=t.memoizedState;o.state=d,ss(t,r,o,i),a=t.memoizedState,l!==r||d!==a||Pe.current||St?(typeof c=="function"&&(ul(t,n,c,r),a=t.memoizedState),(l=St||sc(t,n,l,r,d,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ch(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ke(t.type,l),o.props=u,f=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ue(a):(a=Te(n)?rn:ge.current,a=On(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==a)&&oc(t,o,r,a),St=!1,d=t.memoizedState,o.state=d,ss(t,r,o,i);var y=t.memoizedState;l!==f||d!==y||Pe.current||St?(typeof g=="function"&&(ul(t,n,g,r),y=t.memoizedState),(u=St||sc(t,n,u,r,d,y,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return hl(e,t,n,r,s,i)}function hl(e,t,n,r,i,s){Fh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&qu(t,n,!1),pt(e,t,s);r=t.stateNode,H0.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=zn(t,e.child,null,s),t.child=zn(t,null,l,s)):ye(e,t,l,s),t.memoizedState=r.state,i&&qu(t,n,!0),t.child}function Oh(e){var t=e.stateNode;t.pendingContext?Zu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zu(e,t.context,!1),ga(e,t.containerInfo)}function hc(e,t,n,r,i){return In(),ca(i),t.flags|=256,ye(e,t,n,r),t.child}var pl={dehydrated:null,treeContext:null,retryLane:0};function ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ih(e,t,n){var r=t.pendingProps,i=W.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),I(W,i&1),e===null)return ll(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=js(o,r,0,null),e=tn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ml(n),t.memoizedState=pl,e):Ta(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return K0(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Lt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Lt(l,s):(s=tn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?ml(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=pl,r}return s=e.child,e=s.sibling,r=Lt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ta(e,t){return t=js({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Si(e,t,n,r){return r!==null&&ca(r),zn(t,e.child,null,n),e=Ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function K0(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=po(Error(C(422))),Si(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=js({mode:"visible",children:r.children},i,0,null),s=tn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&zn(t,e.child,null,o),t.child.memoizedState=ml(o),t.memoizedState=pl,s);if(!(t.mode&1))return Si(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(C(419)),r=po(s,r,void 0),Si(e,t,o,r)}if(l=(o&e.childLanes)!==0,ke||l){if(r=se,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ht(e,i),Xe(r,e,i,-1))}return Ra(),r=po(Error(C(421))),Si(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=iy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Ae=Mt(i.nextSibling),Me=t,$=!0,Qe=null,e!==null&&(Oe[Ie++]=ot,Oe[Ie++]=lt,Oe[Ie++]=sn,ot=e.id,lt=e.overflow,sn=t),t=Ta(t,r.children),t.flags|=4096,t)}function pc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),al(e.return,t,n)}function mo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function zh(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ye(e,t,r.children,n),r=W.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&&pc(e,n,t);else if(e.tag===19)pc(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(I(W,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&&os(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),mo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&os(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}mo(t,!0,n,null,s);break;case"together":mo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Lt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function G0(e,t,n){switch(t.tag){case 3:Oh(t),In();break;case 5:fh(t);break;case 1:Te(t.type)&&es(t);break;case 4:ga(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;I(rs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?Ih(e,t,n):(I(W,W.current&1),e=pt(e,t,n),e!==null?e.sibling:null);I(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,_h(e,t,n)}return pt(e,t,n)}var Bh,gl,Uh,$h;Bh=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}};gl=function(){};Uh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,bt(tt.current);var s=null;switch(n){case"input":i=Io(e,i),r=Io(e,r),s=[];break;case"select":i=G({},i,{value:void 0}),r=G({},r,{value:void 0}),s=[];break;case"textarea":i=Uo(e,i),r=Uo(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bi)}Wo(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ar.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ar.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};$h=function(e,t,n,r){n!==r&&(t.flags|=4)};function sr(e,t){if(!$)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 de(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 Q0(e,t,n){var r=t.pendingProps;switch(ua(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return Te(t.type)&&Ji(),de(t),null;case 3:return r=t.stateNode,Bn(),B(Pe),B(ge),va(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(Tl(Qe),Qe=null))),gl(e,t),de(t),null;case 5:ya(t);var i=bt(Br.current);if(n=t.type,e!==null&&t.stateNode!=null)Uh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return de(t),null}if(e=bt(tt.current),xi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Je]=t,r[Ir]=s,e=(t.mode&1)!==0,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(i=0;i<fr.length;i++)z(fr[i],r);break;case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":Pu(r,s),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},z("invalid",r);break;case"textarea":Cu(r,s),z("invalid",r)}Wo(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&vi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&vi(r.textContent,l,e),i=["children",""+l]):Ar.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&z("scroll",r)}switch(n){case"input":ci(r),Tu(r,s,!0);break;case"textarea":ci(r),Eu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=bi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Je]=t,e[Ir]=r,Bh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ho(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i<fr.length;i++)z(fr[i],e);i=r;break;case"source":z("error",e),i=r;break;case"img":case"image":case"link":z("error",e),z("load",e),i=r;break;case"details":z("toggle",e),i=r;break;case"input":Pu(e,r),i=Io(e,r),z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=G({},r,{value:void 0}),z("invalid",e);break;case"textarea":Cu(e,r),i=Uo(e,r),z("invalid",e);break;default:i=r}Wo(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?xd(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&yd(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Mr(e,a):typeof a=="number"&&Mr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ar.hasOwnProperty(s)?a!=null&&s==="onScroll"&&z("scroll",e):a!=null&&Yl(e,s,a,o))}switch(n){case"input":ci(e),Tu(e,r,!1);break;case"textarea":ci(e),Eu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Rn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Rn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bi)}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 de(t),null;case 6:if(e&&t.stateNode!=null)$h(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=bt(Br.current),bt(tt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Je]=t,(s=r.nodeValue!==n)&&(e=Me,e!==null))switch(e.tag){case 3:vi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Je]=t,t.stateNode=r}return de(t),null;case 13:if(B(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&Ae!==null&&t.mode&1&&!(t.flags&128))oh(),In(),t.flags|=98560,s=!1;else if(s=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(C(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(C(317));s[Je]=t}else In(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;de(t),s=!1}else Qe!==null&&(Tl(Qe),Qe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?te===0&&(te=3):Ra())),t.updateQueue!==null&&(t.flags|=4),de(t),null);case 4:return Bn(),gl(e,t),e===null&&Fr(t.stateNode.containerInfo),de(t),null;case 10:return ha(t.type._context),de(t),null;case 17:return Te(t.type)&&Ji(),de(t),null;case 19:if(B(W),s=t.memoizedState,s===null)return de(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)sr(s,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=os(e),o!==null){for(t.flags|=128,sr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&q()>$n&&(t.flags|=128,r=!0,sr(s,!1),t.lanes=4194304)}else{if(!r)if(e=os(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!$)return de(t),null}else 2*q()-s.renderingStartTime>$n&&n!==1073741824&&(t.flags|=128,r=!0,sr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=q(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return Ma(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Y0(e,t){switch(ua(t),t.tag){case 1:return Te(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),B(Pe),B(ge),va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ya(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Bn(),null;case 10:return ha(t.type._context),null;case 22:case 23:return Ma(),null;case 24:return null;default:return null}}var ki=!1,pe=!1,X0=typeof WeakSet=="function"?WeakSet:Set,M=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function yl(e,t,n){try{n()}catch(r){Y(e,t,r)}}var mc=!1;function Z0(e,t){if(el=Xi,e=Qd(),la(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},Xi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;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 x=y.memoizedProps,k=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ke(t.type,x),k);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(v){Y(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=mc,mc=!1,y}function Sr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&yl(t,n,s)}i=i.next}while(i!==r)}}function Rs(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 vl(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 Wh(e){var t=e.alternate;t!==null&&(e.alternate=null,Wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[Ir],delete t[il],delete t[j0],delete t[L0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hh(e){return e.tag===5||e.tag===3||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(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 xl(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=bi));else if(r!==4&&(e=e.child,e!==null))for(xl(e,t,n),e=e.sibling;e!==null;)xl(e,t,n),e=e.sibling}function wl(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(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}var le=null,Ge=!1;function vt(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(ks,n)}catch{}switch(n.tag){case 5:pe||Pn(n,t);case 6:var r=le,i=Ge;le=null,vt(e,t,n),le=r,Ge=i,le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),Lr(e)):lo(le,n.stateNode));break;case 4:r=le,i=Ge,le=n.stateNode.containerInfo,Ge=!0,vt(e,t,n),le=r,Ge=i;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&yl(n,t,o),i=i.next}while(i!==r)}vt(e,t,n);break;case 1:if(!pe&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Y(n,t,l)}vt(e,t,n);break;case 21:vt(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,vt(e,t,n),pe=r):vt(e,t,n);break;default:vt(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new X0),t.forEach(function(r){var i=sy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:le=l.stateNode,Ge=!1;break e;case 3:le=l.stateNode.containerInfo,Ge=!0;break e;case 4:le=l.stateNode.containerInfo,Ge=!0;break e}l=l.return}if(le===null)throw Error(C(160));Kh(s,o,i),le=null,Ge=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Y(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Gh(t,e),t=t.sibling}function Gh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),qe(e),r&4){try{Sr(3,e,e.return),Rs(3,e)}catch(x){Y(e,e.return,x)}try{Sr(5,e,e.return)}catch(x){Y(e,e.return,x)}}break;case 1:We(t,e),qe(e),r&512&&n!==null&&Pn(n,n.return);break;case 5:if(We(t,e),qe(e),r&512&&n!==null&&Pn(n,n.return),e.flags&32){var i=e.stateNode;try{Mr(i,"")}catch(x){Y(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&pd(i,s),Ho(l,o);var u=Ho(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?xd(i,f):c==="dangerouslySetInnerHTML"?yd(i,f):c==="children"?Mr(i,f):Yl(i,c,f,u)}switch(l){case"input":zo(i,s);break;case"textarea":md(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Rn(i,!!s.multiple,g,!1):d!==!!s.multiple&&(s.defaultValue!=null?Rn(i,!!s.multiple,s.defaultValue,!0):Rn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ir]=s}catch(x){Y(e,e.return,x)}}break;case 6:if(We(t,e),qe(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(x){Y(e,e.return,x)}}break;case 3:if(We(t,e),qe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lr(t.containerInfo)}catch(x){Y(e,e.return,x)}break;case 4:We(t,e),qe(e);break;case 13:We(t,e),qe(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Da=q())),r&4&&yc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(pe=(u=pe)||c,We(t,e),pe=u):We(t,e),qe(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(M=e,c=e.child;c!==null;){for(f=M=c;M!==null;){switch(d=M,g=d.child,d.tag){case 0:case 11:case 14:case 15:Sr(4,d,d.return);break;case 1:Pn(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(x){Y(r,n,x)}}break;case 5:Pn(d,d.return);break;case 22:if(d.memoizedState!==null){xc(f);continue}}g!==null?(g.return=d,M=g):xc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=vd("display",o))}catch(x){Y(e,e.return,x)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){Y(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:We(t,e),qe(e),r&4&&yc(e);break;case 21:break;default:We(t,e),qe(e)}}function qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hh(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Mr(i,""),r.flags&=-33);var s=gc(e);wl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=gc(e);xl(e,l,o);break;default:throw Error(C(161))}}catch(a){Y(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function q0(e,t,n){M=e,Qh(e)}function Qh(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ki;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||pe;l=ki;var u=pe;if(ki=o,(pe=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?wc(i):a!==null?(a.return=o,M=a):wc(i);for(;s!==null;)M=s,Qh(s),s=s.sibling;M=i,ki=l,pe=u}vc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,M=s):vc(e)}}function vc(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pe||Rs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ke(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&nc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nc(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Lr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}pe||t.flags&512&&vl(t)}catch(d){Y(t,t.return,d)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function xc(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function wc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rs(4,t)}catch(a){Y(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Y(t,i,a)}}var s=t.return;try{vl(t)}catch(a){Y(t,s,a)}break;case 5:var o=t.return;try{vl(t)}catch(a){Y(t,o,a)}}}catch(a){Y(t,t.return,a)}if(t===e){M=null;break}var l=t.sibling;if(l!==null){l.return=t.return,M=l;break}M=t.return}}var b0=Math.ceil,us=gt.ReactCurrentDispatcher,Ca=gt.ReactCurrentOwner,Be=gt.ReactCurrentBatchConfig,F=0,se=null,b=null,ue=0,Ee=0,Tn=zt(0),te=0,Hr=null,ln=0,Ns=0,Ea=0,kr=null,Se=null,Da=0,$n=1/0,it=null,cs=!1,Sl=null,Nt=null,Pi=!1,Ct=null,fs=0,Pr=0,kl=null,Ii=-1,zi=0;function ve(){return F&6?q():Ii!==-1?Ii:Ii=q()}function jt(e){return e.mode&1?F&2&&ue!==0?ue&-ue:_0.transition!==null?(zi===0&&(zi=Nd()),zi):(e=O,e!==0||(e=window.event,e=e===void 0?16:Id(e.type)),e):1}function Xe(e,t,n,r){if(50<Pr)throw Pr=0,kl=null,Error(C(185));qr(e,n,r),(!(F&2)||e!==se)&&(e===se&&(!(F&2)&&(Ns|=n),te===4&&Pt(e,ue)),Ce(e,r),n===1&&F===0&&!(t.mode&1)&&($n=q()+500,Ds&&Bt()))}function Ce(e,t){var n=e.callbackNode;_g(e,t);var r=Yi(e,e===se?ue:0);if(r===0)n!==null&&Mu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Mu(n),t===1)e.tag===0?V0(Sc.bind(null,e)):rh(Sc.bind(null,e)),R0(function(){!(F&6)&&Bt()}),n=null;else{switch(jd(r)){case 1:n=Jl;break;case 4:n=Md;break;case 16:n=Qi;break;case 536870912:n=Rd;break;default:n=Qi}n=tp(n,Yh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yh(e,t){if(Ii=-1,zi=0,F&6)throw Error(C(327));var n=e.callbackNode;if(_n()&&e.callbackNode!==n)return null;var r=Yi(e,e===se?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ds(e,r);else{t=r;var i=F;F|=2;var s=Zh();(se!==e||ue!==t)&&(it=null,$n=q()+500,en(e,t));do try{ty();break}catch(l){Xh(e,l)}while(!0);da(),us.current=s,F=i,b!==null?t=0:(se=null,ue=0,t=te)}if(t!==0){if(t===2&&(i=Xo(e),i!==0&&(r=i,t=Pl(e,i))),t===1)throw n=Hr,en(e,0),Pt(e,r),Ce(e,q()),n;if(t===6)Pt(e,r);else{if(i=e.current.alternate,!(r&30)&&!J0(i)&&(t=ds(e,r),t===2&&(s=Xo(e),s!==0&&(r=s,t=Pl(e,s))),t===1))throw n=Hr,en(e,0),Pt(e,r),Ce(e,q()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Qt(e,Se,it);break;case 3:if(Pt(e,r),(r&130023424)===r&&(t=Da+500-q(),10<t)){if(Yi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ve(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=rl(Qt.bind(null,e,Se,it),t);break}Qt(e,Se,it);break;case 4:if(Pt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ye(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*b0(r/1960))-r,10<r){e.timeoutHandle=rl(Qt.bind(null,e,Se,it),r);break}Qt(e,Se,it);break;case 5:Qt(e,Se,it);break;default:throw Error(C(329))}}}return Ce(e,q()),e.callbackNode===n?Yh.bind(null,e):null}function Pl(e,t){var n=kr;return e.current.memoizedState.isDehydrated&&(en(e,t).flags|=256),e=ds(e,t),e!==2&&(t=Se,Se=n,t!==null&&Tl(t)),e}function Tl(e){Se===null?Se=e:Se.push.apply(Se,e)}function J0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ze(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pt(e,t){for(t&=~Ea,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ye(t),r=1<<n;e[n]=-1,t&=~r}}function Sc(e){if(F&6)throw Error(C(327));_n();var t=Yi(e,0);if(!(t&1))return Ce(e,q()),null;var n=ds(e,t);if(e.tag!==0&&n===2){var r=Xo(e);r!==0&&(t=r,n=Pl(e,r))}if(n===1)throw n=Hr,en(e,0),Pt(e,t),Ce(e,q()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qt(e,Se,it),Ce(e,q()),null}function Aa(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&($n=q()+500,Ds&&Bt())}}function an(e){Ct!==null&&Ct.tag===0&&!(F&6)&&_n();var t=F;F|=1;var n=Be.transition,r=O;try{if(Be.transition=null,O=1,e)return e()}finally{O=r,Be.transition=n,F=t,!(F&6)&&Bt()}}function Ma(){Ee=Tn.current,B(Tn)}function en(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,M0(n)),b!==null)for(n=b.return;n!==null;){var r=n;switch(ua(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ji();break;case 3:Bn(),B(Pe),B(ge),va();break;case 5:ya(r);break;case 4:Bn();break;case 13:B(W);break;case 19:B(W);break;case 10:ha(r.type._context);break;case 22:case 23:Ma()}n=n.return}if(se=e,b=e=Lt(e.current,null),ue=Ee=t,te=0,Hr=null,Ea=Ns=ln=0,Se=kr=null,qt!==null){for(t=0;t<qt.length;t++)if(n=qt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}qt=null}return e}function Xh(e,t){do{var n=b;try{if(da(),_i.current=as,ls){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ls=!1}if(on=0,ie=ee=K=null,wr=!1,Ur=0,Ca.current=null,n===null||n.return===null){te=1,Hr=t,b=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=ue,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 g=ac(o);if(g!==null){g.flags&=-257,uc(g,o,l,s,t),g.mode&1&&lc(s,u,t),t=g,a=u;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){lc(s,u,t),Ra();break e}a=Error(C(426))}}else if($&&l.mode&1){var k=ac(o);if(k!==null){!(k.flags&65536)&&(k.flags|=256),uc(k,o,l,s,t),ca(Un(a,l));break e}}s=a=Un(a,l),te!==4&&(te=2),kr===null?kr=[s]:kr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=jh(s,a,t);tc(s,p);break e;case 1:l=a;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Nt===null||!Nt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var v=Lh(s,l,t);tc(s,v);break e}}s=s.return}while(s!==null)}bh(n)}catch(S){t=S,b===n&&n!==null&&(b=n=n.return);continue}break}while(!0)}function Zh(){var e=us.current;return us.current=as,e===null?as:e}function Ra(){(te===0||te===3||te===2)&&(te=4),se===null||!(ln&268435455)&&!(Ns&268435455)||Pt(se,ue)}function ds(e,t){var n=F;F|=2;var r=Zh();(se!==e||ue!==t)&&(it=null,en(e,t));do try{ey();break}catch(i){Xh(e,i)}while(!0);if(da(),F=n,us.current=r,b!==null)throw Error(C(261));return se=null,ue=0,te}function ey(){for(;b!==null;)qh(b)}function ty(){for(;b!==null&&!Eg();)qh(b)}function qh(e){var t=ep(e.alternate,e,Ee);e.memoizedProps=e.pendingProps,t===null?bh(e):b=t,Ca.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Y0(n,t),n!==null){n.flags&=32767,b=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,b=null;return}}else if(n=Q0(n,t,Ee),n!==null){b=n;return}if(t=t.sibling,t!==null){b=t;return}b=t=e}while(t!==null);te===0&&(te=5)}function Qt(e,t,n){var r=O,i=Be.transition;try{Be.transition=null,O=1,ny(e,t,n,r)}finally{Be.transition=i,O=r}return null}function ny(e,t,n,r){do _n();while(Ct!==null);if(F&6)throw Error(C(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(C(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Fg(e,s),e===se&&(b=se=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pi||(Pi=!0,tp(Qi,function(){return _n(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Be.transition,Be.transition=null;var o=O;O=1;var l=F;F|=4,Ca.current=null,Z0(e,n),Gh(n,e),k0(tl),Xi=!!el,tl=el=null,e.current=n,q0(n),Dg(),F=l,O=o,Be.transition=s}else e.current=n;if(Pi&&(Pi=!1,Ct=e,fs=i),s=e.pendingLanes,s===0&&(Nt=null),Rg(n.stateNode),Ce(e,q()),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(cs)throw cs=!1,e=Sl,Sl=null,e;return fs&1&&e.tag!==0&&_n(),s=e.pendingLanes,s&1?e===kl?Pr++:(Pr=0,kl=e):Pr=0,Bt(),null}function _n(){if(Ct!==null){var e=jd(fs),t=Be.transition,n=O;try{if(Be.transition=null,O=16>e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,fs=0,F&6)throw Error(C(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(M=u;M!==null;){var c=M;switch(c.tag){case 0:case 11:case 15:Sr(8,c,s)}var f=c.child;if(f!==null)f.return=c,M=f;else for(;M!==null;){c=M;var d=c.sibling,g=c.return;if(Wh(c),c===u){M=null;break}if(d!==null){d.return=g,M=d;break}M=g}}}var y=s.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var k=x.sibling;x.sibling=null,x=k}while(x!==null)}}M=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,M=o;else e:for(;M!==null;){if(s=M,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Sr(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,M=p;break e}M=s.return}}var h=e.current;for(M=h;M!==null;){o=M;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,M=m;else e:for(o=h;M!==null;){if(l=M,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rs(9,l)}}catch(S){Y(l,l.return,S)}if(l===o){M=null;break e}var v=l.sibling;if(v!==null){v.return=l.return,M=v;break e}M=l.return}}if(F=i,Bt(),et&&typeof et.onPostCommitFiberRoot=="function")try{et.onPostCommitFiberRoot(ks,e)}catch{}r=!0}return r}finally{O=n,Be.transition=t}}return!1}function kc(e,t,n){t=Un(n,t),t=jh(e,t,1),e=Rt(e,t,1),t=ve(),e!==null&&(qr(e,1,t),Ce(e,t))}function Y(e,t,n){if(e.tag===3)kc(e,e,n);else for(;t!==null;){if(t.tag===3){kc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nt===null||!Nt.has(r))){e=Un(n,e),e=Lh(t,e,1),t=Rt(t,e,1),e=ve(),t!==null&&(qr(t,1,e),Ce(t,e));break}}t=t.return}}function ry(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ve(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ue&n)===n&&(te===4||te===3&&(ue&130023424)===ue&&500>q()-Da?en(e,0):Ea|=n),Ce(e,t)}function Jh(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=ve();e=ht(e,t),e!==null&&(qr(e,t,n),Ce(e,n))}function iy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function sy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Jh(e,n)}var ep;ep=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,G0(e,t,n);ke=!!(e.flags&131072)}else ke=!1,$&&t.flags&1048576&&ih(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var i=On(t,ge.current);Vn(t,n),i=wa(null,t,r,e,i,n);var s=Sa();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,Te(r)?(s=!0,es(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ma(t),i.updater=Ms,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=hl(null,t,r,!0,s,n)):(t.tag=0,$&&s&&aa(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ly(r),e=Ke(r,e),i){case 0:t=dl(null,t,r,e,n);break e;case 1:t=dc(null,t,r,e,n);break e;case 11:t=cc(null,t,r,e,n);break e;case 14:t=fc(null,t,r,Ke(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),dl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),dc(e,t,r,i,n);case 3:e:{if(Oh(t),e===null)throw Error(C(387));r=t.pendingProps,s=t.memoizedState,i=s.element,ch(e,t),ss(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Un(Error(C(423)),t),t=hc(e,t,r,n,i);break e}else if(r!==i){i=Un(Error(C(424)),t),t=hc(e,t,r,n,i);break e}else for(Ae=Mt(t.stateNode.containerInfo.firstChild),Me=t,$=!0,Qe=null,n=ah(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===i){t=pt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return fh(t),e===null&&ll(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,nl(r,i)?o=null:s!==null&&nl(r,s)&&(t.flags|=32),Fh(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&ll(t),null;case 13:return Ih(e,t,n);case 4:return ga(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),cc(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,I(rs,r._currentValue),r._currentValue=o,s!==null)if(Ze(s.value,o)){if(s.children===i.children&&!Pe.current){t=pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=at(-1,n&-n),a.tag=2;var u=s.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}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),al(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(C(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),al(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vn(t,n),i=Ue(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=Ke(r,t.pendingProps),i=Ke(r.type,i),fc(e,t,r,i,n);case 15:return Vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Oi(e,t),t.tag=1,Te(r)?(e=!0,es(t)):e=!1,Vn(t,n),Nh(t,r,i),cl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return zh(e,t,n);case 22:return _h(e,t,n)}throw Error(C(156,t.tag))};function tp(e,t){return Ad(e,t)}function oy(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 ze(e,t,n,r){return new oy(e,t,n,r)}function Na(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ly(e){if(typeof e=="function")return Na(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zl)return 11;if(e===ql)return 14}return 2}function Lt(e,t){var n=e.alternate;return n===null?(n=ze(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 Bi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Na(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case pn:return tn(n.children,i,s,t);case Xl:o=8,i|=8;break;case Vo:return e=ze(12,n,t,i|2),e.elementType=Vo,e.lanes=s,e;case _o:return e=ze(13,n,t,i),e.elementType=_o,e.lanes=s,e;case Fo:return e=ze(19,n,t,i),e.elementType=Fo,e.lanes=s,e;case fd:return js(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ud:o=10;break e;case cd:o=9;break e;case Zl:o=11;break e;case ql:o=14;break e;case wt:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=ze(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function tn(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=ze(22,e,r,t),e.elementType=fd,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ay(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=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ja(e,t,n,r,i,s,o,l,a){return e=new ay(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ze(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ma(s),e}function uy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function np(e){if(!e)return _t;e=e._reactInternals;e:{if(cn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Te(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Te(n))return nh(e,n,t)}return t}function rp(e,t,n,r,i,s,o,l,a){return e=ja(n,r,!0,e,i,s,o,l,a),e.context=np(null),n=e.current,r=ve(),i=jt(n),s=at(r,i),s.callback=t??null,Rt(n,s,i),e.current.lanes=i,qr(e,i,r),Ce(e,r),e}function Ls(e,t,n,r){var i=t.current,s=ve(),o=jt(i);return n=np(n),t.context===null?t.context=n:t.pendingContext=n,t=at(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Rt(i,t,o),e!==null&&(Xe(e,i,o,s),Vi(e,i,o)),o}function hs(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 Pc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function La(e,t){Pc(e,t),(e=e.alternate)&&Pc(e,t)}function cy(){return null}var ip=typeof reportError=="function"?reportError:function(e){console.error(e)};function Va(e){this._internalRoot=e}Vs.prototype.render=Va.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ls(e,t,null,null)};Vs.prototype.unmount=Va.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;an(function(){Ls(null,e,null,null)}),t[dt]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=_d();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kt.length&&t!==0&&t<kt[n].priority;n++);kt.splice(n,0,e),n===0&&Od(e)}};function _a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tc(){}function fy(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=hs(o);s.call(u)}}var o=rp(t,r,e,0,null,!1,!1,"",Tc);return e._reactRootContainer=o,e[dt]=o.current,Fr(e.nodeType===8?e.parentNode:e),an(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=hs(a);l.call(u)}}var a=ja(e,0,!1,null,null,!1,!1,"",Tc);return e._reactRootContainer=a,e[dt]=a.current,Fr(e.nodeType===8?e.parentNode:e),an(function(){Ls(t,a,n,r)}),a}function Fs(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=hs(o);l.call(a)}}Ls(t,o,e,i)}else o=fy(n,t,e,i,r);return hs(o)}Ld=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cr(t.pendingLanes);n!==0&&(ea(t,n|1),Ce(t,q()),!(F&6)&&($n=q()+500,Bt()))}break;case 13:an(function(){var r=ht(e,1);if(r!==null){var i=ve();Xe(r,e,1,i)}}),La(e,1)}};ta=function(e){if(e.tag===13){var t=ht(e,134217728);if(t!==null){var n=ve();Xe(t,e,134217728,n)}La(e,134217728)}};Vd=function(e){if(e.tag===13){var t=jt(e),n=ht(e,t);if(n!==null){var r=ve();Xe(n,e,t,r)}La(e,t)}};_d=function(){return O};Fd=function(e,t){var n=O;try{return O=e,t()}finally{O=n}};Go=function(e,t,n){switch(t){case"input":if(zo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Es(r);if(!i)throw Error(C(90));hd(r),zo(r,i)}}}break;case"textarea":md(e,n);break;case"select":t=n.value,t!=null&&Rn(e,!!n.multiple,t,!1)}};kd=Aa;Pd=an;var dy={usingClientEntryPoint:!1,Events:[Jr,vn,Es,wd,Sd,Aa]},or={findFiberByHostInstance:Zt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hy={bundleType:or.bundleType,version:or.version,rendererPackageName:or.rendererPackageName,rendererConfig:or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ed(e),e===null?null:e.stateNode},findFiberByHostInstance:or.findFiberByHostInstance||cy,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 Ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ti.isDisabled&&Ti.supportsFiber)try{ks=Ti.inject(hy),et=Ti}catch{}}Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dy;Le.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_a(t))throw Error(C(200));return uy(e,t,null,n)};Le.createRoot=function(e,t){if(!_a(e))throw Error(C(299));var n=!1,r="",i=ip;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ja(e,1,!1,null,null,n,!1,r,i),e[dt]=t.current,Fr(e.nodeType===8?e.parentNode:e),new Va(t)};Le.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Ed(t),e=e===null?null:e.stateNode,e};Le.flushSync=function(e){return an(e)};Le.hydrate=function(e,t,n){if(!_s(t))throw Error(C(200));return Fs(null,e,t,!0,n)};Le.hydrateRoot=function(e,t,n){if(!_a(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=ip;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=rp(t,null,e,1,n??null,i,!1,s,o),e[dt]=t.current,Fr(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 Vs(t)};Le.render=function(e,t,n){if(!_s(t))throw Error(C(200));return Fs(null,e,t,!1,n)};Le.unmountComponentAtNode=function(e){if(!_s(e))throw Error(C(40));return e._reactRootContainer?(an(function(){Fs(null,null,e,!1,function(){e._reactRootContainer=null,e[dt]=null})}),!0):!1};Le.unstable_batchedUpdates=Aa;Le.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_s(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Fs(e,t,n,!1,r)};Le.version="18.3.1-next-f1338f8080-20240426";function sp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),sd.exports=Le;var py=sd.exports,Cc=py;jo.createRoot=Cc.createRoot,jo.hydrateRoot=Cc.hydrateRoot;const Fa=D.createContext({});function Oa(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const Os=D.createContext(null),Ia=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class my extends D.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 gy({children:e,isPresent:t}){const n=D.useId(),r=D.useRef(null),i=D.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=D.useContext(Ia);return D.useInsertionEffect(()=>{const{width:o,height:l,top:a,left:u}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${l}px !important;
top: ${a}px !important;
left: ${u}px !important;
}
`),()=>{document.head.removeChild(c)}},[t]),w.jsx(my,{isPresent:t,childRef:r,sizeRef:i,children:D.cloneElement(e,{ref:r})})}const yy=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Oa(vy),a=D.useId(),u=D.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=D.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),u]:[n,u]);return D.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),D.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(gy,{isPresent:n,children:e})),w.jsx(Os.Provider,{value:c,children:e})};function vy(){return new Map}function op(e=!0){const t=D.useContext(Os);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=D.useId();D.useEffect(()=>{e&&i(s)},[e]);const o=D.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ci=e=>e.key||"";function Ec(e){const t=[];return D.Children.forEach(e,n=>{D.isValidElement(n)&&t.push(n)}),t}const za=typeof window<"u",lp=za?D.useLayoutEffect:D.useEffect,ap=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,a]=op(o),u=D.useMemo(()=>Ec(e),[e]),c=o&&!l?[]:u.map(Ci),f=D.useRef(!0),d=D.useRef(u),g=Oa(()=>new Map),[y,x]=D.useState(u),[k,p]=D.useState(u);lp(()=>{f.current=!1,d.current=u;for(let v=0;v<k.length;v++){const S=Ci(k[v]);c.includes(S)?g.delete(S):g.get(S)!==!0&&g.set(S,!1)}},[k,c.length,c.join("-")]);const h=[];if(u!==y){let v=[...u];for(let S=0;S<k.length;S++){const P=k[S],E=Ci(P);c.includes(E)||(v.splice(S,0,P),h.push(P))}s==="wait"&&h.length&&(v=h),p(Ec(v)),x(u);return}const{forceRender:m}=D.useContext(Fa);return w.jsx(w.Fragment,{children:k.map(v=>{const S=Ci(v),P=o&&!l?!1:u===k||c.includes(S),E=()=>{if(g.has(S))g.set(S,!0);else return;let T=!0;g.forEach(V=>{V||(T=!1)}),T&&(m==null||m(),p(d.current),o&&(a==null||a()),r&&r())};return w.jsx(yy,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:P?void 0:E,children:v},S)})})},Re=e=>e;let up=Re;function Ba(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ut=e=>e*1e3,ct=e=>e/1e3,xy={useManualTiming:!1};function wy(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(a.schedule(u),e()),u(o)}const a={schedule:(u,c=!1,f=!1)=>{const g=f&&r?t:n;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const Ei=["read","resolveKeyframes","update","preRender","render","postRender"],Sy=40;function cp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ei.reduce((p,h)=>(p[h]=wy(s),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=o,g=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,Sy),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Ei.reduce((p,h)=>{const m=o[h];return p[h]=(v,S=!1,P=!1)=>(n||y(),m.schedule(v,S,P)),p},{}),cancel:p=>{for(let h=0;h<Ei.length;h++)o[Ei[h]].cancel(p)},state:i,steps:o}}const{schedule:U,cancel:Ft,state:ae,steps:vo}=cp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Re,!0),fp=D.createContext({strict:!1}),Dc={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"]},Hn={};for(const e in Dc)Hn[e]={isEnabled:t=>Dc[e].some(n=>!!t[n])};function ky(e){for(const t in e)Hn[t]={...Hn[t],...e[t]}}const Py=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Py.has(e)}let dp=e=>!ps(e);function Ty(e){e&&(dp=t=>t.startsWith("on")?!ps(t):e(t))}try{Ty(require("@emotion/is-prop-valid").default)}catch{}function Cy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(dp(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ey(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Is=D.createContext({});function Kr(e){return typeof e=="string"||Array.isArray(e)}function zs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ua=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$a=["initial",...Ua];function Bs(e){return zs(e.animate)||$a.some(t=>Kr(e[t]))}function hp(e){return!!(Bs(e)||e.variants)}function Dy(e,t){if(Bs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kr(n)?n:void 0,animate:Kr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ay(e){const{initial:t,animate:n}=Dy(e,D.useContext(Is));return D.useMemo(()=>({initial:t,animate:n}),[Ac(t),Ac(n)])}function Ac(e){return Array.isArray(e)?e.join(" "):e}const My=Symbol.for("motionComponentSymbol");function Cn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ry(e,t,n){return D.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cn(n)&&(n.current=r))},[t])}const Wa=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ny="framerAppearId",pp="data-"+Wa(Ny),{schedule:Ha}=cp(queueMicrotask,!1),mp=D.createContext({});function jy(e,t,n,r,i){var s,o;const{visualElement:l}=D.useContext(Is),a=D.useContext(fp),u=D.useContext(Os),c=D.useContext(Ia).reducedMotion,f=D.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,g=D.useContext(mp);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ly(f.current,n,i,g);const y=D.useRef(!1);D.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const x=n[pp],k=D.useRef(!!x&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,x))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,x)));return lp(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ha.render(d.render),k.current&&d.animationState&&d.animationState.animateChanges())}),D.useEffect(()=>{d&&(!k.current&&d.animationState&&d.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,x)}),k.current=!1))}),d}function Ly(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Cn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function gp(e){if(e)return e.options.allowProjection!==!1?e.projection:gp(e.parent)}function Vy({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&ky(e);function l(u,c){let f;const d={...D.useContext(Ia),...u,layoutId:_y(u)},{isStatic:g}=d,y=Ay(u),x=r(u,g);if(!g&&za){Fy();const k=Oy(d);f=k.MeasureLayout,y.visualElement=jy(i,x,d,t,k.ProjectionNode)}return w.jsxs(Is.Provider,{value:y,children:[f&&y.visualElement?w.jsx(f,{visualElement:y.visualElement,...d}):null,n(i,u,Ry(x,y.visualElement,c),x,g,y.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=D.forwardRef(l);return a[My]=i,a}function _y({layoutId:e}){const t=D.useContext(Fa).id;return t&&e!==void 0?t+"-"+e:e}function Fy(e,t){D.useContext(fp).strict}function Oy(e){const{drag:t,layout:n}=Hn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Iy=["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 Ka(e){return typeof e!="string"||e.includes("-")?!1:!!(Iy.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ga(e,t,n,r){if(typeof t=="function"){const[i,s]=Mc(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Mc(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Cl=e=>Array.isArray(e),zy=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),By=e=>Cl(e)?e[e.length-1]||0:e,me=e=>!!(e&&e.getVelocity);function Ui(e){const t=me(e)?e.get():e;return zy(t)?t.toValue():t}function Uy({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:$y(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const yp=e=>(t,n)=>{const r=D.useContext(Is),i=D.useContext(Os),s=()=>Uy(e,t,r,i);return n?s():Oa(s)};function $y(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Ui(s[d]);let{initial:o,animate:l}=e;const a=Bs(e),u=hp(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?l:o;if(f&&typeof f!="boolean"&&!zs(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const y=Ga(e,d[g]);if(y){const{transitionEnd:x,transition:k,...p}=y;for(const h in p){let m=p[h];if(Array.isArray(m)){const v=c?m.length-1:0;m=m[v]}m!==null&&(i[h]=m)}for(const h in x)i[h]=x[h]}}}return i}const Zn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fn=new Set(Zn),vp=e=>t=>typeof t=="string"&&t.startsWith(e),xp=vp("--"),Wy=vp("var(--"),Qa=e=>Wy(e)?Hy.test(e.split("/*")[0].trim()):!1,Hy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,mt=(e,t,n)=>n>t?t:n<e?e:n,qn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gr={...qn,transform:e=>mt(0,1,e)},Di={...qn,default:1},ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=ti("deg"),nt=ti("%"),R=ti("px"),Ky=ti("vh"),Gy=ti("vw"),Rc={...nt,parse:e=>nt.parse(e)/100,transform:e=>nt.transform(e*100)},Qy={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R},Yy={rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Di,scaleX:Di,scaleY:Di,scaleZ:Di,skew:xt,skewX:xt,skewY:xt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Gr,originX:Rc,originY:Rc,originZ:R},Nc={...qn,transform:Math.round},Ya={...Qy,...Yy,zIndex:Nc,size:R,fillOpacity:Gr,strokeOpacity:Gr,numOctaves:Nc},Xy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zy=Zn.length;function qy(e,t,n){let r="",i=!0;for(let s=0;s<Zy;s++){const o=Zn[s],l=e[o];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(o.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=wp(l,Ya[o]);if(!a){i=!1;const c=Xy[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Xa(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,l=!1;for(const a in t){const u=t[a];if(fn.has(a)){o=!0;continue}else if(xp(a)){i[a]=u;continue}else{const c=wp(u,Ya[a]);a.startsWith("origin")?(l=!0,s[a]=c):r[a]=c}}if(t.transform||(o||n?r.transform=qy(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${a} ${u} ${c}`}}const by={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jy={offset:"strokeDashoffset",array:"strokeDasharray"};function ev(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?by:Jy;e[s.offset]=R.transform(-r);const o=R.transform(t),l=R.transform(n);e[s.array]=`${o} ${l}`}function jc(e,t,n){return typeof e=="string"?e:R.transform(t+n*e)}function tv(e,t,n){const r=jc(t,e.x,e.width),i=jc(n,e.y,e.height);return`${r} ${i}`}function Za(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,f){if(Xa(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:g,dimensions:y}=e;d.transform&&(y&&(g.transform=d.transform),delete d.transform),y&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=tv(y,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&ev(d,o,l,a,!1)}const qa=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Sp=()=>({...qa(),attrs:{}}),ba=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kp(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Pp=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 Tp(e,t,n,r){kp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Pp.has(i)?i:Wa(i),t.attrs[i])}const ms={};function nv(e){Object.assign(ms,e)}function Cp(e,{layout:t,layoutId:n}){return fn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ms[e]||e==="opacity")}function Ja(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(me(i[o])||t.style&&me(t.style[o])||Cp(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Ep(e,t,n){const r=Ja(e,t,n);for(const i in e)if(me(e[i])||me(t[i])){const s=Zn.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function rv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Lc=["x","y","width","height","cx","cy","r"],iv={useVisualState:yp({scrapeMotionValuesFromProps:Ep,createRenderState:Sp,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(fn.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<Lc.length;l++){const a=Lc[l];e[a]!==t[a]&&(o=!0)}o&&U.read(()=>{rv(n,r),U.render(()=>{Za(r,i,ba(n.tagName),e.transformTemplate),Tp(n,r)})})}})},sv={useVisualState:yp({scrapeMotionValuesFromProps:Ja,createRenderState:qa})};function Dp(e,t,n){for(const r in t)!me(t[r])&&!Cp(r,n)&&(e[r]=t[r])}function ov({transformTemplate:e},t){return D.useMemo(()=>{const n=qa();return Xa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lv(e,t){const n=e.style||{},r={};return Dp(r,n,e),Object.assign(r,ov(e,t)),r}function av(e,t){const n={},r=lv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function uv(e,t,n,r){const i=D.useMemo(()=>{const s=Sp();return Za(s,t,ba(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Dp(s,e.style,e),i.style={...s,...i.style}}return i}function cv(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Ka(n)?uv:av)(r,s,o,n),u=Cy(r,typeof n=="string",e),c=n!==D.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=D.useMemo(()=>me(f)?f.get():f,[f]);return D.createElement(n,{...c,children:d})}}function fv(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ka(r)?iv:sv,preloadedFeatures:e,useRender:cv(i),createVisualElement:t,Component:r};return Vy(o)}}function Ap(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Us(e,t,n){const r=e.getProps();return Ga(r,t,n!==void 0?n:r.custom,e)}const dv=Ba(()=>window.ScrollTimeline!==void 0);class hv{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(dv()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pv extends hv{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function eu(e,t){return e?e[t]||e.default||e:void 0}const El=2e4;function Mp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<El;)t+=n,r=e.next(t);return t>=El?1/0:t}function tu(e){return typeof e=="function"}function Vc(e,t){e.timeline=t,e.onfinish=null}const nu=e=>Array.isArray(e)&&typeof e[0]=="number",mv={linearEasing:void 0};function gv(e,t){const n=Ba(e);return()=>{var r;return(r=mv[t])!==null&&r!==void 0?r:n()}}const gs=gv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(Wn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Np(e){return!!(typeof e=="function"&&gs()||!e||typeof e=="string"&&(e in Dl||gs())||nu(e)||Array.isArray(e)&&e.every(Np))}const dr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dr([0,.65,.55,1]),circOut:dr([.55,0,1,.45]),backIn:dr([.31,.01,.66,-.59]),backOut:dr([.33,1.53,.69,.99])};function jp(e,t){if(e)return typeof e=="function"&&gs()?Rp(e,t):nu(e)?dr(e):Array.isArray(e)?e.map(n=>jp(n,t)||Dl.easeOut):Dl[e]}const He={x:!1,y:!1};function Lp(){return He.x||He.y}function yv(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Vp(e,t){const n=yv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _c(e){return t=>{t.pointerType==="touch"||Lp()||e(t)}}function vv(e,t,n={}){const[r,i,s]=Vp(e,n),o=_c(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=_c(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const _p=(e,t)=>t?e===t?!0:_p(e,t.parentElement):!1,ru=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wv(e){return xv.has(e.tagName)||e.tabIndex!==-1}const hr=new WeakSet;function Fc(e){return t=>{t.key==="Enter"&&e(t)}}function xo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Fc(()=>{if(hr.has(n))return;xo(n,"down");const i=Fc(()=>{xo(n,"up")}),s=()=>xo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return ru(e)&&!Lp()}function kv(e,t,n={}){const[r,i,s]=Vp(e,n),o=l=>{const a=l.currentTarget;if(!Oc(l)||hr.has(a))return;hr.add(a);const u=t(l),c=(g,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Oc(g)||!hr.has(a))&&(hr.delete(a),typeof u=="function"&&u(g,{success:y}))},f=g=>{c(g,n.useGlobalTarget||_p(a,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!wv(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>Sv(u,i),i)}),s}function Pv(e){return e==="x"||e==="y"?He[e]?null:(He[e]=!0,()=>{He[e]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}const Fp=new Set(["width","height","top","left","right","bottom",...Zn]);let $i;function Tv(){$i=void 0}const rt={now:()=>($i===void 0&&rt.set(ae.isProcessing||xy.useManualTiming?ae.timestamp:performance.now()),$i),set:e=>{$i=e,queueMicrotask(Tv)}};function iu(e,t){e.indexOf(t)===-1&&e.push(t)}function su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(t){return iu(this.subscriptions,t),()=>su(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Op(e,t){return t?e*(1e3/t):0}const Ic=30,Cv=e=>!isNaN(parseFloat(e));class Ev{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=rt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ou);const r=this.events[t].add(n);return t==="change"?()=>{r(),U.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ic)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ic);return Op(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Qr(e,t){return new Ev(e,t)}function Dv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qr(n))}function Av(e,t){const n=Us(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=By(s[o]);Dv(e,o,l)}}function Mv(e){return!!(me(e)&&e.add)}function Al(e,t){const n=e.getValue("willChange");if(Mv(n))return n.add(t)}function Ip(e){return e.props[pp]}const zp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rv=1e-7,Nv=12;function jv(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=zp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Rv&&++l<Nv);return o}function ni(e,t,n,r){if(e===t&&n===r)return Re;const i=s=>jv(s,0,1,e,n);return s=>s===0||s===1?s:zp(i(s),t,r)}const Bp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Up=e=>t=>1-e(1-t),$p=ni(.33,1.53,.69,.99),lu=Up($p),Wp=Bp(lu),Hp=e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1))),au=e=>1-Math.sin(Math.acos(e)),Kp=Up(au),Gp=Bp(au),Qp=e=>/^0[^.\s]+$/u.test(e);function Lv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qp(e):!0}const Tr=e=>Math.round(e*1e5)/1e5,uu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vv(e){return e==null}const _v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cu=(e,t)=>n=>!!(typeof n=="string"&&_v.test(n)&&n.startsWith(e)||t&&!Vv(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(uu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Fv=e=>mt(0,255,e),wo={...qn,transform:e=>Math.round(Fv(e))},Jt={test:cu("rgb","red"),parse:Yp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wo.transform(e)+", "+wo.transform(t)+", "+wo.transform(n)+", "+Tr(Gr.transform(r))+")"};function Ov(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 Ml={test:cu("#"),parse:Ov,transform:Jt.transform},En={test:cu("hsl","hue"),parse:Yp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nt.transform(Tr(t))+", "+nt.transform(Tr(n))+", "+Tr(Gr.transform(r))+")"},he={test:e=>Jt.test(e)||Ml.test(e)||En.test(e),parse:e=>Jt.test(e)?Jt.parse(e):En.test(e)?En.parse(e):Ml.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jt.transform(e):En.transform(e)},Iv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(uu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Iv))===null||n===void 0?void 0:n.length)||0)>0}const Xp="number",Zp="color",Bv="var",Uv="var(",zc="${}",$v=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace($v,a=>(he.test(a)?(r.color.push(s),i.push(Zp),n.push(he.parse(a))):a.startsWith(Uv)?(r.var.push(s),i.push(Bv),n.push(a)):(r.number.push(s),i.push(Xp),n.push(parseFloat(a))),++s,zc)).split(zc);return{values:n,split:l,indexes:r,types:i}}function qp(e){return Yr(e).values}function bp(e){const{split:t,types:n}=Yr(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const l=n[o];l===Xp?s+=Tr(i[o]):l===Zp?s+=he.transform(i[o]):s+=i[o]}return s}}const Wv=e=>typeof e=="number"?0:e;function Hv(e){const t=qp(e);return bp(e)(t.map(Wv))}const Ot={test:zv,parse:qp,createTransformer:bp,getAnimatableNone:Hv},Kv=new Set(["brightness","contrast","saturate","opacity"]);function Gv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uu)||[];if(!r)return e;const i=n.replace(r,"");let s=Kv.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qv=/\b([a-z-]*)\(.*?\)/gu,Rl={...Ot,getAnimatableNone:e=>{const t=e.match(Qv);return t?t.map(Gv).join(" "):e}},Yv={...Ya,color:he,backgroundColor:he,outlineColor:he,fill:he,stroke:he,borderColor:he,borderTopColor:he,borderRightColor:he,borderBottomColor:he,borderLeftColor:he,filter:Rl,WebkitFilter:Rl},fu=e=>Yv[e];function Jp(e,t){let n=fu(e);return n!==Rl&&(n=Ot),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xv=new Set(["auto","none","0"]);function Zv(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Xv.has(s)&&Yr(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Jp(n,i)}const Bc=e=>e===qn||e===R,Uc=(e,t)=>parseFloat(e.split(", ")[t]),$c=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Uc(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Uc(s[1],e):0}},qv=new Set(["x","y","z"]),bv=Zn.filter(e=>!qv.has(e));function Jv(e){const t=[];return bv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Kn={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:$c(4,13),y:$c(5,14)};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const nn=new Set;let Nl=!1,jl=!1;function em(){if(jl){const e=Array.from(nn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Jv(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jl=!1,Nl=!1,nn.forEach(e=>e.complete()),nn.clear()}function tm(){nn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jl=!0)})}function e1(){tm(),em()}class du{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nn.add(this),Nl||(Nl=!0,U.read(tm),U.resolveKeyframes(em))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),nn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,nn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const nm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n1(e){const t=t1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function rm(e,t,n=1){const[r,i]=n1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return nm(o)?parseFloat(o):o}return Qa(i)?rm(i,t,n+1):i}const im=e=>t=>t.test(e),r1={test:e=>e==="auto",parse:e=>e},sm=[qn,R,nt,xt,Gy,Ky,r1],Wc=e=>sm.find(im(e));class om extends du{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),Qa(u))){const c=rm(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Fp.has(r)||t.length!==2)return;const[i,s]=t,o=Wc(i),l=Wc(s);if(o!==l)if(Bc(o)&&Bc(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Lv(t[i])&&r.push(i);r.length&&Zv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=Kn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,u])=>{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const Hc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ot.test(e)||e==="0")&&!e.startsWith("url("));function i1(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function s1(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Hc(i,t),l=Hc(s,t);return!o||!l?!1:i1(e)||(n==="spring"||tu(n))&&r}const o1=e=>e!==null;function $s(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(o1),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const l1=40;class lm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>l1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!s1(t,r,i,s))if(o)this.options.duration=0;else{a&&a($s(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const H=(e,t,n)=>e+(t-e)*n;function So(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 a1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=So(a,l,e+1/3),s=So(a,l,e),o=So(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ys(e,t){return n=>n>0?t:e}const ko=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},u1=[Ml,Jt,En],c1=e=>u1.find(t=>t.test(e));function Kc(e){const t=c1(e);if(!t)return!1;let n=t.parse(e);return t===En&&(n=a1(n)),n}const Gc=(e,t)=>{const n=Kc(e),r=Kc(t);if(!n||!r)return ys(e,t);const i={...n};return s=>(i.red=ko(n.red,r.red,s),i.green=ko(n.green,r.green,s),i.blue=ko(n.blue,r.blue,s),i.alpha=H(n.alpha,r.alpha,s),Jt.transform(i))},f1=(e,t)=>n=>t(e(n)),ri=(...e)=>e.reduce(f1),Ll=new Set(["none","hidden"]);function d1(e,t){return Ll.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h1(e,t){return n=>H(e,t,n)}function hu(e){return typeof e=="number"?h1:typeof e=="string"?Qa(e)?ys:he.test(e)?Gc:g1:Array.isArray(e)?am:typeof e=="object"?he.test(e)?Gc:p1:ys}function am(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>hu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function p1(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=hu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function m1(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][i[o]],a=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=a,i[o]++}return r}const g1=(e,t)=>{const n=Ot.createTransformer(t),r=Yr(e),i=Yr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ll.has(e)&&!i.values.length||Ll.has(t)&&!r.values.length?d1(e,t):ri(am(m1(r,i),i.values),n):ys(e,t)};function um(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?H(e,t,n):hu(e)(e,t)}const y1=5;function cm(e,t,n){const r=Math.max(t-y1,0);return Op(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Po=.001;function v1({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let i,s,o=1-t;o=mt(Q.minDamping,Q.maxDamping,o),e=mt(Q.minDuration,Q.maxDuration,ct(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,g=Vl(u,o),y=Math.exp(-f);return Po-d/g*y},s=u=>{const f=u*o*e,d=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=Vl(Math.pow(u,2),o);return(-i(u)+Po>0?-1:1)*((d-g)*y)/x}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Po+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=w1(i,s,l);if(e=ut(e),isNaN(a))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const x1=12;function w1(e,t,n){let r=n;for(let i=1;i<x1;i++)r=r-e(r)/t(r);return r}function Vl(e,t){return e*Math.sqrt(1-t*t)}const S1=["duration","bounce"],k1=["stiffness","damping","mass"];function Qc(e,t){return t.some(n=>e[n]!==void 0)}function P1(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Qc(e,k1)&&Qc(e,S1))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*mt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Q.mass,stiffness:i,damping:s}}else{const n=v1(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function fm(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=P1({...n,velocity:-ct(n.velocity||0)}),y=d||0,x=u/(2*Math.sqrt(a*c)),k=o-s,p=ct(Math.sqrt(a/c)),h=Math.abs(k)<5;r||(r=h?Q.restSpeed.granular:Q.restSpeed.default),i||(i=h?Q.restDelta.granular:Q.restDelta.default);let m;if(x<1){const S=Vl(p,x);m=P=>{const E=Math.exp(-x*p*P);return o-E*((y+x*p*k)/S*Math.sin(S*P)+k*Math.cos(S*P))}}else if(x===1)m=S=>o-Math.exp(-p*S)*(k+(y+p*k)*S);else{const S=p*Math.sqrt(x*x-1);m=P=>{const E=Math.exp(-x*p*P),T=Math.min(S*P,300);return o-E*((y+x*p*k)*Math.sinh(T)+S*k*Math.cosh(T))/S}}const v={calculatedDuration:g&&f||null,next:S=>{const P=m(S);if(g)l.done=S>=f;else{let E=0;x<1&&(E=S===0?ut(y):cm(m,S,P));const T=Math.abs(E)<=r,V=Math.abs(o-P)<=i;l.done=T&&V}return l.value=l.done?o:P,l},toString:()=>{const S=Math.min(Mp(v),El),P=Rp(E=>v.next(S*E).value,S,30);return S+"ms "+P}};return v}function Yc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=T=>l!==void 0&&T<l||a!==void 0&&T>a,y=T=>l===void 0?a:a===void 0||Math.abs(l-T)<Math.abs(a-T)?l:a;let x=n*t;const k=f+x,p=o===void 0?k:o(k);p!==k&&(x=p-f);const h=T=>-x*Math.exp(-T/r),m=T=>p+h(T),v=T=>{const V=h(T),N=m(T);d.done=Math.abs(V)<=u,d.value=d.done?p:N};let S,P;const E=T=>{g(d.value)&&(S=T,P=fm({keyframes:[d.value,y(d.value)],velocity:cm(m,T,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:T=>{let V=!1;return!P&&S===void 0&&(V=!0,v(T),E(T)),S!==void 0&&T>=S?P.next(T-S):(!V&&v(T),d)}}}const T1=ni(.42,0,1,1),C1=ni(0,0,.58,1),dm=ni(.42,0,.58,1),E1=e=>Array.isArray(e)&&typeof e[0]!="number",D1={linear:Re,easeIn:T1,easeInOut:dm,easeOut:C1,circIn:au,circInOut:Gp,circOut:Kp,backIn:lu,backInOut:Wp,backOut:$p,anticipate:Hp},Xc=e=>{if(nu(e)){up(e.length===4);const[t,n,r,i]=e;return ni(t,n,r,i)}else if(typeof e=="string")return D1[e];return e};function A1(e,t,n){const r=[],i=n||um,s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||Re:t;l=ri(a,l)}r.push(l)}return r}function M1(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(up(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=A1(t,r,i),a=l.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(a>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Wn(e[f],e[f+1],c);return l[f](d)};return n?c=>u(mt(e[0],e[s-1],c)):u}function R1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wn(0,t,r);e.push(H(n,1,i))}}function N1(e){const t=[0];return R1(t,e.length-1),t}function j1(e,t){return e.map(n=>n*t)}function L1(e,t){return e.map(()=>t||dm).splice(0,e.length-1)}function vs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=E1(r)?r.map(Xc):Xc(r),s={done:!1,value:t[0]},o=j1(n&&n.length===t.length?n:N1(t),e),l=M1(o,t,{ease:Array.isArray(i)?i:L1(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const V1=e=>{const t=({timestamp:n})=>e(n);return{start:()=>U.update(t,!0),stop:()=>Ft(t),now:()=>ae.isProcessing?ae.timestamp:rt.now()}},_1={decay:Yc,inertia:Yc,tween:vs,keyframes:vs,spring:fm},F1=e=>e/100;class pu extends lm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||du,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=tu(n)?n:_1[n]||vs;let a,u;l!==vs&&typeof t[0]!="number"&&(a=ri(F1,um(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Mp(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:d,repeat:g,repeatType:y,repeatDelay:x,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,v=s;if(g){const T=Math.min(this.currentTime,c)/f;let V=Math.floor(T),N=T%1;!N&&T>=1&&(N=1),N===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(y==="reverse"?(N=1-N,x&&(N-=x/f)):y==="mirror"&&(v=o)),m=mt(0,1,N)*f}const S=h?{done:!1,value:a[0]}:v.next(m);l&&(S.value=l(S.value));let{done:P}=S;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&i!==void 0&&(S.value=$s(a,this.options,i)),k&&k(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?ct(t.calculatedDuration):0}get time(){return ct(this.currentTime)}set time(t){t=ut(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=V1,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const O1=new Set(["opacity","clipPath","filter","transform"]);function I1(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=jp(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const z1=Ba(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xs=10,B1=2e4;function U1(e){return tu(e.type)||e.type==="spring"||!Np(e.ease)}function $1(e,t){const n=new pu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<B1;)r=n.sample(s),i.push(r.value),s+=xs;return{times:void 0,keyframes:i,duration:s-xs,ease:"linear"}}const hm={anticipate:Hp,backInOut:Wp,circInOut:Gp};function W1(e){return e in hm}class Zc extends lm{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new om(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&gs()&&W1(s)&&(s=hm[s]),U1(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,element:y,...x}=this.options,k=$1(t,x);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,i=k.times,s=k.ease,o="keyframes"}const c=I1(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Vc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set($s(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ct(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ct(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ut(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Re;const{animation:r}=n;Vc(r,t)}return Re}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,y=new pu({...g,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),x=ut(this.time);u.setWithVelocity(y.sample(x-xs).value,y.sample(x).value,xs)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return z1()&&r&&O1.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const H1={type:"spring",stiffness:500,damping:25,restSpeed:10},K1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G1={type:"keyframes",duration:.8},Q1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y1=(e,{keyframes:t})=>t.length>2?G1:fn.has(e)?e.startsWith("scale")?K1(t[1]):H1:Q1;function X1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const mu=(e,t,n,r={},i,s)=>o=>{const l=eu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ut(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};X1(l)||(c={...c,...Y1(e,c)}),c.duration&&(c.duration=ut(c.duration)),c.repeatDelay&&(c.repeatDelay=ut(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const d=$s(c.keyframes,l);if(d!==void 0)return U.update(()=>{c.onUpdate(d),c.onComplete()}),new pv([])}return!s&&Zc.supports(c)?new Zc(c):new pu(c)};function Z1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=a[f];if(g===void 0||c&&Z1(c,f))continue;const y={delay:n,...eu(o||{},f)};let x=!1;if(window.MotionHandoffAnimation){const p=Ip(e);if(p){const h=window.MotionHandoffAnimation(p,f,U);h!==null&&(y.startTime=h,x=!0)}}Al(e,f),d.start(mu(f,d,g,e.shouldReduceMotion&&Fp.has(f)?{type:!1}:y,e,x));const k=d.animation;k&&u.push(k)}return l&&Promise.all(u).then(()=>{U.update(()=>{l&&Av(e,l)})}),u}function _l(e,t,n={}){var r;const i=Us(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(pm(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=s;return q1(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[o,l]:[l,o];return u().then(()=>c())}else return Promise.all([o(),l(n.delay)])}function q1(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(b1).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(_l(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function b1(e,t){return e.sortNodePosition(t)}function J1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>_l(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=_l(e,t,n);else{const i=typeof t=="function"?Us(e,t,n.custom):t;r=Promise.all(pm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ex=$a.length;function mm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ex;n++){const r=$a[n],i=e.props[r];(Kr(i)||i===!1)&&(t[r]=i)}return t}const tx=[...Ua].reverse(),nx=Ua.length;function rx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J1(e,n,r)))}function ix(e){let t=rx(e),n=qc(),r=!0;const i=a=>(u,c)=>{var f;const d=Us(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:y,...x}=d;u={...u,...x,...y}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=mm(e.parent)||{},f=[],d=new Set;let g={},y=1/0;for(let k=0;k<nx;k++){const p=tx[k],h=n[p],m=u[p]!==void 0?u[p]:c[p],v=Kr(m),S=p===a?h.isActive:null;S===!1&&(y=k);let P=m===c[p]&&m!==u[p]&&v;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),h.protectedKeys={...g},!h.isActive&&S===null||!m&&!h.prevProp||zs(m)||typeof m=="boolean")continue;const E=sx(h.prevProp,m);let T=E||p===a&&h.isActive&&!P&&v||k>y&&v,V=!1;const N=Array.isArray(m)?m:[m];let ne=N.reduce(i(p),{});S===!1&&(ne={});const{prevResolvedValues:yt={}}=h,$t={...yt,...ne},bn=J=>{T=!0,d.has(J)&&(V=!0,d.delete(J)),h.needsAnimating[J]=!0;const A=e.getValue(J);A&&(A.liveStyle=!1)};for(const J in $t){const A=ne[J],j=yt[J];if(g.hasOwnProperty(J))continue;let L=!1;Cl(A)&&Cl(j)?L=!Ap(A,j):L=A!==j,L?A!=null?bn(J):d.add(J):A!==void 0&&d.has(J)?bn(J):h.protectedKeys[J]=!0}h.prevProp=m,h.prevResolvedValues=ne,h.isActive&&(g={...g,...ne}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(P&&E)||V)&&f.push(...N.map(J=>({animation:J,options:{type:p}})))}if(d.size){const k={};d.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),k[p]=h??null}),f.push({animation:k})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const f=o(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qc(),r=!0}}}function sx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ap(t,e):!1}function Kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qc(){return{animate:Kt(!0),whileInView:Kt(),whileHover:Kt(),whileTap:Kt(),whileDrag:Kt(),whileFocus:Kt(),exit:Kt()}}class Ut{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ox extends Ut{constructor(t){super(t),t.animationState||(t.animationState=ix(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let lx=0;class ax extends Ut{constructor(){super(...arguments),this.id=lx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ux={animation:{Feature:ox},exit:{Feature:ax}};function Xr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ii(e){return{point:{x:e.pageX,y:e.pageY}}}const cx=e=>t=>ru(t)&&e(t,ii(t));function Cr(e,t,n,r){return Xr(e,t,cx(n),r)}const bc=(e,t)=>Math.abs(e-t);function fx(e,t){const n=bc(e.x,t.x),r=bc(e.y,t.y);return Math.sqrt(n**2+r**2)}class gm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Co(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=fx(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:y}=f,{timestamp:x}=ae;this.history.push({...y,timestamp:x});const{onStart:k,onMove:p}=this.handlers;d||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=To(d,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Co(f.type==="pointercancel"?this.lastMoveEventInfo:To(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,k),y&&y(f,k)},!ru(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=ii(t),l=To(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=ae;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Co(l,this.history)),this.removeListeners=ri(Cr(this.contextWindow,"pointermove",this.handlePointerMove),Cr(this.contextWindow,"pointerup",this.handlePointerUp),Cr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function To(e,t){return t?{point:t(e.point)}:e}function Jc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Co({point:e},t){return{point:e,delta:Jc(e,ym(t)),offset:Jc(e,dx(t)),velocity:hx(t,.1)}}function dx(e){return e[0]}function ym(e){return e[e.length-1]}function hx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ym(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ut(t)));)n--;if(!r)return{x:0,y:0};const s=ct(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const vm=1e-4,px=1-vm,mx=1+vm,xm=.01,gx=0-xm,yx=0+xm;function je(e){return e.max-e.min}function vx(e,t,n){return Math.abs(e-t)<=n}function ef(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=je(n)/je(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=px&&e.scale<=mx||isNaN(e.scale))&&(e.scale=1),(e.translate>=gx&&e.translate<=yx||isNaN(e.translate))&&(e.translate=0)}function Er(e,t,n,r){ef(e.x,t.x,n.x,r?r.originX:void 0),ef(e.y,t.y,n.y,r?r.originY:void 0)}function tf(e,t,n){e.min=n.min+t.min,e.max=e.min+je(t)}function xx(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function nf(e,t,n){e.min=t.min-n.min,e.max=e.min+je(t)}function Dr(e,t,n){nf(e.x,t.x,n.x),nf(e.y,t.y,n.y)}function wx(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function rf(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 Sx(e,{top:t,left:n,bottom:r,right:i}){return{x:rf(e.x,n,i),y:rf(e.y,t,r)}}function sf(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 kx(e,t){return{x:sf(e.x,t.x),y:sf(e.y,t.y)}}function Px(e,t){let n=.5;const r=je(e),i=je(t);return i>r?n=Wn(t.min,t.max-r,e.min):r>i&&(n=Wn(e.min,e.max-i,t.min)),mt(0,1,n)}function Tx(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 Fl=.35;function Cx(e=Fl){return e===!1?e=0:e===!0&&(e=Fl),{x:of(e,"left","right"),y:of(e,"top","bottom")}}function of(e,t,n){return{min:lf(e,t),max:lf(e,n)}}function lf(e,t){return typeof e=="number"?e:e[t]||0}const af=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dn=()=>({x:af(),y:af()}),uf=()=>({min:0,max:0}),Z=()=>({x:uf(),y:uf()});function Fe(e){return[e("x"),e("y")]}function wm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ex({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dx(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 Eo(e){return e===void 0||e===1}function Ol({scale:e,scaleX:t,scaleY:n}){return!Eo(e)||!Eo(t)||!Eo(n)}function Yt(e){return Ol(e)||Sm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sm(e){return cf(e.x)||cf(e.y)}function cf(e){return e&&e!=="0%"}function ws(e,t,n){const r=e-n,i=t*r;return n+i}function ff(e,t,n,r,i){return i!==void 0&&(e=ws(e,i,r)),ws(e,n,r)+t}function Il(e,t=0,n=1,r,i){e.min=ff(e.min,t,n,r,i),e.max=ff(e.max,t,n,r,i)}function km(e,{x:t,y:n}){Il(e.x,t.translate,t.scale,t.originPoint),Il(e.y,n.translate,n.scale,n.originPoint)}const df=.999999999999,hf=1.0000000000001;function Ax(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Mn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,km(e,o)),r&&Yt(s.latestValues)&&Mn(e,s.latestValues))}t.x<hf&&t.x>df&&(t.x=1),t.y<hf&&t.y>df&&(t.y=1)}function An(e,t){e.min=e.min+t,e.max=e.max+t}function pf(e,t,n,r,i=.5){const s=H(e.min,e.max,i);Il(e,t,n,s,r)}function Mn(e,t){pf(e.x,t.x,t.scaleX,t.scale,t.originX),pf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Pm(e,t){return wm(Dx(e.getBoundingClientRect(),t))}function Mx(e,t,n){const r=Pm(e,n),{scroll:i}=t;return i&&(An(r.x,i.offset.x),An(r.y,i.offset.y)),r}const Tm=({current:e})=>e?e.ownerDocument.defaultView:null,Rx=new WeakMap;class Nx{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),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(ii(c).point)},s=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:y}=this.getProps();if(d&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Pv(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(k=>{let p=this.getAxisMotionValue(k).get()||0;if(nt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[k];m&&(p=je(m)*(parseFloat(p)/100))}}this.originPoint[k]=p}),y&&U.postRender(()=>y(c,f)),Al(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:k}=f;if(g&&this.currentDirection===null){this.currentDirection=jx(k),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),x&&x(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Fe(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 gm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Tm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&U.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ai(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=wx(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Cn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Sx(i.layoutBox,n):this.constraints=!1,this.elastic=Cx(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Tx(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Mx(r,i.root,this.visualElement.getTransformPagePoint());let o=kx(i.layout.layoutBox,s);if(n){const l=n(Ex(o));this.hasMutatedConstraints=!!l,l&&(o=wm(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Fe(c=>{if(!Ai(c,n,this.currentDirection))return;let f=a&&a[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Al(this.visualElement,t),r.start(mu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(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){Fe(n=>{const{drag:r}=this.getProps();if(!Ai(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-H(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=Px({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Ai(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(H(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Rx.set(this.visualElement,this);const t=this.visualElement.current,n=Cr(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Cn(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.read(r);const o=Xr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Fl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Ai(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Lx extends Ut{constructor(t){super(t),this.removeGroupControls=Re,this.removeListeners=Re,this.controls=new Nx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Re}unmount(){this.removeGroupControls(),this.removeListeners()}}const mf=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};class Vx extends Ut{constructor(){super(...arguments),this.removePointerDownListener=Re}onPointerDown(t){this.session=new gm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:mf(t),onStart:mf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&U.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Cr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=gf(e,t.target.x),r=gf(e,t.target.y);return`${n}% ${r}%`}},_x={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ot.parse(e);if(i.length>5)return r;const s=Ot.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=H(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Fx extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;nv(Ox),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||U.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ha.postRender(()=>{!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 Cm(e){const[t,n]=op(),r=D.useContext(Fa);return w.jsx(Fx,{...e,layoutGroup:r,switchLayoutGroup:D.useContext(mp),isPresent:t,safeToRemove:n})}const Ox={borderRadius:{...lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lr,borderTopRightRadius:lr,borderBottomLeftRadius:lr,borderBottomRightRadius:lr,boxShadow:_x};function Ix(e,t,n){const r=me(e)?e:Qr(e);return r.start(mu("",r,t,n)),r.animation}function zx(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Bx=(e,t)=>e.depth-t.depth;class Ux{constructor(){this.children=[],this.isDirty=!1}add(t){iu(this.children,t),this.isDirty=!0}remove(t){su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Bx),this.isDirty=!1,this.children.forEach(t)}}function $x(e,t){const n=rt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ft(r),e(s-t))};return U.read(r,!0),()=>Ft(r)}const Em=["TopLeft","TopRight","BottomLeft","BottomRight"],Wx=Em.length,yf=e=>typeof e=="string"?parseFloat(e):e,vf=e=>typeof e=="number"||R.test(e);function Hx(e,t,n,r,i,s){i?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,Kx(r)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,Gx(r))):s&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Wx;o++){const l=`border${Em[o]}Radius`;let a=xf(t,l),u=xf(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||vf(a)===vf(u)?(e[l]=Math.max(H(yf(a),yf(u),r),0),(nt.test(u)||nt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function xf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Kx=Dm(0,.5,Kp),Gx=Dm(.5,.95,Re);function Dm(e,t,n){return r=>r<e?0:r>t?1:n(Wn(e,t,r))}function wf(e,t){e.min=t.min,e.max=t.max}function _e(e,t){wf(e.x,t.x),wf(e.y,t.y)}function Sf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kf(e,t,n,r,i){return e-=t,e=ws(e,1/n,r),i!==void 0&&(e=ws(e,1/i,r)),e}function Qx(e,t=0,n=1,r=.5,i,s=e,o=e){if(nt.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=H(s.min,s.max,r);e===s&&(l-=t),e.min=kf(e.min,t,n,l,i),e.max=kf(e.max,t,n,l,i)}function Pf(e,t,[n,r,i],s,o){Qx(e,t[n],t[r],t[i],t.scale,s,o)}const Yx=["x","scaleX","originX"],Xx=["y","scaleY","originY"];function Tf(e,t,n,r){Pf(e.x,t,Yx,n?n.x:void 0,r?r.x:void 0),Pf(e.y,t,Xx,n?n.y:void 0,r?r.y:void 0)}function Cf(e){return e.translate===0&&e.scale===1}function Am(e){return Cf(e.x)&&Cf(e.y)}function Ef(e,t){return e.min===t.min&&e.max===t.max}function Zx(e,t){return Ef(e.x,t.x)&&Ef(e.y,t.y)}function Df(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mm(e,t){return Df(e.x,t.x)&&Df(e.y,t.y)}function Af(e){return je(e.x)/je(e.y)}function Mf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class qx{constructor(){this.members=[]}add(t){iu(this.members,t),t.scheduleRender()}remove(t){if(su(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bx(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const Xt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},pr=typeof window<"u"&&window.MotionDebug!==void 0,Do=["","X","Y","Z"],Jx={visibility:"hidden"},Rf=1e3;let ew=0;function Ao(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ip(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rm(r)}function Nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=ew++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pr&&(Xt.totalNodes=Xt.resolvedTargetDeltas=Xt.recalculatedProjection=0),this.nodes.forEach(rw),this.nodes.forEach(aw),this.nodes.forEach(uw),this.nodes.forEach(iw),pr&&window.MotionDebug.record(Xt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ux)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ou),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const a=this.eventHandlers.get(o);a&&a.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=zx(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$x(d,250),Wi.hasAnimatedSinceResize&&(Wi.hasAnimatedSinceResize=!1,this.nodes.forEach(jf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||pw,{onLayoutAnimationStart:k,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Mm(this.targetLayout,y)||g,m=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const v={...eu(x,"layout"),onPlay:k,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(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(cw),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rm(this),!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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nf);return}this.isUpdating||this.nodes.forEach(ow),this.isUpdating=!1,this.nodes.forEach(lw),this.nodes.forEach(tw),this.nodes.forEach(nw),this.clearAllSnapshots();const l=rt.now();ae.delta=mt(0,1e3/60,l-ae.timestamp),ae.timestamp=l,ae.isProcessing=!0,vo.update.process(ae),vo.preRender.process(ae),vo.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ha.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sw),this.sharedNodes.forEach(fw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Am(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||Yt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return o&&(a=this.removeTransform(a)),mw(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return Z();const a=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gw))){const{scroll:c}=this.root;c&&(An(a.x,c.offset.x),An(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Z();if(_e(a,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&_e(a,o),An(a.x,f.offset.x),An(a.y,f.offset.y))}return a}applyTransform(o,l=!1){const a=Z();_e(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Mn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Yt(c.latestValues)&&Mn(a,c.latestValues)}return Yt(this.latestValues)&&Mn(a,this.latestValues),a}removeTransform(o){const l=Z();_e(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!Yt(u.latestValues))continue;Ol(u.latestValues)&&u.updateSnapshot();const c=Z(),f=u.measurePageBox();_e(c,f),Tf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Yt(this.latestValues)&&Tf(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=ae.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Dr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),_e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xx(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_e(this.target,this.layout.layoutBox),km(this.target,this.targetDelta)):_e(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Dr(this.relativeTargetOrigin,this.target,g.target),_e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pr&&Xt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ol(this.parent.latestValues)||Sm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ae.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;_e(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,g=this.treeScale.y;Ax(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Z());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sf(this.prevProjectionDelta.x,this.projectionDelta.x),Sf(this.prevProjectionDelta.y,this.projectionDelta.y)),Er(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==g||!Mf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),pr&&Xt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Dn(),this.projectionDelta=Dn(),this.projectionDeltaWithTransform=Dn()}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=Dn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Z(),g=a?a.source:void 0,y=this.layout?this.layout.source:void 0,x=g!==y,k=this.getStack(),p=!k||k.members.length<=1,h=!!(x&&!p&&this.options.crossfade===!0&&!this.path.some(hw));this.animationProgress=0;let m;this.mixTargetDelta=v=>{const S=v/1e3;Lf(f.x,o.x,S),Lf(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dw(this.relativeTarget,this.relativeTargetOrigin,d,S),m&&Zx(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=Z()),_e(m,this.relativeTarget)),x&&(this.animationValues=c,Hx(c,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Wi.hasAnimatedSinceResize=!0,this.currentAnimation=Ix(0,Rf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Rf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&jm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||Z();const f=je(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+f;const d=je(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+d}_e(l,a),Mn(l,c),Er(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new qx),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Ao("z",o,u,this.animationValues);for(let c=0;c<Do.length;c++)Ao(`rotate${Do[c]}`,o,u,this.animationValues),Ao(`skew${Do[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jx;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ui(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ui(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Yt(this.latestValues)&&(x.transform=c?c({},""):"none",this.hasProjected=!1),x}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=bx(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:g,y}=this.projectionDelta;u.transformOrigin=`${g.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 x in ms){if(d[x]===void 0)continue;const{correct:k,applyTo:p}=ms[x],h=u.transform==="none"?d[x]:k(d[x],f);if(p){const m=p.length;for(let v=0;v<m;v++)u[p[v]]=h}else u[x]=h}return this.options.layoutId&&(u.pointerEvents=f===this?Ui(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function tw(e){e.updateLayout()}function nw(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Fe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=je(d);d.min=r[f].min,d.max=d.min+g}):jm(s,n.layoutBox,r)&&Fe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=je(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Dn();Er(l,r,n.layoutBox);const a=Dn();o?Er(a,e.applyTransform(i,!0),n.measuredBox):Er(a,r,n.layoutBox);const u=!Am(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const y=Z();Dr(y,n.layoutBox,d.layoutBox);const x=Z();Dr(x,r,g.layoutBox),Mm(y,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,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 rw(e){pr&&Xt.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 iw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sw(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function ow(e){e.isLayoutDirty=!1}function lw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aw(e){e.resolveTargetDelta()}function uw(e){e.calcProjection()}function cw(e){e.resetSkewAndRotation()}function fw(e){e.removeLeadSnapshot()}function Lf(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vf(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function dw(e,t,n,r){Vf(e.x,t.x,n.x,r),Vf(e.y,t.y,n.y,r)}function hw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pw={duration:.45,ease:[.4,0,.1,1]},_f=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ff=_f("applewebkit/")&&!_f("chrome/")?Math.round:Re;function Of(e){e.min=Ff(e.min),e.max=Ff(e.max)}function mw(e){Of(e.x),Of(e.y)}function jm(e,t,n){return e==="position"||e==="preserve-aspect"&&!vx(Af(t),Af(n),.2)}function gw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yw=Nm({attachResizeListener:(e,t)=>Xr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mo={current:void 0},Lm=Nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mo.current){const e=new yw({});e.mount(window),e.setOptions({layoutScroll:!0}),Mo.current=e}return Mo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vw={pan:{Feature:Vx},drag:{Feature:Lx,ProjectionNode:Lm,MeasureLayout:Cm}};function If(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&U.postRender(()=>s(t,ii(t)))}class xw extends Ut{mount(){const{current:t}=this.node;t&&(this.unmount=vv(t,n=>(If(this.node,n,"Start"),r=>If(this.node,r,"End"))))}unmount(){}}class ww extends Ut{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=ri(Xr(this.node.current,"focus",()=>this.onFocus()),Xr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&U.postRender(()=>s(t,ii(t)))}class Sw extends Ut{mount(){const{current:t}=this.node;t&&(this.unmount=kv(t,n=>(zf(this.node,n,"Start"),(r,{success:i})=>zf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zl=new WeakMap,Ro=new WeakMap,kw=e=>{const t=zl.get(e.target);t&&t(e)},Pw=e=>{e.forEach(kw)};function Tw({root:e,...t}){const n=e||document;Ro.has(n)||Ro.set(n,{});const r=Ro.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Pw,{root:e,...t})),r[i]}function Cw(e,t,n){const r=Tw(t);return zl.set(e,n),r.observe(e),()=>{zl.delete(e),r.unobserve(e)}}const Ew={some:0,all:1};class Dw extends Ut{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ew[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return Cw(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Aw(t,n))&&this.startObserver()}unmount(){}}function Aw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mw={inView:{Feature:Dw},tap:{Feature:Sw},focus:{Feature:ww},hover:{Feature:xw}},Rw={layout:{ProjectionNode:Lm,MeasureLayout:Cm}},Bl={current:null},Vm={current:!1};function Nw(){if(Vm.current=!0,!!za)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bl.current=e.matches;e.addListener(t),t()}else Bl.current=!1}const jw=[...sm,he,Ot],Lw=e=>jw.find(im(e)),Bf=new WeakMap;function Vw(e,t,n){for(const r in t){const i=t[r],s=n[r];if(me(i))e.addValue(r,i);else if(me(s))e.addValue(r,Qr(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Qr(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Uf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _w{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=du,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.renderScheduledAt=0,this.scheduleRender=()=>{const g=rt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,U.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Bs(n),this.isVariantNode=hp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in d){const y=d[g];a[g]!==void 0&&me(y)&&y.set(a[g],!1)}}mount(t){this.current=t,Bf.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)),Vm.current||Nw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bf.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&U.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hn){const n=Hn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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<Uf.length;r++){const i=Uf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Vw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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=Qr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(nm(i)||Qp(i))?i=parseFloat(i):!Lw(i)&&Ot.test(n)&&(i=Jp(t,n)),this.setBaseTarget(t,me(i)?i.get():i)),me(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Ga(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!me(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _m extends _w{constructor(){super(...arguments),this.KeyframeResolver=om}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fw(e){return window.getComputedStyle(e)}class Ow extends _m{constructor(){super(...arguments),this.type="html",this.renderInstance=kp}readValueFromInstance(t,n){if(fn.has(n)){const r=fu(n);return r&&r.default||0}else{const r=Fw(t),i=(xp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pm(t,n)}build(t,n,r){Xa(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ja(t,n,r)}}class Iw extends _m{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fn.has(n)){const r=fu(n);return r&&r.default||0}return n=Pp.has(n)?n:Wa(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ep(t,n,r)}build(t,n,r){Za(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Tp(t,n,r,i)}mount(t){this.isSVGTag=ba(t.tagName),super.mount(t)}}const zw=(e,t)=>Ka(e)?new Iw(t):new Ow(t,{allowProjection:e!==D.Fragment}),Bw=fv({...ux,...Mw,...vw,...Rw},zw),De=Ey(Bw);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Uw={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"};/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $w=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),oe=(e,t)=>{const n=D.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:a,...u},c)=>D.createElement("svg",{ref:c,...Uw,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${$w(e)}`,l].join(" "),...u},[...t.map(([f,d])=>D.createElement(f,d)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ww=oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hw=oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kw=oe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gw=oe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qw=oe("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yw=oe("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fm=oe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xw=oe("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zw=oe("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qw=oe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bw=oe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jw=oe("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $f=oe("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eS=oe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tS=oe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nS=oe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rS=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iS=oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),sS=({onStart:e})=>w.jsx("div",{className:"min-h-screen flex items-center justify-center p-8",children:w.jsx("div",{className:"max-w-4xl w-full",children:w.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center space-y-8",children:[w.jsx(De.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"inline-flex items-center justify-center w-24 h-24 rounded-3xl bg-gradient-to-br from-blue-500 to-purple-500 shadow-2xl",children:w.jsx($f,{className:"w-12 h-12 text-white"})}),w.jsxs(De.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:[w.jsx("h1",{className:"text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"AI 会展策划系统"}),w.jsx("p",{className:"mt-4 text-xl text-neutral-600 dark:text-neutral-400",children:"多Agent协同 · 智能生成 · 专业方案"})]}),w.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"grid grid-cols-3 gap-6 mt-12",children:[w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx(Yw,{className:"w-8 h-8 text-blue-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"7个专业Agent"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"覆盖策划全流程"})]}),w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx(iS,{className:"w-8 h-8 text-purple-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"实时协作"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"智能工作流编排"})]}),w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx($f,{className:"w-8 h-8 text-green-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"专业输出"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"完整策划方案"})]})]}),w.jsxs(De.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},className:"glass-morphism rounded-2xl p-8 text-left",children:[w.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"演示案例"}),w.jsxs("div",{className:"space-y-2 text-neutral-600 dark:text-neutral-400",children:[w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"项目:"}),"2024长三角国际新能源汽车与智能交通产业博览会"]}),w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"规模:"}),"50,000平方米展览面积350家参展商预计50,000人次参观"]}),w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"时长:"}),"约3分钟完整演示"]})]})]}),w.jsxs(De.button,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:1},whileHover:{scale:1.05},whileTap:{scale:.95},onClick:e,className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-blue-500 to-purple-500 text-white font-semibold text-lg rounded-2xl shadow-xl hover:shadow-2xl transition-all",children:[w.jsx("span",{children:"开始演示"}),w.jsx(Ww,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"}),w.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-500 to-purple-500 blur-xl opacity-50 group-hover:opacity-70 transition-opacity"})]}),w.jsx(De.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2},className:"text-sm text-neutral-500 dark:text-neutral-500 mt-8",children:"Powered by n8n Workflow · DeepSeek · Google Gemini"})]})})}),oS={},Wf=e=>{let t;const n=new Set,r=(c,f)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const g=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,g))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(oS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,a);return a},lS=e=>e?Wf(e):Wf;var Om={exports:{}},Im={},zm={exports:{}},Bm={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Gn=D;function aS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uS=typeof Object.is=="function"?Object.is:aS,cS=Gn.useState,fS=Gn.useEffect,dS=Gn.useLayoutEffect,hS=Gn.useDebugValue;function pS(e,t){var n=t(),r=cS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return dS(function(){i.value=n,i.getSnapshot=t,No(i)&&s({inst:i})},[e,n,t]),fS(function(){return No(i)&&s({inst:i}),e(function(){No(i)&&s({inst:i})})},[e]),hS(n),n}function No(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uS(e,n)}catch{return!0}}function mS(e,t){return t()}var gS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?mS:pS;Bm.useSyncExternalStore=Gn.useSyncExternalStore!==void 0?Gn.useSyncExternalStore:gS;zm.exports=Bm;var yS=zm.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ws=D,vS=yS;function xS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:xS,SS=vS.useSyncExternalStore,kS=Ws.useRef,PS=Ws.useEffect,TS=Ws.useMemo,CS=Ws.useDebugValue;Im.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=kS(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=TS(function(){function a(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var y=o.value;if(i(y,g))return f=y}return f=g}if(y=f,wS(c,g))return y;var x=r(g);return i!==void 0&&i(y,x)?(c=g,y):(c=g,f=x)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return a(t())},d===null?void 0:function(){return a(d())}]},[t,n,r,i]);var l=SS(e,s[0],s[1]);return PS(function(){o.hasValue=!0,o.value=l},[l]),CS(l),l};Om.exports=Im;var ES=Om.exports;const DS=Qf(ES),Um={},{useDebugValue:AS}=Kl,{useSyncExternalStoreWithSelector:MS}=DS;let Hf=!1;const RS=e=>e;function NS(e,t=RS,n){(Um?"production":void 0)!=="production"&&n&&!Hf&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Hf=!0);const r=MS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return AS(r),r}const Kf=e=>{(Um?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?lS(e):e,n=(r,i)=>NS(t,r,i);return Object.assign(n,t),n},jS=e=>e?Kf(e):Kf,Gf=[{id:"retrieval",name:"信息检索专家",icon:"🔍",model:"DeepSeek Chat Model5",role:"市场调研、数据收集、竞品分析",status:"waiting"},{id:"design",name:"设计专家",icon:"🎨",model:"Google Gemini Chat Model2",role:"视觉设计、空间布局、品牌形象",status:"waiting"},{id:"budget",name:"财务预算专家",icon:"💰",model:"DeepSeek Chat Model2",role:"成本核算、预算规划、ROI分析",status:"waiting"},{id:"format",name:"格式编辑专家",icon:"📝",model:"DeepSeek Chat Model4",role:"文档格式化、内容结构优化",status:"waiting"},{id:"execution",name:"活动执行专家",icon:"⚡",model:"DeepSeek Chat Model1",role:"执行计划、时间线管理、任务分配",status:"waiting"},{id:"marketing",name:"营销宣传专家",icon:"📢",model:"DeepSeek Chat Model3",role:"推广策略、媒体规划、品牌传播",status:"waiting"},{id:"coordinator",name:"会展策划专家",icon:"🎯",model:"Chat Models + Memories",role:"中央协调、方案整合、决策支持",status:"waiting"}],$m=jS(e=>({status:"idle",currentPhase:0,currentAgent:null,progress:0,agents:Gf,generatedContent:{},controls:{speed:1,autoAdvance:!0,showDetails:!0},startDemo:()=>e({status:"running",progress:0}),pauseDemo:()=>e({status:"paused"}),resumeDemo:()=>e({status:"running"}),setCurrentAgent:t=>e({currentAgent:t}),updateAgentStatus:(t,n)=>e(r=>({agents:r.agents.map(i=>i.id===t?{...i,status:n}:i)})),updateAgentOutput:(t,n)=>e(r=>({agents:r.agents.map(i=>i.id===t?{...i,output:n}:i)})),addGeneratedContent:(t,n)=>e(r=>({generatedContent:{...r.generatedContent,[t]:n}})),setProgress:t=>e({progress:t}),reset:()=>e({status:"idle",currentPhase:0,currentAgent:null,progress:0,agents:Gf,generatedContent:{}})})),LS=()=>{var h;const{agents:e,startDemo:t,pauseDemo:n,reset:r,status:i}=$m(),[s,o]=D.useState([]),[l,a]=D.useState(0),[u,c]=D.useState(0),f=D.useRef(null),d=D.useRef(null),g=[{agent:e[0],duration:12e3,output:[">>> 初始化信息检索系统...","[INFO] 连接数据库: mongodb://data-server:27017","[INFO] 加载索引: automotive_industry_2024.idx","正在执行查询...",'SELECT * FROM exhibitions WHERE region="长三角" AND industry="新能源汽车"',"> 查询耗时: 342ms","> 返回记录: 2,847 条","","=== 数据分析开始 ===","[1/5] 产业规模分析..."," └─ 2023年产值: 3.2万亿元 (↑32% YoY)"," └─ 企业数量: 5,832家"," └─ 从业人员: 186万人","[2/5] 主要企业扫描..."," └─ 特斯拉(上海): 年产能75万辆"," └─ 蔚来汽车: 累计交付38万辆"," └─ 理想汽车: 月销量突破5万"," └─ 小鹏汽车: 智能化领先","[3/5] 展会历史数据..."," └─ 2023年展会: 126场"," └─ 平均规模: 3.2万平方米"," └─ 平均观众: 4.5万人次","[4/5] 竞品分析..."," └─ 北京车展: 影响力指数92"," └─ 广州车展: 影响力指数88"," └─ 成都车展: 影响力指数76","[5/5] 趋势预测..."," └─ 2024年增长预期: 28%"," └─ 热点技术: 固态电池、自动驾驶L4","","✓ 市场调研报告已生成 (15.3MB)","✓ 数据已同步至共享空间"]},{agent:e[1],duration:12e3,output:[">>> 启动设计引擎 v3.2.1...","[LOAD] 加载品牌识别系统...","[LOAD] 加载空间规划算法...","","=== 视觉识别设计 ===","Analyzing brand requirements...","> 主题关键词: [科技, 创新, 绿色, 智能]","> 色彩心理学分析中..."," Primary: #0EA5E9 (Trust & Technology)"," Secondary: #10B981 (Growth & Sustainability)"," Accent: #F59E0B (Energy & Innovation)","","=== 空间布局优化 ===","Running layout optimization algorithm...","Iteration 1/100: Score=72.3","Iteration 50/100: Score=86.7","Iteration 100/100: Score=94.2","","最优布局方案:","┌─────────────────────────┐","│ A区: 整车展示 (15,000㎡) │","│ ├─ 豪华品牌: 5,000㎡ │","│ ├─ 新势力: 6,000㎡ │","│ └─ 传统转型: 4,000㎡ │","├─────────────────────────┤","│ B区: 核心零部件 (10,000㎡)│","│ ├─ 动力电池: 4,000㎡ │","│ ├─ 电机电控: 3,000㎡ │","│ └─ 智能座舱: 3,000㎡ │","└─────────────────────────┘","","Generating 3D preview...","> Rendering: ████████████ 100%","","✓ 设计方案已完成","✓ 导出文件: design_plan_v1.pdf (48.2MB)"]},{agent:e[2],duration:1e4,output:[">>> 财务分析系统 v2.0","Loading financial models...","","=== 成本核算 ===","Calculating venue costs...","> 场地租赁: ¥3,000,000"," └─ 展馆: ¥2,500,000"," └─ 会议室: ¥500,000","Calculating construction costs...","> 展台搭建: ¥4,500,000"," └─ 特装展位: ¥3,000,000"," └─ 标准展位: ¥1,500,000","Calculating operational costs...","> 运营费用: ¥2,000,000"," └─ 人员: ¥800,000"," └─ 营销: ¥1,200,000","","=== 收入预测 ===","Revenue projection model running...","> 展位销售: ¥8,500,000"," └─ 特装: 100个×¥100,000"," └─ 标准: 500个×¥15,000","> 赞助收入: ¥3,000,000","> 门票收入: ¥1,500,000","","Financial metrics:","> Total Cost: ¥10,000,000","> Total Revenue: ¥13,000,000","> Net Profit: ¥3,000,000","> ROI: 30%","> Break-even: Day 2","","✓ 财务模型构建完成","✓ 风险评估: 低风险"]},{agent:e[3],duration:8e3,output:[">>> 文档处理引擎启动...","[FORMAT] 检查文档结构...","> 章节数量: 6","> 总字数: 12,847","> 图表数量: 24","","=== 格式优化 ===","Applying style guide...","> 标题层级: H1-H4","> 字体规范: 思源黑体","> 行间距: 1.5倍","","Checking consistency...","> 术语统一: 187处修正","> 数字格式: 92处标准化","> 标点符号: 45处优化","","Generating TOC...","> 一级标题: 6个","> 二级标题: 18个","> 三级标题: 42个","","✓ 文档格式优化完成"]},{agent:e[4],duration:1e4,output:[">>> 执行计划生成器 v1.5","","=== 时间轴规划 ===","D-180: 项目启动","D-150: 招展启动","D-120: 媒体发布","D-90: 展位确认","D-60: 搭建方案确定","D-30: 现场勘察","D-7: 搭建开始","D-1: 最终检查","D+0: 展会开幕","","=== 人员部署 ===","Total staff: 126人","> 管理团队: 6人","> 展务团队: 30人","> 接待团队: 40人","> 技术团队: 20人","> 安保团队: 30人","","=== 物料清单 ===","Generating BOM...","> 展台物料: 2,847项","> 宣传物料: 523项","> 办公用品: 189项","","✓ 执行方案已生成"]},{agent:e[5],duration:1e4,output:[">>> 营销策略引擎 v4.0","","=== 渠道分析 ===","Analyzing marketing channels...","> 社交媒体覆盖: 500万+","> 行业媒体: 126家","> KOL资源: 89位","","=== 推广计划 ===","Phase 1: 预热期 (D-90 to D-60)","> 软文发布: 30篇","> 视频内容: 15条","> 直播预告: 5场","","Phase 2: 高峰期 (D-60 to D-30)","> 广告投放: ¥800,000","> 媒体专访: 10次","> 路演活动: 8场","","Phase 3: 冲刺期 (D-30 to D-0)","> 倒计时海报: 每日更新","> 展商专访: 20家","> 观众互动: 10个活动","","Expected reach:","> 曝光量: 2000万+","> 互动量: 50万+","> 转化率: 2.5%","","✓ 营销方案制定完成"]},{agent:e[6],duration:8e3,output:[">>> 协调控制中心 v3.0","","=== 数据汇总 ===","Collecting agent outputs...","> 市场分析: ✓ Complete","> 设计方案: ✓ Complete","> 财务预算: ✓ Complete","> 文档格式: ✓ Complete","> 执行计划: ✓ Complete","> 营销策略: ✓ Complete","","=== 协同优化 ===","Cross-validating data...","> 预算-设计匹配度: 96%","> 营销-市场匹配度: 92%","> 执行可行性评分: 94%","","Resolving conflicts...","> 时间冲突: 0","> 资源冲突: 0","> 逻辑冲突: 0","","=== 最终输出 ===","Generating final document...","> 合并章节: 6个","> 总页数: 68页","> 附件数: 12个","","✓ 策划方案生成完成","✓ 所有系统已同步"]}],y=m=>{const v=new Date,S=`${v.getHours().toString().padStart(2,"0")}:${v.getMinutes().toString().padStart(2,"0")}:${v.getSeconds().toString().padStart(2,"0")}`;o(P=>[...P,{...m,id:Math.random().toString(36).substr(2,9),timestamp:S}]),setTimeout(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},50)},x=async()=>{if(l>=g.length){y({type:"system",content:"========== 所有Agent执行完成 =========="});return}const m=g[l],v=m.agent;y({type:"system",content:`[Agent启动] ${v.name} (${v.model})`});for(let S=0;S<m.output.length;S++){if(await new Promise(P=>setTimeout(P,m.duration/m.output.length)),i!=="running")return;y({type:m.output[S].startsWith("✓")?"success":m.output[S].startsWith(">")?"output":"info",agent:v.name,content:m.output[S]})}a(S=>S+1)};D.useEffect(()=>{i==="running"&&l<g.length&&x()},[i,l]),D.useEffect(()=>(i==="running"?d.current=setInterval(()=>{c(m=>m+100)},100):d.current&&clearInterval(d.current),()=>{d.current&&clearInterval(d.current)}),[i]);const k=()=>{r(),o([]),a(0),c(0)},p=m=>{const v=Math.floor(m/1e3),S=Math.floor(v/60),P=v%60;return`${S.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`};return w.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[w.jsxs("div",{className:"bg-white border-b border-gray-200 px-6 py-3 flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("h1",{className:"text-lg font-semibold text-gray-900",children:"AI会展策划系统 - 多Agent协同演示"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("button",{onClick:i==="idle"?t:n,className:"px-3 py-1.5 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors flex items-center gap-1.5",children:i==="idle"||i==="paused"?w.jsxs(w.Fragment,{children:[w.jsx(qw,{className:"w-4 h-4"}),w.jsx("span",{children:"开始"})]}):w.jsxs(w.Fragment,{children:[w.jsx(Zw,{className:"w-4 h-4"}),w.jsx("span",{children:"暂停"})]})}),w.jsxs("button",{onClick:k,className:"px-3 py-1.5 bg-gray-600 text-white rounded-md hover:bg-gray-700 transition-colors flex items-center gap-1.5",children:[w.jsx(bw,{className:"w-4 h-4"}),w.jsx("span",{children:"重置"})]})]})]}),w.jsxs("div",{className:"text-sm text-gray-600",children:["运行时间: ",p(u)," / 03:00"]})]}),w.jsxs("div",{className:"flex-1 flex",children:[w.jsx("div",{className:"w-1/2 border-r border-gray-200 bg-white",children:w.jsxs("div",{className:"h-full flex flex-col",children:[w.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between bg-gray-50",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"}),w.jsx("span",{className:"text-sm font-medium text-gray-700",children:"工作流可视化"})]}),w.jsx("button",{className:"p-1 hover:bg-gray-200 rounded transition-colors",children:w.jsx(Fm,{className:"w-4 h-4 text-gray-600"})})]}),w.jsx("div",{className:"flex-1 relative",children:w.jsx("iframe",{src:"http://localhost:5678/workflow/XbfF8iRI4a69hmYS",className:"w-full h-full border-0",title:"n8n Workflow"})})]})}),w.jsx("div",{className:"w-1/2 bg-gray-900",children:w.jsxs("div",{className:"h-full flex flex-col",children:[w.jsxs("div",{className:"px-4 py-2 bg-gray-800 flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(tS,{className:"w-4 h-4 text-green-400"}),w.jsx("span",{className:"text-sm font-mono text-green-400",children:"Agent Execution Terminal"})]}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),w.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),w.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]})]}),w.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-4 font-mono text-sm",style:{backgroundColor:"#0a0a0a"},children:[w.jsx(ap,{children:s.map(m=>w.jsxs(De.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2},className:"mb-1",children:[w.jsxs("span",{className:"text-gray-500",children:["[",m.timestamp,"]"]}),m.agent&&w.jsxs("span",{className:"text-cyan-400 ml-2",children:[m.agent,":"]}),w.jsx("span",{className:`ml-2 ${m.type==="success"?"text-green-400":m.type==="error"?"text-red-400":m.type==="warning"?"text-yellow-400":m.type==="system"?"text-purple-400":m.type==="output"?"text-blue-400":"text-gray-300"}`,children:m.content})]},m.id))}),i==="running"&&w.jsx(De.span,{animate:{opacity:[1,0]},transition:{duration:.5,repeat:1/0},className:"inline-block w-2 h-4 bg-green-400"})]}),w.jsxs("div",{className:"px-4 py-3 bg-gray-800 border-t border-gray-700",children:[w.jsx("div",{className:"grid grid-cols-7 gap-2",children:e.map((m,v)=>w.jsxs("div",{className:`flex flex-col items-center gap-1 px-2 py-2 rounded-lg transition-all ${v<l?"bg-green-900/50 border border-green-700":v===l?"bg-blue-900 border border-blue-500 animate-pulse":"bg-gray-800 border border-gray-700"}`,children:[w.jsx("span",{className:`text-2xl ${v<l?"animate-none":v===l?"animate-bounce":""}`,children:m.icon}),w.jsx("span",{className:`text-xs text-center ${v<l?"text-green-400":v===l?"text-blue-400":"text-gray-500"}`,children:m.name}),w.jsx("div",{className:`w-full h-1 rounded-full mt-1 ${v<l?"bg-green-500":v===l?"bg-blue-500":"bg-gray-700"}`,children:v===l&&w.jsx("div",{className:"h-full bg-blue-400 rounded-full animate-pulse",style:{width:"50%"}})})]},m.id))}),w.jsxs("div",{className:"mt-2 text-center text-xs text-gray-400",children:["总进度: ",Math.round(l/g.length*100),"% | 当前阶段: ",l<g.length?(h=g[l])==null?void 0:h.agent.name:"已完成"]})]})]})})]})]})},VS=()=>{const[e,t]=D.useState("overview"),[n,r]=D.useState(!1),i=[{id:"overview",title:"策划案概述",icon:w.jsx(Qw,{className:"w-4 h-4"}),content:[{title:"展会背景",description:"在全球碳中和目标推动下,新能源汽车产业迎来前所未有的发展机遇。长三角地区作为中国经济最发达、产业链最完善的区域之一,已成为新能源汽车产业的核心聚集地。"},{title:"展会定位",description:'打造长三角地区最具影响力的新能源汽车产业交流平台,聚焦"双碳"目标下的产业创新与发展,推动产业链上下游深度合作。'},{title:"核心价值",items:["展示最新技术成果和产品创新","促进产业链上下游深度对接","推动国际技术交流与合作","引领行业发展趋势"]}]},{id:"exhibition",title:"展会介绍",icon:w.jsx(eS,{className:"w-4 h-4"}),content:[{title:"基本信息",items:["展会名称2024长三角国际新能源汽车与智能交通产业博览会","举办时间2024年10月18日-20日","举办地点:上海国家会展中心","展览面积50,000平方米","预计展商350家","预计观众50,000人次"]},{title:"展区规划",items:["A区 - 整车展示区15,000㎡新能源乘用车、商用车展示","B区 - 零部件展区10,000㎡电池、电机、电控系统","C区 - 充电设施展区8,000㎡充电桩、换电站、储能系统","D区 - 智能交通展区12,000㎡自动驾驶、车联网、智慧交通","E区 - 论坛会议区5,000㎡主论坛、分论坛、商务洽谈"]}]},{id:"marketing",title:"营销方案",icon:w.jsx(Xw,{className:"w-4 h-4"}),content:[{title:"线上推广",items:["官方网站:建设响应式展会官网,提供在线注册、展位预订功能","社交媒体微信、微博、抖音、LinkedIn多平台运营","KOL合作邀请行业大V、汽车测评博主参与宣传","搜索引擎SEM投放、SEO优化提升展会曝光度"]},{title:"线下推广",items:["行业展会:参加相关展会进行推介","路演活动:在长三角主要城市举办巡回推介会","户外广告:高速公路、地铁、机场广告投放","定向邀请:精准邀请目标客户群体"]},{title:"媒体合作",items:["主流媒体:央视、新华社、人民日报等","行业媒体:汽车之家、易车网、电车资源网等","国际媒体:路透社、彭博社驻华机构"]}]},{id:"operation",title:"现场运营",icon:w.jsx(nS,{className:"w-4 h-4"}),content:[{title:"人员配置",items:["总指挥中心1名总指挥 + 3名副总指挥","展务组20人负责展位管理和现场协调","接待组30人负责VIP接待和观众服务","安保组50人负责现场安全保障","技术组15人负责设备调试和技术支持","媒体组10人负责媒体接待和新闻发布"]},{title:"服务设施",items:["智能导览系统AR导航、展位查询、活动提醒","商务配套商务洽谈室、VIP休息室、餐饮服务","交通接驳:地铁站、机场、高铁站免费班车","停车服务5000个车位新能源车免费充电"]}]},{id:"budget",title:"预算分析",icon:w.jsx(Kw,{className:"w-4 h-4"}),content:[{title:"支出预算",items:["场地租赁300万元","展台搭建450万元","营销推广120万元","人员费用80万元","应急储备50万元","总计1,000万元"]},{title:"收入预测",items:["展位销售850万元标准展位500个×1.5万特装100个×10万","门票收入150万元专业观众票3万张×50元","赞助收入300万元钻石赞助1家、金牌赞助3家、银牌赞助5家","总计1,300万元"]},{title:"盈利分析",description:"预计净利润300万元投资回报率30%,达到预期收益目标。"}]},{id:"risk",title:"风险评估",icon:w.jsx(Jw,{className:"w-4 h-4"}),content:[{title:"潜在风险",items:["疫情风险:可能导致展会延期或取消","市场风险:行业波动影响展商参展意愿","竞争风险:同期其他展会分流","天气风险:极端天气影响观众出行"]},{title:"应对措施",items:["制定完善的疫情防控方案,购买展会取消险","提前锁定核心展商,签订参展协议","差异化定位,突出展会特色优势","制定恶劣天气应急预案,提供线上参展选项"]}]}],s=i.find(o=>o.id===e);return w.jsxs("div",{className:`${n?"fixed inset-0 z-50":"min-h-screen"} bg-gray-50 flex flex-col`,children:[w.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-4",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{children:[w.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"2024长三角新能源汽车展 - 策划方案"}),w.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"AI多Agent协同生成 | 生成时间3分钟"})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("button",{className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors flex items-center gap-2",children:[w.jsx(Gw,{className:"w-4 h-4"}),w.jsx("span",{children:"导出PDF"})]}),w.jsx("button",{onClick:()=>r(!n),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:n?w.jsx(rS,{className:"w-5 h-5"}):w.jsx(Fm,{className:"w-5 h-5"})})]})]})}),w.jsx("div",{className:"bg-white border-b border-gray-200",children:w.jsx("div",{className:"flex overflow-x-auto",children:i.map(o=>w.jsxs("button",{onClick:()=>t(o.id),className:`flex items-center gap-2 px-6 py-3 border-b-2 transition-all whitespace-nowrap ${e===o.id?"border-blue-600 text-blue-600 bg-blue-50":"border-transparent text-gray-600 hover:text-gray-900 hover:bg-gray-50"}`,children:[o.icon,w.jsx("span",{className:"font-medium",children:o.title})]},o.id))})}),w.jsx("div",{className:"flex-1 overflow-y-auto",children:w.jsx("div",{className:"max-w-5xl mx-auto p-8",children:w.jsx(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:s==null?void 0:s.content.map((o,l)=>w.jsxs("div",{className:"mb-8 bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[w.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4 flex items-center gap-2",children:[w.jsx(Hw,{className:"w-5 h-5 text-blue-600"}),o.title]}),o.subtitle&&w.jsx("p",{className:"text-gray-600 mb-4",children:o.subtitle}),o.description&&w.jsx("p",{className:"text-gray-700 leading-relaxed",children:o.description}),o.items&&w.jsx("ul",{className:"space-y-2",children:o.items.map((a,u)=>w.jsxs("li",{className:"flex items-start gap-2",children:[w.jsx("span",{className:"text-blue-600 mt-1",children:"•"}),w.jsx("span",{className:"text-gray-700",children:a})]},u))})]},l))},e)})}),w.jsx("div",{className:"bg-white border-t border-gray-200 px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("span",{children:"文档完整度: 100%"}),w.jsx("span",{children:"总字数: 12,847"}),w.jsx("span",{children:"生成用时: 2分48秒"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500"}),w.jsx("span",{children:"所有内容已生成完成"})]})]})})]})};function _S(){const[e,t]=D.useState("landing"),{status:n}=$m();Kl.useEffect(()=>{n==="completed"&&t("result")},[n]);const r=()=>{t("workflow")};return w.jsx("div",{className:"min-h-screen",children:w.jsxs(ap,{mode:"wait",children:[e==="landing"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(sS,{onStart:r})},"landing"),e==="workflow"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(LS,{})},"workflow"),e==="result"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(VS,{})},"result")]})})}jo.createRoot(document.getElementById("root")).render(w.jsx(Kl.StrictMode,{children:w.jsx(_S,{})}));