135 lines
320 KiB
JavaScript
135 lines
320 KiB
JavaScript
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function np(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var cl={exports:{}},mi={},dl={exports:{}},le={};/**
|
||
* @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 jf;function Hy(){if(jf)return le;jf=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,D={};function M(A,L,se){this.props=A,this.context=L,this.refs=D,this.updater=se||C}M.prototype.isReactComponent={},M.prototype.setState=function(A,L){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,L,"setState")},M.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function I(){}I.prototype=M.prototype;function U(A,L,se){this.props=A,this.context=L,this.refs=D,this.updater=se||C}var B=U.prototype=new I;B.constructor=U,N(B,M.prototype),B.isPureReactComponent=!0;var b=Array.isArray,G=Object.prototype.hasOwnProperty,ie={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function J(A,L,se){var ue,he={},pe=null,Se=null;if(L!=null)for(ue in L.ref!==void 0&&(Se=L.ref),L.key!==void 0&&(pe=""+L.key),L)G.call(L,ue)&&!ae.hasOwnProperty(ue)&&(he[ue]=L[ue]);var ye=arguments.length-2;if(ye===1)he.children=se;else if(1<ye){for(var Ee=Array(ye),dt=0;dt<ye;dt++)Ee[dt]=arguments[dt+2];he.children=Ee}if(A&&A.defaultProps)for(ue in ye=A.defaultProps,ye)he[ue]===void 0&&(he[ue]=ye[ue]);return{$$typeof:n,type:A,key:pe,ref:Se,props:he,_owner:ie.current}}function re(A,L){return{$$typeof:n,type:A.type,key:L,ref:A.ref,props:A.props,_owner:A._owner}}function q(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function fe(A){var L={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(se){return L[se]})}var xe=/\/+/g;function Ne(A,L){return typeof A=="object"&&A!==null&&A.key!=null?fe(""+A.key):L.toString(36)}function Re(A,L,se,ue,he){var pe=typeof A;(pe==="undefined"||pe==="boolean")&&(A=null);var Se=!1;if(A===null)Se=!0;else switch(pe){case"string":case"number":Se=!0;break;case"object":switch(A.$$typeof){case n:case r:Se=!0}}if(Se)return Se=A,he=he(Se),A=ue===""?"."+Ne(Se,0):ue,b(he)?(se="",A!=null&&(se=A.replace(xe,"$&/")+"/"),Re(he,L,se,"",function(dt){return dt})):he!=null&&(q(he)&&(he=re(he,se+(!he.key||Se&&Se.key===he.key?"":(""+he.key).replace(xe,"$&/")+"/")+A)),L.push(he)),1;if(Se=0,ue=ue===""?".":ue+":",b(A))for(var ye=0;ye<A.length;ye++){pe=A[ye];var Ee=ue+Ne(pe,ye);Se+=Re(pe,L,se,Ee,he)}else if(Ee=w(A),typeof Ee=="function")for(A=Ee.call(A),ye=0;!(pe=A.next()).done;)pe=pe.value,Ee=ue+Ne(pe,ye++),Se+=Re(pe,L,se,Ee,he);else if(pe==="object")throw L=String(A),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Se}function ze(A,L,se){if(A==null)return A;var ue=[],he=0;return Re(A,ue,"","",function(pe){return L.call(se,pe,he++)}),ue}function Te(A){if(A._status===-1){var L=A._result;L=L(),L.then(function(se){(A._status===0||A._status===-1)&&(A._status=1,A._result=se)},function(se){(A._status===0||A._status===-1)&&(A._status=2,A._result=se)}),A._status===-1&&(A._status=0,A._result=L)}if(A._status===1)return A._result.default;throw A._result}var Me={current:null},z={transition:null},X={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:z,ReactCurrentOwner:ie};function W(){throw Error("act(...) is not supported in production builds of React.")}return le.Children={map:ze,forEach:function(A,L,se){ze(A,function(){L.apply(this,arguments)},se)},count:function(A){var L=0;return ze(A,function(){L++}),L},toArray:function(A){return ze(A,function(L){return L})||[]},only:function(A){if(!q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},le.Component=M,le.Fragment=s,le.Profiler=u,le.PureComponent=U,le.StrictMode=a,le.Suspense=g,le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,le.act=W,le.cloneElement=function(A,L,se){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ue=N({},A.props),he=A.key,pe=A.ref,Se=A._owner;if(L!=null){if(L.ref!==void 0&&(pe=L.ref,Se=ie.current),L.key!==void 0&&(he=""+L.key),A.type&&A.type.defaultProps)var ye=A.type.defaultProps;for(Ee in L)G.call(L,Ee)&&!ae.hasOwnProperty(Ee)&&(ue[Ee]=L[Ee]===void 0&&ye!==void 0?ye[Ee]:L[Ee])}var Ee=arguments.length-2;if(Ee===1)ue.children=se;else if(1<Ee){ye=Array(Ee);for(var dt=0;dt<Ee;dt++)ye[dt]=arguments[dt+2];ue.children=ye}return{$$typeof:n,type:A.type,key:he,ref:pe,props:ue,_owner:Se}},le.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:f,_context:A},A.Consumer=A},le.createElement=J,le.createFactory=function(A){var L=J.bind(null,A);return L.type=A,L},le.createRef=function(){return{current:null}},le.forwardRef=function(A){return{$$typeof:h,render:A}},le.isValidElement=q,le.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:Te}},le.memo=function(A,L){return{$$typeof:x,type:A,compare:L===void 0?null:L}},le.startTransition=function(A){var L=z.transition;z.transition={};try{A()}finally{z.transition=L}},le.unstable_act=W,le.useCallback=function(A,L){return Me.current.useCallback(A,L)},le.useContext=function(A){return Me.current.useContext(A)},le.useDebugValue=function(){},le.useDeferredValue=function(A){return Me.current.useDeferredValue(A)},le.useEffect=function(A,L){return Me.current.useEffect(A,L)},le.useId=function(){return Me.current.useId()},le.useImperativeHandle=function(A,L,se){return Me.current.useImperativeHandle(A,L,se)},le.useInsertionEffect=function(A,L){return Me.current.useInsertionEffect(A,L)},le.useLayoutEffect=function(A,L){return Me.current.useLayoutEffect(A,L)},le.useMemo=function(A,L){return Me.current.useMemo(A,L)},le.useReducer=function(A,L,se){return Me.current.useReducer(A,L,se)},le.useRef=function(A){return Me.current.useRef(A)},le.useState=function(A){return Me.current.useState(A)},le.useSyncExternalStore=function(A,L,se){return Me.current.useSyncExternalStore(A,L,se)},le.useTransition=function(){return Me.current.useTransition()},le.version="18.3.1",le}var Nf;function ru(){return Nf||(Nf=1,dl.exports=Hy()),dl.exports}/**
|
||
* @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 Mf;function Gy(){if(Mf)return mi;Mf=1;var n=ru(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(h,g,x){var y,v={},w=null,C=null;x!==void 0&&(w=""+x),g.key!==void 0&&(w=""+g.key),g.ref!==void 0&&(C=g.ref);for(y in g)a.call(g,y)&&!f.hasOwnProperty(y)&&(v[y]=g[y]);if(h&&h.defaultProps)for(y in g=h.defaultProps,g)v[y]===void 0&&(v[y]=g[y]);return{$$typeof:r,type:h,key:w,ref:C,props:v,_owner:u.current}}return mi.Fragment=s,mi.jsx=d,mi.jsxs=d,mi}var Df;function Ky(){return Df||(Df=1,cl.exports=Gy()),cl.exports}var m=Ky(),_=ru();const $y=np(_);var Bs={},fl={exports:{}},ct={},hl={exports:{}},pl={};/**
|
||
* @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.
|
||
*/var Lf;function Yy(){return Lf||(Lf=1,(function(n){function r(z,X){var W=z.length;z.push(X);e:for(;0<W;){var A=W-1>>>1,L=z[A];if(0<u(L,X))z[A]=X,z[W]=L,W=A;else break e}}function s(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var X=z[0],W=z.pop();if(W!==X){z[0]=W;e:for(var A=0,L=z.length,se=L>>>1;A<se;){var ue=2*(A+1)-1,he=z[ue],pe=ue+1,Se=z[pe];if(0>u(he,W))pe<L&&0>u(Se,he)?(z[A]=Se,z[pe]=W,A=pe):(z[A]=he,z[ue]=W,A=ue);else if(pe<L&&0>u(Se,W))z[A]=Se,z[pe]=W,A=pe;else break e}}return X}function u(z,X){var W=z.sortIndex-X.sortIndex;return W!==0?W:z.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var g=[],x=[],y=1,v=null,w=3,C=!1,N=!1,D=!1,M=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(z){for(var X=s(x);X!==null;){if(X.callback===null)a(x);else if(X.startTime<=z)a(x),X.sortIndex=X.expirationTime,r(g,X);else break;X=s(x)}}function b(z){if(D=!1,B(z),!N)if(s(g)!==null)N=!0,Te(G);else{var X=s(x);X!==null&&Me(b,X.startTime-z)}}function G(z,X){N=!1,D&&(D=!1,I(J),J=-1),C=!0;var W=w;try{for(B(X),v=s(g);v!==null&&(!(v.expirationTime>X)||z&&!fe());){var A=v.callback;if(typeof A=="function"){v.callback=null,w=v.priorityLevel;var L=A(v.expirationTime<=X);X=n.unstable_now(),typeof L=="function"?v.callback=L:v===s(g)&&a(g),B(X)}else a(g);v=s(g)}if(v!==null)var se=!0;else{var ue=s(x);ue!==null&&Me(b,ue.startTime-X),se=!1}return se}finally{v=null,w=W,C=!1}}var ie=!1,ae=null,J=-1,re=5,q=-1;function fe(){return!(n.unstable_now()-q<re)}function xe(){if(ae!==null){var z=n.unstable_now();q=z;var X=!0;try{X=ae(!0,z)}finally{X?Ne():(ie=!1,ae=null)}}else ie=!1}var Ne;if(typeof U=="function")Ne=function(){U(xe)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,ze=Re.port2;Re.port1.onmessage=xe,Ne=function(){ze.postMessage(null)}}else Ne=function(){M(xe,0)};function Te(z){ae=z,ie||(ie=!0,Ne())}function Me(z,X){J=M(function(){z(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_continueExecution=function(){N||C||(N=!0,Te(G))},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(z){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var W=w;w=X;try{return z()}finally{w=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=w;w=z;try{return X()}finally{w=W}},n.unstable_scheduleCallback=function(z,X,W){var A=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?A+W:A):W=A,z){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=W+L,z={id:y++,callback:X,priorityLevel:z,startTime:W,expirationTime:L,sortIndex:-1},W>A?(z.sortIndex=W,r(x,z),s(g)===null&&z===s(x)&&(D?(I(J),J=-1):D=!0,Me(b,W-A))):(z.sortIndex=L,r(g,z),N||C||(N=!0,Te(G))),z},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(z){var X=w;return function(){var W=w;w=X;try{return z.apply(this,arguments)}finally{w=W}}}})(pl)),pl}var Rf;function Xy(){return Rf||(Rf=1,hl.exports=Yy()),hl.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 Ff;function Qy(){if(Ff)return ct;Ff=1;var n=ru(),r=Xy();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);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 a=new Set,u={};function f(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,x=/^[: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]*$/,y={},v={};function w(e){return g.call(v,e)?!0:g.call(y,e)?!1:x.test(e)?v[e]=!0:(y[e]=!0,!1)}function C(e,t,i,o){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,i,o){if(t===null||typeof t>"u"||C(e,t,i,o))return!0;if(o)return!1;if(i!==null)switch(i.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 D(e,t,i,o,l,c,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=p}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new D(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new D(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){M[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function U(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(I,U);M[t]=new D(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(I,U);M[t]=new D(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(I,U);M[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,i,o){var l=M.hasOwnProperty(t)?M[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,i,l,o)&&(i=null),o||l===null?w(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):l.mustUseProperty?e[l.propertyName]=i===null?l.type===3?!1:"":i:(t=l.attributeName,o=l.attributeNamespace,i===null?e.removeAttribute(t):(l=l.type,i=l===3||l===4&&i===!0?"":""+i,o?e.setAttributeNS(o,t,i):e.setAttribute(t,i))))}var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),ie=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),fe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),Me=Symbol.for("react.offscreen"),z=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,A;function L(e){if(A===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return`
|
||
`+A+e}var se=!1;function ue(e,t){if(!e||se)return"";se=!0;var i=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(j){var o=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){o=j}e.call(t.prototype)}else{try{throw Error()}catch(j){o=j}e()}}catch(j){if(j&&o&&typeof j.stack=="string"){for(var l=j.stack.split(`
|
||
`),c=o.stack.split(`
|
||
`),p=l.length-1,S=c.length-1;1<=p&&0<=S&&l[p]!==c[S];)S--;for(;1<=p&&0<=S;p--,S--)if(l[p]!==c[S]){if(p!==1||S!==1)do if(p--,S--,0>S||l[p]!==c[S]){var k=`
|
||
`+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=S);break}}}finally{se=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?L(e):""}function he(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function pe(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 ae:return"Fragment";case ie:return"Portal";case re:return"Profiler";case J:return"StrictMode";case Ne:return"Suspense";case Re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fe:return(e.displayName||"Context")+".Consumer";case q:return(e._context.displayName||"Context")+".Provider";case xe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ze:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function Se(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 pe(t);case 8:return t===J?"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 ye(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dt(e){var t=Ee(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(p){o=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(p){o=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=dt(e))}function Ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Ee(e)?e.checked?"true":"false":e.value),e=o,e!==i?(t.setValue(e),!0):!1}function Di(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 yo(e,t){var i=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Fu(e,t){var i=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;i=ye(t.value!=null?t.value:i),e._wrapperState={initialChecked:o,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vu(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function vo(e,t){Vu(e,t);var i=ye(t.value),o=t.type;if(i!=null)o==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xo(e,t.type,i):t.hasOwnProperty("defaultValue")&&xo(e,t.type,ye(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iu(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function xo(e,t,i){(t!=="number"||Di(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Mr=Array.isArray;function $n(e,t,i,o){if(e=e.options,t){t={};for(var l=0;l<i.length;l++)t["$"+i[l]]=!0;for(i=0;i<e.length;i++)l=t.hasOwnProperty("$"+e[i].value),e[i].selected!==l&&(e[i].selected=l),l&&o&&(e[i].defaultSelected=!0)}else{for(i=""+ye(i),t=null,l=0;l<e.length;l++){if(e[l].value===i){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function wo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _u(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(s(92));if(Mr(i)){if(1<i.length)throw Error(s(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:ye(i)}}function zu(e,t){var i=ye(t.value),o=ye(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),o!=null&&(e.defaultValue=""+o)}function Ou(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Bu(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 So(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Bu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Li,bu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,i,o,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Lr={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},Ym=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){Ym.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function Uu(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function Wu(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var o=i.indexOf("--")===0,l=Uu(i,t[i],o);i==="float"&&(i="cssFloat"),o?e.setProperty(i,l):e[i]=l}}var Xm=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ko(e,t){if(t){if(Xm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function To(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 Co=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,Yn=null,Xn=null;function Hu(e){if(e=ei(e)){if(typeof Po!="function")throw Error(s(280));var t=e.stateNode;t&&(t=ts(t),Po(e.stateNode,e.type,t))}}function Gu(e){Yn?Xn?Xn.push(e):Xn=[e]:Yn=e}function Ku(){if(Yn){var e=Yn,t=Xn;if(Xn=Yn=null,Hu(e),t)for(e=0;e<t.length;e++)Hu(t[e])}}function $u(e,t){return e(t)}function Yu(){}var Eo=!1;function Xu(e,t,i){if(Eo)return e(t,i);Eo=!0;try{return $u(e,t,i)}finally{Eo=!1,(Yn!==null||Xn!==null)&&(Yu(),Ku())}}function Rr(e,t){var i=e.stateNode;if(i===null)return null;var o=ts(i);if(o===null)return null;i=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var jo=!1;if(h)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){jo=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{jo=!1}function Qm(e,t,i,o,l,c,p,S,k){var j=Array.prototype.slice.call(arguments,3);try{t.apply(i,j)}catch(F){this.onError(F)}}var Vr=!1,Ri=null,Fi=!1,No=null,qm={onError:function(e){Vr=!0,Ri=e}};function Zm(e,t,i,o,l,c,p,S,k){Vr=!1,Ri=null,Qm.apply(qm,arguments)}function Jm(e,t,i,o,l,c,p,S,k){if(Zm.apply(this,arguments),Vr){if(Vr){var j=Ri;Vr=!1,Ri=null}else throw Error(s(198));Fi||(Fi=!0,No=j)}}function jn(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function Qu(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 qu(e){if(jn(e)!==e)throw Error(s(188))}function eg(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,o=t;;){var l=i.return;if(l===null)break;var c=l.alternate;if(c===null){if(o=l.return,o!==null){i=o;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===i)return qu(l),e;if(c===o)return qu(l),t;c=c.sibling}throw Error(s(188))}if(i.return!==o.return)i=l,o=c;else{for(var p=!1,S=l.child;S;){if(S===i){p=!0,i=l,o=c;break}if(S===o){p=!0,o=l,i=c;break}S=S.sibling}if(!p){for(S=c.child;S;){if(S===i){p=!0,i=c,o=l;break}if(S===o){p=!0,o=c,i=l;break}S=S.sibling}if(!p)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function Zu(e){return e=eg(e),e!==null?Ju(e):null}function Ju(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ju(e);if(t!==null)return t;e=e.sibling}return null}var ec=r.unstable_scheduleCallback,tc=r.unstable_cancelCallback,tg=r.unstable_shouldYield,ng=r.unstable_requestPaint,Ie=r.unstable_now,rg=r.unstable_getCurrentPriorityLevel,Mo=r.unstable_ImmediatePriority,nc=r.unstable_UserBlockingPriority,Vi=r.unstable_NormalPriority,ig=r.unstable_LowPriority,rc=r.unstable_IdlePriority,Ii=null,_t=null;function sg(e){if(_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Ii,e,void 0,(e.current.flags&128)===128)}catch{}}var Pt=Math.clz32?Math.clz32:lg,og=Math.log,ag=Math.LN2;function lg(e){return e>>>=0,e===0?32:31-(og(e)/ag|0)|0}var _i=64,zi=4194304;function Ir(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 Oi(e,t){var i=e.pendingLanes;if(i===0)return 0;var o=0,l=e.suspendedLanes,c=e.pingedLanes,p=i&268435455;if(p!==0){var S=p&~l;S!==0?o=Ir(S):(c&=p,c!==0&&(o=Ir(c)))}else p=i&~l,p!==0?o=Ir(p):c!==0&&(o=Ir(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&l)===0&&(l=o&-o,c=t&-t,l>=c||l===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)i=31-Pt(t),l=1<<i,o|=e[i],t&=~l;return o}function ug(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 cg(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-Pt(c),S=1<<p,k=l[p];k===-1?((S&i)===0||(S&o)!==0)&&(l[p]=ug(S,t)):k<=t&&(e.expiredLanes|=S),c&=~S}}function Do(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ic(){var e=_i;return _i<<=1,(_i&4194240)===0&&(_i=64),e}function Lo(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function _r(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=i}function dg(e,t){var i=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 o=e.eventTimes;for(e=e.expirationTimes;0<i;){var l=31-Pt(i),c=1<<l;t[l]=0,o[l]=-1,e[l]=-1,i&=~c}}function Ro(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var o=31-Pt(i),l=1<<o;l&t|e[o]&t&&(e[o]|=t),i&=~l}}var ve=0;function sc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var oc,Fo,ac,lc,uc,Vo=!1,Bi=[],nn=null,rn=null,sn=null,zr=new Map,Or=new Map,on=[],fg="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 cc(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":rn=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(t.pointerId)}}function Br(e,t,i,o,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:o,nativeEvent:c,targetContainers:[l]},t!==null&&(t=ei(t),t!==null&&Fo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function hg(e,t,i,o,l){switch(t){case"focusin":return nn=Br(nn,e,t,i,o,l),!0;case"dragenter":return rn=Br(rn,e,t,i,o,l),!0;case"mouseover":return sn=Br(sn,e,t,i,o,l),!0;case"pointerover":var c=l.pointerId;return zr.set(c,Br(zr.get(c)||null,e,t,i,o,l)),!0;case"gotpointercapture":return c=l.pointerId,Or.set(c,Br(Or.get(c)||null,e,t,i,o,l)),!0}return!1}function dc(e){var t=Nn(e.target);if(t!==null){var i=jn(t);if(i!==null){if(t=i.tag,t===13){if(t=Qu(i),t!==null){e.blockedOn=t,uc(e.priority,function(){ac(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=_o(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);Co=o,i.target.dispatchEvent(o),Co=null}else return t=ei(i),t!==null&&Fo(t),e.blockedOn=i,!1;t.shift()}return!0}function fc(e,t,i){bi(e)&&i.delete(t)}function pg(){Vo=!1,nn!==null&&bi(nn)&&(nn=null),rn!==null&&bi(rn)&&(rn=null),sn!==null&&bi(sn)&&(sn=null),zr.forEach(fc),Or.forEach(fc)}function br(e,t){e.blockedOn===t&&(e.blockedOn=null,Vo||(Vo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pg)))}function Ur(e){function t(l){return br(l,e)}if(0<Bi.length){br(Bi[0],e);for(var i=1;i<Bi.length;i++){var o=Bi[i];o.blockedOn===e&&(o.blockedOn=null)}}for(nn!==null&&br(nn,e),rn!==null&&br(rn,e),sn!==null&&br(sn,e),zr.forEach(t),Or.forEach(t),i=0;i<on.length;i++)o=on[i],o.blockedOn===e&&(o.blockedOn=null);for(;0<on.length&&(i=on[0],i.blockedOn===null);)dc(i),i.blockedOn===null&&on.shift()}var Qn=b.ReactCurrentBatchConfig,Ui=!0;function mg(e,t,i,o){var l=ve,c=Qn.transition;Qn.transition=null;try{ve=1,Io(e,t,i,o)}finally{ve=l,Qn.transition=c}}function gg(e,t,i,o){var l=ve,c=Qn.transition;Qn.transition=null;try{ve=4,Io(e,t,i,o)}finally{ve=l,Qn.transition=c}}function Io(e,t,i,o){if(Ui){var l=_o(e,t,i,o);if(l===null)ea(e,t,o,Wi,i),cc(e,o);else if(hg(l,e,t,i,o))o.stopPropagation();else if(cc(e,o),t&4&&-1<fg.indexOf(e)){for(;l!==null;){var c=ei(l);if(c!==null&&oc(c),c=_o(e,t,i,o),c===null&&ea(e,t,o,Wi,i),c===l)break;l=c}l!==null&&o.stopPropagation()}else ea(e,t,o,null,i)}}var Wi=null;function _o(e,t,i,o){if(Wi=null,e=Ao(o),e=Nn(e),e!==null)if(t=jn(e),t===null)e=null;else if(i=t.tag,i===13){if(e=Qu(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wi=e,null}function hc(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(rg()){case Mo:return 1;case nc:return 4;case Vi:case ig:return 16;case rc:return 536870912;default:return 16}default:return 16}}var an=null,zo=null,Hi=null;function pc(){if(Hi)return Hi;var e,t=zo,i=t.length,o,l="value"in an?an.value:an.textContent,c=l.length;for(e=0;e<i&&t[e]===l[e];e++);var p=i-e;for(o=1;o<=p&&t[i-o]===l[c-o];o++);return Hi=l.slice(e,1<o?1-o:void 0)}function Gi(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 Ki(){return!0}function mc(){return!1}function ft(e){function t(i,o,l,c,p){this._reactName=i,this._targetInst=l,this.type=o,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ki:mc,this.isPropagationStopped=mc,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=ft(qn),Wr=W({},qn,{view:0,detail:0}),yg=ft(Wr),Bo,bo,Hr,$i=W({},Wr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wo,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!==Hr&&(Hr&&e.type==="mousemove"?(Bo=e.screenX-Hr.screenX,bo=e.screenY-Hr.screenY):bo=Bo=0,Hr=e),Bo)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),gc=ft($i),vg=W({},$i,{dataTransfer:0}),xg=ft(vg),wg=W({},Wr,{relatedTarget:0}),Uo=ft(wg),Sg=W({},qn,{animationName:0,elapsedTime:0,pseudoElement:0}),kg=ft(Sg),Tg=W({},qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=ft(Tg),Ag=W({},qn,{data:0}),yc=ft(Ag),Pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eg={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 Ng(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jg[e])?!!t[e]:!1}function Wo(){return Ng}var Mg=W({},Wr,{key:function(e){if(e.key){var t=Pg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wo,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dg=ft(Mg),Lg=W({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vc=ft(Lg),Rg=W({},Wr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wo}),Fg=ft(Rg),Vg=W({},qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ig=ft(Vg),_g=W({},$i,{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}),zg=ft(_g),Og=[9,13,27,32],Ho=h&&"CompositionEvent"in window,Gr=null;h&&"documentMode"in document&&(Gr=document.documentMode);var Bg=h&&"TextEvent"in window&&!Gr,xc=h&&(!Ho||Gr&&8<Gr&&11>=Gr),wc=" ",Sc=!1;function kc(e,t){switch(e){case"keyup":return Og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function bg(e,t){switch(e){case"compositionend":return Tc(t);case"keypress":return t.which!==32?null:(Sc=!0,wc);case"textInput":return e=t.data,e===wc&&Sc?null:e;default:return null}}function Ug(e,t){if(Zn)return e==="compositionend"||!Ho&&kc(e,t)?(e=pc(),Hi=zo=an=null,Zn=!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 xc&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={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 Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function Ac(e,t,i,o){Gu(o),t=Zi(t,"onChange"),0<t.length&&(i=new Oo("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Kr=null,$r=null;function Hg(e){Wc(e,0)}function Yi(e){var t=rr(e);if(Ru(t))return e}function Gg(e,t){if(e==="change")return t}var Pc=!1;if(h){var Go;if(h){var Ko="oninput"in document;if(!Ko){var Ec=document.createElement("div");Ec.setAttribute("oninput","return;"),Ko=typeof Ec.oninput=="function"}Go=Ko}else Go=!1;Pc=Go&&(!document.documentMode||9<document.documentMode)}function jc(){Kr&&(Kr.detachEvent("onpropertychange",Nc),$r=Kr=null)}function Nc(e){if(e.propertyName==="value"&&Yi($r)){var t=[];Ac(t,$r,e,Ao(e)),Xu(Hg,t)}}function Kg(e,t,i){e==="focusin"?(jc(),Kr=t,$r=i,Kr.attachEvent("onpropertychange",Nc)):e==="focusout"&&jc()}function $g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi($r)}function Yg(e,t){if(e==="click")return Yi(t)}function Xg(e,t){if(e==="input"||e==="change")return Yi(t)}function Qg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:Qg;function Yr(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var l=i[o];if(!g.call(t,l)||!Et(e[l],t[l]))return!1}return!0}function Mc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dc(e,t){var i=Mc(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=t&&o>=t)return{node:i,offset:t-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Mc(i)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rc(){for(var e=window,t=Di();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Di(e.document)}return t}function $o(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 qg(e){var t=Rc(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Lc(i.ownerDocument.documentElement,i)){if(o!==null&&$o(i)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=i.textContent.length,c=Math.min(o.start,l);o=o.end===void 0?c:Math.min(o.end,l),!e.extend&&c>o&&(l=o,o=c,c=l),l=Dc(i,c);var p=Dc(i,o);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zg=h&&"documentMode"in document&&11>=document.documentMode,Jn=null,Yo=null,Xr=null,Xo=!1;function Fc(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Xo||Jn==null||Jn!==Di(o)||(o=Jn,"selectionStart"in o&&$o(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xr&&Yr(Xr,o)||(Xr=o,o=Zi(Yo,"onSelect"),0<o.length&&(t=new Oo("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=Jn)))}function Xi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var er={animationend:Xi("Animation","AnimationEnd"),animationiteration:Xi("Animation","AnimationIteration"),animationstart:Xi("Animation","AnimationStart"),transitionend:Xi("Transition","TransitionEnd")},Qo={},Vc={};h&&(Vc=document.createElement("div").style,"AnimationEvent"in window||(delete er.animationend.animation,delete er.animationiteration.animation,delete er.animationstart.animation),"TransitionEvent"in window||delete er.transitionend.transition);function Qi(e){if(Qo[e])return Qo[e];if(!er[e])return e;var t=er[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Vc)return Qo[e]=t[i];return e}var Ic=Qi("animationend"),_c=Qi("animationiteration"),zc=Qi("animationstart"),Oc=Qi("transitionend"),Bc=new Map,bc="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 ln(e,t){Bc.set(e,t),f(t,[e])}for(var qo=0;qo<bc.length;qo++){var Zo=bc[qo],Jg=Zo.toLowerCase(),ey=Zo[0].toUpperCase()+Zo.slice(1);ln(Jg,"on"+ey)}ln(Ic,"onAnimationEnd"),ln(_c,"onAnimationIteration"),ln(zc,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Oc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="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(" "),ty=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function Uc(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Jm(o,t,void 0,e),e.currentTarget=null}function Wc(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],l=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var p=o.length-1;0<=p;p--){var S=o[p],k=S.instance,j=S.currentTarget;if(S=S.listener,k!==c&&l.isPropagationStopped())break e;Uc(l,S,j),c=k}else for(p=0;p<o.length;p++){if(S=o[p],k=S.instance,j=S.currentTarget,S=S.listener,k!==c&&l.isPropagationStopped())break e;Uc(l,S,j),c=k}}}if(Fi)throw e=No,Fi=!1,No=null,e}function Ce(e,t){var i=t[oa];i===void 0&&(i=t[oa]=new Set);var o=e+"__bubble";i.has(o)||(Hc(t,e,2,!1),i.add(o))}function Jo(e,t,i){var o=0;t&&(o|=4),Hc(i,e,o,t)}var qi="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[qi]){e[qi]=!0,a.forEach(function(i){i!=="selectionchange"&&(ty.has(i)||Jo(i,!1,e),Jo(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qi]||(t[qi]=!0,Jo("selectionchange",!1,t))}}function Hc(e,t,i,o){switch(hc(t)){case 1:var l=mg;break;case 4:l=gg;break;default:l=Io}i=l.bind(null,t,i,e),l=void 0,!jo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,i,{capture:!0,passive:l}):e.addEventListener(t,i,!0):l!==void 0?e.addEventListener(t,i,{passive:l}):e.addEventListener(t,i,!1)}function ea(e,t,i,o,l){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var S=o.stateNode.containerInfo;if(S===l||S.nodeType===8&&S.parentNode===l)break;if(p===4)for(p=o.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;S!==null;){if(p=Nn(S),p===null)return;if(k=p.tag,k===5||k===6){o=c=p;continue e}S=S.parentNode}}o=o.return}Xu(function(){var j=c,F=Ao(i),V=[];e:{var R=Bc.get(e);if(R!==void 0){var H=Oo,$=e;switch(e){case"keypress":if(Gi(i)===0)break e;case"keydown":case"keyup":H=Dg;break;case"focusin":$="focus",H=Uo;break;case"focusout":$="blur",H=Uo;break;case"beforeblur":case"afterblur":H=Uo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Fg;break;case Ic:case _c:case zc:H=kg;break;case Oc:H=Ig;break;case"scroll":H=yg;break;case"wheel":H=zg;break;case"copy":case"cut":case"paste":H=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=vc}var Q=(t&4)!==0,_e=!Q&&e==="scroll",P=Q?R!==null?R+"Capture":null:R;Q=[];for(var T=j,E;T!==null;){E=T;var O=E.stateNode;if(E.tag===5&&O!==null&&(E=O,P!==null&&(O=Rr(T,P),O!=null&&Q.push(Zr(T,O,E)))),_e)break;T=T.return}0<Q.length&&(R=new H(R,$,null,i,F),V.push({event:R,listeners:Q}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",R&&i!==Co&&($=i.relatedTarget||i.fromElement)&&(Nn($)||$[Yt]))break e;if((H||R)&&(R=F.window===F?F:(R=F.ownerDocument)?R.defaultView||R.parentWindow:window,H?($=i.relatedTarget||i.toElement,H=j,$=$?Nn($):null,$!==null&&(_e=jn($),$!==_e||$.tag!==5&&$.tag!==6)&&($=null)):(H=null,$=j),H!==$)){if(Q=gc,O="onMouseLeave",P="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(Q=vc,O="onPointerLeave",P="onPointerEnter",T="pointer"),_e=H==null?R:rr(H),E=$==null?R:rr($),R=new Q(O,T+"leave",H,i,F),R.target=_e,R.relatedTarget=E,O=null,Nn(F)===j&&(Q=new Q(P,T+"enter",$,i,F),Q.target=E,Q.relatedTarget=_e,O=Q),_e=O,H&&$)t:{for(Q=H,P=$,T=0,E=Q;E;E=tr(E))T++;for(E=0,O=P;O;O=tr(O))E++;for(;0<T-E;)Q=tr(Q),T--;for(;0<E-T;)P=tr(P),E--;for(;T--;){if(Q===P||P!==null&&Q===P.alternate)break t;Q=tr(Q),P=tr(P)}Q=null}else Q=null;H!==null&&Gc(V,R,H,Q,!1),$!==null&&_e!==null&&Gc(V,_e,$,Q,!0)}}e:{if(R=j?rr(j):window,H=R.nodeName&&R.nodeName.toLowerCase(),H==="select"||H==="input"&&R.type==="file")var Z=Gg;else if(Cc(R))if(Pc)Z=Xg;else{Z=$g;var ee=Kg}else(H=R.nodeName)&&H.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(Z=Yg);if(Z&&(Z=Z(e,j))){Ac(V,Z,i,F);break e}ee&&ee(e,R,j),e==="focusout"&&(ee=R._wrapperState)&&ee.controlled&&R.type==="number"&&xo(R,"number",R.value)}switch(ee=j?rr(j):window,e){case"focusin":(Cc(ee)||ee.contentEditable==="true")&&(Jn=ee,Yo=j,Xr=null);break;case"focusout":Xr=Yo=Jn=null;break;case"mousedown":Xo=!0;break;case"contextmenu":case"mouseup":case"dragend":Xo=!1,Fc(V,i,F);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":Fc(V,i,F)}var te;if(Ho)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else Zn?kc(e,i)&&(ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ne="onCompositionStart");ne&&(xc&&i.locale!=="ko"&&(Zn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&Zn&&(te=pc()):(an=F,zo="value"in an?an.value:an.textContent,Zn=!0)),ee=Zi(j,ne),0<ee.length&&(ne=new yc(ne,e,null,i,F),V.push({event:ne,listeners:ee}),te?ne.data=te:(te=Tc(i),te!==null&&(ne.data=te)))),(te=Bg?bg(e,i):Ug(e,i))&&(j=Zi(j,"onBeforeInput"),0<j.length&&(F=new yc("onBeforeInput","beforeinput",null,i,F),V.push({event:F,listeners:j}),F.data=te))}Wc(V,t)})}function Zr(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Zi(e,t){for(var i=t+"Capture",o=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Rr(e,i),c!=null&&o.unshift(Zr(e,c,l)),c=Rr(e,t),c!=null&&o.push(Zr(e,c,l))),e=e.return}return o}function tr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gc(e,t,i,o,l){for(var c=t._reactName,p=[];i!==null&&i!==o;){var S=i,k=S.alternate,j=S.stateNode;if(k!==null&&k===o)break;S.tag===5&&j!==null&&(S=j,l?(k=Rr(i,c),k!=null&&p.unshift(Zr(i,k,S))):l||(k=Rr(i,c),k!=null&&p.push(Zr(i,k,S)))),i=i.return}p.length!==0&&e.push({event:t,listeners:p})}var ny=/\r\n?/g,ry=/\u0000|\uFFFD/g;function Kc(e){return(typeof e=="string"?e:""+e).replace(ny,`
|
||
`).replace(ry,"")}function Ji(e,t,i){if(t=Kc(t),Kc(e)!==t&&i)throw Error(s(425))}function es(){}var ta=null,na=null;function ra(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 ia=typeof setTimeout=="function"?setTimeout:void 0,iy=typeof clearTimeout=="function"?clearTimeout:void 0,$c=typeof Promise=="function"?Promise:void 0,sy=typeof queueMicrotask=="function"?queueMicrotask:typeof $c<"u"?function(e){return $c.resolve(null).then(e).catch(oy)}:ia;function oy(e){setTimeout(function(){throw e})}function sa(e,t){var i=t,o=0;do{var l=i.nextSibling;if(e.removeChild(i),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(o===0){e.removeChild(l),Ur(t);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=l}while(i);Ur(t)}function un(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 Yc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var nr=Math.random().toString(36).slice(2),zt="__reactFiber$"+nr,Jr="__reactProps$"+nr,Yt="__reactContainer$"+nr,oa="__reactEvents$"+nr,ay="__reactListeners$"+nr,ly="__reactHandles$"+nr;function Nn(e){var t=e[zt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Yt]||i[zt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Yc(e);e!==null;){if(i=e[zt])return i;e=Yc(e)}return t}e=i,i=e.parentNode}return null}function ei(e){return e=e[zt]||e[Yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function ts(e){return e[Jr]||null}var aa=[],ir=-1;function cn(e){return{current:e}}function Ae(e){0>ir||(e.current=aa[ir],aa[ir]=null,ir--)}function ke(e,t){ir++,aa[ir]=e.current,e.current=t}var dn={},qe=cn(dn),st=cn(!1),Mn=dn;function sr(e,t){var i=e.type.contextTypes;if(!i)return dn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in i)l[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ot(e){return e=e.childContextTypes,e!=null}function ns(){Ae(st),Ae(qe)}function Xc(e,t,i){if(qe.current!==dn)throw Error(s(168));ke(qe,t),ke(st,i)}function Qc(e,t,i){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return i;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(s(108,Se(e)||"Unknown",l));return W({},i,o)}function rs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,Mn=qe.current,ke(qe,e),ke(st,st.current),!0}function qc(e,t,i){var o=e.stateNode;if(!o)throw Error(s(169));i?(e=Qc(e,t,Mn),o.__reactInternalMemoizedMergedChildContext=e,Ae(st),Ae(qe),ke(qe,e)):Ae(st),ke(st,i)}var Xt=null,is=!1,la=!1;function Zc(e){Xt===null?Xt=[e]:Xt.push(e)}function uy(e){is=!0,Zc(e)}function fn(){if(!la&&Xt!==null){la=!0;var e=0,t=ve;try{var i=Xt;for(ve=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}Xt=null,is=!1}catch(l){throw Xt!==null&&(Xt=Xt.slice(e+1)),ec(Mo,fn),l}finally{ve=t,la=!1}}return null}var or=[],ar=0,ss=null,os=0,yt=[],vt=0,Dn=null,Qt=1,qt="";function Ln(e,t){or[ar++]=os,or[ar++]=ss,ss=e,os=t}function Jc(e,t,i){yt[vt++]=Qt,yt[vt++]=qt,yt[vt++]=Dn,Dn=e;var o=Qt;e=qt;var l=32-Pt(o)-1;o&=~(1<<l),i+=1;var c=32-Pt(t)+l;if(30<c){var p=l-l%5;c=(o&(1<<p)-1).toString(32),o>>=p,l-=p,Qt=1<<32-Pt(t)+l|i<<l|o,qt=c+e}else Qt=1<<c|i<<l|o,qt=e}function ua(e){e.return!==null&&(Ln(e,1),Jc(e,1,0))}function ca(e){for(;e===ss;)ss=or[--ar],or[ar]=null,os=or[--ar],or[ar]=null;for(;e===Dn;)Dn=yt[--vt],yt[vt]=null,qt=yt[--vt],yt[vt]=null,Qt=yt[--vt],yt[vt]=null}var ht=null,pt=null,je=!1,jt=null;function ed(e,t){var i=kt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function td(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,pt=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Dn!==null?{id:Qt,overflow:qt}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=kt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,ht=e,pt=null,!0):!1;default:return!1}}function da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function fa(e){if(je){var t=pt;if(t){var i=t;if(!td(e,t)){if(da(e))throw Error(s(418));t=un(i.nextSibling);var o=ht;t&&td(e,t)?ed(o,i):(e.flags=e.flags&-4097|2,je=!1,ht=e)}}else{if(da(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,ht=e}}}function nd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function as(e){if(e!==ht)return!1;if(!je)return nd(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ra(e.type,e.memoizedProps)),t&&(t=pt)){if(da(e))throw rd(),Error(s(418));for(;t;)ed(e,t),t=un(t.nextSibling)}if(nd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){pt=un(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=ht?un(e.stateNode.nextSibling):null;return!0}function rd(){for(var e=pt;e;)e=un(e.nextSibling)}function lr(){pt=ht=null,je=!1}function ha(e){jt===null?jt=[e]:jt.push(e)}var cy=b.ReactCurrentBatchConfig;function ti(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(s(309));var o=i.stateNode}if(!o)throw Error(s(147,e));var l=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(p){var S=l.refs;p===null?delete S[c]:S[c]=p},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!i._owner)throw Error(s(290,e))}return e}function ls(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function id(e){var t=e._init;return t(e._payload)}function sd(e){function t(P,T){if(e){var E=P.deletions;E===null?(P.deletions=[T],P.flags|=16):E.push(T)}}function i(P,T){if(!e)return null;for(;T!==null;)t(P,T),T=T.sibling;return null}function o(P,T){for(P=new Map;T!==null;)T.key!==null?P.set(T.key,T):P.set(T.index,T),T=T.sibling;return P}function l(P,T){return P=wn(P,T),P.index=0,P.sibling=null,P}function c(P,T,E){return P.index=E,e?(E=P.alternate,E!==null?(E=E.index,E<T?(P.flags|=2,T):E):(P.flags|=2,T)):(P.flags|=1048576,T)}function p(P){return e&&P.alternate===null&&(P.flags|=2),P}function S(P,T,E,O){return T===null||T.tag!==6?(T=il(E,P.mode,O),T.return=P,T):(T=l(T,E),T.return=P,T)}function k(P,T,E,O){var Z=E.type;return Z===ae?F(P,T,E.props.children,O,E.key):T!==null&&(T.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Te&&id(Z)===T.type)?(O=l(T,E.props),O.ref=ti(P,T,E),O.return=P,O):(O=Ls(E.type,E.key,E.props,null,P.mode,O),O.ref=ti(P,T,E),O.return=P,O)}function j(P,T,E,O){return T===null||T.tag!==4||T.stateNode.containerInfo!==E.containerInfo||T.stateNode.implementation!==E.implementation?(T=sl(E,P.mode,O),T.return=P,T):(T=l(T,E.children||[]),T.return=P,T)}function F(P,T,E,O,Z){return T===null||T.tag!==7?(T=Bn(E,P.mode,O,Z),T.return=P,T):(T=l(T,E),T.return=P,T)}function V(P,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return T=il(""+T,P.mode,E),T.return=P,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case G:return E=Ls(T.type,T.key,T.props,null,P.mode,E),E.ref=ti(P,null,T),E.return=P,E;case ie:return T=sl(T,P.mode,E),T.return=P,T;case Te:var O=T._init;return V(P,O(T._payload),E)}if(Mr(T)||X(T))return T=Bn(T,P.mode,E,null),T.return=P,T;ls(P,T)}return null}function R(P,T,E,O){var Z=T!==null?T.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return Z!==null?null:S(P,T,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case G:return E.key===Z?k(P,T,E,O):null;case ie:return E.key===Z?j(P,T,E,O):null;case Te:return Z=E._init,R(P,T,Z(E._payload),O)}if(Mr(E)||X(E))return Z!==null?null:F(P,T,E,O,null);ls(P,E)}return null}function H(P,T,E,O,Z){if(typeof O=="string"&&O!==""||typeof O=="number")return P=P.get(E)||null,S(T,P,""+O,Z);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case G:return P=P.get(O.key===null?E:O.key)||null,k(T,P,O,Z);case ie:return P=P.get(O.key===null?E:O.key)||null,j(T,P,O,Z);case Te:var ee=O._init;return H(P,T,E,ee(O._payload),Z)}if(Mr(O)||X(O))return P=P.get(E)||null,F(T,P,O,Z,null);ls(T,O)}return null}function $(P,T,E,O){for(var Z=null,ee=null,te=T,ne=T=0,Ke=null;te!==null&&ne<E.length;ne++){te.index>ne?(Ke=te,te=null):Ke=te.sibling;var me=R(P,te,E[ne],O);if(me===null){te===null&&(te=Ke);break}e&&te&&me.alternate===null&&t(P,te),T=c(me,T,ne),ee===null?Z=me:ee.sibling=me,ee=me,te=Ke}if(ne===E.length)return i(P,te),je&&Ln(P,ne),Z;if(te===null){for(;ne<E.length;ne++)te=V(P,E[ne],O),te!==null&&(T=c(te,T,ne),ee===null?Z=te:ee.sibling=te,ee=te);return je&&Ln(P,ne),Z}for(te=o(P,te);ne<E.length;ne++)Ke=H(te,P,ne,E[ne],O),Ke!==null&&(e&&Ke.alternate!==null&&te.delete(Ke.key===null?ne:Ke.key),T=c(Ke,T,ne),ee===null?Z=Ke:ee.sibling=Ke,ee=Ke);return e&&te.forEach(function(Sn){return t(P,Sn)}),je&&Ln(P,ne),Z}function Q(P,T,E,O){var Z=X(E);if(typeof Z!="function")throw Error(s(150));if(E=Z.call(E),E==null)throw Error(s(151));for(var ee=Z=null,te=T,ne=T=0,Ke=null,me=E.next();te!==null&&!me.done;ne++,me=E.next()){te.index>ne?(Ke=te,te=null):Ke=te.sibling;var Sn=R(P,te,me.value,O);if(Sn===null){te===null&&(te=Ke);break}e&&te&&Sn.alternate===null&&t(P,te),T=c(Sn,T,ne),ee===null?Z=Sn:ee.sibling=Sn,ee=Sn,te=Ke}if(me.done)return i(P,te),je&&Ln(P,ne),Z;if(te===null){for(;!me.done;ne++,me=E.next())me=V(P,me.value,O),me!==null&&(T=c(me,T,ne),ee===null?Z=me:ee.sibling=me,ee=me);return je&&Ln(P,ne),Z}for(te=o(P,te);!me.done;ne++,me=E.next())me=H(te,P,ne,me.value,O),me!==null&&(e&&me.alternate!==null&&te.delete(me.key===null?ne:me.key),T=c(me,T,ne),ee===null?Z=me:ee.sibling=me,ee=me);return e&&te.forEach(function(Wy){return t(P,Wy)}),je&&Ln(P,ne),Z}function _e(P,T,E,O){if(typeof E=="object"&&E!==null&&E.type===ae&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case G:e:{for(var Z=E.key,ee=T;ee!==null;){if(ee.key===Z){if(Z=E.type,Z===ae){if(ee.tag===7){i(P,ee.sibling),T=l(ee,E.props.children),T.return=P,P=T;break e}}else if(ee.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Te&&id(Z)===ee.type){i(P,ee.sibling),T=l(ee,E.props),T.ref=ti(P,ee,E),T.return=P,P=T;break e}i(P,ee);break}else t(P,ee);ee=ee.sibling}E.type===ae?(T=Bn(E.props.children,P.mode,O,E.key),T.return=P,P=T):(O=Ls(E.type,E.key,E.props,null,P.mode,O),O.ref=ti(P,T,E),O.return=P,P=O)}return p(P);case ie:e:{for(ee=E.key;T!==null;){if(T.key===ee)if(T.tag===4&&T.stateNode.containerInfo===E.containerInfo&&T.stateNode.implementation===E.implementation){i(P,T.sibling),T=l(T,E.children||[]),T.return=P,P=T;break e}else{i(P,T);break}else t(P,T);T=T.sibling}T=sl(E,P.mode,O),T.return=P,P=T}return p(P);case Te:return ee=E._init,_e(P,T,ee(E._payload),O)}if(Mr(E))return $(P,T,E,O);if(X(E))return Q(P,T,E,O);ls(P,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,T!==null&&T.tag===6?(i(P,T.sibling),T=l(T,E),T.return=P,P=T):(i(P,T),T=il(E,P.mode,O),T.return=P,P=T),p(P)):i(P,T)}return _e}var ur=sd(!0),od=sd(!1),us=cn(null),cs=null,cr=null,pa=null;function ma(){pa=cr=cs=null}function ga(e){var t=us.current;Ae(us),e._currentValue=t}function ya(e,t,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===i)break;e=e.return}}function dr(e,t){cs=e,pa=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(at=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(cs===null)throw Error(s(308));cr=e,cs.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var Rn=null;function va(e){Rn===null?Rn=[e]:Rn.push(e)}function ad(e,t,i,o){var l=t.interleaved;return l===null?(i.next=i,va(t)):(i.next=l.next,l.next=i),t.interleaved=i,Zt(e,o)}function Zt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var hn=!1;function xa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ld(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(de&2)!==0){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,Zt(e,i)}return l=o.interleaved,l===null?(t.next=t,va(o)):(t.next=l.next,l.next=t),o.interleaved=t,Zt(e,i)}function ds(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Ro(e,i)}}function ud(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var l=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var p={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?l=c=p:c=c.next=p,i=i.next}while(i!==null);c===null?l=c=t:c=c.next=t}else l=c=t;i={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function fs(e,t,i,o){var l=e.updateQueue;hn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,S=l.shared.pending;if(S!==null){l.shared.pending=null;var k=S,j=k.next;k.next=null,p===null?c=j:p.next=j,p=k;var F=e.alternate;F!==null&&(F=F.updateQueue,S=F.lastBaseUpdate,S!==p&&(S===null?F.firstBaseUpdate=j:S.next=j,F.lastBaseUpdate=k))}if(c!==null){var V=l.baseState;p=0,F=j=k=null,S=c;do{var R=S.lane,H=S.eventTime;if((o&R)===R){F!==null&&(F=F.next={eventTime:H,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var $=e,Q=S;switch(R=t,H=i,Q.tag){case 1:if($=Q.payload,typeof $=="function"){V=$.call(H,V,R);break e}V=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=Q.payload,R=typeof $=="function"?$.call(H,V,R):$,R==null)break e;V=W({},V,R);break e;case 2:hn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[S]:R.push(S))}else H={eventTime:H,lane:R,tag:S.tag,payload:S.payload,callback:S.callback,next:null},F===null?(j=F=H,k=V):F=F.next=H,p|=R;if(S=S.next,S===null){if(S=l.shared.pending,S===null)break;R=S,S=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(F===null&&(k=V),l.baseState=k,l.firstBaseUpdate=j,l.lastBaseUpdate=F,t=l.shared.interleaved,t!==null){l=t;do p|=l.lane,l=l.next;while(l!==t)}else c===null&&(l.shared.lanes=0);In|=p,e.lanes=p,e.memoizedState=V}}function cd(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=i,typeof l!="function")throw Error(s(191,l));l.call(o)}}}var ni={},Ot=cn(ni),ri=cn(ni),ii=cn(ni);function Fn(e){if(e===ni)throw Error(s(174));return e}function wa(e,t){switch(ke(ii,t),ke(ri,e),ke(Ot,ni),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:So(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=So(t,e)}Ae(Ot),ke(Ot,t)}function fr(){Ae(Ot),Ae(ri),Ae(ii)}function dd(e){Fn(ii.current);var t=Fn(Ot.current),i=So(t,e.type);t!==i&&(ke(ri,e),ke(Ot,i))}function Sa(e){ri.current===e&&(Ae(Ot),Ae(ri))}var De=cn(0);function hs(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 ka=[];function Ta(){for(var e=0;e<ka.length;e++)ka[e]._workInProgressVersionPrimary=null;ka.length=0}var ps=b.ReactCurrentDispatcher,Ca=b.ReactCurrentBatchConfig,Vn=0,Le=null,be=null,He=null,ms=!1,si=!1,oi=0,dy=0;function Ze(){throw Error(s(321))}function Aa(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Et(e[i],t[i]))return!1;return!0}function Pa(e,t,i,o,l,c){if(Vn=c,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ps.current=e===null||e.memoizedState===null?my:gy,e=i(o,l),si){c=0;do{if(si=!1,oi=0,25<=c)throw Error(s(301));c+=1,He=be=null,t.updateQueue=null,ps.current=yy,e=i(o,l)}while(si)}if(ps.current=vs,t=be!==null&&be.next!==null,Vn=0,He=be=Le=null,ms=!1,t)throw Error(s(300));return e}function Ea(){var e=oi!==0;return oi=0,e}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Le.memoizedState=He=e:He=He.next=e,He}function wt(){if(be===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=He===null?Le.memoizedState:He.next;if(t!==null)He=t,be=e;else{if(e===null)throw Error(s(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},He===null?Le.memoizedState=He=e:He=He.next=e}return He}function ai(e,t){return typeof t=="function"?t(e):t}function ja(e){var t=wt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=be,l=o.baseQueue,c=i.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}o.baseQueue=l=c,i.pending=null}if(l!==null){c=l.next,o=o.baseState;var S=p=null,k=null,j=c;do{var F=j.lane;if((Vn&F)===F)k!==null&&(k=k.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),o=j.hasEagerState?j.eagerState:e(o,j.action);else{var V={lane:F,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};k===null?(S=k=V,p=o):k=k.next=V,Le.lanes|=F,In|=F}j=j.next}while(j!==null&&j!==c);k===null?p=o:k.next=S,Et(o,t.memoizedState)||(at=!0),t.memoizedState=o,t.baseState=p,t.baseQueue=k,i.lastRenderedState=o}if(e=i.interleaved,e!==null){l=e;do c=l.lane,Le.lanes|=c,In|=c,l=l.next;while(l!==e)}else l===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function Na(e){var t=wt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=i.dispatch,l=i.pending,c=t.memoizedState;if(l!==null){i.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);Et(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,o]}function fd(){}function hd(e,t){var i=Le,o=wt(),l=t(),c=!Et(o.memoizedState,l);if(c&&(o.memoizedState=l,at=!0),o=o.queue,Ma(gd.bind(null,i,o,e),[e]),o.getSnapshot!==t||c||He!==null&&He.memoizedState.tag&1){if(i.flags|=2048,li(9,md.bind(null,i,o,l,t),void 0,null),Ge===null)throw Error(s(349));(Vn&30)!==0||pd(i,t,l)}return l}function pd(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function md(e,t,i,o){t.value=i,t.getSnapshot=o,yd(t)&&vd(e)}function gd(e,t,i){return i(function(){yd(t)&&vd(e)})}function yd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Et(e,i)}catch{return!0}}function vd(e){var t=Zt(e,1);t!==null&&Lt(t,e,1,-1)}function xd(e){var t=Bt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:e},t.queue=e,e=e.dispatch=py.bind(null,Le,e),[t.memoizedState,e]}function li(e,t,i,o){return e={tag:e,create:t,destroy:i,deps:o,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,t.lastEffect=e)),e}function wd(){return wt().memoizedState}function gs(e,t,i,o){var l=Bt();Le.flags|=e,l.memoizedState=li(1|t,i,void 0,o===void 0?null:o)}function ys(e,t,i,o){var l=wt();o=o===void 0?null:o;var c=void 0;if(be!==null){var p=be.memoizedState;if(c=p.destroy,o!==null&&Aa(o,p.deps)){l.memoizedState=li(t,i,c,o);return}}Le.flags|=e,l.memoizedState=li(1|t,i,c,o)}function Sd(e,t){return gs(8390656,8,e,t)}function Ma(e,t){return ys(2048,8,e,t)}function kd(e,t){return ys(4,2,e,t)}function Td(e,t){return ys(4,4,e,t)}function Cd(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 Ad(e,t,i){return i=i!=null?i.concat([e]):null,ys(4,4,Cd.bind(null,t,e),i)}function Da(){}function Pd(e,t){var i=wt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Aa(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function Ed(e,t){var i=wt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Aa(t,o[1])?o[0]:(e=e(),i.memoizedState=[e,t],e)}function jd(e,t,i){return(Vn&21)===0?(e.baseState&&(e.baseState=!1,at=!0),e.memoizedState=i):(Et(i,t)||(i=ic(),Le.lanes|=i,In|=i,e.baseState=!0),t)}function fy(e,t){var i=ve;ve=i!==0&&4>i?i:4,e(!0);var o=Ca.transition;Ca.transition={};try{e(!1),t()}finally{ve=i,Ca.transition=o}}function Nd(){return wt().memoizedState}function hy(e,t,i){var o=vn(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},Md(e))Dd(t,i);else if(i=ad(e,t,i,o),i!==null){var l=nt();Lt(i,e,o,l),Ld(i,t,o)}}function py(e,t,i){var o=vn(e),l={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(Md(e))Dd(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,S=c(p,i);if(l.hasEagerState=!0,l.eagerState=S,Et(S,p)){var k=t.interleaved;k===null?(l.next=l,va(t)):(l.next=k.next,k.next=l),t.interleaved=l;return}}catch{}finally{}i=ad(e,t,l,o),i!==null&&(l=nt(),Lt(i,e,o,l),Ld(i,t,o))}}function Md(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Dd(e,t){si=ms=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Ld(e,t,i){if((i&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Ro(e,i)}}var vs={readContext:xt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},my={readContext:xt,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Sd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,gs(4194308,4,Cd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return gs(4,2,e,t)},useMemo:function(e,t){var i=Bt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var o=Bt();return t=i!==void 0?i(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=hy.bind(null,Le,e),[o.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:xd,useDebugValue:Da,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=xd(!1),t=e[0];return e=fy.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var o=Le,l=Bt();if(je){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ge===null)throw Error(s(349));(Vn&30)!==0||pd(o,t,i)}l.memoizedState=i;var c={value:i,getSnapshot:t};return l.queue=c,Sd(gd.bind(null,o,c,e),[e]),o.flags|=2048,li(9,md.bind(null,o,c,i,t),void 0,null),i},useId:function(){var e=Bt(),t=Ge.identifierPrefix;if(je){var i=qt,o=Qt;i=(o&~(1<<32-Pt(o)-1)).toString(32)+i,t=":"+t+"R"+i,i=oi++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=dy++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gy={readContext:xt,useCallback:Pd,useContext:xt,useEffect:Ma,useImperativeHandle:Ad,useInsertionEffect:kd,useLayoutEffect:Td,useMemo:Ed,useReducer:ja,useRef:wd,useState:function(){return ja(ai)},useDebugValue:Da,useDeferredValue:function(e){var t=wt();return jd(t,be.memoizedState,e)},useTransition:function(){var e=ja(ai)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fd,useSyncExternalStore:hd,useId:Nd,unstable_isNewReconciler:!1},yy={readContext:xt,useCallback:Pd,useContext:xt,useEffect:Ma,useImperativeHandle:Ad,useInsertionEffect:kd,useLayoutEffect:Td,useMemo:Ed,useReducer:Na,useRef:wd,useState:function(){return Na(ai)},useDebugValue:Da,useDeferredValue:function(e){var t=wt();return be===null?t.memoizedState=e:jd(t,be.memoizedState,e)},useTransition:function(){var e=Na(ai)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fd,useSyncExternalStore:hd,useId:Nd,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function La(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:W({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var xs={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var o=nt(),l=vn(e),c=Jt(o,l);c.payload=t,i!=null&&(c.callback=i),t=pn(e,c,l),t!==null&&(Lt(t,e,l,o),ds(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=nt(),l=vn(e),c=Jt(o,l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=pn(e,c,l),t!==null&&(Lt(t,e,l,o),ds(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=nt(),o=vn(e),l=Jt(i,o);l.tag=2,t!=null&&(l.callback=t),t=pn(e,l,o),t!==null&&(Lt(t,e,o,i),ds(t,e,o))}};function Rd(e,t,i,o,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,p):t.prototype&&t.prototype.isPureReactComponent?!Yr(i,o)||!Yr(l,c):!0}function Fd(e,t,i){var o=!1,l=dn,c=t.contextType;return typeof c=="object"&&c!==null?c=xt(c):(l=ot(t)?Mn:qe.current,o=t.contextTypes,c=(o=o!=null)?sr(e,l):dn),t=new t(i,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),t}function Vd(e,t,i,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function Ra(e,t,i,o){var l=e.stateNode;l.props=i,l.state=e.memoizedState,l.refs={},xa(e);var c=t.contextType;typeof c=="object"&&c!==null?l.context=xt(c):(c=ot(t)?Mn:qe.current,l.context=sr(e,c)),l.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(La(e,t,c,i),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&xs.enqueueReplaceState(l,l.state,null),fs(e,i,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function hr(e,t){try{var i="",o=t;do i+=he(o),o=o.return;while(o);var l=i}catch(c){l=`
|
||
Error generating stack: `+c.message+`
|
||
`+c.stack}return{value:e,source:t,stack:l,digest:null}}function Fa(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function Va(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var vy=typeof WeakMap=="function"?WeakMap:Map;function Id(e,t,i){i=Jt(-1,i),i.tag=3,i.payload={element:null};var o=t.value;return i.callback=function(){Ps||(Ps=!0,Qa=o),Va(e,t)},i}function _d(e,t,i){i=Jt(-1,i),i.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;i.payload=function(){return o(l)},i.callback=function(){Va(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Va(e,t),typeof o!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),i}function zd(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new vy;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(i)||(l.add(i),e=Ly.bind(null,e,t,i),t.then(e,e))}function Od(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 Bd(e,t,i,o,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Jt(-1,1),t.tag=2,pn(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var xy=b.ReactCurrentOwner,at=!1;function tt(e,t,i,o){t.child=e===null?od(t,null,i,o):ur(t,e.child,i,o)}function bd(e,t,i,o,l){i=i.render;var c=t.ref;return dr(t,l),o=Pa(e,t,i,o,c,l),i=Ea(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,en(e,t,l)):(je&&i&&ua(t),t.flags|=1,tt(e,t,o,l),t.child)}function Ud(e,t,i,o,l){if(e===null){var c=i.type;return typeof c=="function"&&!rl(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=c,Wd(e,t,c,o,l)):(e=Ls(i.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(i=i.compare,i=i!==null?i:Yr,i(p,o)&&e.ref===t.ref)return en(e,t,l)}return t.flags|=1,e=wn(c,o),e.ref=t.ref,e.return=t,t.child=e}function Wd(e,t,i,o,l){if(e!==null){var c=e.memoizedProps;if(Yr(c,o)&&e.ref===t.ref)if(at=!1,t.pendingProps=o=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,en(e,t,l)}return Ia(e,t,i,o,l)}function Hd(e,t,i){var o=t.pendingProps,l=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(mr,mt),mt|=i;else{if((i&1073741824)===0)return e=c!==null?c.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(mr,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:i,ke(mr,mt),mt|=o}else c!==null?(o=c.baseLanes|i,t.memoizedState=null):o=i,ke(mr,mt),mt|=o;return tt(e,t,l,i),t.child}function Gd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Ia(e,t,i,o,l){var c=ot(i)?Mn:qe.current;return c=sr(t,c),dr(t,l),i=Pa(e,t,i,o,c,l),o=Ea(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,en(e,t,l)):(je&&o&&ua(t),t.flags|=1,tt(e,t,i,l),t.child)}function Kd(e,t,i,o,l){if(ot(i)){var c=!0;rs(t)}else c=!1;if(dr(t,l),t.stateNode===null)Ss(e,t),Fd(t,i,o),Ra(t,i,o,l),o=!0;else if(e===null){var p=t.stateNode,S=t.memoizedProps;p.props=S;var k=p.context,j=i.contextType;typeof j=="object"&&j!==null?j=xt(j):(j=ot(i)?Mn:qe.current,j=sr(t,j));var F=i.getDerivedStateFromProps,V=typeof F=="function"||typeof p.getSnapshotBeforeUpdate=="function";V||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==o||k!==j)&&Vd(t,p,o,j),hn=!1;var R=t.memoizedState;p.state=R,fs(t,o,p,l),k=t.memoizedState,S!==o||R!==k||st.current||hn?(typeof F=="function"&&(La(t,i,F,o),k=t.memoizedState),(S=hn||Rd(t,i,S,o,R,k,j))?(V||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=k),p.props=o,p.state=k,p.context=j,o=S):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,ld(e,t),S=t.memoizedProps,j=t.type===t.elementType?S:Nt(t.type,S),p.props=j,V=t.pendingProps,R=p.context,k=i.contextType,typeof k=="object"&&k!==null?k=xt(k):(k=ot(i)?Mn:qe.current,k=sr(t,k));var H=i.getDerivedStateFromProps;(F=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==V||R!==k)&&Vd(t,p,o,k),hn=!1,R=t.memoizedState,p.state=R,fs(t,o,p,l);var $=t.memoizedState;S!==V||R!==$||st.current||hn?(typeof H=="function"&&(La(t,i,H,o),$=t.memoizedState),(j=hn||Rd(t,i,j,o,R,$,k)||!1)?(F||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,$,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,$,k)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=$),p.props=o,p.state=$,p.context=k,o=j):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),o=!1)}return _a(e,t,i,o,c,l)}function _a(e,t,i,o,l,c){Gd(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return l&&qc(t,i,!1),en(e,t,c);o=t.stateNode,xy.current=t;var S=p&&typeof i.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=ur(t,e.child,null,c),t.child=ur(t,null,S,c)):tt(e,t,S,c),t.memoizedState=o.state,l&&qc(t,i,!0),t.child}function $d(e){var t=e.stateNode;t.pendingContext?Xc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xc(e,t.context,!1),wa(e,t.containerInfo)}function Yd(e,t,i,o,l){return lr(),ha(l),t.flags|=256,tt(e,t,i,o),t.child}var za={dehydrated:null,treeContext:null,retryLane:0};function Oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xd(e,t,i){var o=t.pendingProps,l=De.current,c=!1,p=(t.flags&128)!==0,S;if((S=p)||(S=e!==null&&e.memoizedState===null?!1:(l&2)!==0),S?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ke(De,l&1),e===null)return fa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(p=o.children,e=o.fallback,c?(o=t.mode,c=t.child,p={mode:"hidden",children:p},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Rs(p,o,0,null),e=Bn(e,o,i,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Oa(i),t.memoizedState=za,e):Ba(t,p));if(l=e.memoizedState,l!==null&&(S=l.dehydrated,S!==null))return wy(e,t,p,o,S,l,i);if(c){c=o.fallback,p=t.mode,l=e.child,S=l.sibling;var k={mode:"hidden",children:o.children};return(p&1)===0&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=k,t.deletions=null):(o=wn(l,k),o.subtreeFlags=l.subtreeFlags&14680064),S!==null?c=wn(S,c):(c=Bn(c,p,i,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,p=e.child.memoizedState,p=p===null?Oa(i):{baseLanes:p.baseLanes|i,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~i,t.memoizedState=za,o}return c=e.child,e=c.sibling,o=wn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=i),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function Ba(e,t){return t=Rs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ws(e,t,i,o){return o!==null&&ha(o),ur(t,e.child,null,i),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wy(e,t,i,o,l,c,p){if(i)return t.flags&256?(t.flags&=-257,o=Fa(Error(s(422))),ws(e,t,p,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,l=t.mode,o=Rs({mode:"visible",children:o.children},l,0,null),c=Bn(c,l,p,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&ur(t,e.child,null,p),t.child.memoizedState=Oa(p),t.memoizedState=za,c);if((t.mode&1)===0)return ws(e,t,p,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var S=o.dgst;return o=S,c=Error(s(419)),o=Fa(c,o,void 0),ws(e,t,p,o)}if(S=(p&e.childLanes)!==0,at||S){if(o=Ge,o!==null){switch(p&-p){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(o.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,Zt(e,l),Lt(o,e,l,-1))}return nl(),o=Fa(Error(s(421))),ws(e,t,p,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ry.bind(null,e),l._reactRetry=t,null):(e=c.treeContext,pt=un(l.nextSibling),ht=t,je=!0,jt=null,e!==null&&(yt[vt++]=Qt,yt[vt++]=qt,yt[vt++]=Dn,Qt=e.id,qt=e.overflow,Dn=t),t=Ba(t,o.children),t.flags|=4096,t)}function Qd(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ya(e.return,t,i)}function ba(e,t,i,o,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:l}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=i,c.tailMode=l)}function qd(e,t,i){var o=t.pendingProps,l=o.revealOrder,c=o.tail;if(tt(e,t,o.children,i),o=De.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qd(e,i,t);else if(e.tag===19)Qd(e,i,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}o&=1}if(ke(De,o),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(i=t.child,l=null;i!==null;)e=i.alternate,e!==null&&hs(e)===null&&(l=i),i=i.sibling;i=l,i===null?(l=t.child,t.child=null):(l=i.sibling,i.sibling=null),ba(t,!1,l,i,c);break;case"backwards":for(i=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&hs(e)===null){t.child=l;break}e=l.sibling,l.sibling=i,i=l,l=e}ba(t,!0,i,null,c);break;case"together":ba(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ss(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function en(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=wn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=wn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Sy(e,t,i){switch(t.tag){case 3:$d(t),lr();break;case 5:dd(t);break;case 1:ot(t.type)&&rs(t);break;case 4:wa(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;ke(us,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ke(De,De.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?Xd(e,t,i):(ke(De,De.current&1),e=en(e,t,i),e!==null?e.sibling:null);ke(De,De.current&1);break;case 19:if(o=(i&t.childLanes)!==0,(e.flags&128)!==0){if(o)return qd(e,t,i);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ke(De,De.current),o)break;return null;case 22:case 23:return t.lanes=0,Hd(e,t,i)}return en(e,t,i)}var Zd,Ua,Jd,ef;Zd=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Ua=function(){},Jd=function(e,t,i,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Fn(Ot.current);var c=null;switch(i){case"input":l=yo(e,l),o=yo(e,o),c=[];break;case"select":l=W({},l,{value:void 0}),o=W({},o,{value:void 0}),c=[];break;case"textarea":l=wo(e,l),o=wo(e,o),c=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=es)}ko(i,o);var p;i=null;for(j in l)if(!o.hasOwnProperty(j)&&l.hasOwnProperty(j)&&l[j]!=null)if(j==="style"){var S=l[j];for(p in S)S.hasOwnProperty(p)&&(i||(i={}),i[p]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(u.hasOwnProperty(j)?c||(c=[]):(c=c||[]).push(j,null));for(j in o){var k=o[j];if(S=l!=null?l[j]:void 0,o.hasOwnProperty(j)&&k!==S&&(k!=null||S!=null))if(j==="style")if(S){for(p in S)!S.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(i||(i={}),i[p]="");for(p in k)k.hasOwnProperty(p)&&S[p]!==k[p]&&(i||(i={}),i[p]=k[p])}else i||(c||(c=[]),c.push(j,i)),i=k;else j==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,S=S?S.__html:void 0,k!=null&&S!==k&&(c=c||[]).push(j,k)):j==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(j,""+k):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(u.hasOwnProperty(j)?(k!=null&&j==="onScroll"&&Ce("scroll",e),c||S===k||(c=[])):(c=c||[]).push(j,k))}i&&(c=c||[]).push("style",i);var j=c;(t.updateQueue=j)&&(t.flags|=4)}},ef=function(e,t,i,o){i!==o&&(t.flags|=4)};function ui(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(t)for(var l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=i,t}function ky(e,t,i){var o=t.pendingProps;switch(ca(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return ot(t.type)&&ns(),Je(t),null;case 3:return o=t.stateNode,fr(),Ae(st),Ae(qe),Ta(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(as(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jt!==null&&(Ja(jt),jt=null))),Ua(e,t),Je(t),null;case 5:Sa(t);var l=Fn(ii.current);if(i=t.type,e!==null&&t.stateNode!=null)Jd(e,t,i,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Je(t),null}if(e=Fn(Ot.current),as(t)){o=t.stateNode,i=t.type;var c=t.memoizedProps;switch(o[zt]=t,o[Jr]=c,e=(t.mode&1)!==0,i){case"dialog":Ce("cancel",o),Ce("close",o);break;case"iframe":case"object":case"embed":Ce("load",o);break;case"video":case"audio":for(l=0;l<Qr.length;l++)Ce(Qr[l],o);break;case"source":Ce("error",o);break;case"img":case"image":case"link":Ce("error",o),Ce("load",o);break;case"details":Ce("toggle",o);break;case"input":Fu(o,c),Ce("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},Ce("invalid",o);break;case"textarea":_u(o,c),Ce("invalid",o)}ko(i,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var S=c[p];p==="children"?typeof S=="string"?o.textContent!==S&&(c.suppressHydrationWarning!==!0&&Ji(o.textContent,S,e),l=["children",S]):typeof S=="number"&&o.textContent!==""+S&&(c.suppressHydrationWarning!==!0&&Ji(o.textContent,S,e),l=["children",""+S]):u.hasOwnProperty(p)&&S!=null&&p==="onScroll"&&Ce("scroll",o)}switch(i){case"input":Mi(o),Iu(o,c,!0);break;case"textarea":Mi(o),Ou(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=es)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Bu(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=p.createElement(i,{is:o.is}):(e=p.createElement(i),i==="select"&&(p=e,o.multiple?p.multiple=!0:o.size&&(p.size=o.size))):e=p.createElementNS(e,i),e[zt]=t,e[Jr]=o,Zd(e,t,!1,!1),t.stateNode=e;e:{switch(p=To(i,o),i){case"dialog":Ce("cancel",e),Ce("close",e),l=o;break;case"iframe":case"object":case"embed":Ce("load",e),l=o;break;case"video":case"audio":for(l=0;l<Qr.length;l++)Ce(Qr[l],e);l=o;break;case"source":Ce("error",e),l=o;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),l=o;break;case"details":Ce("toggle",e),l=o;break;case"input":Fu(e,o),l=yo(e,o),Ce("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=W({},o,{value:void 0}),Ce("invalid",e);break;case"textarea":_u(e,o),l=wo(e,o),Ce("invalid",e);break;default:l=o}ko(i,l),S=l;for(c in S)if(S.hasOwnProperty(c)){var k=S[c];c==="style"?Wu(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&bu(e,k)):c==="children"?typeof k=="string"?(i!=="textarea"||k!=="")&&Dr(e,k):typeof k=="number"&&Dr(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&Ce("scroll",e):k!=null&&B(e,c,k,p))}switch(i){case"input":Mi(e),Iu(e,o,!1);break;case"textarea":Mi(e),Ou(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ye(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?$n(e,!!o.multiple,c,!1):o.defaultValue!=null&&$n(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=es)}switch(i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Je(t),null;case 6:if(e&&t.stateNode!=null)ef(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(i=Fn(ii.current),Fn(Ot.current),as(t)){if(o=t.stateNode,i=t.memoizedProps,o[zt]=t,(c=o.nodeValue!==i)&&(e=ht,e!==null))switch(e.tag){case 3:Ji(o.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ji(o.nodeValue,i,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(i.nodeType===9?i:i.ownerDocument).createTextNode(o),o[zt]=t,t.stateNode=o}return Je(t),null;case 13:if(Ae(De),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&pt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)rd(),lr(),t.flags|=98560,c=!1;else if(c=as(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[zt]=t}else lr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),c=!1}else jt!==null&&(Ja(jt),jt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Ue===0&&(Ue=3):nl())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return fr(),Ua(e,t),e===null&&qr(t.stateNode.containerInfo),Je(t),null;case 10:return ga(t.type._context),Je(t),null;case 17:return ot(t.type)&&ns(),Je(t),null;case 19:if(Ae(De),c=t.memoizedState,c===null)return Je(t),null;if(o=(t.flags&128)!==0,p=c.rendering,p===null)if(o)ui(c,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=hs(e),p!==null){for(t.flags|=128,ui(c,!1),o=p.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=i,i=t.child;i!==null;)c=i,e=o,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return ke(De,De.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ie()>gr&&(t.flags|=128,o=!0,ui(c,!1),t.lanes=4194304)}else{if(!o)if(e=hs(p),e!==null){if(t.flags|=128,o=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),ui(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!je)return Je(t),null}else 2*Ie()-c.renderingStartTime>gr&&i!==1073741824&&(t.flags|=128,o=!0,ui(c,!1),t.lanes=4194304);c.isBackwards?(p.sibling=t.child,t.child=p):(i=c.last,i!==null?i.sibling=p:t.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ie(),t.sibling=null,i=De.current,ke(De,o?i&1|2:i&1),t):(Je(t),null);case 22:case 23:return tl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(mt&1073741824)!==0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Ty(e,t){switch(ca(t),t.tag){case 1:return ot(t.type)&&ns(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),Ae(st),Ae(qe),Ta(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Sa(t),null;case 13:if(Ae(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));lr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(De),null;case 4:return fr(),null;case 10:return ga(t.type._context),null;case 22:case 23:return tl(),null;case 24:return null;default:return null}}var ks=!1,et=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,K=null;function pr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(o){Fe(e,t,o)}else i.current=null}function Wa(e,t,i){try{i()}catch(o){Fe(e,t,o)}}var tf=!1;function Ay(e,t){if(ta=Ui,e=Rc(),$o(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var l=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var p=0,S=-1,k=-1,j=0,F=0,V=e,R=null;t:for(;;){for(var H;V!==i||l!==0&&V.nodeType!==3||(S=p+l),V!==c||o!==0&&V.nodeType!==3||(k=p+o),V.nodeType===3&&(p+=V.nodeValue.length),(H=V.firstChild)!==null;)R=V,V=H;for(;;){if(V===e)break t;if(R===i&&++j===l&&(S=p),R===c&&++F===o&&(k=p),(H=V.nextSibling)!==null)break;V=R,R=V.parentNode}V=H}i=S===-1||k===-1?null:{start:S,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(na={focusedElem:e,selectionRange:i},Ui=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var $=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var Q=$.memoizedProps,_e=$.memoizedState,P=t.stateNode,T=P.getSnapshotBeforeUpdate(t.elementType===t.type?Q:Nt(t.type,Q),_e);P.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(O){Fe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return $=tf,tf=!1,$}function ci(e,t,i){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&Wa(t,i,c)}l=l.next}while(l!==o)}}function Ts(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var o=i.create;i.destroy=o()}i=i.next}while(i!==t)}}function Ha(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Jr],delete t[oa],delete t[ay],delete t[ly])),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 rf(e){return e.tag===5||e.tag===3||e.tag===4}function sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(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 Ga(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=es));else if(o!==4&&(e=e.child,e!==null))for(Ga(e,t,i),e=e.sibling;e!==null;)Ga(e,t,i),e=e.sibling}function Ka(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ka(e,t,i),e=e.sibling;e!==null;)Ka(e,t,i),e=e.sibling}var $e=null,Mt=!1;function mn(e,t,i){for(i=i.child;i!==null;)of(e,t,i),i=i.sibling}function of(e,t,i){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Ii,i)}catch{}switch(i.tag){case 5:et||pr(i,t);case 6:var o=$e,l=Mt;$e=null,mn(e,t,i),$e=o,Mt=l,$e!==null&&(Mt?(e=$e,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):$e.removeChild(i.stateNode));break;case 18:$e!==null&&(Mt?(e=$e,i=i.stateNode,e.nodeType===8?sa(e.parentNode,i):e.nodeType===1&&sa(e,i),Ur(e)):sa($e,i.stateNode));break;case 4:o=$e,l=Mt,$e=i.stateNode.containerInfo,Mt=!0,mn(e,t,i),$e=o,Mt=l;break;case 0:case 11:case 14:case 15:if(!et&&(o=i.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&Wa(i,t,p),l=l.next}while(l!==o)}mn(e,t,i);break;case 1:if(!et&&(pr(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(S){Fe(i,t,S)}mn(e,t,i);break;case 21:mn(e,t,i);break;case 22:i.mode&1?(et=(o=et)||i.memoizedState!==null,mn(e,t,i),et=o):mn(e,t,i);break;default:mn(e,t,i)}}function af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Cy),t.forEach(function(o){var l=Fy.bind(null,e,o);i.has(o)||(i.add(o),o.then(l,l))})}}function Dt(e,t){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];try{var c=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 5:$e=S.stateNode,Mt=!1;break e;case 3:$e=S.stateNode.containerInfo,Mt=!0;break e;case 4:$e=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if($e===null)throw Error(s(160));of(c,p,l),$e=null,Mt=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(j){Fe(l,t,j)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lf(t,e),t=t.sibling}function lf(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),bt(e),o&4){try{ci(3,e,e.return),Ts(3,e)}catch(Q){Fe(e,e.return,Q)}try{ci(5,e,e.return)}catch(Q){Fe(e,e.return,Q)}}break;case 1:Dt(t,e),bt(e),o&512&&i!==null&&pr(i,i.return);break;case 5:if(Dt(t,e),bt(e),o&512&&i!==null&&pr(i,i.return),e.flags&32){var l=e.stateNode;try{Dr(l,"")}catch(Q){Fe(e,e.return,Q)}}if(o&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=i!==null?i.memoizedProps:c,S=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{S==="input"&&c.type==="radio"&&c.name!=null&&Vu(l,c),To(S,p);var j=To(S,c);for(p=0;p<k.length;p+=2){var F=k[p],V=k[p+1];F==="style"?Wu(l,V):F==="dangerouslySetInnerHTML"?bu(l,V):F==="children"?Dr(l,V):B(l,F,V,j)}switch(S){case"input":vo(l,c);break;case"textarea":zu(l,c);break;case"select":var R=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var H=c.value;H!=null?$n(l,!!c.multiple,H,!1):R!==!!c.multiple&&(c.defaultValue!=null?$n(l,!!c.multiple,c.defaultValue,!0):$n(l,!!c.multiple,c.multiple?[]:"",!1))}l[Jr]=c}catch(Q){Fe(e,e.return,Q)}}break;case 6:if(Dt(t,e),bt(e),o&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(Q){Fe(e,e.return,Q)}}break;case 3:if(Dt(t,e),bt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Ur(t.containerInfo)}catch(Q){Fe(e,e.return,Q)}break;case 4:Dt(t,e),bt(e);break;case 13:Dt(t,e),bt(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(Xa=Ie())),o&4&&af(e);break;case 22:if(F=i!==null&&i.memoizedState!==null,e.mode&1?(et=(j=et)||F,Dt(t,e),et=j):Dt(t,e),bt(e),o&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!F&&(e.mode&1)!==0)for(K=e,F=e.child;F!==null;){for(V=K=F;K!==null;){switch(R=K,H=R.child,R.tag){case 0:case 11:case 14:case 15:ci(4,R,R.return);break;case 1:pr(R,R.return);var $=R.stateNode;if(typeof $.componentWillUnmount=="function"){o=R,i=R.return;try{t=o,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(Q){Fe(o,i,Q)}}break;case 5:pr(R,R.return);break;case 22:if(R.memoizedState!==null){df(V);continue}}H!==null?(H.return=R,K=H):df(V)}F=F.sibling}e:for(F=null,V=e;;){if(V.tag===5){if(F===null){F=V;try{l=V.stateNode,j?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(S=V.stateNode,k=V.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,S.style.display=Uu("display",p))}catch(Q){Fe(e,e.return,Q)}}}else if(V.tag===6){if(F===null)try{V.stateNode.nodeValue=j?"":V.memoizedProps}catch(Q){Fe(e,e.return,Q)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;F===V&&(F=null),V=V.return}F===V&&(F=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Dt(t,e),bt(e),o&4&&af(e);break;case 21:break;default:Dt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(rf(i)){var o=i;break e}i=i.return}throw Error(s(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(Dr(l,""),o.flags&=-33);var c=sf(e);Ka(e,c,l);break;case 3:case 4:var p=o.stateNode.containerInfo,S=sf(e);Ga(e,S,p);break;default:throw Error(s(161))}}catch(k){Fe(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Py(e,t,i){K=e,uf(e)}function uf(e,t,i){for(var o=(e.mode&1)!==0;K!==null;){var l=K,c=l.child;if(l.tag===22&&o){var p=l.memoizedState!==null||ks;if(!p){var S=l.alternate,k=S!==null&&S.memoizedState!==null||et;S=ks;var j=et;if(ks=p,(et=k)&&!j)for(K=l;K!==null;)p=K,k=p.child,p.tag===22&&p.memoizedState!==null?ff(l):k!==null?(k.return=p,K=k):ff(l);for(;c!==null;)K=c,uf(c),c=c.sibling;K=l,ks=S,et=j}cf(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,K=c):cf(e)}}function cf(e){for(;K!==null;){var t=K;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:et||Ts(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!et)if(i===null)o.componentDidMount();else{var l=t.elementType===t.type?i.memoizedProps:Nt(t.type,i.memoizedProps);o.componentDidUpdate(l,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&cd(t,c,o);break;case 3:var p=t.updateQueue;if(p!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}cd(t,p,i)}break;case 5:var S=t.stateNode;if(i===null&&t.flags&4){i=S;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&i.focus();break;case"img":k.src&&(i.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var j=t.alternate;if(j!==null){var F=j.memoizedState;if(F!==null){var V=F.dehydrated;V!==null&&Ur(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}et||t.flags&512&&Ha(t)}catch(R){Fe(t,t.return,R)}}if(t===e){K=null;break}if(i=t.sibling,i!==null){i.return=t.return,K=i;break}K=t.return}}function df(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var i=t.sibling;if(i!==null){i.return=t.return,K=i;break}K=t.return}}function ff(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{Ts(4,t)}catch(k){Fe(t,i,k)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(k){Fe(t,l,k)}}var c=t.return;try{Ha(t)}catch(k){Fe(t,c,k)}break;case 5:var p=t.return;try{Ha(t)}catch(k){Fe(t,p,k)}}}catch(k){Fe(t,t.return,k)}if(t===e){K=null;break}var S=t.sibling;if(S!==null){S.return=t.return,K=S;break}K=t.return}}var Ey=Math.ceil,Cs=b.ReactCurrentDispatcher,$a=b.ReactCurrentOwner,St=b.ReactCurrentBatchConfig,de=0,Ge=null,Oe=null,Ye=0,mt=0,mr=cn(0),Ue=0,di=null,In=0,As=0,Ya=0,fi=null,lt=null,Xa=0,gr=1/0,tn=null,Ps=!1,Qa=null,gn=null,Es=!1,yn=null,js=0,hi=0,qa=null,Ns=-1,Ms=0;function nt(){return(de&6)!==0?Ie():Ns!==-1?Ns:Ns=Ie()}function vn(e){return(e.mode&1)===0?1:(de&2)!==0&&Ye!==0?Ye&-Ye:cy.transition!==null?(Ms===0&&(Ms=ic()),Ms):(e=ve,e!==0||(e=window.event,e=e===void 0?16:hc(e.type)),e)}function Lt(e,t,i,o){if(50<hi)throw hi=0,qa=null,Error(s(185));_r(e,i,o),((de&2)===0||e!==Ge)&&(e===Ge&&((de&2)===0&&(As|=i),Ue===4&&xn(e,Ye)),ut(e,o),i===1&&de===0&&(t.mode&1)===0&&(gr=Ie()+500,is&&fn()))}function ut(e,t){var i=e.callbackNode;cg(e,t);var o=Oi(e,e===Ge?Ye:0);if(o===0)i!==null&&tc(i),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(i!=null&&tc(i),t===1)e.tag===0?uy(pf.bind(null,e)):Zc(pf.bind(null,e)),sy(function(){(de&6)===0&&fn()}),i=null;else{switch(sc(o)){case 1:i=Mo;break;case 4:i=nc;break;case 16:i=Vi;break;case 536870912:i=rc;break;default:i=Vi}i=kf(i,hf.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function hf(e,t){if(Ns=-1,Ms=0,(de&6)!==0)throw Error(s(327));var i=e.callbackNode;if(yr()&&e.callbackNode!==i)return null;var o=Oi(e,e===Ge?Ye:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Ds(e,o);else{t=o;var l=de;de|=2;var c=gf();(Ge!==e||Ye!==t)&&(tn=null,gr=Ie()+500,zn(e,t));do try{My();break}catch(S){mf(e,S)}while(!0);ma(),Cs.current=c,de=l,Oe!==null?t=0:(Ge=null,Ye=0,t=Ue)}if(t!==0){if(t===2&&(l=Do(e),l!==0&&(o=l,t=Za(e,l))),t===1)throw i=di,zn(e,0),xn(e,o),ut(e,Ie()),i;if(t===6)xn(e,o);else{if(l=e.current.alternate,(o&30)===0&&!jy(l)&&(t=Ds(e,o),t===2&&(c=Do(e),c!==0&&(o=c,t=Za(e,c))),t===1))throw i=di,zn(e,0),xn(e,o),ut(e,Ie()),i;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:On(e,lt,tn);break;case 3:if(xn(e,o),(o&130023424)===o&&(t=Xa+500-Ie(),10<t)){if(Oi(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){nt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ia(On.bind(null,e,lt,tn),t);break}On(e,lt,tn);break;case 4:if(xn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var p=31-Pt(o);c=1<<p,p=t[p],p>l&&(l=p),o&=~c}if(o=l,o=Ie()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ey(o/1960))-o,10<o){e.timeoutHandle=ia(On.bind(null,e,lt,tn),o);break}On(e,lt,tn);break;case 5:On(e,lt,tn);break;default:throw Error(s(329))}}}return ut(e,Ie()),e.callbackNode===i?hf.bind(null,e):null}function Za(e,t){var i=fi;return e.current.memoizedState.isDehydrated&&(zn(e,t).flags|=256),e=Ds(e,t),e!==2&&(t=lt,lt=i,t!==null&&Ja(t)),e}function Ja(e){lt===null?lt=e:lt.push.apply(lt,e)}function jy(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var o=0;o<i.length;o++){var l=i[o],c=l.getSnapshot;l=l.value;try{if(!Et(c(),l))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 xn(e,t){for(t&=~Ya,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-Pt(t),o=1<<i;e[i]=-1,t&=~o}}function pf(e){if((de&6)!==0)throw Error(s(327));yr();var t=Oi(e,0);if((t&1)===0)return ut(e,Ie()),null;var i=Ds(e,t);if(e.tag!==0&&i===2){var o=Do(e);o!==0&&(t=o,i=Za(e,o))}if(i===1)throw i=di,zn(e,0),xn(e,t),ut(e,Ie()),i;if(i===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,On(e,lt,tn),ut(e,Ie()),null}function el(e,t){var i=de;de|=1;try{return e(t)}finally{de=i,de===0&&(gr=Ie()+500,is&&fn())}}function _n(e){yn!==null&&yn.tag===0&&(de&6)===0&&yr();var t=de;de|=1;var i=St.transition,o=ve;try{if(St.transition=null,ve=1,e)return e()}finally{ve=o,St.transition=i,de=t,(de&6)===0&&fn()}}function tl(){mt=mr.current,Ae(mr)}function zn(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,iy(i)),Oe!==null)for(i=Oe.return;i!==null;){var o=i;switch(ca(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ns();break;case 3:fr(),Ae(st),Ae(qe),Ta();break;case 5:Sa(o);break;case 4:fr();break;case 13:Ae(De);break;case 19:Ae(De);break;case 10:ga(o.type._context);break;case 22:case 23:tl()}i=i.return}if(Ge=e,Oe=e=wn(e.current,null),Ye=mt=t,Ue=0,di=null,Ya=As=In=0,lt=fi=null,Rn!==null){for(t=0;t<Rn.length;t++)if(i=Rn[t],o=i.interleaved,o!==null){i.interleaved=null;var l=o.next,c=i.pending;if(c!==null){var p=c.next;c.next=l,o.next=p}i.pending=o}Rn=null}return e}function mf(e,t){do{var i=Oe;try{if(ma(),ps.current=vs,ms){for(var o=Le.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}ms=!1}if(Vn=0,He=be=Le=null,si=!1,oi=0,$a.current=null,i===null||i.return===null){Ue=1,di=t,Oe=null;break}e:{var c=e,p=i.return,S=i,k=t;if(t=Ye,S.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var j=k,F=S,V=F.tag;if((F.mode&1)===0&&(V===0||V===11||V===15)){var R=F.alternate;R?(F.updateQueue=R.updateQueue,F.memoizedState=R.memoizedState,F.lanes=R.lanes):(F.updateQueue=null,F.memoizedState=null)}var H=Od(p);if(H!==null){H.flags&=-257,Bd(H,p,S,c,t),H.mode&1&&zd(c,j,t),t=H,k=j;var $=t.updateQueue;if($===null){var Q=new Set;Q.add(k),t.updateQueue=Q}else $.add(k);break e}else{if((t&1)===0){zd(c,j,t),nl();break e}k=Error(s(426))}}else if(je&&S.mode&1){var _e=Od(p);if(_e!==null){(_e.flags&65536)===0&&(_e.flags|=256),Bd(_e,p,S,c,t),ha(hr(k,S));break e}}c=k=hr(k,S),Ue!==4&&(Ue=2),fi===null?fi=[c]:fi.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var P=Id(c,k,t);ud(c,P);break e;case 1:S=k;var T=c.type,E=c.stateNode;if((c.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(gn===null||!gn.has(E)))){c.flags|=65536,t&=-t,c.lanes|=t;var O=_d(c,S,t);ud(c,O);break e}}c=c.return}while(c!==null)}vf(i)}catch(Z){t=Z,Oe===i&&i!==null&&(Oe=i=i.return);continue}break}while(!0)}function gf(){var e=Cs.current;return Cs.current=vs,e===null?vs:e}function nl(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ge===null||(In&268435455)===0&&(As&268435455)===0||xn(Ge,Ye)}function Ds(e,t){var i=de;de|=2;var o=gf();(Ge!==e||Ye!==t)&&(tn=null,zn(e,t));do try{Ny();break}catch(l){mf(e,l)}while(!0);if(ma(),de=i,Cs.current=o,Oe!==null)throw Error(s(261));return Ge=null,Ye=0,Ue}function Ny(){for(;Oe!==null;)yf(Oe)}function My(){for(;Oe!==null&&!tg();)yf(Oe)}function yf(e){var t=Sf(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?vf(e):Oe=t,$a.current=null}function vf(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=ky(i,t,mt),i!==null){Oe=i;return}}else{if(i=Ty(i,t),i!==null){i.flags&=32767,Oe=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Oe=null;return}}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Ue===0&&(Ue=5)}function On(e,t,i){var o=ve,l=St.transition;try{St.transition=null,ve=1,Dy(e,t,i,o)}finally{St.transition=l,ve=o}return null}function Dy(e,t,i,o){do yr();while(yn!==null);if((de&6)!==0)throw Error(s(327));i=e.finishedWork;var l=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(dg(e,c),e===Ge&&(Oe=Ge=null,Ye=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Es||(Es=!0,kf(Vi,function(){return yr(),null})),c=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||c){c=St.transition,St.transition=null;var p=ve;ve=1;var S=de;de|=4,$a.current=null,Ay(e,i),lf(i,e),qg(na),Ui=!!ta,na=ta=null,e.current=i,Py(i),ng(),de=S,ve=p,St.transition=c}else e.current=i;if(Es&&(Es=!1,yn=e,js=l),c=e.pendingLanes,c===0&&(gn=null),sg(i.stateNode),ut(e,Ie()),t!==null)for(o=e.onRecoverableError,i=0;i<t.length;i++)l=t[i],o(l.value,{componentStack:l.stack,digest:l.digest});if(Ps)throw Ps=!1,e=Qa,Qa=null,e;return(js&1)!==0&&e.tag!==0&&yr(),c=e.pendingLanes,(c&1)!==0?e===qa?hi++:(hi=0,qa=e):hi=0,fn(),null}function yr(){if(yn!==null){var e=sc(js),t=St.transition,i=ve;try{if(St.transition=null,ve=16>e?16:e,yn===null)var o=!1;else{if(e=yn,yn=null,js=0,(de&6)!==0)throw Error(s(331));var l=de;for(de|=4,K=e.current;K!==null;){var c=K,p=c.child;if((K.flags&16)!==0){var S=c.deletions;if(S!==null){for(var k=0;k<S.length;k++){var j=S[k];for(K=j;K!==null;){var F=K;switch(F.tag){case 0:case 11:case 15:ci(8,F,c)}var V=F.child;if(V!==null)V.return=F,K=V;else for(;K!==null;){F=K;var R=F.sibling,H=F.return;if(nf(F),F===j){K=null;break}if(R!==null){R.return=H,K=R;break}K=H}}}var $=c.alternate;if($!==null){var Q=$.child;if(Q!==null){$.child=null;do{var _e=Q.sibling;Q.sibling=null,Q=_e}while(Q!==null)}}K=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,K=p;else e:for(;K!==null;){if(c=K,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ci(9,c,c.return)}var P=c.sibling;if(P!==null){P.return=c.return,K=P;break e}K=c.return}}var T=e.current;for(K=T;K!==null;){p=K;var E=p.child;if((p.subtreeFlags&2064)!==0&&E!==null)E.return=p,K=E;else e:for(p=T;K!==null;){if(S=K,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:Ts(9,S)}}catch(Z){Fe(S,S.return,Z)}if(S===p){K=null;break e}var O=S.sibling;if(O!==null){O.return=S.return,K=O;break e}K=S.return}}if(de=l,fn(),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Ii,e)}catch{}o=!0}return o}finally{ve=i,St.transition=t}}return!1}function xf(e,t,i){t=hr(i,t),t=Id(e,t,1),e=pn(e,t,1),t=nt(),e!==null&&(_r(e,1,t),ut(e,t))}function Fe(e,t,i){if(e.tag===3)xf(e,e,i);else for(;t!==null;){if(t.tag===3){xf(t,e,i);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(gn===null||!gn.has(o))){e=hr(i,e),e=_d(t,e,1),t=pn(t,e,1),e=nt(),t!==null&&(_r(t,1,e),ut(t,e));break}}t=t.return}}function Ly(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&i,Ge===e&&(Ye&i)===i&&(Ue===4||Ue===3&&(Ye&130023424)===Ye&&500>Ie()-Xa?zn(e,0):Ya|=i),ut(e,t)}function wf(e,t){t===0&&((e.mode&1)===0?t=1:(t=zi,zi<<=1,(zi&130023424)===0&&(zi=4194304)));var i=nt();e=Zt(e,t),e!==null&&(_r(e,t,i),ut(e,i))}function Ry(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),wf(e,i)}function Fy(e,t){var i=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(i=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),wf(e,i)}var Sf;Sf=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return at=!1,Sy(e,t,i);at=(e.flags&131072)!==0}else at=!1,je&&(t.flags&1048576)!==0&&Jc(t,os,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ss(e,t),e=t.pendingProps;var l=sr(t,qe.current);dr(t,i),l=Pa(null,t,o,e,l,i);var c=Ea();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(o)?(c=!0,rs(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xa(t),l.updater=xs,t.stateNode=l,l._reactInternals=t,Ra(t,o,e,i),t=_a(null,t,o,!0,c,i)):(t.tag=0,je&&c&&ua(t),tt(null,t,l,i),t=t.child),t;case 16:o=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=Iy(o),e=Nt(o,e),l){case 0:t=Ia(null,t,o,e,i);break e;case 1:t=Kd(null,t,o,e,i);break e;case 11:t=bd(null,t,o,e,i);break e;case 14:t=Ud(null,t,o,Nt(o.type,e),i);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),Ia(e,t,o,l,i);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),Kd(e,t,o,l,i);case 3:e:{if($d(t),e===null)throw Error(s(387));o=t.pendingProps,c=t.memoizedState,l=c.element,ld(e,t),fs(t,o,null,i);var p=t.memoizedState;if(o=p.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){l=hr(Error(s(423)),t),t=Yd(e,t,o,i,l);break e}else if(o!==l){l=hr(Error(s(424)),t),t=Yd(e,t,o,i,l);break e}else for(pt=un(t.stateNode.containerInfo.firstChild),ht=t,je=!0,jt=null,i=od(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(lr(),o===l){t=en(e,t,i);break e}tt(e,t,o,i)}t=t.child}return t;case 5:return dd(t),e===null&&fa(t),o=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,ra(o,l)?p=null:c!==null&&ra(o,c)&&(t.flags|=32),Gd(e,t),tt(e,t,p,i),t.child;case 6:return e===null&&fa(t),null;case 13:return Xd(e,t,i);case 4:return wa(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ur(t,null,o,i):tt(e,t,o,i),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),bd(e,t,o,l,i);case 7:return tt(e,t,t.pendingProps,i),t.child;case 8:return tt(e,t,t.pendingProps.children,i),t.child;case 12:return tt(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,c=t.memoizedProps,p=l.value,ke(us,o._currentValue),o._currentValue=p,c!==null)if(Et(c.value,p)){if(c.children===l.children&&!st.current){t=en(e,t,i);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var S=c.dependencies;if(S!==null){p=c.child;for(var k=S.firstContext;k!==null;){if(k.context===o){if(c.tag===1){k=Jt(-1,i&-i),k.tag=2;var j=c.updateQueue;if(j!==null){j=j.shared;var F=j.pending;F===null?k.next=k:(k.next=F.next,F.next=k),j.pending=k}}c.lanes|=i,k=c.alternate,k!==null&&(k.lanes|=i),ya(c.return,i,t),S.lanes|=i;break}k=k.next}}else if(c.tag===10)p=c.type===t.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(s(341));p.lanes|=i,S=p.alternate,S!==null&&(S.lanes|=i),ya(p,i,t),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===t){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}tt(e,t,l.children,i),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,dr(t,i),l=xt(l),o=o(l),t.flags|=1,tt(e,t,o,i),t.child;case 14:return o=t.type,l=Nt(o,t.pendingProps),l=Nt(o.type,l),Ud(e,t,o,l,i);case 15:return Wd(e,t,t.type,t.pendingProps,i);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),Ss(e,t),t.tag=1,ot(o)?(e=!0,rs(t)):e=!1,dr(t,i),Fd(t,o,l),Ra(t,o,l,i),_a(null,t,o,!0,e,i);case 19:return qd(e,t,i);case 22:return Hd(e,t,i)}throw Error(s(156,t.tag))};function kf(e,t){return ec(e,t)}function Vy(e,t,i,o){this.tag=e,this.key=i,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,i,o){return new Vy(e,t,i,o)}function rl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Iy(e){if(typeof e=="function")return rl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xe)return 11;if(e===ze)return 14}return 2}function wn(e,t){var i=e.alternate;return i===null?(i=kt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Ls(e,t,i,o,l,c){var p=2;if(o=e,typeof e=="function")rl(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case ae:return Bn(i.children,l,c,t);case J:p=8,l|=8;break;case re:return e=kt(12,i,t,l|2),e.elementType=re,e.lanes=c,e;case Ne:return e=kt(13,i,t,l),e.elementType=Ne,e.lanes=c,e;case Re:return e=kt(19,i,t,l),e.elementType=Re,e.lanes=c,e;case Me:return Rs(i,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:p=10;break e;case fe:p=9;break e;case xe:p=11;break e;case ze:p=14;break e;case Te:p=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=kt(p,i,t,l),t.elementType=e,t.type=o,t.lanes=c,t}function Bn(e,t,i,o){return e=kt(7,e,o,t),e.lanes=i,e}function Rs(e,t,i,o){return e=kt(22,e,o,t),e.elementType=Me,e.lanes=i,e.stateNode={isHidden:!1},e}function il(e,t,i){return e=kt(6,e,null,t),e.lanes=i,e}function sl(e,t,i){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _y(e,t,i,o,l){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=Lo(0),this.expirationTimes=Lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lo(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ol(e,t,i,o,l,c,p,S,k){return e=new _y(e,t,i,S,k),t===1?(t=1,c===!0&&(t|=8)):t=0,c=kt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},xa(c),e}function zy(e,t,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}function Tf(e){if(!e)return dn;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ot(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var i=e.type;if(ot(i))return Qc(e,i,t)}return t}function Cf(e,t,i,o,l,c,p,S,k){return e=ol(i,o,!0,e,l,c,p,S,k),e.context=Tf(null),i=e.current,o=nt(),l=vn(i),c=Jt(o,l),c.callback=t??null,pn(i,c,l),e.current.lanes=l,_r(e,l,o),ut(e,o),e}function Fs(e,t,i,o){var l=t.current,c=nt(),p=vn(l);return i=Tf(i),t.context===null?t.context=i:t.pendingContext=i,t=Jt(c,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=pn(l,t,p),e!==null&&(Lt(e,l,p,c),ds(e,l,p)),p}function Vs(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 Af(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function al(e,t){Af(e,t),(e=e.alternate)&&Af(e,t)}function Oy(){return null}var Pf=typeof reportError=="function"?reportError:function(e){console.error(e)};function ll(e){this._internalRoot=e}Is.prototype.render=ll.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Fs(e,t,null,null)},Is.prototype.unmount=ll.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_n(function(){Fs(null,e,null,null)}),t[Yt]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=lc();e={blockedOn:null,target:e,priority:t};for(var i=0;i<on.length&&t!==0&&t<on[i].priority;i++);on.splice(i,0,e),i===0&&dc(e)}};function ul(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 Ef(){}function By(e,t,i,o,l){if(l){if(typeof o=="function"){var c=o;o=function(){var j=Vs(p);c.call(j)}}var p=Cf(t,o,e,0,null,!1,!1,"",Ef);return e._reactRootContainer=p,e[Yt]=p.current,qr(e.nodeType===8?e.parentNode:e),_n(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var S=o;o=function(){var j=Vs(k);S.call(j)}}var k=ol(e,0,!1,null,null,!1,!1,"",Ef);return e._reactRootContainer=k,e[Yt]=k.current,qr(e.nodeType===8?e.parentNode:e),_n(function(){Fs(t,k,i,o)}),k}function zs(e,t,i,o,l){var c=i._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var S=l;l=function(){var k=Vs(p);S.call(k)}}Fs(t,p,e,l)}else p=By(i,t,e,l,o);return Vs(p)}oc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Ir(t.pendingLanes);i!==0&&(Ro(t,i|1),ut(t,Ie()),(de&6)===0&&(gr=Ie()+500,fn()))}break;case 13:_n(function(){var o=Zt(e,1);if(o!==null){var l=nt();Lt(o,e,1,l)}}),al(e,1)}},Fo=function(e){if(e.tag===13){var t=Zt(e,134217728);if(t!==null){var i=nt();Lt(t,e,134217728,i)}al(e,134217728)}},ac=function(e){if(e.tag===13){var t=vn(e),i=Zt(e,t);if(i!==null){var o=nt();Lt(i,e,t,o)}al(e,t)}},lc=function(){return ve},uc=function(e,t){var i=ve;try{return ve=e,t()}finally{ve=i}},Po=function(e,t,i){switch(t){case"input":if(vo(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var o=i[t];if(o!==e&&o.form===e.form){var l=ts(o);if(!l)throw Error(s(90));Ru(o),vo(o,l)}}}break;case"textarea":zu(e,i);break;case"select":t=i.value,t!=null&&$n(e,!!i.multiple,t,!1)}},$u=el,Yu=_n;var by={usingClientEntryPoint:!1,Events:[ei,rr,ts,Gu,Ku,el]},pi={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uy={bundleType:pi.bundleType,version:pi.version,rendererPackageName:pi.rendererPackageName,rendererConfig:pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zu(e),e===null?null:e.stateNode},findFiberByHostInstance:pi.findFiberByHostInstance||Oy,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 Os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Os.isDisabled&&Os.supportsFiber)try{Ii=Os.inject(Uy),_t=Os}catch{}}return ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=by,ct.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ul(t))throw Error(s(200));return zy(e,t,null,i)},ct.createRoot=function(e,t){if(!ul(e))throw Error(s(299));var i=!1,o="",l=Pf;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ol(e,1,!1,null,null,i,!1,o,l),e[Yt]=t.current,qr(e.nodeType===8?e.parentNode:e),new ll(t)},ct.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Zu(t),e=e===null?null:e.stateNode,e},ct.flushSync=function(e){return _n(e)},ct.hydrate=function(e,t,i){if(!_s(t))throw Error(s(200));return zs(null,e,t,!0,i)},ct.hydrateRoot=function(e,t,i){if(!ul(e))throw Error(s(405));var o=i!=null&&i.hydratedSources||null,l=!1,c="",p=Pf;if(i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),t=Cf(t,null,e,1,i??null,l,!1,c,p),e[Yt]=t.current,qr(e),o)for(e=0;e<o.length;e++)i=o[e],l=i._getVersion,l=l(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,l]:t.mutableSourceEagerHydrationData.push(i,l);return new Is(t)},ct.render=function(e,t,i){if(!_s(t))throw Error(s(200));return zs(null,e,t,!1,i)},ct.unmountComponentAtNode=function(e){if(!_s(e))throw Error(s(40));return e._reactRootContainer?(_n(function(){zs(null,null,e,!1,function(){e._reactRootContainer=null,e[Yt]=null})}),!0):!1},ct.unstable_batchedUpdates=el,ct.unstable_renderSubtreeIntoContainer=function(e,t,i,o){if(!_s(i))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return zs(e,t,i,!1,o)},ct.version="18.3.1-next-f1338f8080-20240426",ct}var Vf;function qy(){if(Vf)return fl.exports;Vf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),fl.exports=Qy(),fl.exports}var If;function Zy(){if(If)return Bs;If=1;var n=qy();return Bs.createRoot=n.createRoot,Bs.hydrateRoot=n.hydrateRoot,Bs}var Jy=Zy();const e0=np(Jy),iu=_.createContext({});function su(n){const r=_.useRef(null);return r.current===null&&(r.current=n()),r.current}const t0=typeof window<"u",rp=t0?_.useLayoutEffect:_.useEffect,fo=_.createContext(null);function ou(n,r){n.indexOf(r)===-1&&n.push(r)}function to(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}const $t=(n,r,s)=>s>r?r:s<n?n:s;let au=()=>{};const An={},ip=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function sp(n){return typeof n=="object"&&n!==null}const op=n=>/^0[^.\s]+$/u.test(n);function ap(n){let r;return()=>(r===void 0&&(r=n()),r)}const Ct=n=>n,n0=(n,r)=>s=>r(n(s)),Pi=(...n)=>n.reduce(n0),ki=(n,r,s)=>{const a=r-n;return a===0?1:(s-n)/a};class lu{constructor(){this.subscriptions=[]}add(r){return ou(this.subscriptions,r),()=>to(this.subscriptions,r)}notify(r,s,a){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,s,a);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(r,s,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gt=n=>n*1e3,Tt=n=>n/1e3;function lp(n,r){return r?n*(1e3/r):0}const up=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,r0=1e-7,i0=12;function s0(n,r,s,a,u){let f,d,h=0;do d=r+(s-r)/2,f=up(d,a,u)-n,f>0?s=d:r=d;while(Math.abs(f)>r0&&++h<i0);return d}function Ei(n,r,s,a){if(n===r&&s===a)return Ct;const u=f=>s0(f,0,1,n,s);return f=>f===0||f===1?f:up(u(f),r,a)}const cp=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,dp=n=>r=>1-n(1-r),fp=Ei(.33,1.53,.69,.99),uu=dp(fp),hp=cp(uu),pp=n=>n>=1?1:(n*=2)<1?.5*uu(n):.5*(2-Math.pow(2,-10*(n-1))),cu=n=>1-Math.sin(Math.acos(n)),mp=dp(cu),gp=cp(cu),o0=Ei(.42,0,1,1),a0=Ei(0,0,.58,1),yp=Ei(.42,0,.58,1),l0=n=>Array.isArray(n)&&typeof n[0]!="number",vp=n=>Array.isArray(n)&&typeof n[0]=="number",u0={linear:Ct,easeIn:o0,easeInOut:yp,easeOut:a0,circIn:cu,circInOut:gp,circOut:mp,backIn:uu,backInOut:hp,backOut:fp,anticipate:pp},c0=n=>typeof n=="string",_f=n=>{if(vp(n)){au(n.length===4);const[r,s,a,u]=n;return Ei(r,s,a,u)}else if(c0(n))return u0[n];return n},bs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function d0(n,r){let s=new Set,a=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function g(y){d.has(y)&&(x.schedule(y),n()),y(h)}const x={schedule:(y,v=!1,w=!1)=>{const N=w&&u?s:a;return v&&d.add(y),N.add(y),y},cancel:y=>{a.delete(y),d.delete(y)},process:y=>{if(h=y,u){f=!0;return}u=!0;const v=s;s=a,a=v,s.forEach(g),s.clear(),u=!1,f&&(f=!1,x.process(y))}};return x}const f0=40;function xp(n,r){let s=!1,a=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=bs.reduce((B,b)=>(B[b]=d0(f),B),{}),{setup:h,read:g,resolveKeyframes:x,preUpdate:y,update:v,preRender:w,render:C,postRender:N}=d,D=()=>{const B=An.useManualTiming,b=B?u.timestamp:performance.now();s=!1,B||(u.delta=a?1e3/60:Math.max(Math.min(b-u.timestamp,f0),1)),u.timestamp=b,u.isProcessing=!0,h.process(u),g.process(u),x.process(u),y.process(u),v.process(u),w.process(u),C.process(u),N.process(u),u.isProcessing=!1,s&&r&&(a=!1,n(D))},M=()=>{s=!0,a=!0,u.isProcessing||n(D)};return{schedule:bs.reduce((B,b)=>{const G=d[b];return B[b]=(ie,ae=!1,J=!1)=>(s||M(),G.schedule(ie,ae,J)),B},{}),cancel:B=>{for(let b=0;b<bs.length;b++)d[bs[b]].cancel(B)},state:u,steps:d}}const{schedule:we,cancel:Pn,state:Xe,steps:ml}=xp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ct,!0);let $s;function h0(){$s=void 0}const rt={now:()=>($s===void 0&&rt.set(Xe.isProcessing||An.useManualTiming?Xe.timestamp:performance.now()),$s),set:n=>{$s=n,queueMicrotask(h0)}},wp=n=>r=>typeof r=="string"&&r.startsWith(n),Sp=wp("--"),p0=wp("var(--"),du=n=>p0(n)?m0.test(n.split("/*")[0].trim()):!1,m0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zf(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Er={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Ti={...Er,transform:n=>$t(0,1,n)},Us={...Er,default:1},vi=n=>Math.round(n*1e5)/1e5,fu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g0(n){return n==null}const y0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hu=(n,r)=>s=>!!(typeof s=="string"&&y0.test(s)&&s.startsWith(n)||r&&!g0(s)&&Object.prototype.hasOwnProperty.call(s,r)),kp=(n,r,s)=>a=>{if(typeof a!="string")return a;const[u,f,d,h]=a.match(fu);return{[n]:parseFloat(u),[r]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},v0=n=>$t(0,255,n),gl={...Er,transform:n=>Math.round(v0(n))},Wn={test:hu("rgb","red"),parse:kp("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:a=1})=>"rgba("+gl.transform(n)+", "+gl.transform(r)+", "+gl.transform(s)+", "+vi(Ti.transform(a))+")"};function x0(n){let r="",s="",a="",u="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),a=n.substring(5,7),u=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),a=n.substring(3,4),u=n.substring(4,5),r+=r,s+=s,a+=a,u+=u),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(a,16),alpha:u?parseInt(u,16)/255:1}}const Dl={test:hu("#"),parse:x0,transform:Wn.transform},ji=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),kn=ji("deg"),Kt=ji("%"),Y=ji("px"),w0=ji("vh"),S0=ji("vw"),Of={...Kt,parse:n=>Kt.parse(n)/100,transform:n=>Kt.transform(n*100)},wr={test:hu("hsl","hue"),parse:kp("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:a=1})=>"hsla("+Math.round(n)+", "+Kt.transform(vi(r))+", "+Kt.transform(vi(s))+", "+vi(Ti.transform(a))+")"},Be={test:n=>Wn.test(n)||Dl.test(n)||wr.test(n),parse:n=>Wn.test(n)?Wn.parse(n):wr.test(n)?wr.parse(n):Dl.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Wn.transform(n):wr.transform(n),getAnimatableNone:n=>{const r=Be.parse(n);return r.alpha=0,Be.transform(r)}},k0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function T0(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(fu))==null?void 0:r.length)||0)+(((s=n.match(k0))==null?void 0:s.length)||0)>0}const Tp="number",Cp="color",C0="var",A0="var(",Bf="${}",P0=/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 Ar(n){const r=n.toString(),s=[],a={color:[],number:[],var:[]},u=[];let f=0;const h=r.replace(P0,g=>(Be.test(g)?(a.color.push(f),u.push(Cp),s.push(Be.parse(g))):g.startsWith(A0)?(a.var.push(f),u.push(C0),s.push(g)):(a.number.push(f),u.push(Tp),s.push(parseFloat(g))),++f,Bf)).split(Bf);return{values:s,split:h,indexes:a,types:u}}function E0(n){return Ar(n).values}function Ap({split:n,types:r}){const s=n.length;return a=>{let u="";for(let f=0;f<s;f++)if(u+=n[f],a[f]!==void 0){const d=r[f];d===Tp?u+=vi(a[f]):d===Cp?u+=Be.transform(a[f]):u+=a[f]}return u}}function j0(n){return Ap(Ar(n))}const N0=n=>typeof n=="number"?0:Be.test(n)?Be.getAnimatableNone(n):n,M0=(n,r)=>typeof n=="number"?r!=null&&r.trim().endsWith("/")?n:0:N0(n);function D0(n){const r=Ar(n);return Ap(r)(r.values.map((a,u)=>M0(a,r.split[u])))}const It={test:T0,parse:E0,createTransformer:j0,getAnimatableNone:D0};function yl(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function L0({hue:n,saturation:r,lightness:s,alpha:a}){n/=360,r/=100,s/=100;let u=0,f=0,d=0;if(!r)u=f=d=s;else{const h=s<.5?s*(1+r):s+r-s*r,g=2*s-h;u=yl(g,h,n+1/3),f=yl(g,h,n),d=yl(g,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:a}}function no(n,r){return s=>s>0?r:n}const Pe=(n,r,s)=>n+(r-n)*s,vl=(n,r,s)=>{const a=n*n,u=s*(r*r-a)+a;return u<0?0:Math.sqrt(u)},R0=[Dl,Wn,wr],F0=n=>R0.find(r=>r.test(n));function bf(n){const r=F0(n);if(!r)return!1;let s=r.parse(n);return r===wr&&(s=L0(s)),s}const Uf=(n,r)=>{const s=bf(n),a=bf(r);if(!s||!a)return no(n,r);const u={...s};return f=>(u.red=vl(s.red,a.red,f),u.green=vl(s.green,a.green,f),u.blue=vl(s.blue,a.blue,f),u.alpha=Pe(s.alpha,a.alpha,f),Wn.transform(u))},Ll=new Set(["none","hidden"]);function V0(n,r){return Ll.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function I0(n,r){return s=>Pe(n,r,s)}function pu(n){return typeof n=="number"?I0:typeof n=="string"?du(n)?no:Be.test(n)?Uf:O0:Array.isArray(n)?Pp:typeof n=="object"?Be.test(n)?Uf:_0:no}function Pp(n,r){const s=[...n],a=s.length,u=n.map((f,d)=>pu(f)(f,r[d]));return f=>{for(let d=0;d<a;d++)s[d]=u[d](f);return s}}function _0(n,r){const s={...n,...r},a={};for(const u in s)n[u]!==void 0&&r[u]!==void 0&&(a[u]=pu(n[u])(n[u],r[u]));return u=>{for(const f in a)s[f]=a[f](u);return s}}function z0(n,r){const s=[],a={color:0,var:0,number:0};for(let u=0;u<r.values.length;u++){const f=r.types[u],d=n.indexes[f][a[f]],h=n.values[d]??0;s[u]=h,a[f]++}return s}const O0=(n,r)=>{const s=It.createTransformer(r),a=Ar(n),u=Ar(r);return a.indexes.var.length===u.indexes.var.length&&a.indexes.color.length===u.indexes.color.length&&a.indexes.number.length>=u.indexes.number.length?Ll.has(n)&&!u.values.length||Ll.has(r)&&!a.values.length?V0(n,r):Pi(Pp(z0(a,u),u.values),s):no(n,r)};function Ep(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?Pe(n,r,s):pu(n)(n,r)}const B0=n=>{const r=({timestamp:s})=>n(s);return{start:(s=!0)=>we.update(r,s),stop:()=>Pn(r),now:()=>Xe.isProcessing?Xe.timestamp:rt.now()}},jp=(n,r,s=10)=>{let a="";const u=Math.max(Math.round(r/s),2);for(let f=0;f<u;f++)a+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},ro=2e4;function mu(n){let r=0;const s=50;let a=n.next(r);for(;!a.done&&r<ro;)r+=s,a=n.next(r);return r>=ro?1/0:r}function b0(n,r=100,s){const a=s({...n,keyframes:[0,r]}),u=Math.min(mu(a),ro);return{type:"keyframes",ease:f=>a.next(u*f).value/r,duration:Tt(u)}}const Ve={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};function Rl(n,r){return n*Math.sqrt(1-r*r)}const U0=12;function W0(n,r,s){let a=s;for(let u=1;u<U0;u++)a=a-n(a)/r(a);return a}const xl=.001;function H0({duration:n=Ve.duration,bounce:r=Ve.bounce,velocity:s=Ve.velocity,mass:a=Ve.mass}){let u,f,d=1-r;d=$t(Ve.minDamping,Ve.maxDamping,d),n=$t(Ve.minDuration,Ve.maxDuration,Tt(n)),d<1?(u=x=>{const y=x*d,v=y*n,w=y-s,C=Rl(x,d),N=Math.exp(-v);return xl-w/C*N},f=x=>{const v=x*d*n,w=v*s+s,C=Math.pow(d,2)*Math.pow(x,2)*n,N=Math.exp(-v),D=Rl(Math.pow(x,2),d);return(-u(x)+xl>0?-1:1)*((w-C)*N)/D}):(u=x=>{const y=Math.exp(-x*n),v=(x-s)*n+1;return-xl+y*v},f=x=>{const y=Math.exp(-x*n),v=(s-x)*(n*n);return y*v});const h=5/n,g=W0(u,f,h);if(n=gt(n),isNaN(g))return{stiffness:Ve.stiffness,damping:Ve.damping,duration:n};{const x=Math.pow(g,2)*a;return{stiffness:x,damping:d*2*Math.sqrt(a*x),duration:n}}}const G0=["duration","bounce"],K0=["stiffness","damping","mass"];function Wf(n,r){return r.some(s=>n[s]!==void 0)}function $0(n){let r={velocity:Ve.velocity,stiffness:Ve.stiffness,damping:Ve.damping,mass:Ve.mass,isResolvedFromDuration:!1,...n};if(!Wf(n,K0)&&Wf(n,G0))if(r.velocity=0,n.visualDuration){const s=n.visualDuration,a=2*Math.PI/(s*1.2),u=a*a,f=2*$t(.05,1,1-(n.bounce||0))*Math.sqrt(u);r={...r,mass:Ve.mass,stiffness:u,damping:f}}else{const s=H0({...n,velocity:0});r={...r,...s,mass:Ve.mass},r.isResolvedFromDuration=!0}return r}function io(n=Ve.visualDuration,r=Ve.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:a,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:g,damping:x,mass:y,duration:v,velocity:w,isResolvedFromDuration:C}=$0({...s,velocity:-Tt(s.velocity||0)}),N=w||0,D=x/(2*Math.sqrt(g*y)),M=d-f,I=Tt(Math.sqrt(g/y)),U=Math.abs(M)<5;a||(a=U?Ve.restSpeed.granular:Ve.restSpeed.default),u||(u=U?Ve.restDelta.granular:Ve.restDelta.default);let B,b,G,ie,ae,J;if(D<1)G=Rl(I,D),ie=(N+D*I*M)/G,B=q=>{const fe=Math.exp(-D*I*q);return d-fe*(ie*Math.sin(G*q)+M*Math.cos(G*q))},ae=D*I*ie+M*G,J=D*I*M-ie*G,b=q=>Math.exp(-D*I*q)*(ae*Math.sin(G*q)+J*Math.cos(G*q));else if(D===1){B=fe=>d-Math.exp(-I*fe)*(M+(N+I*M)*fe);const q=N+I*M;b=fe=>Math.exp(-I*fe)*(I*q*fe-N)}else{const q=I*Math.sqrt(D*D-1);B=Re=>{const ze=Math.exp(-D*I*Re),Te=Math.min(q*Re,300);return d-ze*((N+D*I*M)*Math.sinh(Te)+q*M*Math.cosh(Te))/q};const fe=(N+D*I*M)/q,xe=D*I*fe-M*q,Ne=D*I*M-fe*q;b=Re=>{const ze=Math.exp(-D*I*Re),Te=Math.min(q*Re,300);return ze*(xe*Math.sinh(Te)+Ne*Math.cosh(Te))}}const re={calculatedDuration:C&&v||null,velocity:q=>gt(b(q)),next:q=>{if(!C&&D<1){const xe=Math.exp(-D*I*q),Ne=Math.sin(G*q),Re=Math.cos(G*q),ze=d-xe*(ie*Ne+M*Re),Te=gt(xe*(ae*Ne+J*Re));return h.done=Math.abs(Te)<=a&&Math.abs(d-ze)<=u,h.value=h.done?d:ze,h}const fe=B(q);if(C)h.done=q>=v;else{const xe=gt(b(q));h.done=Math.abs(xe)<=a&&Math.abs(d-fe)<=u}return h.value=h.done?d:fe,h},toString:()=>{const q=Math.min(mu(re),ro),fe=jp(xe=>re.next(q*xe).value,q,30);return q+"ms "+fe},toTransition:()=>{}};return re}io.applyToOptions=n=>{const r=b0(n,100,io);return n.ease=r.ease,n.duration=gt(r.duration),n.type="keyframes",n};const Y0=5;function Np(n,r,s){const a=Math.max(r-Y0,0);return lp(s-n(a),r-a)}function Fl({keyframes:n,velocity:r=0,power:s=.8,timeConstant:a=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:g,restDelta:x=.5,restSpeed:y}){const v=n[0],w={done:!1,value:v},C=J=>h!==void 0&&J<h||g!==void 0&&J>g,N=J=>h===void 0?g:g===void 0||Math.abs(h-J)<Math.abs(g-J)?h:g;let D=s*r;const M=v+D,I=d===void 0?M:d(M);I!==M&&(D=I-v);const U=J=>-D*Math.exp(-J/a),B=J=>I+U(J),b=J=>{const re=U(J),q=B(J);w.done=Math.abs(re)<=x,w.value=w.done?I:q};let G,ie;const ae=J=>{C(w.value)&&(G=J,ie=io({keyframes:[w.value,N(w.value)],velocity:Np(B,J,w.value),damping:u,stiffness:f,restDelta:x,restSpeed:y}))};return ae(0),{calculatedDuration:null,next:J=>{let re=!1;return!ie&&G===void 0&&(re=!0,b(J),ae(J)),G!==void 0&&J>=G?ie.next(J-G):(!re&&b(J),w)}}}function X0(n,r,s){const a=[],u=s||An.mix||Ep,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(r){const g=Array.isArray(r)?r[d]||Ct:r;h=Pi(g,h)}a.push(h)}return a}function Q0(n,r,{clamp:s=!0,ease:a,mixer:u}={}){const f=n.length;if(au(f===r.length),f===1)return()=>r[0];if(f===2&&r[0]===r[1])return()=>r[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=X0(r,a,u),g=h.length,x=y=>{if(d&&y<n[0])return r[0];let v=0;if(g>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const w=ki(n[v],n[v+1],y);return h[v](w)};return s?y=>x($t(n[0],n[f-1],y)):x}function q0(n,r){const s=n[n.length-1];for(let a=1;a<=r;a++){const u=ki(0,r,a);n.push(Pe(s,1,u))}}function Z0(n){const r=[0];return q0(r,n.length-1),r}function J0(n,r){return n.map(s=>s*r)}function ev(n,r){return n.map(()=>r||yp).splice(0,n.length-1)}function xi({duration:n=300,keyframes:r,times:s,ease:a="easeInOut"}){const u=l0(a)?a.map(_f):_f(a),f={done:!1,value:r[0]},d=J0(s&&s.length===r.length?s:Z0(r),n),h=Q0(d,r,{ease:Array.isArray(u)?u:ev(r,u)});return{calculatedDuration:n,next:g=>(f.value=h(g),f.done=g>=n,f)}}const tv=n=>n!==null;function ho(n,{repeat:r,repeatType:s="loop"},a,u=1){const f=n.filter(tv),h=u<0||r&&s!=="loop"&&r%2===1?0:f.length-1;return!h||a===void 0?f[h]:a}const nv={decay:Fl,inertia:Fl,tween:xi,keyframes:xi,spring:io};function Mp(n){typeof n.type=="string"&&(n.type=nv[n.type])}class gu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,s){return this.finished.then(r,s)}}const rv=n=>n/100;class so extends gu{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,u;const{motionValue:s}=this.options;s&&s.updatedAt!==rt.now()&&this.tick(rt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(a=this.options).onStop)==null||u.call(a))},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;Mp(r);const{type:s=xi,repeat:a=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=r;let{keyframes:h}=r;const g=s||xi;g!==xi&&typeof h[0]!="number"&&(this.mixKeyframes=Pi(rv,Ep(h[0],h[1])),h=[0,100]);const x=g({...r,keyframes:h});f==="mirror"&&(this.mirroredGenerator=g({...r,keyframes:[...h].reverse(),velocity:-d})),x.calculatedDuration===null&&(x.calculatedDuration=mu(x));const{calculatedDuration:y}=x;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(a+1)-u,this.generator=x}updateTime(r){const s=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(r,s=!1){const{generator:a,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:g}=this;if(this.startTime===null)return a.next(0);const{delay:x=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:C,type:N,onUpdate:D,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-u/this.speed,this.startTime)),s?this.currentTime=r:this.updateTime(r);const I=this.currentTime-x*(this.playbackSpeed>=0?1:-1),U=this.playbackSpeed>=0?I<0:I>u;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let B=this.currentTime,b=a;if(v){const J=Math.min(this.currentTime,u)/h;let re=Math.floor(J),q=J%1;!q&&J>=1&&(q=1),q===1&&re--,re=Math.min(re,v+1),!!(re%2)&&(w==="reverse"?(q=1-q,C&&(q-=C/h)):w==="mirror"&&(b=d)),B=$t(0,1,q)*h}let G;U?(this.delayState.value=y[0],G=this.delayState):G=b.next(B),f&&!U&&(G.value=f(G.value));let{done:ie}=G;!U&&g!==null&&(ie=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const ae=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return ae&&N!==Fl&&(G.value=ho(y,this.options,M,this.speed)),D&&D(G.value),ae&&this.finish(),G}then(r,s){return this.finished.then(r,s)}get duration(){return Tt(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Tt(r)}get time(){return Tt(this.currentTime)}set time(r){r=gt(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=r,this.tick(r))}getGeneratorVelocity(){const r=this.currentTime;if(r<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(r);const s=this.generator.next(r).value;return Np(a=>this.generator.next(a).value,r,s)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;s&&this.driver&&this.updateTime(rt.now()),this.playbackSpeed=r,s&&this.driver&&(this.time=Tt(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:r=B0,startTime:s}=this.options;this.driver||(this.driver=r(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=s??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(rt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var r,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(r=this.options).onComplete)==null||s.call(r)}cancel(){var r,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(r=this.options).onCancel)==null||s.call(r)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),r.observe(this)}}function iv(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const Hn=n=>n*180/Math.PI,Vl=n=>{const r=Hn(Math.atan2(n[1],n[0]));return Il(r)},sv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Vl,rotateZ:Vl,skewX:n=>Hn(Math.atan(n[1])),skewY:n=>Hn(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Il=n=>(n=n%360,n<0&&(n+=360),n),Hf=Vl,Gf=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Kf=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),ov={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gf,scaleY:Kf,scale:n=>(Gf(n)+Kf(n))/2,rotateX:n=>Il(Hn(Math.atan2(n[6],n[5]))),rotateY:n=>Il(Hn(Math.atan2(-n[2],n[0]))),rotateZ:Hf,rotate:Hf,skewX:n=>Hn(Math.atan(n[4])),skewY:n=>Hn(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function _l(n){return n.includes("scale")?1:0}function zl(n,r){if(!n||n==="none")return _l(r);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,u;if(s)a=ov,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=sv,u=h}if(!u)return _l(r);const f=a[r],d=u[1].split(",").map(lv);return typeof f=="function"?f(d):d[f]}const av=(n,r)=>{const{transform:s="none"}=getComputedStyle(n);return zl(s,r)};function lv(n){return parseFloat(n.trim())}const jr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nr=new Set(jr),$f=n=>n===Er||n===Y,uv=new Set(["x","y","z"]),cv=jr.filter(n=>!uv.has(n));function dv(n){const r=[];return cv.forEach(s=>{const a=n.getValue(s);a!==void 0&&(r.push([s,a.get()]),a.set(s.startsWith("scale")?1:0))}),r}const Cn={width:({x:n},{paddingLeft:r="0",paddingRight:s="0",boxSizing:a})=>{const u=n.max-n.min;return a==="border-box"?u:u-parseFloat(r)-parseFloat(s)},height:({y:n},{paddingTop:r="0",paddingBottom:s="0",boxSizing:a})=>{const u=n.max-n.min;return a==="border-box"?u:u-parseFloat(r)-parseFloat(s)},top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>zl(r,"x"),y:(n,{transform:r})=>zl(r,"y")};Cn.translateX=Cn.x;Cn.translateY=Cn.y;const Gn=new Set;let Ol=!1,Bl=!1,bl=!1;function Dp(){if(Bl){const n=Array.from(Gn).filter(a=>a.needsMeasurement),r=new Set(n.map(a=>a.element)),s=new Map;r.forEach(a=>{const u=dv(a);u.length&&(s.set(a,u),a.render())}),n.forEach(a=>a.measureInitialState()),r.forEach(a=>{a.render();const u=s.get(a);u&&u.forEach(([f,d])=>{var h;(h=a.getValue(f))==null||h.set(d)})}),n.forEach(a=>a.measureEndState()),n.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Bl=!1,Ol=!1,Gn.forEach(n=>n.complete(bl)),Gn.clear()}function Lp(){Gn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Bl=!0)})}function fv(){bl=!0,Lp(),Dp(),bl=!1}class yu{constructor(r,s,a,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=a,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Gn.add(this),Ol||(Ol=!0,we.read(Lp),we.resolveKeyframes(Dp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:a,motionValue:u}=this;if(r[0]===null){const f=u==null?void 0:u.get(),d=r[r.length-1];if(f!==void 0)r[0]=f;else if(a&&s){const h=a.readValue(s,d);h!=null&&(r[0]=h)}r[0]===void 0&&(r[0]=d),u&&f===void 0&&u.set(r[0])}iv(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Gn.delete(this)}cancel(){this.state==="scheduled"&&(Gn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hv=n=>n.startsWith("--");function Rp(n,r,s){hv(r)?n.style.setProperty(r,s):n.style[r]=s}const pv={};function Fp(n,r){const s=ap(n);return()=>pv[r]??s()}const mv=Fp(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Vp=Fp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yi=([n,r,s,a])=>`cubic-bezier(${n}, ${r}, ${s}, ${a})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yi([0,.65,.55,1]),circOut:yi([.55,0,1,.45]),backIn:yi([.31,.01,.66,-.59]),backOut:yi([.33,1.53,.69,.99])};function Ip(n,r){if(n)return typeof n=="function"?Vp()?jp(n,r):"ease-out":vp(n)?yi(n):Array.isArray(n)?n.map(s=>Ip(s,r)||Yf.easeOut):Yf[n]}function gv(n,r,s,{delay:a=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:g}={},x=void 0){const y={[r]:s};g&&(y.offset=g);const v=Ip(h,u);Array.isArray(v)&&(y.easing=v);const w={delay:a,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return x&&(w.pseudoElement=x),n.animate(y,w)}function _p(n){return typeof n=="function"&&"applyToOptions"in n}function yv({type:n,...r}){return _p(n)&&Vp()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class zp extends gu{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!r)return;const{element:s,name:a,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:g}=r;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=r,au(typeof r.type!="string");const x=yv(r);this.animation=gv(s,a,u,x,f),x.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=ho(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),Rp(s,a,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var r,s;(s=(r=this.animation).finish)==null||s.call(r)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,a,u;const r=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(r!=null&&r.isConnected)&&((u=(a=this.animation).commitStyles)==null||u.call(a))}get duration(){var s,a;const r=((a=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:a.call(s).duration)||0;return Tt(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Tt(r)}get time(){return Tt(Number(this.animation.currentTime)||0)}set time(r){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gt(r),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(r){this.manualStartTime=this.animation.startTime=r}attachTimeline({timeline:r,rangeStart:s,rangeEnd:a,observe:u}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,r&&mv()?(this.animation.timeline=r,s&&(this.animation.rangeStart=s),a&&(this.animation.rangeEnd=a),Ct):u(this)}}const Op={anticipate:pp,backInOut:hp,circInOut:gp};function vv(n){return n in Op}function xv(n){typeof n.ease=="string"&&vv(n.ease)&&(n.ease=Op[n.ease])}const wl=10;class wv extends zp{constructor(r){xv(r),Mp(r),super(r),r.startTime!==void 0&&r.autoplay!==!1&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:s,onUpdate:a,onComplete:u,element:f,...d}=this.options;if(!s)return;if(r!==void 0){s.set(r);return}const h=new so({...d,autoplay:!1}),g=Math.max(wl,rt.now()-this.startTime),x=$t(0,wl,g-wl),y=h.sample(g).value,{name:v}=this.options;f&&v&&Rp(f,v,y),s.setWithVelocity(h.sample(Math.max(0,g-x)).value,y,x),h.stop()}}const Xf=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(It.test(n)||n==="0")&&!n.startsWith("url("));function Sv(n){const r=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==r)return!0}function kv(n,r,s,a){const u=n[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const f=n[n.length-1],d=Xf(u,r),h=Xf(f,r);return!d||!h?!1:Sv(n)||(s==="spring"||_p(s))&&a}function Ul(n){n.duration=0,n.type="keyframes"}const Bp=new Set(["opacity","clipPath","filter","transform"]),Tv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Cv(n){for(let r=0;r<n.length;r++)if(typeof n[r]=="string"&&Tv.test(n[r]))return!0;return!1}const Av=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pv=ap(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ev(n){var v;const{motionValue:r,name:s,repeatDelay:a,repeatType:u,damping:f,type:d,keyframes:h}=n;if(!(((v=r==null?void 0:r.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:x,transformTemplate:y}=r.owner.getProps();return Pv()&&s&&(Bp.has(s)||Av.has(s)&&Cv(h))&&(s!=="transform"||!y)&&!x&&!a&&u!=="mirror"&&f!==0&&d!=="inertia"}const jv=40;class Nv extends gu{constructor({autoplay:r=!0,delay:s=0,type:a="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:g,motionValue:x,element:y,...v}){var N;super(),this.stop=()=>{var D,M;this._animation&&(this._animation.stop(),(D=this.stopTimeline)==null||D.call(this)),(M=this.keyframeResolver)==null||M.cancel()},this.createdAt=rt.now();const w={autoplay:r,delay:s,type:a,repeat:u,repeatDelay:f,repeatType:d,name:g,motionValue:x,element:y,...v},C=(y==null?void 0:y.KeyframeResolver)||yu;this.keyframeResolver=new C(h,(D,M,I)=>this.onKeyframesResolved(D,M,w,!I),g,x,y),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(r,s,a,u){var I,U;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:g,isHandoff:x,onUpdate:y}=a;this.resolvedAt=rt.now();let v=!0;kv(r,f,d,h)||(v=!1,(An.instantAnimations||!g)&&(y==null||y(ho(r,a,s))),r[0]=r[r.length-1],Ul(a),a.repeat=0);const C={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>jv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...a,keyframes:r},N=v&&!x&&Ev(C),D=(U=(I=C.motionValue)==null?void 0:I.owner)==null?void 0:U.current;let M;if(N)try{M=new wv({...C,element:D})}catch{M=new so(C)}else M=new so(C);M.finished.then(()=>{this.notifyFinished()}).catch(Ct),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(r,s){return this.finished.finally(r).then(()=>{})}get animation(){var r;return this._animation||((r=this.keyframeResolver)==null||r.resume(),fv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var r;this._animation&&this.animation.cancel(),(r=this.keyframeResolver)==null||r.cancel()}}function bp(n,r,s,a=0,u=1){const f=Array.from(n).sort((x,y)=>x.sortNodePosition(y)).indexOf(r),d=n.size,h=(d-1)*a;return typeof s=="function"?s(f,d):u===1?f*a:h-f*a}const Mv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Dv(n){const r=Mv.exec(n);if(!r)return[,];const[,s,a,u]=r;return[`--${s??a}`,u]}function Up(n,r,s=1){const[a,u]=Dv(n);if(!a)return;const f=window.getComputedStyle(r).getPropertyValue(a);if(f){const d=f.trim();return ip(d)?parseFloat(d):d}return du(u)?Up(u,r,s+1):u}const Lv={type:"spring",stiffness:500,damping:25,restSpeed:10},Rv=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Fv={type:"keyframes",duration:.8},Vv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Iv=(n,{keyframes:r})=>r.length>2?Fv:Nr.has(n)?n.startsWith("scale")?Rv(r[1]):Lv:Vv;function Wp(n,r){if(n!=null&&n.inherit&&r){const{inherit:s,...a}=n;return{...r,...a}}return n}function vu(n,r){const s=(n==null?void 0:n[r])??(n==null?void 0:n.default)??n;return s!==n?Wp(s,n):s}const _v=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function zv(n){for(const r in n)if(!_v.has(r))return!0;return!1}const xu=(n,r,s,a={},u,f)=>d=>{const h=vu(a,n)||{},g=h.delay||a.delay||0;let{elapsed:x=0}=a;x=x-gt(g);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-x,onUpdate:w=>{r.set(w),h.onUpdate&&h.onUpdate(w)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:u};zv(h)||Object.assign(y,Iv(n,y)),y.duration&&(y.duration=gt(y.duration)),y.repeatDelay&&(y.repeatDelay=gt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Ul(y),y.delay===0&&(v=!0)),(An.instantAnimations||An.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(v=!0,Ul(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&r.get()!==void 0){const w=ho(y.keyframes,h);if(w!==void 0){we.update(()=>{y.onUpdate(w),y.onComplete()});return}}return h.isSync?new so(y):new Nv(y)};function Qf(n){const r=[{},{}];return n==null||n.values.forEach((s,a)=>{r[0][a]=s.get(),r[1][a]=s.getVelocity()}),r}function wu(n,r,s,a){if(typeof r=="function"){const[u,f]=Qf(a);r=r(s!==void 0?s:n.custom,u,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[u,f]=Qf(a);r=r(s!==void 0?s:n.custom,u,f)}return r}function Kn(n,r,s){const a=n.getProps();return wu(a,r,s!==void 0?s:a.custom,n)}const Hp=new Set(["width","height","top","left","right","bottom",...jr]),qf=30,Ov=n=>!isNaN(parseFloat(n));class Bv{constructor(r,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var f;const u=rt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=rt.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=Ov(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new lu);const a=this.events[r].add(s);return r==="change"?()=>{a(),we.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,s,a){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-a}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var r;(r=this.events.change)==null||r.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>qf)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,qf);return lp(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),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(){var r,s;(r=this.dependents)==null||r.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pr(n,r){return new Bv(n,r)}const Wl=n=>Array.isArray(n);function bv(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,Pr(s))}function Uv(n){return Wl(n)?n[n.length-1]||0:n}function Wv(n,r){const s=Kn(n,r);let{transitionEnd:a={},transition:u={},...f}=s||{};f={...f,...a};for(const d in f){const h=Uv(f[d]);bv(n,d,h)}}const Qe=n=>!!(n&&n.getVelocity);function Hv(n){return!!(Qe(n)&&n.add)}function Hl(n,r){const s=n.getValue("willChange");if(Hv(s))return s.add(r);if(!s&&An.WillChange){const a=new An.WillChange("auto");n.addValue("willChange",a),a.add(r)}}function Su(n){return n.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}const Gv="framerAppearId",Gp="data-"+Su(Gv);function Kp(n){return n.props[Gp]}function Kv({protectedKeys:n,needsAnimating:r},s){const a=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,a}function $p(n,r,{delay:s=0,transitionOverride:a,type:u}={}){let{transition:f,transitionEnd:d,...h}=r;const g=n.getDefaultTransition();f=f?Wp(f,g):g;const x=f==null?void 0:f.reduceMotion;a&&(f=a);const y=[],v=u&&n.animationState&&n.animationState.getState()[u];for(const w in h){const C=n.getValue(w,n.latestValues[w]??null),N=h[w];if(N===void 0||v&&Kv(v,w))continue;const D={delay:s,...vu(f||{},w)},M=C.get();if(M!==void 0&&!C.isAnimating()&&!Array.isArray(N)&&N===M&&!D.velocity){we.update(()=>C.set(N));continue}let I=!1;if(window.MotionHandoffAnimation){const b=Kp(n);if(b){const G=window.MotionHandoffAnimation(b,w,we);G!==null&&(D.startTime=G,I=!0)}}Hl(n,w);const U=x??n.shouldReduceMotion;C.start(xu(w,C,N,U&&Hp.has(w)?{type:!1}:D,n,I));const B=C.animation;B&&y.push(B)}if(d){const w=()=>we.update(()=>{d&&Wv(n,d)});y.length?Promise.all(y).then(w):w()}return y}function Gl(n,r,s={}){var g;const a=Kn(n,r,s.type==="exit"?(g=n.presenceContext)==null?void 0:g.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=a||{};s.transitionOverride&&(u=s.transitionOverride);const f=a?()=>Promise.all($p(n,a,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(x=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:w}=u;return $v(n,r,x,y,v,w,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[x,y]=h==="beforeChildren"?[f,d]:[d,f];return x().then(()=>y())}else return Promise.all([f(),d(s.delay)])}function $v(n,r,s=0,a=0,u=0,f=1,d){const h=[];for(const g of n.variantChildren)g.notify("AnimationStart",r),h.push(Gl(g,r,{...d,delay:s+(typeof a=="function"?0:a)+bp(n.variantChildren,g,a,u,f)}).then(()=>g.notify("AnimationComplete",r)));return Promise.all(h)}function Yv(n,r,s={}){n.notify("AnimationStart",r);let a;if(Array.isArray(r)){const u=r.map(f=>Gl(n,f,s));a=Promise.all(u)}else if(typeof r=="string")a=Gl(n,r,s);else{const u=typeof r=="function"?Kn(n,r,s.custom):r;a=Promise.all($p(n,u,s))}return a.then(()=>{n.notify("AnimationComplete",r)})}const Xv={test:n=>n==="auto",parse:n=>n},Yp=n=>r=>r.test(n),Xp=[Er,Y,Kt,kn,S0,w0,Xv],Zf=n=>Xp.find(Yp(n));function Qv(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||op(n):!0}const qv=new Set(["brightness","contrast","saturate","opacity"]);function Zv(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[a]=s.match(fu)||[];if(!a)return n;const u=s.replace(a,"");let f=qv.has(r)?1:0;return a!==s&&(f*=100),r+"("+f+u+")"}const Jv=/\b([a-z-]*)\(.*?\)/gu,Kl={...It,getAnimatableNone:n=>{const r=n.match(Jv);return r?r.map(Zv).join(" "):n}},$l={...It,getAnimatableNone:n=>{const r=It.parse(n);return It.createTransformer(n)(r.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Jf={...Er,transform:Math.round},ex={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Us,scaleX:Us,scaleY:Us,scaleZ:Us,skew:kn,skewX:kn,skewY:kn,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Ti,originX:Of,originY:Of,originZ:Y},ku={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,...ex,zIndex:Jf,fillOpacity:Ti,strokeOpacity:Ti,numOctaves:Jf},tx={...ku,color:Be,backgroundColor:Be,outlineColor:Be,fill:Be,stroke:Be,borderColor:Be,borderTopColor:Be,borderRightColor:Be,borderBottomColor:Be,borderLeftColor:Be,filter:Kl,WebkitFilter:Kl,mask:$l,WebkitMask:$l},Qp=n=>tx[n],nx=new Set([Kl,$l]);function qp(n,r){let s=Qp(n);return nx.has(s)||(s=It),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const rx=new Set(["auto","none","0"]);function ix(n,r,s){let a=0,u;for(;a<n.length&&!u;){const f=n[a];typeof f=="string"&&!rx.has(f)&&Ar(f).values.length&&(u=n[a]),a++}if(u&&s)for(const f of r)n[f]=qp(s,u)}class sx extends yu{constructor(r,s,a,u,f){super(r,s,a,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:a}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<r.length;y++){let v=r[y];if(typeof v=="string"&&(v=v.trim(),du(v))){const w=Up(v,s.current);w!==void 0&&(r[y]=w),y===r.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!Hp.has(a)||r.length!==2)return;const[u,f]=r,d=Zf(u),h=Zf(f),g=zf(u),x=zf(f);if(g!==x&&Cn[a]){this.needsMeasurement=!0;return}if(d!==h)if($f(d)&&$f(h))for(let y=0;y<r.length;y++){const v=r[y];typeof v=="string"&&(r[y]=parseFloat(v))}else Cn[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:s}=this,a=[];for(let u=0;u<r.length;u++)(r[u]===null||Qv(r[u]))&&a.push(u);a.length&&ix(r,a,s)}measureInitialState(){const{element:r,unresolvedKeyframes:s,name:a}=this;if(!r||!r.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cn[a](r.measureViewportBox(),window.getComputedStyle(r.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&r.getValue(a,u).jump(u,!1)}measureEndState(){var h;const{element:r,name:s,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const u=r.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=a.length-1,d=a[f];a[f]=Cn[s](r.measureViewportBox(),window.getComputedStyle(r.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([g,x])=>{r.getValue(g).set(x)}),this.resolveNoneKeyframes()}}function Zp(n,r,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let a=document;const u=(s==null?void 0:s[n])??a.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(a=>a!=null)}const Jp=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function Ys(n){return sp(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Tu}=xp(queueMicrotask,!1),Vt={x:!1,y:!1};function em(){return Vt.x||Vt.y}function ox(n){return n==="x"||n==="y"?Vt[n]?null:(Vt[n]=!0,()=>{Vt[n]=!1}):Vt.x||Vt.y?null:(Vt.x=Vt.y=!0,()=>{Vt.x=Vt.y=!1})}function tm(n,r){const s=Zp(n),a=new AbortController,u={passive:!0,...r,signal:a.signal};return[s,u,()=>a.abort()]}function ax(n){return!(n.pointerType==="touch"||em())}function lx(n,r,s={}){const[a,u,f]=tm(n,s);return a.forEach(d=>{let h=!1,g=!1,x;const y=()=>{d.removeEventListener("pointerleave",N)},v=M=>{x&&(x(M),x=void 0),y()},w=M=>{h=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),g&&(g=!1,v(M))},C=()=>{h=!0,window.addEventListener("pointerup",w,u),window.addEventListener("pointercancel",w,u)},N=M=>{if(M.pointerType!=="touch"){if(h){g=!0;return}v(M)}},D=M=>{if(!ax(M))return;g=!1;const I=r(d,M);typeof I=="function"&&(x=I,d.addEventListener("pointerleave",N,u))};d.addEventListener("pointerenter",D,u),d.addEventListener("pointerdown",C,u)}),f}const nm=(n,r)=>r?n===r?!0:nm(n,r.parentElement):!1,Cu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,ux=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cx(n){return ux.has(n.tagName)||n.isContentEditable===!0}const dx=new Set(["INPUT","SELECT","TEXTAREA"]);function fx(n){return dx.has(n.tagName)||n.isContentEditable===!0}const Xs=new WeakSet;function eh(n){return r=>{r.key==="Enter"&&n(r)}}function Sl(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const hx=(n,r)=>{const s=n.currentTarget;if(!s)return;const a=eh(()=>{if(Xs.has(s))return;Sl(s,"down");const u=eh(()=>{Sl(s,"up")}),f=()=>Sl(s,"cancel");s.addEventListener("keyup",u,r),s.addEventListener("blur",f,r)});s.addEventListener("keydown",a,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",a),r)};function th(n){return Cu(n)&&!em()}const nh=new WeakSet;function px(n,r,s={}){const[a,u,f]=tm(n,s),d=h=>{const g=h.currentTarget;if(!th(h)||nh.has(h))return;Xs.add(g),s.stopPropagation&&nh.add(h);const x=r(g,h),y=(C,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),Xs.has(g)&&Xs.delete(g),th(C)&&typeof x=="function"&&x(C,{success:N})},v=C=>{y(C,g===window||g===document||s.useGlobalTarget||nm(g,C.target))},w=C=>{y(C,!1)};window.addEventListener("pointerup",v,u),window.addEventListener("pointercancel",w,u)};return a.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Ys(h)&&(h.addEventListener("focus",x=>hx(x,u)),!cx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Au(n){return sp(n)&&"ownerSVGElement"in n}const Qs=new WeakMap;let Tn;const rm=(n,r,s)=>(a,u)=>u&&u[0]?u[0][n+"Size"]:Au(a)&&"getBBox"in a?a.getBBox()[r]:a[s],mx=rm("inline","width","offsetWidth"),gx=rm("block","height","offsetHeight");function yx({target:n,borderBoxSize:r}){var s;(s=Qs.get(n))==null||s.forEach(a=>{a(n,{get width(){return mx(n,r)},get height(){return gx(n,r)}})})}function vx(n){n.forEach(yx)}function xx(){typeof ResizeObserver>"u"||(Tn=new ResizeObserver(vx))}function wx(n,r){Tn||xx();const s=Zp(n);return s.forEach(a=>{let u=Qs.get(a);u||(u=new Set,Qs.set(a,u)),u.add(r),Tn==null||Tn.observe(a)}),()=>{s.forEach(a=>{const u=Qs.get(a);u==null||u.delete(r),u!=null&&u.size||Tn==null||Tn.unobserve(a)})}}const qs=new Set;let Sr;function Sx(){Sr=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};qs.forEach(r=>r(n))},window.addEventListener("resize",Sr)}function kx(n){return qs.add(n),Sr||Sx(),()=>{qs.delete(n),!qs.size&&typeof Sr=="function"&&(window.removeEventListener("resize",Sr),Sr=void 0)}}function rh(n,r){return typeof n=="function"?kx(n):wx(n,r)}function Tx(n){return Au(n)&&n.tagName==="svg"}const Cx=[...Xp,Be,It],Ax=n=>Cx.find(Yp(n)),ih=()=>({translate:0,scale:1,origin:0,originPoint:0}),kr=()=>({x:ih(),y:ih()}),sh=()=>({min:0,max:0}),We=()=>({x:sh(),y:sh()}),Px=new WeakMap;function po(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ci(n){return typeof n=="string"||Array.isArray(n)}const Pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Eu=["initial",...Pu];function mo(n){return po(n.animate)||Eu.some(r=>Ci(n[r]))}function im(n){return!!(mo(n)||n.variants)}function Ex(n,r,s){for(const a in r){const u=r[a],f=s[a];if(Qe(u))n.addValue(a,u);else if(Qe(f))n.addValue(a,Pr(u,{owner:n}));else if(f!==u)if(n.hasValue(a)){const d=n.getValue(a);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(a);n.addValue(a,Pr(d!==void 0?d:u,{owner:n}))}}for(const a in s)r[a]===void 0&&n.removeValue(a);return r}const Yl={current:null},sm={current:!1},jx=typeof window<"u";function Nx(){if(sm.current=!0,!!jx)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>Yl.current=n.matches;n.addEventListener("change",r),r()}else Yl.current=!1}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oo={};function om(n){oo=n}function Mx(){return oo}class Dx{scrapeMotionValuesFromProps(r,s,a){return{}}constructor({parent:r,props:s,presenceContext:a,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:d,visualState:h},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 C=rt.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,we.render(this.render,!1,!0))};const{latestValues:x,renderState:y}=h;this.latestValues=x,this.baseTarget={...x},this.initialValues=s.initial?{...x}:{},this.renderState=y,this.parent=r,this.props=s,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=mo(s),this.isVariantNode=im(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:v,...w}=this.scrapeMotionValuesFromProps(s,{},this);for(const C in w){const N=w[C];x[C]!==void 0&&Qe(N)&&N.set(x[C])}}mount(r){var s,a;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=r,Px.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(sm.current||Nx(),this.shouldReduceMotion=Yl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var r;this.projection&&this.projection.unmount(),Pn(this.notifyUpdate),Pn(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(r=this.parent)==null||r.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const a=this.features[s];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,s){if(this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)(),s.accelerate&&Bp.has(r)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:g,ease:x,duration:y}=s.accelerate,v=new zp({element:this.current,name:r,keyframes:h,times:g,ease:x,duration:gt(y)}),w=d(v);this.valueSubscriptions.set(r,()=>{w(),v.cancel()});return}const a=Nr.has(r);a&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[r]=d,this.props.onUpdate&&we.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{u(),f&&f(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in oo){const s=oo[r];if(!s)continue;const{isEnabled:a,Feature:u}=s;if(!this.features[r]&&u&&a(this.props)&&(this.features[r]=new u(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):We()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let a=0;a<oh.length;a++){const u=oh[a];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=r[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=Ex(this,this.scrapeMotionValuesFromProps(r,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]: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(r){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(r),()=>s.variantChildren.delete(r)}addValue(r,s){const a=this.values.get(r);s!==a&&(a&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let a=this.values.get(r);return a===void 0&&s!==void 0&&(a=Pr(s===null?void 0:s,{owner:this}),this.addValue(r,a)),a}readValue(r,s){let a=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return a!=null&&(typeof a=="string"&&(ip(a)||op(a))?a=parseFloat(a):!Ax(a)&&It.test(s)&&(a=qp(r,s)),this.setBaseTarget(r,Qe(a)?a.get():a)),Qe(a)?a.get():a}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var f;const{initial:s}=this.props;let a;if(typeof s=="string"||typeof s=="object"){const d=wu(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);d&&(a=d[r])}if(s&&a!==void 0)return a;const u=this.getBaseTargetFromProps(this.props,r);return u!==void 0&&!Qe(u)?u:this.initialValues[r]!==void 0&&a===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new lu),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}scheduleRenderMicrotask(){Tu.render(this.render)}}class am extends Dx{constructor(){super(...arguments),this.KeyframeResolver=sx}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){const a=r.style;return a?a[s]:void 0}removeValueFromRenderState(r,{vars:s,style:a}){delete s[r],delete a[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Qe(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class En{constructor(r){this.isMounted=!1,this.node=r}update(){}}function lm({top:n,left:r,right:s,bottom:a}){return{x:{min:r,max:s},y:{min:n,max:a}}}function Lx({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function Rx(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),a=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:a.y,right:a.x}}function kl(n){return n===void 0||n===1}function Xl({scale:n,scaleX:r,scaleY:s}){return!kl(n)||!kl(r)||!kl(s)}function Un(n){return Xl(n)||um(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function um(n){return ah(n.x)||ah(n.y)}function ah(n){return n&&n!=="0%"}function ao(n,r,s){const a=n-s,u=r*a;return s+u}function lh(n,r,s,a,u){return u!==void 0&&(n=ao(n,u,a)),ao(n,s,a)+r}function Ql(n,r=0,s=1,a,u){n.min=lh(n.min,r,s,a,u),n.max=lh(n.max,r,s,a,u)}function cm(n,{x:r,y:s}){Ql(n.x,r.translate,r.scale,r.originPoint),Ql(n.y,s.translate,s.scale,s.originPoint)}const uh=.999999999999,ch=1.0000000000001;function Fx(n,r,s,a=!1){var h;const u=s.length;if(!u)return;r.x=r.y=1;let f,d;for(let g=0;g<u;g++){f=s[g],d=f.projectionDelta;const{visualElement:x}=f.options;x&&x.props.style&&x.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Gt(n.x,-f.scroll.offset.x),Gt(n.y,-f.scroll.offset.y)),d&&(r.x*=d.x.scale,r.y*=d.y.scale,cm(n,d)),a&&Un(f.latestValues)&&Zs(n,f.latestValues,(h=f.layout)==null?void 0:h.layoutBox))}r.x<ch&&r.x>uh&&(r.x=1),r.y<ch&&r.y>uh&&(r.y=1)}function Gt(n,r){n.min+=r,n.max+=r}function dh(n,r,s,a,u=.5){const f=Pe(n.min,n.max,u);Ql(n,r,s,f,a)}function fh(n,r){return typeof n=="string"?parseFloat(n)/100*(r.max-r.min):n}function Zs(n,r,s){const a=s??n;dh(n.x,fh(r.x,a.x),r.scaleX,r.scale,r.originX),dh(n.y,fh(r.y,a.y),r.scaleY,r.scale,r.originY)}function dm(n,r){return lm(Rx(n.getBoundingClientRect(),r))}function Vx(n,r,s){const a=dm(n,s),{scroll:u}=r;return u&&(Gt(a.x,u.offset.x),Gt(a.y,u.offset.y)),a}const Ix={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_x=jr.length;function zx(n,r,s){let a="",u=!0;for(let f=0;f<_x;f++){const d=jr[f],h=n[d];if(h===void 0)continue;let g=!0;if(typeof h=="number")g=h===(d.startsWith("scale")?1:0);else{const x=parseFloat(h);g=d.startsWith("scale")?x===1:x===0}if(!g||s){const x=Jp(h,ku[d]);if(!g){u=!1;const y=Ix[d]||d;a+=`${y}(${x}) `}s&&(r[d]=x)}}return a=a.trim(),s?a=s(r,u?"":a):u&&(a="none"),a}function ju(n,r,s){const{style:a,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const g in r){const x=r[g];if(Nr.has(g)){d=!0;continue}else if(Sp(g)){u[g]=x;continue}else{const y=Jp(x,ku[g]);g.startsWith("origin")?(h=!0,f[g]=y):a[g]=y}}if(r.transform||(d||s?a.transform=zx(r,n.transform,s):a.transform&&(a.transform="none")),h){const{originX:g="50%",originY:x="50%",originZ:y=0}=f;a.transformOrigin=`${g} ${x} ${y}`}}function fm(n,{style:r,vars:s},a,u){const f=n.style;let d;for(d in r)f[d]=r[d];u==null||u.applyProjectionStyles(f,a);for(d in s)f.setProperty(d,s[d])}function hh(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const gi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(Y.test(n))n=parseFloat(n);else return n;const s=hh(n,r.target.x),a=hh(n,r.target.y);return`${s}% ${a}%`}},Ox={correct:(n,{treeScale:r,projectionDelta:s})=>{const a=n,u=It.parse(n);if(u.length>5)return a;const f=It.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*r.x,g=s.y.scale*r.y;u[0+d]/=h,u[1+d]/=g;const x=Pe(h,g,.5);return typeof u[2+d]=="number"&&(u[2+d]/=x),typeof u[3+d]=="number"&&(u[3+d]/=x),f(u)}},ql={borderRadius:{...gi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gi,borderTopRightRadius:gi,borderBottomLeftRadius:gi,borderBottomRightRadius:gi,boxShadow:Ox};function hm(n,{layout:r,layoutId:s}){return Nr.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!ql[n]||n==="opacity")}function Nu(n,r,s){var d;const a=n.style,u=r==null?void 0:r.style,f={};if(!a)return f;for(const h in a)(Qe(a[h])||u&&Qe(u[h])||hm(h,n)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=a[h]);return f}function Bx(n){return window.getComputedStyle(n)}class bx extends am{constructor(){super(...arguments),this.type="html",this.renderInstance=fm}readValueFromInstance(r,s){var a;if(Nr.has(s))return(a=this.projection)!=null&&a.isProjecting?_l(s):av(r,s);{const u=Bx(r),f=(Sp(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(r,{transformPagePoint:s}){return dm(r,s)}build(r,s,a){ju(r,s,a.transformTemplate)}scrapeMotionValuesFromProps(r,s,a){return Nu(r,s,a)}}const Ux={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wx={offset:"strokeDashoffset",array:"strokeDasharray"};function Hx(n,r,s=1,a=0,u=!0){n.pathLength=1;const f=u?Ux:Wx;n[f.offset]=`${-a}`,n[f.array]=`${r} ${s}`}const Gx=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function pm(n,{attrX:r,attrY:s,attrScale:a,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},g,x,y){if(ju(n,h,x),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:w}=n;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox);for(const C of Gx)v[C]!==void 0&&(w[C]=v[C],delete v[C]);r!==void 0&&(v.x=r),s!==void 0&&(v.y=s),a!==void 0&&(v.scale=a),u!==void 0&&Hx(v,u,f,d,!1)}const mm=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"]),gm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Kx(n,r,s,a){fm(n,r,void 0,a);for(const u in r.attrs)n.setAttribute(mm.has(u)?u:Su(u),r.attrs[u])}function ym(n,r,s){const a=Nu(n,r,s);for(const u in n)if(Qe(n[u])||Qe(r[u])){const f=jr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;a[f]=n[u]}return a}class $x extends am{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=We}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(Nr.has(s)){const a=Qp(s);return a&&a.default||0}return s=mm.has(s)?s:Su(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,a){return ym(r,s,a)}build(r,s,a){pm(r,s,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(r,s,a,u){Kx(r,s,a,u)}mount(r){this.isSVGTag=gm(r.tagName),super.mount(r)}}const Yx=Eu.length;function vm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?vm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;s<Yx;s++){const a=Eu[s],u=n.props[a];(Ci(u)||u===!1)&&(r[a]=u)}return r}function xm(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let a=0;a<s;a++)if(r[a]!==n[a])return!1;return!0}const Xx=[...Pu].reverse(),Qx=Pu.length;function qx(n){return r=>Promise.all(r.map(({animation:s,options:a})=>Yv(n,s,a)))}function Zx(n){let r=qx(n),s=ph(),a=!0,u=!1;const f=x=>(y,v)=>{var C;const w=Kn(n,v,x==="exit"?(C=n.presenceContext)==null?void 0:C.custom:void 0);if(w){const{transition:N,transitionEnd:D,...M}=w;y={...y,...M,...D}}return y};function d(x){r=x(n)}function h(x){const{props:y}=n,v=vm(n.parent)||{},w=[],C=new Set;let N={},D=1/0;for(let I=0;I<Qx;I++){const U=Xx[I],B=s[U],b=y[U]!==void 0?y[U]:v[U],G=Ci(b),ie=U===x?B.isActive:null;ie===!1&&(D=I);let ae=b===v[U]&&b!==y[U]&&G;if(ae&&(a||u)&&n.manuallyAnimateOnMount&&(ae=!1),B.protectedKeys={...N},!B.isActive&&ie===null||!b&&!B.prevProp||po(b)||typeof b=="boolean")continue;if(U==="exit"&&B.isActive&&ie!==!0){B.prevResolvedValues&&(N={...N,...B.prevResolvedValues});continue}const J=Jx(B.prevProp,b);let re=J||U===x&&B.isActive&&!ae&&G||I>D&&G,q=!1;const fe=Array.isArray(b)?b:[b];let xe=fe.reduce(f(U),{});ie===!1&&(xe={});const{prevResolvedValues:Ne={}}=B,Re={...Ne,...xe},ze=z=>{re=!0,C.has(z)&&(q=!0,C.delete(z)),B.needsAnimating[z]=!0;const X=n.getValue(z);X&&(X.liveStyle=!1)};for(const z in Re){const X=xe[z],W=Ne[z];if(N.hasOwnProperty(z))continue;let A=!1;Wl(X)&&Wl(W)?A=!xm(X,W):A=X!==W,A?X!=null?ze(z):C.add(z):X!==void 0&&C.has(z)?ze(z):B.protectedKeys[z]=!0}B.prevProp=b,B.prevResolvedValues=xe,B.isActive&&(N={...N,...xe}),(a||u)&&n.blockInitialAnimation&&(re=!1);const Te=ae&&J;re&&(!Te||q)&&w.push(...fe.map(z=>{const X={type:U};if(typeof z=="string"&&(a||u)&&!Te&&n.manuallyAnimateOnMount&&n.parent){const{parent:W}=n,A=Kn(W,z);if(W.enteringChildren&&A){const{delayChildren:L}=A.transition||{};X.delay=bp(W.enteringChildren,n,L)}}return{animation:z,options:X}}))}if(C.size){const I={};if(typeof y.initial!="boolean"){const U=Kn(n,Array.isArray(y.initial)?y.initial[0]:y.initial);U&&U.transition&&(I.transition=U.transition)}C.forEach(U=>{const B=n.getBaseTarget(U),b=n.getValue(U);b&&(b.liveStyle=!0),I[U]=B??null}),w.push({animation:I})}let M=!!w.length;return a&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(M=!1),a=!1,u=!1,M?r(w):Promise.resolve()}function g(x,y){var w;if(s[x].isActive===y)return Promise.resolve();(w=n.variantChildren)==null||w.forEach(C=>{var N;return(N=C.animationState)==null?void 0:N.setActive(x,y)}),s[x].isActive=y;const v=h(x);for(const C in s)s[C].protectedKeys={};return v}return{animateChanges:h,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=ph(),u=!0}}}function Jx(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!xm(r,n):!1}function bn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ph(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}function Zl(n,r){n.min=r.min,n.max=r.max}function Rt(n,r){Zl(n.x,r.x),Zl(n.y,r.y)}function mh(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}const wm=1e-4,e1=1-wm,t1=1+wm,Sm=.01,n1=0-Sm,r1=0+Sm;function it(n){return n.max-n.min}function i1(n,r,s){return Math.abs(n-r)<=s}function gh(n,r,s,a=.5){n.origin=a,n.originPoint=Pe(r.min,r.max,n.origin),n.scale=it(s)/it(r),n.translate=Pe(s.min,s.max,n.origin)-n.originPoint,(n.scale>=e1&&n.scale<=t1||isNaN(n.scale))&&(n.scale=1),(n.translate>=n1&&n.translate<=r1||isNaN(n.translate))&&(n.translate=0)}function wi(n,r,s,a){gh(n.x,r.x,s.x,a?a.originX:void 0),gh(n.y,r.y,s.y,a?a.originY:void 0)}function yh(n,r,s,a=0){const u=a?Pe(s.min,s.max,a):s.min;n.min=u+r.min,n.max=n.min+it(r)}function s1(n,r,s,a){yh(n.x,r.x,s.x,a==null?void 0:a.x),yh(n.y,r.y,s.y,a==null?void 0:a.y)}function vh(n,r,s,a=0){const u=a?Pe(s.min,s.max,a):s.min;n.min=r.min-u,n.max=n.min+it(r)}function lo(n,r,s,a){vh(n.x,r.x,s.x,a==null?void 0:a.x),vh(n.y,r.y,s.y,a==null?void 0:a.y)}function xh(n,r,s,a,u){return n-=r,n=ao(n,1/s,a),u!==void 0&&(n=ao(n,1/u,a)),n}function o1(n,r=0,s=1,a=.5,u,f=n,d=n){if(Kt.test(r)&&(r=parseFloat(r),r=Pe(d.min,d.max,r/100)-d.min),typeof r!="number")return;let h=Pe(f.min,f.max,a);n===f&&(h-=r),n.min=xh(n.min,r,s,h,u),n.max=xh(n.max,r,s,h,u)}function wh(n,r,[s,a,u],f,d){o1(n,r[s],r[a],r[u],r.scale,f,d)}const a1=["x","scaleX","originX"],l1=["y","scaleY","originY"];function Sh(n,r,s,a){wh(n.x,r,a1,s?s.x:void 0,a?a.x:void 0),wh(n.y,r,l1,s?s.y:void 0,a?a.y:void 0)}function kh(n){return n.translate===0&&n.scale===1}function km(n){return kh(n.x)&&kh(n.y)}function Th(n,r){return n.min===r.min&&n.max===r.max}function u1(n,r){return Th(n.x,r.x)&&Th(n.y,r.y)}function Ch(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function Tm(n,r){return Ch(n.x,r.x)&&Ch(n.y,r.y)}function Ah(n){return it(n.x)/it(n.y)}function Ph(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}function Wt(n){return[n("x"),n("y")]}function c1(n,r,s){let a="";const u=n.x.translate/r.x,f=n.y.translate/r.y,d=(s==null?void 0:s.z)||0;if((u||f||d)&&(a=`translate3d(${u}px, ${f}px, ${d}px) `),(r.x!==1||r.y!==1)&&(a+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:x,rotate:y,rotateX:v,rotateY:w,skewX:C,skewY:N}=s;x&&(a=`perspective(${x}px) ${a}`),y&&(a+=`rotate(${y}deg) `),v&&(a+=`rotateX(${v}deg) `),w&&(a+=`rotateY(${w}deg) `),C&&(a+=`skewX(${C}deg) `),N&&(a+=`skewY(${N}deg) `)}const h=n.x.scale*r.x,g=n.y.scale*r.y;return(h!==1||g!==1)&&(a+=`scale(${h}, ${g})`),a||"none"}const Cm=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],d1=Cm.length,Eh=n=>typeof n=="string"?parseFloat(n):n,jh=n=>typeof n=="number"||Y.test(n);function f1(n,r,s,a,u,f){u?(n.opacity=Pe(0,s.opacity??1,h1(a)),n.opacityExit=Pe(r.opacity??1,0,p1(a))):f&&(n.opacity=Pe(r.opacity??1,s.opacity??1,a));for(let d=0;d<d1;d++){const h=Cm[d];let g=Nh(r,h),x=Nh(s,h);if(g===void 0&&x===void 0)continue;g||(g=0),x||(x=0),g===0||x===0||jh(g)===jh(x)?(n[h]=Math.max(Pe(Eh(g),Eh(x),a),0),(Kt.test(x)||Kt.test(g))&&(n[h]+="%")):n[h]=x}(r.rotate||s.rotate)&&(n.rotate=Pe(r.rotate||0,s.rotate||0,a))}function Nh(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const h1=Am(0,.5,mp),p1=Am(.5,.95,Ct);function Am(n,r,s){return a=>a<n?0:a>r?1:s(ki(n,r,a))}function m1(n,r,s){const a=Qe(n)?n:Pr(n);return a.start(xu("",a,r,s)),a.animation}function Ai(n,r,s,a={passive:!0}){return n.addEventListener(r,s,a),()=>n.removeEventListener(r,s)}const g1=(n,r)=>n.depth-r.depth;class y1{constructor(){this.children=[],this.isDirty=!1}add(r){ou(this.children,r),this.isDirty=!0}remove(r){to(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(g1),this.isDirty=!1,this.children.forEach(r)}}function v1(n,r){const s=rt.now(),a=({timestamp:u})=>{const f=u-s;f>=r&&(Pn(a),n(f-r))};return we.setup(a,!0),()=>Pn(a)}function Js(n){return Qe(n)?n.get():n}class x1{constructor(){this.members=[]}add(r){ou(this.members,r);for(let s=this.members.length-1;s>=0;s--){const a=this.members[s];if(a===r||a===this.lead||a===this.prevLead)continue;const u=a.instance;(!u||u.isConnected===!1)&&!a.snapshot&&(to(this.members,a),a.unmount())}r.scheduleRender()}remove(r){if(to(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){var s;for(let a=this.members.indexOf(r)-1;a>=0;a--){const u=this.members[a];if(u.isPresent!==!1&&((s=u.instance)==null?void 0:s.isConnected)!==!1)return this.promote(u),!0}return!1}promote(r,s){var u;const a=this.lead;if(r!==a&&(this.prevLead=a,this.lead=r,r.show(),a)){a.updateSnapshot(),r.scheduleRender();const{layoutDependency:f}=a.options,{layoutDependency:d}=r.options;(f===void 0||f!==d)&&(r.resumeFrom=a,s&&(a.preserveOpacity=!0),a.snapshot&&(r.snapshot=a.snapshot,r.snapshot.latestValues=a.animationValues||a.latestValues),(u=r.root)!=null&&u.isUpdating&&(r.isLayoutDirty=!0)),r.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(r=>{var s,a,u,f,d;(a=(s=r.options).onExitComplete)==null||a.call(s),(d=(u=r.resumingFrom)==null?void 0:(f=u.options).onExitComplete)==null||d.call(f)})}scheduleRender(){this.members.forEach(r=>r.instance&&r.scheduleRender(!1))}removeLeadSnapshot(){var r;(r=this.lead)!=null&&r.snapshot&&(this.lead.snapshot=void 0)}}const eo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tl=["","X","Y","Z"],w1=1e3;let S1=0;function Cl(n,r,s,a){const{latestValues:u}=r;u[n]&&(s[n]=u[n],r.setStaticValue(n,0),a&&(a[n]=0))}function Pm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Kp(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",we,!(u||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&Pm(a)}function Em({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:a,resetTransform:u}){return class{constructor(d={},h=r==null?void 0:r()){this.id=S1++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(C1),this.nodes.forEach(M1),this.nodes.forEach(D1),this.nodes.forEach(A1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new y1)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new lu),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const g=this.eventHandlers.get(d);g&&g.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Au(d)&&!Tx(d),this.instance=d;const{layoutId:h,layout:g,visualElement:x}=this.options;if(x&&!x.current&&x.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||h)&&(this.isLayoutDirty=!0),n){let y,v=0;const w=()=>this.root.updateBlockedByResize=!1;we.read(()=>{v=window.innerWidth}),n(d,()=>{const C=window.innerWidth;C!==v&&(v=C,this.root.updateBlockedByResize=!0,y&&y(),y=v1(w,250),eo.hasAnimatedSinceResize&&(eo.hasAnimatedSinceResize=!1,this.nodes.forEach(Lh)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&x&&(h||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||x.getDefaultTransition()||I1,{onLayoutAnimationStart:D,onLayoutAnimationComplete:M}=x.getProps(),I=!this.targetLayout||!Tm(this.targetLayout,C),U=!v&&w;if(this.options.layoutRoot||this.resumeFrom||U||v&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...vu(N,"layout"),onPlay:D,onComplete:M};(x.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(y,U)}else v||Lh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pn(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(L1),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const x=this.getTransformTemplate();this.prevTransformTemplateValue=x?x(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(E1),this.nodes.forEach(Mh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Dh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j1),this.nodes.forEach(N1),this.nodes.forEach(k1),this.nodes.forEach(T1)):this.nodes.forEach(Dh),this.clearAllSnapshots();const h=rt.now();Xe.delta=$t(0,1e3/60,h-Xe.timestamp),Xe.timestamp=h,Xe.isProcessing=!0,ml.update.process(Xe),ml.preRender.process(Xe),ml.render.process(Xe),Xe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(P1),this.sharedNodes.forEach(R1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,we.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){we.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!it(this.snapshot.measuredBox.x)&&!it(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=We()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const g=a(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!km(this.projectionDelta),g=this.getTransformTemplate(),x=g?g(this.latestValues,""):void 0,y=x!==this.prevTransformTemplateValue;d&&this.instance&&(h||Un(this.latestValues)||y)&&(u(this.instance,x),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return d&&(g=this.removeTransform(g)),_1(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var x;const{visualElement:d}=this.options;if(!d)return We();const h=d.measureViewportBox();if(!(((x=this.scroll)==null?void 0:x.wasRoot)||this.path.some(z1))){const{scroll:y}=this.root;y&&(Gt(h.x,y.offset.x),Gt(h.y,y.offset.y))}return h}removeElementScroll(d){var g;const h=We();if(Rt(h,d),(g=this.scroll)!=null&&g.wasRoot)return h;for(let x=0;x<this.path.length;x++){const y=this.path[x],{scroll:v,options:w}=y;y!==this.root&&v&&w.layoutScroll&&(v.wasRoot&&Rt(h,d),Gt(h.x,v.offset.x),Gt(h.y,v.offset.y))}return h}applyTransform(d,h=!1,g){var y,v;const x=g||We();Rt(x,d);for(let w=0;w<this.path.length;w++){const C=this.path[w];!h&&C.options.layoutScroll&&C.scroll&&C!==C.root&&(Gt(x.x,-C.scroll.offset.x),Gt(x.y,-C.scroll.offset.y)),Un(C.latestValues)&&Zs(x,C.latestValues,(y=C.layout)==null?void 0:y.layoutBox)}return Un(this.latestValues)&&Zs(x,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),x}removeTransform(d){var g;const h=We();Rt(h,d);for(let x=0;x<this.path.length;x++){const y=this.path[x];if(!Un(y.latestValues))continue;let v;y.instance&&(Xl(y.latestValues)&&y.updateSnapshot(),v=We(),Rt(v,y.measurePageBox())),Sh(h,y.latestValues,(g=y.snapshot)==null?void 0:g.layoutBox,v)}return Un(this.latestValues)&&Sh(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==Xe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var C;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=Xe.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=We(),this.targetWithTransforms=We()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Rt(this.target,this.layout.layoutBox),cm(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xl(this.parent.latestValues)||um(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=We(),this.relativeTargetOrigin=We(),lo(this.relativeTargetOrigin,h,g,this.options.layoutAnchor||void 0),Rt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Xe.timestamp&&(g=!1),g)return;const{layout:x,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||y))return;Rt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;Fx(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=We());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mh(this.prevProjectionDelta.x,this.projectionDelta.x),mh(this.prevProjectionDelta.y,this.projectionDelta.y)),wi(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!Ph(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ph(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kr(),this.projectionDelta=kr(),this.projectionDeltaWithTransform=kr()}setAnimationOrigin(d,h=!1){const g=this.snapshot,x=g?g.latestValues:{},y={...this.latestValues},v=kr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const w=We(),C=g?g.source:void 0,N=this.layout?this.layout.source:void 0,D=C!==N,M=this.getStack(),I=!M||M.members.length<=1,U=!!(D&&!I&&this.options.crossfade===!0&&!this.path.some(V1));this.animationProgress=0;let B;this.mixTargetDelta=b=>{const G=b/1e3;Rh(v.x,d.x,G),Rh(v.y,d.y,G),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),F1(this.relativeTarget,this.relativeTargetOrigin,w,G),B&&u1(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=We()),Rt(B,this.relativeTarget)),D&&(this.animationValues=y,f1(y,x,this.latestValues,G,U,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,g,x;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(x=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||x.stop(),this.pendingAnimation&&(Pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(()=>{eo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pr(0)),this.motionValue.jump(0,!1),this.currentAnimation=m1(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(w1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:g,layout:x,latestValues:y}=d;if(!(!h||!g||!x)){if(this!==d&&this.layout&&x&&jm(this.options.animationType,this.layout.layoutBox,x.layoutBox)){g=this.target||We();const v=it(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const w=it(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+w}Rt(h,g),Zs(h,y),wi(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new x1),this.sharedNodes.get(d).add(h);const x=h.options.initialPromotionConfig;h.promote({transition:x?x.transition:void 0,preserveFollowOpacity:x&&x.shouldPreserveFollowOpacity?x.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:g}={}){const x=this.getStack();x&&x.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const x={};g.z&&Cl("z",d,x,this.animationValues);for(let y=0;y<Tl.length;y++)Cl(`rotate${Tl[y]}`,d,x,this.animationValues),Cl(`skew${Tl[y]}`,d,x,this.animationValues);d.render();for(const y in x)d.setStaticValue(y,x[y]),this.animationValues&&(this.animationValues[y]=x[y]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Js(h==null?void 0:h.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Js(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Un(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=x.animationValues||x.latestValues;this.applyTransformsToTarget();let v=c1(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),d.transform=v;const{x:w,y:C}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,x.animationValues?d.opacity=x===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=x===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const N in ql){if(y[N]===void 0)continue;const{correct:D,applyTo:M,isCSSVariable:I}=ql[N],U=v==="none"?y[N]:D(y[N],x);if(M){const B=M.length;for(let b=0;b<B;b++)d[M[b]]=U}else I?this.options.visualElement.renderState.vars[N]=U:d[N]=U}this.options.layoutId&&(d.pointerEvents=x===this?Js(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Mh),this.root.sharedNodes.clear()}}}function k1(n){n.updateLayout()}function T1(n){var s;const r=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&r&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:u}=n.layout,{animationType:f}=n.options,d=r.source!==n.layout.source;if(f==="size")Wt(v=>{const w=d?r.measuredBox[v]:r.layoutBox[v],C=it(w);w.min=a[v].min,w.max=w.min+C});else if(f==="x"||f==="y"){const v=f==="x"?"y":"x";Zl(d?r.measuredBox[v]:r.layoutBox[v],a[v])}else jm(f,r.layoutBox,a)&&Wt(v=>{const w=d?r.measuredBox[v]:r.layoutBox[v],C=it(a[v]);w.max=w.min+C,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+C)});const h=kr();wi(h,a,r.layoutBox);const g=kr();d?wi(g,n.applyTransform(u,!0),r.measuredBox):wi(g,a,r.layoutBox);const x=!km(h);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:w,layout:C}=v;if(w&&C){const N=n.options.layoutAnchor||void 0,D=We();lo(D,r.layoutBox,w.layoutBox,N);const M=We();lo(M,a,C.layoutBox,N),Tm(D,M)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=D,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:r,delta:g,layoutDelta:h,hasLayoutChanged:x,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function C1(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function A1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function P1(n){n.clearSnapshot()}function Mh(n){n.clearMeasurements()}function E1(n){n.isLayoutDirty=!0,n.updateLayout()}function Dh(n){n.isLayoutDirty=!1}function j1(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function N1(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Lh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function M1(n){n.resolveTargetDelta()}function D1(n){n.calcProjection()}function L1(n){n.resetSkewAndRotation()}function R1(n){n.removeLeadSnapshot()}function Rh(n,r,s){n.translate=Pe(r.translate,0,s),n.scale=Pe(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function Fh(n,r,s,a){n.min=Pe(r.min,s.min,a),n.max=Pe(r.max,s.max,a)}function F1(n,r,s,a){Fh(n.x,r.x,s.x,a),Fh(n.y,r.y,s.y,a)}function V1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const I1={duration:.45,ease:[.4,0,.1,1]},Vh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Ih=Vh("applewebkit/")&&!Vh("chrome/")?Math.round:Ct;function _h(n){n.min=Ih(n.min),n.max=Ih(n.max)}function _1(n){_h(n.x),_h(n.y)}function jm(n,r,s){return n==="position"||n==="preserve-aspect"&&!i1(Ah(r),Ah(s),.2)}function z1(n){var r;return n!==n.root&&((r=n.scroll)==null?void 0:r.wasRoot)}const O1=Em({attachResizeListener:(n,r)=>Ai(n,"resize",r),measureScroll:()=>{var n,r;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((r=document.body)==null?void 0:r.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Al={current:void 0},Nm=Em({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Al.current){const n=new O1({});n.mount(window),n.setOptions({layoutScroll:!0}),Al.current=n}return Al.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Mu=_.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function zh(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function B1(...n){return r=>{let s=!1;const a=n.map(u=>{const f=zh(u,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<a.length;u++){const f=a[u];typeof f=="function"?f():zh(n[u],null)}}}}function b1(...n){return _.useCallback(B1(...n),n)}class U1 extends _.Component{getSnapshotBeforeUpdate(r){const s=this.props.childRef.current;if(Ys(s)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=s.offsetParent,u=Ys(a)&&a.offsetWidth||0,f=Ys(a)&&a.offsetHeight||0,d=getComputedStyle(s),h=this.props.sizeRef.current;h.height=parseFloat(d.height),h.width=parseFloat(d.width),h.top=s.offsetTop,h.left=s.offsetLeft,h.right=u-h.width-h.left,h.bottom=f-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function W1({children:n,isPresent:r,anchorX:s,anchorY:a,root:u,pop:f}){var w;const d=_.useId(),h=_.useRef(null),g=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:x}=_.useContext(Mu),y=((w=n.props)==null?void 0:w.ref)??(n==null?void 0:n.ref),v=b1(h,y);return _.useInsertionEffect(()=>{const{width:C,height:N,top:D,left:M,right:I,bottom:U}=g.current;if(r||f===!1||!h.current||!C||!N)return;const B=s==="left"?`left: ${M}`:`right: ${I}`,b=a==="bottom"?`bottom: ${U}`:`top: ${D}`;h.current.dataset.motionPopId=d;const G=document.createElement("style");x&&(G.nonce=x);const ie=u??document.head;return ie.appendChild(G),G.sheet&&G.sheet.insertRule(`
|
||
[data-motion-pop-id="${d}"] {
|
||
position: absolute !important;
|
||
width: ${C}px !important;
|
||
height: ${N}px !important;
|
||
${B}px !important;
|
||
${b}px !important;
|
||
}
|
||
`),()=>{var ae;(ae=h.current)==null||ae.removeAttribute("data-motion-pop-id"),ie.contains(G)&&ie.removeChild(G)}},[r]),m.jsx(U1,{isPresent:r,childRef:h,sizeRef:g,pop:f,children:f===!1?n:_.cloneElement(n,{ref:v})})}const H1=({children:n,initial:r,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:g,root:x})=>{const y=su(G1),v=_.useId();let w=!0,C=_.useMemo(()=>(w=!1,{id:v,initial:r,isPresent:s,custom:u,onExitComplete:N=>{y.set(N,!0);for(const D of y.values())if(!D)return;a&&a()},register:N=>(y.set(N,!1),()=>y.delete(N))}),[s,y,a]);return f&&w&&(C={...C}),_.useMemo(()=>{y.forEach((N,D)=>y.set(D,!1))},[s]),_.useEffect(()=>{!s&&!y.size&&a&&a()},[s]),n=m.jsx(W1,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:g,root:x,children:n}),m.jsx(fo.Provider,{value:C,children:n})};function G1(){return new Map}function Mm(n=!0){const r=_.useContext(fo);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:a,register:u}=r,f=_.useId();_.useEffect(()=>{if(n)return u(f)},[n]);const d=_.useCallback(()=>n&&a&&a(f),[f,a,n]);return!s&&a?[!1,d]:[!0]}const Ws=n=>n.key||"";function Oh(n){const r=[];return _.Children.forEach(n,s=>{_.isValidElement(s)&&r.push(s)}),r}const Cr=({children:n,custom:r,initial:s=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:g="top",root:x})=>{const[y,v]=Mm(d),w=_.useMemo(()=>Oh(n),[n]),C=d&&!y?[]:w.map(Ws),N=_.useRef(!0),D=_.useRef(w),M=su(()=>new Map),I=_.useRef(new Set),[U,B]=_.useState(w),[b,G]=_.useState(w);rp(()=>{N.current=!1,D.current=w;for(let J=0;J<b.length;J++){const re=Ws(b[J]);C.includes(re)?(M.delete(re),I.current.delete(re)):M.get(re)!==!0&&M.set(re,!1)}},[b,C.length,C.join("-")]);const ie=[];if(w!==U){let J=[...w];for(let re=0;re<b.length;re++){const q=b[re],fe=Ws(q);C.includes(fe)||(J.splice(re,0,q),ie.push(q))}return f==="wait"&&ie.length&&(J=ie),G(Oh(J)),B(w),null}const{forceRender:ae}=_.useContext(iu);return m.jsx(m.Fragment,{children:b.map(J=>{const re=Ws(J),q=d&&!y?!1:w===b||C.includes(re),fe=()=>{if(I.current.has(re))return;if(M.has(re))I.current.add(re),M.set(re,!0);else return;let xe=!0;M.forEach(Ne=>{Ne||(xe=!1)}),xe&&(ae==null||ae(),G(D.current),d&&(v==null||v()),a&&a())};return m.jsx(H1,{isPresent:q,initial:!N.current||s?void 0:!1,custom:r,presenceAffectsLayout:u,mode:f,root:x,onExitComplete:q?void 0:fe,anchorX:h,anchorY:g,children:J},re)})})},Dm=_.createContext({strict:!1}),Bh={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"]};let bh=!1;function K1(){if(bh)return;const n={};for(const r in Bh)n[r]={isEnabled:s=>Bh[r].some(a=>!!s[a])};om(n),bh=!0}function Lm(){return K1(),Mx()}function $1(n){const r=Lm();for(const s in n)r[s]={...r[s],...n[s]};om(r)}const Y1=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","propagate","ignoreStrict","viewport"]);function uo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Y1.has(n)}let Rm=n=>!uo(n);function X1(n){typeof n=="function"&&(Rm=r=>r.startsWith("on")?!uo(r):n(r))}try{X1(require("@emotion/is-prop-valid").default)}catch{}function Q1(n,r,s){const a={};for(const u in n)u==="values"&&typeof n.values=="object"||Qe(n[u])||(Rm(u)||s===!0&&uo(u)||!r&&!uo(u)||n.draggable&&u.startsWith("onDrag"))&&(a[u]=n[u]);return a}const go=_.createContext({});function q1(n,r){if(mo(n)){const{initial:s,animate:a}=n;return{initial:s===!1||Ci(s)?s:void 0,animate:Ci(a)?a:void 0}}return n.inherit!==!1?r:{}}function Z1(n){const{initial:r,animate:s}=q1(n,_.useContext(go));return _.useMemo(()=>({initial:r,animate:s}),[Uh(r),Uh(s)])}function Uh(n){return Array.isArray(n)?n.join(" "):n}const Du=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fm(n,r,s){for(const a in r)!Qe(r[a])&&!hm(a,s)&&(n[a]=r[a])}function J1({transformTemplate:n},r){return _.useMemo(()=>{const s=Du();return ju(s,r,n),Object.assign({},s.vars,s.style)},[r])}function ew(n,r){const s=n.style||{},a={};return Fm(a,s,n),Object.assign(a,J1(n,r)),a}function tw(n,r){const s={},a=ew(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=a,s}const Vm=()=>({...Du(),attrs:{}});function nw(n,r,s,a){const u=_.useMemo(()=>{const f=Vm();return pm(f,r,gm(a),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Fm(f,n.style,n),u.style={...f,...u.style}}return u}const rw=["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 Lu(n){return typeof n!="string"||n.includes("-")?!1:!!(rw.indexOf(n)>-1||/[A-Z]/u.test(n))}function iw(n,r,s,{latestValues:a},u,f=!1,d){const g=(d??Lu(n)?nw:tw)(r,a,u,n),x=Q1(r,typeof n=="string",f),y=n!==_.Fragment?{...x,...g,ref:s}:{},{children:v}=r,w=_.useMemo(()=>Qe(v)?v.get():v,[v]);return _.createElement(n,{...y,children:w})}function sw({scrapeMotionValuesFromProps:n,createRenderState:r},s,a,u){return{latestValues:ow(s,a,u,n),renderState:r()}}function ow(n,r,s,a){const u={},f=a(n,{});for(const w in f)u[w]=Js(f[w]);let{initial:d,animate:h}=n;const g=mo(n),x=im(n);r&&x&&!g&&n.inherit!==!1&&(d===void 0&&(d=r.initial),h===void 0&&(h=r.animate));let y=s?s.initial===!1:!1;y=y||d===!1;const v=y?h:d;if(v&&typeof v!="boolean"&&!po(v)){const w=Array.isArray(v)?v:[v];for(let C=0;C<w.length;C++){const N=wu(n,w[C]);if(N){const{transitionEnd:D,transition:M,...I}=N;for(const U in I){let B=I[U];if(Array.isArray(B)){const b=y?B.length-1:0;B=B[b]}B!==null&&(u[U]=B)}for(const U in D)u[U]=D[U]}}}return u}const Im=n=>(r,s)=>{const a=_.useContext(go),u=_.useContext(fo),f=()=>sw(n,r,a,u);return s?f():su(f)},aw=Im({scrapeMotionValuesFromProps:Nu,createRenderState:Du}),lw=Im({scrapeMotionValuesFromProps:ym,createRenderState:Vm}),uw=Symbol.for("motionComponentSymbol");function cw(n,r,s){const a=_.useRef(s);_.useInsertionEffect(()=>{a.current=s});const u=_.useRef(null);return _.useCallback(f=>{var h;f&&((h=n.onMount)==null||h.call(n,f));const d=a.current;if(typeof d=="function")if(f){const g=d(f);typeof g=="function"&&(u.current=g)}else u.current?(u.current(),u.current=null):d(f);else d&&(d.current=f);r&&(f?r.mount(f):r.unmount())},[r])}const _m=_.createContext({});function xr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function dw(n,r,s,a,u,f){var B,b;const{visualElement:d}=_.useContext(go),h=_.useContext(Dm),g=_.useContext(fo),x=_.useContext(Mu),y=x.reducedMotion,v=x.skipAnimations,w=_.useRef(null),C=_.useRef(!1);a=a||h.renderer,!w.current&&a&&(w.current=a(n,{visualState:r,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y,skipAnimations:v,isSVG:f}),C.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));const N=w.current,D=_.useContext(_m);N&&!N.projection&&u&&(N.type==="html"||N.type==="svg")&&fw(w.current,s,u,D);const M=_.useRef(!1);_.useInsertionEffect(()=>{N&&M.current&&N.update(s,g)});const I=s[Gp],U=_.useRef(!!I&&typeof window<"u"&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,I))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,I)));return rp(()=>{C.current=!0,N&&(M.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),U.current&&N.animationState&&N.animationState.animateChanges())}),_.useEffect(()=>{N&&(!U.current&&N.animationState&&N.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var G;(G=window.MotionHandoffMarkAsComplete)==null||G.call(window,I)}),U.current=!1),N.enteringChildren=void 0)}),N}function fw(n,r,s,a){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:g,layoutRoot:x,layoutAnchor:y,layoutCrossfade:v}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:zm(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&xr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,crossfade:v,layoutScroll:g,layoutRoot:x,layoutAnchor:y})}function zm(n){if(n)return n.options.allowProjection!==!1?n.projection:zm(n.parent)}function Pl(n,{forwardMotionProps:r=!1,type:s}={},a,u){a&&$1(a);const f=s?s==="svg":Lu(n),d=f?lw:aw;function h(x,y){let v;const w={..._.useContext(Mu),...x,layoutId:hw(x)},{isStatic:C}=w,N=Z1(x),D=d(x,C);if(!C&&typeof window<"u"){pw();const M=mw(w);v=M.MeasureLayout,N.visualElement=dw(n,D,w,u,M.ProjectionNode,f)}return m.jsxs(go.Provider,{value:N,children:[v&&N.visualElement?m.jsx(v,{visualElement:N.visualElement,...w}):null,iw(n,x,cw(D,N.visualElement,y),D,C,r,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const g=_.forwardRef(h);return g[uw]=n,g}function hw({layoutId:n}){const r=_.useContext(iu).id;return r&&n!==void 0?r+"-"+n:n}function pw(n,r){_.useContext(Dm).strict}function mw(n){const r=Lm(),{drag:s,layout:a}=r;if(!s&&!a)return{};const u={...s,...a};return{MeasureLayout:s!=null&&s.isEnabled(n)||a!=null&&a.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function gw(n,r){if(typeof Proxy>"u")return Pl;const s=new Map,a=(f,d)=>Pl(f,d,n,r),u=(f,d)=>a(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?a:(s.has(d)||s.set(d,Pl(d,void 0,n,r)),s.get(d))})}const yw=(n,r)=>r.isSVG??Lu(n)?new $x(r):new bx(r,{allowProjection:n!==_.Fragment});class vw extends En{constructor(r){super(r),r.animationState||(r.animationState=Zx(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();po(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)==null||r.call(this)}}let xw=0;class ww extends En{constructor(){super(...arguments),this.id=xw++,this.isExitComplete=!1}update(){var f;if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===a)return;if(r&&a===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const g=Kn(this.node,d,h);if(g){const{transition:x,transitionEnd:y,...v}=g;for(const w in v)(f=this.node.getValue(w))==null||f.jump(v[w])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!r);s&&!r&&u.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:r,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const Sw={animation:{Feature:vw},exit:{Feature:ww}};function Ni(n){return{point:{x:n.pageX,y:n.pageY}}}const kw=n=>r=>Cu(r)&&n(r,Ni(r));function Si(n,r,s,a){return Ai(n,r,kw(s),a)}const Om=({current:n})=>n?n.ownerDocument.defaultView:null,Wh=(n,r)=>Math.abs(n-r);function Tw(n,r){const s=Wh(n.x,r.x),a=Wh(n.y,r.y);return Math.sqrt(s**2+a**2)}const Hh=new Set(["auto","scroll"]);class Bm{constructor(r,s,{transformPagePoint:a,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=C=>{this.handleScroll(C.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Hs(this.lastRawMoveEventInfo,this.transformPagePoint));const C=El(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,D=Tw(C.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!D)return;const{point:M}=C,{timestamp:I}=Xe;this.history.push({...M,timestamp:I});const{onStart:U,onMove:B}=this.handlers;N||(U&&U(this.lastMoveEvent,C),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,C)},this.handlePointerMove=(C,N)=>{this.lastMoveEvent=C,this.lastRawMoveEventInfo=N,this.lastMoveEventInfo=Hs(N,this.transformPagePoint),we.update(this.updatePoint,!0)},this.handlePointerUp=(C,N)=>{this.end();const{onEnd:D,onSessionEnd:M,resumeAnimation:I}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=El(C.type==="pointercancel"?this.lastMoveEventInfo:Hs(N,this.transformPagePoint),this.history);this.startEvent&&D&&D(C,U),M&&M(C,U)},!Cu(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=a,this.distanceThreshold=d,this.contextWindow=u||window;const g=Ni(r),x=Hs(g,this.transformPagePoint),{point:y}=x,{timestamp:v}=Xe;this.history=[{...y,timestamp:v}];const{onSessionStart:w}=s;w&&w(r,El(x,this.history)),this.removeListeners=Pi(Si(this.contextWindow,"pointermove",this.handlePointerMove),Si(this.contextWindow,"pointerup",this.handlePointerUp),Si(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(r){let s=r.parentElement;for(;s;){const a=getComputedStyle(s);(Hh.has(a.overflowX)||Hh.has(a.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(r){const s=this.scrollPositions.get(r);if(!s)return;const a=r===window,u=a?{x:window.scrollX,y:window.scrollY}:{x:r.scrollLeft,y:r.scrollTop},f={x:u.x-s.x,y:u.y-s.y};f.x===0&&f.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(r,u),we.update(this.updatePoint,!0))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pn(this.updatePoint)}}function Hs(n,r){return r?{point:r(n.point)}:n}function Gh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function El({point:n},r){return{point:n,delta:Gh(n,bm(r)),offset:Gh(n,Cw(r)),velocity:Aw(r,.1)}}function Cw(n){return n[0]}function bm(n){return n[n.length-1]}function Aw(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,a=null;const u=bm(n);for(;s>=0&&(a=n[s],!(u.timestamp-a.timestamp>gt(r)));)s--;if(!a)return{x:0,y:0};a===n[0]&&n.length>2&&u.timestamp-a.timestamp>gt(r)*2&&(a=n[1]);const f=Tt(u.timestamp-a.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-a.x)/f,y:(u.y-a.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function Pw(n,{min:r,max:s},a){return r!==void 0&&n<r?n=a?Pe(r,n,a.min):Math.max(n,r):s!==void 0&&n>s&&(n=a?Pe(s,n,a.max):Math.min(n,s)),n}function Kh(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function Ew(n,{top:r,left:s,bottom:a,right:u}){return{x:Kh(n.x,s,u),y:Kh(n.y,r,a)}}function $h(n,r){let s=r.min-n.min,a=r.max-n.max;return r.max-r.min<n.max-n.min&&([s,a]=[a,s]),{min:s,max:a}}function jw(n,r){return{x:$h(n.x,r.x),y:$h(n.y,r.y)}}function Nw(n,r){let s=.5;const a=it(n),u=it(r);return u>a?s=ki(r.min,r.max-a,n.min):a>u&&(s=ki(n.min,n.max-u,r.min)),$t(0,1,s)}function Mw(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const Jl=.35;function Dw(n=Jl){return n===!1?n=0:n===!0&&(n=Jl),{x:Yh(n,"left","right"),y:Yh(n,"top","bottom")}}function Yh(n,r,s){return{min:Xh(n,r),max:Xh(n,s)}}function Xh(n,r){return typeof n=="number"?n:n[r]||0}const Lw=new WeakMap;class Rw{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=We(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:s=!1,distanceThreshold:a}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=v=>{s&&this.snapToCursor(Ni(v).point),this.stopAnimation()},d=(v,w)=>{const{drag:C,dragPropagation:N,onDragStart:D}=this.getProps();if(C&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ox(C),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wt(I=>{let U=this.getAxisMotionValue(I).get()||0;if(Kt.test(U)){const{projection:B}=this.visualElement;if(B&&B.layout){const b=B.layout.layoutBox[I];b&&(U=it(b)*(parseFloat(U)/100))}}this.originPoint[I]=U}),D&&we.update(()=>D(v,w),!1,!0),Hl(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:C,dragDirectionLock:N,onDirectionLock:D,onDrag:M}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:I}=w;if(N&&this.currentDirection===null){this.currentDirection=Vw(I),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",w.point,I),this.updateAxis("y",w.point,I),this.visualElement.render(),M&&we.update(()=>M(v,w),!1,!0)},g=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},x=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Bm(r,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:g,resumeAnimation:x},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:a,contextWindow:Om(this.visualElement),element:this.visualElement.current})}stop(r,s){const a=r||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!a)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&we.postRender(()=>h(a,u))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(r,s,a){const{drag:u}=this.getProps();if(!a||!Gs(r,u,this.currentDirection))return;const f=this.getAxisMotionValue(r);let d=this.originPoint[r]+a[r];this.constraints&&this.constraints[r]&&(d=Pw(d,this.constraints[r],this.elastic[r])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:r,dragElastic:s}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;r&&xr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=Ew(a.layoutBox,r):this.constraints=!1,this.elastic=Dw(s),u!==this.constraints&&!xr(r)&&a&&this.constraints&&!this.hasMutatedConstraints&&Wt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Mw(a.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!xr(r))return!1;const a=r.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Vx(a,u.root,this.visualElement.getTransformPagePoint());let d=jw(u.layout.layoutBox,f);if(s){const h=s(Lx(d));this.hasMutatedConstraints=!!h,h&&(d=lm(h))}return d}startAnimation(r){const{drag:s,dragMomentum:a,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},x=Wt(y=>{if(!Gs(y,s,this.currentDirection))return;let v=g&&g[y]||{};(d===!0||d===y)&&(v={min:0,max:0});const w=u?200:1e6,C=u?40:1e7,N={type:"inertia",velocity:a?r[y]:0,bounceStiffness:w,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,N)});return Promise.all(x).then(h)}startAxisValueAnimation(r,s){const a=this.getAxisMotionValue(r);return Hl(this.visualElement,r),a.start(xu(r,a,0,s,this.visualElement,!1))}stopAnimation(){Wt(r=>this.getAxisMotionValue(r).stop())}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,a=this.visualElement.getProps(),u=a[s];return u||this.visualElement.getValue(r,(a.initial?a.initial[r]:void 0)||0)}snapToCursor(r){Wt(s=>{const{drag:a}=this.getProps();if(!Gs(s,a,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s],g=f.get()||0;f.set(r[s]-Pe(d,h,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!xr(s)||!a||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Wt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const g=h.get();u[d]=Nw({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Wt(d=>{if(!Gs(d,r,null))return;const h=this.getAxisMotionValue(d),{min:g,max:x}=this.constraints[d];h.set(Pe(g,x,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Lw.set(this.visualElement,this);const r=this.visualElement.current,s=Si(r,"pointerdown",x=>{const{drag:y,dragListener:v=!0}=this.getProps(),w=x.target,C=w!==r&&fx(w);y&&v&&!C&&this.start(x)});let a;const u=()=>{const{dragConstraints:x}=this.getProps();xr(x)&&x.current&&(this.constraints=this.resolveRefConstraints(),a||(a=Fw(r,x.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),we.read(u);const h=Ai(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:x,hasLayoutChanged:y})=>{this.isDragging&&y&&(Wt(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=x[v].translate,w.set(w.get()+x[v].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),g&&g(),a&&a()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:a=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Jl,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:a,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Qh(n){let r=!0;return()=>{if(r){r=!1;return}n()}}function Fw(n,r,s){const a=rh(n,Qh(s)),u=rh(r,Qh(s));return()=>{a(),u()}}function Gs(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function Vw(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class Iw extends En{constructor(r){super(r),this.removeGroupControls=Ct,this.removeListeners=Ct,this.controls=new Rw(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ct}update(){const{dragControls:r}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};r!==s&&(this.removeGroupControls(),r&&(this.removeGroupControls=r.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const jl=n=>(r,s)=>{n&&we.update(()=>n(r,s),!1,!0)};class _w extends En{constructor(){super(...arguments),this.removePointerDownListener=Ct}onPointerDown(r){this.session=new Bm(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Om(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:a,onPanEnd:u}=this.node.getProps();return{onSessionStart:jl(r),onStart:jl(s),onMove:jl(a),onEnd:(f,d)=>{delete this.session,u&&we.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=Si(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Nl=!1;class zw extends _.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a,layoutId:u}=this.props,{projection:f}=r;f&&(s.group&&s.group.add(f),a&&a.register&&u&&a.register(f),Nl&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eo.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:a,drag:u,isPresent:f}=this.props,{projection:d}=a;return d&&(d.isPresent=f,r.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),Nl=!0,u||r.layoutDependency!==s||s===void 0||r.isPresent!==f?d.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?d.promote():d.relegate()||we.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:r,layoutAnchor:s}=this.props,{projection:a}=r;a&&(a.options.layoutAnchor=s,a.root.didUpdate(),Tu.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a}=this.props,{projection:u}=r;Nl=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),a&&a.deregister&&a.deregister(u))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Um(n){const[r,s]=Mm(),a=_.useContext(iu);return m.jsx(zw,{...n,layoutGroup:a,switchLayoutGroup:_.useContext(_m),isPresent:r,safeToRemove:s})}const Ow={pan:{Feature:_w},drag:{Feature:Iw,ProjectionNode:Nm,MeasureLayout:Um}};function qh(n,r,s){const{props:a}=n;n.animationState&&a.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=a[u];f&&we.postRender(()=>f(r,Ni(r)))}class Bw extends En{mount(){const{current:r}=this.node;r&&(this.unmount=lx(r,(s,a)=>(qh(this.node,a,"Start"),u=>qh(this.node,u,"End"))))}unmount(){}}class bw extends En{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!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=Pi(Ai(this.node.current,"focus",()=>this.onFocus()),Ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zh(n,r,s){const{props:a}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&a.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=a[u];f&&we.postRender(()=>f(r,Ni(r)))}class Uw extends En{mount(){const{current:r}=this.node;if(!r)return;const{globalTapTarget:s,propagate:a}=this.node.props;this.unmount=px(r,(u,f)=>(Zh(this.node,f,"Start"),(d,{success:h})=>Zh(this.node,d,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const eu=new WeakMap,Ml=new WeakMap,Ww=n=>{const r=eu.get(n.target);r&&r(n)},Hw=n=>{n.forEach(Ww)};function Gw({root:n,...r}){const s=n||document;Ml.has(s)||Ml.set(s,{});const a=Ml.get(s),u=JSON.stringify(r);return a[u]||(a[u]=new IntersectionObserver(Hw,{root:n,...r})),a[u]}function Kw(n,r,s){const a=Gw(r);return eu.set(n,s),a.observe(n),()=>{eu.delete(n),a.unobserve(n)}}const $w={some:0,all:1};class Yw extends En{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:r={}}=this.node.getProps(),{root:s,margin:a,amount:u="some",once:f}=r,d={root:s?s.current:void 0,rootMargin:a,threshold:typeof u=="number"?u:$w[u]},h=x=>{const{isIntersecting:y}=x;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),C=y?v:w;C&&C(x)};this.stopObserver=Kw(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(Xw(r,s))&&this.startObserver()}unmount(){var r;(r=this.stopObserver)==null||r.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Xw({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const Qw={inView:{Feature:Yw},tap:{Feature:Uw},focus:{Feature:bw},hover:{Feature:Bw}},qw={layout:{ProjectionNode:Nm,MeasureLayout:Um}},Zw={...Sw,...Qw,...Ow,...qw},ge=gw(Zw,yw);/**
|
||
* @license lucide-react v0.469.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=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wm=(...n)=>n.filter((r,s,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===s).join(" ").trim();/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var eS={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.469.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=_.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:d,...h},g)=>_.createElement("svg",{ref:g,...eS,width:r,height:r,stroke:n,strokeWidth:a?Number(s)*24/Number(r):s,className:Wm("lucide",u),...h},[...d.map(([x,y])=>_.createElement(x,y)),...Array.isArray(f)?f:[f]]));/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const At=(n,r)=>{const s=_.forwardRef(({className:a,...u},f)=>_.createElement(tS,{ref:f,iconNode:r,className:Wm(`lucide-${Jw(n)}`,a),...u}));return s.displayName=`${n}`,s};/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hm=At("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
||
* @license lucide-react v0.469.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=At("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tr=At("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gm=At("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jh=At("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ep=At("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
||
* @license lucide-react v0.469.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=At("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:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Km=At("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tu=At("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
||
* @license lucide-react v0.469.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=At("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const co=At("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nu=At("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),Ft={name:"Khoa.vo",title:"CREATIVE MANAGER & AI INNOVATION LEAD",location:"Ho Chi Minh City, Vietnam",phone:"0398300340",email:"vonguyendangkhoa@gmail.com",linkedin:"linkedin.com/in/khoavo",portfolio:"khoavo.myds.me",summaryHeadline:"Visionary Creative Leader merging Brand Strategy with Generative AI.",summaryBody:`With 9+ years of expertise at global firms like P&G and Phibious, I bridge the gap between artistic direction and high-performance automation. I specialize in designing scalable AI video production workflows and agentic systems that serve Fortune 500 brands while driving measurable growth and operational excellence.
|
||
|
||
Beyond traditional creative direction, my recent evolution into an AI-Powered Developer enables me to architect custom web applications and full-stack deployment pipelines (React, Go, Docker). By unifying deep brand-building experience with hands-on coding and machine learning integration, I transform creative conceptualization into quantifiable, automated, and highly scalable digital realities.`},Ks=[{period:"2012 - 2016",school:"RMIT University",degree:"Bachelor of Multimedia Design",details:"Graduated with Excellence."}],sS=["Creative Direction","Brand Strategy","Team Mentorship","GenAI Workflows","ComfyUI & FLUX","AI Video Systems","Adobe Creative Suite","Motion Graphics","3D Visualization","Full-Stack Dev","Agentic AI","Automation SOPs"],oS=[{role:"AI Creative Lead",company:"Phibious Vietnam",period:"Jun 2025 - Present",highlights:["Spearheaded the transformation of video production workflows via AI and automation, achieving a 60% measurable gain in output volume.","Acted as a creative multiplier, leading regional stakeholders and cross-functional teams to automate end-to-end content lifecycles.","Standardized end-to-end AI video production SOPs—ranging from AI-led scripting to automated localization—ensuring brand compliance across Southeast Asian markets.","Drove Regional Enablement by mentoring 20+ producers on prompt engineering, AI ethics, and workflow standardization."]},{role:"eCOM Design Lead",company:"Procter & Gamble",period:"Sep 2023 - Jun 2025",highlights:["Directed visual strategies for P&G's Hair Care portfolio across SEA, impacting millions of consumers effectively.","Managed end-to-end design lifecycles, ensuring strict brand compliance and high-volume output across regional markets.","Collaborated with global brand teams to localize and scale omnichannel retail experiences."]},{role:"Associate Brand Manager (Design)",company:"P&G Vietnam",period:"Nov 2020 - Sep 2023",highlights:["Developed core visual concepts for major product launches, including packaging and digital touchpoints for regional SEA markets.","Optimized internal design processes, reducing asset turnaround time for regional marketing teams by 30%.","Mastered corporate identity systems, ensuring consistent brand expression across all platforms and physical retail environments."]},{role:"Production Creative Lead",company:"Inn Saigon",period:"Dec 2019 - Nov 2020",highlights:["Directed a multi-disciplinary team of photographers and retouchers for high-profile hospitality clients.","Managed production budgets and resource allocation for 30+ simultaneous client accounts.","Implemented quality control frameworks that reduced post-production errors by 40%."]}],aS=[{name:"KV-Tube",tech:"Go, Next.js, Docker",desc:"Enterprise-grade HLS video streaming platform with custom NAS deployment architecture."},{name:"APIx GenAI",tech:"TypeScript, LLM APIs",desc:"A custom AI image generation portal integrating multiple LLM and Diffusion providers."}],tp=({size:n=100,vnColor:r="#000000",dkColor:s="#333333"})=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:n,height:n,fill:"none",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{stroke:r,d:"M 15 25 L 30 45 L 45 25"}),m.jsx("path",{stroke:r,d:"M 55 45 L 55 25 L 85 45 L 85 25"}),m.jsx("path",{stroke:s,d:"M 15 55 L 30 55 A 10 10 0 0 1 30 75 L 15 75 Z"}),m.jsx("path",{stroke:s,d:"M 55 55 L 55 75 M 85 55 L 55 65 L 85 75"})]}),ce={accent:"#222222",black:"#000000",white:"#FFFFFF",grey:"#444444",muted:"#666666",border:"#DDDDDD"},oe={container:{width:"100%",maxWidth:"210mm",background:ce.white,fontFamily:"'Inter', sans-serif",color:ce.black,margin:"0 auto",boxSizing:"border-box",display:"flex",flexDirection:"column",position:"relative",zIndex:1},documentContainer:{padding:"0",backgroundColor:ce.white,display:"flex",flexDirection:"column"},headerWrapper:{backgroundColor:ce.white,padding:"16mm 18mm 12mm 18mm",width:"100%",boxSizing:"border-box",borderTop:`6mm solid ${ce.black}`,borderBottom:`1px solid ${ce.border}`,marginBottom:"10mm"},topHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10mm"},logoSlot:{border:`2px solid ${ce.black}`,padding:"2mm",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:ce.white},nameTitle:{display:"flex",flexDirection:"column",flex:1,marginLeft:"12mm"},name:{fontSize:"28pt",fontWeight:800,letterSpacing:"-0.02em",color:ce.black,marginBottom:"1mm"},title:{fontSize:"12pt",fontWeight:700,color:ce.muted,letterSpacing:"0.08em",textTransform:"uppercase"},contactInfo:{textAlign:"right",fontSize:"9pt",fontWeight:600,color:ce.black,lineHeight:"1.8"},headerLine:{width:"100%",height:"1.5px",backgroundColor:ce.black,margin:"8mm 0 4mm 0",position:"relative"},headerLineAccent:{position:"absolute",right:"0",top:"0",width:"30%",height:"1.5px",backgroundColor:ce.accent},summaryHeadline:{fontSize:"22pt",fontWeight:800,lineHeight:"1.2",marginBottom:"8mm",color:ce.black,maxWidth:"90%"},summaryParagraph:{fontSize:"11pt",color:ce.grey,marginBottom:"12mm",textAlign:"justify",lineHeight:"1.7",whiteSpace:"pre-wrap"},skillsGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"3mm 10mm"},skillItem:{fontSize:"10pt",display:"flex",alignItems:"center",gap:"4mm",fontWeight:600},skillIcon:{width:"6mm",height:"1.5px",backgroundColor:ce.accent},mainBody:{padding:"0 18mm",flex:1},sectionHeading:{fontSize:"11pt",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.2em",marginBottom:"10mm",color:ce.black,borderLeft:`5mm solid ${ce.accent}`,paddingLeft:"5mm",pageBreakAfter:"avoid",breakAfter:"avoid"},experienceRow:{display:"grid",gridTemplateColumns:"1.3fr 2fr",gap:"12mm",marginBottom:"12mm"},experienceMeta:{display:"flex",flexDirection:"column"},expRole:{fontSize:"13pt",fontWeight:800,marginBottom:"2mm"},expCompany:{fontSize:"10.5pt",fontWeight:600,color:ce.muted},expPeriod:{fontSize:"9.5pt",color:ce.muted,marginTop:"3mm",fontFamily:"monospace",fontWeight:"bold"},expHighlights:{margin:0,paddingLeft:"6mm",listStyleType:"none"},highlightItem:{marginBottom:"4mm",textAlign:"justify",fontSize:"10.5pt",position:"relative",lineHeight:"1.6",pageBreakInside:"avoid",breakInside:"avoid"},highlightBullet:{position:"absolute",left:"-6mm",top:"2.5mm",width:"3.5mm",height:"1px",backgroundColor:ce.accent},techMeta:{fontFamily:"monospace",fontSize:"10pt",color:ce.black,backgroundColor:ce.white,padding:"1.5mm 3mm",borderLeft:`2px solid ${ce.accent}`,border:`1px solid ${ce.border}`,marginTop:"3mm"},footer:{marginTop:"10mm",padding:"10mm 18mm",textAlign:"center",fontSize:"9pt",color:ce.muted,borderTop:`1px solid ${ce.border}`,display:"flex",justifyContent:"space-between",alignItems:"center",pageBreakInside:"avoid",breakInside:"avoid"}};function lS(){return Ft?m.jsx("div",{style:oe.container,className:"print-portfolio-content",children:m.jsxs("div",{style:oe.documentContainer,children:[m.jsxs("div",{style:oe.headerWrapper,children:[m.jsxs("div",{style:oe.topHeader,children:[m.jsx("div",{style:oe.logoSlot,children:m.jsx(tp,{size:64})}),m.jsxs("div",{style:oe.nameTitle,children:[m.jsx("h1",{style:oe.name,children:Ft.name}),m.jsx("div",{style:oe.title,children:Ft.title})]}),m.jsxs("div",{style:oe.contactInfo,children:[m.jsx("div",{children:Ft.email}),m.jsx("div",{children:Ft.phone}),m.jsx("div",{style:{color:ce.muted,textDecoration:"underline"},children:Ft.portfolio})]})]}),m.jsx("div",{style:oe.headerLine,children:m.jsx("div",{style:oe.headerLineAccent})}),m.jsx("div",{style:{...oe.expPeriod,marginBottom:"10mm",textAlign:"right"},children:Ft.location}),m.jsx("h2",{style:oe.summaryHeadline,children:Ft.summaryHeadline}),m.jsx("p",{style:oe.summaryParagraph,children:Ft.summaryBody}),m.jsx("div",{style:{marginBottom:"8mm",fontSize:"10.5pt",fontWeight:900,textTransform:"uppercase",color:ce.black,letterSpacing:"0.15em"},children:"Branded Expertise"}),m.jsx("div",{style:oe.skillsGrid,children:sS.map((n,r)=>m.jsxs("div",{style:oe.skillItem,children:[m.jsx("div",{style:oe.skillIcon}),n]},r))})]}),m.jsxs("div",{style:oe.mainBody,children:[m.jsx("div",{style:oe.sectionHeading,children:"Experience Journey"}),oS.map((n,r)=>m.jsxs("div",{style:oe.experienceRow,children:[m.jsxs("div",{style:oe.experienceMeta,children:[m.jsx("div",{style:oe.expRole,children:n.role}),m.jsx("div",{style:oe.expCompany,children:n.company}),m.jsx("div",{style:oe.expPeriod,children:n.period})]}),m.jsx("ul",{style:oe.expHighlights,children:n.highlights&&n.highlights.map((s,a)=>m.jsxs("li",{style:oe.highlightItem,children:[m.jsx("div",{style:oe.highlightBullet}),s]},a))})]},r)),m.jsx("div",{style:{...oe.sectionHeading,marginTop:"8mm"},children:"Branded Systems & Tech"}),aS.map((n,r)=>m.jsxs("div",{style:oe.experienceRow,children:[m.jsxs("div",{style:oe.experienceMeta,children:[m.jsx("div",{style:{...oe.expRole,fontSize:"12pt"},children:n.name}),m.jsx("div",{style:oe.techMeta,children:n.tech})]}),m.jsx("div",{style:{fontSize:"11pt",color:ce.grey,lineHeight:"1.7"},children:n.desc})]},r)),m.jsx("div",{style:{...oe.sectionHeading,marginTop:"8mm"},children:"Foundation & Recognition"}),m.jsxs("div",{style:oe.experienceRow,children:[m.jsxs("div",{style:oe.experienceMeta,children:[m.jsx("div",{style:oe.expRole,children:Ks[0].school}),m.jsx("div",{style:oe.expPeriod,children:Ks[0].period})]}),m.jsxs("div",{style:{fontSize:"11pt",color:ce.grey},children:[m.jsx("strong",{style:{color:ce.black},children:Ks[0].degree})," (",Ks[0].details,")",m.jsx("br",{}),m.jsx("div",{style:{marginTop:"6mm",borderTop:`1px solid ${ce.border}`,paddingTop:"4mm"},children:m.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr",gap:"3mm"},children:m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"3mm"},children:[m.jsx("div",{style:{...oe.skillIcon,width:"4mm"}}),m.jsx("span",{children:"P&G SEA Digital Awards (Best Digital Campaign, 2024)"})]})})})]})]})]}),m.jsxs("div",{style:oe.footer,children:[m.jsxs("div",{style:{display:"flex",gap:"6mm"},children:[m.jsx("span",{children:Ft.linkedin}),m.jsx("span",{children:Ft.portfolio})]}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4mm"},children:[m.jsx(tp,{size:24}),m.jsx("span",{style:{fontWeight:900,color:ce.black},children:"VNDK // CV"})]})]})]})}):null}const Ht={name:"Vo Nguyen Dang Khoa",phone:"0398300340",email:"vonguyendangkhoa@gmail.com",location:"Ho Chi Minh City, Vietnam",linkedin:"https://www.linkedin.com/in/khoa-vo-76291236/",portfolio:"https://khoavo.myds.me/"},Ut={title:"Creative Manager & AI Innovation Lead",summary:"Visionary Creative Leader with 9+ years of expertise bridging brand strategy, digital design, motion graphics, and cutting-edge generative AI. Currently pioneering AI-augmented creative workflows at Phibious, merging traditional art direction with ComfyUI, Stable Diffusion, and FLUX to redefine what's possible in visual storytelling. Previously led eCommerce design at P&G, shaping digital experiences for millions of consumers across Southeast Asia.",tagline:"Where Design Meets Intelligence",skills:[{category:"AI & Generative Design",items:["ComfyUI","Stable Diffusion","FLUX","Midjourney","RunwayML","Ollama","LM Studio","LoRA Training","ControlNet","IP-Adapter"]},{category:"Design & Creative Tools",items:["Adobe Creative Suite","Figma","After Effects","Premiere Pro","Cinema 4D","Blender","Photoshop","Illustrator","InDesign"]},{category:"Motion & Animation",items:["Motion Graphics","3D Animation","Kinetic Typography","Visual Effects","Character Animation","Storyboarding"]},{category:"Brand & Strategy",items:["Brand Identity","Art Direction","Visual Storytelling","Editorial Design","Packaging Design","Strategic Design"]}],projects:[{id:1,title:"The Language of Poetry & Literature",category:"AI Generated Art",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/08/i2i_1756355661_62547902.png",description:"Exploring the ethereal boundary between reality and imagination through AI-generated visuals. Created with Stable Diffusion, ComfyUI, and custom LoRA training to capture the intangible essence of poetic imagery.",link:"https://portfolio.khoavo.myds.me/2025/08/28/the-language-of-poetry-and-literature/",year:"2025"},{id:2,title:"Delux Perfume – Fineline 2025 Launch",category:"AI Branding & Video",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/08/Delux-Perfume_red.png",description:"End-to-end creative strategy and art direction for premium perfume launch. From AI-generated mood boards and product visuals to cinematic video production, creating a cohesive brand narrative for Southeast Asia market.",link:"https://portfolio.khoavo.myds.me/2025/08/11/giving-art-direction-to-a-brand-a-case-study/",year:"2025"},{id:3,title:"AI Studio Photography",category:"AI-Generated Branding",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/07/img_0317.jpg",description:"Revolutionary approach to professional studio photography using AI. ComfyUI workflows with custom LoRA to generate studio-quality product and portrait images, reducing production costs by 70%.",link:"https://portfolio.khoavo.myds.me/2025/07/27/%F0%9F%A7%A0%F0%9F%93%B8-ai-studio-i-can-do-that-too/",year:"2025"},{id:4,title:"NAVIGATOR – ASIAMARINE Magazine",category:"Editorial Design",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2020/10/navigator-vol1_page_001.webp",description:"Complete editorial design for Vietnam's premier yacht market publication. Art direction, layout design, and visual storytelling for a luxury marine sector brand reaching high-net-worth readers across Asia.",link:"https://portfolio.khoavo.myds.me/2020/10/20/navigator/",year:"2020"},{id:5,title:"PetroVietnam – PCT Corporate Identity",category:"Brand Identity & 3D",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2017/04/cip_mockup2.png",description:"Comprehensive corporate identity for PetroVietnam Transportation. 3D vehicle visualization, logo design, stationery system, and POSM materials creating a cohesive national brand presence.",link:"https://portfolio.khoavo.myds.me/2017/04/10/petrovietnam-pct/",year:"2017"},{id:6,title:"Skyxx – Animated Poster Series",category:"Motion Graphics",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2019/04/aash-3-scaled.jpg",description:"Award-winning weekly animated poster series for entertainment events. Dynamic motion graphics with 3D elements, pushing creative boundaries under tight deadlines while maintaining exceptional quality.",link:"https://portfolio.khoavo.myds.me/2019/02/17/skyxx-poster-animation/",year:"2019"}],experience:[{role:"AI Creative Lead",company:"Phibious Vietnam",period:"2025 - Present",location:"Ho Chi Minh City",highlights:["Spearheaded the transformation of video production workflows via AI and automation, achieving a 60% measurable gain in output volume","Acted as a creative multiplier, leading regional stakeholders and cross-functional teams to automate end-to-end content lifecycles","Designed and deployed Agentic AI systems and custom frameworks for rapid concept-to-video prototyping, serving global Fortune 500 brands","Drove Regional Enablement by establishing SOPs and mentoring 20+ producers on prompt engineering, AI ethics, and workflow standardization"]},{role:"eCommerce Design Lead",company:"Procter & Gamble (P&G)",period:"2020 - 2025",location:"Ho Chi Minh City",highlights:["Led visual strategy for eCommerce platforms across Hair Care category, directly impacting millions of consumers in SEA","Managed end-to-end design projects from concept to execution, aligning with global marketing strategies","Spearheaded the digital transformation of brand assets for omnichannel retail experiences","Mentored junior designers and established design standards adopted across the regional team"]},{role:"Production Creative Lead",company:"INN SaiGon",period:"Dec 2019 - Nov 2020",location:"Ho Chi Minh City",highlights:["Directed photography production for food, product, and event projects with 30+ client accounts","Established comprehensive brand guidelines and visual standards ensuring consistency across deliverables","Optimized post-production workflows, reducing turnaround time by 40%"]},{role:"Regional Head of Design",company:"ASIAMARINE",period:"2018 - 2019",location:"Ho Chi Minh City",highlights:["Led design team creating digital marketing assets, web graphics, and editorial content for luxury yacht brand","Delegated projects to junior designers while maintaining quality control and brand consistency","Collaborated with international teams to localize content for Asian markets"]},{role:"Senior Graphic Designer",company:"EMG - Element Management Group",period:"2017 - 2018",location:"Ho Chi Minh City",highlights:["Created impactful designs for print and digital campaigns for global luxury and lifestyle brands","Expert in photo sourcing, advanced image retouching, and brand identity development","Delivered corporate identity packages for multinational clients"]}],awards:[{title:"Best Digital Campaign",year:"2024",organization:"P&G SEA Digital Awards"},{title:"Outstanding Art Direction",year:"2019",organization:"Vietnam Design Awards"}]},vr={summary:"9-month intensive coding journey from zero to production. Built 5+ deployed applications including video streaming platforms, AI image generators, and music players. Proficient in modern web frameworks, containerization, and cloud deployment. Self-taught developer with a creative background bringing unique problem-solving perspective.",journey:[{month:"MAY '24",title:"The Spark",description:"First deep dive into Next.js. Abandoned manual CSS for Tailwind efficiency."},{month:"JUL '24",title:"First Production App",description:"Built kv-pix AI image generator with multi-provider support (Google Whisk, Meta AI, Grok)."},{month:"SEP '24",title:"Full-Stack Mastery",description:"Created KV-Tube YouTube platform with Go backend + Next.js. Dockerized for Synology NAS."},{month:"NOV '24",title:"The AI Pivot",description:"Fully embraced AI coding. Cursor and v0 became primary development engine."},{month:"DEC '24",title:"Rust Exploration",description:"Built Spotify clone with Rust Axum backend. Advanced system architecture."},{month:"PRESENT",title:"Vibe Ascended",description:"Building complex apps through high-level prompting and intuition."}],skills:{languages:["TypeScript","JavaScript","Go","Rust","Python","HTML/CSS","SQL"],frontend:["React","Next.js","Vite","Tailwind CSS","Shadcn","Framer Motion","Zustand","PWA"],backend:["Node.js","Go (Gin)","Rust (Axum)","Express","REST APIs","WebSocket"],ai:["LLM Integration","Cursor AI","v0","Replit AI","Ollama","Prompt Engineering","Multi-Provider AI APIs"],devops:["Docker","Docker Compose","GitHub Actions","Forgejo CI/CD","Synology NAS","Nginx","SQLite"],tools:["Git","VS Code","Figma","Postman","MongoDB","Prisma","ffmpeg"]},projects:[{name:"KV-Tube",description:"YouTube-like video streaming platform with HLS support, subscriptions, watch history, and PWA. Deployed on Synology NAS via Docker.",tech:["Go (Gin)","Next.js","TypeScript","SQLite","Docker","HLS.js","PWA"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-tube"},{name:"Spotify Clone",description:"Full-featured Spotify-like music player with YouTube Music integration, real-time lyrics, custom playlists, and PWA support.",tech:["React (Vite)","Rust (Axum)","TailwindCSS","YouTube API","PWA"],github:"https://git.khoavo.myds.me/vndangkhoa/spotify-clone"},{name:"kv-pix (APIx)",description:"AI Image Generator powered by Google Whisk, Meta AI, and Grok. Multi-provider support with prompt library and history.",tech:["Next.js 14","TypeScript","Tailwind","Zustand","Docker"],github:"https://git.khoavo.myds.me/vndangkhoa/apix"},{name:"IT CV Portfolio",description:"This terminal-style interactive resume with typing animations and system aesthetics.",tech:["React","Vite","Tailwind","Framer Motion","TypeScript"],github:"https://git.khoavo.myds.me/vndangkhoa/it-cv"},{name:"kv-tiktok-download",description:"Douyin/TikTok video download API with batch processing support.",tech:["Python","FastAPI","yt-dlp"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-tiktok-download"}],experience:[{role:"Creative Technology",company:"Phibious Vietnam",period:"2025 - Present",highlights:["Bridge between creative and technical teams","Develop interactive prototypes and AI-powered tools","Automate creative workflows with custom scripts","Build internal tools for design team productivity"]},{role:"Freelance Developer",company:"Self-Employed",period:"2024 - Present",highlights:["Built 5+ production web applications deployed on cloud and NAS","Integrated AI capabilities (image generation, video processing) into client solutions","Implemented CI/CD pipelines with GitHub/Forgejo Actions","Dockerized applications for easy deployment on various platforms"]}],forgejo:"https://git.khoavo.myds.me/vndangkhoa"},$m=({size:n=36,vnColor:r="#1A1A1A",dkColor:s="#00FF94",className:a=""})=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:n,height:n,fill:"none",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:a,children:[m.jsx("path",{stroke:r,d:"M 15 25 L 30 45 L 45 25"}),m.jsx("path",{stroke:r,d:"M 55 45 L 55 25 L 85 45 L 85 25"}),m.jsx("path",{stroke:s,d:"M 15 55 L 30 55 A 10 10 0 0 1 30 75 L 15 75 Z"}),m.jsx("path",{stroke:s,d:"M 55 55 L 55 75 M 85 55 L 55 65 L 85 75"})]}),uS=({onSelect:n})=>{const[r,s]=_.useState(!1);return m.jsxs(ge.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-50},className:"fixed inset-0 overflow-hidden bg-[#FAFAFA]",children:[m.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center px-6",children:[m.jsxs("div",{className:"absolute inset-0 z-0",children:[m.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[40%] h-[40%] rounded-full bg-slate-100 blur-[120px] opacity-60 animate-pulse"}),m.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] rounded-full bg-slate-200 blur-[120px] opacity-60 animate-pulse",style:{animationDelay:"2s"}})]}),m.jsx("div",{className:"absolute inset-0 opacity-[0.03] bg-[linear-gradient(rgba(0,0,0,0.1)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.1)_1px,transparent_1px)] bg-[size:60px_60px]"}),m.jsx("div",{className:"relative z-10 max-w-5xl w-full text-center",children:m.jsxs(ge.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,ease:[.22,1,.36,1]},children:[m.jsx("div",{className:"overflow-hidden mb-4 py-2 px-4",children:m.jsx(ge.h1,{initial:{y:"100%"},animate:{y:0},transition:{duration:1.2,ease:[.22,1,.36,1],delay:.2},className:"text-[clamp(2rem,6.5vw,7.5rem)] font-serif font-bold text-[#1A1A1A] tracking-tighter leading-tight whitespace-nowrap",style:{textShadow:"0 2px 4px rgba(0,0,0,0.02)"},children:"Vo Nguyen Dang Khoa"})}),m.jsx(ge.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"text-lg md:text-2xl font-serif text-[#1A1A1A]/70 mb-2 italic",children:"Where Design Meets Intelligence"}),m.jsx(ge.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:1},className:"text-[10px] font-bold tracking-[0.4em] text-[#1A1A1A]/30 uppercase mb-10 md:mb-12",children:"Creative Manager & AI Innovation Lead"}),m.jsxs("button",{onClick:()=>n("creative"),className:"hidden md:inline-flex items-center gap-3 px-10 py-5 bg-[#1A1A1A] text-white text-lg font-medium rounded-full hover:bg-black hover:scale-105 transition-all shadow-2xl border-4 border-transparent hover:border-black/5",children:["Explore Portfolio",m.jsx(ge.div,{animate:{x:[0,5,0]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"},children:m.jsx(Tr,{size:22})})]}),m.jsxs("div",{className:"md:hidden flex flex-col gap-4 mt-8",children:[m.jsxs("button",{onClick:()=>n("creative"),className:"flex items-center justify-between px-6 py-5 bg-[#1A1A1A] text-white font-medium rounded-2xl shadow-xl active:scale-[0.98] transition-transform",children:[m.jsxs("span",{className:"flex items-center gap-3",children:[m.jsx(co,{size:18})," Creative Portfolio"]}),m.jsx(Tr,{size:18})]}),m.jsxs("button",{onClick:()=>n("it"),className:"flex items-center justify-between px-6 py-5 border border-[#1A1A1A]/10 text-[#1A1A1A] font-medium rounded-2xl bg-white/50 backdrop-blur-md shadow-sm active:scale-[0.98] transition-transform",children:[m.jsxs("span",{className:"flex items-center gap-3",children:[m.jsx(nu,{size:18})," Developer Side"]}),m.jsx(Tr,{size:18})]}),m.jsx("p",{className:"text-[10px] tracking-widest text-[#999] uppercase mt-2 opacity-60",children:"Select a persona to enter"})]})]})}),m.jsx(ge.div,{initial:{opacity:.5},animate:{opacity:r?0:.5},className:"absolute bottom-12 text-sm text-[#BBB] hidden md:block",children:m.jsxs("span",{className:"flex items-center gap-4",children:[m.jsx("span",{className:"w-12 h-px bg-[#BBB]"}),"Hover right to preview Developer side",m.jsx("span",{className:"w-12 h-px bg-[#BBB]"})]})})]}),m.jsxs(ge.div,{className:"absolute inset-y-0 right-0 w-full md:w-[75%] bg-[#0a0a0a] cursor-pointer hidden md:block z-40 border-l border-[#00FF94]/30",initial:{x:"calc(100% - 60px)"},animate:{x:r?"0%":"calc(100% - 60px)"},transition:{duration:.6,ease:[.22,1,.36,1]},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onClick:()=>n("it"),children:[!r&&m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute left-0 inset-y-0 w-[60px] flex items-center justify-center pointer-events-none",children:m.jsx("span",{className:"rotate-90 text-[10px] tracking-[0.5em] text-[#00FF94]/40 font-mono whitespace-nowrap",children:"DEVELOPER SIDE // PREVIEW"})}),m.jsx("div",{className:"absolute inset-0 opacity-[0.04] bg-[linear-gradient(rgba(0,255,136,0.1)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,136,0.1)_1px,transparent_1px)] bg-[size:25px_25px]"}),m.jsx("div",{className:"relative z-10 w-full h-full flex flex-col items-center justify-center px-8",children:m.jsxs("div",{className:"max-w-md text-center",children:[m.jsx(nu,{size:56,className:"text-[#00FF94] mx-auto mb-6"}),m.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-white font-mono mb-2",children:"DEVELOPER"}),m.jsx("p",{className:"text-[#00FF94]/70 font-mono text-sm tracking-[0.3em] mb-8",children:"FULL-STACK & DEVOPS"}),m.jsxs("p",{className:"text-slate-400 font-mono text-base mb-8 leading-relaxed",children:["9-month coding journey.",m.jsx("br",{}),"Built 5+ production applications.",m.jsx("br",{}),"Self-taught with AI-powered development."]}),m.jsxs("button",{className:"inline-flex items-center gap-2 px-8 py-4 border-2 border-[#00FF94]/40 bg-[#00FF94]/10 text-[#00FF94] font-mono text-base rounded-full hover:bg-[#00FF94]/20 transition-colors",children:["Enter Terminal ",m.jsx(Tr,{size:18})]}),m.jsxs("div",{className:"mt-10 font-mono text-sm text-[#00FF94]/40 text-left space-y-2",children:[m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"}),' stack = ["Go", "Rust", "TS"];']}),m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"})," deployed = 5;"]}),m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"}),' vibe = "S-Tier";']})]})]})})]}),m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:r?0:1},transition:{duration:.4},className:"absolute top-8 left-6 md:left-8 z-50 text-[10px] md:text-lg",children:m.jsxs("div",{className:"text-[#1A1A1A] font-serif font-bold tracking-widest flex items-center gap-2",children:["KHOA.VO ",m.jsx("span",{className:"w-4 md:w-8 h-px bg-[#1A1A1A]/30"})]})})]})},cS=({onComplete:n})=>{const r=_.useRef(null);return _.useEffect(()=>{const s=window.innerWidth,a=window.innerHeight,u=Math.floor(s/8)+5,f=Math.floor(a/10)+5;let d=0;const h=()=>{d+=.08;let y="";for(let v=0;v<f;v++){for(let w=0;w<u;w++){const C=Math.sin(w*.05+d)+Math.cos(v*.05+d*.8)+Math.sin((w+v)*.05+d*1.2);C>1.5?y+="V":C>.8?y+="N":C>.2?y+="D":C>-.2?y+="K":C>-.8?y+="→":C>-1.2?y+="←":C>-1.8?y+="↑":y+="↓"}y+=`
|
||
`}return y},g=setInterval(()=>{r.current&&(r.current.textContent=h())},50),x=setTimeout(()=>{clearInterval(g),n()},5e3);return()=>{clearInterval(g),clearTimeout(x)}},[n]),m.jsxs(ge.div,{exit:{opacity:0,scale:1.05,filter:"blur(5px)",transition:{duration:.8,ease:[.76,0,.24,1]}},className:"fixed inset-0 z-[200] bg-[#FAFAFA] flex items-center justify-center overflow-hidden",children:[m.jsx("pre",{ref:r,className:"text-[#1A1A1A] font-mono font-bold italic text-[10px] md:text-xs leading-[10px] md:leading-[12px] opacity-30 select-none whitespace-pre transform scale-110",style:{letterSpacing:"0.15em"}}),m.jsxs("button",{onClick:n,className:"absolute bottom-8 right-8 z-[210] flex items-center gap-2 text-[10px] md:text-xs font-bold tracking-[0.2em] uppercase text-[#1A1A1A]/50 hover:text-[#1A1A1A] transition-colors bg-white/80 px-4 py-2 backdrop-blur-sm rounded",children:["Click to Skip ",m.jsx("span",{className:"opacity-50",children:"→"})]})]})},dS=({onComplete:n})=>{const[r,s]=_.useState([]),a=["INIT SYSTEM KHOA.VO...","MOUNTING VIRTUAL DOM [OK]","LOADING REACT ROOT [OK]","ESTABLISHING AI SUBSYSTEMS...","AI SUBSYSTEMS [ONLINE]","BYPASSING SECURITY PROTOCOLS...","ACCESS GRANTED."];return _.useEffect(()=>{let u=0;const f=setInterval(()=>{u<a.length?(s(d=>[...d,a[u]]),u++):(clearInterval(f),setTimeout(n,500))},180);return()=>clearInterval(f)},[n]),m.jsx(ge.div,{exit:{opacity:0,scale:1.05,filter:"blur(10px)",transition:{duration:.6,ease:"easeIn"}},className:"fixed inset-0 z-[200] bg-[#0a0a0a] text-[#00FF94] font-mono p-6 md:p-12 flex flex-col justify-end pb-24",children:m.jsxs("div",{className:"space-y-2 opacity-80 text-sm md:text-base",children:[r.map((u,f)=>m.jsxs("div",{children:["> ",u]},f)),r.length<a.length&&m.jsx("div",{className:"animate-pulse",children:"> ▋"})]})})},fS=({onBack:n,onSwitch:r})=>{const[s,a]=_.useState(!0),[u,f]=_.useState(!1),[d,h]=_.useState(null),[g,x]=_.useState([]);_.useEffect(()=>{const v=()=>{f(window.scrollY>400)};return window.addEventListener("scroll",v),()=>window.removeEventListener("scroll",v)},[]);const y=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.useEffect(()=>{if(s)return;const v=setTimeout(()=>{x(Ut.projects.map(w=>w.id))},500);return()=>clearTimeout(v)},[s]),m.jsxs(m.Fragment,{children:[m.jsx(Cr,{children:s&&m.jsx(cS,{onComplete:()=>a(!1)})}),m.jsxs(ge.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"min-h-screen bg-[#FAFAFA] text-[#1A1A1A]",children:[m.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-[#FAFAFA]/90 backdrop-blur-sm border-b border-[#1A1A1A]/10",children:m.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-6 h-16 flex items-center justify-between",children:[m.jsxs("button",{onClick:n,className:"p-2 flex items-center gap-1.5 text-sm md:text-base text-[#1A1A1A]/60 hover:text-[#1A1A1A] transition-colors",children:[m.jsx(Hm,{size:18})," ",m.jsx("span",{className:"hidden md:inline",children:"Back"})]}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsx($m,{size:36,vnColor:"#1A1A1A",dkColor:"#00FF94"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>window.print(),className:"px-3 py-1.5 text-[10px] md:text-xs font-bold uppercase tracking-widest text-[#1A1A1A] border border-[#1A1A1A] rounded-full hover:bg-[#1A1A1A] hover:text-white transition-colors flex items-center gap-2",children:[m.jsx("span",{className:"hidden md:inline",children:"Download CV"}),m.jsx("span",{className:"md:hidden",children:"CV"})]}),m.jsxs("button",{onClick:r,className:"px-4 py-2 text-[10px] md:text-xs text-white bg-[#1A1A1A] border border-[#1A1A1A] rounded-full hover:bg-transparent hover:text-[#1A1A1A] transition-colors flex items-center gap-2",children:[m.jsx(nu,{size:14})," ",m.jsx("span",{className:"hidden md:inline",children:"IT View"}),m.jsx("span",{className:"md:hidden",children:"IT"})]})]})]})}),m.jsx(Cr,{children:u&&m.jsx(ge.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:y,className:"fixed bottom-8 right-6 z-50 p-4 bg-[#1A1A1A] text-white rounded-full shadow-2xl md:hidden",children:m.jsx(Tr,{size:20,className:"-rotate-90"})})}),m.jsxs("main",{className:"pt-20",children:[m.jsx("section",{className:"max-w-5xl mx-auto px-6 py-24 md:py-32",children:m.jsxs(ge.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[m.jsx("p",{className:"text-xs tracking-[0.3em] text-[#666] uppercase mb-4",children:Ut.title}),m.jsx("h1",{className:"text-5xl md:text-7xl font-serif font-bold leading-tight mb-4",children:Ut.tagline}),m.jsx("p",{className:"text-2xl md:text-3xl font-serif text-[#666] mb-8",children:Ht.name}),m.jsx("p",{className:"text-lg text-[#666] max-w-2xl leading-relaxed",children:Ut.summary}),m.jsxs("div",{className:"flex flex-wrap gap-4 mt-8 text-sm text-[#999]",children:[m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(ep,{size:14})," ",Ht.location]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(tu,{size:14})," ",Ht.email]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(iS,{size:14})," ",Ht.phone]})]})]})}),Ut.awards&&Ut.awards.length>0&&m.jsx("section",{className:"max-w-5xl mx-auto px-6 pb-16",children:m.jsx("div",{className:"flex flex-wrap gap-6",children:Ut.awards.map((v,w)=>m.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.1},className:"flex items-center gap-3 bg-[#F5F5F5] px-4 py-2 rounded-full",children:[m.jsx(co,{size:14,className:"text-amber-500"}),m.jsx("span",{className:"text-sm font-medium",children:v.title}),m.jsx("span",{className:"text-xs text-[#999]",children:v.year})]},w))})}),m.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16",children:[m.jsxs(ge.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(rS,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Selected Works"})]}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Ut.projects.map((v,w)=>m.jsxs(ge.div,{initial:{opacity:0,y:30},animate:{opacity:g.includes(v.id)?1:0,y:g.includes(v.id)?0:30},transition:{duration:.6,delay:w*.1},className:"group cursor-pointer",onClick:()=>h(v),children:[m.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden bg-slate-200 mb-4",children:[m.jsx("img",{src:v.image,alt:v.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),m.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors duration-300"}),m.jsx("span",{className:"absolute top-4 right-4 bg-white/90 px-3 py-1 text-xs font-medium",children:v.year})]}),m.jsx("p",{className:"text-xs tracking-widest text-[#666] uppercase mb-1",children:v.category}),m.jsx("h3",{className:"text-lg font-serif font-semibold group-hover:text-[#666] transition-colors",children:v.title})]},v.id))})]}),m.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16 bg-[#F5F5F5]",children:[m.jsxs(ge.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(co,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Expertise"})]}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:Ut.skills.map((v,w)=>m.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.1},children:[m.jsx("h3",{className:"text-sm font-bold text-[#1A1A1A] mb-4 pb-2 border-b border-[#1A1A1A]/10",children:v.category}),m.jsx("div",{className:"flex flex-wrap gap-2",children:v.items.map(C=>m.jsx("span",{className:"text-xs text-[#666] bg-white px-3 py-1 border border-[#1A1A1A]/10",children:C},C))})]},v.category))})]}),m.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[m.jsxs(ge.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(nS,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Professional Journey"})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-px bg-[#1A1A1A]/10"}),m.jsx("div",{className:"space-y-10",children:Ut.experience.map((v,w)=>m.jsxs(ge.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:w*.1},className:"relative pl-8",children:[m.jsx("div",{className:"absolute left-[-3px] top-2 w-2 h-2 bg-[#1A1A1A] rounded-full"}),m.jsxs("div",{className:"flex flex-col md:flex-row md:items-start gap-2 md:gap-6 mb-2",children:[m.jsx("div",{className:"text-sm font-medium text-[#1A1A1A] shrink-0",children:v.period}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-xl font-bold text-[#1A1A1A]",children:v.role}),m.jsxs("div",{className:"flex items-center gap-2 text-[#666] mt-1",children:[m.jsx("span",{className:"font-medium",children:v.company}),v.location&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#999]",children:"•"}),m.jsx("span",{className:"text-sm",children:v.location})]})]})]})]}),m.jsx("ul",{className:"text-[#666] space-y-2 mt-3",children:v.highlights.map((C,N)=>m.jsxs("li",{className:"leading-relaxed flex items-start gap-2",children:[m.jsx("span",{className:"w-1.5 h-1.5 bg-[#1A1A1A]/30 rounded-full mt-2 shrink-0"}),m.jsx("span",{children:C})]},N))})]},w))})]})]}),m.jsxs("footer",{className:"max-w-7xl mx-auto px-6 py-16 border-t border-[#1A1A1A]/10",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-8",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-2xl font-serif font-bold mb-2",children:"Let's Create Together"}),m.jsx("p",{className:"text-[#666]",children:"Open for creative collaborations and opportunities"})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx("a",{href:Ht.linkedin,target:"_blank",rel:"noreferrer",className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(Km,{size:20})}),m.jsx("a",{href:Ht.email,className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(tu,{size:20})}),m.jsx("a",{href:Ht.portfolio,target:"_blank",rel:"noreferrer",className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(ep,{size:20})})]})]}),m.jsxs("p",{className:"text-center text-xs text-[#999] mt-12",children:["© ",new Date().getFullYear()," Vo Nguyen Dang Khoa. All rights reserved."]})]})]}),m.jsx(Cr,{children:d&&m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-sm p-8",onClick:()=>h(null),children:m.jsxs(ge.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:"bg-[#FAFAFA] max-w-4xl w-full rounded-lg overflow-hidden",onClick:v=>v.stopPropagation(),children:[m.jsx("img",{src:d.image,alt:d.title,className:"w-full h-64 md:h-96 object-cover"}),m.jsxs("div",{className:"p-8",children:[m.jsx("p",{className:"text-xs tracking-widest text-[#666] uppercase mb-2",children:d.category}),m.jsx("h3",{className:"text-2xl font-serif font-bold mb-4",children:d.title}),m.jsx("p",{className:"text-[#666] mb-6",children:d.description}),m.jsxs("a",{href:d.link,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-[#1A1A1A] border-b border-[#1A1A1A] pb-1 hover:opacity-60",children:["View Project ",m.jsx(Gm,{size:14})]})]})]})})})]})]})},hS=({onBack:n,onSwitch:r})=>{const[s,a]=_.useState(!0),[u,f]=_.useState("about"),[d,h]=_.useState(""),[g,x]=_.useState(!1),y=`> whoami
|
||
|
||
Vo Nguyen Dang Khoa
|
||
AI-Powered Developer
|
||
9-month coding journey from zero to production`;_.useEffect(()=>{const w=()=>{x(window.scrollY>400)};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[]);const v=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.useEffect(()=>{if(s)return;let w=0;const C=setInterval(()=>{w<y.length?(h(y.slice(0,w+1)),w++):clearInterval(C)},30);return()=>clearInterval(C)},[s]),m.jsxs(m.Fragment,{children:[m.jsx(Cr,{children:s&&m.jsx(dS,{onComplete:()=>a(!1)})}),m.jsxs(ge.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"min-h-screen bg-[#0a0a0a] text-[#00FF94] font-mono",children:[m.jsx(Cr,{children:g&&m.jsx(ge.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:v,className:"fixed bottom-8 right-6 z-50 p-4 bg-[#00FF94] text-[#0a0a0a] rounded-full shadow-[0_0_20px_rgba(0,255,148,0.3)] md:hidden",children:m.jsx(Tr,{size:20,className:"-rotate-90"})})}),m.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-[#0a0a0a]/90 backdrop-blur-sm border-b border-[#00FF94]/20",children:m.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-14 flex items-center justify-between",children:[m.jsxs("button",{onClick:n,className:"p-2 -ml-2 flex items-center gap-1.5 text-xs text-[#00FF94]/60 hover:text-[#00FF94] transition-colors uppercase",children:[m.jsx(Hm,{size:16})," ",m.jsx("span",{className:"hidden md:inline",children:"Exit"})]}),m.jsx("div",{className:"flex items-center justify-center opacity-90 drop-shadow-[0_0_5px_rgba(0,255,148,0.3)]",children:m.jsx($m,{size:32,vnColor:"#FFFFFF",dkColor:"#00FF94"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>window.print(),className:"px-3 py-1.5 text-[10px] md:text-xs text-[#00FF94] border border-[#00FF94] rounded hover:bg-[#00FF94] hover:text-[#0a0a0a] transition-colors flex items-center gap-1.5 font-bold uppercase",children:[m.jsx("span",{className:"hidden md:inline",children:"Download CV"}),m.jsx("span",{className:"md:hidden",children:"CV"})]}),m.jsxs("button",{onClick:r,className:"px-3 py-1.5 text-[10px] md:text-xs text-[#0a0a0a] bg-[#00FF94] border border-[#00FF94] rounded hover:bg-transparent hover:text-[#00FF94] transition-colors flex items-center gap-1.5 uppercase font-bold",children:[m.jsx(co,{size:12})," ",m.jsx("span",{className:"hidden md:inline",children:"Design View"}),m.jsx("span",{className:"md:hidden",children:"Design"})]})]})]})}),m.jsx("main",{className:"pt-16",children:m.jsxs("div",{className:"max-w-5xl mx-4 md:mx-auto",children:[m.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-[#111] border border-[#00FF94]/20 border-b-0 rounded-t-lg",children:[m.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/50"}),m.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500/50"}),m.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500/50"}),m.jsx("span",{className:"ml-4 text-xs text-[#00FF94]/50",children:"khoa@portfolio ~"})]}),m.jsxs("div",{className:"border border-[#00FF94]/20 bg-[#0a0a0a] p-6 md:p-8 min-h-[80vh]",children:[m.jsx("div",{className:"flex gap-2 overflow-x-auto pb-4 mb-4 md:mb-8 no-scrollbar touch-pan-x",children:["about","skills","projects","experience"].map(w=>m.jsx("button",{onClick:()=>f(w),className:`px-5 py-3 md:px-4 md:py-2 text-[10px] md:text-xs border transition-colors whitespace-nowrap shrink-0 ${u===w?"border-[#00FF94] bg-[#00FF94]/10 text-[#00FF94]":"border-[#00FF94]/30 text-[#00FF94]/50 hover:text-[#00FF94] hover:border-[#00FF94]/50"}`,children:w.toUpperCase()},w))}),u==="about"&&m.jsxs(ge.div,{initial:{opacity:0},animate:{opacity:1},children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"SYSTEM STARTED..."}),m.jsxs("pre",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:[d,m.jsx("span",{className:"animate-pulse",children:"▋"})]}),m.jsxs("div",{className:"mt-8 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-2",children:"> echo $JOURNEY"}),m.jsx("div",{className:"space-y-4",children:vr.journey.map((w,C)=>m.jsxs("div",{className:"flex gap-4",children:[m.jsx("span",{className:"text-[#00D9FF] text-xs shrink-0",children:w.month}),m.jsxs("div",{children:[m.jsx("span",{className:"text-white",children:w.title}),m.jsxs("span",{className:"text-[#00FF94]/50",children:[" — ",w.description]})]})]},C))})]}),m.jsxs("div",{className:"mt-8 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"> cat summary.txt"}),m.jsx("p",{className:"text-sm text-slate-300 leading-relaxed max-w-xl",children:vr.summary})]})]}),u==="skills"&&m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:1},children:Object.entries(vr.skills).map(([w,C])=>m.jsxs("div",{className:"mb-6",children:[m.jsx("div",{className:"text-xs text-[#00D9FF] mb-2 uppercase tracking-wider",children:w}),m.jsx("div",{className:"flex flex-wrap gap-2",children:C.map((N,D)=>m.jsx("span",{className:"text-sm border border-[#00FF94]/30 px-3 py-1 bg-[#00FF94]/5",children:N},D))})]},w))}),u==="projects"&&m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"space-y-6",children:vr.projects.map((w,C)=>m.jsxs("div",{className:"border border-[#00FF94]/20 p-4 hover:border-[#00FF94]/40 transition-colors",children:[m.jsxs("div",{className:"flex items-center justify-between mb-2",children:[m.jsx("span",{className:"text-white font-bold",children:w.name}),m.jsxs("div",{className:"flex gap-2",children:[w.demo&&m.jsx("a",{href:w.demo,target:"_blank",rel:"noreferrer",className:"text-[#00D9FF] hover:text-[#00FF94]",title:"Live Demo",children:m.jsx(Gm,{size:16})}),m.jsx("a",{href:w.github,target:"_blank",rel:"noreferrer",className:"text-[#00FF94] hover:text-[#00D9FF]",children:m.jsx(Jh,{size:16})})]})]}),m.jsx("p",{className:"text-sm text-slate-400 mb-3",children:w.description}),m.jsx("div",{className:"flex flex-wrap gap-2",children:w.tech.map((N,D)=>m.jsx("span",{className:"text-xs bg-[#00FF94]/10 px-2 py-0.5 text-[#00FF94]",children:N},D))})]},C))})}),u==="experience"&&m.jsx(ge.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"space-y-6",children:vr.experience.map((w,C)=>m.jsxs("div",{className:"border-l-2 border-[#00FF94] pl-4",children:[m.jsxs("div",{className:"flex justify-between items-start mb-2",children:[m.jsx("span",{className:"text-white font-bold",children:w.role}),m.jsx("span",{className:"text-xs text-[#00FF94]/50",children:w.period})]}),m.jsx("div",{className:"text-sm text-[#00D9FF] mb-2",children:w.company}),m.jsx("ul",{className:"text-sm text-slate-400 space-y-1",children:w.highlights.map((N,D)=>m.jsxs("li",{children:["• ",N]},D))})]},C))})}),m.jsxs("div",{className:"mt-12 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"> exit --contact"}),m.jsxs("div",{className:"flex flex-wrap gap-4",children:[m.jsxs("a",{href:`mailto:${Ht.email}`,className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(tu,{size:14})," ",Ht.email]}),m.jsxs("a",{href:vr.forgejo,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(Jh,{size:14})," git.khoavo.myds.me/vndangkhoa"]}),m.jsxs("a",{href:Ht.linkedin,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(Km,{size:14})," linkedin.com/in/khoa-vo-76291236"]})]})]})]})]})}),m.jsxs("footer",{className:"py-8 text-center text-xs text-[#00FF94]/30",children:["khoa@portfolio:~$ echo ",new Date().getFullYear()," © Vo Nguyen Dang Khoa"]})]})]})};function pS(){const[n,r]=_.useState("landing"),[s,a]=_.useState(!1),u=d=>{r(d)},f=()=>{r("landing")};return m.jsxs(m.Fragment,{children:[m.jsxs(Cr,{mode:"wait",children:[n==="landing"&&m.jsx(uS,{onSelect:u},"landing"),n==="creative"&&m.jsx(fS,{onBack:f,onSwitch:()=>r("it")},"creative"),n==="it"&&m.jsx(hS,{onBack:f,onSwitch:()=>r("creative")},"it")]}),m.jsx("div",{className:"print-portfolio",children:m.jsx(lS,{})})]})}e0.createRoot(document.getElementById("root")).render(m.jsx($y.StrictMode,{children:m.jsx(pS,{})}));
|