@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.
- package/example-bundle/assets/index-BU7trbqC.js +147 -0
- package/example-bundle/assets/style-COSwl6WP.css +1 -0
- package/example-bundle/index.html +6 -2
- package/example-bundle/pack-manifest.json +8 -8
- package/package.json +4 -4
- package/src/__tests__/pack-generate-embed-entry.test.ts +22 -0
- package/src/__tests__/scenario-validator.test.ts +0 -1
- package/src/install/scaffold.js +2 -4
- package/src/install/scaffold.js.map +1 -1
- package/src/install/scaffold.ts +2 -4
- package/src/pack/generate-embed-entry.d.ts +11 -0
- package/src/pack/generate-embed-entry.d.ts.map +1 -1
- package/src/pack/generate-embed-entry.js +34 -0
- package/src/pack/generate-embed-entry.js.map +1 -1
- package/src/pack/generate-embed-entry.ts +35 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/example-bundle/assets/index-BLQ14SEo.js +0 -147
- package/example-bundle/assets/style-Dnzx_jUO.css +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var Po={exports:{}},Tl={};/**
|
|
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 Dp;function jS(){if(Dp)return Tl;Dp=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 Tl.Fragment=i,Tl.jsx=s,Tl.jsxs=s,Tl}var Rp;function NS(){return Rp||(Rp=1,Po.exports=jS()),Po.exports}var D=NS(),Fo={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 wp;function BS(){if(wp)return ot;wp=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(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function B(A,H,F){this.props=A,this.context=H,this.refs=_,this.updater=F||E}B.prototype.isReactComponent={},B.prototype.setState=function(A,H){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,H,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Y(){}Y.prototype=B.prototype;function U(A,H,F){this.props=A,this.context=H,this.refs=_,this.updater=F||E}var X=U.prototype=new Y;X.constructor=U,w(X,B.prototype),X.isPureReactComponent=!0;var K=Array.isArray;function I(){}var k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Z(A,H,F){var $=F.ref;return{$$typeof:a,type:A,key:H,ref:$!==void 0?$:null,props:F}}function J(A,H){return Z(A.type,H,A.props)}function nt(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function lt(A){var H={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(F){return H[F]})}var Ct=/\/+/g;function Et(A,H){return typeof A=="object"&&A!==null&&A.key!=null?lt(""+A.key):H.toString(36)}function zt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(H){A.status==="pending"&&(A.status="fulfilled",A.value=H)},function(H){A.status==="pending"&&(A.status="rejected",A.reason=H)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,H,F,$,st){var ht=typeof A;(ht==="undefined"||ht==="boolean")&&(A=null);var St=!1;if(A===null)St=!0;else switch(ht){case"bigint":case"string":case"number":St=!0;break;case"object":switch(A.$$typeof){case a:case i:St=!0;break;case v:return St=A._init,j(St(A._payload),H,F,$,st)}}if(St)return st=st(A),St=$===""?"."+Et(A,0):$,K(st)?(F="",St!=null&&(F=St.replace(Ct,"$&/")+"/"),j(st,H,F,"",function(ia){return ia})):st!=null&&(nt(st)&&(st=J(st,F+(st.key==null||A&&A.key===st.key?"":(""+st.key).replace(Ct,"$&/")+"/")+St)),H.push(st)),1;St=0;var Lt=$===""?".":$+":";if(K(A))for(var Vt=0;Vt<A.length;Vt++)$=A[Vt],ht=Lt+Et($,Vt),St+=j($,H,F,ht,st);else if(Vt=x(A),typeof Vt=="function")for(A=Vt.call(A),Vt=0;!($=A.next()).done;)$=$.value,ht=Lt+Et($,Vt++),St+=j($,H,F,ht,st);else if(ht==="object"){if(typeof A.then=="function")return j(zt(A),H,F,$,st);throw H=String(A),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return St}function Q(A,H,F){if(A==null)return A;var $=[],st=0;return j(A,$,"","",function(ht){return H.call(F,ht,st++)}),$}function W(A){if(A._status===-1){var H=A._result;H=H(),H.then(function(F){(A._status===0||A._status===-1)&&(A._status=1,A._result=F)},function(F){(A._status===0||A._status===-1)&&(A._status=2,A._result=F)}),A._status===-1&&(A._status=0,A._result=H)}if(A._status===1)return A._result.default;throw A._result}var rt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ft={map:Q,forEach:function(A,H,F){Q(A,function(){H.apply(this,arguments)},F)},count:function(A){var H=0;return Q(A,function(){H++}),H},toArray:function(A){return Q(A,function(H){return H})||[]},only:function(A){if(!nt(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};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(A){return k.H.useMemoCache(A)}},ot.cache=function(A){return function(){return A.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(A,H,F){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var $=w({},A.props),st=A.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||($[ht]=H[ht]);var ht=arguments.length-2;if(ht===1)$.children=F;else if(1<ht){for(var St=Array(ht),Lt=0;Lt<ht;Lt++)St[Lt]=arguments[Lt+2];$.children=St}return Z(A.type,st,$)},ot.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},ot.createElement=function(A,H,F){var $,st={},ht=null;if(H!=null)for($ in H.key!==void 0&&(ht=""+H.key),H)P.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(st[$]=H[$]);var St=arguments.length-2;if(St===1)st.children=F;else if(1<St){for(var Lt=Array(St),Vt=0;Vt<St;Vt++)Lt[Vt]=arguments[Vt+2];st.children=Lt}if(A&&A.defaultProps)for($ in St=A.defaultProps,St)st[$]===void 0&&(st[$]=St[$]);return Z(A,ht,st)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(A){return{$$typeof:m,render:A}},ot.isValidElement=nt,ot.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:W}},ot.memo=function(A,H){return{$$typeof:p,type:A,compare:H===void 0?null:H}},ot.startTransition=function(A){var H=k.T,F={};k.T=F;try{var $=A(),st=k.S;st!==null&&st(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(I,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(A){return k.H.use(A)},ot.useActionState=function(A,H,F){return k.H.useActionState(A,H,F)},ot.useCallback=function(A,H){return k.H.useCallback(A,H)},ot.useContext=function(A){return k.H.useContext(A)},ot.useDebugValue=function(){},ot.useDeferredValue=function(A,H){return k.H.useDeferredValue(A,H)},ot.useEffect=function(A,H){return k.H.useEffect(A,H)},ot.useEffectEvent=function(A){return k.H.useEffectEvent(A)},ot.useId=function(){return k.H.useId()},ot.useImperativeHandle=function(A,H,F){return k.H.useImperativeHandle(A,H,F)},ot.useInsertionEffect=function(A,H){return k.H.useInsertionEffect(A,H)},ot.useLayoutEffect=function(A,H){return k.H.useLayoutEffect(A,H)},ot.useMemo=function(A,H){return k.H.useMemo(A,H)},ot.useOptimistic=function(A,H){return k.H.useOptimistic(A,H)},ot.useReducer=function(A,H,F){return k.H.useReducer(A,H,F)},ot.useRef=function(A){return k.H.useRef(A)},ot.useState=function(A){return k.H.useState(A)},ot.useSyncExternalStore=function(A,H,F){return k.H.useSyncExternalStore(A,H,F)},ot.useTransition=function(){return k.H.useTransition()},ot.version="19.2.5",ot}var zp;function Kc(){return zp||(zp=1,Fo.exports=BS()),Fo.exports}var C=Kc(),Wo={exports:{}},xl={},$o={exports:{}},Io={};/**
|
|
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 Op;function US(){return Op||(Op=1,function(a){function i(j,Q){var W=j.length;j.push(Q);t:for(;0<W;){var rt=W-1>>>1,ft=j[rt];if(0<c(ft,Q))j[rt]=Q,j[W]=ft,W=rt;else break t}}function s(j){return j.length===0?null:j[0]}function u(j){if(j.length===0)return null;var Q=j[0],W=j.pop();if(W!==Q){j[0]=W;t:for(var rt=0,ft=j.length,A=ft>>>1;rt<A;){var H=2*(rt+1)-1,F=j[H],$=H+1,st=j[$];if(0>c(F,W))$<ft&&0>c(st,F)?(j[rt]=st,j[$]=W,rt=$):(j[rt]=F,j[H]=W,rt=H);else if($<ft&&0>c(st,W))j[rt]=st,j[$]=W,rt=$;else break t}}return Q}function c(j,Q){var W=j.sortIndex-Q.sortIndex;return W!==0?W:j.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,E=!1,w=!1,_=!1,B=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function X(j){for(var Q=s(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=j)u(p),Q.sortIndex=Q.expirationTime,i(y,Q);else break;Q=s(p)}}function K(j){if(w=!1,X(j),!E)if(s(y)!==null)E=!0,I||(I=!0,lt());else{var Q=s(p);Q!==null&&zt(K,Q.startTime-j)}}var I=!1,k=-1,P=5,Z=-1;function J(){return _?!0:!(a.unstable_now()-Z<P)}function nt(){if(_=!1,I){var j=a.unstable_now();Z=j;var Q=!0;try{t:{E=!1,w&&(w=!1,Y(k),k=-1),x=!0;var W=b;try{e:{for(X(j),g=s(y);g!==null&&!(g.expirationTime>j&&J());){var rt=g.callback;if(typeof rt=="function"){g.callback=null,b=g.priorityLevel;var ft=rt(g.expirationTime<=j);if(j=a.unstable_now(),typeof ft=="function"){g.callback=ft,X(j),Q=!0;break e}g===s(y)&&u(y),X(j)}else u(y);g=s(y)}if(g!==null)Q=!0;else{var A=s(p);A!==null&&zt(K,A.startTime-j),Q=!1}}break t}finally{g=null,b=W,x=!1}Q=void 0}}finally{Q?lt():I=!1}}}var lt;if(typeof U=="function")lt=function(){U(nt)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,Et=Ct.port2;Ct.port1.onmessage=nt,lt=function(){Et.postMessage(null)}}else lt=function(){B(nt,0)};function zt(j,Q){k=B(function(){j(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(j){j.callback=null},a.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(j){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var W=b;b=Q;try{return j()}finally{b=W}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var W=b;b=j;try{return Q()}finally{b=W}},a.unstable_scheduleCallback=function(j,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,j){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,j={id:v++,callback:Q,priorityLevel:j,startTime:W,expirationTime:ft,sortIndex:-1},W>rt?(j.sortIndex=W,i(p,j),s(y)===null&&j===s(p)&&(w?(Y(k),k=-1):w=!0,zt(K,W-rt))):(j.sortIndex=ft,i(y,j),E||x||(E=!0,I||(I=!0,lt()))),j},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(j){var Q=b;return function(){var W=b;b=Q;try{return j.apply(this,arguments)}finally{b=W}}}}(Io)),Io}var _p;function LS(){return _p||(_p=1,$o.exports=US()),$o.exports}var tc={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 HS(){if(Vp)return re;Vp=1;var a=Kc();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 jp;function YS(){if(jp)return tc.exports;jp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),tc.exports=HS(),tc.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 Np;function qS(){if(Np)return xl;Np=1;var a=LS(),i=Kc(),s=YS();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"),E=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"),I=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 Et(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 I:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E: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:Et(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return Et(t(e))}catch{}}return null}var zt=Array.isArray,j=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 A(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 $=A(null),st=A(null),ht=A(null),St=A(null);function Lt(t,e){switch(F(ht,e),F(st,t),F($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Fm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Fm(e),t=Wm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H($),F($,t)}function Vt(){H($),H(st),H(ht)}function ia(t){t.memoizedState!==null&&F(St,t);var e=$.current,n=Wm(e,t.type);e!==n&&(F(st,t),F($,n))}function Mn(t){st.current===t&&(H($),H(st)),St.current===t&&(H(St),gl._currentValue=W)}var wa,Ul;function ln(t){if(wa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);wa=e&&e[1]||"",Ul=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+wa+t+Ul}var za=!1;function Oa(t,e){if(!t||za)return"";za=!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 V=N}Reflect.construct(t,[],G)}else{try{G.call()}catch(N){V=N}t.call(G.prototype)}}else{try{throw Error()}catch(N){V=N}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&V&&typeof N.stack=="string")return[N.stack,V.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{za=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ln(n):""}function Nu(t,e){switch(t.tag){case 26:case 27:case 5:return ln(t.type);case 16:return ln("Lazy");case 13:return t.child!==e&&e!==null?ln("Suspense Fallback"):ln("Suspense");case 19:return ln("SuspenseList");case 0:case 15:return Oa(t.type,!1);case 11:return Oa(t.type.render,!1);case 1:return Oa(t.type,!0);case 31:return ln("Activity");default:return""}}function Ll(t){try{var e="",n=null;do e+=Nu(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var _a=Object.prototype.hasOwnProperty,Ri=a.unstable_scheduleCallback,ue=a.unstable_cancelCallback,ze=a.unstable_shouldYield,Cn=a.unstable_requestPaint,oe=a.unstable_now,mv=a.unstable_getCurrentPriorityLevel,Rf=a.unstable_ImmediatePriority,wf=a.unstable_UserBlockingPriority,Hl=a.unstable_NormalPriority,pv=a.unstable_LowPriority,zf=a.unstable_IdlePriority,yv=a.log,gv=a.unstable_setDisableYieldValue,wi=null,be=null;function Dn(t){if(typeof yv=="function"&&gv(t),be&&typeof be.setStrictMode=="function")try{be.setStrictMode(wi,t)}catch{}}var Te=Math.clz32?Math.clz32:bv,vv=Math.log,Sv=Math.LN2;function bv(t){return t>>>=0,t===0?32:31-(vv(t)/Sv|0)|0}var Yl=256,ql=262144,Gl=4194304;function la(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xl(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=la(l):(h&=S,h!==0?r=la(h):n||(n=S&~t,n!==0&&(r=la(n))))):(S=l&~o,S!==0?r=la(S):h!==0?r=la(h):n||(n=l&~t,n!==0&&(r=la(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function zi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Tv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Of(){var t=Gl;return Gl<<=1,(Gl&62914560)===0&&(Gl=4194304),t}function Bu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Oi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function xv(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 V=O[L];if(V!==null)for(O[L]=null,L=0;L<V.length;L++){var N=V[L];N!==null&&(N.lane&=-536870913)}n&=~G}l!==0&&_f(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function _f(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 jf(t,e){var n=e&-e;return n=(n&42)!==0?1:Uu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Uu(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 Lu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Nf(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:bp(t.type))}function Bf(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var Rn=Math.random().toString(36).slice(2),te="__reactFiber$"+Rn,he="__reactProps$"+Rn,Va="__reactContainer$"+Rn,Hu="__reactEvents$"+Rn,Ev="__reactListeners$"+Rn,Av="__reactHandles$"+Rn,Uf="__reactResources$"+Rn,_i="__reactMarker$"+Rn;function Yu(t){delete t[te],delete t[he],delete t[Hu],delete t[Ev],delete t[Av]}function ja(t){var e=t[te];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Va]||n[te]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ip(t);t!==null;){if(n=t[te])return n;t=ip(t)}return e}t=n,n=t.parentNode}return null}function Na(t){if(t=t[te]||t[Va]){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 Ba(t){var e=t[Uf];return e||(e=t[Uf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[_i]=!0}var Lf=new Set,Hf={};function sa(t,e){Ua(t,e),Ua(t+"Capture",e)}function Ua(t,e){for(Hf[t]=e,t=0;t<e.length;t++)Lf.add(e[t])}var Mv=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]*$"),Yf={},qf={};function Cv(t){return _a.call(qf,t)?!0:_a.call(Yf,t)?!1:Mv.test(t)?qf[t]=!0:(Yf[t]=!0,!1)}function kl(t,e,n){if(Cv(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 Zl(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 sn(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 Gf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Dv(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 qu(t){if(!t._valueTracker){var e=Gf(t)?"checked":"value";t._valueTracker=Dv(t,e,""+t[e])}}function Xf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Gf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ql(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 Rv=/[\n"\\]/g;function _e(t){return t.replace(Rv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Gu(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?Xu(t,h,Oe(e)):n!=null?Xu(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 kf(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)){qu(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),qu(t)}function Xu(t,e,n){e==="number"&&Ql(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function La(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 Zf(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 Qf(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),qu(t)}function Ha(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var wv=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 Kf(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||wv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Jf(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&&Kf(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&Kf(t,o,e[o])}function ku(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zv=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"]]),Ov=/^[\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 Kl(t){return Ov.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function un(){}var Zu=null;function Qu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ya=null,qa=null;function Pf(t){var e=Na(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Gu(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));Gu(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&&Xf(l)}break t;case"textarea":Zf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&La(t,!!n.multiple,e,!1)}}}var Ku=!1;function Ff(t,e,n){if(Ku)return t(e,n);Ku=!0;try{var l=t(e);return l}finally{if(Ku=!1,(Ya!==null||qa!==null)&&(js(),Ya&&(e=Ya,t=qa,qa=Ya=null,Pf(e),t)))for(e=0;e<t.length;e++)Pf(t[e])}}function ji(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 rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=!1;if(rn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Ju=!1}var wn=null,Pu=null,Jl=null;function Wf(){if(Jl)return Jl;var t,e=Pu,n=e.length,l,r="value"in wn?wn.value:wn.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 Jl=r.slice(t,1<l?1-l:void 0)}function Pl(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 Fl(){return!0}function $f(){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)?Fl:$f,this.isPropagationStopped=$f,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=Fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),e}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=me(ua),Bi=g({},ua,{view:0,detail:0}),_v=me(Bi),Fu,Wu,Ui,$l=g({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ui&&(Ui&&t.type==="mousemove"?(Fu=t.screenX-Ui.screenX,Wu=t.screenY-Ui.screenY):Wu=Fu=0,Ui=t),Fu)},movementY:function(t){return"movementY"in t?t.movementY:Wu}}),If=me($l),Vv=g({},$l,{dataTransfer:0}),jv=me(Vv),Nv=g({},Bi,{relatedTarget:0}),$u=me(Nv),Bv=g({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Uv=me(Bv),Lv=g({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hv=me(Lv),Yv=g({},ua,{data:0}),td=me(Yv),qv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Xv[t])?!!e[t]:!1}function Iu(){return kv}var Zv=g({},Bi,{key:function(t){if(t.key){var e=qv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(t){return t.type==="keypress"?Pl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Qv=me(Zv),Kv=g({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ed=me(Kv),Jv=g({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),Pv=me(Jv),Fv=g({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wv=me(Fv),$v=g({},$l,{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}),Iv=me($v),t1=g({},ua,{newState:0,oldState:0}),e1=me(t1),n1=[9,13,27,32],tr=rn&&"CompositionEvent"in window,Li=null;rn&&"documentMode"in document&&(Li=document.documentMode);var a1=rn&&"TextEvent"in window&&!Li,nd=rn&&(!tr||Li&&8<Li&&11>=Li),ad=" ",id=!1;function ld(t,e){switch(t){case"keyup":return n1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function i1(t,e){switch(t){case"compositionend":return sd(e);case"keypress":return e.which!==32?null:(id=!0,ad);case"textInput":return t=e.data,t===ad&&id?null:t;default:return null}}function l1(t,e){if(Ga)return t==="compositionend"||!tr&&ld(t,e)?(t=Wf(),Jl=Pu=wn=null,Ga=!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 nd&&e.locale!=="ko"?null:e.data;default:return null}}var s1={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 ud(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!s1[t.type]:e==="textarea"}function rd(t,e,n,l){Ya?qa?qa.push(l):qa=[l]:Ya=l,e=qs(e,"onChange"),0<e.length&&(n=new Wl("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hi=null,Yi=null;function u1(t){km(t,0)}function Il(t){var e=Vi(t);if(Xf(e))return t}function od(t,e){if(t==="change")return e}var cd=!1;if(rn){var er;if(rn){var nr="oninput"in document;if(!nr){var fd=document.createElement("div");fd.setAttribute("oninput","return;"),nr=typeof fd.oninput=="function"}er=nr}else er=!1;cd=er&&(!document.documentMode||9<document.documentMode)}function dd(){Hi&&(Hi.detachEvent("onpropertychange",hd),Yi=Hi=null)}function hd(t){if(t.propertyName==="value"&&Il(Yi)){var e=[];rd(e,Yi,t,Qu(t)),Ff(u1,e)}}function r1(t,e,n){t==="focusin"?(dd(),Hi=e,Yi=n,Hi.attachEvent("onpropertychange",hd)):t==="focusout"&&dd()}function o1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Il(Yi)}function c1(t,e){if(t==="click")return Il(e)}function f1(t,e){if(t==="input"||t==="change")return Il(e)}function d1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:d1;function qi(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(!_a.call(e,r)||!xe(t[r],e[r]))return!1}return!0}function md(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function pd(t,e){var n=md(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=md(n)}}function yd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?yd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function gd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ql(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=Ql(t.document)}return e}function ar(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 h1=rn&&"documentMode"in document&&11>=document.documentMode,Xa=null,ir=null,Gi=null,lr=!1;function vd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lr||Xa==null||Xa!==Ql(l)||(l=Xa,"selectionStart"in l&&ar(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}),Gi&&qi(Gi,l)||(Gi=l,l=qs(ir,"onSelect"),0<l.length&&(e=new Wl("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ka={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},sr={},Sd={};rn&&(Sd=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function oa(t){if(sr[t])return sr[t];if(!ka[t])return t;var e=ka[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Sd)return sr[t]=e[n];return t}var bd=oa("animationend"),Td=oa("animationiteration"),xd=oa("animationstart"),m1=oa("transitionrun"),p1=oa("transitionstart"),y1=oa("transitioncancel"),Ed=oa("transitionend"),Ad=new Map,ur="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(" ");ur.push("scrollEnd");function Xe(t,e){Ad.set(t,e),sa(e,[t])}var ts=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)},Ve=[],Za=0,rr=0;function es(){for(var t=Za,e=rr=Za=0;e<t;){var n=Ve[e];Ve[e++]=null;var l=Ve[e];Ve[e++]=null;var r=Ve[e];Ve[e++]=null;var o=Ve[e];if(Ve[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&&Md(n,r,o)}}function ns(t,e,n,l){Ve[Za++]=t,Ve[Za++]=e,Ve[Za++]=n,Ve[Za++]=l,rr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function or(t,e,n,l){return ns(t,e,n,l),as(t)}function ca(t,e){return ns(t,null,null,e),as(t)}function Md(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 as(t){if(50<cl)throw cl=0,So=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Qa={};function g1(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 Ee(t,e,n,l){return new g1(t,e,n,l)}function cr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function on(t,e){var n=t.alternate;return n===null?(n=Ee(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 Cd(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 is(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")cr(t)&&(h=1);else if(typeof t=="string")h=xS(t,n,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=Ee(31,n,e,r),t.elementType=Z,t.lanes=o,t;case w:return fa(n.children,r,o,e);case _:h=8,r|=24;break;case B:return t=Ee(12,n,e,r|2),t.elementType=B,t.lanes=o,t;case K:return t=Ee(13,n,e,r),t.elementType=K,t.lanes=o,t;case I:return t=Ee(19,n,e,r),t.elementType=I,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=Ee(h,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function fa(t,e,n,l){return t=Ee(7,t,l,e),t.lanes=n,t}function fr(t,e,n){return t=Ee(6,t,null,e),t.lanes=n,t}function Dd(t){var e=Ee(18,null,null,0);return e.stateNode=t,e}function dr(t,e,n){return e=Ee(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Rd=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var n=Rd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ll(e)},Rd.set(t,e),e)}return{value:t,source:e,stack:Ll(e)}}var Ka=[],Ja=0,ls=null,Xi=0,Ne=[],Be=0,zn=null,Fe=1,We="";function cn(t,e){Ka[Ja++]=Xi,Ka[Ja++]=ls,ls=t,Xi=e}function wd(t,e,n){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=zn,zn=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 hr(t){t.return!==null&&(cn(t,1),wd(t,1,0))}function mr(t){for(;t===ls;)ls=Ka[--Ja],Ka[Ja]=null,Xi=Ka[--Ja],Ka[Ja]=null;for(;t===zn;)zn=Ne[--Be],Ne[Be]=null,We=Ne[--Be],Ne[Be]=null,Fe=Ne[--Be],Ne[Be]=null}function zd(t,e){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=zn,Fe=e.id,We=e.overflow,zn=t}var ee=null,jt=null,vt=!1,On=null,Ue=!1,pr=Error(u(519));function _n(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ki(je(e,t)),pr}function Od(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[te]=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<dl.length;n++)pt(dl[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),kf(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),Qf(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||Jm(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=un),e=!0):e=!1,e||_n(t,!0)}function _d(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:ee=ee.return}}function Pa(t){if(t!==ee)return!1;if(!vt)return _d(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")||jo(t.type,t.memoizedProps)),n=!n),n&&jt&&_n(t),_d(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));jt=ap(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));jt=ap(t)}else e===27?(e=jt,Qn(t.type)?(t=Ho,Ho=null,jt=t):jt=e):jt=ee?He(t.stateNode.nextSibling):null;return!0}function da(){jt=ee=null,vt=!1}function yr(){var t=On;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),On=null),t}function ki(t){On===null?On=[t]:On.push(t)}var gr=A(null),ha=null,fn=null;function Vn(t,e,n){F(gr,e._currentValue),e._currentValue=n}function dn(t){t._currentValue=gr.current,H(gr)}function vr(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 Sr(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),vr(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),vr(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 Fa(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(gl):t=[gl])}r=r.return}t!==null&&Sr(e,t,n,l),e.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,fn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Vd(ha,t)}function us(t,e){return ha===null&&ma(t),Vd(t,e)}function Vd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},fn===null){if(t===null)throw Error(u(308));fn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else fn=fn.next=e;return n}var v1=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()})}},S1=a.unstable_scheduleCallback,b1=a.unstable_NormalPriority,kt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function br(){return{controller:new v1,data:new Map,refCount:0}}function Zi(t){t.refCount--,t.refCount===0&&S1(b1,function(){t.controller.abort()})}var Qi=null,Tr=0,Wa=0,$a=null;function T1(t,e){if(Qi===null){var n=Qi=[];Tr=0,Wa=Mo(),$a={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Tr++,e.then(jd,jd),e}function jd(){if(--Tr===0&&Qi!==null){$a!==null&&($a.status="fulfilled");var t=Qi;Qi=null,Wa=0,$a=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function x1(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 Nd=j.S;j.S=function(t,e){vm=oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&T1(t,e),Nd!==null&&Nd(t,e)};var pa=A(null);function xr(){var t=pa.current;return t!==null?t:Ot.pooledCache}function rs(t,e){e===null?F(pa,pa.current):F(pa,e.pool)}function Bd(){var t=xr();return t===null?null:{parent:kt._currentValue,pool:t}}var Ia=Error(u(460)),Er=Error(u(474)),os=Error(u(542)),cs={then:function(){}};function Ud(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ld(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(un,un),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Yd(t),t;default:if(typeof e.status=="string")e.then(un,un);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,Yd(t),t}throw ga=e,Ia}}function ya(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ga=n,Ia):n}}var ga=null;function Hd(){if(ga===null)throw Error(u(459));var t=ga;return ga=null,t}function Yd(t){if(t===Ia||t===os)throw Error(u(483))}var ti=null,Ki=0;function fs(t){var e=Ki;return Ki+=1,ti===null&&(ti=[]),Ld(ti,t,e)}function Ji(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ds(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 qd(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=on(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=fr(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&&ya(it)===M.type)?(M=r(M,z.props),Ji(M,z),M.return=R,M):(M=is(z.type,z.key,z.props,null,R.mode,q),Ji(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=dr(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=fa(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=fr(""+M,R.mode,z),M.return=R,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return z=is(M.type,M.key,M.props,null,R.mode,z),Ji(z,M),z.return=R,z;case E:return M=dr(M,R.mode,z),M.return=R,M;case P:return M=ya(M),G(R,M,z)}if(zt(M)||lt(M))return M=fa(M,R.mode,z,null),M.return=R,M;if(typeof M.then=="function")return G(R,fs(M),z);if(M.$$typeof===U)return G(R,us(R,M),z);ds(R,M)}return null}function V(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 E:return z.key===it?O(R,M,z,q):null;case P:return z=ya(z),V(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 V(R,M,fs(z),q);if(z.$$typeof===U)return V(R,M,us(R,z),q);ds(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 E:return R=R.get(q.key===null?z:q.key)||null,O(M,R,q,it);case P:return q=ya(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,fs(q),it);if(q.$$typeof===U)return N(R,M,z,us(M,q),it);ds(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=V(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&&cn(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&&cn(R,dt),it}for(at=l(at);dt<z.length;dt++)gt=N(at,R,dt,z[dt],q),gt!==null&&(t&>.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(Wn){return e(R,Wn)}),vt&&cn(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 Wn=V(R,at,Tt.value,q);if(Wn===null){at===null&&(at=gt);break}t&&at&&Wn.alternate===null&&e(R,at),M=o(Wn,M,dt),bt===null?it=Wn:bt.sibling=Wn,bt=Wn,at=gt}if(Tt.done)return n(R,at),vt&&cn(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&&cn(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(VS){return e(R,VS)}),vt&&cn(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&&ya(it)===M.type){n(R,M.sibling),q=r(M,z.props),Ji(q,z),q.return=R,R=q;break t}n(R,M);break}else e(R,M);M=M.sibling}z.type===w?(q=fa(z.props.children,R.mode,q,z.key),q.return=R,R=q):(q=is(z.type,z.key,z.props,null,R.mode,q),Ji(q,z),q.return=R,R=q)}return h(R);case E: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=dr(z,R.mode,q),q.return=R,R=q}return h(R);case P:return z=ya(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,fs(z),q);if(z.$$typeof===U)return wt(R,M,us(R,z),q);ds(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=fr(z,R.mode,q),q.return=R,R=q),h(R)):n(R,M)}return function(R,M,z,q){try{Ki=0;var it=wt(R,M,z,q);return ti=null,it}catch(at){if(at===Ia||at===os)throw at;var bt=Ee(29,at,null,R.mode);return bt.lanes=q,bt.return=R,bt}finally{}}}var va=qd(!0),Gd=qd(!1),jn=!1;function Ar(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mr(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 Nn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(xt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=as(t),Md(t,null,n),e}return ns(t,l,e,n),as(t)}function Pi(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 Cr(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 Dr=!1;function Fi(){if(Dr){var t=$a;if(t!==null)throw t}}function Wi(t,e,n,l){Dr=!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 V=S.lane&-536870913,N=V!==S.lane;if(N?(yt&V)===V:(l&V)===V){V!==0&&V===Wa&&(Dr=!0),L!==null&&(L=L.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var tt=t,ut=S;V=e;var wt=n;switch(ut.tag){case 1:if(tt=ut.payload,typeof tt=="function"){G=tt.call(wt,G,V);break t}G=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ut.payload,V=typeof tt=="function"?tt.call(wt,G,V):tt,V==null)break t;G=g({},G,V);break t;case 2:jn=!0}}V=S.callback,V!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[V]:N.push(V))}else N={lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},L===null?(O=L=N,T=G):L=L.next=N,h|=V;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),qn|=h,t.lanes=h,t.memoizedState=G}}function Xd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function kd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Xd(n[t],e)}var ei=A(null),hs=A(0);function Zd(t,e){t=Tn,F(hs,t),F(ei,e),Tn=t|e.baseLanes}function Rr(){F(hs,Tn),F(ei,ei.current)}function wr(){Tn=hs.current,H(ei),H(hs)}var Ae=A(null),Le=null;function Un(t){var e=t.alternate;F(Gt,Gt.current&1),F(Ae,t),Le===null&&(e===null||ei.current!==null||e.memoizedState!==null)&&(Le=t)}function zr(t){F(Gt,Gt.current),F(Ae,t),Le===null&&(Le=t)}function Qd(t){t.tag===22?(F(Gt,Gt.current),F(Ae,t),Le===null&&(Le=t)):Ln()}function Ln(){F(Gt,Gt.current),F(Ae,Ae.current)}function Me(t){H(Ae),Le===t&&(Le=null),H(Gt)}var Gt=A(0);function ms(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Uo(n)||Lo(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 hn=0,ct=null,Dt=null,Zt=null,ps=!1,ni=!1,Sa=!1,ys=0,$i=0,ai=null,E1=0;function Ht(){throw Error(u(321))}function Or(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 _r(t,e,n,l,r,o){return hn=o,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?wh:Kr,Sa=!1,o=n(l,r),Sa=!1,ni&&(o=Jd(e,n,l,r)),Kd(t),o}function Kd(t){j.H=el;var e=Dt!==null&&Dt.next!==null;if(hn=0,Zt=Dt=ct=null,ps=!1,$i=0,ai=null,e)throw Error(u(300));t===null||Qt||(t=t.dependencies,t!==null&&ss(t)&&(Qt=!0))}function Jd(t,e,n,l){ct=t;var r=0;do{if(ni&&(ai=null),$i=0,ni=!1,25<=r)throw Error(u(301));if(r+=1,Zt=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)}j.H=zh,o=e(n,l)}while(ni);return o}function A1(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?Ii(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Vr(){var t=ys!==0;return ys=0,t}function jr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Nr(t){if(ps){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ps=!1}hn=0,Zt=Dt=ct=null,ni=!1,$i=ys=0,ai=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Xt(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=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},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function gs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(t){var e=$i;return $i+=1,ai===null&&(ai=[]),t=Ld(ai,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?wh:Kr),t}function vs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===U)return ne(t)}throw Error(u(438,String(t)))}function Br(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=gs(),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 mn(t,e){return typeof e=="function"?e(t):e}function Ss(t){var e=Xt();return Ur(e,Dt,t)}function Ur(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:(hn&G)===G){var V=O.revertLane;if(V===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Wa&&(L=!0);else if((hn&V)===V){O=O.next,V===Wa&&(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|=V,qn|=V;G=O.action,Sa&&n(o,G),o=O.hasEagerState?O.eagerState:n(o,G)}else V={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=V,h=o):T=T.next=V,ct.lanes|=G,qn|=G;O=O.next}while(O!==null&&O!==e);if(T===null?h=o:T.next=S,!xe(o,t.memoizedState)&&(Qt=!0,L&&(n=$a,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 Lr(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)||(Qt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function Pd(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,Qt=!0),r=r.queue,qr($d.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,ii(9,{destroy:void 0},Wd.bind(null,l,r,n,e),null),Ot===null)throw Error(u(349));o||(hn&127)!==0||Fd(l,e,n)}return n}function Fd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=gs(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Wd(t,e,n,l){e.value=n,e.getSnapshot=l,Id(e)&&th(t)}function $d(t,e,n){return n(function(){Id(e)&&th(t)})}function Id(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xe(t,n)}catch{return!0}}function th(t){var e=ca(t,2);e!==null&&Se(e,t,2)}function Hr(t){var e=ce();if(typeof t=="function"){var n=t;if(t=n(),Sa){Dn(!0);try{n()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:t},e}function eh(t,e,n,l){return t.baseState=n,Ur(t,Dt,typeof l=="function"?l:mn)}function M1(t,e,n,l,r){if(xs(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)}};j.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,nh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function nh(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=j.T,h={};j.T=h;try{var S=n(r,l),T=j.S;T!==null&&T(h,S),ah(t,e,S)}catch(O){Yr(t,e,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),j.T=o}}else try{o=n(r,l),ah(t,e,o)}catch(O){Yr(t,e,O)}}function ah(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ih(t,e,l)},function(l){return Yr(t,e,l)}):ih(t,e,n)}function ih(t,e,n){e.status="fulfilled",e.value=n,lh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,nh(t,n)))}function Yr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,lh(e),e=e.next;while(e!==l)}t.action=null}function lh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function sh(t,e){return e}function uh(t,e){if(vt){var n=Ot.formState;if(n!==null){t:{var l=ct;if(vt){if(jt){e:{for(var r=jt,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){jt=He(r.nextSibling),l=r.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ce(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:e},n.queue=l,n=Ch.bind(null,ct,l),l.dispatch=n,l=Hr(!1),o=Qr.bind(null,ct,!1,l.queue),l=ce(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=M1.bind(null,ct,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function rh(t){var e=Xt();return oh(e,Dt,t)}function oh(t,e,n){if(e=Ur(t,e,sh)[0],t=Ss(mn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ii(e)}catch(h){throw h===Ia?os:h}else l=e;e=Xt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,ii(9,{destroy:void 0},C1.bind(null,r,n),null)),[l,o,t]}function C1(t,e){t.action=e}function ch(t){var e=Xt(),n=Dt;if(n!==null)return oh(e,n,t);Xt(),e=e.memoizedState,n=Xt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ii(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=gs(),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 fh(){return Xt().memoizedState}function bs(t,e,n,l){var r=ce();ct.flags|=t,r.memoizedState=ii(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ts(t,e,n,l){var r=Xt();l=l===void 0?null:l;var o=r.memoizedState.inst;Dt!==null&&l!==null&&Or(l,Dt.memoizedState.deps)?r.memoizedState=ii(e,o,n,l):(ct.flags|=t,r.memoizedState=ii(1|e,o,n,l))}function dh(t,e){bs(8390656,8,t,e)}function qr(t,e){Ts(2048,8,t,e)}function D1(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=gs(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function hh(t){var e=Xt().memoizedState;return D1({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function mh(t,e){return Ts(4,2,t,e)}function ph(t,e){return Ts(4,4,t,e)}function yh(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 gh(t,e,n){n=n!=null?n.concat([t]):null,Ts(4,4,yh.bind(null,e,t),n)}function Gr(){}function vh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Or(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Sh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Or(e,l[1]))return l[0];if(l=t(),Sa){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l}function Xr(t,e,n){return n===void 0||(hn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=bm(),ct.lanes|=t,qn|=t,n)}function bh(t,e,n,l){return xe(n,e)?n:ei.current!==null?(t=Xr(t,n,l),xe(t,e)||(Qt=!0),t):(hn&42)===0||(hn&1073741824)!==0&&(yt&261930)===0?(Qt=!0,t.memoizedState=n):(t=bm(),ct.lanes|=t,qn|=t,e)}function Th(t,e,n,l,r){var o=Q.p;Q.p=o!==0&&8>o?o:8;var h=j.T,S={};j.T=S,Qr(t,!1,e,n);try{var T=r(),O=j.S;if(O!==null&&O(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=x1(T,l);tl(t,e,L,Re(t))}else tl(t,e,l,Re(t))}catch(G){tl(t,e,{then:function(){},status:"rejected",reason:G},Re())}finally{Q.p=o,h!==null&&S.types!==null&&(h.types=S.types),j.T=h}}function R1(){}function kr(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=xh(t).queue;Th(t,r,e,W,n===null?R1:function(){return Eh(t),n(l)})}function xh(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:mn,lastRenderedState:W},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Eh(t){var e=xh(t);e.next===null&&(e=t.alternate.memoizedState),tl(t,e.next.queue,{},Re())}function Zr(){return ne(gl)}function Ah(){return Xt().memoizedState}function Mh(){return Xt().memoizedState}function w1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=Nn(n);var l=Bn(e,t,n);l!==null&&(Se(l,e,n),Pi(l,e,n)),e={cache:br()},t.payload=e;return}e=e.return}}function z1(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xs(t)?Dh(e,n):(n=or(t,e,n,l),n!==null&&(Se(n,t,l),Rh(n,e,l)))}function Ch(t,e,n){var l=Re();tl(t,e,n,l)}function tl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xs(t))Dh(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 ns(t,e,r,0),Ot===null&&es(),!1}catch{}finally{}if(n=or(t,e,r,l),n!==null)return Se(n,t,l),Rh(n,e,l),!0}return!1}function Qr(t,e,n,l){if(l={lane:2,revertLane:Mo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xs(t)){if(e)throw Error(u(479))}else e=or(t,n,l,2),e!==null&&Se(e,t,2)}function xs(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Dh(t,e){ni=ps=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Rh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Vf(t,n)}}var el={readContext:ne,use:vs,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};el.useEffectEvent=Ht;var wh={readContext:ne,use:vs,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:dh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bs(4194308,4,yh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return bs(4194308,4,t,e)},useInsertionEffect:function(t,e){bs(4,2,t,e)},useMemo:function(t,e){var n=ce();e=e===void 0?null:e;var l=t();if(Sa){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ce();if(n!==void 0){var r=n(e);if(Sa){Dn(!0);try{n(e)}finally{Dn(!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=z1.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=Hr(t);var e=t.queue,n=Ch.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Gr,useDeferredValue:function(t,e){var n=ce();return Xr(n,t,e)},useTransition:function(){var t=Hr(!1);return t=Th.bind(null,ct,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,r=ce();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||Fd(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,dh($d.bind(null,l,o,t),[t]),l.flags|=2048,ii(9,{destroy:void 0},Wd.bind(null,l,o,n,e),null),n},useId:function(){var t=ce(),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=ys++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=E1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Zr,useFormState:uh,useActionState:uh,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Qr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Br,useCacheRefresh:function(){return ce().memoizedState=w1.bind(null,ct)},useEffectEvent:function(t){var e=ce(),n={impl:t};return e.memoizedState=n,function(){if((xt&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Kr={readContext:ne,use:vs,useCallback:vh,useContext:ne,useEffect:qr,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:ph,useMemo:Sh,useReducer:Ss,useRef:fh,useState:function(){return Ss(mn)},useDebugValue:Gr,useDeferredValue:function(t,e){var n=Xt();return bh(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Ss(mn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:Pd,useId:Ah,useHostTransitionStatus:Zr,useFormState:rh,useActionState:rh,useOptimistic:function(t,e){var n=Xt();return eh(n,Dt,t,e)},useMemoCache:Br,useCacheRefresh:Mh};Kr.useEffectEvent=hh;var zh={readContext:ne,use:vs,useCallback:vh,useContext:ne,useEffect:qr,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:ph,useMemo:Sh,useReducer:Lr,useRef:fh,useState:function(){return Lr(mn)},useDebugValue:Gr,useDeferredValue:function(t,e){var n=Xt();return Dt===null?Xr(n,t,e):bh(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Lr(mn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:Pd,useId:Ah,useHostTransitionStatus:Zr,useFormState:ch,useActionState:ch,useOptimistic:function(t,e){var n=Xt();return Dt!==null?eh(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Br,useCacheRefresh:Mh};zh.useEffectEvent=hh;function Jr(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 Pr={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Re(),r=Nn(l);r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(Se(e,t,l),Pi(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Re(),r=Nn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(Se(e,t,l),Pi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),l=Nn(n);l.tag=2,e!=null&&(l.callback=e),e=Bn(t,l,n),e!==null&&(Se(e,t,n),Pi(e,t,n))}};function Oh(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?!qi(n,l)||!qi(r,o):!0}function _h(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&&Pr.enqueueReplaceState(e,e.state,null)}function ba(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Vh(t){ts(t)}function jh(t){console.error(t)}function Nh(t){ts(t)}function Es(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Bh(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 Fr(t,e,n){return n=Nn(n),n.tag=3,n.payload={element:null},n.callback=function(){Es(t,e)},n}function Uh(t){return t=Nn(t),t.tag=3,t}function Lh(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(){Bh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Bh(e,n,l),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function O1(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Fa(e,n,r,!0),n=Ae.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Ns():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===cs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),xo(t,l,r)),!1;case 22:return n.flags|=65536,l===cs?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)),xo(t,l,r)),!1}throw Error(u(435,n.tag))}return xo(t,l,r),Ns(),!1}if(vt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==pr&&(t=Error(u(422),{cause:l}),ki(je(t,n)))):(l!==pr&&(e=Error(u(423),{cause:l}),ki(je(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=je(l,n),r=Fr(t.stateNode,l,r),Cr(t,r),Yt!==4&&(Yt=2)),!1;var o=Error(u(520),{cause:l});if(o=je(o,n),ol===null?ol=[o]:ol.push(o),Yt!==4&&(Yt=2),e===null)return!0;l=je(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Fr(n.stateNode,l,t),Cr(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"&&(Gn===null||!Gn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Uh(r),Lh(r,t,n,l),Cr(n,r),!1}n=n.return}while(n!==null);return!1}var Wr=Error(u(461)),Qt=!1;function ae(t,e,n,l){e.child=t===null?Gd(e,null,n,l):va(e,t.child,n,l)}function Hh(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 ma(e),l=_r(t,e,n,h,o,r),S=Vr(),t!==null&&!Qt?(jr(t,e,r),pn(t,e,r)):(vt&&S&&hr(e),e.flags|=1,ae(t,e,l,r),e.child)}function Yh(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!cr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,qh(t,e,o,l,r)):(t=is(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!lo(t,r)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:qi,n(h,l)&&t.ref===e.ref)return pn(t,e,r)}return e.flags|=1,t=on(o,l),t.ref=e.ref,t.return=e,e.child=t}function qh(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(qi(o,l)&&t.ref===e.ref)if(Qt=!1,e.pendingProps=l=o,lo(t,r))(t.flags&131072)!==0&&(Qt=!0);else return e.lanes=t.lanes,pn(t,e,r)}return $r(t,e,n,l,r)}function Gh(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 Xh(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&rs(e,o!==null?o.cachePool:null),o!==null?Zd(e,o):Rr(),Qd(e);else return l=e.lanes=536870912,Xh(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(rs(e,o.cachePool),Zd(e,o),Ln(),e.memoizedState=null):(t!==null&&rs(e,null),Rr(),Ln());return ae(t,e,r,n),e.child}function nl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Xh(t,e,n,l,r){var o=xr();return o=o===null?null:{parent:kt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&rs(e,null),Rr(),Qd(e),t!==null&&Fa(t,e,l,!0),e.childLanes=r,null}function As(t,e){return e=Cs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function kh(t,e,n){return va(e,t.child,null,n),t=As(e,e.pendingProps),t.flags|=2,Me(e),e.memoizedState=null,t}function _1(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=As(e,l),e.lanes=536870912,nl(null,t);if(zr(e),(t=jt)?(t=np(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Dd(t),n.return=e,e.child=n,ee=e,jt=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return As(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(zr(e),r)if(e.flags&256)e.flags&=-257,e=kh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Qt||Fa(t,e,n,!1),r=(n&t.childLanes)!==0,Qt||r){if(l=Ot,l!==null&&(h=jf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,ca(t,h),Se(l,t,h),Wr;Ns(),e=kh(t,e,n)}else t=o.treeContext,jt=He(h.nextSibling),ee=e,vt=!0,On=null,Ue=!1,t!==null&&zd(e,t),e=As(e,l),e.flags|=4096;return e}return t=on(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ms(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 $r(t,e,n,l,r){return ma(e),n=_r(t,e,n,l,void 0,r),l=Vr(),t!==null&&!Qt?(jr(t,e,r),pn(t,e,r)):(vt&&l&&hr(e),e.flags|=1,ae(t,e,n,r),e.child)}function Zh(t,e,n,l,r,o){return ma(e),e.updateQueue=null,n=Jd(e,l,n,r),Kd(t),l=Vr(),t!==null&&!Qt?(jr(t,e,o),pn(t,e,o)):(vt&&l&&hr(e),e.flags|=1,ae(t,e,n,o),e.child)}function Qh(t,e,n,l,r){if(ma(e),e.stateNode===null){var o=Qa,h=n.contextType;typeof h=="object"&&h!==null&&(o=ne(h)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Pr,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Ar(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?ne(h):Qa,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Jr(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&&Pr.enqueueReplaceState(o,o.state,null),Wi(e,l,o,r),Fi(),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=ba(n,S);o.props=T;var O=o.context,L=n.contextType;h=Qa,typeof L=="object"&&L!==null&&(h=ne(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)&&_h(e,o,l,h),jn=!1;var V=e.memoizedState;o.state=V,Wi(e,l,o,r),Fi(),O=e.memoizedState,S||V!==O||jn?(typeof G=="function"&&(Jr(e,n,G,l),O=e.memoizedState),(T=jn||Oh(e,n,T,l,V,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,Mr(t,e),h=e.memoizedProps,L=ba(n,h),o.props=L,G=e.pendingProps,V=o.context,O=n.contextType,T=Qa,typeof O=="object"&&O!==null&&(T=ne(O)),S=n.getDerivedStateFromProps,(O=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||V!==T)&&_h(e,o,l,T),jn=!1,V=e.memoizedState,o.state=V,Wi(e,l,o,r),Fi();var N=e.memoizedState;h!==G||V!==N||jn||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof S=="function"&&(Jr(e,n,S,l),N=e.memoizedState),(L=jn||Oh(e,n,L,l,V,N,T)||t!==null&&t.dependencies!==null&&ss(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&&V===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&V===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&&V===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Ms(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,r),e.child=va(e,null,n,r)):ae(t,e,n,r),e.memoizedState=o.state,t=e.child):t=pn(t,e,r),t}function Kh(t,e,n,l){return da(),e.flags|=256,ae(t,e,n,l),e.child}var Ir={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function to(t){return{baseLanes:t,cachePool:Bd()}}function eo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=De),t}function Jh(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?Un(e):Ln(),(t=jt)?(t=np(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Dd(t),n.return=e,e.child=n,ee=e,jt=null)):t=null,t===null)throw _n(e);return Lo(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,r?(Ln(),r=e.mode,S=Cs({mode:"hidden",children:S},r),l=fa(l,r,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=to(n),l.childLanes=eo(t,h,n),e.memoizedState=Ir,nl(null,l)):(Un(e),no(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(Un(e),e.flags&=-257,e=ao(t,e,n)):e.memoizedState!==null?(Ln(),e.child=t.child,e.flags|=128,e=null):(Ln(),S=l.fallback,r=e.mode,l=Cs({mode:"visible",children:l.children},r),S=fa(S,r,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=to(n),l.childLanes=eo(t,h,n),e.memoizedState=Ir,e=nl(null,l));else if(Un(e),Lo(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var O=h.dgst;h=O,l=Error(u(419)),l.stack="",l.digest=h,ki({value:l,source:null,stack:null}),e=ao(t,e,n)}else if(Qt||Fa(t,e,n,!1),h=(n&t.childLanes)!==0,Qt||h){if(h=Ot,h!==null&&(l=jf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ca(t,l),Se(h,t,l),Wr;Uo(S)||Ns(),e=ao(t,e,n)}else Uo(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,jt=He(S.nextSibling),ee=e,vt=!0,On=null,Ue=!1,t!==null&&zd(e,t),e=no(e,l.children),e.flags|=4096);return e}return r?(Ln(),S=l.fallback,r=e.mode,T=t.child,O=T.sibling,l=on(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?S=on(O,S):(S=fa(S,r,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,nl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=to(n):(r=S.cachePool,r!==null?(T=kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Bd(),S={baseLanes:S.baseLanes|n,cachePool:r}),l.memoizedState=S,l.childLanes=eo(t,h,n),e.memoizedState=Ir,nl(t.child,l)):(Un(e),n=t.child,t=n.sibling,n=on(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 no(t,e){return e=Cs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Cs(t,e){return t=Ee(22,t,null,e),t.lanes=0,t}function ao(t,e,n){return va(e,t.child,null,n),t=no(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ph(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),vr(t.return,e,n)}function io(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 Fh(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),ae(t,e,l,n),l=vt?Xi:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ph(t,n,e);else if(t.tag===19)Ph(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&&ms(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),io(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&&ms(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}io(e,!0,n,null,o,l);break;case"together":io(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function pn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Fa(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=on(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=on(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function lo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function V1(t,e,n){switch(e.tag){case 3:Lt(e,e.stateNode.containerInfo),Vn(e,kt,t.memoizedState.cache),da();break;case 27:case 5:ia(e);break;case 4:Lt(e,e.stateNode.containerInfo);break;case 10:Vn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zr(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Un(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Jh(t,e,n):(Un(e),t=pn(t,e,n),t!==null?t.sibling:null);Un(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Fa(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return Fh(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,Gh(t,e,n,e.pendingProps);case 24:Vn(e,kt,t.memoizedState.cache)}return pn(t,e,n)}function Wh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Qt=!0;else{if(!lo(t,n)&&(e.flags&128)===0)return Qt=!1,V1(t,e,n);Qt=(t.flags&131072)!==0}else Qt=!1,vt&&(e.flags&1048576)!==0&&wd(e,Xi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ya(e.elementType),e.type=t,typeof t=="function")cr(t)?(l=ba(t,l),e.tag=1,e=Qh(null,e,t,l,n)):(e.tag=0,e=$r(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===X){e.tag=11,e=Hh(null,e,t,l,n);break t}else if(r===k){e.tag=14,e=Yh(null,e,t,l,n);break t}}throw e=Et(t)||t,Error(u(306,e,""))}}return e;case 0:return $r(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=ba(l,e.pendingProps),Qh(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,Mr(t,e),Wi(e,l,null,n);var h=e.memoizedState;if(l=h.cache,Vn(e,kt,l),l!==o.cache&&Sr(e,[kt],n,!0),Fi(),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=Kh(t,e,l,n);break t}else if(l!==r){r=je(Error(u(424)),e),ki(r),e=Kh(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(jt=He(t.firstChild),ee=e,vt=!0,On=null,Ue=!0,n=Gd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(da(),l===r){e=pn(t,e,n);break t}ae(t,e,l,n)}e=e.child}return e;case 26:return Ms(t,e),t===null?(n=rp(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=Gs(ht.current).createElement(n),l[te]=e,l[he]=t,ie(l,n,t),Wt(l),e.stateNode=l):e.memoizedState=rp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ia(e),t===null&&vt&&(l=e.stateNode=lp(e.type,e.pendingProps,ht.current),ee=e,Ue=!0,r=jt,Qn(e.type)?(Ho=r,jt=He(l.firstChild)):jt=r),ae(t,e,e.pendingProps.children,n),Ms(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((r=l=jt)&&(l=oS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ee=e,jt=He(l.firstChild),Ue=!1,r=!0):r=!1),r||_n(e)),ia(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,jo(r,o)?l=null:h!==null&&jo(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=_r(t,e,A1,null,null,n),gl._currentValue=r),Ms(t,e),ae(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=jt)&&(n=cS(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,ee=e,jt=null,t=!0):t=!1),t||_n(e)),null;case 13:return Jh(t,e,n);case 4:return Lt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):ae(t,e,l,n),e.child;case 11:return Hh(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Vn(e,e.type,l.value),ae(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ma(e),r=ne(r),l=l(r),e.flags|=1,ae(t,e,l,n),e.child;case 14:return Yh(t,e,e.type,e.pendingProps,n);case 15:return qh(t,e,e.type,e.pendingProps,n);case 19:return Fh(t,e,n);case 31:return _1(t,e,n);case 22:return Gh(t,e,n,e.pendingProps);case 24:return ma(e),l=ne(kt),t===null?(r=xr(),r===null&&(r=Ot,o=br(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Ar(e),Vn(e,kt,r)):((t.lanes&n)!==0&&(Mr(t,e),Wi(e,null,null,n),Fi()),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),Vn(e,kt,l)):(l=o.cache,Vn(e,kt,l),l!==r.cache&&Sr(e,[kt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function yn(t){t.flags|=4}function so(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(Am())t.flags|=8192;else throw ga=cs,Er}else t.flags&=-16777217}function $h(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!hp(e))if(Am())t.flags|=8192;else throw ga=cs,Er}function Ds(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Of():536870912,t.lanes|=e,ri|=e)}function al(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(mr(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),dn(kt),Vt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Pa(e)?yn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,yr())),Nt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(yn(e),o!==null?(Nt(e),$h(e,o)):(Nt(e),so(e,r,null,l,n))):o?o!==t.memoizedState?(yn(e),Nt(e),$h(e,o)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&yn(e),Nt(e),so(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&&yn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}t=$.current,Pa(e)?Od(e):(t=lp(r,l,n),e.stateNode=t,yn(e))}return Nt(e),null;case 5:if(Mn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&yn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}if(o=$.current,Pa(e))Od(e);else{var h=Gs(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[te]=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(ie(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&&yn(e)}}return Nt(e),so(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&yn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ht.current,Pa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ee,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[te]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Jm(t.nodeValue,n)),t||_n(e,!0)}else t=Gs(t).createTextNode(l),t[te]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Pa(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[te]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=yr(),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=Pa(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[te]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),r=!1}else r=yr(),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),Ds(e,e.updateQueue),Nt(e),null);case 4:return Vt(),t===null&&wo(e.stateNode.containerInfo),Nt(e),null;case 10:return dn(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)al(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=ms(t),o!==null){for(e.flags|=128,al(l,!1),t=o.updateQueue,e.updateQueue=t,Ds(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Cd(n,t),n=n.sibling;return F(Gt,Gt.current&1|2),vt&&cn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&oe()>_s&&(e.flags|=128,r=!0,al(l,!1),e.lanes=4194304)}else{if(!r)if(t=ms(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Ds(e,t),al(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!vt)return Nt(e),null}else 2*oe()-l.renderingStartTime>_s&&n!==536870912&&(e.flags|=128,r=!0,al(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=oe(),t.sibling=null,n=Gt.current,F(Gt,r?n&1|2:n&1),vt&&cn(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return Me(e),wr(),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&&Ds(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(pa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),dn(kt),Nt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function N1(t,e){switch(mr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return dn(kt),Vt(),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));da()}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));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Gt),null;case 4:return Vt(),null;case 10:return dn(e.type),null;case 22:case 23:return Me(e),wr(),t!==null&&H(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return dn(kt),null;case 25:return null;default:return null}}function Ih(t,e){switch(mr(e),e.tag){case 3:dn(kt),Vt();break;case 26:case 27:case 5:Mn(e);break;case 4:Vt();break;case 31:e.memoizedState!==null&&Me(e);break;case 13:Me(e);break;case 19:H(Gt);break;case 10:dn(e.type);break;case 22:case 23:Me(e),wr(),t!==null&&H(pa);break;case 24:dn(kt)}}function il(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 Hn(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 tm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{kd(e,n)}catch(l){Mt(t,t.return,l)}}}function em(t,e,n){n.props=ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function ll(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 nm(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 uo(t,e,n){try{var l=t.stateNode;aS(l,t.type,n,e),l[he]=e}catch(r){Mt(t,t.return,r)}}function am(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qn(t.type)||t.tag===4}function ro(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||am(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&&Qn(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 oo(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=un));else if(l!==4&&(l===27&&Qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(oo(t,e,n),t=t.sibling;t!==null;)oo(t,e,n),t=t.sibling}function Rs(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&&Qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Rs(t,e,n),t=t.sibling;t!==null;)Rs(t,e,n),t=t.sibling}function im(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ie(e,l,n),e[te]=t,e[he]=n}catch(o){Mt(t,t.return,o)}}var gn=!1,Kt=!1,co=!1,lm=typeof WeakSet=="function"?WeakSet:Set,$t=null;function B1(t,e){if(t=t.containerInfo,_o=Ps,t=gd(t),ar(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,V=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;)V=G,G=N;for(;;){if(G===t)break e;if(V===n&&++O===r&&(S=h),V===o&&++L===l&&(T=h),(N=G.nextSibling)!==null)break;G=V,V=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},Ps=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,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=ba(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)Bo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Bo(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,$t=t;break}$t=e.return}}function sm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(t,n),l&4&&il(5,n);break;case 1:if(Sn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Mt(n,n.return,h)}else{var r=ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Mt(n,n.return,h)}}l&64&&tm(n),l&512&&ll(n,n.return);break;case 3:if(Sn(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{kd(t,e)}catch(h){Mt(n,n.return,h)}}break;case 27:e===null&&l&4&&im(n);case 26:case 5:Sn(t,n),e===null&&l&4&&nm(n),l&512&&ll(n,n.return);break;case 12:Sn(t,n);break;case 31:Sn(t,n),l&4&&om(t,n);break;case 13:Sn(t,n),l&4&&cm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Z1.bind(null,n),fS(t,n))));break;case 22:if(l=n.memoizedState!==null||gn,!l){e=e!==null&&e.memoizedState!==null||Kt,r=gn;var o=Kt;gn=l,(Kt=e)&&!o?bn(t,n,(n.subtreeFlags&8772)!==0):Sn(t,n),gn=r,Kt=o}break;case 30:break;default:Sn(t,n)}}function um(t){var e=t.alternate;e!==null&&(t.alternate=null,um(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Yu(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 vn(t,e,n){for(n=n.child;n!==null;)rm(t,e,n),n=n.sibling}function rm(t,e,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(wi,n)}catch{}switch(n.tag){case 26:Kt||$e(n,e),vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||$e(n,e);var l=Ut,r=pe;Qn(n.type)&&(Ut=n.stateNode,pe=!1),vn(t,e,n),ml(n.stateNode),Ut=l,pe=r;break;case 5:Kt||$e(n,e);case 6:if(l=Ut,r=pe,Ut=null,vn(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,tp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),yi(t)):tp(Ut,n.stateNode));break;case 4:l=Ut,r=pe,Ut=n.stateNode.containerInfo,pe=!0,vn(t,e,n),Ut=l,pe=r;break;case 0:case 11:case 14:case 15:Hn(2,n,e),Kt||Hn(4,n,e),vn(t,e,n);break;case 1:Kt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&em(n,e,l)),vn(t,e,n);break;case 21:vn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,vn(t,e,n),Kt=l;break;default:vn(t,e,n)}}function om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{yi(t)}catch(n){Mt(e,e.return,n)}}}function cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{yi(t)}catch(n){Mt(e,e.return,n)}}function U1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new lm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new lm),e;default:throw Error(u(435,t.tag))}}function ws(t,e){var n=U1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=Q1.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(Qn(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));rm(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;)fm(e,t),e=e.sibling}var ke=null;function fm(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&&(Hn(3,t,t.return),il(3,t),Hn(5,t,t.return));break;case 1:ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),l&64&&gn&&(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&&(Kt||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[_i]||o[te]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),ie(o,l,n),o[te]=t,Wt(o),l=o;break t;case"link":var h=fp("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),ie(o,l,n),r.head.appendChild(o);break;case"meta":if(h=fp("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),ie(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[te]=t,Wt(o),l=o}t.stateNode=l}else dp(r,t.type,t.stateNode);else t.stateNode=cp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?dp(r,t.type,t.stateNode):cp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&uo(t,t.memoizedProps,n.memoizedProps)}break;case 27:ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),n!==null&&l&4&&uo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),t.flags&32){r=t.stateNode;try{Ha(r,"")}catch(tt){Mt(t,t.return,tt)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,uo(t,r,n!==null?n.memoizedProps:r)),l&1024&&(co=!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(Zs=null,r=ke,ke=Xs(e.containerInfo),ye(e,t),ke=r,ge(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{yi(e.containerInfo)}catch(tt){Mt(t,t.return,tt)}co&&(co=!1,dm(t));break;case 4:l=ke,ke=Xs(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,ws(t,l)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Os=oe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ws(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=gn,L=Kt;if(gn=O||r,Kt=L||T,ye(e,t),Kt=L,gn=O,ge(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||gn||Kt||Ta(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,V=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=V==null||typeof V=="boolean"?"":(""+V).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?ep(N,!0):ep(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,ws(t,n))));break;case 19:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ws(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(am(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=ro(t);Rs(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ha(h,""),n.flags&=-33);var S=ro(t);Rs(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,O=ro(t);oo(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 dm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;dm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Sn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)sm(t,e.alternate,e),e=e.sibling}function Ta(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Hn(4,e,e.return),Ta(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&em(e,e.return,n),Ta(e);break;case 27:ml(e.stateNode);case 26:case 5:$e(e,e.return),Ta(e);break;case 22:e.memoizedState===null&&Ta(e);break;case 30:Ta(e);break;default:Ta(e)}t=t.sibling}}function bn(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:bn(r,o,n),il(4,o);break;case 1:if(bn(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++)Xd(T[r],S)}catch(O){Mt(l,l.return,O)}}n&&h&64&&tm(o),ll(o,o.return);break;case 27:im(o);case 26:case 5:bn(r,o,n),n&&l===null&&h&4&&nm(o),ll(o,o.return);break;case 12:bn(r,o,n);break;case 31:bn(r,o,n),n&&h&4&&om(r,o);break;case 13:bn(r,o,n),n&&h&4&&cm(r,o);break;case 22:o.memoizedState===null&&bn(r,o,n),ll(o,o.return);break;case 30:break;default:bn(r,o,n)}e=e.sibling}}function fo(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&&Zi(n))}function ho(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Zi(t))}function Ze(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hm(t,e,n,l),e=e.sibling}function hm(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,n,l),r&2048&&il(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&&Zi(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):sl(t,e):o._visibility&2?Ze(t,e,n,l):(o._visibility|=2,li(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&fo(h,e);break;case 24:Ze(t,e,n,l),r&2048&&ho(e.alternate,e);break;default:Ze(t,e,n,l)}}function li(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:li(o,h,S,T,r),il(8,h);break;case 23:break;case 22:var L=h.stateNode;h.memoizedState!==null?L._visibility&2?li(o,h,S,T,r):sl(o,h):(L._visibility|=2,li(o,h,S,T,r)),r&&O&2048&&fo(h.alternate,h);break;case 24:li(o,h,S,T,r),r&&O&2048&&ho(h.alternate,h);break;default:li(o,h,S,T,r)}e=e.sibling}}function sl(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:sl(n,l),r&2048&&fo(l.alternate,l);break;case 24:sl(n,l),r&2048&&ho(l.alternate,l);break;default:sl(n,l)}e=e.sibling}}var ul=8192;function si(t,e,n){if(t.subtreeFlags&ul)for(t=t.child;t!==null;)mm(t,e,n),t=t.sibling}function mm(t,e,n){switch(t.tag){case 26:si(t,e,n),t.flags&ul&&t.memoizedState!==null&&ES(n,ke,t.memoizedState,t.memoizedProps);break;case 5:si(t,e,n);break;case 3:case 4:var l=ke;ke=Xs(t.stateNode.containerInfo),si(t,e,n),ke=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ul,ul=16777216,si(t,e,n),ul=l):si(t,e,n));break;default:si(t,e,n)}}function pm(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 rl(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];$t=l,gm(l,t)}pm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ym(t),t=t.sibling}function ym(t){switch(t.tag){case 0:case 11:case 15:rl(t),t.flags&2048&&Hn(9,t,t.return);break;case 3:rl(t);break;case 12:rl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,zs(t)):rl(t);break;default:rl(t)}}function zs(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];$t=l,gm(l,t)}pm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Hn(8,e,e.return),zs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,zs(e));break;default:zs(e)}t=t.sibling}}function gm(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:Hn(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:Zi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,$t=l;else t:for(n=t;$t!==null;){l=$t;var r=l.sibling,o=l.return;if(um(l),l===n){$t=null;break t}if(r!==null){r.return=o,$t=r;break t}$t=o}}}var L1={getCacheForType:function(t){var e=ne(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ne(kt).controller.signal}},H1=typeof WeakMap=="function"?WeakMap:Map,xt=0,Ot=null,mt=null,yt=0,At=0,Ce=null,Yn=!1,ui=!1,mo=!1,Tn=0,Yt=0,qn=0,xa=0,po=0,De=0,ri=0,ol=null,ve=null,yo=!1,Os=0,vm=0,_s=1/0,Vs=null,Gn=null,Pt=0,Xn=null,oi=null,xn=0,go=0,vo=null,Sm=null,cl=0,So=null;function Re(){return(xt&2)!==0&&yt!==0?yt&-yt:j.T!==null?Mo():Nf()}function bm(){if(De===0)if((yt&536870912)===0||vt){var t=ql;ql<<=1,(ql&3932160)===0&&(ql=262144),De=t}else De=536870912;return t=Ae.current,t!==null&&(t.flags|=32),De}function Se(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ci(t,0),kn(t,yt,De,!1)),Oi(t,n),((xt&2)===0||t!==Ot)&&(t===Ot&&((xt&2)===0&&(xa|=n),Yt===4&&kn(t,yt,De,!1)),Ie(t))}function Tm(t,e,n){if((xt&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||zi(t,e),r=l?G1(t,e):To(t,e,!0),o=l;do{if(r===0){ui&&!l&&kn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!Y1(n)){r=To(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=ol;var T=S.current.memoizedState.isDehydrated;if(T&&(ci(S,h).flags|=256),h=To(S,h,!1),h!==2){if(mo&&!T){S.errorRecoveryDisabledLanes|=o,xa|=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){ci(t,0),kn(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:kn(l,e,De,!Yn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=Os+300-oe(),10<r)){if(kn(l,e,De,!Yn),Xl(l,0,!0)!==0)break t;xn=e,l.timeoutHandle=$m(xm.bind(null,l,n,ve,Vs,yo,e,De,xa,ri,Yn,o,"Throttled",-0,0),r);break t}xm(l,n,ve,Vs,yo,e,De,xa,ri,Yn,o,null,-0,0)}}break}while(!0);Ie(t)}function xm(t,e,n,l,r,o,h,S,T,O,L,G,V,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:un},mm(e,o,G);var tt=(o&62914560)===o?Os-oe():(o&4194048)===o?vm-oe():0;if(tt=AS(G,tt),tt!==null){xn=o,t.cancelPendingCommit=tt(zm.bind(null,t,e,o,n,l,r,h,S,T,L,G,null,V,N)),kn(t,o,h,!O);return}}zm(t,e,o,n,l,r,h,S,T)}function Y1(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 kn(t,e,n,l){e&=~po,e&=~xa,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&&_f(t,n,e)}function js(){return(xt&6)===0?(fl(0),!1):!0}function bo(){if(mt!==null){if(At===0)var t=mt.return;else t=mt,fn=ha=null,Nr(t),ti=null,Ki=0,t=mt;for(;t!==null;)Ih(t.alternate,t),t=t.return;mt=null}}function ci(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,sS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),xn=0,bo(),Ot=t,mt=n=on(t.current,null),yt=e,At=0,Ce=null,Yn=!1,ui=zi(t,e),mo=!1,ri=De=po=xa=qn=Yt=0,ve=ol=null,yo=!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 Tn=e,es(),n}function Em(t,e){ct=null,j.H=el,e===Ia||e===os?(e=Hd(),At=3):e===Er?(e=Hd(),At=4):At=e===Wr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,mt===null&&(Yt=1,Es(t,je(e,t.current)))}function Am(){var t=Ae.current;return t===null?!0:(yt&4194048)===yt?Le===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Le:!1}function Mm(){var t=j.H;return j.H=el,t===null?el:t}function Cm(){var t=j.A;return j.A=L1,t}function Ns(){Yt=4,Yn||(yt&4194048)!==yt&&Ae.current!==null||(ui=!0),(qn&134217727)===0&&(xa&134217727)===0||Ot===null||kn(Ot,yt,De,!1)}function To(t,e,n){var l=xt;xt|=2;var r=Mm(),o=Cm();(Ot!==t||yt!==e)&&(Vs=null,ci(t,e)),e=!1;var h=Yt;t:do try{if(At!==0&&mt!==null){var S=mt,T=Ce;switch(At){case 8:bo(),h=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var O=At;if(At=0,Ce=null,fi(t,S,T,O),n&&ui){h=0;break t}break;default:O=At,At=0,Ce=null,fi(t,S,T,O)}}q1(),h=Yt;break}catch(L){Em(t,L)}while(!0);return e&&t.shellSuspendCounter++,fn=ha=null,xt=l,j.H=r,j.A=o,mt===null&&(Ot=null,yt=0,es()),h}function q1(){for(;mt!==null;)Dm(mt)}function G1(t,e){var n=xt;xt|=2;var l=Mm(),r=Cm();Ot!==t||yt!==e?(Vs=null,_s=oe()+500,ci(t,e)):ui=zi(t,e);t:do try{if(At!==0&&mt!==null){e=mt;var o=Ce;e:switch(At){case 1:At=0,Ce=null,fi(t,e,o,1);break;case 2:case 9:if(Ud(o)){At=0,Ce=null,Rm(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),Ie(t)},o.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Ud(o)?(At=0,Ce=null,Rm(e)):(At=0,Ce=null,fi(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?hp(h):S.stateNode.complete){At=0,Ce=null;var T=S.sibling;if(T!==null)mt=T;else{var O=S.return;O!==null?(mt=O,Bs(O)):mt=null}break e}}At=0,Ce=null,fi(t,e,o,5);break;case 6:At=0,Ce=null,fi(t,e,o,6);break;case 8:bo(),Yt=6;break t;default:throw Error(u(462))}}X1();break}catch(L){Em(t,L)}while(!0);return fn=ha=null,j.H=l,j.A=r,xt=n,mt!==null?0:(Ot=null,yt=0,es(),Yt)}function X1(){for(;mt!==null&&!ze();)Dm(mt)}function Dm(t){var e=Wh(t.alternate,t,Tn);t.memoizedProps=t.pendingProps,e===null?Bs(t):mt=e}function Rm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Zh(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Zh(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Nr(e);default:Ih(n,e),e=mt=Cd(e,Tn),e=Wh(n,e,Tn)}t.memoizedProps=t.pendingProps,e===null?Bs(t):mt=e}function fi(t,e,n,l){fn=ha=null,Nr(e),ti=null,Ki=0;var r=e.return;try{if(O1(t,r,e,n,yt)){Yt=1,Es(t,je(n,t.current)),mt=null;return}}catch(o){if(r!==null)throw mt=r,o;Yt=1,Es(t,je(n,t.current)),mt=null;return}e.flags&32768?(vt||l===1?t=!0:ui||(yt&536870912)!==0?t=!1:(Yn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ae.current,l!==null&&l.tag===13&&(l.flags|=16384))),wm(e,t)):Bs(e)}function Bs(t){var e=t;do{if((e.flags&32768)!==0){wm(e,Yn);return}t=e.return;var n=j1(e.alternate,e,Tn);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 wm(t,e){do{var n=N1(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 zm(t,e,n,l,r,o,h,S,T){t.cancelPendingCommit=null;do Us();while(Pt!==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|=rr,xv(t,n,o,h,S,T),t===Ot&&(mt=Ot=null,yt=0),oi=e,Xn=t,xn=n,go=o,vo=r,Sm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,K1(Hl,function(){return Nm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,r=Q.p,Q.p=2,h=xt,xt|=4;try{B1(t,e,n)}finally{xt=h,Q.p=r,j.T=l}}Pt=1,Om(),_m(),Vm()}}function Om(){if(Pt===1){Pt=0;var t=Xn,e=oi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var l=Q.p;Q.p=2;var r=xt;xt|=4;try{fm(e,t);var o=Vo,h=gd(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(h!==S&&S&&S.ownerDocument&&yd(S.ownerDocument.documentElement,S)){if(T!==null&&ar(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,V=G&&G.defaultView||window;if(V.getSelection){var N=V.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=pd(S,ut),M=pd(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}}Ps=!!_o,Vo=_o=null}finally{xt=r,Q.p=l,j.T=n}}t.current=e,Pt=2}}function _m(){if(Pt===2){Pt=0;var t=Xn,e=oi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var l=Q.p;Q.p=2;var r=xt;xt|=4;try{sm(t,e.alternate,e)}finally{xt=r,Q.p=l,j.T=n}}Pt=3}}function Vm(){if(Pt===4||Pt===3){Pt=0,Cn();var t=Xn,e=oi,n=xn,l=Sm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,oi=Xn=null,jm(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Gn=null),Lu(n),e=e.stateNode,be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(wi,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=j.T,r=Q.p,Q.p=2,j.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{j.T=e,Q.p=r}}(xn&3)!==0&&Us(),Ie(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===So?cl++:(cl=0,So=t):cl=0,fl(0)}}function jm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Zi(e)))}function Us(){return Om(),_m(),Vm(),Nm()}function Nm(){if(Pt!==5)return!1;var t=Xn,e=go;go=0;var n=Lu(xn),l=j.T,r=Q.p;try{Q.p=32>n?32:n,j.T=null,n=vo,vo=null;var o=Xn,h=xn;if(Pt=0,oi=Xn=null,xn=0,(xt&6)!==0)throw Error(u(331));var S=xt;if(xt|=4,ym(o.current),hm(o,o.current,h,n),xt=S,fl(0,!1),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(wi,o)}catch{}return!0}finally{Q.p=r,j.T=l,jm(t,e)}}function Bm(t,e,n){e=je(n,e),e=Fr(t.stateNode,e,2),t=Bn(t,e,2),t!==null&&(Oi(t,2),Ie(t))}function Mt(t,e,n){if(t.tag===3)Bm(t,t,n);else for(;e!==null;){if(e.tag===3){Bm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Gn===null||!Gn.has(l))){t=je(n,t),n=Uh(2),l=Bn(e,n,2),l!==null&&(Lh(n,l,e,t),Oi(l,2),Ie(l));break}}e=e.return}}function xo(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new H1;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)||(mo=!0,r.add(n),t=k1.bind(null,t,e,n),e.then(t,t))}function k1(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>oe()-Os?(xt&2)===0&&ci(t,0):po|=n,ri===yt&&(ri=0)),Ie(t)}function Um(t,e){e===0&&(e=Of()),t=ca(t,e),t!==null&&(Oi(t,e),Ie(t))}function Z1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Um(t,n)}function Q1(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),Um(t,n)}function K1(t,e){return Ri(t,e)}var Ls=null,di=null,Eo=!1,Hs=!1,Ao=!1,Zn=0;function Ie(t){t!==di&&t.next===null&&(di===null?Ls=di=t:di=di.next=t),Hs=!0,Eo||(Eo=!0,P1())}function fl(t,e){if(!Ao&&Hs){Ao=!0;do for(var n=!1,l=Ls;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,qm(l,o))}else o=yt,o=Xl(l,l===Ot?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||zi(l,o)||(n=!0,qm(l,o));l=l.next}while(n);Ao=!1}}function J1(){Lm()}function Lm(){Hs=Eo=!1;var t=0;Zn!==0&&lS()&&(t=Zn);for(var e=oe(),n=null,l=Ls;l!==null;){var r=l.next,o=Hm(l,e);o===0?(l.next=null,n===null?Ls=r:n.next=r,r===null&&(di=n)):(n=l,(t!==0||(o&3)!==0)&&(Hs=!0)),l=r}Pt!==0&&Pt!==5||fl(t),Zn!==0&&(Zn=0)}function Hm(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]=Tv(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=Ot,n=yt,n=Xl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ue(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||zi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&ue(l),Lu(n)){case 2:case 8:n=wf;break;case 32:n=Hl;break;case 268435456:n=zf;break;default:n=Hl}return l=Ym.bind(null,t),n=Ri(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&ue(l),t.callbackPriority=2,t.callbackNode=null,2}function Ym(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Us()&&t.callbackNode!==n)return null;var l=yt;return l=Xl(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Tm(t,l,e),Hm(t,oe()),t.callbackNode!=null&&t.callbackNode===n?Ym.bind(null,t):null)}function qm(t,e){if(Us())return null;Tm(t,e,!0)}function P1(){uS(function(){(xt&6)!==0?Ri(Rf,J1):Lm()})}function Mo(){if(Zn===0){var t=Wa;t===0&&(t=Yl,Yl<<=1,(Yl&261888)===0&&(Yl=256)),Zn=t}return Zn}function Gm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Kl(""+t)}function Xm(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 F1(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Gm((r[he]||null).action),h=l.submitter;h&&(e=(e=h[he]||null)?Gm(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var S=new Wl("action","action",null,l,r);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var T=h?Xm(r,h):new FormData(r);kr(n,{pending:!0,data:T,method:r.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=h?Xm(r,h):new FormData(r),kr(n,{pending:!0,data:T,method:r.method,action:o},o,T))},currentTarget:r}]})}}for(var Co=0;Co<ur.length;Co++){var Do=ur[Co],W1=Do.toLowerCase(),$1=Do[0].toUpperCase()+Do.slice(1);Xe(W1,"on"+$1)}Xe(bd,"onAnimationEnd"),Xe(Td,"onAnimationIteration"),Xe(xd,"onAnimationStart"),Xe("dblclick","onDoubleClick"),Xe("focusin","onFocus"),Xe("focusout","onBlur"),Xe(m1,"onTransitionRun"),Xe(p1,"onTransitionStart"),Xe(y1,"onTransitionCancel"),Xe(Ed,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dl="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(" "),I1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dl));function km(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){ts(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){ts(L)}r.currentTarget=null,o=T}}}}function pt(t,e){var n=e[Hu];n===void 0&&(n=e[Hu]=new Set);var l=t+"__bubble";n.has(l)||(Zm(e,t,2,!1),n.add(l))}function Ro(t,e,n){var l=0;e&&(l|=4),Zm(n,t,l,e)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function wo(t){if(!t[Ys]){t[Ys]=!0,Lf.forEach(function(n){n!=="selectionchange"&&(I1.has(n)||Ro(n,!1,t),Ro(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ys]||(e[Ys]=!0,Ro("selectionchange",!1,e))}}function Zm(t,e,n,l){switch(bp(e)){case 2:var r=DS;break;case 8:r=RS;break;default:r=ko}n=r.bind(null,e,n,t),r=void 0,!Ju||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 zo(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}Ff(function(){var O=o,L=Qu(n),G=[];t:{var V=Ad.get(t);if(V!==void 0){var N=Wl,tt=t;switch(t){case"keypress":if(Pl(n)===0)break t;case"keydown":case"keyup":N=Qv;break;case"focusin":tt="focus",N=$u;break;case"focusout":tt="blur",N=$u;break;case"beforeblur":case"afterblur":N=$u;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=If;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=Pv;break;case bd:case Td:case xd:N=Uv;break;case Ed:N=Wv;break;case"scroll":case"scrollend":N=_v;break;case"wheel":N=Iv;break;case"copy":case"cut":case"paste":N=Hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=ed;break;case"toggle":case"beforetoggle":N=e1}var ut=(e&4)!==0,wt=!ut&&(t==="scroll"||t==="scrollend"),R=ut?V!==null?V+"Capture":null:V;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=ji(M,R),q!=null&&ut.push(hl(M,q,z))),wt)break;M=M.return}0<ut.length&&(V=new N(V,tt,null,n,L),G.push({event:V,listeners:ut}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",V&&n!==Zu&&(tt=n.relatedTarget||n.fromElement)&&(ja(tt)||tt[Va]))break t;if((N||V)&&(V=L.window===L?L:(V=L.ownerDocument)?V.defaultView||V.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=If,q="onMouseLeave",R="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(ut=ed,q="onPointerLeave",R="onPointerEnter",M="pointer"),wt=N==null?V:Vi(N),z=tt==null?V:Vi(tt),V=new ut(q,M+"leave",N,n,L),V.target=wt,V.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=tS,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&&Qm(G,V,N,ut,!1),tt!==null&&wt!==null&&Qm(G,wt,tt,ut,!0)}}t:{if(V=O?Vi(O):window,N=V.nodeName&&V.nodeName.toLowerCase(),N==="select"||N==="input"&&V.type==="file")var bt=od;else if(ud(V))if(cd)bt=f1;else{bt=o1;var at=r1}else N=V.nodeName,!N||N.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?O&&ku(O.elementType)&&(bt=od):bt=c1;if(bt&&(bt=bt(t,O))){rd(G,bt,n,L);break t}at&&at(t,V,O),t==="focusout"&&O&&V.type==="number"&&O.memoizedProps.value!=null&&Xu(V,"number",V.value)}switch(at=O?Vi(O):window,t){case"focusin":(ud(at)||at.contentEditable==="true")&&(Xa=at,ir=O,Gi=null);break;case"focusout":Gi=ir=Xa=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,vd(G,n,L);break;case"selectionchange":if(h1)break;case"keydown":case"keyup":vd(G,n,L)}var dt;if(tr)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 Ga?ld(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(nd&&n.locale!=="ko"&&(Ga||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Ga&&(dt=Wf()):(wn=L,Pu="value"in wn?wn.value:wn.textContent,Ga=!0)),at=qs(O,gt),0<at.length&&(gt=new td(gt,t,null,n,L),G.push({event:gt,listeners:at}),dt?gt.data=dt:(dt=sd(n),dt!==null&&(gt.data=dt)))),(dt=a1?i1(t,n):l1(t,n))&&(gt=qs(O,"onBeforeInput"),0<gt.length&&(at=new td("onBeforeInput","beforeinput",null,n,L),G.push({event:at,listeners:gt}),at.data=dt)),F1(G,t,O,n,L)}km(G,e)})}function hl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function qs(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=ji(t,n),r!=null&&l.unshift(hl(t,r,o)),r=ji(t,e),r!=null&&l.push(hl(t,r,o))),t.tag===3)return l;t=t.return}return[]}function tS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Qm(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=ji(n,o),O!=null&&h.unshift(hl(n,O,T))):r||(O=ji(n,o),O!=null&&h.push(hl(n,O,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var eS=/\r\n?/g,nS=/\u0000|\uFFFD/g;function Km(t){return(typeof t=="string"?t:""+t).replace(eS,`
|
|
49
|
+
`).replace(nS,"")}function Jm(t,e){return e=Km(e),Km(t)===e}function Rt(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ha(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ha(t,""+l);break;case"className":Zl(t,"class",l);break;case"tabIndex":Zl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Zl(t,n,l);break;case"style":Jf(t,l,o);break;case"data":if(e!=="object"){Zl(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=Kl(""+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=Kl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=un);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=Kl(""+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),kl(t,"popover",l);break;case"xlinkActuate":sn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":kl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zv.get(n)||n,kl(t,n,l))}}function Oo(t,e,n,l,r,o){switch(n){case"style":Jf(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"?Ha(t,l):(typeof l=="number"||typeof l=="bigint")&&Ha(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=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.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,""):kl(t,n,l)}}}function ie(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)}}kf(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?La(t,!!l,e,!1):n!=null&&La(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)}Qf(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<dl.length;l++)pt(dl[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(ku(e)){for(L in n)n.hasOwnProperty(L)&&(l=n[L],l!==void 0&&Oo(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 aS(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 V in l){var N=l[V];if(G=n[V],l.hasOwnProperty(V)&&(N!=null||G!=null))switch(V){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,V,N,l,G)}}Gu(t,h,S,T,O,L,o,r);return;case"select":N=h=S=V=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":V=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,V!=null?La(t,!!n,V,!1):!!l!=!!n&&(e!=null?La(t,!!n,e,!0):La(t,!!n,n?[]:"",!1));return;case"textarea":N=V=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":V=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)}Zf(t,V,N);return;case"option":for(var tt in n)if(V=n[tt],n.hasOwnProperty(tt)&&V!=null&&!l.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:Rt(t,e,tt,null,l,V)}for(T in l)if(V=l[T],N=n[T],l.hasOwnProperty(T)&&V!==N&&(V!=null||N!=null))switch(T){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Rt(t,e,T,V,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)V=n[ut],n.hasOwnProperty(ut)&&V!=null&&!l.hasOwnProperty(ut)&&Rt(t,e,ut,null,l,V);for(O in l)if(V=l[O],N=n[O],l.hasOwnProperty(O)&&V!==N&&(V!=null||N!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,e));break;default:Rt(t,e,O,V,l,N)}return;default:if(ku(e)){for(var wt in n)V=n[wt],n.hasOwnProperty(wt)&&V!==void 0&&!l.hasOwnProperty(wt)&&Oo(t,e,wt,void 0,l,V);for(L in l)V=l[L],N=n[L],!l.hasOwnProperty(L)||V===N||V===void 0&&N===void 0||Oo(t,e,L,V,l,N);return}}for(var R in n)V=n[R],n.hasOwnProperty(R)&&V!=null&&!l.hasOwnProperty(R)&&Rt(t,e,R,null,l,V);for(G in l)V=l[G],N=n[G],!l.hasOwnProperty(G)||V===N||V==null&&N==null||Rt(t,e,G,V,l,N)}function Pm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iS(){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&&Pm(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&&Pm(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 _o=null,Vo=null;function Gs(t){return t.nodeType===9?t:t.ownerDocument}function Fm(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 Wm(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 jo(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 No=null;function lS(){var t=window.event;return t&&t.type==="popstate"?t===No?!1:(No=t,!0):(No=null,!1)}var $m=typeof setTimeout=="function"?setTimeout:void 0,sS=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,uS=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(t){return Im.resolve(null).then(t).catch(rS)}:$m;function rS(t){setTimeout(function(){throw t})}function Qn(t){return t==="head"}function tp(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),yi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ml(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ml(n);for(var o=n.firstChild;o;){var h=o.nextSibling,S=o.nodeName;o[_i]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&ml(t.ownerDocument.body);n=r}while(n);yi(e)}function ep(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 Bo(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":Bo(n),Yu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function oS(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[_i])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 cS(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 np(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 Uo(t){return t.data==="$?"||t.data==="$~"}function Lo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function fS(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 Ho=null;function ap(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 ip(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 lp(t,e,n){switch(e=Gs(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 ml(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Yu(t)}var Ye=new Map,sp=new Set;function Xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var En=Q.d;Q.d={f:dS,r:hS,D:mS,C:pS,L:yS,m:gS,X:SS,S:vS,M:bS};function dS(){var t=En.f(),e=js();return t||e}function hS(t){var e=Na(t);e!==null&&e.tag===5&&e.type==="form"?Eh(e):En.r(t)}var hi=typeof document>"u"?null:document;function up(t,e,n){var l=hi;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),sp.has(r)||(sp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ie(e,"link",t),Wt(e),l.head.appendChild(e)))}}function mS(t){En.D(t),up("dns-prefetch",t,null)}function pS(t,e){En.C(t,e),up("preconnect",t,e)}function yS(t,e,n){En.L(t,e,n);var l=hi;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=mi(t);break;case"script":o=pi(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(pl(o))||e==="script"&&l.querySelector(yl(o))||(e=l.createElement("link"),ie(e,"link",t),Wt(e),l.head.appendChild(e)))}}function gS(t,e){En.m(t,e);var n=hi;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=pi(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(yl(o)))return}l=n.createElement("link"),ie(l,"link",t),Wt(l),n.head.appendChild(l)}}}function vS(t,e,n){En.S(t,e,n);var l=hi;if(l&&t){var r=Ba(l).hoistableStyles,o=mi(t);e=e||"default";var h=r.get(o);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(pl(o)))S.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(o))&&Yo(t,n);var T=h=l.createElement("link");Wt(T),ie(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,ks(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},r.set(o,h)}}}function SS(t,e){En.X(t,e);var n=hi;if(n&&t){var l=Ba(n).hoistableScripts,r=pi(t),o=l.get(r);o||(o=n.querySelector(yl(r)),o||(t=g({src:t,async:!0},e),(e=Ye.get(r))&&qo(t,e),o=n.createElement("script"),Wt(o),ie(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function bS(t,e){En.M(t,e);var n=hi;if(n&&t){var l=Ba(n).hoistableScripts,r=pi(t),o=l.get(r);o||(o=n.querySelector(yl(r)),o||(t=g({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&qo(t,e),o=n.createElement("script"),Wt(o),ie(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function rp(t,e,n,l){var r=(r=ht.current)?Xs(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=mi(n.href),n=Ba(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=mi(n.href);var o=Ba(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(pl(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||TS(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=pi(n),n=Ba(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 mi(t){return'href="'+_e(t)+'"'}function pl(t){return'link[rel="stylesheet"]['+t+"]"}function op(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function TS(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}),ie(e,"link",n),Wt(e),t.head.appendChild(e))}function pi(t){return'[src="'+_e(t)+'"]'}function yl(t){return"script[async]"+t}function cp(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,Wt(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"),Wt(l),ie(l,"style",r),ks(l,n.precedence,t),e.instance=l;case"stylesheet":r=mi(n.href);var o=t.querySelector(pl(r));if(o)return e.state.loading|=4,e.instance=o,Wt(o),o;l=op(n),(r=Ye.get(r))&&Yo(l,r),o=(t.ownerDocument||t).createElement("link"),Wt(o);var h=o;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(o,"link",l),e.state.loading|=4,ks(o,n.precedence,t),e.instance=o;case"script":return o=pi(n.src),(r=t.querySelector(yl(o)))?(e.instance=r,Wt(r),r):(l=n,(r=Ye.get(o))&&(l=g({},n),qo(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),Wt(r),ie(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,ks(l,n.precedence,t));return e.instance}function ks(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,o=r,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 Yo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function qo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Zs=null;function fp(t,e,n){if(Zs===null){var l=new Map,r=Zs=new Map;r.set(n,l)}else r=Zs,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[_i]||o[te]||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 dp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function xS(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 hp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ES(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=mi(l.href),o=e.querySelector(pl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Qs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Wt(o);return}o=e.ownerDocument||e,l=op(l),(r=Ye.get(r))&&Yo(l,r),o=o.createElement("link"),Wt(o);var h=o;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(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=Qs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Go=0;function AS(t,e){return t.stylesheets&&t.count===0&&Js(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Go===0&&(Go=62500*iS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Go?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ks=null;function Js(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ks=new Map,e.forEach(MS,t),Ks=null,Qs.call(t))}function MS(t,e){if(!(e.state.loading&4)){var n=Ks.get(t);if(n)var l=n.get(null);else{n=new Map,Ks.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=Qs.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 gl={$$typeof:U,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function CS(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=Bu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.hiddenUpdates=Bu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function mp(t,e,n,l,r,o,h,S,T,O,L,G){return t=new CS(t,e,n,h,T,O,L,G,S),e=1,o===!0&&(e|=24),o=Ee(3,null,null,e),t.current=o,o.stateNode=t,e=br(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Ar(o),t}function pp(t){return t?(t=Qa,t):Qa}function yp(t,e,n,l,r,o){r=pp(r),l.context===null?l.context=r:l.pendingContext=r,l=Nn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Bn(t,l,e),n!==null&&(Se(n,t,e),Pi(n,t,e))}function gp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Xo(t,e){gp(t,e),(t=t.alternate)&&gp(t,e)}function vp(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&Se(e,t,67108864),Xo(t,67108864)}}function Sp(t){if(t.tag===13||t.tag===31){var e=Re();e=Uu(e);var n=ca(t,e);n!==null&&Se(n,t,e),Xo(t,e)}}var Ps=!0;function DS(t,e,n,l){var r=j.T;j.T=null;var o=Q.p;try{Q.p=2,ko(t,e,n,l)}finally{Q.p=o,j.T=r}}function RS(t,e,n,l){var r=j.T;j.T=null;var o=Q.p;try{Q.p=8,ko(t,e,n,l)}finally{Q.p=o,j.T=r}}function ko(t,e,n,l){if(Ps){var r=Zo(l);if(r===null)zo(t,e,l,Fs,n),Tp(t,l);else if(zS(r,t,e,n,l))l.stopPropagation();else if(Tp(t,l),e&4&&-1<wS.indexOf(t)){for(;r!==null;){var o=Na(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=la(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&&(_s=oe()+500,fl(0))}}break;case 31:case 13:S=ca(o,2),S!==null&&Se(S,o,2),js(),Xo(o,2)}if(o=Zo(l),o===null&&zo(t,e,l,Fs,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else zo(t,e,l,null,n)}}function Zo(t){return t=Qu(t),Qo(t)}var Fs=null;function Qo(t){if(Fs=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 Fs=t,null}function bp(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(mv()){case Rf:return 2;case wf:return 8;case Hl:case pv:return 32;case zf:return 268435456;default:return 32}default:return 32}}var Ko=!1,Kn=null,Jn=null,Pn=null,vl=new Map,Sl=new Map,Fn=[],wS="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 Tp(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":vl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(e.pointerId)}}function bl(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=Na(e),e!==null&&vp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function zS(t,e,n,l,r){switch(e){case"focusin":return Kn=bl(Kn,t,e,n,l,r),!0;case"dragenter":return Jn=bl(Jn,t,e,n,l,r),!0;case"mouseover":return Pn=bl(Pn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return vl.set(o,bl(vl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,Sl.set(o,bl(Sl.get(o)||null,t,e,n,l,r)),!0}return!1}function xp(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,Bf(t.priority,function(){Sp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Bf(t.priority,function(){Sp(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 Ws(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Zo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Zu=l,n.target.dispatchEvent(l),Zu=null}else return e=Na(n),e!==null&&vp(e),t.blockedOn=n,!1;e.shift()}return!0}function Ep(t,e,n){Ws(t)&&n.delete(e)}function OS(){Ko=!1,Kn!==null&&Ws(Kn)&&(Kn=null),Jn!==null&&Ws(Jn)&&(Jn=null),Pn!==null&&Ws(Pn)&&(Pn=null),vl.forEach(Ep),Sl.forEach(Ep)}function $s(t,e){t.blockedOn===e&&(t.blockedOn=null,Ko||(Ko=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,OS)))}var Is=null;function Ap(t){Is!==t&&(Is=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Is===t&&(Is=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(Qo(l||n)===null)continue;break}var o=Na(n);o!==null&&(t.splice(e,3),e-=3,kr(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function yi(t){function e(T){return $s(T,t)}Kn!==null&&$s(Kn,t),Jn!==null&&$s(Jn,t),Pn!==null&&$s(Pn,t),vl.forEach(e),Sl.forEach(e);for(var n=0;n<Fn.length;n++){var l=Fn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)xp(n),n.blockedOn===null&&Fn.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||Ap(n);else if(h){var S=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[he]||null)S=h.formAction;else if(Qo(r)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),Ap(n)}}}function Mp(){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 Jo(t){this._internalRoot=t}tu.prototype.render=Jo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=Re();yp(n,l,t,e,null,null)},tu.prototype.unmount=Jo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;yp(t.current,2,null,t,null,null),js(),e[Va]=null}};function tu(t){this._internalRoot=t}tu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Nf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Fn.length&&e!==0&&e<Fn[n].priority;n++);Fn.splice(n,0,t),n===0&&xp(t)}};var Cp=i.version;if(Cp!=="19.2.5")throw Error(u(527,Cp,"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 _S={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{wi=eu.inject(_S),be=eu}catch{}}return xl.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Vh,o=jh,h=Nh;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=mp(t,1,!1,null,null,n,l,null,r,o,h,Mp),t[Va]=e.current,wo(t),new Jo(e)},xl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Vh,h=jh,S=Nh,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=mp(t,1,!0,e,n??null,l,r,T,o,h,S,Mp),e.context=pp(null),n=e.current,l=Re(),l=Uu(l),r=Nn(l),r.callback=null,Bn(n,r,l),n=l,e.current.lanes=n,Oi(e,n),Ie(e),t[Va]=e.current,wo(t),new tu(e)},xl.version="19.2.5",xl}var Bp;function GS(){if(Bp)return Wo.exports;Bp=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(),Wo.exports=qS(),Wo.exports}var XS=GS();const kS={scale:1,x:0,y:0};function ec(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 ZS=3e3;function QS(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(ZS,c);return{stepStartTimesMs:s,totalDurationMs:d}}function xc(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const KS=3e3;function ig(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:KS}const It=450,lg=50,sg=1500,vu=200;function ug(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 rg(a){const i=ug(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 JS(a){const i=ug(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 PS="data-cursor-target",FS="data-scroll-target";function Ti(a){return`[${PS}="${a}"]`}function WS(a){return`[${FS}="${a}"]`}const og="scenar-embed",cg=1;function $S(a){return{source:og,v:cg,...a}}function IS(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===og&&i.v===cg}function Up(a){return typeof a=="number"&&Number.isFinite(a)}function tb(a){if(!IS(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return Up(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return Up(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const eb=C.createContext(null);function Jc(){return C.useContext(eb)}const nb={isVideoExport:!1,hideControls:!1,initialMuted:!0},ab=C.createContext(nb);function Pc(){return C.useContext(ab)}const Ec=new Map;let ib=0;function lb(a){const i=`sp-${ib++}`;return Ec.set(i,a),{id:i,unregister:()=>Ec.delete(i)}}function Lp(a){for(const[i,s]of Ec)i!==a&&s()}function Fc(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function nu(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,Fc(a)}function sb(a,i,s,u=1){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const c=()=>{a.currentTime=s,Fc(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?c():a.addEventListener("loadedmetadata",c,{once:!0})}function au(a){a.pause(),a.removeAttribute("src"),a.load()}function iu(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function ub({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=C.useState(u),[y,p]=C.useState(!1),v=C.useRef(null),g=C.useRef(!1),b=C.useCallback(Z=>{Z.then(()=>p(!1),()=>p(!0))},[]),x=C.useRef(f);x.current=f;const E=C.useRef(s);E.current=s;const w=C.useRef(d);w.current=d;const _=C.useRef(c);_.current=c;const B=(a==null?void 0:a.steps[i])??null,Y=(B==null?void 0:B.src)??null,U=C.useRef(!1),X=C.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 Et=(lt==null?void 0:lt.durationMs)??0;if(J>=Et){au(nt);return}sb(nt,Ct,J/1e3,_.current)},[a]);C.useEffect(()=>{!a||u||g.current||(iu(a),g.current=!0)},[a,u]),C.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]),C.useEffect(()=>{if(U.current){U.current=!1;return}const Z=v.current;if(!(!Z||!a)){if(x.current||!Y||!E.current){au(Z);return}b(nu(Z,Y,_.current))}},[i,Y,a,b]),C.useEffect(()=>{const Z=v.current;!Z||!a||x.current||(s?Y&&(Z.src?b(Fc(Z)):b(nu(Z,Y,_.current))):Z.pause())},[s,Y,a,b]);const K=C.useCallback(()=>{m(Z=>{const J=!Z,nt=v.current;return nt&&(J?(au(nt),p(!1)):(a&&!g.current&&(iu(a),g.current=!0),Y&&b(nu(nt,Y,_.current)))),J})},[Y,a,b]),I=C.useCallback(()=>{const Z=v.current;!Z||x.current||!Y||(a&&!g.current&&(iu(a),g.current=!0),b(nu(Z,Y,_.current)))},[Y,a,b]),k=C.useCallback(Z=>{const J=v.current;J&&(J.volume=Math.max(0,Math.min(Z,1)))},[]),P=C.useCallback(()=>{!a||g.current||(iu(a),g.current=!0)},[a]);return C.useEffect(()=>{const Z=v.current;Z&&(Z.defaultPlaybackRate=c,Z.playbackRate=c)},[c]),C.useEffect(()=>{const Z=v.current;return()=>{Z&&au(Z)}},[]),{muted:f,toggleMute:K,audioRef:v,seekToStep:X,audioBlocked:y,unlock:I,setVolume:k,prefetch:P}}const Wc=C.createContext({});function $c(a){const i=C.useRef(null);return i.current===null&&(i.current=a()),i.current}const rb=typeof window<"u",fg=rb?C.useLayoutEffect:C.useEffect,zu=C.createContext(null);function Ic(a,i){a.indexOf(i)===-1&&a.push(i)}function Su(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 tf=()=>{};const ea={},dg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function hg(a){return typeof a=="object"&&a!==null}const mg=a=>/^0[^.\s]+$/u.test(a);function pg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,ob=(a,i)=>s=>i(a(s)),Vl=(...a)=>a.reduce(ob),wl=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class ef{constructor(){this.subscriptions=[]}add(i){return Ic(this.subscriptions,i),()=>Su(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 yg(a,i){return i?a*(1e3/i):0}const gg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,cb=1e-7,fb=12;function db(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=gg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>cb&&++m<fb);return f}function jl(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>db(d,0,1,a,s);return d=>d===0||d===1?d:gg(c(d),i,u)}const vg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Sg=a=>i=>1-a(1-i),bg=jl(.33,1.53,.69,.99),nf=Sg(bg),Tg=vg(nf),xg=a=>a>=1?1:(a*=2)<1?.5*nf(a):.5*(2-Math.pow(2,-10*(a-1))),af=a=>1-Math.sin(Math.acos(a)),Eg=Sg(af),Ag=vg(af),hb=jl(.42,0,1,1),mb=jl(0,0,.58,1),Mg=jl(.42,0,.58,1),pb=a=>Array.isArray(a)&&typeof a[0]!="number",Cg=a=>Array.isArray(a)&&typeof a[0]=="number",yb={linear:Ge,easeIn:hb,easeInOut:Mg,easeOut:mb,circIn:af,circInOut:Ag,circOut:Eg,backIn:nf,backInOut:Tg,backOut:bg,anticipate:xg},gb=a=>typeof a=="string",Hp=a=>{if(Cg(a)){tf(a.length===4);const[i,s,u,c]=a;return jl(i,s,u,c)}else if(gb(a))return yb[a];return a},lu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function vb(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 E=b&&c?s:u;return g&&f.add(v),E.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 Sb=40;function Dg(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=lu.reduce((U,X)=>(U[X]=vb(d),U),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:g,preRender:b,render:x,postRender:E}=f,w=()=>{const U=ea.useManualTiming,X=U?c.timestamp:performance.now();s=!1,U||(c.delta=u?1e3/60:Math.max(Math.min(X-c.timestamp,Sb),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),E.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(w))},_=()=>{s=!0,u=!0,c.isProcessing||a(w)};return{schedule:lu.reduce((U,X)=>{const K=f[X];return U[X]=(I,k=!1,P=!1)=>(s||_(),K.schedule(I,k,P)),U},{}),cancel:U=>{for(let X=0;X<lu.length;X++)f[lu[X]].cancel(U)},state:c,steps:f}}const{schedule:_t,cancel:na,state:le,steps:nc}=Dg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let cu;function bb(){cu=void 0}const fe={now:()=>(cu===void 0&&fe.set(le.isProcessing||ea.useManualTiming?le.timestamp:performance.now()),cu),set:a=>{cu=a,queueMicrotask(bb)}},Rg=a=>i=>typeof i=="string"&&i.startsWith(a),wg=Rg("--"),Tb=Rg("var(--"),lf=a=>Tb(a)?xb.test(a.split("/*")[0].trim()):!1,xb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Yp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Mi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},zl={...Mi,transform:a=>an(0,1,a)},su={...Mi,default:1},Ml=a=>Math.round(a*1e5)/1e5,sf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Eb(a){return a==null}const Ab=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uf=(a,i)=>s=>!!(typeof s=="string"&&Ab.test(s)&&s.startsWith(a)||i&&!Eb(s)&&Object.prototype.hasOwnProperty.call(s,i)),zg=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(sf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},Mb=a=>an(0,255,a),ac={...Mi,transform:a=>Math.round(Mb(a))},Ma={test:uf("rgb","red"),parse:zg("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+ac.transform(a)+", "+ac.transform(i)+", "+ac.transform(s)+", "+Ml(zl.transform(u))+")"};function Cb(a){let i="",s="",u="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,u+=u,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Ac={test:uf("#"),parse:Cb,transform:Ma.transform},Nl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),$n=Nl("deg"),nn=Nl("%"),et=Nl("px"),Db=Nl("vh"),Rb=Nl("vw"),qp={...nn,parse:a=>nn.parse(a)/100,transform:a=>nn.transform(a*100)},vi={test:uf("hsl","hue"),parse:zg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+nn.transform(Ml(i))+", "+nn.transform(Ml(s))+", "+Ml(zl.transform(u))+")"},Jt={test:a=>Ma.test(a)||Ac.test(a)||vi.test(a),parse:a=>Ma.test(a)?Ma.parse(a):vi.test(a)?vi.parse(a):Ac.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ma.transform(a):vi.transform(a),getAnimatableNone:a=>{const i=Jt.parse(a);return i.alpha=0,Jt.transform(i)}},wb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(sf))==null?void 0:i.length)||0)+(((s=a.match(wb))==null?void 0:s.length)||0)>0}const Og="number",_g="color",Ob="var",_b="var(",Gp="${}",Vb=/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 xi(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(Vb,y=>(Jt.test(y)?(u.color.push(d),c.push(_g),s.push(Jt.parse(y))):y.startsWith(_b)?(u.var.push(d),c.push(Ob),s.push(y)):(u.number.push(d),c.push(Og),s.push(parseFloat(y))),++d,Gp)).split(Gp);return{values:s,split:m,indexes:u,types:c}}function jb(a){return xi(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===Og?c+=Ml(u[d]):f===_g?c+=Jt.transform(u[d]):c+=u[d]}return c}}function Nb(a){return Vg(xi(a))}const Bb=a=>typeof a=="number"?0:Jt.test(a)?Jt.getAnimatableNone(a):a,Ub=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:Bb(a);function Lb(a){const i=xi(a);return Vg(i)(i.values.map((u,c)=>Ub(u,i.split[c])))}const Je={test:zb,parse:jb,createTransformer:Nb,getAnimatableNone:Lb};function ic(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 Hb({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=ic(y,m,a+1/3),d=ic(y,m,a),f=ic(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function bu(a,i){return s=>s>0?i:a}const Bt=(a,i,s)=>a+(i-a)*s,lc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},Yb=[Ac,Ma,vi],qb=a=>Yb.find(i=>i.test(a));function Xp(a){const i=qb(a);if(!i)return!1;let s=i.parse(a);return i===vi&&(s=Hb(s)),s}const kp=(a,i)=>{const s=Xp(a),u=Xp(i);if(!s||!u)return bu(a,i);const c={...s};return d=>(c.red=lc(s.red,u.red,d),c.green=lc(s.green,u.green,d),c.blue=lc(s.blue,u.blue,d),c.alpha=Bt(s.alpha,u.alpha,d),Ma.transform(c))},Mc=new Set(["none","hidden"]);function Gb(a,i){return Mc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function Xb(a,i){return s=>Bt(a,i,s)}function rf(a){return typeof a=="number"?Xb:typeof a=="string"?lf(a)?bu:Jt.test(a)?kp:Qb:Array.isArray(a)?jg:typeof a=="object"?Jt.test(a)?kp:kb:bu}function jg(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>rf(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function kb(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=rf(a[c])(a[c],i[c]));return c=>{for(const d in u)s[d]=u[d](c);return s}}function Zb(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 Qb=(a,i)=>{const s=Je.createTransformer(i),u=xi(a),c=xi(i);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Mc.has(a)&&!c.values.length||Mc.has(i)&&!u.values.length?Gb(a,i):Vl(jg(Zb(u,c),c.values),s):bu(a,i)};function Ng(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Bt(a,i,s):rf(a)(a,i)}const Kb=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>_t.update(i,s),stop:()=>na(i),now:()=>le.isProcessing?le.timestamp:fe.now()}},Bg=(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)})`},Tu=2e4;function of(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Tu;)i+=s,u=a.next(i);return i>=Tu?1/0:i}function Jb(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(of(u),Tu);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 Cc(a,i){return a*Math.sqrt(1-i*i)}const Pb=12;function Fb(a,i,s){let u=s;for(let c=1;c<Pb;c++)u=u-a(u)/i(u);return u}const sc=.001;function Wb({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=Cc(p,f),E=Math.exp(-g);return sc-b/x*E},d=p=>{const g=p*f*a,b=g*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,E=Math.exp(-g),w=Cc(Math.pow(p,2),f);return(-c(p)+sc>0?-1:1)*((b-x)*E)/w}):(c=p=>{const v=Math.exp(-p*a),g=(p-s)*a+1;return-sc+v*g},d=p=>{const v=Math.exp(-p*a),g=(s-p)*(a*a);return v*g});const m=5/a,y=Fb(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 $b=["duration","bounce"],Ib=["stiffness","damping","mass"];function Zp(a,i){return i.some(s=>a[s]!==void 0)}function tT(a){let i={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...a};if(!Zp(a,Ib)&&Zp(a,$b))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=Wb({...a,velocity:0});i={...i,...s,mass:qt.mass},i.isResolvedFromDuration=!0}return i}function xu(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}=tT({...s,velocity:-qe(s.velocity||0)}),E=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,I,k,P;if(w<1)K=Cc(B,w),I=(E+w*B*_)/K,U=J=>{const nt=Math.exp(-w*B*J);return f-nt*(I*Math.sin(K*J)+_*Math.cos(K*J))},k=w*B*I+_*K,P=w*B*_-I*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)*(_+(E+B*_)*nt);const J=E+B*_;X=nt=>Math.exp(-B*nt)*(B*J*nt-E)}else{const J=B*Math.sqrt(w*w-1);U=Et=>{const zt=Math.exp(-w*B*Et),j=Math.min(J*Et,300);return f-zt*((E+w*B*_)*Math.sinh(j)+J*_*Math.cosh(j))/J};const nt=(E+w*B*_)/J,lt=w*B*nt-_*J,Ct=w*B*_-nt*J;X=Et=>{const zt=Math.exp(-w*B*Et),j=Math.min(J*Et,300);return zt*(lt*Math.sinh(j)+Ct*Math.cosh(j))}}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),Et=Math.cos(K*J),zt=f-lt*(I*Ct+_*Et),j=we(lt*(k*Ct+P*Et));return m.done=Math.abs(j)<=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(of(Z),Tu),nt=Bg(lt=>Z.next(J*lt).value,J,30);return J+"ms "+nt},toTransition:()=>{}};return Z}xu.applyToOptions=a=>{const i=Jb(a,100,xu);return a.ease=i.ease,a.duration=we(i.duration),a.type="keyframes",a};const eT=5;function Ug(a,i,s){const u=Math.max(i-eT,0);return yg(s-a(u),i-u)}function Dc({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,E=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,I;const k=P=>{x(b.value)&&(K=P,I=xu({keyframes:[b.value,E(b.value)],velocity:Ug(U,P,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return k(0),{calculatedDuration:null,next:P=>{let Z=!1;return!I&&K===void 0&&(Z=!0,X(P),k(P)),K!==void 0&&P>=K?I.next(P-K):(!Z&&X(P),b)}}}function nT(a,i,s){const u=[],c=s||ea.mix||Ng,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=Vl(y,m)}u.push(m)}return u}function aT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(tf(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=nT(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=wl(a[g],a[g+1],v);return m[g](b)};return s?v=>p(an(a[0],a[d-1],v)):p}function iT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=wl(0,i,u);a.push(Bt(s,1,c))}}function lT(a){const i=[0];return iT(i,a.length-1),i}function sT(a,i){return a.map(s=>s*i)}function uT(a,i){return a.map(()=>i||Mg).splice(0,a.length-1)}function Cl({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=pb(u)?u.map(Hp):Hp(u),d={done:!1,value:i[0]},f=sT(s&&s.length===i.length?s:lT(i),a),m=aT(f,i,{ease:Array.isArray(c)?c:uT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const rT=a=>a!==null;function Ou(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(rT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const oT={decay:Dc,inertia:Dc,tween:Cl,keyframes:Cl,spring:xu};function Lg(a){typeof a.type=="string"&&(a.type=oT[a.type])}class cf{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 cT=a=>a/100;class Eu extends cf{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!==fe.now()&&this.tick(fe.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;Lg(i);const{type:s=Cl,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||Cl;y!==Cl&&typeof m[0]!="number"&&(this.mixKeyframes=Vl(cT,Ng(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=of(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:E,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:I}=K;!Y&&y!==null&&(I=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return k&&E!==Dc&&(K.value=Ou(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 Ug(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(fe.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=Kb,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(fe.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 fT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ca=a=>a*180/Math.PI,Rc=a=>{const i=Ca(Math.atan2(a[1],a[0]));return wc(i)},dT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Rc,rotateZ:Rc,skewX:a=>Ca(Math.atan(a[1])),skewY:a=>Ca(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},wc=a=>(a=a%360,a<0&&(a+=360),a),Qp=Rc,Kp=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Jp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),hT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kp,scaleY:Jp,scale:a=>(Kp(a)+Jp(a))/2,rotateX:a=>wc(Ca(Math.atan2(a[6],a[5]))),rotateY:a=>wc(Ca(Math.atan2(-a[2],a[0]))),rotateZ:Qp,rotate:Qp,skewX:a=>Ca(Math.atan(a[4])),skewY:a=>Ca(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function zc(a){return a.includes("scale")?1:0}function Oc(a,i){if(!a||a==="none")return zc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=hT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=dT,c=m}if(!c)return zc(i);const d=u[i],f=c[1].split(",").map(pT);return typeof d=="function"?d(f):f[d]}const mT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Oc(s,i)};function pT(a){return parseFloat(a.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Di=new Set(Ci),Pp=a=>a===Mi||a===et,yT=new Set(["x","y","z"]),gT=Ci.filter(a=>!yT.has(a));function vT(a){const i=[];return gT.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const ta={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})=>Oc(i,"x"),y:(a,{transform:i})=>Oc(i,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const Da=new Set;let _c=!1,Vc=!1,jc=!1;function Hg(){if(Vc){const a=Array.from(Da).filter(u=>u.needsMeasurement),i=new Set(a.map(u=>u.element)),s=new Map;i.forEach(u=>{const c=vT(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,_c=!1,Da.forEach(a=>a.complete(jc)),Da.clear()}function Yg(){Da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Vc=!0)})}function ST(){jc=!0,Yg(),Hg(),jc=!1}class ff{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?(Da.add(this),_c||(_c=!0,_t.read(Yg),_t.resolveKeyframes(Hg))):(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])}fT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Da.delete(this)}cancel(){this.state==="scheduled"&&(Da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bT=a=>a.startsWith("--");function qg(a,i,s){bT(i)?a.style.setProperty(i,s):a.style[i]=s}const TT={};function Gg(a,i){const s=pg(a);return()=>TT[i]??s()}const xT=Gg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Xg=Gg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Al=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,Fp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Al([0,.65,.55,1]),circOut:Al([.55,0,1,.45]),backIn:Al([.31,.01,.66,-.59]),backOut:Al([.33,1.53,.69,.99])};function kg(a,i){if(a)return typeof a=="function"?Xg()?Bg(a,i):"ease-out":Cg(a)?Al(a):Array.isArray(a)?a.map(s=>kg(s,i)||Fp.easeOut):Fp[a]}function ET(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=kg(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 Zg(a){return typeof a=="function"&&"applyToOptions"in a}function AT({type:a,...i}){return Zg(a)&&Xg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Qg extends cf{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,tf(typeof i.type!="string");const p=AT(i);this.animation=ET(s,u,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=Ou(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),qg(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&&xT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const Kg={anticipate:xg,backInOut:Tg,circInOut:Ag};function MT(a){return a in Kg}function CT(a){typeof a.ease=="string"&&MT(a.ease)&&(a.ease=Kg[a.ease])}const uc=10;class DT extends Qg{constructor(i){CT(i),Lg(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 Eu({...f,autoplay:!1}),y=Math.max(uc,fe.now()-this.startTime),p=an(0,uc,y-uc),v=m.sample(y).value,{name:g}=this.options;d&&g&&qg(d,g,v),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,v,p),m.stop()}}const Wp=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Je.test(a)||a==="0")&&!a.startsWith("url("));function RT(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 wT(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=Wp(c,i),m=Wp(d,i);return!f||!m?!1:RT(a)||(s==="spring"||Zg(s))&&u}function Nc(a){a.duration=0,a.type="keyframes"}const Jg=new Set(["opacity","clipPath","filter","transform"]),zT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function OT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&zT.test(a[i]))return!0;return!1}const _T=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),VT=pg(()=>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 VT()&&s&&(Jg.has(s)||_T.has(s)&&OT(m))&&(s!=="transform"||!v)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const NT=40;class BT extends cf{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 E;super(),this.stop=()=>{var w,_;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=fe.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)||ff;this.keyframeResolver=new x(m,(w,_,B)=>this.onKeyframesResolved(w,_,b,!B),y,p,v),(E=this.keyframeResolver)==null||E.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=fe.now();let g=!0;wT(i,d,f,m)||(g=!1,(ea.instantAnimations||!y)&&(v==null||v(Ou(i,u,s))),i[0]=i[i.length-1],Nc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>NT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},E=g&&!p&&jT(x),w=(Y=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:Y.current;let _;if(E)try{_=new DT({...x,element:w})}catch{_=new Eu(x)}else _=new Eu(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(),ST()),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 Pg(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 UT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LT(a){const i=UT.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function Fg(a,i,s=1){const[u,c]=LT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return dg(f)?parseFloat(f):f}return lf(c)?Fg(c,i,s+1):c}const HT={type:"spring",stiffness:500,damping:25,restSpeed:10},YT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),qT={type:"keyframes",duration:.8},GT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XT=(a,{keyframes:i})=>i.length>2?qT:Di.has(a)?a.startsWith("scale")?YT(i[1]):HT:GT;function Wg(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function df(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?Wg(s,a):s}const kT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ZT(a){for(const i in a)if(!kT.has(i))return!0;return!1}const hf=(a,i,s,u={},c,d)=>f=>{const m=df(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};ZT(m)||Object.assign(v,XT(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)&&(Nc(v),v.delay===0&&(g=!0)),(ea.instantAnimations||ea.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(g=!0,Nc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,g&&!d&&i.get()!==void 0){const b=Ou(v.keyframes,m);if(b!==void 0){_t.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new Eu(v):new BT(v)};function $p(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function mf(a,i,s,u){if(typeof i=="function"){const[c,d]=$p(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]=$p(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function Ra(a,i,s){const u=a.getProps();return mf(u,i,s!==void 0?s:u.custom,a)}const $g=new Set(["width","height","top","left","right","bottom",...Ci]),Ip=30,QT=a=>!isNaN(parseFloat(a));class KT{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const c=fe.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=fe.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=QT(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 ef);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=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Ip)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Ip);return yg(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 Ei(a,i){return new KT(a,i)}const Bc=a=>Array.isArray(a);function JT(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,Ei(s))}function PT(a){return Bc(a)?a[a.length-1]||0:a}function FT(a,i){const s=Ra(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=PT(d[f]);JT(a,f,m)}}const se=a=>!!(a&&a.getVelocity);function WT(a){return!!(se(a)&&a.add)}function Uc(a,i){const s=a.getValue("willChange");if(WT(s))return s.add(i);if(!s&&ea.WillChange){const u=new ea.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function pf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const $T="framerAppearId",Ig="data-"+pf($T);function t0(a){return a.props[Ig]}function IT({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function e0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?Wg(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),E=m[b];if(E===void 0||g&&IT(g,b))continue;const w={delay:s,...df(d||{},b)},_=x.get();if(_!==void 0&&!x.isAnimating()&&!Array.isArray(E)&&E===_&&!w.velocity){_t.update(()=>x.set(E));continue}let B=!1;if(window.MotionHandoffAnimation){const X=t0(a);if(X){const K=window.MotionHandoffAnimation(X,b,_t);K!==null&&(w.startTime=K,B=!0)}}Uc(a,b);const Y=p??a.shouldReduceMotion;x.start(hf(b,x,E,Y&&$g.has(b)?{type:!1}:w,a,B));const U=x.animation;U&&v.push(U)}if(f){const b=()=>_t.update(()=>{f&&FT(a,f)});v.length?Promise.all(v).then(b):b()}return v}function Lc(a,i,s={}){var y;const u=Ra(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(e0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:g,staggerDirection:b}=c;return tx(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 tx(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(Lc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+Pg(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function ex(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Lc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Lc(a,i,s);else{const c=typeof i=="function"?Ra(a,i,s.custom):i;u=Promise.all(e0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const nx={test:a=>a==="auto",parse:a=>a},n0=a=>i=>i.test(a),a0=[Mi,et,nn,$n,Rb,Db,nx],ty=a=>a0.find(n0(a));function ax(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||mg(a):!0}const ix=new Set(["brightness","contrast","saturate","opacity"]);function lx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(sf)||[];if(!u)return a;const c=s.replace(u,"");let d=ix.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const sx=/\b([a-z-]*)\(.*?\)/gu,Hc={...Je,getAnimatableNone:a=>{const i=a.match(sx);return i?i.map(lx).join(" "):a}},Yc={...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))}},ey={...Mi,transform:Math.round},ux={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:su,scaleX:su,scaleY:su,scaleZ:su,skew:$n,skewX:$n,skewY:$n,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:zl,originX:qp,originY:qp,originZ:et},yf={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,...ux,zIndex:ey,fillOpacity:zl,strokeOpacity:zl,numOctaves:ey},rx={...yf,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Hc,WebkitFilter:Hc,mask:Yc,WebkitMask:Yc},i0=a=>rx[a],ox=new Set([Hc,Yc]);function l0(a,i){let s=i0(a);return ox.has(s)||(s=Je),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const cx=new Set(["auto","none","0"]);function fx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!cx.has(d)&&xi(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=l0(s,c)}class dx extends ff{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(),lf(g))){const b=Fg(g,s.current);b!==void 0&&(i[v]=b),v===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!$g.has(u)||i.length!==2)return;const[c,d]=i,f=ty(c),m=ty(d),y=Yp(c),p=Yp(d);if(y!==p&&ta[u]){this.needsMeasurement=!0;return}if(f!==m)if(Pp(f)&&Pp(m))for(let v=0;v<i.length;v++){const g=i[v];typeof g=="string"&&(i[v]=parseFloat(g))}else ta[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||ax(i[c]))&&u.push(c);u.length&&fx(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=ta[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]=ta[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 s0(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 u0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function fu(a){return hg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:gf}=Dg(queueMicrotask,!1),Ke={x:!1,y:!1};function r0(){return Ke.x||Ke.y}function hx(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 o0(a,i){const s=s0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function mx(a){return!(a.pointerType==="touch"||r0())}function px(a,i,s={}){const[u,c,d]=o0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const v=()=>{f.removeEventListener("pointerleave",E)},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)},E=_=>{if(_.pointerType!=="touch"){if(m){y=!0;return}g(_)}},w=_=>{if(!mx(_))return;y=!1;const B=i(f,_);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",E,c))};f.addEventListener("pointerenter",w,c),f.addEventListener("pointerdown",x,c)}),d}const c0=(a,i)=>i?a===i?!0:c0(a,i.parentElement):!1,vf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,yx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gx(a){return yx.has(a.tagName)||a.isContentEditable===!0}const vx=new Set(["INPUT","SELECT","TEXTAREA"]);function Sx(a){return vx.has(a.tagName)||a.isContentEditable===!0}const du=new WeakSet;function ny(a){return i=>{i.key==="Enter"&&a(i)}}function rc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const bx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=ny(()=>{if(du.has(s))return;rc(s,"down");const c=ny(()=>{rc(s,"up")}),d=()=>rc(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 ay(a){return vf(a)&&!r0()}const iy=new WeakSet;function Tx(a,i,s={}){const[u,c,d]=o0(a,s),f=m=>{const y=m.currentTarget;if(!ay(m)||iy.has(m))return;du.add(y),s.stopPropagation&&iy.add(m);const p=i(y,m),v=(x,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),du.has(y)&&du.delete(y),ay(x)&&typeof p=="function"&&p(x,{success:E})},g=x=>{v(x,y===window||y===document||s.useGlobalTarget||c0(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),fu(m)&&(m.addEventListener("focus",p=>bx(p,c)),!gx(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Sf(a){return hg(a)&&"ownerSVGElement"in a}const hu=new WeakMap;let In;const f0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:Sf(u)&&"getBBox"in u?u.getBBox()[i]:u[s],xx=f0("inline","width","offsetWidth"),Ex=f0("block","height","offsetHeight");function Ax({target:a,borderBoxSize:i}){var s;(s=hu.get(a))==null||s.forEach(u=>{u(a,{get width(){return xx(a,i)},get height(){return Ex(a,i)}})})}function Mx(a){a.forEach(Ax)}function Cx(){typeof ResizeObserver>"u"||(In=new ResizeObserver(Mx))}function Dx(a,i){In||Cx();const s=s0(a);return s.forEach(u=>{let c=hu.get(u);c||(c=new Set,hu.set(u,c)),c.add(i),In==null||In.observe(u)}),()=>{s.forEach(u=>{const c=hu.get(u);c==null||c.delete(i),c!=null&&c.size||In==null||In.unobserve(u)})}}const mu=new Set;let Si;function Rx(){Si=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};mu.forEach(i=>i(a))},window.addEventListener("resize",Si)}function wx(a){return mu.add(a),Si||Rx(),()=>{mu.delete(a),!mu.size&&typeof Si=="function"&&(window.removeEventListener("resize",Si),Si=void 0)}}function ly(a,i){return typeof a=="function"?wx(a):Dx(a,i)}function zx(a){return Sf(a)&&a.tagName==="svg"}const Ox=[...a0,Jt,Je],_x=a=>Ox.find(n0(a)),sy=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:sy(),y:sy()}),uy=()=>({min:0,max:0}),Ft=()=>({x:uy(),y:uy()}),Vx=new WeakMap;function _u(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Ol(a){return typeof a=="string"||Array.isArray(a)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tf=["initial",...bf];function Vu(a){return _u(a.animate)||Tf.some(i=>Ol(a[i]))}function d0(a){return!!(Vu(a)||a.variants)}function jx(a,i,s){for(const u in i){const c=i[u],d=s[u];if(se(c))a.addValue(u,c);else if(se(d))a.addValue(u,Ei(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,Ei(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const Au={current:null},xf={current:!1},Nx=typeof window<"u";function h0(){if(xf.current=!0,!!Nx)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Au.current=a.matches;a.addEventListener("change",i),i()}else Au.current=!1}const ry=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Mu={};function m0(a){Mu=a}function Bx(){return Mu}class Ux{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=ff,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=fe.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=d0(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 E=b[x];p[x]!==void 0&&se(E)&&E.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,Vx.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:(xf.current||h0(),this.shouldReduceMotion=Au.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),na(this.notifyUpdate),na(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const u=this.features[s];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&Jg.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:v}=s.accelerate,g=new Qg({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=Di.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 Mu){const s=Mu[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):Ft()}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<ry.length;u++){const c=ry[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=Ei(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"&&(dg(u)||mg(u))?u=parseFloat(u):!_x(u)&&Je.test(s)&&(u=l0(i,s)),this.setBaseTarget(i,se(u)?u.get():u)),se(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=mf(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&&!se(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 ef),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){gf.render(this.render)}}class p0 extends Ux{constructor(){super(...arguments),this.KeyframeResolver=dx}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;se(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class aa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function y0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function Lx({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Hx(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 oc(a){return a===void 0||a===1}function qc({scale:a,scaleX:i,scaleY:s}){return!oc(a)||!oc(i)||!oc(s)}function Aa(a){return qc(a)||g0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function g0(a){return oy(a.x)||oy(a.y)}function oy(a){return a&&a!=="0%"}function Cu(a,i,s){const u=a-s,c=i*u;return s+c}function cy(a,i,s,u,c){return c!==void 0&&(a=Cu(a,c,u)),Cu(a,s,u)+i}function Gc(a,i=0,s=1,u,c){a.min=cy(a.min,i,s,u,c),a.max=cy(a.max,i,s,u,c)}function v0(a,{x:i,y:s}){Gc(a.x,i.translate,i.scale,i.originPoint),Gc(a.y,s.translate,s.scale,s.originPoint)}const fy=.999999999999,dy=1.0000000000001;function Yx(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,v0(a,f)),u&&Aa(d.latestValues)&&pu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<dy&&i.x>fy&&(i.x=1),i.y<dy&&i.y>fy&&(i.y=1)}function en(a,i){a.min+=i,a.max+=i}function hy(a,i,s,u,c=.5){const d=Bt(a.min,a.max,c);Gc(a,i,s,d,u)}function my(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function pu(a,i,s){const u=s??a;hy(a.x,my(i.x,u.x),i.scaleX,i.scale,i.originX),hy(a.y,my(i.y,u.y),i.scaleY,i.scale,i.originY)}function S0(a,i){return y0(Hx(a.getBoundingClientRect(),i))}function qx(a,i,s){const u=S0(a,s),{scroll:c}=i;return c&&(en(u.x,c.offset.x),en(u.y,c.offset.y)),u}const Gx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xx=Ci.length;function kx(a,i,s){let u="",c=!0;for(let d=0;d<Xx;d++){const f=Ci[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=u0(m,yf[f]);if(!y){c=!1;const v=Gx[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(Di.has(y)){f=!0;continue}else if(wg(y)){c[y]=p;continue}else{const v=u0(p,yf[y]);y.startsWith("origin")?(m=!0,d[y]=v):u[y]=v}}if(i.transform||(f||s?u.transform=kx(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 b0(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 py(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=py(a,i.target.x),u=py(a,i.target.y);return`${s}% ${u}%`}},Zx={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)}},Xc={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:Zx};function T0(a,{layout:i,layoutId:s}){return Di.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Xc[a]||a==="opacity")}function Af(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)(se(u[m])||c&&se(c[m])||T0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function Qx(a){return window.getComputedStyle(a)}class Kx extends p0{constructor(){super(...arguments),this.type="html",this.renderInstance=b0}readValueFromInstance(i,s){var u;if(Di.has(s))return(u=this.projection)!=null&&u.isProjecting?zc(s):mT(i,s);{const c=Qx(i),d=(wg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return S0(i,s)}build(i,s,u){Ef(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return Af(i,s,u)}}const Jx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Px={offset:"strokeDashoffset",array:"strokeDasharray"};function Fx(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?Jx:Px;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const Wx=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function x0(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 Wx)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&&Fx(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"]),A0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function $x(a,i,s,u){b0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(E0.has(c)?c:pf(c),i.attrs[c])}function M0(a,i,s){const u=Af(a,i,s);for(const c in a)if(se(a[c])||se(i[c])){const d=Ci.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=a[c]}return u}class Ix extends p0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Di.has(s)){const u=i0(s);return u&&u.default||0}return s=E0.has(s)?s:pf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return M0(i,s,u)}build(i,s,u){x0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){$x(i,s,u,c)}mount(i){this.isSVGTag=A0(i.tagName),super.mount(i)}}const t2=Tf.length;function C0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?C0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<t2;s++){const u=Tf[s],c=a.props[u];(Ol(c)||c===!1)&&(i[u]=c)}return i}function D0(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 e2=[...bf].reverse(),n2=bf.length;function a2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>ex(a,s,u)))}function i2(a){let i=a2(a),s=yy(),u=!0,c=!1;const d=p=>(v,g)=>{var x;const b=Ra(a,g,p==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:E,transitionEnd:w,..._}=b;v={...v,..._,...w}}return v};function f(p){i=p(a)}function m(p){const{props:v}=a,g=C0(a.parent)||{},b=[],x=new Set;let E={},w=1/0;for(let B=0;B<n2;B++){const Y=e2[B],U=s[Y],X=v[Y]!==void 0?v[Y]:g[Y],K=Ol(X),I=Y===p?U.isActive:null;I===!1&&(w=B);let k=X===g[Y]&&X!==v[Y]&&K;if(k&&(u||c)&&a.manuallyAnimateOnMount&&(k=!1),U.protectedKeys={...E},!U.isActive&&I===null||!X&&!U.prevProp||_u(X)||typeof X=="boolean")continue;if(Y==="exit"&&U.isActive&&I!==!0){U.prevResolvedValues&&(E={...E,...U.prevResolvedValues});continue}const P=l2(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),{});I===!1&&(lt={});const{prevResolvedValues:Ct={}}=U,Et={...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 Et){const rt=lt[W],ft=Ct[W];if(E.hasOwnProperty(W))continue;let A=!1;Bc(rt)&&Bc(ft)?A=!D0(rt,ft):A=rt!==ft,A?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&&(E={...E,...lt}),(u||c)&&a.blockInitialAnimation&&(Z=!1);const j=k&&P;Z&&(!j||J)&&b.push(...nt.map(W=>{const rt={type:Y};if(typeof W=="string"&&(u||c)&&!j&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,A=Ra(ft,W);if(ft.enteringChildren&&A){const{delayChildren:H}=A.transition||{};rt.delay=Pg(ft.enteringChildren,a,H)}}return{animation:W,options:rt}}))}if(x.size){const B={};if(typeof v.initial!="boolean"){const Y=Ra(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 E;return(E=x.animationState)==null?void 0:E.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=yy(),c=!0}}}function l2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!D0(i,a):!1}function Ea(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yy(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function kc(a,i){a.min=i.min,a.max=i.max}function Qe(a,i){kc(a.x,i.x),kc(a.y,i.y)}function gy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const R0=1e-4,s2=1-R0,u2=1+R0,w0=.01,r2=0-w0,o2=0+w0;function de(a){return a.max-a.min}function c2(a,i,s){return Math.abs(a-i)<=s}function vy(a,i,s,u=.5){a.origin=u,a.originPoint=Bt(i.min,i.max,a.origin),a.scale=de(s)/de(i),a.translate=Bt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=s2&&a.scale<=u2||isNaN(a.scale))&&(a.scale=1),(a.translate>=r2&&a.translate<=o2||isNaN(a.translate))&&(a.translate=0)}function Dl(a,i,s,u){vy(a.x,i.x,s.x,u?u.originX:void 0),vy(a.y,i.y,s.y,u?u.originY:void 0)}function Sy(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+de(i)}function f2(a,i,s,u){Sy(a.x,i.x,s.x,u==null?void 0:u.x),Sy(a.y,i.y,s.y,u==null?void 0:u.y)}function by(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+de(i)}function Du(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,c){return a-=i,a=Cu(a,1/s,u),c!==void 0&&(a=Cu(a,1/c,u)),a}function d2(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=Ty(a.min,i,s,m,c),a.max=Ty(a.max,i,s,m,c)}function xy(a,i,[s,u,c],d,f){d2(a,i[s],i[u],i[c],i.scale,d,f)}const h2=["x","scaleX","originX"],m2=["y","scaleY","originY"];function Ey(a,i,s,u){xy(a.x,i,h2,s?s.x:void 0,u?u.x:void 0),xy(a.y,i,m2,s?s.y:void 0,u?u.y:void 0)}function Ay(a){return a.translate===0&&a.scale===1}function z0(a){return Ay(a.x)&&Ay(a.y)}function My(a,i){return a.min===i.min&&a.max===i.max}function p2(a,i){return My(a.x,i.x)&&My(a.y,i.y)}function Cy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function O0(a,i){return Cy(a.x,i.x)&&Cy(a.y,i.y)}function Dy(a){return de(a.x)/de(a.y)}function Ry(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function tn(a){return[a("x"),a("y")]}function y2(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:E}=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) `),E&&(u+=`skewY(${E}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 _0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],g2=_0.length,wy=a=>typeof a=="string"?parseFloat(a):a,zy=a=>typeof a=="number"||et.test(a);function v2(a,i,s,u,c,d){c?(a.opacity=Bt(0,s.opacity??1,S2(u)),a.opacityExit=Bt(i.opacity??1,0,b2(u))):d&&(a.opacity=Bt(i.opacity??1,s.opacity??1,u));for(let f=0;f<g2;f++){const m=_0[f];let y=Oy(i,m),p=Oy(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||zy(y)===zy(p)?(a[m]=Math.max(Bt(wy(y),wy(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 Oy(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const S2=V0(0,.5,Eg),b2=V0(.5,.95,Ge);function V0(a,i,s){return u=>u<a?0:u>i?1:s(wl(a,i,u))}function T2(a,i,s){const u=se(a)?a:Ei(a);return u.start(hf("",u,i,s)),u.animation}function _l(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const x2=(a,i)=>a.depth-i.depth;class E2{constructor(){this.children=[],this.isDirty=!1}add(i){Ic(this.children,i),this.isDirty=!0}remove(i){Su(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(x2),this.isDirty=!1,this.children.forEach(i)}}function A2(a,i){const s=fe.now(),u=({timestamp:c})=>{const d=c-s;d>=i&&(na(u),a(d-i))};return _t.setup(u,!0),()=>na(u)}function yu(a){return se(a)?a.get():a}class M2{constructor(){this.members=[]}add(i){Ic(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&&(Su(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Su(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 gu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},cc=["","X","Y","Z"],C2=1e3;let D2=0;function fc(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function j0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=t0(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&&j0(u)}function N0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=D2++,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(z2),this.nodes.forEach(B2),this.nodes.forEach(U2),this.nodes.forEach(O2)},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 E2)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new ef),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=Sf(f)&&!zx(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),gu.hasAnimatedSinceResize&&(gu.hasAnimatedSinceResize=!1,this.nodes.forEach(jy)))})}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 E=this.options.transition||p.getDefaultTransition()||G2,{onLayoutAnimationStart:w,onLayoutAnimationComplete:_}=p.getProps(),B=!this.targetLayout||!O0(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={...df(E,"layout"),onPlay:w,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(v,Y)}else g||jy(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(),na(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(L2),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&&j0(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(V2),this.nodes.forEach(_y);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(N2),this.nodes.forEach(R2),this.nodes.forEach(w2)):this.nodes.forEach(Vy),this.clearAllSnapshots();const m=fe.now();le.delta=an(0,1e3/60,m-le.timestamp),le.timestamp=m,le.isProcessing=!0,nc.update.process(le),nc.preRender.process(le),nc.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_2),this.sharedNodes.forEach(H2)}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&&!de(this.snapshot.measuredBox.x)&&!de(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=Ft()),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&&!z0(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)),X2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return Ft();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(k2))){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=Ft();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||Ft();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)&&pu(p,x.latestValues,(v=x.layout)==null?void 0:v.layoutBox)}return Aa(this.latestValues)&&pu(p,this.latestValues,(g=this.layout)==null?void 0:g.layoutBox),p}removeTransform(f){var y;const m=Ft();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&&(qc(v.latestValues)&&v.updateSnapshot(),g=Ft(),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!==le.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=le.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=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f2(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),v0(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||qc(this.parent.latestValues)||g0(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=Ft(),this.relativeTargetOrigin=Ft(),Du(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===le.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;Yx(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=Ft());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gy(this.prevProjectionDelta.x,this.projectionDelta.x),gy(this.prevProjectionDelta.y,this.projectionDelta.y)),Dl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!Ry(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ry(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=bi(),this.projectionDelta=bi(),this.projectionDeltaWithTransform=bi()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},g=bi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Ft(),x=y?y.source:void 0,E=this.layout?this.layout.source:void 0,w=x!==E,_=this.getStack(),B=!_||_.members.length<=1,Y=!!(w&&!B&&this.options.crossfade===!0&&!this.path.some(q2));this.animationProgress=0;let U;this.mixTargetDelta=X=>{const K=X/1e3;Ny(g.x,f.x,K),Ny(g.y,f.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Du(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Y2(this.relativeTarget,this.relativeTargetOrigin,b,K),U&&p2(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Ft()),Qe(U,this.relativeTarget)),w&&(this.animationValues=v,v2(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&&(na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_t.update(()=>{gu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ei(0)),this.motionValue.jump(0,!1),this.currentAnimation=T2(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(C2),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&&B0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Ft();const g=de(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+g;const b=de(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Qe(m,y),pu(m,v),Dl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new M2),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&&fc("z",f,p,this.animationValues);for(let v=0;v<cc.length;v++)fc(`rotate${cc[v]}`,f,p,this.animationValues),fc(`skew${cc[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=yu(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=yu(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=y2(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 E in Xc){if(v[E]===void 0)continue;const{correct:w,applyTo:_,isCSSVariable:B}=Xc[E],Y=g==="none"?v[E]:w(v[E],p);if(_){const U=_.length;for(let X=0;X<U;X++)f[_[X]]=Y}else B?this.options.visualElement.renderState.vars[E]=Y:f[E]=Y}this.options.layoutId&&(f.pointerEvents=p===this?yu(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(_y),this.root.sharedNodes.clear()}}}function R2(a){a.updateLayout()}function w2(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=de(b);b.min=u[g].min,b.max=b.min+x});else if(d==="x"||d==="y"){const g=d==="x"?"y":"x";kc(f?i.measuredBox[g]:i.layoutBox[g],u[g])}else B0(d,i.layoutBox,u)&&tn(g=>{const b=f?i.measuredBox[g]:i.layoutBox[g],x=de(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=bi();Dl(m,u,i.layoutBox);const y=bi();f?Dl(y,a.applyTransform(c,!0),i.measuredBox):Dl(y,u,i.layoutBox);const p=!z0(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 E=a.options.layoutAnchor||void 0,w=Ft();Du(w,i.layoutBox,b.layoutBox,E);const _=Ft();Du(_,u,x.layoutBox,E),O0(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 z2(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 O2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function _2(a){a.clearSnapshot()}function _y(a){a.clearMeasurements()}function V2(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 N2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function jy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function B2(a){a.resolveTargetDelta()}function U2(a){a.calcProjection()}function L2(a){a.resetSkewAndRotation()}function H2(a){a.removeLeadSnapshot()}function Ny(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 By(a,i,s,u){a.min=Bt(i.min,s.min,u),a.max=Bt(i.max,s.max,u)}function Y2(a,i,s,u){By(a.x,i.x,s.x,u),By(a.y,i.y,s.y,u)}function q2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const G2={duration:.45,ease:[.4,0,.1,1]},Uy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Ly=Uy("applewebkit/")&&!Uy("chrome/")?Math.round:Ge;function Hy(a){a.min=Ly(a.min),a.max=Ly(a.max)}function X2(a){Hy(a.x),Hy(a.y)}function B0(a,i,s){return a==="position"||a==="preserve-aspect"&&!c2(Dy(i),Dy(s),.2)}function k2(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const Z2=N0({attachResizeListener:(a,i)=>_l(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}),dc={current:void 0},U0=N0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!dc.current){const a=new Z2({});a.mount(window),a.setOptions({layoutScroll:!0}),dc.current=a}return dc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Mf=C.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Yy(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Q2(...a){return i=>{let s=!1;const u=a.map(c=>{const d=Yy(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():Yy(a[c],null)}}}}function K2(...a){return C.useCallback(Q2(...a),a)}class J2 extends C.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(fu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=fu(u)&&u.offsetWidth||0,d=fu(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 P2({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var b;const f=C.useId(),m=C.useRef(null),y=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=C.useContext(Mf),v=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),g=K2(m,v);return C.useInsertionEffect(()=>{const{width:x,height:E,top:w,left:_,right:B,bottom:Y}=y.current;if(i||d===!1||!m.current||!x||!E)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 I=c??document.head;return I.appendChild(K),K.sheet&&K.sheet.insertRule(`
|
|
50
|
+
[data-motion-pop-id="${f}"] {
|
|
51
|
+
position: absolute !important;
|
|
52
|
+
width: ${x}px !important;
|
|
53
|
+
height: ${E}px !important;
|
|
54
|
+
${U}px !important;
|
|
55
|
+
${X}px !important;
|
|
56
|
+
}
|
|
57
|
+
`),()=>{var k;(k=m.current)==null||k.removeAttribute("data-motion-pop-id"),I.contains(K)&&I.removeChild(K)}},[i]),D.jsx(J2,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:C.cloneElement(a,{ref:g})})}const F2=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const v=$c(W2),g=C.useId();let b=!0,x=C.useMemo(()=>(b=!1,{id:g,initial:i,isPresent:s,custom:c,onExitComplete:E=>{v.set(E,!0);for(const w of v.values())if(!w)return;u&&u()},register:E=>(v.set(E,!1),()=>v.delete(E))}),[s,v,u]);return d&&b&&(x={...x}),C.useMemo(()=>{v.forEach((E,w)=>v.set(w,!1))},[s]),C.useEffect(()=>{!s&&!v.size&&u&&u()},[s]),a=D.jsx(P2,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),D.jsx(zu.Provider,{value:x,children:a})};function W2(){return new Map}function L0(a=!0){const i=C.useContext(zu);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=C.useId();C.useEffect(()=>{if(a)return c(d)},[a]);const f=C.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const uu=a=>a.key||"";function qy(a){const i=[];return C.Children.forEach(a,s=>{C.isValidElement(s)&&i.push(s)}),i}const Ru=({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]=L0(f),b=C.useMemo(()=>qy(a),[a]),x=f&&!v?[]:b.map(uu),E=C.useRef(!0),w=C.useRef(b),_=$c(()=>new Map),B=C.useRef(new Set),[Y,U]=C.useState(b),[X,K]=C.useState(b);fg(()=>{E.current=!1,w.current=b;for(let P=0;P<X.length;P++){const Z=uu(X[P]);x.includes(Z)?(_.delete(Z),B.current.delete(Z)):_.get(Z)!==!0&&_.set(Z,!1)}},[X,x.length,x.join("-")]);const I=[];if(b!==Y){let P=[...b];for(let Z=0;Z<X.length;Z++){const J=X[Z],nt=uu(J);x.includes(nt)||(P.splice(Z,0,J),I.push(J))}return d==="wait"&&I.length&&(P=I),K(qy(P)),U(b),null}const{forceRender:k}=C.useContext(Wc);return D.jsx(D.Fragment,{children:X.map(P=>{const Z=uu(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 D.jsx(F2,{isPresent:J,initial:!E.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)})})},H0=C.createContext({strict:!1}),Gy={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 Xy=!1;function $2(){if(Xy)return;const a={};for(const i in Gy)a[i]={isEnabled:s=>Gy[i].some(u=>!!s[u])};m0(a),Xy=!0}function Y0(){return $2(),Bx()}function I2(a){const i=Y0();for(const s in a)i[s]={...i[s],...a[s]};m0(i)}const tE=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 wu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||tE.has(a)}let q0=a=>!wu(a);function eE(a){typeof a=="function"&&(q0=i=>i.startsWith("on")?!wu(i):a(i))}try{eE(require("@emotion/is-prop-valid").default)}catch{}function nE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||se(a[c])||(q0(c)||s===!0&&wu(c)||!i&&!wu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const ju=C.createContext({});function aE(a,i){if(Vu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||Ol(s)?s:void 0,animate:Ol(u)?u:void 0}}return a.inherit!==!1?i:{}}function iE(a){const{initial:i,animate:s}=aE(a,C.useContext(ju));return C.useMemo(()=>({initial:i,animate:s}),[ky(i),ky(s)])}function ky(a){return Array.isArray(a)?a.join(" "):a}const Cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G0(a,i,s){for(const u in i)!se(i[u])&&!T0(u,s)&&(a[u]=i[u])}function lE({transformTemplate:a},i){return C.useMemo(()=>{const s=Cf();return Ef(s,i,a),Object.assign({},s.vars,s.style)},[i])}function sE(a,i){const s=a.style||{},u={};return G0(u,s,a),Object.assign(u,lE(a,i)),u}function uE(a,i){const s={},u=sE(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 X0=()=>({...Cf(),attrs:{}});function rE(a,i,s,u){const c=C.useMemo(()=>{const d=X0();return x0(d,i,A0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};G0(d,a.style,a),c.style={...d,...c.style}}return c}const oE=["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 Df(a){return typeof a!="string"||a.includes("-")?!1:!!(oE.indexOf(a)>-1||/[A-Z]/u.test(a))}function cE(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??Df(a)?rE:uE)(i,u,c,a),p=nE(i,typeof a=="string",d),v=a!==C.Fragment?{...p,...y,ref:s}:{},{children:g}=i,b=C.useMemo(()=>se(g)?g.get():g,[g]);return C.createElement(a,{...v,children:b})}function fE({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:dE(s,u,c,a),renderState:i()}}function dE(a,i,s,u){const c={},d=u(a,{});for(const b in d)c[b]=yu(d[b]);let{initial:f,animate:m}=a;const y=Vu(a),p=d0(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"&&!_u(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x<b.length;x++){const E=mf(a,b[x]);if(E){const{transitionEnd:w,transition:_,...B}=E;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 k0=a=>(i,s)=>{const u=C.useContext(ju),c=C.useContext(zu),d=()=>fE(a,i,u,c);return s?d():$c(d)},hE=k0({scrapeMotionValuesFromProps:Af,createRenderState:Cf}),mE=k0({scrapeMotionValuesFromProps:M0,createRenderState:X0}),pE=Symbol.for("motionComponentSymbol");function yE(a,i,s){const u=C.useRef(s);C.useInsertionEffect(()=>{u.current=s});const c=C.useRef(null);return C.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 Z0=C.createContext({});function gi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function gE(a,i,s,u,c,d){var U,X;const{visualElement:f}=C.useContext(ju),m=C.useContext(H0),y=C.useContext(zu),p=C.useContext(Mf),v=p.reducedMotion,g=p.skipAnimations,b=C.useRef(null),x=C.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 E=b.current,w=C.useContext(Z0);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&vE(b.current,s,c,w);const _=C.useRef(!1);C.useInsertionEffect(()=>{E&&_.current&&E.update(s,y)});const B=s[Ig],Y=C.useRef(!!B&&typeof window<"u"&&!((U=window.MotionHandoffIsComplete)!=null&&U.call(window,B))&&((X=window.MotionHasOptimisedAnimation)==null?void 0:X.call(window,B)));return fg(()=>{x.current=!0,E&&(_.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),Y.current&&E.animationState&&E.animationState.animateChanges())}),C.useEffect(()=>{E&&(!Y.current&&E.animationState&&E.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var K;(K=window.MotionHandoffMarkAsComplete)==null||K.call(window,B)}),Y.current=!1),E.enteringChildren=void 0)}),E}function vE(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:Q0(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&gi(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:g,layoutScroll:y,layoutRoot:p,layoutAnchor:v})}function Q0(a){if(a)return a.options.allowProjection!==!1?a.projection:Q0(a.parent)}function hc(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&I2(u);const d=s?s==="svg":Df(a),f=d?mE:hE;function m(p,v){let g;const b={...C.useContext(Mf),...p,layoutId:SE(p)},{isStatic:x}=b,E=iE(p),w=f(p,x);if(!x&&typeof window<"u"){bE();const _=TE(b);g=_.MeasureLayout,E.visualElement=gE(a,w,b,c,_.ProjectionNode,d)}return D.jsxs(ju.Provider,{value:E,children:[g&&E.visualElement?D.jsx(g,{visualElement:E.visualElement,...b}):null,cE(a,p,yE(w,E.visualElement,v),w,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=C.forwardRef(m);return y[pE]=a,y}function SE({layoutId:a}){const i=C.useContext(Wc).id;return i&&a!==void 0?i+"-"+a:a}function bE(a,i){C.useContext(H0).strict}function TE(a){const i=Y0(),{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 xE(a,i){if(typeof Proxy>"u")return hc;const s=new Map,u=(d,f)=>hc(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,hc(f,void 0,a,i)),s.get(f))})}const EE=(a,i)=>i.isSVG??Df(a)?new Ix(i):new Kx(i,{allowProjection:a!==C.Fragment});class AE extends aa{constructor(i){super(i),i.animationState||(i.animationState=i2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();_u(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 ME=0;class CE extends aa{constructor(){super(...arguments),this.id=ME++,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=Ra(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 DE={animation:{Feature:AE},exit:{Feature:CE}};function Bl(a){return{point:{x:a.pageX,y:a.pageY}}}const RE=a=>i=>vf(i)&&a(i,Bl(i));function Rl(a,i,s,u){return _l(a,i,RE(s),u)}const K0=({current:a})=>a?a.ownerDocument.defaultView:null,Zy=(a,i)=>Math.abs(a-i);function wE(a,i){const s=Zy(a.x,i.x),u=Zy(a.y,i.y);return Math.sqrt(s**2+u**2)}const Qy=new Set(["auto","scroll"]);class J0{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=ru(this.lastRawMoveEventInfo,this.transformPagePoint));const x=mc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,w=wE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!w)return;const{point:_}=x,{timestamp:B}=le;this.history.push({..._,timestamp:B});const{onStart:Y,onMove:U}=this.handlers;E||(Y&&Y(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,x)},this.handlePointerMove=(x,E)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=ru(E,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,E)=>{this.end();const{onEnd:w,onSessionEnd:_,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=mc(x.type==="pointercancel"?this.lastMoveEventInfo:ru(E,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,Y),_&&_(x,Y)},!vf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Bl(i),p=ru(y,this.transformPagePoint),{point:v}=p,{timestamp:g}=le;this.history=[{...v,timestamp:g}];const{onSessionStart:b}=s;b&&b(i,mc(p,this.history)),this.removeListeners=Vl(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(Qy.has(u.overflowX)||Qy.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(),na(this.updatePoint)}}function ru(a,i){return i?{point:i(a.point)}:a}function Ky(a,i){return{x:a.x-i.x,y:a.y-i.y}}function mc({point:a},i){return{point:a,delta:Ky(a,P0(i)),offset:Ky(a,zE(i)),velocity:OE(i,.1)}}function zE(a){return a[0]}function P0(a){return a[a.length-1]}function OE(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=P0(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 _E(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 Jy(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 VE(a,{top:i,left:s,bottom:u,right:c}){return{x:Jy(a.x,s,c),y:Jy(a.y,i,u)}}function Py(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 jE(a,i){return{x:Py(a.x,i.x),y:Py(a.y,i.y)}}function NE(a,i){let s=.5;const u=de(a),c=de(i);return c>u?s=wl(i.min,i.max-u,a.min):u>c&&(s=wl(a.min,a.max-c,i.min)),an(0,1,s)}function BE(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const Zc=.35;function UE(a=Zc){return a===!1?a=0:a===!0&&(a=Zc),{x:Fy(a,"left","right"),y:Fy(a,"top","bottom")}}function Fy(a,i,s){return{min:Wy(a,i),max:Wy(a,s)}}function Wy(a,i){return typeof a=="number"?a:a[i]||0}const LE=new WeakMap;class HE{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=Ft(),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(Bl(g).point),this.stopAnimation()},f=(g,b)=>{const{drag:x,dragPropagation:E,onDragStart:w}=this.getProps();if(x&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hx(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=de(X)*(parseFloat(Y)/100))}}this.originPoint[B]=Y}),w&&_t.update(()=>w(g,b),!1,!0),Uc(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:E,onDirectionLock:w,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=b;if(E&&this.currentDirection===null){this.currentDirection=qE(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 J0(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:u,contextWindow:K0(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||!ou(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=_E(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&&gi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=VE(u.layoutBox,i):this.constraints=!1,this.elastic=UE(s),c!==this.constraints&&!gi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&tn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=BE(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!gi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=qx(u,c.root,this.visualElement.getTransformPagePoint());let f=jE(c.layout.layoutBox,d);if(s){const m=s(Lx(f));this.hasMutatedConstraints=!!m,m&&(f=y0(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(!ou(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,E={type:"inertia",velocity:u?i[v]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...g};return this.startAxisValueAnimation(v,E)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Uc(this.visualElement,i),u.start(hf(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(!ou(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(!gi(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]=NE({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(!ou(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;LE.set(this.visualElement,this);const i=this.visualElement.current,s=Rl(i,"pointerdown",p=>{const{drag:v,dragListener:g=!0}=this.getProps(),b=p.target,x=b!==i&&Sx(b);v&&g&&!x&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();gi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=YE(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=_l(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=Zc,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function $y(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function YE(a,i,s){const u=ly(a,$y(s)),c=ly(i,$y(s));return()=>{u(),c()}}function ou(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function qE(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class GE extends aa{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new HE(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 pc=a=>(i,s)=>{a&&_t.update(()=>a(i,s),!1,!0)};class XE extends aa{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new J0(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:K0(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:pc(i),onStart:pc(s),onMove:pc(u),onEnd:(d,f)=>{delete this.session,c&&_t.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Rl(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 yc=!1;class kE extends C.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),yc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),gu.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}),yc=!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(),gf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;yc=!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 F0(a){const[i,s]=L0(),u=C.useContext(Wc);return D.jsx(kE,{...a,layoutGroup:u,switchLayoutGroup:C.useContext(Z0),isPresent:i,safeToRemove:s})}const ZE={pan:{Feature:XE},drag:{Feature:GE,ProjectionNode:U0,MeasureLayout:F0}};function Iy(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,Bl(i)))}class QE extends aa{mount(){const{current:i}=this.node;i&&(this.unmount=px(i,(s,u)=>(Iy(this.node,u,"Start"),c=>Iy(this.node,c,"End"))))}unmount(){}}class KE extends aa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vl(_l(this.node.current,"focus",()=>this.onFocus()),_l(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tg(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,Bl(i)))}class JE extends aa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=Tx(i,(c,d)=>(tg(this.node,d,"Start"),(f,{success:m})=>tg(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const Qc=new WeakMap,gc=new WeakMap,PE=a=>{const i=Qc.get(a.target);i&&i(a)},FE=a=>{a.forEach(PE)};function WE({root:a,...i}){const s=a||document;gc.has(s)||gc.set(s,{});const u=gc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(FE,{root:a,...i})),u[c]}function $E(a,i,s){const u=WE(i);return Qc.set(a,s),u.observe(a),()=>{Qc.delete(a),u.unobserve(a)}}const IE={some:0,all:1};class tA extends aa{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:IE[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=$E(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(eA(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function eA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const nA={inView:{Feature:tA},tap:{Feature:JE},focus:{Feature:KE},hover:{Feature:QE}},aA={layout:{ProjectionNode:U0,MeasureLayout:F0}},iA={...DE,...nA,...ZE,...aA},An=xE(iA,EE);function lA(){!xf.current&&h0();const[a]=C.useState(Au.current);return a}const sA={type:"spring",stiffness:170,damping:22,mass:.6},uA=80,rA=12,oA=400,cA=100;function fA({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=C.useState(null),f=Jc(),[m,y]=C.useState(!1),p=C.useRef(void 0),v=C.useRef(void 0),g=C.useRef(void 0),[b,x]=C.useState(null),E=C.useRef(void 0);C.useEffect(()=>{f&&a!==E.current&&(E.current=a,x(a?f.currentTimeMs:null))},[a]);const w=s&&!u&&f!=null&&b!=null&&f.currentTimeMs-b>=It,_=f?w:m&&!u,B=C.useRef(!1);B.current=f!=null,C.useEffect(()=>{if(!B.current)return;if(!a){d(null);return}const U=i.current;if(!U)return;const X=U.querySelector(Ti(a));X&&d(ec(U,X))},[a,i]),C.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(Ti(a));if(!P){X<rA&&(X++,v.current=setTimeout(K,uA));return}const Z=rg(P);g.current=setTimeout(()=>{requestAnimationFrame(()=>{U||(d(ec(k,P)),s&&(p.current=setTimeout(()=>{U||y(!0)},It)))})},Z?oA:0)}const I=requestAnimationFrame(K);return()=>{U=!0,cancelAnimationFrame(I),clearTimeout(v.current),clearTimeout(g.current),clearTimeout(p.current)}},[a,i,s]),C.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(v.current),clearTimeout(g.current)},[]);const Y=C.useCallback(()=>{const U=i.current;if(!U||!a)return;const X=U.querySelector(Ti(a));X&&d(ec(U,X))},[a,i]);return C.useEffect(()=>{if(B.current)return;const U=i.current;if(!U||!a)return;let X;const K=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout(Y,cA)});return K.observe(U),()=>{clearTimeout(X),K.disconnect()}},[a,i,Y]),D.jsx(Ru,{children:c&&D.jsxs(An.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:sA,children:[u?D.jsx(hA,{}):D.jsx(dA,{}),D.jsx(Ru,{children:_&&D.jsx(An.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 dA(){return D.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:D.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 hA(){return D.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:[D.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"}),D.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 mA={type:"spring",stiffness:100,damping:20,mass:.8};function pA({children:a,transform:i}){const s=i.scale!==1||i.x!==0||i.y!==0;return D.jsx("div",{className:s?"overflow-hidden":void 0,children:D.jsx(An.div,{animate:{scale:i.scale,x:i.x,y:i.y},transition:mA,style:{transformOrigin:"0 0"},children:a})})}const yA=896,gA=.5,vA="relative mx-auto max-w-4xl overflow-hidden";function SA({containerRef:a,children:i,className:s,canonicalWidth:u=yA,minZoom:c=gA,shellHeight:d,wrapperClassName:f=vA}){const{isVideoExport:m}=Pc(),y=C.useRef(null),p=C.useRef(null),[v,g]=C.useState(1),b=a??p;C.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 D.jsx("div",{ref:b,className:x,children:i});const E={width:u,zoom:v};return d!=null&&(E["--scenar-shell-height"]=`${d}px`),D.jsx("div",{ref:y,className:x,children:D.jsx("div",{ref:b,className:"relative",style:E,children:i})})}function bA({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Jc(),m=a.length-1,[y,p]=C.useState(()=>d?m:0),[v,g]=C.useState(c?"playing":"idle"),b=v==="playing",x=f?xc(f.currentTimeMs,f.stepStartTimesMs,m):y,E=C.useRef(x);E.current=x;const w=C.useRef(null),_=C.useRef(0),[B,Y]=C.useState(0),U=C.useRef(Math.max(u,.25));U.current=Math.max(u,.25),C.useEffect(()=>{var j,Q;if(f||!b||d)return;const nt=U.current;if(x>=m){const W=!s&&i?((j=i.steps[x])==null?void 0:j.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,Et=!s&&i?((Q=i.steps[x])==null?void 0:Q.durationMs)??0:0;if(Et>0){let W=!1,rt=!1,ft=!1;const A=()=>{ft||(ft=!0,w.current=null,p(lt))},H=()=>{W&&rt&&A()};w.current=()=>{W=!0,H()};const F=setTimeout(()=>{rt=!0,H()},Ct),$=setTimeout(A,(Math.max(a[lt].delayMs,Et)+2e3)/nt);return()=>{clearTimeout(F),clearTimeout($),w.current=null}}const zt=setTimeout(()=>p(lt),Ct);return()=>clearTimeout(zt)},[f,b,x,a,m,d,s,i]);const X=C.useCallback(nt=>{g("paused"),p(Math.max(0,Math.min(nt,m)))},[m]),K=C.useCallback((nt,lt)=>{const Ct=Math.max(0,Math.min(nt,lt.totalDurationMs)),Et=xc(Ct,lt.stepStartTimesMs,m),zt=lt.stepStartTimesMs[Et]??0;_.current=Ct-zt,p(Et),g("playing"),Y(j=>j+1)},[m]),I=C.useCallback(()=>{E.current>=m&&p(0),g("playing")},[m]),k=C.useCallback(()=>{g("paused")},[]),P=C.useCallback(()=>{b?k():I()},[b,I,k]),Z=C.useCallback(()=>{var nt;(nt=w.current)==null||nt.call(w)},[]),J=C.useCallback(nt=>{w.current=nt},[]);return{stepIndex:x,playbackState:v,playing:b,play:I,pause:k,togglePlay:P,goTo:X,seekToTime:K,seekOffsetRef:_,seekGeneration:B,handleClipEnded:Z,setPendingAdvance:J,coordinatorId:void 0}}function TA(a,i,s,u,c,d,f,m,y,p){const v=C.useRef(0),g=C.useRef(0),b=C.useRef(0),x=C.useRef(d);x.current=d;const E=C.useRef(s);E.current=s;const w=C.useRef(Math.max(c,.25));w.current=Math.max(c,.25);const _=C.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=C.useRef(void 0);B.current=()=>{const Y=performance.now();g.current+=(Y-b.current)*w.current,b.current=Y;const U=x.current,X=E.current,K=U.stepStartTimesMs[X]??0,I=X<u?U.stepStartTimesMs[X+1]??U.totalDurationMs:U.totalDurationMs,k=Math.max(I-K,1),P=Math.min(g.current/k,1),Z=(K+P*(I-K))/U.totalDurationMs;_(Z),v.current=requestAnimationFrame(()=>{var J;return(J=B.current)==null?void 0:J.call(B)})},C.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]),C.useEffect(()=>{g.current=y.current,y.current=0,b.current=performance.now()},[s,p,y]),C.useEffect(()=>{if(i==="idle"){_(0);return}if(i==="paused"){const Y=x.current,U=E.current,X=Y.stepStartTimesMs[U]??0,K=U<u?Y.stepStartTimesMs[U+1]??Y.totalDurationMs:Y.totalDurationMs,I=Math.max(K-X,1),k=Math.min(g.current/I,1),P=(X+k*(K-X))/Y.totalDurationMs;_(P)}},[i,s,u,_])}function W0({size:a,className:i}){return D.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:D.jsx("path",{d:"M8 5v14l11-7z"})})}function $0({size:a,className:i}){return D.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:D.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 I0(a){return i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopPropagation(),a())}}function xA({onPlay:a,PlayIcon:i,hasNarration:s=!1}){const u=i??W0,c=s?"Play walkthrough with narration":"Play demo";return D.jsxs(An.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:I0(a),role:"button",tabIndex:0,"aria-label":c,children:[D.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:D.jsx(u,{size:28,className:"ml-1 text-neutral-900"})}),s&&D.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:[D.jsx($0,{size:14}),c]})]})}function EA({onResume:a,PlayIcon:i}){const s=i??W0;return D.jsx(An.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:I0(a),role:"button",tabIndex:0,"aria-label":"Resume demo",children:D.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:D.jsx(s,{size:24,className:"ml-1 text-neutral-900"})})})}function AA({onEnableAudio:a}){return D.jsxs(An.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:[D.jsx($0,{size:14}),"Tap to enable audio"]})}const MA=[.5,1,1.5,2];function CA({playbackRate:a,onSelectSpeed:i}){const[s,u]=C.useState(!1),c=C.useRef(null);return C.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]),D.jsxs("div",{ref:c,className:"relative",children:[D.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-white/75 transition-colors hover:text-white","aria-label":`Playback speed: ${a}x`,"aria-haspopup":"true","aria-expanded":s,children:[a,"x"]}),D.jsx(Ru,{children:s&&D.jsx(An.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:MA.map(d=>D.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:[D.jsxs("span",{children:[d,"x"]}),d===a&&D.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},d))})})]})}function DA({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=C.useMemo(()=>c.stepStartTimesMs.slice(1).map(w=>w/c.totalDurationMs*100),[c]),E=C.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 D.jsxs(An.div,{className:"absolute inset-x-0 bottom-0 z-20 rounded-b-lg bg-gradient-to-t from-black/60 via-black/25 to-transparent px-3 pb-1.5 pt-8",initial:!1,animate:{opacity:a?1:0},transition:{duration:.2},style:{pointerEvents:a?"auto":"none"},onClick:w=>w.stopPropagation(),children:[D.jsxs("div",{className:"group relative mb-2 h-1 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 hover:h-1.5",onClick:E,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[D.jsx("div",{ref:m,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),D.jsx("div",{ref:y,className:"absolute top-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white opacity-0 shadow-sm transition-opacity group-hover:opacity-100"}),x.map((w,_)=>D.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${w}%`}},_))]}),D.jsxs("div",{className:"flex items-center gap-1.5",children:[D.jsx("button",{onClick:w=>{w.stopPropagation(),p()},className:"flex h-6 w-6 items-center justify-center rounded text-white/75 transition-colors hover:text-white","aria-label":i?"Pause":"Play",children:i?D.jsx(wA,{}):D.jsx(RA,{})}),f&&D.jsx("button",{onClick:w=>{w.stopPropagation(),v()},className:"flex h-6 w-6 items-center justify-center rounded text-white/75 transition-colors hover:text-white","aria-label":s?"Unmute narration":"Mute narration",children:s?D.jsx(OA,{}):D.jsx(zA,{})}),d&&D.jsx(CA,{playbackRate:u,onSelectSpeed:g})]})]})}function RA(){return D.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:D.jsx("path",{d:"M8 5v14l11-7z"})})}function wA(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[D.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),D.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function zA(){return D.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:[D.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),D.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),D.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function OA(){return D.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:[D.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),D.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),D.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function _A(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=C.useRef(s);u.current=s;const c=C.useRef(null),d=C.useRef(a.controls);d.current=a.controls;const f=C.useCallback(v=>{!u.current||typeof window>"u"||window.parent.postMessage($S(v),c.current??"*")},[]),m=C.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}},[]);C.useEffect(()=>{if(!s)return;const v=g=>{if(g.source!==window.parent)return;const b=tb(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]),C.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=C.useRef(!1);C.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;C.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]),C.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]),C.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const VA=3e3;function jA({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=lA(),{isVideoExport:g,hideControls:b,initialMuted:x}=Pc(),E=y.length-1,w=C.useRef(null),[_,B]=C.useState(()=>{if(typeof window>"u")return 1;const ue=new URLSearchParams(window.location.search).get("__test_speed"),ze=ue?Number(ue):NaN;return ze>0&&ze<=16?ze:1}),Y=g?x:!1,[U,X]=C.useState(Y),K=bA({steps:y,narrationManifest:p,muted:U,playbackRate:_,isVideoExport:g,prefersReducedMotion:v}),{stepIndex:I,playbackState:k,playing:P,play:Z,pause:J,togglePlay:nt,seekToTime:lt,seekOffsetRef:Ct,seekGeneration:Et,handleClipEnded:zt}=K,j=C.useRef(null);C.useEffect(()=>{if(!g)return j.current=lb(()=>{J()}),()=>{var ue;return(ue=j.current)==null?void 0:ue.unregister()}},[g,J]),C.useEffect(()=>{const ue=w.current;if(!ue||g)return;const ze=new IntersectionObserver(([Cn])=>{!(Cn!=null&&Cn.isIntersecting)&&P&&J()},{threshold:.5});return ze.observe(ue),()=>ze.disconnect()},[g,P,J]);const{muted:Q,toggleMute:W,audioRef:rt,seekToStep:ft,audioBlocked:A,unlock:H,setVolume:F,prefetch:$}=ub({manifest:p,stepIndex:I,playing:P,initialMuted:Y,playbackRate:_,onClipEnded:zt});C.useEffect(()=>{X(Q)},[Q]);const st=C.useMemo(()=>QS(y,Q?null:p),[y,Q,p]);C.useEffect(()=>{c==null||c(y[I].data,I)},[I,y,c]);const[ht,St]=C.useState(!0),Lt=C.useRef(void 0),Vt=C.useCallback(()=>{Lt.current&&clearTimeout(Lt.current),Lt.current=setTimeout(()=>St(!1),VA)},[]),ia=C.useCallback(()=>{St(!0),k==="playing"&&Vt()},[k,Vt]);C.useEffect(()=>(k!=="playing"?(St(!0),Lt.current&&clearTimeout(Lt.current)):Vt(),()=>{Lt.current&&clearTimeout(Lt.current)}),[k,Vt]);const Mn=C.useCallback(()=>{H(),Z(),j.current&&Lp(j.current.id)},[Z,H]),wa=C.useCallback(ue=>{const ze=Math.max(0,Math.min(ue,st.totalDurationMs)),Cn=xc(ze,st.stepStartTimesMs,E),oe=st.stepStartTimesMs[Cn]??0;ft(Cn,Math.max(0,ze-oe)),lt(ze,st),j.current&&Lp(j.current.id)},[lt,ft,st,E]),Ul=C.useCallback(()=>{k!=="idle"&&nt()},[k,nt]),ln=C.useCallback(()=>{H()},[H]),za=C.useRef(null),Oa=C.useRef(null);TA(P,k,I,E,_,st,za,Oa,Ct,Et),_A({enabled:m,containerRef:w,playbackState:k,stepIndex:I,totalSteps:y.length,stepTimeline:st,hasNarration:!!p,audioBlocked:A,controls:{play:Mn,pause:J,seekToTime:wa,setMuted:ue=>{Q!==ue&&W()},setVolume:F,prefetch:$}});const Nu=k==="idle"&&!g&&!v,Ll=k==="paused"&&!g,_a=k!=="idle"&&!b,Ri=A&&!g&&k!=="idle";return D.jsxs("div",{ref:w,className:u,"data-demo-step":I,"data-demo-state":k,"data-demo-total-steps":y.length,"data-demo-audio-blocked":A?"":void 0,onMouseMove:_a?ia:void 0,children:[D.jsxs("div",{className:"relative",onClick:Ul,style:{cursor:k!=="idle"?"pointer":void 0},children:[s(y[I].data,I),D.jsxs(Ru,{children:[Nu&&D.jsx(xA,{onPlay:Mn,hasNarration:!!p}),Ll&&D.jsx(EA,{onResume:Mn}),Ri&&D.jsx(AA,{onEnableAudio:ln})]}),_a&&D.jsx(DA,{visible:ht,playing:P,muted:Q,playbackRate:_,stepTimeline:st,showSpeedControl:f,hasNarration:!!p,progressTrackRef:za,playheadRef:Oa,onTogglePlay:nt,onToggleMute:W,onSelectSpeed:B,onSeekToTime:wa})]}),p&&D.jsx("audio",{ref:rt,preload:"none",hidden:!0})]})}function Ai(a,i){if(!a||!i)return null;const s=i.querySelector(Ti(a));return!s||!(s instanceof HTMLElement)?null:s}function NA(a,i){if(!a||!i)return null;const s=i.querySelector(WS(a));return s||null}function BA(a,i){if(!i)return null;const s=i.querySelector(Ti(a));return s?s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s:s.querySelector("input, textarea"):null}function tv(a,i){const s=NA(a.target,i.containerRef.current);s&&(i.isVideoExport?JS(s):rg(s))}function ev(a,i){i.setCursorTarget(a.target)}function nv(a,i){i.setCursorTarget(void 0)}function av(a,i){const s=Ai(a.target,i.containerRef.current);s&&s.click()}function iv(a,i,s){var f;if(!a.target)return;const u=BA(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 lv(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 sv(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 uv(a,i){const s=Ai(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function rv(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 UA=1.5;function LA(a,i,s){const u=s.querySelector(Ti(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 ov(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??UA,c=LA(a.target,u,s);c&&i.setViewportTransform(c)}function HA(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;C.useEffect(()=>{var v;const f=(v=c[s])==null?void 0:v.interactions;if(!f||f.length===0)return;const m=ig(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(()=>av(g,i),b+It/y));else if(g.type==="type"){const x=g.text??"";if(x.length===0)continue;const E=g.typeDelay??lg;p.push(setTimeout(()=>i.setCursorTarget(g.target),b));const w=b+It/y;for(let _=0;_<x.length;_++){const B=x.substring(0,_+1);p.push(setTimeout(()=>iv(g,B,i),w+_*E/y))}}else if(g.type==="hover"){const x=g.hoverDuration??sg;p.push(setTimeout(()=>{var E;(E=i.setShowRipple)==null||E.call(i,!1),i.setCursorTarget(g.target)},b)),p.push(setTimeout(()=>lv(g,i),b+It/y)),p.push(setTimeout(()=>{var E;sv(g,i),(E=i.setShowRipple)==null||E.call(i,!0)},b+(It+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),uv(g,i)},b+It/y)),p.push(setTimeout(()=>i.setCursorTarget(g.dragTarget),b+(It+vu)/y)),p.push(setTimeout(()=>{var x,E;rv(g,i),(x=i.setDragging)==null||x.call(i,!1),(E=i.setShowRipple)==null||E.call(i,!0)},b+(It+vu+It)/y))):g.type==="viewport_transition"?p.push(setTimeout(()=>ov(g,i),b)):p.push(setTimeout(()=>YA(g,i),b))}return()=>{for(const g of p)clearTimeout(g)}},[s,u,i,c,d])}function YA(a,i){switch(a.type){case"scroll_to":tv(a,i);break;case"set_cursor":ev(a,i);break;case"clear_cursor":nv(a,i);break;default:i.setCursorTarget(a.target);break}}function qA(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=C.useRef(new Set);C.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:ig(u,c,d),b=s.currentTimeMs-p;for(const E of y){const w=E.atPercent*g;if(E.type==="click")m(`${u}-${E.atPercent}-click-cursor`,b,w,()=>{i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-click-dispatch`,b,w+It,()=>{av(E,i)});else if(E.type==="type"){const _=E.text??"";if(_.length===0)continue;const B=E.typeDelay??lg;m(`${u}-${E.atPercent}-type-cursor`,b,w,()=>{i.setCursorTarget(E.target)});const Y=w+It;if(b>=Y){const U=Math.min(Math.floor((b-Y)/B)+1,_.length);m(`${u}-${E.atPercent}-type-char-${U}`,b,0,()=>{iv(E,_.substring(0,U),i)})}}else if(E.type==="hover"){const _=E.hoverDuration??sg;m(`${u}-${E.atPercent}-hover-cursor`,b,w,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-hover-enter`,b,w+It,()=>{lv(E,i)}),m(`${u}-${E.atPercent}-hover-leave`,b,w+It+_,()=>{var B;sv(E,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else E.type==="drag"?(m(`${u}-${E.atPercent}-drag-cursor`,b,w,()=>{var _;(_=i.setShowRipple)==null||_.call(i,!1),i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-drag-press`,b,w+It,()=>{var _;(_=i.setDragging)==null||_.call(i,!0),uv(E,i)}),m(`${u}-${E.atPercent}-drag-move`,b,w+It+vu,()=>{i.setCursorTarget(E.dragTarget)}),m(`${u}-${E.atPercent}-drag-release`,b,w+It+vu+It,()=>{var _,B;rv(E,i),(_=i.setDragging)==null||_.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):E.type==="viewport_transition"?m(`${u}-${E.atPercent}-viewport`,b,w,()=>{ov(E,i)}):m(`${u}-${E.atPercent}-${E.type}`,b,w,()=>{GA(E,i)})}}),C.useEffect(()=>{f.current.clear()},[u]);function m(y,p,v,g){p>=v&&!f.current.has(y)&&(f.current.add(y),g())}}function GA(a,i){switch(a.type){case"scroll_to":tv(a,i);break;case"set_cursor":ev(a,i);break;case"clear_cursor":nv(a,i);break;default:i.setCursorTarget(a.target);break}}function XA(a){const i=Jc(),{isVideoExport:s}=Pc(),u=C.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?qA(a,u,i):HA(a,u)}const eg="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 cv=(...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 kA=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 ZA=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 ng=a=>{const i=ZA(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 vc={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 QA=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},KA=C.createContext({}),JA=()=>C.useContext(KA),PA=C.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=""}=JA()??{},E=u??g?Number(s??v)*24/Number(i??p):s??v;return C.createElement("svg",{ref:y,...vc,width:i??p??vc.width,height:i??p??vc.height,stroke:a??b,strokeWidth:E,className:cv("lucide",x,c),...!d&&!QA(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,_])=>C.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=C.forwardRef(({className:u,...c},d)=>C.createElement(PA,{ref:d,iconNode:i,className:cv(`lucide-${kA(ng(a))}`,`lucide-${a}`,u),...c}));return s.displayName=ng(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 FA=[["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"}]],WA=Pe("bell",FA);/**
|
|
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 $A=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],IA=Pe("chevron-left",$A);/**
|
|
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 tM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],eM=Pe("chevron-right",tM);/**
|
|
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 nM=[["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"}]],aM=Pe("ellipsis-vertical",nM);/**
|
|
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 iM=[["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"}]],lM=Pe("globe",iM);/**
|
|
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 sM=[["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"}]],uM=Pe("lock",sM);/**
|
|
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 rM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],oM=Pe("plus",rM);/**
|
|
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 cM=[["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"}]],fM=Pe("rotate-ccw",cM);/**
|
|
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 dM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hM=Pe("search",dM);/**
|
|
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 mM=[["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"}]],pM=Pe("star",mM);/**
|
|
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 yM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gM=Pe("x",yM),vM=420;function SM(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function bM({url:a,contentKey:i,slideDirection:s,children:u,zoom:c}){const d=s==="forward"?24:s==="backward"?-24:0;return D.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${vM}px)`,borderColor:"var(--scenar-border)",zoom:c??void 0},children:[D.jsxs("div",{className:"flex items-center bg-[#202124] px-2 pt-1.5",children:[D.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[D.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),D.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),D.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),D.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[#35363a] px-3 py-1.5",children:[D.jsx(lM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),D.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:SM(a)}),D.jsx(gM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),D.jsx(oM,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),D.jsx("div",{className:"flex-1"}),D.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:D.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),D.jsxs("div",{className:"flex items-center gap-2 bg-[#35363a] px-2 py-1",children:[D.jsxs("div",{className:"flex items-center gap-1",children:[D.jsx(IA,{className:"h-4 w-4 text-[#9aa0a6]"}),D.jsx(eM,{className:"h-4 w-4 text-[#9aa0a6]"}),D.jsx(fM,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),D.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[#202124] px-3 py-1.5",children:[D.jsx(uM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),D.jsx("span",{className:"truncate text-xs text-[#bdc1c6]",children:a})]}),D.jsxs("div",{className:"flex items-center gap-1",children:[D.jsx(pM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),D.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),D.jsx(aM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),D.jsx(An.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 TM({header:a,sidebar:i,children:s,rightPanel:u}){return D.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[a,D.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,D.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:s}),u]})]})}function xM({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 D.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:[D.jsxs("div",{className:"flex items-center gap-3",children:[D.jsxs("div",{className:"flex items-center gap-2",children:[i??D.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:D.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:f})}),a&&D.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:a})]}),s&&s.length>0&&D.jsx("nav",{className:"ml-4 flex items-center gap-1",children:s.map((y,p)=>D.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))})]}),D.jsxs("div",{className:"flex items-center gap-2.5",children:[!c&&D.jsx(hM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&D.jsx(WA,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),D.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:D.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:f})})]})]})}function EM({items:a,width:i=200}){return D.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 D.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 D.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&&D.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),s.icon&&D.jsx("span",{className:"shrink-0",children:s.icon}),D.jsx("span",{className:"truncate",children:s.label})]},u)})})}function fv({title:a,subtitle:i,headerSlot:s,fields:u,submitLabel:c="Submit",footerText:d,width:f=280,children:m}){return D.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:f},children:[(s||a)&&D.jsxs("div",{className:"mb-4 text-center",children:[s&&D.jsx("div",{className:"mb-2 flex justify-center",children:s}),a&&D.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:a}),i&&D.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),D.jsx("div",{className:"space-y-2.5",children:u.map((y,p)=>D.jsxs("div",{children:[D.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:y.label}),D.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"?D.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):y.value?D.jsx("span",{className:"text-[var(--scenar-foreground)]",children:y.value}):D.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:y.placeholder??""})})]},p))}),m,D.jsx("div",{className:"mt-4",children:D.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:c})}),d&&D.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 D.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:D.jsxs("table",{className:"w-full text-[12px]",children:[D.jsx("thead",{children:D.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:a.map(u=>D.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))})}),D.jsxs("tbody",{children:[i.length===0&&s&&D.jsx("tr",{children:D.jsx("td",{colSpan:a.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:s})}),i.map(u=>D.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:a.map(c=>D.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 MM={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 Sc({label:a,variant:i="neutral"}){return D.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${MM[i]}`,children:a})}function CM({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??D.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:D.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((b=a[0])==null?void 0:b.toUpperCase())??"A"})});return D.jsxs("div",{className:"flex h-full flex-col",style:{background:v},children:[y,D.jsx("div",{className:"flex flex-1 items-center justify-center",children:D.jsx("div",{"data-cursor-target":p,children:D.jsx(fv,{title:a,subtitle:s??"Sign in to your account",headerSlot:g,fields:u,submitLabel:c,footerText:d,width:f})})})]})}function bc({appName:a,logo:i,navLinks:s,userName:u,sidebarItems:c,sidebarWidth:d,children:f}){return D.jsx(TM,{header:D.jsx(xM,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?D.jsx(EM,{items:c,width:d}):void 0,children:f})}const DM=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function RM(a,i){return D.jsx(bM,{url:`https://${a.url}`,contentKey:String(i),children:zM(a.screen)})}const wM=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],Tc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function zM(a){switch(a){case"login":return D.jsx(CM,{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 D.jsx(bc,{appName:"Acme Cloud",userName:"Jordan",navLinks:wM,sidebarItems:Tc,children:D.jsxs("div",{className:"p-5",children:[D.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[D.jsx("img",{src:DM,alt:"Acme Cloud",width:24,height:24,className:"rounded"}),D.jsx("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"})]}),D.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=>D.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[D.jsx("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value}),D.jsx("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label})]},i.label))})]})});case"projects":return D.jsx(bc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:Tc,children:D.jsxs("div",{className:"p-5",children:[D.jsx("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"}),D.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:D.jsx(Sc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:D.jsx(Sc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:D.jsx(Sc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return D.jsx(bc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:Tc,children:D.jsx("div",{className:"flex justify-center p-6",children:D.jsx(fv,{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 OM=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"}},{delayMs:2400,data:{url:"app.acme.cloud/home",screen:"dashboard"}},{delayMs:2600,data:{url:"app.acme.cloud/projects",screen:"projects"}},{delayMs:2600,data:{url:"app.acme.cloud/settings",screen:"settings"}}],_M=Object.freeze(Object.defineProperty({__proto__:null,steps:OM},Symbol.toStringTag,{value:"Module"}));function VM(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 ag=VM(_M),jM=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),dv=jM==="dark"?eg+" dark":eg;window.parent===window&&(document.body.classList.add(...dv.split(" ")),document.body.style.background="var(--scenar-surface)");function NM(){const a=C.useRef(null),[i,s]=C.useState(0),[u,c]=C.useState(void 0),[d,f]=C.useState(!0),[m,y]=C.useState(!1),[p,v]=C.useState(kS),g=C.useCallback((x,E)=>{s(E),c(void 0)},[]);XA({stepIndex:i,narrationManifest:void 0,containerRef:a,setCursorTarget:c,setShowRipple:f,setDragging:y,setViewportTransform:v,steps:ag});const b={id:"welcome-tour",steps:ag,narrationManifest:void 0};return D.jsx("div",{className:dv,children:D.jsxs(SA,{containerRef:a,canonicalWidth:896,shellHeight:480,children:[D.jsx(pA,{transform:p,children:D.jsx(jA,{bundle:b,embed:!0,onStepChange:g,children:(x,E)=>RM(x,E)})}),D.jsx(fA,{target:u,containerRef:a,showRipple:d,isDragging:m})]})})}const hv=document.getElementById("root");if(!hv)throw new Error("Embed root element #root not found");XS.createRoot(hv).render(D.jsx(NM,{}));
|