(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();var Br={exports:{}},ul={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ay;function J1(){if(ay)return ul;ay=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var y in c)y!=="key"&&(d[y]=c[y])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return ul.Fragment=l,ul.jsx=u,ul.jsxs=u,ul}var ly;function k1(){return ly||(ly=1,Br.exports=J1()),Br.exports}var Lt=k1(),Lr={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sy;function F1(){if(sy)return at;sy=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),T=Symbol.iterator;function x(A){return A===null||typeof A!="object"?null:(A=T&&A[T]||A["@@iterator"],typeof A=="function"?A:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,j={};function w(A,B,X){this.props=A,this.context=B,this.refs=j,this.updater=X||V}w.prototype.isReactComponent={},w.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,B,"setState")},w.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function q(){}q.prototype=w.prototype;function H(A,B,X){this.props=A,this.context=B,this.refs=j,this.updater=X||V}var G=H.prototype=new q;G.constructor=H,N(G,w.prototype),G.isPureReactComponent=!0;var W=Array.isArray;function ut(){}var J={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function ct(A,B,X){var Q=X.ref;return{$$typeof:i,type:A,key:B,ref:Q!==void 0?Q:null,props:X}}function $(A,B){return ct(A.type,B,A.props)}function gt(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function dt(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(X){return B[X]})}var Jt=/\/+/g;function Rt(A,B){return typeof A=="object"&&A!==null&&A.key!=null?dt(""+A.key):B.toString(36)}function zt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ut,ut):(A.status="pending",A.then(function(B){A.status==="pending"&&(A.status="fulfilled",A.value=B)},function(B){A.status==="pending"&&(A.status="rejected",A.reason=B)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,B,X,Q,it){var rt=typeof A;(rt==="undefined"||rt==="boolean")&&(A=null);var bt=!1;if(A===null)bt=!0;else switch(rt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(A.$$typeof){case i:case l:bt=!0;break;case v:return bt=A._init,O(bt(A._payload),B,X,Q,it)}}if(bt)return it=it(A),bt=Q===""?"."+Rt(A,0):Q,W(it)?(X="",bt!=null&&(X=bt.replace(Jt,"$&/")+"/"),O(it,B,X,"",function(ma){return ma})):it!=null&&(gt(it)&&(it=$(it,X+(it.key==null||A&&A.key===it.key?"":(""+it.key).replace(Jt,"$&/")+"/")+bt)),B.push(it)),1;bt=0;var se=Q===""?".":Q+":";if(W(A))for(var Ht=0;Ht<A.length;Ht++)Q=A[Ht],rt=se+Rt(Q,Ht),bt+=O(Q,B,X,rt,it);else if(Ht=x(A),typeof Ht=="function")for(A=Ht.call(A),Ht=0;!(Q=A.next()).done;)Q=Q.value,rt=se+Rt(Q,Ht++),bt+=O(Q,B,X,rt,it);else if(rt==="object"){if(typeof A.then=="function")return O(zt(A),B,X,Q,it);throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return bt}function Y(A,B,X){if(A==null)return A;var Q=[],it=0;return O(A,Q,"","",function(rt){return B.call(X,rt,it++)}),Q}function Z(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(X){(A._status===0||A._status===-1)&&(A._status=1,A._result=X)},function(X){(A._status===0||A._status===-1)&&(A._status=2,A._result=X)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var et=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ot={map:Y,forEach:function(A,B,X){Y(A,function(){B.apply(this,arguments)},X)},count:function(A){var B=0;return Y(A,function(){B++}),B},toArray:function(A){return Y(A,function(B){return B})||[]},only:function(A){if(!gt(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return at.Activity=S,at.Children=ot,at.Component=w,at.Fragment=u,at.Profiler=c,at.PureComponent=H,at.StrictMode=o,at.Suspense=g,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,at.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},at.cache=function(A){return function(){return A.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(A,B,X){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Q=N({},A.props),it=A.key;if(B!=null)for(rt in B.key!==void 0&&(it=""+B.key),B)!F.call(B,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&B.ref===void 0||(Q[rt]=B[rt]);var rt=arguments.length-2;if(rt===1)Q.children=X;else if(1<rt){for(var bt=Array(rt),se=0;se<rt;se++)bt[se]=arguments[se+2];Q.children=bt}return ct(A.type,it,Q)},at.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},at.createElement=function(A,B,X){var Q,it={},rt=null;if(B!=null)for(Q in B.key!==void 0&&(rt=""+B.key),B)F.call(B,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(it[Q]=B[Q]);var bt=arguments.length-2;if(bt===1)it.children=X;else if(1<bt){for(var se=Array(bt),Ht=0;Ht<bt;Ht++)se[Ht]=arguments[Ht+2];it.children=se}if(A&&A.defaultProps)for(Q in bt=A.defaultProps,bt)it[Q]===void 0&&(it[Q]=bt[Q]);return ct(A,rt,it)},at.createRef=function(){return{current:null}},at.forwardRef=function(A){return{$$typeof:y,render:A}},at.isValidElement=gt,at.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Z}},at.memo=function(A,B){return{$$typeof:m,type:A,compare:B===void 0?null:B}},at.startTransition=function(A){var B=J.T,X={};J.T=X;try{var Q=A(),it=J.S;it!==null&&it(X,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ut,et)}catch(rt){et(rt)}finally{B!==null&&X.types!==null&&(B.types=X.types),J.T=B}},at.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},at.use=function(A){return J.H.use(A)},at.useActionState=function(A,B,X){return J.H.useActionState(A,B,X)},at.useCallback=function(A,B){return J.H.useCallback(A,B)},at.useContext=function(A){return J.H.useContext(A)},at.useDebugValue=function(){},at.useDeferredValue=function(A,B){return J.H.useDeferredValue(A,B)},at.useEffect=function(A,B){return J.H.useEffect(A,B)},at.useEffectEvent=function(A){return J.H.useEffectEvent(A)},at.useId=function(){return J.H.useId()},at.useImperativeHandle=function(A,B,X){return J.H.useImperativeHandle(A,B,X)},at.useInsertionEffect=function(A,B){return J.H.useInsertionEffect(A,B)},at.useLayoutEffect=function(A,B){return J.H.useLayoutEffect(A,B)},at.useMemo=function(A,B){return J.H.useMemo(A,B)},at.useOptimistic=function(A,B){return J.H.useOptimistic(A,B)},at.useReducer=function(A,B,X){return J.H.useReducer(A,B,X)},at.useRef=function(A){return J.H.useRef(A)},at.useState=function(A){return J.H.useState(A)},at.useSyncExternalStore=function(A,B,X){return J.H.useSyncExternalStore(A,B,X)},at.useTransition=function(){return J.H.useTransition()},at.version="19.2.6",at}var uy;function Cc(){return uy||(uy=1,Lr.exports=F1()),Lr.exports}var nt=Cc(),wr={exports:{}},ol={},Nr={exports:{}},jr={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oy;function W1(){return oy||(oy=1,(function(i){function l(O,Y){var Z=O.length;O.push(Y);t:for(;0<Z;){var et=Z-1>>>1,ot=O[et];if(0<c(ot,Y))O[et]=Y,O[Z]=ot,Z=et;else break t}}function u(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Y=O[0],Z=O.pop();if(Z!==Y){O[0]=Z;t:for(var et=0,ot=O.length,A=ot>>>1;et<A;){var B=2*(et+1)-1,X=O[B],Q=B+1,it=O[Q];if(0>c(X,Z))Q<ot&&0>c(it,X)?(O[et]=it,O[Q]=Z,et=Q):(O[et]=X,O[B]=Z,et=B);else if(Q<ot&&0>c(it,Z))O[et]=it,O[Q]=Z,et=Q;else break t}}return Y}function c(O,Y){var Z=O.sortIndex-Y.sortIndex;return Z!==0?Z:O.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();i.unstable_now=function(){return h.now()-y}}var g=[],m=[],v=1,S=null,T=3,x=!1,V=!1,N=!1,j=!1,w=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function G(O){for(var Y=u(m);Y!==null;){if(Y.callback===null)o(m);else if(Y.startTime<=O)o(m),Y.sortIndex=Y.expirationTime,l(g,Y);else break;Y=u(m)}}function W(O){if(N=!1,G(O),!V)if(u(g)!==null)V=!0,ut||(ut=!0,dt());else{var Y=u(m);Y!==null&&zt(W,Y.startTime-O)}}var ut=!1,J=-1,F=5,ct=-1;function $(){return j?!0:!(i.unstable_now()-ct<F)}function gt(){if(j=!1,ut){var O=i.unstable_now();ct=O;var Y=!0;try{t:{V=!1,N&&(N=!1,q(J),J=-1),x=!0;var Z=T;try{e:{for(G(O),S=u(g);S!==null&&!(S.expirationTime>O&&$());){var et=S.callback;if(typeof et=="function"){S.callback=null,T=S.priorityLevel;var ot=et(S.expirationTime<=O);if(O=i.unstable_now(),typeof ot=="function"){S.callback=ot,G(O),Y=!0;break e}S===u(g)&&o(g),G(O)}else o(g);S=u(g)}if(S!==null)Y=!0;else{var A=u(m);A!==null&&zt(W,A.startTime-O),Y=!1}}break t}finally{S=null,T=Z,x=!1}Y=void 0}}finally{Y?dt():ut=!1}}}var dt;if(typeof H=="function")dt=function(){H(gt)};else if(typeof MessageChannel<"u"){var Jt=new MessageChannel,Rt=Jt.port2;Jt.port1.onmessage=gt,dt=function(){Rt.postMessage(null)}}else dt=function(){w(gt,0)};function zt(O,Y){J=w(function(){O(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(O){switch(T){case 1:case 2:case 3:var Y=3;break;default:Y=T}var Z=T;T=Y;try{return O()}finally{T=Z}},i.unstable_requestPaint=function(){j=!0},i.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Z=T;T=O;try{return Y()}finally{T=Z}},i.unstable_scheduleCallback=function(O,Y,Z){var et=i.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?et+Z:et):Z=et,O){case 1:var ot=-1;break;case 2:ot=250;break;case 5:ot=1073741823;break;case 4:ot=1e4;break;default:ot=5e3}return ot=Z+ot,O={id:v++,callback:Y,priorityLevel:O,startTime:Z,expirationTime:ot,sortIndex:-1},Z>et?(O.sortIndex=Z,l(m,O),u(g)===null&&O===u(m)&&(N?(q(J),J=-1):N=!0,zt(W,Z-et))):(O.sortIndex=ot,l(g,O),V||x||(V=!0,ut||(ut=!0,dt()))),O},i.unstable_shouldYield=$,i.unstable_wrapCallback=function(O){var Y=T;return function(){var Z=T;T=Y;try{return O.apply(this,arguments)}finally{T=Z}}}})(jr)),jr}var ry;function P1(){return ry||(ry=1,Nr.exports=W1()),Nr.exports}var Hr={exports:{}},le={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cy;function $1(){if(cy)return le;cy=1;var i=Cc();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:m,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,le.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,v)},le.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},le.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},le.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},le.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,S=y(v,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:x}):v==="script"&&o.d.X(g,{crossOrigin:S,integrity:T,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},le.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=y(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},le.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,S=y(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},le.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=y(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},le.requestFormReset=function(g){o.d.r(g)},le.unstable_batchedUpdates=function(g,m){return g(m)},le.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.6",le}var fy;function I1(){if(fy)return Hr.exports;fy=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Hr.exports=$1(),Hr.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hy;function tS(){if(hy)return ol;hy=1;var i=P1(),l=Cc(),u=I1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,a=r;break}if(p===a){f=!0,a=s,n=r;break}p=p.sibling}if(!f){for(p=r.child;p;){if(p===n){f=!0,n=r,a=s;break}if(p===a){f=!0,a=r,n=s;break}p=p.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,T=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ct=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function dt(t){return t===null||typeof t!="object"?null:(t=gt&&t[gt]||t["@@iterator"],typeof t=="function"?t:null)}var Jt=Symbol.for("react.client.reference");function Rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case w:return"Profiler";case j:return"StrictMode";case W:return"Suspense";case ut:return"SuspenseList";case ct:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case H:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:Rt(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return Rt(t(e))}catch{}}return null}var zt=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},et=[],ot=-1;function A(t){return{current:t}}function B(t){0>ot||(t.current=et[ot],et[ot]=null,ot--)}function X(t,e){ot++,et[ot]=t.current,t.current=e}var Q=A(null),it=A(null),rt=A(null),bt=A(null);function se(t,e){switch(X(rt,e),X(it,t),X(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Cm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Cm(e),t=zm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(Q),X(Q,t)}function Ht(){B(Q),B(it),B(rt)}function ma(t){t.memoizedState!==null&&X(bt,t);var e=Q.current,n=zm(e,t.type);e!==n&&(X(it,t),X(Q,n))}function Dl(t){it.current===t&&(B(Q),B(it)),bt.current===t&&(B(bt),il._currentValue=Z)}var yu,nf;function Wn(t){if(yu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);yu=e&&e[1]||"",nf=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yu+t+nf}var pu=!1;function gu(t,e){if(!t||pu)return"";pu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(R){var z=R}Reflect.construct(t,[],L)}else{try{L.call()}catch(R){z=R}t.call(L.prototype)}}else{try{throw Error()}catch(R){z=R}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],p=r[1];if(f&&p){var b=f.split(`
`),C=p.split(`
`);for(s=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;if(a===b.length||s===C.length)for(a=b.length-1,s=C.length-1;1<=a&&0<=s&&b[a]!==C[s];)s--;for(;1<=a&&0<=s;a--,s--)if(b[a]!==C[s]){if(a!==1||s!==1)do if(a--,s--,0>s||b[a]!==C[s]){var _=`
`+b[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{pu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Wn(n):""}function M0(t,e){switch(t.tag){case 26:case 27:case 5:return Wn(t.type);case 16:return Wn("Lazy");case 13:return t.child!==e&&e!==null?Wn("Suspense Fallback"):Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return gu(t.type,!1);case 11:return gu(t.type.render,!1);case 1:return gu(t.type,!0);case 31:return Wn("Activity");default:return""}}function af(t){try{var e="",n=null;do e+=M0(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var vu=Object.prototype.hasOwnProperty,Su=i.unstable_scheduleCallback,Tu=i.unstable_cancelCallback,x0=i.unstable_shouldYield,D0=i.unstable_requestPaint,ge=i.unstable_now,C0=i.unstable_getCurrentPriorityLevel,lf=i.unstable_ImmediatePriority,sf=i.unstable_UserBlockingPriority,Cl=i.unstable_NormalPriority,z0=i.unstable_LowPriority,uf=i.unstable_IdlePriority,O0=i.log,R0=i.unstable_setDisableYieldValue,ya=null,ve=null;function Tn(t){if(typeof O0=="function"&&R0(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ya,t)}catch{}}var Se=Math.clz32?Math.clz32:U0,V0=Math.log,_0=Math.LN2;function U0(t){return t>>>=0,t===0?32:31-(V0(t)/_0|0)|0}var zl=256,Ol=262144,Rl=4194304;function Pn(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Vl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=a&134217727;return p!==0?(a=p&~r,a!==0?s=Pn(a):(f&=p,f!==0?s=Pn(f):n||(n=p&~t,n!==0&&(s=Pn(n))))):(p=a&~r,p!==0?s=Pn(p):f!==0?s=Pn(f):n||(n=a&~t,n!==0&&(s=Pn(n)))),s===0?0:e!==0&&e!==s&&(e&r)===0&&(r=s&-s,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:s}function pa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function B0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function of(){var t=Rl;return Rl<<=1,(Rl&62914560)===0&&(Rl=4194304),t}function bu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ga(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function L0(t,e,n,a,s,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var p=t.entanglements,b=t.expirationTimes,C=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-Se(n),L=1<<_;p[_]=0,b[_]=-1;var z=C[_];if(z!==null)for(C[_]=null,_=0;_<z.length;_++){var R=z[_];R!==null&&(R.lane&=-536870913)}n&=~L}a!==0&&rf(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function rf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function cf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Se(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function ff(t,e){var n=e&-e;return n=(n&42)!==0?1:Au(n),(n&(t.suspendedLanes|e))!==0?0:n}function Au(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Eu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function hf(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Pm(t.type))}function df(t,e){var n=Y.p;try{return Y.p=t,e()}finally{Y.p=n}}var bn=Math.random().toString(36).slice(2),$t="__reactFiber$"+bn,ce="__reactProps$"+bn,Ai="__reactContainer$"+bn,Mu="__reactEvents$"+bn,w0="__reactListeners$"+bn,N0="__reactHandles$"+bn,mf="__reactResources$"+bn,va="__reactMarker$"+bn;function xu(t){delete t[$t],delete t[ce],delete t[Mu],delete t[w0],delete t[N0]}function Ei(t){var e=t[$t];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ai]||n[$t]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Lm(t);t!==null;){if(n=t[$t])return n;t=Lm(t)}return e}t=n,n=t.parentNode}return null}function Mi(t){if(t=t[$t]||t[Ai]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Sa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function xi(t){var e=t[mf];return e||(e=t[mf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[va]=!0}var yf=new Set,pf={};function $n(t,e){Di(t,e),Di(t+"Capture",e)}function Di(t,e){for(pf[t]=e,t=0;t<e.length;t++)yf.add(e[t])}var j0=RegExp("^[: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]*$"),gf={},vf={};function H0(t){return vu.call(vf,t)?!0:vu.call(gf,t)?!1:j0.test(t)?vf[t]=!0:(gf[t]=!0,!1)}function _l(t,e,n){if(H0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ul(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function tn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Sf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function q0(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Du(t){if(!t._valueTracker){var e=Sf(t)?"checked":"value";t._valueTracker=q0(t,e,""+t[e])}}function Tf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Sf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Bl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Y0=/[\n"\\]/g;function Oe(t){return t.replace(Y0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Cu(t,e,n,a,s,r,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?zu(t,f,ze(e)):n!=null?zu(t,f,ze(n)):a!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+ze(p):t.removeAttribute("name")}function bf(t,e,n,a,s,r,f,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Du(t);return}n=n!=null?""+ze(n):"",e=e!=null?""+ze(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=p?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Du(t)}function zu(t,e,n){e==="number"&&Bl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ci(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&a&&(t[n].defaultSelected=!0)}else{for(n=""+ze(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,a&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Af(t,e,n){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ze(n):""}function Ef(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(zt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=ze(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Du(t)}function zi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var G0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mf(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||G0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function xf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Mf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Mf(t,r,e[r])}function Ou(t){if(t.indexOf("-")===-1)return!1;switch(t){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 X0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Z0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ll(t){return Z0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function en(){}var Ru=null;function Vu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oi=null,Ri=null;function Df(t){var e=Mi(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Cu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Oe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ce]||null;if(!s)throw Error(o(90));Cu(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Tf(a)}break t;case"textarea":Af(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ci(t,!!n.multiple,e,!1)}}}var _u=!1;function Cf(t,e,n){if(_u)return t(e,n);_u=!0;try{var a=t(e);return a}finally{if(_u=!1,(Oi!==null||Ri!==null)&&(As(),Oi&&(e=Oi,t=Ri,Ri=Oi=null,Df(e),t)))for(e=0;e<t.length;e++)Df(t[e])}}function Ta(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(nn)try{var ba={};Object.defineProperty(ba,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{Uu=!1}var An=null,Bu=null,wl=null;function zf(){if(wl)return wl;var t,e=Bu,n=e.length,a,s="value"in An?An.value:An.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===s[r-a];a++);return wl=s.slice(t,1<a?1-a:void 0)}function Nl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function jl(){return!0}function Of(){return!1}function fe(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?jl:Of,this.isPropagationStopped=Of,this}return S(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),e}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=fe(In),Aa=S({},In,{view:0,detail:0}),Q0=fe(Aa),Lu,wu,Ea,ql=S({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ea&&(Ea&&t.type==="mousemove"?(Lu=t.screenX-Ea.screenX,wu=t.screenY-Ea.screenY):wu=Lu=0,Ea=t),Lu)},movementY:function(t){return"movementY"in t?t.movementY:wu}}),Rf=fe(ql),K0=S({},ql,{dataTransfer:0}),J0=fe(K0),k0=S({},Aa,{relatedTarget:0}),Nu=fe(k0),F0=S({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),W0=fe(F0),P0=S({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$0=fe(P0),I0=S({},In,{data:0}),Vf=fe(I0),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ev={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nv[t])?!!e[t]:!1}function ju(){return iv}var av=S({},Aa,{key:function(t){if(t.key){var e=tv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Nl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ev[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(t){return t.type==="keypress"?Nl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Nl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lv=fe(av),sv=S({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_f=fe(sv),uv=S({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),ov=fe(uv),rv=S({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=fe(rv),fv=S({},ql,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hv=fe(fv),dv=S({},In,{newState:0,oldState:0}),mv=fe(dv),yv=[9,13,27,32],Hu=nn&&"CompositionEvent"in window,Ma=null;nn&&"documentMode"in document&&(Ma=document.documentMode);var pv=nn&&"TextEvent"in window&&!Ma,Uf=nn&&(!Hu||Ma&&8<Ma&&11>=Ma),Bf=" ",Lf=!1;function wf(t,e){switch(t){case"keyup":return yv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vi=!1;function gv(t,e){switch(t){case"compositionend":return Nf(e);case"keypress":return e.which!==32?null:(Lf=!0,Bf);case"textInput":return t=e.data,t===Bf&&Lf?null:t;default:return null}}function vv(t,e){if(Vi)return t==="compositionend"||!Hu&&wf(t,e)?(t=zf(),wl=Bu=An=null,Vi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Uf&&e.locale!=="ko"?null:e.data;default:return null}}var Sv={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 jf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Sv[t.type]:e==="textarea"}function Hf(t,e,n,a){Oi?Ri?Ri.push(a):Ri=[a]:Oi=a,e=Os(e,"onChange"),0<e.length&&(n=new Hl("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var xa=null,Da=null;function Tv(t){bm(t,0)}function Yl(t){var e=Sa(t);if(Tf(e))return t}function qf(t,e){if(t==="change")return e}var Yf=!1;if(nn){var qu;if(nn){var Yu="oninput"in document;if(!Yu){var Gf=document.createElement("div");Gf.setAttribute("oninput","return;"),Yu=typeof Gf.oninput=="function"}qu=Yu}else qu=!1;Yf=qu&&(!document.documentMode||9<document.documentMode)}function Xf(){xa&&(xa.detachEvent("onpropertychange",Zf),Da=xa=null)}function Zf(t){if(t.propertyName==="value"&&Yl(Da)){var e=[];Hf(e,Da,t,Vu(t)),Cf(Tv,e)}}function bv(t,e,n){t==="focusin"?(Xf(),xa=e,Da=n,xa.attachEvent("onpropertychange",Zf)):t==="focusout"&&Xf()}function Av(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yl(Da)}function Ev(t,e){if(t==="click")return Yl(e)}function Mv(t,e){if(t==="input"||t==="change")return Yl(e)}function xv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Te=typeof Object.is=="function"?Object.is:xv;function Ca(t,e){if(Te(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!vu.call(e,s)||!Te(t[s],e[s]))return!1}return!0}function Qf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Kf(t,e){var n=Qf(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Qf(n)}}function Jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Bl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Bl(t.document)}return e}function Gu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dv=nn&&"documentMode"in document&&11>=document.documentMode,_i=null,Xu=null,za=null,Zu=!1;function Ff(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zu||_i==null||_i!==Bl(a)||(a=_i,"selectionStart"in a&&Gu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),za&&Ca(za,a)||(za=a,a=Os(Xu,"onSelect"),0<a.length&&(e=new Hl("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=_i)))}function ti(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ui={animationend:ti("Animation","AnimationEnd"),animationiteration:ti("Animation","AnimationIteration"),animationstart:ti("Animation","AnimationStart"),transitionrun:ti("Transition","TransitionRun"),transitionstart:ti("Transition","TransitionStart"),transitioncancel:ti("Transition","TransitionCancel"),transitionend:ti("Transition","TransitionEnd")},Qu={},Wf={};nn&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete Ui.animationend.animation,delete Ui.animationiteration.animation,delete Ui.animationstart.animation),"TransitionEvent"in window||delete Ui.transitionend.transition);function ei(t){if(Qu[t])return Qu[t];if(!Ui[t])return t;var e=Ui[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Wf)return Qu[t]=e[n];return t}var Pf=ei("animationend"),$f=ei("animationiteration"),If=ei("animationstart"),Cv=ei("transitionrun"),zv=ei("transitionstart"),Ov=ei("transitioncancel"),th=ei("transitionend"),eh=new Map,Ku="abort auxClick beforeToggle 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(" ");Ku.push("scrollEnd");function qe(t,e){eh.set(t,e),$n(e,[t])}var Gl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Re=[],Bi=0,Ju=0;function Xl(){for(var t=Bi,e=Ju=Bi=0;e<t;){var n=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var s=Re[e];Re[e++]=null;var r=Re[e];if(Re[e++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}r!==0&&nh(n,s,r)}}function Zl(t,e,n,a){Re[Bi++]=t,Re[Bi++]=e,Re[Bi++]=n,Re[Bi++]=a,Ju|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ku(t,e,n,a){return Zl(t,e,n,a),Ql(t)}function ni(t,e){return Zl(t,null,null,e),Ql(t)}function nh(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-Se(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Ql(t){if(50<Wa)throw Wa=0,ar=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Li={};function Rv(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,n,a){return new Rv(t,e,n,a)}function Fu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function an(t,e){var n=t.alternate;return n===null?(n=be(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function ih(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Kl(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Fu(t)&&(f=1);else if(typeof t=="string")f=L1(t,n,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ct:return t=be(31,n,e,s),t.elementType=ct,t.lanes=r,t;case N:return ii(n.children,s,r,e);case j:f=8,s|=24;break;case w:return t=be(12,n,e,s|2),t.elementType=w,t.lanes=r,t;case W:return t=be(13,n,e,s),t.elementType=W,t.lanes=r,t;case ut:return t=be(19,n,e,s),t.elementType=ut,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:f=10;break t;case q:f=9;break t;case G:f=11;break t;case J:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=be(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function ii(t,e,n,a){return t=be(7,t,a,e),t.lanes=n,t}function Wu(t,e,n){return t=be(6,t,null,e),t.lanes=n,t}function ah(t){var e=be(18,null,null,0);return e.stateNode=t,e}function Pu(t,e,n){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var lh=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=lh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:af(e)},lh.set(t,e),e)}return{value:t,source:e,stack:af(e)}}var wi=[],Ni=0,Jl=null,Oa=0,_e=[],Ue=0,En=null,Ke=1,Je="";function ln(t,e){wi[Ni++]=Oa,wi[Ni++]=Jl,Jl=t,Oa=e}function sh(t,e,n){_e[Ue++]=Ke,_e[Ue++]=Je,_e[Ue++]=En,En=t;var a=Ke;t=Je;var s=32-Se(a)-1;a&=~(1<<s),n+=1;var r=32-Se(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,Ke=1<<32-Se(e)+s|n<<s|a,Je=r+t}else Ke=1<<r|n<<s|a,Je=t}function $u(t){t.return!==null&&(ln(t,1),sh(t,1,0))}function Iu(t){for(;t===Jl;)Jl=wi[--Ni],wi[Ni]=null,Oa=wi[--Ni],wi[Ni]=null;for(;t===En;)En=_e[--Ue],_e[Ue]=null,Je=_e[--Ue],_e[Ue]=null,Ke=_e[--Ue],_e[Ue]=null}function uh(t,e){_e[Ue++]=Ke,_e[Ue++]=Je,_e[Ue++]=En,Ke=e.id,Je=e.overflow,En=t}var It=null,Vt=null,pt=!1,Mn=null,Be=!1,to=Error(o(519));function xn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ra(Ve(e,t)),to}function oh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[$t]=t,e[ce]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<$a.length;n++)ht($a[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),bf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Ef(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||xm(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=en),e=!0):e=!1,e||xn(t,!0)}function rh(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:It=It.return}}function ji(t){if(t!==It)return!1;if(!pt)return rh(t),pt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Sr(t.type,t.memoizedProps)),n=!n),n&&Vt&&xn(t),rh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Bm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Bm(t)}else e===27?(e=Vt,Hn(t.type)?(t=Mr,Mr=null,Vt=t):Vt=e):Vt=It?we(t.stateNode.nextSibling):null;return!0}function ai(){Vt=It=null,pt=!1}function eo(){var t=Mn;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),Mn=null),t}function Ra(t){Mn===null?Mn=[t]:Mn.push(t)}var no=A(null),li=null,sn=null;function Dn(t,e,n){X(no,e._currentValue),e._currentValue=n}function un(t){t._currentValue=no.current,B(no)}function io(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function ao(t,e,n,a){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var r=s.dependencies;if(r!==null){var f=s.child;r=r.firstContext;t:for(;r!==null;){var p=r;r=s;for(var b=0;b<e.length;b++)if(p.context===e[b]){r.lanes|=n,p=r.alternate,p!==null&&(p.lanes|=n),io(r.return,n,t),a||(f=null);break t}r=p.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),io(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Hi(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=s.type;Te(s.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(s===bt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(il):t=[il])}s=s.return}t!==null&&ao(e,t,n,a),e.flags|=262144}function kl(t){for(t=t.firstContext;t!==null;){if(!Te(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){li=t,sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function te(t){return ch(li,t)}function Fl(t,e){return li===null&&si(t),ch(t,e)}function ch(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},sn===null){if(t===null)throw Error(o(308));sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sn=sn.next=e;return n}var Vv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},_v=i.unstable_scheduleCallback,Uv=i.unstable_NormalPriority,Gt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lo(){return{controller:new Vv,data:new Map,refCount:0}}function Va(t){t.refCount--,t.refCount===0&&_v(Uv,function(){t.controller.abort()})}var _a=null,so=0,qi=0,Yi=null;function Bv(t,e){if(_a===null){var n=_a=[];so=0,qi=cr(),Yi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return so++,e.then(fh,fh),e}function fh(){if(--so===0&&_a!==null){Yi!==null&&(Yi.status="fulfilled");var t=_a;_a=null,qi=0,Yi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Lv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var hh=O.S;O.S=function(t,e){Fd=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Bv(t,e),hh!==null&&hh(t,e)};var ui=A(null);function uo(){var t=ui.current;return t!==null?t:Ot.pooledCache}function Wl(t,e){e===null?X(ui,ui.current):X(ui,e.pool)}function dh(){var t=uo();return t===null?null:{parent:Gt._currentValue,pool:t}}var Gi=Error(o(460)),oo=Error(o(474)),Pl=Error(o(542)),$l={then:function(){}};function mh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function yh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(en,en),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gh(t),t;default:if(typeof e.status=="string")e.then(en,en);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gh(t),t}throw ri=e,Gi}}function oi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ri=n,Gi):n}}var ri=null;function ph(){if(ri===null)throw Error(o(459));var t=ri;return ri=null,t}function gh(t){if(t===Gi||t===Pl)throw Error(o(483))}var Xi=null,Ua=0;function Il(t){var e=Ua;return Ua+=1,Xi===null&&(Xi=[]),yh(Xi,t,e)}function Ba(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ts(t,e){throw e.$$typeof===T?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function vh(t){function e(M,E){if(t){var D=M.deletions;D===null?(M.deletions=[E],M.flags|=16):D.push(E)}}function n(M,E){if(!t)return null;for(;E!==null;)e(M,E),E=E.sibling;return null}function a(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function s(M,E){return M=an(M,E),M.index=0,M.sibling=null,M}function r(M,E,D){return M.index=D,t?(D=M.alternate,D!==null?(D=D.index,D<E?(M.flags|=67108866,E):D):(M.flags|=67108866,E)):(M.flags|=1048576,E)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function p(M,E,D,U){return E===null||E.tag!==6?(E=Wu(D,M.mode,U),E.return=M,E):(E=s(E,D),E.return=M,E)}function b(M,E,D,U){var I=D.type;return I===N?_(M,E,D.props.children,U,D.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===F&&oi(I)===E.type)?(E=s(E,D.props),Ba(E,D),E.return=M,E):(E=Kl(D.type,D.key,D.props,null,M.mode,U),Ba(E,D),E.return=M,E)}function C(M,E,D,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==D.containerInfo||E.stateNode.implementation!==D.implementation?(E=Pu(D,M.mode,U),E.return=M,E):(E=s(E,D.children||[]),E.return=M,E)}function _(M,E,D,U,I){return E===null||E.tag!==7?(E=ii(D,M.mode,U,I),E.return=M,E):(E=s(E,D),E.return=M,E)}function L(M,E,D){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Wu(""+E,M.mode,D),E.return=M,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case x:return D=Kl(E.type,E.key,E.props,null,M.mode,D),Ba(D,E),D.return=M,D;case V:return E=Pu(E,M.mode,D),E.return=M,E;case F:return E=oi(E),L(M,E,D)}if(zt(E)||dt(E))return E=ii(E,M.mode,D,null),E.return=M,E;if(typeof E.then=="function")return L(M,Il(E),D);if(E.$$typeof===H)return L(M,Fl(M,E),D);ts(M,E)}return null}function z(M,E,D,U){var I=E!==null?E.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return I!==null?null:p(M,E,""+D,U);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===I?b(M,E,D,U):null;case V:return D.key===I?C(M,E,D,U):null;case F:return D=oi(D),z(M,E,D,U)}if(zt(D)||dt(D))return I!==null?null:_(M,E,D,U,null);if(typeof D.then=="function")return z(M,E,Il(D),U);if(D.$$typeof===H)return z(M,E,Fl(M,D),U);ts(M,D)}return null}function R(M,E,D,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(D)||null,p(E,M,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case x:return M=M.get(U.key===null?D:U.key)||null,b(E,M,U,I);case V:return M=M.get(U.key===null?D:U.key)||null,C(E,M,U,I);case F:return U=oi(U),R(M,E,D,U,I)}if(zt(U)||dt(U))return M=M.get(D)||null,_(E,M,U,I,null);if(typeof U.then=="function")return R(M,E,D,Il(U),I);if(U.$$typeof===H)return R(M,E,D,Fl(E,U),I);ts(E,U)}return null}function K(M,E,D,U){for(var I=null,vt=null,P=E,st=E=0,yt=null;P!==null&&st<D.length;st++){P.index>st?(yt=P,P=null):yt=P.sibling;var St=z(M,P,D[st],U);if(St===null){P===null&&(P=yt);break}t&&P&&St.alternate===null&&e(M,P),E=r(St,E,st),vt===null?I=St:vt.sibling=St,vt=St,P=yt}if(st===D.length)return n(M,P),pt&&ln(M,st),I;if(P===null){for(;st<D.length;st++)P=L(M,D[st],U),P!==null&&(E=r(P,E,st),vt===null?I=P:vt.sibling=P,vt=P);return pt&&ln(M,st),I}for(P=a(P);st<D.length;st++)yt=R(P,M,st,D[st],U),yt!==null&&(t&&yt.alternate!==null&&P.delete(yt.key===null?st:yt.key),E=r(yt,E,st),vt===null?I=yt:vt.sibling=yt,vt=yt);return t&&P.forEach(function(Zn){return e(M,Zn)}),pt&&ln(M,st),I}function tt(M,E,D,U){if(D==null)throw Error(o(151));for(var I=null,vt=null,P=E,st=E=0,yt=null,St=D.next();P!==null&&!St.done;st++,St=D.next()){P.index>st?(yt=P,P=null):yt=P.sibling;var Zn=z(M,P,St.value,U);if(Zn===null){P===null&&(P=yt);break}t&&P&&Zn.alternate===null&&e(M,P),E=r(Zn,E,st),vt===null?I=Zn:vt.sibling=Zn,vt=Zn,P=yt}if(St.done)return n(M,P),pt&&ln(M,st),I;if(P===null){for(;!St.done;st++,St=D.next())St=L(M,St.value,U),St!==null&&(E=r(St,E,st),vt===null?I=St:vt.sibling=St,vt=St);return pt&&ln(M,st),I}for(P=a(P);!St.done;st++,St=D.next())St=R(P,M,st,St.value,U),St!==null&&(t&&St.alternate!==null&&P.delete(St.key===null?st:St.key),E=r(St,E,st),vt===null?I=St:vt.sibling=St,vt=St);return t&&P.forEach(function(K1){return e(M,K1)}),pt&&ln(M,st),I}function Dt(M,E,D,U){if(typeof D=="object"&&D!==null&&D.type===N&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:t:{for(var I=D.key;E!==null;){if(E.key===I){if(I=D.type,I===N){if(E.tag===7){n(M,E.sibling),U=s(E,D.props.children),U.return=M,M=U;break t}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===F&&oi(I)===E.type){n(M,E.sibling),U=s(E,D.props),Ba(U,D),U.return=M,M=U;break t}n(M,E);break}else e(M,E);E=E.sibling}D.type===N?(U=ii(D.props.children,M.mode,U,D.key),U.return=M,M=U):(U=Kl(D.type,D.key,D.props,null,M.mode,U),Ba(U,D),U.return=M,M=U)}return f(M);case V:t:{for(I=D.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===D.containerInfo&&E.stateNode.implementation===D.implementation){n(M,E.sibling),U=s(E,D.children||[]),U.return=M,M=U;break t}else{n(M,E);break}else e(M,E);E=E.sibling}U=Pu(D,M.mode,U),U.return=M,M=U}return f(M);case F:return D=oi(D),Dt(M,E,D,U)}if(zt(D))return K(M,E,D,U);if(dt(D)){if(I=dt(D),typeof I!="function")throw Error(o(150));return D=I.call(D),tt(M,E,D,U)}if(typeof D.then=="function")return Dt(M,E,Il(D),U);if(D.$$typeof===H)return Dt(M,E,Fl(M,D),U);ts(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,E!==null&&E.tag===6?(n(M,E.sibling),U=s(E,D),U.return=M,M=U):(n(M,E),U=Wu(D,M.mode,U),U.return=M,M=U),f(M)):n(M,E)}return function(M,E,D,U){try{Ua=0;var I=Dt(M,E,D,U);return Xi=null,I}catch(P){if(P===Gi||P===Pl)throw P;var vt=be(29,P,null,M.mode);return vt.lanes=U,vt.return=M,vt}finally{}}}var ci=vh(!0),Sh=vh(!1),Cn=!1;function ro(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function On(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Ql(t),nh(t,null,n),e}return Zl(t,a,e,n),Ql(t)}function La(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,cf(t,n)}}function fo(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var ho=!1;function wa(){if(ho){var t=Yi;if(t!==null)throw t}}function Na(t,e,n,a){ho=!1;var s=t.updateQueue;Cn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var b=p,C=b.next;b.next=null,f===null?r=C:f.next=C,f=b;var _=t.alternate;_!==null&&(_=_.updateQueue,p=_.lastBaseUpdate,p!==f&&(p===null?_.firstBaseUpdate=C:p.next=C,_.lastBaseUpdate=b))}if(r!==null){var L=s.baseState;f=0,_=C=b=null,p=r;do{var z=p.lane&-536870913,R=z!==p.lane;if(R?(mt&z)===z:(a&z)===z){z!==0&&z===qi&&(ho=!0),_!==null&&(_=_.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var K=t,tt=p;z=e;var Dt=n;switch(tt.tag){case 1:if(K=tt.payload,typeof K=="function"){L=K.call(Dt,L,z);break t}L=K;break t;case 3:K.flags=K.flags&-65537|128;case 0:if(K=tt.payload,z=typeof K=="function"?K.call(Dt,L,z):K,z==null)break t;L=S({},L,z);break t;case 2:Cn=!0}}z=p.callback,z!==null&&(t.flags|=64,R&&(t.flags|=8192),R=s.callbacks,R===null?s.callbacks=[z]:R.push(z))}else R={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},_===null?(C=_=R,b=L):_=_.next=R,f|=z;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;R=p,p=R.next,R.next=null,s.lastBaseUpdate=R,s.shared.pending=null}}while(!0);_===null&&(b=L),s.baseState=b,s.firstBaseUpdate=C,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),Bn|=f,t.lanes=f,t.memoizedState=L}}function Th(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function bh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Th(n[t],e)}var Zi=A(null),es=A(0);function Ah(t,e){t=pn,X(es,t),X(Zi,e),pn=t|e.baseLanes}function mo(){X(es,pn),X(Zi,Zi.current)}function yo(){pn=es.current,B(Zi),B(es)}var Ae=A(null),Le=null;function Rn(t){var e=t.alternate;X(qt,qt.current&1),X(Ae,t),Le===null&&(e===null||Zi.current!==null||e.memoizedState!==null)&&(Le=t)}function po(t){X(qt,qt.current),X(Ae,t),Le===null&&(Le=t)}function Eh(t){t.tag===22?(X(qt,qt.current),X(Ae,t),Le===null&&(Le=t)):Vn()}function Vn(){X(qt,qt.current),X(Ae,Ae.current)}function Ee(t){B(Ae),Le===t&&(Le=null),B(qt)}var qt=A(0);function ns(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ar(n)||Er(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var on=0,lt=null,Mt=null,Xt=null,is=!1,Qi=!1,fi=!1,as=0,ja=0,Ki=null,wv=0;function wt(){throw Error(o(321))}function go(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Te(t[n],e[n]))return!1;return!0}function vo(t,e,n,a,s,r){return on=r,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,O.H=t===null||t.memoizedState===null?sd:Uo,fi=!1,r=n(a,s),fi=!1,Qi&&(r=xh(e,n,a,s)),Mh(t),r}function Mh(t){O.H=Ya;var e=Mt!==null&&Mt.next!==null;if(on=0,Xt=Mt=lt=null,is=!1,ja=0,Ki=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&kl(t)&&(Zt=!0))}function xh(t,e,n,a){lt=t;var s=0;do{if(Qi&&(Ki=null),ja=0,Qi=!1,25<=s)throw Error(o(301));if(s+=1,Xt=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=ud,r=e(n,a)}while(Qi);return r}function Nv(){var t=O.H,e=t.useState()[0];return e=typeof e.then=="function"?Ha(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(lt.flags|=1024),e}function So(){var t=as!==0;return as=0,t}function To(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function bo(t){if(is){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}is=!1}on=0,Xt=Mt=lt=null,Qi=!1,ja=as=0,Ki=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?lt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Mt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Xt===null?lt.memoizedState:Xt.next;if(e!==null)Xt=e,Mt=t;else{if(t===null)throw lt.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Xt===null?lt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ha(t){var e=ja;return ja+=1,Ki===null&&(Ki=[]),t=yh(Ki,t,e),e=lt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,O.H=e===null||e.memoizedState===null?sd:Uo),t}function ss(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ha(t);if(t.$$typeof===H)return te(t)}throw Error(o(438,String(t)))}function Ao(t){var e=null,n=lt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ls(),lt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=$;return e.index++,n}function rn(t,e){return typeof e=="function"?e(t):e}function us(t){var e=Yt();return Eo(e,Mt,t)}function Eo(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var p=f=null,b=null,C=e,_=!1;do{var L=C.lane&-536870913;if(L!==C.lane?(mt&L)===L:(on&L)===L){var z=C.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),L===qi&&(_=!0);else if((on&z)===z){C=C.next,z===qi&&(_=!0);continue}else L={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(p=b=L,f=r):b=b.next=L,lt.lanes|=z,Bn|=z;L=C.action,fi&&n(r,L),r=C.hasEagerState?C.eagerState:n(r,L)}else z={lane:L,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(p=b=z,f=r):b=b.next=z,lt.lanes|=L,Bn|=L;C=C.next}while(C!==null&&C!==e);if(b===null?f=r:b.next=p,!Te(r,t.memoizedState)&&(Zt=!0,_&&(n=Yi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=b,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Mo(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);Te(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Dh(t,e,n){var a=lt,s=Yt(),r=pt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Te((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,Zt=!0),s=s.queue,Co(Oh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Ji(9,{destroy:void 0},zh.bind(null,a,s,n,e),null),Ot===null)throw Error(o(349));r||(on&127)!==0||Ch(a,e,n)}return n}function Ch(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=lt.updateQueue,e===null?(e=ls(),lt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function zh(t,e,n,a){e.value=n,e.getSnapshot=a,Rh(e)&&Vh(t)}function Oh(t,e,n){return n(function(){Rh(e)&&Vh(t)})}function Rh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Te(t,n)}catch{return!0}}function Vh(t){var e=ni(t,2);e!==null&&pe(e,t,2)}function xo(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),fi){Tn(!0);try{n()}finally{Tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:t},e}function _h(t,e,n,a){return t.baseState=n,Eo(t,Mt,typeof a=="function"?a:rn)}function jv(t,e,n,a,s){if(cs(t))throw Error(o(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};O.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Uh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Uh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=O.T,f={};O.T=f;try{var p=n(s,a),b=O.S;b!==null&&b(f,p),Bh(t,e,p)}catch(C){Do(t,e,C)}finally{r!==null&&f.types!==null&&(r.types=f.types),O.T=r}}else try{r=n(s,a),Bh(t,e,r)}catch(C){Do(t,e,C)}}function Bh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Lh(t,e,a)},function(a){return Do(t,e,a)}):Lh(t,e,n)}function Lh(t,e,n){e.status="fulfilled",e.value=n,wh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Uh(t,n)))}function Do(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,wh(e),e=e.next;while(e!==a)}t.action=null}function wh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Nh(t,e){return e}function jh(t,e){if(pt){var n=Ot.formState;if(n!==null){t:{var a=lt;if(pt){if(Vt){e:{for(var s=Vt,r=Be;s.nodeType!==8;){if(!r){s=null;break e}if(s=we(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=we(s.nextSibling),a=s.data==="F!";break t}}xn(a)}a=!1}a&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:e},n.queue=a,n=id.bind(null,lt,a),a.dispatch=n,a=xo(!1),r=_o.bind(null,lt,!1,a.queue),a=ue(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=jv.bind(null,lt,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function Hh(t){var e=Yt();return qh(e,Mt,t)}function qh(t,e,n){if(e=Eo(t,e,Nh)[0],t=us(rn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ha(e)}catch(f){throw f===Gi?Pl:f}else a=e;e=Yt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(lt.flags|=2048,Ji(9,{destroy:void 0},Hv.bind(null,s,n),null)),[a,r,t]}function Hv(t,e){t.action=e}function Yh(t){var e=Yt(),n=Mt;if(n!==null)return qh(e,n,t);Yt(),e=e.memoizedState,n=Yt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Ji(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=ls(),lt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Gh(){return Yt().memoizedState}function os(t,e,n,a){var s=ue();lt.flags|=t,s.memoizedState=Ji(1|e,{destroy:void 0},n,a===void 0?null:a)}function rs(t,e,n,a){var s=Yt();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&go(a,Mt.memoizedState.deps)?s.memoizedState=Ji(e,r,n,a):(lt.flags|=t,s.memoizedState=Ji(1|e,r,n,a))}function Xh(t,e){os(8390656,8,t,e)}function Co(t,e){rs(2048,8,t,e)}function qv(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=ls(),lt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Zh(t){var e=Yt().memoizedState;return qv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Qh(t,e){return rs(4,2,t,e)}function Kh(t,e){return rs(4,4,t,e)}function Jh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function kh(t,e,n){n=n!=null?n.concat([t]):null,rs(4,4,Jh.bind(null,e,t),n)}function zo(){}function Fh(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&go(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Wh(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&go(e,a[1]))return a[0];if(a=t(),fi){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[a,e],a}function Oo(t,e,n){return n===void 0||(on&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Pd(),lt.lanes|=t,Bn|=t,n)}function Ph(t,e,n,a){return Te(n,e)?n:Zi.current!==null?(t=Oo(t,n,a),Te(t,e)||(Zt=!0),t):(on&42)===0||(on&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=n):(t=Pd(),lt.lanes|=t,Bn|=t,e)}function $h(t,e,n,a,s){var r=Y.p;Y.p=r!==0&&8>r?r:8;var f=O.T,p={};O.T=p,_o(t,!1,e,n);try{var b=s(),C=O.S;if(C!==null&&C(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Lv(b,a);qa(t,e,_,De(t))}else qa(t,e,a,De(t))}catch(L){qa(t,e,{then:function(){},status:"rejected",reason:L},De())}finally{Y.p=r,f!==null&&p.types!==null&&(f.types=p.types),O.T=f}}function Yv(){}function Ro(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=Ih(t).queue;$h(t,s,e,Z,n===null?Yv:function(){return td(t),n(a)})}function Ih(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function td(t){var e=Ih(t);e.next===null&&(e=t.alternate.memoizedState),qa(t,e.next.queue,{},De())}function Vo(){return te(il)}function ed(){return Yt().memoizedState}function nd(){return Yt().memoizedState}function Gv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=zn(n);var a=On(e,t,n);a!==null&&(pe(a,e,n),La(a,e,n)),e={cache:lo()},t.payload=e;return}e=e.return}}function Xv(t,e,n){var a=De();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cs(t)?ad(e,n):(n=ku(t,e,n,a),n!==null&&(pe(n,t,a),ld(n,e,a)))}function id(t,e,n){var a=De();qa(t,e,n,a)}function qa(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cs(t))ad(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,p=r(f,n);if(s.hasEagerState=!0,s.eagerState=p,Te(p,f))return Zl(t,e,s,0),Ot===null&&Xl(),!1}catch{}finally{}if(n=ku(t,e,s,a),n!==null)return pe(n,t,a),ld(n,e,a),!0}return!1}function _o(t,e,n,a){if(a={lane:2,revertLane:cr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},cs(t)){if(e)throw Error(o(479))}else e=ku(t,n,a,2),e!==null&&pe(e,t,2)}function cs(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function ad(t,e){Qi=is=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ld(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,cf(t,n)}}var Ya={readContext:te,use:ss,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Ya.useEffectEvent=wt;var sd={readContext:te,use:ss,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:Xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,os(4194308,4,Jh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return os(4194308,4,t,e)},useInsertionEffect:function(t,e){os(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var a=t();if(fi){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ue();if(n!==void 0){var s=n(e);if(fi){Tn(!0);try{n(e)}finally{Tn(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Xv.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=xo(t);var e=t.queue,n=id.bind(null,lt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zo,useDeferredValue:function(t,e){var n=ue();return Oo(n,t,e)},useTransition:function(){var t=xo(!1);return t=$h.bind(null,lt,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=lt,s=ue();if(pt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ot===null)throw Error(o(349));(mt&127)!==0||Ch(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,Xh(Oh.bind(null,a,r,t),[t]),a.flags|=2048,Ji(9,{destroy:void 0},zh.bind(null,a,r,n,e),null),n},useId:function(){var t=ue(),e=Ot.identifierPrefix;if(pt){var n=Je,a=Ke;n=(a&~(1<<32-Se(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=as++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=wv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vo,useFormState:jh,useActionState:jh,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=_o.bind(null,lt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ao,useCacheRefresh:function(){return ue().memoizedState=Gv.bind(null,lt)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Uo={readContext:te,use:ss,useCallback:Fh,useContext:te,useEffect:Co,useImperativeHandle:kh,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:Wh,useReducer:us,useRef:Gh,useState:function(){return us(rn)},useDebugValue:zo,useDeferredValue:function(t,e){var n=Yt();return Ph(n,Mt.memoizedState,t,e)},useTransition:function(){var t=us(rn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ha(t),e]},useSyncExternalStore:Dh,useId:ed,useHostTransitionStatus:Vo,useFormState:Hh,useActionState:Hh,useOptimistic:function(t,e){var n=Yt();return _h(n,Mt,t,e)},useMemoCache:Ao,useCacheRefresh:nd};Uo.useEffectEvent=Zh;var ud={readContext:te,use:ss,useCallback:Fh,useContext:te,useEffect:Co,useImperativeHandle:kh,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:Wh,useReducer:Mo,useRef:Gh,useState:function(){return Mo(rn)},useDebugValue:zo,useDeferredValue:function(t,e){var n=Yt();return Mt===null?Oo(n,t,e):Ph(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Mo(rn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ha(t),e]},useSyncExternalStore:Dh,useId:ed,useHostTransitionStatus:Vo,useFormState:Yh,useActionState:Yh,useOptimistic:function(t,e){var n=Yt();return Mt!==null?_h(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Ao,useCacheRefresh:nd};ud.useEffectEvent=Zh;function Bo(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Lo={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=De(),s=zn(a);s.payload=e,n!=null&&(s.callback=n),e=On(t,s,a),e!==null&&(pe(e,t,a),La(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=De(),s=zn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=On(t,s,a),e!==null&&(pe(e,t,a),La(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),a=zn(n);a.tag=2,e!=null&&(a.callback=e),e=On(t,a,n),e!==null&&(pe(e,t,n),La(e,t,n))}};function od(t,e,n,a,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!Ca(n,a)||!Ca(s,r):!0}function rd(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Lo.enqueueReplaceState(e,e.state,null)}function hi(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=S({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function cd(t){Gl(t)}function fd(t){console.error(t)}function hd(t){Gl(t)}function fs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function dd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function wo(t,e,n){return n=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){fs(t,e)},n}function md(t){return t=zn(t),t.tag=3,t}function yd(t,e,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;t.payload=function(){return s(r)},t.callback=function(){dd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){dd(e,n,a),typeof s!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function Zv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Hi(e,n,s,!0),n=Ae.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Es():n.alternate===null&&Nt===0&&(Nt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===$l?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ur(t,a,s)),!1;case 22:return n.flags|=65536,a===$l?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),ur(t,a,s)),!1}throw Error(o(435,n.tag))}return ur(t,a,s),Es(),!1}if(pt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==to&&(t=Error(o(422),{cause:a}),Ra(Ve(t,n)))):(a!==to&&(e=Error(o(423),{cause:a}),Ra(Ve(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Ve(a,n),s=wo(t.stateNode,a,s),fo(t,s),Nt!==4&&(Nt=2)),!1;var r=Error(o(520),{cause:a});if(r=Ve(r,n),Fa===null?Fa=[r]:Fa.push(r),Nt!==4&&(Nt=2),e===null)return!0;a=Ve(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=wo(n.stateNode,a,t),fo(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=md(s),yd(s,t,n,a),fo(n,s),!1}n=n.return}while(n!==null);return!1}var No=Error(o(461)),Zt=!1;function ee(t,e,n,a){e.child=t===null?Sh(e,null,n,a):ci(e,t.child,n,a)}function pd(t,e,n,a,s){n=n.render;var r=e.ref;if("ref"in a){var f={};for(var p in a)p!=="ref"&&(f[p]=a[p])}else f=a;return si(e),a=vo(t,e,n,f,r,s),p=So(),t!==null&&!Zt?(To(t,e,s),cn(t,e,s)):(pt&&p&&$u(e),e.flags|=1,ee(t,e,a,s),e.child)}function gd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Fu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,vd(t,e,r,a,s)):(t=Kl(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Qo(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ca,n(f,a)&&t.ref===e.ref)return cn(t,e,s)}return e.flags|=1,t=an(r,a),t.ref=e.ref,t.return=e,e.child=t}function vd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(Ca(r,a)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=a=r,Qo(t,s))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,cn(t,e,s)}return jo(t,e,n,a,s)}function Sd(t,e,n,a){var s=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,e.child=null;return Td(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wl(e,r!==null?r.cachePool:null),r!==null?Ah(e,r):mo(),Eh(e);else return a=e.lanes=536870912,Td(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Wl(e,r.cachePool),Ah(e,r),Vn(),e.memoizedState=null):(t!==null&&Wl(e,null),mo(),Vn());return ee(t,e,s,n),e.child}function Ga(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Td(t,e,n,a,s){var r=uo();return r=r===null?null:{parent:Gt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Wl(e,null),mo(),Eh(e),t!==null&&Hi(t,e,a,!0),e.childLanes=s,null}function hs(t,e){return e=ms({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function bd(t,e,n){return ci(e,t.child,null,n),t=hs(e,e.pendingProps),t.flags|=2,Ee(e),e.memoizedState=null,t}function Qv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(pt){if(a.mode==="hidden")return t=hs(e,a),e.lanes=536870912,Ga(null,t);if(po(e),(t=Vt)?(t=Um(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=ah(t),n.return=e,e.child=n,It=e,Vt=null)):t=null,t===null)throw xn(e);return e.lanes=536870912,null}return hs(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(po(e),s)if(e.flags&256)e.flags&=-257,e=bd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Zt||Hi(t,e,n,!1),s=(n&t.childLanes)!==0,Zt||s){if(a=Ot,a!==null&&(f=ff(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ni(t,f),pe(a,t,f),No;Es(),e=bd(t,e,n)}else t=r.treeContext,Vt=we(f.nextSibling),It=e,pt=!0,Mn=null,Be=!1,t!==null&&uh(e,t),e=hs(e,a),e.flags|=4096;return e}return t=an(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ds(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function jo(t,e,n,a,s){return si(e),n=vo(t,e,n,a,void 0,s),a=So(),t!==null&&!Zt?(To(t,e,s),cn(t,e,s)):(pt&&a&&$u(e),e.flags|=1,ee(t,e,n,s),e.child)}function Ad(t,e,n,a,s,r){return si(e),e.updateQueue=null,n=xh(e,a,n,s),Mh(t),a=So(),t!==null&&!Zt?(To(t,e,r),cn(t,e,r)):(pt&&a&&$u(e),e.flags|=1,ee(t,e,n,r),e.child)}function Ed(t,e,n,a,s){if(si(e),e.stateNode===null){var r=Li,f=n.contextType;typeof f=="object"&&f!==null&&(r=te(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Lo,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},ro(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?te(f):Li,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Bo(e,n,f,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Lo.enqueueReplaceState(r,r.state,null),Na(e,a,r,s),wa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var p=e.memoizedProps,b=hi(n,p);r.props=b;var C=r.context,_=n.contextType;f=Li,typeof _=="object"&&_!==null&&(f=te(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||C!==f)&&rd(e,r,a,f),Cn=!1;var z=e.memoizedState;r.state=z,Na(e,a,r,s),wa(),C=e.memoizedState,p||z!==C||Cn?(typeof L=="function"&&(Bo(e,n,L,a),C=e.memoizedState),(b=Cn||od(e,n,b,a,z,C,f))?(_||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=C),r.props=a,r.state=C,r.context=f,a=b):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,co(t,e),f=e.memoizedProps,_=hi(n,f),r.props=_,L=e.pendingProps,z=r.context,C=n.contextType,b=Li,typeof C=="object"&&C!==null&&(b=te(C)),p=n.getDerivedStateFromProps,(C=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||z!==b)&&rd(e,r,a,b),Cn=!1,z=e.memoizedState,r.state=z,Na(e,a,r,s),wa();var R=e.memoizedState;f!==L||z!==R||Cn||t!==null&&t.dependencies!==null&&kl(t.dependencies)?(typeof p=="function"&&(Bo(e,n,p,a),R=e.memoizedState),(_=Cn||od(e,n,_,a,z,R,b)||t!==null&&t.dependencies!==null&&kl(t.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,R,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,R,b)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=R),r.props=a,r.state=R,r.context=b,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,ds(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=ci(e,t.child,null,s),e.child=ci(e,null,n,s)):ee(t,e,n,s),e.memoizedState=r.state,t=e.child):t=cn(t,e,s),t}function Md(t,e,n,a){return ai(),e.flags|=256,ee(t,e,n,a),e.child}var Ho={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qo(t){return{baseLanes:t,cachePool:dh()}}function Yo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=xe),t}function xd(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(s?Rn(e):Vn(),(t=Vt)?(t=Um(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=ah(t),n.return=e,e.child=n,It=e,Vt=null)):t=null,t===null)throw xn(e);return Er(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,s?(Vn(),s=e.mode,p=ms({mode:"hidden",children:p},s),a=ii(a,s,n,null),p.return=e,a.return=e,p.sibling=a,e.child=p,a=e.child,a.memoizedState=qo(n),a.childLanes=Yo(t,f,n),e.memoizedState=Ho,Ga(null,a)):(Rn(e),Go(e,p))}var b=t.memoizedState;if(b!==null&&(p=b.dehydrated,p!==null)){if(r)e.flags&256?(Rn(e),e.flags&=-257,e=Xo(t,e,n)):e.memoizedState!==null?(Vn(),e.child=t.child,e.flags|=128,e=null):(Vn(),p=a.fallback,s=e.mode,a=ms({mode:"visible",children:a.children},s),p=ii(p,s,n,null),p.flags|=2,a.return=e,p.return=e,a.sibling=p,e.child=a,ci(e,t.child,null,n),a=e.child,a.memoizedState=qo(n),a.childLanes=Yo(t,f,n),e.memoizedState=Ho,e=Ga(null,a));else if(Rn(e),Er(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Ra({value:a,source:null,stack:null}),e=Xo(t,e,n)}else if(Zt||Hi(t,e,n,!1),f=(n&t.childLanes)!==0,Zt||f){if(f=Ot,f!==null&&(a=ff(f,n),a!==0&&a!==b.retryLane))throw b.retryLane=a,ni(t,a),pe(f,t,a),No;Ar(p)||Es(),e=Xo(t,e,n)}else Ar(p)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,Vt=we(p.nextSibling),It=e,pt=!0,Mn=null,Be=!1,t!==null&&uh(e,t),e=Go(e,a.children),e.flags|=4096);return e}return s?(Vn(),p=a.fallback,s=e.mode,b=t.child,C=b.sibling,a=an(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,C!==null?p=an(C,p):(p=ii(p,s,n,null),p.flags|=2),p.return=e,a.return=e,a.sibling=p,e.child=a,Ga(null,a),a=e.child,p=t.child.memoizedState,p===null?p=qo(n):(s=p.cachePool,s!==null?(b=Gt._currentValue,s=s.parent!==b?{parent:b,pool:b}:s):s=dh(),p={baseLanes:p.baseLanes|n,cachePool:s}),a.memoizedState=p,a.childLanes=Yo(t,f,n),e.memoizedState=Ho,Ga(t.child,a)):(Rn(e),n=t.child,t=n.sibling,n=an(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Go(t,e){return e=ms({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ms(t,e){return t=be(22,t,null,e),t.lanes=0,t}function Xo(t,e,n){return ci(e,t.child,null,n),t=Go(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),io(t.return,e,n)}function Zo(t,e,n,a,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function Cd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=qt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,X(qt,f),ee(t,e,a,n),a=pt?Oa:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dd(t,n,e);else if(t.tag===19)Dd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&ns(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Zo(e,!1,s,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ns(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Zo(e,!0,n,null,r,a);break;case"together":Zo(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Bn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Hi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=an(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=an(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Qo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&kl(t)))}function Kv(t,e,n){switch(e.tag){case 3:se(e,e.stateNode.containerInfo),Dn(e,Gt,t.memoizedState.cache),ai();break;case 27:case 5:ma(e);break;case 4:se(e,e.stateNode.containerInfo);break;case 10:Dn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,po(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?xd(t,e,n):(Rn(e),t=cn(t,e,n),t!==null?t.sibling:null);Rn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Hi(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Cd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(qt,qt.current),a)break;return null;case 22:return e.lanes=0,Sd(t,e,n,e.pendingProps);case 24:Dn(e,Gt,t.memoizedState.cache)}return cn(t,e,n)}function zd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!Qo(t,n)&&(e.flags&128)===0)return Zt=!1,Kv(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,pt&&(e.flags&1048576)!==0&&sh(e,Oa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=oi(e.elementType),e.type=t,typeof t=="function")Fu(t)?(a=hi(t,a),e.tag=1,e=Ed(null,e,t,a,n)):(e.tag=0,e=jo(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===G){e.tag=11,e=pd(null,e,t,a,n);break t}else if(s===J){e.tag=14,e=gd(null,e,t,a,n);break t}}throw e=Rt(t)||t,Error(o(306,e,""))}}return e;case 0:return jo(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=hi(a,e.pendingProps),Ed(t,e,a,s,n);case 3:t:{if(se(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,co(t,e),Na(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Dn(e,Gt,a),a!==r.cache&&ao(e,[Gt],n,!0),wa(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Md(t,e,a,n);break t}else if(a!==s){s=Ve(Error(o(424)),e),Ra(s),e=Md(t,e,a,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=we(t.firstChild),It=e,pt=!0,Mn=null,Be=!0,n=Sh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ai(),a===s){e=cn(t,e,n);break t}ee(t,e,a,n)}e=e.child}return e;case 26:return ds(t,e),t===null?(n=Hm(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,a=Rs(rt.current).createElement(n),a[$t]=e,a[ce]=t,ne(a,n,t),Wt(a),e.stateNode=a):e.memoizedState=Hm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ma(e),t===null&&pt&&(a=e.stateNode=wm(e.type,e.pendingProps,rt.current),It=e,Be=!0,s=Vt,Hn(e.type)?(Mr=s,Vt=we(a.firstChild)):Vt=s),ee(t,e,e.pendingProps.children,n),ds(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((s=a=Vt)&&(a=A1(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,It=e,Vt=we(a.firstChild),Be=!1,s=!0):s=!1),s||xn(e)),ma(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Sr(s,r)?a=null:f!==null&&Sr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=vo(t,e,Nv,null,null,n),il._currentValue=s),ds(t,e),ee(t,e,a,n),e.child;case 6:return t===null&&pt&&((t=n=Vt)&&(n=E1(n,e.pendingProps,Be),n!==null?(e.stateNode=n,It=e,Vt=null,t=!0):t=!1),t||xn(e)),null;case 13:return xd(t,e,n);case 4:return se(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ci(e,null,a,n):ee(t,e,a,n),e.child;case 11:return pd(t,e,e.type,e.pendingProps,n);case 7:return ee(t,e,e.pendingProps,n),e.child;case 8:return ee(t,e,e.pendingProps.children,n),e.child;case 12:return ee(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Dn(e,e.type,a.value),ee(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,si(e),s=te(s),a=a(s),e.flags|=1,ee(t,e,a,n),e.child;case 14:return gd(t,e,e.type,e.pendingProps,n);case 15:return vd(t,e,e.type,e.pendingProps,n);case 19:return Cd(t,e,n);case 31:return Qv(t,e,n);case 22:return Sd(t,e,n,e.pendingProps);case 24:return si(e),a=te(Gt),t===null?(s=uo(),s===null&&(s=Ot,r=lo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},ro(e),Dn(e,Gt,s)):((t.lanes&n)!==0&&(co(t,e),Na(e,null,null,n),wa()),s=t.memoizedState,r=e.memoizedState,s.parent!==a?(s={parent:a,cache:a},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Dn(e,Gt,a)):(a=r.cache,Dn(e,Gt,a),a!==s.cache&&ao(e,[Gt],n,!0))),ee(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function fn(t){t.flags|=4}function Ko(t,e,n,a,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(em())t.flags|=8192;else throw ri=$l,oo}else t.flags&=-16777217}function Od(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Zm(e))if(em())t.flags|=8192;else throw ri=$l,oo}function ys(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?of():536870912,t.lanes|=e,Pi|=e)}function Xa(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function Jv(t,e,n){var a=e.pendingProps;switch(Iu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),un(Gt),Ht(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ji(e)?fn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,eo())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(fn(e),r!==null?(_t(e),Od(e,r)):(_t(e),Ko(e,s,null,a,n))):r?r!==t.memoizedState?(fn(e),_t(e),Od(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&fn(e),_t(e),Ko(e,s,t,a,n)),null;case 27:if(Dl(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}t=Q.current,ji(e)?oh(e):(t=wm(s,a,n),e.stateNode=t,fn(e))}return _t(e),null;case 5:if(Dl(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}if(r=Q.current,ji(e))oh(e);else{var f=Rs(rt.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[$t]=e,r[ce]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ne(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&fn(e)}}return _t(e),Ko(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,ji(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=It,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[$t]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xm(t.nodeValue,n)),t||xn(e,!0)}else t=Rs(t).createTextNode(a),t[$t]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=ji(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=eo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ee(e),e):(Ee(e),null);if((e.flags&128)!==0)throw Error(o(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=ji(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=eo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ee(e),e):(Ee(e),null)}return Ee(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ys(e,e.updateQueue),_t(e),null);case 4:return Ht(),t===null&&mr(e.stateNode.containerInfo),_t(e),null;case 10:return un(e.type),_t(e),null;case 19:if(B(qt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Xa(a,!1);else{if(Nt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=ns(t),r!==null){for(e.flags|=128,Xa(a,!1),t=r.updateQueue,e.updateQueue=t,ys(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)ih(n,t),n=n.sibling;return X(qt,qt.current&1|2),pt&&ln(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ge()>Ts&&(e.flags|=128,s=!0,Xa(a,!1),e.lanes=4194304)}else{if(!s)if(t=ns(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,ys(e,t),Xa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!pt)return _t(e),null}else 2*ge()-a.renderingStartTime>Ts&&n!==536870912&&(e.flags|=128,s=!0,Xa(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ge(),t.sibling=null,n=qt.current,X(qt,s?n&1|2:n&1),pt&&ln(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Ee(e),yo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&ys(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&B(ui),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),un(Gt),_t(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function kv(t,e){switch(Iu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return un(Gt),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Dl(e),null;case 31:if(e.memoizedState!==null){if(Ee(e),e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ee(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(qt),null;case 4:return Ht(),null;case 10:return un(e.type),null;case 22:case 23:return Ee(e),yo(),t!==null&&B(ui),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return un(Gt),null;case 25:return null;default:return null}}function Rd(t,e){switch(Iu(e),e.tag){case 3:un(Gt),Ht();break;case 26:case 27:case 5:Dl(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&Ee(e);break;case 13:Ee(e);break;case 19:B(qt);break;case 10:un(e.type);break;case 22:case 23:Ee(e),yo(),t!==null&&B(ui);break;case 24:un(Gt)}}function Za(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(p){Et(e,e.return,p)}}function _n(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=e;var b=n,C=p;try{C()}catch(_){Et(s,b,_)}}}a=a.next}while(a!==r)}}catch(_){Et(e,e.return,_)}}function Vd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{bh(e,n)}catch(a){Et(t,t.return,a)}}}function _d(t,e,n){n.props=hi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Et(t,e,a)}}function Qa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Et(t,e,s)}}function ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Et(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Et(t,e,s)}else n.current=null}function Ud(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Et(t,t.return,s)}}function Jo(t,e,n){try{var a=t.stateNode;p1(a,t.type,n,e),a[ce]=e}catch(s){Et(t,t.return,s)}}function Bd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hn(t.type)||t.tag===4}function ko(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Bd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Hn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Fo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=en));else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Fo(t,e,n),t=t.sibling;t!==null;)Fo(t,e,n),t=t.sibling}function ps(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ps(t,e,n),t=t.sibling;t!==null;)ps(t,e,n),t=t.sibling}function Ld(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ne(e,a,n),e[$t]=t,e[ce]=n}catch(r){Et(t,t.return,r)}}var hn=!1,Qt=!1,Wo=!1,wd=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Fv(t,e){if(t=t.containerInfo,gr=Ns,t=kf(t),Gu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,p=-1,b=-1,C=0,_=0,L=t,z=null;e:for(;;){for(var R;L!==n||s!==0&&L.nodeType!==3||(p=f+s),L!==r||a!==0&&L.nodeType!==3||(b=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(R=L.firstChild)!==null;)z=L,L=R;for(;;){if(L===t)break e;if(z===n&&++C===s&&(p=f),z===r&&++_===a&&(b=f),(R=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=R}n=p===-1||b===-1?null:{start:p,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(vr={focusedElem:t,selectionRange:n},Ns=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var K=hi(n.type,s);t=a.getSnapshotBeforeUpdate(K,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(tt){Et(n,n.return,tt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)br(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":br(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function Nd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:mn(t,n),a&4&&Za(5,n);break;case 1:if(mn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Et(n,n.return,f)}else{var s=hi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Et(n,n.return,f)}}a&64&&Vd(n),a&512&&Qa(n,n.return);break;case 3:if(mn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{bh(t,e)}catch(f){Et(n,n.return,f)}}break;case 27:e===null&&a&4&&Ld(n);case 26:case 5:mn(t,n),e===null&&a&4&&Ud(n),a&512&&Qa(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),a&4&&qd(t,n);break;case 13:mn(t,n),a&4&&Yd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=a1.bind(null,n),M1(t,n))));break;case 22:if(a=n.memoizedState!==null||hn,!a){e=e!==null&&e.memoizedState!==null||Qt,s=hn;var r=Qt;hn=a,(Qt=e)&&!r?yn(t,n,(n.subtreeFlags&8772)!==0):mn(t,n),hn=s,Qt=r}break;case 30:break;default:mn(t,n)}}function jd(t){var e=t.alternate;e!==null&&(t.alternate=null,jd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,he=!1;function dn(t,e,n){for(n=n.child;n!==null;)Hd(t,e,n),n=n.sibling}function Hd(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 26:Qt||ke(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||ke(n,e);var a=Bt,s=he;Hn(n.type)&&(Bt=n.stateNode,he=!1),dn(t,e,n),tl(n.stateNode),Bt=a,he=s;break;case 5:Qt||ke(n,e);case 6:if(a=Bt,s=he,Bt=null,dn(t,e,n),Bt=a,he=s,Bt!==null)if(he)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(r){Et(n,e,r)}else try{Bt.removeChild(n.stateNode)}catch(r){Et(n,e,r)}break;case 18:Bt!==null&&(he?(t=Bt,Vm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),la(t)):Vm(Bt,n.stateNode));break;case 4:a=Bt,s=he,Bt=n.stateNode.containerInfo,he=!0,dn(t,e,n),Bt=a,he=s;break;case 0:case 11:case 14:case 15:_n(2,n,e),Qt||_n(4,n,e),dn(t,e,n);break;case 1:Qt||(ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&_d(n,e,a)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:Qt=(a=Qt)||n.memoizedState!==null,dn(t,e,n),Qt=a;break;default:dn(t,e,n)}}function qd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{la(t)}catch(n){Et(e,e.return,n)}}}function Yd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{la(t)}catch(n){Et(e,e.return,n)}}function Wv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wd),e;default:throw Error(o(435,t.tag))}}function gs(t,e){var n=Wv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=l1.bind(null,t,a);a.then(s,s)}})}function de(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Hn(p.type)){Bt=p.stateNode,he=!1;break t}break;case 5:Bt=p.stateNode,he=!1;break t;case 3:case 4:Bt=p.stateNode.containerInfo,he=!0;break t}p=p.return}if(Bt===null)throw Error(o(160));Hd(r,f,s),Bt=null,he=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Gd(e,t),e=e.sibling}var Ye=null;function Gd(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:de(e,t),me(t),a&4&&(_n(3,t,t.return),Za(3,t),_n(5,t,t.return));break;case 1:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),a&64&&hn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Ye;if(de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(a){case"title":r=s.getElementsByTagName("title")[0],(!r||r[va]||r[$t]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ne(r,a,n),r[$t]=t,Wt(r),a=r;break t;case"link":var f=Gm("link","href",s).get(a+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(r=f[p],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break e}}r=s.createElement(a),ne(r,a,n),s.head.appendChild(r);break;case"meta":if(f=Gm("meta","content",s).get(a+(n.content||""))){for(p=0;p<f.length;p++)if(r=f[p],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break e}}r=s.createElement(a),ne(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[$t]=t,Wt(r),a=r}t.stateNode=a}else Xm(s,t.type,t.stateNode);else t.stateNode=Ym(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Xm(s,t.type,t.stateNode):Ym(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Jo(t,t.memoizedProps,n.memoizedProps)}break;case 27:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),n!==null&&a&4&&Jo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{zi(s,"")}catch(K){Et(t,t.return,K)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Jo(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Wo=!0);break;case 6:if(de(e,t),me(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(K){Et(t,t.return,K)}}break;case 3:if(Us=null,s=Ye,Ye=Vs(e.containerInfo),de(e,t),Ye=s,me(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{la(e.containerInfo)}catch(K){Et(t,t.return,K)}Wo&&(Wo=!1,Xd(t));break;case 4:a=Ye,Ye=Vs(t.stateNode.containerInfo),de(e,t),me(t),Ye=a;break;case 12:de(e,t),me(t);break;case 31:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gs(t,a)));break;case 13:de(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ss=ge()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gs(t,a)));break;case 22:s=t.memoizedState!==null;var b=n!==null&&n.memoizedState!==null,C=hn,_=Qt;if(hn=C||s,Qt=_||b,de(e,t),Qt=_,hn=C,me(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||b||hn||Qt||di(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){b=n=e;try{if(r=b.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=b.stateNode;var L=b.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(K){Et(b,b.return,K)}}}else if(e.tag===6){if(n===null){b=e;try{b.stateNode.nodeValue=s?"":b.memoizedProps}catch(K){Et(b,b.return,K)}}}else if(e.tag===18){if(n===null){b=e;try{var R=b.stateNode;s?_m(R,!0):_m(b.stateNode,!1)}catch(K){Et(b,b.return,K)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,gs(t,n))));break;case 19:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gs(t,a)));break;case 30:break;case 21:break;default:de(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Bd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=ko(t);ps(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(zi(f,""),n.flags&=-33);var p=ko(t);ps(t,p,f);break;case 3:case 4:var b=n.stateNode.containerInfo,C=ko(t);Fo(t,C,b);break;default:throw Error(o(161))}}catch(_){Et(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Xd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Xd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nd(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_n(4,e,e.return),di(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&_d(e,e.return,n),di(e);break;case 27:tl(e.stateNode);case 26:case 5:ke(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function yn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:yn(s,r,n),Za(4,r);break;case 1:if(yn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(C){Et(a,a.return,C)}if(a=r,s=a.updateQueue,s!==null){var p=a.stateNode;try{var b=s.shared.hiddenCallbacks;if(b!==null)for(s.shared.hiddenCallbacks=null,s=0;s<b.length;s++)Th(b[s],p)}catch(C){Et(a,a.return,C)}}n&&f&64&&Vd(r),Qa(r,r.return);break;case 27:Ld(r);case 26:case 5:yn(s,r,n),n&&a===null&&f&4&&Ud(r),Qa(r,r.return);break;case 12:yn(s,r,n);break;case 31:yn(s,r,n),n&&f&4&&qd(s,r);break;case 13:yn(s,r,n),n&&f&4&&Yd(s,r);break;case 22:r.memoizedState===null&&yn(s,r,n),Qa(r,r.return);break;case 30:break;default:yn(s,r,n)}e=e.sibling}}function Po(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Va(n))}function $o(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Va(t))}function Ge(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(t,e,n,a),e=e.sibling}function Zd(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ge(t,e,n,a),s&2048&&Za(9,e);break;case 1:Ge(t,e,n,a);break;case 3:Ge(t,e,n,a),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Va(t)));break;case 12:if(s&2048){Ge(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,p=r.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Et(e,e.return,b)}}else Ge(t,e,n,a);break;case 31:Ge(t,e,n,a);break;case 13:Ge(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?Ge(t,e,n,a):Ka(t,e):r._visibility&2?Ge(t,e,n,a):(r._visibility|=2,ki(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Po(f,e);break;case 24:Ge(t,e,n,a),s&2048&&$o(e.alternate,e);break;default:Ge(t,e,n,a)}}function ki(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,p=n,b=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:ki(r,f,p,b,s),Za(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?ki(r,f,p,b,s):Ka(r,f):(_._visibility|=2,ki(r,f,p,b,s)),s&&C&2048&&Po(f.alternate,f);break;case 24:ki(r,f,p,b,s),s&&C&2048&&$o(f.alternate,f);break;default:ki(r,f,p,b,s)}e=e.sibling}}function Ka(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,s=a.flags;switch(a.tag){case 22:Ka(n,a),s&2048&&Po(a.alternate,a);break;case 24:Ka(n,a),s&2048&&$o(a.alternate,a);break;default:Ka(n,a)}e=e.sibling}}var Ja=8192;function Fi(t,e,n){if(t.subtreeFlags&Ja)for(t=t.child;t!==null;)Qd(t,e,n),t=t.sibling}function Qd(t,e,n){switch(t.tag){case 26:Fi(t,e,n),t.flags&Ja&&t.memoizedState!==null&&w1(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:Fi(t,e,n);break;case 3:case 4:var a=Ye;Ye=Vs(t.stateNode.containerInfo),Fi(t,e,n),Ye=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Ja,Ja=16777216,Fi(t,e,n),Ja=a):Fi(t,e,n));break;default:Fi(t,e,n)}}function Kd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ka(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Pt=a,kd(a,t)}Kd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jd(t),t=t.sibling}function Jd(t){switch(t.tag){case 0:case 11:case 15:ka(t),t.flags&2048&&_n(9,t,t.return);break;case 3:ka(t);break;case 12:ka(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,vs(t)):ka(t);break;default:ka(t)}}function vs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Pt=a,kd(a,t)}Kd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:_n(8,e,e.return),vs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,vs(e));break;default:vs(e)}t=t.sibling}}function kd(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:_n(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Va(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Pt=a;else t:for(n=t;Pt!==null;){a=Pt;var s=a.sibling,r=a.return;if(jd(a),a===n){Pt=null;break t}if(s!==null){s.return=r,Pt=s;break t}Pt=r}}}var Pv={getCacheForType:function(t){var e=te(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return te(Gt).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ot=null,ft=null,mt=0,At=0,Me=null,Un=!1,Wi=!1,Io=!1,pn=0,Nt=0,Bn=0,mi=0,tr=0,xe=0,Pi=0,Fa=null,ye=null,er=!1,Ss=0,Fd=0,Ts=1/0,bs=null,Ln=null,kt=0,wn=null,$i=null,gn=0,nr=0,ir=null,Wd=null,Wa=0,ar=null;function De(){return(Tt&2)!==0&&mt!==0?mt&-mt:O.T!==null?cr():hf()}function Pd(){if(xe===0)if((mt&536870912)===0||pt){var t=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),xe=t}else xe=536870912;return t=Ae.current,t!==null&&(t.flags|=32),xe}function pe(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Ii(t,0),Nn(t,mt,xe,!1)),ga(t,n),((Tt&2)===0||t!==Ot)&&(t===Ot&&((Tt&2)===0&&(mi|=n),Nt===4&&Nn(t,mt,xe,!1)),Fe(t))}function $d(t,e,n){if((Tt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||pa(t,e),s=a?e1(t,e):sr(t,e,!0),r=a;do{if(s===0){Wi&&!a&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Iv(n)){s=sr(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var p=t;s=Fa;var b=p.current.memoizedState.isDehydrated;if(b&&(Ii(p,f).flags|=256),f=sr(p,f,!1),f!==2){if(Io&&!b){p.errorRecoveryDisabledLanes|=r,mi|=r,s=4;break t}r=ye,ye=s,r!==null&&(ye===null?ye=r:ye.push.apply(ye,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Ii(t,0),Nn(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Nn(a,e,xe,!Un);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=Ss+300-ge(),10<s)){if(Nn(a,e,xe,!Un),Vl(a,0,!0)!==0)break t;gn=e,a.timeoutHandle=Om(Id.bind(null,a,n,ye,bs,er,e,xe,mi,Pi,Un,r,"Throttled",-0,0),s);break t}Id(a,n,ye,bs,er,e,xe,mi,Pi,Un,r,null,-0,0)}}break}while(!0);Fe(t)}function Id(t,e,n,a,s,r,f,p,b,C,_,L,z,R){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Qd(e,r,L);var K=(r&62914560)===r?Ss-ge():(r&4194048)===r?Fd-ge():0;if(K=N1(L,K),K!==null){gn=r,t.cancelPendingCommit=K(um.bind(null,t,e,r,n,a,s,f,p,b,_,L,null,z,R)),Nn(t,r,f,!C);return}}um(t,e,r,n,a,s,f,p,b)}function Iv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],r=s.getSnapshot;s=s.value;try{if(!Te(r(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Nn(t,e,n,a){e&=~tr,e&=~mi,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-Se(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&rf(t,n,e)}function As(){return(Tt&6)===0?(Pa(0),!1):!0}function lr(){if(ft!==null){if(At===0)var t=ft.return;else t=ft,sn=li=null,bo(t),Xi=null,Ua=0,t=ft;for(;t!==null;)Rd(t.alternate,t),t=t.return;ft=null}}function Ii(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,S1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),gn=0,lr(),Ot=t,ft=n=an(t.current,null),mt=e,At=0,Me=null,Un=!1,Wi=pa(t,e),Io=!1,Pi=xe=tr=mi=Bn=Nt=0,ye=Fa=null,er=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-Se(a),r=1<<s;e|=t[s],a&=~r}return pn=e,Xl(),n}function tm(t,e){lt=null,O.H=Ya,e===Gi||e===Pl?(e=ph(),At=3):e===oo?(e=ph(),At=4):At=e===No?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,ft===null&&(Nt=1,fs(t,Ve(e,t.current)))}function em(){var t=Ae.current;return t===null?!0:(mt&4194048)===mt?Le===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Le:!1}function nm(){var t=O.H;return O.H=Ya,t===null?Ya:t}function im(){var t=O.A;return O.A=Pv,t}function Es(){Nt=4,Un||(mt&4194048)!==mt&&Ae.current!==null||(Wi=!0),(Bn&134217727)===0&&(mi&134217727)===0||Ot===null||Nn(Ot,mt,xe,!1)}function sr(t,e,n){var a=Tt;Tt|=2;var s=nm(),r=im();(Ot!==t||mt!==e)&&(bs=null,Ii(t,e)),e=!1;var f=Nt;t:do try{if(At!==0&&ft!==null){var p=ft,b=Me;switch(At){case 8:lr(),f=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var C=At;if(At=0,Me=null,ta(t,p,b,C),n&&Wi){f=0;break t}break;default:C=At,At=0,Me=null,ta(t,p,b,C)}}t1(),f=Nt;break}catch(_){tm(t,_)}while(!0);return e&&t.shellSuspendCounter++,sn=li=null,Tt=a,O.H=s,O.A=r,ft===null&&(Ot=null,mt=0,Xl()),f}function t1(){for(;ft!==null;)am(ft)}function e1(t,e){var n=Tt;Tt|=2;var a=nm(),s=im();Ot!==t||mt!==e?(bs=null,Ts=ge()+500,Ii(t,e)):Wi=pa(t,e);t:do try{if(At!==0&&ft!==null){e=ft;var r=Me;e:switch(At){case 1:At=0,Me=null,ta(t,e,r,1);break;case 2:case 9:if(mh(r)){At=0,Me=null,lm(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),Fe(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:mh(r)?(At=0,Me=null,lm(e)):(At=0,Me=null,ta(t,e,r,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var p=ft;if(f?Zm(f):p.stateNode.complete){At=0,Me=null;var b=p.sibling;if(b!==null)ft=b;else{var C=p.return;C!==null?(ft=C,Ms(C)):ft=null}break e}}At=0,Me=null,ta(t,e,r,5);break;case 6:At=0,Me=null,ta(t,e,r,6);break;case 8:lr(),Nt=6;break t;default:throw Error(o(462))}}n1();break}catch(_){tm(t,_)}while(!0);return sn=li=null,O.H=a,O.A=s,Tt=n,ft!==null?0:(Ot=null,mt=0,Xl(),Nt)}function n1(){for(;ft!==null&&!x0();)am(ft)}function am(t){var e=zd(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Ms(t):ft=e}function lm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ad(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Ad(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:bo(e);default:Rd(n,e),e=ft=ih(e,pn),e=zd(n,e,pn)}t.memoizedProps=t.pendingProps,e===null?Ms(t):ft=e}function ta(t,e,n,a){sn=li=null,bo(e),Xi=null,Ua=0;var s=e.return;try{if(Zv(t,s,e,n,mt)){Nt=1,fs(t,Ve(n,t.current)),ft=null;return}}catch(r){if(s!==null)throw ft=s,r;Nt=1,fs(t,Ve(n,t.current)),ft=null;return}e.flags&32768?(pt||a===1?t=!0:Wi||(mt&536870912)!==0?t=!1:(Un=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ae.current,a!==null&&a.tag===13&&(a.flags|=16384))),sm(e,t)):Ms(e)}function Ms(t){var e=t;do{if((e.flags&32768)!==0){sm(e,Un);return}t=e.return;var n=Jv(e.alternate,e,pn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Nt===0&&(Nt=5)}function sm(t,e){do{var n=kv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Nt=6,ft=null}function um(t,e,n,a,s,r,f,p,b){t.cancelPendingCommit=null;do xs();while(kt!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=Ju,L0(t,n,r,f,p,b),t===Ot&&(ft=Ot=null,mt=0),$i=e,wn=t,gn=n,nr=r,ir=s,Wd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s1(Cl,function(){return hm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,s=Y.p,Y.p=2,f=Tt,Tt|=4;try{Fv(t,e,n)}finally{Tt=f,Y.p=s,O.T=a}}kt=1,om(),rm(),cm()}}function om(){if(kt===1){kt=0;var t=wn,e=$i,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=Y.p;Y.p=2;var s=Tt;Tt|=4;try{Gd(e,t);var r=vr,f=kf(t.containerInfo),p=r.focusedElem,b=r.selectionRange;if(f!==p&&p&&p.ownerDocument&&Jf(p.ownerDocument.documentElement,p)){if(b!==null&&Gu(p)){var C=b.start,_=b.end;if(_===void 0&&(_=C),"selectionStart"in p)p.selectionStart=C,p.selectionEnd=Math.min(_,p.value.length);else{var L=p.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var R=z.getSelection(),K=p.textContent.length,tt=Math.min(b.start,K),Dt=b.end===void 0?tt:Math.min(b.end,K);!R.extend&&tt>Dt&&(f=Dt,Dt=tt,tt=f);var M=Kf(p,tt),E=Kf(p,Dt);if(M&&E&&(R.rangeCount!==1||R.anchorNode!==M.node||R.anchorOffset!==M.offset||R.focusNode!==E.node||R.focusOffset!==E.offset)){var D=L.createRange();D.setStart(M.node,M.offset),R.removeAllRanges(),tt>Dt?(R.addRange(D),R.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),R.addRange(D))}}}}for(L=[],R=p;R=R.parentNode;)R.nodeType===1&&L.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<L.length;p++){var U=L[p];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Ns=!!gr,vr=gr=null}finally{Tt=s,Y.p=a,O.T=n}}t.current=e,kt=2}}function rm(){if(kt===2){kt=0;var t=wn,e=$i,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=Y.p;Y.p=2;var s=Tt;Tt|=4;try{Nd(t,e.alternate,e)}finally{Tt=s,Y.p=a,O.T=n}}kt=3}}function cm(){if(kt===4||kt===3){kt=0,D0();var t=wn,e=$i,n=gn,a=Wd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,$i=wn=null,fm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Ln=null),Eu(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ya,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=O.T,s=Y.p,Y.p=2,O.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var p=a[f];r(p.value,{componentStack:p.stack})}}finally{O.T=e,Y.p=s}}(gn&3)!==0&&xs(),Fe(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===ar?Wa++:(Wa=0,ar=t):Wa=0,Pa(0)}}function fm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Va(e)))}function xs(){return om(),rm(),cm(),hm()}function hm(){if(kt!==5)return!1;var t=wn,e=nr;nr=0;var n=Eu(gn),a=O.T,s=Y.p;try{Y.p=32>n?32:n,O.T=null,n=ir,ir=null;var r=wn,f=gn;if(kt=0,$i=wn=null,gn=0,(Tt&6)!==0)throw Error(o(331));var p=Tt;if(Tt|=4,Jd(r.current),Zd(r,r.current,f,n),Tt=p,Pa(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ya,r)}catch{}return!0}finally{Y.p=s,O.T=a,fm(t,e)}}function dm(t,e,n){e=Ve(n,e),e=wo(t.stateNode,e,2),t=On(t,e,2),t!==null&&(ga(t,2),Fe(t))}function Et(t,e,n){if(t.tag===3)dm(t,t,n);else for(;e!==null;){if(e.tag===3){dm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ln===null||!Ln.has(a))){t=Ve(n,t),n=md(2),a=On(e,n,2),a!==null&&(yd(n,a,e,t),ga(a,2),Fe(a));break}}e=e.return}}function ur(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new $v;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(Io=!0,s.add(n),t=i1.bind(null,t,e,n),e.then(t,t))}function i1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(mt&n)===n&&(Nt===4||Nt===3&&(mt&62914560)===mt&&300>ge()-Ss?(Tt&2)===0&&Ii(t,0):tr|=n,Pi===mt&&(Pi=0)),Fe(t)}function mm(t,e){e===0&&(e=of()),t=ni(t,e),t!==null&&(ga(t,e),Fe(t))}function a1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),mm(t,n)}function l1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),mm(t,n)}function s1(t,e){return Su(t,e)}var Ds=null,ea=null,or=!1,Cs=!1,rr=!1,jn=0;function Fe(t){t!==ea&&t.next===null&&(ea===null?Ds=ea=t:ea=ea.next=t),Cs=!0,or||(or=!0,o1())}function Pa(t,e){if(!rr&&Cs){rr=!0;do for(var n=!1,a=Ds;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,p=a.pingedLanes;r=(1<<31-Se(42|t)+1)-1,r&=s&~(f&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,vm(a,r))}else r=mt,r=Vl(a,a===Ot?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||pa(a,r)||(n=!0,vm(a,r));a=a.next}while(n);rr=!1}}function u1(){ym()}function ym(){Cs=or=!1;var t=0;jn!==0&&v1()&&(t=jn);for(var e=ge(),n=null,a=Ds;a!==null;){var s=a.next,r=pm(a,e);r===0?(a.next=null,n===null?Ds=s:n.next=s,s===null&&(ea=n)):(n=a,(t!==0||(r&3)!==0)&&(Cs=!0)),a=s}kt!==0&&kt!==5||Pa(t),jn!==0&&(jn=0)}function pm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-Se(r),p=1<<f,b=s[f];b===-1?((p&n)===0||(p&a)!==0)&&(s[f]=B0(p,e)):b<=e&&(t.expiredLanes|=p),r&=~p}if(e=Ot,n=mt,n=Vl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Tu(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||pa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Tu(a),Eu(n)){case 2:case 8:n=sf;break;case 32:n=Cl;break;case 268435456:n=uf;break;default:n=Cl}return a=gm.bind(null,t),n=Su(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Tu(a),t.callbackPriority=2,t.callbackNode=null,2}function gm(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(xs()&&t.callbackNode!==n)return null;var a=mt;return a=Vl(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:($d(t,a,e),pm(t,ge()),t.callbackNode!=null&&t.callbackNode===n?gm.bind(null,t):null)}function vm(t,e){if(xs())return null;$d(t,e,!0)}function o1(){T1(function(){(Tt&6)!==0?Su(lf,u1):ym()})}function cr(){if(jn===0){var t=qi;t===0&&(t=zl,zl<<=1,(zl&261888)===0&&(zl=256)),jn=t}return jn}function Sm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ll(""+t)}function Tm(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function r1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Sm((s[ce]||null).action),f=a.submitter;f&&(e=(e=f[ce]||null)?Sm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var p=new Hl("action","action",null,a,s);t.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jn!==0){var b=f?Tm(s,f):new FormData(s);Ro(n,{pending:!0,data:b,method:s.method,action:r},null,b)}}else typeof r=="function"&&(p.preventDefault(),b=f?Tm(s,f):new FormData(s),Ro(n,{pending:!0,data:b,method:s.method,action:r},r,b))},currentTarget:s}]})}}for(var fr=0;fr<Ku.length;fr++){var hr=Ku[fr],c1=hr.toLowerCase(),f1=hr[0].toUpperCase()+hr.slice(1);qe(c1,"on"+f1)}qe(Pf,"onAnimationEnd"),qe($f,"onAnimationIteration"),qe(If,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(Cv,"onTransitionRun"),qe(zv,"onTransitionStart"),qe(Ov,"onTransitionCancel"),qe(th,"onTransitionEnd"),Di("onMouseEnter",["mouseout","mouseover"]),Di("onMouseLeave",["mouseout","mouseover"]),Di("onPointerEnter",["pointerout","pointerover"]),Di("onPointerLeave",["pointerout","pointerover"]),$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$n("onBeforeInput",["compositionend","keypress","textInput","paste"]),$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $a="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($a));function bm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var p=a[f],b=p.instance,C=p.currentTarget;if(p=p.listener,b!==r&&s.isPropagationStopped())break t;r=p,s.currentTarget=C;try{r(s)}catch(_){Gl(_)}s.currentTarget=null,r=b}else for(f=0;f<a.length;f++){if(p=a[f],b=p.instance,C=p.currentTarget,p=p.listener,b!==r&&s.isPropagationStopped())break t;r=p,s.currentTarget=C;try{r(s)}catch(_){Gl(_)}s.currentTarget=null,r=b}}}}function ht(t,e){var n=e[Mu];n===void 0&&(n=e[Mu]=new Set);var a=t+"__bubble";n.has(a)||(Am(e,t,2,!1),n.add(a))}function dr(t,e,n){var a=0;e&&(a|=4),Am(n,t,a,e)}var zs="_reactListening"+Math.random().toString(36).slice(2);function mr(t){if(!t[zs]){t[zs]=!0,yf.forEach(function(n){n!=="selectionchange"&&(h1.has(n)||dr(n,!1,t),dr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zs]||(e[zs]=!0,dr("selectionchange",!1,e))}}function Am(t,e,n,a){switch(Pm(e)){case 2:var s=q1;break;case 8:s=Y1;break;default:s=Or}n=s.bind(null,e,n,t),s=void 0,!Uu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),a?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function yr(t,e,n,a,s){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var p=a.stateNode.containerInfo;if(p===s)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Ei(p),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=r=f;continue t}p=p.parentNode}}a=a.return}Cf(function(){var C=r,_=Vu(n),L=[];t:{var z=eh.get(t);if(z!==void 0){var R=Hl,K=t;switch(t){case"keypress":if(Nl(n)===0)break t;case"keydown":case"keyup":R=lv;break;case"focusin":K="focus",R=Nu;break;case"focusout":K="blur",R=Nu;break;case"beforeblur":case"afterblur":R=Nu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=J0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=ov;break;case Pf:case $f:case If:R=W0;break;case th:R=cv;break;case"scroll":case"scrollend":R=Q0;break;case"wheel":R=hv;break;case"copy":case"cut":case"paste":R=$0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=_f;break;case"toggle":case"beforetoggle":R=mv}var tt=(e&4)!==0,Dt=!tt&&(t==="scroll"||t==="scrollend"),M=tt?z!==null?z+"Capture":null:z;tt=[];for(var E=C,D;E!==null;){var U=E;if(D=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||D===null||M===null||(U=Ta(E,M),U!=null&&tt.push(Ia(E,U,D))),Dt)break;E=E.return}0<tt.length&&(z=new R(z,K,null,n,_),L.push({event:z,listeners:tt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",R=t==="mouseout"||t==="pointerout",z&&n!==Ru&&(K=n.relatedTarget||n.fromElement)&&(Ei(K)||K[Ai]))break t;if((R||z)&&(z=_.window===_?_:(z=_.ownerDocument)?z.defaultView||z.parentWindow:window,R?(K=n.relatedTarget||n.toElement,R=C,K=K?Ei(K):null,K!==null&&(Dt=d(K),tt=K.tag,K!==Dt||tt!==5&&tt!==27&&tt!==6)&&(K=null)):(R=null,K=C),R!==K)){if(tt=Rf,U="onMouseLeave",M="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(tt=_f,U="onPointerLeave",M="onPointerEnter",E="pointer"),Dt=R==null?z:Sa(R),D=K==null?z:Sa(K),z=new tt(U,E+"leave",R,n,_),z.target=Dt,z.relatedTarget=D,U=null,Ei(_)===C&&(tt=new tt(M,E+"enter",K,n,_),tt.target=D,tt.relatedTarget=Dt,U=tt),Dt=U,R&&K)e:{for(tt=d1,M=R,E=K,D=0,U=M;U;U=tt(U))D++;U=0;for(var I=E;I;I=tt(I))U++;for(;0<D-U;)M=tt(M),D--;for(;0<U-D;)E=tt(E),U--;for(;D--;){if(M===E||E!==null&&M===E.alternate){tt=M;break e}M=tt(M),E=tt(E)}tt=null}else tt=null;R!==null&&Em(L,z,R,tt,!1),K!==null&&Dt!==null&&Em(L,Dt,K,tt,!0)}}t:{if(z=C?Sa(C):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var vt=qf;else if(jf(z))if(Yf)vt=Mv;else{vt=Av;var P=bv}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ou(C.elementType)&&(vt=qf):vt=Ev;if(vt&&(vt=vt(t,C))){Hf(L,vt,n,_);break t}P&&P(t,z,C),t==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&zu(z,"number",z.value)}switch(P=C?Sa(C):window,t){case"focusin":(jf(P)||P.contentEditable==="true")&&(_i=P,Xu=C,za=null);break;case"focusout":za=Xu=_i=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,Ff(L,n,_);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":Ff(L,n,_)}var st;if(Hu)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else Vi?wf(t,n)&&(yt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(yt="onCompositionStart");yt&&(Uf&&n.locale!=="ko"&&(Vi||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&Vi&&(st=zf()):(An=_,Bu="value"in An?An.value:An.textContent,Vi=!0)),P=Os(C,yt),0<P.length&&(yt=new Vf(yt,t,null,n,_),L.push({event:yt,listeners:P}),st?yt.data=st:(st=Nf(n),st!==null&&(yt.data=st)))),(st=pv?gv(t,n):vv(t,n))&&(yt=Os(C,"onBeforeInput"),0<yt.length&&(P=new Vf("onBeforeInput","beforeinput",null,n,_),L.push({event:P,listeners:yt}),P.data=st)),r1(L,t,C,n,_)}bm(L,e)})}function Ia(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Os(t,e){for(var n=e+"Capture",a=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Ta(t,n),s!=null&&a.unshift(Ia(t,s,r)),s=Ta(t,e),s!=null&&a.push(Ia(t,s,r))),t.tag===3)return a;t=t.return}return[]}function d1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Em(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var p=n,b=p.alternate,C=p.stateNode;if(p=p.tag,b!==null&&b===a)break;p!==5&&p!==26&&p!==27||C===null||(b=C,s?(C=Ta(n,r),C!=null&&f.unshift(Ia(n,C,b))):s||(C=Ta(n,r),C!=null&&f.push(Ia(n,C,b)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var m1=/\r\n?/g,y1=/\u0000|\uFFFD/g;function Mm(t){return(typeof t=="string"?t:""+t).replace(m1,`
`).replace(y1,"")}function xm(t,e){return e=Mm(e),Mm(t)===e}function xt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||zi(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&zi(t,""+a);break;case"className":Ul(t,"class",a);break;case"tabIndex":Ul(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ul(t,n,a);break;case"style":xf(t,a,r);break;case"data":if(e!=="object"){Ul(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ll(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&xt(t,e,"name",s.name,s,null),xt(t,e,"formEncType",s.formEncType,s,null),xt(t,e,"formMethod",s.formMethod,s,null),xt(t,e,"formTarget",s.formTarget,s,null)):(xt(t,e,"encType",s.encType,s,null),xt(t,e,"method",s.method,s,null),xt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ll(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=en);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ll(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),_l(t,"popover",a);break;case"xlinkActuate":tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":_l(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=X0.get(n)||n,_l(t,n,a))}}function pr(t,e,n,a,s,r){switch(n){case"style":xf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?zi(t,a):(typeof a=="number"||typeof a=="bigint")&&zi(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[ce]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):_l(t,n,a)}}}function ne(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:xt(t,e,r,f,n,null)}}s&&xt(t,e,"srcSet",n.srcSet,n,null),a&&xt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var p=r=f=s=null,b=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":b=_;break;case"defaultChecked":C=_;break;case"value":r=_;break;case"defaultValue":p=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:xt(t,e,a,_,n,null)}}bf(t,r,p,b,C,f,s,!1);return;case"select":ht("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":r=p;break;case"defaultValue":f=p;break;case"multiple":a=p;default:xt(t,e,s,p,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Ci(t,!!a,e,!1):n!=null&&Ci(t,!!a,n,!0);return;case"textarea":ht("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":a=p;break;case"defaultValue":s=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:xt(t,e,f,p,n,null)}Ef(t,a,s,r);return;case"option":for(b in n)if(n.hasOwnProperty(b)&&(a=n[b],a!=null))switch(b){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:xt(t,e,b,a,n,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<$a.length;a++)ht($a[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:xt(t,e,C,a,n,null)}return;default:if(Ou(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&pr(t,e,_,a,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!=null&&xt(t,e,p,a,n,null))}function p1(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,p=null,b=null,C=null,_=null;for(R in n){var L=n[R];if(n.hasOwnProperty(R)&&L!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":b=L;default:a.hasOwnProperty(R)||xt(t,e,R,null,a,L)}}for(var z in a){var R=a[z];if(L=n[z],a.hasOwnProperty(z)&&(R!=null||L!=null))switch(z){case"type":r=R;break;case"name":s=R;break;case"checked":C=R;break;case"defaultChecked":_=R;break;case"value":f=R;break;case"defaultValue":p=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:R!==L&&xt(t,e,z,R,a,L)}}Cu(t,f,p,b,C,_,r,s);return;case"select":R=f=p=z=null;for(r in n)if(b=n[r],n.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":R=b;default:a.hasOwnProperty(r)||xt(t,e,r,null,a,b)}for(s in a)if(r=a[s],b=n[s],a.hasOwnProperty(s)&&(r!=null||b!=null))switch(s){case"value":z=r;break;case"defaultValue":p=r;break;case"multiple":f=r;default:r!==b&&xt(t,e,s,r,a,b)}e=p,n=f,a=R,z!=null?Ci(t,!!n,z,!1):!!a!=!!n&&(e!=null?Ci(t,!!n,e,!0):Ci(t,!!n,n?[]:"",!1));return;case"textarea":R=z=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:xt(t,e,p,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":z=s;break;case"defaultValue":R=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&xt(t,e,f,s,a,r)}Af(t,z,R);return;case"option":for(var K in n)if(z=n[K],n.hasOwnProperty(K)&&z!=null&&!a.hasOwnProperty(K))switch(K){case"selected":t.selected=!1;break;default:xt(t,e,K,null,a,z)}for(b in a)if(z=a[b],R=n[b],a.hasOwnProperty(b)&&z!==R&&(z!=null||R!=null))switch(b){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:xt(t,e,b,z,a,R)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tt in n)z=n[tt],n.hasOwnProperty(tt)&&z!=null&&!a.hasOwnProperty(tt)&&xt(t,e,tt,null,a,z);for(C in a)if(z=a[C],R=n[C],a.hasOwnProperty(C)&&z!==R&&(z!=null||R!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:xt(t,e,C,z,a,R)}return;default:if(Ou(e)){for(var Dt in n)z=n[Dt],n.hasOwnProperty(Dt)&&z!==void 0&&!a.hasOwnProperty(Dt)&&pr(t,e,Dt,void 0,a,z);for(_ in a)z=a[_],R=n[_],!a.hasOwnProperty(_)||z===R||z===void 0&&R===void 0||pr(t,e,_,z,a,R);return}}for(var M in n)z=n[M],n.hasOwnProperty(M)&&z!=null&&!a.hasOwnProperty(M)&&xt(t,e,M,null,a,z);for(L in a)z=a[L],R=n[L],!a.hasOwnProperty(L)||z===R||z==null&&R==null||xt(t,e,L,z,a,R)}function Dm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,p=s.duration;if(r&&p&&Dm(f)){for(f=0,p=s.responseEnd,a+=1;a<n.length;a++){var b=n[a],C=b.startTime;if(C>p)break;var _=b.transferSize,L=b.initiatorType;_&&Dm(L)&&(b=b.responseEnd,f+=_*(b<p?1:(p-C)/(b-C)))}if(--a,e+=8*(r+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var gr=null,vr=null;function Rs(t){return t.nodeType===9?t:t.ownerDocument}function Cm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Sr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Tr=null;function v1(){var t=window.event;return t&&t.type==="popstate"?t===Tr?!1:(Tr=t,!0):(Tr=null,!1)}var Om=typeof setTimeout=="function"?setTimeout:void 0,S1=typeof clearTimeout=="function"?clearTimeout:void 0,Rm=typeof Promise=="function"?Promise:void 0,T1=typeof queueMicrotask=="function"?queueMicrotask:typeof Rm<"u"?function(t){return Rm.resolve(null).then(t).catch(b1)}:Om;function b1(t){setTimeout(function(){throw t})}function Hn(t){return t==="head"}function Vm(t,e){var n=e,a=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(s),la(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")tl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,tl(n);for(var r=n.firstChild;r;){var f=r.nextSibling,p=r.nodeName;r[va]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&tl(t.ownerDocument.body);n=s}while(n);la(e)}function _m(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function br(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":br(n),xu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function A1(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[va])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function E1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function Um(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function Ar(t){return t.data==="$?"||t.data==="$~"}function Er(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function M1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Mr=null;function Bm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Lm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function wm(t,e,n){switch(e=Rs(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function tl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xu(t)}var Ne=new Map,Nm=new Set;function Vs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=Y.d;Y.d={f:x1,r:D1,D:C1,C:z1,L:O1,m:R1,X:_1,S:V1,M:U1};function x1(){var t=vn.f(),e=As();return t||e}function D1(t){var e=Mi(t);e!==null&&e.tag===5&&e.type==="form"?td(e):vn.r(t)}var na=typeof document>"u"?null:document;function jm(t,e,n){var a=na;if(a&&typeof e=="string"&&e){var s=Oe(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Nm.has(s)||(Nm.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function C1(t){vn.D(t),jm("dns-prefetch",t,null)}function z1(t,e){vn.C(t,e),jm("preconnect",t,e)}function O1(t,e,n){vn.L(t,e,n);var a=na;if(a&&t&&e){var s='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Oe(n.imageSizes)+'"]')):s+='[href="'+Oe(t)+'"]';var r=s;switch(e){case"style":r=ia(t);break;case"script":r=aa(t)}Ne.has(r)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(el(r))||e==="script"&&a.querySelector(nl(r))||(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function R1(t,e){vn.m(t,e);var n=na;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=aa(t)}if(!Ne.has(r)&&(t=S({rel:"modulepreload",href:t},e),Ne.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(nl(r)))return}a=n.createElement("link"),ne(a,"link",t),Wt(a),n.head.appendChild(a)}}}function V1(t,e,n){vn.S(t,e,n);var a=na;if(a&&t){var s=xi(a).hoistableStyles,r=ia(t);e=e||"default";var f=s.get(r);if(!f){var p={loading:0,preload:null};if(f=a.querySelector(el(r)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(r))&&xr(t,n);var b=f=a.createElement("link");Wt(b),ne(b,"link",t),b._p=new Promise(function(C,_){b.onload=C,b.onerror=_}),b.addEventListener("load",function(){p.loading|=1}),b.addEventListener("error",function(){p.loading|=2}),p.loading|=4,_s(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(r,f)}}}function _1(t,e){vn.X(t,e);var n=na;if(n&&t){var a=xi(n).hoistableScripts,s=aa(t),r=a.get(s);r||(r=n.querySelector(nl(s)),r||(t=S({src:t,async:!0},e),(e=Ne.get(s))&&Dr(t,e),r=n.createElement("script"),Wt(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function U1(t,e){vn.M(t,e);var n=na;if(n&&t){var a=xi(n).hoistableScripts,s=aa(t),r=a.get(s);r||(r=n.querySelector(nl(s)),r||(t=S({src:t,async:!0,type:"module"},e),(e=Ne.get(s))&&Dr(t,e),r=n.createElement("script"),Wt(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function Hm(t,e,n,a){var s=(s=rt.current)?Vs(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ia(n.href),n=xi(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ia(n.href);var r=xi(s).hoistableStyles,f=r.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=s.querySelector(el(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Ne.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ne.set(t,n),r||B1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=aa(n),n=xi(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ia(t){return'href="'+Oe(t)+'"'}function el(t){return'link[rel="stylesheet"]['+t+"]"}function qm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function B1(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",n),Wt(e),t.head.appendChild(e))}function aa(t){return'[src="'+Oe(t)+'"]'}function nl(t){return"script[async]"+t}function Ym(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(a)return e.instance=a,Wt(a),a;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Wt(a),ne(a,"style",s),_s(a,n.precedence,t),e.instance=a;case"stylesheet":s=ia(n.href);var r=t.querySelector(el(s));if(r)return e.state.loading|=4,e.instance=r,Wt(r),r;a=qm(n),(s=Ne.get(s))&&xr(a,s),r=(t.ownerDocument||t).createElement("link"),Wt(r);var f=r;return f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ne(r,"link",a),e.state.loading|=4,_s(r,n.precedence,t),e.instance=r;case"script":return r=aa(n.src),(s=t.querySelector(nl(r)))?(e.instance=s,Wt(s),s):(a=n,(s=Ne.get(r))&&(a=S({},n),Dr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Wt(s),ne(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,_s(a,n.precedence,t));return e.instance}function _s(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,f=0;f<a.length;f++){var p=a[f];if(p.dataset.precedence===e)r=p;else if(r!==s)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Us=null;function Gm(t,e,n){if(Us===null){var a=new Map,s=Us=new Map;s.set(n,a)}else s=Us,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[va]||r[$t]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var p=a.get(f);p?p.push(r):a.set(f,[r])}}return a}function Xm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function L1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Zm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function w1(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ia(a.href),r=e.querySelector(el(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Bs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Wt(r);return}r=e.ownerDocument||e,a=qm(a),(s=Ne.get(s))&&xr(a,s),r=r.createElement("link"),Wt(r);var f=r;f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ne(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Bs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Cr=0;function N1(t,e){return t.stylesheets&&t.count===0&&ws(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&ws(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Cr===0&&(Cr=62500*g1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ws(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Cr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Bs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ws(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ls=null;function ws(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ls=new Map,e.forEach(j1,t),Ls=null,Bs.call(t))}function j1(t,e){if(!(e.state.loading&4)){var n=Ls.get(t);if(n)var a=n.get(null);else{n=new Map,Ls.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var f=s[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||a,r===a&&n.set(null,s),n.set(f,s),this.count++,a=Bs.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var il={$$typeof:H,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function H1(t,e,n,a,s,r,f,p,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.hiddenUpdates=bu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Qm(t,e,n,a,s,r,f,p,b,C,_,L){return t=new H1(t,e,n,f,b,C,_,L,p),e=1,r===!0&&(e|=24),r=be(3,null,null,e),t.current=r,r.stateNode=t,e=lo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},ro(r),t}function Km(t){return t?(t=Li,t):Li}function Jm(t,e,n,a,s,r){s=Km(s),a.context===null?a.context=s:a.pendingContext=s,a=zn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=On(t,a,e),n!==null&&(pe(n,t,e),La(n,t,e))}function km(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zr(t,e){km(t,e),(t=t.alternate)&&km(t,e)}function Fm(t){if(t.tag===13||t.tag===31){var e=ni(t,67108864);e!==null&&pe(e,t,67108864),zr(t,67108864)}}function Wm(t){if(t.tag===13||t.tag===31){var e=De();e=Au(e);var n=ni(t,e);n!==null&&pe(n,t,e),zr(t,e)}}var Ns=!0;function q1(t,e,n,a){var s=O.T;O.T=null;var r=Y.p;try{Y.p=2,Or(t,e,n,a)}finally{Y.p=r,O.T=s}}function Y1(t,e,n,a){var s=O.T;O.T=null;var r=Y.p;try{Y.p=8,Or(t,e,n,a)}finally{Y.p=r,O.T=s}}function Or(t,e,n,a){if(Ns){var s=Rr(a);if(s===null)yr(t,e,a,js,n),$m(t,a);else if(X1(s,t,e,n,a))a.stopPropagation();else if($m(t,a),e&4&&-1<G1.indexOf(t)){for(;s!==null;){var r=Mi(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Pn(r.pendingLanes);if(f!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var b=1<<31-Se(f);p.entanglements[1]|=b,f&=~b}Fe(r),(Tt&6)===0&&(Ts=ge()+500,Pa(0))}}break;case 31:case 13:p=ni(r,2),p!==null&&pe(p,r,2),As(),zr(r,2)}if(r=Rr(a),r===null&&yr(t,e,a,js,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else yr(t,e,a,null,n)}}function Rr(t){return t=Vu(t),Vr(t)}var js=null;function Vr(t){if(js=null,t=Ei(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=y(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return js=t,null}function Pm(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(C0()){case lf:return 2;case sf:return 8;case Cl:case z0:return 32;case uf:return 268435456;default:return 32}default:return 32}}var _r=!1,qn=null,Yn=null,Gn=null,al=new Map,ll=new Map,Xn=[],G1="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".split(" ");function $m(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":al.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(e.pointerId)}}function sl(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=Mi(e),e!==null&&Fm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function X1(t,e,n,a,s){switch(e){case"focusin":return qn=sl(qn,t,e,n,a,s),!0;case"dragenter":return Yn=sl(Yn,t,e,n,a,s),!0;case"mouseover":return Gn=sl(Gn,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return al.set(r,sl(al.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,ll.set(r,sl(ll.get(r)||null,t,e,n,a,s)),!0}return!1}function Im(t){var e=Ei(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,df(t.priority,function(){Wm(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,df(t.priority,function(){Wm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Hs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Rr(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ru=a,n.target.dispatchEvent(a),Ru=null}else return e=Mi(n),e!==null&&Fm(e),t.blockedOn=n,!1;e.shift()}return!0}function ty(t,e,n){Hs(t)&&n.delete(e)}function Z1(){_r=!1,qn!==null&&Hs(qn)&&(qn=null),Yn!==null&&Hs(Yn)&&(Yn=null),Gn!==null&&Hs(Gn)&&(Gn=null),al.forEach(ty),ll.forEach(ty)}function qs(t,e){t.blockedOn===e&&(t.blockedOn=null,_r||(_r=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Z1)))}var Ys=null;function ey(t){Ys!==t&&(Ys=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ys===t&&(Ys=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],s=t[e+2];if(typeof a!="function"){if(Vr(a||n)===null)continue;break}var r=Mi(n);r!==null&&(t.splice(e,3),e-=3,Ro(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function la(t){function e(b){return qs(b,t)}qn!==null&&qs(qn,t),Yn!==null&&qs(Yn,t),Gn!==null&&qs(Gn,t),al.forEach(e),ll.forEach(e);for(var n=0;n<Xn.length;n++){var a=Xn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)Im(n),n.blockedOn===null&&Xn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[ce]||null;if(typeof r=="function")f||ey(n);else if(f){var p=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ce]||null)p=f.formAction;else if(Vr(s)!==null)continue}else p=f.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),ey(n)}}}function ny(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Ur(t){this._internalRoot=t}Gs.prototype.render=Ur.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=De();Jm(n,a,t,e,null,null)},Gs.prototype.unmount=Ur.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Jm(t.current,2,null,t,null,null),As(),e[Ai]=null}};function Gs(t){this._internalRoot=t}Gs.prototype.unstable_scheduleHydration=function(t){if(t){var e=hf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Xn.length&&e!==0&&e<Xn[n].priority;n++);Xn.splice(n,0,t),n===0&&Im(t)}};var iy=l.version;if(iy!=="19.2.6")throw Error(o(527,iy,"19.2.6"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Q1={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{ya=Xs.inject(Q1),ve=Xs}catch{}}return ol.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=cd,r=fd,f=hd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Qm(t,1,!1,null,null,n,a,null,s,r,f,ny),t[Ai]=e.current,mr(t),new Ur(e)},ol.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=cd,f=fd,p=hd,b=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(b=n.formState)),e=Qm(t,1,!0,e,n??null,a,s,b,r,f,p,ny),e.context=Km(null),n=e.current,a=De(),a=Au(a),s=zn(a),s.callback=null,On(n,s,a),n=a,e.current.lanes=n,ga(e,n),Fe(e),t[Ai]=e.current,mr(t),new Gs(e)},ol.version="19.2.6",ol}var dy;function eS(){if(dy)return wr.exports;dy=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),wr.exports=tS(),wr.exports}var lE=eS();const Up=nt.createContext({});function gl(i){const l=nt.useRef(null);return l.current===null&&(l.current=i()),l.current}const nS=typeof window<"u",Bp=nS?nt.useLayoutEffect:nt.useEffect,zc=nt.createContext(null);function Oc(i,l){i.indexOf(l)===-1&&i.push(l)}function nu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const Ie=(i,l,u)=>u>l?l:u<i?i:u;let Rc=()=>{};const kn={},Lp=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function wp(i){return typeof i=="object"&&i!==null}const Np=i=>/^0[^.\s]+$/u.test(i);function jp(i){let l;return()=>(l===void 0&&(l=i()),l)}const He=i=>i,iS=(i,l)=>u=>l(i(u)),Al=(...i)=>i.reduce(iS),vl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class Vc{constructor(){this.subscriptions=[]}add(l){return Oc(this.subscriptions,l),()=>nu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ce=i=>i*1e3,je=i=>i/1e3;function Hp(i,l){return l?i*(1e3/l):0}const qp=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,aS=1e-7,lS=12;function sS(i,l,u,o,c){let d,h,y=0;do h=l+(u-l)/2,d=qp(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>aS&&++y<lS);return h}function El(i,l,u,o){if(i===l&&u===o)return He;const c=d=>sS(d,0,1,i,u);return d=>d===0||d===1?d:qp(c(d),l,o)}const Yp=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,Gp=i=>l=>1-i(1-l),Xp=El(.33,1.53,.69,.99),_c=Gp(Xp),Zp=Yp(_c),Qp=i=>i>=1?1:(i*=2)<1?.5*_c(i):.5*(2-Math.pow(2,-10*(i-1))),Uc=i=>1-Math.sin(Math.acos(i)),Kp=Gp(Uc),Jp=Yp(Uc),uS=El(.42,0,1,1),oS=El(0,0,.58,1),kp=El(.42,0,.58,1),rS=i=>Array.isArray(i)&&typeof i[0]!="number",Fp=i=>Array.isArray(i)&&typeof i[0]=="number",cS={linear:He,easeIn:uS,easeInOut:kp,easeOut:oS,circIn:Uc,circInOut:Jp,circOut:Kp,backIn:_c,backInOut:Zp,backOut:Xp,anticipate:Qp},fS=i=>typeof i=="string",my=i=>{if(Fp(i)){Rc(i.length===4);const[l,u,o,c]=i;return El(l,u,o,c)}else if(fS(i))return cS[i];return i},Zs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hS(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),i()),v(y)}const m={schedule:(v,S=!1,T=!1)=>{const V=T&&c?u:o;return S&&h.add(v),V.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(y=v,c){d=!0;return}c=!0;const S=u;u=o,o=S,u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const dS=40;function Wp(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Zs.reduce((H,G)=>(H[G]=hS(d),H),{}),{setup:y,read:g,resolveKeyframes:m,preUpdate:v,update:S,preRender:T,render:x,postRender:V}=h,N=()=>{const H=kn.useManualTiming,G=H?c.timestamp:performance.now();u=!1,H||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,dS),1)),c.timestamp=G,c.isProcessing=!0,y.process(c),g.process(c),m.process(c),v.process(c),S.process(c),T.process(c),x.process(c),V.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(N))},j=()=>{u=!0,o=!0,c.isProcessing||i(N)};return{schedule:Zs.reduce((H,G)=>{const W=h[G];return H[G]=(ut,J=!1,F=!1)=>(u||j(),W.schedule(ut,J,F)),H},{}),cancel:H=>{for(let G=0;G<Zs.length;G++)h[Zs[G]].cancel(H)},state:c,steps:h}}const{schedule:Ct,cancel:Sn,state:ie,steps:qr}=Wp(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let Fs;function mS(){Fs=void 0}const oe={now:()=>(Fs===void 0&&oe.set(ie.isProcessing||kn.useManualTiming?ie.timestamp:performance.now()),Fs),set:i=>{Fs=i,queueMicrotask(mS)}},Pp=i=>l=>typeof l=="string"&&l.startsWith(i),$p=Pp("--"),yS=Pp("var(--"),Bc=i=>yS(i)?pS.test(i.split("/*")[0].trim()):!1,pS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yy(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const fa={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Sl={...fa,transform:i=>Ie(0,1,i)},Qs={...fa,default:1},fl=i=>Math.round(i*1e5)/1e5,Lc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gS(i){return i==null}const vS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wc=(i,l)=>u=>!!(typeof u=="string"&&vS.test(u)&&u.startsWith(i)||l&&!gS(u)&&Object.prototype.hasOwnProperty.call(u,l)),Ip=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,y]=o.match(Lc);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:y!==void 0?parseFloat(y):1}},SS=i=>Ie(0,255,i),Yr={...fa,transform:i=>Math.round(SS(i))},gi={test:wc("rgb","red"),parse:Ip("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+Yr.transform(i)+", "+Yr.transform(l)+", "+Yr.transform(u)+", "+fl(Sl.transform(o))+")"};function TS(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const nc={test:wc("#"),parse:TS,transform:gi.transform},Ml=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Qn=Ml("deg"),$e=Ml("%"),k=Ml("px"),bS=Ml("vh"),AS=Ml("vw"),py={...$e,parse:i=>$e.parse(i)/100,transform:i=>$e.transform(i*100)},ua={test:wc("hsl","hue"),parse:Ip("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+$e.transform(fl(l))+", "+$e.transform(fl(u))+", "+fl(Sl.transform(o))+")"},Kt={test:i=>gi.test(i)||nc.test(i)||ua.test(i),parse:i=>gi.test(i)?gi.parse(i):ua.test(i)?ua.parse(i):nc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?gi.transform(i):ua.transform(i),getAnimatableNone:i=>{const l=Kt.parse(i);return l.alpha=0,Kt.transform(l)}},ES=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MS(i){var l,u;return isNaN(i)&&typeof i=="string"&&(((l=i.match(Lc))==null?void 0:l.length)||0)+(((u=i.match(ES))==null?void 0:u.length)||0)>0}const tg="number",eg="color",xS="var",DS="var(",gy="${}",CS=/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 ca(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const y=l.replace(CS,g=>(Kt.test(g)?(o.color.push(d),c.push(eg),u.push(Kt.parse(g))):g.startsWith(DS)?(o.var.push(d),c.push(xS),u.push(g)):(o.number.push(d),c.push(tg),u.push(parseFloat(g))),++d,gy)).split(gy);return{values:u,split:y,indexes:o,types:c}}function zS(i){return ca(i).values}function ng({split:i,types:l}){const u=i.length;return o=>{let c="";for(let d=0;d<u;d++)if(c+=i[d],o[d]!==void 0){const h=l[d];h===tg?c+=fl(o[d]):h===eg?c+=Kt.transform(o[d]):c+=o[d]}return c}}function OS(i){return ng(ca(i))}const RS=i=>typeof i=="number"?0:Kt.test(i)?Kt.getAnimatableNone(i):i,VS=(i,l)=>typeof i=="number"?l!=null&&l.trim().endsWith("/")?i:0:RS(i);function _S(i){const l=ca(i);return ng(l)(l.values.map((o,c)=>VS(o,l.split[c])))}const Qe={test:MS,parse:zS,createTransformer:OS,getAnimatableNone:_S};function Gr(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function US({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const y=u<.5?u*(1+l):u+l-u*l,g=2*u-y;c=Gr(g,y,i+1/3),d=Gr(g,y,i),h=Gr(g,y,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function iu(i,l){return u=>u>0?l:i}const Ut=(i,l,u)=>i+(l-i)*u,Xr=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},BS=[nc,gi,ua],LS=i=>BS.find(l=>l.test(i));function vy(i){const l=LS(i);if(!l)return!1;let u=l.parse(i);return l===ua&&(u=US(u)),u}const Sy=(i,l)=>{const u=vy(i),o=vy(l);if(!u||!o)return iu(i,l);const c={...u};return d=>(c.red=Xr(u.red,o.red,d),c.green=Xr(u.green,o.green,d),c.blue=Xr(u.blue,o.blue,d),c.alpha=Ut(u.alpha,o.alpha,d),gi.transform(c))},ic=new Set(["none","hidden"]);function wS(i,l){return ic.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function NS(i,l){return u=>Ut(i,l,u)}function Nc(i){return typeof i=="number"?NS:typeof i=="string"?Bc(i)?iu:Kt.test(i)?Sy:qS:Array.isArray(i)?ig:typeof i=="object"?Kt.test(i)?Sy:jS:iu}function ig(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>Nc(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function jS(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=Nc(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function HS(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],y=i.values[h]??0;u[c]=y,o[d]++}return u}const qS=(i,l)=>{const u=Qe.createTransformer(l),o=ca(i),c=ca(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?ic.has(i)&&!c.values.length||ic.has(l)&&!o.values.length?wS(i,l):Al(ig(HS(o,c),c.values),u):iu(i,l)};function ag(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Ut(i,l,u):Nc(i)(i,l)}const YS=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>Ct.update(l,u),stop:()=>Sn(l),now:()=>ie.isProcessing?ie.timestamp:oe.now()}},lg=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},au=2e4;function jc(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<au;)l+=u,o=i.next(l);return l>=au?1/0:l}function GS(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(jc(o),au);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:je(c)}}const jt={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 ac(i,l){return i*Math.sqrt(1-l*l)}const XS=12;function ZS(i,l,u){let o=u;for(let c=1;c<XS;c++)o=o-i(o)/l(o);return o}const Zr=.001;function QS({duration:i=jt.duration,bounce:l=jt.bounce,velocity:u=jt.velocity,mass:o=jt.mass}){let c,d,h=1-l;h=Ie(jt.minDamping,jt.maxDamping,h),i=Ie(jt.minDuration,jt.maxDuration,je(i)),h<1?(c=m=>{const v=m*h,S=v*i,T=v-u,x=ac(m,h),V=Math.exp(-S);return Zr-T/x*V},d=m=>{const S=m*h*i,T=S*u+u,x=Math.pow(h,2)*Math.pow(m,2)*i,V=Math.exp(-S),N=ac(Math.pow(m,2),h);return(-c(m)+Zr>0?-1:1)*((T-x)*V)/N}):(c=m=>{const v=Math.exp(-m*i),S=(m-u)*i+1;return-Zr+v*S},d=m=>{const v=Math.exp(-m*i),S=(u-m)*(i*i);return v*S});const y=5/i,g=ZS(c,d,y);if(i=Ce(i),isNaN(g))return{stiffness:jt.stiffness,damping:jt.damping,duration:i};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:i}}}const KS=["duration","bounce"],JS=["stiffness","damping","mass"];function Ty(i,l){return l.some(u=>i[u]!==void 0)}function kS(i){let l={velocity:jt.velocity,stiffness:jt.stiffness,damping:jt.damping,mass:jt.mass,isResolvedFromDuration:!1,...i};if(!Ty(i,JS)&&Ty(i,KS))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*Ie(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:jt.mass,stiffness:c,damping:d}}else{const u=QS({...i,velocity:0});l={...l,...u,mass:jt.mass},l.isResolvedFromDuration=!0}return l}function lu(i=jt.visualDuration,l=jt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],y={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:S,velocity:T,isResolvedFromDuration:x}=kS({...u,velocity:-je(u.velocity||0)}),V=T||0,N=m/(2*Math.sqrt(g*v)),j=h-d,w=je(Math.sqrt(g/v)),q=Math.abs(j)<5;o||(o=q?jt.restSpeed.granular:jt.restSpeed.default),c||(c=q?jt.restDelta.granular:jt.restDelta.default);let H,G,W,ut,J,F;if(N<1)W=ac(w,N),ut=(V+N*w*j)/W,H=$=>{const gt=Math.exp(-N*w*$);return h-gt*(ut*Math.sin(W*$)+j*Math.cos(W*$))},J=N*w*ut+j*W,F=N*w*j-ut*W,G=$=>Math.exp(-N*w*$)*(J*Math.sin(W*$)+F*Math.cos(W*$));else if(N===1){H=gt=>h-Math.exp(-w*gt)*(j+(V+w*j)*gt);const $=V+w*j;G=gt=>Math.exp(-w*gt)*(w*$*gt-V)}else{const $=w*Math.sqrt(N*N-1);H=Rt=>{const zt=Math.exp(-N*w*Rt),O=Math.min($*Rt,300);return h-zt*((V+N*w*j)*Math.sinh(O)+$*j*Math.cosh(O))/$};const gt=(V+N*w*j)/$,dt=N*w*gt-j*$,Jt=N*w*j-gt*$;G=Rt=>{const zt=Math.exp(-N*w*Rt),O=Math.min($*Rt,300);return zt*(dt*Math.sinh(O)+Jt*Math.cosh(O))}}const ct={calculatedDuration:x&&S||null,velocity:$=>Ce(G($)),next:$=>{if(!x&&N<1){const dt=Math.exp(-N*w*$),Jt=Math.sin(W*$),Rt=Math.cos(W*$),zt=h-dt*(ut*Jt+j*Rt),O=Ce(dt*(J*Jt+F*Rt));return y.done=Math.abs(O)<=o&&Math.abs(h-zt)<=c,y.value=y.done?h:zt,y}const gt=H($);if(x)y.done=$>=S;else{const dt=Ce(G($));y.done=Math.abs(dt)<=o&&Math.abs(h-gt)<=c}return y.value=y.done?h:gt,y},toString:()=>{const $=Math.min(jc(ct),au),gt=lg(dt=>ct.next($*dt).value,$,30);return $+"ms "+gt},toTransition:()=>{}};return ct}lu.applyToOptions=i=>{const l=GS(i,100,lu);return i.ease=l.ease,i.duration=Ce(l.duration),i.type="keyframes",i};const FS=5;function sg(i,l,u){const o=Math.max(l-FS,0);return Hp(u-i(o),l-o)}function lc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:y,max:g,restDelta:m=.5,restSpeed:v}){const S=i[0],T={done:!1,value:S},x=F=>y!==void 0&&F<y||g!==void 0&&F>g,V=F=>y===void 0?g:g===void 0||Math.abs(y-F)<Math.abs(g-F)?y:g;let N=u*l;const j=S+N,w=h===void 0?j:h(j);w!==j&&(N=w-S);const q=F=>-N*Math.exp(-F/o),H=F=>w+q(F),G=F=>{const ct=q(F),$=H(F);T.done=Math.abs(ct)<=m,T.value=T.done?w:$};let W,ut;const J=F=>{x(T.value)&&(W=F,ut=lu({keyframes:[T.value,V(T.value)],velocity:sg(H,F,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return J(0),{calculatedDuration:null,next:F=>{let ct=!1;return!ut&&W===void 0&&(ct=!0,G(F),J(F)),W!==void 0&&F>=W?ut.next(F-W):(!ct&&G(F),T)}}}function WS(i,l,u){const o=[],c=u||kn.mix||ag,d=i.length-1;for(let h=0;h<d;h++){let y=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||He:l;y=Al(g,y)}o.push(y)}return o}function ug(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(Rc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const y=WS(l,o,c),g=y.length,m=v=>{if(h&&v<i[0])return l[0];let S=0;if(g>1)for(;S<i.length-2&&!(v<i[S+1]);S++);const T=vl(i[S],i[S+1],v);return y[S](T)};return u?v=>m(Ie(i[0],i[d-1],v)):m}function PS(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=vl(0,l,o);i.push(Ut(u,1,c))}}function $S(i){const l=[0];return PS(l,i.length-1),l}function IS(i,l){return i.map(u=>u*l)}function tT(i,l){return i.map(()=>l||kp).splice(0,i.length-1)}function hl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=rS(o)?o.map(my):my(o),d={done:!1,value:l[0]},h=IS(u&&u.length===l.length?u:$S(l),i),y=ug(h,l,{ease:Array.isArray(c)?c:tT(l,c)});return{calculatedDuration:i,next:g=>(d.value=y(g),d.done=g>=i,d)}}const eT=i=>i!==null;function fu(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(eT),y=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!y||o===void 0?d[y]:o}const nT={decay:lc,inertia:lc,tween:hl,keyframes:hl,spring:lu};function og(i){typeof i.type=="string"&&(i.type=nT[i.type])}class Hc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const iT=i=>i/100;class su extends Hc{constructor(l){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 o,c;const{motionValue:u}=this.options;u&&u.updatedAt!==oe.now()&&this.tick(oe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(o=this.options).onStop)==null||c.call(o))},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;og(l);const{type:u=hl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:y}=l;const g=u||hl;g!==hl&&typeof y[0]!="number"&&(this.mixKeyframes=Al(iT,ag(y[0],y[1])),y=[0,100]);const m=g({...l,keyframes:y});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...y].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=jc(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:y,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:S,repeatType:T,repeatDelay:x,type:V,onUpdate:N,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),u?this.currentTime=l:this.updateTime(l);const w=this.currentTime-m*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?w<0:w>c;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,G=o;if(S){const F=Math.min(this.currentTime,c)/y;let ct=Math.floor(F),$=F%1;!$&&F>=1&&($=1),$===1&&ct--,ct=Math.min(ct,S+1),!!(ct%2)&&(T==="reverse"?($=1-$,x&&($-=x/y)):T==="mirror"&&(G=h)),H=Ie(0,1,$)*y}let W;q?(this.delayState.value=v[0],W=this.delayState):W=G.next(H),d&&!q&&(W.value=d(W.value));let{done:ut}=W;!q&&g!==null&&(ut=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ut);return J&&V!==lc&&(W.value=fu(v,this.options,j,this.speed)),N&&N(W.value),J&&this.finish(),W}then(l,u){return this.finished.then(l,u)}get duration(){return je(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+je(l)}get time(){return je(this.currentTime)}set time(l){l=Ce(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=l,this.tick(l))}getGeneratorVelocity(){const l=this.currentTime;if(l<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(l);const u=this.generator.next(l).value;return sg(o=>this.generator.next(o).value,l,u)}get speed(){return this.playbackSpeed}set speed(l){const u=this.playbackSpeed!==l;u&&this.driver&&this.updateTime(oe.now()),this.playbackSpeed=l,u&&this.driver&&(this.time=je(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:l=YS,startTime:u}=this.options;this.driver||(this.driver=l(h=>this.tick(h))),(d=(c=this.options).onPlay)==null||d.call(c);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),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(oe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var l,u;this.notifyFinished(),this.teardown(),this.state="finished",(u=(l=this.options).onComplete)==null||u.call(l)}cancel(){var l,u;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(u=(l=this.options).onCancel)==null||u.call(l)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){var u;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(u=this.driver)==null||u.stop(),l.observe(this)}}function aT(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const vi=i=>i*180/Math.PI,sc=i=>{const l=vi(Math.atan2(i[1],i[0]));return uc(l)},lT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:sc,rotateZ:sc,skewX:i=>vi(Math.atan(i[1])),skewY:i=>vi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},uc=i=>(i=i%360,i<0&&(i+=360),i),by=sc,Ay=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Ey=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),sT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ay,scaleY:Ey,scale:i=>(Ay(i)+Ey(i))/2,rotateX:i=>uc(vi(Math.atan2(i[6],i[5]))),rotateY:i=>uc(vi(Math.atan2(-i[2],i[0]))),rotateZ:by,rotate:by,skewX:i=>vi(Math.atan(i[4])),skewY:i=>vi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function oc(i){return i.includes("scale")?1:0}function rc(i,l){if(!i||i==="none")return oc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=sT,c=u;else{const y=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=lT,c=y}if(!c)return oc(l);const d=o[l],h=c[1].split(",").map(oT);return typeof d=="function"?d(h):h[d]}const uT=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return rc(u,l)};function oT(i){return parseFloat(i.trim())}const ha=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],da=new Set(ha),My=i=>i===fa||i===k,rT=new Set(["x","y","z"]),cT=ha.filter(i=>!rT.has(i));function fT(i){const l=[];return cT.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const Jn={width:({x:i},{paddingLeft:l="0",paddingRight:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},height:({y:i},{paddingTop:l="0",paddingBottom:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>rc(l,"x"),y:(i,{transform:l})=>rc(l,"y")};Jn.translateX=Jn.x;Jn.translateY=Jn.y;const Si=new Set;let cc=!1,fc=!1,hc=!1;function rg(){if(fc){const i=Array.from(Si).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=fT(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{var y;(y=o.getValue(d))==null||y.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}fc=!1,cc=!1,Si.forEach(i=>i.complete(hc)),Si.clear()}function cg(){Si.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(fc=!0)})}function hT(){hc=!0,cg(),rg(),hc=!1}class qc{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Si.add(this),cc||(cc=!0,Ct.read(cg),Ct.resolveKeyframes(rg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,motionValue:c}=this;if(l[0]===null){const d=c==null?void 0:c.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&u){const y=o.readValue(u,h);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}aT(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Si.delete(this)}cancel(){this.state==="scheduled"&&(Si.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dT=i=>i.startsWith("--");function fg(i,l,u){dT(l)?i.style.setProperty(l,u):i.style[l]=u}const mT={};function hg(i,l){const u=jp(i);return()=>mT[l]??u()}const yT=hg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),dg=hg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,xy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cl([0,.65,.55,1]),circOut:cl([.55,0,1,.45]),backIn:cl([.31,.01,.66,-.59]),backOut:cl([.33,1.53,.69,.99])};function mg(i,l){if(i)return typeof i=="function"?dg()?lg(i,l):"ease-out":Fp(i)?cl(i):Array.isArray(i)?i.map(u=>mg(u,l)||xy.easeOut):xy[i]}function pT(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:y="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const S=mg(y,c);Array.isArray(S)&&(v.easing=S);const T={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(v,T)}function yg(i){return typeof i=="function"&&"applyToOptions"in i}function gT({type:i,...l}){return yg(i)&&dg()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class pg extends Hc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:y,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Rc(typeof l.type!="string");const m=gT(l);this.animation=pT(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=fu(c,this.options,y,this.speed);this.updateMotionValue&&this.updateMotionValue(v),fg(u,o,v),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 l,u;(u=(l=this.animation).finish)==null||u.call(l)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var u,o,c;const l=(u=this.options)==null?void 0:u.element;!this.isPseudoElement&&(l!=null&&l.isConnected)&&((c=(o=this.animation).commitStyles)==null||c.call(o))}get duration(){var u,o;const l=((o=(u=this.animation.effect)==null?void 0:u.getComputedTiming)==null?void 0:o.call(u).duration)||0;return je(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+je(l)}get time(){return je(Number(this.animation.currentTime)||0)}set time(l){const u=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ce(l),u&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,rangeStart:u,rangeEnd:o,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,l&&yT()?(this.animation.timeline=l,u&&(this.animation.rangeStart=u),o&&(this.animation.rangeEnd=o),He):c(this)}}const gg={anticipate:Qp,backInOut:Zp,circInOut:Jp};function vT(i){return i in gg}function ST(i){typeof i.ease=="string"&&vT(i.ease)&&(i.ease=gg[i.ease])}const Qr=10;class TT extends pg{constructor(l){ST(l),og(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const y=new su({...h,autoplay:!1}),g=Math.max(Qr,oe.now()-this.startTime),m=Ie(0,Qr,g-Qr),v=y.sample(g).value,{name:S}=this.options;d&&S&&fg(d,S,v),u.setWithVelocity(y.sample(Math.max(0,g-m)).value,v,m),y.stop()}}const Dy=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Qe.test(i)||i==="0")&&!i.startsWith("url("));function bT(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function AT(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Dy(c,l),y=Dy(d,l);return!h||!y?!1:bT(i)||(u==="spring"||yg(u))&&o}function dc(i){i.duration=0,i.type="keyframes"}const vg=new Set(["opacity","clipPath","filter","transform"]),ET=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function MT(i){for(let l=0;l<i.length;l++)if(typeof i[l]=="string"&&ET.test(i[l]))return!0;return!1}const xT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),DT=jp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function CT(i){var S;const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h,keyframes:y}=i;if(!(((S=l==null?void 0:l.owner)==null?void 0:S.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:v}=l.owner.getProps();return DT()&&u&&(vg.has(u)||xT.has(u)&&MT(y))&&(u!=="transform"||!v)&&!m&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const zT=40;class OT extends Hc{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:y,name:g,motionValue:m,element:v,...S}){var V;super(),this.stop=()=>{var N,j;this._animation&&(this._animation.stop(),(N=this.stopTimeline)==null||N.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=oe.now();const T={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...S},x=(v==null?void 0:v.KeyframeResolver)||qc;this.keyframeResolver=new x(y,(N,j,w)=>this.onKeyframesResolved(N,j,T,!w),g,m,v),(V=this.keyframeResolver)==null||V.scheduleResolve()}onKeyframesResolved(l,u,o,c){var w,q;this.keyframeResolver=void 0;const{name:d,type:h,velocity:y,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=oe.now();let S=!0;AT(l,d,h,y)||(S=!1,(kn.instantAnimations||!g)&&(v==null||v(fu(l,o,u))),l[0]=l[l.length-1],dc(o),o.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>zT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},V=S&&!m&&CT(x),N=(q=(w=x.motionValue)==null?void 0:w.owner)==null?void 0:q.current;let j;if(V)try{j=new TT({...x,element:N})}catch{j=new su(x)}else j=new su(x);j.finished.then(()=>{this.notifyFinished()}).catch(He),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){var l;return this._animation||((l=this.keyframeResolver)==null||l.resume(),hT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var l;this._animation&&this.animation.cancel(),(l=this.keyframeResolver)==null||l.cancel()}}function Sg(i,l,u,o=0,c=1){const d=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=i.size,y=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:y-d*o}const RT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VT(i){const l=RT.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function Tg(i,l,u=1){const[o,c]=VT(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return Lp(h)?parseFloat(h):h}return Bc(c)?Tg(c,l,u+1):c}const _T={type:"spring",stiffness:500,damping:25,restSpeed:10},UT=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),BT={type:"keyframes",duration:.8},LT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wT=(i,{keyframes:l})=>l.length>2?BT:da.has(i)?i.startsWith("scale")?UT(l[1]):_T:LT;function bg(i,l){if(i!=null&&i.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function Yc(i,l){const u=(i==null?void 0:i[l])??(i==null?void 0:i.default)??i;return u!==i?bg(u,i):u}const NT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function jT(i){for(const l in i)if(!NT.has(l))return!0;return!1}const Gc=(i,l,u,o={},c,d)=>h=>{const y=Yc(o,i)||{},g=y.delay||o.delay||0;let{elapsed:m=0}=o;m=m-Ce(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-m,onUpdate:T=>{l.set(T),y.onUpdate&&y.onUpdate(T)},onComplete:()=>{h(),y.onComplete&&y.onComplete()},name:i,motionValue:l,element:d?void 0:c};jT(y)||Object.assign(v,wT(i,v)),v.duration&&(v.duration=Ce(v.duration)),v.repeatDelay&&(v.repeatDelay=Ce(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(dc(v),v.delay===0&&(S=!0)),(kn.instantAnimations||kn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(S=!0,dc(v),v.delay=0),v.allowFlatten=!y.type&&!y.ease,S&&!d&&l.get()!==void 0){const T=fu(v.keyframes,y);if(T!==void 0){Ct.update(()=>{v.onUpdate(T),v.onComplete()});return}}return y.isSync?new su(v):new OT(v)};function Cy(i){const l=[{},{}];return i==null||i.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function Xc(i,l,u,o){if(typeof l=="function"){const[c,d]=Cy(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Cy(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function Ti(i,l,u){const o=i.getProps();return Xc(o,l,u!==void 0?u:o.custom,i)}const Ag=new Set(["width","height","top","left","right","bottom",...ha]),zy=30,HT=i=>!isNaN(parseFloat(i)),dl={current:void 0};class qT{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const c=oe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=oe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=HT(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new Vc);const o=this.events[l].add(u);return l==="change"?()=>{o(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var l;(l=this.events.change)==null||l.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return dl.current&&dl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>zy)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,zy);return Hp(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),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 l,u;(l=this.dependents)==null||l.clear(),(u=this.events.destroy)==null||u.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bi(i,l){return new qT(i,l)}const mc=i=>Array.isArray(i);function YT(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,bi(u))}function GT(i){return mc(i)?i[i.length-1]||0:i}function XT(i,l){const u=Ti(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const y=GT(d[h]);YT(i,h,y)}}const ae=i=>!!(i&&i.getVelocity);function ZT(i){return!!(ae(i)&&i.add)}function yc(i,l){const u=i.getValue("willChange");if(ZT(u))return u.add(l);if(!u&&kn.WillChange){const o=new kn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function Zc(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const QT="framerAppearId",Eg="data-"+Zc(QT);function Mg(i){return i.props[Eg]}function KT({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function xg(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...y}=l;const g=i.getDefaultTransition();d=d?bg(d,g):g;const m=d==null?void 0:d.reduceMotion;o&&(d=o);const v=[],S=c&&i.animationState&&i.animationState.getState()[c];for(const T in y){const x=i.getValue(T,i.latestValues[T]??null),V=y[T];if(V===void 0||S&&KT(S,T))continue;const N={delay:u,...Yc(d||{},T)},j=x.get();if(j!==void 0&&!x.isAnimating()&&!Array.isArray(V)&&V===j&&!N.velocity){Ct.update(()=>x.set(V));continue}let w=!1;if(window.MotionHandoffAnimation){const G=Mg(i);if(G){const W=window.MotionHandoffAnimation(G,T,Ct);W!==null&&(N.startTime=W,w=!0)}}yc(i,T);const q=m??i.shouldReduceMotion;x.start(Gc(T,x,V,q&&Ag.has(T)?{type:!1}:N,i,w));const H=x.animation;H&&v.push(H)}if(h){const T=()=>Ct.update(()=>{h&&XT(i,h)});v.length?Promise.all(v).then(T):T()}return v}function pc(i,l,u={}){var g;const o=Ti(i,l,u.type==="exit"?(g=i.presenceContext)==null?void 0:g.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(xg(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(m=0)=>{const{delayChildren:v=0,staggerChildren:S,staggerDirection:T}=c;return JT(i,l,m,v,S,T,u)}:()=>Promise.resolve(),{when:y}=c;if(y){const[m,v]=y==="beforeChildren"?[d,h]:[h,d];return m().then(()=>v())}else return Promise.all([d(),h(u.delay)])}function JT(i,l,u=0,o=0,c=0,d=1,h){const y=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),y.push(pc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+Sg(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(y)}function kT(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>pc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=pc(i,l,u);else{const c=typeof l=="function"?Ti(i,l,u.custom):l;o=Promise.all(xg(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const FT={test:i=>i==="auto",parse:i=>i},Dg=i=>l=>l.test(i),Cg=[fa,k,$e,Qn,AS,bS,FT],Oy=i=>Cg.find(Dg(i));function WT(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Np(i):!0}const PT=new Set(["brightness","contrast","saturate","opacity"]);function $T(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(Lc)||[];if(!o)return i;const c=u.replace(o,"");let d=PT.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const IT=/\b([a-z-]*)\(.*?\)/gu,gc={...Qe,getAnimatableNone:i=>{const l=i.match(IT);return l?l.map($T).join(" "):i}},vc={...Qe,getAnimatableNone:i=>{const l=Qe.parse(i);return Qe.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Ry={...fa,transform:Math.round},tb={rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:Qs,scaleX:Qs,scaleY:Qs,scaleZ:Qs,skew:Qn,skewX:Qn,skewY:Qn,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:Sl,originX:py,originY:py,originZ:k},Qc={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,inset:k,insetBlock:k,insetBlockStart:k,insetBlockEnd:k,insetInline:k,insetInlineStart:k,insetInlineEnd:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockStart:k,paddingBlockEnd:k,paddingInline:k,paddingInlineStart:k,paddingInlineEnd:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockStart:k,marginBlockEnd:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,fontSize:k,backgroundPositionX:k,backgroundPositionY:k,...tb,zIndex:Ry,fillOpacity:Sl,strokeOpacity:Sl,numOctaves:Ry},eb={...Qc,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:gc,WebkitFilter:gc,mask:vc,WebkitMask:vc},zg=i=>eb[i],nb=new Set([gc,vc]);function Og(i,l){let u=zg(i);return nb.has(u)||(u=Qe),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const ib=new Set(["auto","none","0"]);function ab(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!ib.has(d)&&ca(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Og(u,c)}class lb extends qc{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let S=l[v];if(typeof S=="string"&&(S=S.trim(),Bc(S))){const T=Tg(S,u.current);T!==void 0&&(l[v]=T),v===l.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!Ag.has(o)||l.length!==2)return;const[c,d]=l,h=Oy(c),y=Oy(d),g=yy(c),m=yy(d);if(g!==m&&Jn[o]){this.needsMeasurement=!0;return}if(h!==y)if(My(h)&&My(y))for(let v=0;v<l.length;v++){const S=l[v];typeof S=="string"&&(l[v]=parseFloat(S))}else Jn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||WT(l[c]))&&o.push(c);o.length&&ab(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jn[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){var y;const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=Jn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(y=this.removedTransforms)!=null&&y.length&&this.removedTransforms.forEach(([g,m])=>{l.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function Rg(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=(u==null?void 0:u[i])??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const Vg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function sb(i){return wp(i)&&"offsetHeight"in i&&!("ownerSVGElement"in i)}const{schedule:Kc}=Wp(queueMicrotask,!1),Ze={x:!1,y:!1};function _g(){return Ze.x||Ze.y}function ub(i){return i==="x"||i==="y"?Ze[i]?null:(Ze[i]=!0,()=>{Ze[i]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function Ug(i,l){const u=Rg(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function ob(i){return!(i.pointerType==="touch"||_g())}function rb(i,l,u={}){const[o,c,d]=Ug(i,u);return o.forEach(h=>{let y=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",V)},S=j=>{m&&(m(j),m=void 0),v()},T=j=>{y=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,S(j))},x=()=>{y=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=j=>{if(j.pointerType!=="touch"){if(y){g=!0;return}S(j)}},N=j=>{if(!ob(j))return;g=!1;const w=l(h,j);typeof w=="function"&&(m=w,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",N,c),h.addEventListener("pointerdown",x,c)}),d}const Bg=(i,l)=>l?i===l?!0:Bg(i,l.parentElement):!1,Jc=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,cb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fb(i){return cb.has(i.tagName)||i.isContentEditable===!0}const hb=new Set(["INPUT","SELECT","TEXTAREA"]);function db(i){return hb.has(i.tagName)||i.isContentEditable===!0}const Ws=new WeakSet;function Vy(i){return l=>{l.key==="Enter"&&i(l)}}function Kr(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const mb=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Vy(()=>{if(Ws.has(u))return;Kr(u,"down");const c=Vy(()=>{Kr(u,"up")}),d=()=>Kr(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function _y(i){return Jc(i)&&!_g()}const Uy=new WeakSet;function yb(i,l,u={}){const[o,c,d]=Ug(i,u),h=y=>{const g=y.currentTarget;if(!_y(y)||Uy.has(y))return;Ws.add(g),u.stopPropagation&&Uy.add(y);const m=l(g,y),v=(x,V)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",T),Ws.has(g)&&Ws.delete(g),_y(x)&&typeof m=="function"&&m(x,{success:V})},S=x=>{v(x,g===window||g===document||u.useGlobalTarget||Bg(g,x.target))},T=x=>{v(x,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",T,c)};return o.forEach(y=>{(u.useGlobalTarget?window:y).addEventListener("pointerdown",h,c),sb(y)&&(y.addEventListener("focus",m=>mb(m,c)),!fb(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),d}function kc(i){return wp(i)&&"ownerSVGElement"in i}const Ps=new WeakMap;let Kn;const Lg=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:kc(o)&&"getBBox"in o?o.getBBox()[l]:o[u],pb=Lg("inline","width","offsetWidth"),gb=Lg("block","height","offsetHeight");function vb({target:i,borderBoxSize:l}){var u;(u=Ps.get(i))==null||u.forEach(o=>{o(i,{get width(){return pb(i,l)},get height(){return gb(i,l)}})})}function Sb(i){i.forEach(vb)}function Tb(){typeof ResizeObserver>"u"||(Kn=new ResizeObserver(Sb))}function bb(i,l){Kn||Tb();const u=Rg(i);return u.forEach(o=>{let c=Ps.get(o);c||(c=new Set,Ps.set(o,c)),c.add(l),Kn==null||Kn.observe(o)}),()=>{u.forEach(o=>{const c=Ps.get(o);c==null||c.delete(l),c!=null&&c.size||Kn==null||Kn.unobserve(o)})}}const $s=new Set;let oa;function Ab(){oa=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};$s.forEach(l=>l(i))},window.addEventListener("resize",oa)}function Eb(i){return $s.add(i),oa||Ab(),()=>{$s.delete(i),!$s.size&&typeof oa=="function"&&(window.removeEventListener("resize",oa),oa=void 0)}}function By(i,l){return typeof i=="function"?Eb(i):bb(i,l)}function Mb(i){return kc(i)&&i.tagName==="svg"}function xb(...i){const l=!Array.isArray(i[0]),u=l?0:-1,o=i[0+u],c=i[1+u],d=i[2+u],h=i[3+u],y=ug(c,d,h);return l?y(o):y}const Db=[...Cg,Kt,Qe],Cb=i=>Db.find(Dg(i)),Ly=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:Ly(),y:Ly()}),wy=()=>({min:0,max:0}),Ft=()=>({x:wy(),y:wy()}),zb=new WeakMap;function hu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Tl(i){return typeof i=="string"||Array.isArray(i)}const Fc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wc=["initial",...Fc];function du(i){return hu(i.animate)||Wc.some(l=>Tl(i[l]))}function wg(i){return!!(du(i)||i.variants)}function Ob(i,l,u){for(const o in l){const c=l[o],d=u[o];if(ae(c))i.addValue(o,c);else if(ae(d))i.addValue(o,bi(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,bi(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Sc={current:null},Ng={current:!1},Rb=typeof window<"u";function Vb(){if(Ng.current=!0,!!Rb)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Sc.current=i.matches;i.addEventListener("change",l),l()}else Sc.current=!1}const Ny=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let uu={};function jg(i){uu=i}function _b(){return uu}class Ub{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:y},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=qc,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 x=oe.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ct.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=y;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=du(u),this.isVariantNode=wg(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...T}=this.scrapeMotionValuesFromProps(u,{},this);for(const x in T){const V=T[x];m[x]!==void 0&&ae(V)&&V.set(m[x])}}mount(l){var u,o;if(this.hasBeenMounted)for(const c in this.initialValues)(u=this.values.get(c))==null||u.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=l,zb.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ng.current||Vb(),this.shouldReduceMotion=Sc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var l;this.projection&&this.projection.unmount(),Sn(this.notifyUpdate),Sn(this.render),this.valueSubscriptions.forEach(u=>u()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(l=this.parent)==null||l.removeChild(this);for(const u in this.events)this.events[u].clear();for(const u in this.features){const o=this.features[u];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&vg.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:y,times:g,ease:m,duration:v}=u.accelerate,S=new pg({element:this.current,name:l,keyframes:y,times:g,ease:m,duration:Ce(v)}),T=h(S);this.valueSubscriptions.set(l,()=>{T(),S.cancel()});return}const o=da.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Ct.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in uu){const u=uu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<Ny.length;o++){const c=Ny[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=Ob(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=bi(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Lp(o)||Np(o))?o=parseFloat(o):!Cb(o)&&Qe.test(u)&&(o=Og(l,u)),this.setBaseTarget(l,ae(o)?o.get():o)),ae(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){var d;const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const h=Xc(this.props,u,(d=this.presenceContext)==null?void 0:d.custom);h&&(o=h[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ae(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new Vc),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Kc.render(this.render)}}class Hg extends Ub{constructor(){super(...arguments),this.KeyframeResolver=lb}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ae(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class Fn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function qg({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function Bb({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function Lb(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function Jr(i){return i===void 0||i===1}function Tc({scale:i,scaleX:l,scaleY:u}){return!Jr(i)||!Jr(l)||!Jr(u)}function pi(i){return Tc(i)||Yg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Yg(i){return jy(i.x)||jy(i.y)}function jy(i){return i&&i!=="0%"}function ou(i,l,u){const o=i-u,c=l*o;return u+c}function Hy(i,l,u,o,c){return c!==void 0&&(i=ou(i,c,o)),ou(i,u,o)+l}function bc(i,l=0,u=1,o,c){i.min=Hy(i.min,l,u,o,c),i.max=Hy(i.max,l,u,o,c)}function Gg(i,{x:l,y:u}){bc(i.x,l.translate,l.scale,l.originPoint),bc(i.y,u.translate,u.scale,u.originPoint)}const qy=.999999999999,Yy=1.0000000000001;function wb(i,l,u,o=!1){var y;const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let g=0;g<c;g++){d=u[g],h=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Pe(i.x,-d.scroll.offset.x),Pe(i.y,-d.scroll.offset.y)),h&&(l.x*=h.x.scale,l.y*=h.y.scale,Gg(i,h)),o&&pi(d.latestValues)&&Is(i,d.latestValues,(y=d.layout)==null?void 0:y.layoutBox))}l.x<Yy&&l.x>qy&&(l.x=1),l.y<Yy&&l.y>qy&&(l.y=1)}function Pe(i,l){i.min+=l,i.max+=l}function Gy(i,l,u,o,c=.5){const d=Ut(i.min,i.max,c);bc(i,l,u,d,o)}function Xy(i,l){return typeof i=="string"?parseFloat(i)/100*(l.max-l.min):i}function Is(i,l,u){const o=u??i;Gy(i.x,Xy(l.x,o.x),l.scaleX,l.scale,l.originX),Gy(i.y,Xy(l.y,o.y),l.scaleY,l.scale,l.originY)}function Xg(i,l){return qg(Lb(i.getBoundingClientRect(),l))}function Nb(i,l,u){const o=Xg(i,u),{scroll:c}=l;return c&&(Pe(o.x,c.offset.x),Pe(o.y,c.offset.y)),o}const jb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hb=ha.length;function qb(i,l,u){let o="",c=!0;for(let d=0;d<Hb;d++){const h=ha[d],y=i[h];if(y===void 0)continue;let g=!0;if(typeof y=="number")g=y===(h.startsWith("scale")?1:0);else{const m=parseFloat(y);g=h.startsWith("scale")?m===1:m===0}if(!g||u){const m=Vg(y,Qc[h]);if(!g){c=!1;const v=jb[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Pc(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,y=!1;for(const g in l){const m=l[g];if(da.has(g)){h=!0;continue}else if($p(g)){c[g]=m;continue}else{const v=Vg(m,Qc[g]);g.startsWith("origin")?(y=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=qb(l,i.transform,u):o.transform&&(o.transform="none")),y){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function Zg(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c==null||c.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function Zy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const rl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(k.test(i))i=parseFloat(i);else return i;const u=Zy(i,l.target.x),o=Zy(i,l.target.y);return`${u}% ${o}%`}},Yb={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=Qe.parse(i);if(c.length>5)return o;const d=Qe.createTransformer(i),h=typeof c[0]!="number"?1:0,y=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=y,c[1+h]/=g;const m=Ut(y,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},Ac={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:Yb};function Qg(i,{layout:l,layoutId:u}){return da.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!Ac[i]||i==="opacity")}function $c(i,l,u){var h;const o=i.style,c=l==null?void 0:l.style,d={};if(!o)return d;for(const y in o)(ae(o[y])||c&&ae(c[y])||Qg(y,i)||((h=u==null?void 0:u.getValue(y))==null?void 0:h.liveStyle)!==void 0)&&(d[y]=o[y]);return d}function Gb(i){return window.getComputedStyle(i)}class Xb extends Hg{constructor(){super(...arguments),this.type="html",this.renderInstance=Zg}readValueFromInstance(l,u){var o;if(da.has(u))return(o=this.projection)!=null&&o.isProjecting?oc(u):uT(l,u);{const c=Gb(l),d=($p(u)?c.getPropertyValue(u):c[u])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(l,{transformPagePoint:u}){return Xg(l,u)}build(l,u,o){Pc(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return $c(l,u,o)}}const Zb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qb={offset:"strokeDashoffset",array:"strokeDasharray"};function Kb(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?Zb:Qb;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const Jb=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Kg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...y},g,m,v){if(Pc(i,y,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:S,style:T}=i;S.transform&&(T.transform=S.transform,delete S.transform),(T.transform||S.transformOrigin)&&(T.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),T.transform&&(T.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete S.transformBox);for(const x of Jb)S[x]!==void 0&&(T[x]=S[x],delete S[x]);l!==void 0&&(S.x=l),u!==void 0&&(S.y=u),o!==void 0&&(S.scale=o),c!==void 0&&Kb(S,c,d,h,!1)}const Jg=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"]),kg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function kb(i,l,u,o){Zg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(Jg.has(c)?c:Zc(c),l.attrs[c])}function Fg(i,l,u){const o=$c(i,l,u);for(const c in i)if(ae(i[c])||ae(l[c])){const d=ha.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class Fb extends Hg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(da.has(u)){const o=zg(u);return o&&o.default||0}return u=Jg.has(u)?u:Zc(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return Fg(l,u,o)}build(l,u,o){Kg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){kb(l,u,o,c)}mount(l){this.isSVGTag=kg(l.tagName),super.mount(l)}}const Wb=Wc.length;function Wg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?Wg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<Wb;u++){const o=Wc[u],c=i.props[o];(Tl(c)||c===!1)&&(l[o]=c)}return l}function Pg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const Pb=[...Fc].reverse(),$b=Fc.length;function Ib(i){return l=>Promise.all(l.map(({animation:u,options:o})=>kT(i,u,o)))}function tA(i){let l=Ib(i),u=Qy(),o=!0,c=!1;const d=m=>(v,S)=>{var x;const T=Ti(i,S,m==="exit"?(x=i.presenceContext)==null?void 0:x.custom:void 0);if(T){const{transition:V,transitionEnd:N,...j}=T;v={...v,...j,...N}}return v};function h(m){l=m(i)}function y(m){const{props:v}=i,S=Wg(i.parent)||{},T=[],x=new Set;let V={},N=1/0;for(let w=0;w<$b;w++){const q=Pb[w],H=u[q],G=v[q]!==void 0?v[q]:S[q],W=Tl(G),ut=q===m?H.isActive:null;ut===!1&&(N=w);let J=G===S[q]&&G!==v[q]&&W;if(J&&(o||c)&&i.manuallyAnimateOnMount&&(J=!1),H.protectedKeys={...V},!H.isActive&&ut===null||!G&&!H.prevProp||hu(G)||typeof G=="boolean")continue;if(q==="exit"&&H.isActive&&ut!==!0){H.prevResolvedValues&&(V={...V,...H.prevResolvedValues});continue}const F=eA(H.prevProp,G);let ct=F||q===m&&H.isActive&&!J&&W||w>N&&W,$=!1;const gt=Array.isArray(G)?G:[G];let dt=gt.reduce(d(q),{});ut===!1&&(dt={});const{prevResolvedValues:Jt={}}=H,Rt={...Jt,...dt},zt=Z=>{ct=!0,x.has(Z)&&($=!0,x.delete(Z)),H.needsAnimating[Z]=!0;const et=i.getValue(Z);et&&(et.liveStyle=!1)};for(const Z in Rt){const et=dt[Z],ot=Jt[Z];if(V.hasOwnProperty(Z))continue;let A=!1;mc(et)&&mc(ot)?A=!Pg(et,ot):A=et!==ot,A?et!=null?zt(Z):x.add(Z):et!==void 0&&x.has(Z)?zt(Z):H.protectedKeys[Z]=!0}H.prevProp=G,H.prevResolvedValues=dt,H.isActive&&(V={...V,...dt}),(o||c)&&i.blockInitialAnimation&&(ct=!1);const O=J&&F;ct&&(!O||$)&&T.push(...gt.map(Z=>{const et={type:q};if(typeof Z=="string"&&(o||c)&&!O&&i.manuallyAnimateOnMount&&i.parent){const{parent:ot}=i,A=Ti(ot,Z);if(ot.enteringChildren&&A){const{delayChildren:B}=A.transition||{};et.delay=Sg(ot.enteringChildren,i,B)}}return{animation:Z,options:et}}))}if(x.size){const w={};if(typeof v.initial!="boolean"){const q=Ti(i,Array.isArray(v.initial)?v.initial[0]:v.initial);q&&q.transition&&(w.transition=q.transition)}x.forEach(q=>{const H=i.getBaseTarget(q),G=i.getValue(q);G&&(G.liveStyle=!0),w[q]=H??null}),T.push({animation:w})}let j=!!T.length;return o&&(v.initial===!1||v.initial===v.animate)&&!i.manuallyAnimateOnMount&&(j=!1),o=!1,c=!1,j?l(T):Promise.resolve()}function g(m,v){var T;if(u[m].isActive===v)return Promise.resolve();(T=i.variantChildren)==null||T.forEach(x=>{var V;return(V=x.animationState)==null?void 0:V.setActive(m,v)}),u[m].isActive=v;const S=y(m);for(const x in u)u[x].protectedKeys={};return S}return{animateChanges:y,setActive:g,setAnimateFunction:h,getState:()=>u,reset:()=>{u=Qy(),c=!0}}}function eA(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Pg(l,i):!1}function yi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qy(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}function Ec(i,l){i.min=l.min,i.max=l.max}function Xe(i,l){Ec(i.x,l.x),Ec(i.y,l.y)}function Ky(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const $g=1e-4,nA=1-$g,iA=1+$g,Ig=.01,aA=0-Ig,lA=0+Ig;function re(i){return i.max-i.min}function sA(i,l,u){return Math.abs(i-l)<=u}function Jy(i,l,u,o=.5){i.origin=o,i.originPoint=Ut(l.min,l.max,i.origin),i.scale=re(u)/re(l),i.translate=Ut(u.min,u.max,i.origin)-i.originPoint,(i.scale>=nA&&i.scale<=iA||isNaN(i.scale))&&(i.scale=1),(i.translate>=aA&&i.translate<=lA||isNaN(i.translate))&&(i.translate=0)}function ml(i,l,u,o){Jy(i.x,l.x,u.x,o?o.originX:void 0),Jy(i.y,l.y,u.y,o?o.originY:void 0)}function ky(i,l,u,o=0){const c=o?Ut(u.min,u.max,o):u.min;i.min=c+l.min,i.max=i.min+re(l)}function uA(i,l,u,o){ky(i.x,l.x,u.x,o==null?void 0:o.x),ky(i.y,l.y,u.y,o==null?void 0:o.y)}function Fy(i,l,u,o=0){const c=o?Ut(u.min,u.max,o):u.min;i.min=l.min-c,i.max=i.min+re(l)}function ru(i,l,u,o){Fy(i.x,l.x,u.x,o==null?void 0:o.x),Fy(i.y,l.y,u.y,o==null?void 0:o.y)}function Wy(i,l,u,o,c){return i-=l,i=ou(i,1/u,o),c!==void 0&&(i=ou(i,1/c,o)),i}function oA(i,l=0,u=1,o=.5,c,d=i,h=i){if($e.test(l)&&(l=parseFloat(l),l=Ut(h.min,h.max,l/100)-h.min),typeof l!="number")return;let y=Ut(d.min,d.max,o);i===d&&(y-=l),i.min=Wy(i.min,l,u,y,c),i.max=Wy(i.max,l,u,y,c)}function Py(i,l,[u,o,c],d,h){oA(i,l[u],l[o],l[c],l.scale,d,h)}const rA=["x","scaleX","originX"],cA=["y","scaleY","originY"];function $y(i,l,u,o){Py(i.x,l,rA,u?u.x:void 0,o?o.x:void 0),Py(i.y,l,cA,u?u.y:void 0,o?o.y:void 0)}function Iy(i){return i.translate===0&&i.scale===1}function t0(i){return Iy(i.x)&&Iy(i.y)}function tp(i,l){return i.min===l.min&&i.max===l.max}function fA(i,l){return tp(i.x,l.x)&&tp(i.y,l.y)}function ep(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function e0(i,l){return ep(i.x,l.x)&&ep(i.y,l.y)}function np(i){return re(i.x)/re(i.y)}function ip(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function We(i){return[i("x"),i("y")]}function hA(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=(u==null?void 0:u.z)||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:v,rotateX:S,rotateY:T,skewX:x,skewY:V}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),S&&(o+=`rotateX(${S}deg) `),T&&(o+=`rotateY(${T}deg) `),x&&(o+=`skewX(${x}deg) `),V&&(o+=`skewY(${V}deg) `)}const y=i.x.scale*l.x,g=i.y.scale*l.y;return(y!==1||g!==1)&&(o+=`scale(${y}, ${g})`),o||"none"}const n0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],dA=n0.length,ap=i=>typeof i=="string"?parseFloat(i):i,lp=i=>typeof i=="number"||k.test(i);function mA(i,l,u,o,c,d){c?(i.opacity=Ut(0,u.opacity??1,yA(o)),i.opacityExit=Ut(l.opacity??1,0,pA(o))):d&&(i.opacity=Ut(l.opacity??1,u.opacity??1,o));for(let h=0;h<dA;h++){const y=n0[h];let g=sp(l,y),m=sp(u,y);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||lp(g)===lp(m)?(i[y]=Math.max(Ut(ap(g),ap(m),o),0),($e.test(m)||$e.test(g))&&(i[y]+="%")):i[y]=m}(l.rotate||u.rotate)&&(i.rotate=Ut(l.rotate||0,u.rotate||0,o))}function sp(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const yA=i0(0,.5,Kp),pA=i0(.5,.95,He);function i0(i,l,u){return o=>o<i?0:o>l?1:u(vl(i,l,o))}function gA(i,l,u){const o=ae(i)?i:bi(i);return o.start(Gc("",o,l,u)),o.animation}function bl(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const vA=(i,l)=>i.depth-l.depth;class SA{constructor(){this.children=[],this.isDirty=!1}add(l){Oc(this.children,l),this.isDirty=!0}remove(l){nu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(vA),this.isDirty=!1,this.children.forEach(l)}}function TA(i,l){const u=oe.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(Sn(o),i(d-l))};return Ct.setup(o,!0),()=>Sn(o)}function tu(i){return ae(i)?i.get():i}class bA{constructor(){this.members=[]}add(l){Oc(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(nu(this.members,o),o.unmount())}l.scheduleRender()}remove(l){if(nu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){var u;for(let o=this.members.indexOf(l)-1;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1&&((u=c.instance)==null?void 0:u.isConnected)!==!1)return this.promote(c),!0}return!1}promote(l,u){var c;const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.updateSnapshot(),l.scheduleRender();const{layoutDependency:d}=o.options,{layoutDependency:h}=l.options;(d===void 0||d!==h)&&(l.resumeFrom=o,u&&(o.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),(c=l.root)!=null&&c.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{var u,o,c,d,h;(o=(u=l.options).onExitComplete)==null||o.call(u),(h=(c=l.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||h.call(d)})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){var l;(l=this.lead)!=null&&l.snapshot&&(this.lead.snapshot=void 0)}}const eu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kr=["","X","Y","Z"],AA=1e3;let EA=0;function Fr(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function a0(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=Mg(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",Ct,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&a0(o)}function l0({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},y=l==null?void 0:l()){this.id=EA++,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(DA),this.nodes.forEach(_A),this.nodes.forEach(UA),this.nodes.forEach(CA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new SA)}addEventListener(h,y){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Vc),this.eventHandlers.get(h).add(y)}notifyListeners(h,...y){const g=this.eventHandlers.get(h);g&&g.notify(...y)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=kc(h)&&!Mb(h),this.instance=h;const{layoutId:y,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||y)&&(this.isLayoutDirty=!0),i){let v,S=0;const T=()=>this.root.updateBlockedByResize=!1;Ct.read(()=>{S=window.innerWidth}),i(h,()=>{const x=window.innerWidth;x!==S&&(S=x,this.root.updateBlockedByResize=!0,v&&v(),v=TA(T,250),eu.hasAnimatedSinceResize&&(eu.hasAnimatedSinceResize=!1,this.nodes.forEach(rp)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&m&&(y||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:T,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||jA,{onLayoutAnimationStart:N,onLayoutAnimationComplete:j}=m.getProps(),w=!this.targetLayout||!e0(this.targetLayout,x),q=!S&&T;if(this.options.layoutRoot||this.resumeFrom||q||S&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Yc(V,"layout"),onPlay:N,onComplete:j};(m.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,q)}else S||rp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Sn(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(BA),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&a0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,(typeof S.latestValues.x=="string"||typeof S.latestValues.y=="string")&&(S.isLayoutDirty=!0),S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:y,layout:g}=this.options;if(y===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&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(OA),this.nodes.forEach(up);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(op);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(RA),this.nodes.forEach(VA),this.nodes.forEach(MA),this.nodes.forEach(xA)):this.nodes.forEach(op),this.clearAllSnapshots();const y=oe.now();ie.delta=Ie(0,1e3/60,y-ie.timestamp),ie.timestamp=y,ie.isProcessing=!0,qr.update.process(ie),qr.preRender.process(ie),qr.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zA),this.sharedNodes.forEach(LA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!re(this.snapshot.measuredBox.x)&&!re(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 h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ft()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(y=!1),y&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!t0(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(y||pi(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const y=this.measurePageBox();let g=this.removeElementScroll(y);return h&&(g=this.removeTransform(g)),HA(g),{animationId:this.root.animationId,measuredBox:y,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:h}=this.options;if(!h)return Ft();const y=h.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(qA))){const{scroll:v}=this.root;v&&(Pe(y.x,v.offset.x),Pe(y.y,v.offset.y))}return y}removeElementScroll(h){var g;const y=Ft();if(Xe(y,h),(g=this.scroll)!=null&&g.wasRoot)return y;for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:S,options:T}=v;v!==this.root&&S&&T.layoutScroll&&(S.wasRoot&&Xe(y,h),Pe(y.x,S.offset.x),Pe(y.y,S.offset.y))}return y}applyTransform(h,y=!1,g){var v,S;const m=g||Ft();Xe(m,h);for(let T=0;T<this.path.length;T++){const x=this.path[T];!y&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(Pe(m.x,-x.scroll.offset.x),Pe(m.y,-x.scroll.offset.y)),pi(x.latestValues)&&Is(m,x.latestValues,(v=x.layout)==null?void 0:v.layoutBox)}return pi(this.latestValues)&&Is(m,this.latestValues,(S=this.layout)==null?void 0:S.layoutBox),m}removeTransform(h){var g;const y=Ft();Xe(y,h);for(let m=0;m<this.path.length;m++){const v=this.path[m];if(!pi(v.latestValues))continue;let S;v.instance&&(Tc(v.latestValues)&&v.updateSnapshot(),S=Ft(),Xe(S,v.measurePageBox())),$y(y,v.latestValues,(g=v.snapshot)==null?void 0:g.layoutBox,S)}return pi(this.latestValues)&&$y(y,this.latestValues),y}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var x;const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==y;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=ie.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Xe(this.target,this.layout.layoutBox),Gg(this.target,this.targetDelta)):Xe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tc(this.parent.latestValues)||Yg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,y,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),ru(this.relativeTargetOrigin,y,g,this.options.layoutAnchor||void 0),Xe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var V;const h=this.getLead(),y=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||(V=this.parent)!=null&&V.isProjectionDirty)&&(g=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;Xe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;wb(this.layoutCorrected,this.treeScale,this.path,y),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Ft());const{target:x}=h;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ky(this.prevProjectionDelta.x,this.projectionDelta.x),Ky(this.prevProjectionDelta.y,this.projectionDelta.y)),ml(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==T||!ip(this.projectionDelta.x,this.prevProjectionDelta.x)||!ip(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var y;if((y=this.options.visualElement)==null||y.scheduleRender(),h){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(h,y=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},S=ra();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const T=Ft(),x=g?g.source:void 0,V=this.layout?this.layout.source:void 0,N=x!==V,j=this.getStack(),w=!j||j.members.length<=1,q=!!(N&&!w&&this.options.crossfade===!0&&!this.path.some(NA));this.animationProgress=0;let H;this.mixTargetDelta=G=>{const W=G/1e3;cp(S.x,h.x,W),cp(S.y,h.y,W),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ru(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wA(this.relativeTarget,this.relativeTargetOrigin,T,W),H&&fA(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=Ft()),Xe(H,this.relativeTarget)),N&&(this.animationValues=v,mA(v,m,this.latestValues,W,q,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var y,g,m;this.notifyListeners("animationStart"),(y=this.currentAnimation)==null||y.stop(),(m=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Sn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{eu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=gA(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),h.onUpdate&&h.onUpdate(v)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:y,target:g,layout:m,latestValues:v}=h;if(!(!y||!g||!m)){if(this!==h&&this.layout&&m&&s0(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||Ft();const S=re(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+S;const T=re(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}Xe(y,g),Is(y,v),ml(this.projectionDeltaWithTransform,this.layoutCorrected,y,v)}}registerSharedNode(h,y){this.sharedNodes.has(h)||this.sharedNodes.set(h,new bA),this.sharedNodes.get(h).add(y);const m=y.options.initialPromotionConfig;y.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(y):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var y;const{layoutId:h}=this.options;return h?((y=this.getStack())==null?void 0:y.lead)||this:this}getPrevLead(){var y;const{layoutId:h}=this.options;return h?(y=this.getStack())==null?void 0:y.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:y,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let y=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(y=!0),!y)return;const m={};g.z&&Fr("z",h,m,this.animationValues);for(let v=0;v<kr.length;v++)Fr(`rotate${kr[v]}`,h,m,this.animationValues),Fr(`skew${kr[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);h.scheduleRender()}applyProjectionStyles(h,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=tu(y==null?void 0:y.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=tu(y==null?void 0:y.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let S=hA(this.projectionDeltaWithTransform,this.treeScale,v);g&&(S=g(v,S)),h.transform=S;const{x:T,y:x}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${x.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const V in Ac){if(v[V]===void 0)continue;const{correct:N,applyTo:j,isCSSVariable:w}=Ac[V],q=S==="none"?v[V]:N(v[V],m);if(j){const H=j.length;for(let G=0;G<H;G++)h[j[G]]=q}else w?this.options.visualElement.renderState.vars[V]=q:h[V]=q}this.options.layoutId&&(h.pointerEvents=m===this?tu(y==null?void 0:y.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var y;return(y=h.currentAnimation)==null?void 0:y.stop()}),this.root.nodes.forEach(up),this.root.sharedNodes.clear()}}}function MA(i){i.updateLayout()}function xA(i){var u;const l=((u=i.resumeFrom)==null?void 0:u.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:c}=i.layout,{animationType:d}=i.options,h=l.source!==i.layout.source;if(d==="size")We(S=>{const T=h?l.measuredBox[S]:l.layoutBox[S],x=re(T);T.min=o[S].min,T.max=T.min+x});else if(d==="x"||d==="y"){const S=d==="x"?"y":"x";Ec(h?l.measuredBox[S]:l.layoutBox[S],o[S])}else s0(d,l.layoutBox,o)&&We(S=>{const T=h?l.measuredBox[S]:l.layoutBox[S],x=re(o[S]);T.max=T.min+x,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[S].max=i.relativeTarget[S].min+x)});const y=ra();ml(y,o,l.layoutBox);const g=ra();h?ml(g,i.applyTransform(c,!0),l.measuredBox):ml(g,o,l.layoutBox);const m=!t0(y);let v=!1;if(!i.resumeFrom){const S=i.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:T,layout:x}=S;if(T&&x){const V=i.options.layoutAnchor||void 0,N=Ft();ru(N,l.layoutBox,T.layoutBox,V);const j=Ft();ru(j,o,x.layoutBox,V),e0(N,j)||(v=!0),S.options.layoutRoot&&(i.relativeTarget=j,i.relativeTargetOrigin=N,i.relativeParent=S)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:g,layoutDelta:y,hasLayoutChanged:m,hasRelativeLayoutChanged:v})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function DA(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function CA(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function zA(i){i.clearSnapshot()}function up(i){i.clearMeasurements()}function OA(i){i.isLayoutDirty=!0,i.updateLayout()}function op(i){i.isLayoutDirty=!1}function RA(i){i.isAnimationBlocked&&i.layout&&!i.isLayoutDirty&&(i.snapshot=i.layout,i.isLayoutDirty=!0)}function VA(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function rp(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function _A(i){i.resolveTargetDelta()}function UA(i){i.calcProjection()}function BA(i){i.resetSkewAndRotation()}function LA(i){i.removeLeadSnapshot()}function cp(i,l,u){i.translate=Ut(l.translate,0,u),i.scale=Ut(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function fp(i,l,u,o){i.min=Ut(l.min,u.min,o),i.max=Ut(l.max,u.max,o)}function wA(i,l,u,o){fp(i.x,l.x,u.x,o),fp(i.y,l.y,u.y,o)}function NA(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const jA={duration:.45,ease:[.4,0,.1,1]},hp=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),dp=hp("applewebkit/")&&!hp("chrome/")?Math.round:He;function mp(i){i.min=dp(i.min),i.max=dp(i.max)}function HA(i){mp(i.x),mp(i.y)}function s0(i,l,u){return i==="position"||i==="preserve-aspect"&&!sA(np(l),np(u),.2)}function qA(i){var l;return i!==i.root&&((l=i.scroll)==null?void 0:l.wasRoot)}const YA=l0({attachResizeListener:(i,l)=>bl(i,"resize",l),measureScroll:()=>{var i,l;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((l=document.body)==null?void 0:l.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Wr={current:void 0},u0=l0({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Wr.current){const i=new YA({});i.mount(window),i.setOptions({layoutScroll:!0}),Wr.current=i}return Wr.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Ic=nt.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function GA(i=!0){const l=nt.useContext(zc);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=nt.useId();nt.useEffect(()=>{if(i)return c(d)},[i]);const h=nt.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const o0=nt.createContext({strict:!1}),yp={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 pp=!1;function XA(){if(pp)return;const i={};for(const l in yp)i[l]={isEnabled:u=>yp[l].some(o=>!!u[o])};jg(i),pp=!0}function r0(){return XA(),_b()}function ZA(i){const l=r0();for(const u in i)l[u]={...l[u],...i[u]};jg(l)}const QA=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 cu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||QA.has(i)}let c0=i=>!cu(i);function KA(i){typeof i=="function"&&(c0=l=>l.startsWith("on")?!cu(l):i(l))}try{KA(require("@emotion/is-prop-valid").default)}catch{}function JA(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||ae(i[c])||(c0(c)||u===!0&&cu(c)||!l&&!cu(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const mu=nt.createContext({});function kA(i,l){if(du(i)){const{initial:u,animate:o}=i;return{initial:u===!1||Tl(u)?u:void 0,animate:Tl(o)?o:void 0}}return i.inherit!==!1?l:{}}function FA(i){const{initial:l,animate:u}=kA(i,nt.useContext(mu));return nt.useMemo(()=>({initial:l,animate:u}),[gp(l),gp(u)])}function gp(i){return Array.isArray(i)?i.join(" "):i}const tf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function f0(i,l,u){for(const o in l)!ae(l[o])&&!Qg(o,u)&&(i[o]=l[o])}function WA({transformTemplate:i},l){return nt.useMemo(()=>{const u=tf();return Pc(u,l,i),Object.assign({},u.vars,u.style)},[l])}function PA(i,l){const u=i.style||{},o={};return f0(o,u,i),Object.assign(o,WA(i,l)),o}function $A(i,l){const u={},o=PA(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const h0=()=>({...tf(),attrs:{}});function IA(i,l,u,o){const c=nt.useMemo(()=>{const d=h0();return Kg(d,l,kg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};f0(d,i.style,i),c.style={...d,...c.style}}return c}const t2=["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 ef(i){return typeof i!="string"||i.includes("-")?!1:!!(t2.indexOf(i)>-1||/[A-Z]/u.test(i))}function e2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??ef(i)?IA:$A)(l,o,c,i),m=JA(l,typeof i=="string",d),v=i!==nt.Fragment?{...m,...g,ref:u}:{},{children:S}=l,T=nt.useMemo(()=>ae(S)?S.get():S,[S]);return nt.createElement(i,{...v,children:T})}function n2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:i2(u,o,c,i),renderState:l()}}function i2(i,l,u,o){const c={},d=o(i,{});for(const T in d)c[T]=tu(d[T]);let{initial:h,animate:y}=i;const g=du(i),m=wg(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),y===void 0&&(y=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const S=v?y:h;if(S&&typeof S!="boolean"&&!hu(S)){const T=Array.isArray(S)?S:[S];for(let x=0;x<T.length;x++){const V=Xc(i,T[x]);if(V){const{transitionEnd:N,transition:j,...w}=V;for(const q in w){let H=w[q];if(Array.isArray(H)){const G=v?H.length-1:0;H=H[G]}H!==null&&(c[q]=H)}for(const q in N)c[q]=N[q]}}}return c}const d0=i=>(l,u)=>{const o=nt.useContext(mu),c=nt.useContext(zc),d=()=>n2(i,l,o,c);return u?d():gl(d)},a2=d0({scrapeMotionValuesFromProps:$c,createRenderState:tf}),l2=d0({scrapeMotionValuesFromProps:Fg,createRenderState:h0}),s2=Symbol.for("motionComponentSymbol");function u2(i,l,u){const o=nt.useRef(u);nt.useInsertionEffect(()=>{o.current=u});const c=nt.useRef(null);return nt.useCallback(d=>{var y;d&&((y=i.onMount)==null||y.call(i,d));const h=o.current;if(typeof h=="function")if(d){const g=h(d);typeof g=="function"&&(c.current=g)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d);l&&(d?l.mount(d):l.unmount())},[l])}const m0=nt.createContext({});function sa(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function o2(i,l,u,o,c,d){var H,G;const{visualElement:h}=nt.useContext(mu),y=nt.useContext(o0),g=nt.useContext(zc),m=nt.useContext(Ic),v=m.reducedMotion,S=m.skipAnimations,T=nt.useRef(null),x=nt.useRef(!1);o=o||y.renderer,!T.current&&o&&(T.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:S,isSVG:d}),x.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,N=nt.useContext(m0);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&r2(T.current,u,c,N);const j=nt.useRef(!1);nt.useInsertionEffect(()=>{V&&j.current&&V.update(u,g)});const w=u[Eg],q=nt.useRef(!!w&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,w))&&((G=window.MotionHasOptimisedAnimation)==null?void 0:G.call(window,w)));return Bp(()=>{x.current=!0,V&&(j.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),q.current&&V.animationState&&V.animationState.animateChanges())}),nt.useEffect(()=>{V&&(!q.current&&V.animationState&&V.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{var W;(W=window.MotionHandoffMarkAsComplete)==null||W.call(window,w)}),q.current=!1),V.enteringChildren=void 0)}),V}function r2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:y,layoutScroll:g,layoutRoot:m,layoutAnchor:v,layoutCrossfade:S}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:y0(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||y&&sa(y),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:S,layoutScroll:g,layoutRoot:m,layoutAnchor:v})}function y0(i){if(i)return i.options.allowProjection!==!1?i.projection:y0(i.parent)}function Pr(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&ZA(o);const d=u?u==="svg":ef(i),h=d?l2:a2;function y(m,v){let S;const T={...nt.useContext(Ic),...m,layoutId:c2(m)},{isStatic:x}=T,V=FA(m),N=h(m,x);if(!x&&typeof window<"u"){f2();const j=h2(T);S=j.MeasureLayout,V.visualElement=o2(i,N,T,c,j.ProjectionNode,d)}return Lt.jsxs(mu.Provider,{value:V,children:[S&&V.visualElement?Lt.jsx(S,{visualElement:V.visualElement,...T}):null,e2(i,m,u2(N,V.visualElement,v),N,x,l,d)]})}y.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=nt.forwardRef(y);return g[s2]=i,g}function c2({layoutId:i}){const l=nt.useContext(Up).id;return l&&i!==void 0?l+"-"+i:i}function f2(i,l){nt.useContext(o0).strict}function h2(i){const l=r0(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u!=null&&u.isEnabled(i)||o!=null&&o.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function d2(i,l){if(typeof Proxy>"u")return Pr;const u=new Map,o=(d,h)=>Pr(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Pr(h,void 0,i,l)),u.get(h))})}const m2=(i,l)=>l.isSVG??ef(i)?new Fb(l):new Xb(l,{allowProjection:i!==nt.Fragment});class y2 extends Fn{constructor(l){super(l),l.animationState||(l.animationState=tA(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();hu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){var l;this.node.animationState.reset(),(l=this.unmountControls)==null||l.call(this)}}let p2=0;class g2 extends Fn{constructor(){super(...arguments),this.id=p2++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;if(l&&o===!1){if(this.isExitComplete){const{initial:h,custom:y}=this.node.getProps();if(typeof h=="string"){const g=Ti(this.node,h,y);if(g){const{transition:m,transitionEnd:v,...S}=g;for(const T in S)(d=this.node.getValue(T))==null||d.jump(S[T])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{this.isExitComplete=!0,u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const v2={animation:{Feature:y2},exit:{Feature:g2}};function xl(i){return{point:{x:i.pageX,y:i.pageY}}}const S2=i=>l=>Jc(l)&&i(l,xl(l));function yl(i,l,u,o){return bl(i,l,S2(u),o)}const p0=({current:i})=>i?i.ownerDocument.defaultView:null,vp=(i,l)=>Math.abs(i-l);function T2(i,l){const u=vp(i.x,l.x),o=vp(i.y,l.y);return Math.sqrt(u**2+o**2)}const Sp=new Set(["auto","scroll"]);class g0{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:y}={}){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=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ks(this.lastRawMoveEventInfo,this.transformPagePoint));const x=$r(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,N=T2(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!N)return;const{point:j}=x,{timestamp:w}=ie;this.history.push({...j,timestamp:w});const{onStart:q,onMove:H}=this.handlers;V||(q&&q(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,x)},this.handlePointerMove=(x,V)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=V,this.lastMoveEventInfo=Ks(V,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(x,V)=>{this.end();const{onEnd:N,onSessionEnd:j,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=$r(x.type==="pointercancel"?this.lastMoveEventInfo:Ks(V,this.transformPagePoint),this.history);this.startEvent&&N&&N(x,q),j&&j(x,q)},!Jc(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=xl(l),m=Ks(g,this.transformPagePoint),{point:v}=m,{timestamp:S}=ie;this.history=[{...v,timestamp:S}];const{onSessionStart:T}=u;T&&T(l,$r(m,this.history)),this.removeListeners=Al(yl(this.contextWindow,"pointermove",this.handlePointerMove),yl(this.contextWindow,"pointerup",this.handlePointerUp),yl(this.contextWindow,"pointercancel",this.handlePointerUp)),y&&this.startScrollTracking(y)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Sp.has(o.overflowX)||Sp.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.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(l){const u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),Ct.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Sn(this.updatePoint)}}function Ks(i,l){return l?{point:l(i.point)}:i}function Tp(i,l){return{x:i.x-l.x,y:i.y-l.y}}function $r({point:i},l){return{point:i,delta:Tp(i,v0(l)),offset:Tp(i,b2(l)),velocity:A2(l,.1)}}function b2(i){return i[0]}function v0(i){return i[i.length-1]}function A2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=v0(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>Ce(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>Ce(l)*2&&(o=i[1]);const d=je(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function E2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Ut(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Ut(u,i,o.max):Math.min(i,u)),i}function bp(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function M2(i,{top:l,left:u,bottom:o,right:c}){return{x:bp(i.x,u,c),y:bp(i.y,l,o)}}function Ap(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function x2(i,l){return{x:Ap(i.x,l.x),y:Ap(i.y,l.y)}}function D2(i,l){let u=.5;const o=re(i),c=re(l);return c>o?u=vl(l.min,l.max-o,i.min):o>c&&(u=vl(i.min,i.max-c,l.min)),Ie(0,1,u)}function C2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Mc=.35;function z2(i=Mc){return i===!1?i=0:i===!0&&(i=Mc),{x:Ep(i,"left","right"),y:Ep(i,"top","bottom")}}function Ep(i,l,u){return{min:Mp(i,l),max:Mp(i,u)}}function Mp(i,l){return typeof i=="number"?i:i[l]||0}const O2=new WeakMap;class R2{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{u&&this.snapToCursor(xl(S).point),this.stopAnimation()},h=(S,T)=>{const{drag:x,dragPropagation:V,onDragStart:N}=this.getProps();if(x&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ub(x),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),We(w=>{let q=this.getAxisMotionValue(w).get()||0;if($e.test(q)){const{projection:H}=this.visualElement;if(H&&H.layout){const G=H.layout.layoutBox[w];G&&(q=re(G)*(parseFloat(q)/100))}}this.originPoint[w]=q}),N&&Ct.update(()=>N(S,T),!1,!0),yc(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},y=(S,T)=>{this.latestPointerEvent=S,this.latestPanInfo=T;const{dragPropagation:x,dragDirectionLock:V,onDirectionLock:N,onDrag:j}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:w}=T;if(V&&this.currentDirection===null){this.currentDirection=_2(w),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",T.point,w),this.updateAxis("y",T.point,w),this.visualElement.render(),j&&Ct.update(()=>j(S,T),!1,!0)},g=(S,T)=>{this.latestPointerEvent=S,this.latestPanInfo=T,this.stop(S,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new g0(l,{onSessionStart:d,onStart:h,onMove:y,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:p0(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:y}=this.getProps();y&&Ct.postRender(()=>y(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Js(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=E2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){var d;const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;l&&sa(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=M2(o.layoutBox,l):this.constraints=!1,this.elastic=z2(u),c!==this.constraints&&!sa(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&We(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=C2(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!sa(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Nb(o,c.root,this.visualElement.getTransformPagePoint());let h=x2(c.layout.layoutBox,d);if(u){const y=u(Bb(h));this.hasMutatedConstraints=!!y,y&&(h=qg(y))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:y}=this.getProps(),g=this.constraints||{},m=We(v=>{if(!Js(v,u,this.currentDirection))return;let S=g&&g[v]||{};(h===!0||h===v)&&(S={min:0,max:0});const T=c?200:1e6,x=c?40:1e7,V={type:"inertia",velocity:o?l[v]:0,bounceStiffness:T,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,V)});return Promise.all(m).then(y)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return yc(this.visualElement,l),o.start(Gc(l,o,0,u,this.visualElement,!1))}stopAnimation(){We(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){We(u=>{const{drag:o}=this.getProps();if(!Js(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:y}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Ut(h,y,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!sa(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};We(h=>{const y=this.getAxisMotionValue(h);if(y&&this.constraints!==!1){const g=y.get();c[h]=D2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),We(h=>{if(!Js(h,l,null))return;const y=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];y.set(Ut(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;O2.set(this.visualElement,this);const l=this.visualElement.current,u=yl(l,"pointerdown",m=>{const{drag:v,dragListener:S=!0}=this.getProps(),T=m.target,x=T!==l&&db(T);v&&S&&!x&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();sa(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=V2(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ct.read(c);const y=bl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(We(S=>{const T=this.getAxisMotionValue(S);T&&(this.originPoint[S]+=m[S].translate,T.set(T.get()+m[S].translate))}),this.visualElement.render())}));return()=>{y(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Mc,dragMomentum:y=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:y}}}function xp(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function V2(i,l,u){const o=By(i,xp(u)),c=By(l,xp(u));return()=>{o(),c()}}function Js(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function _2(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class U2 extends Fn{constructor(l){super(l),this.removeGroupControls=He,this.removeListeners=He,this.controls=new R2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ir=i=>(l,u)=>{i&&Ct.update(()=>i(l,u),!1,!0)};class B2 extends Fn{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(l){this.session=new g0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:p0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ir(l),onStart:Ir(u),onMove:Ir(o),onEnd:(d,h)=>{delete this.session,c&&Ct.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=yl(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let tc=!1;class L2 extends nt.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),tc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),tc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||Ct.postRender(()=>{const y=h.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:u}=this.props,{projection:o}=l;o&&(o.options.layoutAnchor=u,o.root.didUpdate(),Kc.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;tc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function S0(i){const[l,u]=GA(),o=nt.useContext(Up);return Lt.jsx(L2,{...i,layoutGroup:o,switchLayoutGroup:nt.useContext(m0),isPresent:l,safeToRemove:u})}const w2={pan:{Feature:B2},drag:{Feature:U2,ProjectionNode:u0,MeasureLayout:S0}};function Dp(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&Ct.postRender(()=>d(l,xl(l)))}class N2 extends Fn{mount(){const{current:l}=this.node;l&&(this.unmount=rb(l,(u,o)=>(Dp(this.node,o,"Start"),c=>Dp(this.node,c,"End"))))}unmount(){}}class j2 extends Fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=Al(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Cp(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&Ct.postRender(()=>d(l,xl(l)))}class H2 extends Fn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=yb(l,(c,d)=>(Cp(this.node,d,"Start"),(h,{success:y})=>Cp(this.node,h,y?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const xc=new WeakMap,ec=new WeakMap,q2=i=>{const l=xc.get(i.target);l&&l(i)},Y2=i=>{i.forEach(q2)};function G2({root:i,...l}){const u=i||document;ec.has(u)||ec.set(u,{});const o=ec.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(Y2,{root:i,...l})),o[c]}function X2(i,l,u){const o=G2(l);return xc.set(i,u),o.observe(i),()=>{xc.delete(i),o.unobserve(i)}}const Z2={some:0,all:1};class Q2 extends Fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:Z2[c]},y=m=>{const{isIntersecting:v}=m;if(this.isInView===v||(this.isInView=v,d&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:S,onViewportLeave:T}=this.node.getProps(),x=v?S:T;x&&x(m)};this.stopObserver=X2(this.node.current,h,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(K2(l,u))&&this.startObserver()}unmount(){var l;(l=this.stopObserver)==null||l.call(this),this.hasEnteredView=!1,this.isInView=!1}}function K2({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const J2={inView:{Feature:Q2},tap:{Feature:H2},focus:{Feature:j2},hover:{Feature:N2}},k2={layout:{ProjectionNode:u0,MeasureLayout:S0}},F2={...v2,...J2,...w2,...k2},ks=d2(F2,m2);function W2(i){const l=gl(()=>bi(i)),{isStatic:u}=nt.useContext(Ic);if(u){const[,o]=nt.useState(i);nt.useEffect(()=>l.on("change",o),[])}return l}function T0(i,l){const u=W2(l()),o=()=>u.set(l());return o(),Bp(()=>{const c=()=>Ct.preRender(o,!1,!0),d=i.map(h=>h.on("change",c));return()=>{d.forEach(h=>h()),Sn(o)}}),u}function P2(i){dl.current=[],i();const l=T0(dl.current,i);return dl.current=void 0,l}function Dc(i,l,u,o){if(typeof i=="function")return P2(i);if(u!==void 0&&!Array.isArray(u)&&typeof l!="function")return $2(i,l,u,o);const h=typeof l=="function"?l:xb(l,u,o),y=Array.isArray(i)?zp(i,h):zp([i],([m])=>h(m)),g=Array.isArray(i)?void 0:i.accelerate;return g&&!g.isTransformed&&typeof l!="function"&&Array.isArray(u)&&(o==null?void 0:o.clamp)!==!1&&(y.accelerate={...g,times:l,keyframes:u,isTransformed:!0}),y}function zp(i,l){const u=gl(()=>[]);return T0(i,()=>{u.length=0;const o=i.length;for(let c=0;c<o;c++)u[c]=i[c].get();return l(u)})}function $2(i,l,u,o){const c=gl(()=>Object.keys(u)),d=gl(()=>({}));for(const h of c)d[h]=Dc(i,l,u[h],o);return d}function I2(i=200,l=50,u=d=>d,o=1.5,c=128){const d=1/o;function h(y,g){const m=g,v=1-d*d*(1-m*m);if(v<0)return null;const S=Math.sqrt(v);return[-(d*m+S)*y,d-(d*m+S)*g]}return Array.from({length:c},(y,g)=>{const m=g/c,v=u(m),S=m<1?1e-4:-1e-4,x=(u(m+S)-v)/S,V=Math.sqrt(x*x+1),N=[-x/V,-1/V],j=h(N[0],N[1]);if(!j)return 0;const q=v*l+i;return j[0]*(q/j[1])})}function tE(i,l,u,o,c,d,h,y=[],g=window.devicePixelRatio??1){const m=Math.max(1,Math.round(i*g)),v=Math.max(1,Math.round(l*g)),S=new ImageData(m,v);new Uint32Array(S.data.buffer).fill(4278222976);const T=c*g,x=d*g,V=T**2,N=(T+1)**2,j=(T-x)**2,w=u*g,q=o*g,H=w-T*2,G=q-T*2,W=(m-w)/2,ut=(v-q)/2;for(let J=0;J<q;J++)for(let F=0;F<w;F++){const ct=((ut+J)*m+W+F)*4,$=F<T,gt=F>=w-T,dt=J<T,Jt=J>=q-T,Rt=$?F-T:gt?F-T-H:0,zt=dt?J-T:Jt?J-T-G:0,O=Rt*Rt+zt*zt;if(O<=N&&O>=j){const Z=O<V?1:1-(Math.sqrt(O)-Math.sqrt(V))/(Math.sqrt(N)-Math.sqrt(V)),et=Math.sqrt(O),ot=T-et,A=Rt/et,B=zt/et,X=ot/x*y.length|0,Q=y[X]??0,it=-A*Q/h,rt=-B*Q/h;S.data[ct]=128+it*127*Z,S.data[ct+1]=128+rt*127*Z,S.data[ct+2]=0,S.data[ct+3]=255}}return S}function eE(i,l,u,o,c=Math.PI/3,d=window.devicePixelRatio??1){const h=Math.max(1,Math.round(i*d)),y=Math.max(1,Math.round(l*d)),g=new ImageData(h,y),m=u*d,v=o*d,S=[Math.cos(c),Math.sin(c)];new Uint32Array(g.data.buffer).fill(0);const T=m**2,x=(m+d)**2,V=(m-v)**2,N=h-m*2,j=y-m*2;for(let w=0;w<y;w++)for(let q=0;q<h;q++){const H=(w*h+q)*4,G=q<m,W=q>=h-m,ut=w<m,J=w>=y-m,F=G?q-m:W?q-m-N:0,ct=ut?w-m:J?w-m-j:0,$=F*F+ct*ct;if($<=x&&$>=V){const dt=Math.sqrt($),Jt=m-dt,Rt=$<T?1:1-(dt-Math.sqrt(T))/(Math.sqrt(x)-Math.sqrt(T)),zt=F/dt,O=-ct/dt,Z=Math.abs(zt*S[0]+O*S[1])*Math.sqrt(1-(1-Jt/(1*d))**2),et=255*Z,ot=et*Z*Rt;g.data[H]=et,g.data[H+1]=et,g.data[H+2]=et,g.data[H+3]=ot}}return g}const b0={title:"Convex Circle",fn:i=>Math.sqrt(1-(1-i)**2)},A0={title:"Convex Squircle",fn:i=>Math.pow(1-Math.pow(1-i,4),1/4)},E0={title:"Concave",fn:i=>1-b0.fn(i)},nE={fn:i=>{const l=A0.fn(i*2),u=E0.fn(i)+.1,o=6*i**5-15*i**4+10*i**3;return l*(1-o)+u*o}},Op={convex_circle:b0.fn,convex_squircle:A0.fn,concave:E0.fn,lip:nE.fn};function Rp(i){const l=document.createElement("canvas");l.width=i.width,l.height=i.height;const u=l.getContext("2d");if(!u)throw new Error("Failed to get canvas context");return u.putImageData(i,0,0),l.toDataURL("image/png")}function Vp(i){return i&&typeof i.get=="function"?i.get():i}function uE(i){const l=Op[i.bezelType]||Op.convex_squircle;return function({id:o,withSvgWrapper:c=!0,blur:d=.2,scaleRatio:h=1,specularOpacity:y=.4,specularSaturation:g=4,width:m=i.width,height:v=i.height,radius:S=i.radius,bezelWidth:T=i.bezelWidth,glassThickness:x=i.glassThickness,refractiveIndex:V=i.refractiveIndex}){const N=nt.useMemo(()=>{const H=window.devicePixelRatio??1,G=I2(x,T,l,V),W=Math.max(...G.map(F=>Math.abs(F))),ut=tE(m,v,m,v,S,T,W,G,H),J=eE(m,v,S,T,void 0,H);return{maximumDisplacement:W,displacementMapDataUrl:Rp(ut),specularLayerDataUrl:Rp(J)}},[T,x,v,S,V,m]),j=Dc(()=>N.maximumDisplacement*(Vp(h)??1)),w=Dc(()=>String(Vp(g)??4)),q=Lt.jsxs("filter",{id:o,colorInterpolationFilters:"sRGB",children:[Lt.jsx(ks.feGaussianBlur,{in:"SourceGraphic",stdDeviation:d,result:"blurred_source"}),Lt.jsx("feImage",{href:N.displacementMapDataUrl,x:0,y:0,width:m,height:v,result:"displacement_map"}),Lt.jsx(ks.feDisplacementMap,{in:"blurred_source",in2:"displacement_map",scale:j,xChannelSelector:"R",yChannelSelector:"G",result:"displaced"}),Lt.jsx(ks.feColorMatrix,{in:"displaced",type:"saturate",values:w,result:"displaced_saturated"}),Lt.jsx("feImage",{href:N.specularLayerDataUrl,x:0,y:0,width:m,height:v,result:"specular_layer"}),Lt.jsx("feComposite",{in:"displaced_saturated",in2:"specular_layer",operator:"in",result:"specular_saturated"}),Lt.jsx("feComponentTransfer",{in:"specular_layer",result:"specular_faded",children:Lt.jsx(ks.feFuncA,{type:"linear",slope:y})}),Lt.jsx("feBlend",{in:"specular_saturated",in2:"displaced",mode:"normal",result:"withSaturation"}),Lt.jsx("feBlend",{in:"specular_faded",in2:"withSaturation",mode:"normal"})]});return c?Lt.jsx("svg",{colorInterpolationFilters:"sRGB",className:"liquid-svg",children:Lt.jsx("defs",{children:q})}):q}}function oE(){return Lt.jsxs("svg",{viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",children:[Lt.jsx("path",{d:"M32 8v22",stroke:"currentColor",strokeWidth:"7",strokeLinecap:"round"}),Lt.jsx("path",{d:"M20.5 16.2A23 23 0 1 0 43.5 16.2",stroke:"currentColor",strokeWidth:"7",strokeLinecap:"round"})]})}function rE(){return Lt.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[Lt.jsx("path",{d:"M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z",stroke:"currentColor",strokeWidth:"2"}),Lt.jsx("path",{d:"M19 13.7a7.8 7.8 0 0 0 .05-3.4l2-1.5-2-3.4-2.42 1a7.7 7.7 0 0 0-2.94-1.7L13.35 2h-3.9l-.34 2.7a7.7 7.7 0 0 0-2.94 1.7l-2.42-1-2 3.4 2 1.5a7.8 7.8 0 0 0 .05 3.4l-2.05 1.55 2 3.4 2.48-1.03a7.7 7.7 0 0 0 2.84 1.63l.38 2.75h3.9l.38-2.75a7.7 7.7 0 0 0 2.84-1.63l2.48 1.03 2-3.4L19 13.7Z",stroke:"currentColor",strokeWidth:"1.7",strokeLinejoin:"round"})]})}function cE(){return Lt.jsx("img",{className:"brand-mark",src:"images/icon128.png",alt:"","aria-hidden":"true",draggable:"false"})}const iE={appointments_entitlementActive:!1,appointments_uiLanguage:"en",refreshInterval:300,allowPrimeSlots:!0,startDate:"",endDate:"",startTime:"07:00",endTime:"18:00",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday"],userEmail:"",userPassword:"",ringtoneActive:!1};function aE(){const i={...iE};return{storage:{local:{get(l,u){const o=Array.isArray(l)?l:Object.keys(l||{}),c={};o.forEach(d=>{Object.hasOwn(i,d)&&(c[d]=i[d])}),u(c)},set(l,u){Object.assign(i,l),u==null||u()}}},runtime:{getURL(l){return l},openOptionsPage(l){window.open("settings.html","_blank"),l==null||l()},sendMessage(l,u){let o={success:!0};l.action==="getStatus"?o={isRunning:!1,appointmentInProgress:!1,nextRefreshTime:null,ringtoneActive:i.ringtoneActive}:l.action==="startMonitoring"?o={success:!1,errorKey:"previewModeError"}:l.action==="stopRingtone"&&(i.ringtoneActive=!1),setTimeout(()=>u==null?void 0:u(o),0)},onMessage:{addListener(){}},lastError:null},tabs:{create({url:l}){window.open(l,"_blank")}}}}function pl(){var i,l;return(!((i=globalThis.chrome)!=null&&i.runtime)||!((l=globalThis.chrome)!=null&&l.storage))&&(globalThis.chrome=aE()),globalThis.chrome}function fE(i){return new Promise(l=>pl().storage.local.get(i,l))}function hE(i){return new Promise(l=>pl().storage.local.set(i,l))}function dE(i){return new Promise(l=>{pl().runtime.sendMessage(i,u=>{pl().runtime.lastError?l({success:!1,error:pl().runtime.lastError.message}):l(u||{success:!0})})})}const mE=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_p={en:{appName:"OpenTLS",monitorTitle:"Monitor",settingsSubtitle:"Set refresh timing, slot filters, login recovery, and language.",on:"On",off:"Off",stopRingtone:"Stop",slotSecured:"Slot found",slotsTitle:"Slots",slotsDescription:"Only book appointments that match these dates, times, and weekdays.",startDateLabel:"From",endDateLabel:"To",startTimeLabel:"After",endTimeLabel:"Before",primeSlotsLabel:"Include Prime slots",primeSlotsHint:"Also match higher-cost prime time appointments.",refreshTitle:"Refresh",refreshRangeLabel:"Check every 1-10 minutes. Default is 5 minutes.",intervalLabel:"Interval",minutesUnit:"min",loginTitle:"Login",autoLoginReady:"Auto login is ready when TLSContact asks you to sign in again.",autoLoginMissing:"Optional. Add login details to recover when the session expires.",languageSetting:"Language",daysLabel:"Days",allDays:"All days",emailLabel:"Email",passwordLabel:"Password",languageLabel:"Language",settingsLabel:"Settings",startMonitorLabel:"Start monitoring",stopMonitorLabel:"Stop monitoring",installIdLabel:"Install ID",copyInstallId:"Copy",licensePlaceholder:"Enter license key",activateLicense:"Activate",licenseActiveUntil:"Premium active until {date}",licenseInactive:"Activate OpenTLS to start monitoring on this installation.",licenseCopied:"Install ID copied.",errorPrefix:"OpenTLS",previewModeError:"Preview mode is display-only. Load this folder as a Chrome extension to monitor appointments.",licenseRequired:"Activate a valid license before starting monitoring.",licenseTimeUnavailable:"Connect to the internet so OpenTLS can verify UTC time before activating this key.",licenseInvalidFormat:"License key format is invalid.",licenseInvalidSignature:"License signature is invalid.",licenseProductMismatch:"This license is not for OpenTLS.",licenseInstallMismatch:"This license was issued for a different installation.",licenseIssueWindow:"This license was not issued today or yesterday in UTC.",licenseExpired:"This license has expired.",licenseClockRollback:"System clock rollback detected. Connect to the internet and try again.",licenseMissing:"No active license is stored.",licensePublicKeyMissing:"License public key is missing from this build.",licenseInvalid:"License could not be verified.",invalidEmail:"Enter a valid email address for auto login.",passwordRequired:"Enter the password for auto login, or leave both login fields empty.",passwordTooShort:"Password must be at least 8 characters.",franceIntervalTooShort:"France tourist appointment pages require a refresh interval of at least 5 minutes.",startPageInstructions:"Open the TLSContact appointment page first: Services, Book an appointment, then Start Monitoring.",invalidAppointmentPage:"Current tab is not a TLSContact appointment page. Open the correct page and try again.",unexpectedError:"Something went wrong while starting monitoring. Try again from the appointment page.",invalidRunningState:"Monitoring is not in a valid running state.",notRunningState:"Monitoring is not running.",runtimeMessageUnavailable:"Unable to start monitoring."},zh:{appName:"OpenTLS",monitorTitle:"监控",settingsSubtitle:"设置刷新间隔、时段筛选、登录恢复和界面语言。",on:"开",off:"关",stopRingtone:"停止",slotSecured:"已发现时段",slotsTitle:"时段",slotsDescription:"只尝试预约符合以下日期、时间和星期的时段。",startDateLabel:"从",endDateLabel:"到",startTimeLabel:"晚于",endTimeLabel:"早于",primeSlotsLabel:"包含 Prime 时段",primeSlotsHint:"同时匹配费用可能更高的 Prime 时段。",refreshTitle:"刷新",refreshRangeLabel:"每 1-10 分钟检查一次，默认 5 分钟。",intervalLabel:"间隔",minutesUnit:"分钟",loginTitle:"登录",autoLoginReady:"TLSContact 要求重新登录时，将自动恢复会话。",autoLoginMissing:"可选。填写后可在会话过期时自动重新登录。",languageSetting:"语言",daysLabel:"星期",allDays:"全部",emailLabel:"邮箱",passwordLabel:"密码",languageLabel:"语言",settingsLabel:"设置",startMonitorLabel:"开始监控",stopMonitorLabel:"停止监控",installIdLabel:"安装 ID",copyInstallId:"复制",licensePlaceholder:"输入许可证密钥",activateLicense:"激活",licenseActiveUntil:"高级版有效期至 {date}",licenseInactive:"请先在此安装上激活 OpenTLS，然后再开始监控。",licenseCopied:"安装 ID 已复制。",errorPrefix:"OpenTLS",previewModeError:"预览模式只能查看界面。请将此文件夹加载为 Chrome 扩展后再开始监控预约。",licenseRequired:"请先激活有效许可证，然后再开始监控。",licenseTimeUnavailable:"请连接互联网，让 OpenTLS 使用 UTC 时间验证此密钥后再激活。",licenseInvalidFormat:"许可证密钥格式无效。",licenseInvalidSignature:"许可证签名无效。",licenseProductMismatch:"此许可证不适用于 OpenTLS。",licenseInstallMismatch:"此许可证属于另一台安装实例。",licenseIssueWindow:"此许可证不是按 UTC 时间在今天或昨天签发的。",licenseExpired:"此许可证已过期。",licenseClockRollback:"检测到系统时间回退。请连接互联网后重试。",licenseMissing:"当前没有已激活的许可证。",licensePublicKeyMissing:"此版本缺少许可证公钥。",licenseInvalid:"无法验证许可证。",invalidEmail:"请输入有效的邮箱地址用于自动登录。",passwordRequired:"填写邮箱后也需要填写密码；如果不使用自动登录，请将两项都留空。",passwordTooShort:"密码至少需要 8 个字符。",franceIntervalTooShort:"法国旅游签证页面的刷新间隔必须至少为 5 分钟。",startPageInstructions:"请先打开 TLSContact 预约页面：点击 Services，再点击 Book an appointment，然后回到扩展点击开始监控。",invalidAppointmentPage:"当前标签页不是 TLSContact 预约页面。请打开正确页面后重试。",unexpectedError:"启动监控时出现异常。请回到预约页面后重试。",invalidRunningState:"当前监控状态无效。",notRunningState:"监控尚未运行。",runtimeMessageUnavailable:"无法启动监控。"}},yE={en:{Monday:"Mon",Tuesday:"Tue",Wednesday:"Wed",Thursday:"Thu",Friday:"Fri",Saturday:"Sat",Sunday:"Sun"},zh:{Monday:"一",Tuesday:"二",Wednesday:"三",Thursday:"四",Friday:"五",Saturday:"六",Sunday:"日"}};function pE(i,l,u={}){var c;return(((c=_p[i])==null?void 0:c[l])||_p.en[l]||l).replace(/\{(\w+)\}/g,(d,h)=>u[h]===void 0||u[h]===null?"":String(u[h]))}export{cE as B,mE as D,su as J,Ic as M,oE as P,rE as S,yE as a,lE as b,pl as c,uE as d,ks as e,Ct as f,fE as g,hE as h,ae as i,Lt as j,Dc as k,ag as m,nt as r,dE as s,pE as t,W2 as u};
