storyink 0.3.2 → 0.3.3
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/CHANGELOG.md +19 -0
- package/README.md +2 -1
- package/dist/chunks/{index-5qmjsg8w.js → index-wpcz893s.js} +10 -5
- package/dist/chunks/{index-n3gf4fyb.js → index-xmj21twd.js} +122 -30
- package/dist/cli.js +130 -33
- package/dist/core/index.js +9 -1
- package/dist/index.js +10 -2
- package/dist/node/index.js +2 -2
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/render/Story.d.ts +13 -1
- package/dist/types/core/story/state.d.ts +22 -0
- package/dist/types/generated/meta.d.ts +1 -1
- package/dist/types/generated/viewer.d.ts +1 -1
- package/docs/spec.md +19 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VIEWER_JS = "/*! storyink viewer 0.3.2 | MIT\n * Bundles:\n * react 19.3.0, react-dom 19.3.0, scheduler 0.28.0\n * MIT License. Copyright (c) Meta Platforms, Inc. and affiliates.\n * motion 13.4.3 (framer-motion 13.4.3, motion-dom 13.4.2, motion-utils 13.3.0)\n * MIT License. Copyright (c) 2024 Motion B.V.; Copyright (c) 2018 Framer B.V.\n * @kitlangton/rolling-number 0.4.1\n * MIT License. Copyright (c) 2026 Kit Langton.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n * associated documentation files (the \"Software\"), to deal in the Software without restriction,\n * including without limitation the rights to use, copy, modify, merge, publish, distribute,\n * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions: The above copyright notice and this\n * permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.\n */\n(()=>{var oE=Object.create;var{getPrototypeOf:rE,defineProperty:gg,getOwnPropertyNames:lE}=Object;var sE=Object.prototype.hasOwnProperty;function uE(t){return this[t]}var cE,fE,I=(t,e,n)=>{var i=t!=null&&typeof t===\"object\";if(i){var a=e?cE??=new WeakMap:fE??=new WeakMap,o=a.get(t);if(o)return o}n=t!=null?oE(rE(t)):{};let r=e||!t||!t.__esModule?gg(n,\"default\",{value:t,enumerable:!0}):n;if(t&&typeof t===\"object\"||typeof t===\"function\"){for(let l of lE(t))if(!sE.call(r,l))gg(r,l,{get:uE.bind(t,l),enumerable:!0})}if(i)a.set(t,r);return r};var vn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Eg=vn(function(Mt){function Df(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,a=t[i];if(0<zs(a,e))t[i]=e,t[n]=a,n=i;else break t}}function xn(t){return t.length===0?null:t[0]}function Us(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,a=t.length,o=a>>>1;i<o;){var r=2*(i+1)-1,l=t[r],s=r+1,c=t[s];if(0>zs(l,n))s<a&&0>zs(c,l)?(t[i]=c,t[s]=n,i=s):(t[i]=l,t[r]=n,i=r);else if(s<a&&0>zs(c,n))t[i]=c,t[s]=n,i=s;else break t}}return e}function zs(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Mt.unstable_now=void 0;if(typeof performance===\"object\"&&typeof performance.now===\"function\")zf=performance,Mt.unstable_now=function(){return zf.now()};else Rs=Date,Rf=Rs.now(),Mt.unstable_now=function(){return Rs.now()-Rf};var zf,Rs,Rf,qn=[],ci=[],mE=1,ke=null,se=3,_f=!1,Rr=!1,_r=!1,Uf=!1,vg=typeof setTimeout===\"function\"?setTimeout:null,xg=typeof clearTimeout===\"function\"?clearTimeout:null,yg=typeof setImmediate<\"u\"?setImmediate:null;function _s(t){for(var e=xn(ci);e!==null;){if(e.callback===null)Us(ci);else if(e.startTime<=t)Us(ci),e.sortIndex=e.expirationTime,Df(qn,e);else break;e=xn(ci)}}function Hf(t){if(_r=!1,_s(t),!Rr)if(xn(qn)!==null)Rr=!0,Pa||(Pa=!0,Ja());else{var e=xn(ci);e!==null&&Lf(Hf,e.startTime-t)}}var Pa=!1,Br=-1,bg=5,Sg=-1;function Tg(){return Uf?!0:Mt.unstable_now()-Sg<bg?!1:!0}function Vf(){if(Uf=!1,Pa){var t=Mt.unstable_now();Sg=t;var e=!0;try{t:{Rr=!1,_r&&(_r=!1,xg(Br),Br=-1),_f=!0;var n=se;try{e:{_s(t);for(ke=xn(qn);ke!==null&&!(ke.expirationTime>t&&Tg());){var i=ke.callback;if(typeof i===\"function\"){ke.callback=null,se=ke.priorityLevel;var a=i(ke.expirationTime<=t);if(t=Mt.unstable_now(),typeof a===\"function\"){ke.callback=a,_s(t),e=!0;break e}ke===xn(qn)&&Us(qn),_s(t)}else Us(qn);ke=xn(qn)}if(ke!==null)e=!0;else{var o=xn(ci);o!==null&&Lf(Hf,o.startTime-t),e=!1}}break t}finally{ke=null,se=n,_f=!1}e=void 0}}finally{e?Ja():Pa=!1}}}var Ja;if(typeof yg===\"function\")Ja=function(){yg(Vf)};else if(typeof MessageChannel<\"u\")Bs=new MessageChannel,Bf=Bs.port2,Bs.port1.onmessage=Vf,Ja=function(){Bf.postMessage(null)};else Ja=function(){vg(Vf,0)};var Bs,Bf;function Lf(t,e){Br=vg(function(){t(Mt.unstable_now())},e)}Mt.unstable_IdlePriority=5;Mt.unstable_ImmediatePriority=1;Mt.unstable_LowPriority=4;Mt.unstable_NormalPriority=3;Mt.unstable_Profiling=null;Mt.unstable_UserBlockingPriority=2;Mt.unstable_cancelCallback=function(t){t.callback=null};Mt.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):bg=0<t?Math.floor(1000/t):5};Mt.unstable_getCurrentPriorityLevel=function(){return se};Mt.unstable_next=function(t){switch(se){case 1:case 2:case 3:var e=3;break;default:e=se}var n=se;se=e;try{return t()}finally{se=n}};Mt.unstable_requestPaint=function(){Uf=!0};Mt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=se;se=t;try{return e()}finally{se=n}};Mt.unstable_scheduleCallback=function(t,e,n){var i=Mt.unstable_now();switch(typeof n===\"object\"&&n!==null?(n=n.delay,n=typeof n===\"number\"&&0<n?i+n:i):n=i,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5000}return a=n+a,t={id:mE++,callback:e,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>i?(t.sortIndex=n,Df(ci,t),xn(qn)===null&&t===xn(ci)&&(_r?(xg(Br),Br=-1):_r=!0,Lf(Hf,n-i))):(t.sortIndex=a,Df(qn,t),Rr||_f||(Rr=!0,Pa||(Pa=!0,Ja()))),t};Mt.unstable_shouldYield=Tg;Mt.unstable_wrapCallback=function(t){var e=se;return function(){var n=se;se=e;try{return t.apply(this,arguments)}finally{se=n}}}});var Ag=vn(function(kC,Mg){Mg.exports=Eg()});var Lg=vn(function(H){var qf=Symbol.for(\"react.transitional.element\"),dE=Symbol.for(\"react.portal\"),pE=Symbol.for(\"react.fragment\"),hE=Symbol.for(\"react.strict_mode\"),gE=Symbol.for(\"react.profiler\"),yE=Symbol.for(\"react.consumer\"),vE=Symbol.for(\"react.context\"),xE=Symbol.for(\"react.forward_ref\"),bE=Symbol.for(\"react.suspense\"),SE=Symbol.for(\"react.memo\"),Vg=Symbol.for(\"react.lazy\"),TE=Symbol.for(\"react.activity\"),EE=Symbol.for(\"react.view_transition\"),wg=Symbol.iterator;function ME(t){if(t===null||typeof t!==\"object\")return null;return t=wg&&t[wg]||t[\"@@iterator\"],typeof t===\"function\"?t:null}var Dg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zg=Object.assign,Rg={};function Wa(t,e,n){this.props=t,this.context=e,this.refs=Rg,this.updater=n||Dg}Wa.prototype.isReactComponent={};Wa.prototype.setState=function(t,e){if(typeof t!==\"object\"&&typeof t!==\"function\"&&t!=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,t,e,\"setState\")};Wa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\"forceUpdate\")};function _g(){}_g.prototype=Wa.prototype;function Yf(t,e,n){this.props=t,this.context=e,this.refs=Rg,this.updater=n||Dg}var Xf=Yf.prototype=new _g;Xf.constructor=Yf;zg(Xf,Wa.prototype);Xf.isPureReactComponent=!0;var Cg=Array.isArray;function jf(){}var xt={H:null,A:null,T:null,S:null},Bg=Object.prototype.hasOwnProperty;function Kf(t,e,n){var i=n.ref;return{$$typeof:qf,type:t,key:e,ref:i!==void 0?i:null,props:n}}function AE(t,e){return Kf(t.type,e,t.props)}function Zf(t){return typeof t===\"object\"&&t!==null&&t.$$typeof===qf}function wE(t){var e={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+t.replace(/[=:]/g,function(n){return e[n]})}var Og=/\\/+/g;function Gf(t,e){return typeof t===\"object\"&&t!==null&&t.key!=null?wE(\"\"+t.key):e.toString(36)}function CE(t){switch(t.status){case\"fulfilled\":return t.value;case\"rejected\":throw t.reason;default:switch(typeof t.status===\"string\"?t.then(jf,jf):(t.status=\"pending\",t.then(function(e){t.status===\"pending\"&&(t.status=\"fulfilled\",t.value=e)},function(e){t.status===\"pending\"&&(t.status=\"rejected\",t.reason=e)})),t.status){case\"fulfilled\":return t.value;case\"rejected\":throw t.reason}}throw t}function Ia(t,e,n,i,a){var o=typeof t;if(o===\"undefined\"||o===\"boolean\")t=null;var r=!1;if(t===null)r=!0;else switch(o){case\"bigint\":case\"string\":case\"number\":r=!0;break;case\"object\":switch(t.$$typeof){case qf:case dE:r=!0;break;case Vg:return r=t._init,Ia(r(t._payload),e,n,i,a)}}if(r)return a=a(t),r=i===\"\"?\".\"+Gf(t,0):i,Cg(a)?(n=\"\",r!=null&&(n=r.replace(Og,\"$&/\")+\"/\"),Ia(a,e,n,\"\",function(c){return c})):a!=null&&(Zf(a)&&(a=AE(a,n+(a.key==null||t&&t.key===a.key?\"\":(\"\"+a.key).replace(Og,\"$&/\")+\"/\")+r)),e.push(a)),1;r=0;var l=i===\"\"?\".\":i+\":\";if(Cg(t))for(var s=0;s<t.length;s++)i=t[s],o=l+Gf(i,s),r+=Ia(i,e,n,o,a);else if(s=ME(t),typeof s===\"function\")for(t=s.call(t),s=0;!(i=t.next()).done;)i=i.value,o=l+Gf(i,s++),r+=Ia(i,e,n,o,a);else if(o===\"object\"){if(typeof t.then===\"function\")return Ia(CE(t),e,n,i,a);throw e=String(t),Error(\"Objects are not valid as a React child (found: \"+(e===\"[object Object]\"?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e)+\"). If you meant to render a collection of children, use an array instead.\")}return r}function Hs(t,e,n){if(t==null)return t;var i=[],a=0;return Ia(t,i,\"\",\"\",function(o){return e.call(n,o,a++)}),i}function OE(t){if(t._status===-1){var e=t._result,n=e();n.then(function(i){if(t._status===0||t._status===-1)t._status=1,t._result=i,n.status===void 0&&(n.status=\"fulfilled\",n.value=i)},function(i){if(t._status===0||t._status===-1)t._status=2,t._result=i,n.status===void 0&&(n.status=\"rejected\",n.reason=i)}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var Ng=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)};function Ug(t){var e=xt.T,n={};n.types=e!==null?e.types:null,xt.T=n;try{var i=t(),a=xt.S;a!==null&&a(n,i),typeof i===\"object\"&&i!==null&&typeof i.then===\"function\"&&i.then(jf,Ng)}catch(o){Ng(o)}finally{e!==null&&n.types!==null&&(e.types=n.types),xt.T=e}}function Hg(t){var e=xt.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else Ug(Hg.bind(null,t))}var NE={map:Hs,forEach:function(t,e,n){Hs(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Hs(t,function(){e++}),e},toArray:function(t){return Hs(t,function(e){return e})||[]},only:function(t){if(!Zf(t))throw Error(\"React.Children.only expected to receive a single React element child.\");return t}};H.Activity=TE;H.Children=NE;H.Component=Wa;H.Fragment=pE;H.Profiler=gE;H.PureComponent=Yf;H.StrictMode=hE;H.Suspense=bE;H.ViewTransition=EE;H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;H.__COMPILER_RUNTIME={__proto__:null,c:function(t){return xt.H.useMemoCache(t)}};H.addTransitionType=Hg;H.cache=function(t){return function(){return t.apply(null,arguments)}};H.cacheSignal=function(){return null};H.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error(\"The argument must be a React element, but you passed \"+t+\".\");var i=zg({},t.props),a=t.key;if(e!=null)for(o in e.key!==void 0&&(a=\"\"+e.key),e)!Bg.call(e,o)||o===\"key\"||o===\"__self\"||o===\"__source\"||o===\"ref\"&&e.ref===void 0||(i[o]=e[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var r=Array(o),l=0;l<o;l++)r[l]=arguments[l+2];i.children=r}return Kf(t.type,a,i)};H.createContext=function(t){return t={$$typeof:vE,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:yE,_context:t},t};H.createElement=function(t,e,n){var i,a={},o=null;if(e!=null)for(i in e.key!==void 0&&(o=\"\"+e.key),e)Bg.call(e,i)&&i!==\"key\"&&i!==\"__self\"&&i!==\"__source\"&&(a[i]=e[i]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var l=Array(r),s=0;s<r;s++)l[s]=arguments[s+2];a.children=l}if(t&&t.defaultProps)for(i in r=t.defaultProps,r)a[i]===void 0&&(a[i]=r[i]);return Kf(t,o,a)};H.createRef=function(){return{current:null}};H.forwardRef=function(t){return{$$typeof:xE,render:t}};H.isValidElement=Zf;H.lazy=function(t){return{$$typeof:Vg,_payload:{_status:-1,_result:t},_init:OE}};H.memo=function(t,e){return{$$typeof:SE,type:t,compare:e===void 0?null:e}};H.startTransition=Ug;H.unstable_useCacheRefresh=function(){return xt.H.useCacheRefresh()};H.use=function(t){return xt.H.use(t)};H.useActionState=function(t,e,n){return xt.H.useActionState(t,e,n)};H.useCallback=function(t,e){return xt.H.useCallback(t,e)};H.useContext=function(t){return xt.H.useContext(t)};H.useDebugValue=function(){};H.useDeferredValue=function(t,e){return xt.H.useDeferredValue(t,e)};H.useEffect=function(t,e){return xt.H.useEffect(t,e)};H.useEffectEvent=function(t){return xt.H.useEffectEvent(t)};H.useId=function(){return xt.H.useId()};H.useImperativeHandle=function(t,e,n){return xt.H.useImperativeHandle(t,e,n)};H.useInsertionEffect=function(t,e){return xt.H.useInsertionEffect(t,e)};H.useLayoutEffect=function(t,e){return xt.H.useLayoutEffect(t,e)};H.useMemo=function(t,e){return xt.H.useMemo(t,e)};H.useOptimistic=function(t,e){return xt.H.useOptimistic(t,e)};H.useReducer=function(t,e,n){return xt.H.useReducer(t,e,n)};H.useRef=function(t){return xt.H.useRef(t)};H.useState=function(t){return xt.H.useState(t)};H.useSyncExternalStore=function(t,e,n){return xt.H.useSyncExternalStore(t,e,n)};H.useTransition=function(){return xt.H.useTransition()};H.version=\"19.3.0\"});var Et=vn(function(FC,Gg){Gg.exports=Lg()});var Yg=vn(function(ue){var VE=Et();function qg(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 fi(){}var pe={d:{f:fi,r:function(){throw Error(qg(522))},D:fi,C:fi,L:fi,m:fi,X:fi,S:fi,M:fi},p:0,findDOMNode:null},DE=Symbol.for(\"react.portal\"),zE=Symbol.for(\"react.recoverable\"),jg=Symbol.for(\"react.optimistic_key\");function RE(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:DE,key:i==null?null:i===jg?jg:\"\"+i,children:t,containerInfo:e,implementation:n}}var Ur=VE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ls(t,e){if(t===\"font\")return\"\";if(typeof e===\"string\")return e===\"use-credentials\"?e:\"\"}ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pe;ue.browser=function(t){return{$$typeof:zE,_reason:t}};ue.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(qg(299));return RE(t,e,null,n)};ue.flushSync=function(t){var e=Ur.T,n=pe.p;try{if(Ur.T=null,pe.p=2,t)return t()}finally{Ur.T=e,pe.p=n,pe.d.f()}};ue.preconnect=function(t,e){typeof t===\"string\"&&(e?(e=e.crossOrigin,e=typeof e===\"string\"?e===\"use-credentials\"?e:\"\":void 0):e=null,pe.d.C(t,e))};ue.prefetchDNS=function(t){typeof t===\"string\"&&pe.d.D(t)};ue.preinit=function(t,e){if(typeof t===\"string\"&&e&&typeof e.as===\"string\"){var n=e.as,i=Ls(n,e.crossOrigin),a=typeof e.integrity===\"string\"?e.integrity:void 0,o=typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0;n===\"style\"?pe.d.S(t,typeof e.precedence===\"string\"?e.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n===\"script\"&&pe.d.X(t,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof e.nonce===\"string\"?e.nonce:void 0})}};ue.preinitModule=function(t,e){if(typeof t===\"string\")if(typeof e===\"object\"&&e!==null){if(e.as==null||e.as===\"script\"){var n=Ls(e.as,e.crossOrigin);pe.d.M(t,{crossOrigin:n,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0})}}else e==null&&pe.d.M(t)};ue.preload=function(t,e){if(typeof t===\"string\"&&typeof e===\"object\"&&e!==null&&typeof e.as===\"string\"){var n=e.as,i=Ls(n,e.crossOrigin);pe.d.L(t,n,{crossOrigin:i,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,type:typeof e.type===\"string\"?e.type:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy===\"string\"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet===\"string\"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes===\"string\"?e.imageSizes:void 0,media:typeof e.media===\"string\"?e.media:void 0})}};ue.preloadModule=function(t,e){if(typeof t===\"string\")if(e){var n=Ls(e.as,e.crossOrigin);pe.d.m(t,{as:typeof e.as===\"string\"&&e.as!==\"script\"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0})}else pe.d.m(t)};ue.requestFormReset=function(t){pe.d.r(t)};ue.unstable_batchedUpdates=function(t,e){return t(e)};ue.useFormState=function(t,e,n){return Ur.H.useFormState(t,e,n)};ue.useFormStatus=function(){return Ur.H.useHostTransitionStatus()};ue.version=\"19.3.0\"});var Qf=vn(function(PC,Kg){function Xg(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!==\"function\")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xg)}catch(t){console.error(t)}}Xg(),Kg.exports=Yg()});var Ox=vn(function(gc){var qt=Ag(),C0=Et(),_E=Qf();function C(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 O0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function wl(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function N0(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 V0(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 Zg(t){if(wl(t)!==t)throw Error(C(188))}function BE(t){var e=t.alternate;if(!e){if(e=wl(t),e===null)throw Error(C(188));return e!==t?null:t}for(var n=t,i=e;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Zg(a),t;if(o===i)return Zg(a),e;o=o.sibling}throw Error(C(188))}if(n.return!==i.return)n=a,i=o;else{for(var r=!1,l=a.child;l;){if(l===n){r=!0,n=a,i=o;break}if(l===i){r=!0,i=a,n=o;break}l=l.sibling}if(!r){for(l=o.child;l;){if(l===n){r=!0,n=o,i=a;break}if(l===i){r=!0,i=o,n=a;break}l=l.sibling}if(!r)throw Error(C(189))}}if(n.alternate!==i)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?t:e}function D0(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=D0(t),e!==null)return e;t=t.sibling}return null}function we(t,e,n,i,a,o){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,i,a,o)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&we(t.child,e,n,i,a,o))return!0;t=t.sibling}return!1}function Ta(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Qg(t){var e=!1;for(t=t.return;t!==null;){if(t.tag===4&&(e=!0),t.tag===3||t.tag===5||t.tag===27)break;t=t.return}return e}function z0(t){var e=[null,null],n=Ta(t);if(n===null)return e;return R0(e,t,n.child,{foundSelf:!1}),e}function R0(t,e,n,i){for(;n!==null;){if(n===e)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&R0(t,e,n.child,i))return!0;n=n.sibling}return!1}function jt(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(C(559))}}var ro=null,Em=null;function UE(t,e,n){return t===n?!0:t===e?(ro=t,!0):!1}function HE(t,e,n){return t===n?(Em=t,!1):t===e?(Em!==null&&(ro=t),!0):!1}function kg(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t?t:null}function Mm(t,e,n){for(var i=0,a=t;a;a=n(a))i++;a=0;for(var o=e;o;o=n(o))a++;for(;0<i-a;)t=n(t),i--;for(;0<a-i;)e=n(e),a--;for(;i--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var vt=Object.assign,LE=Symbol.for(\"react.element\"),Gs=Symbol.for(\"react.transitional.element\"),Yr=Symbol.for(\"react.portal\"),lo=Symbol.for(\"react.fragment\"),_0=Symbol.for(\"react.strict_mode\"),Am=Symbol.for(\"react.profiler\"),B0=Symbol.for(\"react.consumer\"),An=Symbol.for(\"react.context\"),Ud=Symbol.for(\"react.forward_ref\"),wm=Symbol.for(\"react.suspense\"),Cm=Symbol.for(\"react.suspense_list\"),Hd=Symbol.for(\"react.memo\"),hi=Symbol.for(\"react.lazy\"),Om=Symbol.for(\"react.activity\"),GE=Symbol.for(\"react.legacy_hidden\"),jE=Symbol.for(\"react.memo_cache_sentinel\"),Nm=Symbol.for(\"react.view_transition\"),qE=Symbol.for(\"react.recoverable\"),$g=Symbol.iterator;function Hr(t){if(t===null||typeof t!==\"object\")return null;return t=$g&&t[$g]||t[\"@@iterator\"],typeof t===\"function\"?t:null}var YE=Symbol.for(\"react.client.reference\");function Vm(t){if(t==null)return null;if(typeof t===\"function\")return t.$$typeof===YE?null:t.displayName||t.name||null;if(typeof t===\"string\")return t;switch(t){case lo:return\"Fragment\";case Am:return\"Profiler\";case _0:return\"StrictMode\";case wm:return\"Suspense\";case Cm:return\"SuspenseList\";case Om:return\"Activity\";case Nm:return\"ViewTransition\"}if(typeof t===\"object\")switch(t.$$typeof){case Yr:return\"Portal\";case An:return t.displayName||\"Context\";case B0:return(t._context.displayName||\"Context\")+\".Consumer\";case Ud:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||\"\",t=t!==\"\"?\"ForwardRef(\"+t+\")\":\"ForwardRef\"),t;case Hd:return e=t.displayName||null,e!==null?e:Vm(t.type)||\"Memo\";case hi:e=t._payload,t=t._init;try{return Vm(t(e))}catch(n){}}return null}var Xr=Array.isArray,B=C0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=_E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ua={pending:!1,data:null,method:null,action:null},Dm=[],so=-1;function zn(t){return{current:t}}function It(t){0>so||(t.current=Dm[so],Dm[so]=null,so--)}function Tt(t,e){so++,Dm[so]=t.current,t.current=e}var Nn=zn(null),cl=zn(null),Mi=zn(null),Tu=zn(null);function Eu(t,e){switch(Tt(Mi,e),Tt(cl,t),Tt(Nn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)?(t=t.namespaceURI)?r0(t):0:0;break;default:if(t=e.tagName,e=e.namespaceURI)e=r0(e),t=ix(e,t);else switch(t){case\"svg\":t=1;break;case\"math\":t=2;break;default:t=0}}It(Nn),Tt(Nn,t)}function No(){It(Nn),It(cl),It(Mi)}function zm(t){var e=t.memoizedState;e!==null&&(Go._currentValue=e.memoizedState,Tt(Tu,t)),e=Nn.current;var n=ix(e,t.type);e!==n&&(Tt(cl,t),Tt(Nn,n))}function Mu(t){cl.current===t&&(It(Nn),It(cl)),Tu.current===t&&(It(Tu),Go._currentValue=ua)}var kf,Fg;function di(t){if(kf===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\\n( *(at )?)/);kf=e&&e[1]||\"\",Fg=-1<n.stack.indexOf(`\n at`)?\" (<anonymous>)\":-1<n.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\n`+kf+t+Fg}var $f=!1;function Ff(t,e){if(!t||$f)return\"\";$f=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect===\"object\"&&Reflect.construct){try{Reflect.construct(f,[])}catch(y){var m=y}Reflect.construct(t,[],f)}else{try{f.call()}catch(y){m=y}f=!1;try{var d=Object.getOwnPropertyDescriptor(t.prototype,\"props\");Object.defineProperty(t.prototype,\"props\",{configurable:!0,set:function(){throw Error()}}),f=!0,new t}finally{f&&(d!==void 0?Object.defineProperty(t.prototype,\"props\",d):delete t.prototype.props)}}}else{try{throw Error()}catch(y){m=y}(f=t())&&typeof f.catch===\"function\"&&f.catch(function(){})}}catch(y){if(y&&m&&typeof y.stack===\"string\")return[y.stack,m.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,\"name\");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var o=i.DetermineComponentFrameRoot(),r=o[0],l=o[1];if(r&&l){var s=r.split(`\n`),c=l.split(`\n`);for(a=i=0;i<s.length&&!s[i].includes(\"DetermineComponentFrameRoot\");)i++;for(;a<c.length&&!c[a].includes(\"DetermineComponentFrameRoot\");)a++;if(i===s.length||a===c.length)for(i=s.length-1,a=c.length-1;1<=i&&0<=a&&s[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==c[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==c[a]){var u=`\n`+s[i].replace(\" at new \",\" at \");return t.displayName&&u.includes(\"<anonymous>\")&&(u=u.replace(\"<anonymous>\",t.displayName)),u}while(1<=i&&0<=a);break}}}finally{$f=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:\"\")?di(n):\"\"}function XE(t,e){switch(t.tag){case 26:case 27:case 5:return di(t.type);case 16:return di(\"Lazy\");case 13:return t.child!==e&&e!==null?di(\"Suspense Fallback\"):di(\"Suspense\");case 19:return di(\"SuspenseList\");case 0:case 15:return Ff(t.type,!1);case 11:return Ff(t.type.render,!1);case 1:return Ff(t.type,!0);case 31:return di(\"Activity\");case 30:return di(\"ViewTransition\");default:return\"\"}}function Jg(t){try{var e=\"\",n=null;do e+=XE(t,n),n=t,t=t.return;while(t);return e}catch(i){return`\nError generating stack: `+i.message+`\n`+i.stack}}var Rm=Object.prototype.hasOwnProperty,Ld=qt.unstable_scheduleCallback,Jf=qt.unstable_cancelCallback,KE=qt.unstable_shouldYield,ZE=qt.unstable_requestPaint,He=qt.unstable_now,QE=qt.unstable_getCurrentPriorityLevel,U0=qt.unstable_ImmediatePriority,H0=qt.unstable_UserBlockingPriority,Au=qt.unstable_NormalPriority,kE=qt.unstable_LowPriority,L0=qt.unstable_IdlePriority,$E=qt.log,FE=qt.unstable_setDisableYieldValue,Cl=null,Le=null;function vi(t){if(typeof $E===\"function\"&&FE(t),Le&&typeof Le.setStrictMode===\"function\")try{Le.setStrictMode(Cl,t)}catch(e){}}var Ge=Math.clz32?Math.clz32:IE,JE=Math.log,PE=Math.LN2;function IE(t){return t>>>=0,t===0?32:31-(JE(t)/PE|0)|0}var js=256,qs=262144,Ys=4194304;function ia(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t;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 Pu(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var a=0,o=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var l=i&134217727;return l!==0?(i=l&~o,i!==0?a=ia(i):(r&=l,r!==0?a=ia(r):n||(n=l&~t,n!==0&&(a=ia(n))))):(l=i&~o,l!==0?a=ia(l):r!==0?a=ia(r):n||(n=i&~t,n!==0&&(a=ia(n)))),a===0?0:e!==0&&e!==a&&(e&o)===0&&(o=a&-a,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:a}function Ol(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function G0(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-Ge(n),a=1<<i;e|=t[i],n&=~a}return e}function WE(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+5000;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 j0(){var t=Ys;return Ys<<=1,(Ys&62914560)===0&&(Ys=4194304),t}function Pf(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Nl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function tM(t,e,n,i,a,o){var r=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{entanglements:l,expirationTimes:s,hiddenUpdates:c}=t;for(n=r&~n;0<n;){var u=31-Ge(n),f=1<<u;l[u]=0,s[u]=-1;var m=c[u];if(m!==null)for(c[u]=null,u=0;u<m.length;u++){var d=m[u];d!==null&&(d.lane&=-536870913)}n&=~f}i!==0&&q0(t,i,0),o!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=o&~(r&~e))}function q0(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Ge(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Y0(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Ge(n),a=1<<i;a&e|t[i]&e&&(t[i]|=e),n&=~a}}function X0(t,e){var n=e&-e;return n=(n&42)!==0?1:Gd(n),(n&(t.suspendedLanes|e))!==0?0:n}function Gd(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 jd(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function K0(){var t=ot.p;if(t!==0)return t;return t=window.event,t===void 0?32:Ax(t.type)}function Pg(t,e){var n=ot.p;try{return ot.p=t,e()}finally{ot.p=n}}var ti=Math.random().toString(36).slice(2),Jt=\"__reactFiber$\"+ti,Ce=\"__reactProps$\"+ti,Yo=\"__reactContainer$\"+ti,Ig=\"__reactEvents$\"+ti,eM=\"__reactListeners$\"+ti,nM=\"__reactHandles$\"+ti,Wg=\"__reactResources$\"+ti,Vl=\"__reactMarker$\"+ti,wu=\"__reactLoad$\"+ti;function Iu(t){delete t[Jt],delete t[Ce],delete t[eM],delete t[nM]}function la(t){var e;if(e=t[Jt])return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[Jt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=p0(t);t!==null;){if(n=t[Jt])return n;t=p0(t)}return e}t=n,n=t.parentNode}return null}function Xo(t){if(t=t[Jt]||t[Yo]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Kr(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(C(33))}function xo(t){var e=t[Wg];return e||(e=t[Wg]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Qt(t){t[Vl]=!0}function Z0(t){t[wu]=void 0}var Q0=new Set,k0={};function Ea(t,e){Vo(t,e),Vo(t+\"Capture\",e)}function Vo(t,e){k0[t]=e;for(t=0;t<e.length;t++)Q0.add(e[t])}var iM=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]*$\"),ty={},ey={};function aM(t){if(Rm.call(ey,t))return!0;if(Rm.call(ty,t))return!1;if(iM.test(t))return ey[t]=!0;return ty[t]=!0,!1}var nt=!1;function ny(){var t=nt;return nt=!1,t}function nu(t,e,n){if(aM(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":t.removeAttribute(e);return;case\"boolean\":var i=e.toLowerCase().slice(0,5);if(i!==\"data-\"&&i!==\"aria-\"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Xs(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 Yn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":t.removeAttribute(n);return}t.setAttributeNS(e,n,i)}}function Re(t){switch(typeof t){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return t;case\"object\":return t;default:return\"\"}}function $0(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()===\"input\"&&(e===\"checkbox\"||e===\"radio\")}function oM(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<\"u\"&&typeof i.get===\"function\"&&typeof i.set===\"function\"){var{get:a,set:o}=i;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(r){n=\"\"+r,o.call(this,r)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(r){n=\"\"+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function _m(t){if(!t._valueTracker){var e=$0(t)?\"checked\":\"value\";t._valueTracker=oM(t,e,\"\"+t[e])}}function F0(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i=\"\";return t&&(i=$0(t)?t.checked?\"true\":\"false\":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var rM=/[\\n\"\\\\]/g;function Ie(t){return t.replace(rM,function(e){return\"\\\\\"+e.charCodeAt(0).toString(16)+\" \"})}function Bm(t,e,n,i,a,o,r,l){if(t.name=\"\",r!=null&&typeof r!==\"function\"&&typeof r!==\"symbol\"&&typeof r!==\"boolean\"?t.type=r:t.removeAttribute(\"type\"),e!=null)if(r===\"number\"){if(e===0&&t.value===\"\"||t.value!=e)t.value=\"\"+Re(e)}else t.value!==\"\"+Re(e)&&(t.value=\"\"+Re(e));else r!==\"submit\"&&r!==\"reset\"||t.removeAttribute(\"value\");e!=null?r===\"number\"&&t.value==e?If(t,Re(t.value)):If(t,Re(e)):n!=null?If(t,Re(n)):i!=null&&t.removeAttribute(\"value\"),a==null&&o!=null&&(t.defaultChecked=!!o),a!=null&&(t.checked=a&&typeof a!==\"function\"&&typeof a!==\"symbol\"),l!=null&&typeof l!==\"function\"&&typeof l!==\"symbol\"&&typeof l!==\"boolean\"?t.name=\"\"+Re(l):t.removeAttribute(\"name\")}function J0(t,e,n,i,a,o,r,l){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!==void 0&&e!==null)){_m(t);return}n=n!=null?\"\"+Re(n):\"\",e=e!=null?\"\"+Re(e):n,l||e===t.value||(t.value=e),t.defaultValue=e}i=i!=null?i:a,i=typeof i!==\"function\"&&typeof i!==\"symbol\"&&!!i,t.checked=l?t.checked:!!i,t.defaultChecked=!!i,r!=null&&typeof r!==\"function\"&&typeof r!==\"symbol\"&&typeof r!==\"boolean\"&&(t.name=r),_m(t)}function If(t,e){t.defaultValue!==\"\"+e&&(t.defaultValue=\"\"+e)}function bo(t,e,n,i){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e[\"$\"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty(\"$\"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&i&&(t[n].defaultSelected=!0)}else{n=\"\"+Re(n),e=null;for(a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,i&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function P0(t,e,n){if(e!=null&&(e=\"\"+Re(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?\"\"+Re(n):\"\"}function I0(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(C(92));if(Xr(i)){if(1<i.length)throw Error(C(93));i=i[0]}n=i}n==null&&(n=\"\"),e=n}n=Re(e),t.defaultValue=n,i=t.textContent,i===n&&i!==\"\"&&i!==null&&(t.value=i),_m(t)}function Do(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var lM=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 iy(t,e,n){var i=e.indexOf(\"--\")===0;n==null||typeof n===\"boolean\"||n===\"\"?i?t.setProperty(e,\"\"):e===\"float\"?t.cssFloat=\"\":t[e]=\"\":i?t.setProperty(e,n):typeof n!==\"number\"||n===0||lM.has(e)?e===\"float\"?t.cssFloat=n:t[e]=(\"\"+n).trim():t[e]=n+\"px\"}function W0(t,e,n){if(e!=null&&typeof e!==\"object\")throw Error(C(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf(\"--\")===0?t.setProperty(i,\"\"):i===\"float\"?t.cssFloat=\"\":t[i]=\"\",nt=!0);for(var a in e)i=e[a],e.hasOwnProperty(a)&&n[a]!==i&&(iy(t,a,i),nt=!0)}else for(var o in e)e.hasOwnProperty(o)&&iy(t,o,e[o])}function qd(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 sM=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\"],[\"maskType\",\"mask-type\"],[\"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\"]]),uM=/^[\\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 iu(t){return uM.test(\"\"+t)?\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\":t}function wn(){}var Um=null;function Yd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var uo=null,So=null;function ay(t){var e=Xo(t);if(e&&(t=e.stateNode)){var n=t[Ce]||null;t:switch(t=e.stateNode,e.type){case\"input\":if(Bm(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;n=n.querySelectorAll('input[name=\"'+Ie(\"\"+e)+'\"][type=\"radio\"]');for(e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var a=i[Ce]||null;if(!a)throw Error(C(90));Bm(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&F0(i)}break t;case\"textarea\":P0(t,n.value,n.defaultValue);break t;case\"select\":e=n.value,e!=null&&bo(t,!!n.multiple,e,!1)}}}var Wf=!1;function tv(t,e,n){if(Wf)return t(e,n);Wf=!0;try{var i=t(e);return i}finally{if(Wf=!1,uo!==null||So!==null){if(mc(),uo&&(e=uo,t=So,So=uo=null,ay(e),t))for(e=0;e<t.length;e++)ay(t[e])}}}function fl(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Ce]||null;if(i===null)return null;n=i[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\":(i=!i.disabled)||(t=t.type,i=!(t===\"button\"||t===\"input\"||t===\"select\"||t===\"textarea\")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!==\"function\")throw Error(C(231,e,typeof n));return n}var $n=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),Hm=!1;if($n)try{aa={},Object.defineProperty(aa,\"passive\",{get:function(){Hm=!0}}),window.addEventListener(\"test\",aa,aa),window.removeEventListener(\"test\",aa,aa)}catch(t){Hm=!1}var aa,xi=null,Xd=null,au=null;function ev(){if(au)return au;var t,e=Xd,n=e.length,i,a=\"value\"in xi?xi.value:xi.textContent,o=a.length;for(t=0;t<n&&e[t]===a[t];t++);var r=n-t;for(i=1;i<=r&&e[n-i]===a[o-i];i++);return au=a.slice(t,1<i?1-i:void 0)}function ou(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 Ks(){return!0}function oy(){return!1}function ve(t){function e(n,i,a,o,r){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ks:oy,this.isPropagationStopped=oy,this}return vt(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=Ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!==\"unknown\"&&(n.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),e}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=ve(Gi),Dl=vt({},Gi,{view:0,detail:0}),cM=ve(Dl),tm,em,Lr,tc=vt({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kd,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){if(\"movementX\"in t)return t.movementX;return t!==Lr&&(Lr&&t.type===\"mousemove\"?(tm=t.screenX-Lr.screenX,em=t.screenY-Lr.screenY):em=tm=0,Lr=t),tm},movementY:function(t){return\"movementY\"in t?t.movementY:em}}),ry=ve(tc),fM=vt({},tc,{dataTransfer:0}),mM=ve(fM),dM=vt({},Dl,{relatedTarget:0}),nm=ve(dM),pM=vt({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),hM=ve(pM),gM=vt({},Gi,{clipboardData:function(t){return\"clipboardData\"in t?t.clipboardData:window.clipboardData}}),yM=ve(gM),vM=vt({},Gi,{data:0}),ly=ve(vM),xM={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},bM={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\"},SM={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function TM(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=SM[t])?!!e[t]:!1}function Kd(){return TM}var EM=vt({},Dl,{key:function(t){if(t.key){var e=xM[t.key]||t.key;if(e!==\"Unidentified\")return e}return t.type===\"keypress\"?(t=ou(t),t===13?\"Enter\":String.fromCharCode(t)):t.type===\"keydown\"||t.type===\"keyup\"?bM[t.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kd,charCode:function(t){return t.type===\"keypress\"?ou(t):0},keyCode:function(t){return t.type===\"keydown\"||t.type===\"keyup\"?t.keyCode:0},which:function(t){return t.type===\"keypress\"?ou(t):t.type===\"keydown\"||t.type===\"keyup\"?t.keyCode:0}}),MM=ve(EM),AM=vt({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sy=ve(AM),wM=vt({},Gi,{submitter:0}),CM=ve(wM),OM=vt({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kd}),NM=ve(OM),VM=vt({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),DM=ve(VM),zM=vt({},tc,{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}),RM=ve(zM),_M=vt({},Gi,{newState:0,oldState:0,source:0}),BM=ve(_M),UM=[9,13,27,32],Zd=$n&&\"CompositionEvent\"in window,Pr=null;$n&&\"documentMode\"in document&&(Pr=document.documentMode);var HM=$n&&\"TextEvent\"in window&&!Pr,nv=$n&&(!Zd||Pr&&8<Pr&&11>=Pr),uy=String.fromCharCode(32),cy=!1;function iv(t,e){switch(t){case\"keyup\":return UM.indexOf(e.keyCode)!==-1;case\"keydown\":return e.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function av(t){return t=t.detail,typeof t===\"object\"&&\"data\"in t?t.data:null}var co=!1;function LM(t,e){switch(t){case\"compositionend\":return av(e);case\"keypress\":if(e.which!==32)return null;return cy=!0,uy;case\"textInput\":return t=e.data,t===uy&&cy?null:t;default:return null}}function GM(t,e){if(co)return t===\"compositionend\"||!Zd&&iv(t,e)?(t=ev(),au=Xd=xi=null,co=!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 nv&&e.locale!==\"ko\"?null:e.data;default:return null}}var jM={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 fy(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e===\"input\"?!!jM[t.type]:e===\"textarea\"?!0:!1}function ov(t,e,n,i){uo?So?So.push(i):So=[i]:uo=i,e=$u(e,\"onChange\"),0<e.length&&(n=new Wu(\"onChange\",\"change\",null,n,i),t.push({event:n,listeners:e}))}var Ir=null,ml=null;function qM(t){tx(t,0)}function ec(t){var e=Kr(t);if(F0(e))return t}function my(t,e){if(t===\"change\")return e}var rv=!1;if($n){if($n){if(Qr=\"oninput\"in document,!Qr)ru=document.createElement(\"div\"),ru.setAttribute(\"oninput\",\"return;\"),Qr=typeof ru.oninput===\"function\";Zr=Qr}else Zr=!1;rv=Zr&&(!document.documentMode||9<document.documentMode)}var Zr,Qr,ru;function dy(){Ir&&(Ir.detachEvent(\"onpropertychange\",lv),ml=Ir=null)}function lv(t){if(t.propertyName===\"value\"&&ec(ml)){var e=[];ov(e,ml,t,Yd(t)),tv(qM,e)}}function YM(t,e,n){t===\"focusin\"?(dy(),Ir=e,ml=n,Ir.attachEvent(\"onpropertychange\",lv)):t===\"focusout\"&&dy()}function XM(t){if(t===\"selectionchange\"||t===\"keyup\"||t===\"keydown\")return ec(ml)}function KM(t,e){if(t===\"click\")return ec(e)}function ZM(t,e){if(t===\"input\"||t===\"change\")return ec(e)}function QM(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var qe=typeof Object.is===\"function\"?Object.is:QM;function dl(t,e){if(qe(t,e))return!0;if(typeof t!==\"object\"||t===null||typeof e!==\"object\"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Rm.call(e,a)||!qe(t[a],e[a]))return!1}return!0}function Lm(t){if(t=t||(typeof document<\"u\"?document:void 0),typeof t>\"u\")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function py(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hy(t,e){var n=py(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=py(n)}}function sv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?sv(t,e.parentNode):(\"contains\"in t)?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uv(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Lm(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href===\"string\"}catch(i){n=!1}if(n)t=e.contentWindow;else break;e=Lm(t.document)}return e}function Qd(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 kM=$n&&\"documentMode\"in document&&11>=document.documentMode,fo=null,Gm=null,Wr=null,jm=!1;function gy(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jm||fo==null||fo!==Lm(i)||(i=fo,(\"selectionStart\"in i)&&Qd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Wr&&dl(Wr,i)||(Wr=i,i=$u(Gm,\"onSelect\"),0<i.length&&(e=new Wu(\"onSelect\",\"select\",null,e,n),t.push({event:e,listeners:i}),e.target=fo)))}function ea(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\"Webkit\"+t]=\"webkit\"+e,n[\"Moz\"+t]=\"moz\"+e,n}var mo={animationend:ea(\"Animation\",\"AnimationEnd\"),animationiteration:ea(\"Animation\",\"AnimationIteration\"),animationstart:ea(\"Animation\",\"AnimationStart\"),transitionrun:ea(\"Transition\",\"TransitionRun\"),transitionstart:ea(\"Transition\",\"TransitionStart\"),transitioncancel:ea(\"Transition\",\"TransitionCancel\"),transitionend:ea(\"Transition\",\"TransitionEnd\")},im={},cv={};$n&&(cv=document.createElement(\"div\").style,(\"AnimationEvent\"in window)||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),(\"TransitionEvent\"in window)||delete mo.transitionend.transition);function Ma(t){if(im[t])return im[t];if(!mo[t])return t;var e=mo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in cv)return im[t]=e[n];return t}var fv=Ma(\"animationend\"),mv=Ma(\"animationiteration\"),dv=Ma(\"animationstart\"),$M=Ma(\"transitionrun\"),FM=Ma(\"transitionstart\"),JM=Ma(\"transitioncancel\"),pv=Ma(\"transitionend\"),hv=new Map,qm=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(\" \");qm.push(\"scrollEnd\");function mn(t,e){hv.set(t,e),Ea(e,[t])}var PM=0;function Fn(t,e){if(t.name!=null&&t.name!==\"auto\")return t.name;if(e.autoName!==null)return e.autoName;t=fn.identifierPrefix;var n=PM++;return t=\"_\"+t+\"t_\"+n.toString(32)+\"_\",e.autoName=t}function yy(t){if(t==null||typeof t===\"string\")return t;var e=null,n=Oo;if(n!==null)for(var i=0;i<n.length;i++){var a=t[n[i]];if(a!=null){if(a===\"none\")return\"none\";e=e==null?a:e+(\" \"+a)}}return e==null?t.default:e}function ei(t,e){return t=yy(t),e=yy(e),e==null?t===\"auto\"?null:t:e===\"auto\"?null:e}var Cu=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)},Fe=[],po=0,kd=0;function nc(){for(var t=po,e=kd=po=0;e<t;){var n=Fe[e];Fe[e++]=null;var i=Fe[e];Fe[e++]=null;var a=Fe[e];Fe[e++]=null;var o=Fe[e];if(Fe[e++]=null,i!==null&&a!==null){var r=i.pending;r===null?a.next=a:(a.next=r.next,r.next=a),i.pending=a}o!==0&&gv(n,a,o)}}function ic(t,e,n,i){Fe[po++]=t,Fe[po++]=e,Fe[po++]=n,Fe[po++]=i,kd|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function $d(t,e,n,i){return ic(t,e,n,i),Ou(t)}function Aa(t,e){return ic(t,null,null,e),Ou(t)}function gv(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=t.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(a=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,a&&e!==null&&(a=31-Ge(n),t=o.hiddenUpdates,i=t[a],i===null?t[a]=[e]:i.push(e),e.lane=n|536870912),o):null}function Ou(t){if(50<ul)throw ul=0,gu=null,Error(C(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ho={};function IM(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(t,e,n,i){return new IM(t,e,n,i)}function Fd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn(t,e){var n=t.alternate;return n===null?(n=Me(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&1206910976,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 yv(t,e){t.flags&=1206910978;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 lu(t,e,n,i,a,o){var r=0;if(i=t,typeof i===\"function\")Fd(i)&&(r=1);else if(typeof i===\"string\")r=MA(t,n,Nn.current)?26:t===\"html\"||t===\"head\"||t===\"body\"?27:5;else t:switch(i){case Om:return t=Me(31,n,e,a),t.elementType=Om,t.lanes=o,t;case lo:return ca(n.children,a,o,e);case _0:r=8,a|=24;break;case Am:return t=Me(12,n,e,a|2),t.elementType=Am,t.lanes=o,t;case wm:return t=Me(13,n,e,a),t.elementType=wm,t.lanes=o,t;case Cm:return t=Me(19,n,e,a),t.elementType=Cm,t.lanes=o,t;case GE:case Nm:return t=a|32,t=Me(30,n,e,t),t.elementType=Nm,t.lanes=o,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i===\"object\"&&i!==null)switch(i.$$typeof){case An:r=10;break t;case B0:r=9;break t;case Ud:r=11;break t;case Hd:r=14;break t;case hi:r=16,i=null;break t}r=29,n=Error(C(130,t===null?\"null\":typeof t,\"\")),i=null}return e=Me(r,n,e,a),e.elementType=t,e.type=i,e.lanes=o,e}function ca(t,e,n,i){return t=Me(7,t,i,e),t.lanes=n,t}function am(t,e,n){return t=Me(6,t,null,e),t.lanes=n,t}function vv(t){var e=Me(18,null,null,0);return e.stateNode=t,e}function om(t,e,n){return e=Me(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var vy=new WeakMap;function We(t,e){if(typeof t===\"object\"&&t!==null){var n=vy.get(t);if(n!==void 0)return n;return e={value:t,source:e,stack:Jg(e)},vy.set(t,e),e}return{value:t,source:e,stack:Jg(e)}}var go=[],yo=0,Nu=null,pl=0,Je=[],Pe=0,_i=null,Cn=1,On=\"\";function Kn(t,e){go[yo++]=pl,go[yo++]=Nu,Nu=t,pl=e}function xv(t,e,n){Je[Pe++]=Cn,Je[Pe++]=On,Je[Pe++]=_i,_i=t;var i=Cn;t=On;var a=32-Ge(i)-1;i&=~(1<<a),n+=1;var o=32-Ge(e)+a;if(30<o){var r=a-a%5;o=(i&(1<<r)-1).toString(32),i>>=r,a-=r,Cn=1<<32-Ge(e)+a|n<<a|i,On=o+t}else Cn=1<<o|n<<a|i,On=t}function ac(t){t.return!==null&&(Kn(t,1),xv(t,1,0))}function Jd(t){for(;t===Nu;)Nu=go[--yo],go[yo]=null,pl=go[--yo],go[yo]=null;for(;t===_i;)_i=Je[--Pe],Je[Pe]=null,On=Je[--Pe],Je[Pe]=null,Cn=Je[--Pe],Je[Pe]=null}function bv(t,e){Je[Pe++]=Cn,Je[Pe++]=On,Je[Pe++]=_i,Cn=e.id,On=e.overflow,_i=t}var kt=null,St=null,X=!1,Ai=null,tn=!1,Ym=Error(C(519));function Bi(t){var e=Error(C(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\"text\":\"HTML\",\"\"));throw hl(We(e,t)),Ym}function xy(t){var{stateNode:e,type:n,memoizedProps:i}=t;switch(e[Jt]=t,e[Ce]=i,n){case\"dialog\":Q(\"cancel\",e),Q(\"close\",e);break;case\"iframe\":case\"object\":case\"embed\":Q(\"load\",e);break;case\"video\":case\"audio\":for(n=0;n<xl.length;n++)Q(xl[n],e);break;case\"source\":Q(\"error\",e);break;case\"img\":case\"image\":case\"link\":Q(\"error\",e),Q(\"load\",e);break;case\"details\":Q(\"toggle\",e);break;case\"input\":Q(\"invalid\",e),J0(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case\"select\":Q(\"invalid\",e);break;case\"textarea\":Q(\"invalid\",e),I0(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!==\"string\"&&typeof n!==\"number\"&&typeof n!==\"bigint\"||e.textContent===\"\"+n||i.suppressHydrationWarning===!0||nx(e.textContent,n)?(i.popover!=null&&(Q(\"beforetoggle\",e),Q(\"toggle\",e)),i.onScroll!=null&&Q(\"scroll\",e),i.onScrollEnd!=null&&Q(\"scrollend\",e),i.onClick!=null&&(e.onclick=wn),e=!0):e=!1,e||Bi(t,!0)}function Vu(t){for(kt=t.return;kt;)switch(kt.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:kt=kt.return}}function to(t){if(t!==kt)return!1;if(!X)return Vu(t),X=!0,!1;var e=t.tag,n;if(n=e!==3&&e!==27){if(n=e===5)n=t.type,n=!(n!==\"form\"&&n!==\"button\")||Od(t.type,t.memoizedProps);n=!n}if(n&&St&&Bi(t),Vu(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(317));St=d0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(317));St=d0(t)}else e===27?(e=St,ji(t.type)?(t=zd,zd=null,St=t):St=e):St=kt?en(t.stateNode.nextSibling):null;return!0}function pa(){St=kt=null,X=!1}function rm(){var t=Ai;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Ai=null),t}function hl(t){Ai===null?Ai=[t]:Ai.push(t)}var Xm=zn(null),wa=null,Zn=null;function bi(t,e,n){Tt(Xm,e._currentValue),e._currentValue=n}function kn(t){t._currentValue=Xm.current,It(Xm)}function su(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Km(t,e,n,i){var a=t.child;a!==null&&(a.return=t);for(;a!==null;){var o=a.dependencies;if(o!==null){var r=a.child;o=o.firstContext;t:for(;o!==null;){var l=o;o=a;for(var s=0;s<e.length;s++)if(l.context===e[s]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),su(o.return,n,t),i||(r=null);break t}o=l.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(C(341));r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),su(r,n,t),r=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),su(a.return,n,t),r=a.child,r=r!==null?r.sibling:null):r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===t){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function ha(t,e,n,i){t=null;for(var a=e,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var r=a.alternate;if(r===null)throw Error(C(387));if(r=r.memoizedProps,r!==null){var l=a.type;qe(a.pendingProps.value,r.value)||(t!==null?t.push(l):t=[l])}}else if(a===Tu.current){if(r=a.alternate,r===null)throw Error(C(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Go):t=[Go])}a=a.return}return t!==null&&Km(e,t,n,i),e.flags|=262144,t!==null}function Du(t){for(t=t.firstContext;t!==null;){if(!qe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ga(t){wa=t,Zn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return Sv(wa,t)}function Zs(t,e){return wa===null&&ga(t),Sv(t,e)}function Sv(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Zn===null){if(t===null)throw Error(C(308));Zn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Zn=Zn.next=e;return n}var WM=typeof AbortController<\"u\"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},t2=qt.unstable_scheduleCallback,e2=qt.unstable_NormalPriority,Ht={$$typeof:An,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pd(){return{controller:new WM,data:new Map,refCount:0}}function zl(t){t.refCount--,t.refCount===0&&t2(e2,function(){t.controller.abort()})}function by(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;n===null&&(n=t.transitionTypes=[]);for(t=0;t<e.length;t++){var i=e[t];n.indexOf(i)===-1&&n.push(i)}}}var kr=null;function n2(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var tl=null,Zm=0,ya=0,To=null;function i2(t,e){if(tl===null){var n=tl=[];Zm=0,ya=Ap(),To={status:\"pending\",value:void 0,then:function(i){n.push(i)}}}return Zm++,e.then(Sy,Sy),e}function Sy(){if(--Zm===0&&(kr=null,tl!==null)){To!==null&&(To.status=\"fulfilled\");var t=tl;tl=null,ya=0,To=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function a2(t,e){var n=[],i={status:\"pending\",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){i.status=\"fulfilled\",i.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){i.status=\"rejected\",i.reason=a;for(a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Ty=B.S;B.S=function(t,e){if(G1=He(),typeof e===\"object\"&&e!==null&&typeof e.then===\"function\"&&i2(t,e),kr!==null)for(var n=Uo;n!==null;)by(n,kr),n=n.next;if(n=t.types,n!==null){for(var i=Uo;i!==null;)by(i,n),i=i.next;if(ya!==0){i=kr,i===null&&(i=kr=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Ty!==null&&Ty(t,e)};var fa=zn(null);function Id(){var t=fa.current;return t!==null?t:yt.pooledCache}function uu(t,e){e===null?Tt(fa,fa.current):Tt(fa,e.pool)}function Tv(){var t=Id();return t===null?null:{parent:Ht._currentValue,pool:t}}var Ko=Error(C(460)),Wd=Error(C(474)),oc=Error(C(542)),zu={then:function(){}};function Ey(t){return t=t.status,t===\"fulfilled\"||t===\"rejected\"}function Ev(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(wn,wn),e=n),e.status){case\"fulfilled\":return e.value;case\"rejected\":if(t=e.reason,Ay(t),t===void 0&&!(\"reason\"in e))throw Error(C(600));throw t;default:if(typeof e.status===\"string\")e.then(wn,wn);else{if(t=yt,t!==null&&100<t.shellSuspendCounter)throw Error(C(482));t=e,t.status=\"pending\",t.then(function(i){if(e.status===\"pending\"){var a=e;a.status=\"fulfilled\",a.value=i}},function(i){if(e.status===\"pending\"){var a=e;a.status=\"rejected\",a.reason=i}})}switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw t=e.reason,Ay(t),t}throw ma=e,Ko}}function oa(t){try{var e=t._init;return e(t._payload)}catch(n){if(n!==null&&typeof n===\"object\"&&typeof n.then===\"function\")throw ma=n,Ko;throw n}}var ma=null;function My(){if(ma===null)throw Error(C(459));var t=ma;return ma=null,t}function Ay(t){if(t===Ko||t===oc)throw Error(C(483))}var Eo=null,gl=0;function Qs(t){var e=gl;return gl+=1,Eo===null&&(Eo=[]),Ev(Eo,t,e)}function mi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ks(t,e){if(e.$$typeof===LE)throw Error(C(525));throw t=Object.prototype.toString.call(e),Error(C(31,t===\"[object Object]\"?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t))}function Mv(t){function e(h,p){if(t){var g=h.deletions;g===null?(h.deletions=[p],h.flags|=16):g.push(p)}}function n(h,p){if(!t)return null;for(;p!==null;)e(h,p),p=p.sibling;return null}function i(h){for(var p=new Map;h!==null;)h.key===null?p.set(h.index,h):p.set(h.key,h),h=h.sibling;return p}function a(h,p){return h=Qn(h,p),h.index=0,h.sibling=null,h}function o(h,p,g){if(h.index=g,!t)return h.flags|=1048576,p;if(g=h.alternate,g!==null)return g=g.index,g<p?(h.flags|=2,p):g;return h.flags|=134217730,p}function r(h){return t&&h.alternate===null&&(h.flags|=134217730),h}function l(h,p,g,v){if(p===null||p.tag!==6)return p=am(g,h.mode,v),p.return=h,p;return p=a(p,g),p.return=h,p}function s(h,p,g,v){var E=g.type;if(E===lo)return h=u(h,p,g.props.children,v,g.key),mi(h,g),h;if(p!==null&&(p.elementType===E||typeof E===\"object\"&&E!==null&&E.$$typeof===hi&&oa(E)===p.type))return p=a(p,g.props),mi(p,g),p.return=h,p;return p=lu(g.type,g.key,g.props,null,h.mode,v),mi(p,g),p.return=h,p}function c(h,p,g,v){if(p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation)return p=om(g,h.mode,v),p.return=h,p;return p=a(p,g.children||[]),p.return=h,p}function u(h,p,g,v,E){if(p===null||p.tag!==7)return p=ca(g,h.mode,v,E),p.return=h,p;return p=a(p,g),p.return=h,p}function f(h,p,g){if(typeof p===\"string\"&&p!==\"\"||typeof p===\"number\"||typeof p===\"bigint\")return p=am(\"\"+p,h.mode,g),p.return=h,p;if(typeof p===\"object\"&&p!==null){switch(p.$$typeof){case Gs:return g=lu(p.type,p.key,p.props,null,h.mode,g),mi(g,p),g.return=h,g;case Yr:return p=om(p,h.mode,g),p.return=h,p;case hi:return p=oa(p),f(h,p,g)}if(Xr(p)||Hr(p))return p=ca(p,h.mode,g,null),p.return=h,p;if(typeof p.then===\"function\")return f(h,Qs(p),g);if(p.$$typeof===An)return f(h,Zs(h,p),g);ks(h,p)}return null}function m(h,p,g,v){var E=p!==null?p.key:null;if(typeof g===\"string\"&&g!==\"\"||typeof g===\"number\"||typeof g===\"bigint\")return E!==null?null:l(h,p,\"\"+g,v);if(typeof g===\"object\"&&g!==null){switch(g.$$typeof){case Gs:return g.key===E?s(h,p,g,v):null;case Yr:return g.key===E?c(h,p,g,v):null;case hi:return g=oa(g),m(h,p,g,v)}if(Xr(g)||Hr(g))return E!==null?null:u(h,p,g,v,null);if(typeof g.then===\"function\")return m(h,p,Qs(g),v);if(g.$$typeof===An)return m(h,p,Zs(h,g),v);ks(h,g)}return null}function d(h,p,g,v,E){if(typeof v===\"string\"&&v!==\"\"||typeof v===\"number\"||typeof v===\"bigint\")return h=h.get(g)||null,l(p,h,\"\"+v,E);if(typeof v===\"object\"&&v!==null){switch(v.$$typeof){case Gs:return h=h.get(v.key===null?g:v.key)||null,s(p,h,v,E);case Yr:return h=h.get(v.key===null?g:v.key)||null,c(p,h,v,E);case hi:return v=oa(v),d(h,p,g,v,E)}if(Xr(v)||Hr(v))return h=h.get(g)||null,u(p,h,v,E,null);if(typeof v.then===\"function\")return d(h,p,g,Qs(v),E);if(v.$$typeof===An)return d(h,p,g,Zs(p,v),E);ks(p,v)}return null}function y(h,p,g,v){for(var E=null,M=null,S=p,b=p=0,A=null;S!==null&&b<g.length;b++){S.index>b?(A=S,S=null):A=S.sibling;var N=m(h,S,g[b],v);if(N===null){S===null&&(S=A);break}t&&S&&N.alternate===null&&e(h,S),p=o(N,p,b),M===null?E=N:M.sibling=N,M=N,S=A}if(b===g.length)return n(h,S),X&&Kn(h,b),E;if(S===null){for(;b<g.length;b++)S=f(h,g[b],v),S!==null&&(p=o(S,p,b),M===null?E=S:M.sibling=S,M=S);return X&&Kn(h,b),E}for(S=i(S);b<g.length;b++)A=d(S,h,b,g[b],v),A!==null&&(t&&(N=A.alternate,N!==null&&S.delete(N.key===null?b:N.key)),p=o(A,p,b),M===null?E=A:M.sibling=A,M=A);return t&&S.forEach(function(R){return e(h,R)}),X&&Kn(h,b),E}function x(h,p,g,v){if(g==null)throw Error(C(151));for(var E=null,M=null,S=p,b=p=0,A=null,N=g.next();S!==null&&!N.done;b++,N=g.next()){S.index>b?(A=S,S=null):A=S.sibling;var R=m(h,S,N.value,v);if(R===null){S===null&&(S=A);break}t&&S&&R.alternate===null&&e(h,S),p=o(R,p,b),M===null?E=R:M.sibling=R,M=R,S=A}if(N.done)return n(h,S),X&&Kn(h,b),E;if(S===null){for(;!N.done;b++,N=g.next())N=f(h,N.value,v),N!==null&&(p=o(N,p,b),M===null?E=N:M.sibling=N,M=N);return X&&Kn(h,b),E}for(S=i(S);!N.done;b++,N=g.next())N=d(S,h,b,N.value,v),N!==null&&(t&&(A=N.alternate,A!==null&&S.delete(A.key===null?b:A.key)),p=o(N,p,b),M===null?E=N:M.sibling=N,M=N);return t&&S.forEach(function(tt){return e(h,tt)}),X&&Kn(h,b),E}function T(h,p,g,v){if(typeof g===\"object\"&&g!==null&&g.type===lo&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g===\"object\"&&g!==null){switch(g.$$typeof){case Gs:t:{for(var E=g.key;p!==null;){if(p.key===E){if(E=g.type,E===lo){if(p.tag===7){n(h,p.sibling),v=a(p,g.props.children),mi(v,g),v.return=h,h=v;break t}}else if(p.elementType===E||typeof E===\"object\"&&E!==null&&E.$$typeof===hi&&oa(E)===p.type){n(h,p.sibling),v=a(p,g.props),mi(v,g),v.return=h,h=v;break t}n(h,p);break}else e(h,p);p=p.sibling}g.type===lo?(v=ca(g.props.children,h.mode,v,g.key),mi(v,g),v.return=h,h=v):(v=lu(g.type,g.key,g.props,null,h.mode,v),mi(v,g),v.return=h,h=v)}return r(h);case Yr:t:{for(E=g.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),v=a(p,g.children||[]),v.return=h,h=v;break t}else{n(h,p);break}else e(h,p);p=p.sibling}v=om(g,h.mode,v),v.return=h,h=v}return r(h);case hi:return g=oa(g),T(h,p,g,v)}if(Xr(g))return y(h,p,g,v);if(Hr(g)){if(E=Hr(g),typeof E!==\"function\")throw Error(C(150));return g=E.call(g),x(h,p,g,v)}if(typeof g.then===\"function\")return T(h,p,Qs(g),v);if(g.$$typeof===An)return T(h,p,Zs(h,g),v);ks(h,g)}return typeof g===\"string\"&&g!==\"\"||typeof g===\"number\"||typeof g===\"bigint\"?(g=\"\"+g,p!==null&&p.tag===6?(n(h,p.sibling),v=a(p,g),v.return=h,h=v):(n(h,p),v=am(g,h.mode,v),v.return=h,h=v),r(h)):n(h,p)}return function(h,p,g,v){try{gl=0;var E=T(h,p,g,v);return Eo=null,E}catch(S){if(S===Ko||S===oc)throw S;var M=Me(29,S,null,h.mode);return M.lanes=v,M.return=h,M}finally{}}}var va=Mv(!0),Av=Mv(!1),gi=!1;function tp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qm(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 wi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ci(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(at&2)!==0){var a=i.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),i.pending=e,e=Ou(t),gv(t,null,n),e}return ic(t,i,e,n),Ou(t)}function el(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Y0(t,n)}}function lm(t,e){var{updateQueue:n,alternate:i}=t;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=r:o=o.next=r,n=n.next}while(n!==null);o===null?a=o=e:o=o.next=e}else a=o=e;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var km=!1;function nl(){if(km){var t=To;if(t!==null)throw t}}function il(t,e,n,i){km=!1;var a=t.updateQueue;gi=!1;var{firstBaseUpdate:o,lastBaseUpdate:r}=a,l=a.shared.pending;if(l!==null){a.shared.pending=null;var s=l,c=s.next;s.next=null,r===null?o=c:r.next=c,r=s;var u=t.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==r&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(o!==null){var f=a.baseState;r=0,u=c=s=null,l=o;do{var m=l.lane&-536870913,d=m!==l.lane;if(d?(F&m)===m:(i&m)===m){m!==0&&m===ya&&(km=!0),u!==null&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});t:{var y=t,x=l;m=e;var T=n;switch(x.tag){case 1:if(y=x.payload,typeof y===\"function\"){f=y.call(T,f,m);break t}f=y;break t;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y===\"function\"?y.call(T,f,m):y,m===null||m===void 0)break t;f=vt({},f,m);break t;case 2:gi=!0}}m=l.callback,m!==null&&(t.flags|=64,d&&(t.flags|=8192),d=a.callbacks,d===null?a.callbacks=[m]:d.push(m))}else d={lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=d,s=f):u=u.next=d,r|=m;if(l=l.next,l===null)if(l=a.shared.pending,l===null)break;else d=l,l=d.next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}while(1);u===null&&(s=f),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,o===null&&(a.shared.lanes=0),Li|=r,t.lanes=r,t.memoizedState=f}}function wv(t,e){if(typeof t!==\"function\")throw Error(C(191,t));t.call(e)}function Cv(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)wv(n[t],e)}var Ui=zn(null),Ru=zn(0);function wy(t,e){t=Wn,Tt(Ru,t),Tt(Ui,e),Wn=t|e.baseLanes}function $m(){Tt(Ru,Wn),Tt(Ui,Ui.current)}function ep(){Wn=Ru.current,It(Ui),It(Ru)}var ee=zn(null),ce=null;function Oi(t){var e=t.alternate;Tt(Wt,Wt.current&1),Tt(ee,t),ce===null&&(e===null||Ui.current!==null?ce=t:e.memoizedState!==null&&(ce=t))}function Fm(t){Tt(Wt,Wt.current),Tt(ee,t),ce===null&&(ce=t)}function Ov(t){t.tag===22?(Tt(Wt,Wt.current),Tt(ee,t),ce===null&&(ce=t)):Ni()}function Ni(){Tt(Wt,Wt.current),Tt(ee,ee.current)}function _e(t){It(ee),ce===t&&(ce=null),It(Wt)}var Wt=zn(0);function yl(t,e){Tt(ee,ee.current),Tt(Wt,e)}function np(t){It(Wt),It(ee),ce===t&&(ce=null)}function _u(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Dd(n)||Np(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==\"independent\"){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 Jn=0,j=null,ht=null,Ut=null,Bu=!1,Mo=!1,xa=!1,Uu=0,vl=0,Ao=null,o2=0;function Nt(){throw Error(C(321))}function ip(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!qe(t[n],e[n]))return!1;return!0}function ap(t,e,n,i,a,o){return Jn=o,j=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,B.H=t===null||t.memoizedState===null?o1:r1,xa=!1,o=n(i,a),xa=!1,Mo&&(o=Vv(e,n,i,a)),Nv(t),o}function Nv(t){B.H=Hu;var e=ht!==null&&ht.next!==null;if(Jn=0,Ut=ht=j=null,Bu=!1,vl=0,Ao=null,e)throw Error(C(300));t===null||Lt||(t=t.dependencies,t!==null&&Du(t)&&(Lt=!0))}function Vv(t,e,n,i){j=t;var a=0;do{if(Mo&&(Ao=null),vl=0,Mo=!1,25<=a)throw Error(C(301));if(a+=1,Ut=ht=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}B.H=d2,o=e(n,i)}while(Mo);return o}function r2(){var t=B.H,e=t.useState()[0];return e=typeof e.then===\"function\"?Rl(e):e,t=t.useState()[0],(ht!==null?ht.memoizedState:null)!==t&&(j.flags|=1024),e}function op(){var t=Uu!==0;return Uu=0,t}function rp(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function lp(t){if(Bu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Bu=!1}Jn=0,Ut=ht=j=null,Mo=!1,vl=Uu=0,Ao=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?j.memoizedState=Ut=t:Ut=Ut.next=t,Ut}function zt(){if(ht===null){var t=j.alternate;t=t!==null?t.memoizedState:null}else t=ht.next;var e=Ut===null?j.memoizedState:Ut.next;if(e!==null)Ut=e,ht=t;else{if(t===null){if(j.alternate===null)throw Error(C(467));throw Error(C(310))}ht=t,t={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},Ut===null?j.memoizedState=Ut=t:Ut=Ut.next=t}return Ut}function rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(t){var e=vl;return vl+=1,Ao===null&&(Ao=[]),t=Ev(Ao,t,e),e=j,(Ut===null?e.memoizedState:Ut.next)===null&&(e=e.alternate,B.H=e===null||e.memoizedState===null?o1:r1),t}function lc(t){if(t!==null&&typeof t===\"object\"){if(typeof t.then===\"function\")return Rl(t);if(t.$$typeof===qE)return;if(t.$$typeof===An)return Pt(t)}throw Error(C(438,String(t)))}function sp(t){var e=null,n=j.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=j.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=rc(),j.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=jE;return e.index++,n}function Pn(t,e){return typeof e===\"function\"?e(t):e}function cu(t){var e=zt();return up(e,ht,t)}function up(t,e,n){var i=t.queue;if(i===null)throw Error(C(311));i.lastRenderedReducer=n;var a=t.baseQueue,o=i.pending;if(o!==null){if(a!==null){var r=a.next;a.next=o.next,o.next=r}e.baseQueue=a=o,i.pending=null}if(o=t.baseState,a===null)t.memoizedState=o;else{e=a.next;var l=r=null,s=null,c=e,u=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(F&f)===f:(Jn&f)===f){var m=c.revertLane;if(m===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===ya&&(u=!0);else if((Jn&m)===m){c=c.next,m===ya&&(u=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=f,r=o):s=s.next=f,j.lanes|=m,Li|=m;f=c.action,xa&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else m={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=m,r=o):s=s.next=m,j.lanes|=f,Li|=f;c=c.next}while(c!==null&&c!==e);if(s===null?r=o:s.next=l,!qe(o,t.memoizedState)&&(Lt=!0,u&&(n=To,n!==null)))throw n;t.memoizedState=o,t.baseState=r,t.baseQueue=s,i.lastRenderedState=o}return a===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function sm(t){var e=zt(),n=e.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=t;var{dispatch:i,pending:a}=n,o=e.memoizedState;if(a!==null){n.pending=null;var r=a=a.next;do o=t(o,r.action),r=r.next;while(r!==a);qe(o,e.memoizedState)||(Lt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Dv(t,e,n){var i=j,a=zt(),o=X;if(o){if(n===void 0)throw Error(C(407));n=n()}else n=e();var r=!qe((ht||a).memoizedState,n);if(r&&(a.memoizedState=n,Lt=!0),a=a.queue,cp(_v.bind(null,i,a,t),[t]),t=a.getSnapshot!==e||r||Ut!==null&&(Ut.memoizedState.tag&1)!==0,zo(t?9:8,{destroy:void 0},Rv.bind(null,i,a,n,e),null),t){if(i.flags|=2048,yt===null)throw Error(C(349));o||(Jn&127)!==0||zv(i,e,n)}return n}function zv(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=j.updateQueue,e===null?(e=rc(),j.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Rv(t,e,n,i){e.value=n,e.getSnapshot=i,Bv(e)&&Uv(t)}function _v(t,e,n){return n(function(){Bv(e)&&Uv(t)})}function Bv(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!qe(t,n)}catch(i){return!0}}function Uv(t){var e=Aa(t,2);e!==null&&Ae(e,t,2)}function Jm(t){var e=ye();if(typeof t===\"function\"){var n=t;if(t=n(),xa){vi(!0);try{n()}finally{vi(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:t},e}function Hv(t,e,n,i){return t.baseState=n,up(t,ht,typeof i===\"function\"?i:Pn)}function l2(t,e,n,i,a){if(uc(t))throw Error(C(485));if(t=e.action,t!==null){var o={payload:a,action:t,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(r){o.listeners.push(r)}};B.T!==null?n(!0):o.isTransition=!1,i(o),n=e.pending,n===null?(o.next=e.pending=o,Lv(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Lv(t,e){var{action:n,payload:i}=e,a=t.state;if(e.isTransition){var o=B.T,r={};r.types=o!==null?o.types:null,B.T=r;try{var l=n(a,i),s=B.S;s!==null&&s(r,l),Cy(t,e,l)}catch(c){Pm(t,e,c)}finally{o!==null&&r.types!==null&&(o.types=r.types),B.T=o}}else try{o=n(a,i),Cy(t,e,o)}catch(c){Pm(t,e,c)}}function Cy(t,e,n){n!==null&&typeof n===\"object\"&&typeof n.then===\"function\"?n.then(function(i){Oy(t,e,i)},function(i){return Pm(t,e,i)}):Oy(t,e,n)}function Oy(t,e,n){e.status=\"fulfilled\",e.value=n,Gv(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Lv(t,n)))}function Pm(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status=\"rejected\",e.reason=n,Gv(e),e=e.next;while(e!==i)}t.action=null}function Gv(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jv(t,e){return e}function Ny(t,e){if(X){var n=yt.formState;if(n!==null){t:{var i=j;if(X){if(St){e:{var a=St;for(var o=tn;a.nodeType!==8;){if(!o){a=null;break e}if(a=en(a.nextSibling),a===null){a=null;break e}}o=a.data,a=o===\"F!\"||o===\"F\"?a:null}if(a){St=en(a.nextSibling),i=a.data===\"F!\";break t}}Bi(i)}i=!1}i&&(e=n[0])}}return n=ye(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jv,lastRenderedState:e},n.queue=i,n=n1.bind(null,j,i),i.dispatch=n,i=Jm(!1),o=pp.bind(null,j,!1,i.queue),i=ye(),a={state:e,dispatch:null,action:t,pending:null},i.queue=a,n=l2.bind(null,j,a,o,n),a.dispatch=n,i.memoizedState=t,[e,n,!1]}function Vy(t){var e=zt();return qv(e,ht,t)}function qv(t,e,n){if(e=up(t,e,jv)[0],t=cu(Pn)[0],typeof e===\"object\"&&e!==null&&typeof e.then===\"function\")try{var i=Rl(e)}catch(r){if(r===Ko)throw oc;throw r}else i=e;e=zt();var a=e.queue,o=a.dispatch;return n!==e.memoizedState&&(j.flags|=2048,zo(9,{destroy:void 0},s2.bind(null,a,n),null)),[i,o,t]}function s2(t,e){t.action=e}function Dy(t){var e=zt(),n=ht;if(n!==null)return qv(e,n,t);zt(),e=e.memoizedState,n=zt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function zo(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=j.updateQueue,e===null&&(e=rc(),j.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Yv(){return zt().memoizedState}function fu(t,e,n,i){var a=ye();j.flags|=t,a.memoizedState=zo(1|e,{destroy:void 0},n,i===void 0?null:i)}function sc(t,e,n,i){var a=zt();i=i===void 0?null:i;var o=a.memoizedState.inst;ht!==null&&i!==null&&ip(i,ht.memoizedState.deps)?a.memoizedState=zo(e,o,n,i):(j.flags|=t,a.memoizedState=zo(1|e,o,n,i))}function zy(t,e){fu(8390656,8,t,e)}function cp(t,e){sc(2048,8,t,e)}function u2(t){j.flags|=4;var e=j.updateQueue;if(e===null)e=rc(),j.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Xv(t){var e=zt().memoizedState;return u2({ref:e,nextImpl:t}),function(){if((at&2)!==0)throw Error(C(440));return e.impl.apply(void 0,arguments)}}function Kv(t,e){return sc(4,2,t,e)}function Zv(t,e){return sc(4,4,t,e)}function Qv(t,e){if(typeof e===\"function\"){t=t();var n=e(t);return function(){typeof n===\"function\"?n():e(null)}}if(e!==null&&e!==void 0)return t=t(),e.current=t,function(){e.current=null}}function kv(t,e,n){n=n!==null&&n!==void 0?n.concat([t]):null,sc(4,4,Qv.bind(null,e,t),n)}function fp(){}function $v(t,e){var n=zt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ip(e,i[1]))return i[0];return n.memoizedState=[t,e],t}function Fv(t,e){var n=zt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ip(e,i[1]))return i[0];if(i=t(),xa){vi(!0);try{t()}finally{vi(!1)}}return n.memoizedState=[i,e],i}function mp(t,e,n){if(n===void 0||(Jn&1073741824)!==0&&(F&261930)===0)return t.memoizedState=e;return t.memoizedState=n,t=q1(),j.lanes|=t,Li|=t,n}function Jv(t,e,n,i){if(qe(n,e))return n;if(Ui.current!==null)return t=mp(t,n,i),qe(t,e)||(Lt=!0),t;if((Jn&106)===0||(Jn&1073741824)!==0&&(F&261930)===0)return Lt=!0,t.memoizedState=n;return t=q1(),j.lanes|=t,Li|=t,e}function Pv(t,e,n,i,a){var o=ot.p;ot.p=o!==0&&8>o?o:8;var r=B.T,l={};l.types=r!==null?r.types:null,B.T=l,pp(t,!1,e,n);try{var s=a(),c=B.S;if(c!==null&&c(l,s),s!==null&&typeof s===\"object\"&&typeof s.then===\"function\"){var u=a2(s,i);al(t,e,u,je(t))}else al(t,e,i,je(t))}catch(f){al(t,e,{then:function(){},status:\"rejected\",reason:f},je())}finally{ot.p=o,r!==null&&l.types!==null&&(r.types=l.types),B.T=r}}function c2(){}function Im(t,e,n,i){if(t.tag!==5)throw Error(C(476));var a=Iv(t).queue;Pv(t,a,e,ua,n===null?c2:function(){return Wv(t),n(i)})}function Iv(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ua,baseState:ua,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:ua},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Wv(t){var e=Iv(t);e.next===null&&(e=t.alternate.memoizedState),al(t,e.next.queue,{},je())}function dp(){return Pt(Go)}function t1(){return zt().memoizedState}function e1(){return zt().memoizedState}function f2(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=je();t=wi(n);var i=Ci(e,t,n);i!==null&&(Ae(i,e,n),el(i,e,n)),e={cache:Pd()},t.payload=e;return}e=e.return}}function m2(t,e,n){var i=je();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(t)?i1(e,n):(n=$d(t,e,n,i),n!==null&&(Ae(n,t,i),a1(n,e,i)))}function n1(t,e,n){var i=je();al(t,e,n,i)}function al(t,e,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(t))i1(e,a);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var r=e.lastRenderedState,l=o(r,n);if(a.hasEagerState=!0,a.eagerState=l,qe(l,r))return ic(t,e,a,0),yt===null&&nc(),!1}catch(s){}finally{}if(n=$d(t,e,a,i),n!==null)return Ae(n,t,i),a1(n,e,i),!0}return!1}function pp(t,e,n,i){if(i={lane:2,revertLane:Ap(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},uc(t)){if(e)throw Error(C(479))}else e=$d(t,n,i,2),e!==null&&Ae(e,t,2)}function uc(t){var e=t.alternate;return t===j||e!==null&&e===j}function i1(t,e){Mo=Bu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function a1(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Y0(t,n)}}var Hu={readContext:Pt,use:lc,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt,useEffectEvent:Nt},o1={readContext:Pt,use:lc,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:zy,useImperativeHandle:function(t,e,n){n=n!==null&&n!==void 0?n.concat([t]):null,fu(4194308,4,Qv.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fu(4194308,4,t,e)},useInsertionEffect:function(t,e){fu(4,2,t,e)},useMemo:function(t,e){var n=ye();e=e===void 0?null:e;var i=t();if(xa){vi(!0);try{t()}finally{vi(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=ye();if(n!==void 0){var a=n(e);if(xa){vi(!0);try{n(e)}finally{vi(!1)}}}else a=e;return i.memoizedState=i.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},i.queue=t,t=t.dispatch=m2.bind(null,j,t),[i.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Jm(t);var e=t.queue,n=n1.bind(null,j,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:fp,useDeferredValue:function(t,e){var n=ye();return mp(n,t,e)},useTransition:function(){var t=Jm(!1);return t=Pv.bind(null,j,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=j,a=ye();if(X){if(n===void 0)throw Error(C(407));n=n()}else{if(n=e(),yt===null)throw Error(C(349));(F&127)!==0||zv(i,e,n)}a.memoizedState=n;var o={value:n,getSnapshot:e};return a.queue=o,zy(_v.bind(null,i,o,t),[t]),i.flags|=2048,zo(9,{destroy:void 0},Rv.bind(null,i,o,n,e),null),n},useId:function(){var t=ye(),e=yt.identifierPrefix;if(X){var n=On,i=Cn;n=(i&~(1<<32-Ge(i)-1)).toString(32)+n,e=\"_\"+e+\"R_\"+n,n=Uu++,0<n&&(e+=\"H\"+n.toString(32)),e+=\"_\"}else n=o2++,e=\"_\"+e+\"r_\"+n.toString(32)+\"_\";return t.memoizedState=e},useHostTransitionStatus:dp,useFormState:Ny,useActionState:Ny,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=pp.bind(null,j,!0,n),n.dispatch=e,[t,e]},useMemoCache:sp,useCacheRefresh:function(){return ye().memoizedState=f2.bind(null,j)},useEffectEvent:function(t){var e=ye(),n={impl:t};return e.memoizedState=n,function(){if((at&2)!==0)throw Error(C(440));return n.impl.apply(void 0,arguments)}}},r1={readContext:Pt,use:lc,useCallback:$v,useContext:Pt,useEffect:cp,useImperativeHandle:kv,useInsertionEffect:Kv,useLayoutEffect:Zv,useMemo:Fv,useReducer:cu,useRef:Yv,useState:function(){return cu(Pn)},useDebugValue:fp,useDeferredValue:function(t,e){var n=zt();return Jv(n,ht.memoizedState,t,e)},useTransition:function(){var t=cu(Pn)[0],e=zt().memoizedState;return[typeof t===\"boolean\"?t:Rl(t),e]},useSyncExternalStore:Dv,useId:t1,useHostTransitionStatus:dp,useFormState:Vy,useActionState:Vy,useOptimistic:function(t,e){var n=zt();return Hv(n,ht,t,e)},useMemoCache:sp,useCacheRefresh:e1,useEffectEvent:Xv},d2={readContext:Pt,use:lc,useCallback:$v,useContext:Pt,useEffect:cp,useImperativeHandle:kv,useInsertionEffect:Kv,useLayoutEffect:Zv,useMemo:Fv,useReducer:sm,useRef:Yv,useState:function(){return sm(Pn)},useDebugValue:fp,useDeferredValue:function(t,e){var n=zt();return ht===null?mp(n,t,e):Jv(n,ht.memoizedState,t,e)},useTransition:function(){var t=sm(Pn)[0],e=zt().memoizedState;return[typeof t===\"boolean\"?t:Rl(t),e]},useSyncExternalStore:Dv,useId:t1,useHostTransitionStatus:dp,useFormState:Dy,useActionState:Dy,useOptimistic:function(t,e){var n=zt();if(ht!==null)return Hv(n,ht,t,e);return n.baseState=t,[t,n.queue.dispatch]},useMemoCache:sp,useCacheRefresh:e1,useEffectEvent:Xv};function um(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n===null||n===void 0?e:vt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Wm={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=je(),a=wi(i);a.payload=e,n!==void 0&&n!==null&&(a.callback=n),e=Ci(t,a,i),e!==null&&(Ae(e,t,i),el(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=je(),a=wi(i);a.tag=1,a.payload=e,n!==void 0&&n!==null&&(a.callback=n),e=Ci(t,a,i),e!==null&&(Ae(e,t,i),el(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=je(),i=wi(n);i.tag=2,e!==void 0&&e!==null&&(i.callback=e),e=Ci(t,i,n),e!==null&&(Ae(e,t,n),el(e,t,n))}};function Ry(t,e,n,i,a,o,r){return t=t.stateNode,typeof t.shouldComponentUpdate===\"function\"?t.shouldComponentUpdate(i,o,r):e.prototype&&e.prototype.isPureReactComponent?!dl(n,i)||!dl(a,o):!0}function _y(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps===\"function\"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps===\"function\"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Wm.enqueueReplaceState(e,e.state,null)}function ba(t,e){var n=e;if(\"ref\"in e){n={};for(var i in e)i!==\"ref\"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=vt({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function l1(t){Cu(t)}function s1(t){console.error(t)}function u1(t){Cu(t)}function Lu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function By(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function td(t,e,n){return n=wi(n),n.tag=3,n.payload={element:null},n.callback=function(){Lu(t,e)},n}function c1(t){return t=wi(t),t.tag=3,t}function f1(t,e,n,i){var a=n.type.getDerivedStateFromError;if(typeof a===\"function\"){var o=i.value;t.payload=function(){return a(o)},t.callback=function(){By(e,n,i)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch===\"function\"&&(t.callback=function(){By(e,n,i),typeof a!==\"function\"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var l=i.stack;this.componentDidCatch(i.value,{componentStack:l!==null?l:\"\"})})}function p2(t,e,n,i,a){if(n.flags|=32768,i!==null&&typeof i===\"object\"&&typeof i.then===\"function\"){if(e=n.alternate,e!==null&&ha(e,n,a,!0),n=ee.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ce===null?Qu():n.alternate===null&&Vt===0&&(Vt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===zu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),gm(t,i,a)),!1;case 22:return n.flags|=65536,i===zu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),gm(t,i,a)),!1}throw Error(C(435,n.tag))}return gm(t,i,a),Qu(),!1}if(X)return e=ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,i!==Ym&&(t=Error(C(422),{cause:i}),hl(We(t,n)))):(i!==Ym&&(e=Error(C(423),{cause:i}),hl(We(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,i=We(i,n),a=td(t.stateNode,i,a),lm(t,a),Vt!==4&&(Vt=2)),!1;var o=Error(C(520),{cause:i});if(o=We(o,n),sl===null?sl=[o]:sl.push(o),Vt!==4&&(Vt=2),e===null)return!0;i=We(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=td(n.stateNode,i,t),lm(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\"&&(Vi===null||!Vi.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=c1(a),f1(a,t,n,i),lm(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var hp=Error(C(461)),Lt=!1;function Gt(t,e,n,i){e.child=t===null?Av(e,null,n,i):va(e,t.child,n,i)}function Uy(t,e,n,i,a){n=n.render;var o=e.ref;if(\"ref\"in i){var r={};for(var l in i)l!==\"ref\"&&(r[l]=i[l])}else r=i;if(ga(e),i=ap(t,e,n,r,o,a),l=op(),t!==null&&!Lt)return rp(t,e,a),In(t,e,a);return X&&l&&ac(e),e.flags|=1,Gt(t,e,i,a),e.child}function Hy(t,e,n,i,a){if(t===null){var o=n.type;if(typeof o===\"function\"&&!Fd(o)&&o.defaultProps===void 0&&n.compare===null)return e.tag=15,e.type=o,m1(t,e,o,i,a);return t=lu(n.type,null,i,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t}if(o=t.child,!yp(t,a)){var r=o.memoizedProps;if(n=n.compare,n=n!==null?n:dl,n(r,i)&&t.ref===e.ref)return In(t,e,a)}return e.flags|=1,t=Qn(o,i),t.ref=e.ref,t.return=e,e.child=t}function m1(t,e,n,i,a){if(t!==null){var o=t.memoizedProps;if(dl(o,i)&&t.ref===e.ref)if(Lt=!1,e.pendingProps=i=o,yp(t,a))(t.flags&131072)!==0&&(Lt=!0);else return e.lanes=t.lanes,In(t,e,a)}return ed(t,e,n,i,a)}function d1(t,e,n,i){var a=i.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode===\"hidden\"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){i=e.child=t.child;for(a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,e.child=null;return Ly(t,e,o,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&uu(e,o!==null?o.cachePool:null),o!==null?wy(e,o):$m(),Ov(e);else return i=e.lanes=536870912,Ly(t,e,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(uu(e,o.cachePool),wy(e,o),Ni(),e.memoizedState=null):(t!==null&&uu(e,null),$m(),Ni());return Gt(t,e,a,n),e.child}function ol(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ly(t,e,n,i,a){var o=Id();return o=o===null?null:{parent:Ht._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&uu(e,null),$m(),Ov(e),t!==null&&ha(t,e,i,!0),e.childLanes=a,null}function mu(t,e){return e=cc({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gy(t,e,n){return va(e,t.child,null,n),t=mu(e,e.pendingProps),t.flags|=2,_e(e),e.memoizedState=null,t}function h2(t,e,n){var i=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(X){if(i.mode===\"hidden\")return t=mu(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},ol(null,t);if(Fm(e),(t=St)?(t=dx(t,tn),t=t!==null&&t.data===\"&\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_i!==null?{id:Cn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},n=vv(t),n.return=e,e.child=n,kt=e,St=null)):t=null,t===null)throw Bi(e);return e.lanes=536870912,null}return mu(e,i)}var o=t.memoizedState;if(o!==null){var r=o.dehydrated;if(Fm(e),a)if(e.flags&256)e.flags&=-257,e=Gy(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(C(558));else if(Lt||ha(t,e,n,!1),a=(n&t.childLanes)!==0,Lt||a){if(Ui.current===null){if(i=yt,i!==null&&(r=X0(i,n),r!==0&&r!==o.retryLane))throw o.retryLane=r,Aa(t,r),Ae(i,t,r),hp;Qu()}e=Gy(t,e,n)}else t=o.treeContext,St=en(r.nextSibling),kt=e,X=!0,Ai=null,tn=!1,t!==null&&bv(e,t),e=mu(e,i),e.flags|=134221824;return e}return t=Qn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function no(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(C(284));if(t===null||t.ref!==n)e.flags|=4194816}}function ed(t,e,n,i,a){if(ga(e),n=ap(t,e,n,i,void 0,a),i=op(),t!==null&&!Lt)return rp(t,e,a),In(t,e,a);return X&&i&&ac(e),e.flags|=1,Gt(t,e,n,a),e.child}function jy(t,e,n,i,a,o){if(ga(e),e.updateQueue=null,n=Vv(e,i,n,a),Nv(t),i=op(),t!==null&&!Lt)return rp(t,e,o),In(t,e,o);return X&&i&&ac(e),e.flags|=1,Gt(t,e,n,o),e.child}function qy(t,e,n,i,a){if(ga(e),e.stateNode===null){var o=ho,r=n.contextType;typeof r===\"object\"&&r!==null&&(o=Pt(r)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Wm,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},tp(e),r=n.contextType,o.context=typeof r===\"object\"&&r!==null?Pt(r):ho,o.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r===\"function\"&&(um(e,n,r,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps===\"function\"||typeof o.getSnapshotBeforeUpdate===\"function\"||typeof o.UNSAFE_componentWillMount!==\"function\"&&typeof o.componentWillMount!==\"function\"||(r=o.state,typeof o.componentWillMount===\"function\"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount===\"function\"&&o.UNSAFE_componentWillMount(),r!==o.state&&Wm.enqueueReplaceState(o,o.state,null),il(e,i,o,a),nl(),o.state=e.memoizedState),typeof o.componentDidMount===\"function\"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var l=e.memoizedProps,s=ba(n,l);o.props=s;var c=o.context,u=n.contextType;r=ho,typeof u===\"object\"&&u!==null&&(r=Pt(u));var f=n.getDerivedStateFromProps;u=typeof f===\"function\"||typeof o.getSnapshotBeforeUpdate===\"function\",l=e.pendingProps!==l,u||typeof o.UNSAFE_componentWillReceiveProps!==\"function\"&&typeof o.componentWillReceiveProps!==\"function\"||(l||c!==r)&&_y(e,o,i,r),gi=!1;var m=e.memoizedState;o.state=m,il(e,i,o,a),nl(),c=e.memoizedState,l||m!==c||gi?(typeof f===\"function\"&&(um(e,n,f,i),c=e.memoizedState),(s=gi||Ry(e,n,s,i,m,c,r))?(u||typeof o.UNSAFE_componentWillMount!==\"function\"&&typeof o.componentWillMount!==\"function\"||(typeof o.componentWillMount===\"function\"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount===\"function\"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount===\"function\"&&(e.flags|=4194308)):(typeof o.componentDidMount===\"function\"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=c),o.props=i,o.state=c,o.context=r,i=s):(typeof o.componentDidMount===\"function\"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,Qm(t,e),r=e.memoizedProps,u=ba(n,r),o.props=u,f=e.pendingProps,m=o.context,c=n.contextType,s=ho,typeof c===\"object\"&&c!==null&&(s=Pt(c)),l=n.getDerivedStateFromProps,(c=typeof l===\"function\"||typeof o.getSnapshotBeforeUpdate===\"function\")||typeof o.UNSAFE_componentWillReceiveProps!==\"function\"&&typeof o.componentWillReceiveProps!==\"function\"||(r!==f||m!==s)&&_y(e,o,i,s),gi=!1,m=e.memoizedState,o.state=m,il(e,i,o,a),nl();var d=e.memoizedState;r!==f||m!==d||gi||t!==null&&t.dependencies!==null&&Du(t.dependencies)?(typeof l===\"function\"&&(um(e,n,l,i),d=e.memoizedState),(u=gi||Ry(e,n,u,i,m,d,s)||t!==null&&t.dependencies!==null&&Du(t.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!==\"function\"&&typeof o.componentWillUpdate!==\"function\"||(typeof o.componentWillUpdate===\"function\"&&o.componentWillUpdate(i,d,s),typeof o.UNSAFE_componentWillUpdate===\"function\"&&o.UNSAFE_componentWillUpdate(i,d,s)),typeof o.componentDidUpdate===\"function\"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate===\"function\"&&(e.flags|=1024)):(typeof o.componentDidUpdate!==\"function\"||r===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!==\"function\"||r===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=d),o.props=i,o.state=d,o.context=s,i=u):(typeof o.componentDidUpdate!==\"function\"||r===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!==\"function\"||r===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,no(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!==\"function\"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=va(e,t.child,null,a),e.child=va(e,null,n,a)):Gt(t,e,n,a),e.memoizedState=o.state,t=e.child):t=In(t,e,a),t}function Yy(t,e,n,i){return pa(),e.flags|=256,Gt(t,e,n,i),e.child}var nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function id(t){return{baseLanes:t,cachePool:Tv()}}function ad(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ue),t}function p1(t,e,n){var i=e.pendingProps,a=!1,o=(e.flags&128)!==0,r;if((r=o)||(r=t!==null&&t.memoizedState===null?!1:(Wt.current&2)!==0),r&&(a=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(X){if(a?Oi(e):Ni(),(t=St)?(t=dx(t,tn),t=t!==null&&t.data!==\"&\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_i!==null?{id:Cn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},n=vv(t),n.return=e,e.child=n,kt=e,St=null)):t=null,t===null)throw Bi(e);return Np(t)?e.lanes=32:e.lanes=536870912,null}if(o=i.children,i=i.fallback,a)return Ni(),a=e.mode,o=cc({mode:\"hidden\",children:o},a),i=ca(i,a,n,null),o.return=e,i.return=e,o.sibling=i,e.child=o,i=e.child,i.memoizedState=id(n),i.childLanes=ad(t,r,n),e.memoizedState=nd,ol(null,i);return Oi(e),gp(e,o)}var l=t.memoizedState;if(l!==null){var s=l.dehydrated;if(s!==null)return g2(t,e,o,r,i,s,l,n)}if(a)return Ni(),a=i.fallback,o=e.mode,l=t.child,s=l.sibling,i=Qn(l,{mode:\"hidden\",children:i.children}),i.subtreeFlags=l.subtreeFlags&1206910976,s!==null?a=Qn(s,a):(a=ca(a,o,n,null),a.flags|=2),a.return=e,i.return=e,i.sibling=a,e.child=i,ol(null,i),i=e.child,a=t.child.memoizedState,a===null?a=id(n):(o=a.cachePool,o!==null?(l=Ht._currentValue,o=o.parent!==l?{parent:l,pool:l}:o):o=Tv(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=ad(t,r,n),e.memoizedState=nd,ol(t.child,i);return Oi(e),n=t.child,t=n.sibling,n=Qn(n,{mode:\"visible\",children:i.children}),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function gp(t,e){return e=cc({mode:\"visible\",children:e},t.mode),e.return=t,t.child=e}function cc(t,e){return t=Me(22,t,null,e),t.lanes=0,t}function $s(t,e,n){return va(e,t.child,null,n),t=gp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function g2(t,e,n,i,a,o,r,l){if(n){if(e.flags&256)return Oi(e),e.flags&=-257,$s(t,e,l);if(e.memoizedState!==null)return Ni(),e.child=t.child,e.flags|=128,null;return Ni(),o=a.fallback,r=e.mode,a=cc({mode:\"visible\",children:a.children},r),o=ca(o,r,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,va(e,t.child,null,l),a=e.child,a.memoizedState=id(l),a.childLanes=ad(t,i,l),e.memoizedState=nd,ol(null,a)}if(Oi(e),Np(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var s=i.dgst;return i=s,i!==\"\"&&(a=Error(C(419)),a.stack=\"\",a.digest=i,hl({value:a,source:null,stack:null})),$s(t,e,l)}if(Lt||ha(t,e,l,!1),i=(l&t.childLanes)!==0,Lt||i){if(Ui.current!==null)return $s(t,e,l);if(i=yt,i!==null&&(a=X0(i,l),a!==0&&a!==r.retryLane))throw r.retryLane=a,Aa(t,a),Ae(i,t,a),hp;return Dd(o)||Qu(),$s(t,e,l)}if(Dd(o))return e.flags|=192,e.child=t.child,null;return t=r.treeContext,St=en(o.nextSibling),kt=e,X=!0,Ai=null,tn=!1,t!==null&&bv(e,t),e=gp(e,a.children),e.flags|=134221824,e}function Xy(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),su(t.return,e,n)}function Ky(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&_u(n)===null&&(e=t),t=t.sibling}return e}function Fs(t,e,n,i,a,o){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=a,r.treeForkCount=o)}function cm(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function od(t,e,n){var i=e.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var r=Wt.current;if(e.flags&128)return yl(e,r),null;var l=(r&2)!==0;if(l?(r=r&1|2,e.flags|=128):r&=1,yl(e,r),a===\"backwards\"&&t!==null?(cm(t),Gt(t,e,i,n),cm(t)):Gt(t,e,i,n),i=X?pl:0,!l&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xy(t,n,e);else if(t.tag===19)Xy(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(a){case\"backwards\":n=Ky(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null,cm(e)),Fs(e,!0,a,null,o,i);break;case\"unstable_legacy-backwards\":n=null,a=e.child;for(e.child=null;a!==null;){if(t=a.alternate,t!==null&&_u(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Fs(e,!0,n,null,o,i);break;case\"together\":Fs(e,!1,null,null,void 0,i);break;case\"independent\":e.memoizedState=null;break;default:n=Ky(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Fs(e,!1,a,n,o,i)}return e.child}function Zy(t,e,n){var i=e.pendingProps;return bi(e,e.type,i.value),Gt(t,e,i.children,n),e.child}function In(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Li|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ha(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(C(153));if(e.child!==null){t=e.child,n=Qn(t,t.pendingProps),e.child=n;for(n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Qn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yp(t,e){if((t.lanes&e)!==0)return!0;return t=t.dependencies,t!==null&&Du(t)?!0:!1}function y2(t,e,n){switch(e.tag){case 3:Eu(e,e.stateNode.containerInfo),bi(e,Ht,t.memoizedState.cache),pa();break;case 27:case 5:zm(e);break;case 4:Eu(e,e.stateNode.containerInfo);break;case 10:bi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Fm(e),null;break;case 13:var i=e.memoizedState;if(i!==null){if(i.dehydrated!==null)return Oi(e),e.flags|=128,null;i=ha(t,e,n,!1);var a=e.child.childLanes;if(i||(n&a)!==0)return p1(t,e,n);return Oi(e),t=In(t,e,n),t!==null?t.sibling:null}Oi(e);break;case 19:if(e.flags&128)return od(t,e,n);if(a=(t.flags&128)!==0,i=(n&e.childLanes)!==0,i||(ha(t,e,n,!1),i=(n&e.childLanes)!==0),a){if(i)return od(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),yl(e,Wt.current),i)break;else return null;case 22:return e.lanes=0,d1(t,e,n,e.pendingProps);case 24:bi(e,Ht,t.memoizedState.cache)}return In(t,e,n)}function h1(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Lt=!0;else{if(!yp(t,n)&&(e.flags&128)===0)return Lt=!1,y2(t,e,n);Lt=(t.flags&131072)!==0?!0:!1}else Lt=!1,X&&(e.flags&1048576)!==0&&xv(e,pl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=oa(e.elementType),e.type=t,typeof t===\"function\")Fd(t)?(i=ba(t,i),e.tag=1,e=qy(null,e,t,i,n)):(e.tag=0,e=ed(null,e,t,i,n));else{if(t!==void 0&&t!==null){var a=t.$$typeof;if(a===Ud){e.tag=11,e=Uy(null,e,t,i,n);break t}else if(a===Hd){e.tag=14,e=Hy(null,e,t,i,n);break t}else if(a===An){e.tag=10,e.type=t,e=Zy(null,e,n);break t}}throw e=Vm(t)||t,Error(C(306,e,\"\"))}}return e;case 0:return ed(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,a=ba(i,e.pendingProps),qy(t,e,i,a,n);case 3:t:{if(Eu(e,e.stateNode.containerInfo),t===null)throw Error(C(387));i=e.pendingProps;var o=e.memoizedState;a=o.element,Qm(t,e),il(e,i,null,n);var r=e.memoizedState;if(i=r.cache,bi(e,Ht,i),i!==o.cache&&Km(e,[Ht],n,!0),nl(),i=r.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=Yy(t,e,i,n);break t}else if(i!==a){a=We(Error(C(424)),e),hl(a),e=Yy(t,e,i,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}St=en(t.firstChild),kt=e,X=!0,Ai=null,tn=!0,n=Av(e,null,i,n);for(e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(pa(),i===a){e=In(t,e,n);break t}Gt(t,e,i,n)}e=e.child}return e;case 26:return no(t,e),t===null?(n=g0(e.type,null,e.pendingProps,null))?e.memoizedState=n:X||(e.stateNode=ax(e.type,e.pendingProps,Mi.current,e)):e.memoizedState=g0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return zm(e),t===null&&X&&(i=e.stateNode=px(e.type,e.pendingProps,Mi.current),kt=e,tn=!0,a=St,ji(e.type)?(zd=a,St=en(i.firstChild)):St=a),Gt(t,e,e.pendingProps.children,n),no(t,e),t===null&&(e.flags|=4194304),e.child;case 5:if(t===null&&X){if(a=i=St)i=uA(i,e.type,e.pendingProps,tn),i!==null?(e.stateNode=i,kt=e,St=en(i.firstChild),tn=!1,a=!0):a=!1;a||Bi(e)}return zm(e),a=e.type,o=e.pendingProps,r=t!==null?t.memoizedProps:null,i=o.children,Od(a,o)?i=null:r!==null&&Od(a,r)&&(e.flags|=32),e.memoizedState!==null&&(a=ap(t,e,r2,null,null,n),Go._currentValue=a),no(t,e),Gt(t,e,i,n),e.child;case 6:if(t===null&&X){if(t=n=St)n=cA(n,e.pendingProps,tn),n!==null?(e.stateNode=n,kt=e,St=null,t=!0):t=!1;t||Bi(e)}return null;case 13:return p1(t,e,n);case 4:return Eu(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=va(e,null,i,n):Gt(t,e,i,n),e.child;case 11:return Uy(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,no(t,e),Gt(t,e,i,n),e.child;case 8:return Gt(t,e,e.pendingProps.children,n),e.child;case 12:return Gt(t,e,e.pendingProps.children,n),e.child;case 10:return Zy(t,e,n);case 9:return a=e.type._context,i=e.pendingProps.children,ga(e),a=Pt(a),i=i(a),e.flags|=1,Gt(t,e,i,n),e.child;case 14:return Hy(t,e,e.type,e.pendingProps,n);case 15:return m1(t,e,e.type,e.pendingProps,n);case 19:return od(t,e,n);case 31:return h2(t,e,n);case 22:return d1(t,e,n,e.pendingProps);case 24:return ga(e),i=Pt(Ht),t===null?(a=Id(),a===null&&(a=yt,o=Pd(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),e.memoizedState={parent:i,cache:a},tp(e),bi(e,Ht,a)):((t.lanes&n)!==0&&(Qm(t,e),il(e,null,null,n),nl()),a=t.memoizedState,o=e.memoizedState,a.parent!==i?(a={parent:i,cache:i},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),bi(e,Ht,i)):(i=o.cache,bi(e,Ht,i),i!==a.cache&&Km(e,[Ht],n,!0))),Gt(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=e.pendingProps,i.name!=null&&i.name!==\"auto\"?e.flags|=t===null?18882560:18874368:X&&ac(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:no(t,e),Gt(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(C(156,e.tag))}function Xn(t){t.flags|=4}function fm(t,e,n,i,a){var o;if(o=(t.mode&32)!==0)o=n===null?x0(e,i):x0(e,i)&&(i.src!==n.src||i.srcSet!==n.srcSet);if(o){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(K1())t.flags|=8192;else throw ma=zu,Wd}else t.flags&=-16777217}function Qy(t,e){if(e.type!==\"stylesheet\"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!vx(e))if(K1())t.flags|=8192;else throw ma=zu,Wd}function Js(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?j0():536870912,t.lanes|=e,Ro|=e)}function Gr(t,e){if(!X)switch(t.tailMode){case\"visible\":break;case\"collapsed\":for(var n=t.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;break;default:e=t.tail;for(n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function v2(t,e,n){var i=e.pendingProps;switch(Jd(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(e),null;case 1:return bt(e),null;case 3:if(n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),kn(Ht),No(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),t===null||t.child===null)to(e)?Xn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,rm());return bt(e),null;case 26:var{type:a,memoizedState:o}=e;return t===null?(Xn(e),o!==null?(bt(e),Qy(e,o)):(bt(e),fm(e,a,null,i,n))):o?o!==t.memoizedState?(Xn(e),bt(e),Qy(e,o)):(bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&Xn(e),bt(e),fm(e,a,t,i,n)),null;case 27:if(Mu(e),n=Mi.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Xn(e);else{if(!i){if(e.stateNode===null)throw Error(C(166));return bt(e),e.subtreeFlags&=-33554433,null}t=Nn.current,to(e)?xy(e,t):(t=px(a,i,n),e.stateNode=t,Xn(e))}return bt(e),e.subtreeFlags&=-33554433,null;case 5:if(Mu(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Xn(e);else{if(!i){if(e.stateNode===null)throw Error(C(166));return bt(e),e.subtreeFlags&=-33554433,null}if(o=Nn.current,to(e))xy(e,o);else{var r=Sl(Mi.current);switch(o){case 1:o=r.createElementNS(\"http://www.w3.org/2000/svg\",a);break;case 2:o=r.createElementNS(\"http://www.w3.org/1998/Math/MathML\",a);break;default:switch(a){case\"svg\":o=r.createElementNS(\"http://www.w3.org/2000/svg\",a);break;case\"math\":o=r.createElementNS(\"http://www.w3.org/1998/Math/MathML\",a);break;case\"script\":o=r.createElement(\"div\"),o.innerHTML=\"<script></script>\",o=o.removeChild(o.firstChild);break;case\"select\":o=typeof i.is===\"string\"?r.createElement(\"select\",{is:i.is}):r.createElement(\"select\"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is===\"string\"?r.createElement(a,{is:i.is}):r.createElement(a)}}o[Jt]=e,o[Ce]=i;t:for(r=e.child;r!==null;){if(r.tag===5||r.tag===6)o.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}e.stateNode=o;t:switch(te(o,a,i),a){case\"button\":case\"input\":case\"select\":case\"textarea\":i=!!i.autoFocus;break t;case\"img\":i=!0;break t;default:i=!1}i&&Xn(e)}}return bt(e),e.subtreeFlags&=-33554433,fm(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Xn(e);else{if(typeof i!==\"string\"&&e.stateNode===null)throw Error(C(166));if(t=Mi.current,to(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,a=kt,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}t[Jt]=e,t=t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||nx(t.nodeValue,n)?!0:!1,t||Bi(e,!0)}else t=Sl(t).createTextNode(i),t[Jt]=e,e.stateNode=t}return bt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=to(e),n!==null){if(t===null){if(!i)throw Error(C(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(557));t[Jt]=e}else pa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;bt(e),t=!1}else n=rm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t){if(e.flags&256)return _e(e),e;return _e(e),null}if((e.flags&128)!==0)throw Error(C(558))}return bt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=to(e),i!==null&&i.dehydrated!==null){if(t===null){if(!a)throw Error(C(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(C(317));a[Jt]=e}else pa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;bt(e),a=!1}else a=rm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a){if(e.flags&256)return _e(e),e;return _e(e),null}}if(_e(e),(e.flags&128)!==0)return e.lanes=n,e;return n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Js(e,e.updateQueue),bt(e),null;case 4:return No(),t===null&&wp(e.stateNode.containerInfo),e.flags|=67108864,bt(e),null;case 10:return kn(e.type),bt(e),null;case 19:if(np(e),i=e.memoizedState,i===null)return bt(e),null;if(a=(e.flags&128)!==0,o=i.rendering,o===null)if(a)Gr(i,!1);else{if(Vt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=_u(t),o!==null){e.flags|=128,Gr(i,!1),t=o.updateQueue,e.updateQueue=t,Js(e,t),e.subtreeFlags=0,t=n;for(n=e.child;n!==null;)yv(n,t),n=n.sibling;return yl(e,Wt.current&1|2),X&&Kn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&He()>Ku&&(e.flags|=128,a=!0,Gr(i,!1),e.lanes=4194304)}else{if(!a)if(t=_u(o),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Js(e,t),Gr(i,!0),i.tail===null&&i.tailMode!==\"collapsed\"&&i.tailMode!==\"visible\"&&!o.alternate&&!X)return bt(e),null}else 2*He()-i.renderingStartTime>Ku&&n!==536870912&&(e.flags|=128,a=!0,Gr(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}if(i.tail!==null){t=i.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return i.rendering=t,i.tail=t.sibling,i.renderingStartTime=He(),t.sibling=null,o=Wt.current,o=a?o&1|2:o&1,i.tailMode===\"visible\"||i.tailMode===\"collapsed\"||!n||X?yl(e,o):(n=o,Tt(ee,e),Tt(Wt,n),ce===null&&(ce=e)),X&&Kn(e,i.treeForkCount),t}return bt(e),null;case 22:case 23:return _e(e),ep(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(bt(e),e.subtreeFlags&6&&(e.flags|=8192)):bt(e),n=e.updateQueue,n!==null&&Js(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&It(fa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),kn(Ht),bt(e),null;case 25:return null;case 30:return e.flags|=33554432,bt(e),null}throw Error(C(156,e.tag))}function x2(t,e){switch(Jd(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return kn(Ht),No(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mu(e),null;case 31:if(e.memoizedState!==null){if(_e(e),e.alternate===null)throw Error(C(340));pa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(_e(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(C(340));pa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return np(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return No(),null;case 10:return kn(e.type),null;case 22:case 23:return _e(e),ep(),t!==null&&It(fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return kn(Ht),null;case 25:return null;default:return null}}function g1(t,e){switch(Jd(e),e.tag){case 3:kn(Ht),No();break;case 26:case 27:case 5:Mu(e);break;case 4:No();break;case 31:e.memoizedState!==null&&_e(e);break;case 13:_e(e);break;case 19:np(e);break;case 10:kn(e.type);break;case 22:case 23:_e(e),ep(),t!==null&&It(fa);break;case 24:kn(Ht)}}function _l(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&t)===t){i=void 0;var{create:o,inst:r}=n;i=o(),r.destroy=i}n=n.next}while(n!==a)}}catch(l){mt(e,e.return,l)}}function Hi(t,e,n){try{var i=e.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&t)===t){var r=i.inst,l=r.destroy;if(l!==void 0){r.destroy=void 0,a=e;var s=n,c=l;try{c()}catch(u){mt(a,s,u)}}}i=i.next}while(i!==o)}}catch(u){mt(e,e.return,u)}}function y1(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Cv(e,n)}catch(i){mt(t,t.return,i)}}}function v1(t,e,n){n.props=ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){mt(t,e,i)}}function En(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:var a=t.stateNode,o=Fn(t.memoizedProps,a);if(a.ref===null||a.ref.name!==o)a.ref=sx(o);i=a.ref;break;case 7:if(t.stateNode===null){var r=new Ye(t);we(t.child,!1,lA,r,void 0,void 0),t.stateNode=r}i=t.stateNode;break;default:i=t.stateNode}typeof n===\"function\"?t.refCleanup=n(i):n.current=i}}catch(l){mt(t,e,l)}}function Ft(t,e){var{ref:n,refCleanup:i}=t;if(n!==null)if(typeof i===\"function\")try{i()}catch(a){mt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n===\"function\")try{n(null)}catch(a){mt(t,e,a)}else n.current=null}function Gu(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)mx(t.stateNode,e[n])}function ky(t){for(var e=t.return;e!==null;){if(xp(e)&&mx(t.stateNode,e.stateNode),vp(e))break;e=e.return}}function rl(t){for(var e=t.return;e!==null;){if(xp(e)&&sA(t.stateNode,e.stateNode),vp(e))break;e=e.return}}function vp(t){return t.tag===5||t.tag===3||t.tag===27}function xp(t){return t&&t.tag===7&&t.stateNode!==null}function rd(t){var{type:e,memoizedProps:n,stateNode:i}=t;try{t:switch(e){case\"button\":case\"input\":case\"select\":case\"textarea\":n.autoFocus&&i.focus();break t;case\"img\":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){mt(t,t.return,a)}}function mm(t,e,n){try{var i=t.stateNode;X2(i,t.type,n,e),i[Ce]=e}catch(a){mt(t,t.return,a)}}function x1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ji(t.type)||t.tag===4}function dm(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||x1(t.return))return null;t=t.return}t.sibling.return=t.return;for(t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ji(t.type))continue t;if(t.flags&2)continue t;if(t.child===null||t.tag===4)continue t;else t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ld(t,e,n,i){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName===\"HTML\"?n.ownerDocument.body:n).insertBefore(a,e):(e=n.nodeType===9?n.body:n.nodeName===\"HTML\"?n.ownerDocument.body:n,e.appendChild(a),n=n._reactRootContainer,n!==null&&n!==void 0||e.onclick!==null||(e.onclick=wn)),Gu(t,i),nt=!0;else if(a!==4&&(a===27&&(Gu(t,i),i=null,ji(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(ld(t,e,n,i),t=t.sibling;t!==null;)ld(t,e,n,i),t=t.sibling}function ju(t,e,n,i){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?n.insertBefore(a,e):n.appendChild(a),Gu(t,i),nt=!0;else if(a!==4&&(a===27&&(Gu(t,i),i=null,ji(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(ju(t,e,n,i),t=t.sibling;t!==null;)ju(t,e,n,i),t=t.sibling}function b1(t){var{stateNode:e,memoizedProps:n}=t;try{for(var i=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);te(e,i,n),e[Jt]=t,e[Ce]=n}catch(o){mt(t,t.return,o)}}var qu=!1,Be=null;function $y(t){if(t.tag===30||(t.subtreeFlags&33554432)!==0)qu=!0}var Mn=null;function Fy(){var t=Mn;return Mn=null,t}var Ee=0;function Zo(t,e,n,i,a){return Ee=0,S1(t.child,e,n,i,a)}function S1(t,e,n,i,a){for(var o=!1;t!==null;){if(t.tag===5){var r=t.stateNode;if(i!==null){var l=Nd(r);i.push(l),l.view&&(o=!0)}else o||Nd(r).view&&(o=!0);qu=!0,ox(r,Ee===0?e:e+\"_\"+Ee,n),Ee++}else if(t.tag!==22||t.memoizedState===null)t.tag===30&&a||S1(t.child,e,n,i,a)&&(o=!0);t=t.sibling}return o}function Dn(t,e){for(;t!==null;){if(t.tag===5)rx(t.stateNode,t.memoizedProps);else if(t.tag!==22||t.memoizedState===null)t.tag===30&&e||Dn(t.child,e);t=t.sibling}}function du(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(du(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired){var e=t.memoizedProps;if(e.name==null||e.name===\"auto\")throw Error(C(544));var n=e.name;e=ei(e.default,e.share),e!==\"none\"&&(Zo(t,n,e,null,!1)||Dn(t.child,!1))}}t=t.sibling}}function sd(t,e){if(t.tag===30){var{stateNode:n,memoizedProps:i}=t,a=Fn(i,n),o=ei(i.default,n.paired?i.share:i.enter);o!==\"none\"?Zo(t,a,o,null,!1)?(du(t),n.paired||e||_o(t,i.onEnter)):Dn(t.child,!1):du(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)sd(t,e),t=t.sibling;else du(t)}function ud(t){if(Be!==null&&Be.size!==0){var e=Be;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,i=n.name;if(i!=null&&i!==\"auto\"){var a=e.get(i);if(a!==void 0){var o=ei(n.default,n.share);if(o!==\"none\"&&(Zo(t,i,o,null,!1)?(o=t.stateNode,a.paired=o,o.paired=a,_o(t,n.onShare)):Dn(t.child,!1)),e.delete(i),e.size===0)break}}}ud(t)}t=t.sibling}}}function cd(t){if(t.tag===30){var e=t.memoizedProps,n=Fn(e,t.stateNode),i=Be!==null?Be.get(n):void 0,a=ei(e.default,i!==void 0?e.share:e.exit);a!==\"none\"&&(Zo(t,n,a,null,!1)?i!==void 0?(a=t.stateNode,i.paired=a,a.paired=i,Be.delete(n),_o(t,e.onShare)):_o(t,e.onExit):Dn(t.child,!1)),Be!==null&&ud(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)cd(t),t=t.sibling;else Be!==null&&ud(t)}function T1(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Fn(e,t.stateNode);e=ei(e.default,e.update),t.flags&=-5,e!==\"none\"&&Zo(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&T1(t);t=t.sibling}}function fd(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Dn(t.child,!1))}fd(t)}t=t.sibling}}function pu(t){if(t.tag===30)t.stateNode.paired=null,Dn(t.child,!1),fd(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)pu(t),t=t.sibling;else fd(t)}function E1(t){for(t=t.child;t!==null;)t.tag===30?Dn(t.child,!1):(t.subtreeFlags&33554432)!==0&&E1(t),t=t.sibling}function bp(t,e,n,i,a,o,r){for(var l=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(o!==null&&Ee<o.length){var c=o[Ee],u=Nd(s);if(c.view||u.view)l=!0;var f;if(f=(t.flags&4)===0)if(u.clip)f=!0;else{f=c.rect;var m=u.rect;f=f.y!==m.y||f.x!==m.x||f.height!==m.height||f.width!==m.width}f&&(t.flags|=4),u.abs?u=!c.abs:(c=c.rect,u=u.rect,u=c.height!==u.height||c.width!==u.width),u&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&ox(s,Ee===0?n:n+\"_\"+Ee,a),l&&(t.flags&4)!==0||(Mn===null&&(Mn=[]),Mn.push(s,Ee===0?i:i+\"_\"+Ee,e.memoizedProps)),Ee++}else if(e.tag!==22||e.memoizedState===null)e.tag===30&&r?t.flags|=e.flags&32:bp(t,e.child,n,i,a,o,r)&&(l=!0);e=e.sibling}return l}function M1(t,e){for(t=t.child;t!==null;){if(t.tag===30){var{memoizedProps:n,stateNode:i}=t,a=Fn(n,i),o=ei(n.default,n.update);if(e){i=i.clones;var r=i===null?null:i.map(F2)}else r=t.memoizedState,t.memoizedState=null;i=t;var l=t.child;Ee=0,a=bp(i,l,a,a,o,r,!1),(t.flags&4)!==0&&a&&(e||_o(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&M1(t,e);t=t.sibling}}var Kt=!1,lt=!1,bn=!1,pm=!1,Jy=typeof WeakSet===\"function\"?WeakSet:Set,Zt=null,Sn=!1,$r=!1,Yu=!1,md=!1;function b2(t,e,n){if(t=t.containerInfo,wd=jo,t=uv(t),Qd(t)){if(\"selectionStart\"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var{anchorOffset:o,focusNode:r}=a;a=a.focusOffset;try{i.nodeType,r.nodeType}catch(x){i=null;break t}var l=0,s=-1,c=-1,u=0,f=0,m=t,d=null;e:for(;;){for(var y;;){if(m!==i||o!==0&&m.nodeType!==3||(s=l+o),m!==r||a!==0&&m.nodeType!==3||(c=l+a),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)===null)break;d=m,m=y}for(;;){if(m===t)break e;if(d===i&&++u===o&&(s=l),d===r&&++f===a&&(c=l),(y=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=y}i=s===-1||c===-1?null:{start:s,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;Cd={focusedElem:t,selectionRange:i},jo=!1,n=(n&335544064)===n,Zt=e;for(e=n?9270:1024;Zt!==null;){if(t=Zt,n&&(i=t.deletions,i!==null))for(o=0;o<i.length;o++)n&&cd(i[o]);if(t.alternate===null&&(t.flags&2)!==0)n&&$y(t),Ps(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&cd(i),Ps(n);continue}else if(i!==null&&i.memoizedState!==null){n&&$y(t),Ps(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,Zt=i):(n&&T1(t),Ps(n))}}Be=null}function Ps(t){for(;Zt!==null;){var e=Zt,n=t,i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=e.stateNode;try{var r=ba(e.type,a);n=o.getSnapshotBeforeUpdate(r,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(l){mt(e,e.return,l)}}break;case 3:if((a&1024)!==0){if(i=e.stateNode.containerInfo,n=i.nodeType,n===9)Vd(i);else if(n===1)switch(i.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Vd(i);break;default:i.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=Fn(i.memoizedProps,i.stateNode),a=e.memoizedProps,a=ei(a.default,a.update),a!==\"none\"&&Zo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(C(163))}if(i=e.sibling,i!==null){i.return=e.return,Zt=i;break}Zt=e.return}}function A1(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n),i&4&&_l(5,n);break;case 1:if(Tn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){mt(n,n.return,r)}else{var a=ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){mt(n,n.return,r)}}i&64&&y1(n),i&512&&En(n,n.return);break;case 3:if(Tn(t,n),i&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{Cv(t,e)}catch(r){mt(n,n.return,r)}}break;case 27:e===null&&i&4&&b1(n);case 26:case 5:Tn(t,n),e===null&&i&4&&rd(n),i&512&&En(n,n.return);break;case 12:Tn(t,n);break;case 31:Tn(t,n),i&4&&N1(t,n);break;case 13:Tn(t,n),i&4&&V1(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=z2.bind(null,n),fA(t,n))));break;case 22:if(i=n.memoizedState!==null||Kt,!i){var o=e!==null&&e.memoizedState!==null||lt;e=Kt,a=lt,Kt=i,(lt=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),sn(t,n,i)):Tn(t,n),Kt=e,lt=a}break;case 30:Tn(t,n),i&512&&En(n,n.return);break;case 7:i&512&&En(n,n.return);default:Tn(t,n)}}function dd(t,e){for(t=t.child;t!==null;)w1(t,e),t=t.sibling}function w1(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var i=n.style;typeof i.setProperty===\"function\"?i.setProperty(\"display\",\"none\",\"important\"):i.display=\"none\"}else{var a=t.stateNode,o=t.memoizedProps.style,r=o!==void 0&&o!==null&&o.hasOwnProperty(\"display\")?o.display:null;a.style.display=r==null||typeof r===\"boolean\"?\"\":(\"\"+r).trim()}}catch(s){mt(t,t.return,s)}pd(t,e);break;case 6:try{t.stateNode.nodeValue=e?\"\":t.memoizedProps,nt=!0}catch(s){mt(t,t.return,s)}break;case 18:try{var l=t.stateNode;e?c0(l,!0):c0(t.stateNode,!1)}catch(s){mt(t,t.return,s)}break;case 22:case 23:t.memoizedState===null&&dd(t,e);break;default:dd(t,e)}}function pd(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:w1(n,i);break t;case 22:n.memoizedState===null&&pd(n,i);break t;default:pd(n,i)}}t=t.sibling}}function C1(t){var e=t.alternate;e!==null&&(t.alternate=null,C1(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Iu(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 At=null,Se=!1;function ln(t,e,n){for(n=n.child;n!==null;)O1(t,e,n),n=n.sibling}function O1(t,e,n){if(Le&&typeof Le.onCommitFiberUnmount===\"function\")try{Le.onCommitFiberUnmount(Cl,n)}catch(o){}switch(n.tag){case 26:lt||Ft(n,e),ln(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!lt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||Ft(n,e),rl(n);var i=At,a=Se;ji(n.type)&&(At=n.stateNode,Se=!1),ln(t,e,n),hx(n.stateNode,n.type,n.memoizedProps),At=i,Se=a;break;case 5:lt||Ft(n,e),rl(n);case 6:if(n.tag===6&&rl(n),i=At,a=Se,At=null,ln(t,e,n),At=i,Se=a,At!==null)if(Se)try{(At.nodeType===9?At.body:At.nodeName===\"HTML\"?At.ownerDocument.body:At).removeChild(n.stateNode),nt=!0}catch(o){mt(n,e,o)}else try{At.removeChild(n.stateNode),nt=!0}catch(o){mt(n,e,o)}break;case 18:At!==null&&(Se?(t=At,u0(t.nodeType===9?t.body:t.nodeName===\"HTML\"?t.ownerDocument.body:t,n.stateNode),qo(t)):u0(At,n.stateNode));break;case 4:i=At,a=Se,At=n.stateNode.containerInfo,Se=!0,ln(t,e,n),At=i,Se=a;break;case 0:case 11:case 14:case 15:Hi(2,n,e),lt||Hi(4,n,e),ln(t,e,n);break;case 1:lt||(Ft(n,e),i=n.stateNode,typeof i.componentWillUnmount===\"function\"&&v1(n,e,i)),ln(t,e,n);break;case 21:ln(t,e,n);break;case 22:lt=(i=lt)||n.memoizedState!==null,ln(t,e,n),lt=i;break;case 30:Ft(n,e),ln(t,e,n);break;case 7:lt||Ft(n,e),ln(t,e,n);break;default:ln(t,e,n)}}function N1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{qo(t)}catch(n){mt(e,e.return,n)}}}function V1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qo(t)}catch(n){mt(e,e.return,n)}}function S2(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Jy),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Jy),e;default:throw Error(C(435,t.tag))}}function Is(t,e){var n=S2(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var a=R2.bind(null,t,i);i.then(a,a)}})}function he(t,e,n){var i=e.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],r=t,l=e,s=l;t:for(;s!==null;){switch(s.tag){case 27:if(ji(s.type)){At=s.stateNode,Se=!1;break t}break;case 5:At=s.stateNode,Se=!1;break t;case 3:case 4:At=s.stateNode.containerInfo,Se=!0;break t}s=s.return}if(At===null)throw Error(C(160));O1(r,l,o),At=null,Se=!1,r=o.alternate,r!==null&&(r.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)D1(e,t,n),e=e.sibling}var un=null;function D1(t,e,n){var{alternate:i,flags:a}=t;switch(t.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=t.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var r=i[o];r.ref.impl=r.nextImpl}he(e,t,n),ge(t),a&4&&(Hi(3,t,t.return),_l(3,t),Hi(5,t,t.return));break;case 1:he(e,t,n),ge(t),a&512&&(lt||i===null||Ft(i,i.return)),a&64&&Kt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(o=un,he(e,t,n),ge(t),a&512&&(lt||i===null||Ft(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null)if(Kt)t.stateNode=ax(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,a=o.ownerDocument||o;e:switch(e){case\"title\":if(i=a.getElementsByTagName(\"title\")[0],!i||i[Vl]||i[Jt]||i.namespaceURI===\"http://www.w3.org/2000/svg\"||i.hasAttribute(\"itemprop\"))i=a.createElement(e),a.head.insertBefore(i,a.querySelector(\"head > title\"));te(i,e,n),i[Jt]=t,Qt(i),e=i;break t;case\"link\":if(o=v0(\"link\",\"href\",a).get(e+(n.href||\"\"))){for(r=0;r<o.length;r++)if(i=o[r],i.getAttribute(\"href\")===(n.href==null||n.href===\"\"?null:n.href)&&i.getAttribute(\"rel\")===(n.rel==null?null:n.rel)&&i.getAttribute(\"title\")===(n.title==null?null:n.title)&&i.getAttribute(\"crossorigin\")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(r,1);break e}}i=a.createElement(e),te(i,e,n),a.head.appendChild(i);break;case\"meta\":if(o=v0(\"meta\",\"content\",a).get(e+(n.content||\"\"))){for(r=0;r<o.length;r++)if(i=o[r],i.getAttribute(\"content\")===(n.content==null?null:\"\"+n.content)&&i.getAttribute(\"name\")===(n.name==null?null:n.name)&&i.getAttribute(\"property\")===(n.property==null?null:n.property)&&i.getAttribute(\"http-equiv\")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute(\"charset\")===(n.charSet==null?null:n.charSet)){o.splice(r,1);break e}}i=a.createElement(e),te(i,e,n),a.head.appendChild(i);break;default:throw Error(C(468,e))}i[Jt]=t,Qt(i),e=i}t.stateNode=e}else Kt||Rd(o,t.type,t.stateNode);else t.stateNode=y0(o,n,t.memoizedProps);else a!==n?(a===null?(e=i.stateNode,e===null||lt||e.parentNode.removeChild(e)):a.count--,n===null?Kt||Rd(o,t.type,t.stateNode):y0(o,n,t.memoizedProps)):n===null&&t.stateNode!==null&&mm(t,t.memoizedProps,i.memoizedProps);break;case 27:he(e,t,n),ge(t),a&512&&(lt||i===null||Ft(i,i.return)),i!==null&&a&4&&mm(t,t.memoizedProps,i.memoizedProps);break;case 5:if(o=bn,bn=!1,he(e,t,n),bn=o,ge(t),a&512&&(lt||i===null||Ft(i,i.return)),t.flags&32){e=t.stateNode;try{Do(e,\"\"),nt=!0}catch(u){mt(t,t.return,u)}}a&4&&t.stateNode!=null&&(e=t.memoizedProps,mm(t,e,i!==null?i.memoizedProps:e)),a&1024&&(pm=!0);break;case 6:if(he(e,t,n),ge(t),a&4){if(t.stateNode===null)throw Error(C(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,nt=!0}catch(u){mt(t,t.return,u)}}break;case 3:if(nt=!1,vu=null,o=un,un=Tl(e.containerInfo),he(e,t,n),un=o,ge(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{qo(e.containerInfo)}catch(u){mt(t,t.return,u)}pm&&(pm=!1,z1(t)),nt=!1;break;case 4:a=bn,bn=Kt,i=ny(),o=un,un=Tl(t.stateNode.containerInfo),he(e,t,n),ge(t),un=o,nt&&$r&&(Yu=!0),nt=i,bn=a;break;case 12:he(e,t,n),ge(t);break;case 31:he(e,t,n),ge(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Is(t,e)));break;case 13:he(e,t,n),ge(t),t.child.flags&8192&&t.memoizedState!==null!==(i!==null&&i.memoizedState!==null)&&(fc=He()),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Is(t,e)));break;case 22:o=t.memoizedState!==null,r=i!==null&&i.memoizedState!==null;var l=Kt,s=lt,c=bn;Kt=l||o,bn=c||o,lt=s||r,he(e,t,n),lt=s,bn=c,Kt=l,ge(t),a&8192&&(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,!o||i===null||r||Kt||lt||(e=r||lt,n=Kt,i=lt,Kt=o||Kt,lt=e,pi(t,2),Kt=n,lt=i),!o&&bn||dd(t,o)),a&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,Is(t,n))));break;case 19:he(e,t,n),ge(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Is(t,e)));break;case 30:a&512&&(lt||i===null||Ft(i,i.return)),a=ny(),o=$r,r=(n&335544064)===n,l=t.memoizedProps,$r=r&&ei(l.default,l.update)!==\"none\",he(e,t,n),ge(t),r&&i!==null&&nt&&(t.flags|=4),$r=o,nt=a;break;case 21:break;case 7:a&512&&(lt||i===null||Ft(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:he(e,t,n),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(x1(i)){n=i;break}i=i.return}i=null;for(var a=t.return;a!==null;){if(xp(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(vp(a))break;a=a.return}var r=i;if(n==null)throw Error(C(160));switch(n.tag){case 27:var l=n.stateNode,s=dm(t);ju(t,s,l,r);break;case 5:var c=n.stateNode;n.flags&32&&(Do(c,\"\"),n.flags&=-33);var u=dm(t);ju(t,u,c,r);break;case 3:case 4:var f=n.stateNode.containerInfo,m=dm(t);ld(t,m,f,r);break;default:throw Error(C(161))}}catch(d){mt(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function z1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;z1(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,jo=!0,e.reset(),jo=!1),t=t.sibling}}function eo(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)R1(e,t),e=e.sibling;else M1(e,!1)}function R1(t,e){var n=t.alternate;if(n===null)sd(t,!1);else switch(t.tag){case 3:if(md=Sn=!1,Fy(),eo(e,t),!Sn&&!Yu){if(t=Mn,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var a=t[i+1];rx(n,t[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[\"none\",\"none\"]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition-group(\"+a+\")\"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===\"\"&&(t.style.viewTransitionName=\"none\",t.animate({opacity:[0,0],pointerEvents:[\"none\",\"none\"]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition-group(root)\"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition\"})),md=!0}Mn=null;break;case 5:eo(e,t);break;case 4:i=Sn,Sn=!1,eo(e,t),Sn&&(Yu=!0),Sn=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?sd(t,!1):eo(e,t));break;case 30:i=Sn,a=Fy(),Sn=!1,eo(e,t),Sn&&(t.flags|=4);var{memoizedProps:o,stateNode:r}=t;e=Fn(o,r),r=Fn(n.memoizedProps,r);var l=ei(o.default,o.update);l===\"none\"?e=!1:(o=n.memoizedState,n.memoizedState=null,n=t.child,Ee=0,e=bp(t,n,e,r,l,o,!0),Ee!==(o===null?0:o.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(_o(t,t.memoizedProps.onUpdate),Mn=a):a!==null&&(a.push.apply(a,Mn),Mn=a),Sn=(t.flags&32)!==0?!0:i;break;default:eo(e,t)}}function Tn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)A1(t,e.alternate,e),e=e.sibling}function pi(t,e){for(t=t.child;t!==null;){var n=t,i=e;switch(n.tag){case 0:case 11:case 14:case 15:Hi(4,n,n.return),pi(n,i);break;case 1:Ft(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount===\"function\"&&v1(n,n.return,a),pi(n,i);break;case 27:(i&2)!==0&&hx(n.stateNode,n.type,n.memoizedProps);case 5:Ft(n,n.return),n.tag!==5&&n.tag!==27||rl(n),pi(n,i);break;case 6:rl(n);break;case 26:Ft(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||lt||a.parentNode.removeChild(a),pi(n,i);break;case 22:n.memoizedState===null&&pi(n,i);break;case 30:Ft(n,n.return),pi(n,i);break;case 7:Ft(n,n.return);default:pi(n,i)}t=t.sibling}}function sn(t,e,n){n=(e.subtreeFlags&8772)!==0?n:n&-2;for(e=e.child;e!==null;){var i=e.alternate,a=t,o=e,r=o.flags,l=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:sn(a,o,n),_l(4,o);break;case 1:if(sn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount===\"function\")try{a.componentDidMount()}catch(u){mt(i,i.return,u)}if(i=o,a=i.updateQueue,a!==null){var s=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)wv(c[a],s)}catch(u){mt(i,i.return,u)}}l&&r&64&&y1(o),En(o,o.return);break;case 27:(n&2)!==0&&b1(o);case 5:o.tag!==5&&o.tag!==27||ky(o),sn(a,o,n),l&&i===null&&r&4&&rd(o),En(o,o.return);break;case 6:ky(o);break;case 26:s=o.stateNode,o.memoizedState!==null||s===null||Kt||Rd(Tl(s.ownerDocument),o.type,s),sn(a,o,n),l&&i===null&&r&4&&rd(o),En(o,o.return);break;case 12:sn(a,o,n);break;case 31:sn(a,o,n),l&&r&4&&N1(a,o);break;case 13:sn(a,o,n),l&&r&4&&V1(a,o);break;case 22:o.memoizedState===null&&sn(a,o,n),En(o,o.return);break;case 30:sn(a,o,n),En(o,o.return);break;case 7:En(o,o.return);default:sn(a,o,n)}e=e.sibling}}function Sp(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&&zl(n))}function Tp(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zl(t))}function $e(t,e,n,i){var a=(n&335544064)===n;if(e.subtreeFlags&(a?10262:10256))for(e=e.child;e!==null;)_1(t,e,n,i),e=e.sibling;else a&&E1(e)}function _1(t,e,n,i){var a=(n&335544064)===n;a&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&pu(e);var o=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,n,i),o&2048&&_l(9,e);break;case 1:$e(t,e,n,i);break;case 3:$e(t,e,n,i),a&&md&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName===\"HTML\"?t.ownerDocument.body:t,t.style.viewTransitionName===\"root\"&&(t.style.viewTransitionName=\"\"),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===\"none\"&&(t.style.viewTransitionName=\"\")),o&2048&&(o=null,e.alternate!==null&&(o=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==o&&(e.refCount++,o!=null&&zl(o)));break;case 12:if(o&2048){$e(t,e,n,i),o=e.stateNode;try{var r=e.memoizedProps,l=r.id,s=r.onPostCommit;typeof s===\"function\"&&s(l,e.alternate===null?\"mount\":\"update\",o.passiveEffectDuration,-0)}catch(c){mt(e,e.return,c)}}else $e(t,e,n,i);break;case 31:$e(t,e,n,i);break;case 13:$e(t,e,n,i);break;case 23:break;case 22:r=e.stateNode,l=e.alternate,e.memoizedState!==null?(a&&l!==null&&l.memoizedState===null&&pu(l),r._visibility&2?$e(t,e,n,i):ll(t,e)):(a&&l!==null&&l.memoizedState!==null&&pu(e),r._visibility&2?$e(t,e,n,i):(r._visibility|=2,io(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),o&2048&&Sp(l,e);break;case 24:$e(t,e,n,i),o&2048&&Tp(e.alternate,e);break;case 30:a&&(o=e.alternate,o!==null&&(Dn(o.child,!0),Dn(e.child,!0))),$e(t,e,n,i);break;default:$e(t,e,n,i)}}function io(t,e,n,i,a){a=a&&((e.subtreeFlags&10256)!==0||!1);for(e=e.child;e!==null;){var o=t,r=e,l=n,s=i,c=r.flags;switch(r.tag){case 0:case 11:case 15:io(o,r,l,s,a),_l(8,r);break;case 23:break;case 22:var u=r.stateNode;r.memoizedState!==null?u._visibility&2?io(o,r,l,s,a):ll(o,r):(u._visibility|=2,io(o,r,l,s,a)),a&&c&2048&&Sp(r.alternate,r);break;case 24:io(o,r,l,s,a),a&&c&2048&&Tp(r.alternate,r);break;default:io(o,r,l,s,a)}e=e.sibling}}function ll(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,a=i.flags;switch(i.tag){case 22:ll(n,i),a&2048&&Sp(i.alternate,i);break;case 24:ll(n,i),a&2048&&Tp(i.alternate,i);break;default:ll(n,i)}e=e.sibling}}var ra=8192;function na(t,e,n){if(t.subtreeFlags&ra)for(t=t.child;t!==null;)B1(t,e,n),t=t.sibling}function B1(t,e,n){switch(t.tag){case 26:na(t,e,n),t.flags&ra&&(t.memoizedState!==null?AA(n,un,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&b0(n,t)));break;case 5:na(t,e,n),t.flags&ra&&(t=t.stateNode,(e&335544128)===e&&b0(n,t));break;case 3:case 4:var i=un;un=Tl(t.stateNode.containerInfo),na(t,e,n),un=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=ra,ra=16777216,na(t,e,n),ra=i):na(t,e,n));break;case 30:if((t.flags&ra)!==0&&(i=t.memoizedProps.name,i!=null&&i!==\"auto\")){var a=t.stateNode;a.paired=null,Be===null&&(Be=new Map),Be.set(i,a)}na(t,e,n);break;default:na(t,e,n)}}function U1(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 jr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Zt=i,L1(i,t)}U1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)H1(t),t=t.sibling}function H1(t){switch(t.tag){case 0:case 11:case 15:jr(t),t.flags&2048&&Hi(9,t,t.return);break;case 3:jr(t);break;case 12:jr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,hu(t)):jr(t);break;default:jr(t)}}function hu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Zt=i,L1(i,t)}U1(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Hi(8,e,e.return),hu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,hu(e));break;default:hu(e)}t=t.sibling}}function L1(t,e){for(;Zt!==null;){var n=Zt;switch(n.tag){case 0:case 11:case 15:Hi(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:zl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Zt=i;else t:for(n=t;Zt!==null;){i=Zt;var{sibling:a,return:o}=i;if(C1(i),i===n){Zt=null;break t}if(a!==null){a.return=o,Zt=a;break t}Zt=o}}}var T2={getCacheForType:function(t){var e=Pt(Ht),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Pt(Ht).controller.signal}},E2=typeof WeakMap===\"function\"?WeakMap:Map,at=0,yt=null,k=null,F=0,ct=0,ze=null,Si=!1,Qo=!1,Ep=!1,Wn=0,Vt=0,Li=0,da=0,Xu=0,Ue=0,Ro=0,sl=null,Te=null,hd=!1,fc=0,G1=0,Ku=1/0,Zu=null,Vi=null,wt=0,fn=null,Sa=null,Vn=0,gd=0,yd=null,j1=null,wo=null,Co=null,Oo=null,ul=0,gu=null;function je(){return(at&2)!==0&&F!==0?F&-F:B.T!==null?Ap():K0()}function q1(){if(Ue===0)if((F&536870912)===0||X){var t=qs;qs<<=1,(qs&3932160)===0&&(qs=262144),Ue=t}else Ue=536870912;return t=ee.current,t!==null&&(t.flags|=32),Ue}function _o(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=sx(Fn(t.memoizedProps,n))),Co===null&&(Co=[]),Co.push(e.bind(null,i))}}function Ae(t,e,n){if(t===yt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)Bo(t,0),Ti(t,F,Ue,!1);if(Nl(t,n),(at&2)===0||t!==yt)t===yt&&((at&2)===0&&(da|=n),Vt===4&&Ti(t,F,Ue,!1)),Rn(t)}function Y1(t,e,n){if((at&6)!==0)throw Error(C(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ol(t,e),a=i?w2(t,e):hm(t,e,!0),o=i;do{if(a===0){Qo&&!i&&Ti(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!M2(n)){a=hm(t,e,!1),o=!1;continue}if(a===2){if(o=e,t.errorRecoveryDisabledLanes&o)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var l=t;a=sl;var s=l.current.memoizedState.isDehydrated;if(s&&(Bo(l,r).flags|=256),r=hm(l,r,!1),r!==2&&r!==6){if(Ep&&!s){l.errorRecoveryDisabledLanes|=o,da|=o,a=4;break t}o=Te,Te=a,o!==null&&(Te===null?Te=o:Te.push.apply(Te,o))}a=r}if(o=!1,a!==2)continue}}if(a===1){Bo(t,0),Ti(t,e,0,!0);break}t:{switch(i=t,o=a,o){case 0:case 1:throw Error(C(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Ti(i,e,Ue,!Si);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(C(329))}if((e&62914560)===e&&(a=fc+300-He(),10<a)){if(Ti(i,e,Ue,!Si),Pu(i,0,!0)!==0)break t;Vn=e,i.timeoutHandle=Cp(Py.bind(null,i,n,Te,Zu,hd,e,Ue,da,Ro,Si,o,\"Throttled\",-0,0),a);break t}Py(i,n,Te,Zu,hd,e,Ue,da,Ro,Si,o,null,-0,0)}}break}while(1);Rn(t)}function Py(t,e,n,i,a,o,r,l,s,c,u,f,m,d){t.timeoutHandle=-1;var y=e.subtreeFlags,x=(o&335544064)===o;if(f=null,x||y&8192||(y&16785408)===16785408){if(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},Be=null,B1(e,o,f),x&&(y=f,x=t.containerInfo,x=(x.nodeType===9?x:x.ownerDocument).__reactViewTransition,x!=null&&(y.count++,y.waitingForViewTransition=!0,y=El.bind(y),x.finished.then(y,y))),y=(o&62914560)===o?fc-He():(o&4194048)===o?G1-He():0,y=wA(f,y),y!==null){Vn=o,t.cancelPendingCommit=y(Wy.bind(null,t,e,o,n,i,a,r,l,s,c,u,f,null,m,d)),Ti(t,o,r,!c);return}}Wy(t,e,o,n,i,a,r,l,s,c,u,f)}function M2(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 i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!qe(o(),a))return!1}catch(r){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 Ti(t,e,n,i){e=G0(t,e),e&=~Xu,e&=~da,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var a=e;0<a;){var o=31-Ge(a),r=1<<o;i[o]=-1,a&=~r}n!==0&&q0(t,n,e)}function mc(){return(at&6)===0?(Bl(0,!1),!1):!0}function Mp(){if(k!==null){if(ct===0)var t=k.return;else t=k,Zn=wa=null,lp(t),Eo=null,gl=0,t=k;for(;t!==null;)g1(t.alternate,t),t=t.return;k=null}}function Bo(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,Q2(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Vn=0,Mp(),yt=t,k=n=Qn(t.current,null),F=e,ct=0,ze=null,Si=!1,Qo=Ol(t,e),Ep=!1,Ro=Ue=Xu=da=Li=Vt=0,Te=sl=null,hd=!1,Wn=G0(t,e),nc(),n}function X1(t,e){j=null,B.H=Hu,e===Ko||e===oc?(e=My(),ct=3):e===Wd?(e=My(),ct=4):ct=e===hp?8:e!==null&&typeof e===\"object\"&&typeof e.then===\"function\"?6:1,ze=e,k===null&&(Vt=1,Lu(t,We(e,t.current)))}function K1(){var t=ee.current;return t===null?!0:(F&4194048)===F?ce===null?!0:!1:(F&62914560)===F||(F&536870912)!==0?t===ce:!1}function Z1(){var t=B.H;return B.H=Hu,t===null?Hu:t}function Q1(){var t=B.A;return B.A=T2,t}function Qu(){Vt=4,Si||(F&4194048)!==F&&ee.current!==null||(Qo=!0),(Li&134217727)===0&&(da&134217727)===0||yt===null||Ti(yt,F,Ue,!1)}function hm(t,e,n){var i=at;at|=2;var a=Z1(),o=Q1();if(yt!==t||F!==e)Zu=null,Bo(t,e);e=!1;var r=Vt;t:do try{if(ct!==0&&k!==null){var l=k,s=ze;switch(ct){case 8:Mp(),r=6;break t;case 3:case 2:case 9:case 6:ee.current===null&&(e=!0);var c=ct;if(ct=0,ze=null,vo(t,l,s,c),n&&Qo){r=0;break t}break;default:c=ct,ct=0,ze=null,vo(t,l,s,c)}}A2(),r=Vt;break}catch(u){X1(t,u)}while(1);return e&&t.shellSuspendCounter++,Zn=wa=null,at=i,B.H=a,B.A=o,k===null&&(yt=null,F=0,nc()),r}function A2(){for(;k!==null;)k1(k)}function w2(t,e){var n=at;at|=2;var i=Z1(),a=Q1();yt!==t||F!==e?(Zu=null,Ku=He()+500,Bo(t,e)):Qo=Ol(t,e);t:do try{if(ct!==0&&k!==null){e=k;var o=ze;e:switch(ct){case 1:ct=0,ze=null,vo(t,e,o,1);break;case 2:case 9:if(Ey(o)){ct=0,ze=null,Iy(e);break}e=function(){ct!==2&&ct!==9||yt!==t||(ct=7),Rn(t)},o.then(e,e);break t;case 3:ct=7;break t;case 4:ct=5;break t;case 7:Ey(o)?(ct=0,ze=null,Iy(e)):(ct=0,ze=null,vo(t,e,o,7));break;case 5:var r=null;switch(k.tag){case 26:r=k.memoizedState;case 5:case 27:var l=k;if(r?vx(r):l.stateNode.complete){ct=0,ze=null;var s=l.sibling;if(s!==null)k=s;else{var c=l.return;c!==null?(k=c,dc(c)):k=null}break e}}ct=0,ze=null,vo(t,e,o,5);break;case 6:ct=0,ze=null,vo(t,e,o,6);break;case 8:Mp(),Vt=6;break t;default:throw Error(C(462))}}C2();break}catch(u){X1(t,u)}while(1);if(Zn=wa=null,B.H=i,B.A=a,at=n,k!==null)return 0;return yt=null,F=0,nc(),Vt}function C2(){for(;k!==null&&!KE();)k1(k)}function k1(t){var e=h1(t.alternate,t,Wn);t.memoizedProps=t.pendingProps,e===null?dc(t):k=e}function Iy(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=jy(n,e,e.pendingProps,e.type,void 0,F);break;case 11:e=jy(n,e,e.pendingProps,e.type.render,e.ref,F);break;case 5:lp(e);var i=e;i===kt&&(X?(Vu(i),i.tag===5&&i.stateNode!=null&&(St=i.stateNode)):(Vu(i),X=!0));default:g1(n,e),e=k=yv(e,Wn),e=h1(n,e,Wn)}t.memoizedProps=t.pendingProps,e===null?dc(t):k=e}function vo(t,e,n,i){Zn=wa=null,lp(e),Eo=null,gl=0;var a=e.return;try{if(p2(t,a,e,n,F)){Vt=1,Lu(t,We(n,t.current)),k=null;return}}catch(o){if(a!==null)throw k=a,o;Vt=1,Lu(t,We(n,t.current)),k=null;return}if(e.flags&32768){if(X||i===1)t=!0;else if(Qo||(F&536870912)!==0)t=!1;else if(Si=t=!0,i===2||i===9||i===3||i===6)i=ee.current,i!==null&&i.tag===13&&(i.flags|=16384);$1(e,t)}else dc(e)}function dc(t){var e=t;do{if((e.flags&32768)!==0){$1(e,Si);return}t=e.return;var n=v2(e.alternate,e,Wn);if(n!==null){k=n;return}if(e=e.sibling,e!==null){k=e;return}k=e=t}while(e!==null);Vt===0&&(Vt=5)}function $1(t,e){do{var n=x2(t.alternate,t);if(n!==null){n.flags&=32767,k=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){k=t;return}k=t=n}while(t!==null);Vt=6,k=null}function Wy(t,e,n,i,a,o,r,l,s,c,u,f){t.cancelPendingCommit=null;do pc();while(wt!==0);if((at&6)!==0)throw Error(C(327));if(e!==null){if(e===t.current)throw Error(C(177));t===yt&&(k=yt=null,F=0),Sa=e,fn=t,Vn=n,yd=a,j1=i,O2(t,e,n,r,l,s,f)}}function O2(t,e,n,i,a,o,r){var l=e.lanes|e.childLanes;if(gd=l,l|=kd,tM(t,n,l,i,a,o),Co=null,(n&335544064)===n?(Oo=n2(t),i=10262):(Oo=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,_2(Au,function(){return Sd(),null})):(t.callbackNode=null,t.callbackPriority=0),qu=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,a=ot.p,ot.p=2,o=at,at|=4;try{b2(t,e,n)}finally{at=o,ot.p=a,B.T=i}}wt=1,qu?wo=I2(r,t.containerInfo,Oo,vd,xd,V2,bd,Sd,N2,null,null):(vd(),xd(),bd())}function N2(t){if(wt!==0){var e=fn.onRecoverableError;e(t,{componentStack:null})}}function V2(){wt===3&&(wt=0,R1(Sa,fn),wt=4)}function vd(){if(wt===1){wt=0;var t=fn,e=Sa,n=Vn,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var a=ot.p;ot.p=2;var o=at;at|=4;try{$r=Yu=!1,D1(e,t,n),n=Cd;var r=uv(t.containerInfo),l=n.focusedElem,s=n.selectionRange;if(r!==l&&l&&l.ownerDocument&&sv(l.ownerDocument.documentElement,l)){if(s!==null&&Qd(l)){var{start:c,end:u}=s;if(u===void 0&&(u=c),\"selectionStart\"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var f=l.ownerDocument||document,m=f&&f.defaultView||window;if(m.getSelection){var d=m.getSelection(),y=l.textContent.length,x=Math.min(s.start,y),T=s.end===void 0?x:Math.min(s.end,y);!d.extend&&x>T&&(r=T,T=x,x=r);var h=hy(l,x),p=hy(l,T);if(h&&p&&(d.rangeCount!==1||d.anchorNode!==h.node||d.anchorOffset!==h.offset||d.focusNode!==p.node||d.focusOffset!==p.offset)){var g=f.createRange();g.setStart(h.node,h.offset),d.removeAllRanges(),x>T?(d.addRange(g),d.extend(p.node,p.offset)):(g.setEnd(p.node,p.offset),d.addRange(g))}}}}f=[];for(d=l;d=d.parentNode;)d.nodeType===1&&f.push({element:d,left:d.scrollLeft,top:d.scrollTop});typeof l.focus===\"function\"&&l.focus();for(l=0;l<f.length;l++){var v=f[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}jo=!!wd,Cd=wd=null}finally{at=o,ot.p=a,B.T=i}}t.current=e,wt=2}}function xd(){if(wt===2){wt=0;var t=fn,e=Sa,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var i=ot.p;ot.p=2;var a=at;at|=4;try{A1(t,e.alternate,e)}finally{at=a,ot.p=i,B.T=n}}wt=3}}function bd(){if(wt===4||wt===3){wt=0;var t=wo;wo=null,ZE();var e=fn,n=Sa,i=Vn,a=j1,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?wt=5:(wt=0,Sa=fn=null,F1(e,e.pendingLanes)),o=e.pendingLanes,o===0&&(Vi=null),jd(i),n=n.stateNode,Le&&typeof Le.onCommitFiberRoot===\"function\")try{Le.onCommitFiberRoot(Cl,n,void 0,(n.current.flags&128)===128)}catch(c){}if(a!==null){n=B.T,o=ot.p,ot.p=2,B.T=null;try{for(var r=e.onRecoverableError,l=0;l<a.length;l++){var s=a[l];r(s.value,{componentStack:s.stack})}}finally{B.T=n,ot.p=o}}if(a=Co,r=Oo,Oo=null,a!==null&&(Co=null,r===null&&(r=[]),t!==null))for(s=0;s<a.length;s++)n=(0,a[s])(r),n!==void 0&&t.finished.finally(n);(Vn&3)!==0&&pc(),Rn(e),o=e.pendingLanes,(i&261930)!==0&&(o&42)!==0?e===gu?ul++:(ul=0,gu=e):(ul=0,gu=null),Bl(0,!1)}}function F1(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,zl(e)))}function pc(){return wo!==null&&(wo.skipTransition(),wo=null),vd(),xd(),bd(),Sd()}function Sd(){if(wt!==5)return!1;var t=fn,e=gd;gd=0;var n=jd(Vn),i=B.T,a=ot.p;try{ot.p=32>n?32:n,B.T=null,n=yd,yd=null;var o=fn,r=Vn;if(wt=0,Sa=fn=null,Vn=0,(at&6)!==0)throw Error(C(331));var l=at;if(at|=4,H1(o.current),_1(o,o.current,r,n),at=l,Bl(0,!1),Le&&typeof Le.onPostCommitFiberRoot===\"function\")try{Le.onPostCommitFiberRoot(Cl,o)}catch(s){}return!0}finally{ot.p=a,B.T=i,F1(t,e)}}function t0(t,e,n){e=We(n,e),e=td(t.stateNode,e,2),t=Ci(t,e,2),t!==null&&(Nl(t,2),Rn(t))}function mt(t,e,n){if(t.tag===3)t0(t,t,n);else for(;e!==null;){if(e.tag===3){t0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError===\"function\"||typeof i.componentDidCatch===\"function\"&&(Vi===null||!Vi.has(i))){t=We(n,t),n=c1(2),i=Ci(e,n,2),i!==null&&(f1(n,i,e,t),Nl(i,2),Rn(i));break}}e=e.return}}function gm(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new E2;var a=new Set;i.set(e,a)}else a=i.get(e),a===void 0&&(a=new Set,i.set(e,a));a.has(n)||(Ep=!0,a.add(n),t=D2.bind(null,t,e,n),e.then(t,t))}function D2(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,yt===t&&(F&n)===n&&(Vt===4||Vt===3&&(F&62914560)===F&&300>He()-fc?(at&2)===0?Bo(t,0):Xu|=n:Xu|=n,Ro===F&&(Ro=0)),Rn(t)}function J1(t,e){e===0&&(e=j0()),t=Aa(t,e),t!==null&&(Nl(t,e),Rn(t))}function z2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),J1(t,n)}function R2(t,e){var n=0;switch(t.tag){case 31:case 13:var{stateNode:i,memoizedState:a}=t;a!==null&&(n=a.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(C(314))}i!==null&&i.delete(e),J1(t,n)}function _2(t,e){return Ld(t,e)}var Uo=null,ao=null,Td=!1,ku=!1,ym=!1,Ei=0;function Rn(t){t!==ao&&t.next===null&&(ao===null?Uo=ao=t:ao=ao.next=t),ku=!0,Td||(Td=!0,U2())}function Bl(t,e){if(!ym&&ku){ym=!0;do{var n=!1;for(var i=Uo;i!==null;){if(!e)if(t!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var{suspendedLanes:r,pingedLanes:l}=i;o=(1<<31-Ge(42|t)+1)-1,o&=a&~(r&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,e0(i,o))}else o=F,o=Pu(i,i===yt?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Ol(i,o)||(n=!0,e0(i,o));i=i.next}}while(n);ym=!1}}function B2(){P1()}function P1(){ku=Td=!1;var t=0;Ei!==0&&Z2()&&(t=Ei);for(var e=He(),n=null,i=Uo;i!==null;){var a=i.next,o=I1(i,e);if(o===0)i.next=null,n===null?Uo=a:n.next=a,a===null&&(ao=n);else if(n=i,t!==0||(o&3)!==0)ku=!0;i=a}wt!==0&&wt!==5||Bl(t,!1),Ei!==0&&(Ei=0)}function I1(t,e){for(var{suspendedLanes:n,pingedLanes:i,expirationTimes:a}=t,o=t.pendingLanes&-62914561;0<o;){var r=31-Ge(o),l=1<<r,s=a[r];if(s===-1){if((l&n)===0||(l&i)!==0)a[r]=WE(l,e)}else s<=e&&(t.expiredLanes|=l);o&=~l}if(e=yt,n=F,n=Pu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Jf(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ol(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Jf(i),jd(n)){case 2:case 8:n=H0;break;case 32:n=Au;break;case 268435456:n=L0;break;default:n=Au}return i=W1.bind(null,t),n=Ld(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Jf(i),t.callbackPriority=2,t.callbackNode=null,2}function W1(t,e){if(wt!==0&&wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(pc()&&t.callbackNode!==n)return null;var i=F;if(i=Pu(t,t===yt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0)return null;return Y1(t,i,e),I1(t,He()),t.callbackNode!=null&&t.callbackNode===n?W1.bind(null,t):null}function e0(t,e){if(pc())return null;Y1(t,e,!0)}function U2(){k2(function(){(at&6)!==0?Ld(U0,B2):P1()})}function Ap(){if(Ei===0){var t=ya;t===0&&(t=js,js<<=1,(js&261888)===0&&(js=256)),Ei=t}return Ei}function n0(t){return t==null||typeof t===\"symbol\"||typeof t===\"boolean\"?null:typeof t===\"function\"?t:iu(t)}function H2(t,e,n,i,a){if(e===\"submit\"&&n&&n.stateNode===a){var o=n0((a[Ce]||null).action),r=i.submitter;r&&(e=(e=r[Ce]||null)?n0(e.formAction):r.getAttribute(\"formAction\"),e!==null&&(o=e,r=null));var l=new Wu(\"action\",\"action\",null,i,a);t.push({event:l,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ei!==0){var s=new FormData(a,r);Im(n,{pending:!0,data:s,method:a.method,action:o},null,s)}}else typeof o===\"function\"&&(l.preventDefault(),s=new FormData(a,r),Im(n,{pending:!0,data:s,method:a.method,action:o},o,s))},currentTarget:a}]})}}for(Fr=0;Fr<qm.length;Fr++)Jr=qm[Fr],Ed=Jr.toLowerCase(),Md=Jr[0].toUpperCase()+Jr.slice(1),mn(Ed,\"on\"+Md);var Jr,Ed,Md,Fr;mn(fv,\"onAnimationEnd\");mn(mv,\"onAnimationIteration\");mn(dv,\"onAnimationStart\");mn(\"dblclick\",\"onDoubleClick\");mn(\"focusin\",\"onFocus\");mn(\"focusout\",\"onBlur\");mn($M,\"onTransitionRun\");mn(FM,\"onTransitionStart\");mn(JM,\"onTransitionCancel\");mn(pv,\"onTransitionEnd\");Vo(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]);Vo(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]);Vo(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]);Vo(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]);Ea(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));Ea(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));Ea(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]);Ea(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));Ea(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));Ea(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var xl=\"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(\" \"),L2=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(xl));function tx(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],a=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var r=i.length-1;0<=r;r--){var l=i[r],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break t;o=l,a.currentTarget=c;try{o(a)}catch(u){Cu(u)}a.currentTarget=null,o=s}else for(r=0;r<i.length;r++){if(l=i[r],s=l.instance,c=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break t;o=l,a.currentTarget=c;try{o(a)}catch(u){Cu(u)}a.currentTarget=null,o=s}}}}function Q(t,e){var n=e[Ig];n===void 0&&(n=e[Ig]=new Set);var i=t+\"__bubble\";n.has(i)||(ex(e,t,2,!1),n.add(i))}function vm(t,e,n){var i=0;e&&(i|=4),ex(n,t,i,e)}var Ws=\"_reactListening\"+Math.random().toString(36).slice(2);function wp(t){if(!t[Ws]){t[Ws]=!0,Q0.forEach(function(n){n!==\"selectionchange\"&&(L2.has(n)||vm(n,!1,t),vm(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ws]||(e[Ws]=!0,vm(\"selectionchange\",!1,e))}}function ex(t,e,n,i){switch(Ax(e)){case 2:var a=VA;break;case 8:a=DA;break;default:a=Rp}n=a.bind(null,e,n,t),a=void 0,!Hm||e!==\"touchstart\"&&e!==\"touchmove\"&&e!==\"wheel\"||(a=!0),i?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function xm(t,e,n,i,a){var o=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var r=i.tag;if(r===3||r===4){var l=i.stateNode.containerInfo;if(l===a)break;if(r===4)for(r=i.return;r!==null;){var s=r.tag;if((s===3||s===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;l!==null;){if(r=la(l),r===null)return;if(s=r.tag,s===5||s===6||s===26||s===27){i=o=r;continue t}l=l.parentNode}}i=i.return}tv(function(){var c=o,u=Yd(n),f=[];t:{var m=hv.get(t);if(m!==void 0){var d=Wu,y=t;switch(t){case\"keypress\":if(ou(n)===0)break t;case\"keydown\":case\"keyup\":d=MM;break;case\"focusin\":y=\"focus\",d=nm;break;case\"focusout\":y=\"blur\",d=nm;break;case\"beforeblur\":case\"afterblur\":d=nm;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\":d=ry;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":d=mM;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":d=NM;break;case fv:case mv:case dv:d=hM;break;case pv:d=DM;break;case\"scroll\":case\"scrollend\":d=cM;break;case\"wheel\":d=RM;break;case\"copy\":case\"cut\":case\"paste\":d=yM;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":d=sy;break;case\"submit\":d=CM;break;case\"toggle\":case\"beforetoggle\":d=BM}var x=(e&4)!==0,T=!x&&(t===\"scroll\"||t===\"scrollend\"),h=x?m!==null?m+\"Capture\":null:m;x=[];for(var p=c,g;p!==null;){var v=p;if(g=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||g===null||h===null||(v=fl(p,h),v!=null&&x.push(bl(p,v,g))),T)break;p=p.return}0<x.length&&(m=new d(m,y,null,n,u),f.push({event:m,listeners:x}))}}if((e&7)===0){t:{if(d=t===\"mouseover\"||t===\"pointerover\",m=t===\"mouseout\"||t===\"pointerout\",d&&n!==Um&&(y=n.relatedTarget||n.fromElement)&&(la(y)||y[Yo]))break t;if(m||d){if(y=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,m){if(d=n.relatedTarget||n.toElement,m=c,d=d?la(d):null,d!==null&&(T=wl(d),x=d.tag,d!==T||x!==5&&x!==27&&x!==6))d=null}else m=null,d=c;if(m!==d){if(x=ry,v=\"onMouseLeave\",h=\"onMouseEnter\",p=\"mouse\",t===\"pointerout\"||t===\"pointerover\")x=sy,v=\"onPointerLeave\",h=\"onPointerEnter\",p=\"pointer\";T=m==null?y:Kr(m),g=d==null?y:Kr(d),y=new x(v,p+\"leave\",m,n,u),y.target=T,y.relatedTarget=g,v=null,la(u)===c&&(x=new x(h,p+\"enter\",d,n,u),x.target=g,x.relatedTarget=T,v=x),T=v,x=m&&d?Mm(m,d,G2):null,m!==null&&i0(f,y,m,x,!1),d!==null&&T!==null&&i0(f,T,d,x,!0)}}}t:{if(m=c?Kr(c):window,d=m.nodeName&&m.nodeName.toLowerCase(),d===\"select\"||d===\"input\"&&m.type===\"file\")var E=my;else if(fy(m))if(rv)E=ZM;else{E=XM;var M=YM}else d=m.nodeName,!d||d.toLowerCase()!==\"input\"||m.type!==\"checkbox\"&&m.type!==\"radio\"?c&&qd(c.elementType)&&(E=my):E=KM;if(E&&(E=E(t,c))){ov(f,E,n,u);break t}M&&M(t,m,c)}switch(M=c?Kr(c):window,t){case\"focusin\":if(fy(M)||M.contentEditable===\"true\")fo=M,Gm=c,Wr=null;break;case\"focusout\":Wr=Gm=fo=null;break;case\"mousedown\":jm=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":jm=!1,gy(f,n,u);break;case\"selectionchange\":if(kM)break;case\"keydown\":case\"keyup\":gy(f,n,u)}var S;if(Zd)t:{switch(t){case\"compositionstart\":var b=\"onCompositionStart\";break t;case\"compositionend\":b=\"onCompositionEnd\";break t;case\"compositionupdate\":b=\"onCompositionUpdate\";break t}b=void 0}else co?iv(t,n)&&(b=\"onCompositionEnd\"):t===\"keydown\"&&n.keyCode===229&&(b=\"onCompositionStart\");if(b&&(nv&&n.locale!==\"ko\"&&(co||b!==\"onCompositionStart\"?b===\"onCompositionEnd\"&&co&&(S=ev()):(xi=u,Xd=(\"value\"in xi)?xi.value:xi.textContent,co=!0)),M=$u(c,b),0<M.length&&(b=new ly(b,t,null,n,u),f.push({event:b,listeners:M}),S?b.data=S:(S=av(n),S!==null&&(b.data=S)))),S=HM?LM(t,n):GM(t,n))b=$u(c,\"onBeforeInput\"),0<b.length&&(M=new ly(\"onBeforeInput\",\"beforeinput\",null,n,u),f.push({event:M,listeners:b}),M.data=S);H2(f,t,c,n,u)}tx(f,e)})}function bl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function $u(t,e){for(var n=e+\"Capture\",i=[];t!==null;){var a=t,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=fl(t,n),a!=null&&i.unshift(bl(t,a,o)),a=fl(t,e),a!=null&&i.push(bl(t,a,o))),t.tag===3)return i;t=t.return}return[]}function G2(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t?t:null}function i0(t,e,n,i,a){for(var o=e._reactName,r=[];n!==null&&n!==i;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,s!==null&&s===i)break;l!==5&&l!==26&&l!==27||c===null||(s=c,a?(c=fl(n,o),c!=null&&r.unshift(bl(n,c,s))):a||(c=fl(n,o),c!=null&&r.push(bl(n,c,s)))),n=n.return}r.length!==0&&t.push({event:e,listeners:r})}var j2=/\\r\\n?/g,q2=/\\u0000|\\uFFFD/g;function a0(t){return(typeof t===\"string\"?t:\"\"+t).replace(j2,`\n`).replace(q2,\"\")}function nx(t,e){return e=a0(e),a0(t)===e?!0:!1}function ft(t,e,n,i,a,o){switch(n){case\"children\":if(typeof i===\"string\")e===\"body\"||e===\"textarea\"&&i===\"\"||Do(t,i);else if(typeof i===\"number\"||typeof i===\"bigint\")e!==\"body\"&&Do(t,\"\"+i);else return;break;case\"className\":Xs(t,\"class\",i);break;case\"tabIndex\":Xs(t,\"tabindex\",i);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":Xs(t,n,i);break;case\"style\":W0(t,i,o);return;case\"data\":if(e!==\"object\"){Xs(t,\"data\",i);break}case\"src\":case\"href\":if(i===\"\"&&(e!==\"a\"||n!==\"href\")){t.removeAttribute(n);break}if(i==null||typeof i===\"function\"||typeof i===\"symbol\"||typeof i===\"boolean\"){t.removeAttribute(n);break}i=iu(i),t.setAttribute(n,i);break;case\"action\":case\"formAction\":if(typeof i===\"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\"&&ft(t,e,\"name\",a.name,a,null),ft(t,e,\"formEncType\",a.formEncType,a,null),ft(t,e,\"formMethod\",a.formMethod,a,null),ft(t,e,\"formTarget\",a.formTarget,a,null)):(ft(t,e,\"encType\",a.encType,a,null),ft(t,e,\"method\",a.method,a,null),ft(t,e,\"target\",a.target,a,null)));if(i==null||typeof i===\"symbol\"||typeof i===\"boolean\"){t.removeAttribute(n);break}i=iu(i),t.setAttribute(n,i);break;case\"onClick\":i!=null&&(t.onclick=wn);return;case\"onScroll\":i!=null&&Q(\"scroll\",t);return;case\"onScrollEnd\":i!=null&&Q(\"scrollend\",t);return;case\"dangerouslySetInnerHTML\":if(i!=null){if(typeof i!==\"object\"||!(\"__html\"in i))throw Error(C(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(C(60));(o!=null?o.__html:void 0)!==n&&(t.innerHTML=n)}}break;case\"multiple\":t.multiple=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;case\"muted\":t.muted=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(i==null||typeof i===\"function\"||typeof i===\"boolean\"||typeof i===\"symbol\"){t.removeAttribute(\"xlink:href\");break}n=iu(i),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\":i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,i):t.removeAttribute(n);break;case\"inert\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"credentialless\":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\":i&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,\"\"):t.removeAttribute(n);break;case\"capture\":case\"download\":i===!0?t.setAttribute(n,\"\"):i!==!1&&i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,i):t.removeAttribute(n);break;case\"cols\":case\"rows\":case\"size\":case\"span\":i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case\"rowSpan\":case\"start\":i==null||typeof i===\"function\"||typeof i===\"symbol\"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case\"popover\":Q(\"beforetoggle\",t),Q(\"toggle\",t),nu(t,\"popover\",i);break;case\"xlinkActuate\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",i);break;case\"xlinkArcrole\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",i);break;case\"xlinkRole\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:role\",i);break;case\"xlinkShow\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:show\",i);break;case\"xlinkTitle\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:title\",i);break;case\"xlinkType\":Yn(t,\"http://www.w3.org/1999/xlink\",\"xlink:type\",i);break;case\"xmlBase\":Yn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",i);break;case\"xmlLang\":Yn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",i);break;case\"xmlSpace\":Yn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",i);break;case\"is\":nu(t,\"is\",i);break;case\"innerText\":case\"textContent\":return;default:if(!(2<n.length)||n[0]!==\"o\"&&n[0]!==\"O\"||n[1]!==\"n\"&&n[1]!==\"N\")n=sM.get(n)||n,nu(t,n,i);else return}nt=!0}function Ad(t,e,n,i,a,o){switch(n){case\"style\":W0(t,i,o);return;case\"dangerouslySetInnerHTML\":if(i!=null){if(typeof i!==\"object\"||!(\"__html\"in i))throw Error(C(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(C(60));(o!=null?o.__html:void 0)!==n&&(t.innerHTML=n)}}break;case\"children\":if(typeof i===\"string\")Do(t,i);else if(typeof i===\"number\"||typeof i===\"bigint\")Do(t,\"\"+i);else return;break;case\"onScroll\":i!=null&&Q(\"scroll\",t);return;case\"onScrollEnd\":i!=null&&Q(\"scrollend\",t);return;case\"onClick\":i!=null&&(t.onclick=wn);return;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":return;case\"innerText\":case\"textContent\":return;default:if(!k0.hasOwnProperty(n))t:{if(n[0]===\"o\"&&n[1]===\"n\"&&(a=n.endsWith(\"Capture\"),o=n.slice(2,a?n.length-7:void 0),e=t[Ce]||null,e=e!=null?e[n]:null,typeof e===\"function\"&&t.removeEventListener(o,e,a),typeof i===\"function\")){typeof e!==\"function\"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(o,i,a);break t}nt=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,\"\"):nu(t,n,i)}return}nt=!0}function te(t,e,n){switch(e){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":Q(\"error\",t),Q(\"load\",t);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var r=n[o];if(r!=null)switch(o){case\"src\":i=!0;break;case\"srcSet\":a=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(C(137,e));default:ft(t,e,o,r,n,null)}}a&&ft(t,e,\"srcSet\",n.srcSet,n,null),i&&ft(t,e,\"src\",n.src,n,null);return;case\"input\":Q(\"invalid\",t);var l=o=r=a=null,s=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case\"name\":a=u;break;case\"type\":r=u;break;case\"checked\":s=u;break;case\"defaultChecked\":c=u;break;case\"value\":o=u;break;case\"defaultValue\":l=u;break;case\"children\":case\"dangerouslySetInnerHTML\":if(u!=null)throw Error(C(137,e));break;default:ft(t,e,i,u,n,null)}}J0(t,o,l,s,c,r,a,!1);return;case\"select\":Q(\"invalid\",t),i=r=o=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case\"value\":o=l;break;case\"defaultValue\":r=l;break;case\"multiple\":i=l;default:ft(t,e,a,l,n,null)}e=o,n=r,t.multiple=!!i,e!=null?bo(t,!!i,e,!1):n!=null&&bo(t,!!i,n,!0);return;case\"textarea\":Q(\"invalid\",t),o=a=i=null;for(r in n)if(n.hasOwnProperty(r)&&(l=n[r],l!=null))switch(r){case\"value\":i=l;break;case\"defaultValue\":a=l;break;case\"children\":o=l;break;case\"dangerouslySetInnerHTML\":if(l!=null)throw Error(C(91));break;default:ft(t,e,r,l,n,null)}I0(t,i,a,o);return;case\"option\":for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case\"selected\":t.selected=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;default:ft(t,e,s,i,n,null)}return;case\"dialog\":Q(\"beforetoggle\",t),Q(\"toggle\",t),Q(\"cancel\",t),Q(\"close\",t);break;case\"iframe\":case\"object\":Q(\"load\",t);break;case\"video\":case\"audio\":for(i=0;i<xl.length;i++)Q(xl[i],t);break;case\"image\":Q(\"error\",t),Q(\"load\",t);break;case\"details\":Q(\"toggle\",t);break;case\"embed\":case\"source\":case\"link\":Q(\"error\",t),Q(\"load\",t);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(C(137,e));default:ft(t,e,c,i,n,null)}return;default:if(qd(e)){for(u in n)n.hasOwnProperty(u)&&(i=n[u],i!==void 0&&Ad(t,e,u,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(i=n[l],i!=null&&ft(t,e,l,i,n,null))}var Y2={};function X2(t,e,n,i){switch(e){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var a=null,o=null,r=null,l=null,s=null,c=null,u=null;for(d in n){var f=n[d];if(n.hasOwnProperty(d)&&f!=null)switch(d){case\"checked\":break;case\"value\":break;case\"defaultValue\":s=f;default:i.hasOwnProperty(d)||ft(t,e,d,null,i,f)}}for(var m in i){var d=i[m];if(f=n[m],i.hasOwnProperty(m)&&(d!=null||f!=null))switch(m){case\"type\":d!==f&&(nt=!0),o=d;break;case\"name\":d!==f&&(nt=!0),a=d;break;case\"checked\":d!==f&&(nt=!0),c=d;break;case\"defaultChecked\":d!==f&&(nt=!0),u=d;break;case\"value\":d!==f&&(nt=!0),r=d;break;case\"defaultValue\":d!==f&&(nt=!0),l=d;break;case\"children\":case\"dangerouslySetInnerHTML\":if(d!=null)throw Error(C(137,e));break;default:d!==f&&ft(t,e,m,d,i,f)}}Bm(t,r,l,s,c,u,o,a);return;case\"select\":d=r=l=m=null;for(o in n)if(s=n[o],n.hasOwnProperty(o)&&s!=null)switch(o){case\"value\":break;case\"multiple\":d=s;default:i.hasOwnProperty(o)||ft(t,e,o,null,i,s)}for(a in i)if(o=i[a],s=n[a],i.hasOwnProperty(a)&&(o!=null||s!=null))switch(a){case\"value\":o!==s&&(nt=!0),m=o;break;case\"defaultValue\":o!==s&&(nt=!0),l=o;break;case\"multiple\":o!==s&&(nt=!0),r=o;default:o!==s&&ft(t,e,a,o,i,s)}e=l,n=r,i=d,m!=null?bo(t,!!n,m,!1):!!i!==!!n&&(e!=null?bo(t,!!n,e,!0):bo(t,!!n,n?[]:\"\",!1));return;case\"textarea\":d=m=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!i.hasOwnProperty(l))switch(l){case\"value\":break;case\"children\":break;default:ft(t,e,l,null,i,a)}for(r in i)if(a=i[r],o=n[r],i.hasOwnProperty(r)&&(a!=null||o!=null))switch(r){case\"value\":a!==o&&(nt=!0),m=a;break;case\"defaultValue\":a!==o&&(nt=!0),d=a;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(a!=null)throw Error(C(91));break;default:a!==o&&ft(t,e,r,a,i,o)}P0(t,m,d);return;case\"option\":for(var y in n)if(m=n[y],n.hasOwnProperty(y)&&m!=null&&!i.hasOwnProperty(y))switch(y){case\"selected\":t.selected=!1;break;default:ft(t,e,y,null,i,m)}for(s in i)if(m=i[s],d=n[s],i.hasOwnProperty(s)&&m!==d&&(m!=null||d!=null))switch(s){case\"selected\":m!==d&&(nt=!0),t.selected=m&&typeof m!==\"function\"&&typeof m!==\"symbol\";break;default:ft(t,e,s,m,i,d)}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 x in n)m=n[x],n.hasOwnProperty(x)&&m!=null&&!i.hasOwnProperty(x)&&ft(t,e,x,null,i,m);for(c in i)if(m=i[c],d=n[c],i.hasOwnProperty(c)&&m!==d&&(m!=null||d!=null))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":if(m!=null)throw Error(C(137,e));break;default:ft(t,e,c,m,i,d)}return;default:if(qd(e)){for(var T in n)m=n[T],n.hasOwnProperty(T)&&m!==void 0&&!i.hasOwnProperty(T)&&Ad(t,e,T,void 0,i,m);for(u in i)m=i[u],d=n[u],!i.hasOwnProperty(u)||m===d||m===void 0&&d===void 0||Ad(t,e,u,m,i,d);return}}for(var h in n)m=n[h],n.hasOwnProperty(h)&&m!=null&&!i.hasOwnProperty(h)&&ft(t,e,h,null,i,m);for(f in i)m=i[f],d=n[f],!i.hasOwnProperty(f)||m===d||m==null&&d==null||ft(t,e,f,m,i,d)}function o0(t){switch(t){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function K2(){if(typeof performance.getEntriesByType===\"function\"){for(var t=0,e=0,n=performance.getEntriesByType(\"resource\"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,r=a.initiatorType,l=a.duration;if(o&&l&&o0(r)){r=0,l=a.responseEnd;for(i+=1;i<n.length;i++){var s=n[i],c=s.startTime;if(c>l)break;var{transferSize:u,initiatorType:f}=s;u&&o0(f)&&(s=s.responseEnd,r+=u*(s<l?1:(l-c)/(s-c)))}if(--i,e+=8*(o+r)/(a.duration/1000),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t===\"number\")?t:5}var wd=null,Cd=null;function Sl(t){return t.nodeType===9?t:t.ownerDocument}function r0(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 ix(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 ax(t,e,n,i){return n=Sl(n).createElement(t),n[Jt]=i,n[Ce]=e,te(n,t,e),Qt(n),n}function Od(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 bm=null;function Z2(){var t=window.event;if(t&&t.type===\"popstate\"){if(t===bm)return!1;return bm=t,!0}return bm=null,!1}var Cp=typeof setTimeout===\"function\"?setTimeout:void 0,Q2=typeof clearTimeout===\"function\"?clearTimeout:void 0,l0=typeof Promise===\"function\"?Promise:void 0,s0=typeof requestAnimationFrame===\"function\"?requestAnimationFrame:Cp,k2=typeof queueMicrotask===\"function\"?queueMicrotask:typeof l0<\"u\"?function(t){return l0.resolve(null).then(t).catch($2)}:Cp;function $2(t){setTimeout(function(){throw t})}function ji(t){return t===\"head\"}function u0(t,e){var n=e,i=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n===\"/$\"||n===\"/&\"){if(i===0){t.removeChild(a),qo(e);return}i--}else if(n===\"$\"||n===\"$?\"||n===\"$~\"||n===\"$!\"||n===\"&\")i++;else if(n===\"html\")Tm(t.ownerDocument.documentElement);else if(n===\"head\"){n=t.ownerDocument.head,Tm(n);for(var o=n.firstChild;o;){var{nextSibling:r,nodeName:l}=o;o[Vl]||l===\"SCRIPT\"||l===\"STYLE\"||l===\"LINK\"&&o.rel.toLowerCase()===\"stylesheet\"||n.removeChild(o),o=r}}else n===\"body\"&&Tm(t.ownerDocument.body);n=a}while(n);qo(e)}function c0(t,e){var n=t;t=0;do{var i=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||\"\"),i&&i.nodeType===8)if(n=i.data,n===\"/$\")if(t===0)break;else t--;else n!==\"$\"&&n!==\"$?\"&&n!==\"$~\"&&n!==\"$!\"||t++;n=i}while(n)}function ox(t,e,n){if(e=CSS.escape(e)!==e?\"r-\"+btoa(e).replace(/=/g,\"\"):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display===\"inline\"){if(e=t.getClientRects(),e.length===1)var i=1;else for(var a=i=0;a<e.length;a++){var o=e[a];0<o.width&&0<o.height&&i++}i===1&&(t=t.style,t.display=e.length===1?\"inline-block\":\"block\",t.marginTop=\"-\"+n.paddingTop,t.marginBottom=\"-\"+n.paddingBottom)}}function rx(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty(\"viewTransitionName\")?e.viewTransitionName:e.hasOwnProperty(\"view-transition-name\")?e[\"view-transition-name\"]:null:null;t.viewTransitionName=n==null||typeof n===\"boolean\"?\"\":(\"\"+n).trim(),n=e!=null?e.hasOwnProperty(\"viewTransitionClass\")?e.viewTransitionClass:e.hasOwnProperty(\"view-transition-class\")?e[\"view-transition-class\"]:null:null,t.viewTransitionClass=n==null||typeof n===\"boolean\"?\"\":(\"\"+n).trim(),t.display===\"inline-block\"&&(e==null?t.display=t.margin=\"\":(n=e.display,t.display=n==null||typeof n===\"boolean\"?\"\":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty(\"marginTop\")?e.marginTop:e[\"margin-top\"],t.marginTop=n==null||typeof n===\"boolean\"?\"\":n,e=e.hasOwnProperty(\"marginBottom\")?e.marginBottom:e[\"margin-bottom\"],t.marginBottom=e==null||typeof e===\"boolean\"?\"\":e)))}function lx(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position===\"absolute\"||e.position===\"fixed\",clip:e.clipPath!==\"none\"||e.overflow!==\"visible\"||e.filter!==\"none\"||e.mask!==\"none\"||e.mask!==\"none\"||e.borderRadius!==\"0px\",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function Nd(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return lx(e,n,t)}function F2(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+20000,e.y+20000,e.width,e.height);var n=getComputedStyle(t);return lx(e,n,t)}function J2(t){return t.documentElement.clientHeight}function P2(t){this.addEventListener(\"load\",t),this.addEventListener(\"error\",t)}function I2(t,e,n,i,a,o,r,l,s){var c=e.nodeType===9?e:e.ownerDocument;try{var u=c.startViewTransition({update:function(){var m=c.defaultView,d=m.navigation&&m.navigation.transition,y=c.fonts.status;i();var x=[];if(y===\"loaded\"&&(J2(c),c.fonts.status===\"loading\"&&x.push(c.fonts.ready)),y=x.length,t!==null)for(var T=t.suspenseyImages,h=0,p=0;p<T.length;p++){var g=T[p];if(!g.complete){var v=g.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<m.innerHeight&&v.left<m.innerWidth){if(h+=xx(g),h>xu){x.length=y;break}g=new Promise(P2.bind(g)),x.push(g)}}}if(0<x.length)return m=Promise.race([Promise.all(x),new Promise(function(E){return setTimeout(E,500)})]).then(a,a),(d?Promise.allSettled([d.finished,m]):m).then(o,o);if(a(),d)return d.finished.then(o,o);o()},types:n});c.__reactViewTransition=u;var f=[];return u.ready.then(function(){for(var m=c.documentElement.getAnimations({subtree:!0}),d=0;d<m.length;d++){var y=m[d],x=y.effect,T=x.pseudoElement;if(T!=null&&T.startsWith(\"::view-transition\")){f.push(y),y=x.getKeyframes();for(var h=T=void 0,p=!0,g=0;g<y.length;g++){var v=y[g],E=v.width;if(T===void 0)T=E;else if(T!==E){p=!1;break}if(E=v.height,h===void 0)h=E;else if(h!==E){p=!1;break}delete v.width,delete v.height,v.transform===\"none\"&&delete v.transform}p&&T!==void 0&&h!==void 0&&(x.setKeyframes(y),p=getComputedStyle(x.target,x.pseudoElement),p.width!==T||p.height!==h)&&(p=y[0],p.width=T,p.height=h,p=y[y.length-1],p.width=T,p.height=h,x.setKeyframes(y))}}r()},function(m){c.__reactViewTransition===u&&(c.__reactViewTransition=null);try{if(typeof m===\"object\"&&m!==null)switch(m.name){case\"InvalidStateError\":if(m.message===\"View transition was skipped because document visibility state is hidden.\"||m.message===\"Skipping view transition because document visibility state has become hidden.\"||m.message===\"Skipping view transition because viewport size changed.\"||m.message===\"Transition was aborted because of invalid state\")m=null}m!==null&&s(m)}finally{i(),a(),r()}}),u.finished.finally(function(){for(var m=0;m<f.length;m++)f[m].cancel();c.__reactViewTransition===u&&(c.__reactViewTransition=null),l()}),u}catch(m){return i(),a(),r(),null}}function sa(t,e){this._scope=document.documentElement,this._selector=\"::view-transition-\"+t+\"(\"+e+\")\"}sa.prototype.animate=function(t,e){return e=typeof e===\"number\"?{duration:e}:vt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};sa.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===t&&o.pseudoElement===e&&i.push(n[a])}return i};sa.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function sx(t){return{name:t,group:new sa(\"group\",t),imagePair:new sa(\"image-pair\",t),old:new sa(\"old\",t),new:new sa(\"new\",t)}}function Ye(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Ye.prototype.addEventListener=function(t,e,n){var i=null,a=null;if(n!=null&&typeof n!==\"boolean\"&&(i=n.signal||null,i!==null&&i.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(ux(o,t,e,n)===-1){var r=this,l=e;n!=null&&typeof n!==\"boolean\"&&n.once===!0&&(l=function(s){r.removeEventListener(t,e,n),typeof e===\"function\"?e.call(this,s):e.handleEvent(s)}),i!==null&&(a=r.removeEventListener.bind(r,t,e,n),i.addEventListener(\"abort\",a,{once:!0}),a=i.removeEventListener.bind(i,\"abort\",a)),i=Ho(n),o.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:l,cleanup:a}),we(this._fragmentFiber.child,!1,W2,t,l,i)}this._eventListeners=o};function W2(t,e,n,i){return jt(t).addEventListener(e,n,i),!1}Ye.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=ux(i,t,e,n),e!==-1)){var a=i[e];n=a.attachedListener;var o=a.cleanup;a=Ho(a.optionsOrUseCapture),we(this._fragmentFiber.child,!1,tA,t,n,a),i.splice(e,1),o!==null&&o()}};function tA(t,e,n,i){return jt(t).removeEventListener(e,n,i),!1}function Ho(t){return t!=null&&typeof t!==\"boolean\"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function f0(t){return t==null?\"c=0\":typeof t===\"boolean\"?\"c=\"+(t?\"1\":\"0\"):\"c=\"+(t.capture?\"1\":\"0\")}function ux(t,e,n,i){if(t.length===0)return-1;i=f0(i);for(var a=0;a<t.length;a++){var o=t[a];if(o.type===e&&o.listener===n&&f0(o.optionsOrUseCapture)===i)return a}return-1}Ye.prototype.dispatchEvent=function(t){var e=Ta(this._fragmentFiber);if(e===null)return!0;e=jt(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var i=e.nodeType===9?e.createComment(\"\"):document.createTextNode(\"\");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture))}if(e.appendChild(i),t=i.dispatchEvent(t),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture));return e.removeChild(i),t}return e.dispatchEvent(t)};Ye.prototype.focus=function(t){we(this._fragmentFiber.child,!0,cx,t,void 0,void 0)};function cx(t,e){if(t.tag===6)return!1;return t=jt(t),mA(t,e)}Ye.prototype.focusLast=function(t){var e=[];we(this._fragmentFiber.child,!0,Op,e,void 0,void 0);for(var n=e.length-1;0<=n&&!cx(e[n],t);n--);};function Op(t,e){return e.push(t),!1}Ye.prototype.blur=function(){var t=Ta(this._fragmentFiber);t!==null&&(t=jt(t),t=Sl(t).activeElement,t!==null&&we(this._fragmentFiber.child,!1,eA,t,void 0,void 0))};function eA(t,e){if(t.tag===6)return!1;return t=jt(t),t===e||t.contains(e)?(e.blur(),!0):!1}Ye.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),we(this._fragmentFiber.child,!1,nA,t,void 0,void 0)};function nA(t,e){if(t.tag===6)return!1;return t=jt(t),e.observe(t),!1}Ye.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),we(this._fragmentFiber.child,!1,iA,t,void 0,void 0);for(var n=e=0;n<cn.length;n++){var i=cn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):cn[e++]=i}cn.length=e}};function iA(t,e){if(t.tag===6)return!1;return t=jt(t),e.unobserve(t),!1}var cn=[],Sm=!1;function aA(t,e,n){cn.push({fragmentInstance:t,observer:e,instance:n}),Sm||(Sm=!0,dA(function(){Sm=!1;var i=cn;cn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}Ye.prototype.getClientRects=function(){var t=[];return we(this._fragmentFiber.child,!1,oA,t,void 0,void 0),t};function oA(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=jt(t),e.push.apply(e,t.getClientRects());return!1}Ye.prototype.getRootNode=function(t){var e=Ta(this._fragmentFiber);return e===null?this:jt(e).getRootNode(t)};Ye.prototype.compareDocumentPosition=function(t){var e=Ta(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];we(this._fragmentFiber.child,!1,Op,n,void 0,void 0);var i=jt(e);if(n.length===0){if(n=i,Qg(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var a=i=n.compareDocumentPosition(t);return n===t?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=z0(e)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=jt(n).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=jt(n[0]),a=jt(n[n.length-1]);var o=Qg(this._fragmentFiber)?e.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var r=e.compareDocumentPosition(t),l=a.compareDocumentPosition(t),s=r&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=i&&o&&r&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||o&&a===t||s||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!o&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:r,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||rA(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function rA(t,e,n,i,a){var o=la(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)t:{for(;o!==null;){if(o.tag===7&&(o===e||o.alternate===e)){n=!0;break t}o=o.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;t:{o=e;for(e=Ta(e);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==e&&o.alternate!==e)){o=!0;break t}o=o.return}o=!1}return o}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!o)&&!(e=o===n)&&(e=Mm(n,o,kg),e===null?e=!1:(we(e,!0,UE,o,n),o=ro,ro=null,e=o!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!o)&&!(e=o===i)&&(e=Mm(i,o,kg),e===null?e=!1:(we(e,!0,HE,o,i),o=ro,Em=ro=null,e=o!==null)),e):!1}function m0(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Ye.prototype.scrollIntoView=function(t){if(typeof t===\"object\")throw Error(C(566));var e=[];we(this._fragmentFiber.child,!1,Op,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=z0(this._fragmentFiber);if(i=n?i[1]||i[0]||Ta(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=jt(i),m0(t,n);return}if(i=jt(i),i.nodeType!==9){if(i.nodeType===11){n=\"host\"in i?i.host:null,n!==null&&n.scrollIntoView(t);return}i.scrollIntoView(t)}}for(i=n?e.length-1:0;i!==(n?-1:e.length);){var a=e[i];a.tag===6?(a=jt(a),m0(a,n)):jt(a).scrollIntoView(t),i+=n?-1:1}};function lA(t,e){return t=jt(t),fx(t,e),!1}function fx(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function mx(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];t.addEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(o){for(var r=0,l=0;l<cn.length;l++){var s=cn[l];if(s.fragmentInstance!==e||s.observer!==o||s.instance!==t)cn[r++]=s}cn.length=r,o.observe(t)}),fx(t,e))}function sA(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];t.removeEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin===\"string\"?aA(e,o,t):o.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Vd(t){var e=t.firstChild;e&&e.nodeType===10&&(e=e.nextSibling);for(;e;){var n=e;switch(e=e.nextSibling,n.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":Vd(n),Iu(n);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(n.rel.toLowerCase()===\"stylesheet\")continue}t.removeChild(n)}}function uA(t,e,n,i){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!==\"INPUT\"||t.type!==\"hidden\"))break}else if(!i)if(e===\"input\"&&t.type===\"hidden\"){var o=a.name==null?null:\"\"+a.name;if(a.type===\"hidden\"&&t.getAttribute(\"name\")===o)return t}else return t;else if(!t[Vl])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;else if(o!==a.rel||t.getAttribute(\"href\")!==(a.href==null||a.href===\"\"?null:a.href)||t.getAttribute(\"crossorigin\")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute(\"title\")!==(a.title==null?null:a.title))break;return t;case\"style\":if(t.hasAttribute(\"data-precedence\"))break;return t;case\"script\":if(o=t.getAttribute(\"src\"),(o!==(a.src==null?null:a.src)||t.getAttribute(\"type\")!==(a.type==null?null:a.type)||t.getAttribute(\"crossorigin\")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&t.hasAttribute(\"async\")&&!t.hasAttribute(\"itemprop\"))break;return t;default:return t}if(t=en(t.nextSibling),t===null)break}return null}function cA(t,e,n){if(e===\"\")return null;for(;t.nodeType!==3;){if((t.nodeType!==1||t.nodeName!==\"INPUT\"||t.type!==\"hidden\")&&!n)return null;if(t=en(t.nextSibling),t===null)return null}return t}function dx(t,e){for(;t.nodeType!==8;){if((t.nodeType!==1||t.nodeName!==\"INPUT\"||t.type!==\"hidden\")&&!e)return null;if(t=en(t.nextSibling),t===null)return null}return t}function Dd(t){return t.data===\"$?\"||t.data===\"$~\"}function Np(t){return t.data===\"$!\"||t.data===\"$?\"&&t.ownerDocument.readyState!==\"loading\"}function fA(t,e){var n=t.ownerDocument;if(t.data===\"$~\")t._reactRetry=e;else if(t.data!==\"$?\"||n.readyState!==\"loading\")e();else{var i=function(){e(),n.removeEventListener(\"DOMContentLoaded\",i)};n.addEventListener(\"DOMContentLoaded\",i),t._reactRetry=i}}function en(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 zd=null;function d0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\"/$\"||n===\"/&\"){if(e===0)return en(t.nextSibling);e--}else n!==\"$\"&&n!==\"$!\"&&n!==\"$?\"&&n!==\"$~\"&&n!==\"&\"||e++}t=t.nextSibling}return null}function p0(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 mA(t,e){function n(){i=!0}if(t.ownerDocument.activeElement===t)return!0;var i=!1;try{t.ownerDocument.addEventListener(\"focus\",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener(\"focus\",n,!0)}return i}function dA(t){s0(function(){s0(function(e){return t(e)})})}function px(t,e,n){switch(e=Sl(n),t){case\"html\":if(t=e.documentElement,!t)throw Error(C(452));return t;case\"head\":if(t=e.head,!t)throw Error(C(453));return t;case\"body\":if(t=e.body,!t)throw Error(C(454));return t;default:throw Error(C(451))}}function hx(t,e,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&ft(t,e,i,null,Y2,a)}n.dangerouslySetInnerHTML!=null&&(t.textContent=\"\"),t.onclick===wn&&(t.onclick=null),Iu(t)}function Tm(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Iu(t)}var nn=new Map,h0=new Set;function Tl(t){if(typeof t.getRootNode===\"function\"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var ni=ot.d;ot.d={f:pA,r:hA,D:gA,C:yA,L:vA,m:xA,X:SA,S:bA,M:TA};function pA(){var t=ni.f(),e=mc();return t||e}function hA(t){var e=Xo(t);e!==null&&e.tag===5&&e.type===\"form\"?Wv(e):ni.r(t)}var ko=typeof document>\"u\"?null:document;function gx(t,e,n){var i=ko;if(i&&typeof e===\"string\"&&e){var a=Ie(e);a='link[rel=\"'+t+'\"][href=\"'+a+'\"]',typeof n===\"string\"&&(a+='[crossorigin=\"'+n+'\"]'),h0.has(a)||(h0.add(a),t={rel:t,crossOrigin:n,href:e},i.querySelector(a)===null&&(e=i.createElement(\"link\"),te(e,\"link\",t),Qt(e),i.head.appendChild(e)))}}function gA(t){ni.D(t),gx(\"dns-prefetch\",t,null)}function yA(t,e){ni.C(t,e),gx(\"preconnect\",t,e)}function vA(t,e,n){ni.L(t,e,n);var i=ko;if(i&&t&&e){var a='link[rel=\"preload\"][as=\"'+Ie(e)+'\"]';e===\"image\"?n&&n.imageSrcSet?(a+='[imagesrcset=\"'+Ie(n.imageSrcSet)+'\"]',typeof n.imageSizes===\"string\"&&(a+='[imagesizes=\"'+Ie(n.imageSizes)+'\"]')):a+='[href=\"'+Ie(t)+'\"]':a+='[href=\"'+Ie(t)+'\"]';var o=a;switch(e){case\"style\":o=Lo(t);break;case\"script\":o=$o(t)}if(!(nn.has(o)||(t=vt({rel:\"preload\",href:e===\"image\"&&n&&n.imageSrcSet?void 0:t,as:e},n),nn.set(o,t),i.querySelector(a)!==null||e===\"style\"&&i.querySelector(Ul(o))||e===\"script\"&&i.querySelector(Hl(o))))){var r=i.createElement(\"link\");te(r,\"link\",t),e===\"style\"&&(r[wu]=!0,r.onload=r.onerror=function(){Z0(r)}),Qt(r),i.head.appendChild(r)}}}function xA(t,e){ni.m(t,e);var n=ko;if(n&&t){var i=e&&typeof e.as===\"string\"?e.as:\"script\",a='link[rel=\"modulepreload\"][as=\"'+Ie(i)+'\"][href=\"'+Ie(t)+'\"]',o=a;switch(i){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":o=$o(t)}if(!nn.has(o)&&(t=vt({rel:\"modulepreload\",href:t},e),nn.set(o,t),n.querySelector(a)===null)){switch(i){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(n.querySelector(Hl(o)))return}i=n.createElement(\"link\"),te(i,\"link\",t),Qt(i),n.head.appendChild(i)}}}function bA(t,e,n){ni.S(t,e,n);var i=ko;if(i&&t){var a=xo(i).hoistableStyles,o=Lo(t);e=e||\"default\";var r=a.get(o);if(!r){var l={loading:0,preload:null};if(r=i.querySelector(Ul(o)))l.loading=5;else{t=vt({rel:\"stylesheet\",href:t,\"data-precedence\":e},n),(n=nn.get(o))&&Vp(t,n);var s=r=i.createElement(\"link\");Qt(s),te(s,\"link\",t),s._p=new Promise(function(c,u){s.onload=c,s.onerror=u}),s.addEventListener(\"load\",function(){l.loading|=1}),s.addEventListener(\"error\",function(){l.loading|=2}),l.loading|=4,yu(r,e,i)}r={type:\"stylesheet\",instance:r,count:1,state:l},a.set(o,r)}}}function SA(t,e){ni.X(t,e);var n=ko;if(n&&t){var i=xo(n).hoistableScripts,a=$o(t),o=i.get(a);o||(o=n.querySelector(Hl(a)),o||(t=vt({src:t,async:!0},e),(e=nn.get(a))&&Dp(t,e),o=n.createElement(\"script\"),Qt(o),te(o,\"link\",t),n.head.appendChild(o)),o={type:\"script\",instance:o,count:1,state:null},i.set(a,o))}}function TA(t,e){ni.M(t,e);var n=ko;if(n&&t){var i=xo(n).hoistableScripts,a=$o(t),o=i.get(a);o||(o=n.querySelector(Hl(a)),o||(t=vt({src:t,async:!0,type:\"module\"},e),(e=nn.get(a))&&Dp(t,e),o=n.createElement(\"script\"),Qt(o),te(o,\"link\",t),n.head.appendChild(o)),o={type:\"script\",instance:o,count:1,state:null},i.set(a,o))}}function g0(t,e,n,i){var a=(a=Mi.current)?Tl(a):null;if(!a)throw Error(C(446));switch(t){case\"meta\":case\"title\":return null;case\"style\":return typeof n.precedence===\"string\"&&typeof n.href===\"string\"?(n=Lo(n.href),e=xo(a).hoistableStyles,i=e.get(n),i||(i={type:\"style\",instance:null,count:0,state:null},e.set(n,i)),i):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(n.rel===\"stylesheet\"&&typeof n.href===\"string\"&&typeof n.precedence===\"string\"){t=Lo(n.href);var o=xo(a).hoistableStyles,r=o.get(t);if(r||(a=a.ownerDocument||a,r={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,r),(o=a.querySelector(Ul(t)))?o._p||(r.instance=o,r.state.loading=5):(o=nn.get(t),o||(o={rel:\"preload\",as:\"style\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(t,o)),EA(a,t,o,r.state))),e&&i===null)throw Error(C(528,\"\"));return r}if(e&&i!==null)throw Error(C(529,\"\"));return null;case\"script\":return e=n.async,n=n.src,typeof n===\"string\"&&e&&typeof e!==\"function\"&&typeof e!==\"symbol\"?(n=$o(n),e=xo(a).hoistableScripts,i=e.get(n),i||(i={type:\"script\",instance:null,count:0,state:null},e.set(n,i)),i):{type:\"void\",instance:null,count:0,state:null};default:throw Error(C(444,t))}}function Lo(t){return'href=\"'+Ie(t)+'\"'}function Ul(t){return'link[rel=\"stylesheet\"]['+t+\"]\"}function yx(t){return vt({},t,{\"data-precedence\":t.precedence,precedence:null})}function EA(t,e,n,i){if(e=t.querySelector('link[rel=\"preload\"][as=\"style\"]['+e+\"]\")){if(e[wu]!==!0){i.loading=1;return}}else e=t.createElement(\"link\"),e[wu]=!0,e.onload=e.onerror=Z0.bind(null,e),te(e,\"link\",n),Qt(e),t.head.appendChild(e);i.preload=e,e.addEventListener(\"load\",function(){return i.loading|=1}),e.addEventListener(\"error\",function(){return i.loading|=2})}function $o(t){return'[src=\"'+Ie(t)+'\"]'}function Hl(t){return\"script[async]\"+t}function y0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case\"style\":var i=t.querySelector('style[data-href~=\"'+Ie(n.href)+'\"]');if(i)return e.instance=i,Qt(i),i;var a=vt({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement(\"style\"),Qt(i),te(i,\"style\",a),yu(i,n.precedence,t),e.instance=i;case\"stylesheet\":a=Lo(n.href);var o=t.querySelector(Ul(a));if(o)return e.state.loading|=4,e.instance=o,Qt(o),o;i=yx(n),(a=nn.get(a))&&Vp(i,a),o=(t.ownerDocument||t).createElement(\"link\"),Qt(o);var r=o;return r._p=new Promise(function(l,s){r.onload=l,r.onerror=s}),te(o,\"link\",i),e.state.loading|=4,yu(o,n.precedence,t),e.instance=o;case\"script\":if(o=$o(n.src),a=t.querySelector(Hl(o)))return e.instance=a,Qt(a),a;if(i=n,a=nn.get(o))i=vt({},n),Dp(i,a);return t=t.ownerDocument||t,a=t.createElement(\"script\"),Qt(a),te(a,\"link\",i),t.head.appendChild(a),e.instance=a;case\"void\":return null;default:throw Error(C(443,e.type))}else e.type===\"stylesheet\"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,yu(i,n.precedence,t));return e.instance}function yu(t,e,n){for(var i=n.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,r=0;r<i.length;r++){var l=i[r];if(l.dataset.precedence===e)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Vp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function v0(t,e,n){if(vu===null){var i=new Map,a=vu=new Map;a.set(n,i)}else a=vu,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(t))return i;i.set(t,null),n=n.getElementsByTagName(t);for(a=0;a<n.length;a++){var o=n[a];if(!(o[Vl]||o[Jt]||t===\"link\"&&o.getAttribute(\"rel\")===\"stylesheet\")&&o.namespaceURI!==\"http://www.w3.org/2000/svg\"){var r=o.getAttribute(e)||\"\";r=t+r;var l=i.get(r);l?l.push(o):i.set(r,[o])}}return i}function Rd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e===\"title\"?t.querySelector(\"head > title\"):null)}function MA(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 x0(t,e){return t===\"img\"&&e.src!=null&&e.src!==\"\"&&e.onLoad==null&&e.loading!==\"lazy\"}function vx(t){return t.type===\"stylesheet\"&&(t.state.loading&3)===0?!1:!0}function xx(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio===\"number\"?devicePixelRatio:1)*0.25}function b0(t,e){typeof e.decode===\"function\"&&(t.imgCount++,e.complete||(t.imgBytes+=xx(e),t.suspenseyImages.push(e)),t=CA.bind(t),e.decode().then(t,t))}function AA(t,e,n,i){if(n.type===\"stylesheet\"&&(typeof i.media!==\"string\"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Lo(i.href),o=e.querySelector(Ul(a));if(o){e=o._p,e!==null&&typeof e===\"object\"&&typeof e.then===\"function\"&&(t.count++,t=El.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Qt(o);return}o=e.ownerDocument||e,i=yx(i),(a=nn.get(a))&&Vp(i,a),o=o.createElement(\"link\"),Qt(o);var r=o;r._p=new Promise(function(l,s){r.onload=l,r.onerror=s}),te(o,\"link\",i),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=El.bind(t),e.addEventListener(\"load\",n),e.addEventListener(\"error\",n))}}var xu=0;function wA(t,e){return t.stylesheets&&t.count===0&&bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},60000+e);0<t.imgBytes&&xu===0&&(xu=62500*K2());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>xu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function bx(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)bu(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function El(){this.count--,bx(this)}function CA(){this.imgCount--,bx(this)}var Fu=null;function bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Fu=new Map,e.forEach(OA,t),Fu=null,El.call(t))}function OA(t,e){if(!(e.state.loading&4)){var n=Fu.get(t);if(n)var i=n.get(null);else{n=new Map,Fu.set(t,n);for(var a=t.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),o=0;o<a.length;o++){var r=a[o];if(r.nodeName===\"LINK\"||r.getAttribute(\"media\")!==\"not all\")n.set(r.dataset.precedence,r),i=r}i&&n.set(null,i)}a=e.instance,r=a.getAttribute(\"data-precedence\"),o=n.get(r)||i,o===i&&n.set(null,a),n.set(r,a),this.count++,i=El.bind(this),a.addEventListener(\"load\",i),a.addEventListener(\"error\",i),o?o.parentNode.insertBefore(a,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Go={$$typeof:An,Provider:null,Consumer:null,_currentValue:ua,_currentValue2:ua,_threadCount:0};function NA(t,e,n,i,a,o,r,l,s){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=Pf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pf(0),this.hiddenUpdates=Pf(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.transitionTypes=null,this.incompleteTransitions=new Map}function Sx(t,e,n,i,a,o,r,l,s,c,u,f){return t=new NA(t,e,n,r,s,c,u,f,l),e=1,o===!0&&(e|=24),o=Me(3,null,null,e),t.current=o,o.stateNode=t,e=Pd(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:e},tp(o),t}function Tx(t){if(!t)return ho;return t=ho,t}function Ex(t,e,n,i,a,o){a=Tx(a),i.context===null?i.context=a:i.pendingContext=a,i=wi(e),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Ci(t,i,e),n!==null&&(Ae(n,t,e),el(n,t,e))}function S0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zp(t,e){S0(t,e),(t=t.alternate)&&S0(t,e)}function Mx(t){if(t.tag===13||t.tag===31){var e=Aa(t,67108864);e!==null&&Ae(e,t,67108864),zp(t,67108864)}}function T0(t){if(t.tag===13||t.tag===31){var e=je();e=Gd(e);var n=Aa(t,e);n!==null&&Ae(n,t,e),zp(t,e)}}var jo=!0;function VA(t,e,n,i){var a=B.T;B.T=null;var o=ot.p;try{ot.p=2,Rp(t,e,n,i)}finally{ot.p=o,B.T=a}}function DA(t,e,n,i){var a=B.T;B.T=null;var o=ot.p;try{ot.p=8,Rp(t,e,n,i)}finally{ot.p=o,B.T=a}}function Rp(t,e,n,i){if(jo){var a=_d(i);if(a===null)xm(t,e,i,Ju,n),E0(t,i);else if(RA(a,t,e,n,i))i.stopPropagation();else if(E0(t,i),e&4&&-1<zA.indexOf(t)){for(;a!==null;){var o=Xo(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var r=ia(o.pendingLanes);if(r!==0){var l=o;l.pendingLanes|=2;for(l.entangledLanes|=2;r;){var s=1<<31-Ge(r);l.entanglements[1]|=s,r&=~s}Rn(o),(at&6)===0&&(Ku=He()+500,Bl(0,!1))}}break;case 31:case 13:l=Aa(o,2),l!==null&&Ae(l,o,2),mc(),zp(o,2)}if(o=_d(i),o===null&&xm(t,e,i,Ju,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else xm(t,e,i,null,n)}}function _d(t){return t=Yd(t),_p(t)}var Ju=null;function _p(t){if(Ju=null,t=la(t),t!==null){var e=wl(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=N0(e),t!==null)return t;t=null}else if(n===31){if(t=V0(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 Ju=t,null}function Ax(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\"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\"fullscreenerror\":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\"resize\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(QE()){case U0:return 2;case H0:return 8;case Au:case kE:return 32;case L0:return 268435456;default:return 32}default:return 32}}var Bd=!1,Di=null,zi=null,Ri=null,Ml=new Map,Al=new Map,yi=[],zA=\"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 E0(t,e){switch(t){case\"focusin\":case\"focusout\":Di=null;break;case\"dragenter\":case\"dragleave\":zi=null;break;case\"mouseover\":case\"mouseout\":Ri=null;break;case\"pointerover\":case\"pointerout\":Ml.delete(e.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":Al.delete(e.pointerId)}}function qr(t,e,n,i,a,o){if(t===null||t.nativeEvent!==o)return t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},e!==null&&(e=Xo(e),e!==null&&Mx(e)),t;return t.eventSystemFlags|=i,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t}function RA(t,e,n,i,a){switch(e){case\"focusin\":return Di=qr(Di,t,e,n,i,a),!0;case\"dragenter\":return zi=qr(zi,t,e,n,i,a),!0;case\"mouseover\":return Ri=qr(Ri,t,e,n,i,a),!0;case\"pointerover\":var o=a.pointerId;return Ml.set(o,qr(Ml.get(o)||null,t,e,n,i,a)),!0;case\"gotpointercapture\":return o=a.pointerId,Al.set(o,qr(Al.get(o)||null,t,e,n,i,a)),!0}return!1}function wx(t){var e=la(t.target);if(e!==null){var n=wl(e);if(n!==null){if(e=n.tag,e===13){if(e=N0(n),e!==null){t.blockedOn=e,Pg(t.priority,function(){T0(n)});return}}else if(e===31){if(e=V0(n),e!==null){t.blockedOn=e,Pg(t.priority,function(){T0(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 Su(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=_d(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Um=i,n.target.dispatchEvent(i),Um=null}else return e=Xo(n),e!==null&&Mx(e),t.blockedOn=n,!1;e.shift()}return!0}function M0(t,e,n){Su(t)&&n.delete(e)}function _A(){Bd=!1,Di!==null&&Su(Di)&&(Di=null),zi!==null&&Su(zi)&&(zi=null),Ri!==null&&Su(Ri)&&(Ri=null),Ml.forEach(M0),Al.forEach(M0)}function tu(t,e){t.blockedOn===e&&(t.blockedOn=null,Bd||(Bd=!0,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,_A)))}var eu=null;function A0(t){eu!==t&&(eu=t,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,function(){eu===t&&(eu=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],a=t[e+2];if(typeof i!==\"function\")if(_p(i||n)===null)continue;else break;var o=Xo(n);o!==null&&(t.splice(e,3),e-=3,Im(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function qo(t){function e(s){return tu(s,t)}Di!==null&&tu(Di,t),zi!==null&&tu(zi,t),Ri!==null&&tu(Ri,t),Ml.forEach(e),Al.forEach(e);for(var n=0;n<yi.length;n++){var i=yi[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<yi.length&&(n=yi[0],n.blockedOn===null);)wx(n),n.blockedOn===null&&yi.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],r=a[Ce]||null;if(typeof o===\"function\")r||A0(n);else if(r){var l=null;if(o&&o.hasAttribute(\"formAction\")){if(a=o,r=o[Ce]||null)l=r.formAction;else if(_p(a)!==null)continue}else l=r.action;typeof l===\"function\"?n[i+1]=l:(n.splice(i,3),i-=3),A0(n)}}}function Cx(){function t(o){o.canIntercept&&o.info===\"react-transition\"&&o.intercept({handler:function(){return new Promise(function(r){return a=r})},focusReset:\"manual\",scroll:\"manual\"})}function e(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,a=null;return navigation.addEventListener(\"navigate\",t),navigation.addEventListener(\"navigatesuccess\",e),navigation.addEventListener(\"navigateerror\",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener(\"navigate\",t),navigation.removeEventListener(\"navigatesuccess\",e),navigation.removeEventListener(\"navigateerror\",e),a!==null&&(a(),a=null)}}}function Bp(t){this._internalRoot=t}hc.prototype.render=Bp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(C(409));var n=e.current,i=je();Ex(n,i,t,e,null,null)};hc.prototype.unmount=Bp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ex(t.current,2,null,t,null,null),mc(),e[Yo]=null}};function hc(t){this._internalRoot=t}hc.prototype.unstable_scheduleHydration=function(t){if(t){var e=K0();t={blockedOn:null,target:t,priority:e};for(var n=0;n<yi.length&&e!==0&&e<yi[n].priority;n++);yi.splice(n,0,t),n===0&&wx(t)}};var w0=C0.version;if(w0!==\"19.3.0\")throw Error(C(527,w0,\"19.3.0\"));ot.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0){if(typeof t.render===\"function\")throw Error(C(188));throw t=Object.keys(t).join(\",\"),Error(C(268,t))}return t=BE(e),t=t!==null?D0(t):null,t=t===null?null:t.stateNode,t};var BA={bundleType:0,version:\"19.3.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:B,reconcilerVersion:\"19.3.0\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){if(oo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!oo.isDisabled&&oo.supportsFiber)try{Cl=oo.inject(BA),Le=oo}catch(t){}}var oo;gc.createRoot=function(t,e){if(!O0(t))throw Error(C(299));var n=!1,i=\"\",a=l1,o=s1,r=u1;return e!==null&&e!==void 0&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=Sx(t,1,!1,null,null,n,i,null,a,o,r,Cx),t[Yo]=e.current,wp(t),new Bp(e)};gc.hydrateRoot=function(t,e,n){if(!O0(t))throw Error(C(299));var i=!1,a=\"\",o=l1,r=s1,l=u1,s=null;return n!==null&&n!==void 0&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),e=Sx(t,1,!0,e,n!=null?n:null,i,a,s,o,r,l,Cx),e.context=Tx(null),n=e.current,i=je(),i=Gd(i),a=wi(i),a.callback=null,Ci(n,a,i),n=i,e.current.lanes=n,Nl(e,n),Rn(e),t[Yo]=e.current,wp(t),new hc(e)};gc.version=\"19.3.0\"});var Dx=vn(function(WC,Vx){function Nx(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!==\"function\")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nx)}catch(t){console.error(t)}}Nx(),Vx.exports=Ox()});var _x=vn(function(yc){var UA=Symbol.for(\"react.transitional.element\"),HA=Symbol.for(\"react.fragment\");function Rx(t,e,n){var i=null;if(n!==void 0&&(i=\"\"+n),e.key!==void 0&&(i=\"\"+e.key),\"key\"in e){n={};for(var a in e)a!==\"key\"&&(n[a]=e[a])}else n=e;return e=n.ref,{$$typeof:UA,type:t,key:i,ref:e!==void 0?e:null,props:n}}yc.Fragment=HA;yc.jsx=Rx;yc.jsxs=Rx});var pn=vn(function(nO,Bx){Bx.exports=_x()});var eE=I(Dx(),1);var Ll={light:{bg:\"#e8e7e3\",panel:\"#e6e5e1\",panelAlt:\"#ecebe7\",line:\"#b7b5ad\",lineSoft:\"#cfcdc6\",ink:\"#3d3a34\",inkMuted:\"#6b675f\",inkFaint:\"#a39d91\",wire:\"#a9a79f\",port:\"#a39d91\",pill:\"#e8e7e3\",group:\"#e3e2de\",groupLine:\"#cfcdc6\",title:\"#1c1a17\",chrome:\"#ecebe7\",chromeLine:\"#cfcdc6\",rose:\"#c98f81\",roseFill:\"#d9d3c7\",blue:\"#7fa2bf\",blueFill:\"#d9d3c7\",gold:\"#bfa95a\",goldFill:\"#d9d3c7\",sage:\"#5f7a4f\",sageFill:\"#d9d3c7\",plain:\"#8a857c\",plainFill:\"#d9d3c7\",pulse:\"#2b2925\",pulseBloom:\"#3d3a34\",pulseBloomEdge:\"#8a857c\",glow:\"#f3d9b6\",glowCrest:\"#fffaf0\",glowGain:\"3\",glowBlend:\"screen\",flash:\"#141311\",portActive:\"#141311\",playInk:\"#a39e94\",playInkHover:\"#5e5b54\",control:\"#8f8a81\",controlHover:\"#26251f\",endedInk:\"#6f6a61\"},dark:{bg:\"#080807\",panel:\"#0b0b0a\",panelAlt:\"#131313\",line:\"#383838\",lineSoft:\"#292929\",ink:\"#cccccc\",inkMuted:\"#aaaaaa\",inkFaint:\"#6e6b65\",wire:\"#444444\",port:\"#5a5a5a\",pill:\"#080807\",group:\"#0d0d0c\",groupLine:\"#292929\",title:\"#e7e5e4\",chrome:\"#131313\",chromeLine:\"#292929\",rose:\"#e1b8ad\",roseFill:\"#35332f\",blue:\"#aec8df\",blueFill:\"#35332f\",gold:\"#e2d29f\",goldFill:\"#35332f\",sage:\"#9aaf8c\",sageFill:\"#35332f\",plain:\"#858585\",plainFill:\"#35332f\",pulse:\"#ddd8d0\",pulseBloom:\"#e8e4dc\",pulseBloomEdge:\"#9a948c\",glow:\"#8c8882\",glowCrest:\"#ece9e4\",glowGain:\"1\",glowBlend:\"normal\",flash:\"#f3dfc6\",portActive:\"#f0f0f0\",playInk:\"#5e5b54\",playInkHover:\"#a8a49b\",control:\"#737373\",controlHover:\"#d4cec4\",endedInk:\"#9a9488\"}};var Fo={elbowRadius:12,cornerRadius:12,portRadius:3.5,stub:14,panelRadius:0,panelInset:4,groupRadius:0,groupPad:18,groupLabelBand:22,nodePadX:16,nodePadY:11,nodeMinWidth:128,maxLabelChars:26,wireWidth:1,graphArrowheads:!1,panelStroke:1,arrowSize:6,pillPadX:6,pillPadY:3,layerGap:56,nodeGap:28,groupGap:24,margin:32},st={beats:{react:0.3,step:0.8,settle:1.2,read:1},springs:{react:0.3,smooth:0.45,word:0.16},pulse:{gather:0.34,flight:0.9,flightMin:0.45,flightMax:1.6,pxPerSecond:520,ring:0.72,cooling:1.1,dot:4,halo:18},glow:{duration:1.2,alpha:0.28,minGap:0.3333333333333333},flash:{decay:1.6},reveal:{rise:6,opacityDelay:0.075},dimSuperseded:0.52,endHold:1.5,endedDim:0.75,gateDim:0.55,rewind:{hold:0.15,duration:1.25,empty:0.4,blur:1.1},read:{base:0.25,perWord:0.075,min:1,max:3},warnTotal:60},dn={spring:{type:\"spring\",visualDuration:0.3,bounce:0},press:{scale:0.94},hover:{scale:1.04}},qi=(t)=>`--si-${t}`;function zx(t){let e=Ll[t];return Object.keys(e).map((n)=>`${qi(n)}:${e[n]};`).join(\"\")}var Ux=I(Et(),1),Hx=Ux.createContext({});var Lx=I(Et(),1);function vc(t){let e=Lx.useRef(null);if(e.current===null)e.current=t();return e.current}var xc=I(Et(),1);var Gx=typeof window<\"u\";var Up=Gx?xc.useLayoutEffect:xc.useEffect;var jx=I(Et(),1),bc=jx.createContext(null);function Hp(t,e){if(t.indexOf(e)===-1)t.push(e)}function ii(t,e){let n=t.indexOf(e);if(n>-1)t.splice(n,1)}var ne=(t,e,n)=>{if(n>e)return e;if(n<t)return t;return n};function Lp(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var an=()=>{},Yt=()=>{};if(typeof process<\"u\"&&process.env?.NODE_ENV!==\"production\")an=(t,e,n)=>{if(!t&&typeof console<\"u\")console.warn(Lp(e,n))},Yt=(t,e,n)=>{if(!t)throw Error(Lp(e,n))};var ie={};var Ca=(t)=>/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(t);var Oa=(t)=>typeof t===\"object\"&&t!==null;var Na=(t)=>/^0[^.\\s]+$/u.test(t);function Gl(t){let e;return()=>{if(e===void 0)e=t();return e}}var hn=(t)=>t;var ai=(...t)=>t.reduce((e,n)=>(i)=>n(e(i)));var Va=(t,e,n)=>{let i=e-t;return i?(n-t)/i:1};class Da{constructor(){this.subscriptions=[]}add(t){return Hp(this.subscriptions,t),()=>this.remove(t)}remove(t){ii(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(!i)return;if(i===1)this.subscriptions[0](t,e,n);else for(let a=0;a<i;a++){let o=this.subscriptions[a];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var Xt=(t)=>t*1000,ae=(t)=>t/1000;var jl=(t,e)=>e?t*(1000/e):0;var qx=(t,e,n)=>{let i=e-t;return((n-t)%i+i)%i+t};var Yx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,LA=0.0000001,GA=12;function jA(t,e,n,i,a){let o,r,l=0;do if(r=e+(n-e)/2,o=Yx(r,i,a)-t,o>0)n=r;else e=r;while(Math.abs(o)>LA&&++l<GA);return r}function Yi(t,e,n,i){if(t===e&&n===i)return hn;let a=(o)=>jA(o,0,1,t,n);return(o)=>o===0||o===1?o:Yx(a(o),e,i)}var Sc=(t)=>(e)=>e<=0.5?t(2*e)/2:(2-t(2*(1-e)))/2;var za=(t)=>(e)=>1-t(1-e);var Tc=Yi(0.33,1.53,0.69,0.99),Jo=za(Tc),ql=Sc(Jo);var Yl=(t)=>t>=1?1:(t*=2)<1?0.5*Jo(t):0.5*(2-Math.pow(2,-10*(t-1)));var Xl=(t)=>1-Math.sin(Math.acos(t)),Gp=za(Xl),Kl=Sc(Xl);var jp=Yi(0.42,0,1,1),qp=Yi(0,0,0.58,1),Po=Yi(0.42,0,0.58,1);var Zl=(t)=>Array.isArray(t)&&typeof t[0]!==\"number\";function Ql(t,e){return Zl(t)?t[qx(0,t.length,e)]:t}var kl=(t)=>Array.isArray(t)&&typeof t[0]===\"number\";var Xx={linear:hn,easeIn:jp,easeInOut:Po,easeOut:qp,circIn:Xl,circInOut:Kl,circOut:Gp,backIn:Jo,backInOut:ql,backOut:Tc,anticipate:Yl},qA=(t)=>typeof t===\"string\",Ec=(t)=>{if(kl(t)){Yt(t.length===4,\"Cubic bezier arrays must contain four numerical values.\",\"cubic-bezier-length\");let[e,n,i,a]=t;return Yi(e,n,i,a)}else if(qA(t))return Yt(Xx[t]!==void 0,`Invalid easing type '${t}'`,\"invalid-easing-type\"),Xx[t];return t};var $l=[\"setup\",\"read\",\"resolveKeyframes\",\"preUpdate\",\"update\",\"preRender\",\"render\",\"postRender\"];function Kx(t){let e=new Set,n=new Set,i=!1,a=!1,o=new Set,r={delta:0,timestamp:0,isProcessing:!1};function l(c){if(o.has(c))n.add(c),t();c(r)}let s={schedule:(c,u=!1,f=!1)=>{let d=f&&i?e:n;if(u)o.add(c);return d.add(c),c},cancel:(c)=>{n.delete(c),o.delete(c)},process:(c)=>{if(r=c,i){a=!0;return}i=!0;let u=e;if(e=n,n=u,e.forEach(l),e.clear(),i=!1,a)a=!1,s.process(c)}};return s}var YA=40;function Mc(t,e){let n=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=$l.reduce((g,v)=>(g[v]=Kx(o),g),{}),{setup:l,read:s,resolveKeyframes:c,preUpdate:u,update:f,preRender:m,render:d,postRender:y}=r,x=()=>{let g=ie.useManualTiming,v=g?a.timestamp:performance.now();if(n=!1,!g)a.delta=i?16.666666666666668:Math.max(Math.min(v-a.timestamp,YA),1);if(a.timestamp=v,a.isProcessing=!0,l.process(a),s.process(a),c.process(a),u.process(a),f.process(a),m.process(a),d.process(a),y.process(a),a.isProcessing=!1,n&&e)i=!1,t(x)},T=()=>{if(n=!0,i=!0,!a.isProcessing)t(x)};return{schedule:$l.reduce((g,v)=>{let E=r[v];return g[v]=(M,S=!1,b=!1)=>{if(!n)T();return E.schedule(M,S,b)},g},{}),cancel:(g)=>{for(let v=0;v<$l.length;v++)r[$l[v]].cancel(g)},state:a,steps:r}}var{schedule:gt,cancel:Io,state:_n,steps:XA}=Mc(typeof requestAnimationFrame<\"u\"?requestAnimationFrame:hn,!0);var Ac;function KA(){Ac=void 0}var Rt={now:()=>{if(Ac===void 0)Rt.set(_n.isProcessing||ie.useManualTiming?_n.timestamp:performance.now());return Ac},set:(t)=>{Ac=t,queueMicrotask(KA)}};var Bn=(t)=>Math.round(t*1e5)/1e5;var Zx=(t)=>(e)=>typeof e===\"string\"&&e.startsWith(t),wc=Zx(\"--\"),ZA=Zx(\"var(--\"),Wo=(t)=>{if(!ZA(t))return!1;return QA.test(t.split(\"/*\")[0].trim())},QA=/var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;function Yp(t){if(typeof t!==\"string\")return!1;return t.split(\"/*\")[0].includes(\"var(--\")}var Un={test:(t)=>typeof t===\"number\",parse:parseFloat,transform:(t)=>t},oi={...Un,transform:(t)=>ne(0,1,t)},Fl={...Un,default:1};var tr=/-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;function Qx(t){return t==null}var kx=/^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;var er=(t,e)=>(n)=>Boolean(typeof n===\"string\"&&kx.test(n)&&n.startsWith(t)||e&&!Qx(n)&&Object.prototype.hasOwnProperty.call(n,e)),Cc=(t,e,n)=>(i)=>{if(typeof i!==\"string\")return i;let[a,o,r,l]=i.match(tr);return{[t]:parseFloat(a),[e]:parseFloat(o),[n]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}};var kA=(t)=>ne(0,255,t),Xp={...Un,transform:(t)=>Math.round(kA(t))},Hn={test:er(\"rgb\",\"red\"),parse:Cc(\"red\",\"green\",\"blue\"),transform:({red:t,green:e,blue:n,alpha:i=1})=>\"rgba(\"+Xp.transform(t)+\", \"+Xp.transform(e)+\", \"+Xp.transform(n)+\", \"+Bn(oi.transform(i))+\")\"};function $A(t){let e=\"\",n=\"\",i=\"\",a=\"\";if(t.length>5)e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9);else e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a;return{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}var Jl={test:er(\"#\"),parse:$A,transform:Hn.transform};var Pl=(t)=>({test:(e)=>typeof e===\"string\"&&e.endsWith(t)&&e.split(\" \").length===1,parse:parseFloat,transform:(e)=>`${e}${t}`}),gn=Pl(\"deg\"),Xi=Pl(\"%\"),D=Pl(\"px\"),$x=Pl(\"vh\"),Fx=Pl(\"vw\"),Kp=(()=>({...Xi,parse:(t)=>Xi.parse(t)/100,transform:(t)=>Xi.transform(t*100)}))();var Ki={test:er(\"hsl\",\"hue\"),parse:Cc(\"hue\",\"saturation\",\"lightness\"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>\"hsla(\"+Math.round(t)+\", \"+Xi.transform(Bn(e))+\", \"+Xi.transform(Bn(n))+\", \"+Bn(oi.transform(i))+\")\"};var Dt={test:(t)=>Hn.test(t)||Jl.test(t)||Ki.test(t),parse:(t)=>{if(Hn.test(t))return Hn.parse(t);else if(Ki.test(t))return Ki.parse(t);else return Jl.parse(t)},transform:(t)=>typeof t===\"string\"?t:t.hasOwnProperty(\"red\")?Hn.transform(t):Ki.transform(t),getAnimatableNone:(t)=>{let e=Dt.parse(t);return e.alpha=0,Dt.transform(e)}};var Jx=/(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;var Ix=new RegExp(tr.source),Wx=new RegExp(Jx.source,\"i\");function FA(t){return isNaN(t)&&typeof t===\"string\"&&(Ix.test(t)||Wx.test(t))}var tb=\"number\",eb=\"color\",JA=\"var\",PA=\"var(\",Px=\"${}\",IA=/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 nb(t){let e=t.toString();return Ix.test(e)||Wx.test(e)}function nr(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[],o=0,l=e.replace(IA,(s)=>{if(Dt.test(s))i.color.push(o),a.push(eb),n.push(Dt.parse(s));else if(s.startsWith(PA))i.var.push(o),a.push(JA),n.push(s);else i.number.push(o),a.push(tb),n.push(parseFloat(s));return++o,Px}).split(Px);return{values:n,split:l,indexes:i,types:a}}function WA(t){return nr(t).values}function ib({split:t,types:e}){let n=t.length;return(i)=>{let a=\"\";for(let o=0;o<n;o++)if(a+=t[o],i[o]!==void 0){let r=e[o];if(r===tb)a+=Bn(i[o]);else if(r===eb)a+=Dt.transform(i[o]);else a+=i[o]}return a}}function t3(t){return ib(nr(t))}var e3=(t)=>typeof t===\"number\"?0:Dt.test(t)?Dt.getAnimatableNone(t):t,n3=(t,e)=>{if(typeof t===\"number\")return e?.trim().endsWith(\"/\")?t:0;return e3(t)};function i3(t){let e=nr(t);return ib(e)(e.values.map((i,a)=>n3(i,e.split[a])))}var _t={test:FA,parse:WA,createTransformer:t3,getAnimatableNone:i3};function Zp(t,e,n){if(n<0)n+=1;if(n>1)n-=1;if(n<0.16666666666666666)return t+(e-t)*6*n;if(n<0.5)return e;if(n<0.6666666666666666)return t+(e-t)*(0.6666666666666666-n)*6;return t}function ab({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,o=0,r=0;if(!e)a=o=r=n;else{let l=n<0.5?n*(1+e):n+e-n*e,s=2*n-l;a=Zp(s,l,t+0.3333333333333333),o=Zp(s,l,t),r=Zp(s,l,t-0.3333333333333333)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function ir(t,e){return(n)=>n>0?e:t}var Oe=(t,e,n)=>t+(e-t)*n;var Qp=(t,e,n)=>{let i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},a3=[Jl,Hn,Ki],o3=(t)=>a3.find((e)=>e.test(t));function ob(t){let e=o3(t);if(!e)return an(!1,`'${t}' is not an animatable color. Use the equivalent color code instead.`,\"color-not-animatable\"),!1;let n=e.parse(t);if(e===Ki)n=ab(n);return n}var kp=(t,e)=>{let n=ob(t),i=ob(e);if(!n||!i)return ir(t,e);let a={...n};return(o)=>(a.red=Qp(n.red,i.red,o),a.green=Qp(n.green,i.green,o),a.blue=Qp(n.blue,i.blue,o),a.alpha=Oe(n.alpha,i.alpha,o),Hn.transform(a))};var Oc=new Set([\"none\",\"hidden\"]);function rb(t,e){if(Oc.has(t))return(n)=>n<=0?t:e;else return(n)=>n>=1?e:t}function r3(t,e){return(n)=>Oe(t,e,n)}function Nc(t){if(typeof t===\"number\")return r3;else if(typeof t===\"string\")return Wo(t)?ir:Dt.test(t)?kp:u3;else if(Array.isArray(t))return lb;else if(typeof t===\"object\")return Dt.test(t)?kp:l3;return ir}function lb(t,e){let n=[...t],i=n.length,a=t.map((o,r)=>Nc(o)(o,e[r]));return(o)=>{for(let r=0;r<i;r++)n[r]=a[r](o);return n}}function l3(t,e){let n={...t,...e},i={};for(let a in n)if(t[a]!==void 0&&e[a]!==void 0)i[a]=Nc(t[a])(t[a],e[a]);return(a)=>{for(let o in i)n[o]=i[o](a);return n}}function s3(t,e){let n=[],i={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){let o=e.types[a],r=t.indexes[o][i[o]],l=t.values[r]??0;n[a]=l,i[o]++}return n}var u3=(t,e)=>{let n=_t.createTransformer(e),i=nr(t),a=nr(e);if(i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length){if(Oc.has(t)&&!a.values.length||Oc.has(e)&&!i.values.length)return rb(t,e);return ai(lb(s3(i,a),a.values),n)}else return an(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,\"complex-values-different\"),ir(t,e)};var sb=/^(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+))([a-z%]*)$/iu;function c3(t,e){let n=sb.exec(t);if(!n)return;let i=sb.exec(e);if(!i||n[2]!==i[2])return;let a=n[2],o=parseFloat(n[1]),r=parseFloat(i[1]);return(l)=>Bn(Oe(o,r,l))+a}function ar(t,e,n){if(typeof t===\"number\"&&typeof e===\"number\"&&typeof n===\"number\")return Oe(t,e,n);if(typeof t===\"string\"&&typeof e===\"string\"){let a=c3(t,e);if(a)return a}return Nc(t)(t,e)}var ub=(t)=>{let e=({timestamp:n})=>t(n);return{start:(n=!0)=>gt.update(e,n),stop:()=>Io(e),now:()=>_n.isProcessing?_n.timestamp:Rt.now()}};var Vc=(t,e,n=10)=>{let i=\"\",a=Math.max(Math.round(e/n),2);for(let o=0;o<a;o++)i+=Math.round(t(o/(a-1))*1e4)/1e4+\", \";return`linear(${i.substring(0,i.length-2)})`};var Dc=20000;function or(t,e=50,n=20000,i){let a=0,o=t.next(a);i?.push(o.value);while(!o.done&&a<n)a+=e,o=t.next(a),i?.push(o.value);return a>=n?1/0:a}function Il(t,e=100,n){let i=n({...t,keyframes:[0,e]}),a=Math.min(or(i),Dc);return{type:\"keyframes\",ease:(o)=>i.next(a*o).value/e,duration:ae(a)}}var Ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};function Fp(t,e){return t*Math.sqrt(1-e*e)}var f3=12;function m3(t,e,n){let i=n;for(let a=1;a<f3;a++)i=i-t(i)/e(i);return i}var $p=0.001;function d3({duration:t=Ct.duration,bounce:e=Ct.bounce,velocity:n=Ct.velocity,mass:i=Ct.mass}){let a,o;an(t<=Xt(Ct.maxDuration),\"Spring duration must be 10 seconds or less\",\"spring-duration-limit\");let r=1-e;if(r=ne(Ct.minDamping,Ct.maxDamping,r),t=ne(Ct.minDuration,Ct.maxDuration,ae(t)),r<1)a=(c)=>{let u=c*r,f=u*t,m=u-n,d=Fp(c,r),y=Math.exp(-f);return $p-m/d*y},o=(c)=>{let f=c*r*t,m=f*n+n,d=r*r*c*c*t,y=Math.exp(-f),x=Fp(c*c,r);return(-a(c)+$p>0?-1:1)*((m-d)*y)/x};else a=(c)=>{let u=Math.exp(-c*t),f=(c-n)*t+1;return-$p+u*f},o=(c)=>{let u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f};let l=5/t,s=m3(a,o,l);if(t=Xt(t),isNaN(s))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:t};else{let c=s*s*i;return{stiffness:c,damping:r*2*Math.sqrt(i*c),duration:t}}}var cb=[\"duration\",\"bounce\"],fb=[\"stiffness\",\"damping\",\"mass\"];function zc(t,e){return e.some((n)=>t[n]!==void 0)}function p3(t){let e={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...t};if(!zc(t,fb)&&zc(t,cb))if(e.velocity=0,t.visualDuration){let n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,o=2*ne(0.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ct.mass,stiffness:a,damping:o}}else{let n=d3({...t,velocity:0});e={...e,...n,mass:Ct.mass},e.isResolvedFromDuration=!0}return e}function ri(t=Ct.visualDuration,e=Ct.bounce){let n=typeof t!==\"object\"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:i},{stiffness:r,damping:l,mass:s,duration:c,velocity:u,isResolvedFromDuration:f}=p3({...n,velocity:-ae(n.velocity||0)}),m=l/(2*Math.sqrt(r*s)),d=ae(Math.sqrt(r/s)),y=m*d,x={target:a,delta:a-i,velocity:u||0,restSpeed:0,restDelta:0},T=()=>{let S=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(S?Ct.restSpeed.granular:Ct.restSpeed.default),x.restDelta=n.restDelta||(S?Ct.restDelta.granular:Ct.restDelta.default)};T();let h,p,g;if(m<1){let S=Fp(d,m),b={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};g=()=>{b.A=(x.velocity+y*x.delta)/S,b.sinC=y*b.A+x.delta*S,b.cosC=y*x.delta-b.A*S};let A=(N)=>{if(N!==b.t)b.t=N,b.env=Math.exp(-y*N),b.sin=Math.sin(S*N),b.cos=Math.cos(S*N)};h=(N)=>(A(N),x.target-b.env*(b.A*b.sin+x.delta*b.cos)),p=(N)=>(A(N),b.env*(b.sinC*b.sin+b.cosC*b.cos))}else if(m===1){h=(b)=>x.target-Math.exp(-d*b)*(x.delta+(x.velocity+d*x.delta)*b);let S={C:0};g=()=>{S.C=x.velocity+d*x.delta},p=(b)=>Math.exp(-d*b)*(d*S.C*b-x.velocity)}else{let S=d*Math.sqrt(m*m-1);h=(A)=>{let N=Math.exp(-y*A),R=Math.min(S*A,300);return x.target-N*((x.velocity+y*x.delta)*Math.sinh(R)+S*x.delta*Math.cosh(R))/S};let b={P:0,sinh:0,cosh:0};g=()=>{b.P=(x.velocity+y*x.delta)/S,b.sinh=y*b.P-x.delta*S,b.cosh=y*x.delta-b.P*S},p=(A)=>{let N=Math.exp(-y*A),R=Math.min(S*A,300);return N*(b.sinh*Math.sinh(R)+b.cosh*Math.cosh(R))}}g();let v=!zc(n,fb)&&zc(n,cb),E=f?c||null:null,M={calculatedDuration:E,retarget:(S,b)=>{if(x.target=S[S.length-1],x.delta=x.target-S[0],x.velocity=v?0:-ae(b),!(n.restSpeed&&n.restDelta))T();M.calculatedDuration=E,o.done=!1,g()},velocity:(S)=>Xt(p(S)),next:(S)=>{let b=h(S);if(!f){let A=Xt(p(S));o.done=Math.abs(A)<=x.restSpeed&&Math.abs(x.target-b)<=x.restDelta}else o.done=S>=c;return o.value=o.done?x.target:b,o},toString:()=>{let S=Math.min(or(M),Dc),b=Vc((A)=>M.next(S*A).value,S,30);return S+\"ms \"+b},toTransition:()=>{}};return M}ri.applyToOptions=(t)=>{let e=Il(t,100,ri);return t.ease=e.ease,t.duration=Xt(e.duration),t.type=\"keyframes\",t};function Wl({keyframes:t,velocity:e=0,power:n=0.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:r,min:l,max:s,restDelta:c=0.5,restSpeed:u}){let f=t[0],m={done:!1,value:f},d=(S)=>S<l||S>s,y=(S)=>{if(l===void 0)return s;if(s===void 0)return l;return Math.abs(l-S)<Math.abs(s-S)?l:s},x=n*e,T=f+x,h=r===void 0?T:r(T);if(h!==T)x=h-f;let p=(S)=>-x*Math.exp(-S/i),g=(S)=>{let b=p(S);m.done=Math.abs(b)<=c,m.value=m.done?h:h+b},v,E,M=(S)=>{if(!d(m.value))return;v=S,E=ri({keyframes:[m.value,y(m.value)],velocity:-p(S)/i*1000,damping:a,stiffness:o,restDelta:c,restSpeed:u})};return M(0),{calculatedDuration:null,next:(S)=>{let b=!1;if(!E&&v===void 0)b=!0,g(S),M(S);if(v!==void 0&&S>=v)return E.next(S-v);else return!b&&g(S),m}}}function h3(t,e,n){let i=[],a=n||ie.mix||ar,o=t.length-1;for(let r=0;r<o;r++){let l=a(t[r],t[r+1]);if(e){let s=Array.isArray(e)?e[r]||hn:e;l=ai(s,l)}i.push(l)}return i}function mb(t,e,{clamp:n=!0,ease:i,mixer:a}={}){let o=t.length;if(Yt(o===e.length,\"Both input and output ranges must be the same length\",\"range-length\"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];let r=t[0]===t[1];if(t[0]>t[o-1])t=[...t].reverse(),e=[...e].reverse();let l=h3(e,i,a),s=l.length,c=(u)=>{if(r&&u<t[0])return e[0];let f=0;if(s>1){for(;f<t.length-2;f++)if(u<t[f+1])break}let m=Va(t[f],t[f+1],u);return l[f](m)};return n?(u)=>c(ne(t[0],t[o-1],u)):c}function ts(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let a=Va(0,e,i);t.push(Oe(n,1,a))}}function es(t){let e=[0];return ts(e,t.length-1),e}function db(t,e){return t.map((n)=>n*e)}function g3(t,e){return t.map(()=>e||Po).splice(0,t.length-1)}function Ra({duration:t=300,keyframes:e,times:n,ease:i=\"easeInOut\"}){let a=Zl(i)?i.map(Ec):Ec(i)||Po,o={done:!1,value:e[0]};if(e.length===2&&!Array.isArray(a)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[s,c]=e,u=s===c?void 0:(ie.mix||ar)(s,c);return{calculatedDuration:t,next:(f)=>(o.value=u?u(a(t>0?ne(0,1,f/t):1)):c,o.done=f>=t,o)}}let r=db(n&&n.length===e.length?n:es(e),t),l=mb(r,e,{ease:Array.isArray(a)?a:g3(e,a)});return{calculatedDuration:t,next:(s)=>(o.value=l(s),o.done=s>=t,o)}}var y3=5;function v3(t,e,n){let i=Math.max(e-y3,0);return jl(n-t(i),e-i)}function pb(t,e,n=0){if(e<=0)return n;return t.velocity?t.velocity(e):v3((i)=>t.next(i).value,e,t.next(e).value)}var x3=(t)=>t!==null;function Zi(t,{repeat:e,repeatType:n=\"loop\"},i,a=1){let o=t.filter(x3),l=a<0||e&&n!==\"loop\"&&e%2===1?0:o.length-1;return!l||i===void 0?o[l]:i}var b3={decay:Wl,inertia:Wl,tween:Ra,keyframes:Ra,spring:ri};function Rc(t){if(typeof t.type===\"string\")t.type=b3[t.type]}function S3(t,e){return{kind:t,animation:e,timestamp:Rt.now(),frameTimestamp:_n.timestamp,frameIsProcessing:_n.isProcessing}}function _c(t,e,n){let i=globalThis.__MOTION_INSPECT__;if(!i)return;try{i({...S3(\"animation-start\",t),options:n?{...e,...n}:e})}catch{}}class _a{constructor(){this.isResolved=!1}get finished(){if(!this._finished)this._finished=this.isResolved?Promise.resolve():new Promise((t)=>{this._resolve=t});return this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}var T3=(t)=>t/100;class Qi extends _a{constructor(t){super();if(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=()=>{let{motionValue:e}=this.options;if(e&&e.updatedAt!==Rt.now())this.tick(Rt.now());if(this.isStopped=!0,this.state===\"idle\")return;this.teardown(),this.options.onStop?.()},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1)this.pause();_c(this,this.options)}initAnimation(){let{options:t}=this;Rc(t);let{type:e=Ra,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t,{keyframes:r}=t,l=e||Ra;if(l!==Ra&&typeof r[0]!==\"number\")this.mixKeyframes=ai(T3,ar(r[0],r[1])),r=[0,100];let s=l(r===t.keyframes?t:{...t,keyframes:r});if(a===\"mirror\")this.mirroredGenerator=l({...t,keyframes:[...r].reverse(),velocity:-o});if(s.calculatedDuration===null)s.calculatedDuration=or(s);let{calculatedDuration:c}=s;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=s}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);let{delay:s=0,keyframes:c,repeat:u,repeatType:f,repeatDelay:m,type:d,onUpdate:y,finalKeyframe:x}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,t);else if(this.speed<0)this.startTime=Math.min(t-i/this.speed,this.startTime);if(e)this.currentTime=t;else this.updateTime(t);let T=this.currentTime-s*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?T<0:T>i;if(this.currentTime=Math.max(T,0),this.state===\"finished\"&&this.holdTime===null)this.currentTime=i;let p=this.currentTime,g=n;if(u){let S=Math.min(this.currentTime,i)/r,b=Math.floor(S),A=S%1;if(!A&&S>=1)A=1;if(A===1&&b--,b=Math.min(b,u+1),Boolean(b%2)){if(f===\"reverse\"){if(A=1-A,m)A-=m/r}else if(f===\"mirror\")g=o}p=ne(0,1,A)*r}let v;if(h)this.delayState.value=c[0],v=this.delayState;else v=g.next(p);if(a&&!h)v.value=a(v.value);let{done:E}=v;if(!h&&l!==null)E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0;let M=this.holdTime===null&&(this.state===\"finished\"||this.state===\"running\"&&E);if(M&&d!==Wl)v.value=Zi(c,this.options,x,this.speed);if(y)y(v.value);if(M)this.finish();return v}then(t,e){return this.finished.then(t,e)}get duration(){return ae(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(this.currentTime)}set time(t){if(t=Xt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=t;else if(this.driver)this.startTime=this.driver.now()-t/this.playbackSpeed;if(this.driver)this.driver.start(!1);else this.startTime=0,this.state=\"paused\",this.holdTime=t,this.tick(t)}getGeneratorVelocity(){return pb(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;if(e&&this.driver)this.updateTime(Rt.now());if(this.playbackSpeed=t,e&&this.driver)this.time=ae(this.currentTime)}play(){if(this.isStopped)return;let{driver:t=ub,startTime:e}=this.options;if(!this.driver)this.driver=t((i)=>this.tick(i));this.options.onPlay?.();let n=this.driver.now();if(this.state===\"finished\")this.updateFinished(),this.startTime=n;else if(this.holdTime!==null)this.startTime=n-this.holdTime;else if(!this.startTime)this.startTime=e??n;if(this.state===\"finished\"&&this.speed<0)this.startTime+=this.calculatedDuration;this.holdTime=null,this.state=\"running\",this.driver.start()}pause(){this.state=\"paused\",this.updateTime(Rt.now()),this.holdTime=this.currentTime}complete(){if(this.state!==\"running\")this.play();this.state=\"finished\",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=\"finished\",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=\"idle\",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){if(this.options.allowFlatten)this.options.type=\"keyframes\",this.options.ease=\"linear\",this.initAnimation();return this.driver?.stop(),t.observe(this)}}var E3=new Set([\"brightness\",\"contrast\",\"saturate\",\"opacity\"]);function M3(t){let[e,n]=t.slice(0,-1).split(\"(\");if(e===\"drop-shadow\")return t;let[i]=n.match(tr)||[];if(!i)return t;let a=n.replace(i,\"\"),o=E3.has(e)?1:0;if(i!==n)o*=100;return e+\"(\"+o+a+\")\"}var A3=/\\b([a-z-]*)\\(.*?\\)/gu,ns={..._t,getAnimatableNone:(t)=>{let e=t.match(A3);return e?e.map(M3).join(\" \"):t}};var is={..._t,getAnimatableNone:(t)=>{let e=_t.parse(t);return _t.createTransformer(t)(e.map((i)=>typeof i===\"number\"?0:typeof i===\"object\"?{...i,alpha:1}:i))}};var Jp={...Un,transform:Math.round};var as={rotate:gn,pathRotation:gn,rotateX:gn,rotateY:gn,rotateZ:gn,scale:Fl,scaleX:Fl,scaleY:Fl,scaleZ:Fl,skew:gn,skewX:gn,skewY:gn,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:oi,originX:Kp,originY:Kp,originZ:D};var fe={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...as,zIndex:Jp,fillOpacity:oi,strokeOpacity:oi,numOctaves:Jp};var w3={...fe,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:ns,WebkitFilter:ns,mask:is,WebkitMask:is},Bc=(t)=>w3[t];var C3=new Set([ns,is]);function rr(t,e){let n=Bc(t);if(!C3.has(n))n=_t;return n.getAnimatableNone?n.getAnimatableNone(e):void 0}function hb(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Ba=(t)=>t*180/Math.PI,Pp=(t)=>{let e=Ba(Math.atan2(t[1],t[0]));return Ip(e)},O3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(t)=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Pp,rotateZ:Pp,skewX:(t)=>Ba(Math.atan(t[1])),skewY:(t)=>Ba(Math.atan(t[2])),skew:(t)=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ip=(t)=>{if(t=t%360,t<0)t+=360;return t},gb=Pp,yb=(t)=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),vb=(t)=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),N3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yb,scaleY:vb,scale:(t)=>(yb(t)+vb(t))/2,rotateX:(t)=>Ip(Ba(Math.atan2(t[6],t[5]))),rotateY:(t)=>Ip(Ba(Math.atan2(-t[2],t[0]))),rotateZ:gb,rotate:gb,skewX:(t)=>Ba(Math.atan(t[4])),skewY:(t)=>Ba(Math.atan(t[1])),skew:(t)=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Uc(t){return t.includes(\"scale\")?1:0}function Hc(t,e){if(!t||t===\"none\")return Uc(e);let n=t.match(/^matrix3d\\(([-\\d.e\\s,]+)\\)$/u),i,a;if(n)i=N3,a=n;else{let l=t.match(/^matrix\\(([-\\d.e\\s,]+)\\)$/u);i=O3,a=l}if(!a)return Uc(e);let o=i[e],r=a[1].split(\",\").map(V3);return typeof o===\"function\"?o(r):r[o]}var Lc=(t,e)=>{let{transform:n=\"none\"}=getComputedStyle(t);return Hc(n,e)};function V3(t){return parseFloat(t.trim())}var Xe=[\"transformPerspective\",\"x\",\"y\",\"z\",\"translateX\",\"translateY\",\"translateZ\",\"scale\",\"scaleX\",\"scaleY\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"skew\",\"skewX\",\"skewY\"],oe=(()=>new Set([...Xe,\"pathRotation\"]))();var Wp=(t)=>t===Un||t===D,D3=new Set([\"x\",\"y\",\"z\"]),z3=Xe.filter((t)=>!D3.has(t));function bb(t){let e=[];return z3.forEach((n)=>{let i=t.getValue(n);if(i!==void 0){let a=i.get(),o=n.startsWith(\"scale\")?1:0;if(a===o)return;e.push([n,a]),i.set(o)}}),e}var Sb=new Set([\"bottom\",\"right\"]);function xb(t,e,n,i,a,o){let r=parseFloat(t);if(!isNaN(r))return r;let{min:l,max:s}=e()[n],c=s-l;return o===\"border-box\"?c:c-parseFloat(i)-parseFloat(a)}var ki={width:({width:t,paddingLeft:e=\"0\",paddingRight:n=\"0\",boxSizing:i},a)=>xb(t,a,\"x\",e,n,i),height:({height:t,paddingTop:e=\"0\",paddingBottom:n=\"0\",boxSizing:i},a)=>xb(t,a,\"y\",e,n,i),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{let{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:({transform:t})=>Hc(t,\"x\"),y:({transform:t})=>Hc(t,\"y\")};ki.translateX=ki.x;ki.translateY=ki.y;var Ua=new Set,th=!1,eh=!1,nh=!1;function Tb(){if(eh){let t=[],e=new Set,n=new Set;Ua.forEach((a)=>{if(!a.needsMeasurement)return;if(t.push(a),e.add(a.element),Sb.has(a.name))n.add(a.element)});let i=new Map;n.forEach((a)=>{let o=bb(a);if(!o.length)return;i.set(a,o),a.render()}),t.forEach((a)=>a.measureInitialState()),e.forEach((a)=>{a.render();let o=i.get(a);if(o)o.forEach(([r,l])=>{a.getValue(r)?.set(l)})}),t.forEach((a)=>a.measureEndState()),t.forEach((a)=>{if(a.suspendedScrollY!==void 0)window.scrollTo(0,a.suspendedScrollY)})}eh=!1,th=!1,Ua.forEach((t)=>t.complete(nh)),Ua.clear()}function Eb(){Ua.forEach((t)=>{if(t.readKeyframes(),t.needsMeasurement)eh=!0})}function Mb(){nh=!0,Eb(),Tb(),nh=!1}function R3(t,e,n){if(typeof t===\"string\"){if(Ca(t)||Na(t))return parseFloat(t);else if(!_t.test(t)&&_t.test(n))return rr(e,n)}return t??void 0}class Ha{constructor(t,e,n,i,a,o=!1){this.state=\"pending\",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){if(this.state=\"scheduled\",this.isAsync){if(Ua.add(this),!th)th=!0,gt.read(Eb),gt.resolveKeyframes(Tb)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(t[0]===null){let a=i?.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&e){let r=R3(n.readValue(e,o),e,o);if(r!==void 0)t[0]=r}if(t[0]===void 0)t[0]=o;if(i&&a===void 0)i.set(t[0])}hb(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state=\"complete\",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ua.delete(this)}cancel(){if(this.state===\"scheduled\")Ua.delete(this),this.state=\"pending\"}resume(){if(this.state===\"pending\")this.scheduleResolve()}}var $i=(t)=>t.startsWith(\"--\");function Gc(t,e,n){$i(e)?t.style.setProperty(e,n):t.style[e]=n}var Ab={};function jc(t,e){let n=Gl(t);return()=>Ab[e]??n()}var wb=jc(()=>window.ScrollTimeline!==void 0,\"scrollTimeline\");var qc=jc(()=>{try{document.createElement(\"div\").animate({opacity:0},{easing:\"linear(0, 1)\"})}catch(t){return!1}return!0},\"linearEasing\");var La=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;var ih={linear:\"linear\",ease:\"ease\",easeIn:\"ease-in\",easeOut:\"ease-out\",easeInOut:\"ease-in-out\",circIn:La([0,0.65,0.55,1]),circOut:La([0.55,0,1,0.45]),backIn:La([0.31,0.01,0.66,-0.59]),backOut:La([0.33,1.53,0.69,0.99])};function ah(t,e){if(!t)return;else if(typeof t===\"function\")return qc()?Vc(t,e):\"ease-out\";else if(kl(t))return La(t);else if(Array.isArray(t))return t.map((n)=>ah(n,e)||ih.easeOut);else return ih[t]}function Cb(t,e,n,{delay:i=0,duration:a=300,repeat:o=0,repeatType:r=\"loop\",ease:l=\"easeOut\",times:s}={},c=void 0){let u={[e]:n};if(s)u.offset=s;let f=ah(l,a);if(Array.isArray(f))u.easing=f;let m={delay:i,duration:a,easing:!Array.isArray(f)?f:\"linear\",fill:\"both\",iterations:o+1,direction:r===\"reverse\"?\"alternate\":\"normal\"};if(c)m.pseudoElement=c;return t.animate(u,m)}function Ga(t){return typeof t===\"function\"&&\"applyToOptions\"in t}function Ob({type:t,...e}){if(Ga(t)&&qc())return t.applyToOptions(e);else e.duration??(e.duration=300),e.ease??(e.ease=\"easeOut\");return e}class os extends _a{constructor(t){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:r,onComplete:l}=t;this.isPseudoElement=Boolean(a),this.allowFlatten=o,this.options=t,Yt(typeof t.type!==\"string\",`Mini animate() doesn't support \"type\" as a string.`,\"mini-spring\");let s=Ob(t);if(this.animation=Cb(e,n,i,s,a),s.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let c=Zi(i,this.options,r,this.speed);if(this.updateMotionValue)this.updateMotionValue(c);Gc(e,n,c),this.animation.cancel()}l?.(),this.notifyFinished()},_c(this,t,s)}play(){if(this.isStopped)return;if(this.manualStartTime=null,this.animation.play(),this.state===\"finished\")this.updateFinished()}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;if(t===\"idle\"||t===\"finished\")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){let t=this.options?.element;if(!this.isPseudoElement&&t?.isConnected)this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return ae(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(Number(this.animation.currentTime)||0)}set time(t){let e=this.finishedTime!==null;if(this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Xt(t),e)this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){if(t<0)this.finishedTime=null;this.animation.playbackRate=t}get state(){return this.finishedTime!==null?\"finished\":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:n,observe:i}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:\"linear\"});if(this.animation.onfinish=null,t&&wb()){if(this.animation.timeline=t,e)this.animation.rangeStart=e;if(n)this.animation.rangeEnd=n;return hn}else return i(this)}}var Nb={anticipate:Yl,backInOut:ql,circInOut:Kl};function _3(t){return t in Nb}function Vb(t){if(typeof t.ease===\"string\"&&_3(t.ease))t.ease=Nb[t.ease]}var oh=10;class rh extends os{constructor(t){Vb(t),Rc(t);super(t);if(t.startTime!==void 0&&t.autoplay!==!1)this.startTime=t.startTime;this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}let r=new Qi({...o,autoplay:!1}),l=Math.max(oh,Rt.now()-this.startTime),s=ne(0,oh,l-oh),c=r.sample(l).value,{name:u}=this.options;if(a&&u)Gc(a,u,c);e.setWithVelocity(r.sample(Math.max(0,l-s)).value,c,s),r.stop()}}var lh=(t,e)=>{if(e===\"zIndex\")return!1;if(typeof t===\"number\"||Array.isArray(t))return!0;if(typeof t===\"string\"&&(_t.test(t)||t===\"0\")&&!t.startsWith(\"url(\"))return!0;return!1};function B3(t){let e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Db(t,e,n,i){let a=t[0];if(a===null)return!1;if(e===\"display\"||e===\"visibility\")return!0;let o=t[t.length-1],r=lh(a,e),l=lh(o,e);if(!r||!l)return r!==l&&an(!1,`You are trying to animate ${e} from \"${a}\" to \"${o}\". \"${r?o:a}\" is not an animatable value.`,\"value-not-animatable\"),!1;return B3(t)||(n===\"spring\"||Ga(n))&&i}function rs(t){t.duration=0,t.type=\"keyframes\"}var ls=new Set([\"opacity\",\"clipPath\",\"filter\",\"transform\",\"backgroundColor\"]);var U3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\\(/;function zb(t){for(let e=0;e<t.length;e++)if(typeof t[e]===\"string\"&&U3.test(t[e]))return!0;return!1}var Rb=new Set([\"color\",\"backgroundColor\",\"outlineColor\",\"fill\",\"stroke\",\"borderColor\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\"]),H3=Gl(()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"));function _b(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:a,damping:o,type:r,keyframes:l}=t;if(!n||!(ls.has(n)||Rb.has(n)))return!1;let s=e?.owner?.current;if(!(s instanceof HTMLElement)&&!(s instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=e.owner.getProps();return H3()&&(ls.has(n)||Rb.has(n)&&zb(l))&&(n!==\"transform\"||!u)&&!c&&!i&&a!==\"mirror\"&&o!==0&&r!==\"inertia\"}var L3=40;class sh extends _a{constructor(t){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=Rt.now();let{keyframes:e,name:n,motionValue:i,element:a}=t,o=t;o.autoplay??(o.autoplay=!0),o.delay??(o.delay=0),o.type??(o.type=\"keyframes\"),o.repeat??(o.repeat=0),o.repeatDelay??(o.repeatDelay=0),o.repeatType??(o.repeatType=\"loop\");let r=a?.KeyframeResolver||Ha;this.keyframeResolver=new r(e,(l,s,c)=>this.onKeyframesResolved(l,s,o,!c),n,i,a),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:a,type:o,velocity:r,delay:l,isHandoff:s,onUpdate:c}=n;this.resolvedAt=Rt.now();let u=!0;if(!Db(t,a,o,r)){if(u=!1,ie.instantAnimations||!l)c?.(Zi(t,n,e));t[0]=t[t.length-1],rs(n),n.repeat=0}let f=i?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>L3?this.resolvedAt:this.createdAt:void 0,{onComplete:m}=n;n.startTime??(n.startTime=f),n.finalKeyframe=e,n.keyframes=t,n.onComplete=()=>{m?.(),this.notifyFinished()};let d=u&&!s&&_b(n),y;if(d){n.element=n.motionValue?.owner?.current;try{y=new rh(n)}catch{y=new Qi(n)}}else y=new Qi(n);if(this.pendingTimeline)this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),Mb();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){if(this._animation)this.stopTimeline=this.animation.attachTimeline(t);else this.pendingTimeline=t;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}class uh{constructor(t){this.stop=()=>this.runAll(\"stop\"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t)=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){let e=this.animations.map((n)=>n.attachTimeline(t));return()=>{e.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll(\"time\")}set time(t){this.setAll(\"time\",t)}get speed(){return this.getAll(\"speed\")}set speed(t){this.setAll(\"speed\",t)}get state(){return this.getAll(\"state\")}get startTime(){return this.getAll(\"startTime\")}get duration(){return Bb(this.animations,\"duration\")}get iterationDuration(){return Bb(this.animations,\"iterationDuration\")}runAll(t){this.animations.forEach((e)=>e[t]())}play(){this.runAll(\"play\")}pause(){this.runAll(\"pause\")}cancel(){this.runAll(\"cancel\")}complete(){this.runAll(\"complete\")}}function Bb(t,e){let n=0;for(let i=0;i<t.length;i++){let a=t[i][e];if(a!==null&&a>n)n=a}return n}class Yc extends uh{then(t,e){return this.finished.finally(t).then(()=>{})}}function Xc(t,e,n,i=0,a=1){let o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,l=(r-1)*i;return typeof n===\"function\"?n(o,r):a===1?o*i:l-o*i}var Ub=30,j3=(t)=>!isNaN(parseFloat(t)),ch={current:void 0};class li{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n)=>{let i=Rt.now();if(this.updatedAt!==i)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(n),this.current!==this.prev){if(this.notifyChange(),this.dependents)for(let a of this.dependents)a.dirty()}},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){if(this.current=t,this.updatedAt=Rt.now(),this.canTrackVelocity===null&&t!==void 0)this.canTrackVelocity=j3(this.current)}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on(\"change\",t)}on(t,e){var n;if(t===\"change\")return this.onChangeSubscribe(e);return((n=this.events)[t]||(n[t]=new Da)).add(e)}onChangeSubscribe(t){let{events:e}=this;if(!e.change&&!this.changeSubscriber)this.changeSubscriber=t;else{if(!e.change)e.change=new Da,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0;e.change.add(t)}return()=>{if(this.changeSubscriber===t)this.changeSubscriber=void 0;else e.change?.remove(t);this.stopIfUnobserved()}}stopIfUnobserved(){gt.read(()=>{if(!this.changeSubscriber&&!this.events.change?.getSize())this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){if(!this.passiveEffect)this.updateAndNotify(t);else this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){if(this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;if(e)e(t);else this.events.change?.notify(t)}addDependent(t){if(!this.dependents)this.dependents=new Set;this.dependents.add(t)}removeDependent(t){if(this.dependents)this.dependents.delete(t)}get(){if(ch.current)ch.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let t=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ub)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,Ub);return jl(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e)=>{this.hasAnimated=!0;let n=!1,i;if(i=t(()=>{if(n=!0,this.events.animationComplete?.notify(),this.animation===i)this.clearAnimation();e()}),!n)this.animation=i;this.events.animationStart?.notify()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function me(t,e){return new li(t,e)}function Kc(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}function Zc(t,e){let n=t?.[e]??t?.default??t;if(n!==t)return Kc(n,t);return n}var q3={type:\"spring\",stiffness:500,damping:25,restSpeed:10},Y3=(t)=>({type:\"spring\",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),X3={type:\"keyframes\",duration:0.8},K3={type:\"keyframes\",ease:[0.25,0.1,0.35,1],duration:0.3},Hb=(t,{keyframes:e})=>{if(e.length>2)return X3;else if(oe.has(t))return t.startsWith(\"scale\")?Y3(e[1]):q3;return K3};var Z3=new Set([\"when\",\"delay\",\"delayChildren\",\"staggerChildren\",\"staggerDirection\",\"repeat\",\"repeatType\",\"repeatDelay\",\"from\",\"elapsed\"]);function Lb(t){for(let e in t)if(!Z3.has(e))return!0;return!1}var lr=(t,e,n,i={},a,o)=>(r)=>{let l=Zc(i,t)||{},s=l.delay||i.delay||0,{elapsed:c=0}=i;c=c-Xt(s);let u={keyframes:Array.isArray(n)?n:[null,n],ease:\"easeOut\",velocity:e.getVelocity(),...l,delay:-c,onUpdate:(m)=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:a};if(!Lb(l))Object.assign(u,Hb(t,u));if(u.duration&&(u.duration=Xt(u.duration)),u.repeatDelay&&(u.repeatDelay=Xt(u.repeatDelay)),u.from!==void 0)u.keyframes[0]=u.from;let f=!1;if(u.type===!1||u.duration===0&&!u.repeatDelay){if(rs(u),u.delay===0)f=!0}if(ie.instantAnimations||ie.skipAnimations||a?.shouldSkipAnimations||l.skipAnimations)f=!0,rs(u),u.delay=0;if(u.allowFlatten=!l.type&&!l.ease,f&&!o&&e.get()!==void 0){let m=Zi(u.keyframes,l);if(m!==void 0){gt.update(()=>{u.onUpdate(m),u.onComplete()});return}}return l.isSync?new Qi(u):new sh(u)};var Q3=/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;function k3(t){let e=Q3.exec(t);if(!e)return[,];let[,n,i,a]=e;return[`--${n??i}`,a]}var $3=4;function fh(t,e,n=1){Yt(n<=$3,`Max CSS variable fallback depth detected in property \"${t}\". This may indicate a circular fallback dependency.`,\"max-css-var-depth\");let[i,a]=k3(t);if(!i)return;let o=window.getComputedStyle(e).getPropertyValue(i);if(o){let r=o.trim();return Ca(r)?parseFloat(r):r}return Wo(a)?fh(a,e,n+1):a}function Gb(t){let e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ja(t,e,n,i){if(typeof e===\"function\"){let[a,o]=Gb(i);e=e(n!==void 0?n:t.custom,a,o)}if(typeof e===\"string\")e=t.variants&&t.variants[e];if(typeof e===\"function\"){let[a,o]=Gb(i);e=e(n!==void 0?n:t.custom,a,o)}return e}function Ke(t,e,n){let i=t.getProps();return ja(i,e,n!==void 0?n:i.custom,t)}var sr=new Set([\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",...Xe]);var ss=(t)=>Array.isArray(t);function F3(t,e,n){if(t.hasValue(e))t.getValue(e).set(n);else t.addValue(e,me(n))}function J3(t){return ss(t)?t[t.length-1]||0:t}function jb(t,e){let n=Ke(t,e),{transitionEnd:i={},transition:a={},...o}=n||{};o={...o,...i};for(let r in o){let l=J3(o[r]);F3(t,r,l)}}var W=(t)=>Boolean(t&&t.getVelocity);function qb(t){return Boolean(W(t)&&t.add)}function Yb(t,e){let n=t.getValue(\"willChange\");if(qb(n))return n.add(e);else if(!n&&ie.WillChange){let i=new ie.WillChange(\"auto\");t.addValue(\"willChange\",i),i.add(e)}}function Ln(t){return t.replace(/([A-Z])/g,(e)=>`-${e.toLowerCase()}`)}var Xb=\"framerAppearId\",us=\"data-\"+Ln(Xb);function Kb(t){return t.props[us]}var P3=typeof window<\"u\";function I3({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Qc(t,e,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:o,transitionEnd:r,...l}=e,s=t.getDefaultTransition();o=o?Kc(o,s):s;let c=o?.reduceMotion,u=o?.skipAnimations;if(i)o=i;let f=[],m=a&&t.animationState&&t.animationState.getState()[a],d=o?.path;if(d)d.animateVisualElement(t,l,o,n,f);for(let y in l){let x=t.getValue(y,t.latestValues[y]??null),T=l[y];if(T===void 0||m&&I3(m,y))continue;let h={delay:n,...Zc(o||{},y)};if(u)h.skipAnimations=!0;let p=x.get();if(p!==void 0&&!x.isAnimating()&&!Array.isArray(T)&&T===p&&!h.velocity){gt.update(()=>x.set(T));continue}let g=!1;if(P3&&window.MotionHandoffAnimation){let M=Kb(t);if(M){let S=window.MotionHandoffAnimation(M,y,gt);if(S!==null)h.startTime=S,g=!0}}Yb(t,y);let v=c??t.shouldReduceMotion;x.start(lr(y,x,T,v&&sr.has(y)?{type:!1}:h,t,g));let E=x.animation;if(E)f.push(E)}if(r){let y=()=>gt.update(()=>{r&&jb(t,r)});if(f.length)Promise.all(f).then(y);else y()}return f}function kc(t,e,n={}){let i=Ke(t,e,n.type===\"exit\"?t.presenceContext?.custom:void 0),{transition:a=t.getDefaultTransition()||{}}=i||{};if(n.transitionOverride)a=n.transitionOverride;let o=i?()=>Promise.all(Qc(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=a;return W3(t,e,s,c,u,f,n)}:()=>Promise.resolve(),{when:l}=a;if(l){let[s,c]=l===\"beforeChildren\"?[o,r]:[r,o];return s().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function W3(t,e,n=0,i=0,a=0,o=1,r){let l=[];for(let s of t.variantChildren)s.notify(\"AnimationStart\",e),l.push(kc(s,e,{...r,delay:n+(typeof i===\"function\"?0:i)+Xc(t.variantChildren,s,i,a,o)}).then(()=>s.notify(\"AnimationComplete\",e)));return Promise.all(l)}function Zb(t,e,n={}){t.notify(\"AnimationStart\",e);let i;if(Array.isArray(e)){let a=e.map((o)=>kc(t,o,n));i=Promise.all(a)}else if(typeof e===\"string\")i=kc(t,e,n);else{let a=typeof e===\"function\"?Ke(t,e,n.custom):e;i=Promise.all(Qc(t,a,n))}return i.then(()=>{t.notify(\"AnimationComplete\",e)})}var Qb={test:(t)=>t===\"auto\",parse:(t)=>t};var kb=(t)=>(e)=>e.test(t);var tw=[Un,D,Xi,gn,Fx,$x,Qb],mh=(t)=>tw.find(kb(t));function $b(t){if(typeof t===\"number\")return t===0;else if(t!==null)return t===\"none\"||t===\"0\"||Na(t);else return!0}var ew=new Set([\"auto\",\"none\",\"0\"]);function Fb(t,e,n){let i=0,a=void 0;while(i<t.length&&!a){let o=t[i];if(typeof o===\"string\"&&!ew.has(o)&&nb(o))a=t[i];i++}if(a&&n)for(let o of e){if(t[o]===a)continue;t[o]=rr(n,a)}}class cs extends Ha{constructor(t,e,n,i,a){super(t,e,n,i,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u===\"string\"){if(u=u.trim(),Wo(u)){let f=fh(u,e.current);if(f!==void 0)t[c]=f;if(c===t.length-1)this.finalKeyframe=u}}}if(this.resolveNoneKeyframes(),!sr.has(n)||t.length!==2)return;let[i,a]=t;if(typeof i===\"number\"&&typeof a===\"number\")return;let o=mh(i),r=mh(a),l=Yp(i),s=Yp(a);if(l!==s&&ki[n]){this.needsMeasurement=!0;return}if(o===r)return;if(Wp(o)&&Wp(r))for(let c=0;c<t.length;c++){let u=t[c];if(typeof u===\"string\")t[c]=parseFloat(u)}else if(ki[n])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)if(t[i]===null||$b(t[i]))n.push(i);if(n.length)Fb(t,n,e)}measure(){let{element:t,name:e}=this;return ki[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;if(n===\"height\")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let i=e[e.length-1];if(i!==void 0)this.motionValue?.jump(i,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=e.length-1,i=e[n];if(e[n]=this.measure(),i!==null&&this.finalKeyframe===void 0)this.finalKeyframe=i;if(this.removedTransforms?.length)this.removedTransforms.forEach(([a,o])=>{t.getValue(a).set(o)});this.resolveNoneKeyframes()}}var Jb=[\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderBottomRightRadius\",\"borderBottomLeftRadius\"];var dh=[];function ph(t){Yt(typeof t.test===\"function\"&&typeof t.read===\"function\",\"Effects passed to animate.addEffect() need test() and read().\",\"effect-missing-test\"),$c(t),dh.unshift(t)}function $c(t){ii(dh,t)}function hh(t){return dh.find((e)=>e.test(t))}function Fc(t,e,n={},i){let a=[],{velocity:o}=n,r=n.reduceMotion??i?.shouldReduceMotion;for(let s in e){if(s===\"transition\"||s===\"transitionEnd\")continue;let c=e[s];if(c===void 0)continue;let u=t(s),f=u.get();if(f!==void 0&&!u.isAnimating()&&!Array.isArray(c)&&c===f&&!o){gt.update(()=>u.set(c));continue}u.start(lr(s,u,c,r&&sr.has(s)?{type:!1}:n,i)),u.animation&&a.push(u.animation)}let{transitionEnd:l}=e;if(l){let s=()=>gt.update(()=>{for(let c in l)t(c).set(l[c])});a.length?Promise.all(a).then(s):s()}return a}function fs(t,e,n,i,a){return Fc((o)=>{let r=t.get(e,o);if(!r){let l;if(!a){let s=n[o];l=nw(s)??t.read(e,o,s),Yt(l!==void 0,`\"${o}\" can't be read from the animated subject. Provide [from, to] keyframes.`,\"effect-unreadable-value\")}r=me(l,{owner:a}),t(e,{[o]:r})}return r},n,i,a)}function nw(t){let e=Array.isArray(t)?t[0]:void 0;return e===null?void 0:e}function ms(t){return Oa(t)&&\"offsetHeight\"in t&&!(\"ownerSVGElement\"in t)}function ur(t){return Oa(t)&&\"ownerSVGElement\"in t}var Ne=(t,e)=>e&&typeof t===\"number\"?e.transform(t):t;function ds(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];else if(typeof t===\"string\"){let i=document;if(e)i=e.current;let a=n?.[t]??i.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t).filter((i)=>i!=null)}class gh{constructor(t=gt.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:n}=this;this.numPending=0;for(let i=0;i<n;i++)e[i]()}}set(t,e,n,i){if(this.values.get(t)?.onRemove(),i){for(let l of this.values.values())if(l.value===i)n=l.render}let a=()=>n&&this.schedule(n);e.get()!==void 0&&a();let o=e.on(\"change\",a),r=()=>{o(),n&&!i&&this.cancel(n),this.values.delete(t)};return this.values.set(t,{value:e,render:i?void 0:n,onRemove:r}),r}get(t){return this.values.get(t)?.value}release(){let t=new Map;return this.values.forEach((e,n)=>{t.set(n,e.value),e.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){let{pending:e,numPending:n}=this;for(let i=0;i<n;i++)if(e[i]===t)return;n||this.step(this.flush),e[this.numPending++]=t}cancel(t){let{pending:e}=this;for(let n=0;n<this.numPending;n++)if(e[n]===t){e[n]=e[--this.numPending];return}}}function cr(t,{step:e,...n}={}){let i=new WeakMap;return Object.assign((o,r)=>{let l=i.get(o)??new gh(e);i.set(o,l);let s=[];for(let c in r){let u=r[c],f=t(o,l,c,u);s.push(f)}return()=>{for(let c of s)c()}},n,{get:(o,r)=>i.get(o)?.get(r),flush:(o)=>i.get(o)?.flush(),state:(o)=>i.get(o)})}var iw={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},Pb={};function Ib(t){let e=\"\",{transformKeys:n=[],transformValues:i={}}=t;for(let o=0;o<n.length;o++){let r=n[o],l=i[r].get();if(l===void 0)continue;if((typeof l===\"number\"?l:parseFloat(l))!==(r.startsWith(\"scale\")?1:0))e+=(e&&\" \")+(Pb[r]||(Pb[r]=(iw[r]||r)+\"(\"))+Ne(l,as[r])+\")\"}let a=t.get(\"pathRotation\")?.get();if(a)e+=(e&&\" \")+\"rotate(\"+Ne(a,as.pathRotation)+\")\";return e||\"none\"}var aw=new Set([\"originX\",\"originY\",\"originZ\"]),yh=(t,e)=>Ne(t.get(e)?.get(),fe[e]),Jc=(t,e,n,i)=>{let a=void 0,o=void 0;if(oe.has(n)){if(n!==\"pathRotation\"){let r=e.transformKeys??(e.transformKeys=[]);if((e.transformValues??(e.transformValues={}))[n]=i,!r.includes(n))r.push(n),r.sort((l,s)=>Xe.indexOf(l)-Xe.indexOf(s))}if(!e.get(\"transform\")){if(!ms(t)&&!e.get(\"transformBox\"))Jc(t,e,\"transformBox\",new li(\"fill-box\"));e.set(\"transform\",new li(\"none\"),()=>{t.style.transform=Ib(e)})}o=e.get(\"transform\")}else if(aw.has(n)){if(!e.get(\"transformOrigin\"))e.set(\"transformOrigin\",new li(\"\"),()=>{let r=yh(e,\"originX\")??\"50%\",l=yh(e,\"originY\")??\"50%\",s=yh(e,\"originZ\")??0;t.style.transformOrigin=`${r} ${l} ${s}`});o=e.get(\"transformOrigin\")}else if($i(n))a=()=>{t.style.setProperty(n,i.get())};else a=()=>{t.style[n]=Ne(i.get(),fe[n])};return e.set(n,i,a,o)},ow=(t)=>ms(t)||ur(t),vh=(t,e)=>{if(oe.has(e))return Lc(t,e);let n=getComputedStyle(t),i=$i(e)?n.getPropertyValue(e):n[e];return typeof i===\"string\"&&i.trim()||0},Wb=cr(Jc,{test:ow,read:vh});var rw={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},lw=Xe.length;function tS(t,e,n){let i=\"\",a=!0;for(let r=0;r<lw;r++){let l=Xe[r],s=t[l];if(s===void 0)continue;let c=!0;if(typeof s===\"number\")c=s===(l.startsWith(\"scale\")?1:0);else{let u=parseFloat(s);c=l.startsWith(\"scale\")?u===1:u===0}if(!c||n){let u=Ne(s,fe[l]);if(!c){a=!1;let f=rw[l]||l;i+=`${f}(${u}) `}if(n)e[l]=u}}let o=t.pathRotation;if(o)a=!1,i+=`rotate(${Ne(o,fe.pathRotation)}) `;if(i=i.trim(),n)i=n(e,a?\"\":i);else if(a)i=\"none\";return i}function qa(t,e,n){let{style:i,vars:a,transformOrigin:o}=t,r=!1,l=!1;for(let s in e){let c=e[s];if(oe.has(s)){r=!0;continue}else if(wc(s)){a[s]=c;continue}else{let u=Ne(c,fe[s]);if(s.startsWith(\"origin\"))l=!0,o[s]=u;else i[s]=u}}if(!e.transform){if(r||n)i.transform=tS(e,t.transform,n);else if(i.transform)i.transform=\"none\"}if(l){let{originX:s=\"50%\",originY:c=\"50%\",originZ:u=0}=o;i.transformOrigin=`${s} ${c} ${u}`}}var sw={offset:\"stroke-dashoffset\",array:\"stroke-dasharray\"},uw={offset:\"strokeDashoffset\",array:\"strokeDasharray\"};function eS(t,e,n=1,i=0,a=!0){t.pathLength=1;let o=a?sw:uw;t[o.offset]=`${-i}`,t[o.array]=`${e} ${n}`}var ps=[\"transform\",\"opacity\",\"offsetDistance\",\"offsetPath\",\"offsetRotate\",\"offsetAnchor\"];function hs(t,{attrX:e,attrY:n,attrScale:i,pathLength:a,pathSpacing:o=1,pathOffset:r=0,...l},s,c,u){if(qa(t,l,c),s){if(t.style.viewBox)t.attrs.viewBox=t.style.viewBox;return}t.attrs=t.style,t.style={};let{attrs:f,style:m}=t;for(let d of ps)if(f[d]!==void 0)m[d]=f[d],delete f[d];if(m.transform||f.transformOrigin)m.transformOrigin=f.transformOrigin??\"50% 50%\",delete f.transformOrigin;if(m.transform)m.transformBox=u?.transformBox??\"fill-box\",delete f.transformBox;if(e!==void 0)f.x=e;if(n!==void 0)f.y=n;if(i!==void 0)f.scale=i;if(a!==void 0)eS(f,a,o,r,!1)}function cw(t,e){if(!(e in t))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&typeof n.set===\"function\"}var xh=(t,e,n,i,a=n)=>{let o=cw(t,a);if(!o&&(a.startsWith(\"data\")||a.startsWith(\"aria\")))a=Ln(a);let r=fe[n]||fe[a],l=o?()=>{t[a]=Ne(i.get(),fe[n])}:()=>{let s=Ne(i.get(),r);if(s===null||s===void 0)t.removeAttribute(a);else t.setAttribute(a,String(s))};return e.set(n,i,l)};function fw(t,e,n,i){if(gt.render(()=>t.setAttribute(\"pathLength\",\"1\")),n===\"pathOffset\")return e.set(n,i,()=>{let a=i.get();t.setAttribute(\"stroke-dashoffset\",`${-a}`)});else{if(!e.get(\"stroke-dasharray\"))e.set(\"stroke-dasharray\",new li(\"1 1\"),()=>{let a=e.get(\"pathLength\")?.get()??1,o=e.get(\"pathSpacing\")?.get();t.setAttribute(\"stroke-dasharray\",`${a} ${o??1-Number(a)}`)});return e.set(n,i,void 0,e.get(\"stroke-dasharray\"))}}var mw=(t,e,n,i)=>{if(n.startsWith(\"path\"))return fw(t,e,n,i);else if(n.startsWith(\"attr\"))return xh(t,e,n,i,iS(n));return($i(n)||n in t.style?Jc:xh)(t,e,n,i)},dw=(t,e)=>{if(oe.has(e))return fe[e]?.default||0;if($i(e)||ps.includes(e))return vh(t,e);return e=iS(e),t.getAttribute(Ln(e))??t.getAttribute(e)??void 0},nS=cr(mw,{test:ur,read:dw});function iS(t){return t.replace(/^attr([A-Z])/,(e,n)=>n.toLowerCase())}function aS({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function oS(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Pc(t,e){return aS(oS(t.getBoundingClientRect(),e))}var pw={},hw=(t)=>ur(t)?nS:Wb;class rS{constructor(t,e){this.effect=t,this.current=e,this.KeyframeResolver=cs}getValue(t){return this.effect.get(this.current,t)}readValue(t,e){return this.effect.read(this.current,t,e)}render(){this.effect.flush(this.current)}measureViewportBox(){return Pc(this.current)}getProps(){return pw}}function bh(t,e,n,i){if(i)return Fc((o)=>i.getValue(o,null),e,n,i);let a=hw(t);return fs(a,t,e,n,new rS(a,t))}var Sh=cr((t,e,n,i)=>e.set(n,i,()=>{t[n]=i.get()}),{test:(t)=>Oa(t),read:(t,e)=>{let n=t[e];return typeof n===\"string\"||typeof n===\"number\"?n:void 0}});var{schedule:lS,cancel:Z6}=Mc(queueMicrotask,!1);var sS={x:!1,y:!1};function Ic(){return sS.x||sS.y}function Wc(t,e){let n=ds(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function gw(t){return!(t.pointerType===\"touch\"||Ic())}function Th(t,e,n={}){let[i,a,o]=Wc(t,n);return i.forEach((r)=>{let l=!1,s=!1,c,u=()=>{r.removeEventListener(\"pointerleave\",y)},f=(T)=>{if(c)c(T),c=void 0;u()},m=(T)=>{if(l=!1,window.removeEventListener(\"pointerup\",m),window.removeEventListener(\"pointercancel\",m),s)s=!1,f(T)},d=()=>{l=!0,window.addEventListener(\"pointerup\",m,a),window.addEventListener(\"pointercancel\",m,a)},y=(T)=>{if(T.pointerType===\"touch\")return;if(l){s=!0;return}f(T)},x=(T)=>{if(!gw(T))return;s=!1;let h=e(r,T);if(typeof h!==\"function\")return;c=h,r.addEventListener(\"pointerleave\",y,a)};r.addEventListener(\"pointerenter\",x,a),r.addEventListener(\"pointerdown\",d,a)}),o}var Eh=(t,e)=>{if(!e)return!1;else if(t===e)return!0;else return Eh(t,e.parentElement)};var uS=(t)=>{if(t.pointerType===\"mouse\")return typeof t.button!==\"number\"||t.button<=0;else return t.isPrimary!==!1};var yw=new Set([\"BUTTON\",\"INPUT\",\"SELECT\",\"TEXTAREA\",\"A\"]);function cS(t){return yw.has(t.tagName)||t.isContentEditable===!0}var fr=new WeakSet;function fS(t){return(e)=>{if(e.key!==\"Enter\")return;t(e)}}function Mh(t,e){t.dispatchEvent(new PointerEvent(\"pointer\"+e,{isPrimary:!0,bubbles:!0}))}var mS=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=fS(()=>{if(fr.has(n))return;Mh(n,\"down\");let a=fS(()=>{Mh(n,\"up\")}),o=()=>Mh(n,\"cancel\");n.addEventListener(\"keyup\",a,e),n.addEventListener(\"blur\",o,e)});n.addEventListener(\"keydown\",i,e),n.addEventListener(\"blur\",()=>n.removeEventListener(\"keydown\",i),e)};function dS(t){return uS(t)&&!Ic()}var pS=new WeakSet;function Ah(t,e,n={}){let[i,a,o]=Wc(t,n),r=(l)=>{let s=l.currentTarget;if(!dS(l))return;if(pS.has(l))return;if(fr.add(s),n.stopPropagation)pS.add(l);let c=e(s,l),u={...a,capture:!0},f=(y,x)=>{if(window.removeEventListener(\"pointerup\",m,u),window.removeEventListener(\"pointercancel\",d,u),fr.has(s))fr.delete(s);if(!dS(y))return;if(typeof c===\"function\")c(y,{success:x})},m=(y)=>{f(y,s===window||s===document||n.useGlobalTarget||Eh(s,y.target))},d=(y)=>{f(y,!1)};window.addEventListener(\"pointerup\",m,u),window.addEventListener(\"pointercancel\",d,u)};return i.forEach((l)=>{if((n.useGlobalTarget?window:l).addEventListener(\"pointerdown\",r,a),ms(l)){if(l.addEventListener(\"focus\",(c)=>mS(c,a)),!cS(l)&&!l.hasAttribute(\"tabindex\"))l.tabIndex=0}}),o}var hS=()=>({min:0,max:0}),tf=()=>({x:hS(),y:hS()});var gs=new WeakMap;function si(t){return t!==null&&typeof t===\"object\"&&typeof t.start===\"function\"}function Gn(t){return typeof t===\"string\"||Array.isArray(t)}var ef=[\"animate\",\"whileInView\",\"whileFocus\",\"whileHover\",\"whileTap\",\"whileDrag\",\"exit\"],mr=[\"initial\",...ef];function Fi(t){if(si(t.animate))return!0;for(let e=0;e<mr.length;e++)if(Gn(t[mr[e]]))return!0;return!1}function ys(t){return Boolean(Fi(t)||t.variants)}function gS(t,e,n){for(let i in e){let a=e[i],o=n[i];if(W(a))t.addValue(i,a);else if(W(o))t.addValue(i,me(a,{owner:t}));else if(o!==a)if(t.hasValue(i)){let r=t.getValue(i);if(r.liveStyle===!0)r.jump(a);else if(!r.hasAnimated)r.set(a)}else{let r=t.getStaticValue(i);t.addValue(i,me(r!==void 0?r:a,{owner:t}))}}for(let i in n)if(e[i]===void 0)t.removeValue(i);return e}var vs={current:null},nf={current:!1};var vw=typeof window<\"u\";function yS(){if(nf.current=!0,!vw)return;if(window.matchMedia){let t=window.matchMedia(\"(prefers-reduced-motion)\"),e=()=>vs.current=t.matches;t.addEventListener(\"change\",e),e()}else vs.current=!1}var vS=[\"AnimationStart\",\"AnimationComplete\",\"Update\",\"BeforeLayoutMeasure\",\"LayoutMeasure\",\"LayoutAnimationStart\",\"LayoutAnimationComplete\"],af={};function xs(t){af=t}function wh(){return af}class of{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:o,visualState:r},l={}){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=Ha,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(\"Update\",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=Rt.now();if(this.renderScheduledAt<m)this.renderScheduledAt=m,gt.render(this.render,!1,!0)};let{latestValues:s,renderState:c}=r;if(this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Fi(e),this.isVariantNode=ys(e),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:u,...f}=this.scrapeMotionValuesFromProps(e,{},this);for(let m in f){let d=f[m];if(s[m]!==void 0&&W(d))d.set(s[m])}}mount(t){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=t,gs.set(t,this),this.projection&&!this.projection.instance)this.projection.mount(t);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((e,n)=>this.bindToMotionValue(n,e)),this.reducedMotionConfig===\"never\")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig===\"always\")this.shouldReduceMotion=!0;else{if(!nf.current)yS();this.shouldReduceMotion=vs.current}this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Io(this.notifyUpdate),Io(this.render),this.valueSubscriptions.forEach((t)=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];if(e)e.unmount(),e.isMounted=!1}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t))this.valueSubscriptions.get(t)();if(e.accelerate&&ls.has(t)&&this.current instanceof HTMLElement){let{factory:o,keyframes:r,times:l,ease:s,duration:c}=e.accelerate,u=new os({element:this.current,name:t,keyframes:r,times:l,ease:s,duration:Xt(c)}),f=o(u);this.valueSubscriptions.set(t,()=>{f(),u.cancel()});return}let n=oe.has(t);if(n&&this.onBindTransform)this.onBindTransform();let i=e.on(\"change\",(o)=>{if(this.latestValues[t]=o,this.props.onUpdate&>.preRender(this.notifyUpdate),n&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),a;if(typeof window<\"u\"&&window.MotionCheckAppearSync)a=window.MotionCheckAppearSync(this,t,e);this.valueSubscriptions.set(t,()=>{if(i(),a)a()})}sortNodePosition(t){if(!this.current||!this.sortInstanceNodePosition||this.type!==t.type)return 0;return this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t=\"animation\";for(t in af){let e=af[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props))this.features[t]=new i(this);if(this.features[t]){let a=this.features[t];if(a.isMounted)a.update();else a.mount(),a.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tf()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){if(t.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<vS.length;n++){let i=vS[n];if(this.propEventSubscriptions[i])this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i];let a=\"on\"+i,o=t[a];if(o)this.propEventSubscriptions[i]=this.on(i,o)}if(this.prevMotionValues=gS(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);if(e!==n){if(n)this.removeValue(t);this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get()}}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);if(e)e(),this.valueSubscriptions.delete(t);delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);if(n===void 0&&e!==void 0)n=me(e===null?void 0:e,{owner:this}),this.addValue(t,n);return n}readValue(t,e){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);if(n!==void 0&&n!==null){if(typeof n===\"string\"&&(Ca(n)||Na(n)))n=parseFloat(n);else if(typeof n!==\"number\"&&!_t.test(n)&&_t.test(e))n=rr(t,e);this.setBaseTarget(t,W(n)?n.get():n)}return W(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let{initial:e}=this.props,n;if(typeof e===\"string\"||typeof e===\"object\"){let a=ja(this.props,e,this.presenceContext?.custom);if(a)n=a[t]}if(e&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);if(i!==void 0&&!W(i))return i;return this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,e){if(!this.events[t])this.events[t]=new Da;return this.events[t].add(e)}notify(t,...e){if(this.events[t])this.events[t].notify(...e)}scheduleRenderMicrotask(){lS.render(this.render)}}class bs extends of{constructor(){super(...arguments);this.KeyframeResolver=cs}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){let n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:t}=this.props;if(W(t))this.childSubscription=t.on(\"change\",(e)=>{if(this.current)this.current.textContent=`${e}`})}}class Ve{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rf(t,{style:e,vars:n},i,a){let o=t.style,r;for(r in e)o[r]=e[r];a?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function xS(t,e){if(e.max===e.min)return 0;return t/(e.max-e.min)*100}var dr={correct:(t,e)=>{if(!e.target)return t;if(typeof t===\"string\")if(D.test(t))t=parseFloat(t);else return t;let n=xS(t,e.target.x),i=xS(t,e.target.y);return`${n}% ${i}%`}};var bS={correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t,a=_t.parse(t);if(a.length>5)return i;let o=_t.createTransformer(t),r=typeof a[0]!==\"number\"?1:0,l=n.x.scale*e.x,s=n.y.scale*e.y;a[0+r]/=l,a[1+r]/=s;let c=Oe(l,s,0.5);if(typeof a[2+r]===\"number\")a[2+r]/=c;if(typeof a[3+r]===\"number\")a[3+r]/=c;return o(a)}};var SS={borderRadius:{...dr,applyTo:[...Jb]},borderTopLeftRadius:dr,borderTopRightRadius:dr,borderBottomLeftRadius:dr,borderBottomRightRadius:dr,boxShadow:bS};function Ss(t,{layout:e,layoutId:n}){return oe.has(t)||t.startsWith(\"origin\")||(e||n!==void 0)&&(!!SS[t]||t===\"opacity\")}function Ya(t,e,n){let i=t.style,a=e?.style,o={};if(!i)return o;for(let r in i)if(W(i[r])||a&&W(a[r])||Ss(r,t)||n?.getValue(r)?.liveStyle!==void 0)o[r]=i[r];return o}function xw(t){return window.getComputedStyle(t)}class lf extends bs{constructor(){super(...arguments);this.type=\"html\",this.renderInstance=rf}mount(t){Yt(Boolean(t.style),\"motion.create() components must forward their ref to a HTML or SVG element\",\"custom-component-ref\"),super.mount(t)}readValueFromInstance(t,e){if(oe.has(e))return this.projection?.isProjecting?Uc(e):Lc(t,e);else{let n=xw(t),i=(wc(e)?n.getPropertyValue(e):n[e])||0;return typeof i===\"string\"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Pc(t,e)}build(t,e,n){qa(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ya(t,e,n)}}var sf=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\"]);var Ts=(t)=>typeof t===\"string\"&&t.toLowerCase()===\"svg\";function TS(t,e,n,i){rf(t,e,void 0,i);for(let a in e.attrs)t.setAttribute(!sf.has(a)?Ln(a):a,e.attrs[a])}function Es(t,e,n){let i=Ya(t,e,n);for(let a in t)if(W(t[a])||W(e[a])){let o=Xe.indexOf(a)!==-1?\"attr\"+a.charAt(0).toUpperCase()+a.substring(1):a;i[o]=t[a]}return i}class uf extends bs{constructor(){super(...arguments);this.type=\"svg\",this.isSVGTag=!1,this.measureInstanceViewportBox=tf}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(oe.has(e)){let n=Bc(e);return n?n.default||0:0}if(ps.includes(e)){let i=getComputedStyle(t)[e];if(typeof i===\"string\"&&i)return i.trim()}return e=!sf.has(e)?Ln(e):e,t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Es(t,e,n)}build(t,e,n){hs(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){TS(t,e,n,i)}mount(t){this.isSVGTag=Ts(t.tagName),super.mount(t)}}var bw=mr.length;function Ch(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent?Ch(t.parent)||{}:{};if(t.props.initial!==void 0)n.initial=t.props.initial;return n}let e={};for(let n=0;n<bw;n++){let i=mr[n],a=t.props[i];if(Gn(a)||a===!1)e[i]=a}return e}function Oh(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var Sw=[...ef].reverse(),Tw=ef.length;function Ew(t){return(e)=>Promise.all(e.map(({animation:n,options:i})=>Zb(t,n,i)))}function Nh(t){let e=Ew(t),n=ES(),i=!0,a=!1,o=(c)=>(u,f)=>{let m=Ke(t,f,c===\"exit\"?t.presenceContext?.custom:void 0);if(m){let{transition:d,transitionEnd:y,...x}=m;u={...u,...x,...y}}return u};function r(c){e=c(t)}function l(c){let{props:u}=t,f=Ch(t.parent)||{},m=[],d=new Set,y={},x=1/0;for(let h=0;h<Tw;h++){let p=Sw[h],g=n[p],v=u[p]!==void 0?u[p]:f[p],E=Gn(v),M=p===c?g.isActive:null;if(M===!1)x=h;let S=v===f[p]&&v!==u[p]&&E;if(S&&(i||a)&&t.manuallyAnimateOnMount)S=!1;if(g.protectedKeys={...y},!g.isActive&&M===null||!v&&!g.prevProp||si(v)||typeof v===\"boolean\")continue;if(p===\"exit\"&&g.isActive&&M!==!0){if(g.prevResolvedValues)y={...y,...g.prevResolvedValues};continue}let b=MS(g.prevProp,v),A=b||p===c&&g.isActive&&!S&&E||h>x&&E,N=!1,R=Array.isArray(v)?v:[v],tt=R.reduce(o(p),{});if(M===!1)tt={};let{prevResolvedValues:rt={}}=g,re={...rt,...tt},et=(V)=>{if(A=!0,d.has(V))N=!0,d.delete(V);g.needsAnimating[V]=!0;let U=t.getValue(V);if(U)U.liveStyle=!1};for(let V in re){let U=tt[V],P=rt[V];if(y.hasOwnProperty(V))continue;let Z=!1;if(ss(U)&&ss(P))Z=!Oh(U,P)||b;else Z=U!==P;if(Z)if(U!==void 0&&U!==null)et(V);else d.add(V);else if(U!==void 0&&d.has(V))et(V);else g.protectedKeys[V]=!0}if(g.prevProp=v,g.prevResolvedValues=tt,g.isActive)y={...y,...tt};if((i||a)&&t.blockInitialAnimation)A=!1;let pt=S&&b;if(A&&(!pt||N))m.push(...R.map((V)=>{let U={type:p};if(typeof V===\"string\"&&(i||a)&&!pt&&t.manuallyAnimateOnMount&&t.parent){let{parent:P}=t,Z=Ke(P,V);if(P.enteringChildren&&Z){let{delayChildren:ut}=Z.transition||{};U.delay=Xc(P.enteringChildren,t,ut)}}return{animation:V,options:U}}))}if(d.size){let h={};if(typeof u.initial!==\"boolean\"){let p=Ke(t,Array.isArray(u.initial)?u.initial[0]:u.initial);if(p&&p.transition)h.transition=p.transition}d.forEach((p)=>{let g=t.getBaseTarget(p),v=t.getValue(p);if(v)v.liveStyle=!0;h[p]=g??null}),m.push({animation:h})}let T=Boolean(m.length);if(i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount)T=!1;return i=!1,a=!1,T?e(m):Promise.resolve()}function s(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach((m)=>m.animationState?.setActive(c,u)),n[c].isActive=u;let f=l(c);for(let m in n)n[m].protectedKeys={};return f}return{animateChanges:l,setActive:s,setAnimateFunction:r,getState:()=>n,reset:()=>{n=ES(),a=!0}}}function MS(t,e){if(typeof e===\"string\")return e!==t;else if(Array.isArray(e))return!Oh(e,t);return!1}function Xa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ES(){return{animate:Xa(!0),whileInView:Xa(),whileHover:Xa(),whileTap:Xa(),whileDrag:Xa(),whileFocus:Xa(),exit:Xa()}}function Vh(t,e,n){let i=W(t)?t:me(t);return i.start(lr(\"\",i,e,n)),i.animation}function cf(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Dh(t){return W(t)?t.get():t}var AS=I(Et(),1),pr=AS.createContext({transformPagePoint:(t)=>t,isStatic:!1,reducedMotion:\"never\"});var NS=I(pn(),1),gr=I(Et(),1);var wS=I(Et(),1),hr=wS.createContext({strict:!1});var CS={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\"]},OS=!1;function Mw(){if(OS)return;let t={};for(let e in CS)t[e]={isEnabled:(n)=>CS[e].some((i)=>!!n[i])};xs(t),OS=!0}function ff(){return Mw(),wh()}function Ms(t){let e=ff();for(let n in t)e[n]={...e[n],...t[n]};xs(e)}function Rh({children:t,features:e,strict:n=!1}){let[,i]=gr.useState(!zh(e)),a=gr.useRef(void 0);if(!zh(e)){let{renderer:o,...r}=e;a.current=o,Ms(r)}return gr.useEffect(()=>{if(zh(e))e().then(({renderer:o,...r})=>{Ms(r),a.current=o,i(!0)})},[]),NS.jsx(hr.Provider,{value:{renderer:a.current,strict:n},children:t})}function zh(t){return typeof t===\"function\"}var hf=I(pn(),1);var br=I(Et(),1);var VS=I(Et(),1),Ji=VS.createContext({});var mf=I(Et(),1);function DS(t,e){if(Fi(t)){let{initial:n,animate:i}=t;return{initial:n===!1||Gn(n)?n:void 0,animate:Gn(i)?i:void 0}}return t.inherit!==!1?e:{}}function RS(t){let{initial:e,animate:n}=DS(t,mf.useContext(Ji));return mf.useMemo(()=>({initial:e,animate:n}),[zS(e),zS(n)])}function zS(t){return Array.isArray(t)?t.join(\" \"):t}var xr=I(Et(),1);var _S=I(Et(),1);var yr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _h(t,e,n){for(let i in e)if(!W(e[i])&&!Ss(i,n))t[i]=e[i]}function Aw({transformTemplate:t},e){return _S.useMemo(()=>{let n=yr();return qa(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ww(t,e){let n=t.style||{},i={};return _h(i,n,t),Object.assign(i,Aw(t,e)),i}function BS(t,e){let n={},i=ww(t,e);if(t.drag&&t.dragListener!==!1)n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout=\"none\",i.touchAction=t.drag===!0?\"none\":`pan-${t.drag===\"x\"?\"y\":\"x\"}`;if(t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap))n.tabIndex=0;return n.style=i,n}var US=I(Et(),1);var df=()=>({...yr(),attrs:{}});function HS(t,e,n,i){let a=US.useMemo(()=>{let o=df();return hs(o,e,Ts(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){let o={};_h(o,t.style,t),a.style={...o,...a.style}}return a}var Cw=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 As(t){return t.startsWith(\"while\")||t.startsWith(\"drag\")&&t!==\"draggable\"||t.startsWith(\"layout\")||t.startsWith(\"onTap\")||t.startsWith(\"onPan\")||t.startsWith(\"onLayout\")||Cw.has(t)}function Ow(t,e){return t.startsWith(\"on\")?!As(t):e?.(t)??!As(t)}function LS(t,e,n,i){let a={};for(let o in t){if(o===\"values\"&&typeof t.values===\"object\")continue;if(W(t[o]))continue;if(Ow(o,i)||n===!0&&As(o)||!e&&!As(o)||t.draggable&&o.startsWith(\"onDrag\"))a[o]=t[o]}return a}var GS=[\"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 vr(t){if(typeof t!==\"string\"||t.includes(\"-\"))return!1;else if(GS.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function jS(t,e,n,{latestValues:i},a,o=!1,r,l){let c=(r??vr(t)?HS:BS)(e,i,a,t),u=LS(e,typeof t===\"string\",o,l),f=t!==xr.Fragment?{...u,...c,ref:n}:{},{children:m}=e,d=xr.useMemo(()=>W(m)?m.get():m,[m]);return xr.createElement(t,{...f,children:d})}var Bh=I(Et(),1);function Nw({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,a){return{latestValues:Vw(n,i,a,t),renderState:e()}}function Vw(t,e,n,i){let a={},o=i(t,{});for(let m in o)a[m]=Dh(o[m]);let{initial:r,animate:l}=t,s=Fi(t),c=ys(t);if(e&&c&&!s&&t.inherit!==!1){if(r===void 0)r=e.initial;if(l===void 0)l=e.animate}let u=n?n.initial===!1:!1;u=u||r===!1;let f=u?l:r;if(f&&typeof f!==\"boolean\"&&!si(f)){let m=Array.isArray(f)?f:[f];for(let d=0;d<m.length;d++){let y=ja(t,m[d]);if(y){let{transitionEnd:x,transition:T,...h}=y;for(let p in h){let g=h[p];if(Array.isArray(g)){let v=u?g.length-1:0;g=g[v]}if(g!==null)a[p]=g}for(let p in x)a[p]=x[p]}}}return a}var pf=(t)=>(e,n)=>{let i=Bh.useContext(Ji),a=Bh.useContext(bc),o=()=>Nw(t,e,i,a);return n?o():vc(o)};var qS=pf({scrapeMotionValuesFromProps:Ya,createRenderState:yr});var YS=pf({scrapeMotionValuesFromProps:Es,createRenderState:df});var XS=Symbol.for(\"motionComponentSymbol\");var Ka=I(Et(),1);function KS(t,e,n){let i=Ka.useRef(n);Ka.useInsertionEffect(()=>{i.current=n});let a=Ka.useRef(null);return Ka.useCallback((o)=>{if(o)t.onMount?.(o);if(e)o?e.mount(o):e.unmount();let r=i.current;if(typeof r===\"function\")if(o){let l=r(o);if(typeof l===\"function\")a.current=l}else if(a.current)a.current(),a.current=null;else r(o);else if(r)r.current=o},[e])}var xe=I(Et(),1);var ZS=I(Et(),1),QS=ZS.createContext({});function kS(t){return t&&typeof t===\"object\"&&Object.prototype.hasOwnProperty.call(t,\"current\")}function $S(t,e,n,i,a,o){let{visualElement:r}=xe.useContext(Ji),l=xe.useContext(hr),s=xe.useContext(bc),c=xe.useContext(pr),u=c.reducedMotion,f=c.skipAnimations,m=xe.useRef(null),d=xe.useRef(!1);if(i=i||l.renderer,!m.current&&i){if(m.current=i(t,{visualState:e,parent:r,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:o}),d.current&&m.current)m.current.manuallyAnimateOnMount=!0}let y=m.current,x=xe.useContext(QS);if(y&&!y.projection&&a&&(y.type===\"html\"||y.type===\"svg\"))Dw(m.current,n,a,x);let T=xe.useRef(!1);xe.useInsertionEffect(()=>{if(y&&T.current)y.update(n,s)});let h=n[us],p=xe.useRef(Boolean(h)&&typeof window<\"u\"&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Up(()=>{if(!d.current||!y)return;y.animationState?.animateChanges(),y.enteringChildren=void 0},[]),Up(()=>{if(d.current=!0,!y)return;if(T.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),p.current&&y.animationState)y.animationState.animateChanges()}),xe.useEffect(()=>{if(!y)return;if(!p.current&&y.animationState)y.animationState.animateChanges();if(p.current)queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),p.current=!1;y.enteringChildren=void 0}),y}function Dw(t,e,n,i){let{layoutId:a,layout:o,drag:r,dragConstraints:l,layoutScroll:s,layoutRoot:c,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e[\"data-framer-portal-id\"]?void 0:FS(t.parent)),t.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:Boolean(r)||l&&kS(l),visualElement:t,animationType:typeof o===\"string\"?o:\"both\",initialPromotionConfig:i,crossfade:f,layoutScroll:s,layoutRoot:c,layoutAnchor:u})}function FS(t){if(!t)return;return t.options.allowProjection!==!1?t.projection:FS(t.parent)}function gf(t,{forwardMotionProps:e=!1,type:n}={},i,a){i&&Ms(i);let o=n?n===\"svg\":vr(t),r=o?YS:qS;function l(c,u){let f,m={...br.useContext(pr),...c,layoutId:zw(c)},{isStatic:d,isValidProp:y}=m,x=RS(c),T=r(c,d);if(!d&&typeof window<\"u\"){Rw(m,i);let h=_w(m);f=h.MeasureLayout,x.visualElement=$S(t,T,m,a,h.ProjectionNode,o)}return hf.jsxs(Ji.Provider,{value:x,children:[f&&x.visualElement?hf.jsx(f,{visualElement:x.visualElement,...m}):null,jS(t,c,KS(T,x.visualElement,u),T,d,e,o,y)]})}l.displayName=`motion.${typeof t===\"string\"?t:`create(${t.displayName??t.name??\"\"})`}`;let s=br.forwardRef(l);return s[XS]=t,s}function zw({layoutId:t}){let e=br.useContext(Hx).id;return e&&t!==void 0?e+\"-\"+t:t}function Rw(t,e){let n=br.useContext(hr).strict}function _w(t){let e=ff(),{drag:n,layout:i}=e;if(!n&&!i)return{};let a={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function JS(t,e){if(typeof Proxy>\"u\")return gf;let n=new Map,i=(o,r)=>gf(o,r,t,e);return new Proxy((o,r)=>i(o,r),{get:(o,r)=>{if(r===\"create\")return i;if(!n.has(r))n.set(r,gf(r,void 0,t,e));return n.get(r)}})}var Uh=JS();var PS=I(Et(),1);var IS=(t,e)=>e.isSVG??vr(t)?new uf(e):new lf(e,{allowProjection:t!==PS.Fragment});class Hh extends Ve{constructor(t){super(t);t.animationState||(t.animationState=Nh(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();if(si(t))this.unmountControls=t.subscribe(this.node)}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};if(t!==e)this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var Bw=0;class Lh extends Ve{constructor(){super(...arguments);this.id=Bw++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){let{initial:a,custom:o}=this.node.getProps();if(typeof a===\"string\"||typeof a===\"object\"&&a!==null&&!Array.isArray(a)){let r=Ke(this.node,a,o);if(r){let{transition:l,transitionEnd:s,...c}=r;for(let u in c)this.node.getValue(u)?.jump(c[u])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(\"exit\",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive(\"exit\",!t);if(e&&!t)i.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};if(e)e(this.id);if(t)this.unmount=t(this.id)}unmount(){}}var WS={animation:{Feature:Hh},exit:{Feature:Lh}};function yf(t){return{point:{x:t.pageX,y:t.pageY}}}function tT(t,e,n){let{props:i}=t;if(t.animationState&&i.whileHover)t.animationState.setActive(\"whileHover\",n===\"Start\");let a=\"onHover\"+n,o=i[a];if(o)gt.postRender(()=>o(e,yf(e)))}class Gh extends Ve{mount(){let{current:t}=this.node;if(!t)return;this.unmount=Th(t,(e,n)=>(tT(this.node,n,\"Start\"),(i)=>tT(this.node,i,\"End\")))}unmount(){}}class jh extends Ve{constructor(){super(...arguments);this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(\":focus-visible\")}catch(e){t=!0}if(!t||!this.node.animationState)return;this.node.animationState.setActive(\"whileFocus\",!0),this.isActive=!0}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive(\"whileFocus\",!1),this.isActive=!1}mount(){this.unmount=ai(cf(this.node.current,\"focus\",()=>this.onFocus()),cf(this.node.current,\"blur\",()=>this.onBlur()))}unmount(){}}function eT(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;if(t.animationState&&i.whileTap)t.animationState.setActive(\"whileTap\",n===\"Start\");let a=\"onTap\"+(n===\"End\"?\"\":n),o=i[a];if(o)gt.postRender(()=>o(e,yf(e)))}class qh extends Ve{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=Ah(t,(i,a)=>(eT(this.node,a,\"Start\"),(o,{success:r})=>eT(this.node,o,r?\"End\":\"Cancel\")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}var Xh=new WeakMap,Yh=new WeakMap,Uw=(t)=>{let e=Xh.get(t.target);e&&e(t)},Hw=(t)=>{t.forEach(Uw)};function Lw({root:t,...e}){let n=t||document;if(!Yh.has(n))Yh.set(n,{});let i=Yh.get(n),a=JSON.stringify(e);if(!i[a])i[a]=new IntersectionObserver(Hw,{root:t,...e});return i[a]}function nT(t,e,n){let i=Lw(e);return Xh.set(t,n),i.observe(t),()=>{Xh.delete(t),i.unobserve(t)}}var Gw={some:0,all:1};class Kh extends Ve{constructor(){super(...arguments);this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i=\"some\",once:a}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:typeof i===\"number\"?i:Gw[i]},r=(l)=>{let{isIntersecting:s}=l;if(this.isInView===s)return;if(this.isInView=s,a&&!s&&this.hasEnteredView)return;else if(s)this.hasEnteredView=!0;if(this.node.animationState)this.node.animationState.setActive(\"whileInView\",s);let{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),f=s?c:u;f&&f(l)};this.stopObserver=nT(this.node.current,o,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>\"u\")return;let{props:t,prevProps:e}=this.node;if([\"amount\",\"margin\",\"root\"].some(jw(t,e)))this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function jw({viewport:t={}},{viewport:e={}}={}){return(n)=>t[n]!==e[n]}var iT={inView:{Feature:Kh},tap:{Feature:qh},focus:{Feature:jh},hover:{Feature:Gh}};var Zh={renderer:IS,...WS,...iT};var aT=I(Et(),1);function Qh(t,e,n){aT.useInsertionEffect(()=>t.on(e,n),[t,e,n])}var Sr=I(Et(),1);function Za(t){let e=vc(()=>me(t)),{isStatic:n}=Sr.useContext(pr);if(n){let[,i]=Sr.useState(t);Sr.useEffect(()=>e.on(\"change\",i),[])}return e}function ws(t){return typeof t===\"object\"&&!Array.isArray(t)}function vf(t,e,n,i){if(t==null)return[];if(typeof t===\"string\"&&ws(e))return ds(t,n,i);else if(t instanceof NodeList)return Array.from(t);else if(Array.isArray(t))return t.filter((a)=>a!=null);else return[t]}function oT(t,e,n){return t*(e+1)+n*e}function kh(t,e,n,i){if(typeof e===\"number\")return e;else if(e.startsWith(\"-\")||e.startsWith(\"+\"))return Math.max(0,t+parseFloat(e));else if(e===\"<\")return n;else if(e.startsWith(\"<\"))return Math.max(0,n+parseFloat(e.slice(1)));else return i.get(e)??t}function qw(t,e,n){for(let i=0;i<t.length;i++){let a=t[i];if(a.at>e&&a.at<n)ii(t,a),i--}}function rT(t,e,n,i,a,o){qw(t,a,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:Oe(a,o,i[r]),easing:Ql(n,r)})}function lT(t,e,n=0){let i=e+1+e*n;for(let a=0;a<t.length;a++)t[a]=t[a]/i}function sT(t,e){if(t.at===e.at){if(t.value===null)return 1;if(e.value===null)return-1;return 0}else return t.at-e.at}var Yw=\"easeInOut\",$h=20;function fT(t,{defaultTransition:e={},...n}={},i,a){let o=e.duration||0.3,r=new Map,l=new Map,s={},c=new Map,u=0,f=0,m=0;for(let d=0;d<t.length;d++){let y=t[d];if(typeof y===\"string\"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,kh(f,y.at,u,c));continue}let[x,T,h={}]=y;if(h.at!==void 0)f=kh(f,h.at,u,c);let p=0,g=(v,E,M,S=0,b=0)=>{let A=Xw(v),{delay:N=0,times:R=es(A),type:tt=e.type||\"keyframes\",repeat:rt,repeatType:re,repeatDelay:et=0,...pt}=E,{ease:z=e.ease||\"easeOut\",duration:V}=E,U=typeof N===\"function\"?N(S,b):N,P=A.length,Z=Ga(tt)?tt:a?.[tt||\"keyframes\"];if(P<=2&&Z){let de=100;if(P===2&&Qw(A)){let Ze=A[1]-A[0];de=Math.abs(Ze)}let Bt={...e,...pt};if(V!==void 0)Bt.duration=Xt(V);let on=Il(Bt,de,Z);z=on.ease,V=on.duration}V??(V=o);let ut=f+U;if(R.length===1&&R[0]===0)R[1]=1;let $t=R.length-A.length;if($t>0&&ts(R,$t),A.length===1&&A.unshift(null),rt)an(rt<$h,`Sequence segments can't repeat ${rt} times \u2014 ignoring repeat option. Use a value below ${$h} or apply repeat at the sequence level instead.`);if(rt&&rt<$h){let de=V>0?et/V:0;V=oT(V,rt,et);let Bt=[...A],on=[...R];z=Array.isArray(z)?[...z]:[z];let Ze=[...z],Or=re===\"reverse\"||re===\"mirror\",Fa=Bt,Nr=Ze;if(Or){if(Fa=[...Bt].reverse(),re===\"reverse\")Nr=[...Ze].reverse().map((Qe)=>typeof Qe===\"function\"?za(Qe):Qe)}for(let Qe=0;Qe<rt;Qe++){let Vr=Or&&Qe%2===0,Dr=Vr?Fa:Bt,Vs=Vr?Nr:Ze,Ds=(Qe+1)*(1+de);if(de>0)A.push(A[A.length-1]),R.push(Ds),z.push(\"linear\");A.push(...Dr);for(let jn=0;jn<Dr.length;jn++)R.push(on[jn]+Ds),z.push(jn===0?\"linear\":Ql(Vs,jn-1))}lT(R,rt,de)}let le=ut+V;rT(M,A,z,R,ut,le),p=Math.max(U+V,p),m=Math.max(le,m)};if(W(x)){let v=uT(x,l);g(T,h,cT(\"default\",v))}else{let v=vf(x,T,i,s),E=v.length;for(let M=0;M<E;M++){T=T,h=h;let S=v[M],b=uT(S,l);for(let A in T)g(T[A],Kw(h,A),cT(A,b),M,E)}}u=f,f+=p}return l.forEach((d,y)=>{for(let x in d){let T=d[x];T.sort(sT);let h=[],p=[],g=[];for(let S=0;S<T.length;S++){let{at:b,value:A,easing:N}=T[S];h.push(A),p.push(Va(0,m,b)),g.push(N||\"easeOut\")}if(p[0]!==0)p.unshift(0),h.unshift(h[0]),g.unshift(Yw);if(p[p.length-1]!==1)p.push(1),h.push(null);if(!r.has(y))r.set(y,{keyframes:{},transition:{}});let v=r.get(y);v.keyframes[x]=h;let{type:E,...M}=e;v.transition[x]={...M,duration:m,ease:g,times:p,...n}}}),r}function uT(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function cT(t,e){if(!e[t])e[t]=[];return e[t]}function Xw(t){return Array.isArray(t)?t:[t]}function Kw(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var Zw=(t)=>typeof t===\"number\",Qw=(t)=>t.every(Zw);function kw(t,e){return W(t)||typeof t===\"number\"||typeof t===\"string\"&&!ws(e)}function xf(t,e,n,i){let a=[];if(kw(t,e))a.push(Vh(t,ws(e)?e.default||e:e,n?n.default||n:n));else{if(t==null)return a;let o=vf(t,e,i),r=o.length;Yt(Boolean(r),\"No valid elements provided.\",\"no-valid-elements\");for(let l=0;l<r;l++){let s=o[l],c={...n};if(\"delay\"in c&&typeof c.delay===\"function\")c.delay=c.delay(l,r);if(s instanceof Element)a.push(...bh(s,e,c,gs.get(s)));else a.push(...fs(hh(s)??Sh,s,e,c))}}return a}function mT(t,e,n){let i=[],a=t.map((r)=>{if(Array.isArray(r)&&typeof r[0]===\"function\"){let l=r[0],s=me(0);if(s.on(\"change\",l),r.length===1)return[s,[0,1]];else if(r.length===2)return[s,[0,1],r[1]];else return[s,r[1],r[2]]}return r});return fT(a,e,n,{spring:ri}).forEach(({keyframes:r,transition:l},s)=>{i.push(...xf(s,r,l))}),i}function $w(t){return Array.isArray(t)&&t.some(Array.isArray)}function dT(t={}){let{scope:e,reduceMotion:n,skipAnimations:i}=t;function a(o,r,l){let s=[],c,u={};if(n!==void 0)u.reduceMotion=n;if(i!==void 0)u.skipAnimations=i;if($w(o)){let{onComplete:m,...d}=r||{};if(typeof m===\"function\")c=m;s=mT(o,{...u,...d},e)}else{let{onComplete:m,...d}=l||{};if(typeof m===\"function\")c=m;s=xf(o,r,{...u,...d},e)}let f=new Yc(s);if(c)f.finished.then(c);if(e)e.animations.push(f),f.finished.then(()=>{ii(e.animations,f)});return f}return a}var De=Object.assign(dT(),{addEffect:ph,removeEffect:$c});var Fh=Uh;var J=I(Et(),1),ig=I(Qf(),1);var it=I(Et(),1);var Pi=(t)=>t<0?0:t>1?1:t;function bf(t,e){if(t<=0)return 0;let n=2*Math.PI/(1.2*e),i=1-(1+n*t)*Math.exp(-n*t);return i>0.9995?1:i}function pT(t){return 9.23/(2*Math.PI/(1.2*t))}var Qa=(t)=>bf(t,0.3),hT=(t)=>bf(t,0.45),Tr=(t)=>{let e=Pi(t);return e*e*(3-2*e)},Jh=(t)=>1-Math.pow(1-Pi(t),3),Ph=(t)=>{let e=Pi(t);return e<0.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2};function Jw(t,e,n,i){let a=(r)=>3*t*r*(1-r)**2+3*n*r*r*(1-r)+r**3,o=(r)=>3*e*r*(1-r)**2+3*i*r*r*(1-r)+r**3;return(r)=>{let l=Pi(r),s=0,c=1;for(let u=0;u<40;u++){let f=(s+c)/2;if(a(f)<l)s=f;else c=f}return o((s+c)/2)}}var aH=Jw(0.65,0,0.25,1);var fH=pT(st.springs.react),gT=(t)=>{let e=t.trim().split(/\\s+/).filter(Boolean).length;return Math.min(st.read.max,Math.max(st.read.min,st.read.base+st.read.perWord*e))};function Ih(t,e){let n=t.trim();if(n.length<=e)return n;let i=n.slice(0,e-1),a=i.lastIndexOf(\" \");return`${(a>e*0.6?i.slice(0,a):i).replace(/[\\s,.;:\u00B7-]+$/,\"\")}\u2026`}function yT(t,e=48){let n=[...new Set(t.flatMap((u)=>u.paths))],i=new Map,a=[],o=n.map((u)=>u.split(\" \u2192 \")).filter((u)=>u.length===2);if(n.length>1&&o.length===n.length&&new Set(o.map((u)=>u[1])).size===1)a.push(`${[...new Set(o.map((u)=>u[0]))].join(\", \")} \u2192 ${o[0][1]}`),n.length=0;for(let u of n){let f=u.split(\" \u2192 \");if(f.length===2){let m=i.get(f[0]);if(m)m.push(f[1]);else{let d=[f[1]];i.set(f[0],d),a.push(`\\x00${f[0]}`)}}else a.push(u)}for(let u=0;u<a.length;u++)if(a[u].startsWith(\"\\x00\")){let f=a[u].slice(1);a[u]=`${f} \u2192 ${i.get(f).join(\", \")}`}let r=new Set(a.flatMap((u)=>u.split(/ \u2192 | \u00B7 |, /))),l=[...new Set(t.flatMap((u)=>u.reveals))].filter((u)=>!r.has(u)),s=t.flatMap((u)=>u.counters),c=[a.length?a.join(\" + \"):\"\",l.length?l.join(\", \"):\"\",...s].filter(Boolean);return Ih(c.join(\" \u00B7 \")||\"Start\",e)}var dt=(t)=>Math.round(t*100)/100;function Wh(t,e){let n=0;for(let i=1;i<t.length;i++){let a=t[i-1],o=t[i],r=Math.hypot(o.x-a.x,o.y-a.y);if(n+r>=e||i===t.length-1){let l=r?Pi((e-n)/r):0;return{x:a.x+(o.x-a.x)*l,y:a.y+(o.y-a.y)*l}}n+=r}return t[t.length-1]??{x:0,y:0}}function vT(t,e,n){if(n<=e)return\"\";let i=[Wh(t,e)],a=0;for(let o=1;o<t.length;o++){let r=Math.hypot(t[o].x-t[o-1].x,t[o].y-t[o-1].y);if(a+=r,a>e&&a<n)i.push(t[o])}return i.push(Wh(t,n)),i.map((o,r)=>`${r?\"L\":\"M\"}${dt(o.x)} ${dt(o.y)}`).join(\"\")}function Pw(t=0){return{t,el:{},grow:{},draw:{},pulses:[],glows:[],flash:{},counters:{},captions:[],settled:!0}}function Iw(t,e,n=\"\",i=\"\"){let a=t.toLocaleString(\"en-US\",{minimumFractionDigits:e,maximumFractionDigits:e});return`${n}${a}${i}`}function tg(t,e,n=!1){let{start:i,start:a}=t;for(let o of t.events){let r=n?e>=o.t?1:0:Qa(e-o.t);i+=(o.to-a)*r,a=o.to}return i}function Sf(t,e,n,i={}){if(!e)return Pw(n);let a=i.reduced===!0||i.stepped===!0,o=n;if(i.stepped){let f=TT(e,n);if(f>=0&&f<e.steps.length)o=Math.max(n,Math.min(e.steps[f].t1,e.duration))}let r=(f)=>f>=0?1:0,l=(f)=>a?r(f):Qa(f),s={t:n,el:{},grow:{},draw:{},pulses:[],glows:[],flash:{},counters:{},captions:[],settled:n>=e.lastEvent};for(let[f,m]of Object.entries(e.appear)){let d=n-m,y=a?r(d):Qa(d-st.reveal.opacityDelay),x=a?0:st.reveal.rise*(1-Qa(d)),T=dt(y),h=dt(x);if(T<1||h>0)s.el[f]={o:T,dy:h}}let c=new Map(e.pulses.map((f)=>[f.id,f]));for(let[f,m]of Object.entries(e.draw)){let d;if(a)d=r(o-m.t1);else if(m.mode===\"flight\"&&m.pulse){let y=c.get(m.pulse),x=Ph((n-y.tf0)/(y.tf1-y.tf0)),T=n<y.tf0?0:x*y.length;d=Pi((T-(m.s0??0))/Math.max(0.000001,(m.s1??0)-(m.s0??0)))}else d=hT(n-m.t0);if(dt(d)<1)s.draw[f]=dt(d)}for(let f of t.activations){let m=/-(\\d+)-(\\d+)$/.exec(f.id);if(!m)continue;let d=Number(m[1]),y=Number(m[2]),x=f.y,T=!0;for(let h=d;h<=y;h++){let p=t.edges[h];if(!p)continue;let g=s.draw[p.id];if(g===void 0||g>=0.999)x=Math.max(x,Math.max(...p.points.map((v)=>v.y))+8);else if(T=!1,g>0)x=Math.max(x,p.points[0].y+8*g)}if(!T)s.grow[f.id]=dt(Math.max(0,Math.min(f.h,x-f.y)))}if(!a){for(let f of e.pulses){let m=f.tf1+Math.max(st.pulse.ring,st.pulse.cooling);if(n<f.t0||n>m)continue;let d=f.points[0],y=f.points[f.points.length-1],x={id:f.id,x:d.x,y:d.y,r:0,o:0,trail:[]};if(n<f.tf0){let T=Jh((n-f.t0)/st.pulse.gather);x.r=dt(st.pulse.dot*T),x.o=dt(Math.pow(T,1.5)),x.halo={r:dt(st.pulse.halo-(st.pulse.halo-st.pulse.dot)*T),o:dt(0.5*Math.sin(Math.PI*T))}}else if(n<f.tf1){let T=Ph((n-f.tf0)/(f.tf1-f.tf0))*f.length,h=Wh(f.points,T);x.x=dt(h.x),x.y=dt(h.y),x.r=st.pulse.dot,x.o=1;let p=Math.min(72,T);[0.55,0.3,0.12].forEach((v,E)=>{let M=T-p*(E+1)/3,S=T-p*E/3,b=vT(f.points,M,S);if(b)x.trail.push({d:b,o:v,k:E,s0:dt(M),s1:dt(S)})})}else{x.x=y.x,x.y=y.y;let T=(n-f.tf1)/st.pulse.ring;if(T<1){let p=Tr(T/0.24);x.ring={x:y.x,y:y.y,r:dt(2+2*p+9.1*(1-(1-T)**2)),w:dt(4-2.5*p),o:dt((1-0.734*p)*(1-T)**2.52)}}let h=Math.pow(1-Pi((n-f.tf1)/st.pulse.cooling),1.7);if(h>0.01){let p=Math.min(72,f.length);[0.55,0.3,0.12].forEach((g,v)=>{let E=f.length-p*(v+1)/3,M=f.length-p*v/3,S=vT(f.points,E,M);if(S)x.trail.push({d:S,o:dt(g*h),k:v,s0:dt(E),s1:dt(M)})})}}if(x.o>0||x.ring||x.trail.length)s.pulses.push(x)}for(let f of e.glows){let m=n-f.t;if(m<0)continue;let d=Qa(m)*Math.max(0,1-m/st.flash.decay);if(d>0.005)s.flash[f.node]=Math.max(s.flash[f.node]??0,dt(d));if(m>f.dur)continue;let y=t.nodes.find((g)=>g.id===f.node)??t.groups.find((g)=>g.id===f.node);if(!y)continue;let x=m/f.dur,T=Math.min(Math.max(y.w,y.h)*1.15,Math.min(y.w,y.h)*2.6),h=Tr(x/0.06)*(1-Tr((x-0.55)/0.45));if(h<0.005)continue;let p={id:`${f.node}@${f.t}`,node:f.node,cx:dt(f.cx),cy:dt(f.cy),r:dt(T*(0.12+0.6*Jh(x))),a:dt(st.glow.alpha*h)};s.glows.push(p)}}for(let[f,m]of Object.entries(e.counters))s.counters[f]=Iw(tg(m,n,a),m.decimals,m.prefix,m.suffix);let u=e.captions.findIndex((f)=>n>=f.t0&&n<f.t1);if(u>=0){let f=e.captions[u],m=f.text.split(/\\s+/),d=Math.min(2.8,Math.max(0.12,Math.min(f.t1-f.t0,1.2)-0.08)),y=Math.min(st.springs.word,d/2),x=m.length>1?(d-1.5*y)/(m.length-1):0,T=f.handoff?1:a?1:1-Tr((n-(f.t1-0.3))/0.3),h=u>0?e.captions[u-1]:void 0;if(h&&h.handoff&&h.t1===f.t0){let p=1-(1-st.dimSuperseded)*(a?1:Qa(n-f.t0)),g=a?0:1-Tr((n-f.t0-0.9)/0.4),v=dt(p*g);if(v>0.01)s.captions.push({i:u-1,text:h.text,o:v,words:h.text.split(/\\s+/).map(()=>1),current:!1})}s.captions.push({i:u,text:f.text,o:dt(T),words:m.map((p,g)=>dt(a?1:bf(n-f.t0-g*x,y))),current:!0})}return s}var Ww=12;function xT(t,e=Ww){let n=[],i=[];if(t.steps.forEach((r,l)=>{i.push(l);let s=t.steps[l+1];if(!(s&&s.t0-r.t1<=0.05&&!s.stop&&!s.caption))n.push(i),i=[]}),i.length)n.push(i);let a=(r)=>r.some((l)=>t.steps[l].stop||t.steps[l].caption);while(n.length>e){let r=-1,l=1/0;for(let s=0;s+1<n.length;s++){if(a(n[s+1])&&a(n[s]))continue;let c=t.steps[n[s+1][0]].t0-t.steps[n[s][n[s].length-1]].t1;if(c<l)l=c,r=s}if(r<0)break;n.splice(r,2,[...n[r],...n[r+1]])}let o=n.map((r)=>{let l=r[r.length-1],s=t.steps[l],c=t.steps[l+1],u=s.t1+0.6,f=c?Math.max(s.t1,Math.min(u,c.t0-0.02)):Math.min(u,t.duration),m=r.map((x)=>t.steps[x]).find((x)=>x.stop),d=r.map((x)=>t.steps[x]).find((x)=>x.caption),y=m?.stop??(d?.caption?Ih(d.caption,40):yT(r.map((x)=>t.steps[x].parts??{paths:[],reveals:[],counters:[]})));return{id:s.id,label:y,t:Math.round(f*1000)/1000,steps:[r[0],l]}});return o.push({id:\"end\",label:\"Final frame\",t:t.duration,steps:[t.steps.length,t.steps.length]}),o}function bT(t,e,n){let i=e.captions.find((o)=>o.current);if(!i)return;let a=t.captions.find((o)=>o.text===i.text&&e.t>=o.t0&&e.t<o.t1);return a&&a.step>=n.steps[0]&&a.step<=n.steps[1]?i.text:void 0}var ST=(t)=>t>1000?660:t>640?440:340,tC=1.5;function Er(t){let e=[];return t.steps.forEach((n,i)=>{let a=t.steps[i+1];if(a&&a.t0<=n.t0+0.000000001)return;e.push({step:i,t:eC(t,i),hold:n.caption?gT(n.caption):tC})}),e.push({step:t.steps.length,t:t.duration,hold:0}),e}function eC(t,e){let n=t.steps[e],i=t.steps[e+1],a=Math.min(n.t1,t.duration),o=i&&i.t0<=a?i.t0-0.0001:a;return Math.max(n.t0,Math.round(o*1e4)/1e4)}function TT(t,e){if(e>=t.duration-0.000000001)return t.steps.length;let n=-1;for(let i=0;i<t.steps.length;i++)if(t.steps[i].t0<=e+0.000000001)n=i;return n}function eg(t,e){let n=TT(t,e);if(n<0)return-1;return Er(t).findIndex((i)=>i.step>=n)}function Mr(t,e){let n=eg(t,e);if(n<0)return 0;return Er(t)[n].t}var ET=(t)=>Math.round(t*100)/100;var w=I(pn(),1),Ar=(t,e)=>{let n=(t?.o??1)*(e??1);return n<1?{opacity:+n.toFixed(3)}:void 0},MT=(t,e)=>t&&t>0.005?{fill:`color-mix(in srgb, var(--si-flash) ${Math.round(t*100)}%, var(--si-${e}))`}:void 0,K=(t)=>ET(t);function nC({h:t}){let e=Fo.arrowSize,n=Math.cos(t.angle),i=Math.sin(t.angle),a=(o,r)=>`${K(t.x-n*o-i*r)},${K(t.y-i*o+n*r)}`;if(t.form===\"open\")return w.jsx(\"polyline\",{className:\"si-arrow-open\",points:`${a(e+1,-e*0.62)} ${K(t.x)},${K(t.y)} ${a(e+1,e*0.62)}`});return w.jsx(\"polygon\",{className:\"si-arrow\",points:`${K(t.x)},${K(t.y)} ${a(e+1,-e*0.55)} ${a(e+1,e*0.55)}`})}function iC({n:t}){let{w:e,h:n}=t,i=Fo.panelInset,a=Fo.panelRadius;switch(t.shape){case\"dot\":return w.jsx(\"circle\",{className:\"si-dotfill\",cx:e/2,cy:n/2,r:e/2});case\"bullseye\":return w.jsxs(w.Fragment,{children:[w.jsx(\"circle\",{className:\"si-ring\",cx:e/2,cy:n/2,r:e/2-0.7}),w.jsx(\"circle\",{className:\"si-dotfill\",cx:e/2,cy:n/2,r:e/2-5})]});case\"bar\":return w.jsx(\"rect\",{className:\"si-dotfill\",x:0,y:0,width:e,height:n});case\"choice\":return w.jsx(\"polygon\",{className:\"si-face\",points:`${e/2},0 ${e},${n/2} ${e/2},${n} 0,${n/2}`});case\"pill\":return w.jsx(\"rect\",{className:\"si-soft\",x:0,y:0,width:e,height:n,rx:n/2});case\"diamond\":{let o=(r)=>`${e/2},${r} ${e-r*1.7},${n/2} ${e/2},${n-r} ${r*1.7},${n/2}`;return w.jsxs(w.Fragment,{children:[w.jsx(\"polygon\",{className:\"si-face\",points:o(0),strokeLinejoin:\"round\"}),w.jsx(\"polygon\",{className:\"si-inset\",points:o(i+1),strokeLinejoin:\"round\"})]})}case\"slant\":return w.jsxs(w.Fragment,{children:[w.jsx(\"polygon\",{className:\"si-face\",points:`10,0 ${e},0 ${e-10},${n} 0,${n}`}),w.jsx(\"polygon\",{className:\"si-inset\",points:`${10+i+1},${i} ${e-i-1},${i} ${e-10-i-1},${n-i} ${i+1},${n-i}`})]});case\"cylinder\":return w.jsxs(w.Fragment,{children:[w.jsx(\"path\",{className:\"si-face\",d:`M0 6A${e/2} 6 0 0 1 ${e} 6V${n-6}A${e/2} 6 0 0 1 0 ${n-6}Z`}),w.jsx(\"path\",{className:\"si-inset\",d:`M0 6A${e/2} 6 0 0 0 ${e} 6`}),w.jsx(\"path\",{className:\"si-inset\",d:`M${i} 11A${e/2-i} 6 0 0 0 ${e-i} 11`}),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:16,width:2,height:n-18-8})]});case\"note\":return w.jsxs(w.Fragment,{children:[w.jsx(\"path\",{className:\"si-note\",d:`M0 0H${e-10}L${e} 10V${n}H0Z`}),w.jsx(\"path\",{className:\"si-note-fold\",d:`M${e-10} 0V10H${e}`})]});case\"external\":return w.jsx(\"rect\",{className:\"si-face si-dash\",x:0,y:0,width:e,height:n,rx:a});case\"queue\":return w.jsxs(w.Fragment,{children:[w.jsx(\"rect\",{className:\"si-face\",x:0,y:0,width:e,height:n,rx:a}),w.jsx(\"rect\",{className:\"si-inset\",x:i,y:i,width:e-2*i,height:n-2*i}),[0,1,2].map((o)=>w.jsx(\"line\",{className:\"si-glyph\",x1:e-22+o*5,y1:n/2-7,x2:e-22+o*5,y2:n/2+7},o)),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:i+1,width:2,height:n-2*i-2})]});default:return w.jsxs(w.Fragment,{children:[w.jsx(\"rect\",{className:\"si-face\",x:0,y:0,width:e,height:n,rx:a}),w.jsx(\"rect\",{className:\"si-inset\",x:i,y:i,width:e-2*i,height:n-2*i}),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:i+1,width:2,height:n-2*i-2})]})}}function aC({n:t,copy:e,fr:n,smil:i}){let a=t.text.cx,o=t.shape===\"actor\"&&t.tag,r=t.tag.length*9.5*0.68,l=n?.el[t.id],s=n?.flash[t.id],c=n?.glows.filter((f)=>f.node===t.id)??[],u=t.counter?n?.counters[t.counter.id]??`${t.counter.prefix??\"\"}${t.counter.value}${t.counter.suffix??\"\"}`:void 0;return w.jsxs(\"g\",{className:`si-node si-a-${t.accent}`,\"data-si\":`node:${t.id}`,\"data-copy\":e||void 0,\"data-box\":`${t.x},${t.y},${t.w},${t.h}`,transform:`translate(${t.x} ${K(t.y+(l?.dy??0))})`,style:Ar(l),children:[i?.(`node:${t.id}`),w.jsx(iC,{n:t}),i?.(`glow:${t.id}`),c.map((f,m)=>{let d=`si-glow-${e}-${t.id}-${m}`.replace(/[^\\w-]/g,\"_\");return w.jsxs(\"g\",{className:\"si-glow\",style:{mixBlendMode:\"var(--si-glowBlend)\"},children:[w.jsx(\"defs\",{children:w.jsxs(\"radialGradient\",{id:d,gradientUnits:\"userSpaceOnUse\",cx:K(f.cx-t.x),cy:K(f.cy-t.y),r:f.r,children:[w.jsx(\"stop\",{offset:\"0\",style:{stopColor:\"var(--si-glowCrest)\",stopOpacity:`calc(var(--si-glowGain) * ${f.a})`}}),w.jsx(\"stop\",{offset:\"0.45\",style:{stopColor:\"var(--si-glow)\",stopOpacity:`calc(var(--si-glowGain) * ${+(f.a*0.45).toFixed(3)})`}}),w.jsx(\"stop\",{offset:\"1\",style:{stopColor:\"var(--si-glow)\",stopOpacity:0}})]})}),w.jsx(\"rect\",{x:0,y:0,width:t.w,height:t.h,fill:`url(#${d})`}),w.jsx(\"rect\",{className:\"si-glow-rim\",x:0.75,y:0.75,width:t.w-1.5,height:t.h-1.5,fill:\"none\",stroke:`url(#${d})`,strokeWidth:1.5,style:{opacity:0.4}})]},d)}),o?w.jsxs(\"g\",{transform:`translate(${K(a-r/2-13)} ${K(t.text.tagY-8)})`,children:[w.jsx(\"circle\",{className:\"si-glyph\",cx:4.5,cy:2.5,r:2.3}),w.jsx(\"path\",{className:\"si-glyph\",d:\"M0.5 9.5C0.5 6.8 2.3 5.6 4.5 5.6S8.5 6.8 8.5 9.5\"})]}):null,t.tag?w.jsx(\"text\",{className:\"si-tag\",x:K(o?a+6:a),y:K(t.text.tagY),textAnchor:\"middle\",children:t.tag}):null,t.label.map((f,m)=>w.jsxs(\"text\",{className:t.shape===\"pill\"?\"si-label si-pill-label\":\"si-label\",x:K(a),y:K(t.text.labelY[m]),textAnchor:\"middle\",style:MT(s,\"ink\"),children:[f,i?.(`flash:${t.id}`)]},`l${m}`)),t.detail.map((f,m)=>w.jsx(\"text\",{className:\"si-detail\",x:K(a),y:K(t.text.detailY[m]),textAnchor:\"middle\",children:f},`d${m}`)),t.counter&&t.text.counterY!==void 0?w.jsxs(\"text\",{className:\"si-counter\",x:K(a),y:K(t.text.counterY),textAnchor:\"middle\",children:[t.counter.label?w.jsx(\"tspan\",{className:\"si-counter-label\",children:`${t.counter.label.toUpperCase()} `}):null,w.jsx(\"tspan\",{className:\"si-counter-value\",\"data-counter\":t.counter.id,style:MT(s,\"ink\"),children:u}),i?.(`ctext:${t.counter.id}`)]}):null,t.counter?i?.(`cdup:${t.counter.id}`):null]})}function oC({g:t,fr:e,smil:n}){let i=t.composite?t.label:t.label.toUpperCase(),a=e?.el[t.id];return w.jsxs(\"g\",{className:\"si-grp\",\"data-si\":`group:${t.id}`,style:Ar(a),transform:a?.dy?`translate(0 ${K(a.dy)})`:void 0,children:[n?.(`group:${t.id}`),w.jsx(\"rect\",{className:t.composite?\"si-group-composite\":\"si-group\",x:t.x,y:t.y,width:t.w,height:t.h,rx:Fo.groupRadius}),t.composite?w.jsx(\"line\",{className:\"si-group-rule\",x1:t.x,x2:t.x+t.w,y1:t.y+24,y2:t.y+24}):null,w.jsxs(\"text\",{className:t.composite?\"si-group-title\":\"si-group-label\",x:K(t.x+12),y:K(t.y+(t.composite?16:15)),children:[i,t.kind&&!t.composite?w.jsx(\"tspan\",{className:\"si-group-label\",dx:8,opacity:0.7,children:`\u00B7 ${t.kind.toUpperCase()}`}):null]})]})}function rC({e:t,fr:e,smil:n}){let i=`si-wire${t.style===\"dashed\"?\" si-dashed\":t.style===\"thick\"?\" si-thick\":\"\"}`,a=e?.draw[t.id],o=a!==void 0,r=(t.length??0)+24,l=o?a<=0?{opacity:0}:t.style===\"dashed\"?{opacity:+Math.min(1,a*1.4).toFixed(3)}:{strokeDasharray:`${K(r)} ${K(r)}`,strokeDashoffset:K(r*(1-a))}:void 0;return w.jsxs(\"g\",{className:\"si-edge\",\"data-si\":`edge:${t.id}`,children:[w.jsx(\"path\",{className:i,d:t.d,style:l,children:n?.(`wire:${t.id}`)}),t.heads.map((s,c)=>w.jsxs(\"g\",{style:o?{opacity:a>=0.98?1:0}:void 0,children:[n?.(`head:${t.id}`),w.jsx(nC,{h:s})]},c)),t.seq!==void 0?w.jsxs(\"g\",{style:o?{opacity:a>0?1:0}:void 0,children:[n?.(`seq:${t.id}`),w.jsx(\"circle\",{className:\"si-seq\",cx:t.points[0].x,cy:t.points[0].y,r:7}),w.jsx(\"text\",{className:\"si-seq-text\",x:t.points[0].x,y:t.points[0].y+3,textAnchor:\"middle\",children:t.seq})]}):null]})}function lC({e:t,fr:e,smil:n}){let i=t.label,a=t.seq!==void 0?i.text.replace(/^\\d+\\.\\s*/,\"\"):i.text,o=e?.draw[t.id],r=o===void 0?1:Math.max(0,Math.min(1,(o-0.35)/0.4));return w.jsxs(\"g\",{className:\"si-lbl\",\"data-si\":`label:${i.id}`,\"data-box\":`${i.x},${i.y},${i.w},${i.h}`,style:r<1?{opacity:+r.toFixed(3)}:void 0,children:[n?.(`elabel:${t.id}`),w.jsx(\"rect\",{className:`si-pill si-on-${i.surface??\"bg\"}`,x:i.x,y:i.y,width:i.w,height:i.h}),w.jsx(\"text\",{className:\"si-edge-label\",x:K(i.x+i.w/2),y:K(i.y+i.h/2+3.8),textAnchor:\"middle\",children:a})]})}function sC({fr:t,frame:e,smil:n}){return w.jsxs(\"g\",{className:\"si-frm\",\"data-si\":`frame:${t.id}`,style:Ar(e?.el[t.id]),children:[n?.(`frame:${t.id}`),w.jsx(\"rect\",{className:\"si-frame\",x:t.x,y:t.y,width:t.w,height:t.h,rx:2}),t.sections.map((i,a)=>w.jsx(\"line\",{className:\"si-frame-rule\",x1:t.x,x2:t.x+t.w,y1:i.y,y2:i.y},a))]})}function uC({fr:t,frame:e,smil:n}){let a=t.kind.toUpperCase(),o=(r,l,s,c)=>{let u=r.length*11*0.6+8;return w.jsxs(\"g\",{children:[w.jsx(\"rect\",{className:\"si-bg\",x:K(l-4),y:K(s-11),width:K(u),height:15,rx:2}),w.jsx(\"text\",{className:\"si-frame-label\",x:K(l),y:K(s),children:r})]},c)};return w.jsxs(\"g\",{className:\"si-frm-labels\",\"data-si\":`frame-label:${t.id}`,style:Ar(e?.el[t.id]),children:[n?.(`frame:${t.id}`),w.jsx(\"path\",{className:\"si-frame-tag\",d:`M${t.x} ${t.y}H${K(t.x+t.tagW)}V${t.y+18-5}L${K(t.x+t.tagW-5)} ${t.y+18}H${t.x}Z`}),w.jsx(\"text\",{className:\"si-frame-kind\",x:K(t.x+8),y:t.y+12.5,children:a}),t.label?o(`[${t.label}]`,t.x+t.tagW+8,t.y+13):null,t.sections.map((r,l)=>r.label?o(`[${r.label}]`,t.x+8,r.y+15,l):null)]})}function cC({fr:t}){if(!t.pulses.length)return null;return w.jsx(\"g\",{className:\"si-pulses\",children:t.pulses.map((e)=>w.jsxs(\"g\",{\"data-si\":`pulse:${e.id}`,children:[e.trail.map((n,i)=>w.jsx(\"path\",{className:\"si-trail\",d:n.d,style:{opacity:n.o}},i)),e.halo&&e.halo.o>0.005?w.jsx(\"circle\",{className:\"si-halo\",cx:e.x,cy:e.y,r:e.halo.r,style:{opacity:e.halo.o}}):null,e.o>0.005&&!e.ring?w.jsx(\"circle\",{className:\"si-pulse\",cx:e.x,cy:e.y,r:e.r,style:{opacity:e.o}}):null,e.ring?w.jsx(\"circle\",{className:\"si-ring-pulse\",cx:e.ring.x,cy:e.ring.y,r:e.ring.r,style:{opacity:e.ring.o,strokeWidth:e.ring.w}}):null]},e.id))})}function Cs({scene:t,style:e,copy:n=\"\",className:i,frame:a,smil:o}){let r=t.viewBox,l=a&&(Object.keys(a.el).length||Object.keys(a.draw).length||Object.keys(a.grow).length||a.pulses.length||a.glows.length||Object.keys(a.flash).length||Object.keys(a.counters).length)?a:void 0,s=(u)=>{let f=l?.draw[u.edge];if(f===void 0)return;let m=u.end===\"out\"?f>0?1:0:f>=0.99?1:0;return m<1?{opacity:m}:void 0},c=(u)=>l?.el[u];return w.jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",className:`storyink${i?` ${i}`:\"\"}`,viewBox:`${r.x} ${r.y} ${r.w} ${r.h}`,width:r.w,height:r.h,role:\"img\",\"aria-label\":t.title,\"data-storyink\":t.type,\"data-copy\":n||void 0,children:[w.jsx(\"title\",{children:t.title}),e?w.jsx(\"style\",{children:e}):null,w.jsx(\"rect\",{className:\"si-bg\",x:r.x,y:r.y,width:r.w,height:r.h}),w.jsxs(\"g\",{className:\"si-bands\",children:[t.boxes.map((u)=>w.jsxs(\"g\",{\"data-si\":`box:${u.id}`,children:[w.jsx(\"rect\",{className:\"si-group\",x:u.x,y:u.y,width:u.w,height:u.h}),u.label?w.jsx(\"text\",{className:\"si-group-label\",x:K(u.x+8),y:K(u.y+14),children:u.label.toUpperCase()}):null]},u.id)),t.bands.map((u)=>w.jsxs(\"g\",{\"data-si\":`band:${u.id}`,children:[w.jsx(\"rect\",{className:\"si-band\",x:u.x,y:u.y,width:u.w,height:u.h}),u.label?w.jsx(\"text\",{className:\"si-group-label\",x:K(u.x+8),y:K(u.y+13),children:u.label.toUpperCase()}):null]},u.id))]}),w.jsx(\"g\",{className:\"si-groups\",children:t.groups.map((u)=>w.jsx(oC,{g:u,fr:l,smil:o},u.id))}),w.jsx(\"g\",{className:\"si-frames\",children:t.frames.map((u)=>w.jsx(sC,{fr:u,frame:a,smil:o},u.id))}),w.jsx(\"g\",{className:\"si-lifelines\",children:t.lifelines.map((u)=>w.jsx(\"line\",{className:\"si-life\",\"data-si\":`lifeline:${u.id}`,x1:u.x,x2:u.x,y1:u.y1,y2:u.y2,style:Ar(c(u.participant)),children:o?.(`life:${u.participant}`)},u.id))}),w.jsx(\"g\",{className:\"si-activations\",children:t.activations.map((u)=>w.jsx(\"rect\",{className:\"si-act\",\"data-si\":`activation:${u.id}`,x:u.x,y:u.y,width:u.w,height:a?.grow[u.id]??u.h,rx:1,style:Ar(c(u.id)),children:o?.(`act:${u.id}`)},u.id))}),w.jsx(\"g\",{className:\"si-frame-labels\",children:t.frames.map((u)=>w.jsx(uC,{fr:u,frame:a,smil:o},u.id))}),w.jsx(\"g\",{className:\"si-edges\",children:t.edges.map((u)=>w.jsx(rC,{e:u,fr:l,smil:o},u.id))}),w.jsx(\"g\",{className:\"si-nodes\",children:t.nodes.map((u)=>w.jsx(aC,{n:u,copy:n,fr:l,smil:o},u.id))}),w.jsx(\"g\",{className:\"si-ports\",children:t.ports.filter((u)=>!u.covered).map((u)=>w.jsx(\"circle\",{className:\"si-port\",\"data-si\":`port:${u.id}`,cx:u.x,cy:u.y,r:Fo.portRadius,style:s(u),children:o?.(`port:${u.id}`)},u.id))}),w.jsx(\"g\",{className:\"si-labels\",children:t.edges.filter((u)=>u.label).map((u)=>w.jsx(lC,{e:u,fr:l,smil:o},u.id))}),l?w.jsx(cC,{fr:l}):null,o?.(\"overlay\")]})}var G=I(pn(),1),fC=[0.65,0,0.25,1];function wT(t,e,n){let i=e?.duration??0,a=Za(i),[o,r]=it.useState(i),[l,s]=it.useState(\"ended\"),[c,u]=it.useState(!1),[f,m]=it.useState(0),d=it.useRef(void 0),y=it.useRef(!1),x=it.useRef(!1),T=it.useRef(\"ended\");T.current=l,Qh(a,\"change\",(z)=>r(z));let h=()=>{d.current?.stop(),d.current=void 0},p=it.useCallback(()=>{h(),m(0),s((z)=>z===\"gate\"?z:\"paused\")},[]),g=it.useCallback((z)=>{h(),m(0);let V=Math.max(0,Math.min(i,z));a.set(n.reduced&&e?Mr(e,V):V),s(z>=i?\"ended\":\"paused\"),u(!1)},[a,i,n.reduced,e]),v=it.useCallback(()=>{if(!e)return;if(n.reduced){h(),m(0),u(!1);let ut=Er(e),$t=a.get(),le=$t>=i-0.001?0:Math.max(0,eg(e,$t)),de,Bt=!1;x.current=!0;let on=()=>{if(Bt)return;let Ze=ut[le];if(a.set(Ze.t),le>=ut.length-1){if(d.current=void 0,e.loop){le=0,de=setTimeout(on,st.beats.read*1000);return}s(\"ended\");return}de=setTimeout(()=>{le++,on()},Ze.hold*1000)};s(\"playing\"),d.current={stop:()=>{Bt=!0,clearTimeout(de)}},on();return}h(),u(!1);let z=a.get()>=i-0.001?0:a.get();a.set(z),s(\"playing\"),x.current=!0;let V=0,U=performance.now(),P=!1,Z=(ut)=>{if(P)return;let $t=Math.min(i,a.get()+(ut-U)/1000);if(U=ut,a.set($t),$t>=i){if(d.current=void 0,e.loop)S.current();else s(\"ended\");return}V=requestAnimationFrame(Z)};V=requestAnimationFrame((ut)=>{U=ut,Z(ut)}),d.current={stop:()=>{P=!0,cancelAnimationFrame(V)}}},[e,a,i,n.reduced,g]),E=it.useCallback(()=>{if(!e)return;h(),u(!1);let z=a.get();if(n.reduced)return a.set(0),v();if(z<=0.01)return v();let{hold:V,duration:U,empty:P}=st.rewind,Z=V+U+P;s(\"rewinding\"),d.current=De(a,[z,z,0,0],{duration:Z,times:[0,V/Z,(V+U)/Z,1],ease:[\"linear\",fC,\"linear\"],onUpdate:()=>{let ut=Math.abs(a.getVelocity()),$t=z>0?ut*U/z:0;m(+(st.rewind.blur*Math.min(1,$t/2.75)).toFixed(2))},onComplete:()=>{m(0),d.current=void 0,M.current()}})},[e,a,n.reduced,v]),M=it.useRef(v);M.current=v;let S=it.useRef(E);S.current=E;let b=it.useCallback(()=>{if(T.current===\"playing\"||T.current===\"rewinding\")p();else if(T.current===\"ended\")E();else v()},[p,v,E]),A=it.useMemo(()=>e?n.reduced?Er(e).map((z)=>z.t):[...e.steps.map((z)=>z.t0),i]:[],[e,i,n.reduced]),N=it.useMemo(()=>{if(!e)return[];if(!n.reduced)return[0,...e.steps.filter((V)=>V.stop).map((V)=>V.t0),i];let z=Er(e);return[z[0].t,...e.steps.flatMap((V,U)=>V.stop?[z[U].t]:[]),i]},[e,i,n.reduced]),R=it.useCallback((z,V=!1)=>{let U=V&&N.length>2?N:A,P=a.get(),Z=z>0?U.find((ut)=>ut>P+0.02)??i:[...U].reverse().find((ut)=>ut<P-0.02)??0;g(Z)},[A,N,a,i,g]),tt=it.useCallback(()=>{if(T.current!==\"gate\")return;a.set(0),v()},[a,v]);it.useEffect(()=>{if(!e||n.still)return;if(n.t!==void 0){g(n.t===\"end\"?i:Number(n.t)||0);return}if(n.reduced){a.set(i),s(\"gate\");return}if(n.autoplay??e.autoplay){a.set(0),s(\"paused\");let z=n.stage.current;if(!z||typeof IntersectionObserver>\"u\")return v();let V=new IntersectionObserver((U)=>{if(U.some((P)=>P.isIntersecting)&&!x.current)V.disconnect(),M.current()});return V.observe(z),()=>V.disconnect()}a.set(0),s(\"gate\");return},[e,n.still,n.t,n.autoplay]);let rt=it.useRef(!0);it.useEffect(()=>{if(rt.current){rt.current=!1;return}if(!e||n.still)return;if(T.current===\"playing\"||T.current===\"rewinding\"){if(n.reduced)a.set(Mr(e,a.get()));M.current()}else if(n.reduced&&T.current===\"paused\")a.set(Mr(e,a.get()))},[n.reduced]),it.useEffect(()=>{if(!e||n.still)return;let z=n.stage.current,V=()=>{if(T.current===\"playing\")y.current=!0,h(),s(\"paused\")},U=()=>{if(y.current)y.current=!1,M.current()},P=()=>document.hidden?V():U();document.addEventListener(\"visibilitychange\",P);let Z;if(z&&typeof IntersectionObserver<\"u\")Z=new IntersectionObserver(($t)=>$t.some((le)=>le.isIntersecting)?U():V()),Z.observe(z);let ut=()=>g(i);return addEventListener(\"beforeprint\",ut),()=>{document.removeEventListener(\"visibilitychange\",P),Z?.disconnect(),removeEventListener(\"beforeprint\",ut)}},[e,n.still,n.stage,g,i]),it.useEffect(()=>{if(l!==\"ended\"||!x.current)return;let z=setTimeout(()=>u(!0),st.beats.read*1000);return()=>clearTimeout(z)},[l]);let re=it.useMemo(()=>Sf(t,e,o,{reduced:n.reduced,stepped:n.reduced}),[t,e,o,n.reduced]),et=it.useCallback((z)=>Sf(t,e,z,{reduced:n.reduced,stepped:n.reduced}),[t,e,n.reduced]);if(!e)return;let pt=l===\"gate\"?n.reduced?1:st.gateDim:l===\"ended\"&&c?st.endedDim:1;return{t:o,frame:re,mode:l,dim:pt,blur:f,reduced:n.reduced,play:v,pause:p,toggle:b,seek:g,replay:E,step:R,ungate:tt,frameAt:et}}var AT=(t)=>`${Math.floor(t/60)}:${String(Math.floor(t%60)).padStart(2,\"0\")}.${Math.floor(t%1*10)}`;function mC(){return G.jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"3 2 19 20\",\"aria-hidden\":\"true\",children:G.jsx(\"path\",{d:\"M6 4 20 12 6 20Z\",fill:\"currentColor\",stroke:\"currentColor\",strokeWidth:\"3\",strokeLinejoin:\"round\"})})}function dC(){return G.jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[G.jsx(\"rect\",{x:\"3.5\",y:\"2.5\",width:\"3\",height:\"11\",fill:\"currentColor\"}),G.jsx(\"rect\",{x:\"9.5\",y:\"2.5\",width:\"3\",height:\"11\",fill:\"currentColor\"})]})}function pC(){return G.jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[G.jsx(\"path\",{d:\"M3.5 5.5A5.2 5.2 0 1 1 2.8 9\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\"}),G.jsx(\"path\",{d:\"M3 2.2v3.6h3.6\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})}function CT({onPlay:t,still:e=!1}){return G.jsxs(\"button\",{type:\"button\",className:`si-gate${e?\" si-gate-still\":\"\"}`,\"aria-label\":\"Play animation\",onClick:(n)=>{n.stopPropagation(),t()},children:[G.jsx(\"span\",{className:\"si-gate-disc\"}),e?null:G.jsxs(G.Fragment,{children:[G.jsx(\"span\",{className:\"si-gate-ring\"}),G.jsx(\"span\",{className:\"si-gate-ring si-gate-ring-2\"})]}),G.jsx(\"span\",{className:\"si-gate-play\",children:G.jsx(\"svg\",{viewBox:\"3 2 19 20\",\"aria-hidden\":\"true\",children:G.jsx(\"path\",{d:\"M6 4 20 12 6 20Z\",fill:\"currentColor\",stroke:\"currentColor\",strokeWidth:\"3\",strokeLinejoin:\"round\"})})})]})}function OT({c:t,tl:e}){let n=it.useRef(null),i=(r)=>{let l=n.current;if(!l)return;let s=l.getBoundingClientRect();t.seek((r-s.left)/s.width*e.duration)},a=t.mode===\"playing\"||t.mode===\"rewinding\",o=(r)=>`${(r/e.duration*100).toFixed(3)}%`;return G.jsxs(\"div\",{className:`si-transport${t.mode===\"ended\"?\" si-ended\":\"\"}`,onPointerDown:(r)=>r.stopPropagation(),onWheel:(r)=>r.stopPropagation(),children:[t.mode!==\"ended\"?G.jsx(\"button\",{type:\"button\",className:\"si-tbtn\",\"aria-label\":a?\"Pause\":\"Play\",title:a?\"Pause (space)\":\"Play (space)\",onClick:t.toggle,children:a?G.jsx(dC,{}):G.jsx(mC,{})}):null,G.jsx(\"button\",{type:\"button\",className:\"si-tbtn si-replay\",\"aria-label\":\"Replay\",title:\"Replay (R)\",onClick:t.replay,children:G.jsx(pC,{})}),G.jsxs(\"div\",{className:\"si-scrub\",ref:n,role:\"slider\",\"aria-label\":\"Scene time\",\"aria-valuemin\":0,\"aria-valuemax\":+e.duration.toFixed(2),\"aria-valuenow\":+t.t.toFixed(2),tabIndex:0,onPointerDown:(r)=>{r.target.setPointerCapture?.(r.pointerId),i(r.clientX)},onPointerMove:(r)=>{if(r.buttons&1)i(r.clientX)},children:[G.jsx(\"div\",{className:\"si-scrub-track\"}),G.jsx(\"div\",{className:\"si-scrub-fill\",style:{width:o(t.t)}}),e.steps.map((r)=>G.jsx(\"span\",{className:`si-tick${r.stop?\" si-tick-stop\":\"\"}`,style:{left:o(r.t0)},title:r.label,children:r.stop?G.jsx(\"span\",{className:\"si-tick-label\",children:r.stop}):null},r.id)),G.jsx(\"div\",{className:\"si-scrub-head\",style:{left:o(t.t)}})]}),G.jsxs(\"span\",{className:\"si-time\",children:[AT(t.t),\" / \",AT(e.duration)]})]})}function NT({frame:t}){return G.jsx(\"div\",{className:\"si-captions\",\"aria-live\":\"polite\",children:(t?.captions??[]).map((e,n)=>G.jsx(\"p\",{className:\"si-caption\",style:e.o<1?{opacity:e.o}:void 0,children:e.text.split(/\\s+/).map((i,a)=>{let o=e.words[a]??1;return G.jsxs(\"span\",{className:\"si-word\",style:o<1?{opacity:o,transform:`scale(${(0.95+0.05*o).toFixed(3)})`}:void 0,children:[i,\" \"]},a)})},`${e.text}-${n}`))})}function VT({scene:t,tl:e,cols:n,range:i}){let a=xT(e),[o,r]=i??[0,a.length-1],l=a.slice(o,r+1);return G.jsx(\"div\",{className:`si-beats${n&&n>=4?\" si-beats-compact\":\"\"}`,style:{gridTemplateColumns:n?`repeat(${n}, minmax(0, 1fr))`:`repeat(auto-fill, minmax(${ST(t.viewBox.w)}px, 1fr))`},children:l.map((s,c)=>{let u=c+o,f=Sf(t,e,s.t),m=bT(e,f,s);return G.jsxs(\"figure\",{className:\"si-beat\",children:[G.jsxs(\"figcaption\",{className:\"si-beat-cap\",children:[G.jsx(\"span\",{className:\"si-beat-n\",children:s.id!==\"end\"?String(u+1).padStart(2,\"0\"):\"END\"}),\" \",s.label,G.jsxs(\"span\",{className:\"si-beat-t\",children:[s.t.toFixed(2),\"s\"]})]}),G.jsx(Cs,{scene:t,frame:f,copy:`beat${u}`}),G.jsx(\"p\",{className:\"si-beat-caption\",children:m??\" \"})]},s.id)})})}var be={label:11,minLabel:10,readableLabel:12.5,maxK:2,fitPad:32,focusPad:24,deadZone:0.8,edge:24,spring:{type:\"spring\",bounce:0,visualDuration:0.75}};function wr(t,e){let n=be.fitPad,i=Math.floor(Math.max(0.1,Math.min((e.w-2*n)/t.w,(e.h-2*n)/t.h,1.25))*64)/64;return{k:i,x:Math.round((e.w-t.w*i)/2),y:Math.round(Math.max(n/2,(e.h-t.h*i)/2))}}function Tf(t,e){let n=wr(t,e).k;if(n*be.label>=be.minLabel)return n;return Math.max(n,RT(Math.min(be.maxK,be.readableLabel/be.label)))}var RT=(t)=>Math.max(0.015625,Math.floor(t*64+0.000000001)/64);var ng=(t)=>{if(!t.length)return;let e=Math.min(...t.map((o)=>o.x)),n=Math.min(...t.map((o)=>o.y)),i=Math.max(...t.map((o)=>o.x+o.w)),a=Math.max(...t.map((o)=>o.y+o.h));return{x:e,y:n,w:i-e,h:a-n}},DT=(t)=>t.length?ng(t.map((e)=>({x:e.x,y:e.y,w:0,h:0}))):void 0;function Os(t,e){let n=0;for(let i=0;i<t.steps.length;i++)if(t.steps[i].t0<=e+0.000001)n=i;return n}function Ef(t,e,n,i=be.focusPad){let a=e.steps[n];if(!a)return;let o=e.steps[n+1],r=a.t0-0.000001,l=Math.max(a.t1,o?o.t0:a.t1)-0.000001,s=(d)=>d>=r&&d<l,c=(d)=>{let y=t.nodes.find((h)=>h.id===d)??t.groups.find((h)=>h.id===d)??t.frames.find((h)=>h.id===d)??t.activations.find((h)=>h.id===d);if(y)return{x:y.x,y:y.y,w:y.w,h:y.h};let x=t.edges.find((h)=>h.id===d);if(x)return ng([DT(x.points),...x.label?[x.label]:[]]);let T=t.lifelines.find((h)=>h.participant===d);return T?{x:T.x,y:T.y1,w:0,h:T.y2-T.y1}:void 0},u=[],f=(d)=>d&&u.push(d);for(let[d,y]of Object.entries(e.appear))if(s(y))f(c(d));for(let d of e.pulses)if(d.id.startsWith(`pulse-${n}-`))f(DT(d.points));for(let[d,y]of Object.entries(e.draw))if(y.mode===\"fade\"&&s(y.t0))f(c(d));for(let d of e.glows)if(s(d.t))f(c(d.node));for(let d of Object.values(e.counters))if(d.events.some((y)=>s(y.t)))f(c(d.node));let m=ng(u);if(!m)return;return{x:m.x-i,y:m.y-i,w:m.w+2*i,h:m.h+2*i}}function hC(t,e,n){return{x:t.x+(n.x-e.x)*t.k,y:t.y+(n.y-e.y)*t.k,w:n.w*t.k,h:n.h*t.k}}function _T(t,e=be.deadZone){let n=t.h-(t.bottom??0);return{x:t.w*(1-e)/2,y:n*(1-e)/2,w:t.w*e,h:n*e}}function zT(t,e,n,i,a=be.deadZone){let o=hC(t,e,i),r=_T(n,a),l=0.5;return o.x>=r.x-0.5&&o.y>=r.y-0.5&&o.x+o.w<=r.x+r.w+0.5&&o.y+o.h<=r.y+r.h+0.5}function gC(t,e,n){let i=be.edge,a=n.h-(n.bottom??0),o=(r,l,s)=>{let c=l*t.k;if(c+2*i<=s)return(s-c)/2;return Math.min(i,Math.max(s-c-i,r))};return{k:t.k,x:Math.round(o(t.x,e.w,n.w)),y:Math.round(o(t.y,e.h,a))}}function yC(t,e,n,i){let a=e.h-(e.bottom??0),o=n.x-t.x+n.w/2,r=n.y-t.y+n.h/2;return gC({k:i,x:e.w/2-o*i,y:a/2-r*i},t,e)}function Mf(t,e,n,i,a=t.k,o=be.deadZone){if(!i)return t;let r=_T(n,o),l=Math.max(0.1,Math.min(a,RT(Math.min(r.w/Math.max(1,i.w),r.h/Math.max(1,i.h)))));if(t.k>=l-0.000001&&zT(t,e,n,i,o))return t;let s=n.h-(n.bottom??0);if(Math.abs(t.k-l)<0.000001&&e.w*l<=n.w&&e.h*l<=s&&zT(t,e,n,i,1))return t;let c=yC(e,n,i,l);return c.k===t.k&&c.x===t.x&&c.y===t.y?t:c}var Af=(t,e)=>e>=t.lastEvent-0.000001;function BT(t,e,n,i,a){let o=t.viewBox;if(Af(e,n)||!e.steps.length)return wr(o,i);let r=Os(e,n),l=a??Tf(o,i),s=wr(o,i);for(let c=0;c<=r;c++)s=Mf(s,o,i,Ef(t,e,c),l);return s}var L=I(pn(),1),vC={architecture:\"Architecture\",workflow:\"Workflow\",sequence:\"Sequence\",dataflow:\"Data flow\",lifecycle:\"Lifecycle\"};function UT(t){let e=new URLSearchParams(t.replace(/^#/,\"\")),n=e.get(\"theme\"),i=e.get(\"sheet\"),a=e.get(\"autoplay\"),o=e.get(\"motion\");return{...n===\"light\"||n===\"dark\"?{theme:n}:{},chrome:e.get(\"chrome\")!==\"0\",...e.get(\"t\")?{t:e.get(\"t\")}:{},...i===\"beats\"?{beats:!0}:i?{sheet:i.split(\",\").filter((r)=>r===\"light\"||r===\"dark\")}:{},...a===\"1\"||a===\"0\"?{autoplay:a===\"1\"}:{},...o===\"full\"||o===\"reduced\"?{motion:o}:{},...e.get(\"static\")===\"1\"?{still:!0}:{},...e.get(\"camera\")===\"follow\"||e.get(\"camera\")===\"fit\"?{camera:e.get(\"camera\")}:{},...Number(e.get(\"cols\"))>=1?{cols:Math.min(12,Math.floor(Number(e.get(\"cols\"))))}:{},.../^\\d+-\\d+$/.test(e.get(\"range\")??\"\")?{range:e.get(\"range\").split(\"-\").map(Number)}:{}}}function xC(t){if(t.hash)return t.hash;if(t.stored===\"full\"||t.stored===\"reduced\")return t.stored;let e=t.author??\"full\";if(e!==\"system\")return e;return t.system?\"reduced\":\"full\"}var HT=\"storyink-motion\",LT=\"storyink-follow\";function bC(t){if(t.hash)return t.hash===\"follow\";if(t.stored===\"on\"||t.stored===\"off\")return t.stored===\"on\";return(t.author??\"follow\")===\"follow\"}var SC=\"button, input, select, textarea, a, [role=slider], .si-tools, .si-transport, .si-gate, [data-no-pan]\";function ui({label:t,title:e,onClick:n,children:i,pressed:a,still:o}){return L.jsx(Fh.button,{type:\"button\",className:\"si-btn\",\"aria-label\":t,title:e,onClick:n,...a!==void 0?{\"aria-pressed\":a}:{},...o?{}:{whileHover:dn.hover,whileTap:dn.press},transition:dn.spring,children:i??t})}function TC(){return L.jsxs(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[L.jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"3\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.3\"}),L.jsx(\"path\",{d:\"M8 1v2M8 13v2M1 8h2M13 8h2M3 3l1.4 1.4M11.6 11.6 13 13M3 13l1.4-1.4M11.6 4.4 13 3\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\"})]})}function EC(){return L.jsx(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:L.jsx(\"path\",{d:\"M13 9.5A5.5 5.5 0 0 1 6.5 3a5.5 5.5 0 1 0 6.5 6.5Z\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinejoin:\"round\"})})}var GT=\"storyink-theme\";function jT(){return typeof matchMedia===\"function\"&&matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}function qT(t,e){let n=document.documentElement;if(!e){n.dataset.theme=t;return}let i=getComputedStyle(n),a=Ll[t],o=Object.keys(a),r={};for(let u of o)r[qi(u)]=i.getPropertyValue(qi(u)).trim();for(let u of o)n.style.setProperty(qi(u),r[qi(u)]);n.dataset.theme=t;let l={};for(let u of o)l[qi(u)]=a[u];let s=De(n,l,dn.spring),c=()=>{for(let u of o)n.style.removeProperty(qi(u))};Promise.resolve(s.finished??s).then(c,c)}function YT({scene:t,hooks:e}){let n=J.useRef(null),i=J.useRef(()=>{}),a=Za(0),o=Za(0),r=Za(1),[l,s]=J.useState({chrome:!0}),[c,u]=J.useState(void 0),[f,m]=J.useState(!1),[d,y]=J.useState(!1),[x,T]=J.useState(null),[h,p]=J.useState(void 0),[g,v]=J.useState(!1),E=t.viewBox,M=t.timeline,S=xC({hash:l.motion,stored:x,author:M?.motion,system:d})===\"reduced\",b=wT(t,M,{...l.t!==void 0?{t:l.t}:{},...l.autoplay!==void 0?{autoplay:l.autoplay}:{},reduced:S,still:!f||!!l.still||!!l.beats||!!l.sheet?.length,stage:n}),[A,N]=J.useState(null),R=bC({hash:l.camera,stored:A,author:M?.camera}),tt=J.useRef({k:1,x:0,y:0}),rt=J.useRef(void 0),re=J.useRef(null),et=J.useRef(!1),pt=J.useRef(!1),z=J.useCallback(()=>{let O=n.current;if(!O)return;return{w:O.clientWidth,h:O.clientHeight,bottom:l.chrome?56:0}},[l.chrome]),V=J.useCallback((O,q)=>{if(tt.current=O,q)De(r,O.k,be.spring),De(a,O.x,be.spring),De(o,O.y,be.spring);else r.stop(),a.stop(),o.stop(),r.set(O.k),a.set(O.x),o.set(O.y)},[r,a,o]),U=J.useCallback((O)=>{let q=n.current;if(!q)return;let Y=wr(E,{w:q.clientWidth,h:q.clientHeight});if(et.current=!1,tt.current=Y,O)De(r,Y.k,dn.spring),De(a,Y.x,dn.spring),De(o,Y.y,dn.spring);else r.set(Y.k),a.set(Y.x),o.set(Y.y)},[E,r,a,o]),P=J.useCallback((O,q,Y,rn=!1)=>{let yn=n.current;if(!yn)return;let Wi=q??yn.clientWidth/2,zr=Y??yn.clientHeight/2,_=rn?tt.current:{k:r.get(),x:a.get(),y:o.get()},Ot=Math.max(0.1,Math.min(8,_.k*O)),ta={k:Ot,x:Wi-(Wi-_.x)*Ot/_.k,y:zr-(zr-_.y)*Ot/_.k};if(rt.current=Ot,tt.current=ta,rn)De(r,ta.k,dn.spring),De(a,ta.x,dn.spring),De(o,ta.y,dn.spring);else r.set(ta.k),a.set(ta.x),o.set(ta.y)},[r,a,o]);J.useEffect(()=>{let O=UT(location.hash);if(s(O),typeof matchMedia===\"function\")y(matchMedia(\"(prefers-reduced-motion: reduce)\").matches);try{T(localStorage.getItem(HT)),N(localStorage.getItem(LT))}catch{}m(!0);let q;try{let yn=localStorage.getItem(GT);if(yn===\"light\"||yn===\"dark\")q=yn}catch{}let Y=O.theme??q??document.documentElement.dataset.theme;if(u(Y??jT()),Y)qT(Y,!1);let rn=()=>s(UT(location.hash));return addEventListener(\"hashchange\",rn),()=>removeEventListener(\"hashchange\",rn)},[]),J.useEffect(()=>{if(!f)return;if(!l.sheet?.length&&!l.beats)ut();e?.onReady(!!l.sheet?.length||!!l.beats)},[l,U,e,f]);let Z=J.useRef(b);Z.current=b,J.useEffect(()=>{let O=window;if(!O.__storyink)return;O.__storyink.duration=M?.duration??0,O.__storyink.steps=M?M.steps.map((q)=>({id:q.id,label:q.label,t0:q.t0,t1:q.t1,...q.stop?{stop:q.stop}:{}})):[],O.__storyink.setTime=(q)=>Z.current?.seek(q===\"end\"?M?.duration??0:Number(q)),O.__storyink.play=()=>Z.current?.play(),O.__storyink.pause=()=>Z.current?.pause(),O.__storyink.replay=()=>Z.current?.replay(),O.__storyink.state=()=>({t:Z.current?.t??0,mode:Z.current?.mode??\"static\"}),O.__storyink.camera=()=>Dr.current()},[M]);let ut=()=>{let O=z();if(!O)return;if(M&&l.camera===\"follow\"&&l.t!==void 0&&!pt.current){let Y=l.t===\"end\"?M.duration:Number(l.t)||0,rn=S?Mr(M,Y):Y;V(BT(t,M,rn,O),!1),et.current=!Af(M,rn);return}let q=Z.current;if(M&&q&&R&&et.current){V(Mf(tt.current,E,O,Ef(t,M,Os(M,q.t)),rt.current??Tf(E,O)),!1);return}U(!1)},$t=J.useRef(ut);$t.current=ut;let le=M&&b?Os(M,b.t):0,de=M&&b?Af(M,b.t):!1,Bt=b?.mode;if(Bt===\"playing\")pt.current=!0;J.useEffect(()=>{if(!M||!b||!R||!pt.current||l.beats||l.sheet?.length)return;if(Bt===\"gate\"||Bt===\"rewinding\")return;let O=z();if(!O)return;let q=!S;if(de){if(et.current)V(wr(E,O),q),et.current=!1;return}if(re.current===le)return;re.current=null;let Y=Mf(tt.current,E,O,Ef(t,M,le),rt.current??Tf(E,O));if(Y!==tt.current)V(Y,q),et.current=!0},[le,de,Bt,R,S]),i.current=()=>{if(r.stop(),a.stop(),o.stop(),b&&M)re.current=Os(M,b.t)};let on=h??b?.frame;J.useEffect(()=>{if(b&&e?.onFrame)e.onFrame(b.frame,b.mode===\"playing\"&&!S)},[b?.frame,b?.mode,e,S]),J.useEffect(()=>{let O=()=>$t.current();addEventListener(\"resize\",O);let q;if(typeof ResizeObserver<\"u\"&&n.current)q=new ResizeObserver(O),q.observe(n.current);return document.fonts?.ready.then(O),()=>{removeEventListener(\"resize\",O),q?.disconnect()}},[U]),J.useEffect(()=>{let O=n.current;if(!O)return;let q=(_)=>{_.preventDefault();let Ot=O.getBoundingClientRect();r.stop(),a.stop(),o.stop(),P(Math.exp(-_.deltaY*(_.ctrlKey?0.01:0.0015)),_.clientX-Ot.left,_.clientY-Ot.top)},Y,rn=(_)=>{if(_.button!==0)return;if(_.target?.closest?.(SC))return;Y={id:_.pointerId,sx:_.clientX,sy:_.clientY,ox:a.get(),oy:o.get(),moved:!1}},yn=(_)=>{if(!Y||Y.id!==_.pointerId)return;if(!Y.moved){if(Math.hypot(_.clientX-Y.sx,_.clientY-Y.sy)<3)return;Y.moved=!0;try{O.setPointerCapture(_.pointerId)}catch{}O.classList.add(\"si-dragging\"),i.current()}a.set(Y.ox+_.clientX-Y.sx),o.set(Y.oy+_.clientY-Y.sy),tt.current={k:r.get(),x:a.get(),y:o.get()}},Wi=(_)=>{if(!Y||Y.id!==_.pointerId)return;let Ot=Y.moved;if(Y=void 0,Ot)O.classList.remove(\"si-dragging\")},zr=(_)=>{if(_.target instanceof HTMLInputElement||_.metaKey||_.ctrlKey||_.altKey)return;let Ot=Z.current;if(Ot&&(_.key===\" \"||_.code===\"Space\"))if(_.preventDefault(),Ot.mode===\"gate\")Ot.ungate();else Ot.toggle();else if(Ot&&_.key===\"ArrowRight\")pt.current=!0,Ot.step(1,_.shiftKey);else if(Ot&&_.key===\"ArrowLeft\")pt.current=!0,Ot.step(-1,_.shiftKey);else if(Ot&&(_.key===\"f\"||_.key===\"F\"))Nr.current();else if(Ot&&(_.key===\"r\"||_.key===\"R\"))Ot.replay();else if(Ot&&(_.key===\"m\"||_.key===\"M\"))Or.current();else if(_.key===\"0\")Vr.current();else if(_.key===\"+\"||_.key===\"=\")P(1.25,void 0,void 0,!0);else if(_.key===\"-\"||_.key===\"_\")P(0.8,void 0,void 0,!0)};return O.addEventListener(\"wheel\",q,{passive:!1}),O.addEventListener(\"pointerdown\",rn),O.addEventListener(\"pointermove\",yn),O.addEventListener(\"pointerup\",Wi),O.addEventListener(\"pointercancel\",Wi),addEventListener(\"keydown\",zr),()=>{O.removeEventListener(\"wheel\",q),O.removeEventListener(\"pointerdown\",rn),O.removeEventListener(\"pointermove\",yn),O.removeEventListener(\"pointerup\",Wi),O.removeEventListener(\"pointercancel\",Wi),removeEventListener(\"keydown\",zr)}},[U,P,a,o,r]);let Ze=()=>{let O=S?\"full\":\"reduced\";T(O);try{localStorage.setItem(HT,O)}catch{}if(l.motion){let q=new URLSearchParams(location.hash.replace(/^#/,\"\"));q.set(\"motion\",O),history.replaceState(null,\"\",`#${q.toString()}`),s((Y)=>({...Y,motion:O}))}},Or=J.useRef(Ze);Or.current=Ze;let Fa=()=>{let O=R?\"off\":\"on\";N(O);try{localStorage.setItem(LT,O)}catch{}if(l.camera){let q=new URLSearchParams(location.hash.replace(/^#/,\"\"));q.set(\"camera\",O===\"on\"?\"follow\":\"fit\"),history.replaceState(null,\"\",`#${q.toString()}`),s((Y)=>({...Y,camera:O===\"on\"?\"follow\":\"fit\"}))}},Nr=J.useRef(Fa);Nr.current=Fa;let Qe=()=>{U(!0),rt.current=tt.current.k},Vr=J.useRef(Qe);Vr.current=Qe;let Dr=J.useRef(()=>({}));Dr.current=()=>({mode:R?\"follow\":\"fit\",follow:R,k:r.get(),x:a.get(),y:o.get(),goal:tt.current,step:le,engaged:et.current,suspended:re.current,userK:rt.current??null,viewport:z()??null});let Vs=b?{...b,seek:(O)=>(pt.current=!0,b.seek(O))}:void 0,Ds=()=>{let O=(c??jT())===\"dark\"?\"light\":\"dark\";u(O);try{localStorage.setItem(GT,O)}catch{}qT(O,!0)},jn=c??\"light\",Nf=l.sheet?.length?l.sheet:void 0,hg=(O)=>{if(!b||g)return O();ig.flushSync(()=>p(b.frameAt(M.duration)));try{O()}finally{ig.flushSync(()=>p(void 0))}};return L.jsx(Rh,{features:Zh,strict:!0,children:L.jsxs(\"div\",{className:`si-app${l.chrome?\"\":\" si-nochrome\"}${S?\" si-reduced\":\"\"}${l.beats&&M?\" si-sheet-mode\":\"\"}`,children:[L.jsxs(\"header\",{className:\"si-head\",children:[L.jsx(\"p\",{className:\"si-kind\",children:vC[t.type]}),L.jsx(\"h1\",{className:\"si-title\",children:t.title}),t.subtitle?L.jsx(\"p\",{className:\"si-subtitle\",children:t.subtitle}):null,M?L.jsx(NT,{frame:l.beats?void 0:on}):null]}),l.beats&&M?L.jsx(VT,{scene:t,tl:M,...l.cols?{cols:l.cols}:{},...l.range?{range:l.range}:{}}):Nf?L.jsx(\"div\",{className:\"si-sheet\",style:{gridTemplateColumns:`repeat(${Nf.length}, 1fr)`},children:Nf.map((O)=>L.jsxs(\"div\",{\"data-theme\":O,children:[L.jsx(\"p\",{className:\"si-sheet-cap\",children:O}),L.jsx(Cs,{scene:t,copy:O,frame:b?.frameAt(M.duration)})]},O))}):L.jsxs(\"div\",{className:`si-stage${b?.mode===\"gate\"?\" si-gated\":\"\"}`,ref:n,onClick:()=>b?.mode===\"gate\"&&b.ungate(),children:[L.jsx(Fh.div,{className:\"si-canvas\",style:{x:a,y:o,scale:r,originX:0,originY:0},children:L.jsxs(\"div\",{className:\"si-figure\",style:b&&(b.dim<1||b.blur>0)?{opacity:b.dim,...b.blur>0?{filter:`blur(${b.blur}px)`}:{}}:void 0,children:[L.jsx(Cs,{scene:t,frame:on}),L.jsx(\"div\",{className:\"si-counters\"})]})}),b?.mode===\"gate\"?L.jsx(CT,{onPlay:b.ungate,still:S}):null,Vs&&M?L.jsx(OT,{c:Vs,tl:M}):null,L.jsxs(\"div\",{className:\"si-tools\",onPointerDown:(O)=>O.stopPropagation(),children:[L.jsx(ui,{label:\"\u2212\",title:\"Zoom out (-)\",onClick:()=>P(0.8,void 0,void 0,!0)}),L.jsx(ui,{label:\"+\",title:\"Zoom in (+)\",onClick:()=>P(1.25,void 0,void 0,!0)}),L.jsx(ui,{label:\"Fit\",title:\"Fit to view (0)\",onClick:Qe}),L.jsx(\"span\",{className:\"si-sep\"}),L.jsx(ui,{label:\"Toggle theme\",title:\"Toggle light/dark\",onClick:Ds,children:jn===\"dark\"?L.jsx(TC,{}):L.jsx(EC,{})}),L.jsx(\"span\",{className:\"si-sep\"}),M?L.jsxs(L.Fragment,{children:[L.jsx(ui,{label:S?\"Motion: reduced\":\"Motion: full\",title:S?\"Reduced motion: plays step by step. Click for full motion (M)\":\"Full motion. Click to play step by step (M)\",pressed:S,still:S,onClick:Ze}),L.jsx(ui,{label:\"Follow\",title:R?\"Camera follows the story. Click to keep the view still (F)\":\"Camera stays still. Click to follow the story (F)\",pressed:R,onClick:Fa}),L.jsx(\"span\",{className:\"si-sep\"})]}):null,M?L.jsx(ui,{label:g?\"Frame: now\":\"Frame: end\",title:\"Export the final frame or the frame on screen\",onClick:()=>v((O)=>!O)}):null,L.jsx(ui,{label:\"SVG\",title:\"Export SVG\",onClick:()=>hg(()=>e?.exportSvg(jn))}),L.jsx(ui,{label:\"PNG\",title:\"Export PNG (2\u00D7)\",onClick:()=>hg(()=>e?.exportPng(jn))})]})]})]})})}function ag(t,e,n=0){let i=Math.min(t.x+t.w,e.x+e.w)-Math.max(t.x,e.x)-n,a=Math.min(t.y+t.h,e.y+e.h)-Math.max(t.y,e.y)-n;return i>0&&a>0?i*a:0}var XT=(t)=>{if(!t)return;let[e,n,i,a]=t.split(\",\").map(Number);return{x:e,y:n,w:i,h:a}};function KT(t,e,n){let i=t.querySelector(n?\".si-sheet svg.storyink\":\".si-stage svg.storyink\")??t.querySelector(\"svg.storyink\"),a=[],o=0;if(!i)return{ok:!1,issues:[{kind:\"text-overflow\",ids:[],detail:\"no diagram found\"}],checked:{nodes:0,labels:0,texts:0}};let r=[...i.querySelectorAll(\"g.si-node\")],l=[];for(let u of r){let f=u.dataset.si.slice(5),m=XT(u.getAttribute(\"data-box\"));l.push({id:f,box:m});let d=e.nodes.find((y)=>y.id===f);for(let y of u.querySelectorAll(\"text\")){o++;let x=y.getBBox();if(!x.width)continue;let T=2,h=m.w-2;if(d?.shape===\"diamond\"){let p=x.y+x.height/2,g=1-Math.abs(p-m.h/2)/(m.h/2),v=m.w/2*g;T=m.w/2-v+4,h=m.w/2+v-4}if(x.x<T-1||x.x+x.width>h+1||x.y<-1||x.y+x.height>m.h+1)a.push({kind:\"text-overflow\",ids:[f],detail:`\"${y.textContent}\" (${x.width.toFixed(1)}px) exceeds its box`})}}let s=[...i.querySelectorAll(\"g.si-lbl\")],c=[];for(let u of s){let f=u.dataset.si.slice(6),m=XT(u.getAttribute(\"data-box\"));c.push({id:f,box:m});let d=u.querySelector(\"text\");if(d){o++;let y=d.getBBox();if(y.x<m.x-1||y.x+y.width>m.x+m.w+1)a.push({kind:\"label-overflow\",ids:[f],detail:`label \"${d.textContent}\" overflows its pill`})}}for(let u of c)for(let f of l)if(ag(u.box,f.box,1)>0)a.push({kind:\"label-node\",ids:[u.id,f.id],detail:\"edge label overlaps a node\"});for(let u=0;u<c.length;u++)for(let f=u+1;f<c.length;f++)if(ag(c[u].box,c[f].box,1)>0)a.push({kind:\"label-label\",ids:[c[u].id,c[f].id],detail:\"edge labels overlap\"});for(let u=0;u<l.length;u++)for(let f=u+1;f<l.length;f++)if(ag(l[u].box,l[f].box)>0)a.push({kind:\"node-node\",ids:[l[u].id,l[f].id],detail:\"nodes overlap\"});return{ok:a.length===0,issues:a,checked:{nodes:l.length,labels:c.length,texts:o}}}var MC=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],Ns=new Map,AC=/[\\u0590-\\u08ff\\u200e\\u200f\\u202a-\\u202e\\u2066-\\u2069\\ufb1d-\\ufeff]/u;function wC(t={}){let e=Intl.getCanonicalLocales(t.locales),n=Object.fromEntries(Object.entries(t.format??{}).sort(([o],[r])=>o.localeCompare(r))),i=JSON.stringify([e,n]),a=Ns.get(i);if(!a){a=new Intl.NumberFormat(e,n);let o=Ns.keys().next().value;if(Ns.size>=64&&o!==void 0)Ns.delete(o);Ns.set(i,a)}return a}function CC(t,e={}){let n=wC(e),i=n.formatToParts(t),a=i.map((y)=>y.value).join(\"\"),o=n.resolvedOptions(),r=o.numberingSystem===\"latn\"&&o.notation===\"standard\"&&!AC.test(a)&&!i.some((y)=>y.type===\"nan\"||y.type===\"infinity\"),l=JSON.stringify(o);if(!r)return{text:a,tokens:[],rollable:r,signature:l,magnitude:\"\"};let s=i.filter((y)=>y.type===\"integer\").reduce((y,x)=>y+x.value.length,0),c=-1,u=new Map,f=[],m=\"\",d=\"\";for(let y of i)if(y.type===\"integer\"||y.type===\"fraction\"){if(y.type===\"integer\")m+=y.value;else d+=y.value;for(let x of y.value){let T=`digit:${y.type===\"integer\"?--s:c--}`;f.push({key:T,identity:T,text:x,wheel:MC,index:Number(x)})}}else if(y.type===\"group\"){let x=`group:${s}`;f.push({key:`${x}:${y.value}`,identity:x,text:y.value})}else{let x=u.get(y.type)??0;u.set(y.type,x+1);let T=y.type===\"plusSign\"||y.type===\"minusSign\"?\"sign\":y.type;f.push({key:`${y.type}:${x}:${y.value}`,identity:`${T}:${x}`,text:y.value})}return{text:a,tokens:f,rollable:r,signature:l,magnitude:`${m.replace(/^0+(?=\\d)/u,\"\")}.${d}`}}function OC(t,e){let[n=\"\",i=\"\"]=t.magnitude.split(\".\"),[a=\"\",o=\"\"]=e.magnitude.split(\".\");if(n.length!==a.length)return a.length>n.length?1:-1;if(n!==a)return a>n?1:-1;let r=Math.max(i.length,o.length),l=i.padEnd(r,\"0\"),s=o.padEnd(r,\"0\");return s===l?0:s>l?1:-1}function NC(t,e,n=0.14){return{target:0,duration:e,points:Array.from({length:49},(i,a)=>{if(a===48)return 0;let o=Math.max(0,Math.min(1,(a/48-n)/(1-n)));return t*(1+10*o)*Math.exp(-10*o)})}}function wf(t,e){if(e<=0||t.duration<=0)return t;let n=t.duration+e,i=Math.round((t.points.length-1)*n/t.duration)+1,a=t.points[0]??t.target;return{target:t.target,duration:n,points:Array.from({length:i},(o,r)=>{if(r===i-1)return t.target;let l=r/(i-1)*n-e;return l<=0?a:FT(t,l).position})}}function Ii(t,e,n,i){if(i<=0)return{points:[e,e],duration:0,target:e};let a=i/1000,o=t-e,r=Math.max(Math.abs(o),1)*12/a,l=Math.max(-r,Math.min(r,n))*a;return{points:Array.from({length:49},(s,c)=>{if(c===48)return e;let u=c/48;return e+(o+(l+10*o)*u)*Math.exp(-10*u)}),duration:i,target:e}}function VC(t,e=0,n=24){if(t.duration<=0)return{points:[0,0],duration:0,target:0};let i=t.duration/(t.points.length-1)/1000;return{duration:t.duration,target:0,points:t.points.map((a,o,r)=>{if(o===0)return Math.max(0,Math.min(1,e));if(o===r.length-1)return 0;let l=Math.abs((r[o+1]-r[o-1])/(2*i)),s=n/6;return Math.max(0,Math.min(1,(l-s)/(n-s)))})}}function FT(t,e){if(e>=t.duration||t.duration===0)return{position:t.target,velocity:0};let n=Math.max(0,e)/t.duration*(t.points.length-1),i=Math.min(Math.floor(n),t.points.length-2),a=t.points[i]??t.target,o=t.points[i+1]??t.target;return{position:a+(o-a)*(n-i),velocity:(o-a)*(t.points.length-1)*1000/t.duration}}function ZT(t,e,n,i=10){let a=Math.floor(t/i)*i+e;if(n>0&&a<t-0.001)a+=i;else if(n<0&&a>t+0.001)a-=i;else if(n===0)a+=Math.round((t-a)/i)*i;return a}var Of=(t,e)=>t[(e%t.length+t.length)%t.length];function DC(t,e,n){let i=Math.floor(e),a=e-i,o=[Of(t,i)];if(a>0.00001)o.push(Of(t,i+1));if(o.at(-1)!==n)o.push(n);return{wheel:o,from:a,target:o.length-1}}function zC(t,e=\"outward\"){if(e!==\"outward\"){let a=t.map((r,l)=>r?-1:l).filter((r)=>r>=0);if(e===\"end\")a.reverse();let o=t.map((r)=>r?0:1);if(e!==\"none\")a.forEach((r,l)=>{o[r]=l+1});return o}let n=t.map((a,o)=>a?0:o+1);if(!t.includes(!0))return n;let i=-1/0;for(let a=0;a<t.length;a++)if(t[a])i=a;else n[a]=a-i;i=1/0;for(let a=t.length-1;a>=0;a--)if(t[a])i=a;else n[a]=Math.min(n[a],i-a);return n}function QT(t,e){let n=new Map,i=[],a=0;for(let o of t){let r=e.get(o);if(!r){i.push(o);continue}for(let l of i)n.set(l,r.x);i.length=0,a=r.x+r.width}for(let o of i)n.set(o,a);return n}var og=new WeakMap;class mg{view;media;members=new Set;pending=new Set;sizes=new WeakMap;intersections=new WeakMap;resize;intersection;frame=0;static for(t){let e=og.get(t);if(!e)e=new mg(t),og.set(t,e);return e}constructor(t){if(this.view=t,this.media=t.matchMedia(\"(prefers-reduced-motion: reduce)\"),this.media.addEventListener(\"change\",this.refresh),t.document.addEventListener(\"visibilitychange\",this.refresh),t.document.fonts?.addEventListener(\"loadingdone\",this.refresh),t.document.fonts?.ready.then(this.refresh),t.ResizeObserver)this.resize=new t.ResizeObserver((e)=>{for(let n of e){let i=this.sizes.get(n.target);if(i?.sizeChanged(n.target,n.contentRect.width,n.contentRect.height))i.refresh()}});if(t.IntersectionObserver)this.intersection=new t.IntersectionObserver((e)=>{for(let n of e)this.intersections.get(n.target)?.visibility(n.isIntersecting)},{rootMargin:\"64px\"})}refresh=()=>{for(let t of this.members)t.refresh()};add(t,e){this.members.add(t),this.intersections.set(e,t),this.intersection?.observe(e)}watch(t,e){this.sizes.set(t,e),this.resize?.observe(t)}unwatch(t){this.resize?.unobserve(t),this.sizes.delete(t)}enqueue(t){if(this.pending.add(t),!this.frame)this.frame=this.view.requestAnimationFrame(()=>{this.frame=0;let e=[...this.pending];this.pending.clear();let n=e.map((a)=>a.stage());for(let a of n)a?.();let i=e.map((a)=>a.measure());for(let a of i)a?.()})}remove(t,e){if(this.pending.delete(t),this.members.delete(t),this.intersection?.unobserve(e),this.intersections.delete(e),this.members.size)return;this.view.cancelAnimationFrame(this.frame),this.resize?.disconnect(),this.intersection?.disconnect(),this.media.removeEventListener(\"change\",this.refresh),this.view.document.removeEventListener(\"visibilitychange\",this.refresh),this.view.document.fonts?.removeEventListener(\"loadingdone\",this.refresh),og.delete(this.view)}}var kT=new WeakMap;function Cr(t,e,n){let i=t.animate(e,n),a=t.ownerDocument.timeline?.currentTime;if(typeof a===\"number\"&&i.playState===\"running\")i.startTime=a;return i}function $T(t){let e=t.ownerDocument.defaultView;if(!e)return!1;let n=kT.get(e);if(n===void 0)n=e.CSS?.supports(\"animation-timing-function\",\"linear(0, 1)\")??!1,kT.set(e,n);return n}class ka{element;property;animation;motion;value=0;constructor(t,e){this.element=t,this.property=e}read(){let t=this.animation?.currentTime;return this.animation&&this.motion?FT(this.motion,typeof t===\"number\"?t:0):{position:this.value,velocity:0}}set(t,e){this.cancel(),this.value=t,this.element.style.setProperty(this.property,e(t))}play(t,e,n){if(this.cancel(),this.value=t.target,this.element.style.setProperty(this.property,e(t.target)),!t.duration||t.points.every((u)=>u===t.target)){n?.();return}let i=t.points[0]??t.target,a=t.target-i,o=this.property===\"opacity\"&&$T(this.element),r=this.property===\"transform\"&&Math.abs(a)>0.00001&&$T(this.element),l=o?[{opacity:0},{opacity:1}]:r?[{[this.property]:e(i)},{[this.property]:e(t.target)}]:t.points.map((u)=>({[this.property]:e(u)})),s=o?`linear(${t.points.map(e).join(\",\")})`:r?`linear(${t.points.map((u)=>Number(((u-i)/a).toFixed(6))).join(\",\")})`:\"linear\",c=Cr(this.element,l,{duration:t.duration,easing:s});this.animation=c,this.motion=t,c.onfinish=()=>{if(this.animation!==c)return;this.animation=void 0,this.motion=void 0,c.onfinish=null,c.cancel(),n?.()}}cancel(){if(this.animation)this.animation.onfinish=null,this.animation.cancel(),this.animation=void 0;this.motion=void 0}}var rg=\"http://www.w3.org/2000/svg\",RC=0;class Cf{host;layers=new Map;filter;intensity=1;constructor(t){this.host=t}filterUrl(t){if(!this.filter){let n=this.host.ownerDocument,i=n.createElementNS(rg,\"svg\");i.classList.add(\"rn-blur-defs\"),i.setAttribute(\"aria-hidden\",\"true\"),i.setAttribute(\"focusable\",\"false\");let a=n.createElementNS(rg,\"filter\"),o;do o=`rn-vertical-blur-${++RC}`;while(n.getElementById(o));a.id=o,a.setAttribute(\"x\",\"-15%\"),a.setAttribute(\"width\",\"130%\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\");let r=n.createElementNS(rg,\"feGaussianBlur\");a.append(r),i.append(a),this.host.append(i),this.filter={svg:i,blur:r,id:o,height:0}}let e=t*0.035*this.intensity;if(this.filter.height!==e)this.filter.blur.setAttribute(\"stdDeviation\",`0 ${e}`),this.filter.height=e;return`url(\"#${this.filter.id}\")`}apply(t,e,n,i,a=\"roll\"){let o=VC(e,i,a===\"entry\"?6:24);if(o.points.every((u)=>u===0))return!1;let r=this.host.ownerDocument.createElement(\"span\");r.className=\"rn-sharp\",r.append(...t.childNodes);let l=r.cloneNode(!0);l.className=\"rn-smear\",l.style.filter=this.filterUrl(n),t.append(r,l);let s=new ka(r,\"opacity\"),c=new ka(l,\"opacity\");return this.layers.set(t,{sharp:r,sharpOpacity:s,smearOpacity:c}),s.play(o,(u)=>String(1-u)),c.play(o,String),!0}remove(t){let e=this.layers.get(t);if(!e)return 0;let n=e.smearOpacity.read().position;return e.sharpOpacity.cancel(),e.smearOpacity.cancel(),t.replaceChildren(...e.sharp.childNodes),this.layers.delete(t),n}destroy(){for(let t of this.layers.keys())this.remove(t);this.filter?.svg.remove(),this.filter=void 0}}function _C(t){return Math.max(45,Math.min(110,t/7))}function BC(t,e,n){let i=Math.abs(e-t);return{points:[t,e],target:e,duration:i*n}}function UC(t){let e=Array.from({length:t+1},(a,o)=>({\"--rn-flap-step\":String(o),offset:o/t,easing:\"steps(1, end)\"})),n=[],i=[];for(let a=0;a<t;a++){let o=a/t,r=(a+0.5)/t,l=(a+1)/t;n.push({transform:\"perspective(5em) rotateX(0deg)\",filter:\"brightness(1)\",offset:o,easing:\"cubic-bezier(.6, 0, 1, .5)\"},{transform:\"perspective(5em) rotateX(-90deg)\",filter:\"brightness(.45)\",offset:r},{transform:\"perspective(5em) rotateX(-90deg)\",filter:\"brightness(.45)\",offset:l}),i.push({transform:\"perspective(5em) rotateX(90deg)\",filter:\"brightness(.45)\",offset:o},{transform:\"perspective(5em) rotateX(90deg)\",filter:\"brightness(.45)\",offset:r,easing:\"linear(0, 0.58, 0.9, 1, 1.045 78%, 1)\"},{transform:\"perspective(5em) rotateX(0deg)\",filter:\"brightness(1)\",offset:l})}return{index:e,falls:n,lands:i}}function HC(t){for(let e of t.querySelectorAll(\".rn-flap-smear\")){for(let n of e.getAnimations())n.cancel();e.remove()}for(let e of t.querySelectorAll(\".rn-flap-sharp\")){for(let n of e.getAnimations())n.cancel();e.classList.remove(\"rn-flap-sharp\")}}function LC(t,e,n,i,a,o,r,l){let s=t.ownerDocument,c=Math.abs(i-n),u=i>=n?1:-1;if(!c){t.replaceChildren();return}let f=UC(c),m=Array.from({length:c+1},(E,M)=>Of(e,n+M*u)),d=[...m.slice(1),m.at(-1)],y=m.some((E)=>/[\\r\\n\\f\\u2028\\u2029]/u.test(E)),x=s.createElement(\"span\");x.style.cssText=`display:block;position:relative;height:${a}px`,Cr(x,f.index,{delay:r,duration:c*o,fill:\"both\"});let T=(E,M)=>{let S=s.createElement(\"span\");S.className=`rn-face rn-flap rn-flap-${E}`,S.style.height=`${a}px`,S.style.overflow=\"hidden\";let b=s.createElement(\"span\");b.style.cssText=`display:block;white-space:pre;line-height:${a}px`;let A=M?d:m;if(y)for(let N of A){let R=s.createElement(\"span\");R.style.cssText=`display:block;height:${a}px`,R.textContent=N,b.append(R)}else b.textContent=A.join(`\n`);return S.append(b),b.style.transform=`translateY(calc(var(--rn-flap-step) * ${-a}px))`,S},h=T(\"bottom\",!1),p=T(\"top\",!0),g=T(\"top\",!1),v=T(\"bottom\",!0);if(l){let E=(M,S)=>{let b=M.firstElementChild,A=b.cloneNode(!0);b.classList.add(\"rn-flap-sharp\");let N=s.createElement(\"span\");N.className=\"rn-flap-smear\",N.style.cssText=\"display:block;position:absolute;inset:0;overflow:hidden\",N.style.filter=l,N.append(A),M.append(N);let R=S.map((rt)=>({offset:rt.offset,easing:rt.easing??\"linear\",opacity:rt.filter===\"brightness(1)\"?0:1})),tt={delay:r,duration:c*o,fill:\"both\"};Cr(N,R,tt),Cr(b,R.map((rt)=>({...rt,opacity:1-rt.opacity})),tt)};E(g,f.falls),E(v,f.lands)}g.style.transform=\"perspective(5em) rotateX(-90deg)\",Cr(g,f.falls,{delay:r,duration:c*o,fill:\"backwards\"}),v.style.transform=\"perspective(5em) rotateX(90deg)\",Cr(v,f.lands,{delay:r,duration:c*o,fill:\"forwards\"}),t.style.height=`${a}px`,x.append(h,p,v,g),t.replaceChildren(x)}var GC=new WeakMap,fg=new WeakSet,lg=(t)=>`translateX(${t}px)`,sg=(t)=>`scale(${t})`,ug=(t)=>String(Math.max(0,Math.min(1,t))),cg=(t)=>(\"transition\"in t)&&t.transition===\"direct\";function jC(t){if(t.duration!==void 0&&(!Number.isFinite(t.duration)||t.duration<0||t.duration>1e4))throw RangeError(\"duration must be between 0 and 10000 milliseconds\");if(t.flipDuration!==void 0&&(!Number.isFinite(t.flipDuration)||t.flipDuration<1||t.flipDuration>1e4))throw RangeError(\"flipDuration must be between 1 and 10000 milliseconds\")}var qC={validate(t){if(typeof t.value!==\"number\"&&typeof t.value!==\"bigint\")throw TypeError(\"value must be a number or bigint\");jC(t)},model:(t)=>CC(t.value,t),direction:OC};class JT{host;source;options;target;displayed;semantic;measurement;visual;measures=new Map;columns=new Map;sizes=new Map;scheduler;enhanced=!1;destroyed=!1;visible=!0;reset=!0;measurementPending=!1;hadClass;previousLeft;blur;blurIntensity=1;constructor(t,e,n){this.host=t,this.source=n,n.validate(e),this.options={...e},this.target=this.displayed=n.model(e);let i=t.ownerDocument,a=(r)=>{let l=i.createElement(\"span\");return l.className=r,l};this.semantic=a(\"rn-value\"),this.measurement=a(\"rn-measure\"),this.visual=a(\"rn-visual\"),this.measurement.setAttribute(\"aria-hidden\",\"true\"),this.visual.setAttribute(\"aria-hidden\",\"true\"),this.semantic.textContent=this.target.text,this.hadClass=t.classList.contains(\"rn-root\"),t.classList.add(\"rn-root\"),t.replaceChildren(this.semantic,this.measurement,this.visual);let o=i.defaultView;if(o&&typeof o.matchMedia===\"function\"&&typeof o.requestAnimationFrame===\"function\"&&typeof t.animate===\"function\")this.scheduler=mg.for(o),this.scheduler.add(this,t),this.scheduler.watch(this.measurement,this);this.prepare()}canAnimate(){return!!this.scheduler&&this.options.animated!==!1&&(this.options.duration??500)>0&&!this.scheduler.media.matches&&!this.host.ownerDocument.hidden&&(this.visible||this.options.pauseOffscreen===!1)&&this.target.rollable&&this.host.isConnected}update(t){if(this.destroyed)return;let e={...this.options,...t};this.source.validate(e);let n=this.source.model(e),i=n.text===this.target.text&&n.signature===this.target.signature;if(this.options.motionBlur&&!e.motionBlur)this.blur?.destroy(),this.blur=void 0,HC(this.visual);if(cg(this.options)!==cg(e))this.reset=!0;if(this.options=e,this.target=n,!this.canAnimate()){this.finish();return}if(i&&this.enhanced&&!this.reset)return;this.semantic.textContent=n.text,this.prepare()}prepare(){if(!this.canAnimate()){this.finish();return}this.measurementPending=!0,this.scheduler?.enqueue(this)}stage(){if(this.destroyed)return;if(!this.canAnimate())return()=>this.finish();return this.previousLeft=this.enhanced&&!this.reset?this.measurement.getBoundingClientRect().left:void 0,()=>this.stageMeasurement()}stageMeasurement(){let t=new Set(this.target.tokens.map((n)=>n.key));for(let[n,i]of this.measures){if(t.has(n))continue;this.scheduler?.unwatch(i),this.sizes.delete(i),i.remove(),this.measures.delete(n)}let e=null;for(let n of this.target.tokens){let i=this.measures.get(n.key);if(!i)i=this.host.ownerDocument.createElement(\"span\"),i.className=\"rn-token\",this.measures.set(n.key,i),this.scheduler?.watch(i,this);if(i.textContent!==n.text)i.textContent=n.text;let a=e?e.nextSibling:this.measurement.firstChild;if(i!==a)this.measurement.insertBefore(i,a);e=i}this.host.dataset.rnMeasuring=\"\"}measure(){if(this.destroyed)return;if(!this.canAnimate())return()=>this.finish();let t=this.measurement.getBoundingClientRect(),e=this.host.ownerDocument.defaultView;if(!e)return()=>this.finish();let n=e.getComputedStyle(this.measurement);if(n.direction===\"rtl\")return()=>this.finish();let i=parseFloat(n.width),a=parseFloat(n.height);if(!i||!a||!t.width||!t.height)return()=>this.finish();let o=t.width/i,r=t.height/a,l=parseFloat(n.getPropertyValue(\"--rn-blur\"));this.blurIntensity=Number.isFinite(l)?Math.max(0,l):1,this.sizes.set(this.measurement,{width:i,height:a});let s=new Map;for(let[u,f]of this.measures){let m=f.getBoundingClientRect(),d={width:m.width/o,height:m.height/r};this.sizes.set(f,d),s.set(u,{...d,x:(m.left-t.left)/o,y:(m.top-t.top)/r})}let c=this.previousLeft===void 0?0:(this.previousLeft-t.left)/o;return()=>this.commit(s,c)}makeColumn(t){let e=this.host.ownerDocument.createElement(\"span\");if(e.className=\"rn-slot\",e.dataset.rnKey=t.key,t.index!==void 0)e.dataset.rnWheel=\"\";if(this.options.mode===\"flap\")e.dataset.rnFlap=\"\";let n=this.host.ownerDocument.createElement(\"span\");return n.className=\"rn-reel\",e.append(n),this.visual.append(e),{token:t,element:e,reel:n,x:new ka(e,\"transform\"),opacity:new ka(e,\"opacity\"),roll:new ka(n,\"transform\"),exiting:!1,height:0,width:0}}face(t,e){let n=this.host.ownerDocument.createElement(\"span\");n.className=\"rn-face\",n.textContent=e,n.style.height=`${t.height}px`;let i=t.reel.children.length;n.style.position=\"absolute\",n.style.top=\"0\",n.style.left=\"0\",n.style.width=\"100%\",n.style.transform=`translateY(${i*t.height}px)`,t.reel.style.height=`${(i+1)*t.height}px`,t.reel.append(n)}rest(t){if(this.blur?.remove(t.reel),t.reel.replaceChildren(),t.reel.style.removeProperty(\"height\"),this.face(t,t.token.text),this.wrapInk(t),t.token.index===void 0)t.roll.set(1,sg);else t.roll.set(t.token.index,()=>\"translateY(0px)\")}wrapInk(t){if(this.options.mode===\"flap\")return;let e=this.host.ownerDocument.createElement(\"span\");e.className=\"rn-ink\",e.append(...t.reel.childNodes),t.reel.append(e)}finishEntry(t){if(!t.entry)return;if(t.entry.blurred)this.blur?.remove(t.reel);t.entry.track.cancel(),t.entry.element.replaceWith(t.reel),t.entry=void 0}enter(t,e,n,i){let a=this.host.ownerDocument.createElement(\"span\");a.className=\"rn-enter\",t.reel.replaceWith(a),a.append(t.reel);let o=new ka(a,\"transform\");t.entry={element:a,track:o,blurred:!1};let r=wf(NC(t.height*(i?.entryDistance??1),i?.entryDuration??e,i?.entryHold),n);if(this.options.motionBlur&&t.token.text.trim()){this.blur??=new Cf(this.host),this.blur.intensity=this.blurIntensity;let l={...r,points:r.points.map((s)=>s/t.height)};t.entry.blurred=this.blur.apply(t.reel,l,t.height,0,\"entry\")}o.play(r,(l)=>`translateY(${l}px)`,()=>this.finishEntry(t))}commit(t,e){if(this.destroyed)return;this.measurementPending=!1;let n=this.enhanced&&!this.reset,i=n?this.options.duration??500:0,a=GC.get(this.host),o=i?a?.widthDuration??i:0,r=this.options.mode===\"flap\",l=this.options.direction===\"up\"?1:this.options.direction===\"down\"?-1:this.source.direction(this.displayed,this.target);if(this.target.text!==this.displayed.text)this.host.dataset.rnTrend=l>0?\"up\":l<0?\"down\":\"none\";let s=new Map([...this.columns].map(([g,v])=>{let E=v.x.read();return[g,{...E,x:E.position,width:v.width}]})),c=QT(this.target.tokens.map((g)=>g.key),s),u=[...s.keys()].sort((g,v)=>s.get(g).x-s.get(v).x),f=QT(u,t),m=new Map(this.displayed.tokens.filter((g)=>g.index===void 0).map((g)=>[g.identity,g.key])),d=new Map(this.target.tokens.filter((g)=>g.index===void 0).map((g)=>[g.identity,g.key])),y=this.options.stagger===\"start\"||this.options.stagger===\"end\",x=this.target.tokens.map((g)=>{let v=this.columns.get(g.key);return!v||v.exiting||y&&g.index!==void 0&&v.token.text!==g.text}),T=zC(this.target.tokens.map((g,v)=>g.index!==void 0&&!x[v]),this.options.stagger),h=Math.max(0,...this.target.tokens.map((g,v)=>x[v]?T[v]-1:0)),p=Math.min(i*0.045,i*0.3/Math.max(1,h));for(let[g,v]of this.target.tokens.entries()){let E=t.get(v.key);if(!E)continue;let M=Math.max(0,T[g]-1)*p,S=m.get(v.identity),b=S!==void 0&&S!==v.key?s.get(S):void 0,A=this.columns.get(v.key),N=!A;if(!A){A=this.makeColumn(v),this.columns.set(v.key,A);let et=(b?.x??c.get(v.key)??E.x)+e;A.x.set(n?et+(E.x-et)*(b?0:a?.entryOrigin??0):E.x,lg),A.opacity.set(n?0:1,ug)}let R=A.token.text!==v.text,tt=Math.abs(A.height-E.height)>0.1,rt=A.exiting;A.exiting=!1,A.element.style.width=`${E.width}px`,A.element.style.height=`${E.height}px`,A.element.style.top=`${E.y}px`;let re=s.get(v.key);if(A.x.play(Ii(re?re.position+e:A.x.read().position,E.x,re?.velocity??0,o),lg),N||rt||!n){let et=A.opacity.read(),pt=Ii(et.position,1,et.velocity,v.index===void 0?Math.min(i,180):i?a?.fadeDuration??i:0),z=!r&&v.identity.startsWith(\"group:\")&&!b?(a?.entryDuration??i)*(a?.entryHold??0.14):0;A.opacity.play(N?wf(pt,M+z):pt,ug)}if(A.height=E.height,A.width=E.width,!n||tt)this.finishEntry(A);if(N&&r&&v.wheel&&i)A.roll.set(Math.max(0,v.wheel.indexOf(\" \")),()=>\"translateY(0px)\");if(r&&!tt&&(R||N)&&v.index!==void 0&&v.wheel&&i&&A.roll.read().position!==v.index){let et=A.roll.read(),pt=Math.round(et.position),z=ZT(pt,v.index,l,v.wheel.length),V=this.options.flipDuration??_C(i);this.blur?.remove(A.reel);let U;if(this.options.motionBlur&&this.blurIntensity>0)this.blur??=new Cf(this.host),this.blur.intensity=this.blurIntensity,U=this.blur.filterUrl(E.height);LC(A.reel,v.wheel,pt,z,E.height,V,M,U),A.token=v;let P=A;A.roll.play(wf(BC(pt,z,V),M),()=>\"translateY(0px)\",()=>this.rest(P))}else if(!N&&!tt&&R&&v.index!==void 0&&v.wheel&&A.token.index!==void 0&&i){let et=A.roll.read(),pt=cg(this.options)?DC(A.token.wheel,et.position,v.text):void 0,z=pt?.from??et.position,V=pt?.target??ZT(et.position,v.index,l,v.wheel.length),U=pt?.wheel??v.wheel,P=pt?Math.min(Math.max(0,et.velocity),(V-z)*1e4/i):et.velocity,Z=y?wf(Ii(z,V,P,i),M):Ii(z,V,P,i),ut=Math.floor(Math.min(...Z.points)),$t=Math.ceil(Math.max(...Z.points));if(A.entry)A.entry.blurred=!1;let le=this.blur?.remove(A.reel)??0;A.reel.replaceChildren();for(let Bt=ut;Bt<=$t;Bt++)this.face(A,Of(U,Bt));if(this.wrapInk(A),this.options.motionBlur)this.blur??=new Cf(this.host),this.blur.intensity=this.blurIntensity,this.blur.apply(A.reel,Z,E.height,le);A.token=pt?{...v,wheel:U,index:V}:v;let de=A;A.roll.play(Z,(Bt)=>`translateY(${(ut-Bt)*E.height}px)`,()=>this.rest(de))}else if(N||tt||R||!n)A.token=v,this.rest(A);if(N&&i&&v.index!==void 0&&!r)this.enter(A,i,M,a);if(b&&i&&(N||rt)){let et=A.roll.read(),pt=A;A.roll.play(Ii(N?0.96:et.position,1,et.velocity,Math.min(i,180)),sg,()=>this.rest(pt))}}for(let[g,v]of this.columns){if(t.has(g))continue;let E=s.get(g),M=d.get(v.token.identity),S=M?t.get(M):void 0;if(v.x.play(Ii(E.position+e,S?.x??f.get(g)??E.position,E.velocity,o),lg),v.exiting)continue;if(v.exiting=!0,S&&i){let A=v.roll.read();v.roll.play(Ii(A.position,1.04,A.velocity,Math.min(i,180)),sg)}let b=v.opacity.read();v.opacity.play(Ii(b.position,0,b.velocity,v.token.index===void 0?Math.min(i,180):i*0.65),ug,()=>{if(!v.exiting)return;this.removeColumn(v),this.columns.delete(g)})}this.enhanced=!0,this.reset=!1,this.displayed=this.target,this.host.dataset.rnReady=\"\"}removeColumn(t){this.blur?.remove(t.reel),this.finishEntry(t),t.x.cancel(),t.roll.cancel(),t.opacity.cancel(),t.element.remove()}refresh(){if(this.destroyed)return;this.reset=!0,this.prepare()}sizeChanged(t,e,n){if(this.measurementPending||!this.host.hasAttribute(\"data-rn-measuring\"))return!1;let i=this.sizes.get(t);return!i||Math.abs(i.width-e)>0.2||Math.abs(i.height-n)>0.2}visibility(t){if(this.visible===t)return;if(this.visible=t,t||this.options.pauseOffscreen!==!1)this.refresh()}finish(){if(this.destroyed)return;this.measurementPending=!1;for(let t of this.columns.values())this.removeColumn(t);this.columns.clear(),this.blur?.destroy(),this.blur=void 0,this.semantic.textContent=this.target.text,delete this.host.dataset.rnReady,delete this.host.dataset.rnMeasuring,delete this.host.dataset.rnTrend,this.enhanced=!1,this.reset=!0,this.displayed=this.target}destroy(){if(this.destroyed)return;this.finish(),this.destroyed=!0;for(let t of this.measures.values())this.scheduler?.unwatch(t);if(this.scheduler?.unwatch(this.measurement),this.scheduler?.remove(this,this.host),this.host.replaceChildren(this.host.ownerDocument.createTextNode(this.target.text)),!this.hadClass)this.host.classList.remove(\"rn-root\");fg.delete(this.host)}}function dg(t,e){if(fg.has(t))throw Error(\"A rolling number is already mounted on this element\");let n=new JT(t,e,qC);return fg.add(t),n}function PT(t){let e=t.timeline,n=e?Object.keys(e.counters):[],i=!1,a=!1,o=new Map,r=()=>{if(i||!e||!n.length)return;let l=document.querySelector(\".si-stage .si-figure\"),s=l?.querySelector(\".si-counters\"),c=l?.querySelector(\"svg.storyink\");if(!l||!s||!c)return;i=!0;let u=t.viewBox;for(let f of n){let m=c.querySelector(`.si-counter-value[data-counter=\"${CSS.escape(f)}\"]`);if(!m)continue;let d=m.getBBox(),y=e.counters[f],x=document.createElement(\"span\");x.className=\"si-counter-live\",x.dataset.node=y.node;let T=t.nodes.find((E)=>E.id===y.node);x.style.left=`${(T?.x??0)+d.x-u.x}px`,x.style.top=`${(T?.y??0)+d.y-u.y+1}px`,x.style.display=\"none\";let h=document.createElement(\"span\");h.textContent=y.prefix??\"\";let p=document.createElement(\"span\"),g=document.createElement(\"span\");g.textContent=y.suffix??\"\",x.append(h,p,g),s.append(x);let v=dg(p,{value:y.start,locales:\"en-US\",format:{minimumFractionDigits:y.decimals,maximumFractionDigits:y.decimals},duration:500,pauseOffscreen:!1});o.set(f,{ctl:v,el:x,target:y.start,node:y.node})}};return{update(l,s){if(!e||!n.length)return;r();let c=document.querySelector(\".si-stage .si-figure\");if(s!==a){a=s,c?.classList.toggle(\"si-live-counters\",a);for(let[u,f]of o)if(f.el.style.display=a?\"\":\"none\",a){let m=tg(e.counters[u],l.t);f.target=m,f.ctl.update({value:+m.toFixed(e.counters[u].decimals),animated:!1}),f.ctl.finish(),f.ctl.update({animated:!0})}}if(!a)return;for(let[u,f]of o){let m=l.el[f.node];f.el.style.opacity=m&&m.o<1?String(m.o):\"\",f.el.style.transform=m?.dy?`translateY(${m.dy}px)`:\"\";let d=e.counters[u],y=d.start;for(let x of d.events)if(l.t>=x.t)y=x.to;if(y!==f.target)f.target=y,f.ctl.update({value:y})}}}}var aE=I(pn(),1),nE=JSON.parse(document.getElementById(\"storyink-data\").textContent),$a=nE.scene,iE,YC=new Promise((t)=>iE=t);window.__storyink={ready:!1,whenReady:YC,duration:0,setTime:()=>{},version:nE.version,get lastExport(){return pg}};function IT(t){let n=document.querySelector(\".si-stage svg.storyink, svg.storyink\").cloneNode(!0);n.querySelectorAll(\".si-counter-value\").forEach((r)=>r.removeAttribute(\"fill-opacity\"));let i=document.getElementById(\"storyink-font\")?.textContent??\"\",a=document.getElementById(\"storyink-diagram-css\")?.textContent??\"\",o=document.createElementNS(\"http://www.w3.org/2000/svg\",\"style\");return o.textContent=`${i}\nsvg.storyink{${zx(t)}}\n${a}`,n.insertBefore(o,n.firstChild?.nextSibling??null),n.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),n.removeAttribute(\"data-copy\"),`<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n${new XMLSerializer().serializeToString(n)}`}function WT(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\")||\"diagram\"}function tE(t,e){let n=URL.createObjectURL(t),i=document.createElement(\"a\");i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1000)}var pg,XC=PT($a),KC={exportSvg(t){let e=IT(t);pg={kind:\"svg\",bytes:e.length,text:e},tE(new Blob([e],{type:\"image/svg+xml\"}),`${WT($a.title)}-${t}.svg`)},async exportPng(t){let e=IT(t);await document.fonts.ready;let n=URL.createObjectURL(new Blob([e],{type:\"image/svg+xml\"})),i=new Image;i.decoding=\"sync\",await new Promise((l,s)=>{i.onload=()=>l(),i.onerror=()=>s(Error(\"svg image failed to load\")),i.src=n});let a=2,o=document.createElement(\"canvas\");o.width=Math.ceil($a.viewBox.w*a),o.height=Math.ceil($a.viewBox.h*a);let r=o.getContext(\"2d\");r.fillStyle=Ll[t].bg,r.fillRect(0,0,o.width,o.height),r.drawImage(i,0,0,o.width,o.height),URL.revokeObjectURL(n),o.toBlob((l)=>{if(!l)return;pg={kind:\"png\",bytes:l.size},tE(l,`${WT($a.title)}-${t}@2x.png`)},\"image/png\")},onFrame(t,e){XC.update(t,e)},onReady(t){document.fonts.ready.then(()=>{setTimeout(()=>{let e;try{e=KT(document,$a,t)}catch(a){e={ok:!1,issues:[{kind:\"error\",ids:[],detail:String(a)}],checked:{}}}let n=document.getElementById(\"storyink-lint\");if(!n)n=document.createElement(\"script\"),n.setAttribute(\"type\",\"application/json\"),n.id=\"storyink-lint\",document.body.appendChild(n);n.textContent=JSON.stringify(e),window.__storyink.lint=e;let i=document.querySelector(\".si-app\");if(i)document.documentElement.dataset.contentHeight=String(Math.ceil(i.getBoundingClientRect().height));window.__storyink.ready=!0,document.documentElement.dataset.ready=\"1\",iE()},0)})}};document.documentElement.classList.remove(\"si-noscript\");eE.hydrateRoot(document.getElementById(\"storyink-root\"),aE.jsx(YT,{scene:$a,hooks:KC}));})();\n";
|
|
1
|
+
export declare const VIEWER_JS = "/*! storyink viewer 0.3.3 | MIT\n * Bundles:\n * react 19.3.0, react-dom 19.3.0, scheduler 0.28.0\n * MIT License. Copyright (c) Meta Platforms, Inc. and affiliates.\n * motion 13.4.3 (framer-motion 13.4.3, motion-dom 13.4.2, motion-utils 13.3.0)\n * MIT License. Copyright (c) 2024 Motion B.V.; Copyright (c) 2018 Framer B.V.\n * @kitlangton/rolling-number 0.4.1\n * MIT License. Copyright (c) 2026 Kit Langton.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n * associated documentation files (the \"Software\"), to deal in the Software without restriction,\n * including without limitation the rights to use, copy, modify, merge, publish, distribute,\n * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions: The above copyright notice and this\n * permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.\n */\n(()=>{var uE=Object.create;var{getPrototypeOf:cE,defineProperty:vg,getOwnPropertyNames:fE}=Object;var mE=Object.prototype.hasOwnProperty;function dE(t){return this[t]}var pE,hE,P=(t,e,n)=>{var i=t!=null&&typeof t===\"object\";if(i){var a=e?pE??=new WeakMap:hE??=new WeakMap,r=a.get(t);if(r)return r}n=t!=null?uE(cE(t)):{};let o=e||!t||!t.__esModule?vg(n,\"default\",{value:t,enumerable:!0}):n;if(t&&typeof t===\"object\"||typeof t===\"function\"){for(let l of fE(t))if(!mE.call(o,l))vg(o,l,{get:dE.bind(t,l),enumerable:!0})}if(i)a.set(t,o);return o};var En=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ag=En(function(Nt){function zf(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,a=t[i];if(0<Rs(a,e))t[i]=e,t[n]=a,n=i;else break t}}function Mn(t){return t.length===0?null:t[0]}function Hs(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,a=t.length,r=a>>>1;i<r;){var o=2*(i+1)-1,l=t[o],s=o+1,c=t[s];if(0>Rs(l,n))s<a&&0>Rs(c,l)?(t[i]=c,t[s]=n,i=s):(t[i]=l,t[o]=n,i=o);else if(s<a&&0>Rs(c,n))t[i]=c,t[s]=n,i=s;else break t}}return e}function Rs(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Nt.unstable_now=void 0;if(typeof performance===\"object\"&&typeof performance.now===\"function\")Rf=performance,Nt.unstable_now=function(){return Rf.now()};else _s=Date,_f=_s.now(),Nt.unstable_now=function(){return _s.now()-_f};var Rf,_s,_f,Zn=[],hi=[],gE=1,We=null,de=3,Bf=!1,Uo=!1,Ho=!1,Hf=!1,bg=typeof setTimeout===\"function\"?setTimeout:null,Sg=typeof clearTimeout===\"function\"?clearTimeout:null,xg=typeof setImmediate<\"u\"?setImmediate:null;function Bs(t){for(var e=Mn(hi);e!==null;){if(e.callback===null)Hs(hi);else if(e.startTime<=t)Hs(hi),e.sortIndex=e.expirationTime,zf(Zn,e);else break;e=Mn(hi)}}function Lf(t){if(Ho=!1,Bs(t),!Uo)if(Mn(Zn)!==null)Uo=!0,ar||(ar=!0,ir());else{var e=Mn(hi);e!==null&&Gf(Lf,e.startTime-t)}}var ar=!1,Lo=-1,Tg=5,Eg=-1;function Mg(){return Hf?!0:Nt.unstable_now()-Eg<Tg?!1:!0}function Df(){if(Hf=!1,ar){var t=Nt.unstable_now();Eg=t;var e=!0;try{t:{Uo=!1,Ho&&(Ho=!1,Sg(Lo),Lo=-1),Bf=!0;var n=de;try{e:{Bs(t);for(We=Mn(Zn);We!==null&&!(We.expirationTime>t&&Mg());){var i=We.callback;if(typeof i===\"function\"){We.callback=null,de=We.priorityLevel;var a=i(We.expirationTime<=t);if(t=Nt.unstable_now(),typeof a===\"function\"){We.callback=a,Bs(t),e=!0;break e}We===Mn(Zn)&&Hs(Zn),Bs(t)}else Hs(Zn);We=Mn(Zn)}if(We!==null)e=!0;else{var r=Mn(hi);r!==null&&Gf(Lf,r.startTime-t),e=!1}}break t}finally{We=null,de=n,Bf=!1}e=void 0}}finally{e?ir():ar=!1}}}var ir;if(typeof xg===\"function\")ir=function(){xg(Df)};else if(typeof MessageChannel<\"u\")Us=new MessageChannel,Uf=Us.port2,Us.port1.onmessage=Df,ir=function(){Uf.postMessage(null)};else ir=function(){bg(Df,0)};var Us,Uf;function Gf(t,e){Lo=bg(function(){t(Nt.unstable_now())},e)}Nt.unstable_IdlePriority=5;Nt.unstable_ImmediatePriority=1;Nt.unstable_LowPriority=4;Nt.unstable_NormalPriority=3;Nt.unstable_Profiling=null;Nt.unstable_UserBlockingPriority=2;Nt.unstable_cancelCallback=function(t){t.callback=null};Nt.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):Tg=0<t?Math.floor(1000/t):5};Nt.unstable_getCurrentPriorityLevel=function(){return de};Nt.unstable_next=function(t){switch(de){case 1:case 2:case 3:var e=3;break;default:e=de}var n=de;de=e;try{return t()}finally{de=n}};Nt.unstable_requestPaint=function(){Hf=!0};Nt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=de;de=t;try{return e()}finally{de=n}};Nt.unstable_scheduleCallback=function(t,e,n){var i=Nt.unstable_now();switch(typeof n===\"object\"&&n!==null?(n=n.delay,n=typeof n===\"number\"&&0<n?i+n:i):n=i,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5000}return a=n+a,t={id:gE++,callback:e,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>i?(t.sortIndex=n,zf(hi,t),Mn(Zn)===null&&t===Mn(hi)&&(Ho?(Sg(Lo),Lo=-1):Ho=!0,Gf(Lf,n-i))):(t.sortIndex=a,zf(Zn,t),Uo||Bf||(Uo=!0,ar||(ar=!0,ir()))),t};Nt.unstable_shouldYield=Mg;Nt.unstable_wrapCallback=function(t){var e=de;return function(){var n=de;de=e;try{return t.apply(this,arguments)}finally{de=n}}}});var Cg=En(function(PC,wg){wg.exports=Ag()});var jg=En(function(B){var Yf=Symbol.for(\"react.transitional.element\"),yE=Symbol.for(\"react.portal\"),vE=Symbol.for(\"react.fragment\"),xE=Symbol.for(\"react.strict_mode\"),bE=Symbol.for(\"react.profiler\"),SE=Symbol.for(\"react.consumer\"),TE=Symbol.for(\"react.context\"),EE=Symbol.for(\"react.forward_ref\"),ME=Symbol.for(\"react.suspense\"),AE=Symbol.for(\"react.memo\"),zg=Symbol.for(\"react.lazy\"),wE=Symbol.for(\"react.activity\"),CE=Symbol.for(\"react.view_transition\"),Og=Symbol.iterator;function OE(t){if(t===null||typeof t!==\"object\")return null;return t=Og&&t[Og]||t[\"@@iterator\"],typeof t===\"function\"?t:null}var Rg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_g=Object.assign,Bg={};function or(t,e,n){this.props=t,this.context=e,this.refs=Bg,this.updater=n||Rg}or.prototype.isReactComponent={};or.prototype.setState=function(t,e){if(typeof t!==\"object\"&&typeof t!==\"function\"&&t!=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,t,e,\"setState\")};or.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\"forceUpdate\")};function Ug(){}Ug.prototype=or.prototype;function Xf(t,e,n){this.props=t,this.context=e,this.refs=Bg,this.updater=n||Rg}var Kf=Xf.prototype=new Ug;Kf.constructor=Xf;_g(Kf,or.prototype);Kf.isPureReactComponent=!0;var Ng=Array.isArray;function qf(){}var St={H:null,A:null,T:null,S:null},Hg=Object.prototype.hasOwnProperty;function Zf(t,e,n){var i=n.ref;return{$$typeof:Yf,type:t,key:e,ref:i!==void 0?i:null,props:n}}function NE(t,e){return Zf(t.type,e,t.props)}function Qf(t){return typeof t===\"object\"&&t!==null&&t.$$typeof===Yf}function VE(t){var e={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+t.replace(/[=:]/g,function(n){return e[n]})}var Vg=/\\/+/g;function jf(t,e){return typeof t===\"object\"&&t!==null&&t.key!=null?VE(\"\"+t.key):e.toString(36)}function DE(t){switch(t.status){case\"fulfilled\":return t.value;case\"rejected\":throw t.reason;default:switch(typeof t.status===\"string\"?t.then(qf,qf):(t.status=\"pending\",t.then(function(e){t.status===\"pending\"&&(t.status=\"fulfilled\",t.value=e)},function(e){t.status===\"pending\"&&(t.status=\"rejected\",t.reason=e)})),t.status){case\"fulfilled\":return t.value;case\"rejected\":throw t.reason}}throw t}function rr(t,e,n,i,a){var r=typeof t;if(r===\"undefined\"||r===\"boolean\")t=null;var o=!1;if(t===null)o=!0;else switch(r){case\"bigint\":case\"string\":case\"number\":o=!0;break;case\"object\":switch(t.$$typeof){case Yf:case yE:o=!0;break;case zg:return o=t._init,rr(o(t._payload),e,n,i,a)}}if(o)return a=a(t),o=i===\"\"?\".\"+jf(t,0):i,Ng(a)?(n=\"\",o!=null&&(n=o.replace(Vg,\"$&/\")+\"/\"),rr(a,e,n,\"\",function(c){return c})):a!=null&&(Qf(a)&&(a=NE(a,n+(a.key==null||t&&t.key===a.key?\"\":(\"\"+a.key).replace(Vg,\"$&/\")+\"/\")+o)),e.push(a)),1;o=0;var l=i===\"\"?\".\":i+\":\";if(Ng(t))for(var s=0;s<t.length;s++)i=t[s],r=l+jf(i,s),o+=rr(i,e,n,r,a);else if(s=OE(t),typeof s===\"function\")for(t=s.call(t),s=0;!(i=t.next()).done;)i=i.value,r=l+jf(i,s++),o+=rr(i,e,n,r,a);else if(r===\"object\"){if(typeof t.then===\"function\")return rr(DE(t),e,n,i,a);throw e=String(t),Error(\"Objects are not valid as a React child (found: \"+(e===\"[object Object]\"?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e)+\"). If you meant to render a collection of children, use an array instead.\")}return o}function Ls(t,e,n){if(t==null)return t;var i=[],a=0;return rr(t,i,\"\",\"\",function(r){return e.call(n,r,a++)}),i}function zE(t){if(t._status===-1){var e=t._result,n=e();n.then(function(i){if(t._status===0||t._status===-1)t._status=1,t._result=i,n.status===void 0&&(n.status=\"fulfilled\",n.value=i)},function(i){if(t._status===0||t._status===-1)t._status=2,t._result=i,n.status===void 0&&(n.status=\"rejected\",n.reason=i)}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var Dg=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)};function Lg(t){var e=St.T,n={};n.types=e!==null?e.types:null,St.T=n;try{var i=t(),a=St.S;a!==null&&a(n,i),typeof i===\"object\"&&i!==null&&typeof i.then===\"function\"&&i.then(qf,Dg)}catch(r){Dg(r)}finally{e!==null&&n.types!==null&&(e.types=n.types),St.T=e}}function Gg(t){var e=St.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else Lg(Gg.bind(null,t))}var RE={map:Ls,forEach:function(t,e,n){Ls(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ls(t,function(){e++}),e},toArray:function(t){return Ls(t,function(e){return e})||[]},only:function(t){if(!Qf(t))throw Error(\"React.Children.only expected to receive a single React element child.\");return t}};B.Activity=wE;B.Children=RE;B.Component=or;B.Fragment=vE;B.Profiler=bE;B.PureComponent=Xf;B.StrictMode=xE;B.Suspense=ME;B.ViewTransition=CE;B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=St;B.__COMPILER_RUNTIME={__proto__:null,c:function(t){return St.H.useMemoCache(t)}};B.addTransitionType=Gg;B.cache=function(t){return function(){return t.apply(null,arguments)}};B.cacheSignal=function(){return null};B.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error(\"The argument must be a React element, but you passed \"+t+\".\");var i=_g({},t.props),a=t.key;if(e!=null)for(r in e.key!==void 0&&(a=\"\"+e.key),e)!Hg.call(e,r)||r===\"key\"||r===\"__self\"||r===\"__source\"||r===\"ref\"&&e.ref===void 0||(i[r]=e[r]);var r=arguments.length-2;if(r===1)i.children=n;else if(1<r){for(var o=Array(r),l=0;l<r;l++)o[l]=arguments[l+2];i.children=o}return Zf(t.type,a,i)};B.createContext=function(t){return t={$$typeof:TE,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:SE,_context:t},t};B.createElement=function(t,e,n){var i,a={},r=null;if(e!=null)for(i in e.key!==void 0&&(r=\"\"+e.key),e)Hg.call(e,i)&&i!==\"key\"&&i!==\"__self\"&&i!==\"__source\"&&(a[i]=e[i]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var l=Array(o),s=0;s<o;s++)l[s]=arguments[s+2];a.children=l}if(t&&t.defaultProps)for(i in o=t.defaultProps,o)a[i]===void 0&&(a[i]=o[i]);return Zf(t,r,a)};B.createRef=function(){return{current:null}};B.forwardRef=function(t){return{$$typeof:EE,render:t}};B.isValidElement=Qf;B.lazy=function(t){return{$$typeof:zg,_payload:{_status:-1,_result:t},_init:zE}};B.memo=function(t,e){return{$$typeof:AE,type:t,compare:e===void 0?null:e}};B.startTransition=Lg;B.unstable_useCacheRefresh=function(){return St.H.useCacheRefresh()};B.use=function(t){return St.H.use(t)};B.useActionState=function(t,e,n){return St.H.useActionState(t,e,n)};B.useCallback=function(t,e){return St.H.useCallback(t,e)};B.useContext=function(t){return St.H.useContext(t)};B.useDebugValue=function(){};B.useDeferredValue=function(t,e){return St.H.useDeferredValue(t,e)};B.useEffect=function(t,e){return St.H.useEffect(t,e)};B.useEffectEvent=function(t){return St.H.useEffectEvent(t)};B.useId=function(){return St.H.useId()};B.useImperativeHandle=function(t,e,n){return St.H.useImperativeHandle(t,e,n)};B.useInsertionEffect=function(t,e){return St.H.useInsertionEffect(t,e)};B.useLayoutEffect=function(t,e){return St.H.useLayoutEffect(t,e)};B.useMemo=function(t,e){return St.H.useMemo(t,e)};B.useOptimistic=function(t,e){return St.H.useOptimistic(t,e)};B.useReducer=function(t,e,n){return St.H.useReducer(t,e,n)};B.useRef=function(t){return St.H.useRef(t)};B.useState=function(t){return St.H.useState(t)};B.useSyncExternalStore=function(t,e,n){return St.H.useSyncExternalStore(t,e,n)};B.useTransition=function(){return St.H.useTransition()};B.version=\"19.3.0\"});var wt=En(function(WC,qg){qg.exports=jg()});var Kg=En(function(pe){var _E=wt();function Xg(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 gi(){}var ve={d:{f:gi,r:function(){throw Error(Xg(522))},D:gi,C:gi,L:gi,m:gi,X:gi,S:gi,M:gi},p:0,findDOMNode:null},BE=Symbol.for(\"react.portal\"),UE=Symbol.for(\"react.recoverable\"),Yg=Symbol.for(\"react.optimistic_key\");function HE(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:BE,key:i==null?null:i===Yg?Yg:\"\"+i,children:t,containerInfo:e,implementation:n}}var Go=_E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Gs(t,e){if(t===\"font\")return\"\";if(typeof e===\"string\")return e===\"use-credentials\"?e:\"\"}pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ve;pe.browser=function(t){return{$$typeof:UE,_reason:t}};pe.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Xg(299));return HE(t,e,null,n)};pe.flushSync=function(t){var e=Go.T,n=ve.p;try{if(Go.T=null,ve.p=2,t)return t()}finally{Go.T=e,ve.p=n,ve.d.f()}};pe.preconnect=function(t,e){typeof t===\"string\"&&(e?(e=e.crossOrigin,e=typeof e===\"string\"?e===\"use-credentials\"?e:\"\":void 0):e=null,ve.d.C(t,e))};pe.prefetchDNS=function(t){typeof t===\"string\"&&ve.d.D(t)};pe.preinit=function(t,e){if(typeof t===\"string\"&&e&&typeof e.as===\"string\"){var n=e.as,i=Gs(n,e.crossOrigin),a=typeof e.integrity===\"string\"?e.integrity:void 0,r=typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0;n===\"style\"?ve.d.S(t,typeof e.precedence===\"string\"?e.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:r}):n===\"script\"&&ve.d.X(t,{crossOrigin:i,integrity:a,fetchPriority:r,nonce:typeof e.nonce===\"string\"?e.nonce:void 0})}};pe.preinitModule=function(t,e){if(typeof t===\"string\")if(typeof e===\"object\"&&e!==null){if(e.as==null||e.as===\"script\"){var n=Gs(e.as,e.crossOrigin);ve.d.M(t,{crossOrigin:n,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0})}}else e==null&&ve.d.M(t)};pe.preload=function(t,e){if(typeof t===\"string\"&&typeof e===\"object\"&&e!==null&&typeof e.as===\"string\"){var n=e.as,i=Gs(n,e.crossOrigin);ve.d.L(t,n,{crossOrigin:i,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,type:typeof e.type===\"string\"?e.type:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy===\"string\"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet===\"string\"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes===\"string\"?e.imageSizes:void 0,media:typeof e.media===\"string\"?e.media:void 0})}};pe.preloadModule=function(t,e){if(typeof t===\"string\")if(e){var n=Gs(e.as,e.crossOrigin);ve.d.m(t,{as:typeof e.as===\"string\"&&e.as!==\"script\"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity===\"string\"?e.integrity:void 0,nonce:typeof e.nonce===\"string\"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority===\"string\"?e.fetchPriority:void 0})}else ve.d.m(t)};pe.requestFormReset=function(t){ve.d.r(t)};pe.unstable_batchedUpdates=function(t,e){return t(e)};pe.useFormState=function(t,e,n){return Go.H.useFormState(t,e,n)};pe.useFormStatus=function(){return Go.H.useHostTransitionStatus()};pe.version=\"19.3.0\"});var kf=En(function(eO,Qg){function Zg(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!==\"function\")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zg)}catch(t){console.error(t)}}Zg(),Qg.exports=Kg()});var Vx=En(function(yc){var Zt=Cg(),N0=wt(),LE=kf();function C(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 V0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Nl(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function D0(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 z0(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 kg(t){if(Nl(t)!==t)throw Error(C(188))}function GE(t){var e=t.alternate;if(!e){if(e=Nl(t),e===null)throw Error(C(188));return e!==t?null:t}for(var n=t,i=e;;){var a=n.return;if(a===null)break;var r=a.alternate;if(r===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return kg(a),t;if(r===i)return kg(a),e;r=r.sibling}throw Error(C(188))}if(n.return!==i.return)n=a,i=r;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,i=r;break}if(l===i){o=!0,i=a,n=r;break}l=l.sibling}if(!o){for(l=r.child;l;){if(l===n){o=!0,n=r,i=a;break}if(l===i){o=!0,i=r,n=a;break}l=l.sibling}if(!o)throw Error(C(189))}}if(n.alternate!==i)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?t:e}function R0(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R0(t),e!==null)return e;t=t.sibling}return null}function De(t,e,n,i,a,r){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,i,a,r)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&De(t.child,e,n,i,a,r))return!0;t=t.sibling}return!1}function Na(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Fg(t){var e=!1;for(t=t.return;t!==null;){if(t.tag===4&&(e=!0),t.tag===3||t.tag===5||t.tag===27)break;t=t.return}return e}function _0(t){var e=[null,null],n=Na(t);if(n===null)return e;return B0(e,t,n.child,{foundSelf:!1}),e}function B0(t,e,n,i){for(;n!==null;){if(n===e)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&B0(t,e,n.child,i))return!0;n=n.sibling}return!1}function Kt(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(C(559))}}var dr=null,Mm=null;function jE(t,e,n){return t===n?!0:t===e?(dr=t,!0):!1}function qE(t,e,n){return t===n?(Mm=t,!1):t===e?(Mm!==null&&(dr=t),!0):!1}function $g(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t?t:null}function Am(t,e,n){for(var i=0,a=t;a;a=n(a))i++;a=0;for(var r=e;r;r=n(r))a++;for(;0<i-a;)t=n(t),i--;for(;0<a-i;)e=n(e),a--;for(;i--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var vt=Object.assign,YE=Symbol.for(\"react.element\"),js=Symbol.for(\"react.transitional.element\"),Zo=Symbol.for(\"react.portal\"),pr=Symbol.for(\"react.fragment\"),U0=Symbol.for(\"react.strict_mode\"),wm=Symbol.for(\"react.profiler\"),H0=Symbol.for(\"react.consumer\"),Vn=Symbol.for(\"react.context\"),Hd=Symbol.for(\"react.forward_ref\"),Cm=Symbol.for(\"react.suspense\"),Om=Symbol.for(\"react.suspense_list\"),Ld=Symbol.for(\"react.memo\"),bi=Symbol.for(\"react.lazy\"),Nm=Symbol.for(\"react.activity\"),XE=Symbol.for(\"react.legacy_hidden\"),KE=Symbol.for(\"react.memo_cache_sentinel\"),Vm=Symbol.for(\"react.view_transition\"),ZE=Symbol.for(\"react.recoverable\"),Jg=Symbol.iterator;function jo(t){if(t===null||typeof t!==\"object\")return null;return t=Jg&&t[Jg]||t[\"@@iterator\"],typeof t===\"function\"?t:null}var QE=Symbol.for(\"react.client.reference\");function Dm(t){if(t==null)return null;if(typeof t===\"function\")return t.$$typeof===QE?null:t.displayName||t.name||null;if(typeof t===\"string\")return t;switch(t){case pr:return\"Fragment\";case wm:return\"Profiler\";case U0:return\"StrictMode\";case Cm:return\"Suspense\";case Om:return\"SuspenseList\";case Nm:return\"Activity\";case Vm:return\"ViewTransition\"}if(typeof t===\"object\")switch(t.$$typeof){case Zo:return\"Portal\";case Vn:return t.displayName||\"Context\";case H0:return(t._context.displayName||\"Context\")+\".Consumer\";case Hd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||\"\",t=t!==\"\"?\"ForwardRef(\"+t+\")\":\"ForwardRef\"),t;case Ld:return e=t.displayName||null,e!==null?e:Dm(t.type)||\"Memo\";case bi:e=t._payload,t=t._init;try{return Dm(t(e))}catch(n){}}return null}var Qo=Array.isArray,_=N0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt=LE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ga={pending:!1,data:null,method:null,action:null},zm=[],hr=-1;function Hn(t){return{current:t}}function ae(t){0>hr||(t.current=zm[hr],zm[hr]=null,hr--)}function Mt(t,e){hr++,zm[hr]=t.current,t.current=e}var _n=Hn(null),dl=Hn(null),Ni=Hn(null),Eu=Hn(null);function Mu(t,e){switch(Mt(Ni,e),Mt(dl,t),Mt(_n,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)?(t=t.namespaceURI)?s0(t):0:0;break;default:if(t=e.tagName,e=e.namespaceURI)e=s0(e),t=rx(e,t);else switch(t){case\"svg\":t=1;break;case\"math\":t=2;break;default:t=0}}ae(_n),Mt(_n,t)}function Br(){ae(_n),ae(dl),ae(Ni)}function Rm(t){var e=t.memoizedState;e!==null&&(Zr._currentValue=e.memoizedState,Mt(Eu,t)),e=_n.current;var n=rx(e,t.type);e!==n&&(Mt(dl,t),Mt(_n,n))}function Au(t){dl.current===t&&(ae(_n),ae(dl)),Eu.current===t&&(ae(Eu),Zr._currentValue=ga)}var Ff,Pg;function vi(t){if(Ff===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\\n( *(at )?)/);Ff=e&&e[1]||\"\",Pg=-1<n.stack.indexOf(`\n at`)?\" (<anonymous>)\":-1<n.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\n`+Ff+t+Pg}var $f=!1;function Jf(t,e){if(!t||$f)return\"\";$f=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect===\"object\"&&Reflect.construct){try{Reflect.construct(f,[])}catch(y){var m=y}Reflect.construct(t,[],f)}else{try{f.call()}catch(y){m=y}f=!1;try{var d=Object.getOwnPropertyDescriptor(t.prototype,\"props\");Object.defineProperty(t.prototype,\"props\",{configurable:!0,set:function(){throw Error()}}),f=!0,new t}finally{f&&(d!==void 0?Object.defineProperty(t.prototype,\"props\",d):delete t.prototype.props)}}}else{try{throw Error()}catch(y){m=y}(f=t())&&typeof f.catch===\"function\"&&f.catch(function(){})}}catch(y){if(y&&m&&typeof y.stack===\"string\")return[y.stack,m.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,\"name\");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var r=i.DetermineComponentFrameRoot(),o=r[0],l=r[1];if(o&&l){var s=o.split(`\n`),c=l.split(`\n`);for(a=i=0;i<s.length&&!s[i].includes(\"DetermineComponentFrameRoot\");)i++;for(;a<c.length&&!c[a].includes(\"DetermineComponentFrameRoot\");)a++;if(i===s.length||a===c.length)for(i=s.length-1,a=c.length-1;1<=i&&0<=a&&s[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==c[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==c[a]){var u=`\n`+s[i].replace(\" at new \",\" at \");return t.displayName&&u.includes(\"<anonymous>\")&&(u=u.replace(\"<anonymous>\",t.displayName)),u}while(1<=i&&0<=a);break}}}finally{$f=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:\"\")?vi(n):\"\"}function kE(t,e){switch(t.tag){case 26:case 27:case 5:return vi(t.type);case 16:return vi(\"Lazy\");case 13:return t.child!==e&&e!==null?vi(\"Suspense Fallback\"):vi(\"Suspense\");case 19:return vi(\"SuspenseList\");case 0:case 15:return Jf(t.type,!1);case 11:return Jf(t.type.render,!1);case 1:return Jf(t.type,!0);case 31:return vi(\"Activity\");case 30:return vi(\"ViewTransition\");default:return\"\"}}function Ig(t){try{var e=\"\",n=null;do e+=kE(t,n),n=t,t=t.return;while(t);return e}catch(i){return`\nError generating stack: `+i.message+`\n`+i.stack}}var _m=Object.prototype.hasOwnProperty,Gd=Zt.unstable_scheduleCallback,Pf=Zt.unstable_cancelCallback,FE=Zt.unstable_shouldYield,$E=Zt.unstable_requestPaint,Ke=Zt.unstable_now,JE=Zt.unstable_getCurrentPriorityLevel,L0=Zt.unstable_ImmediatePriority,G0=Zt.unstable_UserBlockingPriority,wu=Zt.unstable_NormalPriority,PE=Zt.unstable_LowPriority,j0=Zt.unstable_IdlePriority,IE=Zt.log,WE=Zt.unstable_setDisableYieldValue,Vl=null,Ze=null;function Ei(t){if(typeof IE===\"function\"&&WE(t),Ze&&typeof Ze.setStrictMode===\"function\")try{Ze.setStrictMode(Vl,t)}catch(e){}}var Qe=Math.clz32?Math.clz32:nM,tM=Math.log,eM=Math.LN2;function nM(t){return t>>>=0,t===0?32:31-(tM(t)/eM|0)|0}var qs=256,Ys=262144,Xs=4194304;function ca(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&-t;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 Iu(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var a=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var l=i&134217727;return l!==0?(i=l&~r,i!==0?a=ca(i):(o&=l,o!==0?a=ca(o):n||(n=l&~t,n!==0&&(a=ca(n))))):(l=i&~r,l!==0?a=ca(l):o!==0?a=ca(o):n||(n=i&~t,n!==0&&(a=ca(n)))),a===0?0:e!==0&&e!==a&&(e&r)===0&&(r=a&-a,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:a}function Dl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function q0(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-Qe(n),a=1<<i;e|=t[i],n&=~a}return e}function iM(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+5000;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 Y0(){var t=Xs;return Xs<<=1,(Xs&62914560)===0&&(Xs=4194304),t}function If(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function zl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function aM(t,e,n,i,a,r){var o=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{entanglements:l,expirationTimes:s,hiddenUpdates:c}=t;for(n=o&~n;0<n;){var u=31-Qe(n),f=1<<u;l[u]=0,s[u]=-1;var m=c[u];if(m!==null)for(c[u]=null,u=0;u<m.length;u++){var d=m[u];d!==null&&(d.lane&=-536870913)}n&=~f}i!==0&&X0(t,i,0),r!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function X0(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Qe(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function K0(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Qe(n),a=1<<i;a&e|t[i]&e&&(t[i]|=e),n&=~a}}function Z0(t,e){var n=e&-e;return n=(n&42)!==0?1:jd(n),(n&(t.suspendedLanes|e))!==0?0:n}function jd(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 qd(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Q0(){var t=rt.p;if(t!==0)return t;return t=window.event,t===void 0?32:Cx(t.type)}function Wg(t,e){var n=rt.p;try{return rt.p=t,e()}finally{rt.p=n}}var ai=Math.random().toString(36).slice(2),ne=\"__reactFiber$\"+ai,ze=\"__reactProps$\"+ai,Fr=\"__reactContainer$\"+ai,ty=\"__reactEvents$\"+ai,rM=\"__reactListeners$\"+ai,oM=\"__reactHandles$\"+ai,ey=\"__reactResources$\"+ai,Rl=\"__reactMarker$\"+ai,Cu=\"__reactLoad$\"+ai;function Wu(t){delete t[ne],delete t[ze],delete t[rM],delete t[oM]}function pa(t){var e;if(e=t[ne])return e;for(var n=t.parentNode;n;){if(e=n[Fr]||n[ne]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=g0(t);t!==null;){if(n=t[ne])return n;t=g0(t)}return e}t=n,n=t.parentNode}return null}function $r(t){if(t=t[ne]||t[Fr]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ko(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(C(33))}function Ar(t){var e=t[ey];return e||(e=t[ey]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[Rl]=!0}function k0(t){t[Cu]=void 0}var F0=new Set,$0={};function Va(t,e){Ur(t,e),Ur(t+\"Capture\",e)}function Ur(t,e){$0[t]=e;for(t=0;t<e.length;t++)F0.add(e[t])}var lM=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]*$\"),ny={},iy={};function sM(t){if(_m.call(iy,t))return!0;if(_m.call(ny,t))return!1;if(lM.test(t))return iy[t]=!0;return ny[t]=!0,!1}var nt=!1;function ay(){var t=nt;return nt=!1,t}function iu(t,e,n){if(sM(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":t.removeAttribute(e);return;case\"boolean\":var i=e.toLowerCase().slice(0,5);if(i!==\"data-\"&&i!==\"aria-\"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Ks(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 Qn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":t.removeAttribute(n);return}t.setAttributeNS(e,n,i)}}function je(t){switch(typeof t){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return t;case\"object\":return t;default:return\"\"}}function J0(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()===\"input\"&&(e===\"checkbox\"||e===\"radio\")}function uM(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<\"u\"&&typeof i.get===\"function\"&&typeof i.set===\"function\"){var{get:a,set:r}=i;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=\"\"+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=\"\"+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Bm(t){if(!t._valueTracker){var e=J0(t)?\"checked\":\"value\";t._valueTracker=uM(t,e,\"\"+t[e])}}function P0(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i=\"\";return t&&(i=J0(t)?t.checked?\"true\":\"false\":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var cM=/[\\n\"\\\\]/g;function rn(t){return t.replace(cM,function(e){return\"\\\\\"+e.charCodeAt(0).toString(16)+\" \"})}function Um(t,e,n,i,a,r,o,l){if(t.name=\"\",o!=null&&typeof o!==\"function\"&&typeof o!==\"symbol\"&&typeof o!==\"boolean\"?t.type=o:t.removeAttribute(\"type\"),e!=null)if(o===\"number\"){if(e===0&&t.value===\"\"||t.value!=e)t.value=\"\"+je(e)}else t.value!==\"\"+je(e)&&(t.value=\"\"+je(e));else o!==\"submit\"&&o!==\"reset\"||t.removeAttribute(\"value\");e!=null?o===\"number\"&&t.value==e?Wf(t,je(t.value)):Wf(t,je(e)):n!=null?Wf(t,je(n)):i!=null&&t.removeAttribute(\"value\"),a==null&&r!=null&&(t.defaultChecked=!!r),a!=null&&(t.checked=a&&typeof a!==\"function\"&&typeof a!==\"symbol\"),l!=null&&typeof l!==\"function\"&&typeof l!==\"symbol\"&&typeof l!==\"boolean\"?t.name=\"\"+je(l):t.removeAttribute(\"name\")}function I0(t,e,n,i,a,r,o,l){if(r!=null&&typeof r!==\"function\"&&typeof r!==\"symbol\"&&typeof r!==\"boolean\"&&(t.type=r),e!=null||n!=null){if(!(r!==\"submit\"&&r!==\"reset\"||e!==void 0&&e!==null)){Bm(t);return}n=n!=null?\"\"+je(n):\"\",e=e!=null?\"\"+je(e):n,l||e===t.value||(t.value=e),t.defaultValue=e}i=i!=null?i:a,i=typeof i!==\"function\"&&typeof i!==\"symbol\"&&!!i,t.checked=l?t.checked:!!i,t.defaultChecked=!!i,o!=null&&typeof o!==\"function\"&&typeof o!==\"symbol\"&&typeof o!==\"boolean\"&&(t.name=o),Bm(t)}function Wf(t,e){t.defaultValue!==\"\"+e&&(t.defaultValue=\"\"+e)}function wr(t,e,n,i){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e[\"$\"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty(\"$\"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&i&&(t[n].defaultSelected=!0)}else{n=\"\"+je(n),e=null;for(a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,i&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function W0(t,e,n){if(e!=null&&(e=\"\"+je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?\"\"+je(n):\"\"}function tv(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(C(92));if(Qo(i)){if(1<i.length)throw Error(C(93));i=i[0]}n=i}n==null&&(n=\"\"),e=n}n=je(e),t.defaultValue=n,i=t.textContent,i===n&&i!==\"\"&&i!==null&&(t.value=i),Bm(t)}function Hr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fM=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 ry(t,e,n){var i=e.indexOf(\"--\")===0;n==null||typeof n===\"boolean\"||n===\"\"?i?t.setProperty(e,\"\"):e===\"float\"?t.cssFloat=\"\":t[e]=\"\":i?t.setProperty(e,n):typeof n!==\"number\"||n===0||fM.has(e)?e===\"float\"?t.cssFloat=n:t[e]=(\"\"+n).trim():t[e]=n+\"px\"}function ev(t,e,n){if(e!=null&&typeof e!==\"object\")throw Error(C(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf(\"--\")===0?t.setProperty(i,\"\"):i===\"float\"?t.cssFloat=\"\":t[i]=\"\",nt=!0);for(var a in e)i=e[a],e.hasOwnProperty(a)&&n[a]!==i&&(ry(t,a,i),nt=!0)}else for(var r in e)e.hasOwnProperty(r)&&ry(t,r,e[r])}function Yd(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 mM=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\"],[\"maskType\",\"mask-type\"],[\"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\"]]),dM=/^[\\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 au(t){return dM.test(\"\"+t)?\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\":t}function Dn(){}var Hm=null;function Xd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gr=null,Cr=null;function oy(t){var e=$r(t);if(e&&(t=e.stateNode)){var n=t[ze]||null;t:switch(t=e.stateNode,e.type){case\"input\":if(Um(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;n=n.querySelectorAll('input[name=\"'+rn(\"\"+e)+'\"][type=\"radio\"]');for(e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var a=i[ze]||null;if(!a)throw Error(C(90));Um(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&P0(i)}break t;case\"textarea\":W0(t,n.value,n.defaultValue);break t;case\"select\":e=n.value,e!=null&&wr(t,!!n.multiple,e,!1)}}}var tm=!1;function nv(t,e,n){if(tm)return t(e,n);tm=!0;try{var i=t(e);return i}finally{if(tm=!1,gr!==null||Cr!==null){if(dc(),gr&&(e=gr,t=Cr,Cr=gr=null,oy(e),t))for(e=0;e<t.length;e++)oy(t[e])}}}function pl(t,e){var n=t.stateNode;if(n===null)return null;var i=n[ze]||null;if(i===null)return null;n=i[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\":(i=!i.disabled)||(t=t.type,i=!(t===\"button\"||t===\"input\"||t===\"select\"||t===\"textarea\")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!==\"function\")throw Error(C(231,e,typeof n));return n}var In=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),Lm=!1;if(In)try{fa={},Object.defineProperty(fa,\"passive\",{get:function(){Lm=!0}}),window.addEventListener(\"test\",fa,fa),window.removeEventListener(\"test\",fa,fa)}catch(t){Lm=!1}var fa,Mi=null,Kd=null,ru=null;function iv(){if(ru)return ru;var t,e=Kd,n=e.length,i,a=\"value\"in Mi?Mi.value:Mi.textContent,r=a.length;for(t=0;t<n&&e[t]===a[t];t++);var o=n-t;for(i=1;i<=o&&e[n-i]===a[r-i];i++);return ru=a.slice(t,1<i?1-i:void 0)}function ou(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 Zs(){return!0}function ly(){return!1}function Te(t){function e(n,i,a,r,o){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(r):r[l]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Zs:ly,this.isPropagationStopped=ly,this}return vt(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=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!==\"unknown\"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),e}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=Te(Ki),_l=vt({},Ki,{view:0,detail:0}),pM=Te(_l),em,nm,qo,ec=vt({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zd,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){if(\"movementX\"in t)return t.movementX;return t!==qo&&(qo&&t.type===\"mousemove\"?(em=t.screenX-qo.screenX,nm=t.screenY-qo.screenY):nm=em=0,qo=t),em},movementY:function(t){return\"movementY\"in t?t.movementY:nm}}),sy=Te(ec),hM=vt({},ec,{dataTransfer:0}),gM=Te(hM),yM=vt({},_l,{relatedTarget:0}),im=Te(yM),vM=vt({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),xM=Te(vM),bM=vt({},Ki,{clipboardData:function(t){return\"clipboardData\"in t?t.clipboardData:window.clipboardData}}),SM=Te(bM),TM=vt({},Ki,{data:0}),uy=Te(TM),EM={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},MM={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\"},AM={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function wM(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=AM[t])?!!e[t]:!1}function Zd(){return wM}var CM=vt({},_l,{key:function(t){if(t.key){var e=EM[t.key]||t.key;if(e!==\"Unidentified\")return e}return t.type===\"keypress\"?(t=ou(t),t===13?\"Enter\":String.fromCharCode(t)):t.type===\"keydown\"||t.type===\"keyup\"?MM[t.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zd,charCode:function(t){return t.type===\"keypress\"?ou(t):0},keyCode:function(t){return t.type===\"keydown\"||t.type===\"keyup\"?t.keyCode:0},which:function(t){return t.type===\"keypress\"?ou(t):t.type===\"keydown\"||t.type===\"keyup\"?t.keyCode:0}}),OM=Te(CM),NM=vt({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cy=Te(NM),VM=vt({},Ki,{submitter:0}),DM=Te(VM),zM=vt({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zd}),RM=Te(zM),_M=vt({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),BM=Te(_M),UM=vt({},ec,{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}),HM=Te(UM),LM=vt({},Ki,{newState:0,oldState:0,source:0}),GM=Te(LM),jM=[9,13,27,32],Qd=In&&\"CompositionEvent\"in window,tl=null;In&&\"documentMode\"in document&&(tl=document.documentMode);var qM=In&&\"TextEvent\"in window&&!tl,av=In&&(!Qd||tl&&8<tl&&11>=tl),fy=String.fromCharCode(32),my=!1;function rv(t,e){switch(t){case\"keyup\":return jM.indexOf(e.keyCode)!==-1;case\"keydown\":return e.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function ov(t){return t=t.detail,typeof t===\"object\"&&\"data\"in t?t.data:null}var yr=!1;function YM(t,e){switch(t){case\"compositionend\":return ov(e);case\"keypress\":if(e.which!==32)return null;return my=!0,fy;case\"textInput\":return t=e.data,t===fy&&my?null:t;default:return null}}function XM(t,e){if(yr)return t===\"compositionend\"||!Qd&&rv(t,e)?(t=iv(),ru=Kd=Mi=null,yr=!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 av&&e.locale!==\"ko\"?null:e.data;default:return null}}var KM={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 dy(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e===\"input\"?!!KM[t.type]:e===\"textarea\"?!0:!1}function lv(t,e,n,i){gr?Cr?Cr.push(i):Cr=[i]:gr=i,e=$u(e,\"onChange\"),0<e.length&&(n=new tc(\"onChange\",\"change\",null,n,i),t.push({event:n,listeners:e}))}var el=null,hl=null;function ZM(t){nx(t,0)}function nc(t){var e=ko(t);if(P0(e))return t}function py(t,e){if(t===\"change\")return e}var sv=!1;if(In){if(In){if($o=\"oninput\"in document,!$o)lu=document.createElement(\"div\"),lu.setAttribute(\"oninput\",\"return;\"),$o=typeof lu.oninput===\"function\";Fo=$o}else Fo=!1;sv=Fo&&(!document.documentMode||9<document.documentMode)}var Fo,$o,lu;function hy(){el&&(el.detachEvent(\"onpropertychange\",uv),hl=el=null)}function uv(t){if(t.propertyName===\"value\"&&nc(hl)){var e=[];lv(e,hl,t,Xd(t)),nv(ZM,e)}}function QM(t,e,n){t===\"focusin\"?(hy(),el=e,hl=n,el.attachEvent(\"onpropertychange\",uv)):t===\"focusout\"&&hy()}function kM(t){if(t===\"selectionchange\"||t===\"keyup\"||t===\"keydown\")return nc(hl)}function FM(t,e){if(t===\"click\")return nc(e)}function $M(t,e){if(t===\"input\"||t===\"change\")return nc(e)}function JM(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Fe=typeof Object.is===\"function\"?Object.is:JM;function gl(t,e){if(Fe(t,e))return!0;if(typeof t!==\"object\"||t===null||typeof e!==\"object\"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!_m.call(e,a)||!Fe(t[a],e[a]))return!1}return!0}function Gm(t){if(t=t||(typeof document<\"u\"?document:void 0),typeof t>\"u\")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function gy(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yy(t,e){var n=gy(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=gy(n)}}function cv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cv(t,e.parentNode):(\"contains\"in t)?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fv(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Gm(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href===\"string\"}catch(i){n=!1}if(n)t=e.contentWindow;else break;e=Gm(t.document)}return e}function kd(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 PM=In&&\"documentMode\"in document&&11>=document.documentMode,vr=null,jm=null,nl=null,qm=!1;function vy(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qm||vr==null||vr!==Gm(i)||(i=vr,(\"selectionStart\"in i)&&kd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),nl&&gl(nl,i)||(nl=i,i=$u(jm,\"onSelect\"),0<i.length&&(e=new tc(\"onSelect\",\"select\",null,e,n),t.push({event:e,listeners:i}),e.target=vr)))}function sa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\"Webkit\"+t]=\"webkit\"+e,n[\"Moz\"+t]=\"moz\"+e,n}var xr={animationend:sa(\"Animation\",\"AnimationEnd\"),animationiteration:sa(\"Animation\",\"AnimationIteration\"),animationstart:sa(\"Animation\",\"AnimationStart\"),transitionrun:sa(\"Transition\",\"TransitionRun\"),transitionstart:sa(\"Transition\",\"TransitionStart\"),transitioncancel:sa(\"Transition\",\"TransitionCancel\"),transitionend:sa(\"Transition\",\"TransitionEnd\")},am={},mv={};In&&(mv=document.createElement(\"div\").style,(\"AnimationEvent\"in window)||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),(\"TransitionEvent\"in window)||delete xr.transitionend.transition);function Da(t){if(am[t])return am[t];if(!xr[t])return t;var e=xr[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mv)return am[t]=e[n];return t}var dv=Da(\"animationend\"),pv=Da(\"animationiteration\"),hv=Da(\"animationstart\"),IM=Da(\"transitionrun\"),WM=Da(\"transitionstart\"),t2=Da(\"transitioncancel\"),gv=Da(\"transitionend\"),yv=new Map,Ym=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(\" \");Ym.push(\"scrollEnd\");function vn(t,e){yv.set(t,e),Va(e,[t])}var e2=0;function Wn(t,e){if(t.name!=null&&t.name!==\"auto\")return t.name;if(e.autoName!==null)return e.autoName;t=yn.identifierPrefix;var n=e2++;return t=\"_\"+t+\"t_\"+n.toString(32)+\"_\",e.autoName=t}function xy(t){if(t==null||typeof t===\"string\")return t;var e=null,n=_r;if(n!==null)for(var i=0;i<n.length;i++){var a=t[n[i]];if(a!=null){if(a===\"none\")return\"none\";e=e==null?a:e+(\" \"+a)}}return e==null?t.default:e}function ri(t,e){return t=xy(t),e=xy(e),e==null?t===\"auto\"?null:t:e===\"auto\"?null:e}var Ou=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)},en=[],br=0,Fd=0;function ic(){for(var t=br,e=Fd=br=0;e<t;){var n=en[e];en[e++]=null;var i=en[e];en[e++]=null;var a=en[e];en[e++]=null;var r=en[e];if(en[e++]=null,i!==null&&a!==null){var o=i.pending;o===null?a.next=a:(a.next=o.next,o.next=a),i.pending=a}r!==0&&vv(n,a,r)}}function ac(t,e,n,i){en[br++]=t,en[br++]=e,en[br++]=n,en[br++]=i,Fd|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function $d(t,e,n,i){return ac(t,e,n,i),Nu(t)}function za(t,e){return ac(t,null,null,e),Nu(t)}function vv(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var a=!1,r=t.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(a=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,a&&e!==null&&(a=31-Qe(n),t=r.hiddenUpdates,i=t[a],i===null?t[a]=[e]:i.push(e),e.lane=n|536870912),r):null}function Nu(t){if(50<ml)throw ml=0,yu=null,Error(C(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Sr={};function n2(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,i){return new n2(t,e,n,i)}function Jd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Jn(t,e){var n=t.alternate;return n===null?(n=Ne(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&1206910976,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 xv(t,e){t.flags&=1206910978;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 su(t,e,n,i,a,r){var o=0;if(i=t,typeof i===\"function\")Jd(i)&&(o=1);else if(typeof i===\"string\")o=OA(t,n,_n.current)?26:t===\"html\"||t===\"head\"||t===\"body\"?27:5;else t:switch(i){case Nm:return t=Ne(31,n,e,a),t.elementType=Nm,t.lanes=r,t;case pr:return ya(n.children,a,r,e);case U0:o=8,a|=24;break;case wm:return t=Ne(12,n,e,a|2),t.elementType=wm,t.lanes=r,t;case Cm:return t=Ne(13,n,e,a),t.elementType=Cm,t.lanes=r,t;case Om:return t=Ne(19,n,e,a),t.elementType=Om,t.lanes=r,t;case XE:case Vm:return t=a|32,t=Ne(30,n,e,t),t.elementType=Vm,t.lanes=r,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i===\"object\"&&i!==null)switch(i.$$typeof){case Vn:o=10;break t;case H0:o=9;break t;case Hd:o=11;break t;case Ld:o=14;break t;case bi:o=16,i=null;break t}o=29,n=Error(C(130,t===null?\"null\":typeof t,\"\")),i=null}return e=Ne(o,n,e,a),e.elementType=t,e.type=i,e.lanes=r,e}function ya(t,e,n,i){return t=Ne(7,t,i,e),t.lanes=n,t}function rm(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function bv(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function om(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var by=new WeakMap;function on(t,e){if(typeof t===\"object\"&&t!==null){var n=by.get(t);if(n!==void 0)return n;return e={value:t,source:e,stack:Ig(e)},by.set(t,e),e}return{value:t,source:e,stack:Ig(e)}}var Tr=[],Er=0,Vu=null,yl=0,nn=[],an=0,Gi=null,zn=1,Rn=\"\";function Fn(t,e){Tr[Er++]=yl,Tr[Er++]=Vu,Vu=t,yl=e}function Sv(t,e,n){nn[an++]=zn,nn[an++]=Rn,nn[an++]=Gi,Gi=t;var i=zn;t=Rn;var a=32-Qe(i)-1;i&=~(1<<a),n+=1;var r=32-Qe(e)+a;if(30<r){var o=a-a%5;r=(i&(1<<o)-1).toString(32),i>>=o,a-=o,zn=1<<32-Qe(e)+a|n<<a|i,Rn=r+t}else zn=1<<r|n<<a|i,Rn=t}function rc(t){t.return!==null&&(Fn(t,1),Sv(t,1,0))}function Pd(t){for(;t===Vu;)Vu=Tr[--Er],Tr[Er]=null,yl=Tr[--Er],Tr[Er]=null;for(;t===Gi;)Gi=nn[--an],nn[an]=null,Rn=nn[--an],nn[an]=null,zn=nn[--an],nn[an]=null}function Tv(t,e){nn[an++]=zn,nn[an++]=Rn,nn[an++]=Gi,zn=e.id,Rn=e.overflow,Gi=t}var Wt=null,Et=null,X=!1,Vi=null,ln=!1,Xm=Error(C(519));function ji(t){var e=Error(C(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\"text\":\"HTML\",\"\"));throw vl(on(e,t)),Xm}function Sy(t){var{stateNode:e,type:n,memoizedProps:i}=t;switch(e[ne]=t,e[ze]=i,n){case\"dialog\":Z(\"cancel\",e),Z(\"close\",e);break;case\"iframe\":case\"object\":case\"embed\":Z(\"load\",e);break;case\"video\":case\"audio\":for(n=0;n<Tl.length;n++)Z(Tl[n],e);break;case\"source\":Z(\"error\",e);break;case\"img\":case\"image\":case\"link\":Z(\"error\",e),Z(\"load\",e);break;case\"details\":Z(\"toggle\",e);break;case\"input\":Z(\"invalid\",e),I0(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case\"select\":Z(\"invalid\",e);break;case\"textarea\":Z(\"invalid\",e),tv(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!==\"string\"&&typeof n!==\"number\"&&typeof n!==\"bigint\"||e.textContent===\"\"+n||i.suppressHydrationWarning===!0||ax(e.textContent,n)?(i.popover!=null&&(Z(\"beforetoggle\",e),Z(\"toggle\",e)),i.onScroll!=null&&Z(\"scroll\",e),i.onScrollEnd!=null&&Z(\"scrollend\",e),i.onClick!=null&&(e.onclick=Dn),e=!0):e=!1,e||ji(t,!0)}function Du(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:Wt=Wt.return}}function lr(t){if(t!==Wt)return!1;if(!X)return Du(t),X=!0,!1;var e=t.tag,n;if(n=e!==3&&e!==27){if(n=e===5)n=t.type,n=!(n!==\"form\"&&n!==\"button\")||Nd(t.type,t.memoizedProps);n=!n}if(n&&Et&&ji(t),Du(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(317));Et=h0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(317));Et=h0(t)}else e===27?(e=Et,Zi(t.type)?(t=Rd,Rd=null,Et=t):Et=e):Et=Wt?sn(t.stateNode.nextSibling):null;return!0}function Sa(){Et=Wt=null,X=!1}function lm(){var t=Vi;return t!==null&&(Ce===null?Ce=t:Ce.push.apply(Ce,t),Vi=null),t}function vl(t){Vi===null?Vi=[t]:Vi.push(t)}var Km=Hn(null),Ra=null,$n=null;function Ai(t,e,n){Mt(Km,e._currentValue),e._currentValue=n}function Pn(t){t._currentValue=Km.current,ae(Km)}function uu(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Zm(t,e,n,i){var a=t.child;a!==null&&(a.return=t);for(;a!==null;){var r=a.dependencies;if(r!==null){var o=a.child;r=r.firstContext;t:for(;r!==null;){var l=r;r=a;for(var s=0;s<e.length;s++)if(l.context===e[s]){r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),uu(r.return,n,t),i||(o=null);break t}r=l.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(C(341));o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),uu(o,n,t),o=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),uu(a.return,n,t),o=a.child,o=o!==null?o.sibling:null):o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function Ta(t,e,n,i){t=null;for(var a=e,r=!1;a!==null;){if(!r){if((a.flags&524288)!==0)r=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(C(387));if(o=o.memoizedProps,o!==null){var l=a.type;Fe(a.pendingProps.value,o.value)||(t!==null?t.push(l):t=[l])}}else if(a===Eu.current){if(o=a.alternate,o===null)throw Error(C(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Zr):t=[Zr])}a=a.return}return t!==null&&Zm(e,t,n,i),e.flags|=262144,t!==null}function zu(t){for(t=t.firstContext;t!==null;){if(!Fe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ea(t){Ra=t,$n=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return Ev(Ra,t)}function Qs(t,e){return Ra===null&&Ea(t),Ev(t,e)}function Ev(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},$n===null){if(t===null)throw Error(C(308));$n=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else $n=$n.next=e;return n}var i2=typeof AbortController<\"u\"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},a2=Zt.unstable_scheduleCallback,r2=Zt.unstable_NormalPriority,qt={$$typeof:Vn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Id(){return{controller:new i2,data:new Map,refCount:0}}function Bl(t){t.refCount--,t.refCount===0&&a2(r2,function(){t.controller.abort()})}function Ty(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;n===null&&(n=t.transitionTypes=[]);for(t=0;t<e.length;t++){var i=e[t];n.indexOf(i)===-1&&n.push(i)}}}var Jo=null;function o2(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var il=null,Qm=0,Ma=0,Or=null;function l2(t,e){if(il===null){var n=il=[];Qm=0,Ma=wp(),Or={status:\"pending\",value:void 0,then:function(i){n.push(i)}}}return Qm++,e.then(Ey,Ey),e}function Ey(){if(--Qm===0&&(Jo=null,il!==null)){Or!==null&&(Or.status=\"fulfilled\");var t=il;il=null,Ma=0,Or=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function s2(t,e){var n=[],i={status:\"pending\",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){i.status=\"fulfilled\",i.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){i.status=\"rejected\",i.reason=a;for(a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var My=_.S;_.S=function(t,e){if(q1=Ke(),typeof e===\"object\"&&e!==null&&typeof e.then===\"function\"&&l2(t,e),Jo!==null)for(var n=Yr;n!==null;)Ty(n,Jo),n=n.next;if(n=t.types,n!==null){for(var i=Yr;i!==null;)Ty(i,n),i=i.next;if(Ma!==0){i=Jo,i===null&&(i=Jo=[]);for(var a=0;a<n.length;a++){var r=n[a];i.indexOf(r)===-1&&i.push(r)}}}My!==null&&My(t,e)};var va=Hn(null);function Wd(){var t=va.current;return t!==null?t:yt.pooledCache}function cu(t,e){e===null?Mt(va,va.current):Mt(va,e.pool)}function Mv(){var t=Wd();return t===null?null:{parent:qt._currentValue,pool:t}}var Jr=Error(C(460)),tp=Error(C(474)),oc=Error(C(542)),Ru={then:function(){}};function Ay(t){return t=t.status,t===\"fulfilled\"||t===\"rejected\"}function Av(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Dn,Dn),e=n),e.status){case\"fulfilled\":return e.value;case\"rejected\":if(t=e.reason,Cy(t),t===void 0&&!(\"reason\"in e))throw Error(C(600));throw t;default:if(typeof e.status===\"string\")e.then(Dn,Dn);else{if(t=yt,t!==null&&100<t.shellSuspendCounter)throw Error(C(482));t=e,t.status=\"pending\",t.then(function(i){if(e.status===\"pending\"){var a=e;a.status=\"fulfilled\",a.value=i}},function(i){if(e.status===\"pending\"){var a=e;a.status=\"rejected\",a.reason=i}})}switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw t=e.reason,Cy(t),t}throw xa=e,Jr}}function ma(t){try{var e=t._init;return e(t._payload)}catch(n){if(n!==null&&typeof n===\"object\"&&typeof n.then===\"function\")throw xa=n,Jr;throw n}}var xa=null;function wy(){if(xa===null)throw Error(C(459));var t=xa;return xa=null,t}function Cy(t){if(t===Jr||t===oc)throw Error(C(483))}var Nr=null,xl=0;function ks(t){var e=xl;return xl+=1,Nr===null&&(Nr=[]),Av(Nr,t,e)}function yi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Fs(t,e){if(e.$$typeof===YE)throw Error(C(525));throw t=Object.prototype.toString.call(e),Error(C(31,t===\"[object Object]\"?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t))}function wv(t){function e(h,p){if(t){var g=h.deletions;g===null?(h.deletions=[p],h.flags|=16):g.push(p)}}function n(h,p){if(!t)return null;for(;p!==null;)e(h,p),p=p.sibling;return null}function i(h){for(var p=new Map;h!==null;)h.key===null?p.set(h.index,h):p.set(h.key,h),h=h.sibling;return p}function a(h,p){return h=Jn(h,p),h.index=0,h.sibling=null,h}function r(h,p,g){if(h.index=g,!t)return h.flags|=1048576,p;if(g=h.alternate,g!==null)return g=g.index,g<p?(h.flags|=2,p):g;return h.flags|=134217730,p}function o(h){return t&&h.alternate===null&&(h.flags|=134217730),h}function l(h,p,g,v){if(p===null||p.tag!==6)return p=rm(g,h.mode,v),p.return=h,p;return p=a(p,g),p.return=h,p}function s(h,p,g,v){var E=g.type;if(E===pr)return h=u(h,p,g.props.children,v,g.key),yi(h,g),h;if(p!==null&&(p.elementType===E||typeof E===\"object\"&&E!==null&&E.$$typeof===bi&&ma(E)===p.type))return p=a(p,g.props),yi(p,g),p.return=h,p;return p=su(g.type,g.key,g.props,null,h.mode,v),yi(p,g),p.return=h,p}function c(h,p,g,v){if(p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation)return p=om(g,h.mode,v),p.return=h,p;return p=a(p,g.children||[]),p.return=h,p}function u(h,p,g,v,E){if(p===null||p.tag!==7)return p=ya(g,h.mode,v,E),p.return=h,p;return p=a(p,g),p.return=h,p}function f(h,p,g){if(typeof p===\"string\"&&p!==\"\"||typeof p===\"number\"||typeof p===\"bigint\")return p=rm(\"\"+p,h.mode,g),p.return=h,p;if(typeof p===\"object\"&&p!==null){switch(p.$$typeof){case js:return g=su(p.type,p.key,p.props,null,h.mode,g),yi(g,p),g.return=h,g;case Zo:return p=om(p,h.mode,g),p.return=h,p;case bi:return p=ma(p),f(h,p,g)}if(Qo(p)||jo(p))return p=ya(p,h.mode,g,null),p.return=h,p;if(typeof p.then===\"function\")return f(h,ks(p),g);if(p.$$typeof===Vn)return f(h,Qs(h,p),g);Fs(h,p)}return null}function m(h,p,g,v){var E=p!==null?p.key:null;if(typeof g===\"string\"&&g!==\"\"||typeof g===\"number\"||typeof g===\"bigint\")return E!==null?null:l(h,p,\"\"+g,v);if(typeof g===\"object\"&&g!==null){switch(g.$$typeof){case js:return g.key===E?s(h,p,g,v):null;case Zo:return g.key===E?c(h,p,g,v):null;case bi:return g=ma(g),m(h,p,g,v)}if(Qo(g)||jo(g))return E!==null?null:u(h,p,g,v,null);if(typeof g.then===\"function\")return m(h,p,ks(g),v);if(g.$$typeof===Vn)return m(h,p,Qs(h,g),v);Fs(h,g)}return null}function d(h,p,g,v,E){if(typeof v===\"string\"&&v!==\"\"||typeof v===\"number\"||typeof v===\"bigint\")return h=h.get(g)||null,l(p,h,\"\"+v,E);if(typeof v===\"object\"&&v!==null){switch(v.$$typeof){case js:return h=h.get(v.key===null?g:v.key)||null,s(p,h,v,E);case Zo:return h=h.get(v.key===null?g:v.key)||null,c(p,h,v,E);case bi:return v=ma(v),d(h,p,g,v,E)}if(Qo(v)||jo(v))return h=h.get(g)||null,u(p,h,v,E,null);if(typeof v.then===\"function\")return d(h,p,g,ks(v),E);if(v.$$typeof===Vn)return d(h,p,g,Qs(p,v),E);Fs(p,v)}return null}function y(h,p,g,v){for(var E=null,M=null,b=p,S=p=0,A=null;b!==null&&S<g.length;S++){b.index>S?(A=b,b=null):A=b.sibling;var N=m(h,b,g[S],v);if(N===null){b===null&&(b=A);break}t&&b&&N.alternate===null&&e(h,b),p=r(N,p,S),M===null?E=N:M.sibling=N,M=N,b=A}if(S===g.length)return n(h,b),X&&Fn(h,S),E;if(b===null){for(;S<g.length;S++)b=f(h,g[S],v),b!==null&&(p=r(b,p,S),M===null?E=b:M.sibling=b,M=b);return X&&Fn(h,S),E}for(b=i(b);S<g.length;S++)A=d(b,h,S,g[S],v),A!==null&&(t&&(N=A.alternate,N!==null&&b.delete(N.key===null?S:N.key)),p=r(A,p,S),M===null?E=A:M.sibling=A,M=A);return t&&b.forEach(function(z){return e(h,z)}),X&&Fn(h,S),E}function x(h,p,g,v){if(g==null)throw Error(C(151));for(var E=null,M=null,b=p,S=p=0,A=null,N=g.next();b!==null&&!N.done;S++,N=g.next()){b.index>S?(A=b,b=null):A=b.sibling;var z=m(h,b,N.value,v);if(z===null){b===null&&(b=A);break}t&&b&&z.alternate===null&&e(h,b),p=r(z,p,S),M===null?E=z:M.sibling=z,M=z,b=A}if(N.done)return n(h,b),X&&Fn(h,S),E;if(b===null){for(;!N.done;S++,N=g.next())N=f(h,N.value,v),N!==null&&(p=r(N,p,S),M===null?E=N:M.sibling=N,M=N);return X&&Fn(h,S),E}for(b=i(b);!N.done;S++,N=g.next())N=d(b,h,S,N.value,v),N!==null&&(t&&(A=N.alternate,A!==null&&b.delete(A.key===null?S:A.key)),p=r(N,p,S),M===null?E=N:M.sibling=N,M=N);return t&&b.forEach(function(W){return e(h,W)}),X&&Fn(h,S),E}function T(h,p,g,v){if(typeof g===\"object\"&&g!==null&&g.type===pr&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g===\"object\"&&g!==null){switch(g.$$typeof){case js:t:{for(var E=g.key;p!==null;){if(p.key===E){if(E=g.type,E===pr){if(p.tag===7){n(h,p.sibling),v=a(p,g.props.children),yi(v,g),v.return=h,h=v;break t}}else if(p.elementType===E||typeof E===\"object\"&&E!==null&&E.$$typeof===bi&&ma(E)===p.type){n(h,p.sibling),v=a(p,g.props),yi(v,g),v.return=h,h=v;break t}n(h,p);break}else e(h,p);p=p.sibling}g.type===pr?(v=ya(g.props.children,h.mode,v,g.key),yi(v,g),v.return=h,h=v):(v=su(g.type,g.key,g.props,null,h.mode,v),yi(v,g),v.return=h,h=v)}return o(h);case Zo:t:{for(E=g.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),v=a(p,g.children||[]),v.return=h,h=v;break t}else{n(h,p);break}else e(h,p);p=p.sibling}v=om(g,h.mode,v),v.return=h,h=v}return o(h);case bi:return g=ma(g),T(h,p,g,v)}if(Qo(g))return y(h,p,g,v);if(jo(g)){if(E=jo(g),typeof E!==\"function\")throw Error(C(150));return g=E.call(g),x(h,p,g,v)}if(typeof g.then===\"function\")return T(h,p,ks(g),v);if(g.$$typeof===Vn)return T(h,p,Qs(h,g),v);Fs(h,g)}return typeof g===\"string\"&&g!==\"\"||typeof g===\"number\"||typeof g===\"bigint\"?(g=\"\"+g,p!==null&&p.tag===6?(n(h,p.sibling),v=a(p,g),v.return=h,h=v):(n(h,p),v=rm(g,h.mode,v),v.return=h,h=v),o(h)):n(h,p)}return function(h,p,g,v){try{xl=0;var E=T(h,p,g,v);return Nr=null,E}catch(b){if(b===Jr||b===oc)throw b;var M=Ne(29,b,null,h.mode);return M.lanes=v,M.return=h,M}finally{}}}var Aa=wv(!0),Cv=wv(!1),Si=!1;function ep(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function km(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 Di(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zi(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(at&2)!==0){var a=i.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),i.pending=e,e=Nu(t),vv(t,null,n),e}return ac(t,i,e,n),Nu(t)}function al(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,K0(t,n)}}function sm(t,e){var{updateQueue:n,alternate:i}=t;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?a=r=o:r=r.next=o,n=n.next}while(n!==null);r===null?a=r=e:r=r.next=e}else a=r=e;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Fm=!1;function rl(){if(Fm){var t=Or;if(t!==null)throw t}}function ol(t,e,n,i){Fm=!1;var a=t.updateQueue;Si=!1;var{firstBaseUpdate:r,lastBaseUpdate:o}=a,l=a.shared.pending;if(l!==null){a.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?r=c:o.next=c,o=s;var u=t.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(r!==null){var f=a.baseState;o=0,u=c=s=null,l=r;do{var m=l.lane&-536870913,d=m!==l.lane;if(d?(k&m)===m:(i&m)===m){m!==0&&m===Ma&&(Fm=!0),u!==null&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});t:{var y=t,x=l;m=e;var T=n;switch(x.tag){case 1:if(y=x.payload,typeof y===\"function\"){f=y.call(T,f,m);break t}f=y;break t;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y===\"function\"?y.call(T,f,m):y,m===null||m===void 0)break t;f=vt({},f,m);break t;case 2:Si=!0}}m=l.callback,m!==null&&(t.flags|=64,d&&(t.flags|=8192),d=a.callbacks,d===null?a.callbacks=[m]:d.push(m))}else d={lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=d,s=f):u=u.next=d,o|=m;if(l=l.next,l===null)if(l=a.shared.pending,l===null)break;else d=l,l=d.next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}while(1);u===null&&(s=f),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,r===null&&(a.shared.lanes=0),Xi|=o,t.lanes=o,t.memoizedState=f}}function Ov(t,e){if(typeof t!==\"function\")throw Error(C(191,t));t.call(e)}function Nv(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ov(n[t],e)}var qi=Hn(null),_u=Hn(0);function Oy(t,e){t=ii,Mt(_u,t),Mt(qi,e),ii=t|e.baseLanes}function $m(){Mt(_u,ii),Mt(qi,qi.current)}function np(){ii=_u.current,ae(qi),ae(_u)}var le=Hn(null),he=null;function Ri(t){var e=t.alternate;Mt(re,re.current&1),Mt(le,t),he===null&&(e===null||qi.current!==null?he=t:e.memoizedState!==null&&(he=t))}function Jm(t){Mt(re,re.current),Mt(le,t),he===null&&(he=t)}function Vv(t){t.tag===22?(Mt(re,re.current),Mt(le,t),he===null&&(he=t)):_i()}function _i(){Mt(re,re.current),Mt(le,le.current)}function qe(t){ae(le),he===t&&(he=null),ae(re)}var re=Hn(0);function bl(t,e){Mt(le,le.current),Mt(re,e)}function ip(t){ae(re),ae(le),he===t&&(he=null)}function Bu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||zd(n)||Vp(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==\"independent\"){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 ti=0,j=null,ht=null,jt=null,Uu=!1,Vr=!1,wa=!1,Hu=0,Sl=0,Dr=null,u2=0;function _t(){throw Error(C(321))}function ap(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Fe(t[n],e[n]))return!1;return!0}function rp(t,e,n,i,a,r){return ti=r,j=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?l1:s1,wa=!1,r=n(i,a),wa=!1,Vr&&(r=zv(e,n,i,a)),Dv(t),r}function Dv(t){_.H=Lu;var e=ht!==null&&ht.next!==null;if(ti=0,jt=ht=j=null,Uu=!1,Sl=0,Dr=null,e)throw Error(C(300));t===null||Yt||(t=t.dependencies,t!==null&&zu(t)&&(Yt=!0))}function zv(t,e,n,i){j=t;var a=0;do{if(Vr&&(Dr=null),Sl=0,Vr=!1,25<=a)throw Error(C(301));if(a+=1,jt=ht=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_.H=y2,r=e(n,i)}while(Vr);return r}function c2(){var t=_.H,e=t.useState()[0];return e=typeof e.then===\"function\"?Ul(e):e,t=t.useState()[0],(ht!==null?ht.memoizedState:null)!==t&&(j.flags|=1024),e}function op(){var t=Hu!==0;return Hu=0,t}function lp(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function sp(t){if(Uu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Uu=!1}ti=0,jt=ht=j=null,Vr=!1,Sl=Hu=0,Dr=null}function Se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?j.memoizedState=jt=t:jt=jt.next=t,jt}function Ht(){if(ht===null){var t=j.alternate;t=t!==null?t.memoizedState:null}else t=ht.next;var e=jt===null?j.memoizedState:jt.next;if(e!==null)jt=e,ht=t;else{if(t===null){if(j.alternate===null)throw Error(C(467));throw Error(C(310))}ht=t,t={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},jt===null?j.memoizedState=jt=t:jt=jt.next=t}return jt}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ul(t){var e=Sl;return Sl+=1,Dr===null&&(Dr=[]),t=Av(Dr,t,e),e=j,(jt===null?e.memoizedState:jt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?l1:s1),t}function sc(t){if(t!==null&&typeof t===\"object\"){if(typeof t.then===\"function\")return Ul(t);if(t.$$typeof===ZE)return;if(t.$$typeof===Vn)return ie(t)}throw Error(C(438,String(t)))}function up(t){var e=null,n=j.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=j.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=lc(),j.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=KE;return e.index++,n}function ei(t,e){return typeof e===\"function\"?e(t):e}function fu(t){var e=Ht();return cp(e,ht,t)}function cp(t,e,n){var i=t.queue;if(i===null)throw Error(C(311));i.lastRenderedReducer=n;var a=t.baseQueue,r=i.pending;if(r!==null){if(a!==null){var o=a.next;a.next=r.next,r.next=o}e.baseQueue=a=r,i.pending=null}if(r=t.baseState,a===null)t.memoizedState=r;else{e=a.next;var l=o=null,s=null,c=e,u=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(k&f)===f:(ti&f)===f){var m=c.revertLane;if(m===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Ma&&(u=!0);else if((ti&m)===m){c=c.next,m===Ma&&(u=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=f,o=r):s=s.next=f,j.lanes|=m,Xi|=m;f=c.action,wa&&n(r,f),r=c.hasEagerState?c.eagerState:n(r,f)}else m={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=m,o=r):s=s.next=m,j.lanes|=f,Xi|=f;c=c.next}while(c!==null&&c!==e);if(s===null?o=r:s.next=l,!Fe(r,t.memoizedState)&&(Yt=!0,u&&(n=Or,n!==null)))throw n;t.memoizedState=r,t.baseState=o,t.baseQueue=s,i.lastRenderedState=r}return a===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function um(t){var e=Ht(),n=e.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=t;var{dispatch:i,pending:a}=n,r=e.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do r=t(r,o.action),o=o.next;while(o!==a);Fe(r,e.memoizedState)||(Yt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function Rv(t,e,n){var i=j,a=Ht(),r=X;if(r){if(n===void 0)throw Error(C(407));n=n()}else n=e();var o=!Fe((ht||a).memoizedState,n);if(o&&(a.memoizedState=n,Yt=!0),a=a.queue,fp(Uv.bind(null,i,a,t),[t]),t=a.getSnapshot!==e||o||jt!==null&&(jt.memoizedState.tag&1)!==0,Lr(t?9:8,{destroy:void 0},Bv.bind(null,i,a,n,e),null),t){if(i.flags|=2048,yt===null)throw Error(C(349));r||(ti&127)!==0||_v(i,e,n)}return n}function _v(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=j.updateQueue,e===null?(e=lc(),j.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Bv(t,e,n,i){e.value=n,e.getSnapshot=i,Hv(e)&&Lv(t)}function Uv(t,e,n){return n(function(){Hv(e)&&Lv(t)})}function Hv(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Fe(t,n)}catch(i){return!0}}function Lv(t){var e=za(t,2);e!==null&&Ve(e,t,2)}function Pm(t){var e=Se();if(typeof t===\"function\"){var n=t;if(t=n(),wa){Ei(!0);try{n()}finally{Ei(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:t},e}function Gv(t,e,n,i){return t.baseState=n,cp(t,ht,typeof i===\"function\"?i:ei)}function f2(t,e,n,i,a){if(cc(t))throw Error(C(485));if(t=e.action,t!==null){var r={payload:a,action:t,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(o){r.listeners.push(o)}};_.T!==null?n(!0):r.isTransition=!1,i(r),n=e.pending,n===null?(r.next=e.pending=r,jv(e,r)):(r.next=n.next,e.pending=n.next=r)}}function jv(t,e){var{action:n,payload:i}=e,a=t.state;if(e.isTransition){var r=_.T,o={};o.types=r!==null?r.types:null,_.T=o;try{var l=n(a,i),s=_.S;s!==null&&s(o,l),Ny(t,e,l)}catch(c){Im(t,e,c)}finally{r!==null&&o.types!==null&&(r.types=o.types),_.T=r}}else try{r=n(a,i),Ny(t,e,r)}catch(c){Im(t,e,c)}}function Ny(t,e,n){n!==null&&typeof n===\"object\"&&typeof n.then===\"function\"?n.then(function(i){Vy(t,e,i)},function(i){return Im(t,e,i)}):Vy(t,e,n)}function Vy(t,e,n){e.status=\"fulfilled\",e.value=n,qv(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,jv(t,n)))}function Im(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status=\"rejected\",e.reason=n,qv(e),e=e.next;while(e!==i)}t.action=null}function qv(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Yv(t,e){return e}function Dy(t,e){if(X){var n=yt.formState;if(n!==null){t:{var i=j;if(X){if(Et){e:{var a=Et;for(var r=ln;a.nodeType!==8;){if(!r){a=null;break e}if(a=sn(a.nextSibling),a===null){a=null;break e}}r=a.data,a=r===\"F!\"||r===\"F\"?a:null}if(a){Et=sn(a.nextSibling),i=a.data===\"F!\";break t}}ji(i)}i=!1}i&&(e=n[0])}}return n=Se(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yv,lastRenderedState:e},n.queue=i,n=a1.bind(null,j,i),i.dispatch=n,i=Pm(!1),r=hp.bind(null,j,!1,i.queue),i=Se(),a={state:e,dispatch:null,action:t,pending:null},i.queue=a,n=f2.bind(null,j,a,r,n),a.dispatch=n,i.memoizedState=t,[e,n,!1]}function zy(t){var e=Ht();return Xv(e,ht,t)}function Xv(t,e,n){if(e=cp(t,e,Yv)[0],t=fu(ei)[0],typeof e===\"object\"&&e!==null&&typeof e.then===\"function\")try{var i=Ul(e)}catch(o){if(o===Jr)throw oc;throw o}else i=e;e=Ht();var a=e.queue,r=a.dispatch;return n!==e.memoizedState&&(j.flags|=2048,Lr(9,{destroy:void 0},m2.bind(null,a,n),null)),[i,r,t]}function m2(t,e){t.action=e}function Ry(t){var e=Ht(),n=ht;if(n!==null)return Xv(e,n,t);Ht(),e=e.memoizedState,n=Ht();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Lr(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=j.updateQueue,e===null&&(e=lc(),j.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Kv(){return Ht().memoizedState}function mu(t,e,n,i){var a=Se();j.flags|=t,a.memoizedState=Lr(1|e,{destroy:void 0},n,i===void 0?null:i)}function uc(t,e,n,i){var a=Ht();i=i===void 0?null:i;var r=a.memoizedState.inst;ht!==null&&i!==null&&ap(i,ht.memoizedState.deps)?a.memoizedState=Lr(e,r,n,i):(j.flags|=t,a.memoizedState=Lr(1|e,r,n,i))}function _y(t,e){mu(8390656,8,t,e)}function fp(t,e){uc(2048,8,t,e)}function d2(t){j.flags|=4;var e=j.updateQueue;if(e===null)e=lc(),j.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Zv(t){var e=Ht().memoizedState;return d2({ref:e,nextImpl:t}),function(){if((at&2)!==0)throw Error(C(440));return e.impl.apply(void 0,arguments)}}function Qv(t,e){return uc(4,2,t,e)}function kv(t,e){return uc(4,4,t,e)}function Fv(t,e){if(typeof e===\"function\"){t=t();var n=e(t);return function(){typeof n===\"function\"?n():e(null)}}if(e!==null&&e!==void 0)return t=t(),e.current=t,function(){e.current=null}}function $v(t,e,n){n=n!==null&&n!==void 0?n.concat([t]):null,uc(4,4,Fv.bind(null,e,t),n)}function mp(){}function Jv(t,e){var n=Ht();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ap(e,i[1]))return i[0];return n.memoizedState=[t,e],t}function Pv(t,e){var n=Ht();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ap(e,i[1]))return i[0];if(i=t(),wa){Ei(!0);try{t()}finally{Ei(!1)}}return n.memoizedState=[i,e],i}function dp(t,e,n){if(n===void 0||(ti&1073741824)!==0&&(k&261930)===0)return t.memoizedState=e;return t.memoizedState=n,t=X1(),j.lanes|=t,Xi|=t,n}function Iv(t,e,n,i){if(Fe(n,e))return n;if(qi.current!==null)return t=dp(t,n,i),Fe(t,e)||(Yt=!0),t;if((ti&106)===0||(ti&1073741824)!==0&&(k&261930)===0)return Yt=!0,t.memoizedState=n;return t=X1(),j.lanes|=t,Xi|=t,e}function Wv(t,e,n,i,a){var r=rt.p;rt.p=r!==0&&8>r?r:8;var o=_.T,l={};l.types=o!==null?o.types:null,_.T=l,hp(t,!1,e,n);try{var s=a(),c=_.S;if(c!==null&&c(l,s),s!==null&&typeof s===\"object\"&&typeof s.then===\"function\"){var u=s2(s,i);ll(t,e,u,ke(t))}else ll(t,e,i,ke(t))}catch(f){ll(t,e,{then:function(){},status:\"rejected\",reason:f},ke())}finally{rt.p=r,o!==null&&l.types!==null&&(o.types=l.types),_.T=o}}function p2(){}function Wm(t,e,n,i){if(t.tag!==5)throw Error(C(476));var a=t1(t).queue;Wv(t,a,e,ga,n===null?p2:function(){return e1(t),n(i)})}function t1(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ga,baseState:ga,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:ga},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function e1(t){var e=t1(t);e.next===null&&(e=t.alternate.memoizedState),ll(t,e.next.queue,{},ke())}function pp(){return ie(Zr)}function n1(){return Ht().memoizedState}function i1(){return Ht().memoizedState}function h2(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ke();t=Di(n);var i=zi(e,t,n);i!==null&&(Ve(i,e,n),al(i,e,n)),e={cache:Id()},t.payload=e;return}e=e.return}}function g2(t,e,n){var i=ke();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(t)?r1(e,n):(n=$d(t,e,n,i),n!==null&&(Ve(n,t,i),o1(n,e,i)))}function a1(t,e,n){var i=ke();ll(t,e,n,i)}function ll(t,e,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(t))r1(e,a);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,l=r(o,n);if(a.hasEagerState=!0,a.eagerState=l,Fe(l,o))return ac(t,e,a,0),yt===null&&ic(),!1}catch(s){}finally{}if(n=$d(t,e,a,i),n!==null)return Ve(n,t,i),o1(n,e,i),!0}return!1}function hp(t,e,n,i){if(i={lane:2,revertLane:wp(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cc(t)){if(e)throw Error(C(479))}else e=$d(t,n,i,2),e!==null&&Ve(e,t,2)}function cc(t){var e=t.alternate;return t===j||e!==null&&e===j}function r1(t,e){Vr=Uu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function o1(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,K0(t,n)}}var Lu={readContext:ie,use:sc,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t,useEffectEvent:_t},l1={readContext:ie,use:sc,useCallback:function(t,e){return Se().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:_y,useImperativeHandle:function(t,e,n){n=n!==null&&n!==void 0?n.concat([t]):null,mu(4194308,4,Fv.bind(null,e,t),n)},useLayoutEffect:function(t,e){return mu(4194308,4,t,e)},useInsertionEffect:function(t,e){mu(4,2,t,e)},useMemo:function(t,e){var n=Se();e=e===void 0?null:e;var i=t();if(wa){Ei(!0);try{t()}finally{Ei(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Se();if(n!==void 0){var a=n(e);if(wa){Ei(!0);try{n(e)}finally{Ei(!1)}}}else a=e;return i.memoizedState=i.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},i.queue=t,t=t.dispatch=g2.bind(null,j,t),[i.memoizedState,t]},useRef:function(t){var e=Se();return t={current:t},e.memoizedState=t},useState:function(t){t=Pm(t);var e=t.queue,n=a1.bind(null,j,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:mp,useDeferredValue:function(t,e){var n=Se();return dp(n,t,e)},useTransition:function(){var t=Pm(!1);return t=Wv.bind(null,j,t.queue,!0,!1),Se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=j,a=Se();if(X){if(n===void 0)throw Error(C(407));n=n()}else{if(n=e(),yt===null)throw Error(C(349));(k&127)!==0||_v(i,e,n)}a.memoizedState=n;var r={value:n,getSnapshot:e};return a.queue=r,_y(Uv.bind(null,i,r,t),[t]),i.flags|=2048,Lr(9,{destroy:void 0},Bv.bind(null,i,r,n,e),null),n},useId:function(){var t=Se(),e=yt.identifierPrefix;if(X){var n=Rn,i=zn;n=(i&~(1<<32-Qe(i)-1)).toString(32)+n,e=\"_\"+e+\"R_\"+n,n=Hu++,0<n&&(e+=\"H\"+n.toString(32)),e+=\"_\"}else n=u2++,e=\"_\"+e+\"r_\"+n.toString(32)+\"_\";return t.memoizedState=e},useHostTransitionStatus:pp,useFormState:Dy,useActionState:Dy,useOptimistic:function(t){var e=Se();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=hp.bind(null,j,!0,n),n.dispatch=e,[t,e]},useMemoCache:up,useCacheRefresh:function(){return Se().memoizedState=h2.bind(null,j)},useEffectEvent:function(t){var e=Se(),n={impl:t};return e.memoizedState=n,function(){if((at&2)!==0)throw Error(C(440));return n.impl.apply(void 0,arguments)}}},s1={readContext:ie,use:sc,useCallback:Jv,useContext:ie,useEffect:fp,useImperativeHandle:$v,useInsertionEffect:Qv,useLayoutEffect:kv,useMemo:Pv,useReducer:fu,useRef:Kv,useState:function(){return fu(ei)},useDebugValue:mp,useDeferredValue:function(t,e){var n=Ht();return Iv(n,ht.memoizedState,t,e)},useTransition:function(){var t=fu(ei)[0],e=Ht().memoizedState;return[typeof t===\"boolean\"?t:Ul(t),e]},useSyncExternalStore:Rv,useId:n1,useHostTransitionStatus:pp,useFormState:zy,useActionState:zy,useOptimistic:function(t,e){var n=Ht();return Gv(n,ht,t,e)},useMemoCache:up,useCacheRefresh:i1,useEffectEvent:Zv},y2={readContext:ie,use:sc,useCallback:Jv,useContext:ie,useEffect:fp,useImperativeHandle:$v,useInsertionEffect:Qv,useLayoutEffect:kv,useMemo:Pv,useReducer:um,useRef:Kv,useState:function(){return um(ei)},useDebugValue:mp,useDeferredValue:function(t,e){var n=Ht();return ht===null?dp(n,t,e):Iv(n,ht.memoizedState,t,e)},useTransition:function(){var t=um(ei)[0],e=Ht().memoizedState;return[typeof t===\"boolean\"?t:Ul(t),e]},useSyncExternalStore:Rv,useId:n1,useHostTransitionStatus:pp,useFormState:Ry,useActionState:Ry,useOptimistic:function(t,e){var n=Ht();if(ht!==null)return Gv(n,ht,t,e);return n.baseState=t,[t,n.queue.dispatch]},useMemoCache:up,useCacheRefresh:i1,useEffectEvent:Zv};function cm(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n===null||n===void 0?e:vt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var td={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=ke(),a=Di(i);a.payload=e,n!==void 0&&n!==null&&(a.callback=n),e=zi(t,a,i),e!==null&&(Ve(e,t,i),al(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=ke(),a=Di(i);a.tag=1,a.payload=e,n!==void 0&&n!==null&&(a.callback=n),e=zi(t,a,i),e!==null&&(Ve(e,t,i),al(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ke(),i=Di(n);i.tag=2,e!==void 0&&e!==null&&(i.callback=e),e=zi(t,i,n),e!==null&&(Ve(e,t,n),al(e,t,n))}};function By(t,e,n,i,a,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate===\"function\"?t.shouldComponentUpdate(i,r,o):e.prototype&&e.prototype.isPureReactComponent?!gl(n,i)||!gl(a,r):!0}function Uy(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps===\"function\"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps===\"function\"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&td.enqueueReplaceState(e,e.state,null)}function Ca(t,e){var n=e;if(\"ref\"in e){n={};for(var i in e)i!==\"ref\"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=vt({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function u1(t){Ou(t)}function c1(t){console.error(t)}function f1(t){Ou(t)}function Gu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Hy(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ed(t,e,n){return n=Di(n),n.tag=3,n.payload={element:null},n.callback=function(){Gu(t,e)},n}function m1(t){return t=Di(t),t.tag=3,t}function d1(t,e,n,i){var a=n.type.getDerivedStateFromError;if(typeof a===\"function\"){var r=i.value;t.payload=function(){return a(r)},t.callback=function(){Hy(e,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch===\"function\"&&(t.callback=function(){Hy(e,n,i),typeof a!==\"function\"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var l=i.stack;this.componentDidCatch(i.value,{componentStack:l!==null?l:\"\"})})}function v2(t,e,n,i,a){if(n.flags|=32768,i!==null&&typeof i===\"object\"&&typeof i.then===\"function\"){if(e=n.alternate,e!==null&&Ta(e,n,a,!0),n=le.current,n!==null){switch(n.tag){case 31:case 13:case 19:return he===null?ku():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Ru?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),ym(t,i,a)),!1;case 22:return n.flags|=65536,i===Ru?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),ym(t,i,a)),!1}throw Error(C(435,n.tag))}return ym(t,i,a),ku(),!1}if(X)return e=le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,i!==Xm&&(t=Error(C(422),{cause:i}),vl(on(t,n)))):(i!==Xm&&(e=Error(C(423),{cause:i}),vl(on(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,i=on(i,n),a=ed(t.stateNode,i,a),sm(t,a),Bt!==4&&(Bt=2)),!1;var r=Error(C(520),{cause:i});if(r=on(r,n),fl===null?fl=[r]:fl.push(r),Bt!==4&&(Bt=2),e===null)return!0;i=on(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=ed(n.stateNode,i,t),sm(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError===\"function\"||r!==null&&typeof r.componentDidCatch===\"function\"&&(Bi===null||!Bi.has(r))))return n.flags|=65536,a&=-a,n.lanes|=a,a=m1(a),d1(a,t,n,i),sm(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var gp=Error(C(461)),Yt=!1;function Xt(t,e,n,i){e.child=t===null?Cv(e,null,n,i):Aa(e,t.child,n,i)}function Ly(t,e,n,i,a){n=n.render;var r=e.ref;if(\"ref\"in i){var o={};for(var l in i)l!==\"ref\"&&(o[l]=i[l])}else o=i;if(Ea(e),i=rp(t,e,n,o,r,a),l=op(),t!==null&&!Yt)return lp(t,e,a),ni(t,e,a);return X&&l&&rc(e),e.flags|=1,Xt(t,e,i,a),e.child}function Gy(t,e,n,i,a){if(t===null){var r=n.type;if(typeof r===\"function\"&&!Jd(r)&&r.defaultProps===void 0&&n.compare===null)return e.tag=15,e.type=r,p1(t,e,r,i,a);return t=su(n.type,null,i,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t}if(r=t.child,!vp(t,a)){var o=r.memoizedProps;if(n=n.compare,n=n!==null?n:gl,n(o,i)&&t.ref===e.ref)return ni(t,e,a)}return e.flags|=1,t=Jn(r,i),t.ref=e.ref,t.return=e,e.child=t}function p1(t,e,n,i,a){if(t!==null){var r=t.memoizedProps;if(gl(r,i)&&t.ref===e.ref)if(Yt=!1,e.pendingProps=i=r,vp(t,a))(t.flags&131072)!==0&&(Yt=!0);else return e.lanes=t.lanes,ni(t,e,a)}return nd(t,e,n,i,a)}function h1(t,e,n,i){var a=i.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode===\"hidden\"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){i=e.child=t.child;for(a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~r}else i=0,e.child=null;return jy(t,e,r,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&cu(e,r!==null?r.cachePool:null),r!==null?Oy(e,r):$m(),Vv(e);else return i=e.lanes=536870912,jy(t,e,r!==null?r.baseLanes|n:n,n,i)}else r!==null?(cu(e,r.cachePool),Oy(e,r),_i(),e.memoizedState=null):(t!==null&&cu(e,null),$m(),_i());return Xt(t,e,a,n),e.child}function sl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function jy(t,e,n,i,a){var r=Wd();return r=r===null?null:{parent:qt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&cu(e,null),$m(),Vv(e),t!==null&&Ta(t,e,i,!0),e.childLanes=a,null}function du(t,e){return e=fc({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qy(t,e,n){return Aa(e,t.child,null,n),t=du(e,e.pendingProps),t.flags|=2,qe(e),e.memoizedState=null,t}function x2(t,e,n){var i=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(X){if(i.mode===\"hidden\")return t=du(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},sl(null,t);if(Jm(e),(t=Et)?(t=hx(t,ln),t=t!==null&&t.data===\"&\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gi!==null?{id:zn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},n=bv(t),n.return=e,e.child=n,Wt=e,Et=null)):t=null,t===null)throw ji(e);return e.lanes=536870912,null}return du(e,i)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Jm(e),a)if(e.flags&256)e.flags&=-257,e=qy(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(C(558));else if(Yt||Ta(t,e,n,!1),a=(n&t.childLanes)!==0,Yt||a){if(qi.current===null){if(i=yt,i!==null&&(o=Z0(i,n),o!==0&&o!==r.retryLane))throw r.retryLane=o,za(t,o),Ve(i,t,o),gp;ku()}e=qy(t,e,n)}else t=r.treeContext,Et=sn(o.nextSibling),Wt=e,X=!0,Vi=null,ln=!1,t!==null&&Tv(e,t),e=du(e,i),e.flags|=134221824;return e}return t=Jn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ur(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(C(284));if(t===null||t.ref!==n)e.flags|=4194816}}function nd(t,e,n,i,a){if(Ea(e),n=rp(t,e,n,i,void 0,a),i=op(),t!==null&&!Yt)return lp(t,e,a),ni(t,e,a);return X&&i&&rc(e),e.flags|=1,Xt(t,e,n,a),e.child}function Yy(t,e,n,i,a,r){if(Ea(e),e.updateQueue=null,n=zv(e,i,n,a),Dv(t),i=op(),t!==null&&!Yt)return lp(t,e,r),ni(t,e,r);return X&&i&&rc(e),e.flags|=1,Xt(t,e,n,r),e.child}function Xy(t,e,n,i,a){if(Ea(e),e.stateNode===null){var r=Sr,o=n.contextType;typeof o===\"object\"&&o!==null&&(r=ie(o)),r=new n(i,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=td,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=i,r.state=e.memoizedState,r.refs={},ep(e),o=n.contextType,r.context=typeof o===\"object\"&&o!==null?ie(o):Sr,r.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o===\"function\"&&(cm(e,n,o,i),r.state=e.memoizedState),typeof n.getDerivedStateFromProps===\"function\"||typeof r.getSnapshotBeforeUpdate===\"function\"||typeof r.UNSAFE_componentWillMount!==\"function\"&&typeof r.componentWillMount!==\"function\"||(o=r.state,typeof r.componentWillMount===\"function\"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount===\"function\"&&r.UNSAFE_componentWillMount(),o!==r.state&&td.enqueueReplaceState(r,r.state,null),ol(e,i,r,a),rl(),r.state=e.memoizedState),typeof r.componentDidMount===\"function\"&&(e.flags|=4194308),i=!0}else if(t===null){r=e.stateNode;var l=e.memoizedProps,s=Ca(n,l);r.props=s;var c=r.context,u=n.contextType;o=Sr,typeof u===\"object\"&&u!==null&&(o=ie(u));var f=n.getDerivedStateFromProps;u=typeof f===\"function\"||typeof r.getSnapshotBeforeUpdate===\"function\",l=e.pendingProps!==l,u||typeof r.UNSAFE_componentWillReceiveProps!==\"function\"&&typeof r.componentWillReceiveProps!==\"function\"||(l||c!==o)&&Uy(e,r,i,o),Si=!1;var m=e.memoizedState;r.state=m,ol(e,i,r,a),rl(),c=e.memoizedState,l||m!==c||Si?(typeof f===\"function\"&&(cm(e,n,f,i),c=e.memoizedState),(s=Si||By(e,n,s,i,m,c,o))?(u||typeof r.UNSAFE_componentWillMount!==\"function\"&&typeof r.componentWillMount!==\"function\"||(typeof r.componentWillMount===\"function\"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount===\"function\"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount===\"function\"&&(e.flags|=4194308)):(typeof r.componentDidMount===\"function\"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=c),r.props=i,r.state=c,r.context=o,i=s):(typeof r.componentDidMount===\"function\"&&(e.flags|=4194308),i=!1)}else{r=e.stateNode,km(t,e),o=e.memoizedProps,u=Ca(n,o),r.props=u,f=e.pendingProps,m=r.context,c=n.contextType,s=Sr,typeof c===\"object\"&&c!==null&&(s=ie(c)),l=n.getDerivedStateFromProps,(c=typeof l===\"function\"||typeof r.getSnapshotBeforeUpdate===\"function\")||typeof r.UNSAFE_componentWillReceiveProps!==\"function\"&&typeof r.componentWillReceiveProps!==\"function\"||(o!==f||m!==s)&&Uy(e,r,i,s),Si=!1,m=e.memoizedState,r.state=m,ol(e,i,r,a),rl();var d=e.memoizedState;o!==f||m!==d||Si||t!==null&&t.dependencies!==null&&zu(t.dependencies)?(typeof l===\"function\"&&(cm(e,n,l,i),d=e.memoizedState),(u=Si||By(e,n,u,i,m,d,s)||t!==null&&t.dependencies!==null&&zu(t.dependencies))?(c||typeof r.UNSAFE_componentWillUpdate!==\"function\"&&typeof r.componentWillUpdate!==\"function\"||(typeof r.componentWillUpdate===\"function\"&&r.componentWillUpdate(i,d,s),typeof r.UNSAFE_componentWillUpdate===\"function\"&&r.UNSAFE_componentWillUpdate(i,d,s)),typeof r.componentDidUpdate===\"function\"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate===\"function\"&&(e.flags|=1024)):(typeof r.componentDidUpdate!==\"function\"||o===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!==\"function\"||o===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=d),r.props=i,r.state=d,r.context=s,i=u):(typeof r.componentDidUpdate!==\"function\"||o===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!==\"function\"||o===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),i=!1)}return r=i,ur(t,e),i=(e.flags&128)!==0,r||i?(r=e.stateNode,n=i&&typeof n.getDerivedStateFromError!==\"function\"?null:r.render(),e.flags|=1,t!==null&&i?(e.child=Aa(e,t.child,null,a),e.child=Aa(e,null,n,a)):Xt(t,e,n,a),e.memoizedState=r.state,t=e.child):t=ni(t,e,a),t}function Ky(t,e,n,i){return Sa(),e.flags|=256,Xt(t,e,n,i),e.child}var id={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ad(t){return{baseLanes:t,cachePool:Mv()}}function rd(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Xe),t}function g1(t,e,n){var i=e.pendingProps,a=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(re.current&2)!==0),o&&(a=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(X){if(a?Ri(e):_i(),(t=Et)?(t=hx(t,ln),t=t!==null&&t.data!==\"&\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gi!==null?{id:zn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},n=bv(t),n.return=e,e.child=n,Wt=e,Et=null)):t=null,t===null)throw ji(e);return Vp(t)?e.lanes=32:e.lanes=536870912,null}if(r=i.children,i=i.fallback,a)return _i(),a=e.mode,r=fc({mode:\"hidden\",children:r},a),i=ya(i,a,n,null),r.return=e,i.return=e,r.sibling=i,e.child=r,i=e.child,i.memoizedState=ad(n),i.childLanes=rd(t,o,n),e.memoizedState=id,sl(null,i);return Ri(e),yp(e,r)}var l=t.memoizedState;if(l!==null){var s=l.dehydrated;if(s!==null)return b2(t,e,r,o,i,s,l,n)}if(a)return _i(),a=i.fallback,r=e.mode,l=t.child,s=l.sibling,i=Jn(l,{mode:\"hidden\",children:i.children}),i.subtreeFlags=l.subtreeFlags&1206910976,s!==null?a=Jn(s,a):(a=ya(a,r,n,null),a.flags|=2),a.return=e,i.return=e,i.sibling=a,e.child=i,sl(null,i),i=e.child,a=t.child.memoizedState,a===null?a=ad(n):(r=a.cachePool,r!==null?(l=qt._currentValue,r=r.parent!==l?{parent:l,pool:l}:r):r=Mv(),a={baseLanes:a.baseLanes|n,cachePool:r}),i.memoizedState=a,i.childLanes=rd(t,o,n),e.memoizedState=id,sl(t.child,i);return Ri(e),n=t.child,t=n.sibling,n=Jn(n,{mode:\"visible\",children:i.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n}function yp(t,e){return e=fc({mode:\"visible\",children:e},t.mode),e.return=t,t.child=e}function fc(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function $s(t,e,n){return Aa(e,t.child,null,n),t=yp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function b2(t,e,n,i,a,r,o,l){if(n){if(e.flags&256)return Ri(e),e.flags&=-257,$s(t,e,l);if(e.memoizedState!==null)return _i(),e.child=t.child,e.flags|=128,null;return _i(),r=a.fallback,o=e.mode,a=fc({mode:\"visible\",children:a.children},o),r=ya(r,o,l,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,Aa(e,t.child,null,l),a=e.child,a.memoizedState=ad(l),a.childLanes=rd(t,i,l),e.memoizedState=id,sl(null,a)}if(Ri(e),Vp(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var s=i.dgst;return i=s,i!==\"\"&&(a=Error(C(419)),a.stack=\"\",a.digest=i,vl({value:a,source:null,stack:null})),$s(t,e,l)}if(Yt||Ta(t,e,l,!1),i=(l&t.childLanes)!==0,Yt||i){if(qi.current!==null)return $s(t,e,l);if(i=yt,i!==null&&(a=Z0(i,l),a!==0&&a!==o.retryLane))throw o.retryLane=a,za(t,a),Ve(i,t,a),gp;return zd(r)||ku(),$s(t,e,l)}if(zd(r))return e.flags|=192,e.child=t.child,null;return t=o.treeContext,Et=sn(r.nextSibling),Wt=e,X=!0,Vi=null,ln=!1,t!==null&&Tv(e,t),e=yp(e,a.children),e.flags|=134221824,e}function Zy(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),uu(t.return,e,n)}function Qy(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Bu(n)===null&&(e=t),t=t.sibling}return e}function Js(t,e,n,i,a,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=a,o.treeForkCount=r)}function fm(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function od(t,e,n){var i=e.pendingProps,a=i.revealOrder,r=i.tail;i=i.children;var o=re.current;if(e.flags&128)return bl(e,o),null;var l=(o&2)!==0;if(l?(o=o&1|2,e.flags|=128):o&=1,bl(e,o),a===\"backwards\"&&t!==null?(fm(t),Xt(t,e,i,n),fm(t)):Xt(t,e,i,n),i=X?yl:0,!l&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Zy(t,n,e);else if(t.tag===19)Zy(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(a){case\"backwards\":n=Qy(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null,fm(e)),Js(e,!0,a,null,r,i);break;case\"unstable_legacy-backwards\":n=null,a=e.child;for(e.child=null;a!==null;){if(t=a.alternate,t!==null&&Bu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Js(e,!0,n,null,r,i);break;case\"together\":Js(e,!1,null,null,void 0,i);break;case\"independent\":e.memoizedState=null;break;default:n=Qy(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Js(e,!1,a,n,r,i)}return e.child}function ky(t,e,n){var i=e.pendingProps;return Ai(e,e.type,i.value),Xt(t,e,i.children,n),e.child}function ni(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Xi|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ta(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(C(153));if(e.child!==null){t=e.child,n=Jn(t,t.pendingProps),e.child=n;for(n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Jn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function vp(t,e){if((t.lanes&e)!==0)return!0;return t=t.dependencies,t!==null&&zu(t)?!0:!1}function S2(t,e,n){switch(e.tag){case 3:Mu(e,e.stateNode.containerInfo),Ai(e,qt,t.memoizedState.cache),Sa();break;case 27:case 5:Rm(e);break;case 4:Mu(e,e.stateNode.containerInfo);break;case 10:Ai(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Jm(e),null;break;case 13:var i=e.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ri(e),e.flags|=128,null;i=Ta(t,e,n,!1);var a=e.child.childLanes;if(i||(n&a)!==0)return g1(t,e,n);return Ri(e),t=ni(t,e,n),t!==null?t.sibling:null}Ri(e);break;case 19:if(e.flags&128)return od(t,e,n);if(a=(t.flags&128)!==0,i=(n&e.childLanes)!==0,i||(Ta(t,e,n,!1),i=(n&e.childLanes)!==0),a){if(i)return od(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),bl(e,re.current),i)break;else return null;case 22:return e.lanes=0,h1(t,e,n,e.pendingProps);case 24:Ai(e,qt,t.memoizedState.cache)}return ni(t,e,n)}function y1(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Yt=!0;else{if(!vp(t,n)&&(e.flags&128)===0)return Yt=!1,S2(t,e,n);Yt=(t.flags&131072)!==0?!0:!1}else Yt=!1,X&&(e.flags&1048576)!==0&&Sv(e,yl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=ma(e.elementType),e.type=t,typeof t===\"function\")Jd(t)?(i=Ca(t,i),e.tag=1,e=Xy(null,e,t,i,n)):(e.tag=0,e=nd(null,e,t,i,n));else{if(t!==void 0&&t!==null){var a=t.$$typeof;if(a===Hd){e.tag=11,e=Ly(null,e,t,i,n);break t}else if(a===Ld){e.tag=14,e=Gy(null,e,t,i,n);break t}else if(a===Vn){e.tag=10,e.type=t,e=ky(null,e,n);break t}}throw e=Dm(t)||t,Error(C(306,e,\"\"))}}return e;case 0:return nd(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,a=Ca(i,e.pendingProps),Xy(t,e,i,a,n);case 3:t:{if(Mu(e,e.stateNode.containerInfo),t===null)throw Error(C(387));i=e.pendingProps;var r=e.memoizedState;a=r.element,km(t,e),ol(e,i,null,n);var o=e.memoizedState;if(i=o.cache,Ai(e,qt,i),i!==r.cache&&Zm(e,[qt],n,!0),rl(),i=o.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Ky(t,e,i,n);break t}else if(i!==a){a=on(Error(C(424)),e),vl(a),e=Ky(t,e,i,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}Et=sn(t.firstChild),Wt=e,X=!0,Vi=null,ln=!0,n=Cv(e,null,i,n);for(e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Sa(),i===a){e=ni(t,e,n);break t}Xt(t,e,i,n)}e=e.child}return e;case 26:return ur(t,e),t===null?(n=v0(e.type,null,e.pendingProps,null))?e.memoizedState=n:X||(e.stateNode=ox(e.type,e.pendingProps,Ni.current,e)):e.memoizedState=v0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Rm(e),t===null&&X&&(i=e.stateNode=gx(e.type,e.pendingProps,Ni.current),Wt=e,ln=!0,a=Et,Zi(e.type)?(Rd=a,Et=sn(i.firstChild)):Et=a),Xt(t,e,e.pendingProps.children,n),ur(t,e),t===null&&(e.flags|=4194304),e.child;case 5:if(t===null&&X){if(a=i=Et)i=dA(i,e.type,e.pendingProps,ln),i!==null?(e.stateNode=i,Wt=e,Et=sn(i.firstChild),ln=!1,a=!0):a=!1;a||ji(e)}return Rm(e),a=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,i=r.children,Nd(a,r)?i=null:o!==null&&Nd(a,o)&&(e.flags|=32),e.memoizedState!==null&&(a=rp(t,e,c2,null,null,n),Zr._currentValue=a),ur(t,e),Xt(t,e,i,n),e.child;case 6:if(t===null&&X){if(t=n=Et)n=pA(n,e.pendingProps,ln),n!==null?(e.stateNode=n,Wt=e,Et=null,t=!0):t=!1;t||ji(e)}return null;case 13:return g1(t,e,n);case 4:return Mu(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Aa(e,null,i,n):Xt(t,e,i,n),e.child;case 11:return Ly(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,ur(t,e),Xt(t,e,i,n),e.child;case 8:return Xt(t,e,e.pendingProps.children,n),e.child;case 12:return Xt(t,e,e.pendingProps.children,n),e.child;case 10:return ky(t,e,n);case 9:return a=e.type._context,i=e.pendingProps.children,Ea(e),a=ie(a),i=i(a),e.flags|=1,Xt(t,e,i,n),e.child;case 14:return Gy(t,e,e.type,e.pendingProps,n);case 15:return p1(t,e,e.type,e.pendingProps,n);case 19:return od(t,e,n);case 31:return x2(t,e,n);case 22:return h1(t,e,n,e.pendingProps);case 24:return Ea(e),i=ie(qt),t===null?(a=Wd(),a===null&&(a=yt,r=Id(),a.pooledCache=r,r.refCount++,r!==null&&(a.pooledCacheLanes|=n),a=r),e.memoizedState={parent:i,cache:a},ep(e),Ai(e,qt,a)):((t.lanes&n)!==0&&(km(t,e),ol(e,null,null,n),rl()),a=t.memoizedState,r=e.memoizedState,a.parent!==i?(a={parent:i,cache:i},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Ai(e,qt,i)):(i=r.cache,Ai(e,qt,i),i!==a.cache&&Zm(e,[qt],n,!0))),Xt(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=e.pendingProps,i.name!=null&&i.name!==\"auto\"?e.flags|=t===null?18882560:18874368:X&&rc(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:ur(t,e),Xt(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(C(156,e.tag))}function kn(t){t.flags|=4}function mm(t,e,n,i,a){var r;if(r=(t.mode&32)!==0)r=n===null?S0(e,i):S0(e,i)&&(i.src!==n.src||i.srcSet!==n.srcSet);if(r){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(Q1())t.flags|=8192;else throw xa=Ru,tp}else t.flags&=-16777217}function Fy(t,e){if(e.type!==\"stylesheet\"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!bx(e))if(Q1())t.flags|=8192;else throw xa=Ru,tp}function Ps(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Y0():536870912,t.lanes|=e,Gr|=e)}function Yo(t,e){if(!X)switch(t.tailMode){case\"visible\":break;case\"collapsed\":for(var n=t.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;break;default:e=t.tail;for(n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function Tt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function T2(t,e,n){var i=e.pendingProps;switch(Pd(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(e),null;case 1:return Tt(e),null;case 3:if(n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Pn(qt),Br(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),t===null||t.child===null)lr(e)?kn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,lm());return Tt(e),null;case 26:var{type:a,memoizedState:r}=e;return t===null?(kn(e),r!==null?(Tt(e),Fy(e,r)):(Tt(e),mm(e,a,null,i,n))):r?r!==t.memoizedState?(kn(e),Tt(e),Fy(e,r)):(Tt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&kn(e),Tt(e),mm(e,a,t,i,n)),null;case 27:if(Au(e),n=Ni.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(!i){if(e.stateNode===null)throw Error(C(166));return Tt(e),e.subtreeFlags&=-33554433,null}t=_n.current,lr(e)?Sy(e,t):(t=gx(a,i,n),e.stateNode=t,kn(e))}return Tt(e),e.subtreeFlags&=-33554433,null;case 5:if(Au(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(!i){if(e.stateNode===null)throw Error(C(166));return Tt(e),e.subtreeFlags&=-33554433,null}if(r=_n.current,lr(e))Sy(e,r);else{var o=Ml(Ni.current);switch(r){case 1:r=o.createElementNS(\"http://www.w3.org/2000/svg\",a);break;case 2:r=o.createElementNS(\"http://www.w3.org/1998/Math/MathML\",a);break;default:switch(a){case\"svg\":r=o.createElementNS(\"http://www.w3.org/2000/svg\",a);break;case\"math\":r=o.createElementNS(\"http://www.w3.org/1998/Math/MathML\",a);break;case\"script\":r=o.createElement(\"div\"),r.innerHTML=\"<script></script>\",r=r.removeChild(r.firstChild);break;case\"select\":r=typeof i.is===\"string\"?o.createElement(\"select\",{is:i.is}):o.createElement(\"select\"),i.multiple?r.multiple=!0:i.size&&(r.size=i.size);break;default:r=typeof i.is===\"string\"?o.createElement(a,{is:i.is}):o.createElement(a)}}r[ne]=e,r[ze]=i;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(oe(r,a,i),a){case\"button\":case\"input\":case\"select\":case\"textarea\":i=!!i.autoFocus;break t;case\"img\":i=!0;break t;default:i=!1}i&&kn(e)}}return Tt(e),e.subtreeFlags&=-33554433,mm(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(typeof i!==\"string\"&&e.stateNode===null)throw Error(C(166));if(t=Ni.current,lr(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,a=Wt,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}t[ne]=e,t=t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||ax(t.nodeValue,n)?!0:!1,t||ji(e,!0)}else t=Ml(t).createTextNode(i),t[ne]=e,e.stateNode=t}return Tt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=lr(e),n!==null){if(t===null){if(!i)throw Error(C(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(C(557));t[ne]=e}else Sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),t=!1}else n=lm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t){if(e.flags&256)return qe(e),e;return qe(e),null}if((e.flags&128)!==0)throw Error(C(558))}return Tt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=lr(e),i!==null&&i.dehydrated!==null){if(t===null){if(!a)throw Error(C(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(C(317));a[ne]=e}else Sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),a=!1}else a=lm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a){if(e.flags&256)return qe(e),e;return qe(e),null}}if(qe(e),(e.flags&128)!==0)return e.lanes=n,e;return n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==a&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ps(e,e.updateQueue),Tt(e),null;case 4:return Br(),t===null&&Cp(e.stateNode.containerInfo),e.flags|=67108864,Tt(e),null;case 10:return Pn(e.type),Tt(e),null;case 19:if(ip(e),i=e.memoizedState,i===null)return Tt(e),null;if(a=(e.flags&128)!==0,r=i.rendering,r===null)if(a)Yo(i,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Bu(t),r!==null){e.flags|=128,Yo(i,!1),t=r.updateQueue,e.updateQueue=t,Ps(e,t),e.subtreeFlags=0,t=n;for(n=e.child;n!==null;)xv(n,t),n=n.sibling;return bl(e,re.current&1|2),X&&Fn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ke()>Zu&&(e.flags|=128,a=!0,Yo(i,!1),e.lanes=4194304)}else{if(!a)if(t=Bu(r),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Ps(e,t),Yo(i,!0),i.tail===null&&i.tailMode!==\"collapsed\"&&i.tailMode!==\"visible\"&&!r.alternate&&!X)return Tt(e),null}else 2*Ke()-i.renderingStartTime>Zu&&n!==536870912&&(e.flags|=128,a=!0,Yo(i,!1),e.lanes=4194304);i.isBackwards?(r.sibling=e.child,e.child=r):(t=i.last,t!==null?t.sibling=r:e.child=r,i.last=r)}if(i.tail!==null){t=i.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,r=re.current,r=a?r&1|2:r&1,i.tailMode===\"visible\"||i.tailMode===\"collapsed\"||!n||X?bl(e,r):(n=r,Mt(le,e),Mt(re,n),he===null&&(he=e)),X&&Fn(e,i.treeForkCount),t}return Tt(e),null;case 22:case 23:return qe(e),np(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Tt(e),e.subtreeFlags&6&&(e.flags|=8192)):Tt(e),n=e.updateQueue,n!==null&&Ps(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&ae(va),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Pn(qt),Tt(e),null;case 25:return null;case 30:return e.flags|=33554432,Tt(e),null}throw Error(C(156,e.tag))}function E2(t,e){switch(Pd(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pn(qt),Br(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Au(e),null;case 31:if(e.memoizedState!==null){if(qe(e),e.alternate===null)throw Error(C(340));Sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(qe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(C(340));Sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ip(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Br(),null;case 10:return Pn(e.type),null;case 22:case 23:return qe(e),np(),t!==null&&ae(va),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Pn(qt),null;case 25:return null;default:return null}}function v1(t,e){switch(Pd(e),e.tag){case 3:Pn(qt),Br();break;case 26:case 27:case 5:Au(e);break;case 4:Br();break;case 31:e.memoizedState!==null&&qe(e);break;case 13:qe(e);break;case 19:ip(e);break;case 10:Pn(e.type);break;case 22:case 23:qe(e),np(),t!==null&&ae(va);break;case 24:Pn(qt)}}function Hl(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&t)===t){i=void 0;var{create:r,inst:o}=n;i=r(),o.destroy=i}n=n.next}while(n!==a)}}catch(l){mt(e,e.return,l)}}function Yi(t,e,n){try{var i=e.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var r=a.next;i=r;do{if((i.tag&t)===t){var o=i.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,a=e;var s=n,c=l;try{c()}catch(u){mt(a,s,u)}}}i=i.next}while(i!==r)}}catch(u){mt(e,e.return,u)}}function x1(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Nv(e,n)}catch(i){mt(t,t.return,i)}}}function b1(t,e,n){n.props=Ca(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){mt(t,e,i)}}function On(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:var a=t.stateNode,r=Wn(t.memoizedProps,a);if(a.ref===null||a.ref.name!==r)a.ref=cx(r);i=a.ref;break;case 7:if(t.stateNode===null){var o=new $e(t);De(t.child,!1,fA,o,void 0,void 0),t.stateNode=o}i=t.stateNode;break;default:i=t.stateNode}typeof n===\"function\"?t.refCleanup=n(i):n.current=i}}catch(l){mt(t,e,l)}}function ee(t,e){var{ref:n,refCleanup:i}=t;if(n!==null)if(typeof i===\"function\")try{i()}catch(a){mt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n===\"function\")try{n(null)}catch(a){mt(t,e,a)}else n.current=null}function ju(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)px(t.stateNode,e[n])}function $y(t){for(var e=t.return;e!==null;){if(bp(e)&&px(t.stateNode,e.stateNode),xp(e))break;e=e.return}}function ul(t){for(var e=t.return;e!==null;){if(bp(e)&&mA(t.stateNode,e.stateNode),xp(e))break;e=e.return}}function xp(t){return t.tag===5||t.tag===3||t.tag===27}function bp(t){return t&&t.tag===7&&t.stateNode!==null}function ld(t){var{type:e,memoizedProps:n,stateNode:i}=t;try{t:switch(e){case\"button\":case\"input\":case\"select\":case\"textarea\":n.autoFocus&&i.focus();break t;case\"img\":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){mt(t,t.return,a)}}function dm(t,e,n){try{var i=t.stateNode;k2(i,t.type,n,e),i[ze]=e}catch(a){mt(t,t.return,a)}}function S1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zi(t.type)||t.tag===4}function pm(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||S1(t.return))return null;t=t.return}t.sibling.return=t.return;for(t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Zi(t.type))continue t;if(t.flags&2)continue t;if(t.child===null||t.tag===4)continue t;else t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sd(t,e,n,i){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName===\"HTML\"?n.ownerDocument.body:n).insertBefore(a,e):(e=n.nodeType===9?n.body:n.nodeName===\"HTML\"?n.ownerDocument.body:n,e.appendChild(a),n=n._reactRootContainer,n!==null&&n!==void 0||e.onclick!==null||(e.onclick=Dn)),ju(t,i),nt=!0;else if(a!==4&&(a===27&&(ju(t,i),i=null,Zi(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(sd(t,e,n,i),t=t.sibling;t!==null;)sd(t,e,n,i),t=t.sibling}function qu(t,e,n,i){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?n.insertBefore(a,e):n.appendChild(a),ju(t,i),nt=!0;else if(a!==4&&(a===27&&(ju(t,i),i=null,Zi(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(qu(t,e,n,i),t=t.sibling;t!==null;)qu(t,e,n,i),t=t.sibling}function T1(t){var{stateNode:e,memoizedProps:n}=t;try{for(var i=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);oe(e,i,n),e[ne]=t,e[ze]=n}catch(r){mt(t,t.return,r)}}var Yu=!1,Ye=null;function Jy(t){if(t.tag===30||(t.subtreeFlags&33554432)!==0)Yu=!0}var Nn=null;function Py(){var t=Nn;return Nn=null,t}var Oe=0;function Pr(t,e,n,i,a){return Oe=0,E1(t.child,e,n,i,a)}function E1(t,e,n,i,a){for(var r=!1;t!==null;){if(t.tag===5){var o=t.stateNode;if(i!==null){var l=Vd(o);i.push(l),l.view&&(r=!0)}else r||Vd(o).view&&(r=!0);Yu=!0,lx(o,Oe===0?e:e+\"_\"+Oe,n),Oe++}else if(t.tag!==22||t.memoizedState===null)t.tag===30&&a||E1(t.child,e,n,i,a)&&(r=!0);t=t.sibling}return r}function Un(t,e){for(;t!==null;){if(t.tag===5)sx(t.stateNode,t.memoizedProps);else if(t.tag!==22||t.memoizedState===null)t.tag===30&&e||Un(t.child,e);t=t.sibling}}function pu(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(pu(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired){var e=t.memoizedProps;if(e.name==null||e.name===\"auto\")throw Error(C(544));var n=e.name;e=ri(e.default,e.share),e!==\"none\"&&(Pr(t,n,e,null,!1)||Un(t.child,!1))}}t=t.sibling}}function ud(t,e){if(t.tag===30){var{stateNode:n,memoizedProps:i}=t,a=Wn(i,n),r=ri(i.default,n.paired?i.share:i.enter);r!==\"none\"?Pr(t,a,r,null,!1)?(pu(t),n.paired||e||jr(t,i.onEnter)):Un(t.child,!1):pu(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ud(t,e),t=t.sibling;else pu(t)}function cd(t){if(Ye!==null&&Ye.size!==0){var e=Ye;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,i=n.name;if(i!=null&&i!==\"auto\"){var a=e.get(i);if(a!==void 0){var r=ri(n.default,n.share);if(r!==\"none\"&&(Pr(t,i,r,null,!1)?(r=t.stateNode,a.paired=r,r.paired=a,jr(t,n.onShare)):Un(t.child,!1)),e.delete(i),e.size===0)break}}}cd(t)}t=t.sibling}}}function fd(t){if(t.tag===30){var e=t.memoizedProps,n=Wn(e,t.stateNode),i=Ye!==null?Ye.get(n):void 0,a=ri(e.default,i!==void 0?e.share:e.exit);a!==\"none\"&&(Pr(t,n,a,null,!1)?i!==void 0?(a=t.stateNode,i.paired=a,a.paired=i,Ye.delete(n),jr(t,e.onShare)):jr(t,e.onExit):Un(t.child,!1)),Ye!==null&&cd(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)fd(t),t=t.sibling;else Ye!==null&&cd(t)}function M1(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Wn(e,t.stateNode);e=ri(e.default,e.update),t.flags&=-5,e!==\"none\"&&Pr(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&M1(t);t=t.sibling}}function md(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Un(t.child,!1))}md(t)}t=t.sibling}}function hu(t){if(t.tag===30)t.stateNode.paired=null,Un(t.child,!1),md(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)hu(t),t=t.sibling;else md(t)}function A1(t){for(t=t.child;t!==null;)t.tag===30?Un(t.child,!1):(t.subtreeFlags&33554432)!==0&&A1(t),t=t.sibling}function Sp(t,e,n,i,a,r,o){for(var l=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(r!==null&&Oe<r.length){var c=r[Oe],u=Vd(s);if(c.view||u.view)l=!0;var f;if(f=(t.flags&4)===0)if(u.clip)f=!0;else{f=c.rect;var m=u.rect;f=f.y!==m.y||f.x!==m.x||f.height!==m.height||f.width!==m.width}f&&(t.flags|=4),u.abs?u=!c.abs:(c=c.rect,u=u.rect,u=c.height!==u.height||c.width!==u.width),u&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&lx(s,Oe===0?n:n+\"_\"+Oe,a),l&&(t.flags&4)!==0||(Nn===null&&(Nn=[]),Nn.push(s,Oe===0?i:i+\"_\"+Oe,e.memoizedProps)),Oe++}else if(e.tag!==22||e.memoizedState===null)e.tag===30&&o?t.flags|=e.flags&32:Sp(t,e.child,n,i,a,r,o)&&(l=!0);e=e.sibling}return l}function w1(t,e){for(t=t.child;t!==null;){if(t.tag===30){var{memoizedProps:n,stateNode:i}=t,a=Wn(n,i),r=ri(n.default,n.update);if(e){i=i.clones;var o=i===null?null:i.map(W2)}else o=t.memoizedState,t.memoizedState=null;i=t;var l=t.child;Oe=0,a=Sp(i,l,a,a,r,o,!1),(t.flags&4)!==0&&a&&(e||jr(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&w1(t,e);t=t.sibling}}var Jt=!1,ot=!1,An=!1,hm=!1,Iy=typeof WeakSet===\"function\"?WeakSet:Set,Pt=null,wn=!1,Po=!1,Xu=!1,dd=!1;function M2(t,e,n){if(t=t.containerInfo,Cd=Qr,t=fv(t),kd(t)){if(\"selectionStart\"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var{anchorOffset:r,focusNode:o}=a;a=a.focusOffset;try{i.nodeType,o.nodeType}catch(x){i=null;break t}var l=0,s=-1,c=-1,u=0,f=0,m=t,d=null;e:for(;;){for(var y;;){if(m!==i||r!==0&&m.nodeType!==3||(s=l+r),m!==o||a!==0&&m.nodeType!==3||(c=l+a),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)===null)break;d=m,m=y}for(;;){if(m===t)break e;if(d===i&&++u===r&&(s=l),d===o&&++f===a&&(c=l),(y=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=y}i=s===-1||c===-1?null:{start:s,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;Od={focusedElem:t,selectionRange:i},Qr=!1,n=(n&335544064)===n,Pt=e;for(e=n?9270:1024;Pt!==null;){if(t=Pt,n&&(i=t.deletions,i!==null))for(r=0;r<i.length;r++)n&&fd(i[r]);if(t.alternate===null&&(t.flags&2)!==0)n&&Jy(t),Is(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&fd(i),Is(n);continue}else if(i!==null&&i.memoizedState!==null){n&&Jy(t),Is(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,Pt=i):(n&&M1(t),Is(n))}}Ye=null}function Is(t){for(;Pt!==null;){var e=Pt,n=t,i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var r=e.stateNode;try{var o=Ca(e.type,a);n=r.getSnapshotBeforeUpdate(o,i),r.__reactInternalSnapshotBeforeUpdate=n}catch(l){mt(e,e.return,l)}}break;case 3:if((a&1024)!==0){if(i=e.stateNode.containerInfo,n=i.nodeType,n===9)Dd(i);else if(n===1)switch(i.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Dd(i);break;default:i.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=Wn(i.memoizedProps,i.stateNode),a=e.memoizedProps,a=ri(a.default,a.update),a!==\"none\"&&Pr(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(C(163))}if(i=e.sibling,i!==null){i.return=e.return,Pt=i;break}Pt=e.return}}function C1(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(t,n),i&4&&Hl(5,n);break;case 1:if(Cn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(o){mt(n,n.return,o)}else{var a=Ca(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){mt(n,n.return,o)}}i&64&&x1(n),i&512&&On(n,n.return);break;case 3:if(Cn(t,n),i&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{Nv(t,e)}catch(o){mt(n,n.return,o)}}break;case 27:e===null&&i&4&&T1(n);case 26:case 5:Cn(t,n),e===null&&i&4&&ld(n),i&512&&On(n,n.return);break;case 12:Cn(t,n);break;case 31:Cn(t,n),i&4&&D1(t,n);break;case 13:Cn(t,n),i&4&&z1(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=U2.bind(null,n),hA(t,n))));break;case 22:if(i=n.memoizedState!==null||Jt,!i){var r=e!==null&&e.memoizedState!==null||ot;e=Jt,a=ot,Jt=i,(ot=r)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),pn(t,n,i)):Cn(t,n),Jt=e,ot=a}break;case 30:Cn(t,n),i&512&&On(n,n.return);break;case 7:i&512&&On(n,n.return);default:Cn(t,n)}}function pd(t,e){for(t=t.child;t!==null;)O1(t,e),t=t.sibling}function O1(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var i=n.style;typeof i.setProperty===\"function\"?i.setProperty(\"display\",\"none\",\"important\"):i.display=\"none\"}else{var a=t.stateNode,r=t.memoizedProps.style,o=r!==void 0&&r!==null&&r.hasOwnProperty(\"display\")?r.display:null;a.style.display=o==null||typeof o===\"boolean\"?\"\":(\"\"+o).trim()}}catch(s){mt(t,t.return,s)}hd(t,e);break;case 6:try{t.stateNode.nodeValue=e?\"\":t.memoizedProps,nt=!0}catch(s){mt(t,t.return,s)}break;case 18:try{var l=t.stateNode;e?m0(l,!0):m0(t.stateNode,!1)}catch(s){mt(t,t.return,s)}break;case 22:case 23:t.memoizedState===null&&pd(t,e);break;default:pd(t,e)}}function hd(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:O1(n,i);break t;case 22:n.memoizedState===null&&hd(n,i);break t;default:hd(n,i)}}t=t.sibling}}function N1(t){var e=t.alternate;e!==null&&(t.alternate=null,N1(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Wu(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 Vt=null,we=!1;function dn(t,e,n){for(n=n.child;n!==null;)V1(t,e,n),n=n.sibling}function V1(t,e,n){if(Ze&&typeof Ze.onCommitFiberUnmount===\"function\")try{Ze.onCommitFiberUnmount(Vl,n)}catch(r){}switch(n.tag){case 26:ot||ee(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ot&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ot||ee(n,e),ul(n);var i=Vt,a=we;Zi(n.type)&&(Vt=n.stateNode,we=!1),dn(t,e,n),yx(n.stateNode,n.type,n.memoizedProps),Vt=i,we=a;break;case 5:ot||ee(n,e),ul(n);case 6:if(n.tag===6&&ul(n),i=Vt,a=we,Vt=null,dn(t,e,n),Vt=i,we=a,Vt!==null)if(we)try{(Vt.nodeType===9?Vt.body:Vt.nodeName===\"HTML\"?Vt.ownerDocument.body:Vt).removeChild(n.stateNode),nt=!0}catch(r){mt(n,e,r)}else try{Vt.removeChild(n.stateNode),nt=!0}catch(r){mt(n,e,r)}break;case 18:Vt!==null&&(we?(t=Vt,f0(t.nodeType===9?t.body:t.nodeName===\"HTML\"?t.ownerDocument.body:t,n.stateNode),kr(t)):f0(Vt,n.stateNode));break;case 4:i=Vt,a=we,Vt=n.stateNode.containerInfo,we=!0,dn(t,e,n),Vt=i,we=a;break;case 0:case 11:case 14:case 15:Yi(2,n,e),ot||Yi(4,n,e),dn(t,e,n);break;case 1:ot||(ee(n,e),i=n.stateNode,typeof i.componentWillUnmount===\"function\"&&b1(n,e,i)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:ot=(i=ot)||n.memoizedState!==null,dn(t,e,n),ot=i;break;case 30:ee(n,e),dn(t,e,n);break;case 7:ot||ee(n,e),dn(t,e,n);break;default:dn(t,e,n)}}function D1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kr(t)}catch(n){mt(e,e.return,n)}}}function z1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kr(t)}catch(n){mt(e,e.return,n)}}function A2(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Iy),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Iy),e;default:throw Error(C(435,t.tag))}}function Ws(t,e){var n=A2(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var a=H2.bind(null,t,i);i.then(a,a)}})}function xe(t,e,n){var i=e.deletions;if(i!==null)for(var a=0;a<i.length;a++){var r=i[a],o=t,l=e,s=l;t:for(;s!==null;){switch(s.tag){case 27:if(Zi(s.type)){Vt=s.stateNode,we=!1;break t}break;case 5:Vt=s.stateNode,we=!1;break t;case 3:case 4:Vt=s.stateNode.containerInfo,we=!0;break t}s=s.return}if(Vt===null)throw Error(C(160));V1(o,l,r),Vt=null,we=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)R1(e,t,n),e=e.sibling}var hn=null;function R1(t,e,n){var{alternate:i,flags:a}=t;switch(t.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=t.updateQueue,i=i!==null?i.events:null,i!==null))for(var r=0;r<i.length;r++){var o=i[r];o.ref.impl=o.nextImpl}xe(e,t,n),be(t),a&4&&(Yi(3,t,t.return),Hl(3,t),Yi(5,t,t.return));break;case 1:xe(e,t,n),be(t),a&512&&(ot||i===null||ee(i,i.return)),a&64&&Jt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(r=hn,xe(e,t,n),be(t),a&512&&(ot||i===null||ee(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null)if(Jt)t.stateNode=ox(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,a=r.ownerDocument||r;e:switch(e){case\"title\":if(i=a.getElementsByTagName(\"title\")[0],!i||i[Rl]||i[ne]||i.namespaceURI===\"http://www.w3.org/2000/svg\"||i.hasAttribute(\"itemprop\"))i=a.createElement(e),a.head.insertBefore(i,a.querySelector(\"head > title\"));oe(i,e,n),i[ne]=t,It(i),e=i;break t;case\"link\":if(r=b0(\"link\",\"href\",a).get(e+(n.href||\"\"))){for(o=0;o<r.length;o++)if(i=r[o],i.getAttribute(\"href\")===(n.href==null||n.href===\"\"?null:n.href)&&i.getAttribute(\"rel\")===(n.rel==null?null:n.rel)&&i.getAttribute(\"title\")===(n.title==null?null:n.title)&&i.getAttribute(\"crossorigin\")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break e}}i=a.createElement(e),oe(i,e,n),a.head.appendChild(i);break;case\"meta\":if(r=b0(\"meta\",\"content\",a).get(e+(n.content||\"\"))){for(o=0;o<r.length;o++)if(i=r[o],i.getAttribute(\"content\")===(n.content==null?null:\"\"+n.content)&&i.getAttribute(\"name\")===(n.name==null?null:n.name)&&i.getAttribute(\"property\")===(n.property==null?null:n.property)&&i.getAttribute(\"http-equiv\")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute(\"charset\")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break e}}i=a.createElement(e),oe(i,e,n),a.head.appendChild(i);break;default:throw Error(C(468,e))}i[ne]=t,It(i),e=i}t.stateNode=e}else Jt||_d(r,t.type,t.stateNode);else t.stateNode=x0(r,n,t.memoizedProps);else a!==n?(a===null?(e=i.stateNode,e===null||ot||e.parentNode.removeChild(e)):a.count--,n===null?Jt||_d(r,t.type,t.stateNode):x0(r,n,t.memoizedProps)):n===null&&t.stateNode!==null&&dm(t,t.memoizedProps,i.memoizedProps);break;case 27:xe(e,t,n),be(t),a&512&&(ot||i===null||ee(i,i.return)),i!==null&&a&4&&dm(t,t.memoizedProps,i.memoizedProps);break;case 5:if(r=An,An=!1,xe(e,t,n),An=r,be(t),a&512&&(ot||i===null||ee(i,i.return)),t.flags&32){e=t.stateNode;try{Hr(e,\"\"),nt=!0}catch(u){mt(t,t.return,u)}}a&4&&t.stateNode!=null&&(e=t.memoizedProps,dm(t,e,i!==null?i.memoizedProps:e)),a&1024&&(hm=!0);break;case 6:if(xe(e,t,n),be(t),a&4){if(t.stateNode===null)throw Error(C(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,nt=!0}catch(u){mt(t,t.return,u)}}break;case 3:if(nt=!1,xu=null,r=hn,hn=Al(e.containerInfo),xe(e,t,n),hn=r,be(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{kr(e.containerInfo)}catch(u){mt(t,t.return,u)}hm&&(hm=!1,_1(t)),nt=!1;break;case 4:a=An,An=Jt,i=ay(),r=hn,hn=Al(t.stateNode.containerInfo),xe(e,t,n),be(t),hn=r,nt&&Po&&(Xu=!0),nt=i,An=a;break;case 12:xe(e,t,n),be(t);break;case 31:xe(e,t,n),be(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ws(t,e)));break;case 13:xe(e,t,n),be(t),t.child.flags&8192&&t.memoizedState!==null!==(i!==null&&i.memoizedState!==null)&&(mc=Ke()),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ws(t,e)));break;case 22:r=t.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var l=Jt,s=ot,c=An;Jt=l||r,An=c||r,ot=s||o,xe(e,t,n),ot=s,An=c,Jt=l,be(t),a&8192&&(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,!r||i===null||o||Jt||ot||(e=o||ot,n=Jt,i=ot,Jt=r||Jt,ot=e,xi(t,2),Jt=n,ot=i),!r&&An||pd(t,r)),a&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,Ws(t,n))));break;case 19:xe(e,t,n),be(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ws(t,e)));break;case 30:a&512&&(ot||i===null||ee(i,i.return)),a=ay(),r=Po,o=(n&335544064)===n,l=t.memoizedProps,Po=o&&ri(l.default,l.update)!==\"none\",xe(e,t,n),be(t),o&&i!==null&&nt&&(t.flags|=4),Po=r,nt=a;break;case 21:break;case 7:a&512&&(ot||i===null||ee(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:xe(e,t,n),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(S1(i)){n=i;break}i=i.return}i=null;for(var a=t.return;a!==null;){if(bp(a)){var r=a.stateNode;i===null?i=[r]:i.push(r)}if(xp(a))break;a=a.return}var o=i;if(n==null)throw Error(C(160));switch(n.tag){case 27:var l=n.stateNode,s=pm(t);qu(t,s,l,o);break;case 5:var c=n.stateNode;n.flags&32&&(Hr(c,\"\"),n.flags&=-33);var u=pm(t);qu(t,u,c,o);break;case 3:case 4:var f=n.stateNode.containerInfo,m=pm(t);sd(t,m,f,o);break;default:throw Error(C(161))}}catch(d){mt(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;_1(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,Qr=!0,e.reset(),Qr=!1),t=t.sibling}}function sr(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)B1(e,t),e=e.sibling;else w1(e,!1)}function B1(t,e){var n=t.alternate;if(n===null)ud(t,!1);else switch(t.tag){case 3:if(dd=wn=!1,Py(),sr(e,t),!wn&&!Xu){if(t=Nn,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var a=t[i+1];sx(n,t[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[\"none\",\"none\"]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition-group(\"+a+\")\"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===\"\"&&(t.style.viewTransitionName=\"none\",t.animate({opacity:[0,0],pointerEvents:[\"none\",\"none\"]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition-group(root)\"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:\"forwards\",pseudoElement:\"::view-transition\"})),dd=!0}Nn=null;break;case 5:sr(e,t);break;case 4:i=wn,wn=!1,sr(e,t),wn&&(Xu=!0),wn=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?ud(t,!1):sr(e,t));break;case 30:i=wn,a=Py(),wn=!1,sr(e,t),wn&&(t.flags|=4);var{memoizedProps:r,stateNode:o}=t;e=Wn(r,o),o=Wn(n.memoizedProps,o);var l=ri(r.default,r.update);l===\"none\"?e=!1:(r=n.memoizedState,n.memoizedState=null,n=t.child,Oe=0,e=Sp(t,n,e,o,l,r,!0),Oe!==(r===null?0:r.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(jr(t,t.memoizedProps.onUpdate),Nn=a):a!==null&&(a.push.apply(a,Nn),Nn=a),wn=(t.flags&32)!==0?!0:i;break;default:sr(e,t)}}function Cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)C1(t,e.alternate,e),e=e.sibling}function xi(t,e){for(t=t.child;t!==null;){var n=t,i=e;switch(n.tag){case 0:case 11:case 14:case 15:Yi(4,n,n.return),xi(n,i);break;case 1:ee(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount===\"function\"&&b1(n,n.return,a),xi(n,i);break;case 27:(i&2)!==0&&yx(n.stateNode,n.type,n.memoizedProps);case 5:ee(n,n.return),n.tag!==5&&n.tag!==27||ul(n),xi(n,i);break;case 6:ul(n);break;case 26:ee(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||ot||a.parentNode.removeChild(a),xi(n,i);break;case 22:n.memoizedState===null&&xi(n,i);break;case 30:ee(n,n.return),xi(n,i);break;case 7:ee(n,n.return);default:xi(n,i)}t=t.sibling}}function pn(t,e,n){n=(e.subtreeFlags&8772)!==0?n:n&-2;for(e=e.child;e!==null;){var i=e.alternate,a=t,r=e,o=r.flags,l=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:pn(a,r,n),Hl(4,r);break;case 1:if(pn(a,r,n),i=r,a=i.stateNode,typeof a.componentDidMount===\"function\")try{a.componentDidMount()}catch(u){mt(i,i.return,u)}if(i=r,a=i.updateQueue,a!==null){var s=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Ov(c[a],s)}catch(u){mt(i,i.return,u)}}l&&o&64&&x1(r),On(r,r.return);break;case 27:(n&2)!==0&&T1(r);case 5:r.tag!==5&&r.tag!==27||$y(r),pn(a,r,n),l&&i===null&&o&4&&ld(r),On(r,r.return);break;case 6:$y(r);break;case 26:s=r.stateNode,r.memoizedState!==null||s===null||Jt||_d(Al(s.ownerDocument),r.type,s),pn(a,r,n),l&&i===null&&o&4&&ld(r),On(r,r.return);break;case 12:pn(a,r,n);break;case 31:pn(a,r,n),l&&o&4&&D1(a,r);break;case 13:pn(a,r,n),l&&o&4&&z1(a,r);break;case 22:r.memoizedState===null&&pn(a,r,n),On(r,r.return);break;case 30:pn(a,r,n),On(r,r.return);break;case 7:On(r,r.return);default:pn(a,r,n)}e=e.sibling}}function Tp(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&&Bl(n))}function Ep(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t))}function tn(t,e,n,i){var a=(n&335544064)===n;if(e.subtreeFlags&(a?10262:10256))for(e=e.child;e!==null;)U1(t,e,n,i),e=e.sibling;else a&&A1(e)}function U1(t,e,n,i){var a=(n&335544064)===n;a&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&hu(e);var r=e.flags;switch(e.tag){case 0:case 11:case 15:tn(t,e,n,i),r&2048&&Hl(9,e);break;case 1:tn(t,e,n,i);break;case 3:tn(t,e,n,i),a&&dd&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName===\"HTML\"?t.ownerDocument.body:t,t.style.viewTransitionName===\"root\"&&(t.style.viewTransitionName=\"\"),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===\"none\"&&(t.style.viewTransitionName=\"\")),r&2048&&(r=null,e.alternate!==null&&(r=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==r&&(e.refCount++,r!=null&&Bl(r)));break;case 12:if(r&2048){tn(t,e,n,i),r=e.stateNode;try{var o=e.memoizedProps,l=o.id,s=o.onPostCommit;typeof s===\"function\"&&s(l,e.alternate===null?\"mount\":\"update\",r.passiveEffectDuration,-0)}catch(c){mt(e,e.return,c)}}else tn(t,e,n,i);break;case 31:tn(t,e,n,i);break;case 13:tn(t,e,n,i);break;case 23:break;case 22:o=e.stateNode,l=e.alternate,e.memoizedState!==null?(a&&l!==null&&l.memoizedState===null&&hu(l),o._visibility&2?tn(t,e,n,i):cl(t,e)):(a&&l!==null&&l.memoizedState!==null&&hu(e),o._visibility&2?tn(t,e,n,i):(o._visibility|=2,cr(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),r&2048&&Tp(l,e);break;case 24:tn(t,e,n,i),r&2048&&Ep(e.alternate,e);break;case 30:a&&(r=e.alternate,r!==null&&(Un(r.child,!0),Un(e.child,!0))),tn(t,e,n,i);break;default:tn(t,e,n,i)}}function cr(t,e,n,i,a){a=a&&((e.subtreeFlags&10256)!==0||!1);for(e=e.child;e!==null;){var r=t,o=e,l=n,s=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:cr(r,o,l,s,a),Hl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState!==null?u._visibility&2?cr(r,o,l,s,a):cl(r,o):(u._visibility|=2,cr(r,o,l,s,a)),a&&c&2048&&Tp(o.alternate,o);break;case 24:cr(r,o,l,s,a),a&&c&2048&&Ep(o.alternate,o);break;default:cr(r,o,l,s,a)}e=e.sibling}}function cl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,a=i.flags;switch(i.tag){case 22:cl(n,i),a&2048&&Tp(i.alternate,i);break;case 24:cl(n,i),a&2048&&Ep(i.alternate,i);break;default:cl(n,i)}e=e.sibling}}var da=8192;function ua(t,e,n){if(t.subtreeFlags&da)for(t=t.child;t!==null;)H1(t,e,n),t=t.sibling}function H1(t,e,n){switch(t.tag){case 26:ua(t,e,n),t.flags&da&&(t.memoizedState!==null?NA(n,hn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&T0(n,t)));break;case 5:ua(t,e,n),t.flags&da&&(t=t.stateNode,(e&335544128)===e&&T0(n,t));break;case 3:case 4:var i=hn;hn=Al(t.stateNode.containerInfo),ua(t,e,n),hn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=da,da=16777216,ua(t,e,n),da=i):ua(t,e,n));break;case 30:if((t.flags&da)!==0&&(i=t.memoizedProps.name,i!=null&&i!==\"auto\")){var a=t.stateNode;a.paired=null,Ye===null&&(Ye=new Map),Ye.set(i,a)}ua(t,e,n);break;default:ua(t,e,n)}}function L1(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 Xo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Pt=i,j1(i,t)}L1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)G1(t),t=t.sibling}function G1(t){switch(t.tag){case 0:case 11:case 15:Xo(t),t.flags&2048&&Yi(9,t,t.return);break;case 3:Xo(t);break;case 12:Xo(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gu(t)):Xo(t);break;default:Xo(t)}}function gu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Pt=i,j1(i,t)}L1(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Yi(8,e,e.return),gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gu(e));break;default:gu(e)}t=t.sibling}}function j1(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:Yi(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Bl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Pt=i;else t:for(n=t;Pt!==null;){i=Pt;var{sibling:a,return:r}=i;if(N1(i),i===n){Pt=null;break t}if(a!==null){a.return=r,Pt=a;break t}Pt=r}}}var w2={getCacheForType:function(t){var e=ie(qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ie(qt).controller.signal}},C2=typeof WeakMap===\"function\"?WeakMap:Map,at=0,yt=null,Q=null,k=0,ct=0,Ge=null,wi=!1,Ir=!1,Mp=!1,ii=0,Bt=0,Xi=0,ba=0,Ku=0,Xe=0,Gr=0,fl=null,Ce=null,gd=!1,mc=0,q1=0,Zu=1/0,Qu=null,Bi=null,Dt=0,yn=null,Oa=null,Bn=0,yd=0,vd=null,Y1=null,zr=null,Rr=null,_r=null,ml=0,yu=null;function ke(){return(at&2)!==0&&k!==0?k&-k:_.T!==null?wp():Q0()}function X1(){if(Xe===0)if((k&536870912)===0||X){var t=Ys;Ys<<=1,(Ys&3932160)===0&&(Ys=262144),Xe=t}else Xe=536870912;return t=le.current,t!==null&&(t.flags|=32),Xe}function jr(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=cx(Wn(t.memoizedProps,n))),Rr===null&&(Rr=[]),Rr.push(e.bind(null,i))}}function Ve(t,e,n){if(t===yt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)qr(t,0),Ci(t,k,Xe,!1);if(zl(t,n),(at&2)===0||t!==yt)t===yt&&((at&2)===0&&(ba|=n),Bt===4&&Ci(t,k,Xe,!1)),Ln(t)}function K1(t,e,n){if((at&6)!==0)throw Error(C(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Dl(t,e),a=i?V2(t,e):gm(t,e,!0),r=i;do{if(a===0){Ir&&!i&&Ci(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!O2(n)){a=gm(t,e,!1),r=!1;continue}if(a===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var l=t;a=fl;var s=l.current.memoizedState.isDehydrated;if(s&&(qr(l,o).flags|=256),o=gm(l,o,!1),o!==2&&o!==6){if(Mp&&!s){l.errorRecoveryDisabledLanes|=r,ba|=r,a=4;break t}r=Ce,Ce=a,r!==null&&(Ce===null?Ce=r:Ce.push.apply(Ce,r))}a=o}if(r=!1,a!==2)continue}}if(a===1){qr(t,0),Ci(t,e,0,!0);break}t:{switch(i=t,r=a,r){case 0:case 1:throw Error(C(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Ci(i,e,Xe,!wi);break t;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(C(329))}if((e&62914560)===e&&(a=mc+300-Ke(),10<a)){if(Ci(i,e,Xe,!wi),Iu(i,0,!0)!==0)break t;Bn=e,i.timeoutHandle=Op(Wy.bind(null,i,n,Ce,Qu,gd,e,Xe,ba,Gr,wi,r,\"Throttled\",-0,0),a);break t}Wy(i,n,Ce,Qu,gd,e,Xe,ba,Gr,wi,r,null,-0,0)}}break}while(1);Ln(t)}function Wy(t,e,n,i,a,r,o,l,s,c,u,f,m,d){t.timeoutHandle=-1;var y=e.subtreeFlags,x=(r&335544064)===r;if(f=null,x||y&8192||(y&16785408)===16785408){if(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dn},Ye=null,H1(e,r,f),x&&(y=f,x=t.containerInfo,x=(x.nodeType===9?x:x.ownerDocument).__reactViewTransition,x!=null&&(y.count++,y.waitingForViewTransition=!0,y=wl.bind(y),x.finished.then(y,y))),y=(r&62914560)===r?mc-Ke():(r&4194048)===r?q1-Ke():0,y=VA(f,y),y!==null){Bn=r,t.cancelPendingCommit=y(e0.bind(null,t,e,r,n,i,a,o,l,s,c,u,f,null,m,d)),Ci(t,r,o,!c);return}}e0(t,e,r,n,i,a,o,l,s,c,u,f)}function O2(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 i=0;i<n.length;i++){var a=n[i],r=a.getSnapshot;a=a.value;try{if(!Fe(r(),a))return!1}catch(o){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 Ci(t,e,n,i){e=q0(t,e),e&=~Ku,e&=~ba,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var a=e;0<a;){var r=31-Qe(a),o=1<<r;i[r]=-1,a&=~o}n!==0&&X0(t,n,e)}function dc(){return(at&6)===0?(Ll(0,!1),!1):!0}function Ap(){if(Q!==null){if(ct===0)var t=Q.return;else t=Q,$n=Ra=null,sp(t),Nr=null,xl=0,t=Q;for(;t!==null;)v1(t.alternate,t),t=t.return;Q=null}}function qr(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,J2(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Bn=0,Ap(),yt=t,Q=n=Jn(t.current,null),k=e,ct=0,Ge=null,wi=!1,Ir=Dl(t,e),Mp=!1,Gr=Xe=Ku=ba=Xi=Bt=0,Ce=fl=null,gd=!1,ii=q0(t,e),ic(),n}function Z1(t,e){j=null,_.H=Lu,e===Jr||e===oc?(e=wy(),ct=3):e===tp?(e=wy(),ct=4):ct=e===gp?8:e!==null&&typeof e===\"object\"&&typeof e.then===\"function\"?6:1,Ge=e,Q===null&&(Bt=1,Gu(t,on(e,t.current)))}function Q1(){var t=le.current;return t===null?!0:(k&4194048)===k?he===null?!0:!1:(k&62914560)===k||(k&536870912)!==0?t===he:!1}function k1(){var t=_.H;return _.H=Lu,t===null?Lu:t}function F1(){var t=_.A;return _.A=w2,t}function ku(){Bt=4,wi||(k&4194048)!==k&&le.current!==null||(Ir=!0),(Xi&134217727)===0&&(ba&134217727)===0||yt===null||Ci(yt,k,Xe,!1)}function gm(t,e,n){var i=at;at|=2;var a=k1(),r=F1();if(yt!==t||k!==e)Qu=null,qr(t,e);e=!1;var o=Bt;t:do try{if(ct!==0&&Q!==null){var l=Q,s=Ge;switch(ct){case 8:Ap(),o=6;break t;case 3:case 2:case 9:case 6:le.current===null&&(e=!0);var c=ct;if(ct=0,Ge=null,Mr(t,l,s,c),n&&Ir){o=0;break t}break;default:c=ct,ct=0,Ge=null,Mr(t,l,s,c)}}N2(),o=Bt;break}catch(u){Z1(t,u)}while(1);return e&&t.shellSuspendCounter++,$n=Ra=null,at=i,_.H=a,_.A=r,Q===null&&(yt=null,k=0,ic()),o}function N2(){for(;Q!==null;)$1(Q)}function V2(t,e){var n=at;at|=2;var i=k1(),a=F1();yt!==t||k!==e?(Qu=null,Zu=Ke()+500,qr(t,e)):Ir=Dl(t,e);t:do try{if(ct!==0&&Q!==null){e=Q;var r=Ge;e:switch(ct){case 1:ct=0,Ge=null,Mr(t,e,r,1);break;case 2:case 9:if(Ay(r)){ct=0,Ge=null,t0(e);break}e=function(){ct!==2&&ct!==9||yt!==t||(ct=7),Ln(t)},r.then(e,e);break t;case 3:ct=7;break t;case 4:ct=5;break t;case 7:Ay(r)?(ct=0,Ge=null,t0(e)):(ct=0,Ge=null,Mr(t,e,r,7));break;case 5:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var l=Q;if(o?bx(o):l.stateNode.complete){ct=0,Ge=null;var s=l.sibling;if(s!==null)Q=s;else{var c=l.return;c!==null?(Q=c,pc(c)):Q=null}break e}}ct=0,Ge=null,Mr(t,e,r,5);break;case 6:ct=0,Ge=null,Mr(t,e,r,6);break;case 8:Ap(),Bt=6;break t;default:throw Error(C(462))}}D2();break}catch(u){Z1(t,u)}while(1);if($n=Ra=null,_.H=i,_.A=a,at=n,Q!==null)return 0;return yt=null,k=0,ic(),Bt}function D2(){for(;Q!==null&&!FE();)$1(Q)}function $1(t){var e=y1(t.alternate,t,ii);t.memoizedProps=t.pendingProps,e===null?pc(t):Q=e}function t0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Yy(n,e,e.pendingProps,e.type,void 0,k);break;case 11:e=Yy(n,e,e.pendingProps,e.type.render,e.ref,k);break;case 5:sp(e);var i=e;i===Wt&&(X?(Du(i),i.tag===5&&i.stateNode!=null&&(Et=i.stateNode)):(Du(i),X=!0));default:v1(n,e),e=Q=xv(e,ii),e=y1(n,e,ii)}t.memoizedProps=t.pendingProps,e===null?pc(t):Q=e}function Mr(t,e,n,i){$n=Ra=null,sp(e),Nr=null,xl=0;var a=e.return;try{if(v2(t,a,e,n,k)){Bt=1,Gu(t,on(n,t.current)),Q=null;return}}catch(r){if(a!==null)throw Q=a,r;Bt=1,Gu(t,on(n,t.current)),Q=null;return}if(e.flags&32768){if(X||i===1)t=!0;else if(Ir||(k&536870912)!==0)t=!1;else if(wi=t=!0,i===2||i===9||i===3||i===6)i=le.current,i!==null&&i.tag===13&&(i.flags|=16384);J1(e,t)}else pc(e)}function pc(t){var e=t;do{if((e.flags&32768)!==0){J1(e,wi);return}t=e.return;var n=T2(e.alternate,e,ii);if(n!==null){Q=n;return}if(e=e.sibling,e!==null){Q=e;return}Q=e=t}while(e!==null);Bt===0&&(Bt=5)}function J1(t,e){do{var n=E2(t.alternate,t);if(n!==null){n.flags&=32767,Q=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Q=t;return}Q=t=n}while(t!==null);Bt=6,Q=null}function e0(t,e,n,i,a,r,o,l,s,c,u,f){t.cancelPendingCommit=null;do hc();while(Dt!==0);if((at&6)!==0)throw Error(C(327));if(e!==null){if(e===t.current)throw Error(C(177));t===yt&&(Q=yt=null,k=0),Oa=e,yn=t,Bn=n,vd=a,Y1=i,z2(t,e,n,o,l,s,f)}}function z2(t,e,n,i,a,r,o){var l=e.lanes|e.childLanes;if(yd=l,l|=Fd,aM(t,n,l,i,a,r),Rr=null,(n&335544064)===n?(_r=o2(t),i=10262):(_r=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,L2(wu,function(){return Td(),null})):(t.callbackNode=null,t.callbackPriority=0),Yu=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=_.T,_.T=null,a=rt.p,rt.p=2,r=at,at|=4;try{M2(t,e,n)}finally{at=r,rt.p=a,_.T=i}}Dt=1,Yu?zr=nA(o,t.containerInfo,_r,xd,bd,_2,Sd,Td,R2,null,null):(xd(),bd(),Sd())}function R2(t){if(Dt!==0){var e=yn.onRecoverableError;e(t,{componentStack:null})}}function _2(){Dt===3&&(Dt=0,B1(Oa,yn),Dt=4)}function xd(){if(Dt===1){Dt=0;var t=yn,e=Oa,n=Bn,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var a=rt.p;rt.p=2;var r=at;at|=4;try{Po=Xu=!1,R1(e,t,n),n=Od;var o=fv(t.containerInfo),l=n.focusedElem,s=n.selectionRange;if(o!==l&&l&&l.ownerDocument&&cv(l.ownerDocument.documentElement,l)){if(s!==null&&kd(l)){var{start:c,end:u}=s;if(u===void 0&&(u=c),\"selectionStart\"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var f=l.ownerDocument||document,m=f&&f.defaultView||window;if(m.getSelection){var d=m.getSelection(),y=l.textContent.length,x=Math.min(s.start,y),T=s.end===void 0?x:Math.min(s.end,y);!d.extend&&x>T&&(o=T,T=x,x=o);var h=yy(l,x),p=yy(l,T);if(h&&p&&(d.rangeCount!==1||d.anchorNode!==h.node||d.anchorOffset!==h.offset||d.focusNode!==p.node||d.focusOffset!==p.offset)){var g=f.createRange();g.setStart(h.node,h.offset),d.removeAllRanges(),x>T?(d.addRange(g),d.extend(p.node,p.offset)):(g.setEnd(p.node,p.offset),d.addRange(g))}}}}f=[];for(d=l;d=d.parentNode;)d.nodeType===1&&f.push({element:d,left:d.scrollLeft,top:d.scrollTop});typeof l.focus===\"function\"&&l.focus();for(l=0;l<f.length;l++){var v=f[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Qr=!!Cd,Od=Cd=null}finally{at=r,rt.p=a,_.T=i}}t.current=e,Dt=2}}function bd(){if(Dt===2){Dt=0;var t=yn,e=Oa,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var i=rt.p;rt.p=2;var a=at;at|=4;try{C1(t,e.alternate,e)}finally{at=a,rt.p=i,_.T=n}}Dt=3}}function Sd(){if(Dt===4||Dt===3){Dt=0;var t=zr;zr=null,$E();var e=yn,n=Oa,i=Bn,a=Y1,r=(i&335544064)===i?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?Dt=5:(Dt=0,Oa=yn=null,P1(e,e.pendingLanes)),r=e.pendingLanes,r===0&&(Bi=null),qd(i),n=n.stateNode,Ze&&typeof Ze.onCommitFiberRoot===\"function\")try{Ze.onCommitFiberRoot(Vl,n,void 0,(n.current.flags&128)===128)}catch(c){}if(a!==null){n=_.T,r=rt.p,rt.p=2,_.T=null;try{for(var o=e.onRecoverableError,l=0;l<a.length;l++){var s=a[l];o(s.value,{componentStack:s.stack})}}finally{_.T=n,rt.p=r}}if(a=Rr,o=_r,_r=null,a!==null&&(Rr=null,o===null&&(o=[]),t!==null))for(s=0;s<a.length;s++)n=(0,a[s])(o),n!==void 0&&t.finished.finally(n);(Bn&3)!==0&&hc(),Ln(e),r=e.pendingLanes,(i&261930)!==0&&(r&42)!==0?e===yu?ml++:(ml=0,yu=e):(ml=0,yu=null),Ll(0,!1)}}function P1(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bl(e)))}function hc(){return zr!==null&&(zr.skipTransition(),zr=null),xd(),bd(),Sd(),Td()}function Td(){if(Dt!==5)return!1;var t=yn,e=yd;yd=0;var n=qd(Bn),i=_.T,a=rt.p;try{rt.p=32>n?32:n,_.T=null,n=vd,vd=null;var r=yn,o=Bn;if(Dt=0,Oa=yn=null,Bn=0,(at&6)!==0)throw Error(C(331));var l=at;if(at|=4,G1(r.current),U1(r,r.current,o,n),at=l,Ll(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot===\"function\")try{Ze.onPostCommitFiberRoot(Vl,r)}catch(s){}return!0}finally{rt.p=a,_.T=i,P1(t,e)}}function n0(t,e,n){e=on(n,e),e=ed(t.stateNode,e,2),t=zi(t,e,2),t!==null&&(zl(t,2),Ln(t))}function mt(t,e,n){if(t.tag===3)n0(t,t,n);else for(;e!==null;){if(e.tag===3){n0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError===\"function\"||typeof i.componentDidCatch===\"function\"&&(Bi===null||!Bi.has(i))){t=on(n,t),n=m1(2),i=zi(e,n,2),i!==null&&(d1(n,i,e,t),zl(i,2),Ln(i));break}}e=e.return}}function ym(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new C2;var a=new Set;i.set(e,a)}else a=i.get(e),a===void 0&&(a=new Set,i.set(e,a));a.has(n)||(Mp=!0,a.add(n),t=B2.bind(null,t,e,n),e.then(t,t))}function B2(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,yt===t&&(k&n)===n&&(Bt===4||Bt===3&&(k&62914560)===k&&300>Ke()-mc?(at&2)===0?qr(t,0):Ku|=n:Ku|=n,Gr===k&&(Gr=0)),Ln(t)}function I1(t,e){e===0&&(e=Y0()),t=za(t,e),t!==null&&(zl(t,e),Ln(t))}function U2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),I1(t,n)}function H2(t,e){var n=0;switch(t.tag){case 31:case 13:var{stateNode:i,memoizedState:a}=t;a!==null&&(n=a.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(C(314))}i!==null&&i.delete(e),I1(t,n)}function L2(t,e){return Gd(t,e)}var Yr=null,fr=null,Ed=!1,Fu=!1,vm=!1,Oi=0;function Ln(t){t!==fr&&t.next===null&&(fr===null?Yr=fr=t:fr=fr.next=t),Fu=!0,Ed||(Ed=!0,j2())}function Ll(t,e){if(!vm&&Fu){vm=!0;do{var n=!1;for(var i=Yr;i!==null;){if(!e)if(t!==0){var a=i.pendingLanes;if(a===0)var r=0;else{var{suspendedLanes:o,pingedLanes:l}=i;r=(1<<31-Qe(42|t)+1)-1,r&=a&~(o&~l),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,i0(i,r))}else r=k,r=Iu(i,i===yt?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(r&3)===0||Dl(i,r)||(n=!0,i0(i,r));i=i.next}}while(n);vm=!1}}function G2(){W1()}function W1(){Fu=Ed=!1;var t=0;Oi!==0&&$2()&&(t=Oi);for(var e=Ke(),n=null,i=Yr;i!==null;){var a=i.next,r=tx(i,e);if(r===0)i.next=null,n===null?Yr=a:n.next=a,a===null&&(fr=n);else if(n=i,t!==0||(r&3)!==0)Fu=!0;i=a}Dt!==0&&Dt!==5||Ll(t,!1),Oi!==0&&(Oi=0)}function tx(t,e){for(var{suspendedLanes:n,pingedLanes:i,expirationTimes:a}=t,r=t.pendingLanes&-62914561;0<r;){var o=31-Qe(r),l=1<<o,s=a[o];if(s===-1){if((l&n)===0||(l&i)!==0)a[o]=iM(l,e)}else s<=e&&(t.expiredLanes|=l);r&=~l}if(e=yt,n=k,n=Iu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Pf(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Dl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Pf(i),qd(n)){case 2:case 8:n=G0;break;case 32:n=wu;break;case 268435456:n=j0;break;default:n=wu}return i=ex.bind(null,t),n=Gd(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Pf(i),t.callbackPriority=2,t.callbackNode=null,2}function ex(t,e){if(Dt!==0&&Dt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(hc()&&t.callbackNode!==n)return null;var i=k;if(i=Iu(t,t===yt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0)return null;return K1(t,i,e),tx(t,Ke()),t.callbackNode!=null&&t.callbackNode===n?ex.bind(null,t):null}function i0(t,e){if(hc())return null;K1(t,e,!0)}function j2(){P2(function(){(at&6)!==0?Gd(L0,G2):W1()})}function wp(){if(Oi===0){var t=Ma;t===0&&(t=qs,qs<<=1,(qs&261888)===0&&(qs=256)),Oi=t}return Oi}function a0(t){return t==null||typeof t===\"symbol\"||typeof t===\"boolean\"?null:typeof t===\"function\"?t:au(t)}function q2(t,e,n,i,a){if(e===\"submit\"&&n&&n.stateNode===a){var r=a0((a[ze]||null).action),o=i.submitter;o&&(e=(e=o[ze]||null)?a0(e.formAction):o.getAttribute(\"formAction\"),e!==null&&(r=e,o=null));var l=new tc(\"action\",\"action\",null,i,a);t.push({event:l,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Oi!==0){var s=new FormData(a,o);Wm(n,{pending:!0,data:s,method:a.method,action:r},null,s)}}else typeof r===\"function\"&&(l.preventDefault(),s=new FormData(a,o),Wm(n,{pending:!0,data:s,method:a.method,action:r},r,s))},currentTarget:a}]})}}for(Io=0;Io<Ym.length;Io++)Wo=Ym[Io],Md=Wo.toLowerCase(),Ad=Wo[0].toUpperCase()+Wo.slice(1),vn(Md,\"on\"+Ad);var Wo,Md,Ad,Io;vn(dv,\"onAnimationEnd\");vn(pv,\"onAnimationIteration\");vn(hv,\"onAnimationStart\");vn(\"dblclick\",\"onDoubleClick\");vn(\"focusin\",\"onFocus\");vn(\"focusout\",\"onBlur\");vn(IM,\"onTransitionRun\");vn(WM,\"onTransitionStart\");vn(t2,\"onTransitionCancel\");vn(gv,\"onTransitionEnd\");Ur(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]);Ur(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]);Ur(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]);Ur(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]);Va(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));Va(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));Va(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]);Va(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));Va(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));Va(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var Tl=\"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(\" \"),Y2=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(Tl));function nx(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],a=i.event;i=i.listeners;t:{var r=void 0;if(e)for(var o=i.length-1;0<=o;o--){var l=i[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==r&&a.isPropagationStopped())break t;r=l,a.currentTarget=c;try{r(a)}catch(u){Ou(u)}a.currentTarget=null,r=s}else for(o=0;o<i.length;o++){if(l=i[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==r&&a.isPropagationStopped())break t;r=l,a.currentTarget=c;try{r(a)}catch(u){Ou(u)}a.currentTarget=null,r=s}}}}function Z(t,e){var n=e[ty];n===void 0&&(n=e[ty]=new Set);var i=t+\"__bubble\";n.has(i)||(ix(e,t,2,!1),n.add(i))}function xm(t,e,n){var i=0;e&&(i|=4),ix(n,t,i,e)}var tu=\"_reactListening\"+Math.random().toString(36).slice(2);function Cp(t){if(!t[tu]){t[tu]=!0,F0.forEach(function(n){n!==\"selectionchange\"&&(Y2.has(n)||xm(n,!1,t),xm(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[tu]||(e[tu]=!0,xm(\"selectionchange\",!1,e))}}function ix(t,e,n,i){switch(Cx(e)){case 2:var a=_A;break;case 8:a=BA;break;default:a=_p}n=a.bind(null,e,n,t),a=void 0,!Lm||e!==\"touchstart\"&&e!==\"touchmove\"&&e!==\"wheel\"||(a=!0),i?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function bm(t,e,n,i,a){var r=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var l=i.stateNode.containerInfo;if(l===a)break;if(o===4)for(o=i.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;l!==null;){if(o=pa(l),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){i=r=o;continue t}l=l.parentNode}}i=i.return}nv(function(){var c=r,u=Xd(n),f=[];t:{var m=yv.get(t);if(m!==void 0){var d=tc,y=t;switch(t){case\"keypress\":if(ou(n)===0)break t;case\"keydown\":case\"keyup\":d=OM;break;case\"focusin\":y=\"focus\",d=im;break;case\"focusout\":y=\"blur\",d=im;break;case\"beforeblur\":case\"afterblur\":d=im;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\":d=sy;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":d=gM;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":d=RM;break;case dv:case pv:case hv:d=xM;break;case gv:d=BM;break;case\"scroll\":case\"scrollend\":d=pM;break;case\"wheel\":d=HM;break;case\"copy\":case\"cut\":case\"paste\":d=SM;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":d=cy;break;case\"submit\":d=DM;break;case\"toggle\":case\"beforetoggle\":d=GM}var x=(e&4)!==0,T=!x&&(t===\"scroll\"||t===\"scrollend\"),h=x?m!==null?m+\"Capture\":null:m;x=[];for(var p=c,g;p!==null;){var v=p;if(g=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||g===null||h===null||(v=pl(p,h),v!=null&&x.push(El(p,v,g))),T)break;p=p.return}0<x.length&&(m=new d(m,y,null,n,u),f.push({event:m,listeners:x}))}}if((e&7)===0){t:{if(d=t===\"mouseover\"||t===\"pointerover\",m=t===\"mouseout\"||t===\"pointerout\",d&&n!==Hm&&(y=n.relatedTarget||n.fromElement)&&(pa(y)||y[Fr]))break t;if(m||d){if(y=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,m){if(d=n.relatedTarget||n.toElement,m=c,d=d?pa(d):null,d!==null&&(T=Nl(d),x=d.tag,d!==T||x!==5&&x!==27&&x!==6))d=null}else m=null,d=c;if(m!==d){if(x=sy,v=\"onMouseLeave\",h=\"onMouseEnter\",p=\"mouse\",t===\"pointerout\"||t===\"pointerover\")x=cy,v=\"onPointerLeave\",h=\"onPointerEnter\",p=\"pointer\";T=m==null?y:ko(m),g=d==null?y:ko(d),y=new x(v,p+\"leave\",m,n,u),y.target=T,y.relatedTarget=g,v=null,pa(u)===c&&(x=new x(h,p+\"enter\",d,n,u),x.target=g,x.relatedTarget=T,v=x),T=v,x=m&&d?Am(m,d,X2):null,m!==null&&r0(f,y,m,x,!1),d!==null&&T!==null&&r0(f,T,d,x,!0)}}}t:{if(m=c?ko(c):window,d=m.nodeName&&m.nodeName.toLowerCase(),d===\"select\"||d===\"input\"&&m.type===\"file\")var E=py;else if(dy(m))if(sv)E=$M;else{E=kM;var M=QM}else d=m.nodeName,!d||d.toLowerCase()!==\"input\"||m.type!==\"checkbox\"&&m.type!==\"radio\"?c&&Yd(c.elementType)&&(E=py):E=FM;if(E&&(E=E(t,c))){lv(f,E,n,u);break t}M&&M(t,m,c)}switch(M=c?ko(c):window,t){case\"focusin\":if(dy(M)||M.contentEditable===\"true\")vr=M,jm=c,nl=null;break;case\"focusout\":nl=jm=vr=null;break;case\"mousedown\":qm=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":qm=!1,vy(f,n,u);break;case\"selectionchange\":if(PM)break;case\"keydown\":case\"keyup\":vy(f,n,u)}var b;if(Qd)t:{switch(t){case\"compositionstart\":var S=\"onCompositionStart\";break t;case\"compositionend\":S=\"onCompositionEnd\";break t;case\"compositionupdate\":S=\"onCompositionUpdate\";break t}S=void 0}else yr?rv(t,n)&&(S=\"onCompositionEnd\"):t===\"keydown\"&&n.keyCode===229&&(S=\"onCompositionStart\");if(S&&(av&&n.locale!==\"ko\"&&(yr||S!==\"onCompositionStart\"?S===\"onCompositionEnd\"&&yr&&(b=iv()):(Mi=u,Kd=(\"value\"in Mi)?Mi.value:Mi.textContent,yr=!0)),M=$u(c,S),0<M.length&&(S=new uy(S,t,null,n,u),f.push({event:S,listeners:M}),b?S.data=b:(b=ov(n),b!==null&&(S.data=b)))),b=qM?YM(t,n):XM(t,n))S=$u(c,\"onBeforeInput\"),0<S.length&&(M=new uy(\"onBeforeInput\",\"beforeinput\",null,n,u),f.push({event:M,listeners:S}),M.data=b);q2(f,t,c,n,u)}nx(f,e)})}function El(t,e,n){return{instance:t,listener:e,currentTarget:n}}function $u(t,e){for(var n=e+\"Capture\",i=[];t!==null;){var a=t,r=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||r===null||(a=pl(t,n),a!=null&&i.unshift(El(t,a,r)),a=pl(t,e),a!=null&&i.push(El(t,a,r))),t.tag===3)return i;t=t.return}return[]}function X2(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t?t:null}function r0(t,e,n,i,a){for(var r=e._reactName,o=[];n!==null&&n!==i;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,s!==null&&s===i)break;l!==5&&l!==26&&l!==27||c===null||(s=c,a?(c=pl(n,r),c!=null&&o.unshift(El(n,c,s))):a||(c=pl(n,r),c!=null&&o.push(El(n,c,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var K2=/\\r\\n?/g,Z2=/\\u0000|\\uFFFD/g;function o0(t){return(typeof t===\"string\"?t:\"\"+t).replace(K2,`\n`).replace(Z2,\"\")}function ax(t,e){return e=o0(e),o0(t)===e?!0:!1}function ft(t,e,n,i,a,r){switch(n){case\"children\":if(typeof i===\"string\")e===\"body\"||e===\"textarea\"&&i===\"\"||Hr(t,i);else if(typeof i===\"number\"||typeof i===\"bigint\")e!==\"body\"&&Hr(t,\"\"+i);else return;break;case\"className\":Ks(t,\"class\",i);break;case\"tabIndex\":Ks(t,\"tabindex\",i);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":Ks(t,n,i);break;case\"style\":ev(t,i,r);return;case\"data\":if(e!==\"object\"){Ks(t,\"data\",i);break}case\"src\":case\"href\":if(i===\"\"&&(e!==\"a\"||n!==\"href\")){t.removeAttribute(n);break}if(i==null||typeof i===\"function\"||typeof i===\"symbol\"||typeof i===\"boolean\"){t.removeAttribute(n);break}i=au(i),t.setAttribute(n,i);break;case\"action\":case\"formAction\":if(typeof i===\"function\"){t.setAttribute(n,\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\");break}else typeof r===\"function\"&&(n===\"formAction\"?(e!==\"input\"&&ft(t,e,\"name\",a.name,a,null),ft(t,e,\"formEncType\",a.formEncType,a,null),ft(t,e,\"formMethod\",a.formMethod,a,null),ft(t,e,\"formTarget\",a.formTarget,a,null)):(ft(t,e,\"encType\",a.encType,a,null),ft(t,e,\"method\",a.method,a,null),ft(t,e,\"target\",a.target,a,null)));if(i==null||typeof i===\"symbol\"||typeof i===\"boolean\"){t.removeAttribute(n);break}i=au(i),t.setAttribute(n,i);break;case\"onClick\":i!=null&&(t.onclick=Dn);return;case\"onScroll\":i!=null&&Z(\"scroll\",t);return;case\"onScrollEnd\":i!=null&&Z(\"scrollend\",t);return;case\"dangerouslySetInnerHTML\":if(i!=null){if(typeof i!==\"object\"||!(\"__html\"in i))throw Error(C(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(C(60));(r!=null?r.__html:void 0)!==n&&(t.innerHTML=n)}}break;case\"multiple\":t.multiple=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;case\"muted\":t.muted=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(i==null||typeof i===\"function\"||typeof i===\"boolean\"||typeof i===\"symbol\"){t.removeAttribute(\"xlink:href\");break}n=au(i),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\":i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,i):t.removeAttribute(n);break;case\"inert\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"credentialless\":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\":i&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,\"\"):t.removeAttribute(n);break;case\"capture\":case\"download\":i===!0?t.setAttribute(n,\"\"):i!==!1&&i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"?t.setAttribute(n,i):t.removeAttribute(n);break;case\"cols\":case\"rows\":case\"size\":case\"span\":i!=null&&typeof i!==\"function\"&&typeof i!==\"symbol\"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case\"rowSpan\":case\"start\":i==null||typeof i===\"function\"||typeof i===\"symbol\"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case\"popover\":Z(\"beforetoggle\",t),Z(\"toggle\",t),iu(t,\"popover\",i);break;case\"xlinkActuate\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",i);break;case\"xlinkArcrole\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",i);break;case\"xlinkRole\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:role\",i);break;case\"xlinkShow\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:show\",i);break;case\"xlinkTitle\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:title\",i);break;case\"xlinkType\":Qn(t,\"http://www.w3.org/1999/xlink\",\"xlink:type\",i);break;case\"xmlBase\":Qn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",i);break;case\"xmlLang\":Qn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",i);break;case\"xmlSpace\":Qn(t,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",i);break;case\"is\":iu(t,\"is\",i);break;case\"innerText\":case\"textContent\":return;default:if(!(2<n.length)||n[0]!==\"o\"&&n[0]!==\"O\"||n[1]!==\"n\"&&n[1]!==\"N\")n=mM.get(n)||n,iu(t,n,i);else return}nt=!0}function wd(t,e,n,i,a,r){switch(n){case\"style\":ev(t,i,r);return;case\"dangerouslySetInnerHTML\":if(i!=null){if(typeof i!==\"object\"||!(\"__html\"in i))throw Error(C(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(C(60));(r!=null?r.__html:void 0)!==n&&(t.innerHTML=n)}}break;case\"children\":if(typeof i===\"string\")Hr(t,i);else if(typeof i===\"number\"||typeof i===\"bigint\")Hr(t,\"\"+i);else return;break;case\"onScroll\":i!=null&&Z(\"scroll\",t);return;case\"onScrollEnd\":i!=null&&Z(\"scrollend\",t);return;case\"onClick\":i!=null&&(t.onclick=Dn);return;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":return;case\"innerText\":case\"textContent\":return;default:if(!$0.hasOwnProperty(n))t:{if(n[0]===\"o\"&&n[1]===\"n\"&&(a=n.endsWith(\"Capture\"),r=n.slice(2,a?n.length-7:void 0),e=t[ze]||null,e=e!=null?e[n]:null,typeof e===\"function\"&&t.removeEventListener(r,e,a),typeof i===\"function\")){typeof e!==\"function\"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(r,i,a);break t}nt=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,\"\"):iu(t,n,i)}return}nt=!0}function oe(t,e,n){switch(e){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":Z(\"error\",t),Z(\"load\",t);var i=!1,a=!1,r;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o!=null)switch(r){case\"src\":i=!0;break;case\"srcSet\":a=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(C(137,e));default:ft(t,e,r,o,n,null)}}a&&ft(t,e,\"srcSet\",n.srcSet,n,null),i&&ft(t,e,\"src\",n.src,n,null);return;case\"input\":Z(\"invalid\",t);var l=r=o=a=null,s=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case\"name\":a=u;break;case\"type\":o=u;break;case\"checked\":s=u;break;case\"defaultChecked\":c=u;break;case\"value\":r=u;break;case\"defaultValue\":l=u;break;case\"children\":case\"dangerouslySetInnerHTML\":if(u!=null)throw Error(C(137,e));break;default:ft(t,e,i,u,n,null)}}I0(t,r,l,s,c,o,a,!1);return;case\"select\":Z(\"invalid\",t),i=o=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case\"value\":r=l;break;case\"defaultValue\":o=l;break;case\"multiple\":i=l;default:ft(t,e,a,l,n,null)}e=r,n=o,t.multiple=!!i,e!=null?wr(t,!!i,e,!1):n!=null&&wr(t,!!i,n,!0);return;case\"textarea\":Z(\"invalid\",t),r=a=i=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case\"value\":i=l;break;case\"defaultValue\":a=l;break;case\"children\":r=l;break;case\"dangerouslySetInnerHTML\":if(l!=null)throw Error(C(91));break;default:ft(t,e,o,l,n,null)}tv(t,i,a,r);return;case\"option\":for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case\"selected\":t.selected=i&&typeof i!==\"function\"&&typeof i!==\"symbol\";break;default:ft(t,e,s,i,n,null)}return;case\"dialog\":Z(\"beforetoggle\",t),Z(\"toggle\",t),Z(\"cancel\",t),Z(\"close\",t);break;case\"iframe\":case\"object\":Z(\"load\",t);break;case\"video\":case\"audio\":for(i=0;i<Tl.length;i++)Z(Tl[i],t);break;case\"image\":Z(\"error\",t),Z(\"load\",t);break;case\"details\":Z(\"toggle\",t);break;case\"embed\":case\"source\":case\"link\":Z(\"error\",t),Z(\"load\",t);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(C(137,e));default:ft(t,e,c,i,n,null)}return;default:if(Yd(e)){for(u in n)n.hasOwnProperty(u)&&(i=n[u],i!==void 0&&wd(t,e,u,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(i=n[l],i!=null&&ft(t,e,l,i,n,null))}var Q2={};function k2(t,e,n,i){switch(e){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var a=null,r=null,o=null,l=null,s=null,c=null,u=null;for(d in n){var f=n[d];if(n.hasOwnProperty(d)&&f!=null)switch(d){case\"checked\":break;case\"value\":break;case\"defaultValue\":s=f;default:i.hasOwnProperty(d)||ft(t,e,d,null,i,f)}}for(var m in i){var d=i[m];if(f=n[m],i.hasOwnProperty(m)&&(d!=null||f!=null))switch(m){case\"type\":d!==f&&(nt=!0),r=d;break;case\"name\":d!==f&&(nt=!0),a=d;break;case\"checked\":d!==f&&(nt=!0),c=d;break;case\"defaultChecked\":d!==f&&(nt=!0),u=d;break;case\"value\":d!==f&&(nt=!0),o=d;break;case\"defaultValue\":d!==f&&(nt=!0),l=d;break;case\"children\":case\"dangerouslySetInnerHTML\":if(d!=null)throw Error(C(137,e));break;default:d!==f&&ft(t,e,m,d,i,f)}}Um(t,o,l,s,c,u,r,a);return;case\"select\":d=o=l=m=null;for(r in n)if(s=n[r],n.hasOwnProperty(r)&&s!=null)switch(r){case\"value\":break;case\"multiple\":d=s;default:i.hasOwnProperty(r)||ft(t,e,r,null,i,s)}for(a in i)if(r=i[a],s=n[a],i.hasOwnProperty(a)&&(r!=null||s!=null))switch(a){case\"value\":r!==s&&(nt=!0),m=r;break;case\"defaultValue\":r!==s&&(nt=!0),l=r;break;case\"multiple\":r!==s&&(nt=!0),o=r;default:r!==s&&ft(t,e,a,r,i,s)}e=l,n=o,i=d,m!=null?wr(t,!!n,m,!1):!!i!==!!n&&(e!=null?wr(t,!!n,e,!0):wr(t,!!n,n?[]:\"\",!1));return;case\"textarea\":d=m=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!i.hasOwnProperty(l))switch(l){case\"value\":break;case\"children\":break;default:ft(t,e,l,null,i,a)}for(o in i)if(a=i[o],r=n[o],i.hasOwnProperty(o)&&(a!=null||r!=null))switch(o){case\"value\":a!==r&&(nt=!0),m=a;break;case\"defaultValue\":a!==r&&(nt=!0),d=a;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(a!=null)throw Error(C(91));break;default:a!==r&&ft(t,e,o,a,i,r)}W0(t,m,d);return;case\"option\":for(var y in n)if(m=n[y],n.hasOwnProperty(y)&&m!=null&&!i.hasOwnProperty(y))switch(y){case\"selected\":t.selected=!1;break;default:ft(t,e,y,null,i,m)}for(s in i)if(m=i[s],d=n[s],i.hasOwnProperty(s)&&m!==d&&(m!=null||d!=null))switch(s){case\"selected\":m!==d&&(nt=!0),t.selected=m&&typeof m!==\"function\"&&typeof m!==\"symbol\";break;default:ft(t,e,s,m,i,d)}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 x in n)m=n[x],n.hasOwnProperty(x)&&m!=null&&!i.hasOwnProperty(x)&&ft(t,e,x,null,i,m);for(c in i)if(m=i[c],d=n[c],i.hasOwnProperty(c)&&m!==d&&(m!=null||d!=null))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":if(m!=null)throw Error(C(137,e));break;default:ft(t,e,c,m,i,d)}return;default:if(Yd(e)){for(var T in n)m=n[T],n.hasOwnProperty(T)&&m!==void 0&&!i.hasOwnProperty(T)&&wd(t,e,T,void 0,i,m);for(u in i)m=i[u],d=n[u],!i.hasOwnProperty(u)||m===d||m===void 0&&d===void 0||wd(t,e,u,m,i,d);return}}for(var h in n)m=n[h],n.hasOwnProperty(h)&&m!=null&&!i.hasOwnProperty(h)&&ft(t,e,h,null,i,m);for(f in i)m=i[f],d=n[f],!i.hasOwnProperty(f)||m===d||m==null&&d==null||ft(t,e,f,m,i,d)}function l0(t){switch(t){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function F2(){if(typeof performance.getEntriesByType===\"function\"){for(var t=0,e=0,n=performance.getEntriesByType(\"resource\"),i=0;i<n.length;i++){var a=n[i],r=a.transferSize,o=a.initiatorType,l=a.duration;if(r&&l&&l0(o)){o=0,l=a.responseEnd;for(i+=1;i<n.length;i++){var s=n[i],c=s.startTime;if(c>l)break;var{transferSize:u,initiatorType:f}=s;u&&l0(f)&&(s=s.responseEnd,o+=u*(s<l?1:(l-c)/(s-c)))}if(--i,e+=8*(r+o)/(a.duration/1000),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t===\"number\")?t:5}var Cd=null,Od=null;function Ml(t){return t.nodeType===9?t:t.ownerDocument}function s0(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 rx(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 ox(t,e,n,i){return n=Ml(n).createElement(t),n[ne]=i,n[ze]=e,oe(n,t,e),It(n),n}function Nd(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 Sm=null;function $2(){var t=window.event;if(t&&t.type===\"popstate\"){if(t===Sm)return!1;return Sm=t,!0}return Sm=null,!1}var Op=typeof setTimeout===\"function\"?setTimeout:void 0,J2=typeof clearTimeout===\"function\"?clearTimeout:void 0,u0=typeof Promise===\"function\"?Promise:void 0,c0=typeof requestAnimationFrame===\"function\"?requestAnimationFrame:Op,P2=typeof queueMicrotask===\"function\"?queueMicrotask:typeof u0<\"u\"?function(t){return u0.resolve(null).then(t).catch(I2)}:Op;function I2(t){setTimeout(function(){throw t})}function Zi(t){return t===\"head\"}function f0(t,e){var n=e,i=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n===\"/$\"||n===\"/&\"){if(i===0){t.removeChild(a),kr(e);return}i--}else if(n===\"$\"||n===\"$?\"||n===\"$~\"||n===\"$!\"||n===\"&\")i++;else if(n===\"html\")Em(t.ownerDocument.documentElement);else if(n===\"head\"){n=t.ownerDocument.head,Em(n);for(var r=n.firstChild;r;){var{nextSibling:o,nodeName:l}=r;r[Rl]||l===\"SCRIPT\"||l===\"STYLE\"||l===\"LINK\"&&r.rel.toLowerCase()===\"stylesheet\"||n.removeChild(r),r=o}}else n===\"body\"&&Em(t.ownerDocument.body);n=a}while(n);kr(e)}function m0(t,e){var n=t;t=0;do{var i=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||\"\"),i&&i.nodeType===8)if(n=i.data,n===\"/$\")if(t===0)break;else t--;else n!==\"$\"&&n!==\"$?\"&&n!==\"$~\"&&n!==\"$!\"||t++;n=i}while(n)}function lx(t,e,n){if(e=CSS.escape(e)!==e?\"r-\"+btoa(e).replace(/=/g,\"\"):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display===\"inline\"){if(e=t.getClientRects(),e.length===1)var i=1;else for(var a=i=0;a<e.length;a++){var r=e[a];0<r.width&&0<r.height&&i++}i===1&&(t=t.style,t.display=e.length===1?\"inline-block\":\"block\",t.marginTop=\"-\"+n.paddingTop,t.marginBottom=\"-\"+n.paddingBottom)}}function sx(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty(\"viewTransitionName\")?e.viewTransitionName:e.hasOwnProperty(\"view-transition-name\")?e[\"view-transition-name\"]:null:null;t.viewTransitionName=n==null||typeof n===\"boolean\"?\"\":(\"\"+n).trim(),n=e!=null?e.hasOwnProperty(\"viewTransitionClass\")?e.viewTransitionClass:e.hasOwnProperty(\"view-transition-class\")?e[\"view-transition-class\"]:null:null,t.viewTransitionClass=n==null||typeof n===\"boolean\"?\"\":(\"\"+n).trim(),t.display===\"inline-block\"&&(e==null?t.display=t.margin=\"\":(n=e.display,t.display=n==null||typeof n===\"boolean\"?\"\":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty(\"marginTop\")?e.marginTop:e[\"margin-top\"],t.marginTop=n==null||typeof n===\"boolean\"?\"\":n,e=e.hasOwnProperty(\"marginBottom\")?e.marginBottom:e[\"margin-bottom\"],t.marginBottom=e==null||typeof e===\"boolean\"?\"\":e)))}function ux(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position===\"absolute\"||e.position===\"fixed\",clip:e.clipPath!==\"none\"||e.overflow!==\"visible\"||e.filter!==\"none\"||e.mask!==\"none\"||e.mask!==\"none\"||e.borderRadius!==\"0px\",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function Vd(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return ux(e,n,t)}function W2(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+20000,e.y+20000,e.width,e.height);var n=getComputedStyle(t);return ux(e,n,t)}function tA(t){return t.documentElement.clientHeight}function eA(t){this.addEventListener(\"load\",t),this.addEventListener(\"error\",t)}function nA(t,e,n,i,a,r,o,l,s){var c=e.nodeType===9?e:e.ownerDocument;try{var u=c.startViewTransition({update:function(){var m=c.defaultView,d=m.navigation&&m.navigation.transition,y=c.fonts.status;i();var x=[];if(y===\"loaded\"&&(tA(c),c.fonts.status===\"loading\"&&x.push(c.fonts.ready)),y=x.length,t!==null)for(var T=t.suspenseyImages,h=0,p=0;p<T.length;p++){var g=T[p];if(!g.complete){var v=g.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<m.innerHeight&&v.left<m.innerWidth){if(h+=Sx(g),h>bu){x.length=y;break}g=new Promise(eA.bind(g)),x.push(g)}}}if(0<x.length)return m=Promise.race([Promise.all(x),new Promise(function(E){return setTimeout(E,500)})]).then(a,a),(d?Promise.allSettled([d.finished,m]):m).then(r,r);if(a(),d)return d.finished.then(r,r);r()},types:n});c.__reactViewTransition=u;var f=[];return u.ready.then(function(){for(var m=c.documentElement.getAnimations({subtree:!0}),d=0;d<m.length;d++){var y=m[d],x=y.effect,T=x.pseudoElement;if(T!=null&&T.startsWith(\"::view-transition\")){f.push(y),y=x.getKeyframes();for(var h=T=void 0,p=!0,g=0;g<y.length;g++){var v=y[g],E=v.width;if(T===void 0)T=E;else if(T!==E){p=!1;break}if(E=v.height,h===void 0)h=E;else if(h!==E){p=!1;break}delete v.width,delete v.height,v.transform===\"none\"&&delete v.transform}p&&T!==void 0&&h!==void 0&&(x.setKeyframes(y),p=getComputedStyle(x.target,x.pseudoElement),p.width!==T||p.height!==h)&&(p=y[0],p.width=T,p.height=h,p=y[y.length-1],p.width=T,p.height=h,x.setKeyframes(y))}}o()},function(m){c.__reactViewTransition===u&&(c.__reactViewTransition=null);try{if(typeof m===\"object\"&&m!==null)switch(m.name){case\"InvalidStateError\":if(m.message===\"View transition was skipped because document visibility state is hidden.\"||m.message===\"Skipping view transition because document visibility state has become hidden.\"||m.message===\"Skipping view transition because viewport size changed.\"||m.message===\"Transition was aborted because of invalid state\")m=null}m!==null&&s(m)}finally{i(),a(),o()}}),u.finished.finally(function(){for(var m=0;m<f.length;m++)f[m].cancel();c.__reactViewTransition===u&&(c.__reactViewTransition=null),l()}),u}catch(m){return i(),a(),o(),null}}function ha(t,e){this._scope=document.documentElement,this._selector=\"::view-transition-\"+t+\"(\"+e+\")\"}ha.prototype.animate=function(t,e){return e=typeof e===\"number\"?{duration:e}:vt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};ha.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var r=n[a].effect;r!==null&&r.target===t&&r.pseudoElement===e&&i.push(n[a])}return i};ha.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function cx(t){return{name:t,group:new ha(\"group\",t),imagePair:new ha(\"image-pair\",t),old:new ha(\"old\",t),new:new ha(\"new\",t)}}function $e(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}$e.prototype.addEventListener=function(t,e,n){var i=null,a=null;if(n!=null&&typeof n!==\"boolean\"&&(i=n.signal||null,i!==null&&i.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(fx(r,t,e,n)===-1){var o=this,l=e;n!=null&&typeof n!==\"boolean\"&&n.once===!0&&(l=function(s){o.removeEventListener(t,e,n),typeof e===\"function\"?e.call(this,s):e.handleEvent(s)}),i!==null&&(a=o.removeEventListener.bind(o,t,e,n),i.addEventListener(\"abort\",a,{once:!0}),a=i.removeEventListener.bind(i,\"abort\",a)),i=Xr(n),r.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:l,cleanup:a}),De(this._fragmentFiber.child,!1,iA,t,l,i)}this._eventListeners=r};function iA(t,e,n,i){return Kt(t).addEventListener(e,n,i),!1}$e.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=fx(i,t,e,n),e!==-1)){var a=i[e];n=a.attachedListener;var r=a.cleanup;a=Xr(a.optionsOrUseCapture),De(this._fragmentFiber.child,!1,aA,t,n,a),i.splice(e,1),r!==null&&r()}};function aA(t,e,n,i){return Kt(t).removeEventListener(e,n,i),!1}function Xr(t){return t!=null&&typeof t!==\"boolean\"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function d0(t){return t==null?\"c=0\":typeof t===\"boolean\"?\"c=\"+(t?\"1\":\"0\"):\"c=\"+(t.capture?\"1\":\"0\")}function fx(t,e,n,i){if(t.length===0)return-1;i=d0(i);for(var a=0;a<t.length;a++){var r=t[a];if(r.type===e&&r.listener===n&&d0(r.optionsOrUseCapture)===i)return a}return-1}$e.prototype.dispatchEvent=function(t){var e=Na(this._fragmentFiber);if(e===null)return!0;e=Kt(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var i=e.nodeType===9?e.createComment(\"\"):document.createTextNode(\"\");if(n)for(var a=0;a<n.length;a++){var r=n[a];i.addEventListener(r.type,r.attachedListener,Xr(r.optionsOrUseCapture))}if(e.appendChild(i),t=i.dispatchEvent(t),n)for(a=0;a<n.length;a++)r=n[a],i.removeEventListener(r.type,r.attachedListener,Xr(r.optionsOrUseCapture));return e.removeChild(i),t}return e.dispatchEvent(t)};$e.prototype.focus=function(t){De(this._fragmentFiber.child,!0,mx,t,void 0,void 0)};function mx(t,e){if(t.tag===6)return!1;return t=Kt(t),gA(t,e)}$e.prototype.focusLast=function(t){var e=[];De(this._fragmentFiber.child,!0,Np,e,void 0,void 0);for(var n=e.length-1;0<=n&&!mx(e[n],t);n--);};function Np(t,e){return e.push(t),!1}$e.prototype.blur=function(){var t=Na(this._fragmentFiber);t!==null&&(t=Kt(t),t=Ml(t).activeElement,t!==null&&De(this._fragmentFiber.child,!1,rA,t,void 0,void 0))};function rA(t,e){if(t.tag===6)return!1;return t=Kt(t),t===e||t.contains(e)?(e.blur(),!0):!1}$e.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),De(this._fragmentFiber.child,!1,oA,t,void 0,void 0)};function oA(t,e){if(t.tag===6)return!1;return t=Kt(t),e.observe(t),!1}$e.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),De(this._fragmentFiber.child,!1,lA,t,void 0,void 0);for(var n=e=0;n<gn.length;n++){var i=gn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):gn[e++]=i}gn.length=e}};function lA(t,e){if(t.tag===6)return!1;return t=Kt(t),e.unobserve(t),!1}var gn=[],Tm=!1;function sA(t,e,n){gn.push({fragmentInstance:t,observer:e,instance:n}),Tm||(Tm=!0,yA(function(){Tm=!1;var i=gn;gn=[];for(var a=0;a<i.length;a++){var r=i[a];r.observer.unobserve(r.instance)}}))}$e.prototype.getClientRects=function(){var t=[];return De(this._fragmentFiber.child,!1,uA,t,void 0,void 0),t};function uA(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=Kt(t),e.push.apply(e,t.getClientRects());return!1}$e.prototype.getRootNode=function(t){var e=Na(this._fragmentFiber);return e===null?this:Kt(e).getRootNode(t)};$e.prototype.compareDocumentPosition=function(t){var e=Na(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];De(this._fragmentFiber.child,!1,Np,n,void 0,void 0);var i=Kt(e);if(n.length===0){if(n=i,Fg(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var a=i=n.compareDocumentPosition(t);return n===t?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=_0(e)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=Kt(n).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Kt(n[0]),a=Kt(n[n.length-1]);var r=Fg(this._fragmentFiber)?e.parentElement:i;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=e.compareDocumentPosition(t),l=a.compareDocumentPosition(t),s=o&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=i&&r&&o&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||r&&a===t||s||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!r&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||cA(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function cA(t,e,n,i,a){var r=pa(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)t:{for(;r!==null;){if(r.tag===7&&(r===e||r.alternate===e)){n=!0;break t}r=r.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=a.ownerDocument,a===r||a===r.documentElement||a===r.body;t:{r=e;for(e=Na(e);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==e&&r.alternate!==e)){r=!0;break t}r=r.return}r=!1}return r}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!r)&&!(e=r===n)&&(e=Am(n,r,$g),e===null?e=!1:(De(e,!0,jE,r,n),r=dr,dr=null,e=r!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!r)&&!(e=r===i)&&(e=Am(i,r,$g),e===null?e=!1:(De(e,!0,qE,r,i),r=dr,Mm=dr=null,e=r!==null)),e):!1}function p0(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}$e.prototype.scrollIntoView=function(t){if(typeof t===\"object\")throw Error(C(566));var e=[];De(this._fragmentFiber.child,!1,Np,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=_0(this._fragmentFiber);if(i=n?i[1]||i[0]||Na(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=Kt(i),p0(t,n);return}if(i=Kt(i),i.nodeType!==9){if(i.nodeType===11){n=\"host\"in i?i.host:null,n!==null&&n.scrollIntoView(t);return}i.scrollIntoView(t)}}for(i=n?e.length-1:0;i!==(n?-1:e.length);){var a=e[i];a.tag===6?(a=Kt(a),p0(a,n)):Kt(a).scrollIntoView(t),i+=n?-1:1}};function fA(t,e){return t=Kt(t),dx(t,e),!1}function dx(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function px(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];t.addEventListener(a.type,a.attachedListener,Xr(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){for(var o=0,l=0;l<gn.length;l++){var s=gn[l];if(s.fragmentInstance!==e||s.observer!==r||s.instance!==t)gn[o++]=s}gn.length=o,r.observe(t)}),dx(t,e))}function mA(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];t.removeEventListener(a.type,a.attachedListener,Xr(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin===\"string\"?sA(e,r,t):r.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Dd(t){var e=t.firstChild;e&&e.nodeType===10&&(e=e.nextSibling);for(;e;){var n=e;switch(e=e.nextSibling,n.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":Dd(n),Wu(n);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(n.rel.toLowerCase()===\"stylesheet\")continue}t.removeChild(n)}}function dA(t,e,n,i){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!==\"INPUT\"||t.type!==\"hidden\"))break}else if(!i)if(e===\"input\"&&t.type===\"hidden\"){var r=a.name==null?null:\"\"+a.name;if(a.type===\"hidden\"&&t.getAttribute(\"name\")===r)return t}else return t;else if(!t[Rl])switch(e){case\"meta\":if(!t.hasAttribute(\"itemprop\"))break;return t;case\"link\":if(r=t.getAttribute(\"rel\"),r===\"stylesheet\"&&t.hasAttribute(\"data-precedence\"))break;else if(r!==a.rel||t.getAttribute(\"href\")!==(a.href==null||a.href===\"\"?null:a.href)||t.getAttribute(\"crossorigin\")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute(\"title\")!==(a.title==null?null:a.title))break;return t;case\"style\":if(t.hasAttribute(\"data-precedence\"))break;return t;case\"script\":if(r=t.getAttribute(\"src\"),(r!==(a.src==null?null:a.src)||t.getAttribute(\"type\")!==(a.type==null?null:a.type)||t.getAttribute(\"crossorigin\")!==(a.crossOrigin==null?null:a.crossOrigin))&&r&&t.hasAttribute(\"async\")&&!t.hasAttribute(\"itemprop\"))break;return t;default:return t}if(t=sn(t.nextSibling),t===null)break}return null}function pA(t,e,n){if(e===\"\")return null;for(;t.nodeType!==3;){if((t.nodeType!==1||t.nodeName!==\"INPUT\"||t.type!==\"hidden\")&&!n)return null;if(t=sn(t.nextSibling),t===null)return null}return t}function hx(t,e){for(;t.nodeType!==8;){if((t.nodeType!==1||t.nodeName!==\"INPUT\"||t.type!==\"hidden\")&&!e)return null;if(t=sn(t.nextSibling),t===null)return null}return t}function zd(t){return t.data===\"$?\"||t.data===\"$~\"}function Vp(t){return t.data===\"$!\"||t.data===\"$?\"&&t.ownerDocument.readyState!==\"loading\"}function hA(t,e){var n=t.ownerDocument;if(t.data===\"$~\")t._reactRetry=e;else if(t.data!==\"$?\"||n.readyState!==\"loading\")e();else{var i=function(){e(),n.removeEventListener(\"DOMContentLoaded\",i)};n.addEventListener(\"DOMContentLoaded\",i),t._reactRetry=i}}function sn(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 Rd=null;function h0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\"/$\"||n===\"/&\"){if(e===0)return sn(t.nextSibling);e--}else n!==\"$\"&&n!==\"$!\"&&n!==\"$?\"&&n!==\"$~\"&&n!==\"&\"||e++}t=t.nextSibling}return null}function g0(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 gA(t,e){function n(){i=!0}if(t.ownerDocument.activeElement===t)return!0;var i=!1;try{t.ownerDocument.addEventListener(\"focus\",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener(\"focus\",n,!0)}return i}function yA(t){c0(function(){c0(function(e){return t(e)})})}function gx(t,e,n){switch(e=Ml(n),t){case\"html\":if(t=e.documentElement,!t)throw Error(C(452));return t;case\"head\":if(t=e.head,!t)throw Error(C(453));return t;case\"body\":if(t=e.body,!t)throw Error(C(454));return t;default:throw Error(C(451))}}function yx(t,e,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&ft(t,e,i,null,Q2,a)}n.dangerouslySetInnerHTML!=null&&(t.textContent=\"\"),t.onclick===Dn&&(t.onclick=null),Wu(t)}function Em(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Wu(t)}var un=new Map,y0=new Set;function Al(t){if(typeof t.getRootNode===\"function\"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var oi=rt.d;rt.d={f:vA,r:xA,D:bA,C:SA,L:TA,m:EA,X:AA,S:MA,M:wA};function vA(){var t=oi.f(),e=dc();return t||e}function xA(t){var e=$r(t);e!==null&&e.tag===5&&e.type===\"form\"?e1(e):oi.r(t)}var Wr=typeof document>\"u\"?null:document;function vx(t,e,n){var i=Wr;if(i&&typeof e===\"string\"&&e){var a=rn(e);a='link[rel=\"'+t+'\"][href=\"'+a+'\"]',typeof n===\"string\"&&(a+='[crossorigin=\"'+n+'\"]'),y0.has(a)||(y0.add(a),t={rel:t,crossOrigin:n,href:e},i.querySelector(a)===null&&(e=i.createElement(\"link\"),oe(e,\"link\",t),It(e),i.head.appendChild(e)))}}function bA(t){oi.D(t),vx(\"dns-prefetch\",t,null)}function SA(t,e){oi.C(t,e),vx(\"preconnect\",t,e)}function TA(t,e,n){oi.L(t,e,n);var i=Wr;if(i&&t&&e){var a='link[rel=\"preload\"][as=\"'+rn(e)+'\"]';e===\"image\"?n&&n.imageSrcSet?(a+='[imagesrcset=\"'+rn(n.imageSrcSet)+'\"]',typeof n.imageSizes===\"string\"&&(a+='[imagesizes=\"'+rn(n.imageSizes)+'\"]')):a+='[href=\"'+rn(t)+'\"]':a+='[href=\"'+rn(t)+'\"]';var r=a;switch(e){case\"style\":r=Kr(t);break;case\"script\":r=to(t)}if(!(un.has(r)||(t=vt({rel:\"preload\",href:e===\"image\"&&n&&n.imageSrcSet?void 0:t,as:e},n),un.set(r,t),i.querySelector(a)!==null||e===\"style\"&&i.querySelector(Gl(r))||e===\"script\"&&i.querySelector(jl(r))))){var o=i.createElement(\"link\");oe(o,\"link\",t),e===\"style\"&&(o[Cu]=!0,o.onload=o.onerror=function(){k0(o)}),It(o),i.head.appendChild(o)}}}function EA(t,e){oi.m(t,e);var n=Wr;if(n&&t){var i=e&&typeof e.as===\"string\"?e.as:\"script\",a='link[rel=\"modulepreload\"][as=\"'+rn(i)+'\"][href=\"'+rn(t)+'\"]',r=a;switch(i){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":r=to(t)}if(!un.has(r)&&(t=vt({rel:\"modulepreload\",href:t},e),un.set(r,t),n.querySelector(a)===null)){switch(i){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(n.querySelector(jl(r)))return}i=n.createElement(\"link\"),oe(i,\"link\",t),It(i),n.head.appendChild(i)}}}function MA(t,e,n){oi.S(t,e,n);var i=Wr;if(i&&t){var a=Ar(i).hoistableStyles,r=Kr(t);e=e||\"default\";var o=a.get(r);if(!o){var l={loading:0,preload:null};if(o=i.querySelector(Gl(r)))l.loading=5;else{t=vt({rel:\"stylesheet\",href:t,\"data-precedence\":e},n),(n=un.get(r))&&Dp(t,n);var s=o=i.createElement(\"link\");It(s),oe(s,\"link\",t),s._p=new Promise(function(c,u){s.onload=c,s.onerror=u}),s.addEventListener(\"load\",function(){l.loading|=1}),s.addEventListener(\"error\",function(){l.loading|=2}),l.loading|=4,vu(o,e,i)}o={type:\"stylesheet\",instance:o,count:1,state:l},a.set(r,o)}}}function AA(t,e){oi.X(t,e);var n=Wr;if(n&&t){var i=Ar(n).hoistableScripts,a=to(t),r=i.get(a);r||(r=n.querySelector(jl(a)),r||(t=vt({src:t,async:!0},e),(e=un.get(a))&&zp(t,e),r=n.createElement(\"script\"),It(r),oe(r,\"link\",t),n.head.appendChild(r)),r={type:\"script\",instance:r,count:1,state:null},i.set(a,r))}}function wA(t,e){oi.M(t,e);var n=Wr;if(n&&t){var i=Ar(n).hoistableScripts,a=to(t),r=i.get(a);r||(r=n.querySelector(jl(a)),r||(t=vt({src:t,async:!0,type:\"module\"},e),(e=un.get(a))&&zp(t,e),r=n.createElement(\"script\"),It(r),oe(r,\"link\",t),n.head.appendChild(r)),r={type:\"script\",instance:r,count:1,state:null},i.set(a,r))}}function v0(t,e,n,i){var a=(a=Ni.current)?Al(a):null;if(!a)throw Error(C(446));switch(t){case\"meta\":case\"title\":return null;case\"style\":return typeof n.precedence===\"string\"&&typeof n.href===\"string\"?(n=Kr(n.href),e=Ar(a).hoistableStyles,i=e.get(n),i||(i={type:\"style\",instance:null,count:0,state:null},e.set(n,i)),i):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(n.rel===\"stylesheet\"&&typeof n.href===\"string\"&&typeof n.precedence===\"string\"){t=Kr(n.href);var r=Ar(a).hoistableStyles,o=r.get(t);if(o||(a=a.ownerDocument||a,o={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=a.querySelector(Gl(t)))?r._p||(o.instance=r,o.state.loading=5):(r=un.get(t),r||(r={rel:\"preload\",as:\"style\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},un.set(t,r)),CA(a,t,r,o.state))),e&&i===null)throw Error(C(528,\"\"));return o}if(e&&i!==null)throw Error(C(529,\"\"));return null;case\"script\":return e=n.async,n=n.src,typeof n===\"string\"&&e&&typeof e!==\"function\"&&typeof e!==\"symbol\"?(n=to(n),e=Ar(a).hoistableScripts,i=e.get(n),i||(i={type:\"script\",instance:null,count:0,state:null},e.set(n,i)),i):{type:\"void\",instance:null,count:0,state:null};default:throw Error(C(444,t))}}function Kr(t){return'href=\"'+rn(t)+'\"'}function Gl(t){return'link[rel=\"stylesheet\"]['+t+\"]\"}function xx(t){return vt({},t,{\"data-precedence\":t.precedence,precedence:null})}function CA(t,e,n,i){if(e=t.querySelector('link[rel=\"preload\"][as=\"style\"]['+e+\"]\")){if(e[Cu]!==!0){i.loading=1;return}}else e=t.createElement(\"link\"),e[Cu]=!0,e.onload=e.onerror=k0.bind(null,e),oe(e,\"link\",n),It(e),t.head.appendChild(e);i.preload=e,e.addEventListener(\"load\",function(){return i.loading|=1}),e.addEventListener(\"error\",function(){return i.loading|=2})}function to(t){return'[src=\"'+rn(t)+'\"]'}function jl(t){return\"script[async]\"+t}function x0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case\"style\":var i=t.querySelector('style[data-href~=\"'+rn(n.href)+'\"]');if(i)return e.instance=i,It(i),i;var a=vt({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement(\"style\"),It(i),oe(i,\"style\",a),vu(i,n.precedence,t),e.instance=i;case\"stylesheet\":a=Kr(n.href);var r=t.querySelector(Gl(a));if(r)return e.state.loading|=4,e.instance=r,It(r),r;i=xx(n),(a=un.get(a))&&Dp(i,a),r=(t.ownerDocument||t).createElement(\"link\"),It(r);var o=r;return o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),oe(r,\"link\",i),e.state.loading|=4,vu(r,n.precedence,t),e.instance=r;case\"script\":if(r=to(n.src),a=t.querySelector(jl(r)))return e.instance=a,It(a),a;if(i=n,a=un.get(r))i=vt({},n),zp(i,a);return t=t.ownerDocument||t,a=t.createElement(\"script\"),It(a),oe(a,\"link\",i),t.head.appendChild(a),e.instance=a;case\"void\":return null;default:throw Error(C(443,e.type))}else e.type===\"stylesheet\"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,vu(i,n.precedence,t));return e.instance}function vu(t,e,n){for(var i=n.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,r=a,o=0;o<i.length;o++){var l=i[o];if(l.dataset.precedence===e)r=l;else if(r!==a)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Dp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function zp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var xu=null;function b0(t,e,n){if(xu===null){var i=new Map,a=xu=new Map;a.set(n,i)}else a=xu,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(t))return i;i.set(t,null),n=n.getElementsByTagName(t);for(a=0;a<n.length;a++){var r=n[a];if(!(r[Rl]||r[ne]||t===\"link\"&&r.getAttribute(\"rel\")===\"stylesheet\")&&r.namespaceURI!==\"http://www.w3.org/2000/svg\"){var o=r.getAttribute(e)||\"\";o=t+o;var l=i.get(o);l?l.push(r):i.set(o,[r])}}return i}function _d(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e===\"title\"?t.querySelector(\"head > title\"):null)}function OA(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 S0(t,e){return t===\"img\"&&e.src!=null&&e.src!==\"\"&&e.onLoad==null&&e.loading!==\"lazy\"}function bx(t){return t.type===\"stylesheet\"&&(t.state.loading&3)===0?!1:!0}function Sx(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio===\"number\"?devicePixelRatio:1)*0.25}function T0(t,e){typeof e.decode===\"function\"&&(t.imgCount++,e.complete||(t.imgBytes+=Sx(e),t.suspenseyImages.push(e)),t=DA.bind(t),e.decode().then(t,t))}function NA(t,e,n,i){if(n.type===\"stylesheet\"&&(typeof i.media!==\"string\"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Kr(i.href),r=e.querySelector(Gl(a));if(r){e=r._p,e!==null&&typeof e===\"object\"&&typeof e.then===\"function\"&&(t.count++,t=wl.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,It(r);return}r=e.ownerDocument||e,i=xx(i),(a=un.get(a))&&Dp(i,a),r=r.createElement(\"link\"),It(r);var o=r;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),oe(r,\"link\",i),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=wl.bind(t),e.addEventListener(\"load\",n),e.addEventListener(\"error\",n))}}var bu=0;function VA(t,e){return t.stylesheets&&t.count===0&&Su(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},60000+e);0<t.imgBytes&&bu===0&&(bu=62500*F2());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>bu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Tx(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Su(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function wl(){this.count--,Tx(this)}function DA(){this.imgCount--,Tx(this)}var Ju=null;function Su(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ju=new Map,e.forEach(zA,t),Ju=null,wl.call(t))}function zA(t,e){if(!(e.state.loading&4)){var n=Ju.get(t);if(n)var i=n.get(null);else{n=new Map,Ju.set(t,n);for(var a=t.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),r=0;r<a.length;r++){var o=a[r];if(o.nodeName===\"LINK\"||o.getAttribute(\"media\")!==\"not all\")n.set(o.dataset.precedence,o),i=o}i&&n.set(null,i)}a=e.instance,o=a.getAttribute(\"data-precedence\"),r=n.get(o)||i,r===i&&n.set(null,a),n.set(o,a),this.count++,i=wl.bind(this),a.addEventListener(\"load\",i),a.addEventListener(\"error\",i),r?r.parentNode.insertBefore(a,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Zr={$$typeof:Vn,Provider:null,Consumer:null,_currentValue:ga,_currentValue2:ga,_threadCount:0};function RA(t,e,n,i,a,r,o,l,s){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=If(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=If(0),this.hiddenUpdates=If(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.transitionTypes=null,this.incompleteTransitions=new Map}function Ex(t,e,n,i,a,r,o,l,s,c,u,f){return t=new RA(t,e,n,o,s,c,u,f,l),e=1,r===!0&&(e|=24),r=Ne(3,null,null,e),t.current=r,r.stateNode=t,e=Id(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:e},ep(r),t}function Mx(t){if(!t)return Sr;return t=Sr,t}function Ax(t,e,n,i,a,r){a=Mx(a),i.context===null?i.context=a:i.pendingContext=a,i=Di(e),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=zi(t,i,e),n!==null&&(Ve(n,t,e),al(n,t,e))}function E0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Rp(t,e){E0(t,e),(t=t.alternate)&&E0(t,e)}function wx(t){if(t.tag===13||t.tag===31){var e=za(t,67108864);e!==null&&Ve(e,t,67108864),Rp(t,67108864)}}function M0(t){if(t.tag===13||t.tag===31){var e=ke();e=jd(e);var n=za(t,e);n!==null&&Ve(n,t,e),Rp(t,e)}}var Qr=!0;function _A(t,e,n,i){var a=_.T;_.T=null;var r=rt.p;try{rt.p=2,_p(t,e,n,i)}finally{rt.p=r,_.T=a}}function BA(t,e,n,i){var a=_.T;_.T=null;var r=rt.p;try{rt.p=8,_p(t,e,n,i)}finally{rt.p=r,_.T=a}}function _p(t,e,n,i){if(Qr){var a=Bd(i);if(a===null)bm(t,e,i,Pu,n),A0(t,i);else if(HA(a,t,e,n,i))i.stopPropagation();else if(A0(t,i),e&4&&-1<UA.indexOf(t)){for(;a!==null;){var r=$r(a);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=ca(r.pendingLanes);if(o!==0){var l=r;l.pendingLanes|=2;for(l.entangledLanes|=2;o;){var s=1<<31-Qe(o);l.entanglements[1]|=s,o&=~s}Ln(r),(at&6)===0&&(Zu=Ke()+500,Ll(0,!1))}}break;case 31:case 13:l=za(r,2),l!==null&&Ve(l,r,2),dc(),Rp(r,2)}if(r=Bd(i),r===null&&bm(t,e,i,Pu,n),r===a)break;a=r}a!==null&&i.stopPropagation()}else bm(t,e,i,null,n)}}function Bd(t){return t=Xd(t),Bp(t)}var Pu=null;function Bp(t){if(Pu=null,t=pa(t),t!==null){var e=Nl(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=D0(e),t!==null)return t;t=null}else if(n===31){if(t=z0(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 Pu=t,null}function Cx(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\"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\"fullscreenerror\":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\"resize\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(JE()){case L0:return 2;case G0:return 8;case wu:case PE:return 32;case j0:return 268435456;default:return 32}default:return 32}}var Ud=!1,Ui=null,Hi=null,Li=null,Cl=new Map,Ol=new Map,Ti=[],UA=\"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 A0(t,e){switch(t){case\"focusin\":case\"focusout\":Ui=null;break;case\"dragenter\":case\"dragleave\":Hi=null;break;case\"mouseover\":case\"mouseout\":Li=null;break;case\"pointerover\":case\"pointerout\":Cl.delete(e.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":Ol.delete(e.pointerId)}}function Ko(t,e,n,i,a,r){if(t===null||t.nativeEvent!==r)return t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[a]},e!==null&&(e=$r(e),e!==null&&wx(e)),t;return t.eventSystemFlags|=i,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t}function HA(t,e,n,i,a){switch(e){case\"focusin\":return Ui=Ko(Ui,t,e,n,i,a),!0;case\"dragenter\":return Hi=Ko(Hi,t,e,n,i,a),!0;case\"mouseover\":return Li=Ko(Li,t,e,n,i,a),!0;case\"pointerover\":var r=a.pointerId;return Cl.set(r,Ko(Cl.get(r)||null,t,e,n,i,a)),!0;case\"gotpointercapture\":return r=a.pointerId,Ol.set(r,Ko(Ol.get(r)||null,t,e,n,i,a)),!0}return!1}function Ox(t){var e=pa(t.target);if(e!==null){var n=Nl(e);if(n!==null){if(e=n.tag,e===13){if(e=D0(n),e!==null){t.blockedOn=e,Wg(t.priority,function(){M0(n)});return}}else if(e===31){if(e=z0(n),e!==null){t.blockedOn=e,Wg(t.priority,function(){M0(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Bd(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Hm=i,n.target.dispatchEvent(i),Hm=null}else return e=$r(n),e!==null&&wx(e),t.blockedOn=n,!1;e.shift()}return!0}function w0(t,e,n){Tu(t)&&n.delete(e)}function LA(){Ud=!1,Ui!==null&&Tu(Ui)&&(Ui=null),Hi!==null&&Tu(Hi)&&(Hi=null),Li!==null&&Tu(Li)&&(Li=null),Cl.forEach(w0),Ol.forEach(w0)}function eu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ud||(Ud=!0,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,LA)))}var nu=null;function C0(t){nu!==t&&(nu=t,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,function(){nu===t&&(nu=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],a=t[e+2];if(typeof i!==\"function\")if(Bp(i||n)===null)continue;else break;var r=$r(n);r!==null&&(t.splice(e,3),e-=3,Wm(r,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function kr(t){function e(s){return eu(s,t)}Ui!==null&&eu(Ui,t),Hi!==null&&eu(Hi,t),Li!==null&&eu(Li,t),Cl.forEach(e),Ol.forEach(e);for(var n=0;n<Ti.length;n++){var i=Ti[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ti.length&&(n=Ti[0],n.blockedOn===null);)Ox(n),n.blockedOn===null&&Ti.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],r=n[i+1],o=a[ze]||null;if(typeof r===\"function\")o||C0(n);else if(o){var l=null;if(r&&r.hasAttribute(\"formAction\")){if(a=r,o=r[ze]||null)l=o.formAction;else if(Bp(a)!==null)continue}else l=o.action;typeof l===\"function\"?n[i+1]=l:(n.splice(i,3),i-=3),C0(n)}}}function Nx(){function t(r){r.canIntercept&&r.info===\"react-transition\"&&r.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:\"manual\",scroll:\"manual\"})}function e(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:\"react-transition\",history:\"replace\"})}}if(typeof navigation===\"object\"){var i=!1,a=null;return navigation.addEventListener(\"navigate\",t),navigation.addEventListener(\"navigatesuccess\",e),navigation.addEventListener(\"navigateerror\",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener(\"navigate\",t),navigation.removeEventListener(\"navigatesuccess\",e),navigation.removeEventListener(\"navigateerror\",e),a!==null&&(a(),a=null)}}}function Up(t){this._internalRoot=t}gc.prototype.render=Up.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(C(409));var n=e.current,i=ke();Ax(n,i,t,e,null,null)};gc.prototype.unmount=Up.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ax(t.current,2,null,t,null,null),dc(),e[Fr]=null}};function gc(t){this._internalRoot=t}gc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Q0();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ti.length&&e!==0&&e<Ti[n].priority;n++);Ti.splice(n,0,t),n===0&&Ox(t)}};var O0=N0.version;if(O0!==\"19.3.0\")throw Error(C(527,O0,\"19.3.0\"));rt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0){if(typeof t.render===\"function\")throw Error(C(188));throw t=Object.keys(t).join(\",\"),Error(C(268,t))}return t=GE(e),t=t!==null?R0(t):null,t=t===null?null:t.stateNode,t};var GA={bundleType:0,version:\"19.3.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:_,reconcilerVersion:\"19.3.0\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){if(mr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!mr.isDisabled&&mr.supportsFiber)try{Vl=mr.inject(GA),Ze=mr}catch(t){}}var mr;yc.createRoot=function(t,e){if(!V0(t))throw Error(C(299));var n=!1,i=\"\",a=u1,r=c1,o=f1;return e!==null&&e!==void 0&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Ex(t,1,!1,null,null,n,i,null,a,r,o,Nx),t[Fr]=e.current,Cp(t),new Up(e)};yc.hydrateRoot=function(t,e,n){if(!V0(t))throw Error(C(299));var i=!1,a=\"\",r=u1,o=c1,l=f1,s=null;return n!==null&&n!==void 0&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),e=Ex(t,1,!0,e,n!=null?n:null,i,a,s,r,o,l,Nx),e.context=Mx(null),n=e.current,i=ke(),i=jd(i),a=Di(i),a.callback=null,zi(n,a,i),n=i,e.current.lanes=n,zl(e,n),Ln(e),t[Fr]=e.current,Cp(t),new gc(e)};yc.version=\"19.3.0\"});var Rx=En(function(iO,zx){function Dx(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!==\"function\")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dx)}catch(t){console.error(t)}}Dx(),zx.exports=Vx()});var Ux=En(function(vc){var jA=Symbol.for(\"react.transitional.element\"),qA=Symbol.for(\"react.fragment\");function Bx(t,e,n){var i=null;if(n!==void 0&&(i=\"\"+n),e.key!==void 0&&(i=\"\"+e.key),\"key\"in e){n={};for(var a in e)a!==\"key\"&&(n[a]=e[a])}else n=e;return e=n.ref,{$$typeof:jA,type:t,key:i,ref:e!==void 0?e:null,props:n}}vc.Fragment=qA;vc.jsx=Bx;vc.jsxs=Bx});var bn=En(function(oO,Hx){Hx.exports=Ux()});var rE=P(Rx(),1);var ql={light:{bg:\"#e8e7e3\",panel:\"#e6e5e1\",panelAlt:\"#ecebe7\",line:\"#b7b5ad\",lineSoft:\"#cfcdc6\",ink:\"#3d3a34\",inkMuted:\"#6b675f\",inkFaint:\"#a39d91\",wire:\"#a9a79f\",port:\"#a39d91\",pill:\"#e8e7e3\",group:\"#e3e2de\",groupLine:\"#cfcdc6\",title:\"#1c1a17\",chrome:\"#ecebe7\",chromeLine:\"#cfcdc6\",rose:\"#c98f81\",roseFill:\"#d9d3c7\",blue:\"#7fa2bf\",blueFill:\"#d9d3c7\",gold:\"#bfa95a\",goldFill:\"#d9d3c7\",sage:\"#5f7a4f\",sageFill:\"#d9d3c7\",plain:\"#8a857c\",plainFill:\"#d9d3c7\",pulse:\"#2b2925\",pulseBloom:\"#3d3a34\",pulseBloomEdge:\"#8a857c\",glow:\"#f3d9b6\",glowCrest:\"#fffaf0\",glowGain:\"3\",glowBlend:\"screen\",flash:\"#141311\",portActive:\"#141311\",playInk:\"#a39e94\",playInkHover:\"#5e5b54\",control:\"#8f8a81\",controlHover:\"#26251f\",endedInk:\"#6f6a61\"},dark:{bg:\"#080807\",panel:\"#0b0b0a\",panelAlt:\"#131313\",line:\"#383838\",lineSoft:\"#292929\",ink:\"#cccccc\",inkMuted:\"#aaaaaa\",inkFaint:\"#6e6b65\",wire:\"#444444\",port:\"#5a5a5a\",pill:\"#080807\",group:\"#0d0d0c\",groupLine:\"#292929\",title:\"#e7e5e4\",chrome:\"#131313\",chromeLine:\"#292929\",rose:\"#e1b8ad\",roseFill:\"#35332f\",blue:\"#aec8df\",blueFill:\"#35332f\",gold:\"#e2d29f\",goldFill:\"#35332f\",sage:\"#9aaf8c\",sageFill:\"#35332f\",plain:\"#858585\",plainFill:\"#35332f\",pulse:\"#ddd8d0\",pulseBloom:\"#e8e4dc\",pulseBloomEdge:\"#9a948c\",glow:\"#8c8882\",glowCrest:\"#ece9e4\",glowGain:\"1\",glowBlend:\"normal\",flash:\"#f3dfc6\",portActive:\"#f0f0f0\",playInk:\"#5e5b54\",playInkHover:\"#a8a49b\",control:\"#737373\",controlHover:\"#d4cec4\",endedInk:\"#9a9488\"}};var eo={elbowRadius:12,cornerRadius:12,portRadius:3.5,stub:14,panelRadius:0,panelInset:4,groupRadius:0,groupPad:18,groupLabelBand:22,nodePadX:16,nodePadY:11,nodeMinWidth:128,maxLabelChars:26,wireWidth:1,graphArrowheads:!1,panelStroke:1,arrowSize:6,pillPadX:6,pillPadY:3,layerGap:56,nodeGap:28,groupGap:24,margin:32},lt={beats:{react:0.3,step:0.8,settle:1.2,read:1},springs:{react:0.3,smooth:0.45,word:0.16},pulse:{gather:0.34,flight:0.9,flightMin:0.45,flightMax:1.6,pxPerSecond:520,ring:0.72,cooling:1.1,dot:4,halo:18},glow:{duration:1.2,alpha:0.28,minGap:0.3333333333333333},flash:{decay:1.6},reveal:{rise:6,opacityDelay:0.075},dimSuperseded:0.52,endHold:1.5,endedDim:0.75,gateDim:0.55,rewind:{hold:0.15,duration:1.25,empty:0.4,blur:1.1},read:{base:0.25,perWord:0.075,min:1,max:3},warnTotal:60},xn={spring:{type:\"spring\",visualDuration:0.3,bounce:0},press:{scale:0.94},hover:{scale:1.04}},Qi=(t)=>`--si-${t}`;function _x(t){let e=ql[t];return Object.keys(e).map((n)=>`${Qi(n)}:${e[n]};`).join(\"\")}var Lx=P(wt(),1),Gx=Lx.createContext({});var jx=P(wt(),1);function xc(t){let e=jx.useRef(null);if(e.current===null)e.current=t();return e.current}var bc=P(wt(),1);var qx=typeof window<\"u\";var Hp=qx?bc.useLayoutEffect:bc.useEffect;var Yx=P(wt(),1),Sc=Yx.createContext(null);function Lp(t,e){if(t.indexOf(e)===-1)t.push(e)}function li(t,e){let n=t.indexOf(e);if(n>-1)t.splice(n,1)}var se=(t,e,n)=>{if(n>e)return e;if(n<t)return t;return n};function Gp(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var cn=()=>{},Qt=()=>{};if(typeof process<\"u\"&&process.env?.NODE_ENV!==\"production\")cn=(t,e,n)=>{if(!t&&typeof console<\"u\")console.warn(Gp(e,n))},Qt=(t,e,n)=>{if(!t)throw Error(Gp(e,n))};var ue={};var _a=(t)=>/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(t);var Ba=(t)=>typeof t===\"object\"&&t!==null;var Ua=(t)=>/^0[^.\\s]+$/u.test(t);function Yl(t){let e;return()=>{if(e===void 0)e=t();return e}}var Sn=(t)=>t;var si=(...t)=>t.reduce((e,n)=>(i)=>n(e(i)));var Ha=(t,e,n)=>{let i=e-t;return i?(n-t)/i:1};class La{constructor(){this.subscriptions=[]}add(t){return Lp(this.subscriptions,t),()=>this.remove(t)}remove(t){li(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(!i)return;if(i===1)this.subscriptions[0](t,e,n);else for(let a=0;a<i;a++){let r=this.subscriptions[a];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var kt=(t)=>t*1000,ce=(t)=>t/1000;var Xl=(t,e)=>e?t*(1000/e):0;var Xx=(t,e,n)=>{let i=e-t;return((n-t)%i+i)%i+t};var Kx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,YA=0.0000001,XA=12;function KA(t,e,n,i,a){let r,o,l=0;do if(o=e+(n-e)/2,r=Kx(o,i,a)-t,r>0)n=o;else e=o;while(Math.abs(r)>YA&&++l<XA);return o}function ki(t,e,n,i){if(t===e&&n===i)return Sn;let a=(r)=>KA(r,0,1,t,n);return(r)=>r===0||r===1?r:Kx(a(r),e,i)}var Tc=(t)=>(e)=>e<=0.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Ga=(t)=>(e)=>1-t(1-e);var Ec=ki(0.33,1.53,0.69,0.99),no=Ga(Ec),Kl=Tc(no);var Zl=(t)=>t>=1?1:(t*=2)<1?0.5*no(t):0.5*(2-Math.pow(2,-10*(t-1)));var Ql=(t)=>1-Math.sin(Math.acos(t)),jp=Ga(Ql),kl=Tc(Ql);var qp=ki(0.42,0,1,1),Yp=ki(0,0,0.58,1),io=ki(0.42,0,0.58,1);var Fl=(t)=>Array.isArray(t)&&typeof t[0]!==\"number\";function $l(t,e){return Fl(t)?t[Xx(0,t.length,e)]:t}var Jl=(t)=>Array.isArray(t)&&typeof t[0]===\"number\";var Zx={linear:Sn,easeIn:qp,easeInOut:io,easeOut:Yp,circIn:Ql,circInOut:kl,circOut:jp,backIn:no,backInOut:Kl,backOut:Ec,anticipate:Zl},ZA=(t)=>typeof t===\"string\",Mc=(t)=>{if(Jl(t)){Qt(t.length===4,\"Cubic bezier arrays must contain four numerical values.\",\"cubic-bezier-length\");let[e,n,i,a]=t;return ki(e,n,i,a)}else if(ZA(t))return Qt(Zx[t]!==void 0,`Invalid easing type '${t}'`,\"invalid-easing-type\"),Zx[t];return t};var Pl=[\"setup\",\"read\",\"resolveKeyframes\",\"preUpdate\",\"update\",\"preRender\",\"render\",\"postRender\"];function Qx(t){let e=new Set,n=new Set,i=!1,a=!1,r=new Set,o={delta:0,timestamp:0,isProcessing:!1};function l(c){if(r.has(c))n.add(c),t();c(o)}let s={schedule:(c,u=!1,f=!1)=>{let d=f&&i?e:n;if(u)r.add(c);return d.add(c),c},cancel:(c)=>{n.delete(c),r.delete(c)},process:(c)=>{if(o=c,i){a=!0;return}i=!0;let u=e;if(e=n,n=u,e.forEach(l),e.clear(),i=!1,a)a=!1,s.process(c)}};return s}var QA=40;function Ac(t,e){let n=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Pl.reduce((g,v)=>(g[v]=Qx(r),g),{}),{setup:l,read:s,resolveKeyframes:c,preUpdate:u,update:f,preRender:m,render:d,postRender:y}=o,x=()=>{let g=ue.useManualTiming,v=g?a.timestamp:performance.now();if(n=!1,!g)a.delta=i?16.666666666666668:Math.max(Math.min(v-a.timestamp,QA),1);if(a.timestamp=v,a.isProcessing=!0,l.process(a),s.process(a),c.process(a),u.process(a),f.process(a),m.process(a),d.process(a),y.process(a),a.isProcessing=!1,n&&e)i=!1,t(x)},T=()=>{if(n=!0,i=!0,!a.isProcessing)t(x)};return{schedule:Pl.reduce((g,v)=>{let E=o[v];return g[v]=(M,b=!1,S=!1)=>{if(!n)T();return E.schedule(M,b,S)},g},{}),cancel:(g)=>{for(let v=0;v<Pl.length;v++)o[Pl[v]].cancel(g)},state:a,steps:o}}var{schedule:gt,cancel:ao,state:Gn,steps:kA}=Ac(typeof requestAnimationFrame<\"u\"?requestAnimationFrame:Sn,!0);var wc;function FA(){wc=void 0}var Lt={now:()=>{if(wc===void 0)Lt.set(Gn.isProcessing||ue.useManualTiming?Gn.timestamp:performance.now());return wc},set:(t)=>{wc=t,queueMicrotask(FA)}};var jn=(t)=>Math.round(t*1e5)/1e5;var kx=(t)=>(e)=>typeof e===\"string\"&&e.startsWith(t),Cc=kx(\"--\"),$A=kx(\"var(--\"),ro=(t)=>{if(!$A(t))return!1;return JA.test(t.split(\"/*\")[0].trim())},JA=/var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;function Xp(t){if(typeof t!==\"string\")return!1;return t.split(\"/*\")[0].includes(\"var(--\")}var qn={test:(t)=>typeof t===\"number\",parse:parseFloat,transform:(t)=>t},ui={...qn,transform:(t)=>se(0,1,t)},Il={...qn,default:1};var oo=/-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;function Fx(t){return t==null}var $x=/^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;var lo=(t,e)=>(n)=>Boolean(typeof n===\"string\"&&$x.test(n)&&n.startsWith(t)||e&&!Fx(n)&&Object.prototype.hasOwnProperty.call(n,e)),Oc=(t,e,n)=>(i)=>{if(typeof i!==\"string\")return i;let[a,r,o,l]=i.match(oo);return{[t]:parseFloat(a),[e]:parseFloat(r),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}};var PA=(t)=>se(0,255,t),Kp={...qn,transform:(t)=>Math.round(PA(t))},Yn={test:lo(\"rgb\",\"red\"),parse:Oc(\"red\",\"green\",\"blue\"),transform:({red:t,green:e,blue:n,alpha:i=1})=>\"rgba(\"+Kp.transform(t)+\", \"+Kp.transform(e)+\", \"+Kp.transform(n)+\", \"+jn(ui.transform(i))+\")\"};function IA(t){let e=\"\",n=\"\",i=\"\",a=\"\";if(t.length>5)e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9);else e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a;return{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}var Wl={test:lo(\"#\"),parse:IA,transform:Yn.transform};var ts=(t)=>({test:(e)=>typeof e===\"string\"&&e.endsWith(t)&&e.split(\" \").length===1,parse:parseFloat,transform:(e)=>`${e}${t}`}),Tn=ts(\"deg\"),Fi=ts(\"%\"),D=ts(\"px\"),Jx=ts(\"vh\"),Px=ts(\"vw\"),Zp=(()=>({...Fi,parse:(t)=>Fi.parse(t)/100,transform:(t)=>Fi.transform(t*100)}))();var $i={test:lo(\"hsl\",\"hue\"),parse:Oc(\"hue\",\"saturation\",\"lightness\"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>\"hsla(\"+Math.round(t)+\", \"+Fi.transform(jn(e))+\", \"+Fi.transform(jn(n))+\", \"+jn(ui.transform(i))+\")\"};var Ut={test:(t)=>Yn.test(t)||Wl.test(t)||$i.test(t),parse:(t)=>{if(Yn.test(t))return Yn.parse(t);else if($i.test(t))return $i.parse(t);else return Wl.parse(t)},transform:(t)=>typeof t===\"string\"?t:t.hasOwnProperty(\"red\")?Yn.transform(t):$i.transform(t),getAnimatableNone:(t)=>{let e=Ut.parse(t);return e.alpha=0,Ut.transform(e)}};var Ix=/(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;var tb=new RegExp(oo.source),eb=new RegExp(Ix.source,\"i\");function WA(t){return isNaN(t)&&typeof t===\"string\"&&(tb.test(t)||eb.test(t))}var nb=\"number\",ib=\"color\",t3=\"var\",e3=\"var(\",Wx=\"${}\",n3=/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 ab(t){let e=t.toString();return tb.test(e)||eb.test(e)}function so(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[],r=0,l=e.replace(n3,(s)=>{if(Ut.test(s))i.color.push(r),a.push(ib),n.push(Ut.parse(s));else if(s.startsWith(e3))i.var.push(r),a.push(t3),n.push(s);else i.number.push(r),a.push(nb),n.push(parseFloat(s));return++r,Wx}).split(Wx);return{values:n,split:l,indexes:i,types:a}}function i3(t){return so(t).values}function rb({split:t,types:e}){let n=t.length;return(i)=>{let a=\"\";for(let r=0;r<n;r++)if(a+=t[r],i[r]!==void 0){let o=e[r];if(o===nb)a+=jn(i[r]);else if(o===ib)a+=Ut.transform(i[r]);else a+=i[r]}return a}}function a3(t){return rb(so(t))}var r3=(t)=>typeof t===\"number\"?0:Ut.test(t)?Ut.getAnimatableNone(t):t,o3=(t,e)=>{if(typeof t===\"number\")return e?.trim().endsWith(\"/\")?t:0;return r3(t)};function l3(t){let e=so(t);return rb(e)(e.values.map((i,a)=>o3(i,e.split[a])))}var Gt={test:WA,parse:i3,createTransformer:a3,getAnimatableNone:l3};function Qp(t,e,n){if(n<0)n+=1;if(n>1)n-=1;if(n<0.16666666666666666)return t+(e-t)*6*n;if(n<0.5)return e;if(n<0.6666666666666666)return t+(e-t)*(0.6666666666666666-n)*6;return t}function ob({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,r=0,o=0;if(!e)a=r=o=n;else{let l=n<0.5?n*(1+e):n+e-n*e,s=2*n-l;a=Qp(s,l,t+0.3333333333333333),r=Qp(s,l,t),o=Qp(s,l,t-0.3333333333333333)}return{red:Math.round(a*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function uo(t,e){return(n)=>n>0?e:t}var Re=(t,e,n)=>t+(e-t)*n;var kp=(t,e,n)=>{let i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},s3=[Wl,Yn,$i],u3=(t)=>s3.find((e)=>e.test(t));function lb(t){let e=u3(t);if(!e)return cn(!1,`'${t}' is not an animatable color. Use the equivalent color code instead.`,\"color-not-animatable\"),!1;let n=e.parse(t);if(e===$i)n=ob(n);return n}var Fp=(t,e)=>{let n=lb(t),i=lb(e);if(!n||!i)return uo(t,e);let a={...n};return(r)=>(a.red=kp(n.red,i.red,r),a.green=kp(n.green,i.green,r),a.blue=kp(n.blue,i.blue,r),a.alpha=Re(n.alpha,i.alpha,r),Yn.transform(a))};var Nc=new Set([\"none\",\"hidden\"]);function sb(t,e){if(Nc.has(t))return(n)=>n<=0?t:e;else return(n)=>n>=1?e:t}function c3(t,e){return(n)=>Re(t,e,n)}function Vc(t){if(typeof t===\"number\")return c3;else if(typeof t===\"string\")return ro(t)?uo:Ut.test(t)?Fp:d3;else if(Array.isArray(t))return ub;else if(typeof t===\"object\")return Ut.test(t)?Fp:f3;return uo}function ub(t,e){let n=[...t],i=n.length,a=t.map((r,o)=>Vc(r)(r,e[o]));return(r)=>{for(let o=0;o<i;o++)n[o]=a[o](r);return n}}function f3(t,e){let n={...t,...e},i={};for(let a in n)if(t[a]!==void 0&&e[a]!==void 0)i[a]=Vc(t[a])(t[a],e[a]);return(a)=>{for(let r in i)n[r]=i[r](a);return n}}function m3(t,e){let n=[],i={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){let r=e.types[a],o=t.indexes[r][i[r]],l=t.values[o]??0;n[a]=l,i[r]++}return n}var d3=(t,e)=>{let n=Gt.createTransformer(e),i=so(t),a=so(e);if(i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length){if(Nc.has(t)&&!a.values.length||Nc.has(e)&&!i.values.length)return sb(t,e);return si(ub(m3(i,a),a.values),n)}else return cn(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,\"complex-values-different\"),uo(t,e)};var cb=/^(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+))([a-z%]*)$/iu;function p3(t,e){let n=cb.exec(t);if(!n)return;let i=cb.exec(e);if(!i||n[2]!==i[2])return;let a=n[2],r=parseFloat(n[1]),o=parseFloat(i[1]);return(l)=>jn(Re(r,o,l))+a}function co(t,e,n){if(typeof t===\"number\"&&typeof e===\"number\"&&typeof n===\"number\")return Re(t,e,n);if(typeof t===\"string\"&&typeof e===\"string\"){let a=p3(t,e);if(a)return a}return Vc(t)(t,e)}var fb=(t)=>{let e=({timestamp:n})=>t(n);return{start:(n=!0)=>gt.update(e,n),stop:()=>ao(e),now:()=>Gn.isProcessing?Gn.timestamp:Lt.now()}};var Dc=(t,e,n=10)=>{let i=\"\",a=Math.max(Math.round(e/n),2);for(let r=0;r<a;r++)i+=Math.round(t(r/(a-1))*1e4)/1e4+\", \";return`linear(${i.substring(0,i.length-2)})`};var zc=20000;function fo(t,e=50,n=20000,i){let a=0,r=t.next(a);i?.push(r.value);while(!r.done&&a<n)a+=e,r=t.next(a),i?.push(r.value);return a>=n?1/0:a}function es(t,e=100,n){let i=n({...t,keyframes:[0,e]}),a=Math.min(fo(i),zc);return{type:\"keyframes\",ease:(r)=>i.next(a*r).value/e,duration:ce(a)}}var zt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};function Jp(t,e){return t*Math.sqrt(1-e*e)}var h3=12;function g3(t,e,n){let i=n;for(let a=1;a<h3;a++)i=i-t(i)/e(i);return i}var $p=0.001;function y3({duration:t=zt.duration,bounce:e=zt.bounce,velocity:n=zt.velocity,mass:i=zt.mass}){let a,r;cn(t<=kt(zt.maxDuration),\"Spring duration must be 10 seconds or less\",\"spring-duration-limit\");let o=1-e;if(o=se(zt.minDamping,zt.maxDamping,o),t=se(zt.minDuration,zt.maxDuration,ce(t)),o<1)a=(c)=>{let u=c*o,f=u*t,m=u-n,d=Jp(c,o),y=Math.exp(-f);return $p-m/d*y},r=(c)=>{let f=c*o*t,m=f*n+n,d=o*o*c*c*t,y=Math.exp(-f),x=Jp(c*c,o);return(-a(c)+$p>0?-1:1)*((m-d)*y)/x};else a=(c)=>{let u=Math.exp(-c*t),f=(c-n)*t+1;return-$p+u*f},r=(c)=>{let u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f};let l=5/t,s=g3(a,r,l);if(t=kt(t),isNaN(s))return{stiffness:zt.stiffness,damping:zt.damping,duration:t};else{let c=s*s*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}var mb=[\"duration\",\"bounce\"],db=[\"stiffness\",\"damping\",\"mass\"];function Rc(t,e){return e.some((n)=>t[n]!==void 0)}function v3(t){let e={velocity:zt.velocity,stiffness:zt.stiffness,damping:zt.damping,mass:zt.mass,isResolvedFromDuration:!1,...t};if(!Rc(t,db)&&Rc(t,mb))if(e.velocity=0,t.visualDuration){let n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,r=2*se(0.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:zt.mass,stiffness:a,damping:r}}else{let n=y3({...t,velocity:0});e={...e,...n,mass:zt.mass},e.isResolvedFromDuration=!0}return e}function ci(t=zt.visualDuration,e=zt.bounce){let n=typeof t!==\"object\"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],r={done:!1,value:i},{stiffness:o,damping:l,mass:s,duration:c,velocity:u,isResolvedFromDuration:f}=v3({...n,velocity:-ce(n.velocity||0)}),m=l/(2*Math.sqrt(o*s)),d=ce(Math.sqrt(o/s)),y=m*d,x={target:a,delta:a-i,velocity:u||0,restSpeed:0,restDelta:0},T=()=>{let b=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(b?zt.restSpeed.granular:zt.restSpeed.default),x.restDelta=n.restDelta||(b?zt.restDelta.granular:zt.restDelta.default)};T();let h,p,g;if(m<1){let b=Jp(d,m),S={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};g=()=>{S.A=(x.velocity+y*x.delta)/b,S.sinC=y*S.A+x.delta*b,S.cosC=y*x.delta-S.A*b};let A=(N)=>{if(N!==S.t)S.t=N,S.env=Math.exp(-y*N),S.sin=Math.sin(b*N),S.cos=Math.cos(b*N)};h=(N)=>(A(N),x.target-S.env*(S.A*S.sin+x.delta*S.cos)),p=(N)=>(A(N),S.env*(S.sinC*S.sin+S.cosC*S.cos))}else if(m===1){h=(S)=>x.target-Math.exp(-d*S)*(x.delta+(x.velocity+d*x.delta)*S);let b={C:0};g=()=>{b.C=x.velocity+d*x.delta},p=(S)=>Math.exp(-d*S)*(d*b.C*S-x.velocity)}else{let b=d*Math.sqrt(m*m-1);h=(A)=>{let N=Math.exp(-y*A),z=Math.min(b*A,300);return x.target-N*((x.velocity+y*x.delta)*Math.sinh(z)+b*x.delta*Math.cosh(z))/b};let S={P:0,sinh:0,cosh:0};g=()=>{S.P=(x.velocity+y*x.delta)/b,S.sinh=y*S.P-x.delta*b,S.cosh=y*x.delta-S.P*b},p=(A)=>{let N=Math.exp(-y*A),z=Math.min(b*A,300);return N*(S.sinh*Math.sinh(z)+S.cosh*Math.cosh(z))}}g();let v=!Rc(n,db)&&Rc(n,mb),E=f?c||null:null,M={calculatedDuration:E,retarget:(b,S)=>{if(x.target=b[b.length-1],x.delta=x.target-b[0],x.velocity=v?0:-ce(S),!(n.restSpeed&&n.restDelta))T();M.calculatedDuration=E,r.done=!1,g()},velocity:(b)=>kt(p(b)),next:(b)=>{let S=h(b);if(!f){let A=kt(p(b));r.done=Math.abs(A)<=x.restSpeed&&Math.abs(x.target-S)<=x.restDelta}else r.done=b>=c;return r.value=r.done?x.target:S,r},toString:()=>{let b=Math.min(fo(M),zc),S=Dc((A)=>M.next(b*A).value,b,30);return b+\"ms \"+S},toTransition:()=>{}};return M}ci.applyToOptions=(t)=>{let e=es(t,100,ci);return t.ease=e.ease,t.duration=kt(e.duration),t.type=\"keyframes\",t};function ns({keyframes:t,velocity:e=0,power:n=0.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:o,min:l,max:s,restDelta:c=0.5,restSpeed:u}){let f=t[0],m={done:!1,value:f},d=(b)=>b<l||b>s,y=(b)=>{if(l===void 0)return s;if(s===void 0)return l;return Math.abs(l-b)<Math.abs(s-b)?l:s},x=n*e,T=f+x,h=o===void 0?T:o(T);if(h!==T)x=h-f;let p=(b)=>-x*Math.exp(-b/i),g=(b)=>{let S=p(b);m.done=Math.abs(S)<=c,m.value=m.done?h:h+S},v,E,M=(b)=>{if(!d(m.value))return;v=b,E=ci({keyframes:[m.value,y(m.value)],velocity:-p(b)/i*1000,damping:a,stiffness:r,restDelta:c,restSpeed:u})};return M(0),{calculatedDuration:null,next:(b)=>{let S=!1;if(!E&&v===void 0)S=!0,g(b),M(b);if(v!==void 0&&b>=v)return E.next(b-v);else return!S&&g(b),m}}}function x3(t,e,n){let i=[],a=n||ue.mix||co,r=t.length-1;for(let o=0;o<r;o++){let l=a(t[o],t[o+1]);if(e){let s=Array.isArray(e)?e[o]||Sn:e;l=si(s,l)}i.push(l)}return i}function pb(t,e,{clamp:n=!0,ease:i,mixer:a}={}){let r=t.length;if(Qt(r===e.length,\"Both input and output ranges must be the same length\",\"range-length\"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];if(t[0]>t[r-1])t=[...t].reverse(),e=[...e].reverse();let l=x3(e,i,a),s=l.length,c=(u)=>{if(o&&u<t[0])return e[0];let f=0;if(s>1){for(;f<t.length-2;f++)if(u<t[f+1])break}let m=Ha(t[f],t[f+1],u);return l[f](m)};return n?(u)=>c(se(t[0],t[r-1],u)):c}function is(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let a=Ha(0,e,i);t.push(Re(n,1,a))}}function as(t){let e=[0];return is(e,t.length-1),e}function hb(t,e){return t.map((n)=>n*e)}function b3(t,e){return t.map(()=>e||io).splice(0,t.length-1)}function ja({duration:t=300,keyframes:e,times:n,ease:i=\"easeInOut\"}){let a=Fl(i)?i.map(Mc):Mc(i)||io,r={done:!1,value:e[0]};if(e.length===2&&!Array.isArray(a)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[s,c]=e,u=s===c?void 0:(ue.mix||co)(s,c);return{calculatedDuration:t,next:(f)=>(r.value=u?u(a(t>0?se(0,1,f/t):1)):c,r.done=f>=t,r)}}let o=hb(n&&n.length===e.length?n:as(e),t),l=pb(o,e,{ease:Array.isArray(a)?a:b3(e,a)});return{calculatedDuration:t,next:(s)=>(r.value=l(s),r.done=s>=t,r)}}var S3=5;function T3(t,e,n){let i=Math.max(e-S3,0);return Xl(n-t(i),e-i)}function gb(t,e,n=0){if(e<=0)return n;return t.velocity?t.velocity(e):T3((i)=>t.next(i).value,e,t.next(e).value)}var E3=(t)=>t!==null;function Ji(t,{repeat:e,repeatType:n=\"loop\"},i,a=1){let r=t.filter(E3),l=a<0||e&&n!==\"loop\"&&e%2===1?0:r.length-1;return!l||i===void 0?r[l]:i}var M3={decay:ns,inertia:ns,tween:ja,keyframes:ja,spring:ci};function _c(t){if(typeof t.type===\"string\")t.type=M3[t.type]}function A3(t,e){return{kind:t,animation:e,timestamp:Lt.now(),frameTimestamp:Gn.timestamp,frameIsProcessing:Gn.isProcessing}}function Bc(t,e,n){let i=globalThis.__MOTION_INSPECT__;if(!i)return;try{i({...A3(\"animation-start\",t),options:n?{...e,...n}:e})}catch{}}class qa{constructor(){this.isResolved=!1}get finished(){if(!this._finished)this._finished=this.isResolved?Promise.resolve():new Promise((t)=>{this._resolve=t});return this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}var w3=(t)=>t/100;class Pi extends qa{constructor(t){super();if(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=()=>{let{motionValue:e}=this.options;if(e&&e.updatedAt!==Lt.now())this.tick(Lt.now());if(this.isStopped=!0,this.state===\"idle\")return;this.teardown(),this.options.onStop?.()},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1)this.pause();Bc(this,this.options)}initAnimation(){let{options:t}=this;_c(t);let{type:e=ja,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=t,{keyframes:o}=t,l=e||ja;if(l!==ja&&typeof o[0]!==\"number\")this.mixKeyframes=si(w3,co(o[0],o[1])),o=[0,100];let s=l(o===t.keyframes?t:{...t,keyframes:o});if(a===\"mirror\")this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-r});if(s.calculatedDuration===null)s.calculatedDuration=fo(s);let{calculatedDuration:c}=s;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=s}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);let{delay:s=0,keyframes:c,repeat:u,repeatType:f,repeatDelay:m,type:d,onUpdate:y,finalKeyframe:x}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,t);else if(this.speed<0)this.startTime=Math.min(t-i/this.speed,this.startTime);if(e)this.currentTime=t;else this.updateTime(t);let T=this.currentTime-s*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?T<0:T>i;if(this.currentTime=Math.max(T,0),this.state===\"finished\"&&this.holdTime===null)this.currentTime=i;let p=this.currentTime,g=n;if(u){let b=Math.min(this.currentTime,i)/o,S=Math.floor(b),A=b%1;if(!A&&b>=1)A=1;if(A===1&&S--,S=Math.min(S,u+1),Boolean(S%2)){if(f===\"reverse\"){if(A=1-A,m)A-=m/o}else if(f===\"mirror\")g=r}p=se(0,1,A)*o}let v;if(h)this.delayState.value=c[0],v=this.delayState;else v=g.next(p);if(a&&!h)v.value=a(v.value);let{done:E}=v;if(!h&&l!==null)E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0;let M=this.holdTime===null&&(this.state===\"finished\"||this.state===\"running\"&&E);if(M&&d!==ns)v.value=Ji(c,this.options,x,this.speed);if(y)y(v.value);if(M)this.finish();return v}then(t,e){return this.finished.then(t,e)}get duration(){return ce(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ce(t)}get time(){return ce(this.currentTime)}set time(t){if(t=kt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=t;else if(this.driver)this.startTime=this.driver.now()-t/this.playbackSpeed;if(this.driver)this.driver.start(!1);else this.startTime=0,this.state=\"paused\",this.holdTime=t,this.tick(t)}getGeneratorVelocity(){return gb(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;if(e&&this.driver)this.updateTime(Lt.now());if(this.playbackSpeed=t,e&&this.driver)this.time=ce(this.currentTime)}play(){if(this.isStopped)return;let{driver:t=fb,startTime:e}=this.options;if(!this.driver)this.driver=t((i)=>this.tick(i));this.options.onPlay?.();let n=this.driver.now();if(this.state===\"finished\")this.updateFinished(),this.startTime=n;else if(this.holdTime!==null)this.startTime=n-this.holdTime;else if(!this.startTime)this.startTime=e??n;if(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(Lt.now()),this.holdTime=this.currentTime}complete(){if(this.state!==\"running\")this.play();this.state=\"finished\",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=\"finished\",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=\"idle\",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){if(this.options.allowFlatten)this.options.type=\"keyframes\",this.options.ease=\"linear\",this.initAnimation();return this.driver?.stop(),t.observe(this)}}var C3=new Set([\"brightness\",\"contrast\",\"saturate\",\"opacity\"]);function O3(t){let[e,n]=t.slice(0,-1).split(\"(\");if(e===\"drop-shadow\")return t;let[i]=n.match(oo)||[];if(!i)return t;let a=n.replace(i,\"\"),r=C3.has(e)?1:0;if(i!==n)r*=100;return e+\"(\"+r+a+\")\"}var N3=/\\b([a-z-]*)\\(.*?\\)/gu,rs={...Gt,getAnimatableNone:(t)=>{let e=t.match(N3);return e?e.map(O3).join(\" \"):t}};var os={...Gt,getAnimatableNone:(t)=>{let e=Gt.parse(t);return Gt.createTransformer(t)(e.map((i)=>typeof i===\"number\"?0:typeof i===\"object\"?{...i,alpha:1}:i))}};var Pp={...qn,transform:Math.round};var ls={rotate:Tn,pathRotation:Tn,rotateX:Tn,rotateY:Tn,rotateZ:Tn,scale:Il,scaleX:Il,scaleY:Il,scaleZ:Il,skew:Tn,skewX:Tn,skewY:Tn,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:ui,originX:Zp,originY:Zp,originZ:D};var ge={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...ls,zIndex:Pp,fillOpacity:ui,strokeOpacity:ui,numOctaves:Pp};var V3={...ge,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:rs,WebkitFilter:rs,mask:os,WebkitMask:os},Uc=(t)=>V3[t];var D3=new Set([rs,os]);function mo(t,e){let n=Uc(t);if(!D3.has(n))n=Gt;return n.getAnimatableNone?n.getAnimatableNone(e):void 0}function yb(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Ya=(t)=>t*180/Math.PI,Ip=(t)=>{let e=Ya(Math.atan2(t[1],t[0]));return Wp(e)},z3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(t)=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ip,rotateZ:Ip,skewX:(t)=>Ya(Math.atan(t[1])),skewY:(t)=>Ya(Math.atan(t[2])),skew:(t)=>(Math.abs(t[1])+Math.abs(t[2]))/2},Wp=(t)=>{if(t=t%360,t<0)t+=360;return t},vb=Ip,xb=(t)=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),bb=(t)=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),R3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xb,scaleY:bb,scale:(t)=>(xb(t)+bb(t))/2,rotateX:(t)=>Wp(Ya(Math.atan2(t[6],t[5]))),rotateY:(t)=>Wp(Ya(Math.atan2(-t[2],t[0]))),rotateZ:vb,rotate:vb,skewX:(t)=>Ya(Math.atan(t[4])),skewY:(t)=>Ya(Math.atan(t[1])),skew:(t)=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Hc(t){return t.includes(\"scale\")?1:0}function Lc(t,e){if(!t||t===\"none\")return Hc(e);let n=t.match(/^matrix3d\\(([-\\d.e\\s,]+)\\)$/u),i,a;if(n)i=R3,a=n;else{let l=t.match(/^matrix\\(([-\\d.e\\s,]+)\\)$/u);i=z3,a=l}if(!a)return Hc(e);let r=i[e],o=a[1].split(\",\").map(_3);return typeof r===\"function\"?r(o):o[r]}var Gc=(t,e)=>{let{transform:n=\"none\"}=getComputedStyle(t);return Lc(n,e)};function _3(t){return parseFloat(t.trim())}var Je=[\"transformPerspective\",\"x\",\"y\",\"z\",\"translateX\",\"translateY\",\"translateZ\",\"scale\",\"scaleX\",\"scaleY\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"skew\",\"skewX\",\"skewY\"],fe=(()=>new Set([...Je,\"pathRotation\"]))();var th=(t)=>t===qn||t===D,B3=new Set([\"x\",\"y\",\"z\"]),U3=Je.filter((t)=>!B3.has(t));function Tb(t){let e=[];return U3.forEach((n)=>{let i=t.getValue(n);if(i!==void 0){let a=i.get(),r=n.startsWith(\"scale\")?1:0;if(a===r)return;e.push([n,a]),i.set(r)}}),e}var Eb=new Set([\"bottom\",\"right\"]);function Sb(t,e,n,i,a,r){let o=parseFloat(t);if(!isNaN(o))return o;let{min:l,max:s}=e()[n],c=s-l;return r===\"border-box\"?c:c-parseFloat(i)-parseFloat(a)}var Ii={width:({width:t,paddingLeft:e=\"0\",paddingRight:n=\"0\",boxSizing:i},a)=>Sb(t,a,\"x\",e,n,i),height:({height:t,paddingTop:e=\"0\",paddingBottom:n=\"0\",boxSizing:i},a)=>Sb(t,a,\"y\",e,n,i),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{let{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:({transform:t})=>Lc(t,\"x\"),y:({transform:t})=>Lc(t,\"y\")};Ii.translateX=Ii.x;Ii.translateY=Ii.y;var Xa=new Set,eh=!1,nh=!1,ih=!1;function Mb(){if(nh){let t=[],e=new Set,n=new Set;Xa.forEach((a)=>{if(!a.needsMeasurement)return;if(t.push(a),e.add(a.element),Eb.has(a.name))n.add(a.element)});let i=new Map;n.forEach((a)=>{let r=Tb(a);if(!r.length)return;i.set(a,r),a.render()}),t.forEach((a)=>a.measureInitialState()),e.forEach((a)=>{a.render();let r=i.get(a);if(r)r.forEach(([o,l])=>{a.getValue(o)?.set(l)})}),t.forEach((a)=>a.measureEndState()),t.forEach((a)=>{if(a.suspendedScrollY!==void 0)window.scrollTo(0,a.suspendedScrollY)})}nh=!1,eh=!1,Xa.forEach((t)=>t.complete(ih)),Xa.clear()}function Ab(){Xa.forEach((t)=>{if(t.readKeyframes(),t.needsMeasurement)nh=!0})}function wb(){ih=!0,Ab(),Mb(),ih=!1}function H3(t,e,n){if(typeof t===\"string\"){if(_a(t)||Ua(t))return parseFloat(t);else if(!Gt.test(t)&&Gt.test(n))return mo(e,n)}return t??void 0}class Ka{constructor(t,e,n,i,a,r=!1){this.state=\"pending\",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){if(this.state=\"scheduled\",this.isAsync){if(Xa.add(this),!eh)eh=!0,gt.read(Ab),gt.resolveKeyframes(Mb)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(t[0]===null){let a=i?.get(),r=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&e){let o=H3(n.readValue(e,r),e,r);if(o!==void 0)t[0]=o}if(t[0]===void 0)t[0]=r;if(i&&a===void 0)i.set(t[0])}yb(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state=\"complete\",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xa.delete(this)}cancel(){if(this.state===\"scheduled\")Xa.delete(this),this.state=\"pending\"}resume(){if(this.state===\"pending\")this.scheduleResolve()}}var Wi=(t)=>t.startsWith(\"--\");function jc(t,e,n){Wi(e)?t.style.setProperty(e,n):t.style[e]=n}var Cb={};function qc(t,e){let n=Yl(t);return()=>Cb[e]??n()}var Ob=qc(()=>window.ScrollTimeline!==void 0,\"scrollTimeline\");var Yc=qc(()=>{try{document.createElement(\"div\").animate({opacity:0},{easing:\"linear(0, 1)\"})}catch(t){return!1}return!0},\"linearEasing\");var Za=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;var ah={linear:\"linear\",ease:\"ease\",easeIn:\"ease-in\",easeOut:\"ease-out\",easeInOut:\"ease-in-out\",circIn:Za([0,0.65,0.55,1]),circOut:Za([0.55,0,1,0.45]),backIn:Za([0.31,0.01,0.66,-0.59]),backOut:Za([0.33,1.53,0.69,0.99])};function rh(t,e){if(!t)return;else if(typeof t===\"function\")return Yc()?Dc(t,e):\"ease-out\";else if(Jl(t))return Za(t);else if(Array.isArray(t))return t.map((n)=>rh(n,e)||ah.easeOut);else return ah[t]}function Nb(t,e,n,{delay:i=0,duration:a=300,repeat:r=0,repeatType:o=\"loop\",ease:l=\"easeOut\",times:s}={},c=void 0){let u={[e]:n};if(s)u.offset=s;let f=rh(l,a);if(Array.isArray(f))u.easing=f;let m={delay:i,duration:a,easing:!Array.isArray(f)?f:\"linear\",fill:\"both\",iterations:r+1,direction:o===\"reverse\"?\"alternate\":\"normal\"};if(c)m.pseudoElement=c;return t.animate(u,m)}function Qa(t){return typeof t===\"function\"&&\"applyToOptions\"in t}function Vb({type:t,...e}){if(Qa(t)&&Yc())return t.applyToOptions(e);else e.duration??(e.duration=300),e.ease??(e.ease=\"easeOut\");return e}class ss extends qa{constructor(t){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=Boolean(a),this.allowFlatten=r,this.options=t,Qt(typeof t.type!==\"string\",`Mini animate() doesn't support \"type\" as a string.`,\"mini-spring\");let s=Vb(t);if(this.animation=Nb(e,n,i,s,a),s.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let c=Ji(i,this.options,o,this.speed);if(this.updateMotionValue)this.updateMotionValue(c);jc(e,n,c),this.animation.cancel()}l?.(),this.notifyFinished()},Bc(this,t,s)}play(){if(this.isStopped)return;if(this.manualStartTime=null,this.animation.play(),this.state===\"finished\")this.updateFinished()}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;if(t===\"idle\"||t===\"finished\")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){let t=this.options?.element;if(!this.isPseudoElement&&t?.isConnected)this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return ce(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ce(t)}get time(){return ce(Number(this.animation.currentTime)||0)}set time(t){let e=this.finishedTime!==null;if(this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=kt(t),e)this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){if(t<0)this.finishedTime=null;this.animation.playbackRate=t}get state(){return this.finishedTime!==null?\"finished\":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:n,observe:i}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:\"linear\"});if(this.animation.onfinish=null,t&&Ob()){if(this.animation.timeline=t,e)this.animation.rangeStart=e;if(n)this.animation.rangeEnd=n;return Sn}else return i(this)}}var Db={anticipate:Zl,backInOut:Kl,circInOut:kl};function L3(t){return t in Db}function zb(t){if(typeof t.ease===\"string\"&&L3(t.ease))t.ease=Db[t.ease]}var oh=10;class lh extends ss{constructor(t){zb(t),_c(t);super(t);if(t.startTime!==void 0&&t.autoplay!==!1)this.startTime=t.startTime;this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:a,...r}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}let o=new Pi({...r,autoplay:!1}),l=Math.max(oh,Lt.now()-this.startTime),s=se(0,oh,l-oh),c=o.sample(l).value,{name:u}=this.options;if(a&&u)jc(a,u,c);e.setWithVelocity(o.sample(Math.max(0,l-s)).value,c,s),o.stop()}}var sh=(t,e)=>{if(e===\"zIndex\")return!1;if(typeof t===\"number\"||Array.isArray(t))return!0;if(typeof t===\"string\"&&(Gt.test(t)||t===\"0\")&&!t.startsWith(\"url(\"))return!0;return!1};function G3(t){let e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Rb(t,e,n,i){let a=t[0];if(a===null)return!1;if(e===\"display\"||e===\"visibility\")return!0;let r=t[t.length-1],o=sh(a,e),l=sh(r,e);if(!o||!l)return o!==l&&cn(!1,`You are trying to animate ${e} from \"${a}\" to \"${r}\". \"${o?r:a}\" is not an animatable value.`,\"value-not-animatable\"),!1;return G3(t)||(n===\"spring\"||Qa(n))&&i}function us(t){t.duration=0,t.type=\"keyframes\"}var cs=new Set([\"opacity\",\"clipPath\",\"filter\",\"transform\",\"backgroundColor\"]);var j3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\\(/;function _b(t){for(let e=0;e<t.length;e++)if(typeof t[e]===\"string\"&&j3.test(t[e]))return!0;return!1}var Bb=new Set([\"color\",\"backgroundColor\",\"outlineColor\",\"fill\",\"stroke\",\"borderColor\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\"]),q3=Yl(()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"));function Ub(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:a,damping:r,type:o,keyframes:l}=t;if(!n||!(cs.has(n)||Bb.has(n)))return!1;let s=e?.owner?.current;if(!(s instanceof HTMLElement)&&!(s instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=e.owner.getProps();return q3()&&(cs.has(n)||Bb.has(n)&&_b(l))&&(n!==\"transform\"||!u)&&!c&&!i&&a!==\"mirror\"&&r!==0&&o!==\"inertia\"}var Y3=40;class uh extends qa{constructor(t){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=Lt.now();let{keyframes:e,name:n,motionValue:i,element:a}=t,r=t;r.autoplay??(r.autoplay=!0),r.delay??(r.delay=0),r.type??(r.type=\"keyframes\"),r.repeat??(r.repeat=0),r.repeatDelay??(r.repeatDelay=0),r.repeatType??(r.repeatType=\"loop\");let o=a?.KeyframeResolver||Ka;this.keyframeResolver=new o(e,(l,s,c)=>this.onKeyframesResolved(l,s,r,!c),n,i,a),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:a,type:r,velocity:o,delay:l,isHandoff:s,onUpdate:c}=n;this.resolvedAt=Lt.now();let u=!0;if(!Rb(t,a,r,o)){if(u=!1,ue.instantAnimations||!l)c?.(Ji(t,n,e));t[0]=t[t.length-1],us(n),n.repeat=0}let f=i?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>Y3?this.resolvedAt:this.createdAt:void 0,{onComplete:m}=n;n.startTime??(n.startTime=f),n.finalKeyframe=e,n.keyframes=t,n.onComplete=()=>{m?.(),this.notifyFinished()};let d=u&&!s&&Ub(n),y;if(d){n.element=n.motionValue?.owner?.current;try{y=new lh(n)}catch{y=new Pi(n)}}else y=new Pi(n);if(this.pendingTimeline)this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),wb();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){if(this._animation)this.stopTimeline=this.animation.attachTimeline(t);else this.pendingTimeline=t;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}class ch{constructor(t){this.stop=()=>this.runAll(\"stop\"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t)=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){let e=this.animations.map((n)=>n.attachTimeline(t));return()=>{e.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll(\"time\")}set time(t){this.setAll(\"time\",t)}get speed(){return this.getAll(\"speed\")}set speed(t){this.setAll(\"speed\",t)}get state(){return this.getAll(\"state\")}get startTime(){return this.getAll(\"startTime\")}get duration(){return Hb(this.animations,\"duration\")}get iterationDuration(){return Hb(this.animations,\"iterationDuration\")}runAll(t){this.animations.forEach((e)=>e[t]())}play(){this.runAll(\"play\")}pause(){this.runAll(\"pause\")}cancel(){this.runAll(\"cancel\")}complete(){this.runAll(\"complete\")}}function Hb(t,e){let n=0;for(let i=0;i<t.length;i++){let a=t[i][e];if(a!==null&&a>n)n=a}return n}class Xc extends ch{then(t,e){return this.finished.finally(t).then(()=>{})}}function Kc(t,e,n,i=0,a=1){let r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,l=(o-1)*i;return typeof n===\"function\"?n(r,o):a===1?r*i:l-r*i}var Lb=30,K3=(t)=>!isNaN(parseFloat(t)),fh={current:void 0};class fi{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n)=>{let i=Lt.now();if(this.updatedAt!==i)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(n),this.current!==this.prev){if(this.notifyChange(),this.dependents)for(let a of this.dependents)a.dirty()}},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){if(this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0)this.canTrackVelocity=K3(this.current)}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on(\"change\",t)}on(t,e){var n;if(t===\"change\")return this.onChangeSubscribe(e);return((n=this.events)[t]||(n[t]=new La)).add(e)}onChangeSubscribe(t){let{events:e}=this;if(!e.change&&!this.changeSubscriber)this.changeSubscriber=t;else{if(!e.change)e.change=new La,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0;e.change.add(t)}return()=>{if(this.changeSubscriber===t)this.changeSubscriber=void 0;else e.change?.remove(t);this.stopIfUnobserved()}}stopIfUnobserved(){gt.read(()=>{if(!this.changeSubscriber&&!this.events.change?.getSize())this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){if(!this.passiveEffect)this.updateAndNotify(t);else this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){if(this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;if(e)e(t);else this.events.change?.notify(t)}addDependent(t){if(!this.dependents)this.dependents=new Set;this.dependents.add(t)}removeDependent(t){if(this.dependents)this.dependents.delete(t)}get(){if(fh.current)fh.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Lb)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,Lb);return Xl(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e)=>{this.hasAnimated=!0;let n=!1,i;if(i=t(()=>{if(n=!0,this.events.animationComplete?.notify(),this.animation===i)this.clearAnimation();e()}),!n)this.animation=i;this.events.animationStart?.notify()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function ye(t,e){return new fi(t,e)}function Zc(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}function Qc(t,e){let n=t?.[e]??t?.default??t;if(n!==t)return Zc(n,t);return n}var Z3={type:\"spring\",stiffness:500,damping:25,restSpeed:10},Q3=(t)=>({type:\"spring\",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),k3={type:\"keyframes\",duration:0.8},F3={type:\"keyframes\",ease:[0.25,0.1,0.35,1],duration:0.3},Gb=(t,{keyframes:e})=>{if(e.length>2)return k3;else if(fe.has(t))return t.startsWith(\"scale\")?Q3(e[1]):Z3;return F3};var $3=new Set([\"when\",\"delay\",\"delayChildren\",\"staggerChildren\",\"staggerDirection\",\"repeat\",\"repeatType\",\"repeatDelay\",\"from\",\"elapsed\"]);function jb(t){for(let e in t)if(!$3.has(e))return!0;return!1}var po=(t,e,n,i={},a,r)=>(o)=>{let l=Qc(i,t)||{},s=l.delay||i.delay||0,{elapsed:c=0}=i;c=c-kt(s);let u={keyframes:Array.isArray(n)?n:[null,n],ease:\"easeOut\",velocity:e.getVelocity(),...l,delay:-c,onUpdate:(m)=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:a};if(!jb(l))Object.assign(u,Gb(t,u));if(u.duration&&(u.duration=kt(u.duration)),u.repeatDelay&&(u.repeatDelay=kt(u.repeatDelay)),u.from!==void 0)u.keyframes[0]=u.from;let f=!1;if(u.type===!1||u.duration===0&&!u.repeatDelay){if(us(u),u.delay===0)f=!0}if(ue.instantAnimations||ue.skipAnimations||a?.shouldSkipAnimations||l.skipAnimations)f=!0,us(u),u.delay=0;if(u.allowFlatten=!l.type&&!l.ease,f&&!r&&e.get()!==void 0){let m=Ji(u.keyframes,l);if(m!==void 0){gt.update(()=>{u.onUpdate(m),u.onComplete()});return}}return l.isSync?new Pi(u):new uh(u)};var J3=/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;function P3(t){let e=J3.exec(t);if(!e)return[,];let[,n,i,a]=e;return[`--${n??i}`,a]}var I3=4;function mh(t,e,n=1){Qt(n<=I3,`Max CSS variable fallback depth detected in property \"${t}\". This may indicate a circular fallback dependency.`,\"max-css-var-depth\");let[i,a]=P3(t);if(!i)return;let r=window.getComputedStyle(e).getPropertyValue(i);if(r){let o=r.trim();return _a(o)?parseFloat(o):o}return ro(a)?mh(a,e,n+1):a}function qb(t){let e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ka(t,e,n,i){if(typeof e===\"function\"){let[a,r]=qb(i);e=e(n!==void 0?n:t.custom,a,r)}if(typeof e===\"string\")e=t.variants&&t.variants[e];if(typeof e===\"function\"){let[a,r]=qb(i);e=e(n!==void 0?n:t.custom,a,r)}return e}function Pe(t,e,n){let i=t.getProps();return ka(i,e,n!==void 0?n:i.custom,t)}var ho=new Set([\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",...Je]);var fs=(t)=>Array.isArray(t);function W3(t,e,n){if(t.hasValue(e))t.getValue(e).set(n);else t.addValue(e,ye(n))}function tw(t){return fs(t)?t[t.length-1]||0:t}function Yb(t,e){let n=Pe(t,e),{transitionEnd:i={},transition:a={},...r}=n||{};r={...r,...i};for(let o in r){let l=tw(r[o]);W3(t,o,l)}}var tt=(t)=>Boolean(t&&t.getVelocity);function Xb(t){return Boolean(tt(t)&&t.add)}function Kb(t,e){let n=t.getValue(\"willChange\");if(Xb(n))return n.add(e);else if(!n&&ue.WillChange){let i=new ue.WillChange(\"auto\");t.addValue(\"willChange\",i),i.add(e)}}function Xn(t){return t.replace(/([A-Z])/g,(e)=>`-${e.toLowerCase()}`)}var Zb=\"framerAppearId\",ms=\"data-\"+Xn(Zb);function Qb(t){return t.props[ms]}var ew=typeof window<\"u\";function nw({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function kc(t,e,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:r,transitionEnd:o,...l}=e,s=t.getDefaultTransition();r=r?Zc(r,s):s;let c=r?.reduceMotion,u=r?.skipAnimations;if(i)r=i;let f=[],m=a&&t.animationState&&t.animationState.getState()[a],d=r?.path;if(d)d.animateVisualElement(t,l,r,n,f);for(let y in l){let x=t.getValue(y,t.latestValues[y]??null),T=l[y];if(T===void 0||m&&nw(m,y))continue;let h={delay:n,...Qc(r||{},y)};if(u)h.skipAnimations=!0;let p=x.get();if(p!==void 0&&!x.isAnimating()&&!Array.isArray(T)&&T===p&&!h.velocity){gt.update(()=>x.set(T));continue}let g=!1;if(ew&&window.MotionHandoffAnimation){let M=Qb(t);if(M){let b=window.MotionHandoffAnimation(M,y,gt);if(b!==null)h.startTime=b,g=!0}}Kb(t,y);let v=c??t.shouldReduceMotion;x.start(po(y,x,T,v&&ho.has(y)?{type:!1}:h,t,g));let E=x.animation;if(E)f.push(E)}if(o){let y=()=>gt.update(()=>{o&&Yb(t,o)});if(f.length)Promise.all(f).then(y);else y()}return f}function Fc(t,e,n={}){let i=Pe(t,e,n.type===\"exit\"?t.presenceContext?.custom:void 0),{transition:a=t.getDefaultTransition()||{}}=i||{};if(n.transitionOverride)a=n.transitionOverride;let r=i?()=>Promise.all(kc(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=a;return iw(t,e,s,c,u,f,n)}:()=>Promise.resolve(),{when:l}=a;if(l){let[s,c]=l===\"beforeChildren\"?[r,o]:[o,r];return s().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function iw(t,e,n=0,i=0,a=0,r=1,o){let l=[];for(let s of t.variantChildren)s.notify(\"AnimationStart\",e),l.push(Fc(s,e,{...o,delay:n+(typeof i===\"function\"?0:i)+Kc(t.variantChildren,s,i,a,r)}).then(()=>s.notify(\"AnimationComplete\",e)));return Promise.all(l)}function kb(t,e,n={}){t.notify(\"AnimationStart\",e);let i;if(Array.isArray(e)){let a=e.map((r)=>Fc(t,r,n));i=Promise.all(a)}else if(typeof e===\"string\")i=Fc(t,e,n);else{let a=typeof e===\"function\"?Pe(t,e,n.custom):e;i=Promise.all(kc(t,a,n))}return i.then(()=>{t.notify(\"AnimationComplete\",e)})}var Fb={test:(t)=>t===\"auto\",parse:(t)=>t};var $b=(t)=>(e)=>e.test(t);var aw=[qn,D,Fi,Tn,Px,Jx,Fb],dh=(t)=>aw.find($b(t));function Jb(t){if(typeof t===\"number\")return t===0;else if(t!==null)return t===\"none\"||t===\"0\"||Ua(t);else return!0}var rw=new Set([\"auto\",\"none\",\"0\"]);function Pb(t,e,n){let i=0,a=void 0;while(i<t.length&&!a){let r=t[i];if(typeof r===\"string\"&&!rw.has(r)&&ab(r))a=t[i];i++}if(a&&n)for(let r of e){if(t[r]===a)continue;t[r]=mo(n,a)}}class ds extends Ka{constructor(t,e,n,i,a){super(t,e,n,i,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u===\"string\"){if(u=u.trim(),ro(u)){let f=mh(u,e.current);if(f!==void 0)t[c]=f;if(c===t.length-1)this.finalKeyframe=u}}}if(this.resolveNoneKeyframes(),!ho.has(n)||t.length!==2)return;let[i,a]=t;if(typeof i===\"number\"&&typeof a===\"number\")return;let r=dh(i),o=dh(a),l=Xp(i),s=Xp(a);if(l!==s&&Ii[n]){this.needsMeasurement=!0;return}if(r===o)return;if(th(r)&&th(o))for(let c=0;c<t.length;c++){let u=t[c];if(typeof u===\"string\")t[c]=parseFloat(u)}else if(Ii[n])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)if(t[i]===null||Jb(t[i]))n.push(i);if(n.length)Pb(t,n,e)}measure(){let{element:t,name:e}=this;return Ii[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;if(n===\"height\")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let i=e[e.length-1];if(i!==void 0)this.motionValue?.jump(i,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=e.length-1,i=e[n];if(e[n]=this.measure(),i!==null&&this.finalKeyframe===void 0)this.finalKeyframe=i;if(this.removedTransforms?.length)this.removedTransforms.forEach(([a,r])=>{t.getValue(a).set(r)});this.resolveNoneKeyframes()}}var Ib=[\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderBottomRightRadius\",\"borderBottomLeftRadius\"];var ph=[];function hh(t){Qt(typeof t.test===\"function\"&&typeof t.read===\"function\",\"Effects passed to animate.addEffect() need test() and read().\",\"effect-missing-test\"),$c(t),ph.unshift(t)}function $c(t){li(ph,t)}function gh(t){return ph.find((e)=>e.test(t))}function Jc(t,e,n={},i){let a=[],{velocity:r}=n,o=n.reduceMotion??i?.shouldReduceMotion;for(let s in e){if(s===\"transition\"||s===\"transitionEnd\")continue;let c=e[s];if(c===void 0)continue;let u=t(s),f=u.get();if(f!==void 0&&!u.isAnimating()&&!Array.isArray(c)&&c===f&&!r){gt.update(()=>u.set(c));continue}u.start(po(s,u,c,o&&ho.has(s)?{type:!1}:n,i)),u.animation&&a.push(u.animation)}let{transitionEnd:l}=e;if(l){let s=()=>gt.update(()=>{for(let c in l)t(c).set(l[c])});a.length?Promise.all(a).then(s):s()}return a}function ps(t,e,n,i,a){return Jc((r)=>{let o=t.get(e,r);if(!o){let l;if(!a){let s=n[r];l=ow(s)??t.read(e,r,s),Qt(l!==void 0,`\"${r}\" can't be read from the animated subject. Provide [from, to] keyframes.`,\"effect-unreadable-value\")}o=ye(l,{owner:a}),t(e,{[r]:o})}return o},n,i,a)}function ow(t){let e=Array.isArray(t)?t[0]:void 0;return e===null?void 0:e}function hs(t){return Ba(t)&&\"offsetHeight\"in t&&!(\"ownerSVGElement\"in t)}function go(t){return Ba(t)&&\"ownerSVGElement\"in t}var _e=(t,e)=>e&&typeof t===\"number\"?e.transform(t):t;function gs(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];else if(typeof t===\"string\"){let i=document;if(e)i=e.current;let a=n?.[t]??i.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t).filter((i)=>i!=null)}class yh{constructor(t=gt.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:n}=this;this.numPending=0;for(let i=0;i<n;i++)e[i]()}}set(t,e,n,i){if(this.values.get(t)?.onRemove(),i){for(let l of this.values.values())if(l.value===i)n=l.render}let a=()=>n&&this.schedule(n);e.get()!==void 0&&a();let r=e.on(\"change\",a),o=()=>{r(),n&&!i&&this.cancel(n),this.values.delete(t)};return this.values.set(t,{value:e,render:i?void 0:n,onRemove:o}),o}get(t){return this.values.get(t)?.value}release(){let t=new Map;return this.values.forEach((e,n)=>{t.set(n,e.value),e.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){let{pending:e,numPending:n}=this;for(let i=0;i<n;i++)if(e[i]===t)return;n||this.step(this.flush),e[this.numPending++]=t}cancel(t){let{pending:e}=this;for(let n=0;n<this.numPending;n++)if(e[n]===t){e[n]=e[--this.numPending];return}}}function yo(t,{step:e,...n}={}){let i=new WeakMap;return Object.assign((r,o)=>{let l=i.get(r)??new yh(e);i.set(r,l);let s=[];for(let c in o){let u=o[c],f=t(r,l,c,u);s.push(f)}return()=>{for(let c of s)c()}},n,{get:(r,o)=>i.get(r)?.get(o),flush:(r)=>i.get(r)?.flush(),state:(r)=>i.get(r)})}var lw={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},Wb={};function tS(t){let e=\"\",{transformKeys:n=[],transformValues:i={}}=t;for(let r=0;r<n.length;r++){let o=n[r],l=i[o].get();if(l===void 0)continue;if((typeof l===\"number\"?l:parseFloat(l))!==(o.startsWith(\"scale\")?1:0))e+=(e&&\" \")+(Wb[o]||(Wb[o]=(lw[o]||o)+\"(\"))+_e(l,ls[o])+\")\"}let a=t.get(\"pathRotation\")?.get();if(a)e+=(e&&\" \")+\"rotate(\"+_e(a,ls.pathRotation)+\")\";return e||\"none\"}var sw=new Set([\"originX\",\"originY\",\"originZ\"]),vh=(t,e)=>_e(t.get(e)?.get(),ge[e]),Pc=(t,e,n,i)=>{let a=void 0,r=void 0;if(fe.has(n)){if(n!==\"pathRotation\"){let o=e.transformKeys??(e.transformKeys=[]);if((e.transformValues??(e.transformValues={}))[n]=i,!o.includes(n))o.push(n),o.sort((l,s)=>Je.indexOf(l)-Je.indexOf(s))}if(!e.get(\"transform\")){if(!hs(t)&&!e.get(\"transformBox\"))Pc(t,e,\"transformBox\",new fi(\"fill-box\"));e.set(\"transform\",new fi(\"none\"),()=>{t.style.transform=tS(e)})}r=e.get(\"transform\")}else if(sw.has(n)){if(!e.get(\"transformOrigin\"))e.set(\"transformOrigin\",new fi(\"\"),()=>{let o=vh(e,\"originX\")??\"50%\",l=vh(e,\"originY\")??\"50%\",s=vh(e,\"originZ\")??0;t.style.transformOrigin=`${o} ${l} ${s}`});r=e.get(\"transformOrigin\")}else if(Wi(n))a=()=>{t.style.setProperty(n,i.get())};else a=()=>{t.style[n]=_e(i.get(),ge[n])};return e.set(n,i,a,r)},uw=(t)=>hs(t)||go(t),xh=(t,e)=>{if(fe.has(e))return Gc(t,e);let n=getComputedStyle(t),i=Wi(e)?n.getPropertyValue(e):n[e];return typeof i===\"string\"&&i.trim()||0},eS=yo(Pc,{test:uw,read:xh});var cw={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},fw=Je.length;function nS(t,e,n){let i=\"\",a=!0;for(let o=0;o<fw;o++){let l=Je[o],s=t[l];if(s===void 0)continue;let c=!0;if(typeof s===\"number\")c=s===(l.startsWith(\"scale\")?1:0);else{let u=parseFloat(s);c=l.startsWith(\"scale\")?u===1:u===0}if(!c||n){let u=_e(s,ge[l]);if(!c){a=!1;let f=cw[l]||l;i+=`${f}(${u}) `}if(n)e[l]=u}}let r=t.pathRotation;if(r)a=!1,i+=`rotate(${_e(r,ge.pathRotation)}) `;if(i=i.trim(),n)i=n(e,a?\"\":i);else if(a)i=\"none\";return i}function Fa(t,e,n){let{style:i,vars:a,transformOrigin:r}=t,o=!1,l=!1;for(let s in e){let c=e[s];if(fe.has(s)){o=!0;continue}else if(Cc(s)){a[s]=c;continue}else{let u=_e(c,ge[s]);if(s.startsWith(\"origin\"))l=!0,r[s]=u;else i[s]=u}}if(!e.transform){if(o||n)i.transform=nS(e,t.transform,n);else if(i.transform)i.transform=\"none\"}if(l){let{originX:s=\"50%\",originY:c=\"50%\",originZ:u=0}=r;i.transformOrigin=`${s} ${c} ${u}`}}var mw={offset:\"stroke-dashoffset\",array:\"stroke-dasharray\"},dw={offset:\"strokeDashoffset\",array:\"strokeDasharray\"};function iS(t,e,n=1,i=0,a=!0){t.pathLength=1;let r=a?mw:dw;t[r.offset]=`${-i}`,t[r.array]=`${e} ${n}`}var ys=[\"transform\",\"opacity\",\"offsetDistance\",\"offsetPath\",\"offsetRotate\",\"offsetAnchor\"];function vs(t,{attrX:e,attrY:n,attrScale:i,pathLength:a,pathSpacing:r=1,pathOffset:o=0,...l},s,c,u){if(Fa(t,l,c),s){if(t.style.viewBox)t.attrs.viewBox=t.style.viewBox;return}t.attrs=t.style,t.style={};let{attrs:f,style:m}=t;for(let d of ys)if(f[d]!==void 0)m[d]=f[d],delete f[d];if(m.transform||f.transformOrigin)m.transformOrigin=f.transformOrigin??\"50% 50%\",delete f.transformOrigin;if(m.transform)m.transformBox=u?.transformBox??\"fill-box\",delete f.transformBox;if(e!==void 0)f.x=e;if(n!==void 0)f.y=n;if(i!==void 0)f.scale=i;if(a!==void 0)iS(f,a,r,o,!1)}function pw(t,e){if(!(e in t))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&typeof n.set===\"function\"}var bh=(t,e,n,i,a=n)=>{let r=pw(t,a);if(!r&&(a.startsWith(\"data\")||a.startsWith(\"aria\")))a=Xn(a);let o=ge[n]||ge[a],l=r?()=>{t[a]=_e(i.get(),ge[n])}:()=>{let s=_e(i.get(),o);if(s===null||s===void 0)t.removeAttribute(a);else t.setAttribute(a,String(s))};return e.set(n,i,l)};function hw(t,e,n,i){if(gt.render(()=>t.setAttribute(\"pathLength\",\"1\")),n===\"pathOffset\")return e.set(n,i,()=>{let a=i.get();t.setAttribute(\"stroke-dashoffset\",`${-a}`)});else{if(!e.get(\"stroke-dasharray\"))e.set(\"stroke-dasharray\",new fi(\"1 1\"),()=>{let a=e.get(\"pathLength\")?.get()??1,r=e.get(\"pathSpacing\")?.get();t.setAttribute(\"stroke-dasharray\",`${a} ${r??1-Number(a)}`)});return e.set(n,i,void 0,e.get(\"stroke-dasharray\"))}}var gw=(t,e,n,i)=>{if(n.startsWith(\"path\"))return hw(t,e,n,i);else if(n.startsWith(\"attr\"))return bh(t,e,n,i,rS(n));return(Wi(n)||n in t.style?Pc:bh)(t,e,n,i)},yw=(t,e)=>{if(fe.has(e))return ge[e]?.default||0;if(Wi(e)||ys.includes(e))return xh(t,e);return e=rS(e),t.getAttribute(Xn(e))??t.getAttribute(e)??void 0},aS=yo(gw,{test:go,read:yw});function rS(t){return t.replace(/^attr([A-Z])/,(e,n)=>n.toLowerCase())}function oS({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function lS(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ic(t,e){return oS(lS(t.getBoundingClientRect(),e))}var vw={},xw=(t)=>go(t)?aS:eS;class sS{constructor(t,e){this.effect=t,this.current=e,this.KeyframeResolver=ds}getValue(t){return this.effect.get(this.current,t)}readValue(t,e){return this.effect.read(this.current,t,e)}render(){this.effect.flush(this.current)}measureViewportBox(){return Ic(this.current)}getProps(){return vw}}function Sh(t,e,n,i){if(i)return Jc((r)=>i.getValue(r,null),e,n,i);let a=xw(t);return ps(a,t,e,n,new sS(a,t))}var Th=yo((t,e,n,i)=>e.set(n,i,()=>{t[n]=i.get()}),{test:(t)=>Ba(t),read:(t,e)=>{let n=t[e];return typeof n===\"string\"||typeof n===\"number\"?n:void 0}});var{schedule:uS,cancel:$6}=Ac(queueMicrotask,!1);var cS={x:!1,y:!1};function Wc(){return cS.x||cS.y}function tf(t,e){let n=gs(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function bw(t){return!(t.pointerType===\"touch\"||Wc())}function Eh(t,e,n={}){let[i,a,r]=tf(t,n);return i.forEach((o)=>{let l=!1,s=!1,c,u=()=>{o.removeEventListener(\"pointerleave\",y)},f=(T)=>{if(c)c(T),c=void 0;u()},m=(T)=>{if(l=!1,window.removeEventListener(\"pointerup\",m),window.removeEventListener(\"pointercancel\",m),s)s=!1,f(T)},d=()=>{l=!0,window.addEventListener(\"pointerup\",m,a),window.addEventListener(\"pointercancel\",m,a)},y=(T)=>{if(T.pointerType===\"touch\")return;if(l){s=!0;return}f(T)},x=(T)=>{if(!bw(T))return;s=!1;let h=e(o,T);if(typeof h!==\"function\")return;c=h,o.addEventListener(\"pointerleave\",y,a)};o.addEventListener(\"pointerenter\",x,a),o.addEventListener(\"pointerdown\",d,a)}),r}var Mh=(t,e)=>{if(!e)return!1;else if(t===e)return!0;else return Mh(t,e.parentElement)};var fS=(t)=>{if(t.pointerType===\"mouse\")return typeof t.button!==\"number\"||t.button<=0;else return t.isPrimary!==!1};var Sw=new Set([\"BUTTON\",\"INPUT\",\"SELECT\",\"TEXTAREA\",\"A\"]);function mS(t){return Sw.has(t.tagName)||t.isContentEditable===!0}var vo=new WeakSet;function dS(t){return(e)=>{if(e.key!==\"Enter\")return;t(e)}}function Ah(t,e){t.dispatchEvent(new PointerEvent(\"pointer\"+e,{isPrimary:!0,bubbles:!0}))}var pS=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=dS(()=>{if(vo.has(n))return;Ah(n,\"down\");let a=dS(()=>{Ah(n,\"up\")}),r=()=>Ah(n,\"cancel\");n.addEventListener(\"keyup\",a,e),n.addEventListener(\"blur\",r,e)});n.addEventListener(\"keydown\",i,e),n.addEventListener(\"blur\",()=>n.removeEventListener(\"keydown\",i),e)};function hS(t){return fS(t)&&!Wc()}var gS=new WeakSet;function wh(t,e,n={}){let[i,a,r]=tf(t,n),o=(l)=>{let s=l.currentTarget;if(!hS(l))return;if(gS.has(l))return;if(vo.add(s),n.stopPropagation)gS.add(l);let c=e(s,l),u={...a,capture:!0},f=(y,x)=>{if(window.removeEventListener(\"pointerup\",m,u),window.removeEventListener(\"pointercancel\",d,u),vo.has(s))vo.delete(s);if(!hS(y))return;if(typeof c===\"function\")c(y,{success:x})},m=(y)=>{f(y,s===window||s===document||n.useGlobalTarget||Mh(s,y.target))},d=(y)=>{f(y,!1)};window.addEventListener(\"pointerup\",m,u),window.addEventListener(\"pointercancel\",d,u)};return i.forEach((l)=>{if((n.useGlobalTarget?window:l).addEventListener(\"pointerdown\",o,a),hs(l)){if(l.addEventListener(\"focus\",(c)=>pS(c,a)),!mS(l)&&!l.hasAttribute(\"tabindex\"))l.tabIndex=0}}),r}var yS=()=>({min:0,max:0}),ef=()=>({x:yS(),y:yS()});var xs=new WeakMap;function mi(t){return t!==null&&typeof t===\"object\"&&typeof t.start===\"function\"}function Kn(t){return typeof t===\"string\"||Array.isArray(t)}var nf=[\"animate\",\"whileInView\",\"whileFocus\",\"whileHover\",\"whileTap\",\"whileDrag\",\"exit\"],xo=[\"initial\",...nf];function ta(t){if(mi(t.animate))return!0;for(let e=0;e<xo.length;e++)if(Kn(t[xo[e]]))return!0;return!1}function bs(t){return Boolean(ta(t)||t.variants)}function vS(t,e,n){for(let i in e){let a=e[i],r=n[i];if(tt(a))t.addValue(i,a);else if(tt(r))t.addValue(i,ye(a,{owner:t}));else if(r!==a)if(t.hasValue(i)){let o=t.getValue(i);if(o.liveStyle===!0)o.jump(a);else if(!o.hasAnimated)o.set(a)}else{let o=t.getStaticValue(i);t.addValue(i,ye(o!==void 0?o:a,{owner:t}))}}for(let i in n)if(e[i]===void 0)t.removeValue(i);return e}var Ss={current:null},af={current:!1};var Tw=typeof window<\"u\";function xS(){if(af.current=!0,!Tw)return;if(window.matchMedia){let t=window.matchMedia(\"(prefers-reduced-motion)\"),e=()=>Ss.current=t.matches;t.addEventListener(\"change\",e),e()}else Ss.current=!1}var bS=[\"AnimationStart\",\"AnimationComplete\",\"Update\",\"BeforeLayoutMeasure\",\"LayoutMeasure\",\"LayoutAnimationStart\",\"LayoutAnimationComplete\"],rf={};function Ts(t){rf=t}function Ch(){return rf}class of{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:r,visualState:o},l={}){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=Ka,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(\"Update\",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=Lt.now();if(this.renderScheduledAt<m)this.renderScheduledAt=m,gt.render(this.render,!1,!0)};let{latestValues:s,renderState:c}=o;if(this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=ta(e),this.isVariantNode=bs(e),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:u,...f}=this.scrapeMotionValuesFromProps(e,{},this);for(let m in f){let d=f[m];if(s[m]!==void 0&&tt(d))d.set(s[m])}}mount(t){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=t,xs.set(t,this),this.projection&&!this.projection.instance)this.projection.mount(t);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((e,n)=>this.bindToMotionValue(n,e)),this.reducedMotionConfig===\"never\")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig===\"always\")this.shouldReduceMotion=!0;else{if(!af.current)xS();this.shouldReduceMotion=Ss.current}this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ao(this.notifyUpdate),ao(this.render),this.valueSubscriptions.forEach((t)=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];if(e)e.unmount(),e.isMounted=!1}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t))this.valueSubscriptions.get(t)();if(e.accelerate&&cs.has(t)&&this.current instanceof HTMLElement){let{factory:r,keyframes:o,times:l,ease:s,duration:c}=e.accelerate,u=new ss({element:this.current,name:t,keyframes:o,times:l,ease:s,duration:kt(c)}),f=r(u);this.valueSubscriptions.set(t,()=>{f(),u.cancel()});return}let n=fe.has(t);if(n&&this.onBindTransform)this.onBindTransform();let i=e.on(\"change\",(r)=>{if(this.latestValues[t]=r,this.props.onUpdate&>.preRender(this.notifyUpdate),n&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),a;if(typeof window<\"u\"&&window.MotionCheckAppearSync)a=window.MotionCheckAppearSync(this,t,e);this.valueSubscriptions.set(t,()=>{if(i(),a)a()})}sortNodePosition(t){if(!this.current||!this.sortInstanceNodePosition||this.type!==t.type)return 0;return this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t=\"animation\";for(t in rf){let e=rf[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props))this.features[t]=new i(this);if(this.features[t]){let a=this.features[t];if(a.isMounted)a.update();else a.mount(),a.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ef()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){if(t.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<bS.length;n++){let i=bS[n];if(this.propEventSubscriptions[i])this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i];let a=\"on\"+i,r=t[a];if(r)this.propEventSubscriptions[i]=this.on(i,r)}if(this.prevMotionValues=vS(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);if(e!==n){if(n)this.removeValue(t);this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get()}}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);if(e)e(),this.valueSubscriptions.delete(t);delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);if(n===void 0&&e!==void 0)n=ye(e===null?void 0:e,{owner:this}),this.addValue(t,n);return n}readValue(t,e){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);if(n!==void 0&&n!==null){if(typeof n===\"string\"&&(_a(n)||Ua(n)))n=parseFloat(n);else if(typeof n!==\"number\"&&!Gt.test(n)&&Gt.test(e))n=mo(t,e);this.setBaseTarget(t,tt(n)?n.get():n)}return tt(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let{initial:e}=this.props,n;if(typeof e===\"string\"||typeof e===\"object\"){let a=ka(this.props,e,this.presenceContext?.custom);if(a)n=a[t]}if(e&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);if(i!==void 0&&!tt(i))return i;return this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,e){if(!this.events[t])this.events[t]=new La;return this.events[t].add(e)}notify(t,...e){if(this.events[t])this.events[t].notify(...e)}scheduleRenderMicrotask(){uS.render(this.render)}}class Es extends of{constructor(){super(...arguments);this.KeyframeResolver=ds}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){let n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:t}=this.props;if(tt(t))this.childSubscription=t.on(\"change\",(e)=>{if(this.current)this.current.textContent=`${e}`})}}class Be{constructor(t){this.isMounted=!1,this.node=t}update(){}}function lf(t,{style:e,vars:n},i,a){let r=t.style,o;for(o in e)r[o]=e[o];a?.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function SS(t,e){if(e.max===e.min)return 0;return t/(e.max-e.min)*100}var bo={correct:(t,e)=>{if(!e.target)return t;if(typeof t===\"string\")if(D.test(t))t=parseFloat(t);else return t;let n=SS(t,e.target.x),i=SS(t,e.target.y);return`${n}% ${i}%`}};var TS={correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t,a=Gt.parse(t);if(a.length>5)return i;let r=Gt.createTransformer(t),o=typeof a[0]!==\"number\"?1:0,l=n.x.scale*e.x,s=n.y.scale*e.y;a[0+o]/=l,a[1+o]/=s;let c=Re(l,s,0.5);if(typeof a[2+o]===\"number\")a[2+o]/=c;if(typeof a[3+o]===\"number\")a[3+o]/=c;return r(a)}};var ES={borderRadius:{...bo,applyTo:[...Ib]},borderTopLeftRadius:bo,borderTopRightRadius:bo,borderBottomLeftRadius:bo,borderBottomRightRadius:bo,boxShadow:TS};function Ms(t,{layout:e,layoutId:n}){return fe.has(t)||t.startsWith(\"origin\")||(e||n!==void 0)&&(!!ES[t]||t===\"opacity\")}function $a(t,e,n){let i=t.style,a=e?.style,r={};if(!i)return r;for(let o in i)if(tt(i[o])||a&&tt(a[o])||Ms(o,t)||n?.getValue(o)?.liveStyle!==void 0)r[o]=i[o];return r}function Ew(t){return window.getComputedStyle(t)}class sf extends Es{constructor(){super(...arguments);this.type=\"html\",this.renderInstance=lf}mount(t){Qt(Boolean(t.style),\"motion.create() components must forward their ref to a HTML or SVG element\",\"custom-component-ref\"),super.mount(t)}readValueFromInstance(t,e){if(fe.has(e))return this.projection?.isProjecting?Hc(e):Gc(t,e);else{let n=Ew(t),i=(Cc(e)?n.getPropertyValue(e):n[e])||0;return typeof i===\"string\"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ic(t,e)}build(t,e,n){Fa(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return $a(t,e,n)}}var uf=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\"]);var As=(t)=>typeof t===\"string\"&&t.toLowerCase()===\"svg\";function MS(t,e,n,i){lf(t,e,void 0,i);for(let a in e.attrs)t.setAttribute(!uf.has(a)?Xn(a):a,e.attrs[a])}function ws(t,e,n){let i=$a(t,e,n);for(let a in t)if(tt(t[a])||tt(e[a])){let r=Je.indexOf(a)!==-1?\"attr\"+a.charAt(0).toUpperCase()+a.substring(1):a;i[r]=t[a]}return i}class cf extends Es{constructor(){super(...arguments);this.type=\"svg\",this.isSVGTag=!1,this.measureInstanceViewportBox=ef}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(fe.has(e)){let n=Uc(e);return n?n.default||0:0}if(ys.includes(e)){let i=getComputedStyle(t)[e];if(typeof i===\"string\"&&i)return i.trim()}return e=!uf.has(e)?Xn(e):e,t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return ws(t,e,n)}build(t,e,n){vs(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){MS(t,e,n,i)}mount(t){this.isSVGTag=As(t.tagName),super.mount(t)}}var Mw=xo.length;function Oh(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent?Oh(t.parent)||{}:{};if(t.props.initial!==void 0)n.initial=t.props.initial;return n}let e={};for(let n=0;n<Mw;n++){let i=xo[n],a=t.props[i];if(Kn(a)||a===!1)e[i]=a}return e}function Nh(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var Aw=[...nf].reverse(),ww=nf.length;function Cw(t){return(e)=>Promise.all(e.map(({animation:n,options:i})=>kb(t,n,i)))}function Vh(t){let e=Cw(t),n=AS(),i=!0,a=!1,r=(c)=>(u,f)=>{let m=Pe(t,f,c===\"exit\"?t.presenceContext?.custom:void 0);if(m){let{transition:d,transitionEnd:y,...x}=m;u={...u,...x,...y}}return u};function o(c){e=c(t)}function l(c){let{props:u}=t,f=Oh(t.parent)||{},m=[],d=new Set,y={},x=1/0;for(let h=0;h<ww;h++){let p=Aw[h],g=n[p],v=u[p]!==void 0?u[p]:f[p],E=Kn(v),M=p===c?g.isActive:null;if(M===!1)x=h;let b=v===f[p]&&v!==u[p]&&E;if(b&&(i||a)&&t.manuallyAnimateOnMount)b=!1;if(g.protectedKeys={...y},!g.isActive&&M===null||!v&&!g.prevProp||mi(v)||typeof v===\"boolean\")continue;if(p===\"exit\"&&g.isActive&&M!==!0){if(g.prevResolvedValues)y={...y,...g.prevResolvedValues};continue}let S=wS(g.prevProp,v),A=S||p===c&&g.isActive&&!b&&E||h>x&&E,N=!1,z=Array.isArray(v)?v:[v],W=z.reduce(r(p),{});if(M===!1)W={};let{prevResolvedValues:it={}}=g,me={...it,...W},et=(H)=>{if(A=!0,d.has(H))N=!0,d.delete(H);g.needsAnimating[H]=!0;let ut=t.getValue(H);if(ut)ut.liveStyle=!1};for(let H in me){let ut=W[H],Ct=it[H];if(y.hasOwnProperty(H))continue;let V=!1;if(fs(ut)&&fs(Ct))V=!Nh(ut,Ct)||S;else V=ut!==Ct;if(V)if(ut!==void 0&&ut!==null)et(H);else d.add(H);else if(ut!==void 0&&d.has(H))et(H);else g.protectedKeys[H]=!0}if(g.prevProp=v,g.prevResolvedValues=W,g.isActive)y={...y,...W};if((i||a)&&t.blockInitialAnimation)A=!1;let st=b&&S;if(A&&(!st||N))m.push(...z.map((H)=>{let ut={type:p};if(typeof H===\"string\"&&(i||a)&&!st&&t.manuallyAnimateOnMount&&t.parent){let{parent:Ct}=t,V=Pe(Ct,H);if(Ct.enteringChildren&&V){let{delayChildren:G}=V.transition||{};ut.delay=Kc(Ct.enteringChildren,t,G)}}return{animation:H,options:ut}}))}if(d.size){let h={};if(typeof u.initial!==\"boolean\"){let p=Pe(t,Array.isArray(u.initial)?u.initial[0]:u.initial);if(p&&p.transition)h.transition=p.transition}d.forEach((p)=>{let g=t.getBaseTarget(p),v=t.getValue(p);if(v)v.liveStyle=!0;h[p]=g??null}),m.push({animation:h})}let T=Boolean(m.length);if(i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount)T=!1;return i=!1,a=!1,T?e(m):Promise.resolve()}function s(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach((m)=>m.animationState?.setActive(c,u)),n[c].isActive=u;let f=l(c);for(let m in n)n[m].protectedKeys={};return f}return{animateChanges:l,setActive:s,setAnimateFunction:o,getState:()=>n,reset:()=>{n=AS(),a=!0}}}function wS(t,e){if(typeof e===\"string\")return e!==t;else if(Array.isArray(e))return!Nh(e,t);return!1}function Ja(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AS(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}function Dh(t,e,n){let i=tt(t)?t:ye(t);return i.start(po(\"\",i,e,n)),i.animation}function ff(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function zh(t){return tt(t)?t.get():t}var CS=P(wt(),1),So=CS.createContext({transformPagePoint:(t)=>t,isStatic:!1,reducedMotion:\"never\"});var DS=P(bn(),1),Eo=P(wt(),1);var OS=P(wt(),1),To=OS.createContext({strict:!1});var NS={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\"]},VS=!1;function Ow(){if(VS)return;let t={};for(let e in NS)t[e]={isEnabled:(n)=>NS[e].some((i)=>!!n[i])};Ts(t),VS=!0}function mf(){return Ow(),Ch()}function Cs(t){let e=mf();for(let n in t)e[n]={...e[n],...t[n]};Ts(e)}function _h({children:t,features:e,strict:n=!1}){let[,i]=Eo.useState(!Rh(e)),a=Eo.useRef(void 0);if(!Rh(e)){let{renderer:r,...o}=e;a.current=r,Cs(o)}return Eo.useEffect(()=>{if(Rh(e))e().then(({renderer:r,...o})=>{Cs(o),a.current=r,i(!0)})},[]),DS.jsx(To.Provider,{value:{renderer:a.current,strict:n},children:t})}function Rh(t){return typeof t===\"function\"}var gf=P(bn(),1);var Co=P(wt(),1);var zS=P(wt(),1),ea=zS.createContext({});var df=P(wt(),1);function RS(t,e){if(ta(t)){let{initial:n,animate:i}=t;return{initial:n===!1||Kn(n)?n:void 0,animate:Kn(i)?i:void 0}}return t.inherit!==!1?e:{}}function BS(t){let{initial:e,animate:n}=RS(t,df.useContext(ea));return df.useMemo(()=>({initial:e,animate:n}),[_S(e),_S(n)])}function _S(t){return Array.isArray(t)?t.join(\" \"):t}var wo=P(wt(),1);var US=P(wt(),1);var Mo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bh(t,e,n){for(let i in e)if(!tt(e[i])&&!Ms(i,n))t[i]=e[i]}function Nw({transformTemplate:t},e){return US.useMemo(()=>{let n=Mo();return Fa(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Vw(t,e){let n=t.style||{},i={};return Bh(i,n,t),Object.assign(i,Nw(t,e)),i}function HS(t,e){let n={},i=Vw(t,e);if(t.drag&&t.dragListener!==!1)n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout=\"none\",i.touchAction=t.drag===!0?\"none\":`pan-${t.drag===\"x\"?\"y\":\"x\"}`;if(t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap))n.tabIndex=0;return n.style=i,n}var LS=P(wt(),1);var pf=()=>({...Mo(),attrs:{}});function GS(t,e,n,i){let a=LS.useMemo(()=>{let r=pf();return vs(r,e,As(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let r={};Bh(r,t.style,t),a.style={...r,...a.style}}return a}var Dw=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 Os(t){return t.startsWith(\"while\")||t.startsWith(\"drag\")&&t!==\"draggable\"||t.startsWith(\"layout\")||t.startsWith(\"onTap\")||t.startsWith(\"onPan\")||t.startsWith(\"onLayout\")||Dw.has(t)}function zw(t,e){return t.startsWith(\"on\")?!Os(t):e?.(t)??!Os(t)}function jS(t,e,n,i){let a={};for(let r in t){if(r===\"values\"&&typeof t.values===\"object\")continue;if(tt(t[r]))continue;if(zw(r,i)||n===!0&&Os(r)||!e&&!Os(r)||t.draggable&&r.startsWith(\"onDrag\"))a[r]=t[r]}return a}var qS=[\"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 Ao(t){if(typeof t!==\"string\"||t.includes(\"-\"))return!1;else if(qS.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function YS(t,e,n,{latestValues:i},a,r=!1,o,l){let c=(o??Ao(t)?GS:HS)(e,i,a,t),u=jS(e,typeof t===\"string\",r,l),f=t!==wo.Fragment?{...u,...c,ref:n}:{},{children:m}=e,d=wo.useMemo(()=>tt(m)?m.get():m,[m]);return wo.createElement(t,{...f,children:d})}var Uh=P(wt(),1);function Rw({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,a){return{latestValues:_w(n,i,a,t),renderState:e()}}function _w(t,e,n,i){let a={},r=i(t,{});for(let m in r)a[m]=zh(r[m]);let{initial:o,animate:l}=t,s=ta(t),c=bs(t);if(e&&c&&!s&&t.inherit!==!1){if(o===void 0)o=e.initial;if(l===void 0)l=e.animate}let u=n?n.initial===!1:!1;u=u||o===!1;let f=u?l:o;if(f&&typeof f!==\"boolean\"&&!mi(f)){let m=Array.isArray(f)?f:[f];for(let d=0;d<m.length;d++){let y=ka(t,m[d]);if(y){let{transitionEnd:x,transition:T,...h}=y;for(let p in h){let g=h[p];if(Array.isArray(g)){let v=u?g.length-1:0;g=g[v]}if(g!==null)a[p]=g}for(let p in x)a[p]=x[p]}}}return a}var hf=(t)=>(e,n)=>{let i=Uh.useContext(ea),a=Uh.useContext(Sc),r=()=>Rw(t,e,i,a);return n?r():xc(r)};var XS=hf({scrapeMotionValuesFromProps:$a,createRenderState:Mo});var KS=hf({scrapeMotionValuesFromProps:ws,createRenderState:pf});var ZS=Symbol.for(\"motionComponentSymbol\");var Pa=P(wt(),1);function QS(t,e,n){let i=Pa.useRef(n);Pa.useInsertionEffect(()=>{i.current=n});let a=Pa.useRef(null);return Pa.useCallback((r)=>{if(r)t.onMount?.(r);if(e)r?e.mount(r):e.unmount();let o=i.current;if(typeof o===\"function\")if(r){let l=o(r);if(typeof l===\"function\")a.current=l}else if(a.current)a.current(),a.current=null;else o(r);else if(o)o.current=r},[e])}var Ee=P(wt(),1);var kS=P(wt(),1),FS=kS.createContext({});function $S(t){return t&&typeof t===\"object\"&&Object.prototype.hasOwnProperty.call(t,\"current\")}function JS(t,e,n,i,a,r){let{visualElement:o}=Ee.useContext(ea),l=Ee.useContext(To),s=Ee.useContext(Sc),c=Ee.useContext(So),u=c.reducedMotion,f=c.skipAnimations,m=Ee.useRef(null),d=Ee.useRef(!1);if(i=i||l.renderer,!m.current&&i){if(m.current=i(t,{visualState:e,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:r}),d.current&&m.current)m.current.manuallyAnimateOnMount=!0}let y=m.current,x=Ee.useContext(FS);if(y&&!y.projection&&a&&(y.type===\"html\"||y.type===\"svg\"))Bw(m.current,n,a,x);let T=Ee.useRef(!1);Ee.useInsertionEffect(()=>{if(y&&T.current)y.update(n,s)});let h=n[ms],p=Ee.useRef(Boolean(h)&&typeof window<\"u\"&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Hp(()=>{if(!d.current||!y)return;y.animationState?.animateChanges(),y.enteringChildren=void 0},[]),Hp(()=>{if(d.current=!0,!y)return;if(T.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),p.current&&y.animationState)y.animationState.animateChanges()}),Ee.useEffect(()=>{if(!y)return;if(!p.current&&y.animationState)y.animationState.animateChanges();if(p.current)queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),p.current=!1;y.enteringChildren=void 0}),y}function Bw(t,e,n,i){let{layoutId:a,layout:r,drag:o,dragConstraints:l,layoutScroll:s,layoutRoot:c,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e[\"data-framer-portal-id\"]?void 0:PS(t.parent)),t.projection.setOptions({layoutId:a,layout:r,alwaysMeasureLayout:Boolean(o)||l&&$S(l),visualElement:t,animationType:typeof r===\"string\"?r:\"both\",initialPromotionConfig:i,crossfade:f,layoutScroll:s,layoutRoot:c,layoutAnchor:u})}function PS(t){if(!t)return;return t.options.allowProjection!==!1?t.projection:PS(t.parent)}function yf(t,{forwardMotionProps:e=!1,type:n}={},i,a){i&&Cs(i);let r=n?n===\"svg\":Ao(t),o=r?KS:XS;function l(c,u){let f,m={...Co.useContext(So),...c,layoutId:Uw(c)},{isStatic:d,isValidProp:y}=m,x=BS(c),T=o(c,d);if(!d&&typeof window<\"u\"){Hw(m,i);let h=Lw(m);f=h.MeasureLayout,x.visualElement=JS(t,T,m,a,h.ProjectionNode,r)}return gf.jsxs(ea.Provider,{value:x,children:[f&&x.visualElement?gf.jsx(f,{visualElement:x.visualElement,...m}):null,YS(t,c,QS(T,x.visualElement,u),T,d,e,r,y)]})}l.displayName=`motion.${typeof t===\"string\"?t:`create(${t.displayName??t.name??\"\"})`}`;let s=Co.forwardRef(l);return s[ZS]=t,s}function Uw({layoutId:t}){let e=Co.useContext(Gx).id;return e&&t!==void 0?e+\"-\"+t:t}function Hw(t,e){let n=Co.useContext(To).strict}function Lw(t){let e=mf(),{drag:n,layout:i}=e;if(!n&&!i)return{};let a={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function IS(t,e){if(typeof Proxy>\"u\")return yf;let n=new Map,i=(r,o)=>yf(r,o,t,e);return new Proxy((r,o)=>i(r,o),{get:(r,o)=>{if(o===\"create\")return i;if(!n.has(o))n.set(o,yf(o,void 0,t,e));return n.get(o)}})}var Hh=IS();var WS=P(wt(),1);var tT=(t,e)=>e.isSVG??Ao(t)?new cf(e):new sf(e,{allowProjection:t!==WS.Fragment});class Lh extends Be{constructor(t){super(t);t.animationState||(t.animationState=Vh(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();if(mi(t))this.unmountControls=t.subscribe(this.node)}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};if(t!==e)this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var Gw=0;class Gh extends Be{constructor(){super(...arguments);this.id=Gw++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){let{initial:a,custom:r}=this.node.getProps();if(typeof a===\"string\"||typeof a===\"object\"&&a!==null&&!Array.isArray(a)){let o=Pe(this.node,a,r);if(o){let{transition:l,transitionEnd:s,...c}=o;for(let u in c)this.node.getValue(u)?.jump(c[u])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(\"exit\",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive(\"exit\",!t);if(e&&!t)i.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};if(e)e(this.id);if(t)this.unmount=t(this.id)}unmount(){}}var eT={animation:{Feature:Lh},exit:{Feature:Gh}};function vf(t){return{point:{x:t.pageX,y:t.pageY}}}function nT(t,e,n){let{props:i}=t;if(t.animationState&&i.whileHover)t.animationState.setActive(\"whileHover\",n===\"Start\");let a=\"onHover\"+n,r=i[a];if(r)gt.postRender(()=>r(e,vf(e)))}class jh extends Be{mount(){let{current:t}=this.node;if(!t)return;this.unmount=Eh(t,(e,n)=>(nT(this.node,n,\"Start\"),(i)=>nT(this.node,i,\"End\")))}unmount(){}}class qh extends Be{constructor(){super(...arguments);this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(\":focus-visible\")}catch(e){t=!0}if(!t||!this.node.animationState)return;this.node.animationState.setActive(\"whileFocus\",!0),this.isActive=!0}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive(\"whileFocus\",!1),this.isActive=!1}mount(){this.unmount=si(ff(this.node.current,\"focus\",()=>this.onFocus()),ff(this.node.current,\"blur\",()=>this.onBlur()))}unmount(){}}function iT(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;if(t.animationState&&i.whileTap)t.animationState.setActive(\"whileTap\",n===\"Start\");let a=\"onTap\"+(n===\"End\"?\"\":n),r=i[a];if(r)gt.postRender(()=>r(e,vf(e)))}class Yh extends Be{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=wh(t,(i,a)=>(iT(this.node,a,\"Start\"),(r,{success:o})=>iT(this.node,r,o?\"End\":\"Cancel\")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}var Kh=new WeakMap,Xh=new WeakMap,jw=(t)=>{let e=Kh.get(t.target);e&&e(t)},qw=(t)=>{t.forEach(jw)};function Yw({root:t,...e}){let n=t||document;if(!Xh.has(n))Xh.set(n,{});let i=Xh.get(n),a=JSON.stringify(e);if(!i[a])i[a]=new IntersectionObserver(qw,{root:t,...e});return i[a]}function aT(t,e,n){let i=Yw(e);return Kh.set(t,n),i.observe(t),()=>{Kh.delete(t),i.unobserve(t)}}var Xw={some:0,all:1};class Zh extends Be{constructor(){super(...arguments);this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i=\"some\",once:a}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:typeof i===\"number\"?i:Xw[i]},o=(l)=>{let{isIntersecting:s}=l;if(this.isInView===s)return;if(this.isInView=s,a&&!s&&this.hasEnteredView)return;else if(s)this.hasEnteredView=!0;if(this.node.animationState)this.node.animationState.setActive(\"whileInView\",s);let{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),f=s?c:u;f&&f(l)};this.stopObserver=aT(this.node.current,r,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>\"u\")return;let{props:t,prevProps:e}=this.node;if([\"amount\",\"margin\",\"root\"].some(Kw(t,e)))this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Kw({viewport:t={}},{viewport:e={}}={}){return(n)=>t[n]!==e[n]}var rT={inView:{Feature:Zh},tap:{Feature:Yh},focus:{Feature:qh},hover:{Feature:jh}};var Qh={renderer:tT,...eT,...rT};var oT=P(wt(),1);function kh(t,e,n){oT.useInsertionEffect(()=>t.on(e,n),[t,e,n])}var Oo=P(wt(),1);function Ia(t){let e=xc(()=>ye(t)),{isStatic:n}=Oo.useContext(So);if(n){let[,i]=Oo.useState(t);Oo.useEffect(()=>e.on(\"change\",i),[])}return e}function Ns(t){return typeof t===\"object\"&&!Array.isArray(t)}function xf(t,e,n,i){if(t==null)return[];if(typeof t===\"string\"&&Ns(e))return gs(t,n,i);else if(t instanceof NodeList)return Array.from(t);else if(Array.isArray(t))return t.filter((a)=>a!=null);else return[t]}function lT(t,e,n){return t*(e+1)+n*e}function Fh(t,e,n,i){if(typeof e===\"number\")return e;else if(e.startsWith(\"-\")||e.startsWith(\"+\"))return Math.max(0,t+parseFloat(e));else if(e===\"<\")return n;else if(e.startsWith(\"<\"))return Math.max(0,n+parseFloat(e.slice(1)));else return i.get(e)??t}function Zw(t,e,n){for(let i=0;i<t.length;i++){let a=t[i];if(a.at>e&&a.at<n)li(t,a),i--}}function sT(t,e,n,i,a,r){Zw(t,a,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:Re(a,r,i[o]),easing:$l(n,o)})}function uT(t,e,n=0){let i=e+1+e*n;for(let a=0;a<t.length;a++)t[a]=t[a]/i}function cT(t,e){if(t.at===e.at){if(t.value===null)return 1;if(e.value===null)return-1;return 0}else return t.at-e.at}var Qw=\"easeInOut\",$h=20;function dT(t,{defaultTransition:e={},...n}={},i,a){let r=e.duration||0.3,o=new Map,l=new Map,s={},c=new Map,u=0,f=0,m=0;for(let d=0;d<t.length;d++){let y=t[d];if(typeof y===\"string\"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,Fh(f,y.at,u,c));continue}let[x,T,h={}]=y;if(h.at!==void 0)f=Fh(f,h.at,u,c);let p=0,g=(v,E,M,b=0,S=0)=>{let A=kw(v),{delay:N=0,times:z=as(A),type:W=e.type||\"keyframes\",repeat:it,repeatType:me,repeatDelay:et=0,...st}=E,{ease:xt=e.ease||\"easeOut\",duration:H}=E,ut=typeof N===\"function\"?N(b,S):N,Ct=A.length,V=Qa(W)?W:a?.[W||\"keyframes\"];if(Ct<=2&&V){let pt=100;if(Ct===2&&Jw(A)){let Ft=A[1]-A[0];pt=Math.abs(Ft)}let J={...e,...st};if(H!==void 0)J.duration=kt(H);let bt=es(J,pt,V);xt=bt.ease,H=bt.duration}H??(H=r);let G=f+ut;if(z.length===1&&z[0]===0)z[1]=1;let At=z.length-A.length;if(At>0&&is(z,At),A.length===1&&A.unshift(null),it)cn(it<$h,`Sequence segments can't repeat ${it} times \u2014 ignoring repeat option. Use a value below ${$h} or apply repeat at the sequence level instead.`);if(it&&it<$h){let pt=H>0?et/H:0;H=lT(H,it,et);let J=[...A],bt=[...z];xt=Array.isArray(xt)?[...xt]:[xt];let Ft=[...xt],He=me===\"reverse\"||me===\"mirror\",Le=J,Ie=Ft;if(He){if(Le=[...J].reverse(),me===\"reverse\")Ie=[...Ft].reverse().map(($t)=>typeof $t===\"function\"?Ga($t):$t)}for(let $t=0;$t<it;$t++){let pi=He&&$t%2===0,te=pi?Le:J,nr=pi?Ie:Ft,aa=($t+1)*(1+pt);if(pt>0)A.push(A[A.length-1]),z.push(aa),xt.push(\"linear\");A.push(...te);for(let fn=0;fn<te.length;fn++)z.push(bt[fn]+aa),xt.push(fn===0?\"linear\":$l(nr,fn-1))}uT(z,it,pt)}let Ot=G+H;sT(M,A,xt,z,G,Ot),p=Math.max(ut+H,p),m=Math.max(Ot,m)};if(tt(x)){let v=fT(x,l);g(T,h,mT(\"default\",v))}else{let v=xf(x,T,i,s),E=v.length;for(let M=0;M<E;M++){T=T,h=h;let b=v[M],S=fT(b,l);for(let A in T)g(T[A],Fw(h,A),mT(A,S),M,E)}}u=f,f+=p}return l.forEach((d,y)=>{for(let x in d){let T=d[x];T.sort(cT);let h=[],p=[],g=[];for(let b=0;b<T.length;b++){let{at:S,value:A,easing:N}=T[b];h.push(A),p.push(Ha(0,m,S)),g.push(N||\"easeOut\")}if(p[0]!==0)p.unshift(0),h.unshift(h[0]),g.unshift(Qw);if(p[p.length-1]!==1)p.push(1),h.push(null);if(!o.has(y))o.set(y,{keyframes:{},transition:{}});let v=o.get(y);v.keyframes[x]=h;let{type:E,...M}=e;v.transition[x]={...M,duration:m,ease:g,times:p,...n}}}),o}function fT(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function mT(t,e){if(!e[t])e[t]=[];return e[t]}function kw(t){return Array.isArray(t)?t:[t]}function Fw(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var $w=(t)=>typeof t===\"number\",Jw=(t)=>t.every($w);function Pw(t,e){return tt(t)||typeof t===\"number\"||typeof t===\"string\"&&!Ns(e)}function bf(t,e,n,i){let a=[];if(Pw(t,e))a.push(Dh(t,Ns(e)?e.default||e:e,n?n.default||n:n));else{if(t==null)return a;let r=xf(t,e,i),o=r.length;Qt(Boolean(o),\"No valid elements provided.\",\"no-valid-elements\");for(let l=0;l<o;l++){let s=r[l],c={...n};if(\"delay\"in c&&typeof c.delay===\"function\")c.delay=c.delay(l,o);if(s instanceof Element)a.push(...Sh(s,e,c,xs.get(s)));else a.push(...ps(gh(s)??Th,s,e,c))}}return a}function pT(t,e,n){let i=[],a=t.map((o)=>{if(Array.isArray(o)&&typeof o[0]===\"function\"){let l=o[0],s=ye(0);if(s.on(\"change\",l),o.length===1)return[s,[0,1]];else if(o.length===2)return[s,[0,1],o[1]];else return[s,o[1],o[2]]}return o});return dT(a,e,n,{spring:ci}).forEach(({keyframes:o,transition:l},s)=>{i.push(...bf(s,o,l))}),i}function Iw(t){return Array.isArray(t)&&t.some(Array.isArray)}function hT(t={}){let{scope:e,reduceMotion:n,skipAnimations:i}=t;function a(r,o,l){let s=[],c,u={};if(n!==void 0)u.reduceMotion=n;if(i!==void 0)u.skipAnimations=i;if(Iw(r)){let{onComplete:m,...d}=o||{};if(typeof m===\"function\")c=m;s=pT(r,{...u,...d},e)}else{let{onComplete:m,...d}=l||{};if(typeof m===\"function\")c=m;s=bf(r,o,{...u,...d},e)}let f=new Xc(s);if(c)f.finished.then(c);if(e)e.animations.push(f),f.finished.then(()=>{li(e.animations,f)});return f}return a}var Ue=Object.assign(hT(),{addEffect:hh,removeEffect:$c});var Jh=Hh;var F=P(wt(),1),rg=P(kf(),1);var I=P(wt(),1);var na=(t)=>t<0?0:t>1?1:t;function Sf(t,e){if(t<=0)return 0;let n=2*Math.PI/(1.2*e),i=1-(1+n*t)*Math.exp(-n*t);return i>0.9995?1:i}function gT(t){return 9.23/(2*Math.PI/(1.2*t))}var Wa=(t)=>Sf(t,0.3),yT=(t)=>Sf(t,0.45),No=(t)=>{let e=na(t);return e*e*(3-2*e)},Ph=(t)=>1-Math.pow(1-na(t),3),Ih=(t)=>{let e=na(t);return e<0.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2};function tC(t,e,n,i){let a=(o)=>3*t*o*(1-o)**2+3*n*o*o*(1-o)+o**3,r=(o)=>3*e*o*(1-o)**2+3*i*o*o*(1-o)+o**3;return(o)=>{let l=na(o),s=0,c=1;for(let u=0;u<40;u++){let f=(s+c)/2;if(a(f)<l)s=f;else c=f}return r((s+c)/2)}}var sH=tC(0.65,0,0.25,1);var hH=gT(lt.springs.react),vT=(t)=>{let e=t.trim().split(/\\s+/).filter(Boolean).length;return Math.min(lt.read.max,Math.max(lt.read.min,lt.read.base+lt.read.perWord*e))};function Wh(t,e){let n=t.trim();if(n.length<=e)return n;let i=n.slice(0,e-1),a=i.lastIndexOf(\" \");return`${(a>e*0.6?i.slice(0,a):i).replace(/[\\s,.;:\u00B7-]+$/,\"\")}\u2026`}function xT(t,e=48){let n=[...new Set(t.flatMap((u)=>u.paths))],i=new Map,a=[],r=n.map((u)=>u.split(\" \u2192 \")).filter((u)=>u.length===2);if(n.length>1&&r.length===n.length&&new Set(r.map((u)=>u[1])).size===1)a.push(`${[...new Set(r.map((u)=>u[0]))].join(\", \")} \u2192 ${r[0][1]}`),n.length=0;for(let u of n){let f=u.split(\" \u2192 \");if(f.length===2){let m=i.get(f[0]);if(m)m.push(f[1]);else{let d=[f[1]];i.set(f[0],d),a.push(`\\x00${f[0]}`)}}else a.push(u)}for(let u=0;u<a.length;u++)if(a[u].startsWith(\"\\x00\")){let f=a[u].slice(1);a[u]=`${f} \u2192 ${i.get(f).join(\", \")}`}let o=new Set(a.flatMap((u)=>u.split(/ \u2192 | \u00B7 |, /))),l=[...new Set(t.flatMap((u)=>u.reveals))].filter((u)=>!o.has(u)),s=t.flatMap((u)=>u.counters),c=[a.length?a.join(\" + \"):\"\",l.length?l.join(\", \"):\"\",...s].filter(Boolean);return Wh(c.join(\" \u00B7 \")||\"Start\",e)}var dt=(t)=>Math.round(t*100)/100;function eg(t,e){let n=0;for(let i=1;i<t.length;i++){let a=t[i-1],r=t[i],o=Math.hypot(r.x-a.x,r.y-a.y);if(n+o>=e||i===t.length-1){let l=o?na((e-n)/o):0;return{x:a.x+(r.x-a.x)*l,y:a.y+(r.y-a.y)*l}}n+=o}return t[t.length-1]??{x:0,y:0}}function bT(t,e,n){if(n<=e)return\"\";let i=[eg(t,e)],a=0;for(let r=1;r<t.length;r++){let o=Math.hypot(t[r].x-t[r-1].x,t[r].y-t[r-1].y);if(a+=o,a>e&&a<n)i.push(t[r])}return i.push(eg(t,n)),i.map((r,o)=>`${o?\"L\":\"M\"}${dt(r.x)} ${dt(r.y)}`).join(\"\")}function eC(t=0){return{t,el:{},grow:{},draw:{},pulses:[],glows:[],flash:{},counters:{},captions:[],settled:!0}}function nC(t,e,n=\"\",i=\"\"){let a=t.toLocaleString(\"en-US\",{minimumFractionDigits:e,maximumFractionDigits:e});return`${n}${a}${i}`}function ng(t,e,n=!1){let{start:i,start:a}=t;for(let r of t.events){let o=n?e>=r.t?1:0:Wa(e-r.t);i+=(r.to-a)*o,a=r.to}return i}function Ef(t,e,n,i={}){if(!e)return eC(n);let a=i.reduced===!0||i.stepped===!0,r=n;if(i.stepped){let f=MT(e,n);if(f>=0&&f<e.steps.length)r=Math.max(n,Math.min(e.steps[f].t1,e.duration))}let o=(f)=>f>=0?1:0,l=(f)=>a?o(f):Wa(f),s={t:n,el:{},grow:{},draw:{},pulses:[],glows:[],flash:{},counters:{},captions:[],settled:n>=e.lastEvent};for(let[f,m]of Object.entries(e.appear)){let d=n-m,y=a?o(d):Wa(d-lt.reveal.opacityDelay),x=a?0:lt.reveal.rise*(1-Wa(d)),T=dt(y),h=dt(x);if(T<1||h>0)s.el[f]={o:T,dy:h}}let c=new Map(e.pulses.map((f)=>[f.id,f]));for(let[f,m]of Object.entries(e.draw)){let d;if(a)d=o(r-m.t1);else if(m.mode===\"flight\"&&m.pulse){let y=c.get(m.pulse),x=Ih((n-y.tf0)/(y.tf1-y.tf0)),T=n<y.tf0?0:x*y.length;d=na((T-(m.s0??0))/Math.max(0.000001,(m.s1??0)-(m.s0??0)))}else d=yT(n-m.t0);if(dt(d)<1)s.draw[f]=dt(d)}for(let f of t.activations){let m=/-(\\d+)-(\\d+)$/.exec(f.id);if(!m)continue;let d=Number(m[1]),y=Number(m[2]),x=f.y,T=!0;for(let h=d;h<=y;h++){let p=t.edges[h];if(!p)continue;let g=s.draw[p.id];if(g===void 0||g>=0.999)x=Math.max(x,Math.max(...p.points.map((v)=>v.y))+8);else if(T=!1,g>0)x=Math.max(x,p.points[0].y+8*g)}if(!T)s.grow[f.id]=dt(Math.max(0,Math.min(f.h,x-f.y)))}if(!a){for(let f of e.pulses){let m=f.tf1+Math.max(lt.pulse.ring,lt.pulse.cooling);if(n<f.t0||n>m)continue;let d=f.points[0],y=f.points[f.points.length-1],x={id:f.id,x:d.x,y:d.y,r:0,o:0,trail:[]};if(n<f.tf0){let T=Ph((n-f.t0)/lt.pulse.gather);x.r=dt(lt.pulse.dot*T),x.o=dt(Math.pow(T,1.5)),x.halo={r:dt(lt.pulse.halo-(lt.pulse.halo-lt.pulse.dot)*T),o:dt(0.5*Math.sin(Math.PI*T))}}else if(n<f.tf1){let T=Ih((n-f.tf0)/(f.tf1-f.tf0))*f.length,h=eg(f.points,T);x.x=dt(h.x),x.y=dt(h.y),x.r=lt.pulse.dot,x.o=1;let p=Math.min(72,T);[0.55,0.3,0.12].forEach((v,E)=>{let M=T-p*(E+1)/3,b=T-p*E/3,S=bT(f.points,M,b);if(S)x.trail.push({d:S,o:v,k:E,s0:dt(M),s1:dt(b)})})}else{x.x=y.x,x.y=y.y;let T=(n-f.tf1)/lt.pulse.ring;if(T<1){let p=No(T/0.24);x.ring={x:y.x,y:y.y,r:dt(2+2*p+9.1*(1-(1-T)**2)),w:dt(4-2.5*p),o:dt((1-0.734*p)*(1-T)**2.52)}}let h=Math.pow(1-na((n-f.tf1)/lt.pulse.cooling),1.7);if(h>0.01){let p=Math.min(72,f.length);[0.55,0.3,0.12].forEach((g,v)=>{let E=f.length-p*(v+1)/3,M=f.length-p*v/3,b=bT(f.points,E,M);if(b)x.trail.push({d:b,o:dt(g*h),k:v,s0:dt(E),s1:dt(M)})})}}if(x.o>0||x.ring||x.trail.length)s.pulses.push(x)}for(let f of e.glows){let m=n-f.t;if(m<0)continue;let d=Wa(m)*Math.max(0,1-m/lt.flash.decay);if(d>0.005)s.flash[f.node]=Math.max(s.flash[f.node]??0,dt(d));if(m>f.dur)continue;let y=t.nodes.find((g)=>g.id===f.node)??t.groups.find((g)=>g.id===f.node);if(!y)continue;let x=m/f.dur,T=Math.min(Math.max(y.w,y.h)*1.15,Math.min(y.w,y.h)*2.6),h=No(x/0.06)*(1-No((x-0.55)/0.45));if(h<0.005)continue;let p={id:`${f.node}@${f.t}`,node:f.node,cx:dt(f.cx),cy:dt(f.cy),r:dt(T*(0.12+0.6*Ph(x))),a:dt(lt.glow.alpha*h)};s.glows.push(p)}}for(let[f,m]of Object.entries(e.counters))s.counters[f]=nC(ng(m,n,a),m.decimals,m.prefix,m.suffix);let u=e.captions.findIndex((f)=>n>=f.t0&&n<f.t1);if(u>=0){let f=e.captions[u],m=f.text.split(/\\s+/),d=Math.min(2.8,Math.max(0.12,Math.min(f.t1-f.t0,1.2)-0.08)),y=Math.min(lt.springs.word,d/2),x=m.length>1?(d-1.5*y)/(m.length-1):0,T=f.handoff?1:a?1:1-No((n-(f.t1-0.3))/0.3),h=u>0?e.captions[u-1]:void 0;if(h&&h.handoff&&h.t1===f.t0){let p=1-(1-lt.dimSuperseded)*(a?1:Wa(n-f.t0)),g=a?0:1-No((n-f.t0-0.9)/0.4),v=dt(p*g);if(v>0.01)s.captions.push({i:u-1,text:h.text,o:v,words:h.text.split(/\\s+/).map(()=>1),current:!1})}s.captions.push({i:u,text:f.text,o:dt(T),words:m.map((p,g)=>dt(a?1:Sf(n-f.t0-g*x,y))),current:!0})}return s}var iC=12;function ST(t,e=iC){let n=[],i=[];if(t.steps.forEach((o,l)=>{i.push(l);let s=t.steps[l+1];if(!(s&&s.t0-o.t1<=0.05&&!s.stop&&!s.caption))n.push(i),i=[]}),i.length)n.push(i);let a=(o)=>o.some((l)=>t.steps[l].stop||t.steps[l].caption);while(n.length>e){let o=-1,l=1/0;for(let s=0;s+1<n.length;s++){if(a(n[s+1])&&a(n[s]))continue;let c=t.steps[n[s+1][0]].t0-t.steps[n[s][n[s].length-1]].t1;if(c<l)l=c,o=s}if(o<0)break;n.splice(o,2,[...n[o],...n[o+1]])}let r=n.map((o)=>{let l=o[o.length-1],s=t.steps[l],c=t.steps[l+1],u=s.t1+0.6,f=c?Math.max(s.t1,Math.min(u,c.t0-0.02)):Math.min(u,t.duration),m=o.map((x)=>t.steps[x]).find((x)=>x.stop),d=o.map((x)=>t.steps[x]).find((x)=>x.caption),y=m?.stop??(d?.caption?Wh(d.caption,40):xT(o.map((x)=>t.steps[x].parts??{paths:[],reveals:[],counters:[]})));return{id:s.id,label:y,t:Math.round(f*1000)/1000,steps:[o[0],l]}});return r.push({id:\"end\",label:\"Final frame\",t:t.duration,steps:[t.steps.length,t.steps.length]}),r}function TT(t,e,n){let i=e.captions.find((r)=>r.current);if(!i)return;let a=t.captions.find((r)=>r.text===i.text&&e.t>=r.t0&&e.t<r.t1);return a&&a.step>=n.steps[0]&&a.step<=n.steps[1]?i.text:void 0}var ET=(t)=>t>1000?660:t>640?440:340,aC=1.5;function Vo(t){let e=[];return t.steps.forEach((n,i)=>{let a=t.steps[i+1];if(a&&a.t0<=n.t0+0.000000001)return;e.push({step:i,t:rC(t,i),hold:n.caption?vT(n.caption):aC})}),e.push({step:t.steps.length,t:t.duration,hold:0}),e}function rC(t,e){let n=t.steps[e],i=t.steps[e+1],a=Math.min(n.t1,t.duration),r=i&&i.t0<=a?i.t0-0.0001:a;return Math.max(n.t0,Math.round(r*1e4)/1e4)}function MT(t,e){if(e>=t.duration-0.000000001)return t.steps.length;let n=-1;for(let i=0;i<t.steps.length;i++)if(t.steps[i].t0<=e+0.000000001)n=i;return n}function ig(t,e){let n=MT(t,e);if(n<0)return-1;return Vo(t).findIndex((i)=>i.step>=n)}function Do(t,e){let n=ig(t,e);if(n<0)return 0;return Vo(t)[n].t}var tg={back:2,ease:0.12,minSpeed:0.3};function Tf(t,e,n,i){return n>0?t.find((a)=>a>e+0.02)??i:[...t].reverse().find((a)=>a<e-0.02)??0}function AT(t,e,n,i,a){if(a&&a.dir===n)return Tf(t,a.target,n,i);return Tf(t,e,n,i)}function wT(t,e,n){if(t>0)return 1;let{back:i,ease:a}=tg,r=Math.min(1,e/a,n/(i*a));return i*Math.max(tg.minSpeed,r)}var CT=(t)=>Math.round(t*100)/100;var w=P(bn(),1),zo=(t,e)=>{let n=(t?.o??1)*(e??1);return n<1?{opacity:+n.toFixed(3)}:void 0},OT=(t,e)=>t&&t>0.005?{fill:`color-mix(in srgb, var(--si-flash) ${Math.round(t*100)}%, var(--si-${e}))`}:void 0,K=(t)=>CT(t);function oC({h:t}){let e=eo.arrowSize,n=Math.cos(t.angle),i=Math.sin(t.angle),a=(r,o)=>`${K(t.x-n*r-i*o)},${K(t.y-i*r+n*o)}`;if(t.form===\"open\")return w.jsx(\"polyline\",{className:\"si-arrow-open\",points:`${a(e+1,-e*0.62)} ${K(t.x)},${K(t.y)} ${a(e+1,e*0.62)}`});return w.jsx(\"polygon\",{className:\"si-arrow\",points:`${K(t.x)},${K(t.y)} ${a(e+1,-e*0.55)} ${a(e+1,e*0.55)}`})}function lC({n:t}){let{w:e,h:n}=t,i=eo.panelInset,a=eo.panelRadius;switch(t.shape){case\"dot\":return w.jsx(\"circle\",{className:\"si-dotfill\",cx:e/2,cy:n/2,r:e/2});case\"bullseye\":return w.jsxs(w.Fragment,{children:[w.jsx(\"circle\",{className:\"si-ring\",cx:e/2,cy:n/2,r:e/2-0.7}),w.jsx(\"circle\",{className:\"si-dotfill\",cx:e/2,cy:n/2,r:e/2-5})]});case\"bar\":return w.jsx(\"rect\",{className:\"si-dotfill\",x:0,y:0,width:e,height:n});case\"choice\":return w.jsx(\"polygon\",{className:\"si-face\",points:`${e/2},0 ${e},${n/2} ${e/2},${n} 0,${n/2}`});case\"pill\":return w.jsx(\"rect\",{className:\"si-soft\",x:0,y:0,width:e,height:n,rx:n/2});case\"diamond\":{let r=(o)=>`${e/2},${o} ${e-o*1.7},${n/2} ${e/2},${n-o} ${o*1.7},${n/2}`;return w.jsxs(w.Fragment,{children:[w.jsx(\"polygon\",{className:\"si-face\",points:r(0),strokeLinejoin:\"round\"}),w.jsx(\"polygon\",{className:\"si-inset\",points:r(i+1),strokeLinejoin:\"round\"})]})}case\"slant\":return w.jsxs(w.Fragment,{children:[w.jsx(\"polygon\",{className:\"si-face\",points:`10,0 ${e},0 ${e-10},${n} 0,${n}`}),w.jsx(\"polygon\",{className:\"si-inset\",points:`${10+i+1},${i} ${e-i-1},${i} ${e-10-i-1},${n-i} ${i+1},${n-i}`})]});case\"cylinder\":return w.jsxs(w.Fragment,{children:[w.jsx(\"path\",{className:\"si-face\",d:`M0 6A${e/2} 6 0 0 1 ${e} 6V${n-6}A${e/2} 6 0 0 1 0 ${n-6}Z`}),w.jsx(\"path\",{className:\"si-inset\",d:`M0 6A${e/2} 6 0 0 0 ${e} 6`}),w.jsx(\"path\",{className:\"si-inset\",d:`M${i} 11A${e/2-i} 6 0 0 0 ${e-i} 11`}),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:16,width:2,height:n-18-8})]});case\"note\":return w.jsxs(w.Fragment,{children:[w.jsx(\"path\",{className:\"si-note\",d:`M0 0H${e-10}L${e} 10V${n}H0Z`}),w.jsx(\"path\",{className:\"si-note-fold\",d:`M${e-10} 0V10H${e}`})]});case\"external\":return w.jsx(\"rect\",{className:\"si-face si-dash\",x:0,y:0,width:e,height:n,rx:a});case\"queue\":return w.jsxs(w.Fragment,{children:[w.jsx(\"rect\",{className:\"si-face\",x:0,y:0,width:e,height:n,rx:a}),w.jsx(\"rect\",{className:\"si-inset\",x:i,y:i,width:e-2*i,height:n-2*i}),[0,1,2].map((r)=>w.jsx(\"line\",{className:\"si-glyph\",x1:e-22+r*5,y1:n/2-7,x2:e-22+r*5,y2:n/2+7},r)),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:i+1,width:2,height:n-2*i-2})]});default:return w.jsxs(w.Fragment,{children:[w.jsx(\"rect\",{className:\"si-face\",x:0,y:0,width:e,height:n,rx:a}),w.jsx(\"rect\",{className:\"si-inset\",x:i,y:i,width:e-2*i,height:n-2*i}),w.jsx(\"rect\",{className:\"si-ink-bar\",x:i+1,y:i+1,width:2,height:n-2*i-2})]})}}function sC({n:t,copy:e,fr:n,smil:i}){let a=t.text.cx,r=t.shape===\"actor\"&&t.tag,o=t.tag.length*9.5*0.68,l=n?.el[t.id],s=n?.flash[t.id],c=n?.glows.filter((f)=>f.node===t.id)??[],u=t.counter?n?.counters[t.counter.id]??`${t.counter.prefix??\"\"}${t.counter.value}${t.counter.suffix??\"\"}`:void 0;return w.jsxs(\"g\",{className:`si-node si-a-${t.accent}`,\"data-si\":`node:${t.id}`,\"data-copy\":e||void 0,\"data-box\":`${t.x},${t.y},${t.w},${t.h}`,transform:`translate(${t.x} ${K(t.y+(l?.dy??0))})`,style:zo(l),children:[i?.(`node:${t.id}`),w.jsx(lC,{n:t}),i?.(`glow:${t.id}`),c.map((f,m)=>{let d=`si-glow-${e}-${t.id}-${m}`.replace(/[^\\w-]/g,\"_\");return w.jsxs(\"g\",{className:\"si-glow\",style:{mixBlendMode:\"var(--si-glowBlend)\"},children:[w.jsx(\"defs\",{children:w.jsxs(\"radialGradient\",{id:d,gradientUnits:\"userSpaceOnUse\",cx:K(f.cx-t.x),cy:K(f.cy-t.y),r:f.r,children:[w.jsx(\"stop\",{offset:\"0\",style:{stopColor:\"var(--si-glowCrest)\",stopOpacity:`calc(var(--si-glowGain) * ${f.a})`}}),w.jsx(\"stop\",{offset:\"0.45\",style:{stopColor:\"var(--si-glow)\",stopOpacity:`calc(var(--si-glowGain) * ${+(f.a*0.45).toFixed(3)})`}}),w.jsx(\"stop\",{offset:\"1\",style:{stopColor:\"var(--si-glow)\",stopOpacity:0}})]})}),w.jsx(\"rect\",{x:0,y:0,width:t.w,height:t.h,fill:`url(#${d})`}),w.jsx(\"rect\",{className:\"si-glow-rim\",x:0.75,y:0.75,width:t.w-1.5,height:t.h-1.5,fill:\"none\",stroke:`url(#${d})`,strokeWidth:1.5,style:{opacity:0.4}})]},d)}),r?w.jsxs(\"g\",{transform:`translate(${K(a-o/2-13)} ${K(t.text.tagY-8)})`,children:[w.jsx(\"circle\",{className:\"si-glyph\",cx:4.5,cy:2.5,r:2.3}),w.jsx(\"path\",{className:\"si-glyph\",d:\"M0.5 9.5C0.5 6.8 2.3 5.6 4.5 5.6S8.5 6.8 8.5 9.5\"})]}):null,t.tag?w.jsx(\"text\",{className:\"si-tag\",x:K(r?a+6:a),y:K(t.text.tagY),textAnchor:\"middle\",children:t.tag}):null,t.label.map((f,m)=>w.jsxs(\"text\",{className:t.shape===\"pill\"?\"si-label si-pill-label\":\"si-label\",x:K(a),y:K(t.text.labelY[m]),textAnchor:\"middle\",style:OT(s,\"ink\"),children:[f,i?.(`flash:${t.id}`)]},`l${m}`)),t.detail.map((f,m)=>w.jsx(\"text\",{className:\"si-detail\",x:K(a),y:K(t.text.detailY[m]),textAnchor:\"middle\",children:f},`d${m}`)),t.counter&&t.text.counterY!==void 0?w.jsxs(\"text\",{className:\"si-counter\",x:K(a),y:K(t.text.counterY),textAnchor:\"middle\",children:[t.counter.label?w.jsx(\"tspan\",{className:\"si-counter-label\",children:`${t.counter.label.toUpperCase()} `}):null,w.jsx(\"tspan\",{className:\"si-counter-value\",\"data-counter\":t.counter.id,style:OT(s,\"ink\"),children:u}),i?.(`ctext:${t.counter.id}`)]}):null,t.counter?i?.(`cdup:${t.counter.id}`):null]})}function uC({g:t,fr:e,smil:n}){let i=t.composite?t.label:t.label.toUpperCase(),a=e?.el[t.id];return w.jsxs(\"g\",{className:\"si-grp\",\"data-si\":`group:${t.id}`,style:zo(a),transform:a?.dy?`translate(0 ${K(a.dy)})`:void 0,children:[n?.(`group:${t.id}`),w.jsx(\"rect\",{className:t.composite?\"si-group-composite\":\"si-group\",x:t.x,y:t.y,width:t.w,height:t.h,rx:eo.groupRadius}),t.composite?w.jsx(\"line\",{className:\"si-group-rule\",x1:t.x,x2:t.x+t.w,y1:t.y+24,y2:t.y+24}):null,w.jsxs(\"text\",{className:t.composite?\"si-group-title\":\"si-group-label\",x:K(t.x+12),y:K(t.y+(t.composite?16:15)),children:[i,t.kind&&!t.composite?w.jsx(\"tspan\",{className:\"si-group-label\",dx:8,opacity:0.7,children:`\u00B7 ${t.kind.toUpperCase()}`}):null]})]})}function cC({e:t,fr:e,smil:n}){let i=`si-wire${t.style===\"dashed\"?\" si-dashed\":t.style===\"thick\"?\" si-thick\":\"\"}`,a=e?.draw[t.id],r=a!==void 0,o=(t.length??0)+24,l=r?a<=0?{opacity:0}:t.style===\"dashed\"?{opacity:+Math.min(1,a*1.4).toFixed(3)}:{strokeDasharray:`${K(o)} ${K(o)}`,strokeDashoffset:K(o*(1-a))}:void 0;return w.jsxs(\"g\",{className:\"si-edge\",\"data-si\":`edge:${t.id}`,children:[w.jsx(\"path\",{className:i,d:t.d,style:l,children:n?.(`wire:${t.id}`)}),t.heads.map((s,c)=>w.jsxs(\"g\",{style:r?{opacity:a>=0.98?1:0}:void 0,children:[n?.(`head:${t.id}`),w.jsx(oC,{h:s})]},c)),t.seq!==void 0?w.jsxs(\"g\",{style:r?{opacity:a>0?1:0}:void 0,children:[n?.(`seq:${t.id}`),w.jsx(\"circle\",{className:\"si-seq\",cx:t.points[0].x,cy:t.points[0].y,r:7}),w.jsx(\"text\",{className:\"si-seq-text\",x:t.points[0].x,y:t.points[0].y+3,textAnchor:\"middle\",children:t.seq})]}):null]})}function fC({e:t,fr:e,smil:n}){let i=t.label,a=t.seq!==void 0?i.text.replace(/^\\d+\\.\\s*/,\"\"):i.text,r=e?.draw[t.id],o=r===void 0?1:Math.max(0,Math.min(1,(r-0.35)/0.4));return w.jsxs(\"g\",{className:\"si-lbl\",\"data-si\":`label:${i.id}`,\"data-box\":`${i.x},${i.y},${i.w},${i.h}`,style:o<1?{opacity:+o.toFixed(3)}:void 0,children:[n?.(`elabel:${t.id}`),w.jsx(\"rect\",{className:`si-pill si-on-${i.surface??\"bg\"}`,x:i.x,y:i.y,width:i.w,height:i.h}),w.jsx(\"text\",{className:\"si-edge-label\",x:K(i.x+i.w/2),y:K(i.y+i.h/2+3.8),textAnchor:\"middle\",children:a})]})}function mC({fr:t,frame:e,smil:n}){return w.jsxs(\"g\",{className:\"si-frm\",\"data-si\":`frame:${t.id}`,style:zo(e?.el[t.id]),children:[n?.(`frame:${t.id}`),w.jsx(\"rect\",{className:\"si-frame\",x:t.x,y:t.y,width:t.w,height:t.h,rx:2}),t.sections.map((i,a)=>w.jsx(\"line\",{className:\"si-frame-rule\",x1:t.x,x2:t.x+t.w,y1:i.y,y2:i.y},a))]})}function dC({fr:t,frame:e,smil:n}){let a=t.kind.toUpperCase(),r=(o,l,s,c)=>{let u=o.length*11*0.6+8;return w.jsxs(\"g\",{children:[w.jsx(\"rect\",{className:\"si-bg\",x:K(l-4),y:K(s-11),width:K(u),height:15,rx:2}),w.jsx(\"text\",{className:\"si-frame-label\",x:K(l),y:K(s),children:o})]},c)};return w.jsxs(\"g\",{className:\"si-frm-labels\",\"data-si\":`frame-label:${t.id}`,style:zo(e?.el[t.id]),children:[n?.(`frame:${t.id}`),w.jsx(\"path\",{className:\"si-frame-tag\",d:`M${t.x} ${t.y}H${K(t.x+t.tagW)}V${t.y+18-5}L${K(t.x+t.tagW-5)} ${t.y+18}H${t.x}Z`}),w.jsx(\"text\",{className:\"si-frame-kind\",x:K(t.x+8),y:t.y+12.5,children:a}),t.label?r(`[${t.label}]`,t.x+t.tagW+8,t.y+13):null,t.sections.map((o,l)=>o.label?r(`[${o.label}]`,t.x+8,o.y+15,l):null)]})}function pC({fr:t}){if(!t.pulses.length)return null;return w.jsx(\"g\",{className:\"si-pulses\",children:t.pulses.map((e)=>w.jsxs(\"g\",{\"data-si\":`pulse:${e.id}`,children:[e.trail.map((n,i)=>w.jsx(\"path\",{className:\"si-trail\",d:n.d,style:{opacity:n.o}},i)),e.halo&&e.halo.o>0.005?w.jsx(\"circle\",{className:\"si-halo\",cx:e.x,cy:e.y,r:e.halo.r,style:{opacity:e.halo.o}}):null,e.o>0.005&&!e.ring?w.jsx(\"circle\",{className:\"si-pulse\",cx:e.x,cy:e.y,r:e.r,style:{opacity:e.o}}):null,e.ring?w.jsx(\"circle\",{className:\"si-ring-pulse\",cx:e.ring.x,cy:e.ring.y,r:e.ring.r,style:{opacity:e.ring.o,strokeWidth:e.ring.w}}):null]},e.id))})}function Vs({scene:t,style:e,copy:n=\"\",className:i,frame:a,smil:r}){let o=t.viewBox,l=a&&(Object.keys(a.el).length||Object.keys(a.draw).length||Object.keys(a.grow).length||a.pulses.length||a.glows.length||Object.keys(a.flash).length||Object.keys(a.counters).length)?a:void 0,s=(u)=>{let f=l?.draw[u.edge];if(f===void 0)return;let m=u.end===\"out\"?f>0?1:0:f>=0.99?1:0;return m<1?{opacity:m}:void 0},c=(u)=>l?.el[u];return w.jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",className:`storyink${i?` ${i}`:\"\"}`,viewBox:`${o.x} ${o.y} ${o.w} ${o.h}`,width:o.w,height:o.h,role:\"img\",\"aria-label\":t.title,\"data-storyink\":t.type,\"data-copy\":n||void 0,children:[w.jsx(\"title\",{children:t.title}),e?w.jsx(\"style\",{children:e}):null,w.jsx(\"rect\",{className:\"si-bg\",x:o.x,y:o.y,width:o.w,height:o.h}),w.jsxs(\"g\",{className:\"si-bands\",children:[t.boxes.map((u)=>w.jsxs(\"g\",{\"data-si\":`box:${u.id}`,children:[w.jsx(\"rect\",{className:\"si-group\",x:u.x,y:u.y,width:u.w,height:u.h}),u.label?w.jsx(\"text\",{className:\"si-group-label\",x:K(u.x+8),y:K(u.y+14),children:u.label.toUpperCase()}):null]},u.id)),t.bands.map((u)=>w.jsxs(\"g\",{\"data-si\":`band:${u.id}`,children:[w.jsx(\"rect\",{className:\"si-band\",x:u.x,y:u.y,width:u.w,height:u.h}),u.label?w.jsx(\"text\",{className:\"si-group-label\",x:K(u.x+8),y:K(u.y+13),children:u.label.toUpperCase()}):null]},u.id))]}),w.jsx(\"g\",{className:\"si-groups\",children:t.groups.map((u)=>w.jsx(uC,{g:u,fr:l,smil:r},u.id))}),w.jsx(\"g\",{className:\"si-frames\",children:t.frames.map((u)=>w.jsx(mC,{fr:u,frame:a,smil:r},u.id))}),w.jsx(\"g\",{className:\"si-lifelines\",children:t.lifelines.map((u)=>w.jsx(\"line\",{className:\"si-life\",\"data-si\":`lifeline:${u.id}`,x1:u.x,x2:u.x,y1:u.y1,y2:u.y2,style:zo(c(u.participant)),children:r?.(`life:${u.participant}`)},u.id))}),w.jsx(\"g\",{className:\"si-activations\",children:t.activations.map((u)=>w.jsx(\"rect\",{className:\"si-act\",\"data-si\":`activation:${u.id}`,x:u.x,y:u.y,width:u.w,height:a?.grow[u.id]??u.h,rx:1,style:zo(c(u.id)),children:r?.(`act:${u.id}`)},u.id))}),w.jsx(\"g\",{className:\"si-frame-labels\",children:t.frames.map((u)=>w.jsx(dC,{fr:u,frame:a,smil:r},u.id))}),w.jsx(\"g\",{className:\"si-edges\",children:t.edges.map((u)=>w.jsx(cC,{e:u,fr:l,smil:r},u.id))}),w.jsx(\"g\",{className:\"si-nodes\",children:t.nodes.map((u)=>w.jsx(sC,{n:u,copy:n,fr:l,smil:r},u.id))}),w.jsx(\"g\",{className:\"si-ports\",children:t.ports.filter((u)=>!u.covered).map((u)=>w.jsx(\"circle\",{className:\"si-port\",\"data-si\":`port:${u.id}`,cx:u.x,cy:u.y,r:eo.portRadius,style:s(u),children:r?.(`port:${u.id}`)},u.id))}),w.jsx(\"g\",{className:\"si-labels\",children:t.edges.filter((u)=>u.label).map((u)=>w.jsx(fC,{e:u,fr:l,smil:r},u.id))}),l?w.jsx(pC,{fr:l}):null,r?.(\"overlay\")]})}var L=P(bn(),1),hC=[0.65,0,0.25,1];function VT(t,e,n){let i=e?.duration??0,a=Ia(i),[r,o]=I.useState(i),[l,s]=I.useState(\"ended\"),[c,u]=I.useState(!1),[f,m]=I.useState(0),d=I.useRef(void 0),y=I.useRef(!1),x=I.useRef(!1),T=I.useRef(\"ended\");T.current=l;let h=(V)=>{let G=typeof V===\"function\"?V(T.current):V;T.current=G,s(G)};kh(a,\"change\",(V)=>o(V));let p=I.useRef(null),g=()=>{let V=p.current;p.current=null,V?.done.forEach((G)=>G())},v=()=>{d.current?.stop(),d.current=void 0,g()},E=I.useCallback(()=>{v(),m(0),h((V)=>V===\"gate\"?V:\"paused\")},[]),M=I.useCallback((V)=>{v(),m(0);let G=Math.max(0,Math.min(i,V));a.set(n.reduced&&e?Do(e,G):G),h(V>=i?\"ended\":\"paused\"),u(!1)},[a,i,n.reduced,e]),b=I.useCallback(()=>{if(!e)return;if(n.reduced){v(),m(0),u(!1);let J=Vo(e),bt=a.get(),Ft=bt>=i-0.001?0:Math.max(0,ig(e,bt)),He,Le=!1;x.current=!0;let Ie=()=>{if(Le)return;let $t=J[Ft];if(a.set($t.t),Ft>=J.length-1){if(d.current=void 0,e.loop){Ft=0,He=setTimeout(Ie,lt.beats.read*1000);return}h(\"ended\");return}He=setTimeout(()=>{Ft++,Ie()},$t.hold*1000)};h(\"playing\"),d.current={stop:()=>{Le=!0,clearTimeout(He)}},Ie();return}v(),u(!1);let V=a.get()>=i-0.001?0:a.get();a.set(V),h(\"playing\"),x.current=!0;let G=0,At=performance.now(),Ot=!1,pt=(J)=>{if(Ot)return;let bt=Math.min(i,a.get()+(J-At)/1000);if(At=J,a.set(bt),bt>=i){if(d.current=void 0,e.loop)N.current();else h(\"ended\");return}G=requestAnimationFrame(pt)};G=requestAnimationFrame((J)=>{At=J,pt(J)}),d.current={stop:()=>{Ot=!0,cancelAnimationFrame(G)}}},[e,a,i,n.reduced,M]),S=I.useCallback(()=>{if(!e)return;v(),u(!1);let V=a.get();if(n.reduced)return a.set(0),b();if(V<=0.01)return b();let{hold:G,duration:At,empty:Ot}=lt.rewind,pt=G+At+Ot;h(\"rewinding\"),d.current=Ue(a,[V,V,0,0],{duration:pt,times:[0,G/pt,(G+At)/pt,1],ease:[\"linear\",hC,\"linear\"],onUpdate:()=>{let J=Math.abs(a.getVelocity()),bt=V>0?J*At/V:0;m(+(lt.rewind.blur*Math.min(1,bt/2.75)).toFixed(2))},onComplete:()=>{m(0),d.current=void 0,A.current()}})},[e,a,n.reduced,b]),A=I.useRef(b);A.current=b;let N=I.useRef(S);N.current=S;let z=I.useCallback(()=>{if(T.current===\"playing\"||T.current===\"rewinding\")E();else if(T.current===\"ended\")S();else b()},[E,b,S]),W=I.useMemo(()=>e?n.reduced?Vo(e).map((V)=>V.t):[...e.steps.map((V)=>V.t0),i]:[],[e,i,n.reduced]),it=I.useMemo(()=>{if(!e)return[];if(!n.reduced)return[0,...e.steps.filter((G)=>G.stop).map((G)=>G.t0),i];let V=Vo(e);return[V[0].t,...e.steps.flatMap((G,At)=>G.stop?[V[At].t]:[]),i]},[e,i,n.reduced]),me=I.useCallback((V,G=!1)=>{let At=G&&it.length>2?it:W,Ot=a.get();if(n.reduced||!e)return M(Tf(At,Ot,V,i)),Promise.resolve();let pt=p.current,J=AT(At,Ot,V,i,pt??void 0);if(pt&&pt.dir===V)return pt.target=J,new Promise((te)=>pt.done.push(te));if(v(),m(0),u(!1),Math.abs(J-Ot)<0.0001)return h(Ot>=i-0.001?\"ended\":\"paused\"),Promise.resolve();let bt={dir:V,target:J,done:[]};p.current=bt;let Ft=new Promise((te)=>bt.done.push(te));x.current=!0,h(\"playing\");let He=0,Le=0,Ie=0,$t=!1,pi=(te)=>{if($t||p.current!==bt)return;let nr=(te-Le)/1000;Le=te;let aa=a.get(),fn=wT(V,(te-Ie)/1000,Math.abs(bt.target-aa)),ra=aa+V*fn*nr;if(V>0?ra>=bt.target-0.000001:ra<=bt.target+0.000001){a.set(bt.target),d.current=void 0,h(bt.target>=i-0.001?\"ended\":\"paused\"),g();return}a.set(ra),He=requestAnimationFrame(pi)};return He=requestAnimationFrame((te)=>{Le=te,Ie=te,pi(te)}),d.current={stop:()=>{$t=!0,cancelAnimationFrame(He)}},Ft},[W,it,a,i,M,n.reduced,e]),et=I.useCallback(()=>p.current?{dir:p.current.dir,target:p.current.target}:null,[]),st=I.useCallback(()=>{if(T.current!==\"gate\")return;a.set(0),b()},[a,b]);I.useEffect(()=>{if(!e||n.still)return;if(n.t!==void 0){M(n.t===\"end\"?i:Number(n.t)||0);return}if(n.reduced){a.set(i),h(\"gate\");return}if(n.autoplay??e.autoplay){a.set(0),h(\"paused\");let V=n.stage.current;if(!V||typeof IntersectionObserver>\"u\")return b();let G=new IntersectionObserver((At)=>{if(At.some((Ot)=>Ot.isIntersecting)&&!x.current)G.disconnect(),A.current()});return G.observe(V),()=>G.disconnect()}a.set(0),h(\"gate\");return},[e,n.still,n.t,n.autoplay]);let xt=I.useRef(!0);I.useEffect(()=>{if(xt.current){xt.current=!1;return}if(!e||n.still)return;if(T.current===\"playing\"||T.current===\"rewinding\"){if(n.reduced)a.set(Do(e,a.get()));A.current()}else if(n.reduced&&T.current===\"paused\")a.set(Do(e,a.get()))},[n.reduced]),I.useEffect(()=>{if(!e||n.still)return;let V=n.stage.current,G=()=>{if(T.current===\"playing\")y.current=!p.current,v(),h(\"paused\")},At=()=>{if(y.current)y.current=!1,A.current()},Ot=()=>document.hidden?G():At();document.addEventListener(\"visibilitychange\",Ot);let pt;if(V&&typeof IntersectionObserver<\"u\")pt=new IntersectionObserver((bt)=>bt.some((Ft)=>Ft.isIntersecting)?At():G()),pt.observe(V);let J=()=>M(i);return addEventListener(\"beforeprint\",J),()=>{document.removeEventListener(\"visibilitychange\",Ot),pt?.disconnect(),removeEventListener(\"beforeprint\",J)}},[e,n.still,n.stage,M,i]),I.useEffect(()=>{if(l!==\"ended\"||!x.current)return;let V=setTimeout(()=>u(!0),lt.beats.read*1000);return()=>clearTimeout(V)},[l]);let H=I.useMemo(()=>Ef(t,e,r,{reduced:n.reduced,stepped:n.reduced}),[t,e,r,n.reduced]),ut=I.useCallback((V)=>Ef(t,e,V,{reduced:n.reduced,stepped:n.reduced}),[t,e,n.reduced]);if(!e)return;let Ct=l===\"gate\"?n.reduced?1:lt.gateDim:l===\"ended\"&&c?lt.endedDim:1;return{t:r,frame:H,mode:l,dim:Ct,blur:f,reduced:n.reduced,play:b,pause:E,toggle:z,seek:M,replay:S,step:me,moving:et,now:()=>a.get(),modeNow:()=>T.current,ungate:st,frameAt:ut}}var NT=(t)=>`${Math.floor(t/60)}:${String(Math.floor(t%60)).padStart(2,\"0\")}.${Math.floor(t%1*10)}`;function gC(){return L.jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"3 2 19 20\",\"aria-hidden\":\"true\",children:L.jsx(\"path\",{d:\"M6 4 20 12 6 20Z\",fill:\"currentColor\",stroke:\"currentColor\",strokeWidth:\"3\",strokeLinejoin:\"round\"})})}function yC(){return L.jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[L.jsx(\"rect\",{x:\"3.5\",y:\"2.5\",width:\"3\",height:\"11\",fill:\"currentColor\"}),L.jsx(\"rect\",{x:\"9.5\",y:\"2.5\",width:\"3\",height:\"11\",fill:\"currentColor\"})]})}function vC(){return L.jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[L.jsx(\"path\",{d:\"M3.5 5.5A5.2 5.2 0 1 1 2.8 9\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\"}),L.jsx(\"path\",{d:\"M3 2.2v3.6h3.6\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})}function DT({onPlay:t,still:e=!1}){return L.jsxs(\"button\",{type:\"button\",className:`si-gate${e?\" si-gate-still\":\"\"}`,\"aria-label\":\"Play animation\",onClick:(n)=>{n.stopPropagation(),t()},children:[L.jsx(\"span\",{className:\"si-gate-disc\"}),e?null:L.jsxs(L.Fragment,{children:[L.jsx(\"span\",{className:\"si-gate-ring\"}),L.jsx(\"span\",{className:\"si-gate-ring si-gate-ring-2\"})]}),L.jsx(\"span\",{className:\"si-gate-play\",children:L.jsx(\"svg\",{viewBox:\"3 2 19 20\",\"aria-hidden\":\"true\",children:L.jsx(\"path\",{d:\"M6 4 20 12 6 20Z\",fill:\"currentColor\",stroke:\"currentColor\",strokeWidth:\"3\",strokeLinejoin:\"round\"})})})]})}function zT({c:t,tl:e}){let n=I.useRef(null),i=(o)=>{let l=n.current;if(!l)return;let s=l.getBoundingClientRect();t.seek((o-s.left)/s.width*e.duration)},a=t.mode===\"playing\"||t.mode===\"rewinding\",r=(o)=>`${(o/e.duration*100).toFixed(3)}%`;return L.jsxs(\"div\",{className:`si-transport${t.mode===\"ended\"?\" si-ended\":\"\"}`,onPointerDown:(o)=>o.stopPropagation(),onWheel:(o)=>o.stopPropagation(),children:[t.mode!==\"ended\"?L.jsx(\"button\",{type:\"button\",className:\"si-tbtn\",\"aria-label\":a?\"Pause\":\"Play\",title:a?\"Pause (space)\":\"Play (space)\",onClick:t.toggle,children:a?L.jsx(yC,{}):L.jsx(gC,{})}):null,L.jsx(\"button\",{type:\"button\",className:\"si-tbtn si-replay\",\"aria-label\":\"Replay\",title:\"Replay (R)\",onClick:t.replay,children:L.jsx(vC,{})}),L.jsxs(\"div\",{className:\"si-scrub\",ref:n,role:\"slider\",\"aria-label\":\"Scene time\",\"aria-valuemin\":0,\"aria-valuemax\":+e.duration.toFixed(2),\"aria-valuenow\":+t.t.toFixed(2),tabIndex:0,onPointerDown:(o)=>{o.target.setPointerCapture?.(o.pointerId),i(o.clientX)},onPointerMove:(o)=>{if(o.buttons&1)i(o.clientX)},children:[L.jsx(\"div\",{className:\"si-scrub-track\"}),L.jsx(\"div\",{className:\"si-scrub-fill\",style:{width:r(t.t)}}),e.steps.map((o)=>L.jsx(\"span\",{className:`si-tick${o.stop?\" si-tick-stop\":\"\"}`,style:{left:r(o.t0)},title:o.label,children:o.stop?L.jsx(\"span\",{className:\"si-tick-label\",children:o.stop}):null},o.id)),L.jsx(\"div\",{className:\"si-scrub-head\",style:{left:r(t.t)}})]}),L.jsxs(\"span\",{className:\"si-time\",children:[NT(t.t),\" / \",NT(e.duration)]})]})}function RT({frame:t}){return L.jsx(\"div\",{className:\"si-captions\",\"aria-live\":\"polite\",children:(t?.captions??[]).map((e,n)=>L.jsx(\"p\",{className:\"si-caption\",style:e.o<1?{opacity:e.o}:void 0,children:e.text.split(/\\s+/).map((i,a)=>{let r=e.words[a]??1;return L.jsxs(\"span\",{className:\"si-word\",style:r<1?{opacity:r,transform:`scale(${(0.95+0.05*r).toFixed(3)})`}:void 0,children:[i,\" \"]},a)})},`${e.text}-${n}`))})}function _T({scene:t,tl:e,cols:n,range:i}){let a=ST(e),[r,o]=i??[0,a.length-1],l=a.slice(r,o+1);return L.jsx(\"div\",{className:`si-beats${n&&n>=4?\" si-beats-compact\":\"\"}`,style:{gridTemplateColumns:n?`repeat(${n}, minmax(0, 1fr))`:`repeat(auto-fill, minmax(${ET(t.viewBox.w)}px, 1fr))`},children:l.map((s,c)=>{let u=c+r,f=Ef(t,e,s.t),m=TT(e,f,s);return L.jsxs(\"figure\",{className:\"si-beat\",children:[L.jsxs(\"figcaption\",{className:\"si-beat-cap\",children:[L.jsx(\"span\",{className:\"si-beat-n\",children:s.id!==\"end\"?String(u+1).padStart(2,\"0\"):\"END\"}),\" \",s.label,L.jsxs(\"span\",{className:\"si-beat-t\",children:[s.t.toFixed(2),\"s\"]})]}),L.jsx(Vs,{scene:t,frame:f,copy:`beat${u}`}),L.jsx(\"p\",{className:\"si-beat-caption\",children:m??\" \"})]},s.id)})})}var Me={label:11,minLabel:10,readableLabel:12.5,maxK:2,fitPad:32,focusPad:24,deadZone:0.8,edge:24,spring:{type:\"spring\",bounce:0,visualDuration:0.75}};function Ro(t,e){let n=Me.fitPad,i=Math.floor(Math.max(0.1,Math.min((e.w-2*n)/t.w,(e.h-2*n)/t.h,1.25))*64)/64;return{k:i,x:Math.round((e.w-t.w*i)/2),y:Math.round(Math.max(n/2,(e.h-t.h*i)/2))}}function Mf(t,e){let n=Ro(t,e).k;if(n*Me.label>=Me.minLabel)return n;return Math.max(n,HT(Math.min(Me.maxK,Me.readableLabel/Me.label)))}var HT=(t)=>Math.max(0.015625,Math.floor(t*64+0.000000001)/64);var ag=(t)=>{if(!t.length)return;let e=Math.min(...t.map((r)=>r.x)),n=Math.min(...t.map((r)=>r.y)),i=Math.max(...t.map((r)=>r.x+r.w)),a=Math.max(...t.map((r)=>r.y+r.h));return{x:e,y:n,w:i-e,h:a-n}},BT=(t)=>t.length?ag(t.map((e)=>({x:e.x,y:e.y,w:0,h:0}))):void 0;function Ds(t,e){let n=0;for(let i=0;i<t.steps.length;i++)if(t.steps[i].t0<=e+0.000001)n=i;return n}function Af(t,e,n,i=Me.focusPad){let a=e.steps[n];if(!a)return;let r=e.steps[n+1],o=a.t0-0.000001,l=Math.max(a.t1,r?r.t0:a.t1)-0.000001,s=(d)=>d>=o&&d<l,c=(d)=>{let y=t.nodes.find((h)=>h.id===d)??t.groups.find((h)=>h.id===d)??t.frames.find((h)=>h.id===d)??t.activations.find((h)=>h.id===d);if(y)return{x:y.x,y:y.y,w:y.w,h:y.h};let x=t.edges.find((h)=>h.id===d);if(x)return ag([BT(x.points),...x.label?[x.label]:[]]);let T=t.lifelines.find((h)=>h.participant===d);return T?{x:T.x,y:T.y1,w:0,h:T.y2-T.y1}:void 0},u=[],f=(d)=>d&&u.push(d);for(let[d,y]of Object.entries(e.appear))if(s(y))f(c(d));for(let d of e.pulses)if(d.id.startsWith(`pulse-${n}-`))f(BT(d.points));for(let[d,y]of Object.entries(e.draw))if(y.mode===\"fade\"&&s(y.t0))f(c(d));for(let d of e.glows)if(s(d.t))f(c(d.node));for(let d of Object.values(e.counters))if(d.events.some((y)=>s(y.t)))f(c(d.node));let m=ag(u);if(!m)return;return{x:m.x-i,y:m.y-i,w:m.w+2*i,h:m.h+2*i}}function xC(t,e,n){return{x:t.x+(n.x-e.x)*t.k,y:t.y+(n.y-e.y)*t.k,w:n.w*t.k,h:n.h*t.k}}function LT(t,e=Me.deadZone){let n=t.h-(t.bottom??0);return{x:t.w*(1-e)/2,y:n*(1-e)/2,w:t.w*e,h:n*e}}function UT(t,e,n,i,a=Me.deadZone){let r=xC(t,e,i),o=LT(n,a),l=0.5;return r.x>=o.x-0.5&&r.y>=o.y-0.5&&r.x+r.w<=o.x+o.w+0.5&&r.y+r.h<=o.y+o.h+0.5}function bC(t,e,n){let i=Me.edge,a=n.h-(n.bottom??0),r=(o,l,s)=>{let c=l*t.k;if(c+2*i<=s)return(s-c)/2;return Math.min(i,Math.max(s-c-i,o))};return{k:t.k,x:Math.round(r(t.x,e.w,n.w)),y:Math.round(r(t.y,e.h,a))}}function SC(t,e,n,i){let a=e.h-(e.bottom??0),r=n.x-t.x+n.w/2,o=n.y-t.y+n.h/2;return bC({k:i,x:e.w/2-r*i,y:a/2-o*i},t,e)}function wf(t,e,n,i,a=t.k,r=Me.deadZone){if(!i)return t;let o=LT(n,r),l=Math.max(0.1,Math.min(a,HT(Math.min(o.w/Math.max(1,i.w),o.h/Math.max(1,i.h)))));if(t.k>=l-0.000001&&UT(t,e,n,i,r))return t;let s=n.h-(n.bottom??0);if(Math.abs(t.k-l)<0.000001&&e.w*l<=n.w&&e.h*l<=s&&UT(t,e,n,i,1))return t;let c=SC(e,n,i,l);return c.k===t.k&&c.x===t.x&&c.y===t.y?t:c}var Cf=(t,e)=>e>=t.lastEvent-0.000001;function GT(t,e,n,i,a){let r=t.viewBox;if(Cf(e,n)||!e.steps.length)return Ro(r,i);let o=Ds(e,n),l=a??Mf(r,i),s=Ro(r,i);for(let c=0;c<=o;c++)s=wf(s,r,i,Af(t,e,c),l);return s}var U=P(bn(),1),TC={architecture:\"Architecture\",workflow:\"Workflow\",sequence:\"Sequence\",dataflow:\"Data flow\",lifecycle:\"Lifecycle\"};function jT(t){let e=new URLSearchParams(t.replace(/^#/,\"\")),n=e.get(\"theme\"),i=e.get(\"sheet\"),a=e.get(\"autoplay\"),r=e.get(\"motion\");return{...n===\"light\"||n===\"dark\"?{theme:n}:{},chrome:e.get(\"chrome\")!==\"0\",...e.get(\"t\")?{t:e.get(\"t\")}:{},...i===\"beats\"?{beats:!0}:i?{sheet:i.split(\",\").filter((o)=>o===\"light\"||o===\"dark\")}:{},...a===\"1\"||a===\"0\"?{autoplay:a===\"1\"}:{},...r===\"full\"||r===\"reduced\"?{motion:r}:{},...e.get(\"static\")===\"1\"?{still:!0}:{},...e.get(\"camera\")===\"follow\"||e.get(\"camera\")===\"fit\"?{camera:e.get(\"camera\")}:{},...Number(e.get(\"cols\"))>=1?{cols:Math.min(12,Math.floor(Number(e.get(\"cols\"))))}:{},.../^\\d+-\\d+$/.test(e.get(\"range\")??\"\")?{range:e.get(\"range\").split(\"-\").map(Number)}:{}}}function EC(t){if(t.hash)return t.hash;if(t.stored===\"full\"||t.stored===\"reduced\")return t.stored;let e=t.author??\"full\";if(e!==\"system\")return e;return t.system?\"reduced\":\"full\"}var qT=\"storyink-motion\",YT=\"storyink-follow\";function MC(t){if(t.hash)return t.hash===\"follow\";if(t.stored===\"on\"||t.stored===\"off\")return t.stored===\"on\";return(t.author??\"follow\")===\"follow\"}var AC=\"button, input, select, textarea, a, [role=slider], .si-tools, .si-transport, .si-gate, [data-no-pan]\";function di({label:t,title:e,onClick:n,children:i,pressed:a,still:r}){return U.jsx(Jh.button,{type:\"button\",className:\"si-btn\",\"aria-label\":t,title:e,onClick:n,...a!==void 0?{\"aria-pressed\":a}:{},...r?{}:{whileHover:xn.hover,whileTap:xn.press},transition:xn.spring,children:i??t})}function wC(){return U.jsxs(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:[U.jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"3\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.3\"}),U.jsx(\"path\",{d:\"M8 1v2M8 13v2M1 8h2M13 8h2M3 3l1.4 1.4M11.6 11.6 13 13M3 13l1.4-1.4M11.6 4.4 13 3\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\"})]})}function CC(){return U.jsx(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:U.jsx(\"path\",{d:\"M13 9.5A5.5 5.5 0 0 1 6.5 3a5.5 5.5 0 1 0 6.5 6.5Z\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinejoin:\"round\"})})}var XT=\"storyink-theme\";function KT(){return typeof matchMedia===\"function\"&&matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}function ZT(t,e){let n=document.documentElement;if(!e){n.dataset.theme=t;return}let i=getComputedStyle(n),a=ql[t],r=Object.keys(a),o={};for(let u of r)o[Qi(u)]=i.getPropertyValue(Qi(u)).trim();for(let u of r)n.style.setProperty(Qi(u),o[Qi(u)]);n.dataset.theme=t;let l={};for(let u of r)l[Qi(u)]=a[u];let s=Ue(n,l,xn.spring),c=()=>{for(let u of r)n.style.removeProperty(Qi(u))};Promise.resolve(s.finished??s).then(c,c)}function QT({scene:t,hooks:e}){let n=F.useRef(null),i=F.useRef(()=>{}),a=Ia(0),r=Ia(0),o=Ia(1),[l,s]=F.useState({chrome:!0}),[c,u]=F.useState(void 0),[f,m]=F.useState(!1),[d,y]=F.useState(!1),[x,T]=F.useState(null),[h,p]=F.useState(void 0),[g,v]=F.useState(!1),E=t.viewBox,M=t.timeline,b=EC({hash:l.motion,stored:x,author:M?.motion,system:d})===\"reduced\",S=VT(t,M,{...l.t!==void 0?{t:l.t}:{},...l.autoplay!==void 0?{autoplay:l.autoplay}:{},reduced:b,still:!f||!!l.still||!!l.beats||!!l.sheet?.length,stage:n}),[A,N]=F.useState(null),z=MC({hash:l.camera,stored:A,author:M?.camera}),W=F.useRef({k:1,x:0,y:0}),it=F.useRef(void 0),me=F.useRef(null),et=F.useRef(!1),st=F.useRef(!1),xt=F.useCallback(()=>{let O=n.current;if(!O)return;return{w:O.clientWidth,h:O.clientHeight,bottom:l.chrome?56:0}},[l.chrome]),H=F.useCallback((O,q)=>{if(W.current=O,q)Ue(o,O.k,Me.spring),Ue(a,O.x,Me.spring),Ue(r,O.y,Me.spring);else o.stop(),a.stop(),r.stop(),o.set(O.k),a.set(O.x),r.set(O.y)},[o,a,r]),ut=F.useCallback((O)=>{let q=n.current;if(!q)return;let Y=Ro(E,{w:q.clientWidth,h:q.clientHeight});if(et.current=!1,W.current=Y,O)Ue(o,Y.k,xn.spring),Ue(a,Y.x,xn.spring),Ue(r,Y.y,xn.spring);else o.set(Y.k),a.set(Y.x),r.set(Y.y)},[E,o,a,r]),Ct=F.useCallback((O,q,Y,mn=!1)=>{let Ae=n.current;if(!Ae)return;let oa=q??Ae.clientWidth/2,Bo=Y??Ae.clientHeight/2,R=mn?W.current:{k:o.get(),x:a.get(),y:r.get()},Rt=Math.max(0.1,Math.min(8,R.k*O)),la={k:Rt,x:oa-(oa-R.x)*Rt/R.k,y:Bo-(Bo-R.y)*Rt/R.k};if(it.current=Rt,W.current=la,mn)Ue(o,la.k,xn.spring),Ue(a,la.x,xn.spring),Ue(r,la.y,xn.spring);else o.set(la.k),a.set(la.x),r.set(la.y)},[o,a,r]);F.useEffect(()=>{let O=jT(location.hash);if(s(O),typeof matchMedia===\"function\")y(matchMedia(\"(prefers-reduced-motion: reduce)\").matches);try{T(localStorage.getItem(qT)),N(localStorage.getItem(YT))}catch{}m(!0);let q;try{let Ae=localStorage.getItem(XT);if(Ae===\"light\"||Ae===\"dark\")q=Ae}catch{}let Y=O.theme??q??document.documentElement.dataset.theme;if(u(Y??KT()),Y)ZT(Y,!1);let mn=()=>s(jT(location.hash));return addEventListener(\"hashchange\",mn),()=>removeEventListener(\"hashchange\",mn)},[]),F.useEffect(()=>{if(!f)return;if(!l.sheet?.length&&!l.beats)G();e?.onReady(!!l.sheet?.length||!!l.beats)},[l,ut,e,f]);let V=F.useRef(S);V.current=S,F.useEffect(()=>{let O=window;if(!O.__storyink)return;O.__storyink.duration=M?.duration??0,O.__storyink.steps=M?M.steps.map((q)=>({id:q.id,label:q.label,t0:q.t0,t1:q.t1,...q.stop?{stop:q.stop}:{}})):[],O.__storyink.setTime=(q)=>V.current?.seek(q===\"end\"?M?.duration??0:Number(q)),O.__storyink.play=()=>V.current?.play(),O.__storyink.pause=()=>V.current?.pause(),O.__storyink.replay=()=>V.current?.replay(),O.__storyink.step=(q,Y)=>(st.current=!0,V.current?.step(q<0?-1:1,!!Y)??Promise.resolve()),O.__storyink.stepAnimated=()=>V.current?.moving()??null,O.__storyink.state=()=>({t:V.current?.now()??0,mode:V.current?.modeNow()??\"static\"}),O.__storyink.camera=()=>te.current()},[M]);let G=()=>{let O=xt();if(!O)return;if(M&&l.camera===\"follow\"&&l.t!==void 0&&!st.current){let Y=l.t===\"end\"?M.duration:Number(l.t)||0,mn=b?Do(M,Y):Y;H(GT(t,M,mn,O),!1);let Ae=n.current?.querySelector(\".si-canvas\");if(Ae&&Ae.style.visibility!==\"visible\")requestAnimationFrame(()=>requestAnimationFrame(()=>Ae.style.visibility=\"visible\"));et.current=!Cf(M,mn);return}let q=V.current;if(M&&q&&z&&et.current){H(wf(W.current,E,O,Af(t,M,Ds(M,q.t)),it.current??Mf(E,O)),!1);return}ut(!1)},At=F.useRef(G);At.current=G;let Ot=M&&S?Ds(M,S.t):0,pt=M&&S?Cf(M,S.t):!1,J=S?.mode;if(J===\"playing\")st.current=!0;F.useEffect(()=>{if(!M||!S||!z||!st.current||l.beats||l.sheet?.length)return;if(J===\"gate\"||J===\"rewinding\")return;let O=xt();if(!O)return;let q=!b;if(pt){if(et.current)H(Ro(E,O),q),et.current=!1;return}if(me.current===Ot)return;me.current=null;let Y=wf(W.current,E,O,Af(t,M,Ot),it.current??Mf(E,O));if(Y!==W.current)H(Y,q),et.current=!0},[Ot,pt,J,z,b]),i.current=()=>{if(o.stop(),a.stop(),r.stop(),S&&M)me.current=Ds(M,S.t)};let bt=h??S?.frame;F.useEffect(()=>{if(S&&e?.onFrame)e.onFrame(S.frame,S.mode===\"playing\"&&!b)},[S?.frame,S?.mode,e,b]),F.useEffect(()=>{let O=()=>At.current();addEventListener(\"resize\",O);let q;if(typeof ResizeObserver<\"u\"&&n.current)q=new ResizeObserver(O),q.observe(n.current);return document.fonts?.ready.then(O),()=>{removeEventListener(\"resize\",O),q?.disconnect()}},[ut]),F.useEffect(()=>{let O=n.current;if(!O)return;let q=(R)=>{R.preventDefault();let Rt=O.getBoundingClientRect();o.stop(),a.stop(),r.stop(),Ct(Math.exp(-R.deltaY*(R.ctrlKey?0.01:0.0015)),R.clientX-Rt.left,R.clientY-Rt.top)},Y,mn=(R)=>{if(R.button!==0)return;if(R.target?.closest?.(AC))return;Y={id:R.pointerId,sx:R.clientX,sy:R.clientY,ox:a.get(),oy:r.get(),moved:!1}},Ae=(R)=>{if(!Y||Y.id!==R.pointerId)return;if(!Y.moved){if(Math.hypot(R.clientX-Y.sx,R.clientY-Y.sy)<3)return;Y.moved=!0;try{O.setPointerCapture(R.pointerId)}catch{}O.classList.add(\"si-dragging\"),i.current()}a.set(Y.ox+R.clientX-Y.sx),r.set(Y.oy+R.clientY-Y.sy),W.current={k:o.get(),x:a.get(),y:r.get()}},oa=(R)=>{if(!Y||Y.id!==R.pointerId)return;let Rt=Y.moved;if(Y=void 0,Rt)O.classList.remove(\"si-dragging\")},Bo=(R)=>{if(R.target instanceof HTMLInputElement||R.metaKey||R.ctrlKey||R.altKey)return;let Rt=V.current;if(Rt&&(R.key===\" \"||R.code===\"Space\"))if(R.preventDefault(),Rt.mode===\"gate\")Rt.ungate();else Rt.toggle();else if(Rt&&R.key===\"ArrowRight\")st.current=!0,Rt.step(1,R.shiftKey);else if(Rt&&R.key===\"ArrowLeft\")st.current=!0,Rt.step(-1,R.shiftKey);else if(Rt&&(R.key===\"f\"||R.key===\"F\"))Ie.current();else if(Rt&&(R.key===\"r\"||R.key===\"R\"))Rt.replay();else if(Rt&&(R.key===\"m\"||R.key===\"M\"))He.current();else if(R.key===\"0\")pi.current();else if(R.key===\"+\"||R.key===\"=\")Ct(1.25,void 0,void 0,!0);else if(R.key===\"-\"||R.key===\"_\")Ct(0.8,void 0,void 0,!0)};return O.addEventListener(\"wheel\",q,{passive:!1}),O.addEventListener(\"pointerdown\",mn),O.addEventListener(\"pointermove\",Ae),O.addEventListener(\"pointerup\",oa),O.addEventListener(\"pointercancel\",oa),addEventListener(\"keydown\",Bo),()=>{O.removeEventListener(\"wheel\",q),O.removeEventListener(\"pointerdown\",mn),O.removeEventListener(\"pointermove\",Ae),O.removeEventListener(\"pointerup\",oa),O.removeEventListener(\"pointercancel\",oa),removeEventListener(\"keydown\",Bo)}},[ut,Ct,a,r,o]);let Ft=()=>{let O=b?\"full\":\"reduced\";T(O);try{localStorage.setItem(qT,O)}catch{}if(l.motion){let q=new URLSearchParams(location.hash.replace(/^#/,\"\"));q.set(\"motion\",O),history.replaceState(null,\"\",`#${q.toString()}`),s((Y)=>({...Y,motion:O}))}},He=F.useRef(Ft);He.current=Ft;let Le=()=>{let O=z?\"off\":\"on\";N(O);try{localStorage.setItem(YT,O)}catch{}if(l.camera){let q=new URLSearchParams(location.hash.replace(/^#/,\"\"));q.set(\"camera\",O===\"on\"?\"follow\":\"fit\"),history.replaceState(null,\"\",`#${q.toString()}`),s((Y)=>({...Y,camera:O===\"on\"?\"follow\":\"fit\"}))}},Ie=F.useRef(Le);Ie.current=Le;let $t=()=>{ut(!0),it.current=W.current.k},pi=F.useRef($t);pi.current=$t;let te=F.useRef(()=>({}));te.current=()=>({mode:z?\"follow\":\"fit\",follow:z,k:o.get(),x:a.get(),y:r.get(),goal:W.current,step:Ot,engaged:et.current,suspended:me.current,userK:it.current??null,viewport:xt()??null});let nr=S?{...S,seek:(O)=>(st.current=!0,S.seek(O))}:void 0,aa=()=>{let O=(c??KT())===\"dark\"?\"light\":\"dark\";u(O);try{localStorage.setItem(XT,O)}catch{}ZT(O,!0)},fn=c??\"light\",ra=l.sheet?.length?l.sheet:void 0,yg=(O)=>{if(!S||g)return O();rg.flushSync(()=>p(S.frameAt(M.duration)));try{O()}finally{rg.flushSync(()=>p(void 0))}};return U.jsx(_h,{features:Qh,strict:!0,children:U.jsxs(\"div\",{className:`si-app${l.chrome?\"\":\" si-nochrome\"}${b?\" si-reduced\":\"\"}${l.beats&&M?\" si-sheet-mode\":\"\"}`,children:[U.jsxs(\"header\",{className:\"si-head\",children:[U.jsx(\"p\",{className:\"si-kind\",children:TC[t.type]}),U.jsx(\"h1\",{className:\"si-title\",children:t.title}),t.subtitle?U.jsx(\"p\",{className:\"si-subtitle\",children:t.subtitle}):null,M?U.jsx(RT,{frame:l.beats?void 0:bt}):null]}),l.beats&&M?U.jsx(_T,{scene:t,tl:M,...l.cols?{cols:l.cols}:{},...l.range?{range:l.range}:{}}):ra?U.jsx(\"div\",{className:\"si-sheet\",style:{gridTemplateColumns:`repeat(${ra.length}, 1fr)`},children:ra.map((O)=>U.jsxs(\"div\",{\"data-theme\":O,children:[U.jsx(\"p\",{className:\"si-sheet-cap\",children:O}),U.jsx(Vs,{scene:t,copy:O,frame:S?.frameAt(M.duration)})]},O))}):U.jsxs(\"div\",{className:`si-stage${S?.mode===\"gate\"?\" si-gated\":\"\"}`,ref:n,onClick:()=>S?.mode===\"gate\"&&S.ungate(),children:[U.jsx(Jh.div,{className:\"si-canvas\",style:{x:a,y:r,scale:o,originX:0,originY:0,...f&&l.camera===\"follow\"&&l.t!==void 0?{visibility:\"hidden\"}:{}},children:U.jsxs(\"div\",{className:\"si-figure\",style:S&&(S.dim<1||S.blur>0)?{opacity:S.dim,...S.blur>0?{filter:`blur(${S.blur}px)`}:{}}:void 0,children:[U.jsx(Vs,{scene:t,frame:bt}),U.jsx(\"div\",{className:\"si-counters\"})]})}),S?.mode===\"gate\"?U.jsx(DT,{onPlay:S.ungate,still:b}):null,nr&&M?U.jsx(zT,{c:nr,tl:M}):null,U.jsxs(\"div\",{className:\"si-tools\",onPointerDown:(O)=>O.stopPropagation(),children:[U.jsx(di,{label:\"\u2212\",title:\"Zoom out (-)\",onClick:()=>Ct(0.8,void 0,void 0,!0)}),U.jsx(di,{label:\"+\",title:\"Zoom in (+)\",onClick:()=>Ct(1.25,void 0,void 0,!0)}),U.jsx(di,{label:\"Fit\",title:\"Fit to view (0)\",onClick:$t}),U.jsx(\"span\",{className:\"si-sep\"}),U.jsx(di,{label:\"Toggle theme\",title:\"Toggle light/dark\",onClick:aa,children:fn===\"dark\"?U.jsx(wC,{}):U.jsx(CC,{})}),U.jsx(\"span\",{className:\"si-sep\"}),M?U.jsxs(U.Fragment,{children:[U.jsx(di,{label:b?\"Motion: reduced\":\"Motion: full\",title:b?\"Reduced motion: plays step by step. Click for full motion (M)\":\"Full motion. Click to play step by step (M)\",pressed:b,still:b,onClick:Ft}),U.jsx(di,{label:\"Follow\",title:z?\"Camera follows the story. Click to keep the view still (F)\":\"Camera stays still. Click to follow the story (F)\",pressed:z,onClick:Le}),U.jsx(\"span\",{className:\"si-sep\"})]}):null,M?U.jsx(di,{label:g?\"Frame: now\":\"Frame: end\",title:\"Export the final frame or the frame on screen\",onClick:()=>v((O)=>!O)}):null,U.jsx(di,{label:\"SVG\",title:\"Export SVG\",onClick:()=>yg(()=>e?.exportSvg(fn))}),U.jsx(di,{label:\"PNG\",title:\"Export PNG (2\u00D7)\",onClick:()=>yg(()=>e?.exportPng(fn))})]})]})]})})}function og(t,e,n=0){let i=Math.min(t.x+t.w,e.x+e.w)-Math.max(t.x,e.x)-n,a=Math.min(t.y+t.h,e.y+e.h)-Math.max(t.y,e.y)-n;return i>0&&a>0?i*a:0}var kT=(t)=>{if(!t)return;let[e,n,i,a]=t.split(\",\").map(Number);return{x:e,y:n,w:i,h:a}};function FT(t,e,n){let i=t.querySelector(n?\".si-sheet svg.storyink\":\".si-stage svg.storyink\")??t.querySelector(\"svg.storyink\"),a=[],r=0;if(!i)return{ok:!1,issues:[{kind:\"text-overflow\",ids:[],detail:\"no diagram found\"}],checked:{nodes:0,labels:0,texts:0}};let o=[...i.querySelectorAll(\"g.si-node\")],l=[];for(let u of o){let f=u.dataset.si.slice(5),m=kT(u.getAttribute(\"data-box\"));l.push({id:f,box:m});let d=e.nodes.find((y)=>y.id===f);for(let y of u.querySelectorAll(\"text\")){r++;let x=y.getBBox();if(!x.width)continue;let T=2,h=m.w-2;if(d?.shape===\"diamond\"){let p=x.y+x.height/2,g=1-Math.abs(p-m.h/2)/(m.h/2),v=m.w/2*g;T=m.w/2-v+4,h=m.w/2+v-4}if(x.x<T-1||x.x+x.width>h+1||x.y<-1||x.y+x.height>m.h+1)a.push({kind:\"text-overflow\",ids:[f],detail:`\"${y.textContent}\" (${x.width.toFixed(1)}px) exceeds its box`})}}let s=[...i.querySelectorAll(\"g.si-lbl\")],c=[];for(let u of s){let f=u.dataset.si.slice(6),m=kT(u.getAttribute(\"data-box\"));c.push({id:f,box:m});let d=u.querySelector(\"text\");if(d){r++;let y=d.getBBox();if(y.x<m.x-1||y.x+y.width>m.x+m.w+1)a.push({kind:\"label-overflow\",ids:[f],detail:`label \"${d.textContent}\" overflows its pill`})}}for(let u of c)for(let f of l)if(og(u.box,f.box,1)>0)a.push({kind:\"label-node\",ids:[u.id,f.id],detail:\"edge label overlaps a node\"});for(let u=0;u<c.length;u++)for(let f=u+1;f<c.length;f++)if(og(c[u].box,c[f].box,1)>0)a.push({kind:\"label-label\",ids:[c[u].id,c[f].id],detail:\"edge labels overlap\"});for(let u=0;u<l.length;u++)for(let f=u+1;f<l.length;f++)if(og(l[u].box,l[f].box)>0)a.push({kind:\"node-node\",ids:[l[u].id,l[f].id],detail:\"nodes overlap\"});return{ok:a.length===0,issues:a,checked:{nodes:l.length,labels:c.length,texts:r}}}var OC=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],zs=new Map,NC=/[\\u0590-\\u08ff\\u200e\\u200f\\u202a-\\u202e\\u2066-\\u2069\\ufb1d-\\ufeff]/u;function VC(t={}){let e=Intl.getCanonicalLocales(t.locales),n=Object.fromEntries(Object.entries(t.format??{}).sort(([r],[o])=>r.localeCompare(o))),i=JSON.stringify([e,n]),a=zs.get(i);if(!a){a=new Intl.NumberFormat(e,n);let r=zs.keys().next().value;if(zs.size>=64&&r!==void 0)zs.delete(r);zs.set(i,a)}return a}function DC(t,e={}){let n=VC(e),i=n.formatToParts(t),a=i.map((y)=>y.value).join(\"\"),r=n.resolvedOptions(),o=r.numberingSystem===\"latn\"&&r.notation===\"standard\"&&!NC.test(a)&&!i.some((y)=>y.type===\"nan\"||y.type===\"infinity\"),l=JSON.stringify(r);if(!o)return{text:a,tokens:[],rollable:o,signature:l,magnitude:\"\"};let s=i.filter((y)=>y.type===\"integer\").reduce((y,x)=>y+x.value.length,0),c=-1,u=new Map,f=[],m=\"\",d=\"\";for(let y of i)if(y.type===\"integer\"||y.type===\"fraction\"){if(y.type===\"integer\")m+=y.value;else d+=y.value;for(let x of y.value){let T=`digit:${y.type===\"integer\"?--s:c--}`;f.push({key:T,identity:T,text:x,wheel:OC,index:Number(x)})}}else if(y.type===\"group\"){let x=`group:${s}`;f.push({key:`${x}:${y.value}`,identity:x,text:y.value})}else{let x=u.get(y.type)??0;u.set(y.type,x+1);let T=y.type===\"plusSign\"||y.type===\"minusSign\"?\"sign\":y.type;f.push({key:`${y.type}:${x}:${y.value}`,identity:`${T}:${x}`,text:y.value})}return{text:a,tokens:f,rollable:o,signature:l,magnitude:`${m.replace(/^0+(?=\\d)/u,\"\")}.${d}`}}function zC(t,e){let[n=\"\",i=\"\"]=t.magnitude.split(\".\"),[a=\"\",r=\"\"]=e.magnitude.split(\".\");if(n.length!==a.length)return a.length>n.length?1:-1;if(n!==a)return a>n?1:-1;let o=Math.max(i.length,r.length),l=i.padEnd(o,\"0\"),s=r.padEnd(o,\"0\");return s===l?0:s>l?1:-1}function RC(t,e,n=0.14){return{target:0,duration:e,points:Array.from({length:49},(i,a)=>{if(a===48)return 0;let r=Math.max(0,Math.min(1,(a/48-n)/(1-n)));return t*(1+10*r)*Math.exp(-10*r)})}}function Of(t,e){if(e<=0||t.duration<=0)return t;let n=t.duration+e,i=Math.round((t.points.length-1)*n/t.duration)+1,a=t.points[0]??t.target;return{target:t.target,duration:n,points:Array.from({length:i},(r,o)=>{if(o===i-1)return t.target;let l=o/(i-1)*n-e;return l<=0?a:WT(t,l).position})}}function ia(t,e,n,i){if(i<=0)return{points:[e,e],duration:0,target:e};let a=i/1000,r=t-e,o=Math.max(Math.abs(r),1)*12/a,l=Math.max(-o,Math.min(o,n))*a;return{points:Array.from({length:49},(s,c)=>{if(c===48)return e;let u=c/48;return e+(r+(l+10*r)*u)*Math.exp(-10*u)}),duration:i,target:e}}function _C(t,e=0,n=24){if(t.duration<=0)return{points:[0,0],duration:0,target:0};let i=t.duration/(t.points.length-1)/1000;return{duration:t.duration,target:0,points:t.points.map((a,r,o)=>{if(r===0)return Math.max(0,Math.min(1,e));if(r===o.length-1)return 0;let l=Math.abs((o[r+1]-o[r-1])/(2*i)),s=n/6;return Math.max(0,Math.min(1,(l-s)/(n-s)))})}}function WT(t,e){if(e>=t.duration||t.duration===0)return{position:t.target,velocity:0};let n=Math.max(0,e)/t.duration*(t.points.length-1),i=Math.min(Math.floor(n),t.points.length-2),a=t.points[i]??t.target,r=t.points[i+1]??t.target;return{position:a+(r-a)*(n-i),velocity:(r-a)*(t.points.length-1)*1000/t.duration}}function $T(t,e,n,i=10){let a=Math.floor(t/i)*i+e;if(n>0&&a<t-0.001)a+=i;else if(n<0&&a>t+0.001)a-=i;else if(n===0)a+=Math.round((t-a)/i)*i;return a}var Vf=(t,e)=>t[(e%t.length+t.length)%t.length];function BC(t,e,n){let i=Math.floor(e),a=e-i,r=[Vf(t,i)];if(a>0.00001)r.push(Vf(t,i+1));if(r.at(-1)!==n)r.push(n);return{wheel:r,from:a,target:r.length-1}}function UC(t,e=\"outward\"){if(e!==\"outward\"){let a=t.map((o,l)=>o?-1:l).filter((o)=>o>=0);if(e===\"end\")a.reverse();let r=t.map((o)=>o?0:1);if(e!==\"none\")a.forEach((o,l)=>{r[o]=l+1});return r}let n=t.map((a,r)=>a?0:r+1);if(!t.includes(!0))return n;let i=-1/0;for(let a=0;a<t.length;a++)if(t[a])i=a;else n[a]=a-i;i=1/0;for(let a=t.length-1;a>=0;a--)if(t[a])i=a;else n[a]=Math.min(n[a],i-a);return n}function JT(t,e){let n=new Map,i=[],a=0;for(let r of t){let o=e.get(r);if(!o){i.push(r);continue}for(let l of i)n.set(l,o.x);i.length=0,a=o.x+o.width}for(let r of i)n.set(r,a);return n}var lg=new WeakMap;class pg{view;media;members=new Set;pending=new Set;sizes=new WeakMap;intersections=new WeakMap;resize;intersection;frame=0;static for(t){let e=lg.get(t);if(!e)e=new pg(t),lg.set(t,e);return e}constructor(t){if(this.view=t,this.media=t.matchMedia(\"(prefers-reduced-motion: reduce)\"),this.media.addEventListener(\"change\",this.refresh),t.document.addEventListener(\"visibilitychange\",this.refresh),t.document.fonts?.addEventListener(\"loadingdone\",this.refresh),t.document.fonts?.ready.then(this.refresh),t.ResizeObserver)this.resize=new t.ResizeObserver((e)=>{for(let n of e){let i=this.sizes.get(n.target);if(i?.sizeChanged(n.target,n.contentRect.width,n.contentRect.height))i.refresh()}});if(t.IntersectionObserver)this.intersection=new t.IntersectionObserver((e)=>{for(let n of e)this.intersections.get(n.target)?.visibility(n.isIntersecting)},{rootMargin:\"64px\"})}refresh=()=>{for(let t of this.members)t.refresh()};add(t,e){this.members.add(t),this.intersections.set(e,t),this.intersection?.observe(e)}watch(t,e){this.sizes.set(t,e),this.resize?.observe(t)}unwatch(t){this.resize?.unobserve(t),this.sizes.delete(t)}enqueue(t){if(this.pending.add(t),!this.frame)this.frame=this.view.requestAnimationFrame(()=>{this.frame=0;let e=[...this.pending];this.pending.clear();let n=e.map((a)=>a.stage());for(let a of n)a?.();let i=e.map((a)=>a.measure());for(let a of i)a?.()})}remove(t,e){if(this.pending.delete(t),this.members.delete(t),this.intersection?.unobserve(e),this.intersections.delete(e),this.members.size)return;this.view.cancelAnimationFrame(this.frame),this.resize?.disconnect(),this.intersection?.disconnect(),this.media.removeEventListener(\"change\",this.refresh),this.view.document.removeEventListener(\"visibilitychange\",this.refresh),this.view.document.fonts?.removeEventListener(\"loadingdone\",this.refresh),lg.delete(this.view)}}var PT=new WeakMap;function _o(t,e,n){let i=t.animate(e,n),a=t.ownerDocument.timeline?.currentTime;if(typeof a===\"number\"&&i.playState===\"running\")i.startTime=a;return i}function IT(t){let e=t.ownerDocument.defaultView;if(!e)return!1;let n=PT.get(e);if(n===void 0)n=e.CSS?.supports(\"animation-timing-function\",\"linear(0, 1)\")??!1,PT.set(e,n);return n}class tr{element;property;animation;motion;value=0;constructor(t,e){this.element=t,this.property=e}read(){let t=this.animation?.currentTime;return this.animation&&this.motion?WT(this.motion,typeof t===\"number\"?t:0):{position:this.value,velocity:0}}set(t,e){this.cancel(),this.value=t,this.element.style.setProperty(this.property,e(t))}play(t,e,n){if(this.cancel(),this.value=t.target,this.element.style.setProperty(this.property,e(t.target)),!t.duration||t.points.every((u)=>u===t.target)){n?.();return}let i=t.points[0]??t.target,a=t.target-i,r=this.property===\"opacity\"&&IT(this.element),o=this.property===\"transform\"&&Math.abs(a)>0.00001&&IT(this.element),l=r?[{opacity:0},{opacity:1}]:o?[{[this.property]:e(i)},{[this.property]:e(t.target)}]:t.points.map((u)=>({[this.property]:e(u)})),s=r?`linear(${t.points.map(e).join(\",\")})`:o?`linear(${t.points.map((u)=>Number(((u-i)/a).toFixed(6))).join(\",\")})`:\"linear\",c=_o(this.element,l,{duration:t.duration,easing:s});this.animation=c,this.motion=t,c.onfinish=()=>{if(this.animation!==c)return;this.animation=void 0,this.motion=void 0,c.onfinish=null,c.cancel(),n?.()}}cancel(){if(this.animation)this.animation.onfinish=null,this.animation.cancel(),this.animation=void 0;this.motion=void 0}}var sg=\"http://www.w3.org/2000/svg\",HC=0;class Nf{host;layers=new Map;filter;intensity=1;constructor(t){this.host=t}filterUrl(t){if(!this.filter){let n=this.host.ownerDocument,i=n.createElementNS(sg,\"svg\");i.classList.add(\"rn-blur-defs\"),i.setAttribute(\"aria-hidden\",\"true\"),i.setAttribute(\"focusable\",\"false\");let a=n.createElementNS(sg,\"filter\"),r;do r=`rn-vertical-blur-${++HC}`;while(n.getElementById(r));a.id=r,a.setAttribute(\"x\",\"-15%\"),a.setAttribute(\"width\",\"130%\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\");let o=n.createElementNS(sg,\"feGaussianBlur\");a.append(o),i.append(a),this.host.append(i),this.filter={svg:i,blur:o,id:r,height:0}}let e=t*0.035*this.intensity;if(this.filter.height!==e)this.filter.blur.setAttribute(\"stdDeviation\",`0 ${e}`),this.filter.height=e;return`url(\"#${this.filter.id}\")`}apply(t,e,n,i,a=\"roll\"){let r=_C(e,i,a===\"entry\"?6:24);if(r.points.every((u)=>u===0))return!1;let o=this.host.ownerDocument.createElement(\"span\");o.className=\"rn-sharp\",o.append(...t.childNodes);let l=o.cloneNode(!0);l.className=\"rn-smear\",l.style.filter=this.filterUrl(n),t.append(o,l);let s=new tr(o,\"opacity\"),c=new tr(l,\"opacity\");return this.layers.set(t,{sharp:o,sharpOpacity:s,smearOpacity:c}),s.play(r,(u)=>String(1-u)),c.play(r,String),!0}remove(t){let e=this.layers.get(t);if(!e)return 0;let n=e.smearOpacity.read().position;return e.sharpOpacity.cancel(),e.smearOpacity.cancel(),t.replaceChildren(...e.sharp.childNodes),this.layers.delete(t),n}destroy(){for(let t of this.layers.keys())this.remove(t);this.filter?.svg.remove(),this.filter=void 0}}function LC(t){return Math.max(45,Math.min(110,t/7))}function GC(t,e,n){let i=Math.abs(e-t);return{points:[t,e],target:e,duration:i*n}}function jC(t){let e=Array.from({length:t+1},(a,r)=>({\"--rn-flap-step\":String(r),offset:r/t,easing:\"steps(1, end)\"})),n=[],i=[];for(let a=0;a<t;a++){let r=a/t,o=(a+0.5)/t,l=(a+1)/t;n.push({transform:\"perspective(5em) rotateX(0deg)\",filter:\"brightness(1)\",offset:r,easing:\"cubic-bezier(.6, 0, 1, .5)\"},{transform:\"perspective(5em) rotateX(-90deg)\",filter:\"brightness(.45)\",offset:o},{transform:\"perspective(5em) rotateX(-90deg)\",filter:\"brightness(.45)\",offset:l}),i.push({transform:\"perspective(5em) rotateX(90deg)\",filter:\"brightness(.45)\",offset:r},{transform:\"perspective(5em) rotateX(90deg)\",filter:\"brightness(.45)\",offset:o,easing:\"linear(0, 0.58, 0.9, 1, 1.045 78%, 1)\"},{transform:\"perspective(5em) rotateX(0deg)\",filter:\"brightness(1)\",offset:l})}return{index:e,falls:n,lands:i}}function qC(t){for(let e of t.querySelectorAll(\".rn-flap-smear\")){for(let n of e.getAnimations())n.cancel();e.remove()}for(let e of t.querySelectorAll(\".rn-flap-sharp\")){for(let n of e.getAnimations())n.cancel();e.classList.remove(\"rn-flap-sharp\")}}function YC(t,e,n,i,a,r,o,l){let s=t.ownerDocument,c=Math.abs(i-n),u=i>=n?1:-1;if(!c){t.replaceChildren();return}let f=jC(c),m=Array.from({length:c+1},(E,M)=>Vf(e,n+M*u)),d=[...m.slice(1),m.at(-1)],y=m.some((E)=>/[\\r\\n\\f\\u2028\\u2029]/u.test(E)),x=s.createElement(\"span\");x.style.cssText=`display:block;position:relative;height:${a}px`,_o(x,f.index,{delay:o,duration:c*r,fill:\"both\"});let T=(E,M)=>{let b=s.createElement(\"span\");b.className=`rn-face rn-flap rn-flap-${E}`,b.style.height=`${a}px`,b.style.overflow=\"hidden\";let S=s.createElement(\"span\");S.style.cssText=`display:block;white-space:pre;line-height:${a}px`;let A=M?d:m;if(y)for(let N of A){let z=s.createElement(\"span\");z.style.cssText=`display:block;height:${a}px`,z.textContent=N,S.append(z)}else S.textContent=A.join(`\n`);return b.append(S),S.style.transform=`translateY(calc(var(--rn-flap-step) * ${-a}px))`,b},h=T(\"bottom\",!1),p=T(\"top\",!0),g=T(\"top\",!1),v=T(\"bottom\",!0);if(l){let E=(M,b)=>{let S=M.firstElementChild,A=S.cloneNode(!0);S.classList.add(\"rn-flap-sharp\");let N=s.createElement(\"span\");N.className=\"rn-flap-smear\",N.style.cssText=\"display:block;position:absolute;inset:0;overflow:hidden\",N.style.filter=l,N.append(A),M.append(N);let z=b.map((it)=>({offset:it.offset,easing:it.easing??\"linear\",opacity:it.filter===\"brightness(1)\"?0:1})),W={delay:o,duration:c*r,fill:\"both\"};_o(N,z,W),_o(S,z.map((it)=>({...it,opacity:1-it.opacity})),W)};E(g,f.falls),E(v,f.lands)}g.style.transform=\"perspective(5em) rotateX(-90deg)\",_o(g,f.falls,{delay:o,duration:c*r,fill:\"backwards\"}),v.style.transform=\"perspective(5em) rotateX(90deg)\",_o(v,f.lands,{delay:o,duration:c*r,fill:\"forwards\"}),t.style.height=`${a}px`,x.append(h,p,v,g),t.replaceChildren(x)}var XC=new WeakMap,dg=new WeakSet,ug=(t)=>`translateX(${t}px)`,cg=(t)=>`scale(${t})`,fg=(t)=>String(Math.max(0,Math.min(1,t))),mg=(t)=>(\"transition\"in t)&&t.transition===\"direct\";function KC(t){if(t.duration!==void 0&&(!Number.isFinite(t.duration)||t.duration<0||t.duration>1e4))throw RangeError(\"duration must be between 0 and 10000 milliseconds\");if(t.flipDuration!==void 0&&(!Number.isFinite(t.flipDuration)||t.flipDuration<1||t.flipDuration>1e4))throw RangeError(\"flipDuration must be between 1 and 10000 milliseconds\")}var ZC={validate(t){if(typeof t.value!==\"number\"&&typeof t.value!==\"bigint\")throw TypeError(\"value must be a number or bigint\");KC(t)},model:(t)=>DC(t.value,t),direction:zC};class tE{host;source;options;target;displayed;semantic;measurement;visual;measures=new Map;columns=new Map;sizes=new Map;scheduler;enhanced=!1;destroyed=!1;visible=!0;reset=!0;measurementPending=!1;hadClass;previousLeft;blur;blurIntensity=1;constructor(t,e,n){this.host=t,this.source=n,n.validate(e),this.options={...e},this.target=this.displayed=n.model(e);let i=t.ownerDocument,a=(o)=>{let l=i.createElement(\"span\");return l.className=o,l};this.semantic=a(\"rn-value\"),this.measurement=a(\"rn-measure\"),this.visual=a(\"rn-visual\"),this.measurement.setAttribute(\"aria-hidden\",\"true\"),this.visual.setAttribute(\"aria-hidden\",\"true\"),this.semantic.textContent=this.target.text,this.hadClass=t.classList.contains(\"rn-root\"),t.classList.add(\"rn-root\"),t.replaceChildren(this.semantic,this.measurement,this.visual);let r=i.defaultView;if(r&&typeof r.matchMedia===\"function\"&&typeof r.requestAnimationFrame===\"function\"&&typeof t.animate===\"function\")this.scheduler=pg.for(r),this.scheduler.add(this,t),this.scheduler.watch(this.measurement,this);this.prepare()}canAnimate(){return!!this.scheduler&&this.options.animated!==!1&&(this.options.duration??500)>0&&!this.scheduler.media.matches&&!this.host.ownerDocument.hidden&&(this.visible||this.options.pauseOffscreen===!1)&&this.target.rollable&&this.host.isConnected}update(t){if(this.destroyed)return;let e={...this.options,...t};this.source.validate(e);let n=this.source.model(e),i=n.text===this.target.text&&n.signature===this.target.signature;if(this.options.motionBlur&&!e.motionBlur)this.blur?.destroy(),this.blur=void 0,qC(this.visual);if(mg(this.options)!==mg(e))this.reset=!0;if(this.options=e,this.target=n,!this.canAnimate()){this.finish();return}if(i&&this.enhanced&&!this.reset)return;this.semantic.textContent=n.text,this.prepare()}prepare(){if(!this.canAnimate()){this.finish();return}this.measurementPending=!0,this.scheduler?.enqueue(this)}stage(){if(this.destroyed)return;if(!this.canAnimate())return()=>this.finish();return this.previousLeft=this.enhanced&&!this.reset?this.measurement.getBoundingClientRect().left:void 0,()=>this.stageMeasurement()}stageMeasurement(){let t=new Set(this.target.tokens.map((n)=>n.key));for(let[n,i]of this.measures){if(t.has(n))continue;this.scheduler?.unwatch(i),this.sizes.delete(i),i.remove(),this.measures.delete(n)}let e=null;for(let n of this.target.tokens){let i=this.measures.get(n.key);if(!i)i=this.host.ownerDocument.createElement(\"span\"),i.className=\"rn-token\",this.measures.set(n.key,i),this.scheduler?.watch(i,this);if(i.textContent!==n.text)i.textContent=n.text;let a=e?e.nextSibling:this.measurement.firstChild;if(i!==a)this.measurement.insertBefore(i,a);e=i}this.host.dataset.rnMeasuring=\"\"}measure(){if(this.destroyed)return;if(!this.canAnimate())return()=>this.finish();let t=this.measurement.getBoundingClientRect(),e=this.host.ownerDocument.defaultView;if(!e)return()=>this.finish();let n=e.getComputedStyle(this.measurement);if(n.direction===\"rtl\")return()=>this.finish();let i=parseFloat(n.width),a=parseFloat(n.height);if(!i||!a||!t.width||!t.height)return()=>this.finish();let r=t.width/i,o=t.height/a,l=parseFloat(n.getPropertyValue(\"--rn-blur\"));this.blurIntensity=Number.isFinite(l)?Math.max(0,l):1,this.sizes.set(this.measurement,{width:i,height:a});let s=new Map;for(let[u,f]of this.measures){let m=f.getBoundingClientRect(),d={width:m.width/r,height:m.height/o};this.sizes.set(f,d),s.set(u,{...d,x:(m.left-t.left)/r,y:(m.top-t.top)/o})}let c=this.previousLeft===void 0?0:(this.previousLeft-t.left)/r;return()=>this.commit(s,c)}makeColumn(t){let e=this.host.ownerDocument.createElement(\"span\");if(e.className=\"rn-slot\",e.dataset.rnKey=t.key,t.index!==void 0)e.dataset.rnWheel=\"\";if(this.options.mode===\"flap\")e.dataset.rnFlap=\"\";let n=this.host.ownerDocument.createElement(\"span\");return n.className=\"rn-reel\",e.append(n),this.visual.append(e),{token:t,element:e,reel:n,x:new tr(e,\"transform\"),opacity:new tr(e,\"opacity\"),roll:new tr(n,\"transform\"),exiting:!1,height:0,width:0}}face(t,e){let n=this.host.ownerDocument.createElement(\"span\");n.className=\"rn-face\",n.textContent=e,n.style.height=`${t.height}px`;let i=t.reel.children.length;n.style.position=\"absolute\",n.style.top=\"0\",n.style.left=\"0\",n.style.width=\"100%\",n.style.transform=`translateY(${i*t.height}px)`,t.reel.style.height=`${(i+1)*t.height}px`,t.reel.append(n)}rest(t){if(this.blur?.remove(t.reel),t.reel.replaceChildren(),t.reel.style.removeProperty(\"height\"),this.face(t,t.token.text),this.wrapInk(t),t.token.index===void 0)t.roll.set(1,cg);else t.roll.set(t.token.index,()=>\"translateY(0px)\")}wrapInk(t){if(this.options.mode===\"flap\")return;let e=this.host.ownerDocument.createElement(\"span\");e.className=\"rn-ink\",e.append(...t.reel.childNodes),t.reel.append(e)}finishEntry(t){if(!t.entry)return;if(t.entry.blurred)this.blur?.remove(t.reel);t.entry.track.cancel(),t.entry.element.replaceWith(t.reel),t.entry=void 0}enter(t,e,n,i){let a=this.host.ownerDocument.createElement(\"span\");a.className=\"rn-enter\",t.reel.replaceWith(a),a.append(t.reel);let r=new tr(a,\"transform\");t.entry={element:a,track:r,blurred:!1};let o=Of(RC(t.height*(i?.entryDistance??1),i?.entryDuration??e,i?.entryHold),n);if(this.options.motionBlur&&t.token.text.trim()){this.blur??=new Nf(this.host),this.blur.intensity=this.blurIntensity;let l={...o,points:o.points.map((s)=>s/t.height)};t.entry.blurred=this.blur.apply(t.reel,l,t.height,0,\"entry\")}r.play(o,(l)=>`translateY(${l}px)`,()=>this.finishEntry(t))}commit(t,e){if(this.destroyed)return;this.measurementPending=!1;let n=this.enhanced&&!this.reset,i=n?this.options.duration??500:0,a=XC.get(this.host),r=i?a?.widthDuration??i:0,o=this.options.mode===\"flap\",l=this.options.direction===\"up\"?1:this.options.direction===\"down\"?-1:this.source.direction(this.displayed,this.target);if(this.target.text!==this.displayed.text)this.host.dataset.rnTrend=l>0?\"up\":l<0?\"down\":\"none\";let s=new Map([...this.columns].map(([g,v])=>{let E=v.x.read();return[g,{...E,x:E.position,width:v.width}]})),c=JT(this.target.tokens.map((g)=>g.key),s),u=[...s.keys()].sort((g,v)=>s.get(g).x-s.get(v).x),f=JT(u,t),m=new Map(this.displayed.tokens.filter((g)=>g.index===void 0).map((g)=>[g.identity,g.key])),d=new Map(this.target.tokens.filter((g)=>g.index===void 0).map((g)=>[g.identity,g.key])),y=this.options.stagger===\"start\"||this.options.stagger===\"end\",x=this.target.tokens.map((g)=>{let v=this.columns.get(g.key);return!v||v.exiting||y&&g.index!==void 0&&v.token.text!==g.text}),T=UC(this.target.tokens.map((g,v)=>g.index!==void 0&&!x[v]),this.options.stagger),h=Math.max(0,...this.target.tokens.map((g,v)=>x[v]?T[v]-1:0)),p=Math.min(i*0.045,i*0.3/Math.max(1,h));for(let[g,v]of this.target.tokens.entries()){let E=t.get(v.key);if(!E)continue;let M=Math.max(0,T[g]-1)*p,b=m.get(v.identity),S=b!==void 0&&b!==v.key?s.get(b):void 0,A=this.columns.get(v.key),N=!A;if(!A){A=this.makeColumn(v),this.columns.set(v.key,A);let et=(S?.x??c.get(v.key)??E.x)+e;A.x.set(n?et+(E.x-et)*(S?0:a?.entryOrigin??0):E.x,ug),A.opacity.set(n?0:1,fg)}let z=A.token.text!==v.text,W=Math.abs(A.height-E.height)>0.1,it=A.exiting;A.exiting=!1,A.element.style.width=`${E.width}px`,A.element.style.height=`${E.height}px`,A.element.style.top=`${E.y}px`;let me=s.get(v.key);if(A.x.play(ia(me?me.position+e:A.x.read().position,E.x,me?.velocity??0,r),ug),N||it||!n){let et=A.opacity.read(),st=ia(et.position,1,et.velocity,v.index===void 0?Math.min(i,180):i?a?.fadeDuration??i:0),xt=!o&&v.identity.startsWith(\"group:\")&&!S?(a?.entryDuration??i)*(a?.entryHold??0.14):0;A.opacity.play(N?Of(st,M+xt):st,fg)}if(A.height=E.height,A.width=E.width,!n||W)this.finishEntry(A);if(N&&o&&v.wheel&&i)A.roll.set(Math.max(0,v.wheel.indexOf(\" \")),()=>\"translateY(0px)\");if(o&&!W&&(z||N)&&v.index!==void 0&&v.wheel&&i&&A.roll.read().position!==v.index){let et=A.roll.read(),st=Math.round(et.position),xt=$T(st,v.index,l,v.wheel.length),H=this.options.flipDuration??LC(i);this.blur?.remove(A.reel);let ut;if(this.options.motionBlur&&this.blurIntensity>0)this.blur??=new Nf(this.host),this.blur.intensity=this.blurIntensity,ut=this.blur.filterUrl(E.height);YC(A.reel,v.wheel,st,xt,E.height,H,M,ut),A.token=v;let Ct=A;A.roll.play(Of(GC(st,xt,H),M),()=>\"translateY(0px)\",()=>this.rest(Ct))}else if(!N&&!W&&z&&v.index!==void 0&&v.wheel&&A.token.index!==void 0&&i){let et=A.roll.read(),st=mg(this.options)?BC(A.token.wheel,et.position,v.text):void 0,xt=st?.from??et.position,H=st?.target??$T(et.position,v.index,l,v.wheel.length),ut=st?.wheel??v.wheel,Ct=st?Math.min(Math.max(0,et.velocity),(H-xt)*1e4/i):et.velocity,V=y?Of(ia(xt,H,Ct,i),M):ia(xt,H,Ct,i),G=Math.floor(Math.min(...V.points)),At=Math.ceil(Math.max(...V.points));if(A.entry)A.entry.blurred=!1;let Ot=this.blur?.remove(A.reel)??0;A.reel.replaceChildren();for(let J=G;J<=At;J++)this.face(A,Vf(ut,J));if(this.wrapInk(A),this.options.motionBlur)this.blur??=new Nf(this.host),this.blur.intensity=this.blurIntensity,this.blur.apply(A.reel,V,E.height,Ot);A.token=st?{...v,wheel:ut,index:H}:v;let pt=A;A.roll.play(V,(J)=>`translateY(${(G-J)*E.height}px)`,()=>this.rest(pt))}else if(N||W||z||!n)A.token=v,this.rest(A);if(N&&i&&v.index!==void 0&&!o)this.enter(A,i,M,a);if(S&&i&&(N||it)){let et=A.roll.read(),st=A;A.roll.play(ia(N?0.96:et.position,1,et.velocity,Math.min(i,180)),cg,()=>this.rest(st))}}for(let[g,v]of this.columns){if(t.has(g))continue;let E=s.get(g),M=d.get(v.token.identity),b=M?t.get(M):void 0;if(v.x.play(ia(E.position+e,b?.x??f.get(g)??E.position,E.velocity,r),ug),v.exiting)continue;if(v.exiting=!0,b&&i){let A=v.roll.read();v.roll.play(ia(A.position,1.04,A.velocity,Math.min(i,180)),cg)}let S=v.opacity.read();v.opacity.play(ia(S.position,0,S.velocity,v.token.index===void 0?Math.min(i,180):i*0.65),fg,()=>{if(!v.exiting)return;this.removeColumn(v),this.columns.delete(g)})}this.enhanced=!0,this.reset=!1,this.displayed=this.target,this.host.dataset.rnReady=\"\"}removeColumn(t){this.blur?.remove(t.reel),this.finishEntry(t),t.x.cancel(),t.roll.cancel(),t.opacity.cancel(),t.element.remove()}refresh(){if(this.destroyed)return;this.reset=!0,this.prepare()}sizeChanged(t,e,n){if(this.measurementPending||!this.host.hasAttribute(\"data-rn-measuring\"))return!1;let i=this.sizes.get(t);return!i||Math.abs(i.width-e)>0.2||Math.abs(i.height-n)>0.2}visibility(t){if(this.visible===t)return;if(this.visible=t,t||this.options.pauseOffscreen!==!1)this.refresh()}finish(){if(this.destroyed)return;this.measurementPending=!1;for(let t of this.columns.values())this.removeColumn(t);this.columns.clear(),this.blur?.destroy(),this.blur=void 0,this.semantic.textContent=this.target.text,delete this.host.dataset.rnReady,delete this.host.dataset.rnMeasuring,delete this.host.dataset.rnTrend,this.enhanced=!1,this.reset=!0,this.displayed=this.target}destroy(){if(this.destroyed)return;this.finish(),this.destroyed=!0;for(let t of this.measures.values())this.scheduler?.unwatch(t);if(this.scheduler?.unwatch(this.measurement),this.scheduler?.remove(this,this.host),this.host.replaceChildren(this.host.ownerDocument.createTextNode(this.target.text)),!this.hadClass)this.host.classList.remove(\"rn-root\");dg.delete(this.host)}}function hg(t,e){if(dg.has(t))throw Error(\"A rolling number is already mounted on this element\");let n=new tE(t,e,ZC);return dg.add(t),n}function eE(t){let e=t.timeline,n=e?Object.keys(e.counters):[],i=!1,a=!1,r=new Map,o=()=>{if(i||!e||!n.length)return;let l=document.querySelector(\".si-stage .si-figure\"),s=l?.querySelector(\".si-counters\"),c=l?.querySelector(\"svg.storyink\");if(!l||!s||!c)return;i=!0;let u=t.viewBox;for(let f of n){let m=c.querySelector(`.si-counter-value[data-counter=\"${CSS.escape(f)}\"]`);if(!m)continue;let d=m.getBBox(),y=e.counters[f],x=document.createElement(\"span\");x.className=\"si-counter-live\",x.dataset.node=y.node;let T=t.nodes.find((E)=>E.id===y.node);x.style.left=`${(T?.x??0)+d.x-u.x}px`,x.style.top=`${(T?.y??0)+d.y-u.y+1}px`,x.style.display=\"none\";let h=document.createElement(\"span\");h.textContent=y.prefix??\"\";let p=document.createElement(\"span\"),g=document.createElement(\"span\");g.textContent=y.suffix??\"\",x.append(h,p,g),s.append(x);let v=hg(p,{value:y.start,locales:\"en-US\",format:{minimumFractionDigits:y.decimals,maximumFractionDigits:y.decimals},duration:500,pauseOffscreen:!1});r.set(f,{ctl:v,el:x,target:y.start,node:y.node})}};return{update(l,s){if(!e||!n.length)return;o();let c=document.querySelector(\".si-stage .si-figure\");if(s!==a){a=s,c?.classList.toggle(\"si-live-counters\",a);for(let[u,f]of r)if(f.el.style.display=a?\"\":\"none\",a){let m=ng(e.counters[u],l.t);f.target=m,f.ctl.update({value:+m.toFixed(e.counters[u].decimals),animated:!1}),f.ctl.finish(),f.ctl.update({animated:!0})}}if(!a)return;for(let[u,f]of r){let m=l.el[f.node];f.el.style.opacity=m&&m.o<1?String(m.o):\"\",f.el.style.transform=m?.dy?`translateY(${m.dy}px)`:\"\";let d=e.counters[u],y=d.start;for(let x of d.events)if(l.t>=x.t)y=x.to;if(y!==f.target)f.target=y,f.ctl.update({value:y})}}}}var sE=P(bn(),1),oE=JSON.parse(document.getElementById(\"storyink-data\").textContent),er=oE.scene,lE,QC=new Promise((t)=>lE=t);window.__storyink={ready:!1,whenReady:QC,duration:0,setTime:()=>{},version:oE.version,get lastExport(){return gg}};function nE(t){let n=document.querySelector(\".si-stage svg.storyink, svg.storyink\").cloneNode(!0);n.querySelectorAll(\".si-counter-value\").forEach((o)=>o.removeAttribute(\"fill-opacity\"));let i=document.getElementById(\"storyink-font\")?.textContent??\"\",a=document.getElementById(\"storyink-diagram-css\")?.textContent??\"\",r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"style\");return r.textContent=`${i}\nsvg.storyink{${_x(t)}}\n${a}`,n.insertBefore(r,n.firstChild?.nextSibling??null),n.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),n.removeAttribute(\"data-copy\"),`<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n${new XMLSerializer().serializeToString(n)}`}function iE(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\")||\"diagram\"}function aE(t,e){let n=URL.createObjectURL(t),i=document.createElement(\"a\");i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1000)}var gg,kC=eE(er),FC={exportSvg(t){let e=nE(t);gg={kind:\"svg\",bytes:e.length,text:e},aE(new Blob([e],{type:\"image/svg+xml\"}),`${iE(er.title)}-${t}.svg`)},async exportPng(t){let e=nE(t);await document.fonts.ready;let n=URL.createObjectURL(new Blob([e],{type:\"image/svg+xml\"})),i=new Image;i.decoding=\"sync\",await new Promise((l,s)=>{i.onload=()=>l(),i.onerror=()=>s(Error(\"svg image failed to load\")),i.src=n});let a=2,r=document.createElement(\"canvas\");r.width=Math.ceil(er.viewBox.w*a),r.height=Math.ceil(er.viewBox.h*a);let o=r.getContext(\"2d\");o.fillStyle=ql[t].bg,o.fillRect(0,0,r.width,r.height),o.drawImage(i,0,0,r.width,r.height),URL.revokeObjectURL(n),r.toBlob((l)=>{if(!l)return;gg={kind:\"png\",bytes:l.size},aE(l,`${iE(er.title)}-${t}@2x.png`)},\"image/png\")},onFrame(t,e){kC.update(t,e)},onReady(t){document.fonts.ready.then(()=>{setTimeout(()=>{let e;try{e=FT(document,er,t)}catch(a){e={ok:!1,issues:[{kind:\"error\",ids:[],detail:String(a)}],checked:{}}}let n=document.getElementById(\"storyink-lint\");if(!n)n=document.createElement(\"script\"),n.setAttribute(\"type\",\"application/json\"),n.id=\"storyink-lint\",document.body.appendChild(n);n.textContent=JSON.stringify(e),window.__storyink.lint=e;let i=document.querySelector(\".si-app\");if(i)document.documentElement.dataset.contentHeight=String(Math.ceil(i.getBoundingClientRect().height));window.__storyink.ready=!0,document.documentElement.dataset.ready=\"1\",lE()},0)})}};document.documentElement.classList.remove(\"si-noscript\");rE.hydrateRoot(document.getElementById(\"storyink-root\"),sE.jsx(QT,{scene:er,hooks:FC}));})();\n";
|