@quark.clip/quark 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,79 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();var $o={exports:{}},Sl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Bp;function X1(){if(Bp)return Sl;Bp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var m in c)m!=="key"&&(h[m]=c[m])}else h=c;return c=h.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:h}}return Sl.Fragment=i,Sl.jsx=s,Sl.jsxs=s,Sl}var Lp;function K1(){return Lp||(Lp=1,$o.exports=X1()),$o.exports}var H=K1(),Io={exports:{}},it={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hp;function Q1(){if(Hp)return it;Hp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function A(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,N={};function O(E,Y,Z){this.props=E,this.context=Y,this.refs=N,this.updater=Z||D}O.prototype.isReactComponent={},O.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Y,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=O.prototype;function B(E,Y,Z){this.props=E,this.context=Y,this.refs=N,this.updater=Z||D}var Q=B.prototype=new G;Q.constructor=B,V(Q,O.prototype),Q.isPureReactComponent=!0;var X=Array.isArray;function tt(){}var J={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function at(E,Y,Z){var W=Z.ref;return{$$typeof:a,type:E,key:Y,ref:W!==void 0?W:null,props:Z}}function St(E,Y){return at(E.type,Y,E.props)}function wt(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function Ut(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return Y[Z]})}var ce=/\/+/g;function le(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?Ut(""+E.key):Y.toString(36)}function Vt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(tt,tt):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function j(E,Y,Z,W,lt){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var bt=!1;if(E===null)bt=!0;else switch(rt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(E.$$typeof){case a:case i:bt=!0;break;case g:return bt=E._init,j(bt(E._payload),Y,Z,W,lt)}}if(bt)return lt=lt(E),bt=W===""?"."+le(E,0):W,X(lt)?(Z="",bt!=null&&(Z=bt.replace(ce,"$&/")+"/"),j(lt,Y,Z,"",function(Ri){return Ri})):lt!=null&&(wt(lt)&&(lt=St(lt,Z+(lt.key==null||E&&E.key===lt.key?"":(""+lt.key).replace(ce,"$&/")+"/")+bt)),Y.push(lt)),1;bt=0;var se=W===""?".":W+":";if(X(E))for(var Ht=0;Ht<E.length;Ht++)W=E[Ht],rt=se+le(W,Ht),bt+=j(W,Y,Z,rt,lt);else if(Ht=A(E),typeof Ht=="function")for(E=Ht.call(E),Ht=0;!(W=E.next()).done;)W=W.value,rt=se+le(W,Ht++),bt+=j(W,Y,Z,rt,lt);else if(rt==="object"){if(typeof E.then=="function")return j(Vt(E),Y,Z,W,lt);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return bt}function K(E,Y,Z){if(E==null)return E;var W=[],lt=0;return j(E,W,"","",function(rt){return Y.call(Z,rt,lt++)}),W}function $(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var ft=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},pt={map:K,forEach:function(E,Y,Z){K(E,function(){Y.apply(this,arguments)},Z)},count:function(E){var Y=0;return K(E,function(){Y++}),Y},toArray:function(E){return K(E,function(Y){return Y})||[]},only:function(E){if(!wt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return it.Activity=S,it.Children=pt,it.Component=O,it.Fragment=s,it.Profiler=c,it.PureComponent=B,it.StrictMode=u,it.Suspense=y,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,it.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},it.cache=function(E){return function(){return E.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(E,Y,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=V({},E.props),lt=E.key;if(Y!=null)for(rt in Y.key!==void 0&&(lt=""+Y.key),Y)!k.call(Y,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&Y.ref===void 0||(W[rt]=Y[rt]);var rt=arguments.length-2;if(rt===1)W.children=Z;else if(1<rt){for(var bt=Array(rt),se=0;se<rt;se++)bt[se]=arguments[se+2];W.children=bt}return at(E.type,lt,W)},it.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},it.createElement=function(E,Y,Z){var W,lt={},rt=null;if(Y!=null)for(W in Y.key!==void 0&&(rt=""+Y.key),Y)k.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(lt[W]=Y[W]);var bt=arguments.length-2;if(bt===1)lt.children=Z;else if(1<bt){for(var se=Array(bt),Ht=0;Ht<bt;Ht++)se[Ht]=arguments[Ht+2];lt.children=se}if(E&&E.defaultProps)for(W in bt=E.defaultProps,bt)lt[W]===void 0&&(lt[W]=bt[W]);return at(E,rt,lt)},it.createRef=function(){return{current:null}},it.forwardRef=function(E){return{$$typeof:m,render:E}},it.isValidElement=wt,it.lazy=function(E){return{$$typeof:g,_payload:{_status:-1,_result:E},_init:$}},it.memo=function(E,Y){return{$$typeof:p,type:E,compare:Y===void 0?null:Y}},it.startTransition=function(E){var Y=J.T,Z={};J.T=Z;try{var W=E(),lt=J.S;lt!==null&&lt(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(tt,ft)}catch(rt){ft(rt)}finally{Y!==null&&Z.types!==null&&(Y.types=Z.types),J.T=Y}},it.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},it.use=function(E){return J.H.use(E)},it.useActionState=function(E,Y,Z){return J.H.useActionState(E,Y,Z)},it.useCallback=function(E,Y){return J.H.useCallback(E,Y)},it.useContext=function(E){return J.H.useContext(E)},it.useDebugValue=function(){},it.useDeferredValue=function(E,Y){return J.H.useDeferredValue(E,Y)},it.useEffect=function(E,Y){return J.H.useEffect(E,Y)},it.useEffectEvent=function(E){return J.H.useEffectEvent(E)},it.useId=function(){return J.H.useId()},it.useImperativeHandle=function(E,Y,Z){return J.H.useImperativeHandle(E,Y,Z)},it.useInsertionEffect=function(E,Y){return J.H.useInsertionEffect(E,Y)},it.useLayoutEffect=function(E,Y){return J.H.useLayoutEffect(E,Y)},it.useMemo=function(E,Y){return J.H.useMemo(E,Y)},it.useOptimistic=function(E,Y){return J.H.useOptimistic(E,Y)},it.useReducer=function(E,Y,Z){return J.H.useReducer(E,Y,Z)},it.useRef=function(E){return J.H.useRef(E)},it.useState=function(E){return J.H.useState(E)},it.useSyncExternalStore=function(E,Y,Z){return J.H.useSyncExternalStore(E,Y,Z)},it.useTransition=function(){return J.H.useTransition()},it.version="19.2.4",it}var qp;function Wc(){return qp||(qp=1,Io.exports=Q1()),Io.exports}var M=Wc(),tc={exports:{}},bl={},ec={exports:{}},nc={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Yp;function Z1(){return Yp||(Yp=1,(function(a){function i(j,K){var $=j.length;j.push(K);t:for(;0<$;){var ft=$-1>>>1,pt=j[ft];if(0<c(pt,K))j[ft]=K,j[$]=pt,$=ft;else break t}}function s(j){return j.length===0?null:j[0]}function u(j){if(j.length===0)return null;var K=j[0],$=j.pop();if($!==K){j[0]=$;t:for(var ft=0,pt=j.length,E=pt>>>1;ft<E;){var Y=2*(ft+1)-1,Z=j[Y],W=Y+1,lt=j[W];if(0>c(Z,$))W<pt&&0>c(lt,Z)?(j[ft]=lt,j[W]=$,ft=W):(j[ft]=Z,j[Y]=$,ft=Y);else if(W<pt&&0>c(lt,$))j[ft]=lt,j[W]=$,ft=W;else break t}}return K}function c(j,K){var $=j.sortIndex-K.sortIndex;return $!==0?$:j.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],g=1,S=null,b=3,A=!1,D=!1,V=!1,N=!1,O=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Q(j){for(var K=s(p);K!==null;){if(K.callback===null)u(p);else if(K.startTime<=j)u(p),K.sortIndex=K.expirationTime,i(y,K);else break;K=s(p)}}function X(j){if(V=!1,Q(j),!D)if(s(y)!==null)D=!0,tt||(tt=!0,Ut());else{var K=s(p);K!==null&&Vt(X,K.startTime-j)}}var tt=!1,J=-1,k=5,at=-1;function St(){return N?!0:!(a.unstable_now()-at<k)}function wt(){if(N=!1,tt){var j=a.unstable_now();at=j;var K=!0;try{t:{D=!1,V&&(V=!1,G(J),J=-1),A=!0;var $=b;try{e:{for(Q(j),S=s(y);S!==null&&!(S.expirationTime>j&&St());){var ft=S.callback;if(typeof ft=="function"){S.callback=null,b=S.priorityLevel;var pt=ft(S.expirationTime<=j);if(j=a.unstable_now(),typeof pt=="function"){S.callback=pt,Q(j),K=!0;break e}S===s(y)&&u(y),Q(j)}else u(y);S=s(y)}if(S!==null)K=!0;else{var E=s(p);E!==null&&Vt(X,E.startTime-j),K=!1}}break t}finally{S=null,b=$,A=!1}K=void 0}}finally{K?Ut():tt=!1}}}var Ut;if(typeof B=="function")Ut=function(){B(wt)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,le=ce.port2;ce.port1.onmessage=wt,Ut=function(){le.postMessage(null)}}else Ut=function(){O(wt,0)};function Vt(j,K){J=O(function(){j(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(j){j.callback=null},a.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<j?Math.floor(1e3/j):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(j){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var $=b;b=K;try{return j()}finally{b=$}},a.unstable_requestPaint=function(){N=!0},a.unstable_runWithPriority=function(j,K){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=b;b=j;try{return K()}finally{b=$}},a.unstable_scheduleCallback=function(j,K,$){var ft=a.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ft+$:ft):$=ft,j){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=$+pt,j={id:g++,callback:K,priorityLevel:j,startTime:$,expirationTime:pt,sortIndex:-1},$>ft?(j.sortIndex=$,i(p,j),s(y)===null&&j===s(p)&&(V?(G(J),J=-1):V=!0,Vt(X,$-ft))):(j.sortIndex=pt,i(y,j),D||A||(D=!0,tt||(tt=!0,Ut()))),j},a.unstable_shouldYield=St,a.unstable_wrapCallback=function(j){var K=b;return function(){var $=b;b=K;try{return j.apply(this,arguments)}finally{b=$}}}})(nc)),nc}var Gp;function k1(){return Gp||(Gp=1,ec.exports=Z1()),ec.exports}var ac={exports:{}},ae={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Xp;function J1(){if(Xp)return ae;Xp=1;var a=Wc();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(y,p,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:p,implementation:g}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ae.createPortal=function(y,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return h(y,p,null,g)},ae.flushSync=function(y){var p=f.T,g=u.p;try{if(f.T=null,u.p=2,y)return y()}finally{f.T=p,u.p=g,u.d.f()}},ae.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},ae.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},ae.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,S=m(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,A=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:A}):g==="script"&&u.d.X(y,{crossOrigin:S,integrity:b,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ae.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(y)},ae.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,S=m(g,p.crossOrigin);u.d.L(y,g,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ae.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=m(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},ae.requestFormReset=function(y){u.d.r(y)},ae.unstable_batchedUpdates=function(y,p){return y(p)},ae.useFormState=function(y,p,g){return f.H.useFormState(y,p,g)},ae.useFormStatus=function(){return f.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var Kp;function F1(){if(Kp)return ac.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ac.exports=J1(),ac.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Qp;function P1(){if(Qp)return bl;Qp=1;var a=k1(),i=Wc(),s=F1();function u(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 h(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 f(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 m(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 y(t){if(h(t)!==t)throw Error(u(188))}function p(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return y(r),t;if(o===l)return y(r),e;o=o.sibling}throw Error(u(188))}if(n.return!==l.return)n=r,l=o;else{for(var d=!1,v=r.child;v;){if(v===n){d=!0,n=r,l=o;break}if(v===l){d=!0,l=r,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,l=r;break}if(v===l){d=!0,l=o,n=r;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),St=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function Ut(t){return t===null||typeof t!="object"?null:(t=wt&&t[wt]||t["@@iterator"],typeof t=="function"?t:null)}var ce=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ce?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case O:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case tt:return"SuspenseList";case at:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case D:return"Portal";case B:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case Q: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:le(t.type)||"Memo";case k:e=t._payload,t=t._init;try{return le(t(e))}catch{}}return null}var Vt=Array.isArray,j=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ft=[],pt=-1;function E(t){return{current:t}}function Y(t){0>pt||(t.current=ft[pt],ft[pt]=null,pt--)}function Z(t,e){pt++,ft[pt]=t.current,t.current=e}var W=E(null),lt=E(null),rt=E(null),bt=E(null);function se(t,e){switch(Z(rt,e),Z(lt,t),Z(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?sp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=sp(e),t=up(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(W),Z(W,t)}function Ht(){Y(W),Y(lt),Y(rt)}function Ri(t){t.memoizedState!==null&&Z(bt,t);var e=W.current,n=up(e,t.type);e!==n&&(Z(lt,t),Z(W,n))}function Yl(t){lt.current===t&&(Y(W),Y(lt)),bt.current===t&&(Y(bt),pl._currentValue=$)}var Nu,jf;function ia(t){if(Nu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Nu=e&&e[1]||"",jf=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Nu+t+jf}var _u=!1;function Uu(t,e){if(!t||_u)return"";_u=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var w=_}Reflect.construct(t,[],q)}else{try{q.call()}catch(_){w=_}t.call(q.prototype)}}else{try{throw Error()}catch(_){w=_}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&w&&typeof _.stack=="string")return[_.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var x=d.split(`
44
+ `),z=v.split(`
45
+ `);for(r=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(l===x.length||r===z.length)for(l=x.length-1,r=z.length-1;1<=l&&0<=r&&x[l]!==z[r];)r--;for(;1<=l&&0<=r;l--,r--)if(x[l]!==z[r]){if(l!==1||r!==1)do if(l--,r--,0>r||x[l]!==z[r]){var U=`
46
+ `+x[l].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=l&&0<=r);break}}}finally{_u=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ia(n):""}function b0(t,e){switch(t.tag){case 26:case 27:case 5:return ia(t.type);case 16:return ia("Lazy");case 13:return t.child!==e&&e!==null?ia("Suspense Fallback"):ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Uu(t.type,!1);case 11:return Uu(t.type.render,!1);case 1:return Uu(t.type,!0);case 31:return ia("Activity");default:return""}}function Bf(t){try{var e="",n=null;do e+=b0(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var ju=Object.prototype.hasOwnProperty,Bu=a.unstable_scheduleCallback,Lu=a.unstable_cancelCallback,x0=a.unstable_shouldYield,T0=a.unstable_requestPaint,ve=a.unstable_now,E0=a.unstable_getCurrentPriorityLevel,Lf=a.unstable_ImmediatePriority,Hf=a.unstable_UserBlockingPriority,Gl=a.unstable_NormalPriority,A0=a.unstable_LowPriority,qf=a.unstable_IdlePriority,M0=a.log,R0=a.unstable_setDisableYieldValue,Di=null,Se=null;function Cn(t){if(typeof M0=="function"&&R0(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(Di,t)}catch{}}var be=Math.clz32?Math.clz32:z0,D0=Math.log,C0=Math.LN2;function z0(t){return t>>>=0,t===0?32:31-(D0(t)/C0|0)|0}var Xl=256,Kl=262144,Ql=4194304;function la(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 Zl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,o=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~o,l!==0?r=la(l):(d&=v,d!==0?r=la(d):n||(n=v&~t,n!==0&&(r=la(n))))):(v=l&~o,v!==0?r=la(v):d!==0?r=la(d):n||(n=l&~t,n!==0&&(r=la(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function Ci(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function O0(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 Yf(){var t=Ql;return Ql<<=1,(Ql&62914560)===0&&(Ql=4194304),t}function Hu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function zi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function w0(t,e,n,l,r,o){var d=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 v=t.entanglements,x=t.expirationTimes,z=t.hiddenUpdates;for(n=d&~n;0<n;){var U=31-be(n),q=1<<U;v[U]=0,x[U]=-1;var w=z[U];if(w!==null)for(z[U]=null,U=0;U<w.length;U++){var _=w[U];_!==null&&(_.lane&=-536870913)}n&=~q}l!==0&&Gf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(d&~e))}function Gf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-be(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Xf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-be(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Kf(t,e){var n=e&-e;return n=(n&42)!==0?1:qu(n),(n&(t.suspendedLanes|e))!==0?0:n}function qu(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 Yu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Qf(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Op(t.type))}function Zf(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var zn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+zn,fe="__reactProps$"+zn,Ca="__reactContainer$"+zn,Gu="__reactEvents$"+zn,V0="__reactListeners$"+zn,N0="__reactHandles$"+zn,kf="__reactResources$"+zn,Oi="__reactMarker$"+zn;function Xu(t){delete t[Wt],delete t[fe],delete t[Gu],delete t[V0],delete t[N0]}function za(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ca]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=mp(t);t!==null;){if(n=t[Wt])return n;t=mp(t)}return e}t=n,n=t.parentNode}return null}function Oa(t){if(t=t[Wt]||t[Ca]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function wi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function wa(t){var e=t[kf];return e||(e=t[kf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Oi]=!0}var Jf=new Set,Ff={};function sa(t,e){Va(t,e),Va(t+"Capture",e)}function Va(t,e){for(Ff[t]=e,t=0;t<e.length;t++)Jf.add(e[t])}var _0=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]*$"),Pf={},Wf={};function U0(t){return ju.call(Wf,t)?!0:ju.call(Pf,t)?!1:_0.test(t)?Wf[t]=!0:(Pf[t]=!0,!1)}function kl(t,e,n){if(U0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Jl(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 an(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ce(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $f(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function j0(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ku(t){if(!t._valueTracker){var e=$f(t)?"checked":"value";t._valueTracker=j0(t,e,""+t[e])}}function If(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=$f(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Fl(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 B0=/[\n"\\]/g;function ze(t){return t.replace(B0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Qu(t,e,n,l,r,o,d,v){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ce(e)):t.value!==""+Ce(e)&&(t.value=""+Ce(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Zu(t,d,Ce(e)):n!=null?Zu(t,d,Ce(n)):l!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Ce(v):t.removeAttribute("name")}function th(t,e,n,l,r,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){Ku(t);return}n=n!=null?""+Ce(n):"",e=e!=null?""+Ce(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Ku(t)}function Zu(t,e,n){e==="number"&&Fl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Na(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ce(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function eh(t,e,n){if(e!=null&&(e=""+Ce(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ce(n):""}function nh(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(Vt(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ce(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ku(t)}function _a(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var L0=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 ah(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||L0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function ih(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&ah(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&ah(t,o,e[o])}function ku(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 H0=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"]]),q0=/^[\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 Pl(t){return q0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var Ju=null;function Fu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ua=null,ja=null;function lh(t){var e=Oa(t);if(e&&(t=e.stateNode)){var n=t[fe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Qu(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="'+ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[fe]||null;if(!r)throw Error(u(90));Qu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&If(l)}break t;case"textarea":eh(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Na(t,!!n.multiple,e,!1)}}}var Pu=!1;function sh(t,e,n){if(Pu)return t(e,n);Pu=!0;try{var l=t(e);return l}finally{if(Pu=!1,(Ua!==null||ja!==null)&&(Bs(),Ua&&(e=Ua,t=ja,ja=Ua=null,lh(e),t)))for(e=0;e<t.length;e++)lh(t[e])}}function Vi(t,e){var n=t.stateNode;if(n===null)return null;var l=n[fe]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(sn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Wu=!1}var On=null,$u=null,Wl=null;function uh(){if(Wl)return Wl;var t,e=$u,n=e.length,l,r="value"in On?On.value:On.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var d=n-t;for(l=1;l<=d&&e[n-l]===r[o-l];l++);return Wl=r.slice(t,1<l?1-l:void 0)}function $l(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 Il(){return!0}function rh(){return!1}function he(t){function e(n,l,r,o,d){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Il:rh,this.isPropagationStopped=rh,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=Il)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Il)},persist:function(){},isPersistent:Il}),e}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=he(ua),_i=S({},ua,{view:0,detail:0}),Y0=he(_i),Iu,tr,Ui,es=S({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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!==Ui&&(Ui&&t.type==="mousemove"?(Iu=t.screenX-Ui.screenX,tr=t.screenY-Ui.screenY):tr=Iu=0,Ui=t),Iu)},movementY:function(t){return"movementY"in t?t.movementY:tr}}),oh=he(es),G0=S({},es,{dataTransfer:0}),X0=he(G0),K0=S({},_i,{relatedTarget:0}),er=he(K0),Q0=S({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Z0=he(Q0),k0=S({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J0=he(k0),F0=S({},ua,{data:0}),ch=he(F0),P0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W0={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"},$0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=$0[t])?!!e[t]:!1}function nr(){return I0}var tS=S({},_i,{key:function(t){if(t.key){var e=P0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$l(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?W0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(t){return t.type==="keypress"?$l(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$l(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),eS=he(tS),nS=S({},es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fh=he(nS),aS=S({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),iS=he(aS),lS=S({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),sS=he(lS),uS=S({},es,{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}),rS=he(uS),oS=S({},ua,{newState:0,oldState:0}),cS=he(oS),fS=[9,13,27,32],ar=sn&&"CompositionEvent"in window,ji=null;sn&&"documentMode"in document&&(ji=document.documentMode);var hS=sn&&"TextEvent"in window&&!ji,hh=sn&&(!ar||ji&&8<ji&&11>=ji),dh=" ",mh=!1;function ph(t,e){switch(t){case"keyup":return fS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ba=!1;function dS(t,e){switch(t){case"compositionend":return yh(e);case"keypress":return e.which!==32?null:(mh=!0,dh);case"textInput":return t=e.data,t===dh&&mh?null:t;default:return null}}function mS(t,e){if(Ba)return t==="compositionend"||!ar&&ph(t,e)?(t=uh(),Wl=$u=On=null,Ba=!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 hh&&e.locale!=="ko"?null:e.data;default:return null}}var pS={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 gh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!pS[t.type]:e==="textarea"}function vh(t,e,n,l){Ua?ja?ja.push(l):ja=[l]:Ua=l,e=Ks(e,"onChange"),0<e.length&&(n=new ts("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Bi=null,Li=null;function yS(t){tp(t,0)}function ns(t){var e=wi(t);if(If(e))return t}function Sh(t,e){if(t==="change")return e}var bh=!1;if(sn){var ir;if(sn){var lr="oninput"in document;if(!lr){var xh=document.createElement("div");xh.setAttribute("oninput","return;"),lr=typeof xh.oninput=="function"}ir=lr}else ir=!1;bh=ir&&(!document.documentMode||9<document.documentMode)}function Th(){Bi&&(Bi.detachEvent("onpropertychange",Eh),Li=Bi=null)}function Eh(t){if(t.propertyName==="value"&&ns(Li)){var e=[];vh(e,Li,t,Fu(t)),sh(yS,e)}}function gS(t,e,n){t==="focusin"?(Th(),Bi=e,Li=n,Bi.attachEvent("onpropertychange",Eh)):t==="focusout"&&Th()}function vS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ns(Li)}function SS(t,e){if(t==="click")return ns(e)}function bS(t,e){if(t==="input"||t==="change")return ns(e)}function xS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:xS;function Hi(t,e){if(xe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!ju.call(e,r)||!xe(t[r],e[r]))return!1}return!0}function Ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mh(t,e){var n=Ah(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Ah(n)}}function Rh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Rh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Fl(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=Fl(t.document)}return e}function sr(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 TS=sn&&"documentMode"in document&&11>=document.documentMode,La=null,ur=null,qi=null,rr=!1;function Ch(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rr||La==null||La!==Fl(l)||(l=La,"selectionStart"in l&&sr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),qi&&Hi(qi,l)||(qi=l,l=Ks(ur,"onSelect"),0<l.length&&(e=new ts("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=La)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ha={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},or={},zh={};sn&&(zh=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function oa(t){if(or[t])return or[t];if(!Ha[t])return t;var e=Ha[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in zh)return or[t]=e[n];return t}var Oh=oa("animationend"),wh=oa("animationiteration"),Vh=oa("animationstart"),ES=oa("transitionrun"),AS=oa("transitionstart"),MS=oa("transitioncancel"),Nh=oa("transitionend"),_h=new Map,cr="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(" ");cr.push("scrollEnd");function Ye(t,e){_h.set(t,e),sa(e,[t])}var as=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)},Oe=[],qa=0,fr=0;function is(){for(var t=qa,e=fr=qa=0;e<t;){var n=Oe[e];Oe[e++]=null;var l=Oe[e];Oe[e++]=null;var r=Oe[e];Oe[e++]=null;var o=Oe[e];if(Oe[e++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}o!==0&&Uh(n,r,o)}}function ls(t,e,n,l){Oe[qa++]=t,Oe[qa++]=e,Oe[qa++]=n,Oe[qa++]=l,fr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function hr(t,e,n,l){return ls(t,e,n,l),ss(t)}function ca(t,e){return ls(t,null,null,e),ss(t)}function Uh(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,o=t.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(r=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,r&&e!==null&&(r=31-be(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function ss(t){if(50<rl)throw rl=0,To=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ya={};function RS(t,e,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,n,l){return new RS(t,e,n,l)}function dr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function un(t,e){var n=t.alternate;return n===null?(n=Te(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 jh(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 us(t,e,n,l,r,o){var d=0;if(l=t,typeof t=="function")dr(t)&&(d=1);else if(typeof t=="string")d=w1(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case at:return t=Te(31,n,e,r),t.elementType=at,t.lanes=o,t;case V:return fa(n.children,r,o,e);case N:d=8,r|=24;break;case O:return t=Te(12,n,e,r|2),t.elementType=O,t.lanes=o,t;case X:return t=Te(13,n,e,r),t.elementType=X,t.lanes=o,t;case tt:return t=Te(19,n,e,r),t.elementType=tt,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:d=10;break t;case G:d=9;break t;case Q:d=11;break t;case J:d=14;break t;case k:d=16,l=null;break t}d=29,n=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Te(d,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function fa(t,e,n,l){return t=Te(7,t,l,e),t.lanes=n,t}function mr(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function Bh(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function pr(t,e,n){return e=Te(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 we(t,e){if(typeof t=="object"&&t!==null){var n=Lh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Bf(e)},Lh.set(t,e),e)}return{value:t,source:e,stack:Bf(e)}}var Ga=[],Xa=0,rs=null,Yi=0,Ve=[],Ne=0,wn=null,Je=1,Fe="";function rn(t,e){Ga[Xa++]=Yi,Ga[Xa++]=rs,rs=t,Yi=e}function Hh(t,e,n){Ve[Ne++]=Je,Ve[Ne++]=Fe,Ve[Ne++]=wn,wn=t;var l=Je;t=Fe;var r=32-be(l)-1;l&=~(1<<r),n+=1;var o=32-be(e)+r;if(30<o){var d=r-r%5;o=(l&(1<<d)-1).toString(32),l>>=d,r-=d,Je=1<<32-be(e)+r|n<<r|l,Fe=o+t}else Je=1<<o|n<<r|l,Fe=t}function yr(t){t.return!==null&&(rn(t,1),Hh(t,1,0))}function gr(t){for(;t===rs;)rs=Ga[--Xa],Ga[Xa]=null,Yi=Ga[--Xa],Ga[Xa]=null;for(;t===wn;)wn=Ve[--Ne],Ve[Ne]=null,Fe=Ve[--Ne],Ve[Ne]=null,Je=Ve[--Ne],Ve[Ne]=null}function qh(t,e){Ve[Ne++]=Je,Ve[Ne++]=Fe,Ve[Ne++]=wn,Je=e.id,Fe=e.overflow,wn=t}var $t=null,Ct=null,mt=!1,Vn=null,_e=!1,vr=Error(u(519));function Nn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gi(we(e,t)),vr}function Yh(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Wt]=t,e[fe]=l,n){case"dialog":ct("cancel",e),ct("close",e);break;case"iframe":case"object":case"embed":ct("load",e);break;case"video":case"audio":for(n=0;n<cl.length;n++)ct(cl[n],e);break;case"source":ct("error",e);break;case"img":case"image":case"link":ct("error",e),ct("load",e);break;case"details":ct("toggle",e);break;case"input":ct("invalid",e),th(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ct("invalid",e);break;case"textarea":ct("invalid",e),nh(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||ip(e.textContent,n)?(l.popover!=null&&(ct("beforetoggle",e),ct("toggle",e)),l.onScroll!=null&&ct("scroll",e),l.onScrollEnd!=null&&ct("scrollend",e),l.onClick!=null&&(e.onclick=ln),e=!0):e=!1,e||Nn(t,!0)}function Gh(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:$t=$t.return}}function Ka(t){if(t!==$t)return!1;if(!mt)return Gh(t),mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Bo(t.type,t.memoizedProps)),n=!n),n&&Ct&&Nn(t),Gh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ct=dp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ct=dp(t)}else e===27?(e=Ct,kn(t.type)?(t=Go,Go=null,Ct=t):Ct=e):Ct=$t?je(t.stateNode.nextSibling):null;return!0}function ha(){Ct=$t=null,mt=!1}function Sr(){var t=Vn;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),Vn=null),t}function Gi(t){Vn===null?Vn=[t]:Vn.push(t)}var br=E(null),da=null,on=null;function _n(t,e,n){Z(br,e._currentValue),e._currentValue=n}function cn(t){t._currentValue=br.current,Y(br)}function xr(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Tr(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var o=r.dependencies;if(o!==null){var d=r.child;o=o.firstContext;t:for(;o!==null;){var v=o;o=r;for(var x=0;x<e.length;x++)if(v.context===e[x]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),xr(o.return,n,t),l||(d=null);break t}o=v.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),xr(d,n,t),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===t){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Qa(t,e,n,l){t=null;for(var r=e,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=r.type;xe(r.pendingProps.value,d.value)||(t!==null?t.push(v):t=[v])}}else if(r===bt.current){if(d=r.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(pl):t=[pl])}r=r.return}t!==null&&Tr(e,t,n,l),e.flags|=262144}function os(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){da=t,on=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Xh(da,t)}function cs(t,e){return da===null&&ma(t),Xh(t,e)}function Xh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},on===null){if(t===null)throw Error(u(308));on=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else on=on.next=e;return n}var DS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},CS=a.unstable_scheduleCallback,zS=a.unstable_NormalPriority,Gt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Er(){return{controller:new DS,data:new Map,refCount:0}}function Xi(t){t.refCount--,t.refCount===0&&CS(zS,function(){t.controller.abort()})}var Ki=null,Ar=0,Za=0,ka=null;function OS(t,e){if(Ki===null){var n=Ki=[];Ar=0,Za=Co(),ka={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Ar++,e.then(Kh,Kh),e}function Kh(){if(--Ar===0&&Ki!==null){ka!==null&&(ka.status="fulfilled");var t=Ki;Ki=null,Za=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function wS(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var Qh=j.S;j.S=function(t,e){Cm=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&OS(t,e),Qh!==null&&Qh(t,e)};var pa=E(null);function Mr(){var t=pa.current;return t!==null?t:Rt.pooledCache}function fs(t,e){e===null?Z(pa,pa.current):Z(pa,e.pool)}function Zh(){var t=Mr();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ja=Error(u(460)),Rr=Error(u(474)),hs=Error(u(542)),ds={then:function(){}};function kh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Jh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ln,ln),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ph(t),t;default:if(typeof e.status=="string")e.then(ln,ln);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ph(t),t}throw ga=e,Ja}}function ya(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ga=n,Ja):n}}var ga=null;function Fh(){if(ga===null)throw Error(u(459));var t=ga;return ga=null,t}function Ph(t){if(t===Ja||t===hs)throw Error(u(483))}var Fa=null,Qi=0;function ms(t){var e=Qi;return Qi+=1,Fa===null&&(Fa=[]),Jh(Fa,t,e)}function Zi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ps(t,e){throw e.$$typeof===b?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Wh(t){function e(R,T){if(t){var C=R.deletions;C===null?(R.deletions=[T],R.flags|=16):C.push(T)}}function n(R,T){if(!t)return null;for(;T!==null;)e(R,T),T=T.sibling;return null}function l(R){for(var T=new Map;R!==null;)R.key!==null?T.set(R.key,R):T.set(R.index,R),R=R.sibling;return T}function r(R,T){return R=un(R,T),R.index=0,R.sibling=null,R}function o(R,T,C){return R.index=C,t?(C=R.alternate,C!==null?(C=C.index,C<T?(R.flags|=67108866,T):C):(R.flags|=67108866,T)):(R.flags|=1048576,T)}function d(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function v(R,T,C,L){return T===null||T.tag!==6?(T=mr(C,R.mode,L),T.return=R,T):(T=r(T,C),T.return=R,T)}function x(R,T,C,L){var et=C.type;return et===V?U(R,T,C.props.children,L,C.key):T!==null&&(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===k&&ya(et)===T.type)?(T=r(T,C.props),Zi(T,C),T.return=R,T):(T=us(C.type,C.key,C.props,null,R.mode,L),Zi(T,C),T.return=R,T)}function z(R,T,C,L){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=pr(C,R.mode,L),T.return=R,T):(T=r(T,C.children||[]),T.return=R,T)}function U(R,T,C,L,et){return T===null||T.tag!==7?(T=fa(C,R.mode,L,et),T.return=R,T):(T=r(T,C),T.return=R,T)}function q(R,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=mr(""+T,R.mode,C),T.return=R,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case A:return C=us(T.type,T.key,T.props,null,R.mode,C),Zi(C,T),C.return=R,C;case D:return T=pr(T,R.mode,C),T.return=R,T;case k:return T=ya(T),q(R,T,C)}if(Vt(T)||Ut(T))return T=fa(T,R.mode,C,null),T.return=R,T;if(typeof T.then=="function")return q(R,ms(T),C);if(T.$$typeof===B)return q(R,cs(R,T),C);ps(R,T)}return null}function w(R,T,C,L){var et=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return et!==null?null:v(R,T,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return C.key===et?x(R,T,C,L):null;case D:return C.key===et?z(R,T,C,L):null;case k:return C=ya(C),w(R,T,C,L)}if(Vt(C)||Ut(C))return et!==null?null:U(R,T,C,L,null);if(typeof C.then=="function")return w(R,T,ms(C),L);if(C.$$typeof===B)return w(R,T,cs(R,C),L);ps(R,C)}return null}function _(R,T,C,L,et){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(C)||null,v(T,R,""+L,et);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return R=R.get(L.key===null?C:L.key)||null,x(T,R,L,et);case D:return R=R.get(L.key===null?C:L.key)||null,z(T,R,L,et);case k:return L=ya(L),_(R,T,C,L,et)}if(Vt(L)||Ut(L))return R=R.get(C)||null,U(T,R,L,et,null);if(typeof L.then=="function")return _(R,T,C,ms(L),et);if(L.$$typeof===B)return _(R,T,C,cs(T,L),et);ps(T,L)}return null}function F(R,T,C,L){for(var et=null,yt=null,I=T,ut=T=0,dt=null;I!==null&&ut<C.length;ut++){I.index>ut?(dt=I,I=null):dt=I.sibling;var gt=w(R,I,C[ut],L);if(gt===null){I===null&&(I=dt);break}t&&I&&gt.alternate===null&&e(R,I),T=o(gt,T,ut),yt===null?et=gt:yt.sibling=gt,yt=gt,I=dt}if(ut===C.length)return n(R,I),mt&&rn(R,ut),et;if(I===null){for(;ut<C.length;ut++)I=q(R,C[ut],L),I!==null&&(T=o(I,T,ut),yt===null?et=I:yt.sibling=I,yt=I);return mt&&rn(R,ut),et}for(I=l(I);ut<C.length;ut++)dt=_(I,R,ut,C[ut],L),dt!==null&&(t&&dt.alternate!==null&&I.delete(dt.key===null?ut:dt.key),T=o(dt,T,ut),yt===null?et=dt:yt.sibling=dt,yt=dt);return t&&I.forEach(function($n){return e(R,$n)}),mt&&rn(R,ut),et}function nt(R,T,C,L){if(C==null)throw Error(u(151));for(var et=null,yt=null,I=T,ut=T=0,dt=null,gt=C.next();I!==null&&!gt.done;ut++,gt=C.next()){I.index>ut?(dt=I,I=null):dt=I.sibling;var $n=w(R,I,gt.value,L);if($n===null){I===null&&(I=dt);break}t&&I&&$n.alternate===null&&e(R,I),T=o($n,T,ut),yt===null?et=$n:yt.sibling=$n,yt=$n,I=dt}if(gt.done)return n(R,I),mt&&rn(R,ut),et;if(I===null){for(;!gt.done;ut++,gt=C.next())gt=q(R,gt.value,L),gt!==null&&(T=o(gt,T,ut),yt===null?et=gt:yt.sibling=gt,yt=gt);return mt&&rn(R,ut),et}for(I=l(I);!gt.done;ut++,gt=C.next())gt=_(I,R,ut,gt.value,L),gt!==null&&(t&&gt.alternate!==null&&I.delete(gt.key===null?ut:gt.key),T=o(gt,T,ut),yt===null?et=gt:yt.sibling=gt,yt=gt);return t&&I.forEach(function(G1){return e(R,G1)}),mt&&rn(R,ut),et}function Mt(R,T,C,L){if(typeof C=="object"&&C!==null&&C.type===V&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case A:t:{for(var et=C.key;T!==null;){if(T.key===et){if(et=C.type,et===V){if(T.tag===7){n(R,T.sibling),L=r(T,C.props.children),L.return=R,R=L;break t}}else if(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===k&&ya(et)===T.type){n(R,T.sibling),L=r(T,C.props),Zi(L,C),L.return=R,R=L;break t}n(R,T);break}else e(R,T);T=T.sibling}C.type===V?(L=fa(C.props.children,R.mode,L,C.key),L.return=R,R=L):(L=us(C.type,C.key,C.props,null,R.mode,L),Zi(L,C),L.return=R,R=L)}return d(R);case D:t:{for(et=C.key;T!==null;){if(T.key===et)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){n(R,T.sibling),L=r(T,C.children||[]),L.return=R,R=L;break t}else{n(R,T);break}else e(R,T);T=T.sibling}L=pr(C,R.mode,L),L.return=R,R=L}return d(R);case k:return C=ya(C),Mt(R,T,C,L)}if(Vt(C))return F(R,T,C,L);if(Ut(C)){if(et=Ut(C),typeof et!="function")throw Error(u(150));return C=et.call(C),nt(R,T,C,L)}if(typeof C.then=="function")return Mt(R,T,ms(C),L);if(C.$$typeof===B)return Mt(R,T,cs(R,C),L);ps(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(n(R,T.sibling),L=r(T,C),L.return=R,R=L):(n(R,T),L=mr(C,R.mode,L),L.return=R,R=L),d(R)):n(R,T)}return function(R,T,C,L){try{Qi=0;var et=Mt(R,T,C,L);return Fa=null,et}catch(I){if(I===Ja||I===hs)throw I;var yt=Te(29,I,null,R.mode);return yt.lanes=L,yt.return=R,yt}finally{}}}var va=Wh(!0),$h=Wh(!1),Un=!1;function Dr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cr(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 jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(vt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=ss(t),Uh(t,null,n),e}return ls(t,l,e,n),ss(t)}function ki(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xf(t,n)}}function zr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Or=!1;function Ji(){if(Or){var t=ka;if(t!==null)throw t}}function Fi(t,e,n,l){Or=!1;var r=t.updateQueue;Un=!1;var o=r.firstBaseUpdate,d=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var x=v,z=x.next;x.next=null,d===null?o=z:d.next=z,d=x;var U=t.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==d&&(v===null?U.firstBaseUpdate=z:v.next=z,U.lastBaseUpdate=x))}if(o!==null){var q=r.baseState;d=0,U=z=x=null,v=o;do{var w=v.lane&-536870913,_=w!==v.lane;if(_?(ht&w)===w:(l&w)===w){w!==0&&w===Za&&(Or=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var F=t,nt=v;w=e;var Mt=n;switch(nt.tag){case 1:if(F=nt.payload,typeof F=="function"){q=F.call(Mt,q,w);break t}q=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=nt.payload,w=typeof F=="function"?F.call(Mt,q,w):F,w==null)break t;q=S({},q,w);break t;case 2:Un=!0}}w=v.callback,w!==null&&(t.flags|=64,_&&(t.flags|=8192),_=r.callbacks,_===null?r.callbacks=[w]:_.push(w))}else _={lane:w,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(z=U=_,x=q):U=U.next=_,d|=w;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;_=v,v=_.next,_.next=null,r.lastBaseUpdate=_,r.shared.pending=null}}while(!0);U===null&&(x=q),r.baseState=x,r.firstBaseUpdate=z,r.lastBaseUpdate=U,o===null&&(r.shared.lanes=0),Gn|=d,t.lanes=d,t.memoizedState=q}}function Ih(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function td(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ih(n[t],e)}var Pa=E(null),ys=E(0);function ed(t,e){t=Sn,Z(ys,t),Z(Pa,e),Sn=t|e.baseLanes}function wr(){Z(ys,Sn),Z(Pa,Pa.current)}function Vr(){Sn=ys.current,Y(Pa),Y(ys)}var Ee=E(null),Ue=null;function Ln(t){var e=t.alternate;Z(qt,qt.current&1),Z(Ee,t),Ue===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Ue=t)}function Nr(t){Z(qt,qt.current),Z(Ee,t),Ue===null&&(Ue=t)}function nd(t){t.tag===22?(Z(qt,qt.current),Z(Ee,t),Ue===null&&(Ue=t)):Hn()}function Hn(){Z(qt,qt.current),Z(Ee,Ee.current)}function Ae(t){Y(Ee),Ue===t&&(Ue=null),Y(qt)}var qt=E(0);function gs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||qo(n)||Yo(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 fn=0,st=null,Et=null,Xt=null,vs=!1,Wa=!1,Sa=!1,Ss=0,Pi=0,$a=null,VS=0;function jt(){throw Error(u(321))}function _r(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!xe(t[n],e[n]))return!1;return!0}function Ur(t,e,n,l,r,o){return fn=o,st=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Hd:Pr,Sa=!1,o=n(l,r),Sa=!1,Wa&&(o=id(e,n,l,r)),ad(t),o}function ad(t){j.H=Ii;var e=Et!==null&&Et.next!==null;if(fn=0,Xt=Et=st=null,vs=!1,Pi=0,$a=null,e)throw Error(u(300));t===null||Kt||(t=t.dependencies,t!==null&&os(t)&&(Kt=!0))}function id(t,e,n,l){st=t;var r=0;do{if(Wa&&($a=null),Pi=0,Wa=!1,25<=r)throw Error(u(301));if(r+=1,Xt=Et=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=qd,o=e(n,l)}while(Wa);return o}function NS(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?Wi(e):e,t=t.useState()[0],(Et!==null?Et.memoizedState:null)!==t&&(st.flags|=1024),e}function jr(){var t=Ss!==0;return Ss=0,t}function Br(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Lr(t){if(vs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}vs=!1}fn=0,Xt=Et=st=null,Wa=!1,Pi=Ss=0,$a=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?st.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Et===null){var t=st.alternate;t=t!==null?t.memoizedState:null}else t=Et.next;var e=Xt===null?st.memoizedState:Xt.next;if(e!==null)Xt=e,Et=t;else{if(t===null)throw st.alternate===null?Error(u(467)):Error(u(310));Et=t,t={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Xt===null?st.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wi(t){var e=Pi;return Pi+=1,$a===null&&($a=[]),t=Jh($a,t,e),e=st,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Hd:Pr),t}function xs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wi(t);if(t.$$typeof===B)return It(t)}throw Error(u(438,String(t)))}function Hr(t){var e=null,n=st.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=st.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=bs(),st.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=St;return e.index++,n}function hn(t,e){return typeof e=="function"?e(t):e}function Ts(t){var e=Yt();return qr(e,Et,t)}function qr(t,e,n){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var r=t.baseQueue,o=l.pending;if(o!==null){if(r!==null){var d=r.next;r.next=o.next,o.next=d}e.baseQueue=r=o,l.pending=null}if(o=t.baseState,r===null)t.memoizedState=o;else{e=r.next;var v=d=null,x=null,z=e,U=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(ht&q)===q:(fn&q)===q){var w=z.revertLane;if(w===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===Za&&(U=!0);else if((fn&w)===w){z=z.next,w===Za&&(U=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=q,d=o):x=x.next=q,st.lanes|=w,Gn|=w;q=z.action,Sa&&n(o,q),o=z.hasEagerState?z.eagerState:n(o,q)}else w={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=w,d=o):x=x.next=w,st.lanes|=q,Gn|=q;z=z.next}while(z!==null&&z!==e);if(x===null?d=o:x.next=v,!xe(o,t.memoizedState)&&(Kt=!0,U&&(n=ka,n!==null)))throw n;t.memoizedState=o,t.baseState=d,t.baseQueue=x,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Yr(t){var e=Yt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,o=e.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do o=t(o,d.action),d=d.next;while(d!==r);xe(o,e.memoizedState)||(Kt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function ld(t,e,n){var l=st,r=Yt(),o=mt;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var d=!xe((Et||r).memoizedState,n);if(d&&(r.memoizedState=n,Kt=!0),r=r.queue,Kr(rd.bind(null,l,r,t),[t]),r.getSnapshot!==e||d||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,Ia(9,{destroy:void 0},ud.bind(null,l,r,n,e),null),Rt===null)throw Error(u(349));o||(fn&127)!==0||sd(l,e,n)}return n}function sd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=st.updateQueue,e===null?(e=bs(),st.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ud(t,e,n,l){e.value=n,e.getSnapshot=l,od(e)&&cd(t)}function rd(t,e,n){return n(function(){od(e)&&cd(t)})}function od(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xe(t,n)}catch{return!0}}function cd(t){var e=ca(t,2);e!==null&&ge(e,t,2)}function Gr(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),Sa){Cn(!0);try{n()}finally{Cn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:t},e}function fd(t,e,n,l){return t.baseState=n,qr(t,Et,typeof l=="function"?l:hn)}function _S(t,e,n,l,r){if(Ms(t))throw Error(u(485));if(t=e.action,t!==null){var o={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};j.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,hd(e,o)):(o.next=n.next,e.pending=n.next=o)}}function hd(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=j.T,d={};j.T=d;try{var v=n(r,l),x=j.S;x!==null&&x(d,v),dd(t,e,v)}catch(z){Xr(t,e,z)}finally{o!==null&&d.types!==null&&(o.types=d.types),j.T=o}}else try{o=n(r,l),dd(t,e,o)}catch(z){Xr(t,e,z)}}function dd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){md(t,e,l)},function(l){return Xr(t,e,l)}):md(t,e,n)}function md(t,e,n){e.status="fulfilled",e.value=n,pd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,hd(t,n)))}function Xr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,pd(e),e=e.next;while(e!==l)}t.action=null}function pd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function yd(t,e){return e}function gd(t,e){if(mt){var n=Rt.formState;if(n!==null){t:{var l=st;if(mt){if(Ct){e:{for(var r=Ct,o=_e;r.nodeType!==8;){if(!o){r=null;break e}if(r=je(r.nextSibling),r===null){r=null;break e}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Ct=je(r.nextSibling),l=r.data==="F!";break t}}Nn(l)}l=!1}l&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yd,lastRenderedState:e},n.queue=l,n=jd.bind(null,st,l),l.dispatch=n,l=Gr(!1),o=Fr.bind(null,st,!1,l.queue),l=ue(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=_S.bind(null,st,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function vd(t){var e=Yt();return Sd(e,Et,t)}function Sd(t,e,n){if(e=qr(t,e,yd)[0],t=Ts(hn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Wi(e)}catch(d){throw d===Ja?hs:d}else l=e;e=Yt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(st.flags|=2048,Ia(9,{destroy:void 0},US.bind(null,r,n),null)),[l,o,t]}function US(t,e){t.action=e}function bd(t){var e=Yt(),n=Et;if(n!==null)return Sd(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ia(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=st.updateQueue,e===null&&(e=bs(),st.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function xd(){return Yt().memoizedState}function Es(t,e,n,l){var r=ue();st.flags|=t,r.memoizedState=Ia(1|e,{destroy:void 0},n,l===void 0?null:l)}function As(t,e,n,l){var r=Yt();l=l===void 0?null:l;var o=r.memoizedState.inst;Et!==null&&l!==null&&_r(l,Et.memoizedState.deps)?r.memoizedState=Ia(e,o,n,l):(st.flags|=t,r.memoizedState=Ia(1|e,o,n,l))}function Td(t,e){Es(8390656,8,t,e)}function Kr(t,e){As(2048,8,t,e)}function jS(t){st.flags|=4;var e=st.updateQueue;if(e===null)e=bs(),st.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Ed(t){var e=Yt().memoizedState;return jS({ref:e,nextImpl:t}),function(){if((vt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function Ad(t,e){return As(4,2,t,e)}function Md(t,e){return As(4,4,t,e)}function Rd(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 Dd(t,e,n){n=n!=null?n.concat([t]):null,As(4,4,Rd.bind(null,e,t),n)}function Qr(){}function Cd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&_r(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function zd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&_r(e,l[1]))return l[0];if(l=t(),Sa){Cn(!0);try{t()}finally{Cn(!1)}}return n.memoizedState=[l,e],l}function Zr(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Om(),st.lanes|=t,Gn|=t,n)}function Od(t,e,n,l){return xe(n,e)?n:Pa.current!==null?(t=Zr(t,n,l),xe(t,e)||(Kt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Kt=!0,t.memoizedState=n):(t=Om(),st.lanes|=t,Gn|=t,e)}function wd(t,e,n,l,r){var o=K.p;K.p=o!==0&&8>o?o:8;var d=j.T,v={};j.T=v,Fr(t,!1,e,n);try{var x=r(),z=j.S;if(z!==null&&z(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var U=wS(x,l);$i(t,e,U,De(t))}else $i(t,e,l,De(t))}catch(q){$i(t,e,{then:function(){},status:"rejected",reason:q},De())}finally{K.p=o,d!==null&&v.types!==null&&(d.types=v.types),j.T=d}}function BS(){}function kr(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Vd(t).queue;wd(t,r,e,$,n===null?BS:function(){return Nd(t),n(l)})}function Vd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Nd(t){var e=Vd(t);e.next===null&&(e=t.alternate.memoizedState),$i(t,e.next.queue,{},De())}function Jr(){return It(pl)}function _d(){return Yt().memoizedState}function Ud(){return Yt().memoizedState}function LS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=jn(n);var l=Bn(e,t,n);l!==null&&(ge(l,e,n),ki(l,e,n)),e={cache:Er()},t.payload=e;return}e=e.return}}function HS(t,e,n){var l=De();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(t)?Bd(e,n):(n=hr(t,e,n,l),n!==null&&(ge(n,t,l),Ld(n,e,l)))}function jd(t,e,n){var l=De();$i(t,e,n,l)}function $i(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(t))Bd(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var d=e.lastRenderedState,v=o(d,n);if(r.hasEagerState=!0,r.eagerState=v,xe(v,d))return ls(t,e,r,0),Rt===null&&is(),!1}catch{}finally{}if(n=hr(t,e,r,l),n!==null)return ge(n,t,l),Ld(n,e,l),!0}return!1}function Fr(t,e,n,l){if(l={lane:2,revertLane:Co(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ms(t)){if(e)throw Error(u(479))}else e=hr(t,n,l,2),e!==null&&ge(e,t,2)}function Ms(t){var e=t.alternate;return t===st||e!==null&&e===st}function Bd(t,e){Wa=vs=!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 l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xf(t,n)}}var Ii={readContext:It,use:xs,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};Ii.useEffectEvent=jt;var Hd={readContext:It,use:xs,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Td,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Es(4194308,4,Rd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Es(4194308,4,t,e)},useInsertionEffect:function(t,e){Es(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var l=t();if(Sa){Cn(!0);try{t()}finally{Cn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ue();if(n!==void 0){var r=n(e);if(Sa){Cn(!0);try{n(e)}finally{Cn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=HS.bind(null,st,t),[l.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Gr(t);var e=t.queue,n=jd.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Qr,useDeferredValue:function(t,e){var n=ue();return Zr(n,t,e)},useTransition:function(){var t=Gr(!1);return t=wd.bind(null,st,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=st,r=ue();if(mt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Rt===null)throw Error(u(349));(ht&127)!==0||sd(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Td(rd.bind(null,l,o,t),[t]),l.flags|=2048,Ia(9,{destroy:void 0},ud.bind(null,l,o,n,e),null),n},useId:function(){var t=ue(),e=Rt.identifierPrefix;if(mt){var n=Fe,l=Je;n=(l&~(1<<32-be(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ss++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=VS++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Jr,useFormState:gd,useActionState:gd,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=Fr.bind(null,st,!0,n),n.dispatch=e,[t,e]},useMemoCache:Hr,useCacheRefresh:function(){return ue().memoizedState=LS.bind(null,st)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((vt&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Pr={readContext:It,use:xs,useCallback:Cd,useContext:It,useEffect:Kr,useImperativeHandle:Dd,useInsertionEffect:Ad,useLayoutEffect:Md,useMemo:zd,useReducer:Ts,useRef:xd,useState:function(){return Ts(hn)},useDebugValue:Qr,useDeferredValue:function(t,e){var n=Yt();return Od(n,Et.memoizedState,t,e)},useTransition:function(){var t=Ts(hn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wi(t),e]},useSyncExternalStore:ld,useId:_d,useHostTransitionStatus:Jr,useFormState:vd,useActionState:vd,useOptimistic:function(t,e){var n=Yt();return fd(n,Et,t,e)},useMemoCache:Hr,useCacheRefresh:Ud};Pr.useEffectEvent=Ed;var qd={readContext:It,use:xs,useCallback:Cd,useContext:It,useEffect:Kr,useImperativeHandle:Dd,useInsertionEffect:Ad,useLayoutEffect:Md,useMemo:zd,useReducer:Yr,useRef:xd,useState:function(){return Yr(hn)},useDebugValue:Qr,useDeferredValue:function(t,e){var n=Yt();return Et===null?Zr(n,t,e):Od(n,Et.memoizedState,t,e)},useTransition:function(){var t=Yr(hn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wi(t),e]},useSyncExternalStore:ld,useId:_d,useHostTransitionStatus:Jr,useFormState:bd,useActionState:bd,useOptimistic:function(t,e){var n=Yt();return Et!==null?fd(n,Et,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Hr,useCacheRefresh:Ud};qd.useEffectEvent=Ed;function Wr(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var $r={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=De(),r=jn(l);r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(ge(e,t,l),ki(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=De(),r=jn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(ge(e,t,l),ki(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),l=jn(n);l.tag=2,e!=null&&(l.callback=e),e=Bn(t,l,n),e!==null&&(ge(e,t,n),ki(e,t,n))}};function Yd(t,e,n,l,r,o,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,d):e.prototype&&e.prototype.isPureReactComponent?!Hi(n,l)||!Hi(r,o):!0}function Gd(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&$r.enqueueReplaceState(e,e.state,null)}function ba(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=S({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Xd(t){as(t)}function Kd(t){console.error(t)}function Qd(t){as(t)}function Rs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Zd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ir(t,e,n){return n=jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Rs(t,e)},n}function kd(t){return t=jn(t),t.tag=3,t}function Jd(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=l.value;t.payload=function(){return r(o)},t.callback=function(){Zd(e,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Zd(e,n,l),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function qS(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Qa(e,n,r,!0),n=Ee.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Ls():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===ds?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Mo(t,l,r)),!1;case 22:return n.flags|=65536,l===ds?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Mo(t,l,r)),!1}throw Error(u(435,n.tag))}return Mo(t,l,r),Ls(),!1}if(mt)return e=Ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==vr&&(t=Error(u(422),{cause:l}),Gi(we(t,n)))):(l!==vr&&(e=Error(u(423),{cause:l}),Gi(we(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=we(l,n),r=Ir(t.stateNode,l,r),zr(t,r),Bt!==4&&(Bt=2)),!1;var o=Error(u(520),{cause:l});if(o=we(o,n),ul===null?ul=[o]:ul.push(o),Bt!==4&&(Bt=2),e===null)return!0;l=we(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Ir(n.stateNode,l,t),zr(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Xn===null||!Xn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=kd(r),Jd(r,t,n,l),zr(n,r),!1}n=n.return}while(n!==null);return!1}var to=Error(u(461)),Kt=!1;function te(t,e,n,l){e.child=t===null?$h(e,null,n,l):va(e,t.child,n,l)}function Fd(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var d={};for(var v in l)v!=="ref"&&(d[v]=l[v])}else d=l;return ma(e),l=Ur(t,e,n,d,o,r),v=jr(),t!==null&&!Kt?(Br(t,e,r),dn(t,e,r)):(mt&&v&&yr(e),e.flags|=1,te(t,e,l,r),e.child)}function Pd(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!dr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Wd(t,e,o,l,r)):(t=us(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!ro(t,r)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hi,n(d,l)&&t.ref===e.ref)return dn(t,e,r)}return e.flags|=1,t=un(o,l),t.ref=e.ref,t.return=e,e.child=t}function Wd(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(Hi(o,l)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=l=o,ro(t,r))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,dn(t,e,r)}return eo(t,e,n,l,r)}function $d(t,e,n,l){var r=l.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~o}else l=0,e.child=null;return Id(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&fs(e,o!==null?o.cachePool:null),o!==null?ed(e,o):wr(),nd(e);else return l=e.lanes=536870912,Id(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(fs(e,o.cachePool),ed(e,o),Hn(),e.memoizedState=null):(t!==null&&fs(e,null),wr(),Hn());return te(t,e,r,n),e.child}function tl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Id(t,e,n,l,r){var o=Mr();return o=o===null?null:{parent:Gt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&fs(e,null),wr(),nd(e),t!==null&&Qa(t,e,l,!0),e.childLanes=r,null}function Ds(t,e){return e=zs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function tm(t,e,n){return va(e,t.child,null,n),t=Ds(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function YS(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(mt){if(l.mode==="hidden")return t=Ds(e,l),e.lanes=536870912,tl(null,t);if(Nr(e),(t=Ct)?(t=hp(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Je,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},n=Bh(t),n.return=e,e.child=n,$t=e,Ct=null)):t=null,t===null)throw Nn(e);return e.lanes=536870912,null}return Ds(e,l)}var o=t.memoizedState;if(o!==null){var d=o.dehydrated;if(Nr(e),r)if(e.flags&256)e.flags&=-257,e=tm(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Kt||Qa(t,e,n,!1),r=(n&t.childLanes)!==0,Kt||r){if(l=Rt,l!==null&&(d=Kf(l,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,ca(t,d),ge(l,t,d),to;Ls(),e=tm(t,e,n)}else t=o.treeContext,Ct=je(d.nextSibling),$t=e,mt=!0,Vn=null,_e=!1,t!==null&&qh(e,t),e=Ds(e,l),e.flags|=4096;return e}return t=un(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Cs(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(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function eo(t,e,n,l,r){return ma(e),n=Ur(t,e,n,l,void 0,r),l=jr(),t!==null&&!Kt?(Br(t,e,r),dn(t,e,r)):(mt&&l&&yr(e),e.flags|=1,te(t,e,n,r),e.child)}function em(t,e,n,l,r,o){return ma(e),e.updateQueue=null,n=id(e,l,n,r),ad(t),l=jr(),t!==null&&!Kt?(Br(t,e,o),dn(t,e,o)):(mt&&l&&yr(e),e.flags|=1,te(t,e,n,o),e.child)}function nm(t,e,n,l,r){if(ma(e),e.stateNode===null){var o=Ya,d=n.contextType;typeof d=="object"&&d!==null&&(o=It(d)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=$r,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Dr(e),d=n.contextType,o.context=typeof d=="object"&&d!==null?It(d):Ya,o.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Wr(e,n,d,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&$r.enqueueReplaceState(o,o.state,null),Fi(e,l,o,r),Ji(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var v=e.memoizedProps,x=ba(n,v);o.props=x;var z=o.context,U=n.contextType;d=Ya,typeof U=="object"&&U!==null&&(d=It(U));var q=n.getDerivedStateFromProps;U=typeof q=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,U||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==d)&&Gd(e,o,l,d),Un=!1;var w=e.memoizedState;o.state=w,Fi(e,l,o,r),Ji(),z=e.memoizedState,v||w!==z||Un?(typeof q=="function"&&(Wr(e,n,q,l),z=e.memoizedState),(x=Un||Yd(e,n,x,l,w,z,d))?(U||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),o.props=l,o.state=z,o.context=d,l=x):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Cr(t,e),d=e.memoizedProps,U=ba(n,d),o.props=U,q=e.pendingProps,w=o.context,z=n.contextType,x=Ya,typeof z=="object"&&z!==null&&(x=It(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==q||w!==x)&&Gd(e,o,l,x),Un=!1,w=e.memoizedState,o.state=w,Fi(e,l,o,r),Ji();var _=e.memoizedState;d!==q||w!==_||Un||t!==null&&t.dependencies!==null&&os(t.dependencies)?(typeof v=="function"&&(Wr(e,n,v,l),_=e.memoizedState),(U=Un||Yd(e,n,U,l,w,_,x)||t!==null&&t.dependencies!==null&&os(t.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,_,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,_,x)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=_),o.props=l,o.state=_,o.context=x,l=U):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Cs(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,r),e.child=va(e,null,n,r)):te(t,e,n,r),e.memoizedState=o.state,t=e.child):t=dn(t,e,r),t}function am(t,e,n,l){return ha(),e.flags|=256,te(t,e,n,l),e.child}var no={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ao(t){return{baseLanes:t,cachePool:Zh()}}function io(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function im(t,e,n){var l=e.pendingProps,r=!1,o=(e.flags&128)!==0,d;if((d=o)||(d=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),d&&(r=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(mt){if(r?Ln(e):Hn(),(t=Ct)?(t=hp(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Je,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},n=Bh(t),n.return=e,e.child=n,$t=e,Ct=null)):t=null,t===null)throw Nn(e);return Yo(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,r?(Hn(),r=e.mode,v=zs({mode:"hidden",children:v},r),l=fa(l,r,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=ao(n),l.childLanes=io(t,d,n),e.memoizedState=no,tl(null,l)):(Ln(e),lo(e,v))}var x=t.memoizedState;if(x!==null&&(v=x.dehydrated,v!==null)){if(o)e.flags&256?(Ln(e),e.flags&=-257,e=so(t,e,n)):e.memoizedState!==null?(Hn(),e.child=t.child,e.flags|=128,e=null):(Hn(),v=l.fallback,r=e.mode,l=zs({mode:"visible",children:l.children},r),v=fa(v,r,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=ao(n),l.childLanes=io(t,d,n),e.memoizedState=no,e=tl(null,l));else if(Ln(e),Yo(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(u(419)),l.stack="",l.digest=d,Gi({value:l,source:null,stack:null}),e=so(t,e,n)}else if(Kt||Qa(t,e,n,!1),d=(n&t.childLanes)!==0,Kt||d){if(d=Rt,d!==null&&(l=Kf(d,n),l!==0&&l!==x.retryLane))throw x.retryLane=l,ca(t,l),ge(d,t,l),to;qo(v)||Ls(),e=so(t,e,n)}else qo(v)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Ct=je(v.nextSibling),$t=e,mt=!0,Vn=null,_e=!1,t!==null&&qh(e,t),e=lo(e,l.children),e.flags|=4096);return e}return r?(Hn(),v=l.fallback,r=e.mode,x=t.child,z=x.sibling,l=un(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,z!==null?v=un(z,v):(v=fa(v,r,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,tl(null,l),l=e.child,v=t.child.memoizedState,v===null?v=ao(n):(r=v.cachePool,r!==null?(x=Gt._currentValue,r=r.parent!==x?{parent:x,pool:x}:r):r=Zh(),v={baseLanes:v.baseLanes|n,cachePool:r}),l.memoizedState=v,l.childLanes=io(t,d,n),e.memoizedState=no,tl(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=un(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function lo(t,e){return e=zs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zs(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function so(t,e,n){return va(e,t.child,null,n),t=lo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lm(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),xr(t.return,e,n)}function uo(t,e,n,l,r,o){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:o}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=r,d.treeForkCount=o)}function sm(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var d=qt.current,v=(d&2)!==0;if(v?(d=d&1|2,e.flags|=128):d&=1,Z(qt,d),te(t,e,l,n),l=mt?Yi:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lm(t,n,e);else if(t.tag===19)lm(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(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&gs(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),uo(e,!1,r,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&gs(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}uo(e,!0,n,null,o,l);break;case"together":uo(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function dn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Gn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Qa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=un(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=un(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function ro(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&os(t)))}function GS(t,e,n){switch(e.tag){case 3:se(e,e.stateNode.containerInfo),_n(e,Gt,t.memoizedState.cache),ha();break;case 27:case 5:Ri(e);break;case 4:se(e,e.stateNode.containerInfo);break;case 10:_n(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Nr(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?im(t,e,n):(Ln(e),t=dn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Qa(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return sm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Z(qt,qt.current),l)break;return null;case 22:return e.lanes=0,$d(t,e,n,e.pendingProps);case 24:_n(e,Gt,t.memoizedState.cache)}return dn(t,e,n)}function um(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!ro(t,n)&&(e.flags&128)===0)return Kt=!1,GS(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,mt&&(e.flags&1048576)!==0&&Hh(e,Yi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ya(e.elementType),e.type=t,typeof t=="function")dr(t)?(l=ba(t,l),e.tag=1,e=nm(null,e,t,l,n)):(e.tag=0,e=eo(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===Q){e.tag=11,e=Fd(null,e,t,l,n);break t}else if(r===J){e.tag=14,e=Pd(null,e,t,l,n);break t}}throw e=le(t)||t,Error(u(306,e,""))}}return e;case 0:return eo(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=ba(l,e.pendingProps),nm(t,e,l,r,n);case 3:t:{if(se(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,Cr(t,e),Fi(e,l,null,n);var d=e.memoizedState;if(l=d.cache,_n(e,Gt,l),l!==o.cache&&Tr(e,[Gt],n,!0),Ji(),l=d.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=am(t,e,l,n);break t}else if(l!==r){r=we(Error(u(424)),e),Gi(r),e=am(t,e,l,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(Ct=je(t.firstChild),$t=e,mt=!0,Vn=null,_e=!0,n=$h(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ha(),l===r){e=dn(t,e,n);break t}te(t,e,l,n)}e=e.child}return e;case 26:return Cs(t,e),t===null?(n=vp(e.type,null,e.pendingProps,null))?e.memoizedState=n:mt||(n=e.type,t=e.pendingProps,l=Qs(rt.current).createElement(n),l[Wt]=e,l[fe]=t,ee(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=vp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ri(e),t===null&&mt&&(l=e.stateNode=pp(e.type,e.pendingProps,rt.current),$t=e,_e=!0,r=Ct,kn(e.type)?(Go=r,Ct=je(l.firstChild)):Ct=r),te(t,e,e.pendingProps.children,n),Cs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&mt&&((r=l=Ct)&&(l=v1(l,e.type,e.pendingProps,_e),l!==null?(e.stateNode=l,$t=e,Ct=je(l.firstChild),_e=!1,r=!0):r=!1),r||Nn(e)),Ri(e),r=e.type,o=e.pendingProps,d=t!==null?t.memoizedProps:null,l=o.children,Bo(r,o)?l=null:d!==null&&Bo(r,d)&&(e.flags|=32),e.memoizedState!==null&&(r=Ur(t,e,NS,null,null,n),pl._currentValue=r),Cs(t,e),te(t,e,l,n),e.child;case 6:return t===null&&mt&&((t=n=Ct)&&(n=S1(n,e.pendingProps,_e),n!==null?(e.stateNode=n,$t=e,Ct=null,t=!0):t=!1),t||Nn(e)),null;case 13:return im(t,e,n);case 4:return se(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):te(t,e,l,n),e.child;case 11:return Fd(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,_n(e,e.type,l.value),te(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ma(e),r=It(r),l=l(r),e.flags|=1,te(t,e,l,n),e.child;case 14:return Pd(t,e,e.type,e.pendingProps,n);case 15:return Wd(t,e,e.type,e.pendingProps,n);case 19:return sm(t,e,n);case 31:return YS(t,e,n);case 22:return $d(t,e,n,e.pendingProps);case 24:return ma(e),l=It(Gt),t===null?(r=Mr(),r===null&&(r=Rt,o=Er(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Dr(e),_n(e,Gt,r)):((t.lanes&n)!==0&&(Cr(t,e),Fi(e,null,null,n),Ji()),r=t.memoizedState,o=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),_n(e,Gt,l)):(l=o.cache,_n(e,Gt,l),l!==r.cache&&Tr(e,[Gt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function mn(t){t.flags|=4}function oo(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(_m())t.flags|=8192;else throw ga=ds,Rr}else t.flags&=-16777217}function rm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ep(e))if(_m())t.flags|=8192;else throw ga=ds,Rr}function Os(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yf():536870912,t.lanes|=e,ai|=e)}function el(t,e){if(!mt)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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function XS(t,e,n){var l=e.pendingProps;switch(gr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),cn(Gt),Ht(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ka(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Sr())),zt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(mn(e),o!==null?(zt(e),rm(e,o)):(zt(e),oo(e,r,null,l,n))):o?o!==t.memoizedState?(mn(e),zt(e),rm(e,o)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),zt(e),oo(e,r,t,l,n)),null;case 27:if(Yl(e),n=rt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return zt(e),null}t=W.current,Ka(e)?Yh(e):(t=pp(r,l,n),e.stateNode=t,mn(e))}return zt(e),null;case 5:if(Yl(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return zt(e),null}if(o=W.current,Ka(e))Yh(e);else{var d=Qs(rt.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?d.createElement(r,{is:l.is}):d.createElement(r)}}o[Wt]=e,o[fe]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=o;t:switch(ee(o,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return zt(e),oo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=rt.current,Ka(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=$t,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ip(t.nodeValue,n)),t||Nn(e,!0)}else t=Qs(t).createTextNode(l),t[Wt]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ka(e),n!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[Wt]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=Sr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(u(558))}return zt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ka(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(u(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[Wt]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),r=!1}else r=Sr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Os(e,e.updateQueue),zt(e),null);case 4:return Ht(),t===null&&Vo(e.stateNode.containerInfo),zt(e),null;case 10:return cn(e.type),zt(e),null;case 19:if(Y(qt),l=e.memoizedState,l===null)return zt(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)el(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=gs(t),o!==null){for(e.flags|=128,el(l,!1),t=o.updateQueue,e.updateQueue=t,Os(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)jh(n,t),n=n.sibling;return Z(qt,qt.current&1|2),mt&&rn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Us&&(e.flags|=128,r=!0,el(l,!1),e.lanes=4194304)}else{if(!r)if(t=gs(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Os(e,t),el(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!mt)return zt(e),null}else 2*ve()-l.renderingStartTime>Us&&n!==536870912&&(e.flags|=128,r=!0,el(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,n=qt.current,Z(qt,r?n&1|2:n&1),mt&&rn(e,l.treeForkCount),t):(zt(e),null);case 22:case 23:return Ae(e),Vr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&Os(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Y(pa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),cn(Gt),zt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function KS(t,e){switch(gr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return cn(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 Yl(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(u(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(qt),null;case 4:return Ht(),null;case 10:return cn(e.type),null;case 22:case 23:return Ae(e),Vr(),t!==null&&Y(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return cn(Gt),null;case 25:return null;default:return null}}function om(t,e){switch(gr(e),e.tag){case 3:cn(Gt),Ht();break;case 26:case 27:case 5:Yl(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:Y(qt);break;case 10:cn(e.type);break;case 22:case 23:Ae(e),Vr(),t!==null&&Y(pa);break;case 24:cn(Gt)}}function nl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var o=n.create,d=n.inst;l=o(),d.destroy=l}n=n.next}while(n!==r)}}catch(v){Tt(e,e.return,v)}}function qn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&t)===t){var d=l.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,r=e;var x=n,z=v;try{z()}catch(U){Tt(r,x,U)}}}l=l.next}while(l!==o)}}catch(U){Tt(e,e.return,U)}}function cm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{td(e,n)}catch(l){Tt(t,t.return,l)}}}function fm(t,e,n){n.props=ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function al(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Tt(t,e,r)}}function Pe(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Tt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Tt(t,e,r)}else n.current=null}function hm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Tt(t,t.return,r)}}function co(t,e,n){try{var l=t.stateNode;h1(l,t.type,n,e),l[fe]=e}catch(r){Tt(t,t.return,r)}}function dm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function fo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dm(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&&kn(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 ho(t,e,n){var l=t.tag;if(l===5||l===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=ln));else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(ho(t,e,n),t=t.sibling;t!==null;)ho(t,e,n),t=t.sibling}function ws(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ws(t,e,n),t=t.sibling;t!==null;)ws(t,e,n),t=t.sibling}function mm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ee(e,l,n),e[Wt]=t,e[fe]=n}catch(o){Tt(t,t.return,o)}}var pn=!1,Qt=!1,mo=!1,pm=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function QS(t,e){if(t=t.containerInfo,Uo=$s,t=Dh(t),sr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var d=0,v=-1,x=-1,z=0,U=0,q=t,w=null;e:for(;;){for(var _;q!==n||r!==0&&q.nodeType!==3||(v=d+r),q!==o||l!==0&&q.nodeType!==3||(x=d+l),q.nodeType===3&&(d+=q.nodeValue.length),(_=q.firstChild)!==null;)w=q,q=_;for(;;){if(q===t)break e;if(w===n&&++z===r&&(v=d),w===o&&++U===l&&(x=d),(_=q.nextSibling)!==null)break;q=w,w=q.parentNode}q=_}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:t,selectionRange:n},$s=!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,o=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++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,r=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var F=ba(n.type,r);t=l.getSnapshotBeforeUpdate(F,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Tt(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ho(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ho(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function ym(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:gn(t,n),l&4&&nl(5,n);break;case 1:if(gn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Tt(n,n.return,d)}else{var r=ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Tt(n,n.return,d)}}l&64&&cm(n),l&512&&al(n,n.return);break;case 3:if(gn(t,n),l&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{td(t,e)}catch(d){Tt(n,n.return,d)}}break;case 27:e===null&&l&4&&mm(n);case 26:case 5:gn(t,n),e===null&&l&4&&hm(n),l&512&&al(n,n.return);break;case 12:gn(t,n);break;case 31:gn(t,n),l&4&&Sm(t,n);break;case 13:gn(t,n),l&4&&bm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=t1.bind(null,n),b1(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Qt,r=pn;var o=Qt;pn=l,(Qt=e)&&!o?vn(t,n,(n.subtreeFlags&8772)!==0):gn(t,n),pn=r,Qt=o}break;case 30:break;default:gn(t,n)}}function gm(t){var e=t.alternate;e!==null&&(t.alternate=null,gm(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 Ot=null,de=!1;function yn(t,e,n){for(n=n.child;n!==null;)vm(t,e,n),n=n.sibling}function vm(t,e,n){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 26:Qt||Pe(n,e),yn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||Pe(n,e);var l=Ot,r=de;kn(n.type)&&(Ot=n.stateNode,de=!1),yn(t,e,n),hl(n.stateNode),Ot=l,de=r;break;case 5:Qt||Pe(n,e);case 6:if(l=Ot,r=de,Ot=null,yn(t,e,n),Ot=l,de=r,Ot!==null)if(de)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(o){Tt(n,e,o)}else try{Ot.removeChild(n.stateNode)}catch(o){Tt(n,e,o)}break;case 18:Ot!==null&&(de?(t=Ot,cp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),fi(t)):cp(Ot,n.stateNode));break;case 4:l=Ot,r=de,Ot=n.stateNode.containerInfo,de=!0,yn(t,e,n),Ot=l,de=r;break;case 0:case 11:case 14:case 15:qn(2,n,e),Qt||qn(4,n,e),yn(t,e,n);break;case 1:Qt||(Pe(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&fm(n,e,l)),yn(t,e,n);break;case 21:yn(t,e,n);break;case 22:Qt=(l=Qt)||n.memoizedState!==null,yn(t,e,n),Qt=l;break;default:yn(t,e,n)}}function Sm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fi(t)}catch(n){Tt(e,e.return,n)}}}function bm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fi(t)}catch(n){Tt(e,e.return,n)}}function ZS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new pm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new pm),e;default:throw Error(u(435,t.tag))}}function Vs(t,e){var n=ZS(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=e1.bind(null,t,l);l.then(r,r)}})}function me(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],o=t,d=e,v=d;t:for(;v!==null;){switch(v.tag){case 27:if(kn(v.type)){Ot=v.stateNode,de=!1;break t}break;case 5:Ot=v.stateNode,de=!1;break t;case 3:case 4:Ot=v.stateNode.containerInfo,de=!0;break t}v=v.return}if(Ot===null)throw Error(u(160));vm(o,d,r),Ot=null,de=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)xm(e,t),e=e.sibling}var Ge=null;function xm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),pe(t),l&4&&(qn(3,t,t.return),nl(3,t),qn(5,t,t.return));break;case 1:me(e,t),pe(t),l&512&&(Qt||n===null||Pe(n,n.return)),l&64&&pn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Ge;if(me(e,t),pe(t),l&512&&(Qt||n===null||Pe(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Oi]||o[Wt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),ee(o,l,n),o[Wt]=t,Ft(o),l=o;break t;case"link":var d=xp("link","href",r).get(l+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break e}}o=r.createElement(l),ee(o,l,n),r.head.appendChild(o);break;case"meta":if(d=xp("meta","content",r).get(l+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break e}}o=r.createElement(l),ee(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[Wt]=t,Ft(o),l=o}t.stateNode=l}else Tp(r,t.type,t.stateNode);else t.stateNode=bp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Tp(r,t.type,t.stateNode):bp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&co(t,t.memoizedProps,n.memoizedProps)}break;case 27:me(e,t),pe(t),l&512&&(Qt||n===null||Pe(n,n.return)),n!==null&&l&4&&co(t,t.memoizedProps,n.memoizedProps);break;case 5:if(me(e,t),pe(t),l&512&&(Qt||n===null||Pe(n,n.return)),t.flags&32){r=t.stateNode;try{_a(r,"")}catch(F){Tt(t,t.return,F)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,co(t,r,n!==null?n.memoizedProps:r)),l&1024&&(mo=!0);break;case 6:if(me(e,t),pe(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(F){Tt(t,t.return,F)}}break;case 3:if(Js=null,r=Ge,Ge=Zs(e.containerInfo),me(e,t),Ge=r,pe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(e.containerInfo)}catch(F){Tt(t,t.return,F)}mo&&(mo=!1,Tm(t));break;case 4:l=Ge,Ge=Zs(t.stateNode.containerInfo),me(e,t),pe(t),Ge=l;break;case 12:me(e,t),pe(t);break;case 31:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 13:me(e,t),pe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_s=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 22:r=t.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,z=pn,U=Qt;if(pn=z||r,Qt=U||x,me(e,t),Qt=U,pn=z,pe(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||x||pn||Qt||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){x=n=e;try{if(o=x.stateNode,r)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=x.stateNode;var q=x.memoizedProps.style,w=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(F){Tt(x,x.return,F)}}}else if(e.tag===6){if(n===null){x=e;try{x.stateNode.nodeValue=r?"":x.memoizedProps}catch(F){Tt(x,x.return,F)}}}else if(e.tag===18){if(n===null){x=e;try{var _=x.stateNode;r?fp(_,!0):fp(x.stateNode,!1)}catch(F){Tt(x,x.return,F)}}}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}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Vs(t,n))));break;case 19:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 30:break;case 21:break;default:me(e,t),pe(t)}}function pe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(dm(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=fo(t);ws(t,o,r);break;case 5:var d=n.stateNode;n.flags&32&&(_a(d,""),n.flags&=-33);var v=fo(t);ws(t,v,d);break;case 3:case 4:var x=n.stateNode.containerInfo,z=fo(t);ho(t,z,x);break;default:throw Error(u(161))}}catch(U){Tt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Tm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Tm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function gn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ym(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qn(4,e,e.return),xa(e);break;case 1:Pe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&fm(e,e.return,n),xa(e);break;case 27:hl(e.stateNode);case 26:case 5:Pe(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function vn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,o=e,d=o.flags;switch(o.tag){case 0:case 11:case 15:vn(r,o,n),nl(4,o);break;case 1:if(vn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Tt(l,l.return,z)}if(l=o,r=l.updateQueue,r!==null){var v=l.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)Ih(x[r],v)}catch(z){Tt(l,l.return,z)}}n&&d&64&&cm(o),al(o,o.return);break;case 27:mm(o);case 26:case 5:vn(r,o,n),n&&l===null&&d&4&&hm(o),al(o,o.return);break;case 12:vn(r,o,n);break;case 31:vn(r,o,n),n&&d&4&&Sm(r,o);break;case 13:vn(r,o,n),n&&d&4&&bm(r,o);break;case 22:o.memoizedState===null&&vn(r,o,n),al(o,o.return);break;case 30:break;default:vn(r,o,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&&Xi(n))}function yo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xi(t))}function Xe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Em(t,e,n,l),e=e.sibling}function Em(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,l),r&2048&&nl(9,e);break;case 1:Xe(t,e,n,l);break;case 3:Xe(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xi(t)));break;case 12:if(r&2048){Xe(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){Tt(e,e.return,x)}}else Xe(t,e,n,l);break;case 31:Xe(t,e,n,l);break;case 13:Xe(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,d=e.alternate,e.memoizedState!==null?o._visibility&2?Xe(t,e,n,l):il(t,e):o._visibility&2?Xe(t,e,n,l):(o._visibility|=2,ti(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&po(d,e);break;case 24:Xe(t,e,n,l),r&2048&&yo(e.alternate,e);break;default:Xe(t,e,n,l)}}function ti(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,d=e,v=n,x=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:ti(o,d,v,x,r),nl(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?ti(o,d,v,x,r):il(o,d):(U._visibility|=2,ti(o,d,v,x,r)),r&&z&2048&&po(d.alternate,d);break;case 24:ti(o,d,v,x,r),r&&z&2048&&yo(d.alternate,d);break;default:ti(o,d,v,x,r)}e=e.sibling}}function il(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:il(n,l),r&2048&&po(l.alternate,l);break;case 24:il(n,l),r&2048&&yo(l.alternate,l);break;default:il(n,l)}e=e.sibling}}var ll=8192;function ei(t,e,n){if(t.subtreeFlags&ll)for(t=t.child;t!==null;)Am(t,e,n),t=t.sibling}function Am(t,e,n){switch(t.tag){case 26:ei(t,e,n),t.flags&ll&&t.memoizedState!==null&&V1(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:ei(t,e,n);break;case 3:case 4:var l=Ge;Ge=Zs(t.stateNode.containerInfo),ei(t,e,n),Ge=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ll,ll=16777216,ei(t,e,n),ll=l):ei(t,e,n));break;default:ei(t,e,n)}}function Mm(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 sl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Pt=l,Dm(l,t)}Mm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rm(t),t=t.sibling}function Rm(t){switch(t.tag){case 0:case 11:case 15:sl(t),t.flags&2048&&qn(9,t,t.return);break;case 3:sl(t);break;case 12:sl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ns(t)):sl(t);break;default:sl(t)}}function Ns(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Pt=l,Dm(l,t)}Mm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qn(8,e,e.return),Ns(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ns(e));break;default:Ns(e)}t=t.sibling}}function Dm(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:qn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Pt=l;else t:for(n=t;Pt!==null;){l=Pt;var r=l.sibling,o=l.return;if(gm(l),l===n){Pt=null;break t}if(r!==null){r.return=o,Pt=r;break t}Pt=o}}}var kS={getCacheForType:function(t){var e=It(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Gt).controller.signal}},JS=typeof WeakMap=="function"?WeakMap:Map,vt=0,Rt=null,ot=null,ht=0,xt=0,Me=null,Yn=!1,ni=!1,go=!1,Sn=0,Bt=0,Gn=0,Ta=0,vo=0,Re=0,ai=0,ul=null,ye=null,So=!1,_s=0,Cm=0,Us=1/0,js=null,Xn=null,kt=0,Kn=null,ii=null,bn=0,bo=0,xo=null,zm=null,rl=0,To=null;function De(){return(vt&2)!==0&&ht!==0?ht&-ht:j.T!==null?Co():Qf()}function Om(){if(Re===0)if((ht&536870912)===0||mt){var t=Kl;Kl<<=1,(Kl&3932160)===0&&(Kl=262144),Re=t}else Re=536870912;return t=Ee.current,t!==null&&(t.flags|=32),Re}function ge(t,e,n){(t===Rt&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(li(t,0),Qn(t,ht,Re,!1)),zi(t,n),((vt&2)===0||t!==Rt)&&(t===Rt&&((vt&2)===0&&(Ta|=n),Bt===4&&Qn(t,ht,Re,!1)),We(t))}function wm(t,e,n){if((vt&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ci(t,e),r=l?WS(t,e):Ao(t,e,!0),o=l;do{if(r===0){ni&&!l&&Qn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!FS(n)){r=Ao(t,e,!1),o=!1;continue}if(r===2){if(o=e,t.errorRecoveryDisabledLanes&o)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var v=t;r=ul;var x=v.current.memoizedState.isDehydrated;if(x&&(li(v,d).flags|=256),d=Ao(v,d,!1),d!==2){if(go&&!x){v.errorRecoveryDisabledLanes|=o,Ta|=o,r=4;break t}o=ye,ye=r,o!==null&&(ye===null?ye=o:ye.push.apply(ye,o))}r=d}if(o=!1,r!==2)continue}}if(r===1){li(t,0),Qn(t,e,0,!0);break}t:{switch(l=t,o=r,o){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Qn(l,e,Re,!Yn);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=_s+300-ve(),10<r)){if(Qn(l,e,Re,!Yn),Zl(l,0,!0)!==0)break t;bn=e,l.timeoutHandle=rp(Vm.bind(null,l,n,ye,js,So,e,Re,Ta,ai,Yn,o,"Throttled",-0,0),r);break t}Vm(l,n,ye,js,So,e,Re,Ta,ai,Yn,o,null,-0,0)}}break}while(!0);We(t)}function Vm(t,e,n,l,r,o,d,v,x,z,U,q,w,_){if(t.timeoutHandle=-1,q=e.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Am(e,o,q);var F=(o&62914560)===o?_s-ve():(o&4194048)===o?Cm-ve():0;if(F=N1(q,F),F!==null){bn=o,t.cancelPendingCommit=F(qm.bind(null,t,e,o,n,l,r,d,v,x,U,q,null,w,_)),Qn(t,o,d,!z);return}}qm(t,e,o,n,l,r,d,v,x)}function FS(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 l=0;l<n.length;l++){var r=n[l],o=r.getSnapshot;r=r.value;try{if(!xe(o(),r))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 Qn(t,e,n,l){e&=~vo,e&=~Ta,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-be(r),d=1<<o;l[o]=-1,r&=~d}n!==0&&Gf(t,n,e)}function Bs(){return(vt&6)===0?(ol(0),!1):!0}function Eo(){if(ot!==null){if(xt===0)var t=ot.return;else t=ot,on=da=null,Lr(t),Fa=null,Qi=0,t=ot;for(;t!==null;)om(t.alternate,t),t=t.return;ot=null}}function li(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,p1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,Eo(),Rt=t,ot=n=un(t.current,null),ht=e,xt=0,Me=null,Yn=!1,ni=Ci(t,e),go=!1,ai=Re=vo=Ta=Gn=Bt=0,ye=ul=null,So=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-be(l),o=1<<r;e|=t[r],l&=~o}return Sn=e,is(),n}function Nm(t,e){st=null,j.H=Ii,e===Ja||e===hs?(e=Fh(),xt=3):e===Rr?(e=Fh(),xt=4):xt=e===to?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,ot===null&&(Bt=1,Rs(t,we(e,t.current)))}function _m(){var t=Ee.current;return t===null?!0:(ht&4194048)===ht?Ue===null:(ht&62914560)===ht||(ht&536870912)!==0?t===Ue:!1}function Um(){var t=j.H;return j.H=Ii,t===null?Ii:t}function jm(){var t=j.A;return j.A=kS,t}function Ls(){Bt=4,Yn||(ht&4194048)!==ht&&Ee.current!==null||(ni=!0),(Gn&134217727)===0&&(Ta&134217727)===0||Rt===null||Qn(Rt,ht,Re,!1)}function Ao(t,e,n){var l=vt;vt|=2;var r=Um(),o=jm();(Rt!==t||ht!==e)&&(js=null,li(t,e)),e=!1;var d=Bt;t:do try{if(xt!==0&&ot!==null){var v=ot,x=Me;switch(xt){case 8:Eo(),d=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var z=xt;if(xt=0,Me=null,si(t,v,x,z),n&&ni){d=0;break t}break;default:z=xt,xt=0,Me=null,si(t,v,x,z)}}PS(),d=Bt;break}catch(U){Nm(t,U)}while(!0);return e&&t.shellSuspendCounter++,on=da=null,vt=l,j.H=r,j.A=o,ot===null&&(Rt=null,ht=0,is()),d}function PS(){for(;ot!==null;)Bm(ot)}function WS(t,e){var n=vt;vt|=2;var l=Um(),r=jm();Rt!==t||ht!==e?(js=null,Us=ve()+500,li(t,e)):ni=Ci(t,e);t:do try{if(xt!==0&&ot!==null){e=ot;var o=Me;e:switch(xt){case 1:xt=0,Me=null,si(t,e,o,1);break;case 2:case 9:if(kh(o)){xt=0,Me=null,Lm(e);break}e=function(){xt!==2&&xt!==9||Rt!==t||(xt=7),We(t)},o.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:kh(o)?(xt=0,Me=null,Lm(e)):(xt=0,Me=null,si(t,e,o,7));break;case 5:var d=null;switch(ot.tag){case 26:d=ot.memoizedState;case 5:case 27:var v=ot;if(d?Ep(d):v.stateNode.complete){xt=0,Me=null;var x=v.sibling;if(x!==null)ot=x;else{var z=v.return;z!==null?(ot=z,Hs(z)):ot=null}break e}}xt=0,Me=null,si(t,e,o,5);break;case 6:xt=0,Me=null,si(t,e,o,6);break;case 8:Eo(),Bt=6;break t;default:throw Error(u(462))}}$S();break}catch(U){Nm(t,U)}while(!0);return on=da=null,j.H=l,j.A=r,vt=n,ot!==null?0:(Rt=null,ht=0,is(),Bt)}function $S(){for(;ot!==null&&!x0();)Bm(ot)}function Bm(t){var e=um(t.alternate,t,Sn);t.memoizedProps=t.pendingProps,e===null?Hs(t):ot=e}function Lm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=em(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=em(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Lr(e);default:om(n,e),e=ot=jh(e,Sn),e=um(n,e,Sn)}t.memoizedProps=t.pendingProps,e===null?Hs(t):ot=e}function si(t,e,n,l){on=da=null,Lr(e),Fa=null,Qi=0;var r=e.return;try{if(qS(t,r,e,n,ht)){Bt=1,Rs(t,we(n,t.current)),ot=null;return}}catch(o){if(r!==null)throw ot=r,o;Bt=1,Rs(t,we(n,t.current)),ot=null;return}e.flags&32768?(mt||l===1?t=!0:ni||(ht&536870912)!==0?t=!1:(Yn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ee.current,l!==null&&l.tag===13&&(l.flags|=16384))),Hm(e,t)):Hs(e)}function Hs(t){var e=t;do{if((e.flags&32768)!==0){Hm(e,Yn);return}t=e.return;var n=XS(e.alternate,e,Sn);if(n!==null){ot=n;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);Bt===0&&(Bt=5)}function Hm(t,e){do{var n=KS(t.alternate,t);if(n!==null){n.flags&=32767,ot=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=n}while(t!==null);Bt=6,ot=null}function qm(t,e,n,l,r,o,d,v,x){t.cancelPendingCommit=null;do qs();while(kt!==0);if((vt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=fr,w0(t,n,o,d,v,x),t===Rt&&(ot=Rt=null,ht=0),ii=e,Kn=t,bn=n,bo=o,xo=r,zm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,n1(Gl,function(){return Qm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,r=K.p,K.p=2,d=vt,vt|=4;try{QS(t,e,n)}finally{vt=d,K.p=r,j.T=l}}kt=1,Ym(),Gm(),Xm()}}function Ym(){if(kt===1){kt=0;var t=Kn,e=ii,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var l=K.p;K.p=2;var r=vt;vt|=4;try{xm(e,t);var o=jo,d=Dh(t.containerInfo),v=o.focusedElem,x=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&Rh(v.ownerDocument.documentElement,v)){if(x!==null&&sr(v)){var z=x.start,U=x.end;if(U===void 0&&(U=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(U,v.value.length);else{var q=v.ownerDocument||document,w=q&&q.defaultView||window;if(w.getSelection){var _=w.getSelection(),F=v.textContent.length,nt=Math.min(x.start,F),Mt=x.end===void 0?nt:Math.min(x.end,F);!_.extend&&nt>Mt&&(d=Mt,Mt=nt,nt=d);var R=Mh(v,nt),T=Mh(v,Mt);if(R&&T&&(_.rangeCount!==1||_.anchorNode!==R.node||_.anchorOffset!==R.offset||_.focusNode!==T.node||_.focusOffset!==T.offset)){var C=q.createRange();C.setStart(R.node,R.offset),_.removeAllRanges(),nt>Mt?(_.addRange(C),_.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),_.addRange(C))}}}}for(q=[],_=v;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var L=q[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}$s=!!Uo,jo=Uo=null}finally{vt=r,K.p=l,j.T=n}}t.current=e,kt=2}}function Gm(){if(kt===2){kt=0;var t=Kn,e=ii,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var l=K.p;K.p=2;var r=vt;vt|=4;try{ym(t,e.alternate,e)}finally{vt=r,K.p=l,j.T=n}}kt=3}}function Xm(){if(kt===4||kt===3){kt=0,T0();var t=Kn,e=ii,n=bn,l=zm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,ii=Kn=null,Km(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Xn=null),Yu(n),e=e.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(Di,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=j.T,r=K.p,K.p=2,j.T=null;try{for(var o=t.onRecoverableError,d=0;d<l.length;d++){var v=l[d];o(v.value,{componentStack:v.stack})}}finally{j.T=e,K.p=r}}(bn&3)!==0&&qs(),We(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===To?rl++:(rl=0,To=t):rl=0,ol(0)}}function Km(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Xi(e)))}function qs(){return Ym(),Gm(),Xm(),Qm()}function Qm(){if(kt!==5)return!1;var t=Kn,e=bo;bo=0;var n=Yu(bn),l=j.T,r=K.p;try{K.p=32>n?32:n,j.T=null,n=xo,xo=null;var o=Kn,d=bn;if(kt=0,ii=Kn=null,bn=0,(vt&6)!==0)throw Error(u(331));var v=vt;if(vt|=4,Rm(o.current),Em(o,o.current,d,n),vt=v,ol(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(Di,o)}catch{}return!0}finally{K.p=r,j.T=l,Km(t,e)}}function Zm(t,e,n){e=we(n,e),e=Ir(t.stateNode,e,2),t=Bn(t,e,2),t!==null&&(zi(t,2),We(t))}function Tt(t,e,n){if(t.tag===3)Zm(t,t,n);else for(;e!==null;){if(e.tag===3){Zm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xn===null||!Xn.has(l))){t=we(n,t),n=kd(2),l=Bn(e,n,2),l!==null&&(Jd(n,l,e,t),zi(l,2),We(l));break}}e=e.return}}function Mo(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new JS;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(go=!0,r.add(n),t=IS.bind(null,t,e,n),e.then(t,t))}function IS(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rt===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ve()-_s?(vt&2)===0&&li(t,0):vo|=n,ai===ht&&(ai=0)),We(t)}function km(t,e){e===0&&(e=Yf()),t=ca(t,e),t!==null&&(zi(t,e),We(t))}function t1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),km(t,n)}function e1(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),km(t,n)}function n1(t,e){return Bu(t,e)}var Ys=null,ui=null,Ro=!1,Gs=!1,Do=!1,Zn=0;function We(t){t!==ui&&t.next===null&&(ui===null?Ys=ui=t:ui=ui.next=t),Gs=!0,Ro||(Ro=!0,i1())}function ol(t,e){if(!Do&&Gs){Do=!0;do for(var n=!1,l=Ys;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var o=0;else{var d=l.suspendedLanes,v=l.pingedLanes;o=(1<<31-be(42|t)+1)-1,o&=r&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Wm(l,o))}else o=ht,o=Zl(l,l===Rt?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Ci(l,o)||(n=!0,Wm(l,o));l=l.next}while(n);Do=!1}}function a1(){Jm()}function Jm(){Gs=Ro=!1;var t=0;Zn!==0&&m1()&&(t=Zn);for(var e=ve(),n=null,l=Ys;l!==null;){var r=l.next,o=Fm(l,e);o===0?(l.next=null,n===null?Ys=r:n.next=r,r===null&&(ui=n)):(n=l,(t!==0||(o&3)!==0)&&(Gs=!0)),l=r}kt!==0&&kt!==5||ol(t),Zn!==0&&(Zn=0)}function Fm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var d=31-be(o),v=1<<d,x=r[d];x===-1?((v&n)===0||(v&l)!==0)&&(r[d]=O0(v,e)):x<=e&&(t.expiredLanes|=v),o&=~v}if(e=Rt,n=ht,n=Zl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Lu(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ci(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Lu(l),Yu(n)){case 2:case 8:n=Hf;break;case 32:n=Gl;break;case 268435456:n=qf;break;default:n=Gl}return l=Pm.bind(null,t),n=Bu(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Lu(l),t.callbackPriority=2,t.callbackNode=null,2}function Pm(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(qs()&&t.callbackNode!==n)return null;var l=ht;return l=Zl(t,t===Rt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(wm(t,l,e),Fm(t,ve()),t.callbackNode!=null&&t.callbackNode===n?Pm.bind(null,t):null)}function Wm(t,e){if(qs())return null;wm(t,e,!0)}function i1(){y1(function(){(vt&6)!==0?Bu(Lf,a1):Jm()})}function Co(){if(Zn===0){var t=Za;t===0&&(t=Xl,Xl<<=1,(Xl&261888)===0&&(Xl=256)),Zn=t}return Zn}function $m(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Pl(""+t)}function Im(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 l1(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=$m((r[fe]||null).action),d=l.submitter;d&&(e=(e=d[fe]||null)?$m(e.formAction):d.getAttribute("formAction"),e!==null&&(o=e,d=null));var v=new ts("action","action",null,l,r);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var x=d?Im(r,d):new FormData(r);kr(n,{pending:!0,data:x,method:r.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=d?Im(r,d):new FormData(r),kr(n,{pending:!0,data:x,method:r.method,action:o},o,x))},currentTarget:r}]})}}for(var zo=0;zo<cr.length;zo++){var Oo=cr[zo],s1=Oo.toLowerCase(),u1=Oo[0].toUpperCase()+Oo.slice(1);Ye(s1,"on"+u1)}Ye(Oh,"onAnimationEnd"),Ye(wh,"onAnimationIteration"),Ye(Vh,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(ES,"onTransitionRun"),Ye(AS,"onTransitionStart"),Ye(MS,"onTransitionCancel"),Ye(Nh,"onTransitionEnd"),Va("onMouseEnter",["mouseout","mouseover"]),Va("onMouseLeave",["mouseout","mouseover"]),Va("onPointerEnter",["pointerout","pointerover"]),Va("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cl="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(" "),r1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cl));function tp(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var d=l.length-1;0<=d;d--){var v=l[d],x=v.instance,z=v.currentTarget;if(v=v.listener,x!==o&&r.isPropagationStopped())break t;o=v,r.currentTarget=z;try{o(r)}catch(U){as(U)}r.currentTarget=null,o=x}else for(d=0;d<l.length;d++){if(v=l[d],x=v.instance,z=v.currentTarget,v=v.listener,x!==o&&r.isPropagationStopped())break t;o=v,r.currentTarget=z;try{o(r)}catch(U){as(U)}r.currentTarget=null,o=x}}}}function ct(t,e){var n=e[Gu];n===void 0&&(n=e[Gu]=new Set);var l=t+"__bubble";n.has(l)||(ep(e,t,2,!1),n.add(l))}function wo(t,e,n){var l=0;e&&(l|=4),ep(n,t,l,e)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Vo(t){if(!t[Xs]){t[Xs]=!0,Jf.forEach(function(n){n!=="selectionchange"&&(r1.has(n)||wo(n,!1,t),wo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Xs]||(e[Xs]=!0,wo("selectionchange",!1,e))}}function ep(t,e,n,l){switch(Op(e)){case 2:var r=j1;break;case 8:r=B1;break;default:r=ko}n=r.bind(null,e,n,t),r=void 0,!Wu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function No(t,e,n,l,r){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var v=l.stateNode.containerInfo;if(v===r)break;if(d===4)for(d=l.return;d!==null;){var x=d.tag;if((x===3||x===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;v!==null;){if(d=za(v),d===null)return;if(x=d.tag,x===5||x===6||x===26||x===27){l=o=d;continue t}v=v.parentNode}}l=l.return}sh(function(){var z=o,U=Fu(n),q=[];t:{var w=_h.get(t);if(w!==void 0){var _=ts,F=t;switch(t){case"keypress":if($l(n)===0)break t;case"keydown":case"keyup":_=eS;break;case"focusin":F="focus",_=er;break;case"focusout":F="blur",_=er;break;case"beforeblur":case"afterblur":_=er;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":_=oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=X0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=iS;break;case Oh:case wh:case Vh:_=Z0;break;case Nh:_=sS;break;case"scroll":case"scrollend":_=Y0;break;case"wheel":_=rS;break;case"copy":case"cut":case"paste":_=J0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=fh;break;case"toggle":case"beforetoggle":_=cS}var nt=(e&4)!==0,Mt=!nt&&(t==="scroll"||t==="scrollend"),R=nt?w!==null?w+"Capture":null:w;nt=[];for(var T=z,C;T!==null;){var L=T;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||R===null||(L=Vi(T,R),L!=null&&nt.push(fl(T,L,C))),Mt)break;T=T.return}0<nt.length&&(w=new _(w,F,null,n,U),q.push({event:w,listeners:nt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",w&&n!==Ju&&(F=n.relatedTarget||n.fromElement)&&(za(F)||F[Ca]))break t;if((_||w)&&(w=U.window===U?U:(w=U.ownerDocument)?w.defaultView||w.parentWindow:window,_?(F=n.relatedTarget||n.toElement,_=z,F=F?za(F):null,F!==null&&(Mt=h(F),nt=F.tag,F!==Mt||nt!==5&&nt!==27&&nt!==6)&&(F=null)):(_=null,F=z),_!==F)){if(nt=oh,L="onMouseLeave",R="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(nt=fh,L="onPointerLeave",R="onPointerEnter",T="pointer"),Mt=_==null?w:wi(_),C=F==null?w:wi(F),w=new nt(L,T+"leave",_,n,U),w.target=Mt,w.relatedTarget=C,L=null,za(U)===z&&(nt=new nt(R,T+"enter",F,n,U),nt.target=C,nt.relatedTarget=Mt,L=nt),Mt=L,_&&F)e:{for(nt=o1,R=_,T=F,C=0,L=R;L;L=nt(L))C++;L=0;for(var et=T;et;et=nt(et))L++;for(;0<C-L;)R=nt(R),C--;for(;0<L-C;)T=nt(T),L--;for(;C--;){if(R===T||T!==null&&R===T.alternate){nt=R;break e}R=nt(R),T=nt(T)}nt=null}else nt=null;_!==null&&np(q,w,_,nt,!1),F!==null&&Mt!==null&&np(q,Mt,F,nt,!0)}}t:{if(w=z?wi(z):window,_=w.nodeName&&w.nodeName.toLowerCase(),_==="select"||_==="input"&&w.type==="file")var yt=Sh;else if(gh(w))if(bh)yt=bS;else{yt=vS;var I=gS}else _=w.nodeName,!_||_.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&ku(z.elementType)&&(yt=Sh):yt=SS;if(yt&&(yt=yt(t,z))){vh(q,yt,n,U);break t}I&&I(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&Zu(w,"number",w.value)}switch(I=z?wi(z):window,t){case"focusin":(gh(I)||I.contentEditable==="true")&&(La=I,ur=z,qi=null);break;case"focusout":qi=ur=La=null;break;case"mousedown":rr=!0;break;case"contextmenu":case"mouseup":case"dragend":rr=!1,Ch(q,n,U);break;case"selectionchange":if(TS)break;case"keydown":case"keyup":Ch(q,n,U)}var ut;if(ar)t:{switch(t){case"compositionstart":var dt="onCompositionStart";break t;case"compositionend":dt="onCompositionEnd";break t;case"compositionupdate":dt="onCompositionUpdate";break t}dt=void 0}else Ba?ph(t,n)&&(dt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(dt="onCompositionStart");dt&&(hh&&n.locale!=="ko"&&(Ba||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Ba&&(ut=uh()):(On=U,$u="value"in On?On.value:On.textContent,Ba=!0)),I=Ks(z,dt),0<I.length&&(dt=new ch(dt,t,null,n,U),q.push({event:dt,listeners:I}),ut?dt.data=ut:(ut=yh(n),ut!==null&&(dt.data=ut)))),(ut=hS?dS(t,n):mS(t,n))&&(dt=Ks(z,"onBeforeInput"),0<dt.length&&(I=new ch("onBeforeInput","beforeinput",null,n,U),q.push({event:I,listeners:dt}),I.data=ut)),l1(q,t,z,n,U)}tp(q,e)})}function fl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ks(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Vi(t,n),r!=null&&l.unshift(fl(t,r,o)),r=Vi(t,e),r!=null&&l.push(fl(t,r,o))),t.tag===3)return l;t=t.return}return[]}function o1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function np(t,e,n,l,r){for(var o=e._reactName,d=[];n!==null&&n!==l;){var v=n,x=v.alternate,z=v.stateNode;if(v=v.tag,x!==null&&x===l)break;v!==5&&v!==26&&v!==27||z===null||(x=z,r?(z=Vi(n,o),z!=null&&d.unshift(fl(n,z,x))):r||(z=Vi(n,o),z!=null&&d.push(fl(n,z,x)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var c1=/\r\n?/g,f1=/\u0000|\uFFFD/g;function ap(t){return(typeof t=="string"?t:""+t).replace(c1,`
49
+ `).replace(f1,"")}function ip(t,e){return e=ap(e),ap(t)===e}function At(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||_a(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&_a(t,""+l);break;case"className":Jl(t,"class",l);break;case"tabIndex":Jl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Jl(t,n,l);break;case"style":ih(t,l,o);break;case"data":if(e!=="object"){Jl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Pl(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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 o=="function"&&(n==="formAction"?(e!=="input"&&At(t,e,"name",r.name,r,null),At(t,e,"formEncType",r.formEncType,r,null),At(t,e,"formMethod",r.formMethod,r,null),At(t,e,"formTarget",r.formTarget,r,null)):(At(t,e,"encType",r.encType,r,null),At(t,e,"method",r.method,r,null),At(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Pl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&ct("scroll",t);break;case"onScrollEnd":l!=null&&ct("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Pl(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ct("beforetoggle",t),ct("toggle",t),kl(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":kl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=H0.get(n)||n,kl(t,n,l))}}function _o(t,e,n,l,r,o){switch(n){case"style":ih(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof l=="string"?_a(t,l):(typeof l=="number"||typeof l=="bigint")&&_a(t,""+l);break;case"onScroll":l!=null&&ct("scroll",t);break;case"onScrollEnd":l!=null&&ct("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ff.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),o=t[fe]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,r),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):kl(t,n,l)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ct("error",t),ct("load",t);var l=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:At(t,e,o,d,n,null)}}r&&At(t,e,"srcSet",n.srcSet,n,null),l&&At(t,e,"src",n.src,n,null);return;case"input":ct("invalid",t);var v=o=d=r=null,x=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var U=n[l];if(U!=null)switch(l){case"name":r=U;break;case"type":d=U;break;case"checked":x=U;break;case"defaultChecked":z=U;break;case"value":o=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,e));break;default:At(t,e,l,U,n,null)}}th(t,o,v,x,z,d,r,!1);return;case"select":ct("invalid",t),l=d=o=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":l=v;default:At(t,e,r,v,n,null)}e=o,n=d,t.multiple=!!l,e!=null?Na(t,!!l,e,!1):n!=null&&Na(t,!!l,n,!0);return;case"textarea":ct("invalid",t),o=r=l=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":l=v;break;case"defaultValue":r=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:At(t,e,d,v,n,null)}nh(t,l,r,o);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:At(t,e,x,l,n,null)}return;case"dialog":ct("beforetoggle",t),ct("toggle",t),ct("cancel",t),ct("close",t);break;case"iframe":case"object":ct("load",t);break;case"video":case"audio":for(l=0;l<cl.length;l++)ct(cl[l],t);break;case"image":ct("error",t),ct("load",t);break;case"details":ct("toggle",t);break;case"embed":case"source":case"link":ct("error",t),ct("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:At(t,e,z,l,n,null)}return;default:if(ku(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&_o(t,e,U,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&At(t,e,v,l,n,null))}function h1(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,d=null,v=null,x=null,z=null,U=null;for(_ in n){var q=n[_];if(n.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":x=q;default:l.hasOwnProperty(_)||At(t,e,_,null,l,q)}}for(var w in l){var _=l[w];if(q=n[w],l.hasOwnProperty(w)&&(_!=null||q!=null))switch(w){case"type":o=_;break;case"name":r=_;break;case"checked":z=_;break;case"defaultChecked":U=_;break;case"value":d=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:_!==q&&At(t,e,w,_,l,q)}}Qu(t,d,v,x,z,U,o,r);return;case"select":_=d=v=w=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":_=x;default:l.hasOwnProperty(o)||At(t,e,o,null,l,x)}for(r in l)if(o=l[r],x=n[r],l.hasOwnProperty(r)&&(o!=null||x!=null))switch(r){case"value":w=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==x&&At(t,e,r,o,l,x)}e=v,n=d,l=_,w!=null?Na(t,!!n,w,!1):!!l!=!!n&&(e!=null?Na(t,!!n,e,!0):Na(t,!!n,n?[]:"",!1));return;case"textarea":_=w=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(t,e,v,null,l,r)}for(d in l)if(r=l[d],o=n[d],l.hasOwnProperty(d)&&(r!=null||o!=null))switch(d){case"value":w=r;break;case"defaultValue":_=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==o&&At(t,e,d,r,l,o)}eh(t,w,_);return;case"option":for(var F in n)if(w=n[F],n.hasOwnProperty(F)&&w!=null&&!l.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:At(t,e,F,null,l,w)}for(x in l)if(w=l[x],_=n[x],l.hasOwnProperty(x)&&w!==_&&(w!=null||_!=null))switch(x){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:At(t,e,x,w,l,_)}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 nt in n)w=n[nt],n.hasOwnProperty(nt)&&w!=null&&!l.hasOwnProperty(nt)&&At(t,e,nt,null,l,w);for(z in l)if(w=l[z],_=n[z],l.hasOwnProperty(z)&&w!==_&&(w!=null||_!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(u(137,e));break;default:At(t,e,z,w,l,_)}return;default:if(ku(e)){for(var Mt in n)w=n[Mt],n.hasOwnProperty(Mt)&&w!==void 0&&!l.hasOwnProperty(Mt)&&_o(t,e,Mt,void 0,l,w);for(U in l)w=l[U],_=n[U],!l.hasOwnProperty(U)||w===_||w===void 0&&_===void 0||_o(t,e,U,w,l,_);return}}for(var R in n)w=n[R],n.hasOwnProperty(R)&&w!=null&&!l.hasOwnProperty(R)&&At(t,e,R,null,l,w);for(q in l)w=l[q],_=n[q],!l.hasOwnProperty(q)||w===_||w==null&&_==null||At(t,e,q,w,l,_)}function lp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],o=r.transferSize,d=r.initiatorType,v=r.duration;if(o&&v&&lp(d)){for(d=0,v=r.responseEnd,l+=1;l<n.length;l++){var x=n[l],z=x.startTime;if(z>v)break;var U=x.transferSize,q=x.initiatorType;U&&lp(q)&&(x=x.responseEnd,d+=U*(x<v?1:(v-z)/(x-z)))}if(--l,e+=8*(o+d)/(r.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 Uo=null,jo=null;function Qs(t){return t.nodeType===9?t:t.ownerDocument}function sp(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 up(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 Bo(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 Lo=null;function m1(){var t=window.event;return t&&t.type==="popstate"?t===Lo?!1:(Lo=t,!0):(Lo=null,!1)}var rp=typeof setTimeout=="function"?setTimeout:void 0,p1=typeof clearTimeout=="function"?clearTimeout:void 0,op=typeof Promise=="function"?Promise:void 0,y1=typeof queueMicrotask=="function"?queueMicrotask:typeof op<"u"?function(t){return op.resolve(null).then(t).catch(g1)}:rp;function g1(t){setTimeout(function(){throw t})}function kn(t){return t==="head"}function cp(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),fi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hl(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[Oi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&hl(t.ownerDocument.body);n=r}while(n);fi(e)}function fp(t,e){var n=t;t=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Ho(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":Ho(n),Xu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function v1(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Oi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=je(t.nextSibling),t===null)break}return null}function S1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=je(t.nextSibling),t===null))return null;return t}function hp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=je(t.nextSibling),t===null))return null;return t}function qo(t){return t.data==="$?"||t.data==="$~"}function Yo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function b1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function je(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 Go=null;function dp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return je(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function mp(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 pp(t,e,n){switch(e=Qs(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function hl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xu(t)}var Be=new Map,yp=new Set;function Zs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xn=K.d;K.d={f:x1,r:T1,D:E1,C:A1,L:M1,m:R1,X:C1,S:D1,M:z1};function x1(){var t=xn.f(),e=Bs();return t||e}function T1(t){var e=Oa(t);e!==null&&e.tag===5&&e.type==="form"?Nd(e):xn.r(t)}var ri=typeof document>"u"?null:document;function gp(t,e,n){var l=ri;if(l&&typeof e=="string"&&e){var r=ze(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),yp.has(r)||(yp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ee(e,"link",t),Ft(e),l.head.appendChild(e)))}}function E1(t){xn.D(t),gp("dns-prefetch",t,null)}function A1(t,e){xn.C(t,e),gp("preconnect",t,e)}function M1(t,e,n){xn.L(t,e,n);var l=ri;if(l&&t&&e){var r='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+ze(n.imageSizes)+'"]')):r+='[href="'+ze(t)+'"]';var o=r;switch(e){case"style":o=oi(t);break;case"script":o=ci(t)}Be.has(o)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Be.set(o,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(dl(o))||e==="script"&&l.querySelector(ml(o))||(e=l.createElement("link"),ee(e,"link",t),Ft(e),l.head.appendChild(e)))}}function R1(t,e){xn.m(t,e);var n=ri;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+ze(l)+'"][href="'+ze(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ci(t)}if(!Be.has(o)&&(t=S({rel:"modulepreload",href:t},e),Be.set(o,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ml(o)))return}l=n.createElement("link"),ee(l,"link",t),Ft(l),n.head.appendChild(l)}}}function D1(t,e,n){xn.S(t,e,n);var l=ri;if(l&&t){var r=wa(l).hoistableStyles,o=oi(t);e=e||"default";var d=r.get(o);if(!d){var v={loading:0,preload:null};if(d=l.querySelector(dl(o)))v.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Be.get(o))&&Xo(t,n);var x=d=l.createElement("link");Ft(x),ee(x,"link",t),x._p=new Promise(function(z,U){x.onload=z,x.onerror=U}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ks(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:v},r.set(o,d)}}}function C1(t,e){xn.X(t,e);var n=ri;if(n&&t){var l=wa(n).hoistableScripts,r=ci(t),o=l.get(r);o||(o=n.querySelector(ml(r)),o||(t=S({src:t,async:!0},e),(e=Be.get(r))&&Ko(t,e),o=n.createElement("script"),Ft(o),ee(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function z1(t,e){xn.M(t,e);var n=ri;if(n&&t){var l=wa(n).hoistableScripts,r=ci(t),o=l.get(r);o||(o=n.querySelector(ml(r)),o||(t=S({src:t,async:!0,type:"module"},e),(e=Be.get(r))&&Ko(t,e),o=n.createElement("script"),Ft(o),ee(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function vp(t,e,n,l){var r=(r=rt.current)?Zs(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=oi(n.href),n=wa(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=oi(n.href);var o=wa(r).hoistableStyles,d=o.get(t);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,d),(o=r.querySelector(dl(t)))&&!o._p&&(d.instance=o,d.state.loading=5),Be.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},Be.set(t,n),o||O1(r,t,n,d.state))),e&&l===null)throw Error(u(528,""));return d}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ci(n),n=wa(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function oi(t){return'href="'+ze(t)+'"'}function dl(t){return'link[rel="stylesheet"]['+t+"]"}function Sp(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function O1(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ee(e,"link",n),Ft(e),t.head.appendChild(e))}function ci(t){return'[src="'+ze(t)+'"]'}function ml(t){return"script[async]"+t}function bp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+ze(n.href)+'"]');if(l)return e.instance=l,Ft(l),l;var r=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ft(l),ee(l,"style",r),ks(l,n.precedence,t),e.instance=l;case"stylesheet":r=oi(n.href);var o=t.querySelector(dl(r));if(o)return e.state.loading|=4,e.instance=o,Ft(o),o;l=Sp(n),(r=Be.get(r))&&Xo(l,r),o=(t.ownerDocument||t).createElement("link"),Ft(o);var d=o;return d._p=new Promise(function(v,x){d.onload=v,d.onerror=x}),ee(o,"link",l),e.state.loading|=4,ks(o,n.precedence,t),e.instance=o;case"script":return o=ci(n.src),(r=t.querySelector(ml(o)))?(e.instance=r,Ft(r),r):(l=n,(r=Be.get(o))&&(l=S({},n),Ko(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),Ft(r),ee(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,ks(l,n.precedence,t));return e.instance}function ks(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,o=r,d=0;d<l.length;d++){var v=l[d];if(v.dataset.precedence===e)o=v;else if(o!==r)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Xo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ko(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Js=null;function xp(t,e,n){if(Js===null){var l=new Map,r=Js=new Map;r.set(n,l)}else r=Js,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var o=n[r];if(!(o[Oi]||o[Wt]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(e)||"";d=t+d;var v=l.get(d);v?v.push(o):l.set(d,[o])}}return l}function Tp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function w1(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 Ep(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function V1(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=oi(l.href),o=e.querySelector(dl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Fs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Ft(o);return}o=e.ownerDocument||e,l=Sp(l),(r=Be.get(r))&&Xo(l,r),o=o.createElement("link"),Ft(o);var d=o;d._p=new Promise(function(v,x){d.onload=v,d.onerror=x}),ee(o,"link",l),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Fs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Qo=0;function N1(t,e){return t.stylesheets&&t.count===0&&Ws(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ws(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Qo===0&&(Qo=62500*d1());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ws(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Qo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Fs(){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 Ps=null;function Ws(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ps=new Map,e.forEach(_1,t),Ps=null,Fs.call(t))}function _1(t,e){if(!(e.state.loading&4)){var n=Ps.get(t);if(n)var l=n.get(null);else{n=new Map,Ps.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var d=r[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}r=e.instance,d=r.getAttribute("data-precedence"),o=n.get(d)||l,o===l&&n.set(null,r),n.set(d,r),this.count++,l=Fs.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),o?o.parentNode.insertBefore(r,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var pl={$$typeof:B,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function U1(t,e,n,l,r,o,d,v,x){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=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Ap(t,e,n,l,r,o,d,v,x,z,U,q){return t=new U1(t,e,n,d,x,z,U,q,v),e=1,o===!0&&(e|=24),o=Te(3,null,null,e),t.current=o,o.stateNode=t,e=Er(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Dr(o),t}function Mp(t){return t?(t=Ya,t):Ya}function Rp(t,e,n,l,r,o){r=Mp(r),l.context===null?l.context=r:l.pendingContext=r,l=jn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Bn(t,l,e),n!==null&&(ge(n,t,e),ki(n,t,e))}function Dp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Zo(t,e){Dp(t,e),(t=t.alternate)&&Dp(t,e)}function Cp(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&ge(e,t,67108864),Zo(t,67108864)}}function zp(t){if(t.tag===13||t.tag===31){var e=De();e=qu(e);var n=ca(t,e);n!==null&&ge(n,t,e),Zo(t,e)}}var $s=!0;function j1(t,e,n,l){var r=j.T;j.T=null;var o=K.p;try{K.p=2,ko(t,e,n,l)}finally{K.p=o,j.T=r}}function B1(t,e,n,l){var r=j.T;j.T=null;var o=K.p;try{K.p=8,ko(t,e,n,l)}finally{K.p=o,j.T=r}}function ko(t,e,n,l){if($s){var r=Jo(l);if(r===null)No(t,e,l,Is,n),wp(t,l);else if(H1(r,t,e,n,l))l.stopPropagation();else if(wp(t,l),e&4&&-1<L1.indexOf(t)){for(;r!==null;){var o=Oa(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=la(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var x=1<<31-be(d);v.entanglements[1]|=x,d&=~x}We(o),(vt&6)===0&&(Us=ve()+500,ol(0))}}break;case 31:case 13:v=ca(o,2),v!==null&&ge(v,o,2),Bs(),Zo(o,2)}if(o=Jo(l),o===null&&No(t,e,l,Is,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else No(t,e,l,null,n)}}function Jo(t){return t=Fu(t),Fo(t)}var Is=null;function Fo(t){if(Is=null,t=za(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(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 Is=t,null}function Op(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(E0()){case Lf:return 2;case Hf:return 8;case Gl:case A0:return 32;case qf:return 268435456;default:return 32}default:return 32}}var Po=!1,Jn=null,Fn=null,Pn=null,yl=new Map,gl=new Map,Wn=[],L1="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 wp(t,e){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":yl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gl.delete(e.pointerId)}}function vl(t,e,n,l,r,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[r]},e!==null&&(e=Oa(e),e!==null&&Cp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function H1(t,e,n,l,r){switch(e){case"focusin":return Jn=vl(Jn,t,e,n,l,r),!0;case"dragenter":return Fn=vl(Fn,t,e,n,l,r),!0;case"mouseover":return Pn=vl(Pn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return yl.set(o,vl(yl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,gl.set(o,vl(gl.get(o)||null,t,e,n,l,r)),!0}return!1}function Vp(t){var e=za(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Zf(t.priority,function(){zp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Zf(t.priority,function(){zp(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 tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Jo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Ju=l,n.target.dispatchEvent(l),Ju=null}else return e=Oa(n),e!==null&&Cp(e),t.blockedOn=n,!1;e.shift()}return!0}function Np(t,e,n){tu(t)&&n.delete(e)}function q1(){Po=!1,Jn!==null&&tu(Jn)&&(Jn=null),Fn!==null&&tu(Fn)&&(Fn=null),Pn!==null&&tu(Pn)&&(Pn=null),yl.forEach(Np),gl.forEach(Np)}function eu(t,e){t.blockedOn===e&&(t.blockedOn=null,Po||(Po=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,q1)))}var nu=null;function _p(t){nu!==t&&(nu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){nu===t&&(nu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Fo(l||n)===null)continue;break}var o=Oa(n);o!==null&&(t.splice(e,3),e-=3,kr(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function fi(t){function e(x){return eu(x,t)}Jn!==null&&eu(Jn,t),Fn!==null&&eu(Fn,t),Pn!==null&&eu(Pn,t),yl.forEach(e),gl.forEach(e);for(var n=0;n<Wn.length;n++){var l=Wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Vp(n),n.blockedOn===null&&Wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],o=n[l+1],d=r[fe]||null;if(typeof o=="function")d||_p(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(r=o,d=o[fe]||null)v=d.formAction;else if(Fo(r)!==null)continue}else v=d.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),_p(n)}}}function Up(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Wo(t){this._internalRoot=t}au.prototype.render=Wo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=De();Rp(n,l,t,e,null,null)},au.prototype.unmount=Wo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Rp(t.current,2,null,t,null,null),Bs(),e[Ca]=null}};function au(t){this._internalRoot=t}au.prototype.unstable_scheduleHydration=function(t){if(t){var e=Qf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Wn.length&&e!==0&&e<Wn[n].priority;n++);Wn.splice(n,0,t),n===0&&Vp(t)}};var jp=i.version;if(jp!=="19.2.4")throw Error(u(527,jp,"19.2.4"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=p(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var Y1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{Di=iu.inject(Y1),Se=iu}catch{}}return bl.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Xd,o=Kd,d=Qd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=Ap(t,1,!1,null,null,n,l,null,r,o,d,Up),t[Ca]=e.current,Vo(t),new Wo(e)},bl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Xd,d=Kd,v=Qd,x=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),e=Ap(t,1,!0,e,n??null,l,r,x,o,d,v,Up),e.context=Mp(null),n=e.current,l=De(),l=qu(l),r=jn(l),r.callback=null,Bn(n,r,l),n=l,e.current.lanes=n,zi(e,n),We(e),t[Ca]=e.current,Vo(t),new au(e)},bl.version="19.2.4",bl}var Zp;function W1(){if(Zp)return tc.exports;Zp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),tc.exports=P1(),tc.exports}var $1=W1();const $c=M.createContext({});function Ic(a){const i=M.useRef(null);return i.current===null&&(i.current=a()),i.current}const yg=typeof window<"u",gg=yg?M.useLayoutEffect:M.useEffect,Du=M.createContext(null);function tf(a,i){a.indexOf(i)===-1&&a.push(i)}function vu(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const en=(a,i,s)=>s>i?i:s<a?a:s;let ef=()=>{};const An={},vg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Sg(a){return typeof a=="object"&&a!==null}const bg=a=>/^0[^.\s]+$/u.test(a);function xg(a){let i;return()=>(i===void 0&&(i=a()),i)}const He=a=>a,I1=(a,i)=>s=>i(a(s)),_l=(...a)=>a.reduce(I1),Cl=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class nf{constructor(){this.subscriptions=[]}add(i){return tf(this.subscriptions,i),()=>vu(this.subscriptions,i)}notify(i,s,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,u);else for(let h=0;h<c;h++){const f=this.subscriptions[h];f&&f(i,s,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ze=a=>a*1e3,Le=a=>a/1e3;function Tg(a,i){return i?a*(1e3/i):0}const Eg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,tb=1e-7,eb=12;function nb(a,i,s,u,c){let h,f,m=0;do f=i+(s-i)/2,h=Eg(f,u,c)-a,h>0?s=f:i=f;while(Math.abs(h)>tb&&++m<eb);return f}function Ul(a,i,s,u){if(a===i&&s===u)return He;const c=h=>nb(h,0,1,a,s);return h=>h===0||h===1?h:Eg(c(h),i,u)}const Ag=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Mg=a=>i=>1-a(1-i),Rg=Ul(.33,1.53,.69,.99),af=Mg(Rg),Dg=Ag(af),Cg=a=>(a*=2)<1?.5*af(a):.5*(2-Math.pow(2,-10*(a-1))),lf=a=>1-Math.sin(Math.acos(a)),zg=Mg(lf),Og=Ag(lf),ab=Ul(.42,0,1,1),ib=Ul(0,0,.58,1),wg=Ul(.42,0,.58,1),lb=a=>Array.isArray(a)&&typeof a[0]!="number",Vg=a=>Array.isArray(a)&&typeof a[0]=="number",sb={linear:He,easeIn:ab,easeInOut:wg,easeOut:ib,circIn:lf,circInOut:Og,circOut:zg,backIn:af,backInOut:Dg,backOut:Rg,anticipate:Cg},ub=a=>typeof a=="string",kp=a=>{if(Vg(a)){ef(a.length===4);const[i,s,u,c]=a;return Ul(i,s,u,c)}else if(ub(a))return sb[a];return a},lu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function rb(a,i){let s=new Set,u=new Set,c=!1,h=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(g){f.has(g)&&(p.schedule(g),a()),g(m)}const p={schedule:(g,S=!1,b=!1)=>{const D=b&&c?s:u;return S&&f.add(g),D.has(g)||D.add(g),g},cancel:g=>{u.delete(g),f.delete(g)},process:g=>{if(m=g,c){h=!0;return}c=!0,[s,u]=[u,s],s.forEach(y),s.clear(),c=!1,h&&(h=!1,p.process(g))}};return p}const ob=40;function Ng(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>s=!0,f=lu.reduce((B,Q)=>(B[Q]=rb(h),B),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:S,preRender:b,render:A,postRender:D}=f,V=()=>{const B=An.useManualTiming?c.timestamp:performance.now();s=!1,An.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(B-c.timestamp,ob),1)),c.timestamp=B,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),g.process(c),S.process(c),b.process(c),A.process(c),D.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(V))},N=()=>{s=!0,u=!0,c.isProcessing||a(V)};return{schedule:lu.reduce((B,Q)=>{const X=f[Q];return B[Q]=(tt,J=!1,k=!1)=>(s||N(),X.schedule(tt,J,k)),B},{}),cancel:B=>{for(let Q=0;Q<lu.length;Q++)f[lu[Q]].cancel(B)},state:c,steps:f}}const{schedule:Dt,cancel:na,state:ne,steps:ic}=Ng(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let cu;function cb(){cu=void 0}const re={now:()=>(cu===void 0&&re.set(ne.isProcessing||An.useManualTiming?ne.timestamp:performance.now()),cu),set:a=>{cu=a,queueMicrotask(cb)}},_g=a=>i=>typeof i=="string"&&i.startsWith(a),Ug=_g("--"),fb=_g("var(--"),sf=a=>fb(a)?hb.test(a.split("/*")[0].trim()):!1,hb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const xi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},zl={...xi,transform:a=>en(0,1,a)},su={...xi,default:1},Al=a=>Math.round(a*1e5)/1e5,uf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function db(a){return a==null}const mb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rf=(a,i)=>s=>!!(typeof s=="string"&&mb.test(s)&&s.startsWith(a)||i&&!db(s)&&Object.prototype.hasOwnProperty.call(s,i)),jg=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,h,f,m]=u.match(uf);return{[a]:parseFloat(c),[i]:parseFloat(h),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},pb=a=>en(0,255,a),lc={...xi,transform:a=>Math.round(pb(a))},Ma={test:rf("rgb","red"),parse:jg("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+lc.transform(a)+", "+lc.transform(i)+", "+lc.transform(s)+", "+Al(zl.transform(u))+")"};function yb(a){let i="",s="",u="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,u+=u,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Ac={test:rf("#"),parse:yb,transform:Ma.transform},jl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),In=jl("deg"),Ie=jl("%"),P=jl("px"),gb=jl("vh"),vb=jl("vw"),Fp={...Ie,parse:a=>Ie.parse(a)/100,transform:a=>Ie.transform(a*100)},di={test:rf("hsl","hue"),parse:jg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+Ie.transform(Al(i))+", "+Ie.transform(Al(s))+", "+Al(zl.transform(u))+")"},Zt={test:a=>Ma.test(a)||Ac.test(a)||di.test(a),parse:a=>Ma.test(a)?Ma.parse(a):di.test(a)?di.parse(a):Ac.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ma.transform(a):di.transform(a),getAnimatableNone:a=>{const i=Zt.parse(a);return i.alpha=0,Zt.transform(i)}},Sb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(uf))==null?void 0:i.length)||0)+(((s=a.match(Sb))==null?void 0:s.length)||0)>0}const Bg="number",Lg="color",xb="var",Tb="var(",Pp="${}",Eb=/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 Ol(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let h=0;const m=i.replace(Eb,y=>(Zt.test(y)?(u.color.push(h),c.push(Lg),s.push(Zt.parse(y))):y.startsWith(Tb)?(u.var.push(h),c.push(xb),s.push(y)):(u.number.push(h),c.push(Bg),s.push(parseFloat(y))),++h,Pp)).split(Pp);return{values:s,split:m,indexes:u,types:c}}function Hg(a){return Ol(a).values}function qg(a){const{split:i,types:s}=Ol(a),u=i.length;return c=>{let h="";for(let f=0;f<u;f++)if(h+=i[f],c[f]!==void 0){const m=s[f];m===Bg?h+=Al(c[f]):m===Lg?h+=Zt.transform(c[f]):h+=c[f]}return h}}const Ab=a=>typeof a=="number"?0:Zt.test(a)?Zt.getAnimatableNone(a):a;function Mb(a){const i=Hg(a);return qg(a)(i.map(Ab))}const ke={test:bb,parse:Hg,createTransformer:qg,getAnimatableNone:Mb};function sc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function Rb({hue:a,saturation:i,lightness:s,alpha:u}){a/=360,i/=100,s/=100;let c=0,h=0,f=0;if(!i)c=h=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=sc(y,m,a+1/3),h=sc(y,m,a),f=sc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:u}}function Su(a,i){return s=>s>0?i:a}const Nt=(a,i,s)=>a+(i-a)*s,uc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},Db=[Ac,Ma,di],Cb=a=>Db.find(i=>i.test(a));function Wp(a){const i=Cb(a);if(!i)return!1;let s=i.parse(a);return i===di&&(s=Rb(s)),s}const $p=(a,i)=>{const s=Wp(a),u=Wp(i);if(!s||!u)return Su(a,i);const c={...s};return h=>(c.red=uc(s.red,u.red,h),c.green=uc(s.green,u.green,h),c.blue=uc(s.blue,u.blue,h),c.alpha=Nt(s.alpha,u.alpha,h),Ma.transform(c))},Mc=new Set(["none","hidden"]);function zb(a,i){return Mc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function Ob(a,i){return s=>Nt(a,i,s)}function of(a){return typeof a=="number"?Ob:typeof a=="string"?sf(a)?Su:Zt.test(a)?$p:Nb:Array.isArray(a)?Yg:typeof a=="object"?Zt.test(a)?$p:wb:Su}function Yg(a,i){const s=[...a],u=s.length,c=a.map((h,f)=>of(h)(h,i[f]));return h=>{for(let f=0;f<u;f++)s[f]=c[f](h);return s}}function wb(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=of(a[c])(a[c],i[c]));return c=>{for(const h in u)s[h]=u[h](c);return s}}function Vb(a,i){const s=[],u={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const h=i.types[c],f=a.indexes[h][u[h]],m=a.values[f]??0;s[c]=m,u[h]++}return s}const Nb=(a,i)=>{const s=ke.createTransformer(i),u=Ol(a),c=Ol(i);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Mc.has(a)&&!c.values.length||Mc.has(i)&&!u.values.length?zb(a,i):_l(Yg(Vb(u,c),c.values),s):Su(a,i)};function Gg(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Nt(a,i,s):of(a)(a,i)}const _b=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>Dt.update(i,s),stop:()=>na(i),now:()=>ne.isProcessing?ne.timestamp:re.now()}},Xg=(a,i,s=10)=>{let u="";const c=Math.max(Math.round(i/s),2);for(let h=0;h<c;h++)u+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},bu=2e4;function cf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<bu;)i+=s,u=a.next(i);return i>=bu?1/0:i}function Ub(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(cf(u),bu);return{type:"keyframes",ease:h=>u.next(c*h).value/i,duration:Le(c)}}const jb=5;function Kg(a,i,s){const u=Math.max(i-jb,0);return Tg(s-a(u),i-u)}const Lt={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},rc=.001;function Bb({duration:a=Lt.duration,bounce:i=Lt.bounce,velocity:s=Lt.velocity,mass:u=Lt.mass}){let c,h,f=1-i;f=en(Lt.minDamping,Lt.maxDamping,f),a=en(Lt.minDuration,Lt.maxDuration,Le(a)),f<1?(c=p=>{const g=p*f,S=g*a,b=g-s,A=Rc(p,f),D=Math.exp(-S);return rc-b/A*D},h=p=>{const S=p*f*a,b=S*s+s,A=Math.pow(f,2)*Math.pow(p,2)*a,D=Math.exp(-S),V=Rc(Math.pow(p,2),f);return(-c(p)+rc>0?-1:1)*((b-A)*D)/V}):(c=p=>{const g=Math.exp(-p*a),S=(p-s)*a+1;return-rc+g*S},h=p=>{const g=Math.exp(-p*a),S=(s-p)*(a*a);return g*S});const m=5/a,y=Hb(c,h,m);if(a=Ze(a),isNaN(y))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const Lb=12;function Hb(a,i,s){let u=s;for(let c=1;c<Lb;c++)u=u-a(u)/i(u);return u}function Rc(a,i){return a*Math.sqrt(1-i*i)}const qb=["duration","bounce"],Yb=["stiffness","damping","mass"];function Ip(a,i){return i.some(s=>a[s]!==void 0)}function Gb(a){let i={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!Ip(a,Yb)&&Ip(a,qb))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,u=2*Math.PI/(s*1.2),c=u*u,h=2*en(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Lt.mass,stiffness:c,damping:h}}else{const s=Bb({...a,velocity:0});i={...i,...s,mass:Lt.mass},i.isResolvedFromDuration=!0}return i}function xu(a=Lt.visualDuration,i=Lt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:u,restDelta:c}=s;const h=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:h},{stiffness:y,damping:p,mass:g,duration:S,velocity:b,isResolvedFromDuration:A}=Gb({...s,velocity:-Le(s.velocity||0)}),D=b||0,V=p/(2*Math.sqrt(y*g)),N=f-h,O=Le(Math.sqrt(y/g)),G=Math.abs(N)<5;u||(u=G?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=G?Lt.restDelta.granular:Lt.restDelta.default);let B;if(V<1){const X=Rc(O,V);B=tt=>{const J=Math.exp(-V*O*tt);return f-J*((D+V*O*N)/X*Math.sin(X*tt)+N*Math.cos(X*tt))}}else if(V===1)B=X=>f-Math.exp(-O*X)*(N+(D+O*N)*X);else{const X=O*Math.sqrt(V*V-1);B=tt=>{const J=Math.exp(-V*O*tt),k=Math.min(X*tt,300);return f-J*((D+V*O*N)*Math.sinh(k)+X*N*Math.cosh(k))/X}}const Q={calculatedDuration:A&&S||null,next:X=>{const tt=B(X);if(A)m.done=X>=S;else{let J=X===0?D:0;V<1&&(J=X===0?Ze(D):Kg(B,X,tt));const k=Math.abs(J)<=u,at=Math.abs(f-tt)<=c;m.done=k&&at}return m.value=m.done?f:tt,m},toString:()=>{const X=Math.min(cf(Q),bu),tt=Xg(J=>Q.next(X*J).value,X,30);return X+"ms "+tt},toTransition:()=>{}};return Q}xu.applyToOptions=a=>{const i=Ub(a,100,xu);return a.ease=i.ease,a.duration=Ze(i.duration),a.type="keyframes",a};function Dc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:g}){const S=a[0],b={done:!1,value:S},A=k=>m!==void 0&&k<m||y!==void 0&&k>y,D=k=>m===void 0?y:y===void 0||Math.abs(m-k)<Math.abs(y-k)?m:y;let V=s*i;const N=S+V,O=f===void 0?N:f(N);O!==N&&(V=O-S);const G=k=>-V*Math.exp(-k/u),B=k=>O+G(k),Q=k=>{const at=G(k),St=B(k);b.done=Math.abs(at)<=p,b.value=b.done?O:St};let X,tt;const J=k=>{A(b.value)&&(X=k,tt=xu({keyframes:[b.value,D(b.value)],velocity:Kg(B,k,b.value),damping:c,stiffness:h,restDelta:p,restSpeed:g}))};return J(0),{calculatedDuration:null,next:k=>{let at=!1;return!tt&&X===void 0&&(at=!0,Q(k),J(k)),X!==void 0&&k>=X?tt.next(k-X):(!at&&Q(k),b)}}}function Xb(a,i,s){const u=[],c=s||An.mix||Gg,h=a.length-1;for(let f=0;f<h;f++){let m=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||He:i;m=_l(y,m)}u.push(m)}return u}function Kb(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const h=a.length;if(ef(h===i.length),h===1)return()=>i[0];if(h===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=Xb(i,u,c),y=m.length,p=g=>{if(f&&g<a[0])return i[0];let S=0;if(y>1)for(;S<a.length-2&&!(g<a[S+1]);S++);const b=Cl(a[S],a[S+1],g);return m[S](b)};return s?g=>p(en(a[0],a[h-1],g)):p}function Qb(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=Cl(0,i,u);a.push(Nt(s,1,c))}}function Zb(a){const i=[0];return Qb(i,a.length-1),i}function kb(a,i){return a.map(s=>s*i)}function Jb(a,i){return a.map(()=>i||wg).splice(0,a.length-1)}function Ml({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=lb(u)?u.map(kp):kp(u),h={done:!1,value:i[0]},f=kb(s&&s.length===i.length?s:Zb(i),a),m=Kb(f,i,{ease:Array.isArray(c)?c:Jb(i,c)});return{calculatedDuration:a,next:y=>(h.value=m(y),h.done=y>=a,h)}}const Fb=a=>a!==null;function ff(a,{repeat:i,repeatType:s="loop"},u,c=1){const h=a.filter(Fb),m=c<0||i&&s!=="loop"&&i%2===1?0:h.length-1;return!m||u===void 0?h[m]:u}const Pb={decay:Dc,inertia:Dc,tween:Ml,keyframes:Ml,spring:xu};function Qg(a){typeof a.type=="string"&&(a.type=Pb[a.type])}class hf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const Wb=a=>a/100;class df extends hf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var u,c;const{motionValue:s}=this.options;s&&s.updatedAt!==re.now()&&this.tick(re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(u=this.options).onStop)==null||c.call(u))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Qg(i);const{type:s=Ml,repeat:u=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=i;let{keyframes:m}=i;const y=s||Ml;y!==Ml&&typeof m[0]!="number"&&(this.mixKeyframes=_l(Wb,Gg(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});h==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=cf(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:u,totalDuration:c,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:g,repeat:S,repeatType:b,repeatDelay:A,type:D,onUpdate:V,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const O=this.currentTime-p*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?O<0:O>c;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let B=this.currentTime,Q=u;if(S){const k=Math.min(this.currentTime,c)/m;let at=Math.floor(k),St=k%1;!St&&k>=1&&(St=1),St===1&&at--,at=Math.min(at,S+1),!!(at%2)&&(b==="reverse"?(St=1-St,A&&(St-=A/m)):b==="mirror"&&(Q=f)),B=en(0,1,St)*m}const X=G?{done:!1,value:g[0]}:Q.next(B);h&&(X.value=h(X.value));let{done:tt}=X;!G&&y!==null&&(tt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&tt);return J&&D!==Dc&&(X.value=ff(g,this.options,N,this.speed)),V&&V(X.value),J&&this.finish(),X}then(i,s){return this.finished.then(i,s)}get duration(){return Le(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Le(i)}get time(){return Le(this.currentTime)}set time(i){var s;i=Ze(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(re.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Le(this.currentTime))}play(){var c,h;if(this.isStopped)return;const{driver:i=_b,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(h=(c=this.options).onPlay)==null||h.call(c);const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=s??u),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(re.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function $b(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ra=a=>a*180/Math.PI,Cc=a=>{const i=Ra(Math.atan2(a[1],a[0]));return zc(i)},Ib={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Cc,rotateZ:Cc,skewX:a=>Ra(Math.atan(a[1])),skewY:a=>Ra(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},zc=a=>(a=a%360,a<0&&(a+=360),a),ty=Cc,ey=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ny=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),tx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ny,scale:a=>(ey(a)+ny(a))/2,rotateX:a=>zc(Ra(Math.atan2(a[6],a[5]))),rotateY:a=>zc(Ra(Math.atan2(-a[2],a[0]))),rotateZ:ty,rotate:ty,skewX:a=>Ra(Math.atan(a[4])),skewY:a=>Ra(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Oc(a){return a.includes("scale")?1:0}function wc(a,i){if(!a||a==="none")return Oc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=tx,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Ib,c=m}if(!c)return Oc(i);const h=u[i],f=c[1].split(",").map(nx);return typeof h=="function"?h(f):f[h]}const ex=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return wc(s,i)};function nx(a){return parseFloat(a.trim())}const Ti=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ei=new Set(Ti),ay=a=>a===xi||a===P,ax=new Set(["x","y","z"]),ix=Ti.filter(a=>!ax.has(a));function lx(a){const i=[];return ix.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const ea={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>wc(i,"x"),y:(a,{transform:i})=>wc(i,"y")};ea.translateX=ea.x;ea.translateY=ea.y;const Da=new Set;let Vc=!1,Nc=!1,_c=!1;function Zg(){if(Nc){const a=Array.from(Da).filter(u=>u.needsMeasurement),i=new Set(a.map(u=>u.element)),s=new Map;i.forEach(u=>{const c=lx(u);c.length&&(s.set(u,c),u.render())}),a.forEach(u=>u.measureInitialState()),i.forEach(u=>{u.render();const c=s.get(u);c&&c.forEach(([h,f])=>{var m;(m=u.getValue(h))==null||m.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}Nc=!1,Vc=!1,Da.forEach(a=>a.complete(_c)),Da.clear()}function kg(){Da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Nc=!0)})}function sx(){_c=!0,kg(),Zg(),_c=!1}class mf{constructor(i,s,u,c,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=u,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Da.add(this),Vc||(Vc=!0,Dt.read(kg),Dt.resolveKeyframes(Zg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:u,motionValue:c}=this;if(i[0]===null){const h=c==null?void 0:c.get(),f=i[i.length-1];if(h!==void 0)i[0]=h;else if(u&&s){const m=u.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&h===void 0&&c.set(i[0])}$b(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Da.delete(this)}cancel(){this.state==="scheduled"&&(Da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ux=a=>a.startsWith("--");function rx(a,i,s){ux(i)?a.style.setProperty(i,s):a.style[i]=s}const ox={};function Jg(a,i){const s=xg(a);return()=>ox[i]??s()}const cx=Jg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Fg=Jg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),El=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,iy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:El([0,.65,.55,1]),circOut:El([.55,0,1,.45]),backIn:El([.31,.01,.66,-.59]),backOut:El([.33,1.53,.69,.99])};function Pg(a,i){if(a)return typeof a=="function"?Fg()?Xg(a,i):"ease-out":Vg(a)?El(a):Array.isArray(a)?a.map(s=>Pg(s,i)||iy.easeOut):iy[a]}function fx(a,i,s,{delay:u=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const g={[i]:s};y&&(g.offset=y);const S=Pg(m,c);Array.isArray(S)&&(g.easing=S);const b={delay:u,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(g,b)}function Wg(a){return typeof a=="function"&&"applyToOptions"in a}function hx({type:a,...i}){return Wg(a)&&Fg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class $g extends hf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:u,keyframes:c,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=i,ef(typeof i.type!="string");const p=hx(i);this.animation=fx(s,u,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const g=ff(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(g):rx(s,u,g),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,u,c;const i=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((c=(u=this.animation).commitStyles)==null||c.call(u))}get duration(){var s,u;const i=((u=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:u.call(s).duration)||0;return Le(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Le(i)}get time(){return Le(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ze(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){var u;return this.allowFlatten&&((u=this.animation.effect)==null||u.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&cx()?(this.animation.timeline=i,He):s(this)}}const Ig={anticipate:Cg,backInOut:Dg,circInOut:Og};function dx(a){return a in Ig}function mx(a){typeof a.ease=="string"&&dx(a.ease)&&(a.ease=Ig[a.ease])}const oc=10;class px extends $g{constructor(i){mx(i),Qg(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:u,onComplete:c,element:h,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new df({...f,autoplay:!1}),y=Math.max(oc,re.now()-this.startTime),p=en(0,oc,y-oc);s.setWithVelocity(m.sample(Math.max(0,y-p)).value,m.sample(y).value,p),m.stop()}}const ly=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ke.test(a)||a==="0")&&!a.startsWith("url("));function yx(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function gx(a,i,s,u){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const h=a[a.length-1],f=ly(c,i),m=ly(h,i);return!f||!m?!1:yx(a)||(s==="spring"||Wg(s))&&u}function Uc(a){a.duration=0,a.type="keyframes"}const vx=new Set(["opacity","clipPath","filter","transform"]),Sx=xg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bx(a){var g;const{motionValue:i,name:s,repeatDelay:u,repeatType:c,damping:h,type:f}=a;if(!(((g=i==null?void 0:i.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return Sx()&&s&&vx.has(s)&&(s!=="transform"||!p)&&!y&&!u&&c!=="mirror"&&h!==0&&f!=="inertia"}const xx=40;class Tx extends hf{constructor({autoplay:i=!0,delay:s=0,type:u="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:g,...S}){var D;super(),this.stop=()=>{var V,N;this._animation&&(this._animation.stop(),(V=this.stopTimeline)==null||V.call(this)),(N=this.keyframeResolver)==null||N.cancel()},this.createdAt=re.now();const b={autoplay:i,delay:s,type:u,repeat:c,repeatDelay:h,repeatType:f,name:y,motionValue:p,element:g,...S},A=(g==null?void 0:g.KeyframeResolver)||mf;this.keyframeResolver=new A(m,(V,N,O)=>this.onKeyframesResolved(V,N,b,!O),y,p,g),(D=this.keyframeResolver)==null||D.scheduleResolve()}onKeyframesResolved(i,s,u,c){var N,O;this.keyframeResolver=void 0;const{name:h,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:g}=u;this.resolvedAt=re.now(),gx(i,h,f,m)||((An.instantAnimations||!y)&&(g==null||g(ff(i,u,s))),i[0]=i[i.length-1],Uc(u),u.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>xx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},A=!p&&bx(b),D=(O=(N=b.motionValue)==null?void 0:N.owner)==null?void 0:O.current,V=A?new px({...b,element:D}):new df(b);V.finished.then(()=>{this.notifyFinished()}).catch(He),this.pendingTimeline&&(this.stopTimeline=V.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=V}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),sx()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}function tv(a,i,s,u=0,c=1){const h=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(i),f=a.size,m=(f-1)*u;return typeof s=="function"?s(h,f):c===1?h*u:m-h*u}const Ex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ax(a){const i=Ex.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function ev(a,i,s=1){const[u,c]=Ax(a);if(!u)return;const h=window.getComputedStyle(i).getPropertyValue(u);if(h){const f=h.trim();return vg(f)?parseFloat(f):f}return sf(c)?ev(c,i,s+1):c}const Mx={type:"spring",stiffness:500,damping:25,restSpeed:10},Rx=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Dx={type:"keyframes",duration:.8},Cx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zx=(a,{keyframes:i})=>i.length>2?Dx:Ei.has(a)?a.startsWith("scale")?Rx(i[1]):Mx:Cx,Ox=a=>a!==null;function wx(a,{repeat:i,repeatType:s="loop"},u){const c=a.filter(Ox),h=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[h]}function nv(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function pf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?nv(s,a):s}function Vx({when:a,delay:i,delayChildren:s,staggerChildren:u,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:m,from:y,elapsed:p,...g}){return!!Object.keys(g).length}const yf=(a,i,s,u={},c,h)=>f=>{const m=pf(u,a)||{},y=m.delay||u.delay||0;let{elapsed:p=0}=u;p=p-Ze(y);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:b=>{i.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:h?void 0:c};Vx(m)||Object.assign(g,zx(a,g)),g.duration&&(g.duration=Ze(g.duration)),g.repeatDelay&&(g.repeatDelay=Ze(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let S=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Uc(g),g.delay===0&&(S=!0)),(An.instantAnimations||An.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(S=!0,Uc(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,S&&!h&&i.get()!==void 0){const b=wx(g.keyframes,m);if(b!==void 0){Dt.update(()=>{g.onUpdate(b),g.onComplete()});return}}return m.isSync?new df(g):new Tx(g)};function sy(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function gf(a,i,s,u){if(typeof i=="function"){const[c,h]=sy(u);i=i(s!==void 0?s:a.custom,c,h)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,h]=sy(u);i=i(s!==void 0?s:a.custom,c,h)}return i}function vi(a,i,s){const u=a.getProps();return gf(u,i,s!==void 0?s:u.custom,a)}const av=new Set(["width","height","top","left","right","bottom",...Ti]),uy=30,Nx=a=>!isNaN(parseFloat(a));class _x{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var h;const c=re.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&((h=this.events.change)==null||h.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=re.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Nx(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new nf);const u=this.events[i].add(s);return i==="change"?()=>{u(),Dt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,u){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-u}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>uy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,uy);return Tg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bi(a,i){return new _x(a,i)}const jc=a=>Array.isArray(a);function Ux(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,bi(s))}function jx(a){return jc(a)?a[a.length-1]||0:a}function Bx(a,i){const s=vi(a,i);let{transitionEnd:u={},transition:c={},...h}=s||{};h={...h,...u};for(const f in h){const m=jx(h[f]);Ux(a,f,m)}}const ie=a=>!!(a&&a.getVelocity);function Lx(a){return!!(ie(a)&&a.add)}function Bc(a,i){const s=a.getValue("willChange");if(Lx(s))return s.add(i);if(!s&&An.WillChange){const u=new An.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function vf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const Hx="framerAppearId",iv="data-"+vf(Hx);function lv(a){return a.props[iv]}function qx({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function sv(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:h,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();h=h?nv(h,y):y;const p=h==null?void 0:h.reduceMotion;u&&(h=u);const g=[],S=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const A=a.getValue(b,a.latestValues[b]??null),D=m[b];if(D===void 0||S&&qx(S,b))continue;const V={delay:s,...pf(h||{},b)},N=A.get();if(N!==void 0&&!A.isAnimating&&!Array.isArray(D)&&D===N&&!V.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const Q=lv(a);if(Q){const X=window.MotionHandoffAnimation(Q,b,Dt);X!==null&&(V.startTime=X,O=!0)}}Bc(a,b);const G=p??a.shouldReduceMotion;A.start(yf(b,A,D,G&&av.has(b)?{type:!1}:V,a,O));const B=A.animation;B&&g.push(B)}if(f){const b=()=>Dt.update(()=>{f&&Bx(a,f)});g.length?Promise.all(g).then(b):b()}return g}function Lc(a,i,s={}){var y;const u=vi(a,i,s.type==="exit"?(y=a.presenceContext)==null?void 0:y.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(c=s.transitionOverride);const h=u?()=>Promise.all(sv(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:S,staggerDirection:b}=c;return Yx(a,i,p,g,S,b,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,g]=m==="beforeChildren"?[h,f]:[f,h];return p().then(()=>g())}else return Promise.all([h(),f(s.delay)])}function Yx(a,i,s=0,u=0,c=0,h=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Lc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+tv(a.variantChildren,y,u,c,h)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function Gx(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(h=>Lc(a,h,s));u=Promise.all(c)}else if(typeof i=="string")u=Lc(a,i,s);else{const c=typeof i=="function"?vi(a,i,s.custom):i;u=Promise.all(sv(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const Xx={test:a=>a==="auto",parse:a=>a},uv=a=>i=>i.test(a),rv=[xi,P,Ie,In,vb,gb,Xx],ry=a=>rv.find(uv(a));function Kx(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||bg(a):!0}const Qx=new Set(["brightness","contrast","saturate","opacity"]);function Zx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(uf)||[];if(!u)return a;const c=s.replace(u,"");let h=Qx.has(i)?1:0;return u!==s&&(h*=100),i+"("+h+c+")"}const kx=/\b([a-z-]*)\(.*?\)/gu,Hc={...ke,getAnimatableNone:a=>{const i=a.match(kx);return i?i.map(Zx).join(" "):a}},qc={...ke,getAnimatableNone:a=>{const i=ke.parse(a);return ke.createTransformer(a)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},oy={...xi,transform:Math.round},Jx={rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:su,scaleX:su,scaleY:su,scaleZ:su,skew:In,skewX:In,skewY:In,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:zl,originX:Fp,originY:Fp,originZ:P},Sf={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...Jx,zIndex:oy,fillOpacity:zl,strokeOpacity:zl,numOctaves:oy},Fx={...Sf,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:Hc,WebkitFilter:Hc,mask:qc,WebkitMask:qc},ov=a=>Fx[a],Px=new Set([Hc,qc]);function cv(a,i){let s=ov(a);return Px.has(s)||(s=ke),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const Wx=new Set(["auto","none","0"]);function $x(a,i,s){let u=0,c;for(;u<a.length&&!c;){const h=a[u];typeof h=="string"&&!Wx.has(h)&&Ol(h).values.length&&(c=a[u]),u++}if(c&&s)for(const h of i)a[h]=cv(s,c)}class Ix extends mf{constructor(i,s,u,c,h){super(i,s,u,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:u}=this;if(!s||!s.current)return;super.readKeyframes();for(let g=0;g<i.length;g++){let S=i[g];if(typeof S=="string"&&(S=S.trim(),sf(S))){const b=ev(S,s.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!av.has(u)||i.length!==2)return;const[c,h]=i,f=ry(c),m=ry(h),y=Jp(c),p=Jp(h);if(y!==p&&ea[u]){this.needsMeasurement=!0;return}if(f!==m)if(ay(f)&&ay(m))for(let g=0;g<i.length;g++){const S=i[g];typeof S=="string"&&(i[g]=parseFloat(S))}else ea[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||Kx(i[c]))&&u.push(c);u.length&&$x(i,u,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:u}=this;if(!i||!i.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ea[u](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(u,c).jump(c,!1)}measureEndState(){var m;const{element:i,name:s,unresolvedKeyframes:u}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const h=u.length-1,f=u[h];u[h]=ea[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([y,p])=>{i.getValue(y).set(p)}),this.resolveNoneKeyframes()}}const tT=new Set(["opacity","clipPath","filter","transform"]);function fv(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let u=document;const c=(s==null?void 0:s[a])??u.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(u=>u!=null)}const hv=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function Yc(a){return Sg(a)&&"offsetHeight"in a}const{schedule:bf}=Ng(queueMicrotask,!1),Qe={x:!1,y:!1};function dv(){return Qe.x||Qe.y}function eT(a){return a==="x"||a==="y"?Qe[a]?null:(Qe[a]=!0,()=>{Qe[a]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function mv(a,i){const s=fv(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function nT(a){return!(a.pointerType==="touch"||dv())}function aT(a,i,s={}){const[u,c,h]=mv(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const g=()=>{f.removeEventListener("pointerleave",D)},S=N=>{p&&(p(N),p=void 0),g()},b=N=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,S(N))},A=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},D=N=>{if(N.pointerType!=="touch"){if(m){y=!0;return}S(N)}},V=N=>{if(!nT(N))return;y=!1;const O=i(f,N);typeof O=="function"&&(p=O,f.addEventListener("pointerleave",D,c))};f.addEventListener("pointerenter",V,c),f.addEventListener("pointerdown",A,c)}),h}const pv=(a,i)=>i?a===i?!0:pv(a,i.parentElement):!1,xf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,iT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lT(a){return iT.has(a.tagName)||a.isContentEditable===!0}const sT=new Set(["INPUT","SELECT","TEXTAREA"]);function uT(a){return sT.has(a.tagName)||a.isContentEditable===!0}const fu=new WeakSet;function cy(a){return i=>{i.key==="Enter"&&a(i)}}function cc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const rT=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=cy(()=>{if(fu.has(s))return;cc(s,"down");const c=cy(()=>{cc(s,"up")}),h=()=>cc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",h,i)});s.addEventListener("keydown",u,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",u),i)};function fy(a){return xf(a)&&!dv()}const hy=new WeakSet;function oT(a,i,s={}){const[u,c,h]=mv(a,s),f=m=>{const y=m.currentTarget;if(!fy(m)||hy.has(m))return;fu.add(y),s.stopPropagation&&hy.add(m);const p=i(y,m),g=(A,D)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),fu.has(y)&&fu.delete(y),fy(A)&&typeof p=="function"&&p(A,{success:D})},S=A=>{g(A,y===window||y===document||s.useGlobalTarget||pv(y,A.target))},b=A=>{g(A,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",b,c)};return u.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),Yc(m)&&(m.addEventListener("focus",p=>rT(p,c)),!lT(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),h}function Tf(a){return Sg(a)&&"ownerSVGElement"in a}const hu=new WeakMap;let ta;const yv=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:Tf(u)&&"getBBox"in u?u.getBBox()[i]:u[s],cT=yv("inline","width","offsetWidth"),fT=yv("block","height","offsetHeight");function hT({target:a,borderBoxSize:i}){var s;(s=hu.get(a))==null||s.forEach(u=>{u(a,{get width(){return cT(a,i)},get height(){return fT(a,i)}})})}function dT(a){a.forEach(hT)}function mT(){typeof ResizeObserver>"u"||(ta=new ResizeObserver(dT))}function pT(a,i){ta||mT();const s=fv(a);return s.forEach(u=>{let c=hu.get(u);c||(c=new Set,hu.set(u,c)),c.add(i),ta==null||ta.observe(u)}),()=>{s.forEach(u=>{const c=hu.get(u);c==null||c.delete(i),c!=null&&c.size||ta==null||ta.unobserve(u)})}}const du=new Set;let mi;function yT(){mi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};du.forEach(i=>i(a))},window.addEventListener("resize",mi)}function gT(a){return du.add(a),mi||yT(),()=>{du.delete(a),!du.size&&typeof mi=="function"&&(window.removeEventListener("resize",mi),mi=void 0)}}function dy(a,i){return typeof a=="function"?gT(a):pT(a,i)}function vT(a){return Tf(a)&&a.tagName==="svg"}const ST=[...rv,Zt,ke],bT=a=>ST.find(uv(a)),my=()=>({translate:0,scale:1,origin:0,originPoint:0}),pi=()=>({x:my(),y:my()}),py=()=>({min:0,max:0}),Jt=()=>({x:py(),y:py()}),xT=new WeakMap;function Cu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function wl(a){return typeof a=="string"||Array.isArray(a)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Af=["initial",...Ef];function zu(a){return Cu(a.animate)||Af.some(i=>wl(a[i]))}function gv(a){return!!(zu(a)||a.variants)}function TT(a,i,s){for(const u in i){const c=i[u],h=s[u];if(ie(c))a.addValue(u,c);else if(ie(h))a.addValue(u,bi(c,{owner:a}));else if(h!==c)if(a.hasValue(u)){const f=a.getValue(u);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(u);a.addValue(u,bi(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const Gc={current:null},vv={current:!1},ET=typeof window<"u";function AT(){if(vv.current=!0,!!ET)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Gc.current=a.matches;a.addEventListener("change",i),i()}else Gc.current=!1}const yy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Tu={};function Sv(a){Tu=a}function MT(){return Tu}class RT{scrapeMotionValuesFromProps(i,s,u){return{}}constructor({parent:i,props:s,presenceContext:u,reducedMotionConfig:c,skipAnimations:h,blockInitialAnimation:f,visualState:m},y={}){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=mf,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 A=re.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Dt.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=h,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=zu(s),this.isVariantNode=gv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const A in b){const D=b[A];p[A]!==void 0&&ie(D)&&D.set(p[A])}}mount(i){var s,u;if(this.hasBeenMounted)for(const c in this.initialValues)(s=this.values.get(c))==null||s.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=i,xT.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,h)=>this.bindToMotionValue(h,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(vv.current||AT(),this.shouldReduceMotion=Gc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),na(this.notifyUpdate),na(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const u=this.features[s];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&tT.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:g}=s.accelerate,S=new $g({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:Ze(g)}),b=f(S);this.valueSubscriptions.set(i,()=>{b(),S.cancel()});return}const u=Ei.has(i);u&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Dt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),h&&h(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Tu){const s=Tu[i];if(!s)continue;const{isEnabled:u,Feature:c}=s;if(!this.features[i]&&c&&u(this.props)&&(this.features[i]=new c(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let u=0;u<yy.length;u++){const c=yy[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,f=i[h];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=TT(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const u=this.values.get(i);s!==u&&(u&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let u=this.values.get(i);return u===void 0&&s!==void 0&&(u=bi(s===null?void 0:s,{owner:this}),this.addValue(i,u)),u}readValue(i,s){let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(vg(u)||bg(u))?u=parseFloat(u):!bT(u)&&ke.test(s)&&(u=cv(i,s)),this.setBaseTarget(i,ie(u)?u.get():u)),ie(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var h;const{initial:s}=this.props;let u;if(typeof s=="string"||typeof s=="object"){const f=gf(this.props,s,(h=this.presenceContext)==null?void 0:h.custom);f&&(u=f[i])}if(s&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!ie(c)?c:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new nf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){bf.render(this.render)}}class bv extends RT{constructor(){super(...arguments),this.KeyframeResolver=Ix}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const u=i.style;return u?u[s]:void 0}removeValueFromRenderState(i,{vars:s,style:u}){delete s[i],delete u[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ie(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class aa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function xv({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function DT({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function CT(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),u=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function fc(a){return a===void 0||a===1}function Xc({scale:a,scaleX:i,scaleY:s}){return!fc(a)||!fc(i)||!fc(s)}function Aa(a){return Xc(a)||Tv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Tv(a){return gy(a.x)||gy(a.y)}function gy(a){return a&&a!=="0%"}function Eu(a,i,s){const u=a-s,c=i*u;return s+c}function vy(a,i,s,u,c){return c!==void 0&&(a=Eu(a,c,u)),Eu(a,s,u)+i}function Kc(a,i=0,s=1,u,c){a.min=vy(a.min,i,s,u,c),a.max=vy(a.max,i,s,u,c)}function Ev(a,{x:i,y:s}){Kc(a.x,i.translate,i.scale,i.originPoint),Kc(a.y,s.translate,s.scale,s.originPoint)}const Sy=.999999999999,by=1.0000000000001;function zT(a,i,s,u=!1){const c=s.length;if(!c)return;i.x=i.y=1;let h,f;for(let m=0;m<c;m++){h=s[m],f=h.projectionDelta;const{visualElement:y}=h.options;y&&y.props.style&&y.props.style.display==="contents"||(u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&gi(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Ev(a,f)),u&&Aa(h.latestValues)&&gi(a,h.latestValues))}i.x<by&&i.x>Sy&&(i.x=1),i.y<by&&i.y>Sy&&(i.y=1)}function yi(a,i){a.min=a.min+i,a.max=a.max+i}function xy(a,i,s,u,c=.5){const h=Nt(a.min,a.max,c);Kc(a,i,s,h,u)}function gi(a,i){xy(a.x,i.x,i.scaleX,i.scale,i.originX),xy(a.y,i.y,i.scaleY,i.scale,i.originY)}function Av(a,i){return xv(CT(a.getBoundingClientRect(),i))}function OT(a,i,s){const u=Av(a,s),{scroll:c}=i;return c&&(yi(u.x,c.offset.x),yi(u.y,c.offset.y)),u}const wT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VT=Ti.length;function NT(a,i,s){let u="",c=!0;for(let h=0;h<VT;h++){const f=Ti[h],m=a[f];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(f.startsWith("scale")?1:0);else{const p=parseFloat(m);y=f.startsWith("scale")?p===1:p===0}if(!y||s){const p=hv(m,Sf[f]);if(!y){c=!1;const g=wT[f]||f;u+=`${g}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function Mf(a,i,s){const{style:u,vars:c,transformOrigin:h}=a;let f=!1,m=!1;for(const y in i){const p=i[y];if(Ei.has(y)){f=!0;continue}else if(Ug(y)){c[y]=p;continue}else{const g=hv(p,Sf[y]);y.startsWith("origin")?(m=!0,h[y]=g):u[y]=g}}if(i.transform||(f||s?u.transform=NT(i,a.transform,s):u.transform&&(u.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:g=0}=h;u.transformOrigin=`${y} ${p} ${g}`}}function Mv(a,{style:i,vars:s},u,c){const h=a.style;let f;for(f in i)h[f]=i[f];c==null||c.applyProjectionStyles(h,u);for(f in s)h.setProperty(f,s[f])}function Ty(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const xl={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(P.test(a))a=parseFloat(a);else return a;const s=Ty(a,i.target.x),u=Ty(a,i.target.y);return`${s}% ${u}%`}},_T={correct:(a,{treeScale:i,projectionDelta:s})=>{const u=a,c=ke.parse(a);if(c.length>5)return u;const h=ke.createTransformer(a),f=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+f]/=m,c[1+f]/=y;const p=Nt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),h(c)}},Qc={borderRadius:{...xl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xl,borderTopRightRadius:xl,borderBottomLeftRadius:xl,borderBottomRightRadius:xl,boxShadow:_T};function Rv(a,{layout:i,layoutId:s}){return Ei.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Qc[a]||a==="opacity")}function Rf(a,i,s){var f;const u=a.style,c=i==null?void 0:i.style,h={};if(!u)return h;for(const m in u)(ie(u[m])||c&&ie(c[m])||Rv(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(h[m]=u[m]);return h}function UT(a){return window.getComputedStyle(a)}class jT extends bv{constructor(){super(...arguments),this.type="html",this.renderInstance=Mv}readValueFromInstance(i,s){var u;if(Ei.has(s))return(u=this.projection)!=null&&u.isProjecting?Oc(s):ex(i,s);{const c=UT(i),h=(Ug(s)?c.getPropertyValue(s):c[s])||0;return typeof h=="string"?h.trim():h}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Av(i,s)}build(i,s,u){Mf(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return Rf(i,s,u)}}const BT={offset:"stroke-dashoffset",array:"stroke-dasharray"},LT={offset:"strokeDashoffset",array:"strokeDasharray"};function HT(a,i,s=1,u=0,c=!0){a.pathLength=1;const h=c?BT:LT;a[h.offset]=`${-u}`,a[h.array]=`${i} ${s}`}const qT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Dv(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:h=1,pathOffset:f=0,...m},y,p,g){if(Mf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:S,style:b}=a;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete S.transformBox);for(const A of qT)S[A]!==void 0&&(b[A]=S[A],delete S[A]);i!==void 0&&(S.x=i),s!==void 0&&(S.y=s),u!==void 0&&(S.scale=u),c!==void 0&&HT(S,c,h,f,!1)}const Cv=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"]),zv=a=>typeof a=="string"&&a.toLowerCase()==="svg";function YT(a,i,s,u){Mv(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(Cv.has(c)?c:vf(c),i.attrs[c])}function Ov(a,i,s){const u=Rf(a,i,s);for(const c in a)if(ie(a[c])||ie(i[c])){const h=Ti.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[h]=a[c]}return u}class GT extends bv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ei.has(s)){const u=ov(s);return u&&u.default||0}return s=Cv.has(s)?s:vf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return Ov(i,s,u)}build(i,s,u){Dv(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){YT(i,s,u,c)}mount(i){this.isSVGTag=zv(i.tagName),super.mount(i)}}const XT=Af.length;function wv(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?wv(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<XT;s++){const u=Af[s],c=a.props[u];(wl(c)||c===!1)&&(i[u]=c)}return i}function Vv(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let u=0;u<s;u++)if(i[u]!==a[u])return!1;return!0}const KT=[...Ef].reverse(),QT=Ef.length;function ZT(a){return i=>Promise.all(i.map(({animation:s,options:u})=>Gx(a,s,u)))}function kT(a){let i=ZT(a),s=Ey(),u=!0;const c=y=>(p,g)=>{var b;const S=vi(a,g,y==="exit"?(b=a.presenceContext)==null?void 0:b.custom:void 0);if(S){const{transition:A,transitionEnd:D,...V}=S;p={...p,...V,...D}}return p};function h(y){i=y(a)}function f(y){const{props:p}=a,g=wv(a.parent)||{},S=[],b=new Set;let A={},D=1/0;for(let N=0;N<QT;N++){const O=KT[N],G=s[O],B=p[O]!==void 0?p[O]:g[O],Q=wl(B),X=O===y?G.isActive:null;X===!1&&(D=N);let tt=B===g[O]&&B!==p[O]&&Q;if(tt&&u&&a.manuallyAnimateOnMount&&(tt=!1),G.protectedKeys={...A},!G.isActive&&X===null||!B&&!G.prevProp||Cu(B)||typeof B=="boolean")continue;if(O==="exit"&&G.isActive&&X!==!0){G.prevResolvedValues&&(A={...A,...G.prevResolvedValues});continue}const J=JT(G.prevProp,B);let k=J||O===y&&G.isActive&&!tt&&Q||N>D&&Q,at=!1;const St=Array.isArray(B)?B:[B];let wt=St.reduce(c(O),{});X===!1&&(wt={});const{prevResolvedValues:Ut={}}=G,ce={...Ut,...wt},le=K=>{k=!0,b.has(K)&&(at=!0,b.delete(K)),G.needsAnimating[K]=!0;const $=a.getValue(K);$&&($.liveStyle=!1)};for(const K in ce){const $=wt[K],ft=Ut[K];if(A.hasOwnProperty(K))continue;let pt=!1;jc($)&&jc(ft)?pt=!Vv($,ft):pt=$!==ft,pt?$!=null?le(K):b.add(K):$!==void 0&&b.has(K)?le(K):G.protectedKeys[K]=!0}G.prevProp=B,G.prevResolvedValues=wt,G.isActive&&(A={...A,...wt}),u&&a.blockInitialAnimation&&(k=!1);const Vt=tt&&J;k&&(!Vt||at)&&S.push(...St.map(K=>{const $={type:O};if(typeof K=="string"&&u&&!Vt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,pt=vi(ft,K);if(ft.enteringChildren&&pt){const{delayChildren:E}=pt.transition||{};$.delay=tv(ft.enteringChildren,a,E)}}return{animation:K,options:$}}))}if(b.size){const N={};if(typeof p.initial!="boolean"){const O=vi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);O&&O.transition&&(N.transition=O.transition)}b.forEach(O=>{const G=a.getBaseTarget(O),B=a.getValue(O);B&&(B.liveStyle=!0),N[O]=G??null}),S.push({animation:N})}let V=!!S.length;return u&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(V=!1),u=!1,V?i(S):Promise.resolve()}function m(y,p){var S;if(s[y].isActive===p)return Promise.resolve();(S=a.variantChildren)==null||S.forEach(b=>{var A;return(A=b.animationState)==null?void 0:A.setActive(y,p)}),s[y].isActive=p;const g=f(y);for(const b in s)s[b].protectedKeys={};return g}return{animateChanges:f,setActive:m,setAnimateFunction:h,getState:()=>s,reset:()=>{s=Ey()}}}function JT(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!Vv(i,a):!1}function Ea(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ey(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function Ay(a,i){a.min=i.min,a.max=i.max}function Ke(a,i){Ay(a.x,i.x),Ay(a.y,i.y)}function My(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const Nv=1e-4,FT=1-Nv,PT=1+Nv,_v=.01,WT=0-_v,$T=0+_v;function oe(a){return a.max-a.min}function IT(a,i,s){return Math.abs(a-i)<=s}function Ry(a,i,s,u=.5){a.origin=u,a.originPoint=Nt(i.min,i.max,a.origin),a.scale=oe(s)/oe(i),a.translate=Nt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=FT&&a.scale<=PT||isNaN(a.scale))&&(a.scale=1),(a.translate>=WT&&a.translate<=$T||isNaN(a.translate))&&(a.translate=0)}function Rl(a,i,s,u){Ry(a.x,i.x,s.x,u?u.originX:void 0),Ry(a.y,i.y,s.y,u?u.originY:void 0)}function Dy(a,i,s){a.min=s.min+i.min,a.max=a.min+oe(i)}function tE(a,i,s){Dy(a.x,i.x,s.x),Dy(a.y,i.y,s.y)}function Cy(a,i,s){a.min=i.min-s.min,a.max=a.min+oe(i)}function Au(a,i,s){Cy(a.x,i.x,s.x),Cy(a.y,i.y,s.y)}function zy(a,i,s,u,c){return a-=i,a=Eu(a,1/s,u),c!==void 0&&(a=Eu(a,1/c,u)),a}function eE(a,i=0,s=1,u=.5,c,h=a,f=a){if(Ie.test(i)&&(i=parseFloat(i),i=Nt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Nt(h.min,h.max,u);a===h&&(m-=i),a.min=zy(a.min,i,s,m,c),a.max=zy(a.max,i,s,m,c)}function Oy(a,i,[s,u,c],h,f){eE(a,i[s],i[u],i[c],i.scale,h,f)}const nE=["x","scaleX","originX"],aE=["y","scaleY","originY"];function wy(a,i,s,u){Oy(a.x,i,nE,s?s.x:void 0,u?u.x:void 0),Oy(a.y,i,aE,s?s.y:void 0,u?u.y:void 0)}function Vy(a){return a.translate===0&&a.scale===1}function Uv(a){return Vy(a.x)&&Vy(a.y)}function Ny(a,i){return a.min===i.min&&a.max===i.max}function iE(a,i){return Ny(a.x,i.x)&&Ny(a.y,i.y)}function _y(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function jv(a,i){return _y(a.x,i.x)&&_y(a.y,i.y)}function Uy(a){return oe(a.x)/oe(a.y)}function jy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function $e(a){return[a("x"),a("y")]}function lE(a,i,s){let u="";const c=a.x.translate/i.x,h=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||h||f)&&(u=`translate3d(${c}px, ${h}px, ${f}px) `),(i.x!==1||i.y!==1)&&(u+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:g,rotateX:S,rotateY:b,skewX:A,skewY:D}=s;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),S&&(u+=`rotateX(${S}deg) `),b&&(u+=`rotateY(${b}deg) `),A&&(u+=`skewX(${A}deg) `),D&&(u+=`skewY(${D}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(u+=`scale(${m}, ${y})`),u||"none"}const Bv=["TopLeft","TopRight","BottomLeft","BottomRight"],sE=Bv.length,By=a=>typeof a=="string"?parseFloat(a):a,Ly=a=>typeof a=="number"||P.test(a);function uE(a,i,s,u,c,h){c?(a.opacity=Nt(0,s.opacity??1,rE(u)),a.opacityExit=Nt(i.opacity??1,0,oE(u))):h&&(a.opacity=Nt(i.opacity??1,s.opacity??1,u));for(let f=0;f<sE;f++){const m=`border${Bv[f]}Radius`;let y=Hy(i,m),p=Hy(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Ly(y)===Ly(p)?(a[m]=Math.max(Nt(By(y),By(p),u),0),(Ie.test(p)||Ie.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=Nt(i.rotate||0,s.rotate||0,u))}function Hy(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const rE=Lv(0,.5,zg),oE=Lv(.5,.95,He);function Lv(a,i,s){return u=>u<a?0:u>i?1:s(Cl(a,i,u))}function cE(a,i,s){const u=ie(a)?a:bi(a);return u.start(yf("",u,i,s)),u.animation}function Vl(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const fE=(a,i)=>a.depth-i.depth;class hE{constructor(){this.children=[],this.isDirty=!1}add(i){tf(this.children,i),this.isDirty=!0}remove(i){vu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(fE),this.isDirty=!1,this.children.forEach(i)}}function dE(a,i){const s=re.now(),u=({timestamp:c})=>{const h=c-s;h>=i&&(na(u),a(h-i))};return Dt.setup(u,!0),()=>na(u)}function mu(a){return ie(a)?a.get():a}class mE{constructor(){this.members=[]}add(i){tf(this.members,i);for(let s=this.members.length-1;s>=0;s--){const u=this.members[s];if(u===i||u===this.lead||u===this.prevLead)continue;const c=u.instance;c&&c.isConnected===!1&&u.isPresent!==!1&&!u.snapshot&&vu(this.members,u)}i.scheduleRender()}remove(i){if(vu(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let u;for(let c=s;c>=0;c--){const h=this.members[c],f=h.instance;if(h.isPresent!==!1&&(!f||f.isConnected!==!1)){u=h;break}}return u?(this.promote(u),!0):!1}promote(i,s){const u=this.lead;if(i!==u&&(this.prevLead=u,this.lead=i,i.show(),u)){u.instance&&u.scheduleRender(),i.scheduleRender();const c=u.options.layoutDependency,h=i.options.layoutDependency;if(!(c!==void 0&&h!==void 0&&c===h)){const y=u.instance;y&&y.isConnected===!1&&!u.snapshot||(i.resumeFrom=u,s&&(i.resumeFrom.preserveOpacity=!0),u.snapshot&&(i.snapshot=u.snapshot,i.snapshot.latestValues=u.animationValues||u.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0))}const{crossfade:m}=i.options;m===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:u}=i;s.onExitComplete&&s.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const pu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hc=["","X","Y","Z"],pE=1e3;let yE=0;function dc(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function Hv(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=lv(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",Dt,!(c||h))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&Hv(u)}function qv({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=yE++,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(SE),this.nodes.forEach(EE),this.nodes.forEach(AE),this.nodes.forEach(bE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new hE)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new nf),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Tf(f)&&!vT(f),this.instance=f;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let g,S=0;const b=()=>this.root.updateBlockedByResize=!1;Dt.read(()=>{S=window.innerWidth}),a(f,()=>{const A=window.innerWidth;A!==S&&(S=A,this.root.updateBlockedByResize=!0,g&&g(),g=dE(b,250),pu.hasAnimatedSinceResize&&(pu.hasAnimatedSinceResize=!1,this.nodes.forEach(Gy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||p.getDefaultTransition()||zE,{onLayoutAnimationStart:V,onLayoutAnimationComplete:N}=p.getProps(),O=!this.targetLayout||!jv(this.targetLayout,A),G=!S&&b;if(this.options.layoutRoot||this.resumeFrom||G||S&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...pf(D,"layout"),onPlay:V,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(g,G)}else S||Gy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),na(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(ME),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const S=this.path[g];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(TE),this.nodes.forEach(gE),this.nodes.forEach(vE)):this.nodes.forEach(Yy),this.clearAllSnapshots();const m=re.now();ne.delta=en(0,1e3/60,m-ne.timestamp),ne.timestamp=m,ne.isProcessing=!0,ic.update.process(ne),ic.preRender.process(ne),ic.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xE),this.sharedNodes.forEach(RE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oe(this.snapshot.measuredBox.x)&&!oe(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!Uv(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Aa(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),OE(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return Jt();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(wE))){const{scroll:g}=this.root;g&&(yi(m.x,g.offset.x),yi(m.y,g.offset.y))}return m}removeElementScroll(f){var y;const m=Jt();if(Ke(m,f),(y=this.scroll)!=null&&y.wasRoot)return m;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:S,options:b}=g;g!==this.root&&S&&b.layoutScroll&&(S.wasRoot&&Ke(m,f),yi(m.x,S.offset.x),yi(m.y,S.offset.y))}return m}applyTransform(f,m=!1){const y=Jt();Ke(y,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];!m&&g.options.layoutScroll&&g.scroll&&g!==g.root&&gi(y,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Aa(g.latestValues)&&gi(y,g.latestValues)}return Aa(this.latestValues)&&gi(y,this.latestValues),y}removeTransform(f){const m=Jt();Ke(m,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!Aa(p.latestValues))continue;Xc(p.latestValues)&&p.updateSnapshot();const g=Jt(),S=p.measurePageBox();Ke(g,S),wy(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return Aa(this.latestValues)&&wy(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var A;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:S}=this.options;if(!this.layout||!(g||S))return;this.resolvedRelativeTargetAt=ne.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ke(this.target,this.layout.layoutBox),Ev(this.target,this.targetDelta)):Ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xc(this.parent.latestValues)||Tv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),Au(this.relativeTargetOrigin,m,y),Ke(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var D;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(D=this.parent)!=null&&D.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(y=!1),y)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Ke(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;zT(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Jt());const{target:A}=f;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(My(this.prevProjectionDelta.x,this.projectionDelta.x),My(this.prevProjectionDelta.y,this.projectionDelta.y)),Rl(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!jy(this.projectionDelta.x,this.prevProjectionDelta.x)||!jy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),f){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pi(),this.projectionDelta=pi(),this.projectionDeltaWithTransform=pi()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},g={...this.latestValues},S=pi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Jt(),A=y?y.source:void 0,D=this.layout?this.layout.source:void 0,V=A!==D,N=this.getStack(),O=!N||N.members.length<=1,G=!!(V&&!O&&this.options.crossfade===!0&&!this.path.some(CE));this.animationProgress=0;let B;this.mixTargetDelta=Q=>{const X=Q/1e3;Xy(S.x,f.x,X),Xy(S.y,f.y,X),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Au(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),DE(this.relativeTarget,this.relativeTargetOrigin,b,X),B&&iE(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Jt()),Ke(B,this.relativeTarget)),V&&(this.animationValues=g,uE(g,p,this.latestValues,X,G,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var m,y,p;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(p=(y=this.resumingFrom)==null?void 0:y.currentAnimation)==null||p.stop(),this.pendingAnimation&&(na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dt.update(()=>{pu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=cE(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:g}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&Yv(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Jt();const S=oe(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+S;const b=oe(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Ke(m,y),gi(m,g),Rl(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new mE),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&dc("z",f,p,this.animationValues);for(let g=0;g<hc.length;g++)dc(`rotate${hc[g]}`,f,p,this.animationValues),dc(`skew${hc[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=mu(m==null?void 0:m.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=mu(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=lE(this.projectionDeltaWithTransform,this.treeScale,g);y&&(S=y(g,S)),f.transform=S;const{x:b,y:A}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${A.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const D in Qc){if(g[D]===void 0)continue;const{correct:V,applyTo:N,isCSSVariable:O}=Qc[D],G=S==="none"?g[D]:V(g[D],p);if(N){const B=N.length;for(let Q=0;Q<B;Q++)f[N[Q]]=G}else O?this.options.visualElement.renderState.vars[D]=G:f[D]=G}this.options.layoutId&&(f.pointerEvents=p===this?mu(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(qy),this.root.sharedNodes.clear()}}}function gE(a){a.updateLayout()}function vE(a){var s;const i=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:c}=a.layout,{animationType:h}=a.options,f=i.source!==a.layout.source;h==="size"?$e(S=>{const b=f?i.measuredBox[S]:i.layoutBox[S],A=oe(b);b.min=u[S].min,b.max=b.min+A}):Yv(h,i.layoutBox,u)&&$e(S=>{const b=f?i.measuredBox[S]:i.layoutBox[S],A=oe(u[S]);b.max=b.min+A,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[S].max=a.relativeTarget[S].min+A)});const m=pi();Rl(m,u,i.layoutBox);const y=pi();f?Rl(y,a.applyTransform(c,!0),i.measuredBox):Rl(y,u,i.layoutBox);const p=!Uv(m);let g=!1;if(!a.resumeFrom){const S=a.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:b,layout:A}=S;if(b&&A){const D=Jt();Au(D,i.layoutBox,b.layoutBox);const V=Jt();Au(V,u,A.layoutBox),jv(D,V)||(g=!0),S.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=D,a.relativeParent=S)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function SE(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function bE(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function xE(a){a.clearSnapshot()}function qy(a){a.clearMeasurements()}function Yy(a){a.isLayoutDirty=!1}function TE(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Gy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function EE(a){a.resolveTargetDelta()}function AE(a){a.calcProjection()}function ME(a){a.resetSkewAndRotation()}function RE(a){a.removeLeadSnapshot()}function Xy(a,i,s){a.translate=Nt(i.translate,0,s),a.scale=Nt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Ky(a,i,s,u){a.min=Nt(i.min,s.min,u),a.max=Nt(i.max,s.max,u)}function DE(a,i,s,u){Ky(a.x,i.x,s.x,u),Ky(a.y,i.y,s.y,u)}function CE(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const zE={duration:.45,ease:[.4,0,.1,1]},Qy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Zy=Qy("applewebkit/")&&!Qy("chrome/")?Math.round:He;function ky(a){a.min=Zy(a.min),a.max=Zy(a.max)}function OE(a){ky(a.x),ky(a.y)}function Yv(a,i,s){return a==="position"||a==="preserve-aspect"&&!IT(Uy(i),Uy(s),.2)}function wE(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const VE=qv({attachResizeListener:(a,i)=>Vl(a,"resize",i),measureScroll:()=>{var a,i;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),mc={current:void 0},Gv=qv({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!mc.current){const a=new VE({});a.mount(window),a.setOptions({layoutScroll:!0}),mc.current=a}return mc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Df=M.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Jy(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function NE(...a){return i=>{let s=!1;const u=a.map(c=>{const h=Jy(c,i);return!s&&typeof h=="function"&&(s=!0),h});if(s)return()=>{for(let c=0;c<u.length;c++){const h=u[c];typeof h=="function"?h():Jy(a[c],null)}}}}function _E(...a){return M.useCallback(NE(...a),a)}class UE extends M.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=Yc(u)&&u.offsetWidth||0,h=Yc(u)&&u.offsetHeight||0,f=this.props.sizeRef.current;f.height=s.offsetHeight||0,f.width=s.offsetWidth||0,f.top=s.offsetTop,f.left=s.offsetLeft,f.right=c-f.width-f.left,f.bottom=h-f.height-f.top}return null}componentDidUpdate(){}render(){return this.props.children}}function jE({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:h}){var b;const f=M.useId(),m=M.useRef(null),y=M.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=M.useContext(Df),g=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),S=_E(m,g);return M.useInsertionEffect(()=>{const{width:A,height:D,top:V,left:N,right:O,bottom:G}=y.current;if(i||h===!1||!m.current||!A||!D)return;const B=s==="left"?`left: ${N}`:`right: ${O}`,Q=u==="bottom"?`bottom: ${G}`:`top: ${V}`;m.current.dataset.motionPopId=f;const X=document.createElement("style");p&&(X.nonce=p);const tt=c??document.head;return tt.appendChild(X),X.sheet&&X.sheet.insertRule(`
50
+ [data-motion-pop-id="${f}"] {
51
+ position: absolute !important;
52
+ width: ${A}px !important;
53
+ height: ${D}px !important;
54
+ ${B}px !important;
55
+ ${Q}px !important;
56
+ }
57
+ `),()=>{tt.contains(X)&&tt.removeChild(X)}},[i]),H.jsx(UE,{isPresent:i,childRef:m,sizeRef:y,pop:h,children:h===!1?a:M.cloneElement(a,{ref:S})})}const BE=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:h,mode:f,anchorX:m,anchorY:y,root:p})=>{const g=Ic(LE),S=M.useId();let b=!0,A=M.useMemo(()=>(b=!1,{id:S,initial:i,isPresent:s,custom:c,onExitComplete:D=>{g.set(D,!0);for(const V of g.values())if(!V)return;u&&u()},register:D=>(g.set(D,!1),()=>g.delete(D))}),[s,g,u]);return h&&b&&(A={...A}),M.useMemo(()=>{g.forEach((D,V)=>g.set(V,!1))},[s]),M.useEffect(()=>{!s&&!g.size&&u&&u()},[s]),a=H.jsx(jE,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),H.jsx(Du.Provider,{value:A,children:a})};function LE(){return new Map}function Xv(a=!0){const i=M.useContext(Du);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,h=M.useId();M.useEffect(()=>{if(a)return c(h)},[a]);const f=M.useCallback(()=>a&&u&&u(h),[h,u,a]);return!s&&u?[!1,f]:[!0]}const uu=a=>a.key||"";function Fy(a){const i=[];return M.Children.forEach(a,s=>{M.isValidElement(s)&&i.push(s)}),i}const HE=({children:a,custom:i,initial:s=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[g,S]=Xv(f),b=M.useMemo(()=>Fy(a),[a]),A=f&&!g?[]:b.map(uu),D=M.useRef(!0),V=M.useRef(b),N=Ic(()=>new Map),O=M.useRef(new Set),[G,B]=M.useState(b),[Q,X]=M.useState(b);gg(()=>{D.current=!1,V.current=b;for(let k=0;k<Q.length;k++){const at=uu(Q[k]);A.includes(at)?(N.delete(at),O.current.delete(at)):N.get(at)!==!0&&N.set(at,!1)}},[Q,A.length,A.join("-")]);const tt=[];if(b!==G){let k=[...b];for(let at=0;at<Q.length;at++){const St=Q[at],wt=uu(St);A.includes(wt)||(k.splice(at,0,St),tt.push(St))}return h==="wait"&&tt.length&&(k=tt),X(Fy(k)),B(b),null}const{forceRender:J}=M.useContext($c);return H.jsx(H.Fragment,{children:Q.map(k=>{const at=uu(k),St=f&&!g?!1:b===Q||A.includes(at),wt=()=>{if(O.current.has(at))return;if(O.current.add(at),N.has(at))N.set(at,!0);else return;let Ut=!0;N.forEach(ce=>{ce||(Ut=!1)}),Ut&&(J==null||J(),X(V.current),f&&(S==null||S()),u&&u())};return H.jsx(BE,{isPresent:St,initial:!D.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:St?void 0:wt,anchorX:m,anchorY:y,children:k},at)})})},Kv=M.createContext({strict:!1}),Py={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 Wy=!1;function qE(){if(Wy)return;const a={};for(const i in Py)a[i]={isEnabled:s=>Py[i].some(u=>!!s[u])};Sv(a),Wy=!0}function Qv(){return qE(),MT()}function YE(a){const i=Qv();for(const s in a)i[s]={...i[s],...a[s]};Sv(i)}const GE=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 Mu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||GE.has(a)}let Zv=a=>!Mu(a);function XE(a){typeof a=="function"&&(Zv=i=>i.startsWith("on")?!Mu(i):a(i))}try{XE(require("@emotion/is-prop-valid").default)}catch{}function KE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||(Zv(c)||s===!0&&Mu(c)||!i&&!Mu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const Ou=M.createContext({});function QE(a,i){if(zu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||wl(s)?s:void 0,animate:wl(u)?u:void 0}}return a.inherit!==!1?i:{}}function ZE(a){const{initial:i,animate:s}=QE(a,M.useContext(Ou));return M.useMemo(()=>({initial:i,animate:s}),[$y(i),$y(s)])}function $y(a){return Array.isArray(a)?a.join(" "):a}const Cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kv(a,i,s){for(const u in i)!ie(i[u])&&!Rv(u,s)&&(a[u]=i[u])}function kE({transformTemplate:a},i){return M.useMemo(()=>{const s=Cf();return Mf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function JE(a,i){const s=a.style||{},u={};return kv(u,s,a),Object.assign(u,kE(a,i)),u}function FE(a,i){const s={},u=JE(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=u,s}const Jv=()=>({...Cf(),attrs:{}});function PE(a,i,s,u){const c=M.useMemo(()=>{const h=Jv();return Dv(h,i,zv(u),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[i]);if(a.style){const h={};kv(h,a.style,a),c.style={...h,...c.style}}return c}const WE=["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 zf(a){return typeof a!="string"||a.includes("-")?!1:!!(WE.indexOf(a)>-1||/[A-Z]/u.test(a))}function $E(a,i,s,{latestValues:u},c,h=!1,f){const y=(f??zf(a)?PE:FE)(i,u,c,a),p=KE(i,typeof a=="string",h),g=a!==M.Fragment?{...p,...y,ref:s}:{},{children:S}=i,b=M.useMemo(()=>ie(S)?S.get():S,[S]);return M.createElement(a,{...g,children:b})}function IE({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:tA(s,u,c,a),renderState:i()}}function tA(a,i,s,u){const c={},h=u(a,{});for(const b in h)c[b]=mu(h[b]);let{initial:f,animate:m}=a;const y=zu(a),p=gv(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let g=s?s.initial===!1:!1;g=g||f===!1;const S=g?m:f;if(S&&typeof S!="boolean"&&!Cu(S)){const b=Array.isArray(S)?S:[S];for(let A=0;A<b.length;A++){const D=gf(a,b[A]);if(D){const{transitionEnd:V,transition:N,...O}=D;for(const G in O){let B=O[G];if(Array.isArray(B)){const Q=g?B.length-1:0;B=B[Q]}B!==null&&(c[G]=B)}for(const G in V)c[G]=V[G]}}}return c}const Fv=a=>(i,s)=>{const u=M.useContext(Ou),c=M.useContext(Du),h=()=>IE(a,i,u,c);return s?h():Ic(h)},eA=Fv({scrapeMotionValuesFromProps:Rf,createRenderState:Cf}),nA=Fv({scrapeMotionValuesFromProps:Ov,createRenderState:Jv}),aA=Symbol.for("motionComponentSymbol");function iA(a,i,s){const u=M.useRef(s);M.useInsertionEffect(()=>{u.current=s});const c=M.useRef(null);return M.useCallback(h=>{var m;h&&((m=a.onMount)==null||m.call(a,h)),i&&(h?i.mount(h):i.unmount());const f=u.current;if(typeof f=="function")if(h){const y=f(h);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(h);else f&&(f.current=h)},[i])}const Pv=M.createContext({});function hi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function lA(a,i,s,u,c,h){var B,Q;const{visualElement:f}=M.useContext(Ou),m=M.useContext(Kv),y=M.useContext(Du),p=M.useContext(Df),g=p.reducedMotion,S=p.skipAnimations,b=M.useRef(null),A=M.useRef(!1);u=u||m.renderer,!b.current&&u&&(b.current=u(a,{visualState:i,parent:f,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:g,skipAnimations:S,isSVG:h}),A.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const D=b.current,V=M.useContext(Pv);D&&!D.projection&&c&&(D.type==="html"||D.type==="svg")&&sA(b.current,s,c,V);const N=M.useRef(!1);M.useInsertionEffect(()=>{D&&N.current&&D.update(s,y)});const O=s[iv],G=M.useRef(!!O&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,O))&&((Q=window.MotionHasOptimisedAnimation)==null?void 0:Q.call(window,O)));return gg(()=>{A.current=!0,D&&(N.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),G.current&&D.animationState&&D.animationState.animateChanges())}),M.useEffect(()=>{D&&(!G.current&&D.animationState&&D.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{var X;(X=window.MotionHandoffMarkAsComplete)==null||X.call(window,O)}),G.current=!1),D.enteringChildren=void 0)}),D}function sA(a,i,s,u){const{layoutId:c,layout:h,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:g}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:Wv(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||m&&hi(m),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:u,crossfade:g,layoutScroll:y,layoutRoot:p})}function Wv(a){if(a)return a.options.allowProjection!==!1?a.projection:Wv(a.parent)}function pc(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&YE(u);const h=s?s==="svg":zf(a),f=h?nA:eA;function m(p,g){let S;const b={...M.useContext(Df),...p,layoutId:uA(p)},{isStatic:A}=b,D=ZE(p),V=f(p,A);if(!A&&yg){rA();const N=oA(b);S=N.MeasureLayout,D.visualElement=lA(a,V,b,c,N.ProjectionNode,h)}return H.jsxs(Ou.Provider,{value:D,children:[S&&D.visualElement?H.jsx(S,{visualElement:D.visualElement,...b}):null,$E(a,p,iA(V,D.visualElement,g),V,A,i,h)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=M.forwardRef(m);return y[aA]=a,y}function uA({layoutId:a}){const i=M.useContext($c).id;return i&&a!==void 0?i+"-"+a:a}function rA(a,i){M.useContext(Kv).strict}function oA(a){const i=Qv(),{drag:s,layout:u}=i;if(!s&&!u)return{};const c={...s,...u};return{MeasureLayout:s!=null&&s.isEnabled(a)||u!=null&&u.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function cA(a,i){if(typeof Proxy>"u")return pc;const s=new Map,u=(h,f)=>pc(h,f,a,i),c=(h,f)=>u(h,f);return new Proxy(c,{get:(h,f)=>f==="create"?u:(s.has(f)||s.set(f,pc(f,void 0,a,i)),s.get(f))})}const fA=(a,i)=>i.isSVG??zf(a)?new GT(i):new jT(i,{allowProjection:a!==M.Fragment});class hA extends aa{constructor(i){super(i),i.animationState||(i.animationState=kT(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Cu(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let dA=0;class mA extends aa{constructor(){super(...arguments),this.id=dA++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===u)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const pA={animation:{Feature:hA},exit:{Feature:mA}};function Bl(a){return{point:{x:a.pageX,y:a.pageY}}}const yA=a=>i=>xf(i)&&a(i,Bl(i));function Dl(a,i,s,u){return Vl(a,i,yA(s),u)}const $v=({current:a})=>a?a.ownerDocument.defaultView:null,Iy=(a,i)=>Math.abs(a-i);function gA(a,i){const s=Iy(a.x,i.x),u=Iy(a.y,i.y);return Math.sqrt(s**2+u**2)}const tg=new Set(["auto","scroll"]);class Iv{constructor(i,s,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:f=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=A=>{this.handleScroll(A.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=gc(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,V=gA(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!V)return;const{point:N}=A,{timestamp:O}=ne;this.history.push({...N,timestamp:O});const{onStart:G,onMove:B}=this.handlers;D||(G&&G(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,A)},this.handlePointerMove=(A,D)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=yc(D,this.transformPagePoint),Dt.update(this.updatePoint,!0)},this.handlePointerUp=(A,D)=>{this.end();const{onEnd:V,onSessionEnd:N,resumeAnimation:O}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=gc(A.type==="pointercancel"?this.lastMoveEventInfo:yc(D,this.transformPagePoint),this.history);this.startEvent&&V&&V(A,G),N&&N(A,G)},!xf(i))return;this.dragSnapToOrigin=h,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Bl(i),p=yc(y,this.transformPagePoint),{point:g}=p,{timestamp:S}=ne;this.history=[{...g,timestamp:S}];const{onSessionStart:b}=s;b&&b(i,gc(p,this.history)),this.removeListeners=_l(Dl(this.contextWindow,"pointermove",this.handlePointerMove),Dl(this.contextWindow,"pointerup",this.handlePointerUp),Dl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(tg.has(u.overflowX)||tg.has(u.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const u=i===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},h={x:c.x-s.x,y:c.y-s.y};h.x===0&&h.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(i,c),Dt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),na(this.updatePoint)}}function yc(a,i){return i?{point:i(a.point)}:a}function eg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function gc({point:a},i){return{point:a,delta:eg(a,t0(i)),offset:eg(a,vA(i)),velocity:SA(i,.1)}}function vA(a){return a[0]}function t0(a){return a[a.length-1]}function SA(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=t0(a);for(;s>=0&&(u=a[s],!(c.timestamp-u.timestamp>Ze(i)));)s--;if(!u)return{x:0,y:0};u===a[0]&&a.length>2&&c.timestamp-u.timestamp>Ze(i)*2&&(u=a[1]);const h=Le(c.timestamp-u.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-u.x)/h,y:(c.y-u.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function bA(a,{min:i,max:s},u){return i!==void 0&&a<i?a=u?Nt(i,a,u.min):Math.max(a,i):s!==void 0&&a>s&&(a=u?Nt(s,a,u.max):Math.min(a,s)),a}function ng(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function xA(a,{top:i,left:s,bottom:u,right:c}){return{x:ng(a.x,s,c),y:ng(a.y,i,u)}}function ag(a,i){let s=i.min-a.min,u=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,u]=[u,s]),{min:s,max:u}}function TA(a,i){return{x:ag(a.x,i.x),y:ag(a.y,i.y)}}function EA(a,i){let s=.5;const u=oe(a),c=oe(i);return c>u?s=Cl(i.min,i.max-u,a.min):u>c&&(s=Cl(a.min,a.max-c,i.min)),en(0,1,s)}function AA(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const Zc=.35;function MA(a=Zc){return a===!1?a=0:a===!0&&(a=Zc),{x:ig(a,"left","right"),y:ig(a,"top","bottom")}}function ig(a,i,s){return{min:lg(a,i),max:lg(a,s)}}function lg(a,i){return typeof a=="number"?a:a[i]||0}const RA=new WeakMap;class DA{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=S=>{s&&this.snapToCursor(Bl(S).point),this.stopAnimation()},f=(S,b)=>{const{drag:A,dragPropagation:D,onDragStart:V}=this.getProps();if(A&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eT(A),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$e(O=>{let G=this.getAxisMotionValue(O).get()||0;if(Ie.test(G)){const{projection:B}=this.visualElement;if(B&&B.layout){const Q=B.layout.layoutBox[O];Q&&(G=oe(Q)*(parseFloat(G)/100))}}this.originPoint[O]=G}),V&&Dt.update(()=>V(S,b),!1,!0),Bc(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},m=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:A,dragDirectionLock:D,onDirectionLock:V,onDrag:N}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:O}=b;if(D&&this.currentDirection===null){this.currentDirection=zA(O),this.currentDirection!==null&&V&&V(this.currentDirection);return}this.updateAxis("x",b.point,O),this.updateAxis("y",b.point,O),this.visualElement.render(),N&&Dt.update(()=>N(S,b),!1,!0)},y=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new Iv(i,{onSessionStart:h,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:$v(this.visualElement),element:this.visualElement.current})}stop(i,s){const u=i||this.latestPointerEvent,c=s||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Dt.postRender(()=>m(u,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,u){const{drag:c}=this.getProps();if(!u||!ru(i,c,this.currentDirection))return;const h=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=bA(f,this.constraints[i],this.elastic[i])),h.set(f)}resolveConstraints(){var h;const{dragConstraints:i,dragElastic:s}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(h=this.visualElement.projection)==null?void 0:h.layout,c=this.constraints;i&&hi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=xA(u.layoutBox,i):this.constraints=!1,this.elastic=MA(s),c!==this.constraints&&!hi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&$e(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=AA(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!hi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=OT(u,c.root,this.visualElement.getTransformPagePoint());let f=TA(c.layout.layoutBox,h);if(s){const m=s(DT(f));this.hasMutatedConstraints=!!m,m&&(f=xv(m))}return f}startAnimation(i){const{drag:s,dragMomentum:u,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=$e(g=>{if(!ru(g,s,this.currentDirection))return;let S=y&&y[g]||{};f&&(S={min:0,max:0});const b=c?200:1e6,A=c?40:1e7,D={type:"inertia",velocity:u?i[g]:0,bounceStiffness:b,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...h,...S};return this.startAxisValueAnimation(g,D)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Bc(this.visualElement,i),u.start(yf(i,u,0,s,this.visualElement,!1))}stopAnimation(){$e(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,u=this.visualElement.getProps(),c=u[s];return c||this.visualElement.getValue(i,(u.initial?u.initial[i]:void 0)||0)}snapToCursor(i){$e(s=>{const{drag:u}=this.getProps();if(!ru(s,u,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s],y=h.get()||0;h.set(i[s]-Nt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!hi(s)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};$e(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=EA({min:y,max:y},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),$e(f=>{if(!ru(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Nt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;RA.set(this.visualElement,this);const i=this.visualElement.current,s=Dl(i,"pointerdown",p=>{const{drag:g,dragListener:S=!0}=this.getProps(),b=p.target,A=b!==i&&uT(b);g&&S&&!A&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();hi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=CA(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,f=h.addEventListener("measure",c);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Dt.read(c);const m=Vl(window,"resize",()=>this.scalePositionWithinConstraints()),y=h.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&($e(S=>{const b=this.getAxisMotionValue(S);b&&(this.originPoint[S]+=p[S].translate,b.set(b.get()+p[S].translate))}),this.visualElement.render())}));return()=>{m(),s(),f(),y&&y(),u&&u()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=Zc,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:m}}}function sg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function CA(a,i,s){const u=dy(a,sg(s)),c=dy(i,sg(s));return()=>{u(),c()}}function ru(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function zA(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class OA extends aa{constructor(i){super(i),this.removeGroupControls=He,this.removeListeners=He,this.controls=new DA(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const vc=a=>(i,s)=>{a&&Dt.update(()=>a(i,s),!1,!0)};class wA extends aa{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(i){this.session=new Iv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$v(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:vc(i),onStart:vc(s),onMove:vc(u),onEnd:(h,f)=>{delete this.session,c&&Dt.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=Dl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Sc=!1;class VA extends M.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u,layoutId:c}=this.props,{projection:h}=i;h&&(s.group&&s.group.add(h),u&&u.register&&c&&u.register(h),Sc&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pu.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:u,drag:c,isPresent:h}=this.props,{projection:f}=u;return f&&(f.isPresent=h,i.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Sc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==h?f.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?f.promote():f.relegate()||Dt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),bf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;Sc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function e0(a){const[i,s]=Xv(),u=M.useContext($c);return H.jsx(VA,{...a,layoutGroup:u,switchLayoutGroup:M.useContext(Pv),isPresent:i,safeToRemove:s})}const NA={pan:{Feature:wA},drag:{Feature:OA,ProjectionNode:Gv,MeasureLayout:e0}};function ug(a,i,s){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,h=u[c];h&&Dt.postRender(()=>h(i,Bl(i)))}class _A extends aa{mount(){const{current:i}=this.node;i&&(this.unmount=aT(i,(s,u)=>(ug(this.node,u,"Start"),c=>ug(this.node,c,"End"))))}unmount(){}}class UA extends aa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=_l(Vl(this.node.current,"focus",()=>this.onFocus()),Vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rg(a,i,s){const{props:u}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&u.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),h=u[c];h&&Dt.postRender(()=>h(i,Bl(i)))}class jA extends aa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=oT(i,(c,h)=>(rg(this.node,h,"Start"),(f,{success:m})=>rg(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const kc=new WeakMap,bc=new WeakMap,BA=a=>{const i=kc.get(a.target);i&&i(a)},LA=a=>{a.forEach(BA)};function HA({root:a,...i}){const s=a||document;bc.has(s)||bc.set(s,{});const u=bc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(LA,{root:a,...i})),u[c]}function qA(a,i,s){const u=HA(i);return kc.set(a,s),u.observe(a),()=>{kc.delete(a),u.unobserve(a)}}const YA={some:0,all:1};class GA extends aa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:u,amount:c="some",once:h}=i,f={root:s?s.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:YA[c]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:S}=this.node.getProps(),b=p?g:S;b&&b(y)};return qA(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(XA(i,s))&&this.startObserver()}unmount(){}}function XA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const KA={inView:{Feature:GA},tap:{Feature:jA},focus:{Feature:UA},hover:{Feature:_A}},QA={layout:{ProjectionNode:Gv,MeasureLayout:e0}},ZA={...pA,...KA,...NA,...QA},Tn=cA(ZA,fA);/**
58
+ * react-router v7.13.1
59
+ *
60
+ * Copyright (c) Remix Software Inc.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE.md file in the root directory of this source tree.
64
+ *
65
+ * @license MIT
66
+ */var og="popstate";function cg(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function kA(a={}){function i(u,c){var p;let h=(p=c.state)==null?void 0:p.masked,{pathname:f,search:m,hash:y}=h||u.location;return Jc("",{pathname:f,search:m,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",h?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,c){return typeof c=="string"?c:Nl(c)}return FA(i,s,null,a)}function _t(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function nn(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function JA(){return Math.random().toString(36).substring(2,10)}function fg(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Jc(a,i,s=null,u,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ai(i):i,state:s,key:i&&i.key||u||JA(),unstable_mask:c}}function Nl({pathname:a="/",search:i="",hash:s=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function Ai(a){let i={};if(a){let s=a.indexOf("#");s>=0&&(i.hash=a.substring(s),a=a.substring(0,s));let u=a.indexOf("?");u>=0&&(i.search=a.substring(u),a=a.substring(0,u)),a&&(i.pathname=a)}return i}function FA(a,i,s,u={}){let{window:c=document.defaultView,v5Compat:h=!1}=u,f=c.history,m="POP",y=null,p=g();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function g(){return(f.state||{idx:null}).idx}function S(){m="POP";let N=g(),O=N==null?null:N-p;p=N,y&&y({action:m,location:V.location,delta:O})}function b(N,O){m="PUSH";let G=cg(N)?N:Jc(V.location,N,O);p=g()+1;let B=fg(G,p),Q=V.createHref(G.unstable_mask||G);try{f.pushState(B,"",Q)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;c.location.assign(Q)}h&&y&&y({action:m,location:V.location,delta:1})}function A(N,O){m="REPLACE";let G=cg(N)?N:Jc(V.location,N,O);p=g();let B=fg(G,p),Q=V.createHref(G.unstable_mask||G);f.replaceState(B,"",Q),h&&y&&y({action:m,location:V.location,delta:0})}function D(N){return PA(N)}let V={get action(){return m},get location(){return a(c,f)},listen(N){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(og,S),y=N,()=>{c.removeEventListener(og,S),y=null}},createHref(N){return i(c,N)},createURL:D,encodeLocation(N){let O=D(N);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:A,go(N){return f.go(N)}};return V}function PA(a,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),_t(s,"No window.location.(origin|href) available to create URL");let u=typeof a=="string"?a:Nl(a);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function n0(a,i,s="/"){return WA(a,i,s,!1)}function WA(a,i,s,u){let c=typeof i=="string"?Ai(i):i,h=Mn(c.pathname||"/",s);if(h==null)return null;let f=a0(a);$A(f);let m=null;for(let y=0;m==null&&y<f.length;++y){let p=o2(h);m=u2(f[y],p,u)}return m}function a0(a,i=[],s=[],u="",c=!1){let h=(f,m,y=c,p)=>{let g={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(u)&&y)return;_t(g.relativePath.startsWith(u),`Absolute route path "${g.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(u.length)}let S=tn([u,g.relativePath]),b=s.concat(g);f.children&&f.children.length>0&&(_t(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),a0(f.children,i,b,S,y)),!(f.path==null&&!f.index)&&i.push({path:S,score:l2(S,f.index),routesMeta:b})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))h(f,m);else for(let p of i0(f.path))h(f,m,!0,p)}),i}function i0(a){let i=a.split("/");if(i.length===0)return[];let[s,...u]=i,c=s.endsWith("?"),h=s.replace(/\?$/,"");if(u.length===0)return c?[h,""]:[h];let f=i0(u.join("/")),m=[];return m.push(...f.map(y=>y===""?h:[h,y].join("/"))),c&&m.push(...f),m.map(y=>a.startsWith("/")&&y===""?"/":y)}function $A(a){a.sort((i,s)=>i.score!==s.score?s.score-i.score:s2(i.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var IA=/^:[\w-]+$/,t2=3,e2=2,n2=1,a2=10,i2=-2,hg=a=>a==="*";function l2(a,i){let s=a.split("/"),u=s.length;return s.some(hg)&&(u+=i2),i&&(u+=e2),s.filter(c=>!hg(c)).reduce((c,h)=>c+(IA.test(h)?t2:h===""?n2:a2),u)}function s2(a,i){return a.length===i.length&&a.slice(0,-1).every((u,c)=>u===i[c])?a[a.length-1]-i[i.length-1]:0}function u2(a,i,s=!1){let{routesMeta:u}=a,c={},h="/",f=[];for(let m=0;m<u.length;++m){let y=u[m],p=m===u.length-1,g=h==="/"?i:i.slice(h.length)||"/",S=Ru({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},g),b=y.route;if(!S&&p&&s&&!u[u.length-1].route.index&&(S=Ru({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},g)),!S)return null;Object.assign(c,S.params),f.push({params:c,pathname:tn([h,S.pathname]),pathnameBase:d2(tn([h,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(h=tn([h,S.pathnameBase]))}return f}function Ru(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,u]=r2(a.path,a.caseSensitive,a.end),c=i.match(s);if(!c)return null;let h=c[0],f=h.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:u.reduce((p,{paramName:g,isOptional:S},b)=>{if(g==="*"){let D=m[b]||"";f=h.slice(0,h.length-D.length).replace(/(.)\/+$/,"$1")}const A=m[b];return S&&!A?p[g]=void 0:p[g]=(A||"").replace(/%2F/g,"/"),p},{}),pathname:h,pathnameBase:f,pattern:a}}function r2(a,i=!1,s=!0){nn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let u=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,y,p,g)=>{if(u.push({paramName:m,isOptional:y!=null}),y){let S=g.charAt(p+f.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(u.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),u]}function o2(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return nn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Mn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,u=a.charAt(s);return u&&u!=="/"?null:a.slice(s)||"/"}var c2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function f2(a,i="/"){let{pathname:s,search:u="",hash:c=""}=typeof a=="string"?Ai(a):a,h;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?h=dg(s.substring(1),"/"):h=dg(s,i)):h=i,{pathname:h,search:m2(u),hash:p2(c)}}function dg(a,i){let s=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function xc(a,i,s,u){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function h2(a){return a.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function l0(a){let i=h2(a);return i.map((s,u)=>u===i.length-1?s.pathname:s.pathnameBase)}function Of(a,i,s,u=!1){let c;typeof a=="string"?c=Ai(a):(c={...a},_t(!c.pathname||!c.pathname.includes("?"),xc("?","pathname","search",c)),_t(!c.pathname||!c.pathname.includes("#"),xc("#","pathname","hash",c)),_t(!c.search||!c.search.includes("#"),xc("#","search","hash",c)));let h=a===""||c.pathname==="",f=h?"/":c.pathname,m;if(f==null)m=s;else{let S=i.length-1;if(!u&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}m=S>=0?i[S]:"/"}let y=f2(c,m),p=f&&f!=="/"&&f.endsWith("/"),g=(h||f===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(p||g)&&(y.pathname+="/"),y}var tn=a=>a.join("/").replace(/\/\/+/g,"/"),d2=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),m2=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,p2=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,y2=class{constructor(a,i,s,u=!1){this.status=a,this.statusText=i||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function g2(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function v2(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var s0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function u0(a,i){let s=a;if(typeof s!="string"||!c2.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,c=!1;if(s0)try{let h=new URL(window.location.href),f=s.startsWith("//")?new URL(h.protocol+s):new URL(s),m=Mn(f.pathname,i);f.origin===h.origin&&m!=null?s=m+f.search+f.hash:c=!0}catch{nn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var r0=["POST","PUT","PATCH","DELETE"];new Set(r0);var S2=["GET",...r0];new Set(S2);var Mi=M.createContext(null);Mi.displayName="DataRouter";var wu=M.createContext(null);wu.displayName="DataRouterState";var b2=M.createContext(!1),o0=M.createContext({isTransitioning:!1});o0.displayName="ViewTransition";var x2=M.createContext(new Map);x2.displayName="Fetchers";var T2=M.createContext(null);T2.displayName="Await";var qe=M.createContext(null);qe.displayName="Navigation";var Ll=M.createContext(null);Ll.displayName="Location";var Rn=M.createContext({outlet:null,matches:[],isDataRoute:!1});Rn.displayName="Route";var wf=M.createContext(null);wf.displayName="RouteError";var c0="REACT_ROUTER_ERROR",E2="REDIRECT",A2="ROUTE_ERROR_RESPONSE";function M2(a){if(a.startsWith(`${c0}:${E2}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function R2(a){if(a.startsWith(`${c0}:${A2}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new y2(i.status,i.statusText,i.data)}catch{}}function D2(a,{relative:i}={}){_t(Hl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:u}=M.useContext(qe),{hash:c,pathname:h,search:f}=ql(a,{relative:i}),m=h;return s!=="/"&&(m=h==="/"?s:tn([s,h])),u.createHref({pathname:m,search:f,hash:c})}function Hl(){return M.useContext(Ll)!=null}function Dn(){return _t(Hl(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(Ll).location}var f0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function h0(a){M.useContext(qe).static||M.useLayoutEffect(a)}function C2(){let{isDataRoute:a}=M.useContext(Rn);return a?Y2():z2()}function z2(){_t(Hl(),"useNavigate() may be used only in the context of a <Router> component.");let a=M.useContext(Mi),{basename:i,navigator:s}=M.useContext(qe),{matches:u}=M.useContext(Rn),{pathname:c}=Dn(),h=JSON.stringify(l0(u)),f=M.useRef(!1);return h0(()=>{f.current=!0}),M.useCallback((y,p={})=>{if(nn(f.current,f0),!f.current)return;if(typeof y=="number"){s.go(y);return}let g=Of(y,JSON.parse(h),c,p.relative==="path");a==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:tn([i,g.pathname])),(p.replace?s.replace:s.push)(g,p.state,p)},[i,s,h,c,a])}M.createContext(null);function ql(a,{relative:i}={}){let{matches:s}=M.useContext(Rn),{pathname:u}=Dn(),c=JSON.stringify(l0(s));return M.useMemo(()=>Of(a,JSON.parse(c),u,i==="path"),[a,c,u,i])}function O2(a,i){return d0(a,i)}function d0(a,i,s){var N;_t(Hl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=M.useContext(qe),{matches:c}=M.useContext(Rn),h=c[c.length-1],f=h?h.params:{},m=h?h.pathname:"/",y=h?h.pathnameBase:"/",p=h&&h.route;{let O=p&&p.path||"";p0(m,!p||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
67
+
68
+ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let g=Dn(),S;if(i){let O=typeof i=="string"?Ai(i):i;_t(y==="/"||((N=O.pathname)==null?void 0:N.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),S=O}else S=g;let b=S.pathname||"/",A=b;if(y!=="/"){let O=y.replace(/^\//,"").split("/");A="/"+b.replace(/^\//,"").split("/").slice(O.length).join("/")}let D=n0(a,{pathname:A});nn(p||D!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),nn(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let V=U2(D&&D.map(O=>Object.assign({},O,{params:Object.assign({},f,O.params),pathname:tn([y,u.encodeLocation?u.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:tn([y,u.encodeLocation?u.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),c,s);return i&&V?M.createElement(Ll.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},V):V}function w2(){let a=q2(),i=g2(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},f=null;return console.error("Error handled by React Router default ErrorBoundary:",a),f=M.createElement(M.Fragment,null,M.createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:h},"ErrorBoundary")," or"," ",M.createElement("code",{style:h},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},i),s?M.createElement("pre",{style:c},s):null,f)}var V2=M.createElement(w2,null),m0=class extends M.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=R2(a.digest);s&&(a=s)}let i=a!==void 0?M.createElement(Rn.Provider,{value:this.props.routeContext},M.createElement(wf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?M.createElement(N2,{error:a},i):i}};m0.contextType=b2;var Tc=new WeakMap;function N2({children:a,error:i}){let{basename:s}=M.useContext(qe);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=M2(i.digest);if(u){let c=Tc.get(i);if(c)throw c;let h=u0(u.location,s);if(s0&&!Tc.get(i))if(h.isExternal||u.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:u.replace}));throw Tc.set(i,f),f}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return a}function _2({routeContext:a,match:i,children:s}){let u=M.useContext(Mi);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),M.createElement(Rn.Provider,{value:a},s)}function U2(a,i=[],s){let u=s==null?void 0:s.state;if(a==null){if(!u)return null;if(u.errors)a=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)a=u.matches;else return null}let c=a,h=u==null?void 0:u.errors;if(h!=null){let g=c.findIndex(S=>S.route.id&&(h==null?void 0:h[S.route.id])!==void 0);_t(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let f=!1,m=-1;if(s&&u){f=u.renderFallback;for(let g=0;g<c.length;g++){let S=c[g];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(m=g),S.route.id){let{loaderData:b,errors:A}=u,D=S.route.loader&&!b.hasOwnProperty(S.route.id)&&(!A||A[S.route.id]===void 0);if(S.route.lazy||D){s.isStatic&&(f=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let y=s==null?void 0:s.onError,p=u&&y?(g,S)=>{var b,A;y(g,{location:u.location,params:((A=(b=u.matches)==null?void 0:b[0])==null?void 0:A.params)??{},unstable_pattern:v2(u.matches),errorInfo:S})}:void 0;return c.reduceRight((g,S,b)=>{let A,D=!1,V=null,N=null;u&&(A=h&&S.route.id?h[S.route.id]:void 0,V=S.route.errorElement||V2,f&&(m<0&&b===0?(p0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,N=null):m===b&&(D=!0,N=S.route.hydrateFallbackElement||null)));let O=i.concat(c.slice(0,b+1)),G=()=>{let B;return A?B=V:D?B=N:S.route.Component?B=M.createElement(S.route.Component,null):S.route.element?B=S.route.element:B=g,M.createElement(_2,{match:S,routeContext:{outlet:g,matches:O,isDataRoute:u!=null},children:B})};return u&&(S.route.ErrorBoundary||S.route.errorElement||b===0)?M.createElement(m0,{location:u.location,revalidation:u.revalidation,component:V,error:A,children:G(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:p}):G()},null)}function Vf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j2(a){let i=M.useContext(Mi);return _t(i,Vf(a)),i}function B2(a){let i=M.useContext(wu);return _t(i,Vf(a)),i}function L2(a){let i=M.useContext(Rn);return _t(i,Vf(a)),i}function Nf(a){let i=L2(a),s=i.matches[i.matches.length-1];return _t(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function H2(){return Nf("useRouteId")}function q2(){var u;let a=M.useContext(wf),i=B2("useRouteError"),s=Nf("useRouteError");return a!==void 0?a:(u=i.errors)==null?void 0:u[s]}function Y2(){let{router:a}=j2("useNavigate"),i=Nf("useNavigate"),s=M.useRef(!1);return h0(()=>{s.current=!0}),M.useCallback(async(c,h={})=>{nn(s.current,f0),s.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...h}))},[a,i])}var mg={};function p0(a,i,s){!i&&!mg[a]&&(mg[a]=!0,nn(!1,s))}M.memo(G2);function G2({routes:a,future:i,state:s,isStatic:u,onError:c}){return d0(a,void 0,{state:s,isStatic:u,onError:c})}function Fc(a){_t(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function X2({basename:a="/",children:i=null,location:s,navigationType:u="POP",navigator:c,static:h=!1,unstable_useTransitions:f}){_t(!Hl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),y=M.useMemo(()=>({basename:m,navigator:c,static:h,unstable_useTransitions:f,future:{}}),[m,c,h,f]);typeof s=="string"&&(s=Ai(s));let{pathname:p="/",search:g="",hash:S="",state:b=null,key:A="default",unstable_mask:D}=s,V=M.useMemo(()=>{let N=Mn(p,m);return N==null?null:{location:{pathname:N,search:g,hash:S,state:b,key:A,unstable_mask:D},navigationType:u}},[m,p,g,S,b,A,u,D]);return nn(V!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${S}" because it does not start with the basename, so the <Router> won't render anything.`),V==null?null:M.createElement(qe.Provider,{value:y},M.createElement(Ll.Provider,{children:i,value:V}))}function K2({children:a,location:i}){return O2(Pc(a),i)}function Pc(a,i=[]){let s=[];return M.Children.forEach(a,(u,c)=>{if(!M.isValidElement(u))return;let h=[...i,c];if(u.type===M.Fragment){s.push.apply(s,Pc(u.props.children,h));return}_t(u.type===Fc,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_t(!u.props.index||!u.props.children,"An index route cannot have child routes.");let f={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(f.children=Pc(u.props.children,h)),s.push(f)}),s}var yu="get",gu="application/x-www-form-urlencoded";function Vu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Q2(a){return Vu(a)&&a.tagName.toLowerCase()==="button"}function Z2(a){return Vu(a)&&a.tagName.toLowerCase()==="form"}function k2(a){return Vu(a)&&a.tagName.toLowerCase()==="input"}function J2(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function F2(a,i){return a.button===0&&(!i||i==="_self")&&!J2(a)}var ou=null;function P2(){if(ou===null)try{new FormData(document.createElement("form"),0),ou=!1}catch{ou=!0}return ou}var W2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ec(a){return a!=null&&!W2.has(a)?(nn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gu}"`),null):a}function $2(a,i){let s,u,c,h,f;if(Z2(a)){let m=a.getAttribute("action");u=m?Mn(m,i):null,s=a.getAttribute("method")||yu,c=Ec(a.getAttribute("enctype"))||gu,h=new FormData(a)}else if(Q2(a)||k2(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=a.getAttribute("formaction")||m.getAttribute("action");if(u=y?Mn(y,i):null,s=a.getAttribute("formmethod")||m.getAttribute("method")||yu,c=Ec(a.getAttribute("formenctype"))||Ec(m.getAttribute("enctype"))||gu,h=new FormData(m,a),!P2()){let{name:p,type:g,value:S}=a;if(g==="image"){let b=p?`${p}.`:"";h.append(`${b}x`,"0"),h.append(`${b}y`,"0")}else p&&h.append(p,S)}}else{if(Vu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=yu,u=null,c=gu,f=a}return h&&c==="text/plain"&&(f=h,h=void 0),{action:u,method:s.toLowerCase(),encType:c,formData:h,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _f(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function I2(a,i,s,u){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${u}`:c.pathname=`${c.pathname}.${u}`:c.pathname==="/"?c.pathname=`_root.${u}`:i&&Mn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${u}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${u}`,c}async function tM(a,i){if(a.id in i)return i[a.id];try{let s=await import(a.module);return i[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eM(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function nM(a,i,s){let u=await Promise.all(a.map(async c=>{let h=i.routes[c.route.id];if(h){let f=await tM(h,s);return f.links?f.links():[]}return[]}));return sM(u.flat(1).filter(eM).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function pg(a,i,s,u,c,h){let f=(y,p)=>s[p]?y.route.id!==s[p].route.id:!0,m=(y,p)=>{var g;return s[p].pathname!==y.pathname||((g=s[p].route.path)==null?void 0:g.endsWith("*"))&&s[p].params["*"]!==y.params["*"]};return h==="assets"?i.filter((y,p)=>f(y,p)||m(y,p)):h==="data"?i.filter((y,p)=>{var S;let g=u.routes[y.route.id];if(!g||!g.hasLoader)return!1;if(f(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let b=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=s[0])==null?void 0:S.params)||{},nextUrl:new URL(a,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function aM(a,i,{includeHydrateFallback:s}={}){return iM(a.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let h=[c.module];return c.clientActionModule&&(h=h.concat(c.clientActionModule)),c.clientLoaderModule&&(h=h.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(h=h.concat(c.hydrateFallbackModule)),c.imports&&(h=h.concat(c.imports)),h}).flat(1))}function iM(a){return[...new Set(a)]}function lM(a){let i={},s=Object.keys(a).sort();for(let u of s)i[u]=a[u];return i}function sM(a,i){let s=new Set;return new Set(i),a.reduce((u,c)=>{let h=JSON.stringify(lM(c));return s.has(h)||(s.add(h),u.push({key:h,link:c})),u},[])}function y0(){let a=M.useContext(Mi);return _f(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function uM(){let a=M.useContext(wu);return _f(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Uf=M.createContext(void 0);Uf.displayName="FrameworkContext";function g0(){let a=M.useContext(Uf);return _f(a,"You must render this element inside a <HydratedRouter> element"),a}function rM(a,i){let s=M.useContext(Uf),[u,c]=M.useState(!1),[h,f]=M.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:g,onTouchStart:S}=i,b=M.useRef(null);M.useEffect(()=>{if(a==="render"&&f(!0),a==="viewport"){let V=O=>{O.forEach(G=>{f(G.isIntersecting)})},N=new IntersectionObserver(V,{threshold:.5});return b.current&&N.observe(b.current),()=>{N.disconnect()}}},[a]),M.useEffect(()=>{if(u){let V=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(V)}}},[u]);let A=()=>{c(!0)},D=()=>{c(!1),f(!1)};return s?a!=="intent"?[h,b,{}]:[h,b,{onFocus:Tl(m,A),onBlur:Tl(y,D),onMouseEnter:Tl(p,A),onMouseLeave:Tl(g,D),onTouchStart:Tl(S,A)}]:[!1,b,{}]}function Tl(a,i){return s=>{a&&a(s),s.defaultPrevented||i(s)}}function oM({page:a,...i}){let{router:s}=y0(),u=M.useMemo(()=>n0(s.routes,a,s.basename),[s.routes,a,s.basename]);return u?M.createElement(fM,{page:a,matches:u,...i}):null}function cM(a){let{manifest:i,routeModules:s}=g0(),[u,c]=M.useState([]);return M.useEffect(()=>{let h=!1;return nM(a,i,s).then(f=>{h||c(f)}),()=>{h=!0}},[a,i,s]),u}function fM({page:a,matches:i,...s}){let u=Dn(),{future:c,manifest:h,routeModules:f}=g0(),{basename:m}=y0(),{loaderData:y,matches:p}=uM(),g=M.useMemo(()=>pg(a,i,p,h,u,"data"),[a,i,p,h,u]),S=M.useMemo(()=>pg(a,i,p,h,u,"assets"),[a,i,p,h,u]),b=M.useMemo(()=>{if(a===u.pathname+u.search+u.hash)return[];let V=new Set,N=!1;if(i.forEach(G=>{var Q;let B=h.routes[G.route.id];!B||!B.hasLoader||(!g.some(X=>X.route.id===G.route.id)&&G.route.id in y&&((Q=f[G.route.id])!=null&&Q.shouldRevalidate)||B.hasClientLoader?N=!0:V.add(G.route.id))}),V.size===0)return[];let O=I2(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return N&&V.size>0&&O.searchParams.set("_routes",i.filter(G=>V.has(G.route.id)).map(G=>G.route.id).join(",")),[O.pathname+O.search]},[m,c.unstable_trailingSlashAwareDataRequests,y,u,h,g,i,a,f]),A=M.useMemo(()=>aM(S,h),[S,h]),D=cM(S);return M.createElement(M.Fragment,null,b.map(V=>M.createElement("link",{key:V,rel:"prefetch",as:"fetch",href:V,...s})),A.map(V=>M.createElement("link",{key:V,rel:"modulepreload",href:V,...s})),D.map(({key:V,link:N})=>M.createElement("link",{key:V,nonce:s.nonce,...N,crossOrigin:N.crossOrigin??s.crossOrigin})))}function hM(...a){return i=>{a.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var dM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dM&&(window.__reactRouterVersion="7.13.1")}catch{}function mM({basename:a,children:i,unstable_useTransitions:s,window:u}){let c=M.useRef();c.current==null&&(c.current=kA({window:u,v5Compat:!0}));let h=c.current,[f,m]=M.useState({action:h.action,location:h.location}),y=M.useCallback(p=>{s===!1?m(p):M.startTransition(()=>m(p))},[s]);return M.useLayoutEffect(()=>h.listen(y),[h,y]),M.createElement(X2,{basename:a,children:i,location:f.location,navigationType:f.action,navigator:h,unstable_useTransitions:s})}var v0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Si=M.forwardRef(function({onClick:i,discover:s="render",prefetch:u="none",relative:c,reloadDocument:h,replace:f,unstable_mask:m,state:y,target:p,to:g,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:A,...D},V){let{basename:N,navigator:O,unstable_useTransitions:G}=M.useContext(qe),B=typeof g=="string"&&v0.test(g),Q=u0(g,N);g=Q.to;let X=D2(g,{relative:c}),tt=Dn(),J=null;if(m){let Vt=Of(m,[],tt.unstable_mask?tt.unstable_mask.pathname:"/",!0);N!=="/"&&(Vt.pathname=Vt.pathname==="/"?N:tn([N,Vt.pathname])),J=O.createHref(Vt)}let[k,at,St]=rM(u,D),wt=vM(g,{replace:f,unstable_mask:m,state:y,target:p,preventScrollReset:S,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:A,unstable_useTransitions:G});function Ut(Vt){i&&i(Vt),Vt.defaultPrevented||wt(Vt)}let ce=!(Q.isExternal||h),le=M.createElement("a",{...D,...St,href:(ce?J:void 0)||Q.absoluteURL||X,onClick:ce?Ut:i,ref:hM(V,at),target:p,"data-discover":!B&&s==="render"?"true":void 0});return k&&!B?M.createElement(M.Fragment,null,le,M.createElement(oM,{page:X})):le});Si.displayName="Link";var pM=M.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:u="",end:c=!1,style:h,to:f,viewTransition:m,children:y,...p},g){let S=ql(f,{relative:p.relative}),b=Dn(),A=M.useContext(wu),{navigator:D,basename:V}=M.useContext(qe),N=A!=null&&EM(S)&&m===!0,O=D.encodeLocation?D.encodeLocation(S).pathname:S.pathname,G=b.pathname,B=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;s||(G=G.toLowerCase(),B=B?B.toLowerCase():null,O=O.toLowerCase()),B&&V&&(B=Mn(B,V)||B);const Q=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let X=G===O||!c&&G.startsWith(O)&&G.charAt(Q)==="/",tt=B!=null&&(B===O||!c&&B.startsWith(O)&&B.charAt(O.length)==="/"),J={isActive:X,isPending:tt,isTransitioning:N},k=X?i:void 0,at;typeof u=="function"?at=u(J):at=[u,X?"active":null,tt?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let St=typeof h=="function"?h(J):h;return M.createElement(Si,{...p,"aria-current":k,className:at,ref:g,style:St,to:f,viewTransition:m},typeof y=="function"?y(J):y)});pM.displayName="NavLink";var yM=M.forwardRef(({discover:a="render",fetcherKey:i,navigate:s,reloadDocument:u,replace:c,state:h,method:f=yu,action:m,onSubmit:y,relative:p,preventScrollReset:g,viewTransition:S,unstable_defaultShouldRevalidate:b,...A},D)=>{let{unstable_useTransitions:V}=M.useContext(qe),N=xM(),O=TM(m,{relative:p}),G=f.toLowerCase()==="get"?"get":"post",B=typeof m=="string"&&v0.test(m),Q=X=>{if(y&&y(X),X.defaultPrevented)return;X.preventDefault();let tt=X.nativeEvent.submitter,J=(tt==null?void 0:tt.getAttribute("formmethod"))||f,k=()=>N(tt||X.currentTarget,{fetcherKey:i,method:J,navigate:s,replace:c,state:h,relative:p,preventScrollReset:g,viewTransition:S,unstable_defaultShouldRevalidate:b});V&&s!==!1?M.startTransition(()=>k()):k()};return M.createElement("form",{ref:D,method:G,action:O,onSubmit:u?y:Q,...A,"data-discover":!B&&a==="render"?"true":void 0})});yM.displayName="Form";function gM(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S0(a){let i=M.useContext(Mi);return _t(i,gM(a)),i}function vM(a,{target:i,replace:s,unstable_mask:u,state:c,preventScrollReset:h,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let g=C2(),S=Dn(),b=ql(a,{relative:f});return M.useCallback(A=>{if(F2(A,i)){A.preventDefault();let D=s!==void 0?s:Nl(S)===Nl(b),V=()=>g(a,{replace:D,unstable_mask:u,state:c,preventScrollReset:h,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:y});p?M.startTransition(()=>V()):V()}},[S,g,b,s,u,c,i,a,h,f,m,y,p])}var SM=0,bM=()=>`__${String(++SM)}__`;function xM(){let{router:a}=S0("useSubmit"),{basename:i}=M.useContext(qe),s=H2(),u=a.fetch,c=a.navigate;return M.useCallback(async(h,f={})=>{let{action:m,method:y,encType:p,formData:g,body:S}=$2(h,i);if(f.navigate===!1){let b=f.fetcherKey||bM();await u(b,s,f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:S,formMethod:f.method||y,formEncType:f.encType||p,flushSync:f.flushSync})}else await c(f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:S,formMethod:f.method||y,formEncType:f.encType||p,replace:f.replace,state:f.state,fromRouteId:s,flushSync:f.flushSync,viewTransition:f.viewTransition})},[u,c,i,s])}function TM(a,{relative:i}={}){let{basename:s}=M.useContext(qe),u=M.useContext(Rn);_t(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),h={...ql(a||".",{relative:i})},f=Dn();if(a==null){h.search=f.search;let m=new URLSearchParams(h.search),y=m.getAll("index");if(y.some(g=>g==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let g=m.toString();h.search=g?`?${g}`:""}}return(!a||a===".")&&c.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:tn([s,h.pathname])),Nl(h)}function EM(a,{relative:i}={}){let s=M.useContext(o0);_t(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=S0("useViewTransitionState"),c=ql(a,{relative:i});if(!s.isTransitioning)return!1;let h=Mn(s.currentLocation.pathname,u)||s.currentLocation.pathname,f=Mn(s.nextLocation.pathname,u)||s.nextLocation.pathname;return Ru(c.pathname,f)!=null||Ru(c.pathname,h)!=null}const En={hidden:{opacity:0,y:10},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}},exit:{opacity:0,y:-10,transition:{duration:.3,ease:[.16,1,.3,1]}}};function AM(){const[a,i]=M.useState(!1),s=async()=>{await navigator.clipboard.writeText("npx quark-daemon install-service"),i(!0),setTimeout(()=>i(!1),2e3)};return H.jsxs("div",{className:"flex flex-col gap-32",children:[H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,className:"space-y-8",children:[H.jsx("h1",{className:"text-2xl font-medium tracking-tight text-black",children:"the clipboard is broken."}),H.jsxs("div",{className:"space-y-6 text-lg text-zinc-500 leading-relaxed tracking-tight",children:[H.jsx("p",{children:"you copy text from a pdf. the line breaks shatter."}),H.jsx("p",{children:"you copy a link. tracking tags follow you."}),H.jsx("p",{children:"you copy a table. the formatting vanishes."}),H.jsx("p",{children:"you switch to your laptop. your clipboard is empty."}),H.jsx("p",{children:"it is a fundamental tool, yet it remains fundamentally flawed."})]})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.1},className:"space-y-8",children:[H.jsx("h2",{className:"text-2xl font-medium tracking-tight text-black",children:"enter quark."}),H.jsxs("div",{className:"space-y-6 text-lg text-zinc-500 leading-relaxed tracking-tight",children:[H.jsx("p",{children:"a silent, zero-configuration daemon that lives in your background. it requires no interface. it simply fixes what is broken."}),H.jsxs("ul",{className:"space-y-4 list-none p-0",children:[H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," heals broken pdf text automatically."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," strips tracking parameters from urls."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," transforms raw excel data into clean html tables."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," converts markdown tables and latex formulas into rich html."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," applies smart typographic quotes and normalizes shouted all-caps text."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," syncs across your mac, windows, and linux machines instantly via p2p."]}),H.jsxs("li",{className:"flex gap-4",children:[H.jsx("span",{className:"text-zinc-300",children:"โ€”"})," exposes your clipboard to local ai models via mcp."]})]})]})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.2},className:"space-y-8",children:[H.jsx("h2",{className:"text-2xl font-medium tracking-tight text-black",children:"installation."}),H.jsxs("div",{className:"bg-[#fafafa] rounded-2xl p-8 md:p-12 border border-zinc-100",children:[H.jsx("pre",{className:"font-mono text-xs text-zinc-300 mb-12 leading-tight tracking-widest select-none",children:` o-------o
69
+ | \\ / |
70
+ | o |
71
+ | / \\ |
72
+ o-------o`}),H.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 items-start sm:items-center justify-between",children:[H.jsx("code",{className:"font-mono text-sm text-zinc-800 bg-white px-3 py-1.5 rounded-md border border-zinc-200 shadow-sm",children:"npx quark-daemon install-service"}),H.jsx("button",{onClick:s,className:"text-sm font-medium text-zinc-400 hover:text-black transition-colors",children:a?"copied.":"copy command."})]})]}),H.jsxs("p",{className:"text-sm text-zinc-400 tracking-tight",children:["requires node.js. runs silently on mac, windows, and linux. open source. ",H.jsx(Si,{to:"/docs",className:"text-black hover:underline",children:"read the docs."})]})]})]})}function MM(){return H.jsxs("div",{className:"flex flex-col gap-24",children:[H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,className:"space-y-8",children:[H.jsx("h1",{className:"text-2xl font-medium tracking-tight text-black",children:"knowledge base."}),H.jsx("p",{className:"text-lg text-zinc-500 leading-relaxed tracking-tight",children:"everything you need to know about how quark operates under the hood."})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.1},className:"space-y-6",children:[H.jsx("h2",{className:"text-xl font-medium tracking-tight text-black",children:"1. the pipeline"}),H.jsxs("div",{className:"space-y-4 text-zinc-500 leading-relaxed tracking-tight",children:[H.jsx("p",{children:"quark intercepts your clipboard and runs it through a series of smart transformers before syncing or pasting."}),H.jsxs("ul",{className:"space-y-4 mt-4",children:[H.jsxs("li",{children:[H.jsx("strong",{className:"text-zinc-700 font-medium",children:"markdown & latex:"})," detects `$$math$$` and `| tables |` and compiles them into rich html on the fly."]}),H.jsxs("li",{children:[H.jsx("strong",{className:"text-zinc-700 font-medium",children:"excel & csv:"})," raw tab-separated or comma-separated values are instantly converted into styled html tables."]}),H.jsxs("li",{children:[H.jsx("strong",{className:"text-zinc-700 font-medium",children:"url sanitization:"})," automatically strips `utm_source`, `igshid`, and other tracking parameters from copied links."]}),H.jsxs("li",{children:[H.jsx("strong",{className:"text-zinc-700 font-medium",children:"typography:"})," detects language (english, french, german, spanish) and applies the correct smart quotes (ยซ ยป, โ€ž โ€œ, โ€œ โ€). normalizes all-caps shouting into sentence case."]}),H.jsxs("li",{children:[H.jsx("strong",{className:"text-zinc-700 font-medium",children:"pdf healing:"})," uses heuristics to detect and remove artificial line breaks caused by copying from pdfs."]})]})]})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.2},className:"space-y-6",children:[H.jsx("h2",{className:"text-xl font-medium tracking-tight text-black",children:"2. p2p sync"}),H.jsxs("div",{className:"space-y-4 text-zinc-500 leading-relaxed tracking-tight",children:[H.jsx("p",{children:"quark uses mdns (bonjour/zeroconf) to broadcast its presence on your local wi-fi network."}),H.jsx("p",{children:"when two devices running quark discover each other, they establish a direct websocket connection on port 41235. when you copy on one device, the payload (both plain text and rich html) is instantly pushed to the other."}),H.jsx("p",{children:"there are no cloud servers, no accounts, and no data leaves your local network."})]})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.3},className:"space-y-6",children:[H.jsx("h2",{className:"text-xl font-medium tracking-tight text-black",children:"3. ai integration (mcp)"}),H.jsxs("div",{className:"space-y-4 text-zinc-500 leading-relaxed tracking-tight",children:[H.jsx("p",{children:"quark acts as a model context protocol (mcp) server, allowing local ai agents like claude desktop or cursor to read and write to your clipboard."}),H.jsxs("p",{children:["to connect claude desktop, add this to your ",H.jsx("code",{className:"bg-zinc-100 px-1.5 py-0.5 rounded text-zinc-700 text-sm",children:"claude_desktop_config.json"}),":"]}),H.jsx("pre",{className:"bg-[#fafafa] p-6 rounded-xl border border-zinc-100 text-sm font-mono text-zinc-600 overflow-x-auto",children:`{
73
+ "mcpServers": {
74
+ "quark": {
75
+ "command": "npx",
76
+ "args": ["quark-daemon", "mcp"]
77
+ }
78
+ }
79
+ }`})]})]}),H.jsxs(Tn.section,{initial:"hidden",animate:"visible",exit:"exit",variants:En,transition:{delay:.4},className:"space-y-6",children:[H.jsx("h2",{className:"text-xl font-medium tracking-tight text-black",children:"4. cli reference"}),H.jsxs("div",{className:"space-y-4 text-zinc-500 leading-relaxed tracking-tight",children:[H.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 border-b border-zinc-100 pb-4",children:[H.jsx("code",{className:"text-sm font-mono text-zinc-800",children:"quark start"}),H.jsx("span",{className:"sm:col-span-2",children:"runs the daemon in the current terminal session."})]}),H.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 border-b border-zinc-100 pb-4",children:[H.jsx("code",{className:"text-sm font-mono text-zinc-800",children:"quark install"}),H.jsx("span",{className:"sm:col-span-2",children:"installs quark as a native background service (launchd, systemd, or windows startup)."})]}),H.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 border-b border-zinc-100 pb-4",children:[H.jsx("code",{className:"text-sm font-mono text-zinc-800",children:"quark stop"}),H.jsx("span",{className:"sm:col-span-2",children:"stops a manually started session."})]}),H.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 border-b border-zinc-100 pb-4",children:[H.jsx("code",{className:"text-sm font-mono text-zinc-800",children:"quark uninstall"}),H.jsx("span",{className:"sm:col-span-2",children:"removes the background service from your os."})]}),H.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 border-b border-zinc-100 pb-4",children:[H.jsx("code",{className:"text-sm font-mono text-zinc-800",children:"quark status"}),H.jsx("span",{className:"sm:col-span-2",children:"checks if the daemon is running and shows log locations."})]})]})]})]})}function RM(){const a=Dn();return M.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[a.pathname]),H.jsxs("div",{className:"min-h-screen bg-white text-zinc-900 font-sans lowercase selection:bg-zinc-200 selection:text-black",children:[H.jsx("nav",{className:"fixed top-0 w-full bg-white/80 backdrop-blur-md z-50 border-b border-zinc-100",children:H.jsxs("div",{className:"max-w-2xl mx-auto px-8 h-16 flex items-center justify-between text-sm tracking-tight",children:[H.jsxs(Si,{to:"/",className:"font-medium text-black hover:text-zinc-500 transition-colors flex items-center gap-2",children:[H.jsx("img",{src:"/quark/logo.svg",alt:"quark logo",className:"w-4 h-4"}),"quark."]}),H.jsxs("div",{className:"flex gap-6",children:[H.jsx(Si,{to:"/",className:`${a.pathname==="/"?"text-black":"text-zinc-400"} hover:text-black transition-colors`,children:"home."}),H.jsx(Si,{to:"/docs",className:`${a.pathname==="/docs"?"text-black":"text-zinc-400"} hover:text-black transition-colors`,children:"docs."}),H.jsx("a",{href:"https://github.com/sir-ad/quark",target:"_blank",rel:"noreferrer",className:"text-zinc-400 hover:text-black transition-colors",children:"github."})]})]})}),H.jsxs("main",{className:"max-w-2xl mx-auto px-8 pt-32 pb-32 md:pt-48",children:[H.jsx(HE,{mode:"wait",children:H.jsxs(K2,{location:a,children:[H.jsx(Fc,{path:"/",element:H.jsx(AM,{})}),H.jsx(Fc,{path:"/docs",element:H.jsx(MM,{})})]},a.pathname)}),H.jsxs(Tn.footer,{initial:"hidden",animate:"visible",variants:En,transition:{delay:.6},className:"pt-16 mt-32 border-t border-zinc-100 text-sm text-zinc-400 tracking-tight flex justify-between",children:[H.jsx("span",{children:"quark daemon."}),H.jsx("span",{children:"ยฉ 2026"})]})]})]})}function DM(){return H.jsx(mM,{basename:"/quark",children:H.jsx(RM,{})})}$1.createRoot(document.getElementById("root")).render(H.jsx(M.StrictMode,{children:H.jsx(DM,{})}));