@scenar/cli 0.4.0 → 0.5.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.
@@ -1,147 +0,0 @@
1
- var Fo={exports:{}},xl={};/**
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 Rp;function jS(){if(Rp)return xl;Rp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:d}}return xl.Fragment=i,xl.jsx=s,xl.jsxs=s,xl}var wp;function VS(){return wp||(wp=1,Fo.exports=jS()),Fo.exports}var C=VS(),Wo={exports:{}},ot={};/**
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 zp;function NS(){if(zp)return ot;zp=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"),d=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"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function x(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function B(E,H,F){this.props=E,this.context=H,this.refs=_,this.updater=F||A}B.prototype.isReactComponent={},B.prototype.setState=function(E,H){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,H,"setState")},B.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=B.prototype;function U(E,H,F){this.props=E,this.context=H,this.refs=_,this.updater=F||A}var X=U.prototype=new Y;X.constructor=U,w(X,B.prototype),X.isPureReactComponent=!0;var K=Array.isArray;function $(){}var k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Z(E,H,F){var I=F.ref;return{$$typeof:a,type:E,key:H,ref:I!==void 0?I:null,props:F}}function J(E,H){return Z(E.type,H,E.props)}function nt(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function lt(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(F){return H[F]})}var Ct=/\/+/g;function At(E,H){return typeof E=="object"&&E!==null&&E.key!=null?lt(""+E.key):H.toString(36)}function zt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then($,$):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function V(E,H,F,I,st){var ht=typeof E;(ht==="undefined"||ht==="boolean")&&(E=null);var St=!1;if(E===null)St=!0;else switch(ht){case"bigint":case"string":case"number":St=!0;break;case"object":switch(E.$$typeof){case a:case i:St=!0;break;case v:return St=E._init,V(St(E._payload),H,F,I,st)}}if(St)return st=st(E),St=I===""?"."+At(E,0):I,K(st)?(F="",St!=null&&(F=St.replace(Ct,"$&/")+"/"),V(st,H,F,"",function(aa){return aa})):st!=null&&(nt(st)&&(st=J(st,F+(st.key==null||E&&E.key===st.key?"":(""+st.key).replace(Ct,"$&/")+"/")+St)),H.push(st)),1;St=0;var Lt=I===""?".":I+":";if(K(E))for(var jt=0;jt<E.length;jt++)I=E[jt],ht=Lt+At(I,jt),St+=V(I,H,F,ht,st);else if(jt=x(E),typeof jt=="function")for(E=jt.call(E),jt=0;!(I=E.next()).done;)I=I.value,ht=Lt+At(I,jt++),St+=V(I,H,F,ht,st);else if(ht==="object"){if(typeof E.then=="function")return V(zt(E),H,F,I,st);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return St}function Q(E,H,F){if(E==null)return E;var I=[],st=0;return V(E,I,"","",function(ht){return H.call(F,ht,st++)}),I}function W(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(F){(E._status===0||E._status===-1)&&(E._status=1,E._result=F)},function(F){(E._status===0||E._status===-1)&&(E._status=2,E._result=F)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var rt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ft={map:Q,forEach:function(E,H,F){Q(E,function(){H.apply(this,arguments)},F)},count:function(E){var H=0;return Q(E,function(){H++}),H},toArray:function(E){return Q(E,function(H){return H})||[]},only:function(E){if(!nt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=g,ot.Children=ft,ot.Component=B,ot.Fragment=s,ot.Profiler=c,ot.PureComponent=U,ot.StrictMode=u,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,H,F){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var I=w({},E.props),st=E.key;if(H!=null)for(ht in H.key!==void 0&&(st=""+H.key),H)!P.call(H,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&H.ref===void 0||(I[ht]=H[ht]);var ht=arguments.length-2;if(ht===1)I.children=F;else if(1<ht){for(var St=Array(ht),Lt=0;Lt<ht;Lt++)St[Lt]=arguments[Lt+2];I.children=St}return Z(E.type,st,I)},ot.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,H,F){var I,st={},ht=null;if(H!=null)for(I in H.key!==void 0&&(ht=""+H.key),H)P.call(H,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(st[I]=H[I]);var St=arguments.length-2;if(St===1)st.children=F;else if(1<St){for(var Lt=Array(St),jt=0;jt<St;jt++)Lt[jt]=arguments[jt+2];st.children=Lt}if(E&&E.defaultProps)for(I in St=E.defaultProps,St)st[I]===void 0&&(st[I]=St[I]);return Z(E,ht,st)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:m,render:E}},ot.isValidElement=nt,ot.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:W}},ot.memo=function(E,H){return{$$typeof:p,type:E,compare:H===void 0?null:H}},ot.startTransition=function(E){var H=k.T,F={};k.T=F;try{var I=E(),st=k.S;st!==null&&st(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then($,rt)}catch(ht){rt(ht)}finally{H!==null&&F.types!==null&&(H.types=F.types),k.T=H}},ot.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ot.use=function(E){return k.H.use(E)},ot.useActionState=function(E,H,F){return k.H.useActionState(E,H,F)},ot.useCallback=function(E,H){return k.H.useCallback(E,H)},ot.useContext=function(E){return k.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,H){return k.H.useDeferredValue(E,H)},ot.useEffect=function(E,H){return k.H.useEffect(E,H)},ot.useEffectEvent=function(E){return k.H.useEffectEvent(E)},ot.useId=function(){return k.H.useId()},ot.useImperativeHandle=function(E,H,F){return k.H.useImperativeHandle(E,H,F)},ot.useInsertionEffect=function(E,H){return k.H.useInsertionEffect(E,H)},ot.useLayoutEffect=function(E,H){return k.H.useLayoutEffect(E,H)},ot.useMemo=function(E,H){return k.H.useMemo(E,H)},ot.useOptimistic=function(E,H){return k.H.useOptimistic(E,H)},ot.useReducer=function(E,H,F){return k.H.useReducer(E,H,F)},ot.useRef=function(E){return k.H.useRef(E)},ot.useState=function(E){return k.H.useState(E)},ot.useSyncExternalStore=function(E,H,F){return k.H.useSyncExternalStore(E,H,F)},ot.useTransition=function(){return k.H.useTransition()},ot.version="19.2.5",ot}var Op;function Jc(){return Op||(Op=1,Wo.exports=NS()),Wo.exports}var D=Jc(),$o={exports:{}},Al={},Io={exports:{}},tc={};/**
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 _p;function BS(){return _p||(_p=1,function(a){function i(V,Q){var W=V.length;V.push(Q);t:for(;0<W;){var rt=W-1>>>1,ft=V[rt];if(0<c(ft,Q))V[rt]=Q,V[W]=ft,W=rt;else break t}}function s(V){return V.length===0?null:V[0]}function u(V){if(V.length===0)return null;var Q=V[0],W=V.pop();if(W!==Q){V[0]=W;t:for(var rt=0,ft=V.length,E=ft>>>1;rt<E;){var H=2*(rt+1)-1,F=V[H],I=H+1,st=V[I];if(0>c(F,W))I<ft&&0>c(st,F)?(V[rt]=st,V[I]=W,rt=I):(V[rt]=F,V[H]=W,rt=H);else if(I<ft&&0>c(st,W))V[rt]=st,V[I]=W,rt=I;else break t}}return Q}function c(V,Q){var W=V.sortIndex-Q.sortIndex;return W!==0?W:V.id-Q.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],v=1,g=null,b=3,x=!1,A=!1,w=!1,_=!1,B=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function X(V){for(var Q=s(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=V)u(p),Q.sortIndex=Q.expirationTime,i(y,Q);else break;Q=s(p)}}function K(V){if(w=!1,X(V),!A)if(s(y)!==null)A=!0,$||($=!0,lt());else{var Q=s(p);Q!==null&&zt(K,Q.startTime-V)}}var $=!1,k=-1,P=5,Z=-1;function J(){return _?!0:!(a.unstable_now()-Z<P)}function nt(){if(_=!1,$){var V=a.unstable_now();Z=V;var Q=!0;try{t:{A=!1,w&&(w=!1,Y(k),k=-1),x=!0;var W=b;try{e:{for(X(V),g=s(y);g!==null&&!(g.expirationTime>V&&J());){var rt=g.callback;if(typeof rt=="function"){g.callback=null,b=g.priorityLevel;var ft=rt(g.expirationTime<=V);if(V=a.unstable_now(),typeof ft=="function"){g.callback=ft,X(V),Q=!0;break e}g===s(y)&&u(y),X(V)}else u(y);g=s(y)}if(g!==null)Q=!0;else{var E=s(p);E!==null&&zt(K,E.startTime-V),Q=!1}}break t}finally{g=null,b=W,x=!1}Q=void 0}}finally{Q?lt():$=!1}}}var lt;if(typeof U=="function")lt=function(){U(nt)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,At=Ct.port2;Ct.port1.onmessage=nt,lt=function(){At.postMessage(null)}}else lt=function(){B(nt,0)};function zt(V,Q){k=B(function(){V(a.unstable_now())},Q)}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(V){V.callback=null},a.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(V){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var W=b;b=Q;try{return V()}finally{b=W}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=b;b=V;try{return Q()}finally{b=W}},a.unstable_scheduleCallback=function(V,Q,W){var rt=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?rt+W:rt):W=rt,V){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=W+ft,V={id:v++,callback:Q,priorityLevel:V,startTime:W,expirationTime:ft,sortIndex:-1},W>rt?(V.sortIndex=W,i(p,V),s(y)===null&&V===s(p)&&(w?(Y(k),k=-1):w=!0,zt(K,W-rt))):(V.sortIndex=ft,i(y,V),A||x||(A=!0,$||($=!0,lt()))),V},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(V){var Q=b;return function(){var W=b;b=Q;try{return V.apply(this,arguments)}finally{b=W}}}}(tc)),tc}var jp;function US(){return jp||(jp=1,Io.exports=BS()),Io.exports}var ec={exports:{}},re={};/**
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 Vp;function LS(){if(Vp)return re;Vp=1;var a=Jc();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}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 d(y,p,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:y,containerInfo:p,implementation:v}}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 re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,re.createPortal=function(y,p){var v=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 d(y,p,null,v)},re.flushSync=function(y){var p=f.T,v=u.p;try{if(f.T=null,u.p=2,y)return y()}finally{f.T=p,u.p=v,u.d.f()}},re.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))},re.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},re.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,g=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:x}):v==="script"&&u.d.X(y,{crossOrigin:g,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},re.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:v,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)},re.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,g=m(v,p.crossOrigin);u.d.L(y,v,{crossOrigin:g,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})}},re.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},re.requestFormReset=function(y){u.d.r(y)},re.unstable_batchedUpdates=function(y,p){return y(p)},re.useFormState=function(y,p,v){return f.H.useFormState(y,p,v)},re.useFormStatus=function(){return f.H.useHostTransitionStatus()},re.version="19.2.5",re}var Np;function HS(){if(Np)return ec.exports;Np=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(),ec.exports=LS(),ec.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 Bp;function YS(){if(Bp)return Al;Bp=1;var a=US(),i=Jc(),s=HS();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 d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function 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(d(t)!==t)throw Error(u(188))}function p(t){var e=t.alternate;if(!e){if(e=d(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 h=!1,S=r.child;S;){if(S===n){h=!0,n=r,l=o;break}if(S===l){h=!0,l=r,n=o;break}S=S.sibling}if(!h){for(S=o.child;S;){if(S===n){h=!0,n=o,l=r;break}if(S===l){h=!0,l=o,n=r;break}S=S.sibling}if(!h)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 v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),U=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),nt=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=nt&&t[nt]||t["@@iterator"],typeof t=="function"?t:null)}var Ct=Symbol.for("react.client.reference");function At(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case B:return"Profiler";case _:return"StrictMode";case K:return"Suspense";case $:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case U:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:At(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return At(t(e))}catch{}}return null}var zt=Array.isArray,V=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},rt=[],ft=-1;function E(t){return{current:t}}function H(t){0>ft||(t.current=rt[ft],rt[ft]=null,ft--)}function F(t,e){ft++,rt[ft]=t.current,t.current=e}var I=E(null),st=E(null),ht=E(null),St=E(null);function Lt(t,e){switch(F(ht,e),F(st,t),F(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Wm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Wm(e),t=$m(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(I),F(I,t)}function jt(){H(I),H(st),H(ht)}function aa(t){t.memoizedState!==null&&F(St,t);var e=I.current,n=$m(e,t.type);e!==n&&(F(st,t),F(I,n))}function Mn(t){st.current===t&&(H(I),H(st)),St.current===t&&(H(St),vl._currentValue=W)}var Ra,Hl;function sn(t){if(Ra===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ra=e&&e[1]||"",Hl=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ra+t+Hl}var wa=!1;function za(t,e){if(!t||wa)return"";wa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(N){var j=N}Reflect.construct(t,[],G)}else{try{G.call()}catch(N){j=N}t.call(G.prototype)}}else{try{throw Error()}catch(N){j=N}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&j&&typeof N.stack=="string")return[N.stack,j.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(),h=o[0],S=o[1];if(h&&S){var T=h.split(`
44
- `),O=S.split(`
45
- `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===O.length)for(l=T.length-1,r=O.length-1;1<=l&&0<=r&&T[l]!==O[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==O[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==O[r]){var L=`
46
- `+T[l].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=l&&0<=r);break}}}finally{wa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?sn(n):""}function Di(t,e){switch(t.tag){case 26:case 27:case 5:return sn(t.type);case 16:return sn("Lazy");case 13:return t.child!==e&&e!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return za(t.type,!1);case 11:return za(t.type.render,!1);case 1:return za(t.type,!0);case 31:return sn("Activity");default:return""}}function Yl(t){try{var e="",n=null;do e+=Di(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var Ri=Object.prototype.hasOwnProperty,Oa=a.unstable_scheduleCallback,wi=a.unstable_cancelCallback,de=a.unstable_shouldYield,ze=a.unstable_requestPaint,kt=a.unstable_now,Bu=a.unstable_getCurrentPriorityLevel,wf=a.unstable_ImmediatePriority,zf=a.unstable_UserBlockingPriority,ql=a.unstable_NormalPriority,mv=a.unstable_LowPriority,Of=a.unstable_IdlePriority,pv=a.log,yv=a.unstable_setDisableYieldValue,zi=null,be=null;function Cn(t){if(typeof pv=="function"&&yv(t),be&&typeof be.setStrictMode=="function")try{be.setStrictMode(zi,t)}catch{}}var Te=Math.clz32?Math.clz32:Sv,gv=Math.log,vv=Math.LN2;function Sv(t){return t>>>=0,t===0?32:31-(gv(t)/vv|0)|0}var Gl=256,Xl=262144,kl=4194304;function ia(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,h=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~o,l!==0?r=ia(l):(h&=S,h!==0?r=ia(h):n||(n=S&~t,n!==0&&(r=ia(n))))):(S=l&~o,S!==0?r=ia(S):h!==0?r=ia(h):n||(n=l&~t,n!==0&&(r=ia(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 Oi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function bv(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 _f(){var t=kl;return kl<<=1,(kl&62914560)===0&&(kl=4194304),t}function Uu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _i(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Tv(t,e,n,l,r,o){var h=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 S=t.entanglements,T=t.expirationTimes,O=t.hiddenUpdates;for(n=h&~n;0<n;){var L=31-Te(n),G=1<<L;S[L]=0,T[L]=-1;var j=O[L];if(j!==null)for(O[L]=null,L=0;L<j.length;L++){var N=j[L];N!==null&&(N.lane&=-536870913)}n&=~G}l!==0&&jf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function jf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Te(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Vf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Te(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Nf(t,e){var n=e&-e;return n=(n&42)!==0?1:Lu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Lu(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 Hu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bf(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Tp(t.type))}function Uf(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var Dn=Math.random().toString(36).slice(2),ee="__reactFiber$"+Dn,he="__reactProps$"+Dn,_a="__reactContainer$"+Dn,Yu="__reactEvents$"+Dn,xv="__reactListeners$"+Dn,Av="__reactHandles$"+Dn,Lf="__reactResources$"+Dn,ji="__reactMarker$"+Dn;function qu(t){delete t[ee],delete t[he],delete t[Yu],delete t[xv],delete t[Av]}function ja(t){var e=t[ee];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_a]||n[ee]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=lp(t);t!==null;){if(n=t[ee])return n;t=lp(t)}return e}t=n,n=t.parentNode}return null}function Va(t){if(t=t[ee]||t[_a]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Vi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Na(t){var e=t[Lf];return e||(e=t[Lf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[ji]=!0}var Hf=new Set,Yf={};function la(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Yf[t]=e,t=0;t<e.length;t++)Hf.add(e[t])}var Ev=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]*$"),qf={},Gf={};function Mv(t){return Ri.call(Gf,t)?!0:Ri.call(qf,t)?!1:Ev.test(t)?Gf[t]=!0:(qf[t]=!0,!1)}function Ql(t,e,n){if(Mv(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 Kl(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 un(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 Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cv(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(h){n=""+h,o.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gu(t){if(!t._valueTracker){var e=Xf(t)?"checked":"value";t._valueTracker=Cv(t,e,""+t[e])}}function kf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Xf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Jl(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 Dv=/[\n"\\]/g;function _e(t){return t.replace(Dv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Xu(t,e,n,l,r,o,h,S){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?ku(t,h,Oe(e)):n!=null?ku(t,h,Oe(n)):l!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+Oe(S):t.removeAttribute("name")}function Zf(t,e,n,l,r,o,h,S){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)){Gu(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Gu(t)}function ku(t,e,n){e==="number"&&Jl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ua(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=""+Oe(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 Qf(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Kf(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(zt(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Gu(t)}function La(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Rv=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 Jf(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||Rv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Pf(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&&Jf(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&Jf(t,o,e[o])}function Zu(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 wv=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"]]),zv=/^[\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 zv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rn(){}var Qu=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,Ya=null;function Ff(t){var e=Va(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Xu(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="'+_e(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[he]||null;if(!r)throw Error(u(90));Xu(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&&kf(l)}break t;case"textarea":Qf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var Ju=!1;function Wf(t,e,n){if(Ju)return t(e,n);Ju=!0;try{var l=t(e);return l}finally{if(Ju=!1,(Ha!==null||Ya!==null)&&(Bs(),Ha&&(e=Ha,t=Ya,Ya=Ha=null,Ff(e),t)))for(e=0;e<t.length;e++)Ff(t[e])}}function Ni(t,e){var n=t.stateNode;if(n===null)return null;var l=n[he]||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 on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=!1;if(on)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{Pu=!1}var Rn=null,Fu=null,Fl=null;function $f(){if(Fl)return Fl;var t,e=Fu,n=e.length,l,r="value"in Rn?Rn.value:Rn.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[o-l];l++);return Fl=r.slice(t,1<l?1-l:void 0)}function Wl(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 $l(){return!0}function If(){return!1}function me(t){function e(n,l,r,o,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(o):o[S]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?$l:If,this.isPropagationStopped=If,this}return g(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=$l)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),e}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Il=me(sa),Ui=g({},sa,{view:0,detail:0}),Ov=me(Ui),Wu,$u,Li,ts=g({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,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!==Li&&(Li&&t.type==="mousemove"?(Wu=t.screenX-Li.screenX,$u=t.screenY-Li.screenY):$u=Wu=0,Li=t),Wu)},movementY:function(t){return"movementY"in t?t.movementY:$u}}),td=me(ts),_v=g({},ts,{dataTransfer:0}),jv=me(_v),Vv=g({},Ui,{relatedTarget:0}),Iu=me(Vv),Nv=g({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Bv=me(Nv),Uv=g({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Lv=me(Uv),Hv=g({},sa,{data:0}),ed=me(Hv),Yv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Gv[t])?!!e[t]:!1}function tr(){return Xv}var kv=g({},Ui,{key:function(t){if(t.key){var e=Yv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Wl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?qv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(t){return t.type==="keypress"?Wl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Wl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Zv=me(kv),Qv=g({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nd=me(Qv),Kv=g({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr}),Jv=me(Kv),Pv=g({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fv=me(Pv),Wv=g({},ts,{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}),$v=me(Wv),Iv=g({},sa,{newState:0,oldState:0}),t1=me(Iv),e1=[9,13,27,32],er=on&&"CompositionEvent"in window,Hi=null;on&&"documentMode"in document&&(Hi=document.documentMode);var n1=on&&"TextEvent"in window&&!Hi,ad=on&&(!er||Hi&&8<Hi&&11>=Hi),id=" ",ld=!1;function sd(t,e){switch(t){case"keyup":return e1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ud(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function a1(t,e){switch(t){case"compositionend":return ud(e);case"keypress":return e.which!==32?null:(ld=!0,id);case"textInput":return t=e.data,t===id&&ld?null:t;default:return null}}function i1(t,e){if(qa)return t==="compositionend"||!er&&sd(t,e)?(t=$f(),Fl=Fu=Rn=null,qa=!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 ad&&e.locale!=="ko"?null:e.data;default:return null}}var l1={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 rd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!l1[t.type]:e==="textarea"}function od(t,e,n,l){Ha?Ya?Ya.push(l):Ya=[l]:Ha=l,e=Xs(e,"onChange"),0<e.length&&(n=new Il("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Yi=null,qi=null;function s1(t){Zm(t,0)}function es(t){var e=Vi(t);if(kf(e))return t}function cd(t,e){if(t==="change")return e}var fd=!1;if(on){var nr;if(on){var ar="oninput"in document;if(!ar){var dd=document.createElement("div");dd.setAttribute("oninput","return;"),ar=typeof dd.oninput=="function"}nr=ar}else nr=!1;fd=nr&&(!document.documentMode||9<document.documentMode)}function hd(){Yi&&(Yi.detachEvent("onpropertychange",md),qi=Yi=null)}function md(t){if(t.propertyName==="value"&&es(qi)){var e=[];od(e,qi,t,Ku(t)),Wf(s1,e)}}function u1(t,e,n){t==="focusin"?(hd(),Yi=e,qi=n,Yi.attachEvent("onpropertychange",md)):t==="focusout"&&hd()}function r1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return es(qi)}function o1(t,e){if(t==="click")return es(e)}function c1(t,e){if(t==="input"||t==="change")return es(e)}function f1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:f1;function Gi(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(!Ri.call(e,r)||!xe(t[r],e[r]))return!1}return!0}function pd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yd(t,e){var n=pd(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=pd(n)}}function gd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?gd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Jl(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=Jl(t.document)}return e}function ir(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 d1=on&&"documentMode"in document&&11>=document.documentMode,Ga=null,lr=null,Xi=null,sr=!1;function Sd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sr||Ga==null||Ga!==Jl(l)||(l=Ga,"selectionStart"in l&&ir(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}),Xi&&Gi(Xi,l)||(Xi=l,l=Xs(lr,"onSelect"),0<l.length&&(e=new Il("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ga)))}function ua(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Xa={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},ur={},bd={};on&&(bd=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function ra(t){if(ur[t])return ur[t];if(!Xa[t])return t;var e=Xa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in bd)return ur[t]=e[n];return t}var Td=ra("animationend"),xd=ra("animationiteration"),Ad=ra("animationstart"),h1=ra("transitionrun"),m1=ra("transitionstart"),p1=ra("transitioncancel"),Ed=ra("transitionend"),Md=new Map,rr="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(" ");rr.push("scrollEnd");function Xe(t,e){Md.set(t,e),la(e,[t])}var ns=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)},je=[],ka=0,or=0;function as(){for(var t=ka,e=or=ka=0;e<t;){var n=je[e];je[e++]=null;var l=je[e];je[e++]=null;var r=je[e];je[e++]=null;var o=je[e];if(je[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}o!==0&&Cd(n,r,o)}}function is(t,e,n,l){je[ka++]=t,je[ka++]=e,je[ka++]=n,je[ka++]=l,or|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function cr(t,e,n,l){return is(t,e,n,l),ls(t)}function oa(t,e){return is(t,null,null,e),ls(t)}function Cd(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-Te(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function ls(t){if(50<fl)throw fl=0,bo=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function y1(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 Ae(t,e,n,l){return new y1(t,e,n,l)}function fr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Ae(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 Dd(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 ss(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")fr(t)&&(h=1);else if(typeof t=="string")h=TS(t,n,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=Ae(31,n,e,r),t.elementType=Z,t.lanes=o,t;case w:return ca(n.children,r,o,e);case _:h=8,r|=24;break;case B:return t=Ae(12,n,e,r|2),t.elementType=B,t.lanes=o,t;case K:return t=Ae(13,n,e,r),t.elementType=K,t.lanes=o,t;case $:return t=Ae(19,n,e,r),t.elementType=$,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:h=10;break t;case Y:h=9;break t;case X:h=11;break t;case k:h=14;break t;case P:h=16,l=null;break t}h=29,n=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Ae(h,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function ca(t,e,n,l){return t=Ae(7,t,l,e),t.lanes=n,t}function dr(t,e,n){return t=Ae(6,t,null,e),t.lanes=n,t}function Rd(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function hr(t,e,n){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var wd=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=wd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Yl(e)},wd.set(t,e),e)}return{value:t,source:e,stack:Yl(e)}}var Qa=[],Ka=0,us=null,ki=0,Ne=[],Be=0,wn=null,Fe=1,We="";function fn(t,e){Qa[Ka++]=ki,Qa[Ka++]=us,us=t,ki=e}function zd(t,e,n){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=wn,wn=t;var l=Fe;t=We;var r=32-Te(l)-1;l&=~(1<<r),n+=1;var o=32-Te(e)+r;if(30<o){var h=r-r%5;o=(l&(1<<h)-1).toString(32),l>>=h,r-=h,Fe=1<<32-Te(e)+r|n<<r|l,We=o+t}else Fe=1<<o|n<<r|l,We=t}function mr(t){t.return!==null&&(fn(t,1),zd(t,1,0))}function pr(t){for(;t===us;)us=Qa[--Ka],Qa[Ka]=null,ki=Qa[--Ka],Qa[Ka]=null;for(;t===wn;)wn=Ne[--Be],Ne[Be]=null,We=Ne[--Be],Ne[Be]=null,Fe=Ne[--Be],Ne[Be]=null}function Od(t,e){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=wn,Fe=e.id,We=e.overflow,wn=t}var ne=null,Vt=null,vt=!1,zn=null,Ue=!1,yr=Error(u(519));function On(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(Ve(e,t)),yr}function _d(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ee]=t,e[he]=l,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<hl.length;n++)pt(hl[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Zf(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Kf(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||Pm(e.textContent,n)?(l.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),l.onScroll!=null&&pt("scroll",e),l.onScrollEnd!=null&&pt("scrollend",e),l.onClick!=null&&(e.onclick=rn),e=!0):e=!1,e||On(t,!0)}function jd(t){for(ne=t.return;ne;)switch(ne.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:ne=ne.return}}function Ja(t){if(t!==ne)return!1;if(!vt)return jd(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||No(t.type,t.memoizedProps)),n=!n),n&&Vt&&On(t),jd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=ip(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=ip(t)}else e===27?(e=Vt,Zn(t.type)?(t=Yo,Yo=null,Vt=t):Vt=e):Vt=ne?He(t.stateNode.nextSibling):null;return!0}function fa(){Vt=ne=null,vt=!1}function gr(){var t=zn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),zn=null),t}function Zi(t){zn===null?zn=[t]:zn.push(t)}var vr=E(null),da=null,dn=null;function _n(t,e,n){F(vr,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=vr.current,H(vr)}function Sr(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 br(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var o=r.dependencies;if(o!==null){var h=r.child;o=o.firstContext;t:for(;o!==null;){var S=o;o=r;for(var T=0;T<e.length;T++)if(S.context===e[T]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),Sr(o.return,n,t),l||(h=null);break t}o=S.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(u(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Sr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Pa(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 h=r.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var S=r.type;xe(r.pendingProps.value,h.value)||(t!==null?t.push(S):t=[S])}}else if(r===St.current){if(h=r.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(vl):t=[vl])}r=r.return}t!==null&&br(e,t,n,l),e.flags|=262144}function rs(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ae(t){return Vd(da,t)}function os(t,e){return da===null&&ha(t),Vd(t,e)}function Vd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(u(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var g1=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()})}},v1=a.unstable_scheduleCallback,S1=a.unstable_NormalPriority,Zt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tr(){return{controller:new g1,data:new Map,refCount:0}}function Qi(t){t.refCount--,t.refCount===0&&v1(S1,function(){t.controller.abort()})}var Ki=null,xr=0,Fa=0,Wa=null;function b1(t,e){if(Ki===null){var n=Ki=[];xr=0,Fa=Co(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return xr++,e.then(Nd,Nd),e}function Nd(){if(--xr===0&&Ki!==null){Wa!==null&&(Wa.status="fulfilled");var t=Ki;Ki=null,Fa=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function T1(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 Bd=V.S;V.S=function(t,e){Sm=kt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&b1(t,e),Bd!==null&&Bd(t,e)};var ma=E(null);function Ar(){var t=ma.current;return t!==null?t:Ot.pooledCache}function cs(t,e){e===null?F(ma,ma.current):F(ma,e.pool)}function Ud(){var t=Ar();return t===null?null:{parent:Zt._currentValue,pool:t}}var $a=Error(u(460)),Er=Error(u(474)),fs=Error(u(542)),ds={then:function(){}};function Ld(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Hd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(rn,rn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qd(t),t;default:if(typeof e.status=="string")e.then(rn,rn);else{if(t=Ot,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,qd(t),t}throw ya=e,$a}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ya=n,$a):n}}var ya=null;function Yd(){if(ya===null)throw Error(u(459));var t=ya;return ya=null,t}function qd(t){if(t===$a||t===fs)throw Error(u(483))}var Ia=null,Ji=0;function hs(t){var e=Ji;return Ji+=1,Ia===null&&(Ia=[]),Hd(Ia,t,e)}function Pi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ms(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 Gd(t){function e(R,M){if(t){var z=R.deletions;z===null?(R.deletions=[M],R.flags|=16):z.push(M)}}function n(R,M){if(!t)return null;for(;M!==null;)e(R,M),M=M.sibling;return null}function l(R){for(var M=new Map;R!==null;)R.key!==null?M.set(R.key,R):M.set(R.index,R),R=R.sibling;return M}function r(R,M){return R=cn(R,M),R.index=0,R.sibling=null,R}function o(R,M,z){return R.index=z,t?(z=R.alternate,z!==null?(z=z.index,z<M?(R.flags|=67108866,M):z):(R.flags|=67108866,M)):(R.flags|=1048576,M)}function h(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function S(R,M,z,q){return M===null||M.tag!==6?(M=dr(z,R.mode,q),M.return=R,M):(M=r(M,z),M.return=R,M)}function T(R,M,z,q){var it=z.type;return it===w?L(R,M,z.props.children,q,z.key):M!==null&&(M.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===P&&pa(it)===M.type)?(M=r(M,z.props),Pi(M,z),M.return=R,M):(M=ss(z.type,z.key,z.props,null,R.mode,q),Pi(M,z),M.return=R,M)}function O(R,M,z,q){return M===null||M.tag!==4||M.stateNode.containerInfo!==z.containerInfo||M.stateNode.implementation!==z.implementation?(M=hr(z,R.mode,q),M.return=R,M):(M=r(M,z.children||[]),M.return=R,M)}function L(R,M,z,q,it){return M===null||M.tag!==7?(M=ca(z,R.mode,q,it),M.return=R,M):(M=r(M,z),M.return=R,M)}function G(R,M,z){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=dr(""+M,R.mode,z),M.return=R,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return z=ss(M.type,M.key,M.props,null,R.mode,z),Pi(z,M),z.return=R,z;case A:return M=hr(M,R.mode,z),M.return=R,M;case P:return M=pa(M),G(R,M,z)}if(zt(M)||lt(M))return M=ca(M,R.mode,z,null),M.return=R,M;if(typeof M.then=="function")return G(R,hs(M),z);if(M.$$typeof===U)return G(R,os(R,M),z);ms(R,M)}return null}function j(R,M,z,q){var it=M!==null?M.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return it!==null?null:S(R,M,""+z,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===it?T(R,M,z,q):null;case A:return z.key===it?O(R,M,z,q):null;case P:return z=pa(z),j(R,M,z,q)}if(zt(z)||lt(z))return it!==null?null:L(R,M,z,q,null);if(typeof z.then=="function")return j(R,M,hs(z),q);if(z.$$typeof===U)return j(R,M,os(R,z),q);ms(R,z)}return null}function N(R,M,z,q,it){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return R=R.get(z)||null,S(M,R,""+q,it);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return R=R.get(q.key===null?z:q.key)||null,T(M,R,q,it);case A:return R=R.get(q.key===null?z:q.key)||null,O(M,R,q,it);case P:return q=pa(q),N(R,M,z,q,it)}if(zt(q)||lt(q))return R=R.get(z)||null,L(M,R,q,it,null);if(typeof q.then=="function")return N(R,M,z,hs(q),it);if(q.$$typeof===U)return N(R,M,z,os(M,q),it);ms(M,q)}return null}function tt(R,M,z,q){for(var it=null,bt=null,at=M,dt=M=0,gt=null;at!==null&&dt<z.length;dt++){at.index>dt?(gt=at,at=null):gt=at.sibling;var Tt=j(R,at,z[dt],q);if(Tt===null){at===null&&(at=gt);break}t&&at&&Tt.alternate===null&&e(R,at),M=o(Tt,M,dt),bt===null?it=Tt:bt.sibling=Tt,bt=Tt,at=gt}if(dt===z.length)return n(R,at),vt&&fn(R,dt),it;if(at===null){for(;dt<z.length;dt++)at=G(R,z[dt],q),at!==null&&(M=o(at,M,dt),bt===null?it=at:bt.sibling=at,bt=at);return vt&&fn(R,dt),it}for(at=l(at);dt<z.length;dt++)gt=N(at,R,dt,z[dt],q),gt!==null&&(t&&gt.alternate!==null&&at.delete(gt.key===null?dt:gt.key),M=o(gt,M,dt),bt===null?it=gt:bt.sibling=gt,bt=gt);return t&&at.forEach(function(Fn){return e(R,Fn)}),vt&&fn(R,dt),it}function ut(R,M,z,q){if(z==null)throw Error(u(151));for(var it=null,bt=null,at=M,dt=M=0,gt=null,Tt=z.next();at!==null&&!Tt.done;dt++,Tt=z.next()){at.index>dt?(gt=at,at=null):gt=at.sibling;var Fn=j(R,at,Tt.value,q);if(Fn===null){at===null&&(at=gt);break}t&&at&&Fn.alternate===null&&e(R,at),M=o(Fn,M,dt),bt===null?it=Fn:bt.sibling=Fn,bt=Fn,at=gt}if(Tt.done)return n(R,at),vt&&fn(R,dt),it;if(at===null){for(;!Tt.done;dt++,Tt=z.next())Tt=G(R,Tt.value,q),Tt!==null&&(M=o(Tt,M,dt),bt===null?it=Tt:bt.sibling=Tt,bt=Tt);return vt&&fn(R,dt),it}for(at=l(at);!Tt.done;dt++,Tt=z.next())Tt=N(at,R,dt,Tt.value,q),Tt!==null&&(t&&Tt.alternate!==null&&at.delete(Tt.key===null?dt:Tt.key),M=o(Tt,M,dt),bt===null?it=Tt:bt.sibling=Tt,bt=Tt);return t&&at.forEach(function(_S){return e(R,_S)}),vt&&fn(R,dt),it}function wt(R,M,z,q){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:t:{for(var it=z.key;M!==null;){if(M.key===it){if(it=z.type,it===w){if(M.tag===7){n(R,M.sibling),q=r(M,z.props.children),q.return=R,R=q;break t}}else if(M.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===P&&pa(it)===M.type){n(R,M.sibling),q=r(M,z.props),Pi(q,z),q.return=R,R=q;break t}n(R,M);break}else e(R,M);M=M.sibling}z.type===w?(q=ca(z.props.children,R.mode,q,z.key),q.return=R,R=q):(q=ss(z.type,z.key,z.props,null,R.mode,q),Pi(q,z),q.return=R,R=q)}return h(R);case A:t:{for(it=z.key;M!==null;){if(M.key===it)if(M.tag===4&&M.stateNode.containerInfo===z.containerInfo&&M.stateNode.implementation===z.implementation){n(R,M.sibling),q=r(M,z.children||[]),q.return=R,R=q;break t}else{n(R,M);break}else e(R,M);M=M.sibling}q=hr(z,R.mode,q),q.return=R,R=q}return h(R);case P:return z=pa(z),wt(R,M,z,q)}if(zt(z))return tt(R,M,z,q);if(lt(z)){if(it=lt(z),typeof it!="function")throw Error(u(150));return z=it.call(z),ut(R,M,z,q)}if(typeof z.then=="function")return wt(R,M,hs(z),q);if(z.$$typeof===U)return wt(R,M,os(R,z),q);ms(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,M!==null&&M.tag===6?(n(R,M.sibling),q=r(M,z),q.return=R,R=q):(n(R,M),q=dr(z,R.mode,q),q.return=R,R=q),h(R)):n(R,M)}return function(R,M,z,q){try{Ji=0;var it=wt(R,M,z,q);return Ia=null,it}catch(at){if(at===$a||at===fs)throw at;var bt=Ae(29,at,null,R.mode);return bt.lanes=q,bt.return=R,bt}finally{}}}var ga=Gd(!0),Xd=Gd(!1),jn=!1;function Mr(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 Vn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(xt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=ls(t),Cd(t,null,n),e}return is(t,l,e,n),ls(t)}function Fi(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,Vf(t,n)}}function Dr(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 h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=h:o=o.next=h,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 Rr=!1;function Wi(){if(Rr){var t=Wa;if(t!==null)throw t}}function $i(t,e,n,l){Rr=!1;var r=t.updateQueue;jn=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var T=S,O=T.next;T.next=null,h===null?o=O:h.next=O,h=T;var L=t.alternate;L!==null&&(L=L.updateQueue,S=L.lastBaseUpdate,S!==h&&(S===null?L.firstBaseUpdate=O:S.next=O,L.lastBaseUpdate=T))}if(o!==null){var G=r.baseState;h=0,L=O=T=null,S=o;do{var j=S.lane&-536870913,N=j!==S.lane;if(N?(yt&j)===j:(l&j)===j){j!==0&&j===Fa&&(Rr=!0),L!==null&&(L=L.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var tt=t,ut=S;j=e;var wt=n;switch(ut.tag){case 1:if(tt=ut.payload,typeof tt=="function"){G=tt.call(wt,G,j);break t}G=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ut.payload,j=typeof tt=="function"?tt.call(wt,G,j):tt,j==null)break t;G=g({},G,j);break t;case 2:jn=!0}}j=S.callback,j!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[j]:N.push(j))}else N={lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},L===null?(O=L=N,T=G):L=L.next=N,h|=j;if(S=S.next,S===null){if(S=r.shared.pending,S===null)break;N=S,S=N.next,N.next=null,r.lastBaseUpdate=N,r.shared.pending=null}}while(!0);L===null&&(T=G),r.baseState=T,r.firstBaseUpdate=O,r.lastBaseUpdate=L,o===null&&(r.shared.lanes=0),Yn|=h,t.lanes=h,t.memoizedState=G}}function kd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Zd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)kd(n[t],e)}var ti=E(null),ps=E(0);function Qd(t,e){t=xn,F(ps,t),F(ti,e),xn=t|e.baseLanes}function wr(){F(ps,xn),F(ti,ti.current)}function zr(){xn=ps.current,H(ti),H(ps)}var Ee=E(null),Le=null;function Bn(t){var e=t.alternate;F(Gt,Gt.current&1),F(Ee,t),Le===null&&(e===null||ti.current!==null||e.memoizedState!==null)&&(Le=t)}function Or(t){F(Gt,Gt.current),F(Ee,t),Le===null&&(Le=t)}function Kd(t){t.tag===22?(F(Gt,Gt.current),F(Ee,t),Le===null&&(Le=t)):Un()}function Un(){F(Gt,Gt.current),F(Ee,Ee.current)}function Me(t){H(Ee),Le===t&&(Le=null),H(Gt)}var Gt=E(0);function ys(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Lo(n)||Ho(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 mn=0,ct=null,Dt=null,Qt=null,gs=!1,ei=!1,va=!1,vs=0,Ii=0,ni=null,x1=0;function Ht(){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 jr(t,e,n,l,r,o){return mn=o,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?zh:Jr,va=!1,o=n(l,r),va=!1,ei&&(o=Pd(e,n,l,r)),Jd(t),o}function Jd(t){V.H=nl;var e=Dt!==null&&Dt.next!==null;if(mn=0,Qt=Dt=ct=null,gs=!1,Ii=0,ni=null,e)throw Error(u(300));t===null||Kt||(t=t.dependencies,t!==null&&rs(t)&&(Kt=!0))}function Pd(t,e,n,l){ct=t;var r=0;do{if(ei&&(ni=null),Ii=0,ei=!1,25<=r)throw Error(u(301));if(r+=1,Qt=Dt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=Oh,o=e(n,l)}while(ei);return o}function A1(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?tl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Vr(){var t=vs!==0;return vs=0,t}function Nr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Br(t){if(gs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}gs=!1}mn=0,Qt=Dt=ct=null,ei=!1,Ii=vs=0,ni=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Xt(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Qt===null?ct.memoizedState:Qt.next;if(e!==null)Qt=e,Dt=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function Ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tl(t){var e=Ii;return Ii+=1,ni===null&&(ni=[]),t=Hd(ni,t,e),e=ct,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?zh:Jr),t}function bs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return tl(t);if(t.$$typeof===U)return ae(t)}throw Error(u(438,String(t)))}function Ur(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.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=Ss(),ct.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]=J;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function Ts(t){var e=Xt();return Lr(e,Dt,t)}function Lr(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 h=r.next;r.next=o.next,o.next=h}e.baseQueue=r=o,l.pending=null}if(o=t.baseState,r===null)t.memoizedState=o;else{e=r.next;var S=h=null,T=null,O=e,L=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(yt&G)===G:(mn&G)===G){var j=O.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Fa&&(L=!0);else if((mn&j)===j){O=O.next,j===Fa&&(L=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=G,h=o):T=T.next=G,ct.lanes|=j,Yn|=j;G=O.action,va&&n(o,G),o=O.hasEagerState?O.eagerState:n(o,G)}else j={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=j,h=o):T=T.next=j,ct.lanes|=G,Yn|=G;O=O.next}while(O!==null&&O!==e);if(T===null?h=o:T.next=S,!xe(o,t.memoizedState)&&(Kt=!0,L&&(n=Wa,n!==null)))throw n;t.memoizedState=o,t.baseState=h,t.baseQueue=T,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Hr(t){var e=Xt(),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 h=r=r.next;do o=t(o,h.action),h=h.next;while(h!==r);xe(o,e.memoizedState)||(Kt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function Fd(t,e,n){var l=ct,r=Xt(),o=vt;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var h=!xe((Dt||r).memoizedState,n);if(h&&(r.memoizedState=n,Kt=!0),r=r.queue,Gr(Id.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,ai(9,{destroy:void 0},$d.bind(null,l,r,n,e),null),Ot===null)throw Error(u(349));o||(mn&127)!==0||Wd(l,e,n)}return n}function Wd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Ss(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function $d(t,e,n,l){e.value=n,e.getSnapshot=l,th(e)&&eh(t)}function Id(t,e,n){return n(function(){th(e)&&eh(t)})}function th(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xe(t,n)}catch{return!0}}function eh(t){var e=oa(t,2);e!==null&&Se(e,t,2)}function Yr(t){var e=oe();if(typeof t=="function"){var n=t;if(t=n(),va){Cn(!0);try{n()}finally{Cn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function nh(t,e,n,l){return t.baseState=n,Lr(t,Dt,typeof l=="function"?l:pn)}function E1(t,e,n,l,r){if(Es(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(h){o.listeners.push(h)}};V.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,ah(e,o)):(o.next=n.next,e.pending=n.next=o)}}function ah(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=V.T,h={};V.T=h;try{var S=n(r,l),T=V.S;T!==null&&T(h,S),ih(t,e,S)}catch(O){qr(t,e,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),V.T=o}}else try{o=n(r,l),ih(t,e,o)}catch(O){qr(t,e,O)}}function ih(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){lh(t,e,l)},function(l){return qr(t,e,l)}):lh(t,e,n)}function lh(t,e,n){e.status="fulfilled",e.value=n,sh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,ah(t,n)))}function qr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,sh(e),e=e.next;while(e!==l)}t.action=null}function sh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function uh(t,e){return e}function rh(t,e){if(vt){var n=Ot.formState;if(n!==null){t:{var l=ct;if(vt){if(Vt){e:{for(var r=Vt,o=Ue;r.nodeType!==8;){if(!o){r=null;break e}if(r=He(r.nextSibling),r===null){r=null;break e}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Vt=He(r.nextSibling),l=r.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=oe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uh,lastRenderedState:e},n.queue=l,n=Dh.bind(null,ct,l),l.dispatch=n,l=Yr(!1),o=Kr.bind(null,ct,!1,l.queue),l=oe(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=E1.bind(null,ct,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function oh(t){var e=Xt();return ch(e,Dt,t)}function ch(t,e,n){if(e=Lr(t,e,uh)[0],t=Ts(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=tl(e)}catch(h){throw h===$a?fs:h}else l=e;e=Xt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,ai(9,{destroy:void 0},M1.bind(null,r,n),null)),[l,o,t]}function M1(t,e){t.action=e}function fh(t){var e=Xt(),n=Dt;if(n!==null)return ch(e,n,t);Xt(),e=e.memoizedState,n=Xt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ai(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Ss(),ct.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 dh(){return Xt().memoizedState}function xs(t,e,n,l){var r=oe();ct.flags|=t,r.memoizedState=ai(1|e,{destroy:void 0},n,l===void 0?null:l)}function As(t,e,n,l){var r=Xt();l=l===void 0?null:l;var o=r.memoizedState.inst;Dt!==null&&l!==null&&_r(l,Dt.memoizedState.deps)?r.memoizedState=ai(e,o,n,l):(ct.flags|=t,r.memoizedState=ai(1|e,o,n,l))}function hh(t,e){xs(8390656,8,t,e)}function Gr(t,e){As(2048,8,t,e)}function C1(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Ss(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function mh(t){var e=Xt().memoizedState;return C1({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function ph(t,e){return As(4,2,t,e)}function yh(t,e){return As(4,4,t,e)}function gh(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 vh(t,e,n){n=n!=null?n.concat([t]):null,As(4,4,gh.bind(null,e,t),n)}function Xr(){}function Sh(t,e){var n=Xt();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 bh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&_r(e,l[1]))return l[0];if(l=t(),va){Cn(!0);try{t()}finally{Cn(!1)}}return n.memoizedState=[l,e],l}function kr(t,e,n){return n===void 0||(mn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Tm(),ct.lanes|=t,Yn|=t,n)}function Th(t,e,n,l){return xe(n,e)?n:ti.current!==null?(t=kr(t,n,l),xe(t,e)||(Kt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(yt&261930)===0?(Kt=!0,t.memoizedState=n):(t=Tm(),ct.lanes|=t,Yn|=t,e)}function xh(t,e,n,l,r){var o=Q.p;Q.p=o!==0&&8>o?o:8;var h=V.T,S={};V.T=S,Kr(t,!1,e,n);try{var T=r(),O=V.S;if(O!==null&&O(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=T1(T,l);el(t,e,L,Re(t))}else el(t,e,l,Re(t))}catch(G){el(t,e,{then:function(){},status:"rejected",reason:G},Re())}finally{Q.p=o,h!==null&&S.types!==null&&(h.types=S.types),V.T=h}}function D1(){}function Zr(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Ah(t).queue;xh(t,r,e,W,n===null?D1:function(){return Eh(t),n(l)})}function Ah(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:W},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Eh(t){var e=Ah(t);e.next===null&&(e=t.alternate.memoizedState),el(t,e.next.queue,{},Re())}function Qr(){return ae(vl)}function Mh(){return Xt().memoizedState}function Ch(){return Xt().memoizedState}function R1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=Vn(n);var l=Nn(e,t,n);l!==null&&(Se(l,e,n),Fi(l,e,n)),e={cache:Tr()},t.payload=e;return}e=e.return}}function w1(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(t)?Rh(e,n):(n=cr(t,e,n,l),n!==null&&(Se(n,t,l),wh(n,e,l)))}function Dh(t,e,n){var l=Re();el(t,e,n,l)}function el(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(t))Rh(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var h=e.lastRenderedState,S=o(h,n);if(r.hasEagerState=!0,r.eagerState=S,xe(S,h))return is(t,e,r,0),Ot===null&&as(),!1}catch{}finally{}if(n=cr(t,e,r,l),n!==null)return Se(n,t,l),wh(n,e,l),!0}return!1}function Kr(t,e,n,l){if(l={lane:2,revertLane:Co(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Es(t)){if(e)throw Error(u(479))}else e=cr(t,n,l,2),e!==null&&Se(e,t,2)}function Es(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Rh(t,e){ei=gs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function wh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Vf(t,n)}}var nl={readContext:ae,use:bs,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};nl.useEffectEvent=Ht;var zh={readContext:ae,use:bs,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ae,useEffect:hh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,xs(4194308,4,gh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return xs(4194308,4,t,e)},useInsertionEffect:function(t,e){xs(4,2,t,e)},useMemo:function(t,e){var n=oe();e=e===void 0?null:e;var l=t();if(va){Cn(!0);try{t()}finally{Cn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=oe();if(n!==void 0){var r=n(e);if(va){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=w1.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=Yr(t);var e=t.queue,n=Dh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Xr,useDeferredValue:function(t,e){var n=oe();return kr(n,t,e)},useTransition:function(){var t=Yr(!1);return t=xh.bind(null,ct,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,r=oe();if(vt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Ot===null)throw Error(u(349));(yt&127)!==0||Wd(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,hh(Id.bind(null,l,o,t),[t]),l.flags|=2048,ai(9,{destroy:void 0},$d.bind(null,l,o,n,e),null),n},useId:function(){var t=oe(),e=Ot.identifierPrefix;if(vt){var n=We,l=Fe;n=(l&~(1<<32-Te(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=vs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=x1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Qr,useFormState:rh,useActionState:rh,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Kr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ur,useCacheRefresh:function(){return oe().memoizedState=R1.bind(null,ct)},useEffectEvent:function(t){var e=oe(),n={impl:t};return e.memoizedState=n,function(){if((xt&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Jr={readContext:ae,use:bs,useCallback:Sh,useContext:ae,useEffect:Gr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:yh,useMemo:bh,useReducer:Ts,useRef:dh,useState:function(){return Ts(pn)},useDebugValue:Xr,useDeferredValue:function(t,e){var n=Xt();return Th(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Ts(pn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:tl(t),e]},useSyncExternalStore:Fd,useId:Mh,useHostTransitionStatus:Qr,useFormState:oh,useActionState:oh,useOptimistic:function(t,e){var n=Xt();return nh(n,Dt,t,e)},useMemoCache:Ur,useCacheRefresh:Ch};Jr.useEffectEvent=mh;var Oh={readContext:ae,use:bs,useCallback:Sh,useContext:ae,useEffect:Gr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:yh,useMemo:bh,useReducer:Hr,useRef:dh,useState:function(){return Hr(pn)},useDebugValue:Xr,useDeferredValue:function(t,e){var n=Xt();return Dt===null?kr(n,t,e):Th(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Hr(pn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:tl(t),e]},useSyncExternalStore:Fd,useId:Mh,useHostTransitionStatus:Qr,useFormState:fh,useActionState:fh,useOptimistic:function(t,e){var n=Xt();return Dt!==null?nh(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Ur,useCacheRefresh:Ch};Oh.useEffectEvent=mh;function Pr(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Fr={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Re(),r=Vn(l);r.payload=e,n!=null&&(r.callback=n),e=Nn(t,r,l),e!==null&&(Se(e,t,l),Fi(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Re(),r=Vn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Nn(t,r,l),e!==null&&(Se(e,t,l),Fi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),l=Vn(n);l.tag=2,e!=null&&(l.callback=e),e=Nn(t,l,n),e!==null&&(Se(e,t,n),Fi(e,t,n))}};function _h(t,e,n,l,r,o,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,h):e.prototype&&e.prototype.isPureReactComponent?!Gi(n,l)||!Gi(r,o):!0}function jh(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&&Fr.enqueueReplaceState(e,e.state,null)}function Sa(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=g({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Vh(t){ns(t)}function Nh(t){console.error(t)}function Bh(t){ns(t)}function Ms(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Uh(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 Wr(t,e,n){return n=Vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ms(t,e)},n}function Lh(t){return t=Vn(t),t.tag=3,t}function Hh(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(){Uh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Uh(e,n,l),typeof r!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function z1(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,r,!0),n=Ee.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Us():n.alternate===null&&Yt===0&&(Yt=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),Ao(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)),Ao(t,l,r)),!1}throw Error(u(435,n.tag))}return Ao(t,l,r),Us(),!1}if(vt)return e=Ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==yr&&(t=Error(u(422),{cause:l}),Zi(Ve(t,n)))):(l!==yr&&(e=Error(u(423),{cause:l}),Zi(Ve(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ve(l,n),r=Wr(t.stateNode,l,r),Dr(t,r),Yt!==4&&(Yt=2)),!1;var o=Error(u(520),{cause:l});if(o=Ve(o,n),cl===null?cl=[o]:cl.push(o),Yt!==4&&(Yt=2),e===null)return!0;l=Ve(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Wr(n.stateNode,l,t),Dr(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"&&(qn===null||!qn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Lh(r),Hh(r,t,n,l),Dr(n,r),!1}n=n.return}while(n!==null);return!1}var $r=Error(u(461)),Kt=!1;function ie(t,e,n,l){e.child=t===null?Xd(e,null,n,l):ga(e,t.child,n,l)}function Yh(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var h={};for(var S in l)S!=="ref"&&(h[S]=l[S])}else h=l;return ha(e),l=jr(t,e,n,h,o,r),S=Vr(),t!==null&&!Kt?(Nr(t,e,r),yn(t,e,r)):(vt&&S&&mr(e),e.flags|=1,ie(t,e,l,r),e.child)}function qh(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!fr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Gh(t,e,o,l,r)):(t=ss(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!so(t,r)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(h,l)&&t.ref===e.ref)return yn(t,e,r)}return e.flags|=1,t=cn(o,l),t.ref=e.ref,t.return=e,e.child=t}function Gh(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(Gi(o,l)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=l=o,so(t,r))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,yn(t,e,r)}return Ir(t,e,n,l,r)}function Xh(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 kh(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&cs(e,o!==null?o.cachePool:null),o!==null?Qd(e,o):wr(),Kd(e);else return l=e.lanes=536870912,kh(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(cs(e,o.cachePool),Qd(e,o),Un(),e.memoizedState=null):(t!==null&&cs(e,null),wr(),Un());return ie(t,e,r,n),e.child}function al(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function kh(t,e,n,l,r){var o=Ar();return o=o===null?null:{parent:Zt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&cs(e,null),wr(),Kd(e),t!==null&&Pa(t,e,l,!0),e.childLanes=r,null}function Cs(t,e){return e=Rs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Zh(t,e,n){return ga(e,t.child,null,n),t=Cs(e,e.pendingProps),t.flags|=2,Me(e),e.memoizedState=null,t}function O1(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=Cs(e,l),e.lanes=536870912,al(null,t);if(Or(e),(t=Vt)?(t=ap(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Rd(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Cs(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(Or(e),r)if(e.flags&256)e.flags&=-257,e=Zh(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||Pa(t,e,n,!1),r=(n&t.childLanes)!==0,Kt||r){if(l=Ot,l!==null&&(h=Nf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,oa(t,h),Se(l,t,h),$r;Us(),e=Zh(t,e,n)}else t=o.treeContext,Vt=He(h.nextSibling),ne=e,vt=!0,zn=null,Ue=!1,t!==null&&Od(e,t),e=Cs(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ds(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Ir(t,e,n,l,r){return ha(e),n=jr(t,e,n,l,void 0,r),l=Vr(),t!==null&&!Kt?(Nr(t,e,r),yn(t,e,r)):(vt&&l&&mr(e),e.flags|=1,ie(t,e,n,r),e.child)}function Qh(t,e,n,l,r,o){return ha(e),e.updateQueue=null,n=Pd(e,l,n,r),Jd(t),l=Vr(),t!==null&&!Kt?(Nr(t,e,o),yn(t,e,o)):(vt&&l&&mr(e),e.flags|=1,ie(t,e,n,o),e.child)}function Kh(t,e,n,l,r){if(ha(e),e.stateNode===null){var o=Za,h=n.contextType;typeof h=="object"&&h!==null&&(o=ae(h)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Fr,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Mr(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?ae(h):Za,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Pr(e,n,h,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&Fr.enqueueReplaceState(o,o.state,null),$i(e,l,o,r),Wi(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var S=e.memoizedProps,T=Sa(n,S);o.props=T;var O=o.context,L=n.contextType;h=Za,typeof L=="object"&&L!==null&&(h=ae(L));var G=n.getDerivedStateFromProps;L=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,L||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||O!==h)&&jh(e,o,l,h),jn=!1;var j=e.memoizedState;o.state=j,$i(e,l,o,r),Wi(),O=e.memoizedState,S||j!==O||jn?(typeof G=="function"&&(Pr(e,n,G,l),O=e.memoizedState),(T=jn||_h(e,n,T,l,j,O,h))?(L||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=O),o.props=l,o.state=O,o.context=h,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Cr(t,e),h=e.memoizedProps,L=Sa(n,h),o.props=L,G=e.pendingProps,j=o.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=ae(O)),S=n.getDerivedStateFromProps,(O=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||j!==T)&&jh(e,o,l,T),jn=!1,j=e.memoizedState,o.state=j,$i(e,l,o,r),Wi();var N=e.memoizedState;h!==G||j!==N||jn||t!==null&&t.dependencies!==null&&rs(t.dependencies)?(typeof S=="function"&&(Pr(e,n,S,l),N=e.memoizedState),(L=jn||_h(e,n,L,l,j,N,T)||t!==null&&t.dependencies!==null&&rs(t.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,N,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,N,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),o.props=l,o.state=N,o.context=T,l=L):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Ds(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=ga(e,t.child,null,r),e.child=ga(e,null,n,r)):ie(t,e,n,r),e.memoizedState=o.state,t=e.child):t=yn(t,e,r),t}function Jh(t,e,n,l){return fa(),e.flags|=256,ie(t,e,n,l),e.child}var to={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eo(t){return{baseLanes:t,cachePool:Ud()}}function no(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=De),t}function Ph(t,e,n){var l=e.pendingProps,r=!1,o=(e.flags&128)!==0,h;if((h=o)||(h=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(r?Bn(e):Un(),(t=Vt)?(t=ap(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Rd(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw On(e);return Ho(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,r?(Un(),r=e.mode,S=Rs({mode:"hidden",children:S},r),l=ca(l,r,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=eo(n),l.childLanes=no(t,h,n),e.memoizedState=to,al(null,l)):(Bn(e),ao(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(Bn(e),e.flags&=-257,e=io(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),S=l.fallback,r=e.mode,l=Rs({mode:"visible",children:l.children},r),S=ca(S,r,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,ga(e,t.child,null,n),l=e.child,l.memoizedState=eo(n),l.childLanes=no(t,h,n),e.memoizedState=to,e=al(null,l));else if(Bn(e),Ho(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var O=h.dgst;h=O,l=Error(u(419)),l.stack="",l.digest=h,Zi({value:l,source:null,stack:null}),e=io(t,e,n)}else if(Kt||Pa(t,e,n,!1),h=(n&t.childLanes)!==0,Kt||h){if(h=Ot,h!==null&&(l=Nf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,oa(t,l),Se(h,t,l),$r;Lo(S)||Us(),e=io(t,e,n)}else Lo(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Vt=He(S.nextSibling),ne=e,vt=!0,zn=null,Ue=!1,t!==null&&Od(e,t),e=ao(e,l.children),e.flags|=4096);return e}return r?(Un(),S=l.fallback,r=e.mode,T=t.child,O=T.sibling,l=cn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?S=cn(O,S):(S=ca(S,r,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,al(null,l),l=e.child,S=t.child.memoizedState,S===null?S=eo(n):(r=S.cachePool,r!==null?(T=Zt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Ud(),S={baseLanes:S.baseLanes|n,cachePool:r}),l.memoizedState=S,l.childLanes=no(t,h,n),e.memoizedState=to,al(t.child,l)):(Bn(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function ao(t,e){return e=Rs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Rs(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function io(t,e,n){return ga(e,t.child,null,n),t=ao(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Fh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Sr(t.return,e,n)}function lo(t,e,n,l,r,o){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:o}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=o)}function Wh(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var h=Gt.current,S=(h&2)!==0;if(S?(h=h&1|2,e.flags|=128):h&=1,F(Gt,h),ie(t,e,l,n),l=vt?ki:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fh(t,n,e);else if(t.tag===19)Fh(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&&ys(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),lo(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&&ys(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}lo(e,!0,n,null,o,l);break;case"together":lo(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function yn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Yn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(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=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function so(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&rs(t)))}function _1(t,e,n){switch(e.tag){case 3:Lt(e,e.stateNode.containerInfo),_n(e,Zt,t.memoizedState.cache),fa();break;case 27:case 5:aa(e);break;case 4:Lt(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,Or(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Bn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Ph(t,e,n):(Bn(e),t=yn(t,e,n),t!==null?t.sibling:null);Bn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return Wh(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),F(Gt,Gt.current),l)break;return null;case 22:return e.lanes=0,Xh(t,e,n,e.pendingProps);case 24:_n(e,Zt,t.memoizedState.cache)}return yn(t,e,n)}function $h(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!so(t,n)&&(e.flags&128)===0)return Kt=!1,_1(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,vt&&(e.flags&1048576)!==0&&zd(e,ki,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")fr(t)?(l=Sa(t,l),e.tag=1,e=Kh(null,e,t,l,n)):(e.tag=0,e=Ir(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===X){e.tag=11,e=Yh(null,e,t,l,n);break t}else if(r===k){e.tag=14,e=qh(null,e,t,l,n);break t}}throw e=At(t)||t,Error(u(306,e,""))}}return e;case 0:return Ir(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Sa(l,e.pendingProps),Kh(t,e,l,r,n);case 3:t:{if(Lt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,Cr(t,e),$i(e,l,null,n);var h=e.memoizedState;if(l=h.cache,_n(e,Zt,l),l!==o.cache&&br(e,[Zt],n,!0),Wi(),l=h.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=Jh(t,e,l,n);break t}else if(l!==r){r=Ve(Error(u(424)),e),Zi(r),e=Jh(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(Vt=He(t.firstChild),ne=e,vt=!0,zn=null,Ue=!0,n=Xd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fa(),l===r){e=yn(t,e,n);break t}ie(t,e,l,n)}e=e.child}return e;case 26:return Ds(t,e),t===null?(n=op(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=ks(ht.current).createElement(n),l[ee]=e,l[he]=t,le(l,n,t),$t(l),e.stateNode=l):e.memoizedState=op(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return aa(e),t===null&&vt&&(l=e.stateNode=sp(e.type,e.pendingProps,ht.current),ne=e,Ue=!0,r=Vt,Zn(e.type)?(Yo=r,Vt=He(l.firstChild)):Vt=r),ie(t,e,e.pendingProps.children,n),Ds(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((r=l=Vt)&&(l=rS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ne=e,Vt=He(l.firstChild),Ue=!1,r=!0):r=!1),r||On(e)),aa(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,No(r,o)?l=null:h!==null&&No(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=jr(t,e,A1,null,null,n),vl._currentValue=r),Ds(t,e),ie(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=Vt)&&(n=oS(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,ne=e,Vt=null,t=!0):t=!1),t||On(e)),null;case 13:return Ph(t,e,n);case 4:return Lt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ga(e,null,l,n):ie(t,e,l,n),e.child;case 11:return Yh(t,e,e.type,e.pendingProps,n);case 7:return ie(t,e,e.pendingProps,n),e.child;case 8:return ie(t,e,e.pendingProps.children,n),e.child;case 12:return ie(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,_n(e,e.type,l.value),ie(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ha(e),r=ae(r),l=l(r),e.flags|=1,ie(t,e,l,n),e.child;case 14:return qh(t,e,e.type,e.pendingProps,n);case 15:return Gh(t,e,e.type,e.pendingProps,n);case 19:return Wh(t,e,n);case 31:return O1(t,e,n);case 22:return Xh(t,e,n,e.pendingProps);case 24:return ha(e),l=ae(Zt),t===null?(r=Ar(),r===null&&(r=Ot,o=Tr(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Mr(e),_n(e,Zt,r)):((t.lanes&n)!==0&&(Cr(t,e),$i(e,null,null,n),Wi()),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,Zt,l)):(l=o.cache,_n(e,Zt,l),l!==r.cache&&br(e,[Zt],n,!0))),ie(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function gn(t){t.flags|=4}function uo(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(Mm())t.flags|=8192;else throw ya=ds,Er}else t.flags&=-16777217}function Ih(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!mp(e))if(Mm())t.flags|=8192;else throw ya=ds,Er}function ws(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_f():536870912,t.lanes|=e,ui|=e)}function il(t,e){if(!vt)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 Nt(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 j1(t,e,n){var l=e.pendingProps;switch(pr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Zt),jt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ja(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,gr())),Nt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(gn(e),o!==null?(Nt(e),Ih(e,o)):(Nt(e),uo(e,r,null,l,n))):o?o!==t.memoizedState?(gn(e),Nt(e),Ih(e,o)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),Nt(e),uo(e,r,t,l,n)),null;case 27:if(Mn(e),n=ht.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}t=I.current,Ja(e)?_d(e):(t=sp(r,l,n),e.stateNode=t,gn(e))}return Nt(e),null;case 5:if(Mn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}if(o=I.current,Ja(e))_d(e);else{var h=ks(ht.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}o[ee]=e,o[he]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=o;t:switch(le(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&&gn(e)}}return Nt(e),uo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ht.current,Ja(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ne,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ee]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Pm(t.nodeValue,n)),t||On(e,!0)}else t=ks(t).createTextNode(l),t[ee]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ja(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[ee]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=gr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Me(e),e):(Me(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ja(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[ee]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),r=!1}else r=gr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Me(e),e):(Me(e),null)}return Me(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),ws(e,e.updateQueue),Nt(e),null);case 4:return jt(),t===null&&zo(e.stateNode.containerInfo),Nt(e),null;case 10:return hn(e.type),Nt(e),null;case 19:if(H(Gt),l=e.memoizedState,l===null)return Nt(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)il(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=ys(t),o!==null){for(e.flags|=128,il(l,!1),t=o.updateQueue,e.updateQueue=t,ws(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Dd(n,t),n=n.sibling;return F(Gt,Gt.current&1|2),vt&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&kt()>Vs&&(e.flags|=128,r=!0,il(l,!1),e.lanes=4194304)}else{if(!r)if(t=ys(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,ws(e,t),il(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!vt)return Nt(e),null}else 2*kt()-l.renderingStartTime>Vs&&n!==536870912&&(e.flags|=128,r=!0,il(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=kt(),t.sibling=null,n=Gt.current,F(Gt,r?n&1|2:n&1),vt&&fn(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return Me(e),zr(),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&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&ws(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&&H(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Zt),Nt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function V1(t,e){switch(pr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Zt),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mn(e),null;case 31:if(e.memoizedState!==null){if(Me(e),e.alternate===null)throw Error(u(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Me(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Gt),null;case 4:return jt(),null;case 10:return hn(e.type),null;case 22:case 23:return Me(e),zr(),t!==null&&H(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Zt),null;case 25:return null;default:return null}}function tm(t,e){switch(pr(e),e.tag){case 3:hn(Zt),jt();break;case 26:case 27:case 5:Mn(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&Me(e);break;case 13:Me(e);break;case 19:H(Gt);break;case 10:hn(e.type);break;case 22:case 23:Me(e),zr(),t!==null&&H(ma);break;case 24:hn(Zt)}}function ll(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,h=n.inst;l=o(),h.destroy=l}n=n.next}while(n!==r)}}catch(S){Mt(e,e.return,S)}}function Ln(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 h=l.inst,S=h.destroy;if(S!==void 0){h.destroy=void 0,r=e;var T=n,O=S;try{O()}catch(L){Mt(r,T,L)}}}l=l.next}while(l!==o)}}catch(L){Mt(e,e.return,L)}}function em(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Zd(e,n)}catch(l){Mt(t,t.return,l)}}}function nm(t,e,n){n.props=Sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function sl(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){Mt(t,e,r)}}function $e(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Mt(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){Mt(t,e,r)}else n.current=null}function am(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){Mt(t,t.return,r)}}function ro(t,e,n){try{var l=t.stateNode;nS(l,t.type,n,e),l[he]=e}catch(r){Mt(t,t.return,r)}}function im(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zn(t.type)||t.tag===4}function oo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||im(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&&Zn(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 co(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=rn));else if(l!==4&&(l===27&&Zn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(co(t,e,n),t=t.sibling;t!==null;)co(t,e,n),t=t.sibling}function zs(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&&Zn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(zs(t,e,n),t=t.sibling;t!==null;)zs(t,e,n),t=t.sibling}function lm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);le(e,l,n),e[ee]=t,e[he]=n}catch(o){Mt(t,t.return,o)}}var vn=!1,Jt=!1,fo=!1,sm=typeof WeakSet=="function"?WeakSet:Set,It=null;function N1(t,e){if(t=t.containerInfo,jo=Ws,t=vd(t),ir(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 h=0,S=-1,T=-1,O=0,L=0,G=t,j=null;e:for(;;){for(var N;G!==n||r!==0&&G.nodeType!==3||(S=h+r),G!==o||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(N=G.firstChild)!==null;)j=G,G=N;for(;;){if(G===t)break e;if(j===n&&++O===r&&(S=h),j===o&&++L===l&&(T=h),(N=G.nextSibling)!==null)break;G=j,j=G.parentNode}G=N}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:t,selectionRange:n},Ws=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,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 tt=Sa(n.type,r);t=l.getSnapshotBeforeUpdate(tt,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Mt(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Uo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Uo(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,It=t;break}It=e.return}}function um(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:bn(t,n),l&4&&ll(5,n);break;case 1:if(bn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Mt(n,n.return,h)}else{var r=Sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Mt(n,n.return,h)}}l&64&&em(n),l&512&&sl(n,n.return);break;case 3:if(bn(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{Zd(t,e)}catch(h){Mt(n,n.return,h)}}break;case 27:e===null&&l&4&&lm(n);case 26:case 5:bn(t,n),e===null&&l&4&&am(n),l&512&&sl(n,n.return);break;case 12:bn(t,n);break;case 31:bn(t,n),l&4&&cm(t,n);break;case 13:bn(t,n),l&4&&fm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=k1.bind(null,n),cS(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||Jt,r=vn;var o=Jt;vn=l,(Jt=e)&&!o?Tn(t,n,(n.subtreeFlags&8772)!==0):bn(t,n),vn=r,Jt=o}break;case 30:break;default:bn(t,n)}}function rm(t){var e=t.alternate;e!==null&&(t.alternate=null,rm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&qu(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 Ut=null,pe=!1;function Sn(t,e,n){for(n=n.child;n!==null;)om(t,e,n),n=n.sibling}function om(t,e,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(zi,n)}catch{}switch(n.tag){case 26:Jt||$e(n,e),Sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||$e(n,e);var l=Ut,r=pe;Zn(n.type)&&(Ut=n.stateNode,pe=!1),Sn(t,e,n),pl(n.stateNode),Ut=l,pe=r;break;case 5:Jt||$e(n,e);case 6:if(l=Ut,r=pe,Ut=null,Sn(t,e,n),Ut=l,pe=r,Ut!==null)if(pe)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(o){Mt(n,e,o)}else try{Ut.removeChild(n.stateNode)}catch(o){Mt(n,e,o)}break;case 18:Ut!==null&&(pe?(t=Ut,ep(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),pi(t)):ep(Ut,n.stateNode));break;case 4:l=Ut,r=pe,Ut=n.stateNode.containerInfo,pe=!0,Sn(t,e,n),Ut=l,pe=r;break;case 0:case 11:case 14:case 15:Ln(2,n,e),Jt||Ln(4,n,e),Sn(t,e,n);break;case 1:Jt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&nm(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Sn(t,e,n),Jt=l;break;default:Sn(t,e,n)}}function cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pi(t)}catch(n){Mt(e,e.return,n)}}}function fm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pi(t)}catch(n){Mt(e,e.return,n)}}function B1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new sm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new sm),e;default:throw Error(u(435,t.tag))}}function Os(t,e){var n=B1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=Z1.bind(null,t,l);l.then(r,r)}})}function ye(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],o=t,h=e,S=h;t:for(;S!==null;){switch(S.tag){case 27:if(Zn(S.type)){Ut=S.stateNode,pe=!1;break t}break;case 5:Ut=S.stateNode,pe=!1;break t;case 3:case 4:Ut=S.stateNode.containerInfo,pe=!0;break t}S=S.return}if(Ut===null)throw Error(u(160));om(o,h,r),Ut=null,pe=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)dm(e,t),e=e.sibling}var ke=null;function dm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),l&4&&(Ln(3,t,t.return),ll(3,t),Ln(5,t,t.return));break;case 1:ye(e,t),ge(t),l&512&&(Jt||n===null||$e(n,n.return)),l&64&&vn&&(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=ke;if(ye(e,t),ge(t),l&512&&(Jt||n===null||$e(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[ji]||o[ee]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),le(o,l,n),o[ee]=t,$t(o),l=o;break t;case"link":var h=dp("link","href",r).get(l+(n.href||""));if(h){for(var S=0;S<h.length;S++)if(o=h[S],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)){h.splice(S,1);break e}}o=r.createElement(l),le(o,l,n),r.head.appendChild(o);break;case"meta":if(h=dp("meta","content",r).get(l+(n.content||""))){for(S=0;S<h.length;S++)if(o=h[S],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)){h.splice(S,1);break e}}o=r.createElement(l),le(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[ee]=t,$t(o),l=o}t.stateNode=l}else hp(r,t.type,t.stateNode);else t.stateNode=fp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?hp(r,t.type,t.stateNode):fp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ro(t,t.memoizedProps,n.memoizedProps)}break;case 27:ye(e,t),ge(t),l&512&&(Jt||n===null||$e(n,n.return)),n!==null&&l&4&&ro(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ye(e,t),ge(t),l&512&&(Jt||n===null||$e(n,n.return)),t.flags&32){r=t.stateNode;try{La(r,"")}catch(tt){Mt(t,t.return,tt)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,ro(t,r,n!==null?n.memoizedProps:r)),l&1024&&(fo=!0);break;case 6:if(ye(e,t),ge(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(tt){Mt(t,t.return,tt)}}break;case 3:if(Ks=null,r=ke,ke=Zs(e.containerInfo),ye(e,t),ke=r,ge(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{pi(e.containerInfo)}catch(tt){Mt(t,t.return,tt)}fo&&(fo=!1,hm(t));break;case 4:l=ke,ke=Zs(t.stateNode.containerInfo),ye(e,t),ge(t),ke=l;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(js=kt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=vn,L=Jt;if(vn=O||r,Jt=L||T,ye(e,t),Jt=L,vn=O,ge(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||vn||Jt||ba(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=T.stateNode;var G=T.memoizedProps.style,j=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(tt){Mt(T,T.return,tt)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(tt){Mt(T,T.return,tt)}}}else if(e.tag===18){if(n===null){T=e;try{var N=T.stateNode;r?np(N,!0):np(T.stateNode,!1)}catch(tt){Mt(T,T.return,tt)}}}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,Os(t,n))));break;case 19:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(im(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=oo(t);zs(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(La(h,""),n.flags&=-33);var S=oo(t);zs(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,O=oo(t);co(t,O,T);break;default:throw Error(u(161))}}catch(L){Mt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function hm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;hm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)um(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ln(4,e,e.return),ba(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&nm(e,e.return,n),ba(e);break;case 27:pl(e.stateNode);case 26:case 5:$e(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function Tn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,o=e,h=o.flags;switch(o.tag){case 0:case 11:case 15:Tn(r,o,n),ll(4,o);break;case 1:if(Tn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Mt(l,l.return,O)}if(l=o,r=l.updateQueue,r!==null){var S=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)kd(T[r],S)}catch(O){Mt(l,l.return,O)}}n&&h&64&&em(o),sl(o,o.return);break;case 27:lm(o);case 26:case 5:Tn(r,o,n),n&&l===null&&h&4&&am(o),sl(o,o.return);break;case 12:Tn(r,o,n);break;case 31:Tn(r,o,n),n&&h&4&&cm(r,o);break;case 13:Tn(r,o,n),n&&h&4&&fm(r,o);break;case 22:o.memoizedState===null&&Tn(r,o,n),sl(o,o.return);break;case 30:break;default:Tn(r,o,n)}e=e.sibling}}function ho(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&&Qi(n))}function mo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Qi(t))}function Ze(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mm(t,e,n,l),e=e.sibling}function mm(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,n,l),r&2048&&ll(9,e);break;case 1:Ze(t,e,n,l);break;case 3:Ze(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&&Qi(t)));break;case 12:if(r&2048){Ze(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,h=o.id,S=o.onPostCommit;typeof S=="function"&&S(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(e,e.return,T)}}else Ze(t,e,n,l);break;case 31:Ze(t,e,n,l);break;case 13:Ze(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,h=e.alternate,e.memoizedState!==null?o._visibility&2?Ze(t,e,n,l):ul(t,e):o._visibility&2?Ze(t,e,n,l):(o._visibility|=2,ii(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&ho(h,e);break;case 24:Ze(t,e,n,l),r&2048&&mo(e.alternate,e);break;default:Ze(t,e,n,l)}}function ii(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,h=e,S=n,T=l,O=h.flags;switch(h.tag){case 0:case 11:case 15:ii(o,h,S,T,r),ll(8,h);break;case 23:break;case 22:var L=h.stateNode;h.memoizedState!==null?L._visibility&2?ii(o,h,S,T,r):ul(o,h):(L._visibility|=2,ii(o,h,S,T,r)),r&&O&2048&&ho(h.alternate,h);break;case 24:ii(o,h,S,T,r),r&&O&2048&&mo(h.alternate,h);break;default:ii(o,h,S,T,r)}e=e.sibling}}function ul(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:ul(n,l),r&2048&&ho(l.alternate,l);break;case 24:ul(n,l),r&2048&&mo(l.alternate,l);break;default:ul(n,l)}e=e.sibling}}var rl=8192;function li(t,e,n){if(t.subtreeFlags&rl)for(t=t.child;t!==null;)pm(t,e,n),t=t.sibling}function pm(t,e,n){switch(t.tag){case 26:li(t,e,n),t.flags&rl&&t.memoizedState!==null&&xS(n,ke,t.memoizedState,t.memoizedProps);break;case 5:li(t,e,n);break;case 3:case 4:var l=ke;ke=Zs(t.stateNode.containerInfo),li(t,e,n),ke=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=rl,rl=16777216,li(t,e,n),rl=l):li(t,e,n));break;default:li(t,e,n)}}function ym(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 ol(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];It=l,vm(l,t)}ym(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gm(t),t=t.sibling}function gm(t){switch(t.tag){case 0:case 11:case 15:ol(t),t.flags&2048&&Ln(9,t,t.return);break;case 3:ol(t);break;case 12:ol(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_s(t)):ol(t);break;default:ol(t)}}function _s(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];It=l,vm(l,t)}ym(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ln(8,e,e.return),_s(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,_s(e));break;default:_s(e)}t=t.sibling}}function vm(t,e){for(;It!==null;){var n=It;switch(n.tag){case 0:case 11:case 15:Ln(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:Qi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,It=l;else t:for(n=t;It!==null;){l=It;var r=l.sibling,o=l.return;if(rm(l),l===n){It=null;break t}if(r!==null){r.return=o,It=r;break t}It=o}}}var U1={getCacheForType:function(t){var e=ae(Zt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ae(Zt).controller.signal}},L1=typeof WeakMap=="function"?WeakMap:Map,xt=0,Ot=null,mt=null,yt=0,Et=0,Ce=null,Hn=!1,si=!1,po=!1,xn=0,Yt=0,Yn=0,Ta=0,yo=0,De=0,ui=0,cl=null,ve=null,go=!1,js=0,Sm=0,Vs=1/0,Ns=null,qn=null,Ft=0,Gn=null,ri=null,An=0,vo=0,So=null,bm=null,fl=0,bo=null;function Re(){return(xt&2)!==0&&yt!==0?yt&-yt:V.T!==null?Co():Bf()}function Tm(){if(De===0)if((yt&536870912)===0||vt){var t=Xl;Xl<<=1,(Xl&3932160)===0&&(Xl=262144),De=t}else De=536870912;return t=Ee.current,t!==null&&(t.flags|=32),De}function Se(t,e,n){(t===Ot&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(oi(t,0),Xn(t,yt,De,!1)),_i(t,n),((xt&2)===0||t!==Ot)&&(t===Ot&&((xt&2)===0&&(Ta|=n),Yt===4&&Xn(t,yt,De,!1)),Ie(t))}function xm(t,e,n){if((xt&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Oi(t,e),r=l?q1(t,e):xo(t,e,!0),o=l;do{if(r===0){si&&!l&&Xn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!H1(n)){r=xo(t,e,!1),o=!1;continue}if(r===2){if(o=e,t.errorRecoveryDisabledLanes&o)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var S=t;r=cl;var T=S.current.memoizedState.isDehydrated;if(T&&(oi(S,h).flags|=256),h=xo(S,h,!1),h!==2){if(po&&!T){S.errorRecoveryDisabledLanes|=o,Ta|=o,r=4;break t}o=ve,ve=r,o!==null&&(ve===null?ve=o:ve.push.apply(ve,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){oi(t,0),Xn(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:Xn(l,e,De,!Hn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=js+300-kt(),10<r)){if(Xn(l,e,De,!Hn),Zl(l,0,!0)!==0)break t;An=e,l.timeoutHandle=Im(Am.bind(null,l,n,ve,Ns,go,e,De,Ta,ui,Hn,o,"Throttled",-0,0),r);break t}Am(l,n,ve,Ns,go,e,De,Ta,ui,Hn,o,null,-0,0)}}break}while(!0);Ie(t)}function Am(t,e,n,l,r,o,h,S,T,O,L,G,j,N){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},pm(e,o,G);var tt=(o&62914560)===o?js-kt():(o&4194048)===o?Sm-kt():0;if(tt=AS(G,tt),tt!==null){An=o,t.cancelPendingCommit=tt(Om.bind(null,t,e,o,n,l,r,h,S,T,L,G,null,j,N)),Xn(t,o,h,!O);return}}Om(t,e,o,n,l,r,h,S,T)}function H1(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 Xn(t,e,n,l){e&=~yo,e&=~Ta,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-Te(r),h=1<<o;l[o]=-1,r&=~h}n!==0&&jf(t,n,e)}function Bs(){return(xt&6)===0?(dl(0),!1):!0}function To(){if(mt!==null){if(Et===0)var t=mt.return;else t=mt,dn=da=null,Br(t),Ia=null,Ji=0,t=mt;for(;t!==null;)tm(t.alternate,t),t=t.return;mt=null}}function oi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,lS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,To(),Ot=t,mt=n=cn(t.current,null),yt=e,Et=0,Ce=null,Hn=!1,si=Oi(t,e),po=!1,ui=De=yo=Ta=Yn=Yt=0,ve=cl=null,go=!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-Te(l),o=1<<r;e|=t[r],l&=~o}return xn=e,as(),n}function Em(t,e){ct=null,V.H=nl,e===$a||e===fs?(e=Yd(),Et=3):e===Er?(e=Yd(),Et=4):Et=e===$r?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,mt===null&&(Yt=1,Ms(t,Ve(e,t.current)))}function Mm(){var t=Ee.current;return t===null?!0:(yt&4194048)===yt?Le===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Le:!1}function Cm(){var t=V.H;return V.H=nl,t===null?nl:t}function Dm(){var t=V.A;return V.A=U1,t}function Us(){Yt=4,Hn||(yt&4194048)!==yt&&Ee.current!==null||(si=!0),(Yn&134217727)===0&&(Ta&134217727)===0||Ot===null||Xn(Ot,yt,De,!1)}function xo(t,e,n){var l=xt;xt|=2;var r=Cm(),o=Dm();(Ot!==t||yt!==e)&&(Ns=null,oi(t,e)),e=!1;var h=Yt;t:do try{if(Et!==0&&mt!==null){var S=mt,T=Ce;switch(Et){case 8:To(),h=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var O=Et;if(Et=0,Ce=null,ci(t,S,T,O),n&&si){h=0;break t}break;default:O=Et,Et=0,Ce=null,ci(t,S,T,O)}}Y1(),h=Yt;break}catch(L){Em(t,L)}while(!0);return e&&t.shellSuspendCounter++,dn=da=null,xt=l,V.H=r,V.A=o,mt===null&&(Ot=null,yt=0,as()),h}function Y1(){for(;mt!==null;)Rm(mt)}function q1(t,e){var n=xt;xt|=2;var l=Cm(),r=Dm();Ot!==t||yt!==e?(Ns=null,Vs=kt()+500,oi(t,e)):si=Oi(t,e);t:do try{if(Et!==0&&mt!==null){e=mt;var o=Ce;e:switch(Et){case 1:Et=0,Ce=null,ci(t,e,o,1);break;case 2:case 9:if(Ld(o)){Et=0,Ce=null,wm(e);break}e=function(){Et!==2&&Et!==9||Ot!==t||(Et=7),Ie(t)},o.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Ld(o)?(Et=0,Ce=null,wm(e)):(Et=0,Ce=null,ci(t,e,o,7));break;case 5:var h=null;switch(mt.tag){case 26:h=mt.memoizedState;case 5:case 27:var S=mt;if(h?mp(h):S.stateNode.complete){Et=0,Ce=null;var T=S.sibling;if(T!==null)mt=T;else{var O=S.return;O!==null?(mt=O,Ls(O)):mt=null}break e}}Et=0,Ce=null,ci(t,e,o,5);break;case 6:Et=0,Ce=null,ci(t,e,o,6);break;case 8:To(),Yt=6;break t;default:throw Error(u(462))}}G1();break}catch(L){Em(t,L)}while(!0);return dn=da=null,V.H=l,V.A=r,xt=n,mt!==null?0:(Ot=null,yt=0,as(),Yt)}function G1(){for(;mt!==null&&!de();)Rm(mt)}function Rm(t){var e=$h(t.alternate,t,xn);t.memoizedProps=t.pendingProps,e===null?Ls(t):mt=e}function wm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qh(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Qh(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Br(e);default:tm(n,e),e=mt=Dd(e,xn),e=$h(n,e,xn)}t.memoizedProps=t.pendingProps,e===null?Ls(t):mt=e}function ci(t,e,n,l){dn=da=null,Br(e),Ia=null,Ji=0;var r=e.return;try{if(z1(t,r,e,n,yt)){Yt=1,Ms(t,Ve(n,t.current)),mt=null;return}}catch(o){if(r!==null)throw mt=r,o;Yt=1,Ms(t,Ve(n,t.current)),mt=null;return}e.flags&32768?(vt||l===1?t=!0:si||(yt&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ee.current,l!==null&&l.tag===13&&(l.flags|=16384))),zm(e,t)):Ls(e)}function Ls(t){var e=t;do{if((e.flags&32768)!==0){zm(e,Hn);return}t=e.return;var n=j1(e.alternate,e,xn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Yt===0&&(Yt=5)}function zm(t,e){do{var n=V1(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Yt=6,mt=null}function Om(t,e,n,l,r,o,h,S,T){t.cancelPendingCommit=null;do Hs();while(Ft!==0);if((xt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=or,Tv(t,n,o,h,S,T),t===Ot&&(mt=Ot=null,yt=0),ri=e,Gn=t,An=n,vo=o,So=r,bm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Q1(ql,function(){return Bm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=V.T,V.T=null,r=Q.p,Q.p=2,h=xt,xt|=4;try{N1(t,e,n)}finally{xt=h,Q.p=r,V.T=l}}Ft=1,_m(),jm(),Vm()}}function _m(){if(Ft===1){Ft=0;var t=Gn,e=ri,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var l=Q.p;Q.p=2;var r=xt;xt|=4;try{dm(e,t);var o=Vo,h=vd(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(h!==S&&S&&S.ownerDocument&&gd(S.ownerDocument.documentElement,S)){if(T!==null&&ir(S)){var O=T.start,L=T.end;if(L===void 0&&(L=O),"selectionStart"in S)S.selectionStart=O,S.selectionEnd=Math.min(L,S.value.length);else{var G=S.ownerDocument||document,j=G&&G.defaultView||window;if(j.getSelection){var N=j.getSelection(),tt=S.textContent.length,ut=Math.min(T.start,tt),wt=T.end===void 0?ut:Math.min(T.end,tt);!N.extend&&ut>wt&&(h=wt,wt=ut,ut=h);var R=yd(S,ut),M=yd(S,wt);if(R&&M&&(N.rangeCount!==1||N.anchorNode!==R.node||N.anchorOffset!==R.offset||N.focusNode!==M.node||N.focusOffset!==M.offset)){var z=G.createRange();z.setStart(R.node,R.offset),N.removeAllRanges(),ut>wt?(N.addRange(z),N.extend(M.node,M.offset)):(z.setEnd(M.node,M.offset),N.addRange(z))}}}}for(G=[],N=S;N=N.parentNode;)N.nodeType===1&&G.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var q=G[S];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Ws=!!jo,Vo=jo=null}finally{xt=r,Q.p=l,V.T=n}}t.current=e,Ft=2}}function jm(){if(Ft===2){Ft=0;var t=Gn,e=ri,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var l=Q.p;Q.p=2;var r=xt;xt|=4;try{um(t,e.alternate,e)}finally{xt=r,Q.p=l,V.T=n}}Ft=3}}function Vm(){if(Ft===4||Ft===3){Ft=0,ze();var t=Gn,e=ri,n=An,l=bm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,ri=Gn=null,Nm(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(qn=null),Hu(n),e=e.stateNode,be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(zi,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=V.T,r=Q.p,Q.p=2,V.T=null;try{for(var o=t.onRecoverableError,h=0;h<l.length;h++){var S=l[h];o(S.value,{componentStack:S.stack})}}finally{V.T=e,Q.p=r}}(An&3)!==0&&Hs(),Ie(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===bo?fl++:(fl=0,bo=t):fl=0,dl(0)}}function Nm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Qi(e)))}function Hs(){return _m(),jm(),Vm(),Bm()}function Bm(){if(Ft!==5)return!1;var t=Gn,e=vo;vo=0;var n=Hu(An),l=V.T,r=Q.p;try{Q.p=32>n?32:n,V.T=null,n=So,So=null;var o=Gn,h=An;if(Ft=0,ri=Gn=null,An=0,(xt&6)!==0)throw Error(u(331));var S=xt;if(xt|=4,gm(o.current),mm(o,o.current,h,n),xt=S,dl(0,!1),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(zi,o)}catch{}return!0}finally{Q.p=r,V.T=l,Nm(t,e)}}function Um(t,e,n){e=Ve(n,e),e=Wr(t.stateNode,e,2),t=Nn(t,e,2),t!==null&&(_i(t,2),Ie(t))}function Mt(t,e,n){if(t.tag===3)Um(t,t,n);else for(;e!==null;){if(e.tag===3){Um(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qn===null||!qn.has(l))){t=Ve(n,t),n=Lh(2),l=Nn(e,n,2),l!==null&&(Hh(n,l,e,t),_i(l,2),Ie(l));break}}e=e.return}}function Ao(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new L1;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)||(po=!0,r.add(n),t=X1.bind(null,t,e,n),e.then(t,t))}function X1(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>kt()-js?(xt&2)===0&&oi(t,0):yo|=n,ui===yt&&(ui=0)),Ie(t)}function Lm(t,e){e===0&&(e=_f()),t=oa(t,e),t!==null&&(_i(t,e),Ie(t))}function k1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Lm(t,n)}function Z1(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),Lm(t,n)}function Q1(t,e){return Oa(t,e)}var Ys=null,fi=null,Eo=!1,qs=!1,Mo=!1,kn=0;function Ie(t){t!==fi&&t.next===null&&(fi===null?Ys=fi=t:fi=fi.next=t),qs=!0,Eo||(Eo=!0,J1())}function dl(t,e){if(!Mo&&qs){Mo=!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 h=l.suspendedLanes,S=l.pingedLanes;o=(1<<31-Te(42|t)+1)-1,o&=r&~(h&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Gm(l,o))}else o=yt,o=Zl(l,l===Ot?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Oi(l,o)||(n=!0,Gm(l,o));l=l.next}while(n);Mo=!1}}function K1(){Hm()}function Hm(){qs=Eo=!1;var t=0;kn!==0&&iS()&&(t=kn);for(var e=kt(),n=null,l=Ys;l!==null;){var r=l.next,o=Ym(l,e);o===0?(l.next=null,n===null?Ys=r:n.next=r,r===null&&(fi=n)):(n=l,(t!==0||(o&3)!==0)&&(qs=!0)),l=r}Ft!==0&&Ft!==5||dl(t),kn!==0&&(kn=0)}function Ym(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var h=31-Te(o),S=1<<h,T=r[h];T===-1?((S&n)===0||(S&l)!==0)&&(r[h]=bv(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=Ot,n=yt,n=Zl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&wi(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Oi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&wi(l),Hu(n)){case 2:case 8:n=zf;break;case 32:n=ql;break;case 268435456:n=Of;break;default:n=ql}return l=qm.bind(null,t),n=Oa(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&wi(l),t.callbackPriority=2,t.callbackNode=null,2}function qm(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Hs()&&t.callbackNode!==n)return null;var l=yt;return l=Zl(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(xm(t,l,e),Ym(t,kt()),t.callbackNode!=null&&t.callbackNode===n?qm.bind(null,t):null)}function Gm(t,e){if(Hs())return null;xm(t,e,!0)}function J1(){sS(function(){(xt&6)!==0?Oa(wf,K1):Hm()})}function Co(){if(kn===0){var t=Fa;t===0&&(t=Gl,Gl<<=1,(Gl&261888)===0&&(Gl=256)),kn=t}return kn}function Xm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Pl(""+t)}function km(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 P1(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Xm((r[he]||null).action),h=l.submitter;h&&(e=(e=h[he]||null)?Xm(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var S=new Il("action","action",null,l,r);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(kn!==0){var T=h?km(r,h):new FormData(r);Zr(n,{pending:!0,data:T,method:r.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=h?km(r,h):new FormData(r),Zr(n,{pending:!0,data:T,method:r.method,action:o},o,T))},currentTarget:r}]})}}for(var Do=0;Do<rr.length;Do++){var Ro=rr[Do],F1=Ro.toLowerCase(),W1=Ro[0].toUpperCase()+Ro.slice(1);Xe(F1,"on"+W1)}Xe(Td,"onAnimationEnd"),Xe(xd,"onAnimationIteration"),Xe(Ad,"onAnimationStart"),Xe("dblclick","onDoubleClick"),Xe("focusin","onFocus"),Xe("focusout","onBlur"),Xe(h1,"onTransitionRun"),Xe(m1,"onTransitionStart"),Xe(p1,"onTransitionCancel"),Xe(Ed,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),$1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hl));function Zm(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 h=l.length-1;0<=h;h--){var S=l[h],T=S.instance,O=S.currentTarget;if(S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(L){ns(L)}r.currentTarget=null,o=T}else for(h=0;h<l.length;h++){if(S=l[h],T=S.instance,O=S.currentTarget,S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(L){ns(L)}r.currentTarget=null,o=T}}}}function pt(t,e){var n=e[Yu];n===void 0&&(n=e[Yu]=new Set);var l=t+"__bubble";n.has(l)||(Qm(e,t,2,!1),n.add(l))}function wo(t,e,n){var l=0;e&&(l|=4),Qm(n,t,l,e)}var Gs="_reactListening"+Math.random().toString(36).slice(2);function zo(t){if(!t[Gs]){t[Gs]=!0,Hf.forEach(function(n){n!=="selectionchange"&&($1.has(n)||wo(n,!1,t),wo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Gs]||(e[Gs]=!0,wo("selectionchange",!1,e))}}function Qm(t,e,n,l){switch(Tp(e)){case 2:var r=CS;break;case 8:r=DS;break;default:r=Zo}n=r.bind(null,e,n,t),r=void 0,!Pu||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 Oo(t,e,n,l,r){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var S=l.stateNode.containerInfo;if(S===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;S!==null;){if(h=ja(S),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=o=h;continue t}S=S.parentNode}}l=l.return}Wf(function(){var O=o,L=Ku(n),G=[];t:{var j=Md.get(t);if(j!==void 0){var N=Il,tt=t;switch(t){case"keypress":if(Wl(n)===0)break t;case"keydown":case"keyup":N=Zv;break;case"focusin":tt="focus",N=Iu;break;case"focusout":tt="blur",N=Iu;break;case"beforeblur":case"afterblur":N=Iu;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":N=td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Jv;break;case Td:case xd:case Ad:N=Bv;break;case Ed:N=Fv;break;case"scroll":case"scrollend":N=Ov;break;case"wheel":N=$v;break;case"copy":case"cut":case"paste":N=Lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=nd;break;case"toggle":case"beforetoggle":N=t1}var ut=(e&4)!==0,wt=!ut&&(t==="scroll"||t==="scrollend"),R=ut?j!==null?j+"Capture":null:j;ut=[];for(var M=O,z;M!==null;){var q=M;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||R===null||(q=Ni(M,R),q!=null&&ut.push(ml(M,q,z))),wt)break;M=M.return}0<ut.length&&(j=new N(j,tt,null,n,L),G.push({event:j,listeners:ut}))}}if((e&7)===0){t:{if(j=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",j&&n!==Qu&&(tt=n.relatedTarget||n.fromElement)&&(ja(tt)||tt[_a]))break t;if((N||j)&&(j=L.window===L?L:(j=L.ownerDocument)?j.defaultView||j.parentWindow:window,N?(tt=n.relatedTarget||n.toElement,N=O,tt=tt?ja(tt):null,tt!==null&&(wt=d(tt),ut=tt.tag,tt!==wt||ut!==5&&ut!==27&&ut!==6)&&(tt=null)):(N=null,tt=O),N!==tt)){if(ut=td,q="onMouseLeave",R="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(ut=nd,q="onPointerLeave",R="onPointerEnter",M="pointer"),wt=N==null?j:Vi(N),z=tt==null?j:Vi(tt),j=new ut(q,M+"leave",N,n,L),j.target=wt,j.relatedTarget=z,q=null,ja(L)===O&&(ut=new ut(R,M+"enter",tt,n,L),ut.target=z,ut.relatedTarget=wt,q=ut),wt=q,N&&tt)e:{for(ut=I1,R=N,M=tt,z=0,q=R;q;q=ut(q))z++;q=0;for(var it=M;it;it=ut(it))q++;for(;0<z-q;)R=ut(R),z--;for(;0<q-z;)M=ut(M),q--;for(;z--;){if(R===M||M!==null&&R===M.alternate){ut=R;break e}R=ut(R),M=ut(M)}ut=null}else ut=null;N!==null&&Km(G,j,N,ut,!1),tt!==null&&wt!==null&&Km(G,wt,tt,ut,!0)}}t:{if(j=O?Vi(O):window,N=j.nodeName&&j.nodeName.toLowerCase(),N==="select"||N==="input"&&j.type==="file")var bt=cd;else if(rd(j))if(fd)bt=c1;else{bt=r1;var at=u1}else N=j.nodeName,!N||N.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?O&&Zu(O.elementType)&&(bt=cd):bt=o1;if(bt&&(bt=bt(t,O))){od(G,bt,n,L);break t}at&&at(t,j,O),t==="focusout"&&O&&j.type==="number"&&O.memoizedProps.value!=null&&ku(j,"number",j.value)}switch(at=O?Vi(O):window,t){case"focusin":(rd(at)||at.contentEditable==="true")&&(Ga=at,lr=O,Xi=null);break;case"focusout":Xi=lr=Ga=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,Sd(G,n,L);break;case"selectionchange":if(d1)break;case"keydown":case"keyup":Sd(G,n,L)}var dt;if(er)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else qa?sd(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(ad&&n.locale!=="ko"&&(qa||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&qa&&(dt=$f()):(Rn=L,Fu="value"in Rn?Rn.value:Rn.textContent,qa=!0)),at=Xs(O,gt),0<at.length&&(gt=new ed(gt,t,null,n,L),G.push({event:gt,listeners:at}),dt?gt.data=dt:(dt=ud(n),dt!==null&&(gt.data=dt)))),(dt=n1?a1(t,n):i1(t,n))&&(gt=Xs(O,"onBeforeInput"),0<gt.length&&(at=new ed("onBeforeInput","beforeinput",null,n,L),G.push({event:at,listeners:gt}),at.data=dt)),P1(G,t,O,n,L)}Zm(G,e)})}function ml(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Xs(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=Ni(t,n),r!=null&&l.unshift(ml(t,r,o)),r=Ni(t,e),r!=null&&l.push(ml(t,r,o))),t.tag===3)return l;t=t.return}return[]}function I1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Km(t,e,n,l,r){for(var o=e._reactName,h=[];n!==null&&n!==l;){var S=n,T=S.alternate,O=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||O===null||(T=O,r?(O=Ni(n,o),O!=null&&h.unshift(ml(n,O,T))):r||(O=Ni(n,o),O!=null&&h.push(ml(n,O,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var tS=/\r\n?/g,eS=/\u0000|\uFFFD/g;function Jm(t){return(typeof t=="string"?t:""+t).replace(tS,`
49
- `).replace(eS,"")}function Pm(t,e){return e=Jm(e),Jm(t)===e}function Rt(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||La(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&La(t,""+l);break;case"className":Kl(t,"class",l);break;case"tabIndex":Kl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Kl(t,n,l);break;case"style":Pf(t,l,o);break;case"data":if(e!=="object"){Kl(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"&&Rt(t,e,"name",r.name,r,null),Rt(t,e,"formEncType",r.formEncType,r,null),Rt(t,e,"formMethod",r.formMethod,r,null),Rt(t,e,"formTarget",r.formTarget,r,null)):(Rt(t,e,"encType",r.encType,r,null),Rt(t,e,"method",r.method,r,null),Rt(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=rn);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("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":pt("beforetoggle",t),pt("toggle",t),Ql(t,"popover",l);break;case"xlinkActuate":un(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":un(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":un(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":un(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":un(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":un(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":un(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ql(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=wv.get(n)||n,Ql(t,n,l))}}function _o(t,e,n,l,r,o){switch(n){case"style":Pf(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"?La(t,l):(typeof l=="number"||typeof l=="bigint")&&La(t,""+l);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yf.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[he]||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,""):Ql(t,n,l)}}}function le(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var l=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var h=n[o];if(h!=null)switch(o){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Rt(t,e,o,h,n,null)}}r&&Rt(t,e,"srcSet",n.srcSet,n,null),l&&Rt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var S=o=h=r=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var L=n[l];if(L!=null)switch(l){case"name":r=L;break;case"type":h=L;break;case"checked":T=L;break;case"defaultChecked":O=L;break;case"value":o=L;break;case"defaultValue":S=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,e));break;default:Rt(t,e,l,L,n,null)}}Zf(t,o,S,T,O,h,r,!1);return;case"select":pt("invalid",t),l=h=o=null;for(r in n)if(n.hasOwnProperty(r)&&(S=n[r],S!=null))switch(r){case"value":o=S;break;case"defaultValue":h=S;break;case"multiple":l=S;default:Rt(t,e,r,S,n,null)}e=o,n=h,t.multiple=!!l,e!=null?Ua(t,!!l,e,!1):n!=null&&Ua(t,!!l,n,!0);return;case"textarea":pt("invalid",t),o=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(S=n[h],S!=null))switch(h){case"value":l=S;break;case"defaultValue":r=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:Rt(t,e,h,S,n,null)}Kf(t,l,r,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Rt(t,e,T,l,n,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(l=0;l<hl.length;l++)pt(hl[l],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Rt(t,e,O,l,n,null)}return;default:if(Zu(e)){for(L in n)n.hasOwnProperty(L)&&(l=n[L],l!==void 0&&_o(t,e,L,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Rt(t,e,S,l,n,null))}function nS(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,h=null,S=null,T=null,O=null,L=null;for(N in n){var G=n[N];if(n.hasOwnProperty(N)&&G!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(N)||Rt(t,e,N,null,l,G)}}for(var j in l){var N=l[j];if(G=n[j],l.hasOwnProperty(j)&&(N!=null||G!=null))switch(j){case"type":o=N;break;case"name":r=N;break;case"checked":O=N;break;case"defaultChecked":L=N;break;case"value":h=N;break;case"defaultValue":S=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:N!==G&&Rt(t,e,j,N,l,G)}}Xu(t,h,S,T,O,L,o,r);return;case"select":N=h=S=j=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":N=T;default:l.hasOwnProperty(o)||Rt(t,e,o,null,l,T)}for(r in l)if(o=l[r],T=n[r],l.hasOwnProperty(r)&&(o!=null||T!=null))switch(r){case"value":j=o;break;case"defaultValue":S=o;break;case"multiple":h=o;default:o!==T&&Rt(t,e,r,o,l,T)}e=S,n=h,l=N,j!=null?Ua(t,!!n,j,!1):!!l!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":N=j=null;for(S in n)if(r=n[S],n.hasOwnProperty(S)&&r!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Rt(t,e,S,null,l,r)}for(h in l)if(r=l[h],o=n[h],l.hasOwnProperty(h)&&(r!=null||o!=null))switch(h){case"value":j=r;break;case"defaultValue":N=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==o&&Rt(t,e,h,r,l,o)}Qf(t,j,N);return;case"option":for(var tt in n)if(j=n[tt],n.hasOwnProperty(tt)&&j!=null&&!l.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:Rt(t,e,tt,null,l,j)}for(T in l)if(j=l[T],N=n[T],l.hasOwnProperty(T)&&j!==N&&(j!=null||N!=null))switch(T){case"selected":t.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Rt(t,e,T,j,l,N)}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 ut in n)j=n[ut],n.hasOwnProperty(ut)&&j!=null&&!l.hasOwnProperty(ut)&&Rt(t,e,ut,null,l,j);for(O in l)if(j=l[O],N=n[O],l.hasOwnProperty(O)&&j!==N&&(j!=null||N!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,e));break;default:Rt(t,e,O,j,l,N)}return;default:if(Zu(e)){for(var wt in n)j=n[wt],n.hasOwnProperty(wt)&&j!==void 0&&!l.hasOwnProperty(wt)&&_o(t,e,wt,void 0,l,j);for(L in l)j=l[L],N=n[L],!l.hasOwnProperty(L)||j===N||j===void 0&&N===void 0||_o(t,e,L,j,l,N);return}}for(var R in n)j=n[R],n.hasOwnProperty(R)&&j!=null&&!l.hasOwnProperty(R)&&Rt(t,e,R,null,l,j);for(G in l)j=l[G],N=n[G],!l.hasOwnProperty(G)||j===N||j==null&&N==null||Rt(t,e,G,j,l,N)}function Fm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aS(){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,h=r.initiatorType,S=r.duration;if(o&&S&&Fm(h)){for(h=0,S=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>S)break;var L=T.transferSize,G=T.initiatorType;L&&Fm(G)&&(T=T.responseEnd,h+=L*(T<S?1:(S-O)/(T-O)))}if(--l,e+=8*(o+h)/(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 jo=null,Vo=null;function ks(t){return t.nodeType===9?t:t.ownerDocument}function Wm(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 $m(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 No(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 Bo=null;function iS(){var t=window.event;return t&&t.type==="popstate"?t===Bo?!1:(Bo=t,!0):(Bo=null,!1)}var Im=typeof setTimeout=="function"?setTimeout:void 0,lS=typeof clearTimeout=="function"?clearTimeout:void 0,tp=typeof Promise=="function"?Promise:void 0,sS=typeof queueMicrotask=="function"?queueMicrotask:typeof tp<"u"?function(t){return tp.resolve(null).then(t).catch(uS)}:Im;function uS(t){setTimeout(function(){throw t})}function Zn(t){return t==="head"}function ep(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),pi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")pl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,pl(n);for(var o=n.firstChild;o;){var h=o.nextSibling,S=o.nodeName;o[ji]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&pl(t.ownerDocument.body);n=r}while(n);pi(e)}function np(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 Uo(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":Uo(n),qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function rS(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[ji])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=He(t.nextSibling),t===null)break}return null}function oS(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=He(t.nextSibling),t===null))return null;return t}function ap(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function Lo(t){return t.data==="$?"||t.data==="$~"}function Ho(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function cS(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 He(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 Yo=null;function ip(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return He(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function lp(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 sp(t,e,n){switch(e=ks(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 pl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);qu(t)}var Ye=new Map,up=new Set;function Zs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var En=Q.d;Q.d={f:fS,r:dS,D:hS,C:mS,L:pS,m:yS,X:vS,S:gS,M:SS};function fS(){var t=En.f(),e=Bs();return t||e}function dS(t){var e=Va(t);e!==null&&e.tag===5&&e.type==="form"?Eh(e):En.r(t)}var di=typeof document>"u"?null:document;function rp(t,e,n){var l=di;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),up.has(r)||(up.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),le(e,"link",t),$t(e),l.head.appendChild(e)))}}function hS(t){En.D(t),rp("dns-prefetch",t,null)}function mS(t,e){En.C(t,e),rp("preconnect",t,e)}function pS(t,e,n){En.L(t,e,n);var l=di;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_e(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_e(n.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var o=r;switch(e){case"style":o=hi(t);break;case"script":o=mi(t)}Ye.has(o)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ye.set(o,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(yl(o))||e==="script"&&l.querySelector(gl(o))||(e=l.createElement("link"),le(e,"link",t),$t(e),l.head.appendChild(e)))}}function yS(t,e){En.m(t,e);var n=di;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=mi(t)}if(!Ye.has(o)&&(t=g({rel:"modulepreload",href:t},e),Ye.set(o,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gl(o)))return}l=n.createElement("link"),le(l,"link",t),$t(l),n.head.appendChild(l)}}}function gS(t,e,n){En.S(t,e,n);var l=di;if(l&&t){var r=Na(l).hoistableStyles,o=hi(t);e=e||"default";var h=r.get(o);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(yl(o)))S.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(o))&&qo(t,n);var T=h=l.createElement("link");$t(T),le(T,"link",t),T._p=new Promise(function(O,L){T.onload=O,T.onerror=L}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Qs(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},r.set(o,h)}}}function vS(t,e){En.X(t,e);var n=di;if(n&&t){var l=Na(n).hoistableScripts,r=mi(t),o=l.get(r);o||(o=n.querySelector(gl(r)),o||(t=g({src:t,async:!0},e),(e=Ye.get(r))&&Go(t,e),o=n.createElement("script"),$t(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function SS(t,e){En.M(t,e);var n=di;if(n&&t){var l=Na(n).hoistableScripts,r=mi(t),o=l.get(r);o||(o=n.querySelector(gl(r)),o||(t=g({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&Go(t,e),o=n.createElement("script"),$t(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function op(t,e,n,l){var r=(r=ht.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=hi(n.href),n=Na(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=hi(n.href);var o=Na(r).hoistableStyles,h=o.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,h),(o=r.querySelector(yl(t)))&&!o._p&&(h.instance=o,h.state.loading=5),Ye.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},Ye.set(t,n),o||bS(r,t,n,h.state))),e&&l===null)throw Error(u(528,""));return h}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=mi(n),n=Na(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 hi(t){return'href="'+_e(t)+'"'}function yl(t){return'link[rel="stylesheet"]['+t+"]"}function cp(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function bS(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}),le(e,"link",n),$t(e),t.head.appendChild(e))}function mi(t){return'[src="'+_e(t)+'"]'}function gl(t){return"script[async]"+t}function fp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(n.href)+'"]');if(l)return e.instance=l,$t(l),l;var r=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),$t(l),le(l,"style",r),Qs(l,n.precedence,t),e.instance=l;case"stylesheet":r=hi(n.href);var o=t.querySelector(yl(r));if(o)return e.state.loading|=4,e.instance=o,$t(o),o;l=cp(n),(r=Ye.get(r))&&qo(l,r),o=(t.ownerDocument||t).createElement("link"),$t(o);var h=o;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),le(o,"link",l),e.state.loading|=4,Qs(o,n.precedence,t),e.instance=o;case"script":return o=mi(n.src),(r=t.querySelector(gl(o)))?(e.instance=r,$t(r),r):(l=n,(r=Ye.get(o))&&(l=g({},n),Go(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),$t(r),le(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,Qs(l,n.precedence,t));return e.instance}function Qs(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,h=0;h<l.length;h++){var S=l[h];if(S.dataset.precedence===e)o=S;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 qo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Go(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ks=null;function dp(t,e,n){if(Ks===null){var l=new Map,r=Ks=new Map;r.set(n,l)}else r=Ks,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[ji]||o[ee]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(e)||"";h=t+h;var S=l.get(h);S?S.push(o):l.set(h,[o])}}return l}function hp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function TS(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 mp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function xS(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=hi(l.href),o=e.querySelector(yl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Js.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,$t(o);return}o=e.ownerDocument||e,l=cp(l),(r=Ye.get(r))&&qo(l,r),o=o.createElement("link"),$t(o);var h=o;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),le(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=Js.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Xo=0;function AS(t,e){return t.stylesheets&&t.count===0&&Fs(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Fs(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Xo===0&&(Xo=62500*aS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Fs(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Xo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Js(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ps=null;function Fs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ps=new Map,e.forEach(ES,t),Ps=null,Js.call(t))}function ES(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 h=r[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),o=n.get(h)||l,o===l&&n.set(null,r),n.set(h,r),this.count++,l=Js.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 vl={$$typeof:U,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function MS(t,e,n,l,r,o,h,S,T){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=Uu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.hiddenUpdates=Uu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function pp(t,e,n,l,r,o,h,S,T,O,L,G){return t=new MS(t,e,n,h,T,O,L,G,S),e=1,o===!0&&(e|=24),o=Ae(3,null,null,e),t.current=o,o.stateNode=t,e=Tr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Mr(o),t}function yp(t){return t?(t=Za,t):Za}function gp(t,e,n,l,r,o){r=yp(r),l.context===null?l.context=r:l.pendingContext=r,l=Vn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Nn(t,l,e),n!==null&&(Se(n,t,e),Fi(n,t,e))}function vp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function ko(t,e){vp(t,e),(t=t.alternate)&&vp(t,e)}function Sp(t){if(t.tag===13||t.tag===31){var e=oa(t,67108864);e!==null&&Se(e,t,67108864),ko(t,67108864)}}function bp(t){if(t.tag===13||t.tag===31){var e=Re();e=Lu(e);var n=oa(t,e);n!==null&&Se(n,t,e),ko(t,e)}}var Ws=!0;function CS(t,e,n,l){var r=V.T;V.T=null;var o=Q.p;try{Q.p=2,Zo(t,e,n,l)}finally{Q.p=o,V.T=r}}function DS(t,e,n,l){var r=V.T;V.T=null;var o=Q.p;try{Q.p=8,Zo(t,e,n,l)}finally{Q.p=o,V.T=r}}function Zo(t,e,n,l){if(Ws){var r=Qo(l);if(r===null)Oo(t,e,l,$s,n),xp(t,l);else if(wS(r,t,e,n,l))l.stopPropagation();else if(xp(t,l),e&4&&-1<RS.indexOf(t)){for(;r!==null;){var o=Va(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=ia(o.pendingLanes);if(h!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;h;){var T=1<<31-Te(h);S.entanglements[1]|=T,h&=~T}Ie(o),(xt&6)===0&&(Vs=kt()+500,dl(0))}}break;case 31:case 13:S=oa(o,2),S!==null&&Se(S,o,2),Bs(),ko(o,2)}if(o=Qo(l),o===null&&Oo(t,e,l,$s,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Oo(t,e,l,null,n)}}function Qo(t){return t=Ku(t),Ko(t)}var $s=null;function Ko(t){if($s=null,t=ja(t),t!==null){var e=d(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 $s=t,null}function Tp(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(Bu()){case wf:return 2;case zf:return 8;case ql:case mv:return 32;case Of:return 268435456;default:return 32}default:return 32}}var Jo=!1,Qn=null,Kn=null,Jn=null,Sl=new Map,bl=new Map,Pn=[],RS="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 xp(t,e){switch(t){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Sl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":bl.delete(e.pointerId)}}function Tl(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=Va(e),e!==null&&Sp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function wS(t,e,n,l,r){switch(e){case"focusin":return Qn=Tl(Qn,t,e,n,l,r),!0;case"dragenter":return Kn=Tl(Kn,t,e,n,l,r),!0;case"mouseover":return Jn=Tl(Jn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return Sl.set(o,Tl(Sl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,bl.set(o,Tl(bl.get(o)||null,t,e,n,l,r)),!0}return!1}function Ap(t){var e=ja(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Uf(t.priority,function(){bp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Uf(t.priority,function(){bp(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 Is(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Qo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Qu=l,n.target.dispatchEvent(l),Qu=null}else return e=Va(n),e!==null&&Sp(e),t.blockedOn=n,!1;e.shift()}return!0}function Ep(t,e,n){Is(t)&&n.delete(e)}function zS(){Jo=!1,Qn!==null&&Is(Qn)&&(Qn=null),Kn!==null&&Is(Kn)&&(Kn=null),Jn!==null&&Is(Jn)&&(Jn=null),Sl.forEach(Ep),bl.forEach(Ep)}function tu(t,e){t.blockedOn===e&&(t.blockedOn=null,Jo||(Jo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,zS)))}var eu=null;function Mp(t){eu!==t&&(eu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){eu===t&&(eu=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(Ko(l||n)===null)continue;break}var o=Va(n);o!==null&&(t.splice(e,3),e-=3,Zr(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function pi(t){function e(T){return tu(T,t)}Qn!==null&&tu(Qn,t),Kn!==null&&tu(Kn,t),Jn!==null&&tu(Jn,t),Sl.forEach(e),bl.forEach(e);for(var n=0;n<Pn.length;n++){var l=Pn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Pn.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],h=r[he]||null;if(typeof o=="function")h||Mp(n);else if(h){var S=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[he]||null)S=h.formAction;else if(Ko(r)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),Mp(n)}}}function Cp(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return r=h})},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 Po(t){this._internalRoot=t}nu.prototype.render=Po.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=Re();gp(n,l,t,e,null,null)},nu.prototype.unmount=Po.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;gp(t.current,2,null,t,null,null),Bs(),e[_a]=null}};function nu(t){this._internalRoot=t}nu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Bf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Pn.length&&e!==0&&e<Pn[n].priority;n++);Pn.splice(n,0,t),n===0&&Ap(t)}};var Dp=i.version;if(Dp!=="19.2.5")throw Error(u(527,Dp,"19.2.5"));Q.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?v(t):null,t=t===null?null:t.stateNode,t};var OS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{zi=au.inject(OS),be=au}catch{}}return Al.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Vh,o=Nh,h=Bh;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&&(h=e.onRecoverableError)),e=pp(t,1,!1,null,null,n,l,null,r,o,h,Cp),t[_a]=e.current,zo(t),new Po(e)},Al.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Vh,h=Nh,S=Bh,T=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&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=pp(t,1,!0,e,n??null,l,r,T,o,h,S,Cp),e.context=yp(null),n=e.current,l=Re(),l=Lu(l),r=Vn(l),r.callback=null,Nn(n,r,l),n=l,e.current.lanes=n,_i(e,n),Ie(e),t[_a]=e.current,zo(t),new nu(e)},Al.version="19.2.5",Al}var Up;function qS(){if(Up)return $o.exports;Up=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(),$o.exports=YS(),$o.exports}var GS=qS();const XS={scale:1,x:0,y:0};function nc(a,i){const s=a.getBoundingClientRect(),u=i.getBoundingClientRect(),c=s.width/a.offsetWidth||1;return{x:(u.left-s.left+u.width/2)/c,y:(u.top-s.top+u.height/2)/c}}const kS=3e3;function ZS(a,i){var f,m;const s=[0];for(let y=1;y<a.length;y++){const p=s[y-1],v=a[y].delayMs,g=((f=i==null?void 0:i.steps[y-1])==null?void 0:f.durationMs)??0;s.push(p+Math.max(v,g))}const u=s[s.length-1]??0,c=((m=i==null?void 0:i.steps[a.length-1])==null?void 0:m.durationMs)??0,d=u+Math.max(kS,c);return{stepStartTimesMs:s,totalDurationMs:d}}function Ac(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const QS=3e3;function lg(a,i,s){var d;const u=(d=i==null?void 0:i.steps[a])==null?void 0:d.durationMs;if(u!=null&&u>0)return u;const c=s[a+1];return c?c.delayMs:QS}const te=450,sg=50,ug=1500,bu=200;function rg(a){let i=a.parentElement;for(;i;){const{overflowY:s}=getComputedStyle(i);if(s==="auto"||s==="scroll")return i;i=i.parentElement}return null}function og(a){const i=rg(a);if(!i)return!1;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return!1;const d=window.scrollX,f=window.scrollY;return a.scrollIntoView({block:"center",behavior:"smooth"}),window.scrollTo(d,f),!0}function KS(a){const i=rg(a);if(!i)return;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return;const d=window.scrollX,f=window.scrollY;a.scrollIntoView({block:"center",behavior:"instant"}),window.scrollTo(d,f)}const JS="data-cursor-target",PS="data-scroll-target";function bi(a){return`[${JS}="${a}"]`}function FS(a){return`[${PS}="${a}"]`}const cg="scenar-embed",fg=1;function WS(a){return{source:cg,v:fg,...a}}function $S(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===cg&&i.v===fg}function Lp(a){return typeof a=="number"&&Number.isFinite(a)}function IS(a){if(!$S(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return Lp(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return Lp(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const tb=D.createContext(null);function Pc(){return D.useContext(tb)}const eb={isVideoExport:!1,hideControls:!1,initialMuted:!0},nb=D.createContext(eb);function Fc(){return D.useContext(nb)}const Ec=new Map;let ab=0;function ib(a){const i=`sp-${ab++}`;return Ec.set(i,a),{id:i,unregister:()=>Ec.delete(i)}}function Hp(a){for(const[i,s]of Ec)i!==a&&s()}function Wc(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function iu(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,Wc(a)}function lb(a,i,s,u=1){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const c=()=>{a.currentTime=s,Wc(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?c():a.addEventListener("loadedmetadata",c,{once:!0})}function lu(a){a.pause(),a.removeAttribute("src"),a.load()}function su(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function sb({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=D.useState(u),[y,p]=D.useState(!1),v=D.useRef(null),g=D.useRef(!1),b=D.useCallback(Z=>{Z.then(()=>p(!1),()=>p(!0))},[]),x=D.useRef(f);x.current=f;const A=D.useRef(s);A.current=s;const w=D.useRef(d);w.current=d;const _=D.useRef(c);_.current=c;const B=(a==null?void 0:a.steps[i])??null,Y=(B==null?void 0:B.src)??null,U=D.useRef(!1),X=D.useCallback((Z,J)=>{U.current=!0,setTimeout(()=>{U.current=!1},0);const nt=v.current;if(!nt||!a||x.current)return;const lt=a.steps[Z],Ct=lt==null?void 0:lt.src;if(!Ct)return;const At=(lt==null?void 0:lt.durationMs)??0;if(J>=At){lu(nt);return}lb(nt,Ct,J/1e3,_.current)},[a]);D.useEffect(()=>{!a||u||g.current||(su(a),g.current=!0)},[a,u]),D.useEffect(()=>{const Z=v.current;if(!Z||!a)return;const J=()=>{var nt;return(nt=w.current)==null?void 0:nt.call(w)};return Z.addEventListener("ended",J),()=>Z.removeEventListener("ended",J)},[a]),D.useEffect(()=>{if(U.current){U.current=!1;return}const Z=v.current;if(!(!Z||!a)){if(x.current||!Y||!A.current){lu(Z);return}b(iu(Z,Y,_.current))}},[i,Y,a,b]),D.useEffect(()=>{const Z=v.current;!Z||!a||x.current||(s?Y&&(Z.src?b(Wc(Z)):b(iu(Z,Y,_.current))):Z.pause())},[s,Y,a,b]);const K=D.useCallback(()=>{m(Z=>{const J=!Z,nt=v.current;return nt&&(J?(lu(nt),p(!1)):(a&&!g.current&&(su(a),g.current=!0),Y&&b(iu(nt,Y,_.current)))),J})},[Y,a,b]),$=D.useCallback(()=>{const Z=v.current;!Z||x.current||!Y||(a&&!g.current&&(su(a),g.current=!0),b(iu(Z,Y,_.current)))},[Y,a,b]),k=D.useCallback(Z=>{const J=v.current;J&&(J.volume=Math.max(0,Math.min(Z,1)))},[]),P=D.useCallback(()=>{!a||g.current||(su(a),g.current=!0)},[a]);return D.useEffect(()=>{const Z=v.current;Z&&(Z.defaultPlaybackRate=c,Z.playbackRate=c)},[c]),D.useEffect(()=>{const Z=v.current;return()=>{Z&&lu(Z)}},[]),{muted:f,toggleMute:K,audioRef:v,seekToStep:X,audioBlocked:y,unlock:$,setVolume:k,prefetch:P}}const $c=D.createContext({});function Ic(a){const i=D.useRef(null);return i.current===null&&(i.current=a()),i.current}const ub=typeof window<"u",dg=ub?D.useLayoutEffect:D.useEffect,Ou=D.createContext(null);function tf(a,i){a.indexOf(i)===-1&&a.push(i)}function Tu(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const an=(a,i,s)=>s>i?i:s<a?a:s;let ef=()=>{};const ta={},hg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function mg(a){return typeof a=="object"&&a!==null}const pg=a=>/^0[^.\s]+$/u.test(a);function yg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,rb=(a,i)=>s=>i(a(s)),Nl=(...a)=>a.reduce(rb),zl=(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),()=>Tu(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 d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=a=>a*1e3,qe=a=>a/1e3;function gg(a,i){return i?a*(1e3/i):0}const vg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,ob=1e-7,cb=12;function fb(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=vg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>ob&&++m<cb);return f}function Bl(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>fb(d,0,1,a,s);return d=>d===0||d===1?d:vg(c(d),i,u)}const Sg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,bg=a=>i=>1-a(1-i),Tg=Bl(.33,1.53,.69,.99),af=bg(Tg),xg=Sg(af),Ag=a=>a>=1?1:(a*=2)<1?.5*af(a):.5*(2-Math.pow(2,-10*(a-1))),lf=a=>1-Math.sin(Math.acos(a)),Eg=bg(lf),Mg=Sg(lf),db=Bl(.42,0,1,1),hb=Bl(0,0,.58,1),Cg=Bl(.42,0,.58,1),mb=a=>Array.isArray(a)&&typeof a[0]!="number",Dg=a=>Array.isArray(a)&&typeof a[0]=="number",pb={linear:Ge,easeIn:db,easeInOut:Cg,easeOut:hb,circIn:lf,circInOut:Mg,circOut:Eg,backIn:af,backInOut:xg,backOut:Tg,anticipate:Ag},yb=a=>typeof a=="string",Yp=a=>{if(Dg(a)){ef(a.length===4);const[i,s,u,c]=a;return Bl(i,s,u,c)}else if(yb(a))return pb[a];return a},uu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function gb(a,i){let s=new Set,u=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,g=!1,b=!1)=>{const A=b&&c?s:u;return g&&f.add(v),A.add(v),v},cancel:v=>{u.delete(v),f.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0;const g=s;s=u,u=g,s.forEach(y),s.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const vb=40;function Rg(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=uu.reduce((U,X)=>(U[X]=gb(d),U),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:g,preRender:b,render:x,postRender:A}=f,w=()=>{const U=ta.useManualTiming,X=U?c.timestamp:performance.now();s=!1,U||(c.delta=u?1e3/60:Math.max(Math.min(X-c.timestamp,vb),1)),c.timestamp=X,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),g.process(c),b.process(c),x.process(c),A.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(w))},_=()=>{s=!0,u=!0,c.isProcessing||a(w)};return{schedule:uu.reduce((U,X)=>{const K=f[X];return U[X]=($,k=!1,P=!1)=>(s||_(),K.schedule($,k,P)),U},{}),cancel:U=>{for(let X=0;X<uu.length;X++)f[uu[X]].cancel(U)},state:c,steps:f}}const{schedule:_t,cancel:ea,state:se,steps:ac}=Rg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let du;function Sb(){du=void 0}const ce={now:()=>(du===void 0&&ce.set(se.isProcessing||ta.useManualTiming?se.timestamp:performance.now()),du),set:a=>{du=a,queueMicrotask(Sb)}},wg=a=>i=>typeof i=="string"&&i.startsWith(a),zg=wg("--"),bb=wg("var(--"),sf=a=>bb(a)?Tb.test(a.split("/*")[0].trim()):!1,Tb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function qp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Ei={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Ol={...Ei,transform:a=>an(0,1,a)},ru={...Ei,default:1},Cl=a=>Math.round(a*1e5)/1e5,uf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xb(a){return a==null}const Ab=/^(?:#[\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"&&Ab.test(s)&&s.startsWith(a)||i&&!xb(s)&&Object.prototype.hasOwnProperty.call(s,i)),Og=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(uf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},Eb=a=>an(0,255,a),ic={...Ei,transform:a=>Math.round(Eb(a))},Ea={test:rf("rgb","red"),parse:Og("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+ic.transform(a)+", "+ic.transform(i)+", "+ic.transform(s)+", "+Cl(Ol.transform(u))+")"};function Mb(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 Mc={test:rf("#"),parse:Mb,transform:Ea.transform},Ul=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Wn=Ul("deg"),nn=Ul("%"),et=Ul("px"),Cb=Ul("vh"),Db=Ul("vw"),Gp={...nn,parse:a=>nn.parse(a)/100,transform:a=>nn.transform(a*100)},gi={test:rf("hsl","hue"),parse:Og("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+nn.transform(Cl(i))+", "+nn.transform(Cl(s))+", "+Cl(Ol.transform(u))+")"},Pt={test:a=>Ea.test(a)||Mc.test(a)||gi.test(a),parse:a=>Ea.test(a)?Ea.parse(a):gi.test(a)?gi.parse(a):Mc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ea.transform(a):gi.transform(a),getAnimatableNone:a=>{const i=Pt.parse(a);return i.alpha=0,Pt.transform(i)}},Rb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(uf))==null?void 0:i.length)||0)+(((s=a.match(Rb))==null?void 0:s.length)||0)>0}const _g="number",jg="color",zb="var",Ob="var(",Xp="${}",_b=/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 Ti(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(_b,y=>(Pt.test(y)?(u.color.push(d),c.push(jg),s.push(Pt.parse(y))):y.startsWith(Ob)?(u.var.push(d),c.push(zb),s.push(y)):(u.number.push(d),c.push(_g),s.push(parseFloat(y))),++d,Xp)).split(Xp);return{values:s,split:m,indexes:u,types:c}}function jb(a){return Ti(a).values}function Vg({split:a,types:i}){const s=a.length;return u=>{let c="";for(let d=0;d<s;d++)if(c+=a[d],u[d]!==void 0){const f=i[d];f===_g?c+=Cl(u[d]):f===jg?c+=Pt.transform(u[d]):c+=u[d]}return c}}function Vb(a){return Vg(Ti(a))}const Nb=a=>typeof a=="number"?0:Pt.test(a)?Pt.getAnimatableNone(a):a,Bb=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:Nb(a);function Ub(a){const i=Ti(a);return Vg(i)(i.values.map((u,c)=>Bb(u,i.split[c])))}const Je={test:wb,parse:jb,createTransformer:Vb,getAnimatableNone:Ub};function lc(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 Lb({hue:a,saturation:i,lightness:s,alpha:u}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=lc(y,m,a+1/3),d=lc(y,m,a),f=lc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function xu(a,i){return s=>s>0?i:a}const Bt=(a,i,s)=>a+(i-a)*s,sc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},Hb=[Mc,Ea,gi],Yb=a=>Hb.find(i=>i.test(a));function kp(a){const i=Yb(a);if(!i)return!1;let s=i.parse(a);return i===gi&&(s=Lb(s)),s}const Zp=(a,i)=>{const s=kp(a),u=kp(i);if(!s||!u)return xu(a,i);const c={...s};return d=>(c.red=sc(s.red,u.red,d),c.green=sc(s.green,u.green,d),c.blue=sc(s.blue,u.blue,d),c.alpha=Bt(s.alpha,u.alpha,d),Ea.transform(c))},Cc=new Set(["none","hidden"]);function qb(a,i){return Cc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function Gb(a,i){return s=>Bt(a,i,s)}function of(a){return typeof a=="number"?Gb:typeof a=="string"?sf(a)?xu:Pt.test(a)?Zp:Zb:Array.isArray(a)?Ng:typeof a=="object"?Pt.test(a)?Zp:Xb:xu}function Ng(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>of(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function Xb(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 d in u)s[d]=u[d](c);return s}}function kb(a,i){const s=[],u={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][u[d]],m=a.values[f]??0;s[c]=m,u[d]++}return s}const Zb=(a,i)=>{const s=Je.createTransformer(i),u=Ti(a),c=Ti(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?Cc.has(a)&&!c.values.length||Cc.has(i)&&!u.values.length?qb(a,i):Nl(Ng(kb(u,c),c.values),s):xu(a,i)};function Bg(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Bt(a,i,s):of(a)(a,i)}const Qb=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>_t.update(i,s),stop:()=>ea(i),now:()=>se.isProcessing?se.timestamp:ce.now()}},Ug=(a,i,s=10)=>{let u="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)u+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},Au=2e4;function cf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Au;)i+=s,u=a.next(i);return i>=Au?1/0:i}function Kb(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(cf(u),Au);return{type:"keyframes",ease:d=>u.next(c*d).value/i,duration:qe(c)}}const qt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Dc(a,i){return a*Math.sqrt(1-i*i)}const Jb=12;function Pb(a,i,s){let u=s;for(let c=1;c<Jb;c++)u=u-a(u)/i(u);return u}const uc=.001;function Fb({duration:a=qt.duration,bounce:i=qt.bounce,velocity:s=qt.velocity,mass:u=qt.mass}){let c,d,f=1-i;f=an(qt.minDamping,qt.maxDamping,f),a=an(qt.minDuration,qt.maxDuration,qe(a)),f<1?(c=p=>{const v=p*f,g=v*a,b=v-s,x=Dc(p,f),A=Math.exp(-g);return uc-b/x*A},d=p=>{const g=p*f*a,b=g*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,A=Math.exp(-g),w=Dc(Math.pow(p,2),f);return(-c(p)+uc>0?-1:1)*((b-x)*A)/w}):(c=p=>{const v=Math.exp(-p*a),g=(p-s)*a+1;return-uc+v*g},d=p=>{const v=Math.exp(-p*a),g=(s-p)*(a*a);return v*g});const m=5/a,y=Pb(c,d,m);if(a=we(a),isNaN(y))return{stiffness:qt.stiffness,damping:qt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const Wb=["duration","bounce"],$b=["stiffness","damping","mass"];function Qp(a,i){return i.some(s=>a[s]!==void 0)}function Ib(a){let i={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...a};if(!Qp(a,$b)&&Qp(a,Wb))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,u=2*Math.PI/(s*1.2),c=u*u,d=2*an(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:qt.mass,stiffness:c,damping:d}}else{const s=Fb({...a,velocity:0});i={...i,...s,mass:qt.mass},i.isResolvedFromDuration=!0}return i}function Eu(a=qt.visualDuration,i=qt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:u,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:g,velocity:b,isResolvedFromDuration:x}=Ib({...s,velocity:-qe(s.velocity||0)}),A=b||0,w=p/(2*Math.sqrt(y*v)),_=f-d,B=qe(Math.sqrt(y/v)),Y=Math.abs(_)<5;u||(u=Y?qt.restSpeed.granular:qt.restSpeed.default),c||(c=Y?qt.restDelta.granular:qt.restDelta.default);let U,X,K,$,k,P;if(w<1)K=Dc(B,w),$=(A+w*B*_)/K,U=J=>{const nt=Math.exp(-w*B*J);return f-nt*($*Math.sin(K*J)+_*Math.cos(K*J))},k=w*B*$+_*K,P=w*B*_-$*K,X=J=>Math.exp(-w*B*J)*(k*Math.sin(K*J)+P*Math.cos(K*J));else if(w===1){U=nt=>f-Math.exp(-B*nt)*(_+(A+B*_)*nt);const J=A+B*_;X=nt=>Math.exp(-B*nt)*(B*J*nt-A)}else{const J=B*Math.sqrt(w*w-1);U=At=>{const zt=Math.exp(-w*B*At),V=Math.min(J*At,300);return f-zt*((A+w*B*_)*Math.sinh(V)+J*_*Math.cosh(V))/J};const nt=(A+w*B*_)/J,lt=w*B*nt-_*J,Ct=w*B*_-nt*J;X=At=>{const zt=Math.exp(-w*B*At),V=Math.min(J*At,300);return zt*(lt*Math.sinh(V)+Ct*Math.cosh(V))}}const Z={calculatedDuration:x&&g||null,velocity:J=>we(X(J)),next:J=>{if(!x&&w<1){const lt=Math.exp(-w*B*J),Ct=Math.sin(K*J),At=Math.cos(K*J),zt=f-lt*($*Ct+_*At),V=we(lt*(k*Ct+P*At));return m.done=Math.abs(V)<=u&&Math.abs(f-zt)<=c,m.value=m.done?f:zt,m}const nt=U(J);if(x)m.done=J>=g;else{const lt=we(X(J));m.done=Math.abs(lt)<=u&&Math.abs(f-nt)<=c}return m.value=m.done?f:nt,m},toString:()=>{const J=Math.min(cf(Z),Au),nt=Ug(lt=>Z.next(J*lt).value,J,30);return J+"ms "+nt},toTransition:()=>{}};return Z}Eu.applyToOptions=a=>{const i=Kb(a,100,Eu);return a.ease=i.ease,a.duration=we(i.duration),a.type="keyframes",a};const tT=5;function Lg(a,i,s){const u=Math.max(i-tT,0);return gg(s-a(u),i-u)}function Rc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:v}){const g=a[0],b={done:!1,value:g},x=P=>m!==void 0&&P<m||y!==void 0&&P>y,A=P=>m===void 0?y:y===void 0||Math.abs(m-P)<Math.abs(y-P)?m:y;let w=s*i;const _=g+w,B=f===void 0?_:f(_);B!==_&&(w=B-g);const Y=P=>-w*Math.exp(-P/u),U=P=>B+Y(P),X=P=>{const Z=Y(P),J=U(P);b.done=Math.abs(Z)<=p,b.value=b.done?B:J};let K,$;const k=P=>{x(b.value)&&(K=P,$=Eu({keyframes:[b.value,A(b.value)],velocity:Lg(U,P,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return k(0),{calculatedDuration:null,next:P=>{let Z=!1;return!$&&K===void 0&&(Z=!0,X(P),k(P)),K!==void 0&&P>=K?$.next(P-K):(!Z&&X(P),b)}}}function eT(a,i,s){const u=[],c=s||ta.mix||Bg,d=a.length-1;for(let f=0;f<d;f++){let m=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||Ge:i;m=Nl(y,m)}u.push(m)}return u}function nT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(ef(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=eT(i,u,c),y=m.length,p=v=>{if(f&&v<a[0])return i[0];let g=0;if(y>1)for(;g<a.length-2&&!(v<a[g+1]);g++);const b=zl(a[g],a[g+1],v);return m[g](b)};return s?v=>p(an(a[0],a[d-1],v)):p}function aT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=zl(0,i,u);a.push(Bt(s,1,c))}}function iT(a){const i=[0];return aT(i,a.length-1),i}function lT(a,i){return a.map(s=>s*i)}function sT(a,i){return a.map(()=>i||Cg).splice(0,a.length-1)}function Dl({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=mb(u)?u.map(Yp):Yp(u),d={done:!1,value:i[0]},f=lT(s&&s.length===i.length?s:iT(i),a),m=nT(f,i,{ease:Array.isArray(c)?c:sT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const uT=a=>a!==null;function _u(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(uT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const rT={decay:Rc,inertia:Rc,tween:Dl,keyframes:Dl,spring:Eu};function Hg(a){typeof a.type=="string"&&(a.type=rT[a.type])}class ff{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 oT=a=>a/100;class Mu extends ff{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var u,c;const{motionValue:s}=this.options;s&&s.updatedAt!==ce.now()&&this.tick(ce.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;Hg(i);const{type:s=Dl,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||Dl;y!==Dl&&typeof m[0]!="number"&&(this.mixKeyframes=Nl(oT,Bg(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=cf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+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:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:v,repeat:g,repeatType:b,repeatDelay:x,type:A,onUpdate:w,finalKeyframe:_}=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 B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let U=this.currentTime,X=u;if(g){const P=Math.min(this.currentTime,c)/m;let Z=Math.floor(P),J=P%1;!J&&P>=1&&(J=1),J===1&&Z--,Z=Math.min(Z,g+1),!!(Z%2)&&(b==="reverse"?(J=1-J,x&&(J-=x/m)):b==="mirror"&&(X=f)),U=an(0,1,J)*m}let K;Y?(this.delayState.value=v[0],K=this.delayState):K=X.next(U),d&&!Y&&(K.value=d(K.value));let{done:$}=K;!Y&&y!==null&&($=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return k&&A!==Rc&&(K.value=_u(v,this.options,_,this.speed)),w&&w(K.value),k&&this.finish(),K}then(i,s){return this.finished.then(i,s)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(this.currentTime)}set time(i){i=we(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const s=this.generator.next(i).value;return Lg(u=>this.generator.next(u).value,i,s)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;s&&this.driver&&this.updateTime(ce.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=Qb,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.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(ce.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 cT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ma=a=>a*180/Math.PI,wc=a=>{const i=Ma(Math.atan2(a[1],a[0]));return zc(i)},fT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:wc,rotateZ:wc,skewX:a=>Ma(Math.atan(a[1])),skewY:a=>Ma(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),Kp=wc,Jp=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Pp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),dT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jp,scaleY:Pp,scale:a=>(Jp(a)+Pp(a))/2,rotateX:a=>zc(Ma(Math.atan2(a[6],a[5]))),rotateY:a=>zc(Ma(Math.atan2(-a[2],a[0]))),rotateZ:Kp,rotate:Kp,skewX:a=>Ma(Math.atan(a[4])),skewY:a=>Ma(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 _c(a,i){if(!a||a==="none")return Oc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=dT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=fT,c=m}if(!c)return Oc(i);const d=u[i],f=c[1].split(",").map(mT);return typeof d=="function"?d(f):f[d]}const hT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return _c(s,i)};function mT(a){return parseFloat(a.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ci=new Set(Mi),Fp=a=>a===Ei||a===et,pT=new Set(["x","y","z"]),yT=Mi.filter(a=>!pT.has(a));function gT(a){const i=[];return yT.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const In={width:({x:a},{paddingLeft:i="0",paddingRight:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-parseFloat(i)-parseFloat(s)},height:({y:a},{paddingTop:i="0",paddingBottom:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-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})=>_c(i,"x"),y:(a,{transform:i})=>_c(i,"y")};In.translateX=In.x;In.translateY=In.y;const Ca=new Set;let jc=!1,Vc=!1,Nc=!1;function Yg(){if(Vc){const a=Array.from(Ca).filter(u=>u.needsMeasurement),i=new Set(a.map(u=>u.element)),s=new Map;i.forEach(u=>{const c=gT(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(([d,f])=>{var m;(m=u.getValue(d))==null||m.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}Vc=!1,jc=!1,Ca.forEach(a=>a.complete(Nc)),Ca.clear()}function qg(){Ca.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Vc=!0)})}function vT(){Nc=!0,qg(),Yg(),Nc=!1}class df{constructor(i,s,u,c,d,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=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ca.add(this),jc||(jc=!0,_t.read(qg),_t.resolveKeyframes(Yg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:u,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(u&&s){const m=u.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}cT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ca.delete(this)}cancel(){this.state==="scheduled"&&(Ca.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ST=a=>a.startsWith("--");function Gg(a,i,s){ST(i)?a.style.setProperty(i,s):a.style[i]=s}const bT={};function Xg(a,i){const s=yg(a);return()=>bT[i]??s()}const TT=Xg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kg=Xg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ml=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,Wp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ml([0,.65,.55,1]),circOut:Ml([.55,0,1,.45]),backIn:Ml([.31,.01,.66,-.59]),backOut:Ml([.33,1.53,.69,.99])};function Zg(a,i){if(a)return typeof a=="function"?kg()?Ug(a,i):"ease-out":Dg(a)?Ml(a):Array.isArray(a)?a.map(s=>Zg(s,i)||Wp.easeOut):Wp[a]}function xT(a,i,s,{delay:u=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[i]:s};y&&(v.offset=y);const g=Zg(m,c);Array.isArray(g)&&(v.easing=g);const b={delay:u,duration:c,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(v,b)}function Qg(a){return typeof a=="function"&&"applyToOptions"in a}function AT({type:a,...i}){return Qg(a)&&kg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Kg extends ff{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:u,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,ef(typeof i.type!="string");const p=AT(i);this.animation=xT(s,u,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=_u(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Gg(s,u,v),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 qe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(i){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=we(i),s&&this.animation.pause()}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,rangeStart:s,rangeEnd:u,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&TT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const Jg={anticipate:Ag,backInOut:xg,circInOut:Mg};function ET(a){return a in Jg}function MT(a){typeof a.ease=="string"&&ET(a.ease)&&(a.ease=Jg[a.ease])}const rc=10;class CT extends Kg{constructor(i){MT(i),Hg(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:u,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Mu({...f,autoplay:!1}),y=Math.max(rc,ce.now()-this.startTime),p=an(0,rc,y-rc),v=m.sample(y).value,{name:g}=this.options;d&&g&&Gg(d,g,v),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,v,p),m.stop()}}const $p=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Je.test(a)||a==="0")&&!a.startsWith("url("));function DT(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 RT(a,i,s,u){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=$p(c,i),m=$p(d,i);return!f||!m?!1:DT(a)||(s==="spring"||Qg(s))&&u}function Bc(a){a.duration=0,a.type="keyframes"}const Pg=new Set(["opacity","clipPath","filter","transform"]),wT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function zT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&wT.test(a[i]))return!0;return!1}const OT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_T=yg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jT(a){var g;const{motionValue:i,name:s,repeatDelay:u,repeatType:c,damping:d,type:f,keyframes:m}=a;if(!(((g=i==null?void 0:i.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=i.owner.getProps();return _T()&&s&&(Pg.has(s)||OT.has(s)&&zT(m))&&(s!=="transform"||!v)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const VT=40;class NT extends ff{constructor({autoplay:i=!0,delay:s=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:v,...g}){var A;super(),this.stop=()=>{var w,_;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=ce.now();const b={autoplay:i,delay:s,type:u,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:v,...g},x=(v==null?void 0:v.KeyframeResolver)||df;this.keyframeResolver=new x(m,(w,_,B)=>this.onKeyframesResolved(w,_,b,!B),y,p,v),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(i,s,u,c){var B,Y;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:v}=u;this.resolvedAt=ce.now();let g=!0;RT(i,d,f,m)||(g=!1,(ta.instantAnimations||!y)&&(v==null||v(_u(i,u,s))),i[0]=i[i.length-1],Bc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>VT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},A=g&&!p&&jT(x),w=(Y=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:Y.current;let _;if(A)try{_=new CT({...x,element:w})}catch{_=new Mu(x)}else _=new Mu(x);_.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}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(),vT()),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 Fg(a,i,s,u=0,c=1){const d=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),f=a.size,m=(f-1)*u;return typeof s=="function"?s(d,f):c===1?d*u:m-d*u}const BT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UT(a){const i=BT.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function Wg(a,i,s=1){const[u,c]=UT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return hg(f)?parseFloat(f):f}return sf(c)?Wg(c,i,s+1):c}const LT={type:"spring",stiffness:500,damping:25,restSpeed:10},HT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),YT={type:"keyframes",duration:.8},qT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GT=(a,{keyframes:i})=>i.length>2?YT:Ci.has(a)?a.startsWith("scale")?HT(i[1]):LT:qT;function $g(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function hf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?$g(s,a):s}const XT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function kT(a){for(const i in a)if(!XT.has(i))return!0;return!1}const mf=(a,i,s,u={},c,d)=>f=>{const m=hf(u,a)||{},y=m.delay||u.delay||0;let{elapsed:p=0}=u;p=p-we(y);const v={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:d?void 0:c};kT(m)||Object.assign(v,GT(a,v)),v.duration&&(v.duration=we(v.duration)),v.repeatDelay&&(v.repeatDelay=we(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let g=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Bc(v),v.delay===0&&(g=!0)),(ta.instantAnimations||ta.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(g=!0,Bc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,g&&!d&&i.get()!==void 0){const b=_u(v.keyframes,m);if(b!==void 0){_t.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new Mu(v):new NT(v)};function Ip(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function pf(a,i,s,u){if(typeof i=="function"){const[c,d]=Ip(u);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=Ip(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function Da(a,i,s){const u=a.getProps();return pf(u,i,s!==void 0?s:u.custom,a)}const Ig=new Set(["width","height","top","left","right","bottom",...Mi]),ty=30,ZT=a=>!isNaN(parseFloat(a));class QT{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const c=ce.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&((d=this.events.change)==null||d.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=ce.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=ZT(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(),_t.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=ce.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>ty)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,ty);return gg(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 xi(a,i){return new QT(a,i)}const Uc=a=>Array.isArray(a);function KT(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,xi(s))}function JT(a){return Uc(a)?a[a.length-1]||0:a}function PT(a,i){const s=Da(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=JT(d[f]);KT(a,f,m)}}const ue=a=>!!(a&&a.getVelocity);function FT(a){return!!(ue(a)&&a.add)}function Lc(a,i){const s=a.getValue("willChange");if(FT(s))return s.add(i);if(!s&&ta.WillChange){const u=new ta.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function yf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const WT="framerAppearId",t0="data-"+yf(WT);function e0(a){return a.props[t0]}function $T({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function n0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?$g(d,y):y;const p=d==null?void 0:d.reduceMotion;u&&(d=u);const v=[],g=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const x=a.getValue(b,a.latestValues[b]??null),A=m[b];if(A===void 0||g&&$T(g,b))continue;const w={delay:s,...hf(d||{},b)},_=x.get();if(_!==void 0&&!x.isAnimating()&&!Array.isArray(A)&&A===_&&!w.velocity){_t.update(()=>x.set(A));continue}let B=!1;if(window.MotionHandoffAnimation){const X=e0(a);if(X){const K=window.MotionHandoffAnimation(X,b,_t);K!==null&&(w.startTime=K,B=!0)}}Lc(a,b);const Y=p??a.shouldReduceMotion;x.start(mf(b,x,A,Y&&Ig.has(b)?{type:!1}:w,a,B));const U=x.animation;U&&v.push(U)}if(f){const b=()=>_t.update(()=>{f&&PT(a,f)});v.length?Promise.all(v).then(b):b()}return v}function Hc(a,i,s={}){var y;const u=Da(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 d=u?()=>Promise.all(n0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:g,staggerDirection:b}=c;return IT(a,i,p,v,g,b,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,v]=m==="beforeChildren"?[d,f]:[f,d];return p().then(()=>v())}else return Promise.all([d(),f(s.delay)])}function IT(a,i,s=0,u=0,c=0,d=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Hc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+Fg(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function tx(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Hc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Hc(a,i,s);else{const c=typeof i=="function"?Da(a,i,s.custom):i;u=Promise.all(n0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const ex={test:a=>a==="auto",parse:a=>a},a0=a=>i=>i.test(a),i0=[Ei,et,nn,Wn,Db,Cb,ex],ey=a=>i0.find(a0(a));function nx(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||pg(a):!0}const ax=new Set(["brightness","contrast","saturate","opacity"]);function ix(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 d=ax.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const lx=/\b([a-z-]*)\(.*?\)/gu,Yc={...Je,getAnimatableNone:a=>{const i=a.match(lx);return i?i.map(ix).join(" "):a}},qc={...Je,getAnimatableNone:a=>{const i=Je.parse(a);return Je.createTransformer(a)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},ny={...Ei,transform:Math.round},sx={rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:ru,scaleX:ru,scaleY:ru,scaleZ:ru,skew:Wn,skewX:Wn,skewY:Wn,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:Ol,originX:Gp,originY:Gp,originZ:et},gf={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,top:et,right:et,bottom:et,left:et,inset:et,insetBlock:et,insetBlockStart:et,insetBlockEnd:et,insetInline:et,insetInlineStart:et,insetInlineEnd:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,paddingBlock:et,paddingBlockStart:et,paddingBlockEnd:et,paddingInline:et,paddingInlineStart:et,paddingInlineEnd:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,marginBlock:et,marginBlockStart:et,marginBlockEnd:et,marginInline:et,marginInlineStart:et,marginInlineEnd:et,fontSize:et,backgroundPositionX:et,backgroundPositionY:et,...sx,zIndex:ny,fillOpacity:Ol,strokeOpacity:Ol,numOctaves:ny},ux={...gf,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:Yc,WebkitFilter:Yc,mask:qc,WebkitMask:qc},l0=a=>ux[a],rx=new Set([Yc,qc]);function s0(a,i){let s=l0(a);return rx.has(s)||(s=Je),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const ox=new Set(["auto","none","0"]);function cx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!ox.has(d)&&Ti(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=s0(s,c)}class fx extends df{constructor(i,s,u,c,d){super(i,s,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:u}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let g=i[v];if(typeof g=="string"&&(g=g.trim(),sf(g))){const b=Wg(g,s.current);b!==void 0&&(i[v]=b),v===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Ig.has(u)||i.length!==2)return;const[c,d]=i,f=ey(c),m=ey(d),y=qp(c),p=qp(d);if(y!==p&&In[u]){this.needsMeasurement=!0;return}if(f!==m)if(Fp(f)&&Fp(m))for(let v=0;v<i.length;v++){const g=i[v];typeof g=="string"&&(i[v]=parseFloat(g))}else In[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||nx(i[c]))&&u.push(c);u.length&&cx(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=In[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 d=u.length-1,f=u[d];u[d]=In[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()}}function u0(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 r0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function hu(a){return mg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:vf}=Rg(queueMicrotask,!1),Ke={x:!1,y:!1};function o0(){return Ke.x||Ke.y}function dx(a){return a==="x"||a==="y"?Ke[a]?null:(Ke[a]=!0,()=>{Ke[a]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function c0(a,i){const s=u0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function hx(a){return!(a.pointerType==="touch"||o0())}function mx(a,i,s={}){const[u,c,d]=c0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const v=()=>{f.removeEventListener("pointerleave",A)},g=_=>{p&&(p(_),p=void 0),v()},b=_=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,g(_))},x=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},A=_=>{if(_.pointerType!=="touch"){if(m){y=!0;return}g(_)}},w=_=>{if(!hx(_))return;y=!1;const B=i(f,_);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",A,c))};f.addEventListener("pointerenter",w,c),f.addEventListener("pointerdown",x,c)}),d}const f0=(a,i)=>i?a===i?!0:f0(a,i.parentElement):!1,Sf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,px=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yx(a){return px.has(a.tagName)||a.isContentEditable===!0}const gx=new Set(["INPUT","SELECT","TEXTAREA"]);function vx(a){return gx.has(a.tagName)||a.isContentEditable===!0}const mu=new WeakSet;function ay(a){return i=>{i.key==="Enter"&&a(i)}}function oc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Sx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=ay(()=>{if(mu.has(s))return;oc(s,"down");const c=ay(()=>{oc(s,"up")}),d=()=>oc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",u,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",u),i)};function iy(a){return Sf(a)&&!o0()}const ly=new WeakSet;function bx(a,i,s={}){const[u,c,d]=c0(a,s),f=m=>{const y=m.currentTarget;if(!iy(m)||ly.has(m))return;mu.add(y),s.stopPropagation&&ly.add(m);const p=i(y,m),v=(x,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),mu.has(y)&&mu.delete(y),iy(x)&&typeof p=="function"&&p(x,{success:A})},g=x=>{v(x,y===window||y===document||s.useGlobalTarget||f0(y,x.target))},b=x=>{v(x,!1)};window.addEventListener("pointerup",g,c),window.addEventListener("pointercancel",b,c)};return u.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),hu(m)&&(m.addEventListener("focus",p=>Sx(p,c)),!yx(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function bf(a){return mg(a)&&"ownerSVGElement"in a}const pu=new WeakMap;let $n;const d0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:bf(u)&&"getBBox"in u?u.getBBox()[i]:u[s],Tx=d0("inline","width","offsetWidth"),xx=d0("block","height","offsetHeight");function Ax({target:a,borderBoxSize:i}){var s;(s=pu.get(a))==null||s.forEach(u=>{u(a,{get width(){return Tx(a,i)},get height(){return xx(a,i)}})})}function Ex(a){a.forEach(Ax)}function Mx(){typeof ResizeObserver>"u"||($n=new ResizeObserver(Ex))}function Cx(a,i){$n||Mx();const s=u0(a);return s.forEach(u=>{let c=pu.get(u);c||(c=new Set,pu.set(u,c)),c.add(i),$n==null||$n.observe(u)}),()=>{s.forEach(u=>{const c=pu.get(u);c==null||c.delete(i),c!=null&&c.size||$n==null||$n.unobserve(u)})}}const yu=new Set;let vi;function Dx(){vi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};yu.forEach(i=>i(a))},window.addEventListener("resize",vi)}function Rx(a){return yu.add(a),vi||Dx(),()=>{yu.delete(a),!yu.size&&typeof vi=="function"&&(window.removeEventListener("resize",vi),vi=void 0)}}function sy(a,i){return typeof a=="function"?Rx(a):Cx(a,i)}function wx(a){return bf(a)&&a.tagName==="svg"}const zx=[...i0,Pt,Je],Ox=a=>zx.find(a0(a)),uy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:uy(),y:uy()}),ry=()=>({min:0,max:0}),Wt=()=>({x:ry(),y:ry()}),_x=new WeakMap;function ju(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function _l(a){return typeof a=="string"||Array.isArray(a)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xf=["initial",...Tf];function Vu(a){return ju(a.animate)||xf.some(i=>_l(a[i]))}function h0(a){return!!(Vu(a)||a.variants)}function jx(a,i,s){for(const u in i){const c=i[u],d=s[u];if(ue(c))a.addValue(u,c);else if(ue(d))a.addValue(u,xi(c,{owner:a}));else if(d!==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,xi(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const Cu={current:null},Af={current:!1},Vx=typeof window<"u";function m0(){if(Af.current=!0,!!Vx)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Cu.current=a.matches;a.addEventListener("change",i),i()}else Cu.current=!1}const oy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Du={};function p0(a){Du=a}function Nx(){return Du}class Bx{scrapeMotionValuesFromProps(i,s,u){return{}}constructor({parent:i,props:s,presenceContext:u,reducedMotionConfig:c,skipAnimations:d,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=df,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=ce.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,_t.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=s,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=Vu(s),this.isVariantNode=h0(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const x in b){const A=b[x];p[x]!==void 0&&ue(A)&&A.set(p[x])}}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,_x.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,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Af.current||m0(),this.shouldReduceMotion=Cu.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(),ea(this.notifyUpdate),ea(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&&Pg.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:v}=s.accelerate,g=new Kg({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:we(v)}),b=f(g);this.valueSubscriptions.set(i,()=>{b(),g.cancel()});return}const u=Ci.has(i);u&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&_t.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),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 Du){const s=Du[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 d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}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<oy.length;u++){const c=oy[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=jx(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=xi(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"&&(hg(u)||pg(u))?u=parseFloat(u):!Ox(u)&&Je.test(s)&&(u=s0(i,s)),this.setBaseTarget(i,ue(u)?u.get():u)),ue(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let u;if(typeof s=="string"||typeof s=="object"){const f=pf(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(u=f[i])}if(s&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!ue(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(){vf.render(this.render)}}class y0 extends Bx{constructor(){super(...arguments),this.KeyframeResolver=fx}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;ue(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class na{constructor(i){this.isMounted=!1,this.node=i}update(){}}function g0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function Ux({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Lx(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 cc(a){return a===void 0||a===1}function Gc({scale:a,scaleX:i,scaleY:s}){return!cc(a)||!cc(i)||!cc(s)}function Aa(a){return Gc(a)||v0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function v0(a){return cy(a.x)||cy(a.y)}function cy(a){return a&&a!=="0%"}function Ru(a,i,s){const u=a-s,c=i*u;return s+c}function fy(a,i,s,u,c){return c!==void 0&&(a=Ru(a,c,u)),Ru(a,s,u)+i}function Xc(a,i=0,s=1,u,c){a.min=fy(a.min,i,s,u,c),a.max=fy(a.max,i,s,u,c)}function S0(a,{x:i,y:s}){Xc(a.x,i.translate,i.scale,i.originPoint),Xc(a.y,s.translate,s.scale,s.originPoint)}const dy=.999999999999,hy=1.0000000000001;function Hx(a,i,s,u=!1){var m;const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let y=0;y<c;y++){d=s[y],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(en(a.x,-d.scroll.offset.x),en(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,S0(a,f)),u&&Aa(d.latestValues)&&gu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<hy&&i.x>dy&&(i.x=1),i.y<hy&&i.y>dy&&(i.y=1)}function en(a,i){a.min+=i,a.max+=i}function my(a,i,s,u,c=.5){const d=Bt(a.min,a.max,c);Xc(a,i,s,d,u)}function py(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function gu(a,i,s){const u=s??a;my(a.x,py(i.x,u.x),i.scaleX,i.scale,i.originX),my(a.y,py(i.y,u.y),i.scaleY,i.scale,i.originY)}function b0(a,i){return g0(Lx(a.getBoundingClientRect(),i))}function Yx(a,i,s){const u=b0(a,s),{scroll:c}=i;return c&&(en(u.x,c.offset.x),en(u.y,c.offset.y)),u}const qx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Gx=Mi.length;function Xx(a,i,s){let u="",c=!0;for(let d=0;d<Gx;d++){const f=Mi[d],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=r0(m,gf[f]);if(!y){c=!1;const v=qx[f]||f;u+=`${v}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function Ef(a,i,s){const{style:u,vars:c,transformOrigin:d}=a;let f=!1,m=!1;for(const y in i){const p=i[y];if(Ci.has(y)){f=!0;continue}else if(zg(y)){c[y]=p;continue}else{const v=r0(p,gf[y]);y.startsWith("origin")?(m=!0,d[y]=v):u[y]=v}}if(i.transform||(f||s?u.transform=Xx(i,a.transform,s):u.transform&&(u.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=d;u.transformOrigin=`${y} ${p} ${v}`}}function T0(a,{style:i,vars:s},u,c){const d=a.style;let f;for(f in i)d[f]=i[f];c==null||c.applyProjectionStyles(d,u);for(f in s)d.setProperty(f,s[f])}function yy(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const El={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(et.test(a))a=parseFloat(a);else return a;const s=yy(a,i.target.x),u=yy(a,i.target.y);return`${s}% ${u}%`}},kx={correct:(a,{treeScale:i,projectionDelta:s})=>{const u=a,c=Je.parse(a);if(c.length>5)return u;const d=Je.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=Bt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},kc={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:kx};function x0(a,{layout:i,layoutId:s}){return Ci.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!kc[a]||a==="opacity")}function Mf(a,i,s){var f;const u=a.style,c=i==null?void 0:i.style,d={};if(!u)return d;for(const m in u)(ue(u[m])||c&&ue(c[m])||x0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function Zx(a){return window.getComputedStyle(a)}class Qx extends y0{constructor(){super(...arguments),this.type="html",this.renderInstance=T0}readValueFromInstance(i,s){var u;if(Ci.has(s))return(u=this.projection)!=null&&u.isProjecting?Oc(s):hT(i,s);{const c=Zx(i),d=(zg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return b0(i,s)}build(i,s,u){Ef(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return Mf(i,s,u)}}const Kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jx={offset:"strokeDashoffset",array:"strokeDasharray"};function Px(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?Kx:Jx;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const Fx=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function A0(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,v){if(Ef(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:g,style:b}=a;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete g.transformBox);for(const x of Fx)g[x]!==void 0&&(b[x]=g[x],delete g[x]);i!==void 0&&(g.x=i),s!==void 0&&(g.y=s),u!==void 0&&(g.scale=u),c!==void 0&&Px(g,c,d,f,!1)}const E0=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"]),M0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Wx(a,i,s,u){T0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(E0.has(c)?c:yf(c),i.attrs[c])}function C0(a,i,s){const u=Mf(a,i,s);for(const c in a)if(ue(a[c])||ue(i[c])){const d=Mi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=a[c]}return u}class $x extends y0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ci.has(s)){const u=l0(s);return u&&u.default||0}return s=E0.has(s)?s:yf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return C0(i,s,u)}build(i,s,u){A0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){Wx(i,s,u,c)}mount(i){this.isSVGTag=M0(i.tagName),super.mount(i)}}const Ix=xf.length;function D0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?D0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<Ix;s++){const u=xf[s],c=a.props[u];(_l(c)||c===!1)&&(i[u]=c)}return i}function R0(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 t2=[...Tf].reverse(),e2=Tf.length;function n2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>tx(a,s,u)))}function a2(a){let i=n2(a),s=gy(),u=!0,c=!1;const d=p=>(v,g)=>{var x;const b=Da(a,g,p==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:A,transitionEnd:w,..._}=b;v={...v,..._,...w}}return v};function f(p){i=p(a)}function m(p){const{props:v}=a,g=D0(a.parent)||{},b=[],x=new Set;let A={},w=1/0;for(let B=0;B<e2;B++){const Y=t2[B],U=s[Y],X=v[Y]!==void 0?v[Y]:g[Y],K=_l(X),$=Y===p?U.isActive:null;$===!1&&(w=B);let k=X===g[Y]&&X!==v[Y]&&K;if(k&&(u||c)&&a.manuallyAnimateOnMount&&(k=!1),U.protectedKeys={...A},!U.isActive&&$===null||!X&&!U.prevProp||ju(X)||typeof X=="boolean")continue;if(Y==="exit"&&U.isActive&&$!==!0){U.prevResolvedValues&&(A={...A,...U.prevResolvedValues});continue}const P=i2(U.prevProp,X);let Z=P||Y===p&&U.isActive&&!k&&K||B>w&&K,J=!1;const nt=Array.isArray(X)?X:[X];let lt=nt.reduce(d(Y),{});$===!1&&(lt={});const{prevResolvedValues:Ct={}}=U,At={...Ct,...lt},zt=W=>{Z=!0,x.has(W)&&(J=!0,x.delete(W)),U.needsAnimating[W]=!0;const rt=a.getValue(W);rt&&(rt.liveStyle=!1)};for(const W in At){const rt=lt[W],ft=Ct[W];if(A.hasOwnProperty(W))continue;let E=!1;Uc(rt)&&Uc(ft)?E=!R0(rt,ft):E=rt!==ft,E?rt!=null?zt(W):x.add(W):rt!==void 0&&x.has(W)?zt(W):U.protectedKeys[W]=!0}U.prevProp=X,U.prevResolvedValues=lt,U.isActive&&(A={...A,...lt}),(u||c)&&a.blockInitialAnimation&&(Z=!1);const V=k&&P;Z&&(!V||J)&&b.push(...nt.map(W=>{const rt={type:Y};if(typeof W=="string"&&(u||c)&&!V&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,E=Da(ft,W);if(ft.enteringChildren&&E){const{delayChildren:H}=E.transition||{};rt.delay=Fg(ft.enteringChildren,a,H)}}return{animation:W,options:rt}}))}if(x.size){const B={};if(typeof v.initial!="boolean"){const Y=Da(a,Array.isArray(v.initial)?v.initial[0]:v.initial);Y&&Y.transition&&(B.transition=Y.transition)}x.forEach(Y=>{const U=a.getBaseTarget(Y),X=a.getValue(Y);X&&(X.liveStyle=!0),B[Y]=U??null}),b.push({animation:B})}let _=!!b.length;return u&&(v.initial===!1||v.initial===v.animate)&&!a.manuallyAnimateOnMount&&(_=!1),u=!1,c=!1,_?i(b):Promise.resolve()}function y(p,v){var b;if(s[p].isActive===v)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(x=>{var A;return(A=x.animationState)==null?void 0:A.setActive(p,v)}),s[p].isActive=v;const g=m(p);for(const x in s)s[x].protectedKeys={};return g}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>s,reset:()=>{s=gy(),c=!0}}}function i2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!R0(i,a):!1}function xa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gy(){return{animate:xa(!0),whileInView:xa(),whileHover:xa(),whileTap:xa(),whileDrag:xa(),whileFocus:xa(),exit:xa()}}function Zc(a,i){a.min=i.min,a.max=i.max}function Qe(a,i){Zc(a.x,i.x),Zc(a.y,i.y)}function vy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const w0=1e-4,l2=1-w0,s2=1+w0,z0=.01,u2=0-z0,r2=0+z0;function fe(a){return a.max-a.min}function o2(a,i,s){return Math.abs(a-i)<=s}function Sy(a,i,s,u=.5){a.origin=u,a.originPoint=Bt(i.min,i.max,a.origin),a.scale=fe(s)/fe(i),a.translate=Bt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=l2&&a.scale<=s2||isNaN(a.scale))&&(a.scale=1),(a.translate>=u2&&a.translate<=r2||isNaN(a.translate))&&(a.translate=0)}function Rl(a,i,s,u){Sy(a.x,i.x,s.x,u?u.originX:void 0),Sy(a.y,i.y,s.y,u?u.originY:void 0)}function by(a,i,s,u=0){const c=u?Bt(s.min,s.max,u):s.min;a.min=c+i.min,a.max=a.min+fe(i)}function c2(a,i,s,u){by(a.x,i.x,s.x,u==null?void 0:u.x),by(a.y,i.y,s.y,u==null?void 0:u.y)}function Ty(a,i,s,u=0){const c=u?Bt(s.min,s.max,u):s.min;a.min=i.min-c,a.max=a.min+fe(i)}function wu(a,i,s,u){Ty(a.x,i.x,s.x,u==null?void 0:u.x),Ty(a.y,i.y,s.y,u==null?void 0:u.y)}function xy(a,i,s,u,c){return a-=i,a=Ru(a,1/s,u),c!==void 0&&(a=Ru(a,1/c,u)),a}function f2(a,i=0,s=1,u=.5,c,d=a,f=a){if(nn.test(i)&&(i=parseFloat(i),i=Bt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Bt(d.min,d.max,u);a===d&&(m-=i),a.min=xy(a.min,i,s,m,c),a.max=xy(a.max,i,s,m,c)}function Ay(a,i,[s,u,c],d,f){f2(a,i[s],i[u],i[c],i.scale,d,f)}const d2=["x","scaleX","originX"],h2=["y","scaleY","originY"];function Ey(a,i,s,u){Ay(a.x,i,d2,s?s.x:void 0,u?u.x:void 0),Ay(a.y,i,h2,s?s.y:void 0,u?u.y:void 0)}function My(a){return a.translate===0&&a.scale===1}function O0(a){return My(a.x)&&My(a.y)}function Cy(a,i){return a.min===i.min&&a.max===i.max}function m2(a,i){return Cy(a.x,i.x)&&Cy(a.y,i.y)}function Dy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function _0(a,i){return Dy(a.x,i.x)&&Dy(a.y,i.y)}function Ry(a){return fe(a.x)/fe(a.y)}function wy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function tn(a){return[a("x"),a("y")]}function p2(a,i,s){let u="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(u=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(u+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:g,rotateY:b,skewX:x,skewY:A}=s;p&&(u=`perspective(${p}px) ${u}`),v&&(u+=`rotate(${v}deg) `),g&&(u+=`rotateX(${g}deg) `),b&&(u+=`rotateY(${b}deg) `),x&&(u+=`skewX(${x}deg) `),A&&(u+=`skewY(${A}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 j0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],y2=j0.length,zy=a=>typeof a=="string"?parseFloat(a):a,Oy=a=>typeof a=="number"||et.test(a);function g2(a,i,s,u,c,d){c?(a.opacity=Bt(0,s.opacity??1,v2(u)),a.opacityExit=Bt(i.opacity??1,0,S2(u))):d&&(a.opacity=Bt(i.opacity??1,s.opacity??1,u));for(let f=0;f<y2;f++){const m=j0[f];let y=_y(i,m),p=_y(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Oy(y)===Oy(p)?(a[m]=Math.max(Bt(zy(y),zy(p),u),0),(nn.test(p)||nn.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=Bt(i.rotate||0,s.rotate||0,u))}function _y(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const v2=V0(0,.5,Eg),S2=V0(.5,.95,Ge);function V0(a,i,s){return u=>u<a?0:u>i?1:s(zl(a,i,u))}function b2(a,i,s){const u=ue(a)?a:xi(a);return u.start(mf("",u,i,s)),u.animation}function jl(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const T2=(a,i)=>a.depth-i.depth;class x2{constructor(){this.children=[],this.isDirty=!1}add(i){tf(this.children,i),this.isDirty=!0}remove(i){Tu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(T2),this.isDirty=!1,this.children.forEach(i)}}function A2(a,i){const s=ce.now(),u=({timestamp:c})=>{const d=c-s;d>=i&&(ea(u),a(d-i))};return _t.setup(u,!0),()=>ea(u)}function vu(a){return ue(a)?a.get():a}class E2{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.snapshot&&(Tu(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Tu(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){var s;for(let u=this.members.indexOf(i)-1;u>=0;u--){const c=this.members[u];if(c.isPresent!==!1&&((s=c.instance)==null?void 0:s.isConnected)!==!1)return this.promote(c),!0}return!1}promote(i,s){var c;const u=this.lead;if(i!==u&&(this.prevLead=u,this.lead=i,i.show(),u)){u.updateSnapshot(),i.scheduleRender();const{layoutDependency:d}=u.options,{layoutDependency:f}=i.options;(d===void 0||d!==f)&&(i.resumeFrom=u,s&&(u.preserveOpacity=!0),u.snapshot&&(i.snapshot=u.snapshot,i.snapshot.latestValues=u.animationValues||u.latestValues),(c=i.root)!=null&&c.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var s,u,c,d,f;(u=(s=i.options).onExitComplete)==null||u.call(s),(f=(c=i.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const Su={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fc=["","X","Y","Z"],M2=1e3;let C2=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 N0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=e0(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",_t,!(c||d))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&N0(u)}function B0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=C2++,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(w2),this.nodes.forEach(N2),this.nodes.forEach(B2),this.nodes.forEach(z2)},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 x2)}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=bf(f)&&!wx(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 v,g=0;const b=()=>this.root.updateBlockedByResize=!1;_t.read(()=>{g=window.innerWidth}),a(f,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,v&&v(),v=A2(b,250),Su.hasAnimatedSinceResize&&(Su.hasAnimatedSinceResize=!1,this.nodes.forEach(Ny)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||p.getDefaultTransition()||q2,{onLayoutAnimationStart:w,onLayoutAnimationComplete:_}=p.getProps(),B=!this.targetLayout||!_0(this.targetLayout,x),Y=!g&&b;if(this.options.layoutRoot||this.resumeFrom||Y||g&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={...hf(A,"layout"),onPlay:w,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(v,Y)}else g||Ny(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}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(),ea(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(U2),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&&N0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const g=this.path[v];g.shouldResetTransform=!0,(typeof g.latestValues.x=="string"||typeof g.latestValues.y=="string")&&(g.isLayoutDirty=!0),g.updateScroll("snapshot"),g.options.layoutRoot&&g.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()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(_2),this.nodes.forEach(jy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j2),this.nodes.forEach(V2),this.nodes.forEach(D2),this.nodes.forEach(R2)):this.nodes.forEach(Vy),this.clearAllSnapshots();const m=ce.now();se.delta=an(0,1e3/60,m-se.timestamp),se.timestamp=m,se.isProcessing=!0,ac.update.process(se),ac.preRender.process(se),ac.render.process(se),se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(O2),this.sharedNodes.forEach(L2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_t.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_t.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fe(this.snapshot.measuredBox.x)&&!fe(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||(this.layoutCorrected=Wt()),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&&!O0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Aa(this.latestValues)||v)&&(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)),G2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return Wt();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(X2))){const{scroll:v}=this.root;v&&(en(m.x,v.offset.x),en(m.y,v.offset.y))}return m}removeElementScroll(f){var y;const m=Wt();if(Qe(m,f),(y=this.scroll)!=null&&y.wasRoot)return m;for(let p=0;p<this.path.length;p++){const v=this.path[p],{scroll:g,options:b}=v;v!==this.root&&g&&b.layoutScroll&&(g.wasRoot&&Qe(m,f),en(m.x,g.offset.x),en(m.y,g.offset.y))}return m}applyTransform(f,m=!1,y){var v,g;const p=y||Wt();Qe(p,f);for(let b=0;b<this.path.length;b++){const x=this.path[b];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(en(p.x,-x.scroll.offset.x),en(p.y,-x.scroll.offset.y)),Aa(x.latestValues)&&gu(p,x.latestValues,(v=x.layout)==null?void 0:v.layoutBox)}return Aa(this.latestValues)&&gu(p,this.latestValues,(g=this.layout)==null?void 0:g.layoutBox),p}removeTransform(f){var y;const m=Wt();Qe(m,f);for(let p=0;p<this.path.length;p++){const v=this.path[p];if(!Aa(v.latestValues))continue;let g;v.instance&&(Gc(v.latestValues)&&v.updateSnapshot(),g=Wt(),Qe(g,v.measurePageBox())),Ey(m,v.latestValues,(y=v.snapshot)==null?void 0:y.layoutBox,g)}return Aa(this.latestValues)&&Ey(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!==se.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var x;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||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:g}=this.options;if(!this.layout||!(v||g))return;this.resolvedRelativeTargetAt=se.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),c2(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qe(this.target,this.layout.layoutBox),S0(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!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||Gc(this.parent.latestValues)||v0(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=Wt(),this.relativeTargetOrigin=Wt(),wu(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===se.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Qe(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;Hx(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=Wt());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vy(this.prevProjectionDelta.x,this.projectionDelta.x),vy(this.prevProjectionDelta.y,this.projectionDelta.y)),Rl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!wy(this.projectionDelta.x,this.prevProjectionDelta.x)||!wy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}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=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},g=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Wt(),x=y?y.source:void 0,A=this.layout?this.layout.source:void 0,w=x!==A,_=this.getStack(),B=!_||_.members.length<=1,Y=!!(w&&!B&&this.options.crossfade===!0&&!this.path.some(Y2));this.animationProgress=0;let U;this.mixTargetDelta=X=>{const K=X/1e3;By(g.x,f.x,K),By(g.y,f.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wu(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),H2(this.relativeTarget,this.relativeTargetOrigin,b,K),U&&m2(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Wt()),Qe(U,this.relativeTarget)),w&&(this.animationValues=v,g2(v,p,this.latestValues,K,Y,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},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&&(ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_t.update(()=>{Su.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xi(0)),this.motionValue.jump(0,!1),this.currentAnimation=b2(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),f.onUpdate&&f.onUpdate(v)},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(M2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&U0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Wt();const g=fe(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+g;const b=fe(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Qe(m,y),gu(m,v),Rl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new E2),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 v=0;v<fc.length;v++)dc(`rotate${fc[v]}`,f,p,this.animationValues),dc(`skew${fc[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);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=vu(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=vu(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let g=p2(this.projectionDeltaWithTransform,this.treeScale,v);y&&(g=y(v,g)),f.transform=g;const{x:b,y:x}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,p.animationValues?f.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const A in kc){if(v[A]===void 0)continue;const{correct:w,applyTo:_,isCSSVariable:B}=kc[A],Y=g==="none"?v[A]:w(v[A],p);if(_){const U=_.length;for(let X=0;X<U;X++)f[_[X]]=Y}else B?this.options.visualElement.renderState.vars[A]=Y:f[A]=Y}this.options.layoutId&&(f.pointerEvents=p===this?vu(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(jy),this.root.sharedNodes.clear()}}}function D2(a){a.updateLayout()}function R2(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:d}=a.options,f=i.source!==a.layout.source;if(d==="size")tn(g=>{const b=f?i.measuredBox[g]:i.layoutBox[g],x=fe(b);b.min=u[g].min,b.max=b.min+x});else if(d==="x"||d==="y"){const g=d==="x"?"y":"x";Zc(f?i.measuredBox[g]:i.layoutBox[g],u[g])}else U0(d,i.layoutBox,u)&&tn(g=>{const b=f?i.measuredBox[g]:i.layoutBox[g],x=fe(u[g]);b.max=b.min+x,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[g].max=a.relativeTarget[g].min+x)});const m=Si();Rl(m,u,i.layoutBox);const y=Si();f?Rl(y,a.applyTransform(c,!0),i.measuredBox):Rl(y,u,i.layoutBox);const p=!O0(m);let v=!1;if(!a.resumeFrom){const g=a.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:b,layout:x}=g;if(b&&x){const A=a.options.layoutAnchor||void 0,w=Wt();wu(w,i.layoutBox,b.layoutBox,A);const _=Wt();wu(_,u,x.layoutBox,A),_0(w,_)||(v=!0),g.options.layoutRoot&&(a.relativeTarget=_,a.relativeTargetOrigin=w,a.relativeParent=g)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function w2(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 z2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function O2(a){a.clearSnapshot()}function jy(a){a.clearMeasurements()}function _2(a){a.isLayoutDirty=!0,a.updateLayout()}function Vy(a){a.isLayoutDirty=!1}function j2(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function V2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Ny(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function N2(a){a.resolveTargetDelta()}function B2(a){a.calcProjection()}function U2(a){a.resetSkewAndRotation()}function L2(a){a.removeLeadSnapshot()}function By(a,i,s){a.translate=Bt(i.translate,0,s),a.scale=Bt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Uy(a,i,s,u){a.min=Bt(i.min,s.min,u),a.max=Bt(i.max,s.max,u)}function H2(a,i,s,u){Uy(a.x,i.x,s.x,u),Uy(a.y,i.y,s.y,u)}function Y2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const q2={duration:.45,ease:[.4,0,.1,1]},Ly=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Hy=Ly("applewebkit/")&&!Ly("chrome/")?Math.round:Ge;function Yy(a){a.min=Hy(a.min),a.max=Hy(a.max)}function G2(a){Yy(a.x),Yy(a.y)}function U0(a,i,s){return a==="position"||a==="preserve-aspect"&&!o2(Ry(i),Ry(s),.2)}function X2(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const k2=B0({attachResizeListener:(a,i)=>jl(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}),hc={current:void 0},L0=B0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!hc.current){const a=new k2({});a.mount(window),a.setOptions({layoutScroll:!0}),hc.current=a}return hc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Cf=D.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function qy(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Z2(...a){return i=>{let s=!1;const u=a.map(c=>{const d=qy(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():qy(a[c],null)}}}}function Q2(...a){return D.useCallback(Z2(...a),a)}class K2 extends D.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(hu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=hu(u)&&u.offsetWidth||0,d=hu(u)&&u.offsetHeight||0,f=getComputedStyle(s),m=this.props.sizeRef.current;m.height=parseFloat(f.height),m.width=parseFloat(f.width),m.top=s.offsetTop,m.left=s.offsetLeft,m.right=c-m.width-m.left,m.bottom=d-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function J2({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var b;const f=D.useId(),m=D.useRef(null),y=D.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=D.useContext(Cf),v=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),g=Q2(m,v);return D.useInsertionEffect(()=>{const{width:x,height:A,top:w,left:_,right:B,bottom:Y}=y.current;if(i||d===!1||!m.current||!x||!A)return;const U=s==="left"?`left: ${_}`:`right: ${B}`,X=u==="bottom"?`bottom: ${Y}`:`top: ${w}`;m.current.dataset.motionPopId=f;const K=document.createElement("style");p&&(K.nonce=p);const $=c??document.head;return $.appendChild(K),K.sheet&&K.sheet.insertRule(`
50
- [data-motion-pop-id="${f}"] {
51
- position: absolute !important;
52
- width: ${x}px !important;
53
- height: ${A}px !important;
54
- ${U}px !important;
55
- ${X}px !important;
56
- }
57
- `),()=>{var k;(k=m.current)==null||k.removeAttribute("data-motion-pop-id"),$.contains(K)&&$.removeChild(K)}},[i]),C.jsx(K2,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:D.cloneElement(a,{ref:g})})}const P2=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const v=Ic(F2),g=D.useId();let b=!0,x=D.useMemo(()=>(b=!1,{id:g,initial:i,isPresent:s,custom:c,onExitComplete:A=>{v.set(A,!0);for(const w of v.values())if(!w)return;u&&u()},register:A=>(v.set(A,!1),()=>v.delete(A))}),[s,v,u]);return d&&b&&(x={...x}),D.useMemo(()=>{v.forEach((A,w)=>v.set(w,!1))},[s]),D.useEffect(()=>{!s&&!v.size&&u&&u()},[s]),a=C.jsx(J2,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),C.jsx(Ou.Provider,{value:x,children:a})};function F2(){return new Map}function H0(a=!0){const i=D.useContext(Ou);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=D.useId();D.useEffect(()=>{if(a)return c(d)},[a]);const f=D.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const ou=a=>a.key||"";function Gy(a){const i=[];return D.Children.forEach(a,s=>{D.isValidElement(s)&&i.push(s)}),i}const Vl=({children:a,custom:i,initial:s=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[v,g]=H0(f),b=D.useMemo(()=>Gy(a),[a]),x=f&&!v?[]:b.map(ou),A=D.useRef(!0),w=D.useRef(b),_=Ic(()=>new Map),B=D.useRef(new Set),[Y,U]=D.useState(b),[X,K]=D.useState(b);dg(()=>{A.current=!1,w.current=b;for(let P=0;P<X.length;P++){const Z=ou(X[P]);x.includes(Z)?(_.delete(Z),B.current.delete(Z)):_.get(Z)!==!0&&_.set(Z,!1)}},[X,x.length,x.join("-")]);const $=[];if(b!==Y){let P=[...b];for(let Z=0;Z<X.length;Z++){const J=X[Z],nt=ou(J);x.includes(nt)||(P.splice(Z,0,J),$.push(J))}return d==="wait"&&$.length&&(P=$),K(Gy(P)),U(b),null}const{forceRender:k}=D.useContext($c);return C.jsx(C.Fragment,{children:X.map(P=>{const Z=ou(P),J=f&&!v?!1:b===X||x.includes(Z),nt=()=>{if(B.current.has(Z))return;if(_.has(Z))B.current.add(Z),_.set(Z,!0);else return;let lt=!0;_.forEach(Ct=>{Ct||(lt=!1)}),lt&&(k==null||k(),K(w.current),f&&(g==null||g()),u&&u())};return C.jsx(P2,{isPresent:J,initial:!A.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:J?void 0:nt,anchorX:m,anchorY:y,children:P},Z)})})},Y0=D.createContext({strict:!1}),Xy={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 ky=!1;function W2(){if(ky)return;const a={};for(const i in Xy)a[i]={isEnabled:s=>Xy[i].some(u=>!!s[u])};p0(a),ky=!0}function q0(){return W2(),Nx()}function $2(a){const i=q0();for(const s in a)i[s]={...i[s],...a[s]};p0(i)}const I2=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 zu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||I2.has(a)}let G0=a=>!zu(a);function tA(a){typeof a=="function"&&(G0=i=>i.startsWith("on")?!zu(i):a(i))}try{tA(require("@emotion/is-prop-valid").default)}catch{}function eA(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||ue(a[c])||(G0(c)||s===!0&&zu(c)||!i&&!zu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const Nu=D.createContext({});function nA(a,i){if(Vu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||_l(s)?s:void 0,animate:_l(u)?u:void 0}}return a.inherit!==!1?i:{}}function aA(a){const{initial:i,animate:s}=nA(a,D.useContext(Nu));return D.useMemo(()=>({initial:i,animate:s}),[Zy(i),Zy(s)])}function Zy(a){return Array.isArray(a)?a.join(" "):a}const Df=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X0(a,i,s){for(const u in i)!ue(i[u])&&!x0(u,s)&&(a[u]=i[u])}function iA({transformTemplate:a},i){return D.useMemo(()=>{const s=Df();return Ef(s,i,a),Object.assign({},s.vars,s.style)},[i])}function lA(a,i){const s=a.style||{},u={};return X0(u,s,a),Object.assign(u,iA(a,i)),u}function sA(a,i){const s={},u=lA(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 k0=()=>({...Df(),attrs:{}});function uA(a,i,s,u){const c=D.useMemo(()=>{const d=k0();return A0(d,i,M0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};X0(d,a.style,a),c.style={...d,...c.style}}return c}const rA=["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 Rf(a){return typeof a!="string"||a.includes("-")?!1:!!(rA.indexOf(a)>-1||/[A-Z]/u.test(a))}function oA(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??Rf(a)?uA:sA)(i,u,c,a),p=eA(i,typeof a=="string",d),v=a!==D.Fragment?{...p,...y,ref:s}:{},{children:g}=i,b=D.useMemo(()=>ue(g)?g.get():g,[g]);return D.createElement(a,{...v,children:b})}function cA({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:fA(s,u,c,a),renderState:i()}}function fA(a,i,s,u){const c={},d=u(a,{});for(const b in d)c[b]=vu(d[b]);let{initial:f,animate:m}=a;const y=Vu(a),p=h0(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const g=v?m:f;if(g&&typeof g!="boolean"&&!ju(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x<b.length;x++){const A=pf(a,b[x]);if(A){const{transitionEnd:w,transition:_,...B}=A;for(const Y in B){let U=B[Y];if(Array.isArray(U)){const X=v?U.length-1:0;U=U[X]}U!==null&&(c[Y]=U)}for(const Y in w)c[Y]=w[Y]}}}return c}const Z0=a=>(i,s)=>{const u=D.useContext(Nu),c=D.useContext(Ou),d=()=>cA(a,i,u,c);return s?d():Ic(d)},dA=Z0({scrapeMotionValuesFromProps:Mf,createRenderState:Df}),hA=Z0({scrapeMotionValuesFromProps:C0,createRenderState:k0}),mA=Symbol.for("motionComponentSymbol");function pA(a,i,s){const u=D.useRef(s);D.useInsertionEffect(()=>{u.current=s});const c=D.useRef(null);return D.useCallback(d=>{var m;d&&((m=a.onMount)==null||m.call(a,d));const f=u.current;if(typeof f=="function")if(d){const y=f(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const Q0=D.createContext({});function yi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function yA(a,i,s,u,c,d){var U,X;const{visualElement:f}=D.useContext(Nu),m=D.useContext(Y0),y=D.useContext(Ou),p=D.useContext(Cf),v=p.reducedMotion,g=p.skipAnimations,b=D.useRef(null),x=D.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:v,skipAnimations:g,isSVG:d}),x.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const A=b.current,w=D.useContext(Q0);A&&!A.projection&&c&&(A.type==="html"||A.type==="svg")&&gA(b.current,s,c,w);const _=D.useRef(!1);D.useInsertionEffect(()=>{A&&_.current&&A.update(s,y)});const B=s[t0],Y=D.useRef(!!B&&typeof window<"u"&&!((U=window.MotionHandoffIsComplete)!=null&&U.call(window,B))&&((X=window.MotionHasOptimisedAnimation)==null?void 0:X.call(window,B)));return dg(()=>{x.current=!0,A&&(_.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),Y.current&&A.animationState&&A.animationState.animateChanges())}),D.useEffect(()=>{A&&(!Y.current&&A.animationState&&A.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var K;(K=window.MotionHandoffMarkAsComplete)==null||K.call(window,B)}),Y.current=!1),A.enteringChildren=void 0)}),A}function gA(a,i,s,u){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutAnchor:v,layoutCrossfade:g}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:K0(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&yi(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:g,layoutScroll:y,layoutRoot:p,layoutAnchor:v})}function K0(a){if(a)return a.options.allowProjection!==!1?a.projection:K0(a.parent)}function mc(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&$2(u);const d=s?s==="svg":Rf(a),f=d?hA:dA;function m(p,v){let g;const b={...D.useContext(Cf),...p,layoutId:vA(p)},{isStatic:x}=b,A=aA(p),w=f(p,x);if(!x&&typeof window<"u"){SA();const _=bA(b);g=_.MeasureLayout,A.visualElement=yA(a,w,b,c,_.ProjectionNode,d)}return C.jsxs(Nu.Provider,{value:A,children:[g&&A.visualElement?C.jsx(g,{visualElement:A.visualElement,...b}):null,oA(a,p,pA(w,A.visualElement,v),w,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=D.forwardRef(m);return y[mA]=a,y}function vA({layoutId:a}){const i=D.useContext($c).id;return i&&a!==void 0?i+"-"+a:a}function SA(a,i){D.useContext(Y0).strict}function bA(a){const i=q0(),{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 TA(a,i){if(typeof Proxy>"u")return mc;const s=new Map,u=(d,f)=>mc(d,f,a,i),c=(d,f)=>u(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?u:(s.has(f)||s.set(f,mc(f,void 0,a,i)),s.get(f))})}const xA=(a,i)=>i.isSVG??Rf(a)?new $x(i):new Qx(i,{allowProjection:a!==D.Fragment});class AA extends na{constructor(i){super(i),i.animationState||(i.animationState=a2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();ju(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 EA=0;class MA extends na{constructor(){super(...arguments),this.id=EA++,this.isExitComplete=!1}update(){var d;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;if(i&&u===!1){if(this.isExitComplete){const{initial:f,custom:m}=this.node.getProps();if(typeof f=="string"){const y=Da(this.node,f,m);if(y){const{transition:p,transitionEnd:v,...g}=y;for(const b in g)(d=this.node.getValue(b))==null||d.jump(g[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const CA={animation:{Feature:AA},exit:{Feature:MA}};function Ll(a){return{point:{x:a.pageX,y:a.pageY}}}const DA=a=>i=>Sf(i)&&a(i,Ll(i));function wl(a,i,s,u){return jl(a,i,DA(s),u)}const J0=({current:a})=>a?a.ownerDocument.defaultView:null,Qy=(a,i)=>Math.abs(a-i);function RA(a,i){const s=Qy(a.x,i.x),u=Qy(a.y,i.y);return Math.sqrt(s**2+u**2)}const Ky=new Set(["auto","scroll"]);class P0{constructor(i,s,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=cu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=pc(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,w=RA(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!w)return;const{point:_}=x,{timestamp:B}=se;this.history.push({..._,timestamp:B});const{onStart:Y,onMove:U}=this.handlers;A||(Y&&Y(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,x)},this.handlePointerMove=(x,A)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=A,this.lastMoveEventInfo=cu(A,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,A)=>{this.end();const{onEnd:w,onSessionEnd:_,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=pc(x.type==="pointercancel"?this.lastMoveEventInfo:cu(A,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,Y),_&&_(x,Y)},!Sf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Ll(i),p=cu(y,this.transformPagePoint),{point:v}=p,{timestamp:g}=se;this.history=[{...v,timestamp:g}];const{onSessionStart:b}=s;b&&b(i,pc(p,this.history)),this.removeListeners=Nl(wl(this.contextWindow,"pointermove",this.handlePointerMove),wl(this.contextWindow,"pointerup",this.handlePointerUp),wl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(Ky.has(u.overflowX)||Ky.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},d={x:c.x-s.x,y:c.y-s.y};d.x===0&&d.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),_t.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ea(this.updatePoint)}}function cu(a,i){return i?{point:i(a.point)}:a}function Jy(a,i){return{x:a.x-i.x,y:a.y-i.y}}function pc({point:a},i){return{point:a,delta:Jy(a,F0(i)),offset:Jy(a,wA(i)),velocity:zA(i,.1)}}function wA(a){return a[0]}function F0(a){return a[a.length-1]}function zA(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=F0(a);for(;s>=0&&(u=a[s],!(c.timestamp-u.timestamp>we(i)));)s--;if(!u)return{x:0,y:0};u===a[0]&&a.length>2&&c.timestamp-u.timestamp>we(i)*2&&(u=a[1]);const d=qe(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function OA(a,{min:i,max:s},u){return i!==void 0&&a<i?a=u?Bt(i,a,u.min):Math.max(a,i):s!==void 0&&a>s&&(a=u?Bt(s,a,u.max):Math.min(a,s)),a}function Py(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 _A(a,{top:i,left:s,bottom:u,right:c}){return{x:Py(a.x,s,c),y:Py(a.y,i,u)}}function Fy(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 jA(a,i){return{x:Fy(a.x,i.x),y:Fy(a.y,i.y)}}function VA(a,i){let s=.5;const u=fe(a),c=fe(i);return c>u?s=zl(i.min,i.max-u,a.min):u>c&&(s=zl(a.min,a.max-c,i.min)),an(0,1,s)}function NA(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 Qc=.35;function BA(a=Qc){return a===!1?a=0:a===!0&&(a=Qc),{x:Wy(a,"left","right"),y:Wy(a,"top","bottom")}}function Wy(a,i,s){return{min:$y(a,i),max:$y(a,s)}}function $y(a,i){return typeof a=="number"?a:a[i]||0}const UA=new WeakMap;class LA{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=Wt(),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 d=g=>{s&&this.snapToCursor(Ll(g).point),this.stopAnimation()},f=(g,b)=>{const{drag:x,dragPropagation:A,onDragStart:w}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dx(x),!this.openDragLock))return;this.latestPointerEvent=g,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),tn(B=>{let Y=this.getAxisMotionValue(B).get()||0;if(nn.test(Y)){const{projection:U}=this.visualElement;if(U&&U.layout){const X=U.layout.layoutBox[B];X&&(Y=fe(X)*(parseFloat(Y)/100))}}this.originPoint[B]=Y}),w&&_t.update(()=>w(g,b),!1,!0),Lc(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:w,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=b;if(A&&this.currentDirection===null){this.currentDirection=YA(B),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,B),this.updateAxis("y",b.point,B),this.visualElement.render(),_&&_t.update(()=>_(g,b),!1,!0)},y=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new P0(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:u,contextWindow:J0(this.visualElement),element:this.visualElement.current})}stop(i,s){const u=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&_t.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||!fu(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=OA(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&yi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=_A(u.layoutBox,i):this.constraints=!1,this.elastic=BA(s),c!==this.constraints&&!yi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&tn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=NA(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!yi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Yx(u,c.root,this.visualElement.getTransformPagePoint());let f=jA(c.layout.layoutBox,d);if(s){const m=s(Ux(f));this.hasMutatedConstraints=!!m,m&&(f=g0(m))}return f}startAnimation(i){const{drag:s,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=tn(v=>{if(!fu(v,s,this.currentDirection))return;let g=y&&y[v]||{};(f===!0||f===v)&&(g={min:0,max:0});const b=c?200:1e6,x=c?40:1e7,A={type:"inertia",velocity:u?i[v]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...g};return this.startAxisValueAnimation(v,A)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Lc(this.visualElement,i),u.start(mf(i,u,0,s,this.visualElement,!1))}stopAnimation(){tn(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){tn(s=>{const{drag:u}=this.getProps();if(!fu(s,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s],y=d.get()||0;d.set(i[s]-Bt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!yi(s)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};tn(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=VA({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),tn(f=>{if(!fu(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Bt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;UA.set(this.visualElement,this);const i=this.visualElement.current,s=wl(i,"pointerdown",p=>{const{drag:v,dragListener:g=!0}=this.getProps(),b=p.target,x=b!==i&&vx(b);v&&g&&!x&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();yi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=HA(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),_t.read(c);const m=jl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(tn(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=p[g].translate,b.set(b.get()+p[g].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:d=!1,dragElastic:f=Qc,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function Iy(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function HA(a,i,s){const u=sy(a,Iy(s)),c=sy(i,Iy(s));return()=>{u(),c()}}function fu(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function YA(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class qA extends na{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new LA(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}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 yc=a=>(i,s)=>{a&&_t.update(()=>a(i,s),!1,!0)};class GA extends na{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new P0(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J0(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:yc(i),onStart:yc(s),onMove:yc(u),onEnd:(d,f)=>{delete this.session,c&&_t.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=wl(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 gc=!1;class XA extends D.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),u&&u.register&&c&&u.register(d),gc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Su.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:u,drag:c,isPresent:d}=this.props,{projection:f}=u;return f&&(f.isPresent=d,i.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),gc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||_t.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:s}=this.props,{projection:u}=i;u&&(u.options.layoutAnchor=s,u.root.didUpdate(),vf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;gc=!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 W0(a){const[i,s]=H0(),u=D.useContext($c);return C.jsx(XA,{...a,layoutGroup:u,switchLayoutGroup:D.useContext(Q0),isPresent:i,safeToRemove:s})}const kA={pan:{Feature:GA},drag:{Feature:qA,ProjectionNode:L0,MeasureLayout:W0}};function tg(a,i,s){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=u[c];d&&_t.postRender(()=>d(i,Ll(i)))}class ZA extends na{mount(){const{current:i}=this.node;i&&(this.unmount=mx(i,(s,u)=>(tg(this.node,u,"Start"),c=>tg(this.node,c,"End"))))}unmount(){}}class QA extends na{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=Nl(jl(this.node.current,"focus",()=>this.onFocus()),jl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eg(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),d=u[c];d&&_t.postRender(()=>d(i,Ll(i)))}class KA extends na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=bx(i,(c,d)=>(eg(this.node,d,"Start"),(f,{success:m})=>eg(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const Kc=new WeakMap,vc=new WeakMap,JA=a=>{const i=Kc.get(a.target);i&&i(a)},PA=a=>{a.forEach(JA)};function FA({root:a,...i}){const s=a||document;vc.has(s)||vc.set(s,{});const u=vc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(PA,{root:a,...i})),u[c]}function WA(a,i,s){const u=FA(i);return Kc.set(a,s),u.observe(a),()=>{Kc.delete(a),u.unobserve(a)}}const $A={some:0,all:1};class IA extends na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var y;(y=this.stopObserver)==null||y.call(this);const{viewport:i={}}=this.node.getProps(),{root:s,margin:u,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:$A[c]},m=p=>{const{isIntersecting:v}=p;if(this.isInView===v||(this.isInView=v,d&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:g,onViewportLeave:b}=this.node.getProps(),x=v?g:b;x&&x(p)};this.stopObserver=WA(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(tE(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function tE({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const eE={inView:{Feature:IA},tap:{Feature:KA},focus:{Feature:QA},hover:{Feature:ZA}},nE={layout:{ProjectionNode:L0,MeasureLayout:W0}},aE={...CA,...eE,...kA,...nE},ln=TA(aE,xA);function iE(){!Af.current&&m0();const[a]=D.useState(Cu.current);return a}const lE={type:"spring",stiffness:170,damping:22,mass:.6},sE=80,uE=12,rE=400,oE=100;function cE({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=D.useState(null),f=Pc(),[m,y]=D.useState(!1),p=D.useRef(void 0),v=D.useRef(void 0),g=D.useRef(void 0),[b,x]=D.useState(null),A=D.useRef(void 0);D.useEffect(()=>{f&&a!==A.current&&(A.current=a,x(a?f.currentTimeMs:null))},[a]);const w=s&&!u&&f!=null&&b!=null&&f.currentTimeMs-b>=te,_=f?w:m&&!u,B=D.useRef(!1);B.current=f!=null,D.useEffect(()=>{if(!B.current)return;if(!a){d(null);return}const U=i.current;if(!U)return;const X=U.querySelector(bi(a));X&&d(nc(U,X))},[a,i]),D.useEffect(()=>{if(B.current)return;if(clearTimeout(p.current),clearTimeout(v.current),clearTimeout(g.current),y(!1),!a){d(null);return}let U=!1,X=0;function K(){if(U)return;const k=i.current;if(!k)return;const P=k.querySelector(bi(a));if(!P){X<uE&&(X++,v.current=setTimeout(K,sE));return}const Z=og(P);g.current=setTimeout(()=>{requestAnimationFrame(()=>{U||(d(nc(k,P)),s&&(p.current=setTimeout(()=>{U||y(!0)},te)))})},Z?rE:0)}const $=requestAnimationFrame(K);return()=>{U=!0,cancelAnimationFrame($),clearTimeout(v.current),clearTimeout(g.current),clearTimeout(p.current)}},[a,i,s]),D.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(v.current),clearTimeout(g.current)},[]);const Y=D.useCallback(()=>{const U=i.current;if(!U||!a)return;const X=U.querySelector(bi(a));X&&d(nc(U,X))},[a,i]);return D.useEffect(()=>{if(B.current)return;const U=i.current;if(!U||!a)return;let X;const K=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout(Y,oE)});return K.observe(U),()=>{clearTimeout(X),K.disconnect()}},[a,i,Y]),C.jsx(Vl,{children:c&&C.jsxs(ln.div,{className:"pointer-events-none absolute z-50",style:{top:0,left:0},initial:{x:c.x,y:c.y,opacity:0},animate:{x:c.x,y:c.y,opacity:1},exit:{opacity:0},transition:lE,children:[u?C.jsx(dE,{}):C.jsx(fE,{}),C.jsx(Vl,{children:_&&C.jsx(ln.span,{className:"absolute left-0 top-0 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-primary/50",initial:{scale:.4,opacity:.9},animate:{scale:3,opacity:0},exit:{opacity:0},transition:{duration:.5,ease:"easeOut"}},"ripple")})]})})}function fE(){return C.jsx("svg",{width:"18",height:"24",viewBox:"0 0 12 16",fill:"none",className:"-translate-x-px -translate-y-px drop-shadow-sm","aria-hidden":!0,children:C.jsx("path",{d:"M1 1v11.5l3-3 2.5 5.5 2-1-2.5-5.5H10L1 1Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"})})}function dE(){return C.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",className:"-translate-x-2 -translate-y-2 drop-shadow-sm","aria-hidden":!0,children:[C.jsx("path",{d:"M4.5 8V5.5a1 1 0 0 1 2 0V4a1 1 0 0 1 2 0v.5a1 1 0 0 1 2 0V5a1 1 0 0 1 2 0v4.5a3.5 3.5 0 0 1-3.5 3.5h-1A3.5 3.5 0 0 1 4.5 9.5V8Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"}),C.jsx("path",{d:"M4.5 8H3a1.5 1.5 0 0 1 0-3h1.5",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"0.5",fill:"currentColor"})]})}const hE={type:"spring",stiffness:100,damping:20,mass:.8};function mE({children:a,transform:i}){const s=i.scale!==1||i.x!==0||i.y!==0;return C.jsx("div",{className:s?"overflow-hidden":void 0,children:C.jsx(ln.div,{animate:{scale:i.scale,x:i.x,y:i.y},transition:hE,style:{transformOrigin:"0 0"},children:a})})}const pE=896,yE=.5,gE="relative mx-auto max-w-4xl overflow-hidden";function vE({containerRef:a,children:i,className:s,canonicalWidth:u=pE,minZoom:c=yE,shellHeight:d,wrapperClassName:f=gE}){const{isVideoExport:m}=Fc(),y=D.useRef(null),p=D.useRef(null),[v,g]=D.useState(1),b=a??p;D.useEffect(()=>{if(m)return;const w=y.current;if(!w)return;const _=Y=>{const U=Y[0].contentRect.width;g(Math.max(Math.min(U/u,1),c))},B=new ResizeObserver(_);return B.observe(w),()=>B.disconnect()},[m,u,c]);const x=s?`${f} ${s}`:f;if(m)return C.jsx("div",{ref:b,className:x,children:i});const A={width:u,zoom:v};return d!=null&&(A["--scenar-shell-height"]=`${d}px`),C.jsx("div",{ref:y,className:x,children:C.jsx("div",{ref:b,className:"relative",style:A,children:i})})}function SE({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Pc(),m=a.length-1,[y,p]=D.useState(()=>d?m:0),[v,g]=D.useState(c?"playing":"idle"),b=v==="playing",x=f?Ac(f.currentTimeMs,f.stepStartTimesMs,m):y,A=D.useRef(x);A.current=x;const w=D.useRef(null),_=D.useRef(0),[B,Y]=D.useState(0),U=D.useRef(Math.max(u,.25));U.current=Math.max(u,.25),D.useEffect(()=>{var V,Q;if(f||!b||d)return;const nt=U.current;if(x>=m){const W=!s&&i?((V=i.steps[x])==null?void 0:V.durationMs)??0:0;if(W>0){w.current=()=>g("paused");const rt=setTimeout(()=>{w.current=null,g("paused")},(W+2e3)/nt);return()=>{clearTimeout(rt),w.current=null}}g("paused");return}const lt=x+1,Ct=a[lt].delayMs/nt,At=!s&&i?((Q=i.steps[x])==null?void 0:Q.durationMs)??0:0;if(At>0){let W=!1,rt=!1,ft=!1;const E=()=>{ft||(ft=!0,w.current=null,p(lt))},H=()=>{W&&rt&&E()};w.current=()=>{W=!0,H()};const F=setTimeout(()=>{rt=!0,H()},Ct),I=setTimeout(E,(Math.max(a[lt].delayMs,At)+2e3)/nt);return()=>{clearTimeout(F),clearTimeout(I),w.current=null}}const zt=setTimeout(()=>p(lt),Ct);return()=>clearTimeout(zt)},[f,b,x,a,m,d,s,i]);const X=D.useCallback(nt=>{g("paused"),p(Math.max(0,Math.min(nt,m)))},[m]),K=D.useCallback((nt,lt)=>{const Ct=Math.max(0,Math.min(nt,lt.totalDurationMs)),At=Ac(Ct,lt.stepStartTimesMs,m),zt=lt.stepStartTimesMs[At]??0;_.current=Ct-zt,p(At),g("playing"),Y(V=>V+1)},[m]),$=D.useCallback(()=>{A.current>=m&&p(0),g("playing")},[m]),k=D.useCallback(()=>{g("paused")},[]),P=D.useCallback(()=>{b?k():$()},[b,$,k]),Z=D.useCallback(()=>{var nt;(nt=w.current)==null||nt.call(w)},[]),J=D.useCallback(nt=>{w.current=nt},[]);return{stepIndex:x,playbackState:v,playing:b,play:$,pause:k,togglePlay:P,goTo:X,seekToTime:K,seekOffsetRef:_,seekGeneration:B,handleClipEnded:Z,setPendingAdvance:J,coordinatorId:void 0}}function bE(a,i,s,u,c,d,f,m,y,p){const v=D.useRef(0),g=D.useRef(0),b=D.useRef(0),x=D.useRef(d);x.current=d;const A=D.useRef(s);A.current=s;const w=D.useRef(Math.max(c,.25));w.current=Math.max(c,.25);const _=D.useCallback(Y=>{const U=`${Math.max(0,Math.min(Y,1))*100}%`;f.current&&(f.current.style.width=U),m.current&&(m.current.style.left=U)},[f,m]),B=D.useRef(void 0);B.current=()=>{const Y=performance.now();g.current+=(Y-b.current)*w.current,b.current=Y;const U=x.current,X=A.current,K=U.stepStartTimesMs[X]??0,$=X<u?U.stepStartTimesMs[X+1]??U.totalDurationMs:U.totalDurationMs,k=Math.max($-K,1),P=Math.min(g.current/k,1),Z=(K+P*($-K))/U.totalDurationMs;_(Z),v.current=requestAnimationFrame(()=>{var J;return(J=B.current)==null?void 0:J.call(B)})},D.useEffect(()=>(a?(b.current=performance.now(),v.current=requestAnimationFrame(()=>{var Y;return(Y=B.current)==null?void 0:Y.call(B)})):cancelAnimationFrame(v.current),()=>cancelAnimationFrame(v.current)),[a]),D.useEffect(()=>{g.current=y.current,y.current=0,b.current=performance.now()},[s,p,y]),D.useEffect(()=>{if(i==="idle"){_(0);return}if(i==="paused"){const Y=x.current,U=A.current,X=Y.stepStartTimesMs[U]??0,K=U<u?Y.stepStartTimesMs[U+1]??Y.totalDurationMs:Y.totalDurationMs,$=Math.max(K-X,1),k=Math.min(g.current/$,1),P=(X+k*(K-X))/Y.totalDurationMs;_(P)}},[i,s,u,_])}function $0({size:a,className:i}){return C.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:C.jsx("path",{d:"M8 5v14l11-7z"})})}function I0({size:a,className:i}){return C.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:C.jsx("path",{d:"M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z"})})}function tv(a){return i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopPropagation(),a())}}function TE({onPlay:a,PlayIcon:i,hasNarration:s=!1}){const u=i??$0,c=s?"Play walkthrough with narration":"Play demo";return C.jsxs(ln.div,{className:"absolute inset-0 z-10 flex cursor-pointer flex-col items-center justify-center gap-3 rounded-lg",initial:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:d=>{d.stopPropagation(),a()},onKeyDown:tv(a),role:"button",tabIndex:0,"aria-label":c,children:[C.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-white/90 ring-1 ring-white/30 shadow-[0_0_30px_rgba(255,255,255,0.3)] transition-transform hover:scale-110",children:C.jsx(u,{size:28,className:"ml-1 text-neutral-900"})}),s&&C.jsxs("span",{className:"flex items-center gap-1.5 rounded-full bg-black/60 px-3 py-1 text-xs font-medium text-white",children:[C.jsx(I0,{size:14}),c]})]})}function xE({onResume:a,PlayIcon:i}){const s=i??$0;return C.jsx(ln.div,{className:"absolute inset-0 z-10 flex cursor-pointer items-center justify-center rounded-lg",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:u=>{u.stopPropagation(),a()},onKeyDown:tv(a),role:"button",tabIndex:0,"aria-label":"Resume demo",children:C.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-white/80 ring-1 ring-white/30 shadow-[0_0_30px_rgba(255,255,255,0.3)] transition-transform hover:scale-110",children:C.jsx(s,{size:24,className:"ml-1 text-neutral-900"})})})}function AE({onEnableAudio:a}){return C.jsxs(ln.button,{type:"button",className:"absolute left-1/2 top-3 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full bg-black/70 px-3 py-1.5 text-xs font-medium text-white shadow-lg transition-transform hover:scale-105",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},onClick:i=>{i.stopPropagation(),a()},children:[C.jsx(I0,{size:14}),"Tap to enable audio"]})}const EE=[.5,1,1.5,2];function ME({playbackRate:a,onSelectSpeed:i}){const[s,u]=D.useState(!1),c=D.useRef(null);return D.useEffect(()=>{if(!s)return;const d=f=>{c.current&&!c.current.contains(f.target)&&u(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[s]),C.jsxs("div",{ref:c,className:"relative",children:[C.jsxs("button",{onClick:d=>{d.stopPropagation(),u(f=>!f)},className:"flex h-6 min-w-[2rem] items-center justify-center rounded px-1 text-[11px] font-medium tabular-nums text-muted-foreground transition-colors hover:text-foreground","aria-label":`Playback speed: ${a}x`,"aria-haspopup":"true","aria-expanded":s,children:[a,"x"]}),C.jsx(Vl,{children:s&&C.jsx(ln.div,{className:"absolute bottom-full right-0 mb-1.5 rounded-md border border-border bg-card py-1 shadow-lg",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.12,ease:"easeOut"},role:"menu","aria-label":"Playback speed",children:EE.map(d=>C.jsxs("button",{role:"menuitem",onClick:f=>{f.stopPropagation(),i(d),u(!1)},className:`flex w-full items-center justify-between gap-3 px-3 py-1 text-[11px] tabular-nums transition-colors hover:bg-accent ${d===a?"font-semibold text-foreground":"text-muted-foreground"}`,children:[C.jsxs("span",{children:[d,"x"]}),d===a&&C.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},d))})})]})}function CE({visible:a,playing:i,muted:s,playbackRate:u,stepTimeline:c,showSpeedControl:d,hasNarration:f,progressTrackRef:m,playheadRef:y,onTogglePlay:p,onToggleMute:v,onSelectSpeed:g,onSeekToTime:b}){const x=D.useMemo(()=>c.stepStartTimesMs.slice(1).map(w=>w/c.totalDurationMs*100),[c]),A=D.useCallback(w=>{w.stopPropagation();const _=w.currentTarget.getBoundingClientRect(),B=Math.max(0,Math.min(1,(w.clientX-_.left)/_.width));b(B*c.totalDurationMs)},[c,b]);return C.jsxs(ln.div,{className:"mt-1 px-1",initial:!1,animate:{opacity:a?1:0},transition:{duration:.2},style:{pointerEvents:a?"auto":"none"},children:[C.jsxs("div",{className:"group relative mb-2 h-1 w-full cursor-pointer rounded-full bg-foreground/25 transition-[height] duration-150 hover:h-1.5",onClick:A,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[C.jsx("div",{ref:m,className:"absolute inset-y-0 left-0 rounded-full bg-foreground/60"}),C.jsx("div",{ref:y,className:"absolute top-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full bg-foreground/80 opacity-0 shadow-sm transition-opacity group-hover:opacity-100"}),x.map((w,_)=>C.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-background",style:{left:`${w}%`}},_))]}),C.jsxs("div",{className:"flex items-center gap-1.5",children:[C.jsx("button",{onClick:w=>{w.stopPropagation(),p()},className:"flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground","aria-label":i?"Pause":"Play",children:i?C.jsx(RE,{}):C.jsx(DE,{})}),f&&C.jsx("button",{onClick:w=>{w.stopPropagation(),v()},className:"flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground","aria-label":s?"Unmute narration":"Mute narration",children:s?C.jsx(zE,{}):C.jsx(wE,{})}),d&&C.jsx(ME,{playbackRate:u,onSelectSpeed:g})]})]})}function DE(){return C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:C.jsx("path",{d:"M8 5v14l11-7z"})})}function RE(){return C.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[C.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),C.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function wE(){return C.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),C.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),C.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function zE(){return C.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),C.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),C.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function OE(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=D.useRef(s);u.current=s;const c=D.useRef(null),d=D.useRef(a.controls);d.current=a.controls;const f=D.useCallback(v=>{!u.current||typeof window>"u"||window.parent.postMessage(WS(v),c.current??"*")},[]),m=D.useCallback(v=>{const g=d.current;switch(v.type){case"play":g.play();break;case"pause":case"destroy":g.pause();break;case"seek":g.seekToTime(v.timeMs);break;case"setMuted":g.setMuted(v.muted);break;case"setVolume":g.setVolume(v.volume);break;case"prefetch":g.prefetch();break}},[]);D.useEffect(()=>{if(!s)return;const v=g=>{if(g.source!==window.parent)return;const b=IS(g.data);b&&(g.origin&&g.origin!=="null"&&(c.current=g.origin),m(b))};return window.addEventListener("message",v),()=>window.removeEventListener("message",v)},[s,m]),D.useEffect(()=>{if(!s)return;const v=a.containerRef.current;if(!v||typeof ResizeObserver>"u")return;const g=new ResizeObserver(()=>{const b=v.getBoundingClientRect();f({type:"resize",widthPx:Math.round(b.width),heightPx:Math.round(b.height)})});return g.observe(v),()=>g.disconnect()},[s,a.containerRef,f]);const y=D.useRef(!1);D.useEffect(()=>{!s||y.current||(y.current=!0,f({type:"ready",totalSteps:a.totalSteps,hasNarration:a.hasNarration}))},[s,f,a.totalSteps,a.hasNarration]);const p=a.totalSteps-1;D.useEffect(()=>{s&&(a.playbackState==="playing"?f({type:"started"}):a.playbackState==="paused"&&f(a.stepIndex>=p?{type:"completed"}:{type:"paused"}))},[s,a.playbackState,a.stepIndex,p,f]),D.useEffect(()=>{if(!s)return;const v=a.stepTimeline.totalDurationMs,g=a.stepTimeline.stepStartTimesMs[a.stepIndex]??0,b=v>0?g/v:0;f({type:"stepchange",stepIndex:a.stepIndex,totalSteps:a.totalSteps}),f({type:"progress",stepIndex:a.stepIndex,totalSteps:a.totalSteps,fraction:b})},[s,a.stepIndex,a.totalSteps,a.stepTimeline,f]),D.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const _E=3e3;function jE({bundle:a,steps:i,children:s,className:u,onStepChange:c,narrationManifest:d,showSpeedControl:f=!0,embed:m=!1}){const y=i??(a==null?void 0:a.steps),p=d??(a==null?void 0:a.narrationManifest);if(!y||y.length===0)throw new Error("ScenarioPlayer requires steps. Provide a `bundle` or `steps` prop.");const v=iE(),{isVideoExport:g,hideControls:b,initialMuted:x}=Fc(),A=y.length-1,w=D.useRef(null),[_,B]=D.useState(()=>{if(typeof window>"u")return 1;const de=new URLSearchParams(window.location.search).get("__test_speed"),ze=de?Number(de):NaN;return ze>0&&ze<=16?ze:1}),Y=g?x:!1,[U,X]=D.useState(Y),K=SE({steps:y,narrationManifest:p,muted:U,playbackRate:_,isVideoExport:g,prefersReducedMotion:v}),{stepIndex:$,playbackState:k,playing:P,play:Z,pause:J,togglePlay:nt,seekToTime:lt,seekOffsetRef:Ct,seekGeneration:At,handleClipEnded:zt}=K,V=D.useRef(null);D.useEffect(()=>{if(!g)return V.current=ib(()=>{J()}),()=>{var de;return(de=V.current)==null?void 0:de.unregister()}},[g,J]),D.useEffect(()=>{const de=w.current;if(!de||g)return;const ze=new IntersectionObserver(([kt])=>{!(kt!=null&&kt.isIntersecting)&&P&&J()},{threshold:.5});return ze.observe(de),()=>ze.disconnect()},[g,P,J]);const{muted:Q,toggleMute:W,audioRef:rt,seekToStep:ft,audioBlocked:E,unlock:H,setVolume:F,prefetch:I}=sb({manifest:p,stepIndex:$,playing:P,initialMuted:Y,playbackRate:_,onClipEnded:zt});D.useEffect(()=>{X(Q)},[Q]);const st=D.useMemo(()=>ZS(y,Q?null:p),[y,Q,p]);D.useEffect(()=>{c==null||c(y[$].data,$)},[$,y,c]);const[ht,St]=D.useState(!0),Lt=D.useRef(void 0),jt=D.useCallback(()=>{Lt.current&&clearTimeout(Lt.current),Lt.current=setTimeout(()=>St(!1),_E)},[]),aa=D.useCallback(()=>{St(!0),k==="playing"&&jt()},[k,jt]);D.useEffect(()=>(k!=="playing"?(St(!0),Lt.current&&clearTimeout(Lt.current)):jt(),()=>{Lt.current&&clearTimeout(Lt.current)}),[k,jt]);const Mn=D.useCallback(()=>{H(),Z(),V.current&&Hp(V.current.id)},[Z,H]),Ra=D.useCallback(de=>{const ze=Math.max(0,Math.min(de,st.totalDurationMs)),kt=Ac(ze,st.stepStartTimesMs,A),Bu=st.stepStartTimesMs[kt]??0;ft(kt,Math.max(0,ze-Bu)),lt(ze,st),V.current&&Hp(V.current.id)},[lt,ft,st,A]),Hl=D.useCallback(()=>{k!=="idle"&&nt()},[k,nt]),sn=D.useCallback(()=>{H()},[H]),wa=D.useRef(null),za=D.useRef(null);bE(P,k,$,A,_,st,wa,za,Ct,At),OE({enabled:m,containerRef:w,playbackState:k,stepIndex:$,totalSteps:y.length,stepTimeline:st,hasNarration:!!p,audioBlocked:E,controls:{play:Mn,pause:J,seekToTime:Ra,setMuted:de=>{Q!==de&&W()},setVolume:F,prefetch:I}});const Di=y[$].caption,Yl=k==="idle"&&!g&&!v,Ri=k==="paused"&&!g,Oa=k!=="idle"&&!b,wi=E&&!g&&k!=="idle";return C.jsxs("div",{ref:w,className:u,"data-demo-step":$,"data-demo-state":k,"data-demo-total-steps":y.length,"data-demo-audio-blocked":E?"":void 0,onMouseMove:Oa?aa:void 0,children:[C.jsxs("div",{className:"relative",onClick:Hl,style:{cursor:k!=="idle"?"pointer":void 0},children:[s(y[$].data,$),C.jsxs(Vl,{children:[Yl&&C.jsx(TE,{onPlay:Mn,hasNarration:!!p}),Ri&&C.jsx(xE,{onResume:Mn}),wi&&C.jsx(AE,{onEnableAudio:sn})]})]}),p&&C.jsx("audio",{ref:rt,preload:"none",hidden:!0}),C.jsx("div",{className:"mt-2 flex h-6 items-center justify-center",children:C.jsx(Vl,{mode:"wait",children:Di&&C.jsx(ln.p,{className:"text-sm font-medium text-foreground/70",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:Di},Di)})}),Oa&&C.jsx(CE,{visible:ht,playing:P,muted:Q,playbackRate:_,stepTimeline:st,showSpeedControl:f,hasNarration:!!p,progressTrackRef:wa,playheadRef:za,onTogglePlay:nt,onToggleMute:W,onSelectSpeed:B,onSeekToTime:Ra})]})}function Ai(a,i){if(!a||!i)return null;const s=i.querySelector(bi(a));return!s||!(s instanceof HTMLElement)?null:s}function VE(a,i){if(!a||!i)return null;const s=i.querySelector(FS(a));return s||null}function NE(a,i){if(!i)return null;const s=i.querySelector(bi(a));return s?s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s:s.querySelector("input, textarea"):null}function ev(a,i){const s=VE(a.target,i.containerRef.current);s&&(i.isVideoExport?KS(s):og(s))}function nv(a,i){i.setCursorTarget(a.target)}function av(a,i){i.setCursorTarget(void 0)}function iv(a,i){const s=Ai(a.target,i.containerRef.current);s&&s.click()}function lv(a,i,s){var f;if(!a.target)return;const u=NE(a.target,s.containerRef.current);if(!u)return;const c=u instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,d=(f=Object.getOwnPropertyDescriptor(c,"value"))==null?void 0:f.set;d==null||d.call(u,i),u.dispatchEvent(new Event("input",{bubbles:!0}))}function sv(a,i){const s=Ai(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerenter",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0})),s.setAttribute("data-hover","true"))}function uv(a,i){const s=Ai(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerleave",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerout",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseout",{bubbles:!0})),s.removeAttribute("data-hover"))}function rv(a,i){const s=Ai(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function ov(a,i){const s=Ai(a.dragTarget,i.containerRef.current);s&&s.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=Ai(a.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const BE=1.5;function UE(a,i,s){const u=s.querySelector(bi(a));if(!u)return null;const c=s.getBoundingClientRect(),d=u.getBoundingClientRect(),f=c.width/s.offsetWidth||1,m=(d.left-c.left+d.width/2)/f,y=(d.top-c.top+d.height/2)/f;return{scale:i,x:s.offsetWidth/2-m*i,y:s.offsetHeight/2-y*i}}function cv(a,i){if(!i.setViewportTransform)return;if(a.viewportReset){i.setViewportTransform({scale:1,x:0,y:0});return}if(!a.target)return;const s=i.containerRef.current;if(!s)return;const u=a.viewportZoom??BE,c=UE(a.target,u,s);c&&i.setViewportTransform(c)}function LE(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;D.useEffect(()=>{var v;const f=(v=c[s])==null?void 0:v.interactions;if(!f||f.length===0)return;const m=lg(s,u,c),y=Math.max(d,.25),p=[];for(const g of f){const b=g.atPercent*m/y;if(g.type==="click")p.push(setTimeout(()=>i.setCursorTarget(g.target),b)),p.push(setTimeout(()=>iv(g,i),b+te/y));else if(g.type==="type"){const x=g.text??"";if(x.length===0)continue;const A=g.typeDelay??sg;p.push(setTimeout(()=>i.setCursorTarget(g.target),b));const w=b+te/y;for(let _=0;_<x.length;_++){const B=x.substring(0,_+1);p.push(setTimeout(()=>lv(g,B,i),w+_*A/y))}}else if(g.type==="hover"){const x=g.hoverDuration??ug;p.push(setTimeout(()=>{var A;(A=i.setShowRipple)==null||A.call(i,!1),i.setCursorTarget(g.target)},b)),p.push(setTimeout(()=>sv(g,i),b+te/y)),p.push(setTimeout(()=>{var A;uv(g,i),(A=i.setShowRipple)==null||A.call(i,!0)},b+(te+x)/y))}else g.type==="drag"?(p.push(setTimeout(()=>{var x;(x=i.setShowRipple)==null||x.call(i,!1),i.setCursorTarget(g.target)},b)),p.push(setTimeout(()=>{var x;(x=i.setDragging)==null||x.call(i,!0),rv(g,i)},b+te/y)),p.push(setTimeout(()=>i.setCursorTarget(g.dragTarget),b+(te+bu)/y)),p.push(setTimeout(()=>{var x,A;ov(g,i),(x=i.setDragging)==null||x.call(i,!1),(A=i.setShowRipple)==null||A.call(i,!0)},b+(te+bu+te)/y))):g.type==="viewport_transition"?p.push(setTimeout(()=>cv(g,i),b)):p.push(setTimeout(()=>HE(g,i),b))}return()=>{for(const g of p)clearTimeout(g)}},[s,u,i,c,d])}function HE(a,i){switch(a.type){case"scroll_to":ev(a,i);break;case"set_cursor":nv(a,i);break;case"clear_cursor":av(a,i);break;default:i.setCursorTarget(a.target);break}}function YE(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=D.useRef(new Set);D.useEffect(()=>{var x;const y=(x=d[u])==null?void 0:x.interactions;if(!y||y.length===0)return;const p=s.stepStartTimesMs[u]??0,v=s.stepStartTimesMs[u+1],g=v!=null?v-p:lg(u,c,d),b=s.currentTimeMs-p;for(const A of y){const w=A.atPercent*g;if(A.type==="click")m(`${u}-${A.atPercent}-click-cursor`,b,w,()=>{i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-click-dispatch`,b,w+te,()=>{iv(A,i)});else if(A.type==="type"){const _=A.text??"";if(_.length===0)continue;const B=A.typeDelay??sg;m(`${u}-${A.atPercent}-type-cursor`,b,w,()=>{i.setCursorTarget(A.target)});const Y=w+te;if(b>=Y){const U=Math.min(Math.floor((b-Y)/B)+1,_.length);m(`${u}-${A.atPercent}-type-char-${U}`,b,0,()=>{lv(A,_.substring(0,U),i)})}}else if(A.type==="hover"){const _=A.hoverDuration??ug;m(`${u}-${A.atPercent}-hover-cursor`,b,w,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-hover-enter`,b,w+te,()=>{sv(A,i)}),m(`${u}-${A.atPercent}-hover-leave`,b,w+te+_,()=>{var B;uv(A,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else A.type==="drag"?(m(`${u}-${A.atPercent}-drag-cursor`,b,w,()=>{var _;(_=i.setShowRipple)==null||_.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-drag-press`,b,w+te,()=>{var _;(_=i.setDragging)==null||_.call(i,!0),rv(A,i)}),m(`${u}-${A.atPercent}-drag-move`,b,w+te+bu,()=>{i.setCursorTarget(A.dragTarget)}),m(`${u}-${A.atPercent}-drag-release`,b,w+te+bu+te,()=>{var _,B;ov(A,i),(_=i.setDragging)==null||_.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):A.type==="viewport_transition"?m(`${u}-${A.atPercent}-viewport`,b,w,()=>{cv(A,i)}):m(`${u}-${A.atPercent}-${A.type}`,b,w,()=>{qE(A,i)})}}),D.useEffect(()=>{f.current.clear()},[u]);function m(y,p,v,g){p>=v&&!f.current.has(y)&&(f.current.add(y),g())}}function qE(a,i){switch(a.type){case"scroll_to":ev(a,i);break;case"set_cursor":nv(a,i);break;case"clear_cursor":av(a,i);break;default:i.setCursorTarget(a.target);break}}function GE(a){const i=Pc(),{isVideoExport:s}=Fc(),u=D.useMemo(()=>({containerRef:a.containerRef,setCursorTarget:a.setCursorTarget,setShowRipple:a.setShowRipple,setDragging:a.setDragging,setViewportTransform:a.setViewportTransform,isVideoExport:s}),[a.containerRef,a.setCursorTarget,a.setShowRipple,a.setDragging,a.setViewportTransform,s]);i?YE(a,u,i):LE(a,u)}const ng="scenar";/**
58
- * @license lucide-react v1.8.0 - ISC
59
- *
60
- * This source code is licensed under the ISC license.
61
- * See the LICENSE file in the root directory of this source tree.
62
- */const fv=(...a)=>a.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).join(" ").trim();/**
63
- * @license lucide-react v1.8.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */const XE=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
68
- * @license lucide-react v1.8.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const kE=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.toLowerCase());/**
73
- * @license lucide-react v1.8.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const ag=a=>{const i=kE(a);return i.charAt(0).toUpperCase()+i.slice(1)};/**
78
- * @license lucide-react v1.8.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */var Sc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
83
- * @license lucide-react v1.8.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const ZE=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},QE=D.createContext({}),KE=()=>D.useContext(QE),JE=D.forwardRef(({color:a,size:i,strokeWidth:s,absoluteStrokeWidth:u,className:c="",children:d,iconNode:f,...m},y)=>{const{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:x=""}=KE()??{},A=u??g?Number(s??v)*24/Number(i??p):s??v;return D.createElement("svg",{ref:y,...Sc,width:i??p??Sc.width,height:i??p??Sc.height,stroke:a??b,strokeWidth:A,className:fv("lucide",x,c),...!d&&!ZE(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,_])=>D.createElement(w,_)),...Array.isArray(d)?d:[d]])});/**
88
- * @license lucide-react v1.8.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const Pe=(a,i)=>{const s=D.forwardRef(({className:u,...c},d)=>D.createElement(JE,{ref:d,iconNode:i,className:fv(`lucide-${XE(ag(a))}`,`lucide-${a}`,u),...c}));return s.displayName=ag(a),s};/**
93
- * @license lucide-react v1.8.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const PE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],FE=Pe("bell",PE);/**
98
- * @license lucide-react v1.8.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const WE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$E=Pe("chevron-left",WE);/**
103
- * @license lucide-react v1.8.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const IE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tM=Pe("chevron-right",IE);/**
108
- * @license lucide-react v1.8.0 - ISC
109
- *
110
- * This source code is licensed under the ISC license.
111
- * See the LICENSE file in the root directory of this source tree.
112
- */const eM=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],nM=Pe("ellipsis-vertical",eM);/**
113
- * @license lucide-react v1.8.0 - ISC
114
- *
115
- * This source code is licensed under the ISC license.
116
- * See the LICENSE file in the root directory of this source tree.
117
- */const aM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],iM=Pe("globe",aM);/**
118
- * @license lucide-react v1.8.0 - ISC
119
- *
120
- * This source code is licensed under the ISC license.
121
- * See the LICENSE file in the root directory of this source tree.
122
- */const lM=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],sM=Pe("lock",lM);/**
123
- * @license lucide-react v1.8.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const uM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],rM=Pe("plus",uM);/**
128
- * @license lucide-react v1.8.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const oM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],cM=Pe("rotate-ccw",oM);/**
133
- * @license lucide-react v1.8.0 - ISC
134
- *
135
- * This source code is licensed under the ISC license.
136
- * See the LICENSE file in the root directory of this source tree.
137
- */const fM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dM=Pe("search",fM);/**
138
- * @license lucide-react v1.8.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const hM=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],mM=Pe("star",hM);/**
143
- * @license lucide-react v1.8.0 - ISC
144
- *
145
- * This source code is licensed under the ISC license.
146
- * See the LICENSE file in the root directory of this source tree.
147
- */const pM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yM=Pe("x",pM),gM=420;function vM(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function SM({url:a,contentKey:i,slideDirection:s,children:u,zoom:c}){const d=s==="forward"?24:s==="backward"?-24:0;return C.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${gM}px)`,borderColor:"var(--scenar-border)",zoom:c??void 0},children:[C.jsxs("div",{className:"flex items-center bg-[#202124] px-2 pt-1.5",children:[C.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),C.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[#35363a] px-3 py-1.5",children:[C.jsx(iM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),C.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:vM(a)}),C.jsx(yM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),C.jsx(rM,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),C.jsx("div",{className:"flex-1"}),C.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:C.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),C.jsxs("div",{className:"flex items-center gap-2 bg-[#35363a] px-2 py-1",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx($E,{className:"h-4 w-4 text-[#9aa0a6]"}),C.jsx(tM,{className:"h-4 w-4 text-[#9aa0a6]"}),C.jsx(cM,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),C.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[#202124] px-3 py-1.5",children:[C.jsx(sM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),C.jsx("span",{className:"truncate text-xs text-[#bdc1c6]",children:a})]}),C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx(mM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),C.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),C.jsx(nM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),C.jsx(ln.div,{className:"flex-1 overflow-y-auto",style:{background:"var(--scenar-surface)"},initial:{opacity:0,x:d},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},children:u},i)]})}function bM({header:a,sidebar:i,children:s,rightPanel:u}){return C.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[a,C.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,C.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:s}),u]})]})}function TM({appName:a,logo:i,navLinks:s,userName:u,hideSearch:c,hideNotifications:d}){var m;const f=((m=(u??a??"A")[0])==null?void 0:m.toUpperCase())??"A";return C.jsxs("header",{className:"flex h-10 shrink-0 items-center justify-between border-b border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-4",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[i??C.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:C.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:f})}),a&&C.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:a})]}),s&&s.length>0&&C.jsx("nav",{className:"ml-4 flex items-center gap-1",children:s.map((y,p)=>C.jsx("span",{className:`rounded-md px-2.5 py-1 text-[12px] ${y.active?"bg-[var(--scenar-accent)] font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,children:y.label},p))})]}),C.jsxs("div",{className:"flex items-center gap-2.5",children:[!c&&C.jsx(dM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&C.jsx(FE,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),C.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:C.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:f})})]})]})}function xM({items:a,width:i=200}){return C.jsx("aside",{className:"shrink-0 overflow-y-auto border-r border-[var(--scenar-border)] bg-[var(--scenar-surface)] py-2",style:{width:i},children:a.map((s,u)=>{if(s.isSection)return C.jsx("div",{className:"px-4 pb-1 pt-3 text-[10px] font-semibold uppercase tracking-wider text-[var(--scenar-muted-foreground)]",children:s.label},u);const c=(s.depth??0)*12;return C.jsxs("div",{className:`relative flex items-center gap-2 px-4 py-1.5 text-[12px] ${s.active?"font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,style:{paddingLeft:`${16+c}px`},children:[s.active&&C.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),s.icon&&C.jsx("span",{className:"shrink-0",children:s.icon}),C.jsx("span",{className:"truncate",children:s.label})]},u)})})}function dv({title:a,subtitle:i,headerSlot:s,fields:u,submitLabel:c="Submit",footerText:d,width:f=280,children:m}){return C.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:f},children:[(s||a)&&C.jsxs("div",{className:"mb-4 text-center",children:[s&&C.jsx("div",{className:"mb-2 flex justify-center",children:s}),a&&C.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:a}),i&&C.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),C.jsx("div",{className:"space-y-2.5",children:u.map((y,p)=>C.jsxs("div",{children:[C.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:y.label}),C.jsx("div",{className:"rounded-md border border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-2.5 py-1.5 text-[12px]",children:y.type==="password"?C.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):y.value?C.jsx("span",{className:"text-[var(--scenar-foreground)]",children:y.value}):C.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:y.placeholder??""})})]},p))}),m,C.jsx("div",{className:"mt-4",children:C.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:c})}),d&&C.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:d})]})}function AM({columns:a,rows:i,emptyText:s}){return C.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:C.jsxs("table",{className:"w-full text-[12px]",children:[C.jsx("thead",{children:C.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:a.map(u=>C.jsx("th",{className:`px-3 py-2 font-medium text-[var(--scenar-muted-foreground)] ${u.width??""} text-${u.align??"left"}`,children:u.label},u.key))})}),C.jsxs("tbody",{children:[i.length===0&&s&&C.jsx("tr",{children:C.jsx("td",{colSpan:a.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:s})}),i.map(u=>C.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:a.map(c=>C.jsx("td",{className:`px-3 py-2 text-[var(--scenar-foreground)] ${c.width??""} text-${c.align??"left"}`,children:u.cells[c.key]??"—"},c.key))},u.id))]})]})})}const EM={success:"bg-[#22c55e]/15 text-[#22c55e]",warning:"bg-[#eab308]/15 text-[#eab308]",error:"bg-[#ef4444]/15 text-[#ef4444]",info:"bg-[#3b82f6]/15 text-[#3b82f6]",neutral:"bg-[#94a3b8]/15 text-[#94a3b8]"};function bc({label:a,variant:i="neutral"}){return C.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${EM[i]}`,children:a})}function MM({appName:a,logo:i,subtitle:s,fields:u,submitLabel:c="Sign in",footerText:d,cardWidth:f=280,background:m,topBar:y,submitTargetId:p}){var b;const v=m??"linear-gradient(to bottom, var(--scenar-surface), color-mix(in srgb, var(--scenar-accent) 30%, var(--scenar-surface)))",g=i??C.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:C.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((b=a[0])==null?void 0:b.toUpperCase())??"A"})});return C.jsxs("div",{className:"flex h-full flex-col",style:{background:v},children:[y,C.jsx("div",{className:"flex flex-1 items-center justify-center",children:C.jsx("div",{"data-cursor-target":p,children:C.jsx(dv,{title:a,subtitle:s??"Sign in to your account",headerSlot:g,fields:u,submitLabel:c,footerText:d,width:f})})})]})}function Tc({appName:a,logo:i,navLinks:s,userName:u,sidebarItems:c,sidebarWidth:d,children:f}){return C.jsx(bM,{header:C.jsx(TM,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?C.jsx(xM,{items:c,width:d}):void 0,children:f})}const CM=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function DM(a,i){return C.jsx(SM,{url:`https://${a.url}`,contentKey:String(i),children:wM(a.screen)})}const RM=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],xc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function wM(a){switch(a){case"login":return C.jsx(MM,{appName:"Acme Cloud",subtitle:"Sign in to your workspace",fields:[{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Password",type:"password"}],submitLabel:"Sign in",footerText:"Forgot password?"});case"dashboard":return C.jsx(Tc,{appName:"Acme Cloud",userName:"Jordan",navLinks:RM,sidebarItems:xc,children:C.jsxs("div",{className:"p-5",children:[C.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[C.jsx("img",{src:CM,alt:"Acme Cloud",width:24,height:24,className:"rounded"}),C.jsx("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"})]}),C.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Active projects",value:"12"},{label:"Open tasks",value:"37"},{label:"Deploys today",value:"8"}].map(i=>C.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[C.jsx("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value}),C.jsx("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label})]},i.label))})]})});case"projects":return C.jsx(Tc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:xc,children:C.jsxs("div",{className:"p-5",children:[C.jsx("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"}),C.jsx(AM,{columns:[{key:"name",label:"Name"},{key:"env",label:"Environment"},{key:"status",label:"Status",align:"right"}],rows:[{id:"1",cells:{name:"checkout-api",env:"production",status:C.jsx(bc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:C.jsx(bc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:C.jsx(bc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return C.jsx(Tc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:xc,children:C.jsx("div",{className:"flex justify-center p-6",children:C.jsx(dv,{title:"Profile",subtitle:"Update your account details",fields:[{label:"Full name",value:"Jordan Rivera"},{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Role",value:"Platform Engineer"}],submitLabel:"Save changes",width:320})})})}}const zM=[{delayMs:0,caption:"Sign in to Acme Cloud",data:{url:"app.acme.cloud/login",screen:"login"}},{delayMs:2400,caption:"Land on your dashboard",data:{url:"app.acme.cloud/home",screen:"dashboard"}},{delayMs:2600,caption:"Browse your projects",data:{url:"app.acme.cloud/projects",screen:"projects"}},{delayMs:2600,caption:"Update your profile",data:{url:"app.acme.cloud/settings",screen:"settings"}}],OM=Object.freeze(Object.defineProperty({__proto__:null,steps:zM},Symbol.toStringTag,{value:"Module"}));function _M(a){for(const i of Object.values(a))if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&"delayMs"in i[0])return i;throw new Error("No steps array found in /home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/steps")}const ig=_M(OM),jM=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),VM=jM==="dark"?ng+" dark":ng;function NM(){const a=D.useRef(null),[i,s]=D.useState(0),[u,c]=D.useState(void 0),[d,f]=D.useState(!0),[m,y]=D.useState(!1),[p,v]=D.useState(XS),g=D.useCallback((x,A)=>{s(A),c(void 0)},[]);GE({stepIndex:i,narrationManifest:void 0,containerRef:a,setCursorTarget:c,setShowRipple:f,setDragging:y,setViewportTransform:v,steps:ig});const b={id:"welcome-tour",steps:ig,narrationManifest:void 0};return C.jsx("div",{className:VM,children:C.jsxs(vE,{containerRef:a,canonicalWidth:896,shellHeight:480,children:[C.jsx(mE,{transform:p,children:C.jsx(jE,{bundle:b,embed:!0,onStepChange:g,children:(x,A)=>DM(x,A)})}),C.jsx(cE,{target:u,containerRef:a,showRipple:d,isDragging:m})]})})}const hv=document.getElementById("root");if(!hv)throw new Error("Embed root element #root not found");GS.createRoot(hv).render(C.jsx(NM,{}));