afterimage-cli 0.2.2 → 0.2.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 +8 -0
- package/package.json +1 -1
- package/src/runtime/overlay.js +46 -17
- package/viewer-dist/assets/index-BIqvOv5V.css +1 -0
- package/viewer-dist/assets/index-otlBd-9Q.js +9 -0
- package/viewer-dist/index.html +2 -2
- package/viewer-dist/assets/index-DSNYkIru.css +0 -1
- package/viewer-dist/assets/index-IhpNLW4o.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=j(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(ne(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ie=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ae(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function N(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ae(N.bind(null,e))}var oe={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=N,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ae,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),m=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),te=Symbol.for(`react.strict_mode`),ne=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),ie=Symbol.for(`react.suspense`),ae=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),se=Symbol.for(`react.activity`),ce=Symbol.for(`react.legacy_hidden`),le=Symbol.for(`react.memo_cache_sentinel`),ue=Symbol.for(`react.view_transition`),de=Symbol.for(`react.recoverable`),fe=Symbol.iterator;function pe(e){return typeof e!=`object`||!e?null:(e=fe&&e[fe]||e[`@@iterator`],typeof e==`function`?e:null)}var me=Symbol.for(`react.client.reference`);function he(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case ne:return`Profiler`;case te:return`StrictMode`;case ie:return`Suspense`;case ae:return`SuspenseList`;case se:return`Activity`;case ue:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case N:return t=e.displayName||null,t===null?he(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ge=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},ve=[],ye=-1;function be(e){return{current:e}}function xe(e){0>ye||(e.current=ve[ye],ve[ye]=null,ye--)}function I(e,t){ye++,ve[ye]=e.current,e.current=t}var Se=be(null),Ce=be(null),we=be(null),Te=be(null);function Ee(e,t){switch(I(we,t),I(Ce,e),I(Se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}xe(Se),I(Se,e)}function De(){xe(Se),xe(Ce),xe(we)}function L(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,I(Te,e)),t=Se.current;var n=dp(t,e.type);t!==n&&(I(Ce,e),I(Se,n))}function Oe(e){Ce.current===e&&(xe(Se),xe(Ce)),Te.current===e&&(xe(Te),sh._currentValue=_e)}var ke,Ae;function je(e){if(ke===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||``,Ae=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+ke+e+Ae}var Me=!1;function Ne(e,t){if(!e||Me)return``;Me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?je(n):``}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return je(e.type);case 16:return je(`Lazy`);case 13:return e.child!==t&&t!==null?je(`Suspense Fallback`):je(`Suspense`);case 19:return je(`SuspenseList`);case 0:case 15:return Ne(e.type,!1);case 11:return Ne(e.type.render,!1);case 1:return Ne(e.type,!0);case 31:return je(`Activity`);case 30:return je(`ViewTransition`);default:return``}}function Fe(e){try{var t=``,n=null;do t+=Pe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var Ie=Object.prototype.hasOwnProperty,Le=t.unstable_scheduleCallback,Re=t.unstable_cancelCallback,ze=t.unstable_shouldYield,Be=t.unstable_requestPaint,Ve=t.unstable_now,He=t.unstable_getCurrentPriorityLevel,Ue=t.unstable_ImmediatePriority,We=t.unstable_UserBlockingPriority,Ge=t.unstable_NormalPriority,Ke=t.unstable_LowPriority,qe=t.unstable_IdlePriority,Je=t.log,Ye=t.unstable_setDisableYieldValue,Xe=null,Ze=null;function R(e){if(typeof Je==`function`&&Ye(e),Ze&&typeof Ze.setStrictMode==`function`)try{Ze.setStrictMode(Xe,e)}catch{}}var Qe=Math.clz32?Math.clz32:tt,$e=Math.log,et=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-($e(e)/et|0)|0}var nt=256,rt=262144,it=4194304;function at(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ot(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ct(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Qe(n),i=1<<r;t|=e[r],n&=~i}return t}function lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ut(){var e=it;return it<<=1,!(it&62914560)&&(it=4194304),e}function dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function vt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yt(){var e=F.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function bt(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var xt=Math.random().toString(36).slice(2),St=`__reactFiber$`+xt,Ct=`__reactProps$`+xt,wt=`__reactContainer$`+xt,z=`__reactEvents$`+xt,Tt=`__reactListeners$`+xt,Et=`__reactHandles$`+xt,Dt=`__reactResources$`+xt,Ot=`__reactMarker$`+xt,kt=`__reactLoad$`+xt;function At(e){delete e[St],delete e[Ct],delete e[Tt],delete e[Et]}function jt(e){var t;if(t=e[St])return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[St])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Mt(e){if(e=e[St]||e[wt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Pt(e){var t=e[Dt];return t||=e[Dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ft(e){e[Ot]=!0}function It(e){e[kt]=void 0}var Lt=new Set,Rt={};function zt(e,t){Bt(e,t),Bt(e+`Capture`,t)}function Bt(e,t){for(Rt[e]=t,e=0;e<t.length;e++)Lt.add(t[e])}var Vt=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]*$`),Ht={},Ut={};function Wt(e){return Ie.call(Ut,e)?!0:Ie.call(Ht,e)?!1:Vt.test(e)?Ut[e]=!0:(Ht[e]=!0,!1)}var B=!1;function Gt(){var e=B;return B=!1,e}function Kt(e,t,n){if(Wt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function qt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qt(e){if(!e._valueTracker){var t=Xt(e)?`checked`:`value`;e._valueTracker=Zt(e,t,``+e[t])}}function $t(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Xt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var en=/[\n"\\]/g;function tn(e){return e.replace(en,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function nn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Yt(t)):e.value!==``+Yt(t)&&(e.value=``+Yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):an(e,Yt(n)):o===`number`&&e.value==t?an(e,Yt(e.value)):an(e,Yt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Yt(s):e.removeAttribute(`name`)}function rn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Qt(e);return}n=n==null?``:``+Yt(n),t=t==null?n:``+Yt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Qt(e)}function an(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function on(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function sn(e,t,n){t!=null&&(t=``+Yt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Yt(n)}function cn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ge(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Qt(e)}function ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var un=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 dn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||un.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function fn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,B=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(dn(e,a,r),B=!0)}else for(var o in t)t.hasOwnProperty(o)&&dn(e,o,t[o])}function pn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 mn=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`]]),hn=/^[\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 gn(e){return hn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function _n(){}var vn=null;function yn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bn=null,xn=null;function Sn(e){var t=Mt(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(nn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+tn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ct]||null;if(!a)throw Error(i(90));nn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&$t(r)}break a;case`textarea`:sn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}}}var Cn=!1;function wn(e,t,n){if(Cn)return e(t,n);Cn=!0;try{return e(t)}finally{if(Cn=!1,(bn!==null||xn!==null)&&(Bd(),bn&&(t=bn,e=xn,xn=bn=null,Sn(t),e)))for(t=0;t<e.length;t++)Sn(e[t])}}function Tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ct]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var En=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Dn=!1;if(En)try{var On={};Object.defineProperty(On,"passive",{get:function(){Dn=!0}}),window.addEventListener(`test`,On,On),window.removeEventListener(`test`,On,On)}catch{Dn=!1}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return jn=i.slice(e,1<r?1-r:void 0)}function Nn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pn(){return!0}function Fn(){return!1}function In(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Pn:Fn,this.isPropagationStopped=Fn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=D({},Ln,{view:0,detail:0}),Bn=In(zn),Vn,Hn,Un,Wn=D({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=In(Wn),Kn=In(D({},Wn,{dataTransfer:0})),qn=In(D({},zn,{relatedTarget:0})),Jn=In(D({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=In(D({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=In(D({},Ln,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=In(D({},zn,{key:function(e){if(e.key){var t=Zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=In(D({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=In(D({},Ln,{submitter:0})),ar=In(D({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),or=In(D({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),sr=In(D({},Wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),cr=In(D({},Ln,{newState:0,oldState:0,source:0})),lr=[9,13,27,32],ur=En&&`CompositionEvent`in window,dr=null;En&&`documentMode`in document&&(dr=document.documentMode);var fr=En&&`TextEvent`in window&&!dr,pr=En&&(!ur||dr&&8<dr&&11>=dr),mr=` `,hr=!1;function gr(e,t){switch(e){case`keyup`:return lr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function _r(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var vr=!1;function yr(e,t){switch(e){case`compositionend`:return _r(t);case`keypress`:return t.which===32?(hr=!0,mr):null;case`textInput`:return e=t.data,e===mr&&hr?null:e;default:return null}}function br(e,t){if(vr)return e===`compositionend`||!ur&&gr(e,t)?(e=Mn(),jn=An=kn=null,vr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return pr&&t.locale!==`ko`?null:t.data;default:return null}}var xr={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 Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!xr[e.type]:t===`textarea`}function Cr(e,t,n,r){bn?xn?xn.push(r):xn=[r]:bn=r,t=Jf(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var wr=null,Tr=null;function Er(e){Vf(e,0)}function Dr(e){if($t(Nt(e)))return e}function Or(e,t){if(e===`change`)return t}var kr=!1;if(En){var Ar;if(En){var jr=`oninput`in document;if(!jr){var Mr=document.createElement(`div`);Mr.setAttribute(`oninput`,`return;`),jr=typeof Mr.oninput==`function`}Ar=jr}else Ar=!1;kr=Ar&&(!document.documentMode||9<document.documentMode)}function Nr(){wr&&(wr.detachEvent(`onpropertychange`,Pr),Tr=wr=null)}function Pr(e){if(e.propertyName===`value`&&Dr(Tr)){var t=[];Cr(t,Tr,e,yn(e)),wn(Er,t)}}function Fr(e,t,n){e===`focusin`?(Nr(),wr=t,Tr=n,wr.attachEvent(`onpropertychange`,Pr)):e===`focusout`&&Nr()}function Ir(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dr(Tr)}function Lr(e,t){if(e===`click`)return Dr(t)}function Rr(e,t){if(e===`input`||e===`change`)return Dr(t)}function zr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Br=typeof Object.is==`function`?Object.is:zr;function Vr(e,t){if(Br(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ie.call(t,i)||!Br(e[i],t[i]))return!1}return!0}function Hr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wr(e,t){var n=Ur(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ur(n)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hr(e.document)}return t}function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Jr=En&&`documentMode`in document&&11>=document.documentMode,Yr=null,Xr=null,Zr=null,Qr=!1;function $r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qr||Yr==null||Yr!==Hr(r)||(r=Yr,`selectionStart`in r&&qr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zr&&Vr(Zr,r)||(Zr=r,r=Jf(Xr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ti={animationend:ei(`Animation`,`AnimationEnd`),animationiteration:ei(`Animation`,`AnimationIteration`),animationstart:ei(`Animation`,`AnimationStart`),transitionrun:ei(`Transition`,`TransitionRun`),transitionstart:ei(`Transition`,`TransitionStart`),transitioncancel:ei(`Transition`,`TransitionCancel`),transitionend:ei(`Transition`,`TransitionEnd`)},ni={},ri={};En&&(ri=document.createElement(`div`).style,`AnimationEvent`in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),`TransitionEvent`in window||delete ti.transitionend.transition);function ii(e){if(ni[e])return ni[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ri)return ni[e]=t[n];return e}var ai=ii(`animationend`),oi=ii(`animationiteration`),si=ii(`animationstart`),ci=ii(`transitionrun`),li=ii(`transitionstart`),ui=ii(`transitioncancel`),di=ii(`transitionend`),fi=new Map,pi=`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(` `);pi.push(`scrollEnd`);function mi(e,t){fi.set(e,t),zt(t,[e])}var hi=0;function gi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=hi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function _i(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function vi(e,t){return e=_i(e),t=_i(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var yi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},bi=[],xi=0,Si=0;function Ci(){for(var e=xi,t=Si=xi=0;t<e;){var n=bi[t];bi[t++]=null;var r=bi[t];bi[t++]=null;var i=bi[t];bi[t++]=null;var a=bi[t];if(bi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Di(n,i,a)}}function wi(e,t,n,r){bi[xi++]=e,bi[xi++]=t,bi[xi++]=n,bi[xi++]=r,Si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ti(e,t,n,r){return wi(e,t,n,r),Oi(e)}function Ei(e,t){return wi(e,null,null,t),Oi(e)}function Di(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Oi(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ki={};function Ai(e,t,n,r){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Ai(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ni(e,t){var n=e.alternate;return n===null?(n=ji(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Pi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Mi(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,Se.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case se:return e=ji(31,n,t,a),e.elementType=se,e.lanes=o,e;case ee:return Ii(n.children,a,o,t);case te:s=8,a|=24;break;case ne:return e=ji(12,n,t,a|2),e.elementType=ne,e.lanes=o,e;case ie:return e=ji(13,n,t,a),e.elementType=ie,e.lanes=o,e;case ae:return e=ji(19,n,t,a),e.elementType=ae,e.lanes=o,e;case ce:case ue:return e=a|32,e=ji(30,n,t,e),e.elementType=ue,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case re:s=11;break a;case N:s=14;break a;case oe:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ji(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ii(e,t,n,r){return e=ji(7,e,r,t),e.lanes=n,e}function Li(e,t,n){return e=ji(6,e,null,t),e.lanes=n,e}function Ri(e){var t=ji(18,null,null,0);return t.stateNode=e,t}function zi(e,t,n){return t=ji(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bi=new WeakMap;function Vi(e,t){if(typeof e==`object`&&e){var n=Bi.get(e);return n===void 0?(t={value:e,source:t,stack:Fe(t)},Bi.set(e,t),t):n}return{value:e,source:t,stack:Fe(t)}}var Hi=[],Ui=0,Wi=null,Gi=0,Ki=[],qi=0,Ji=null,Yi=1,Xi=``;function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Wi,Wi=e,Gi=t}function Qi(e,t,n){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Ji=e;var r=Yi;e=Xi;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var a=32-Qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-Qe(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function $i(e){e.return!==null&&(Zi(e,1),Qi(e,1,0))}function ea(e){for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null;for(;e===Ji;)Ji=Ki[--qi],Ki[qi]=null,Xi=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null}function ta(e,t){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Yi=t.id,Xi=t.overflow,Ji=e}var na=null,ra=null,V=!1,ia=null,aa=!1,oa=Error(i(519));function sa(e){throw pa(Vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),oa}function ca(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ct]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Q(zf[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),rn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),cn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ep(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||sa(e,!0)}function la(e){for(na=e.return;na;)switch(na.tag){case 5:case 31:case 13:aa=!1;return;case 27:case 3:aa=!0;return;default:na=na.return}}function ua(e){if(e!==na)return!1;if(!V)return la(e),V=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&ra&&sa(e),la(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=dm(e)}else t===27?(t=ra,Sp(e.type)?(e=um,um=null,ra=e):ra=t):ra=na?lm(e.stateNode.nextSibling):null;return!0}function da(){ra=na=null,V=!1}function fa(){var e=ia;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),ia=null),e}function pa(e){ia===null?ia=[e]:ia.push(e)}var ma=be(null),ha=null,ga=null;function _a(e,t,n){I(ma,t._currentValue),t._currentValue=n}function va(e){e._currentValue=ma.current,xe(ma)}function ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ba(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ya(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ya(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ya(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function xa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Br(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Te.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}a=a.return}return e!==null&&ba(t,e,n,r),t.flags|=262144,e!==null}function Sa(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ca(e){ha=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wa(e){return Ea(ha,e)}function Ta(e,t){return ha===null&&Ca(e),Ea(e,t)}function Ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return n}var Da=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Oa=t.unstable_scheduleCallback,ka=t.unstable_NormalPriority,Aa={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ja(){return{controller:new Da,data:new Map,refCount:0}}function Ma(e){e.refCount--,e.refCount===0&&Oa(ka,function(){e.controller.abort()})}function Na(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Pa=null;function Fa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ia=null,La=0,Ra=0,za=null;function Ba(e,t){if(Ia===null){var n=Ia=[];La=0,Ra=Ff(),za={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return La++,t.then(Va,Va),t}function Va(){if(--La===0&&(Pa=null,Ia!==null)){za!==null&&(za.status=`fulfilled`);var e=Ia;Ia=null,Ra=0,za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ua=P.S;P.S=function(e,t){if(gd=Ve(),typeof t==`object`&&t&&typeof t.then==`function`&&Ba(e,t),Pa!==null)for(var n=xf;n!==null;)Na(n,Pa),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)Na(r,n),r=r.next;if(Ra!==0){r=Pa,r===null&&(r=Pa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ua!==null&&Ua(e,t)};var Wa=be(null);function Ga(){var e=Wa.current;return e===null?ed.pooledCache:e}function Ka(e,t){t===null?I(Wa,Wa.current):I(Wa,t.pool)}function qa(){var e=Ga();return e===null?null:{parent:Aa._currentValue,pool:e}}var Ja=Error(i(460)),Ya=Error(i(474)),Xa=Error(i(542)),Za={then:function(){}};function Qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function $a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_n,_n),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(_n,_n);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e}throw to=t,Ja}}function eo(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(to=e,Ja):e}}var to=null;function no(){if(to===null)throw Error(i(459));var e=to;return to=null,e}function ro(e){if(e===Ja||e===Xa)throw Error(i(483))}var io=null,ao=0;function oo(e){var t=ao;return ao+=1,io===null&&(io=[]),$a(io,e,t)}function so(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function co(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function lo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Li(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?(e=d(e,t,n.props.children,r,n.key),so(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===oe&&eo(i)===t.type)?(t=a(t,n.props),so(t,n),t.return=e,t):(t=Fi(n.type,n.key,n.props,null,e.mode,r),so(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=zi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Ii(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Fi(t.type,t.key,t.props,null,e.mode,n),so(n,t),n.return=e,n;case A:return t=zi(t,e.mode,n),t.return=e,t;case oe:return t=eo(t),f(e,t,n)}if(ge(t)||pe(t))return t=Ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,oo(t),n);if(t.$$typeof===M)return f(e,Ta(e,t),n);co(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case oe:return n=eo(n),p(e,t,n,r)}if(ge(n)||pe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,oo(n),r);if(n.$$typeof===M)return p(e,t,Ta(e,n),r);co(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case oe:return r=eo(r),m(e,t,n,r,i)}if(ge(r)||pe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,oo(r),i);if(r.$$typeof===M)return m(e,t,n,Ta(t,r),i);co(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),V&&Zi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return V&&Zi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),V&&Zi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),V&&Zi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Zi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Zi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),so(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===oe&&eo(l)===r.type){n(e,r.sibling),c=a(r,o.props),so(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Ii(o.props.children,e.mode,c,o.key),so(c,o),c.return=e,e=c):(c=Fi(o.type,o.key,o.props,null,e.mode,c),so(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=zi(o,e.mode,c),c.return=e,e=c}return s(e);case oe:return o=eo(o),_(e,r,o,c)}if(ge(o))return h(e,r,o,c);if(pe(o)){if(l=pe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,oo(o),c);if(o.$$typeof===M)return _(e,r,Ta(e,o),c);co(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ao=0;var i=_(e,t,n,r);return io=null,i}catch(t){if(t===Ja||t===Xa)throw t;var a=ji(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var uo=lo(!0),fo=lo(!1),po=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ho(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function go(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _o(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Oi(e),Di(e,null,n),t}return wi(e,r,t,n),Oi(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}function yo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var bo=!1;function xo(){if(bo){var e=za;if(e!==null)throw e}}function So(e,t,n,r){bo=!1;var i=e.updateQueue;po=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===Ra&&(bo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:po=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function Co(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function wo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Co(n[e],t)}var To=be(null),Eo=be(0);function Do(e,t){e=ad,I(Eo,e),I(To,t),ad=e|t.baseLanes}function Oo(){I(Eo,ad),I(To,To.current)}function ko(){ad=Eo.current,xe(To),xe(Eo)}var Ao=be(null),jo=null;function Mo(e){var t=e.alternate;I(Lo,Lo.current&1),I(Ao,e),jo===null&&(t===null||To.current!==null||t.memoizedState!==null)&&(jo=e)}function No(e){I(Lo,Lo.current),I(Ao,e),jo===null&&(jo=e)}function Po(e){e.tag===22?(I(Lo,Lo.current),I(Ao,e),jo===null&&(jo=e)):Fo()}function Fo(){I(Lo,Lo.current),I(Ao,Ao.current)}function Io(e){xe(Ao),jo===e&&(jo=null),xe(Lo)}var Lo=be(0);function Ro(e,t){I(Ao,Ao.current),I(Lo,t)}function zo(e){xe(Lo),xe(Ao),jo===e&&(jo=null)}function Bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vo=0,H=null,U=null,Ho=null,Uo=!1,Wo=!1,Go=!1,Ko=0,qo=0,Jo=null,Yo=0;function Xo(){throw Error(i(321))}function Zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Qo(e,t,n,r,i,a){return Vo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?hc:gc,Go=!1,a=n(r,i),Go=!1,Wo&&(a=es(t,n,r,i)),$o(e),a}function $o(e){P.H=mc;var t=U!==null&&U.next!==null;if(Vo=0,Ho=U=H=null,Uo=!1,qo=0,Jo=null,t)throw Error(i(300));e===null||Nc||(e=e.dependencies,e!==null&&Sa(e)&&(Nc=!0))}function es(e,t,n,r){H=e;var a=0;do{if(Wo&&(Jo=null),qo=0,Wo=!1,25<=a)throw Error(i(301));if(a+=1,Ho=U=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=_c,o=t(n,r)}while(Wo);return o}function ts(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?cs(t):t,e=e.useState()[0],(U===null?null:U.memoizedState)!==e&&(H.flags|=1024),t}function ns(){var e=Ko!==0;return Ko=0,e}function rs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function is(e){if(Uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Uo=!1}Vo=0,Ho=U=H=null,Wo=!1,qo=Ko=0,Jo=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ho===null?H.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function os(){if(U===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=U.next;var t=Ho===null?H.memoizedState:Ho.next;if(t!==null)Ho=t,U=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));U=e,e={memoizedState:U.memoizedState,baseState:U.baseState,baseQueue:U.baseQueue,queue:U.queue,next:null},Ho===null?H.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=qo;return qo+=1,Jo===null&&(Jo=[]),e=$a(Jo,e,t),t=H,(Ho===null?t.memoizedState:Ho.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?hc:gc),e}function ls(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return cs(e);if(e.$$typeof===de)return;if(e.$$typeof===M)return wa(e)}throw Error(i(438,String(e)))}function us(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ss(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=le;return t.index++,n}function ds(e,t){return typeof t==`function`?t(e):t}function fs(e){return ps(os(),U,e)}function ps(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Vo&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ra&&(d=!0);else if((Vo&p)===p){u=u.next,p===Ra&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,sd|=p;f=u.action,Go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Br(o,e.memoizedState)&&(Nc=!0,d&&(n=za,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ms(e){var t=os(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Br(o,t.memoizedState)||(Nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hs(e,t,n){var r=H,a=os(),o=V;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Br((U||a).memoizedState,n);if(s&&(a.memoizedState=n,Nc=!0),a=a.queue,Bs(vs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ho!==null&&!!(Ho.memoizedState.tag&1),Fs(e?9:8,{destroy:void 0},_s.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(i(349));o||Vo&127||gs(r,t,n)}return n}function gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=ss(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _s(e,t,n,r){t.value=n,t.getSnapshot=r,ys(t)&&bs(e)}function vs(e,t,n){return n(function(){ys(t)&&bs(e)})}function ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Br(e,n)}catch{return!0}}function bs(e){var t=Ei(e,2);t!==null&&Fd(t,e,2)}function xs(e){var t=as();if(typeof e==`function`){var n=e;if(e=n(),Go){R(!0);try{n()}finally{R(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ps(e,U,typeof r==`function`?r:ds)}function Cs(e,t,n,r,a){if(dc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ws(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ws(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};o.types=a===null?null:a.types,P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ws(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(V){var n=ed.formState;if(n!==null){a:{var r=H;if(V){if(ra){b:{for(var i=ra,a=aa;i.nodeType!==8;)if(!a||(i=lm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ra=lm(i.nextSibling),r=i.data===`F!`;break a}}sa(r)}r=!1}r&&(t=n[0])}}return n=as(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=cc.bind(null,H,r),r.dispatch=n,r=xs(!1),a=uc.bind(null,H,!1,r.queue),r=as(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Cs.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(os(),U,e)}function Ms(e,t,n){if(t=ps(e,t,ks)[0],e=fs(ds)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=cs(t)}catch(e){throw e===Ja?Xa:e}else r=t;t=os();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,Fs(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=os(),n=U;if(n!==null)return Ms(t,n,e);os(),t=t.memoizedState,n=os();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=ss(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Is(){return os().memoizedState}function Ls(e,t,n,r){var i=as();H.flags|=e,i.memoizedState=Fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Rs(e,t,n,r){var i=os();r=r===void 0?null:r;var a=i.memoizedState.inst;U!==null&&r!==null&&Zo(r,U.memoizedState.deps)?i.memoizedState=Fs(t,a,n,r):(H.flags|=e,i.memoizedState=Fs(1|t,a,n,r))}function zs(e,t){Ls(8390656,8,e,t)}function Bs(e,t){Rs(2048,8,e,t)}function Vs(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=ss(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hs(e){var t=os().memoizedState;return Vs({ref:t,nextImpl:e}),function(){if(K&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Us(e,t){return Rs(4,2,e,t)}function Ws(e,t){return Rs(4,4,e,t)}function Gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ks(e,t,n){n=n==null?null:n.concat([e]),Rs(4,4,Gs.bind(null,t,e),n)}function qs(){}function Js(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Zo(t,r[1]))return r[0];if(r=e(),Go){R(!0);try{e()}finally{R(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return n===void 0||Vo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),H.lanes|=e,sd|=e,n)}function Zs(e,t,n,r){return Br(n,t)?n:To.current===null?!(Vo&106)||Vo&1073741824&&!(J&261930)?(Nc=!0,e.memoizedState=n):(e=Nd(),H.lanes|=e,sd|=e,t):(e=Xs(e,n,r),Br(e,t)||(Nc=!0),e)}function Qs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};s.types=o===null?null:o.types,P.T=s,uc(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Ha(c,r),Md(e)):lc(e,t,r,Md(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=tc(e).queue;Qs(e,a,t,_e,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_e,baseState:_e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:_e},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Md())}function rc(){return wa(sh)}function ic(){return os().memoizedState}function ac(){return os().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=go(n);var r=_o(t,e,n);r!==null&&(Fd(r,t,n),vo(r,t,n)),t={cache:ja()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=Ti(e,t,n,r),n!==null&&(Fd(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Md())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Br(s,o))return wi(e,t,i,0),ed===null&&Ci(),!1}catch{}if(n=Ti(e,t,i,r),n!==null)return Fd(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(i(479))}else t=Ti(e,n,r,2),t!==null&&Fd(t,e,2)}function dc(e){var t=e.alternate;return e===H||t!==null&&t===H}function fc(e,t){Wo=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var mc={readContext:wa,use:ls,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo,useEffectEvent:Xo},hc={readContext:wa,use:ls,useCallback:function(e,t){return as().memoizedState=[e,t===void 0?null:t],e},useContext:wa,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=as();t=t===void 0?null:t;var r=e();if(Go){R(!0);try{e()}finally{R(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(n!==void 0){var i=n(t);if(Go){R(!0);try{n(t)}finally{R(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=sc.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=as();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,H,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=as();if(V){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ed===null)throw Error(i(349));J&127||gs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=as(),t=ed.identifierPrefix;if(V){var n=Xi,r=Yi;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ko++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uc.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:us,useCacheRefresh:function(){return as().memoizedState=oc.bind(null,H)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},gc={readContext:wa,use:ls,useCallback:Js,useContext:wa,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:fs,useRef:Is,useState:function(){return fs(ds)},useDebugValue:qs,useDeferredValue:function(e,t){return Zs(os(),U.memoizedState,e,t)},useTransition:function(){var e=fs(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Ss(os(),U,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs},_c={readContext:wa,use:ls,useCallback:Js,useContext:wa,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:ms,useRef:Is,useState:function(){return ms(ds)},useDebugValue:qs,useDeferredValue:function(e,t){var n=os();return U===null?Xs(n,e,t):Zs(n,U.memoizedState,e,t)},useTransition:function(){var e=ms(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=os();return U===null?(n.baseState=e,[e,n.queue.dispatch]):Ss(n,U,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs};function vc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=go(r);i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Fd(t,e,r),vo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=go(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Fd(t,e,r),vo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=go(n);r.tag=2,t!=null&&(r.callback=t),t=_o(e,r,n),t!==null&&(Fd(t,e,n),vo(t,e,n))}};function bc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Vr(n,r)||!Vr(i,a):!0}function xc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yc.enqueueReplaceState(t,t.state,null)}function Sc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Cc(e){yi(e)}function wc(e){console.error(e)}function Tc(e){yi(e)}function Ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Oc(e,t,n){return n=go(n),n.tag=3,n.payload={element:null},n.callback=function(){Ec(e,t)},n}function kc(e){return e=go(e),e.tag=3,e}function Ac(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Dc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Dc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function jc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&xa(t,n,a,!0),n=Ao.current,n!==null){switch(n.tag){case 31:case 13:case 19:return jo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,a)),!1;case 22:return n.flags|=65536,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),hf(e,r,a)),!1}throw Error(i(435,n.tag))}return hf(e,r,a),qd(),!1}if(V)return t=Ao.current,t===null?(r!==oa&&(t=Error(i(423),{cause:r}),pa(Vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Vi(r,n),a=Oc(e.stateNode,r,a),yo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==oa&&(e=Error(i(422),{cause:r}),pa(Vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Vi(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Oc(n.stateNode,r,e),yo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=kc(a),Ac(a,e,n,r),yo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mc=Error(i(461)),Nc=!1;function Pc(e,t,n,r){t.child=e===null?fo(t,null,n,r):uo(t,e.child,n,r)}function Fc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ca(t),r=Qo(e,t,n,o,a,i),s=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(V&&s&&$i(t),t.flags|=1,Pc(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Mi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Lc(e,t,a,r,i)):(e=Fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ul(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Vr:n,n(o,r)&&e.ref===t.ref)return ll(e,t,i)}return t.flags|=1,e=Ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Vr(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,ul(e,i))e.flags&131072&&(Nc=!0);else return t.lanes=e.lanes,ll(e,t,i)}}return Gc(e,t,n,r,i)}function Rc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Bc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ka(t,a===null?null:a.cachePool),a===null?Oo():Do(t,a),Po(t);else return r=t.lanes=536870912,Bc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ka(t,null),Oo(),Fo()):(Ka(t,a.cachePool),Do(t,a),Fo(),t.memoizedState=null);return Pc(e,t,i,n),t.child}function zc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bc(e,t,n,r,i){var a=Ga();return a=a===null?null:{parent:Aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ka(t,null),Oo(),Po(t),e!==null&&xa(e,t,r,!0),t.childLanes=i,null}function Vc(e,t){return t=el({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hc(e,t,n){return uo(t,e.child,null,n),e=Vc(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function Uc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(V){if(r.mode===`hidden`)return e=Vc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zc(null,e);if(No(t),(e=ra)?(e=am(e,aa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=536870912,null}return Vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(No(t),a){if(t.flags&256)t.flags&=-257,t=Hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Nc||xa(e,t,n,!1),a=(n&e.childLanes)!==0,Nc||a){if(To.current===null){if(r=ed,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ei(e,s),Fd(r,e,s),Mc;qd()}t=Hc(e,t,n)}else e=o.treeContext,ra=lm(s.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=Vc(t,r),t.flags|=134221824;return t}return e=Ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Gc(e,t,n,r,i){return Ca(t),n=Qo(e,t,n,r,void 0,i),r=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(V&&r&&$i(t),t.flags|=1,Pc(e,t,n,i),t.child)}function Kc(e,t,n,r,i,a){return Ca(t),t.updateQueue=null,n=es(t,r,n,i),$o(e),r=ns(),e!==null&&!Nc?(rs(e,t,a),ll(e,t,a)):(V&&r&&$i(t),t.flags|=1,Pc(e,t,n,a),t.child)}function qc(e,t,n,r,i){if(Ca(t),t.stateNode===null){var a=ki,o=n.contextType;typeof o==`object`&&o&&(a=wa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=yc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},mo(t),o=n.contextType,a.context=typeof o==`object`&&o?wa(o):ki,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(vc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&yc.enqueueReplaceState(a,a.state,null),So(t,r,a,i),xo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=ki,typeof u==`object`&&u&&(o=wa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&xc(t,a,r,o),po=!1;var f=t.memoizedState;a.state=f,So(t,r,a,i),xo(),l=t.memoizedState,s||f!==l||po?(typeof d==`function`&&(vc(t,n,d,r),l=t.memoizedState),(c=po||bc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ho(e,t),o=t.memoizedProps,u=Sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ki,typeof l==`object`&&l&&(c=wa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&xc(t,a,r,c),po=!1,f=t.memoizedState,a.state=f,So(t,r,a,i),xo();var p=t.memoizedState;o!==d||f!==p||po||e!==null&&e.dependencies!==null&&Sa(e.dependencies)?(typeof s==`function`&&(vc(t,n,s,r),p=t.memoizedState),(u=po||bc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Sa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Wc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,n,i)):Pc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ll(e,t,i),e}function Jc(e,t,n,r){return da(),t.flags|=256,Pc(e,t,n,r),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:qa()}}function Zc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function Qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Lo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(V){if(i?Mo(t):Fo(),(e=ra)?(e=am(e,aa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Fo(),i=t.mode,a=el({mode:`hidden`,children:a},i),r=Ii(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Xc(n),r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(null,r)):(Mo(t),$c(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return nl(e,t,a,o,r,c,s,n)}return i?(Fo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ni(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ii(i,a,n,null),i.flags|=2):i=Ni(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,zc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Xc(n):(a=i.cachePool,a===null?a=qa():(s=Aa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(e.child,r)):(Mo(t),n=e.child,e=n.sibling,n=Ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function $c(e,t){return t=el({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function el(e,t){return e=ji(22,e,null,t),e.lanes=0,e}function tl(e,t,n){return uo(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Mo(t),t.flags&=-257,tl(e,t,c)):t.memoizedState===null?(Fo(),o=a.fallback,s=t.mode,a=el({mode:`visible`,children:a.children},s),o=Ii(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,uo(t,e.child,null,c),a=t.child,a.memoizedState=Xc(c),a.childLanes=Zc(e,r,c),t.memoizedState=Yc,zc(null,a)):(Fo(),t.child=e.child,t.flags|=128,null);if(Mo(t),sm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,pa({value:a,source:null,stack:null})),tl(e,t,c)}if(Nc||xa(e,t,c,!1),r=(c&e.childLanes)!==0,Nc||r){if(To.current!==null)return tl(e,t,c);if(r=ed,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ei(e,a),Fd(r,e,a),Mc;return om(o)||qd(),tl(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ra=lm(o.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=$c(t,a.children),t.flags|=134221824,t)}function rl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ya(e.return,t,n)}function il(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Bo(n)===null&&(t=e),e=e.sibling}return t}function al(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ol(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function sl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Lo.current;if(t.flags&128)return Ro(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ro(t,o),i===`backwards`&&e!==null?(ol(e),Pc(e,t,r,n),ol(e)):Pc(e,t,r,n),r=V?Gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rl(e,n,t);else if(e.tag===19)rl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ol(t)),al(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,a,r);break;case`together`:al(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,a,r)}return t.child}function cl(e,t,n){var r=t.pendingProps;return _a(t,t.type,r.value),Pc(e,t,r.children,n),t.child}function ll(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ul(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Sa(e)))}function dl(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),_a(t,Aa,e.memoizedState.cache),da();break;case 27:case 5:L(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,No(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Mo(t),t.flags|=128,null;r=xa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Qc(e,t,n):(Mo(t),e=ll(e,t,n),e===null?null:e.sibling)}Mo(t);break;case 19:if(t.flags&128)return sl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(xa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return sl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ro(t,Lo.current),r)break;return null;case 22:return t.lanes=0,Rc(e,t,n,t.pendingProps);case 24:_a(t,Aa,e.memoizedState.cache)}return ll(e,t,n)}function fl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Nc=!0;else{if(!ul(e,n)&&!(t.flags&128))return Nc=!1,dl(e,t,n);Nc=!!(e.flags&131072)}}else Nc=!1,V&&t.flags&1048576&&Qi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=eo(t.elementType),t.type=e,typeof e==`function`)Mi(e)?(r=Sc(e,r),t.tag=1,t=qc(null,t,e,r,n)):(t.tag=0,t=Gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===re){t.tag=11,t=Fc(null,t,e,r,n);break a}if(a===N){t.tag=14,t=Ic(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=cl(null,t,n);break a}}throw t=he(e)||e,Error(i(306,t,``))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Sc(r,t.pendingProps),qc(e,t,r,a,n);case 3:a:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,ho(e,t),So(t,r,null,n);var s=t.memoizedState;if(r=s.cache,_a(t,Aa,r),r!==o.cache&&ba(t,[Aa],n,!0),xo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Jc(e,t,r,n);break a}if(r!==a){a=Vi(Error(i(424)),t),pa(a),t=Jc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ra=lm(e.firstChild),na=t,V=!0,ia=null,aa=!0,n=fo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(da(),r===a){t=ll(e,t,n);break a}Pc(e,t,r,n)}t=t.child}return t;case 26:return Wc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:V||(t.stateNode=fp(t.type,t.pendingProps,we.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return L(t),e===null&&V&&(r=t.stateNode=hm(t.type,t.pendingProps,we.current),na=t,aa=!0,a=ra,Sp(t.type)?(um=a,ra=lm(r.firstChild)):ra=a),Pc(e,t,t.pendingProps.children,n),Wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&V&&((a=r=ra)&&(r=rm(r,t.type,t.pendingProps,aa),r===null?a=!1:(t.stateNode=r,na=t,ra=lm(r.firstChild),aa=!1,a=!0)),a||sa(t)),L(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,pp(a,o)?r=null:s!==null&&pp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Qo(e,t,ts,null,null,n),sh._currentValue=a),Wc(e,t),Pc(e,t,r,n),t.child;case 6:return e===null&&V&&((e=n=ra)&&(n=im(n,t.pendingProps,aa),n===null?e=!1:(t.stateNode=n,na=t,ra=null,e=!0)),e||sa(t)),null;case 13:return Qc(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):Pc(e,t,r,n),t.child;case 11:return Fc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Wc(e,t),Pc(e,t,r,n),t.child;case 8:return Pc(e,t,t.pendingProps.children,n),t.child;case 12:return Pc(e,t,t.pendingProps.children,n),t.child;case 10:return cl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Ca(t),a=wa(a),r=r(a),t.flags|=1,Pc(e,t,r,n),t.child;case 14:return Ic(e,t,t.type,t.pendingProps,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 19:return sl(e,t,n);case 31:return Uc(e,t,n);case 22:return Rc(e,t,n,t.pendingProps);case 24:return Ca(t),r=wa(Aa),e===null?(a=Ga(),a===null&&(a=ed,o=ja(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},mo(t),_a(t,Aa,a)):((e.lanes&n)!==0&&(ho(e,t),So(t,null,null,n),xo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,_a(t,Aa,r),r!==a.cache&&ba(t,[Aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_a(t,Aa,r))),Pc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:V&&$i(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Wc(e,t),Pc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function pl(e){e.flags|=4}function ml(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw to=Za,Ya}}else e.flags&=-16777217}function hl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Wd())e.flags|=8192;else throw to=Za,Ya}}function gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ut(),e.lanes|=t,dd|=t)}function _l(e,t){if(!V)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function vl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yl(e,t,n){var r=t.pendingProps;switch(ea(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return vl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),va(Aa),De(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ua(t)?pl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fa())),vl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(pl(t),o===null?(vl(t),ml(t,a,null,r,n)):(vl(t),hl(t,o))):o?o===e.memoizedState?(vl(t),t.flags&=-16777217):(pl(t),vl(t),hl(t,o)):(e=e.memoizedProps,e!==r&&pl(t),vl(t),ml(t,a,e,r,n)),null;case 27:if(Oe(t),n=we.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}e=Se.current,ua(t)?ca(t,e):(e=hm(a,r,n),t.stateNode=e,pl(t))}return vl(t),t.subtreeFlags&=-33554433,null;case 5:if(Oe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}if(o=Se.current,ua(t))ca(t,o);else{var s=lp(we.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[St]=t,o[Ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&pl(t)}}return vl(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=we.current,ua(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=na,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||sa(t,!0)}else e=lp(e).createTextNode(r),e[St]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ua(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[St]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Io(t),t):(Io(t),null);if(t.flags&128)throw Error(i(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ua(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[St]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),a=!1}else a=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Io(t),t):(Io(t),null)}return Io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gl(t,t.updateQueue),vl(t),null);case 4:return De(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return va(t.type),vl(t),null;case 19:if(zo(t),r=t.memoizedState,r===null)return vl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)_l(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Bo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Pi(n,e),n=n.sibling;return Ro(t,Lo.current&1|2),V&&Zi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ve()>_d&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!V)return vl(t),null}else 2*Ve()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ve(),e.sibling=null,o=Lo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||V?Ro(t,o):(n=o,I(Ao,t),I(Lo,n),jo===null&&(jo=t)),V&&Zi(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return Io(t),ko(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&xe(Wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),va(Aa),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch(ea(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(Aa),De(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return De(),null;case 10:return va(t.type),null;case 22:case 23:return Io(t),ko(),e!==null&&xe(Wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(Aa),null;case 25:return null;default:return null}}function xl(e,t){switch(ea(t),t.tag){case 3:va(Aa),De();break;case 26:case 27:case 5:Oe(t);break;case 4:De();break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:zo(t);break;case 10:va(t.type);break;case 22:case 23:Io(t),ko(),e!==null&&xe(Wa);break;case 24:va(Aa)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{wo(t,n)}catch(t){X(e,e.return,t)}}}function Tl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=gi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)em(e.stateNode,t[n])}function kl(e){for(var t=e.return;t!==null&&(Ml(t)&&em(e.stateNode,t.stateNode),!jl(t));)t=t.return}function Al(e){for(var t=e.return;t!==null&&(Ml(t)&&tm(e.stateNode,t.stateNode),!jl(t));)t=t.return}function jl(e){return e.tag===5||e.tag===3||e.tag===27}function Ml(e){return e&&e.tag===7&&e.stateNode!==null}function Nl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Pl(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[Ct]=t}catch(t){X(e,e.return,t)}}function Fl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_n)),Ol(e,r),B=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ol(e,r),B=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[St]=e,t[Ct]=n}catch(t){X(e,e.return,t)}}var Bl=!1,Vl=null;function Hl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Bl=!0)}var Ul=null;function Wl(){var e=Ul;return Ul=null,e}var Gl=0;function Kl(e,t,n,r,i){return Gl=0,ql(e.child,t,n,r,i)}function ql(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Bl=!0,Tp(o,Gl===0?t:t+`_`+Gl,n),Gl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||ql(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Jl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Jl(e.child,t),e=e.sibling}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Yl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=vi(t.default,t.share),t!==`none`&&(Kl(e,n,t,null,!1)||Jl(e.child,!1))}e=e.sibling}}function Xl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=gi(r,n),a=vi(r.default,n.paired?r.share:r.enter);a===`none`?Yl(e):Kl(e,i,a,null,!1)?(Yl(e),n.paired||t||Pd(e,r.onEnter)):Jl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e,t),e=e.sibling;else Yl(e)}function Zl(e){if(Vl!==null&&Vl.size!==0){var t=Vl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=vi(n.default,n.share);if(a!==`none`&&(Kl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Jl(e.child,!1)),t.delete(r),t.size===0)break}}}Zl(e)}e=e.sibling}}}function Ql(e){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode),r=Vl===null?void 0:Vl.get(n),i=vi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Kl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Vl.delete(n),Pd(e,t.onShare)):Jl(e.child,!1)),Vl!==null&&Zl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Vl!==null&&Zl(e)}function $l(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!==`none`&&Kl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&$l(e);e=e.sibling}}function eu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Jl(e.child,!1))}eu(e)}e=e.sibling}}function tu(e){if(e.tag===30)e.stateNode.paired=null,Jl(e.child,!1),eu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else eu(e)}function nu(e){for(e=e.child;e!==null;)e.tag===30?Jl(e.child,!1):e.subtreeFlags&33554432&&nu(e),e=e.sibling}function ru(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Gl<a.length){var l=a[Gl],u=Op(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Tp(c,Gl===0?n:n+`_`+Gl,i),s&&e.flags&4||(Ul===null&&(Ul=[]),Ul.push(c,Gl===0?r:r+`_`+Gl,t.memoizedProps)),Gl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ru(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function iu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=gi(n,r),a=vi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Gl=0,i=ru(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&iu(e,t);e=e.sibling}}var au=!1,W=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,sp=gh,e=Kr(e),qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Hl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Ql(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Hl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&$l(e),hu(n))}}Vl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Sc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){X(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=gi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=vi(a.default,a.update),a!==`none`&&Kl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fu(e,n),r&4&&Sl(5,n);break;case 1:if(Fu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Sc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}}r&64&&wl(n),r&512&&El(n,n.return);break;case 3:if(Fu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{wo(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&zl(n);case 26:case 5:Fu(e,n),t===null&&r&4&&Nl(n),r&512&&El(n,n.return);break;case 12:Fu(e,n);break;case 31:Fu(e,n),r&4&&Tu(e,n);break;case 13:Fu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||au,!r){var a=t!==null&&t.memoizedState!==null||W;t=au,i=W,au=r,(W=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Lu(e,n,r)):Fu(e,n),au=t,W=i}break;case 30:Fu(e,n),r&512&&El(n,n.return);break;case 7:r&512&&El(n,n.return);default:Fu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){X(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,B=!0}catch(t){X(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){X(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&At(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount==`function`)try{Ze.onCommitFiberUnmount(Xe,n)}catch{}switch(n.tag){case 26:W||Dl(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!W&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:W||Dl(n,t),Al(n);var r=xu,i=Su;Sp(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:W||Dl(n,t),Al(n);case 6:if(n.tag===6&&Al(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),B=!0}catch(e){X(n,t,e)}else try{xu.removeChild(n.stateNode),B=!0}catch(e){X(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Cl(2,n,t),W||Cl(4,n,t),Cu(e,t,n);break;case 1:W||(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Tl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:W=(r=W)||n.memoizedState!==null,Cu(e,t,n),W=r;break;case 30:Dl(n,t),Cu(e,t,n);break;case 7:W||Dl(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){X(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){X(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Au(t,e,n),t=t.sibling}var G=null;function Au(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),ju(e),a&4&&(Cl(3,e,e.return),Sl(3,e),Cl(5,e,e.return));break;case 1:ku(t,e,n),ju(e),a&512&&(W||r===null||Dl(r,r.return)),a&64&&au&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=G,ku(t,e,n),ju(e),a&512&&(W||r===null||Dl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(au)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ot]||r[St]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),np(r,t,n),r[St]=e,Ft(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[St]=e,Ft(r),t=r}e.stateNode=t}}else au||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Pl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||W||t.parentNode.removeChild(t)):a.count--,n===null?au||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),ju(e),a&512&&(W||r===null||Dl(r,r.return)),r!==null&&a&4&&Pl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,ju(e),a&512&&(W||r===null||Dl(r,r.return)),e.flags&32){t=e.stateNode;try{ln(t,``),B=!0}catch(t){X(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Pl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),ju(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,B=!0}catch(t){X(e,e.return,t)}}break;case 3:if(B=!1,Wm=null,o=G,G=bm(t.containerInfo),ku(t,e,n),G=o,ju(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){X(e,e.return,t)}su&&(su=!1,Mu(e)),B=!1;break;case 4:a=ou,ou=au,r=Gt(),o=G,G=bm(e.stateNode.containerInfo),ku(t,e,n),ju(e),G=o,B&&du&&(fu=!0),B=r,ou=a;break;case 12:ku(t,e,n),ju(e);break;case 31:ku(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),ju(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=Ve()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=au,l=W,u=ou;au=c||o,ou=u||o,W=l||s,ku(t,e,n),W=l,ou=u,au=c,ju(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||au||W||(t=s||W,n=au,r=W,au=o||au,W=t,Iu(e,2),au=n,W=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(W||r===null||Dl(r,r.return)),a=Gt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&vi(c.default,c.update)!==`none`,ku(t,e,n),ju(e),s&&r!==null&&B&&(e.flags|=4),du=o,B=a;break;case 21:break;case 7:a&512&&(W||r===null||Dl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),ju(e)}}function ju(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Fl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Ml(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(jl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Rl(e,Il(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(ln(l,``),n.flags&=-33),Rl(e,Il(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ll(e,Il(e),u,s);break;default:throw Error(i(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Nu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Pu(t,e),t=t.sibling;else iu(t,!1)}function Pu(e,t){var n=e.alternate;if(n===null)Xl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Wl(),Nu(t,e),!uu&&!fu){if(e=Ul,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Ul=null;break;case 5:Nu(t,e);break;case 4:r=uu,uu=!1,Nu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Nu(t,e):Xl(e,!1));break;case 30:r=uu,i=Wl(),uu=!1,Nu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=gi(a,o),o=gi(n.memoizedProps,o);var s=vi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Gl=0,t=ru(e,n,t,o,s,a,!0),Gl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),uu=e.flags&32?!0:r;break;default:Nu(t,e)}}function Fu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Iu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Cl(4,n,n.return),Iu(n,r);break;case 1:Dl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Tl(n,n.return,i),Iu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Dl(n,n.return),n.tag!==5&&n.tag!==27||Al(n),Iu(n,r);break;case 6:Al(n);break;case 26:Dl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||W||i.parentNode.removeChild(i),Iu(n,r);break;case 22:n.memoizedState===null&&Iu(n,r);break;case 30:Dl(n,n.return),Iu(n,r);break;case 7:Dl(n,n.return);default:Iu(n,r)}e=e.sibling}}function Lu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Lu(i,a,n),Sl(4,a);break;case 1:if(Lu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Co(l[i],c)}catch(e){X(r,r.return,e)}}s&&o&64&&wl(a),El(a,a.return);break;case 27:n&2&&zl(a);case 5:a.tag!==5&&a.tag!==27||kl(a),Lu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 6:kl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||au||Km(bm(c.ownerDocument),a.type,c),Lu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 12:Lu(i,a,n);break;case 31:Lu(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Lu(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Lu(i,a,n),El(a,a.return);break;case 30:Lu(i,a,n),El(a,a.return);break;case 7:El(a,a.return);default:Lu(i,a,n)}t=t.sibling}}function Ru(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ma(n))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ma(e))}function Bu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Vu(e,t,n,r),t=t.sibling;else i&&nu(t)}function Vu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bu(e,t,n,r),a&2048&&Sl(9,t);break;case 1:Bu(e,t,n,r);break;case 3:Bu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ma(a)));break;case 12:if(a&2048){Bu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else Bu(e,t,n,r);break;case 31:Bu(e,t,n,r);break;case 13:Bu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&tu(t),o._visibility&2?Bu(e,t,n,r):(o._visibility|=2,Hu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&tu(s),o._visibility&2?Bu(e,t,n,r):Uu(e,t)),a&2048&&Ru(s,t);break;case 24:Bu(e,t,n,r),a&2048&&zu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Jl(a.child,!0),Jl(t.child,!0))),Bu(e,t,n,r);break;default:Bu(e,t,n,r)}}function Hu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Hu(a,o,s,c,i),Sl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Hu(a,o,s,c,i)):u._visibility&2?Hu(a,o,s,c,i):Uu(a,o),i&&l&2048&&Ru(o.alternate,o);break;case 24:Hu(a,o,s,c,i),i&&l&2048&&zu(o.alternate,o);break;default:Hu(a,o,s,c,i)}t=t.sibling}}function Uu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Uu(n,r),i&2048&&Ru(r.alternate,r);break;case 24:Uu(n,r),i&2048&&zu(r.alternate,r);break;default:Uu(n,r)}t=t.sibling}}var Wu=8192;function Gu(e,t,n){if(e.subtreeFlags&Wu)for(e=e.child;e!==null;)Ku(e,t,n),e=e.sibling}function Ku(e,t,n){switch(e.tag){case 26:Gu(e,t,n),e.flags&Wu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,G,e.memoizedState,e.memoizedProps));break;case 5:Gu(e,t,n),e.flags&Wu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=G;G=bm(e.stateNode.containerInfo),Gu(e,t,n),G=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Wu,Wu=16777216,Gu(e,t,n),Wu=r):Gu(e,t,n));break;case 30:if((e.flags&Wu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Vl===null&&(Vl=new Map),Vl.set(r,i)}Gu(e,t,n);break;default:Gu(e,t,n)}}function qu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Zu(r,e)}qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yu(e),e=e.sibling}function Yu(e){switch(e.tag){case 0:case 11:case 15:Ju(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Ju(e);break;case 12:Ju(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):Ju(e);break;default:Ju(e)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Zu(r,e)}qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),Xu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function Zu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Cl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var Qu={getCacheForType:function(e){var t=wa(Aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wa(Aa).controller.signal}},$u=typeof WeakMap==`function`?WeakMap:Map,K=0,ed=null,q=null,J=0,Y=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return K&2&&J!==0?J&-J:P.T===null?yt():Ff()}function Nd(){if(ud===0){if(!(J&536870912)||V){var e=rt;rt<<=1,!(rt&3932160)&&(rt=262144),ud=e}else ud=536870912}return e=Ao.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(gi(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===ed&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,J,ud,!1)),ft(e,n),K&2&&e===ed||(e===ed&&(!(K&2)&&(cd|=n),od===4&&zd(e,J,ud,!1)),Df(e))}function Id(e,t,n){if(K&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||st(e,t),a=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n))a=Jd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-Ve(),10<a)){if(zd(r,t,ud,!nd),ot(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=gp(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}}while(1);Df(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},Vl=null,Ku(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-Ve():(a&4194048)===a?gd-Ve():0,m=eh(d,m),m!==null)?(Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l)):rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Br(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zd(e,t,n,r){t=ct(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Bd(){return K&6?!0:(Of(0,!1),!1)}function Vd(){if(q!==null){if(Y===0)var e=q.return;else e=q,ga=ha=null,is(e),io=null,ao=0,e=q;for(;e!==null;)xl(e.alternate,e),e=e.return;q=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),ed=e,q=n=Ni(e.current,null),J=t,Y=0,td=null,nd=!1,rd=st(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=ct(e,t),Ci(),n}function Ud(e,t){H=null,P.H=mc,t===Ja||t===Xa?(t=no(),Y=3):t===Ya?(t=no(),Y=4):Y=t===Mc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,q===null&&(od=1,Ec(e,Vi(t,e.current)))}function Wd(){var e=Ao.current;return e===null?!0:(J&4194048)===J?jo===null:(J&62914560)===J||J&536870912?e===jo:!1}function Gd(){var e=P.H;return P.H=mc,e===null?mc:e}function Kd(){var e=P.A;return P.A=Qu,e}function qd(){od=4,nd||(J&4194048)!==J&&Ao.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||ed===null||zd(ed,J,ud,!1)}function Jd(e,t,n){var r=K;K|=2;var i=Gd(),a=Kd();(ed!==e||J!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(Y!==0&&q!==null){var s=q,c=td;switch(Y){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:Ao.current===null&&(t=!0);var l=Y;if(Y=0,td=null,ef(e,s,c,l),n&&rd){o=0;break a}break;default:l=Y,Y=0,td=null,ef(e,s,c,l)}}Yd(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,ga=ha=null,K=r,P.H=i,P.A=a,q===null&&(ed=null,J=0,Ci()),o}function Yd(){for(;q!==null;)Qd(q)}function Xd(e,t){var n=K;K|=2;var r=Gd(),a=Kd();ed!==e||J!==t?(vd=null,_d=Ve()+500,Hd(e,t)):rd=st(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=td;b:switch(Y){case 1:Y=0,td=null,ef(e,t,o,1);break;case 2:case 9:if(Qa(o)){Y=0,td=null,$d(t);break}t=function(){Y!==2&&Y!==9||ed!==e||(Y=7),Df(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Qa(o)?(Y=0,td=null,$d(t)):(Y=0,td=null,ef(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Ym(s):c.stateNode.complete){Y=0,td=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,tf(u))}break b}}Y=0,td=null,ef(e,t,o,5);break;case 6:Y=0,td=null,ef(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return ga=ha=null,P.H=r,P.A=a,K=n,q===null?(ed=null,J=0,Ci(),od):0}function Zd(){for(;q!==null&&!ze();)Qd(q)}function Qd(e){var t=fl(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?tf(e):q=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=Kc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:is(t);var r=t;r===na&&(V?(la(r),r.tag===5&&r.stateNode!=null&&(ra=r.stateNode)):(la(r),V=!0));default:xl(n,t),t=q=Pi(t,ad),t=fl(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):q=t}function ef(e,t,n,r){ga=ha=null,is(t),io=null,ao=0;var i=t.return;try{if(jc(e,i,t,n,J)){od=1,Ec(e,Vi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;od=1,Ec(e,Vi(n,e.current)),q=null;return}t.flags&32768?(V||r===1?e=!0:rd||J&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ao.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,nd);return}e=t.return;var n=yl(t.alternate,t,ad);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);od===0&&(od=5)}function nf(e,t){do{var n=bl(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);od=6,q=null}function rf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(K&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ed&&(q=ed=null,J=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=Si,pt(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Fa(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Ge,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Bl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,a=K,K|=4;try{mu(e,t,n)}finally{K=a,F.p=i,P.T=r}}bd=1,Bl?Dd=Mp(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,Pu(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=P.T,P.T=null;var i=F.p;F.p=2;var a=K;K|=4;try{du=fu=!1,Au(t,e,n),n=cp;var o=Kr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Gr(s.ownerDocument.documentElement,s)){if(c!==null&&qr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Wr(s,h),v=Wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gh=!!sp,cp=sp=null}finally{K=a,F.p=i,P.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=K;K|=4;try{gu(e,t.alternate,t)}finally{K=i,F.p=r,P.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,Be();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),vt(r),n=n.stateNode,Ze&&typeof Ze.onCommitFiberRoot==`function`)try{Ze.onCommitFiberRoot(Xe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=P.T,a=F.p,F.p=2,P.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{P.T=n,F.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&ff(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),Of(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ma(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=vt(Cd),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,K&6)throw Error(i(331));var c=K;if(K|=4,Yu(o.current),Vu(o,o.current,s,n),K=c,Of(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot==`function`)try{Ze.onPostCommitFiberRoot(Xe,o)}catch{}return!0}finally{F.p=a,P.T=r,df(e,t)}}function mf(e,t,n){t=Vi(n,t),t=Oc(e.stateNode,t,2),e=_o(e,t,2),e!==null&&(ft(e,2),Df(e))}function X(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Vi(n,e),n=kc(2),r=_o(t,n,2),r!==null&&(Ac(n,r,t,e),ft(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(id=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(J&n)===n&&(od===4||od===3&&(J&62914560)===J&&300>Ve()-hd?K&2?ld|=n:Hd(e,0):ld|=n,dd===J&&(dd=0)),Df(e)}function _f(e,t){t===0&&(t=ut()),e=Ei(e,t),e!==null&&(ft(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),_f(e,n)}function bf(e,t){return Le(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=J,a=ot(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||st(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&hp()&&(e=Ef);for(var t=Ve(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}bd!==0&&bd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=lt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=J,n=ot(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Re(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||st(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Re(r),vt(n)){case 2:case 8:n=We;break;case 32:n=Ge;break;case 268435456:n=qe;break;default:n=Ge}return r=Mf.bind(null,e),n=Le(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Re(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=J;return r=ot(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),jf(e,Ve()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(ff())return null;Id(e,t,!0)}function Pf(){bp(function(){K&6?Le(Ue,kf):Af()})}function Ff(){if(Ef===0){var e=Ra;e===0&&(e=nt,nt<<=1,!(nt&261888)&&(nt=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:gn(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[Ct]||null).action),o=r.submitter;o&&(t=(t=o[Ct]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Rn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Z=0;Z<pi.length;Z++){var Rf=pi[Z];mi(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}mi(ai,`onAnimationEnd`),mi(oi,`onAnimationIteration`),mi(si,`onAnimationStart`),mi(`dblclick`,`onDoubleClick`),mi(`focusin`,`onFocus`),mi(`focusout`,`onBlur`),mi(ci,`onTransitionRun`),mi(li,`onTransitionStart`),mi(ui,`onTransitionCancel`),mi(di,`onTransitionEnd`),Bt(`onMouseEnter`,[`mouseout`,`mouseover`]),Bt(`onMouseLeave`,[`mouseout`,`mouseover`]),Bt(`onPointerEnter`,[`pointerout`,`pointerover`]),Bt(`onPointerLeave`,[`pointerout`,`pointerover`]),zt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),zt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),zt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),zt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){yi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){yi(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[z];n===void 0&&(n=t[z]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,Lt.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Kf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=jt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}wn(function(){var r=a,i=yn(n),s=[];a:{var c=fi.get(e);if(c!==void 0){var l=Rn,u=e;switch(e){case`keypress`:if(Nn(n)===0)break a;case`keydown`:case`keyup`:l=nr;break;case`focusin`:u=`focus`,l=qn;break;case`focusout`:u=`blur`,l=qn;break;case`beforeblur`:case`afterblur`:l=qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ar;break;case ai:case oi:case si:l=Jn;break;case di:l=or;break;case`scroll`:case`scrollend`:l=Bn;break;case`wheel`:l=sr;break;case`copy`:case`cut`:case`paste`:l=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=rr;break;case`submit`:l=ir;break;case`toggle`:case`beforetoggle`:l=cr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Tn(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==vn&&(u=n.relatedTarget||n.fromElement)&&(jt(u)||u[wt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?jt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=rr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Nt(c),h=l==null?u:Nt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,jt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Yf):null,c!==null&&Xf(s,u,c,d,!1),l!==null&&f!==null&&Xf(s,f,l,d,!0)))}a:{if(c=r?Nt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Or;else if(Sr(c)){if(kr)_=Rr;else{_=Ir;var v=Fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&pn(r.elementType)&&(_=Or):_=Lr;if(_&&=_(e,r)){Cr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Nt(r):window,e){case`focusin`:(Sr(v)||v.contentEditable===`true`)&&(Yr=v,Xr=r,Zr=null);break;case`focusout`:Zr=Xr=Yr=null;break;case`mousedown`:Qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Qr=!1,$r(s,n,i);break;case`selectionchange`:if(Jr)break;case`keydown`:case`keyup`:$r(s,n,i)}var y;if(ur)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else vr?gr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(pr&&n.locale!==`ko`&&(vr||b!==`onCompositionStart`?b===`onCompositionEnd`&&vr&&(y=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,vr=!0)),v=Jf(r,b),0<v.length&&(b=new Xn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=_r(n),y!==null&&(b.data=y)))),(y=fr?yr(e,n):br(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Vf(s,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Tn(e,n),i!=null&&r.unshift(qf(e,i,a)),i=Tn(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Tn(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=Tn(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
|
|
9
|
+
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&ln(e,``+r);else return;break;case`className`:qt(e,`class`,r);break;case`tabIndex`:qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:qt(e,n,r);break;case`style`:fn(e,r,o);return;case`data`:if(t!==`object`){qt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=_n);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=gn(r),e.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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Kt(e,`popover`,r);break;case`xlinkActuate`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Kt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=mn.get(n)||n,Kt(e,n,r);else return}B=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:fn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)ln(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=_n);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Rt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ct]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}B=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Kt(e,n,r)}return}B=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}rn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&on(e,!!r,n,!0):on(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}cn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(pn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(B=!0),o=m;break;case`name`:m!==f&&(B=!0),a=m;break;case`checked`:m!==f&&(B=!0),u=m;break;case`defaultChecked`:m!==f&&(B=!0),d=m;break;case`value`:m!==f&&(B=!0),s=m;break;case`defaultValue`:m!==f&&(B=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}nn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(B=!0),p=o;break;case`defaultValue`:o!==l&&(B=!0),c=o;break;case`multiple`:o!==l&&(B=!0),s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?on(e,!!n,n?[]:``,!1):on(e,!!n,t,!0)):on(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(B=!0),p=a;break;case`defaultValue`:a!==o&&(B=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}sn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(B=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(pn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[St]=r,n[Ct]=t,np(n,e,t),Ft(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=jt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),Zp(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),At(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Ot])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===_n&&(e.onclick=null),At(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);At(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=F.d;F.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Bd();return e||t}function Cm(e){var t=Mt(e);t!==null&&t.tag===5&&t.type===`form`?nc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=tn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ft(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+tn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+tn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+tn(n.imageSizes)+`"]`)):i+=`[href="`+tn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[kt]=!0,o.onload=o.onerror=function(){It(o)}),Ft(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+tn(r)+`"][href="`+tn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ft(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Pt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ft(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Pt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=D({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ft(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Pt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ft(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=we.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Pt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Pt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Pt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+tn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[kt]){r.loading=1;return}}else t=e.createElement(`link`),t[kt]=!0,t.onload=t.onerror=It.bind(null,t),np(t,`link`,n),Ft(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+tn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+tn(n.href)+`"]`);if(r)return t.instance=r,Ft(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ft(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ft(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ft(a),a):(r=n,(a=vm.get(o))&&(r=D({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ft(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ot]||a[St]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ft(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:M,Provider:null,Consumer:null,_currentValue:_e,_currentValue2:_e,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dt(0),this.hiddenUpdates=dt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ji(3,null,null,t),e.current=a,a.stateNode=e,t=ja(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},mo(a),e}function uh(e){return e?(e=ki,e):ki}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=go(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=_o(e,r,t),n!==null&&(Fd(n,e,t),vo(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Ei(e,67108864);t!==null&&Fd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Md();t=_t(t);var n=Ei(e,t);n!==null&&Fd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,yh(e,t,n,r)}finally{F.p=a,P.T=i}}function vh(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,yh(e,t,n,r)}finally{F.p=a,P.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Qe(o);s.entanglements[1]|=c,o&=~c}Df(a),!(K&6)&&(_d=Ve()+500,Of(0,!1))}}break;case 31:case 13:s=Ei(a,2),s!==null&&Fd(s,a,2),Bd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=yn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=jt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xh=e,null}function Ch(e){switch(e){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(He()){case Ue:return 2;case We:return 8;case Ge:case Ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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 Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Mt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=jt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,bt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vn=r,n.target.dispatchEvent(r),vn=null}else return t=Mt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Mt(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ct]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ct]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dh(n,Md(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Bd(),t[wt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.1`)throw Error(i(527,Kh,`19.3.1`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Xe=Jh.inject(qh),Ze=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[wt]=t.current,Wf(e),new Wh(t)}})),g=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g();function y(e){if(e?.schemaVersion!==1||!Array.isArray(e.versions)||!e.versions.length)throw Error(`Version history is missing or has an unsupported format.`);let t=1/0;for(let n of e.versions){let e=Number(n?.id?.slice(1));if(!/^v[1-9]\d*$/.test(n?.id)||!Number.isSafeInteger(e)||e>=t||n.file!==`versions/${n.id}/index.html`||n.label!==`Version ${e}`||typeof n.name!=`string`||!n.name.trim()||!Array.isArray(n.notes)||n.notes.some(e=>typeof e!=`string`)||!/^[a-f0-9]{64}$/.test(n.sha256)||n.savedAt!==null&&(typeof n.savedAt!=`string`||!Number.isFinite(Date.parse(n.savedAt))))throw Error(`Version history contains an invalid entry.`);t=e}return e}var b=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),x=o(((e,t)=>{t.exports=b()})),S=(0,_.createContext)({});function C(e){let t=(0,_.useRef)(null);return t.current===null&&(t.current=e()),t.current}var w=typeof window<`u`?_.useLayoutEffect:_.useEffect,T=(0,_.createContext)(null);function E(e,t){e.indexOf(t)===-1&&e.push(t)}function D(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var O=(e,t,n)=>n>t?t:n<e?e:n,k={},A=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ee=e=>typeof e==`object`&&!!e,te=e=>/^0[^.\s]+$/u.test(e);function ne(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e,M=(...e)=>e.reduce((e,t)=>n=>t(e(n))),re=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ie=class{constructor(){this.subscriptions=[]}add(e){return E(this.subscriptions,e),()=>this.remove(e)}remove(e){D(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},ae=e=>e*1e3,N=e=>e/1e3,oe=(e,t)=>t?1e3/t*e:0,se=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},ce=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function le(e,t,n,r){return e===t&&n===r?j:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ce(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ce(s+1e-7,e,n)-i-r)}return ce(s,t,r)}}var ue=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,de=e=>t=>1-e(1-t),fe=le(.33,1.53,.69,.99),pe=de(fe),me=ue(pe),he=e=>e>=1?1:(e*=2)<1?.5*pe(e):.5*(2-2**(-10*(e-1))),ge=e=>1-Math.sin(Math.acos(e)),P=de(ge),F=ue(ge),_e=le(.42,0,1,1),ve=le(0,0,.58,1),ye=le(.42,0,.58,1),be=e=>Array.isArray(e)&&typeof e[0]!=`number`;function xe(e,t){return be(e)?e[se(0,e.length,t)]:e}var I=e=>Array.isArray(e)&&typeof e[0]==`number`,Se={linear:j,easeIn:_e,easeInOut:ye,easeOut:ve,circIn:ge,circInOut:F,circOut:P,backIn:pe,backInOut:me,backOut:fe,anticipate:he},Ce=e=>typeof e==`string`,we=e=>{if(I(e)){let[t,n,r,i]=e;return le(t,n,r,i)}return Ce(e)?Se[e]:e},Te={delta:0,timestamp:0,isProcessing:!1},Ee;function De(){Ee=void 0}var L={now:()=>(Ee===void 0&&L.set(Te.isProcessing||k.useManualTiming?Te.timestamp:performance.now()),Ee),set:e=>{Ee=e,queueMicrotask(De)}},Oe=e=>Math.round(e*1e5)/1e5,ke=e=>t=>typeof t==`string`&&t.startsWith(e),Ae=ke(`--`),je=ke(`var(--`),Me=e=>je(e)?Ne.test(e.split(`/*`)[0].trim()):!1,Ne=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pe(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Fe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ie={...Fe,transform:e=>O(0,1,e)},Le={...Fe,default:1},Re=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ze(e){return e==null}var Be=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ve=(e,t)=>n=>!!(typeof n==`string`&&Be.test(n)&&n.startsWith(e)||t&&!ze(n)&&Object.prototype.hasOwnProperty.call(n,t)),He=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Re);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ue=e=>O(0,255,e),We={...Fe,transform:e=>Math.round(Ue(e))},Ge={test:Ve(`rgb`,`red`),parse:He(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+We.transform(e)+`, `+We.transform(t)+`, `+We.transform(n)+`, `+Oe(Ie.transform(r))+`)`},Ke=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function qe(e){let t=e.length>5?2:1,n=Ke(e,3,t);return{red:parseInt(Ke(e,0,t),16),green:parseInt(Ke(e,1,t),16),blue:parseInt(Ke(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var Je={test:Ve(`#`),parse:qe,transform:Ge.transform},Ye=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xe=Ye(`deg`),Ze=Ye(`%`),R=Ye(`px`),Qe=Ye(`vh`),$e=Ye(`vw`),et={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},tt={test:Ve(`hsl`,`hue`),parse:He(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ze.transform(Oe(t))+`, `+Ze.transform(Oe(n))+`, `+Oe(Ie.transform(r))+`)`},nt={test:e=>Ge.test(e)||Je.test(e)||tt.test(e),parse:e=>Ge.test(e)?Ge.parse(e):tt.test(e)?tt.parse(e):Je.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ge.transform(e):tt.transform(e),getAnimatableNone:e=>{let t=nt.parse(e);return t.alpha=0,nt.transform(t)}},rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,it=new RegExp(Re.source),at=new RegExp(rt.source,`i`);function ot(e){return isNaN(e)&&typeof e==`string`&&(it.test(e)||at.test(e))}var st=`number`,ct=`color`,lt=`var`,ut=`var(`,dt="${}",ft=/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+)(?![a-z]*\()/giu;function pt(e){let t=e.toString();return it.test(t)||at.test(t)}function mt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ft,e=>(nt.test(e)?(r.color.push(a),i.push(ct),n.push(nt.parse(e))):e.startsWith(ut)?(r.var.push(a),i.push(lt),n.push(e)):(r.number.push(a),i.push(st),n.push(parseFloat(e))),++a,dt)).split(dt),indexes:r,types:i}}function ht(e){return mt(e).values}function gt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===st?Oe(r[a]):e===ct?nt.transform(r[a]):r[a]}return i}}function _t(e){return gt(mt(e))}var vt=e=>typeof e==`number`?0:nt.test(e)?nt.getAnimatableNone(e):e,yt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:vt(e);function bt(e){let t=mt(e);return gt(t)(t.values.map((e,n)=>yt(e,t.split[n])))}var xt={test:ot,parse:ht,createTransformer:_t,getAnimatableNone:bt};function St(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ct({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=St(s,r,e+1/3),a=St(s,r,e),o=St(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function wt(e,t){return n=>n>0?t:e}var z=(e,t,n)=>e+(t-e)*n,Tt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Et=[Je,Ge,tt],Dt=e=>Et.find(t=>t.test(e));function Ot(e){let t=Dt(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ct(n)),n}var kt=(e,t)=>{let n=Ot(e),r=Ot(t);if(!n||!r)return wt(e,t);let i={...n};return e=>(i.red=Tt(n.red,r.red,e),i.green=Tt(n.green,r.green,e),i.blue=Tt(n.blue,r.blue,e),i.alpha=z(n.alpha,r.alpha,e),Ge.transform(i))},At=new Set([`none`,`hidden`]);function jt(e,t){return At.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mt(e,t){return n=>z(e,t,n)}function Nt(e){return typeof e==`number`?Mt:typeof e==`string`?Me(e)?wt:nt.test(e)?kt:Lt:Array.isArray(e)?Pt:typeof e==`object`?nt.test(e)?kt:Ft:wt}function Pt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Nt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ft(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function It(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Lt=(e,t)=>{let n=mt(e),r=mt(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?At.has(e)&&!r.values.length||At.has(t)&&!n.values.length?jt(e,t):M(Pt(It(n,r),r.values),gt(r)):wt(e,t)},Rt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function zt(e,t){let n=Rt.exec(e);if(!n)return;let r=Rt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Oe(z(a,o,e))+i}function Bt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return z(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=zt(e,t);if(n)return n}return Nt(e)(e,t)}var Vt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ht(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var Ut=40;function Wt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Vt.reduce((e,t)=>(e[t]=Ht(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Ut),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Vt.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Vt.length;t++)o[Vt[t]].cancel(e)},state:n,steps:o}}var{schedule:B,cancel:Gt,steps:Kt}=Wt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0,Te),qt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>B.update(t,e),stop:()=>Gt(t),now:()=>Te.isProcessing?Te.timestamp:L.now()}},Jt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Yt=2e4;function Xt(e,t=50,n=Yt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Zt(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Xt(o),Yt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:N(s)}}var Qt=100,$t=10,en=1,tn=800,nn=.3,rn=.3,an=.01,on=2,sn=.005,cn=.5,ln=.01,un=10,dn=.05,fn=e=>e<0?1/Math.max(1+e,dn):Math.max(1-e,dn);function pn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return gn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function mn(e,t){return e*Math.sqrt(1-t*t)}var hn=12;function gn(e,t,n){let r=n;for(let n=1;n<hn;n++)r-=e(r)/t(r);return r}var _n=.001;function vn({duration:e=tn,bounce:t=nn}){let n,r,i=fn(t);e=O(ln,un,N(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=mn(t,i),o=Math.exp(-r);return _n-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=mn(t*t,i);return(-n(t)+_n>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=gn(n,r,a),s=o*pn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:ae(e)}}var yn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function bn(e,t){if(yn(e,t))return e}function xn(e){let t=bn(e.stiffness),n=bn(e.damping,!0),r=bn(e.mass),i={...e,stiffness:t??Qt,damping:n??$t,mass:r??en,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=fn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*pn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,vn(i)),i.isResolvedFromDuration=!0;yn(i.stiffness)&&yn(i.damping,!0)||(i.stiffness=Qt,i.damping=$t)}return i}function Sn(e=rn,t=nn){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=xn({...n}),f=e=>d?0:-N(e),p=s/(2*Math.sqrt(o*c)),m=N(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?an:on),g.restDelta=n.restDelta||(e?sn:cn)};_();let v,y,b;if(p<1){let e=mn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>ae(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=ae(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Xt(S),Yt),t=Jt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var Cn=Object.assign(Sn,{applyToOptions:e=>{let t=Zt(e,100,Sn);return e.ease=t.ease,e.duration=ae(t.duration),e.type=`keyframes`,e}});function wn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=Cn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Tn(e,t,n){let r=[],i=k.mix||Bt,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=M(Array.isArray(t)?t[o]||j:t,a)),r.push(a)}return r}function En(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Tn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=re(e[r],e[r+1],n);return s[r](i)};return n?t=>l(O(e[0],e[a-1],t)):l}function Dn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=re(0,t,r);e.push(z(n,1,i))}}function On(e){let t=[0];return Dn(t,e.length-1),t}function kn(e,t){return e.map(e=>e*t)}function An(e,t){return e.map(()=>t||ye).splice(0,e.length-1)}function jn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=be(r)?r.map(we):we(r)||ye,s={done:!1,value:t[0]};if(!a&&t.length===2&&!Array.isArray(o)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,i=n===r?void 0:(k.mix||Bt)(n,r);return{calculatedDuration:e,next:t=>(s.value=i?i(o(e>0?O(0,1,t/e):1)):r,s.done=t>=e,s)}}let c=En(kn(n&&n.length===t.length?n:On(t),e),t,{ease:Array.isArray(o)?o:An(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var Mn=5;function Nn(e,t,n){let r=Math.max(t-Mn,0);return oe(n-e(r),t-r)}function Pn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Nn(t=>e.next(t).value,t,e.next(t).value)}var Fn=e=>e!==null;function In(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ln={decay:wn,inertia:wn,tween:jn,keyframes:jn,spring:Cn};function Rn(e){typeof e.type==`string`&&(e.type=Ln[e.type])}var zn=40,Bn=(e,t)=>t-e>zn&&!k.useManualTiming?t:e;function Vn(e,t){return{kind:e,animation:t,timestamp:L.now(),frameTimestamp:Te.timestamp,frameIsProcessing:Te.isProcessing}}function Hn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Vn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Un(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Vn(`layout-animation-start`,e),node:t})}catch{}}var Wn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Gn=e=>e/100,Kn=e=>Math.round(e*1e4)/1e4,qn=class extends Wn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Hn(this,this.options)}initAnimation(){let{options:e}=this;Rn(e);let{type:t=jn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jn;this.mixKeyframes=void 0,s!==jn&&typeof o[0]!=`number`&&(this.mixKeyframes=M(Gn,e.mixer?.(o[0],o[1])||Bt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Xt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Bn(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==wn&&(f.value=In(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Kn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==wn?In(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=O(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return N(this.calculatedDuration)}get iterationDuration(){return this.duration+N(this.options.delay??0)}get time(){return N(this.currentTime)}set time(e){e=ae(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Pn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=qt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(L.now()),this.holdTime=this.currentTime}complete(){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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Jn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Yn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Re)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Jn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Xn=/\b([a-z-]*)\(.*?\)/gu,Zn={...xt,getAnimatableNone:e=>{let t=e.match(Xn);return t?t.map(Yn).join(` `):e}},Qn={...xt,getAnimatableNone:e=>{let t=xt.parse(e);return xt.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},$n={...Fe,transform:Math.round},er={rotate:Xe,pathRotation:Xe,rotateX:Xe,rotateY:Xe,rotateZ:Xe,scale:Le,scaleX:Le,scaleY:Le,scaleZ:Le,skew:Xe,skewX:Xe,skewY:Xe,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Ie,originX:et,originY:et,originZ:R},tr={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,...er,zIndex:$n,fillOpacity:Ie,strokeOpacity:Ie,numOctaves:$n},nr={...tr,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:Zn,WebkitFilter:Zn,mask:Qn,WebkitMask:Qn},rr=e=>nr[e],ir=new Set([Zn,Qn]);function ar(e,t){let n=rr(e);return ir.has(n)||(n=xt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function or(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var sr=e=>e*180/Math.PI,cr=e=>ur(sr(Math.atan2(e[1],e[0]))),lr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:cr,rotateZ:cr,skewX:e=>sr(Math.atan(e[1])),skewY:e=>sr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ur=e=>(e%=360,e<0&&(e+=360),e),dr=cr,fr=e=>Math.hypot(e[0],e[1]),pr=e=>Math.hypot(e[4],e[5]),mr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fr,scaleY:pr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(fr(e)+pr(e))/2,rotateX:e=>ur(sr(Math.atan2(e[6],e[5]))),rotateY:e=>ur(sr(Math.atan2(-e[2],e[0]))),rotateZ:dr,rotate:dr,skewX:e=>sr(Math.atan(e[4])),skewY:e=>sr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hr(e){return+!!e.includes(`scale`)}function gr(e,t){if(!e||e===`none`)return hr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return hr(t);let r=(n[1]?mr:lr)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var _r=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return gr(n,t)},vr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],yr=new Set([...vr,`pathRotation`]),br=e=>e===Fe||e===R,xr=new Set([`x`,`y`,`z`]),Sr=vr.filter(e=>!xr.has(e));function Cr(e){let t=[];return Sr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var wr=new Set([`bottom`,`right`]);function Tr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Er=({transform:e})=>gr(e,`x`),Dr=({transform:e})=>gr(e,`y`),Or={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Tr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Tr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:Er,y:Dr,translateX:Er,translateY:Dr},kr=new Set,Ar=!1,jr=!1,Mr=!1;function Nr(){if(jr){let e=[],t=new Set,n=new Set;kr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),wr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Cr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}jr=!1,Ar=!1,kr.forEach(e=>e.complete(Mr)),kr.clear()}function Pr(){kr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jr=!0)})}function Fr(){Mr=!0,Pr(),Nr(),Mr=!1}function Ir(e,t,n){if(typeof e==`string`){if(A(e)||te(e))return parseFloat(e);if(!xt.test(e)&&xt.test(n))return ar(t,n)}return e??void 0}var Lr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(kr.add(this),Ar||(Ar=!0,B.read(Pr),B.resolveKeyframes(Nr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Ir(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),kr.delete(this)}cancel(){this.state===`scheduled`&&(kr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Rr=e=>e.startsWith(`--`);function zr(e,t,n){Rr(t)?e.style.setProperty(t,n):e.style[t]=n}var Br={};function Vr(e,t){let n=ne(e);return()=>Br[t]??n()}var Hr=Vr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ur=Vr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Wr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Wr([0,.65,.55,1]),circOut:Wr([.55,0,1,.45]),backIn:Wr([.31,.01,.66,-.59]),backOut:Wr([.33,1.53,.69,.99])};function Kr(e,t){if(e)return typeof e==`function`?Ur()?Jt(e,t):`ease-out`:I(e)?Wr(e):Array.isArray(e)?e.map(e=>Kr(e,t)||Gr.easeOut):Gr[e]}function qr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Kr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Jr(e){return typeof e==`function`&&`applyToOptions`in e}function Yr({type:e,...t}){return Jr(e)&&Ur()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Xr=class extends Wn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=Yr(e);this.animation=qr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=In(r,this.options,o,this.speed);this.updateMotionValue?.(e),zr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Hn(this,e,c)}play(){this.isStopped||(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{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return N(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ae(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Hr()?(this.animation.timeline=e,t?.(this.animation),j):n(this)}},Zr={anticipate:he,backInOut:me,circInOut:F};function Qr(e){return e in Zr}function $r(e){typeof e.ease==`string`&&Qr(e.ease)&&(e.ease=Zr[e.ease])}var ei=class extends Xr{constructor(e){$r(e),Rn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(L.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new qn({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?O(0,10,a):0,s=this.sample(a);n&&r&&zr(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},ti=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(xt.test(e)||e===`0`)&&!e.startsWith(`url(`));function ni(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ri(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ti(i,t),s=ti(a,t);return!o||!s?!1:ni(e)||(n===`spring`||Jr(n))&&r}function ii(e){e.duration=0,e.type=`keyframes`}var ai=new Set([`opacity`,`clipPath`,`filter`,`transform`]),oi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function si(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&oi.test(e[t]))return!0;return!1}var ci=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),li=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ui=()=>!k.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function di(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(ai.has(n)||li.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ui()&&(ai.has(n)||li.has(n)&&si(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!ci(e)}var fi=(e,t)=>t&&typeof e==`number`?t.transform(e):e,pi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},mi=vr.length,hi={},gi=(e,t,n=fi(t,er[e]))=>(hi[e]||(hi[e]=(pi[e]||e)+`(`))+n+`)`,_i=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function vi(e,t,n){let r=``;for(let i=0;i<mi;i++){let a=vr[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=fi(o,tr[a]));_i(a,o)||(r+=gi(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=gi(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var yi=new WeakMap,bi=200,xi=.001,Si=.1,Ci=.001,wi=100,Ti=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ei=(e,t)=>Math.abs(e-t)<=xi,Di=(e,t)=>e-t,Oi=(e,t,n)=>On(Array(n+1)).map(n=>z(e,t,n)),ki=e=>e.motionValue.owner,Ai=e=>yi.get(e),ji=({state:e})=>e===`idle`||e===`finished`,Mi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Ni=({name:e,motionValue:t})=>e&&vr.includes(e)&&t?.owner?.current instanceof HTMLElement&&ui()&&Ur();function Pi(e){let t=ki(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Mi(t,`transform`)||`none`)===`none`&&!Mi(t,`pathRotation`)&&!t.projection?.isProjecting()&&!ci(e)}var Fi=class extends qn{constructor(e){let t=ki(e).current,{driver:n=qt}=e,r,i=Pi(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Ai(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Ai(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return Ai(ki(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(L.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=I(n)?Wr(n):Ti(n)&&Gr[n];if(o&&!i&&!r&&e.length===2&&t===jn&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||jn)===jn?u||On(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=L.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Ii(ki(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(L.now())}get time(){return this.isAccelerated()?N(O(0,this.totalDuration,this.at(L.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function Ii(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?vr:a){let a=r.get(s),c=t===void 0?Mi(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&_i(r,i)||(n+=gi(r,i)+` `)}return(t?n.trim():n)||`none`},g=(e,t)=>h(m(e,t)),_=(e=m())=>{t.style.transform=h(e,!0)},v=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>e.cancel()),s=[]},y=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),b=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=L.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),A.schedule(!1)}),e.oncancel=()=>s.includes(r)&&A.demote(),s.push(r)},x=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},S=(e,t,n,r)=>{let i=Math.min(bi,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Oi(t,n,i).concat(r).sort(Di),o=e=>re(t,n,e),s,c;for(let n of e){let e=n.numberAt(t),r=a.map(t=>n.numberAt(t)-e),i=r[r.length-1],o=r.some(e=>Math.abs(e)*xi>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(o&&!s)s=l,c=t=>(n.numberAt(t)-e)/o;else if(l.some((e,t)=>!Ei(e,o&&s[t])))return}if(!s||s.every((e,t)=>Ei(e,o(a[t]))))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Kn(t)+` `+Kn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&x(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},C=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Ci:Si))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...x(e=>r.numberAt(e),t,n));i.push(n)}},s=Oi(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Di))e>c&&o(c,e,0),c=e;return i.sort(Di)},w=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},T=(e,t,n,r,i={fill:`both`},a)=>{let o=e.flatMap(e=>e.boundaries(t,n)),s=r||S(e,t,n,o),c=s?[t,n]:C(e,t,n,o),l=c.map(e=>g(e,a)),u={transform:l};return s||(u.offset=c.map(e=>re(t,n,e))),l.every(e=>e===l[0])&&(_(m(t,a)),u=null),y(u,{...i,duration:n-t,easing:s||`linear`})},E=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),a)e.sync();else{if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=vr.filter(t=>{if(r.has(t))return!0;let n=i[t]=Mi(e,t);return n!==void 0&&!_i(t,n)}),v(!1);let m=!l&&w(d);try{if(m&&m[1]>t){let[e,n,r]=m;b(T(d,e,n,r),e-t,n-e)}else c>t&&(b(T(d,t,c),0,c-t),p.forEach(e=>e<c-1&&b(y(null,{duration:e-t}),0,e-t)));if(l){let e=u+Math.floor((c-u)/l)*l;b(T(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||v(),!0},D=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r&&n.updatePlaybackRate&&n.playState===`running`&&Math.abs(Number(n.currentTime)-o)<20?n.playbackRate!==r&&n.updatePlaybackRate(r):r?(n.playbackRate=r,n.startTime=e-o/r):(n.startTime=null,n.currentTime=o)}return!0},O=()=>!n.size&&(u=!0,Ai(t)===A&&yi.delete(t),A.isJS||v(),!0),k=()=>{let t=L.now();if(A.isJS||(A.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Mi(e,n.name),o.has(n)||(c=!0))}),A.isFinishing=!1),l=!1,u||(n.forEach(e=>ji(e)&&n.delete(e)),O()))return;for(let e of n)if(!e.canAccelerate)return A.demote(!0);A.isJS&&(A.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!D(t)){if(a){if(t-f<wi)return A.demote();f=t}if(!E(t))return A.demote()}},A={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,Te.isProcessing?B.render(k,!1,!0):queueMicrotask(k)))},release(e){ji(e)&&n.delete(e),O()||A.schedule(!0)},check(){if(!A.isJS){for(let t in i)if(Mi(e,t)!==i[t]&&!p(t))return A.schedule(!0,!0)}},demote(e){if(!(A.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),A.isJS=!0,o=new Map,v(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return yi.set(t,A),A}var Li=class extends Wn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Lr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let u=ri(e,i,a,o);u||((k.instantAnimations||!s)&&l?.(In(e,n,t)),e[0]=e[e.length-1],ii(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&di(n),p=!f&&Ni(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Bn(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new ei(n)}catch{m=new qn(n)}}else m=p?new Fi(n):new qn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Fr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}},Ri=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return zi(this.animations,`duration`)}get iterationDuration(){return zi(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function zi(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Bi=class extends Ri{then(e,t){return this.finished.finally(e).then(()=>{})}};function Vi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Hi=30,Ui=e=>!isNaN(parseFloat(e)),Wi={current:void 0},Gi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ui(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new ie)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new ie,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){B.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){t&&(this.updatedAt=L.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){Wi.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Hi);return oe(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function Ki(e,t){return new Gi(e,t)}function qi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ji(e,t){let n=e?.[t]??e?.default??e;return n===e?n:qi(n,e)}var Yi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zi={type:`keyframes`,duration:.8},Qi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$i=(e,{keyframes:t})=>t.length>2?Zi:yr.has(e)?e.startsWith(`scale`)?Xi(t[1]):Yi:Qi,ea=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function ta(e){for(let t in e)if(!ea.has(t))return!0;return!1}var na=(e,t,n,r={},i,a)=>o=>{let s=Ji(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=ae(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};ta(s)||Object.assign(u,$i(e,u)),u.duration&&=ae(u.duration),u.repeatDelay&&=ae(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ii(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ii(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=In(u.keyframes,s);if(e!==void 0){B.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new qn(u):new Li(u)},ra=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V(e){let t=ra.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ia(e,t,n=1){let[r,i]=V(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return A(e)?parseFloat(e):e}return Me(i)?ia(i,t,n+1):i}function aa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function oa(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...aa(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function sa(e,t,n){return oa(e.getProps(),t,n,e)}var ca=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,la=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...vr]),ua=e=>Array.isArray(e);function da(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ki(n))}function fa(e){return ua(e)?e[e.length-1]||0:e}function pa(e,t){let{transitionEnd:n={},transition:r={},...i}=sa(e,t)||{};i={...i,...n};for(let t in i)da(e,t,fa(i[t]))}var ma=e=>!!(e&&e.getVelocity);function ha(e){return!!(ma(e)&&e.add)}function ga(e,t){let n=e.getValue(`willChange`);if(ha(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var _a=`data-framer-appear-id`;function va(e){return e.props[_a]}var ya=typeof window<`u`;function ba({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function xa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?qi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ba(f,t))continue;let o={delay:n,...Ji(f?.out[t]||a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){B.update(()=>r.set(i));continue}let p=!1;if(ya&&window.MotionHandoffAnimation){let n=va(e);if(n){let e=window.MotionHandoffAnimation(n,t,B);e!==null&&(o.startTime=e,p=!0)}}ga(e,t);let m=l??e.shouldReduceMotion;r.start(na(t,r,i,m&&la.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>B.update(()=>{o&&pa(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Sa(e,t,n={}){let r=sa(e,t,ca(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?xa(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Sa(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Vi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Ca(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Sa(e,t,n))):typeof t==`string`?Sa(e,t,n):Promise.all(xa(e,sa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var wa={test:e=>e===`auto`,parse:e=>e},Ta=e=>t=>t.test(e),Ea=[Fe,R,Ze,Xe,$e,Qe,wa],Da=e=>Ea.find(Ta(e));function Oa(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||te(e)}var ka=new Set([`auto`,`none`,`0`]);function Aa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ka.has(t)&&pt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=ar(n,i))}var ja=class extends Lr{constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Pe(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Me(r))){let i=ia(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!la.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Da(r),o=Da(i);if(Pe(r)!==Pe(i)&&Or[n])this.needsMeasurement=!0;else if(a!==o){if(br(a)&&br(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Or[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Oa(e[t]))&&n.push(t);n.length&&Aa(e,n,t)}measure(){let{element:e,name:t}=this;return Or[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},Ma=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Na=[];function Pa(e){Fa(e),Na.unshift(e)}function Fa(e){D(Na,e)}function Ia(e){return Na.find(t=>t.test(e))}function La(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?B.update(()=>l.set(c)):(l.start(na(o,l,c,s&&la.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>B.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Ra(e,t,n,r,i){return La(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=za(i)??e.read(t,r,i)}a=Ki(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function za(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Ba(e){return ee(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Va(e){return ee(e)&&`ownerSVGElement`in e}var Ha={};function Ua(e){return Ha.current?.add(e),e}var Wa=e=>Ha.current?Ha.current.bind(e):e;function Ga(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Ha.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Ka=class{constructor(e=B.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function qa(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new Ka(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function Ja(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(_i(i,a)||(t+=(t&&` `)+gi(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+gi(`rotate`,i)),t||`none`}var Ya=new Set([`originX`,`originY`,`originZ`]),Xa=(e,t)=>fi(e.get(t)?.get(),tr[t]),Za=(e,t,n,r)=>{let i,a;if(yr.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>vr.indexOf(e)-vr.indexOf(t)))}t.get(`transform`)||(!Ba(e)&&!t.get(`transformBox`)&&Za(e,t,`transformBox`,new Gi(`fill-box`)),t.set(`transform`,new Gi(`none`),()=>{yi.get(e)?.check(),e.style.transform=Ja(t)})),a=t.get(`transform`)}else Ya.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Gi(``),()=>{let n=Xa(t,`originX`)??`50%`,r=Xa(t,`originY`)??`50%`,i=Xa(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=Rr(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=fi(r.getCurrent(),tr[n])};return t.set(n,r,i,a)},Qa=e=>Ba(e)||Va(e),$a=(e,t)=>{if(yr.has(t))return _r(e,t);let n=getComputedStyle(e),r=Rr(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},eo=qa(Za,{test:Qa,read:$a});function to(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function no(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(yr.has(e))o=!0;else if(Ae(e))i[e]=n;else{let t=fi(n,tr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=vi(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var ro={offset:`stroke-dashoffset`,array:`stroke-dasharray`},io={offset:`strokeDashoffset`,array:`strokeDasharray`};function ao(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ro:io;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var oo=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function so(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(no(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of oo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ao(d,i,a,o,!1)}function co(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var lo=(e,t,n,r,i=n)=>{let a=co(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=to(i));let o=tr[n]||tr[i],s=a?()=>{e[i]=fi(r.get(),tr[n])}:()=>{let t=fi(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function uo(e,t,n,r){return B.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Gi(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var fo=qa((e,t,n,r)=>n.startsWith(`path`)&&!yr.has(n)?uo(e,t,n,r):n.startsWith(`attr`)?lo(e,t,n,r,po(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(yr.has(n)||Ya.has(n)||Rr(n)||n in e.style?Za:lo)(e,t,n,r),{test:Va,read:(e,t)=>yr.has(t)?tr[t]?.default||0:Rr(t)||oo.includes(t)?$a(e,t)||e.getAttribute(to(t))||0:(t=po(t),e.getAttribute(to(t))??e.getAttribute(t)??void 0)});function po(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function mo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ho({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function go(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _o(e){return e===void 0||e===1}function vo({scale:e,scaleX:t,scaleY:n}){return!_o(e)||!_o(t)||!_o(n)}var yo=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function bo(e){return vo(e)||So(e)||xo(e)}function xo(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function So(e){return Co(e.x)||Co(e.y)}function Co(e){return e&&e!==`0%`}function wo(e,t,n){return n+t*(e-n)}function To(e,t,n,r,i){return i!==void 0&&(e=wo(e,i,r)),wo(e,n,r)+t}function Eo(e,t=0,n=1,r,i){e.min=To(e.min,t,n,r,i),e.max=To(e.max,t,n,r,i)}function Do(e,{x:t,y:n}){Eo(e.x,t.translate,t.scale,t.originPoint),Eo(e.y,n.translate,n.scale,n.originPoint)}var Oo=.999999999999,ko=1.0000000000001;function Ao(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++)a=n[s],o=a.projectionDelta,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(jo(e.x,-a.scroll.offset.x),jo(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Do(e,o)),r&&(r.path?.[s]||r)!==a&&bo(a.latestValues)&&Po(e,a.latestValues,a.layout?.layoutBox));t.x<ko&&t.x>Oo&&(t.x=1),t.y<ko&&t.y>Oo&&(t.y=1)}function jo(e,t){e.min+=t,e.max+=t}function Mo(e,t,n,r,i=.5){Eo(e,t,n,z(e.min,e.max,i),r)}function No(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Po(e,t,n){let r=n??e;Mo(e.x,No(t.x,r.x),t.scaleX,t.scale,t.originX),Mo(e.y,No(t.y,r.y),t.scaleY,t.scale,t.originY)}function Fo(e,t){return mo(go(e.getBoundingClientRect(),t))}function Io(e,t,n){let r=Fo(e,n),{scroll:i}=t;return i&&(jo(r.x,i.offset.x),jo(r.y,i.offset.y)),r}var Lo=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Ro={},zo=e=>Va(e)?fo:eo,Bo=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ja}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Fo(this.current)}getProps(){return Ro}};function Vo(e,t,n,r){if(Ha.current?.track(e),r)return La(e=>r.getValue(e,null),t,n,r);let i=zo(e);return Ra(i,e,t,n,new Bo(i,e))}var H=qa((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ee(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:U,cancel:Ho}=Wt(queueMicrotask,!1);function Uo(e,t,n){let r=ma(e)?e:Ki(e);return r.start(na(``,r,t,n)),r.animation}var Wo={},Go={value:null,addProjectionMetrics:null,countProjection:void 0};function Ko(e,t){let n=L.now();e=Wa(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(Gt(r),e(a-t))};return B.setup(r,!0),Ua(()=>Gt(r))}function qo(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Jo(e){return Va(e)&&e.tagName===`svg`}function Yo(e){return ma(e)?e.get():e}var Xo=e=>typeof e==`number`?e:parseFloat(e),Zo=Ma.length,Qo=e=>typeof e==`number`||R.test(e);function $o(e,t,n,r,i,a){i?(e.opacity=z(0,n.opacity??1,ts(r)),e.opacityExit=z(t.opacity??1,0,ns(r))):a&&(e.opacity=z(t.opacity??1,n.opacity??1,r));for(let i=0;i<Zo;i++){let a=Ma[i],o=es(t,a),s=es(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Qo(o)===Qo(s)?(e[a]=Math.max(z(Xo(o),Xo(s),r),0),(Ze.test(s)||Ze.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<yo.length;i++){let a=yo[i];(t[a]||n[a])&&(e[a]=z(t[a]||0,n[a]||0,r))}}function es(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ts=rs(0,.5,P),ns=rs(.5,.95,j);function rs(e,t,n){return r=>r<e?0:r>t?1:n(re(e,t,r))}function is(e,t){e.min=t.min,e.max=t.max}function as(e,t){is(e.x,t.x),is(e.y,t.y)}function os(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var ss=.9999,cs=1.0001,ls=-.01,us=.01;function ds(e){return e.max-e.min}function fs(e,t,n){return Math.abs(e-t)<=n}function ps(e,t,n,r=.5){e.origin=r,e.originPoint=z(t.min,t.max,e.origin),e.scale=ds(n)/ds(t),e.translate=z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ss&&e.scale<=cs||isNaN(e.scale))&&(e.scale=1),(e.translate>=ls&&e.translate<=us||isNaN(e.translate))&&(e.translate=0)}function ms(e,t,n,r){ps(e.x,t.x,n.x,r?.originX),ps(e.y,t.y,n.y,r?.originY)}function hs(e,t,n,r=0){e.min=(r?z(n.min,n.max,r):n.min)+t.min,e.max=e.min+ds(t)}function gs(e,t,n,r){hs(e.x,t.x,n.x,r?.x),hs(e.y,t.y,n.y,r?.y)}function _s(e,t,n,r=0){let i=r?z(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+ds(t)}function vs(e,t,n,r){_s(e.x,t.x,n.x,r?.x),_s(e.y,t.y,n.y,r?.y)}function ys(e,t,n,r,i){return e-=t,e=wo(e,1/n,r),i!==void 0&&(e=wo(e,1/i,r)),e}function bs(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ze.test(t)&&(t=parseFloat(t),t=z(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=z(a.min,a.max,r);e===a&&(s-=t),e.min=ys(e.min,t,n,s,i),e.max=ys(e.max,t,n,s,i)}function xs(e,t,[n,r,i],a,o){bs(e,t[n],t[r],t[i],t.scale,a,o)}var Ss=[`x`,`scaleX`,`originX`],Cs=[`y`,`scaleY`,`originY`];function ws(e,t,n,r){xs(e.x,t,Ss,n?.x,r?.x),xs(e.y,t,Cs,n?.y,r?.y)}var Ts=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Es=Ts(`applewebkit/`)&&!Ts(`chrome/`)?Math.round:j;function Ds(e){e.min=Es(e.min),e.max=Es(e.max)}function Os(e){Ds(e.x),Ds(e.y)}var ks=()=>({translate:0,scale:1,origin:0,originPoint:0}),As=()=>({x:ks(),y:ks()}),js=()=>({min:0,max:0}),Ms=()=>({x:js(),y:js()});function Ns(e){return e.translate===0&&e.scale===1}function Ps(e){return Ns(e.x)&&Ns(e.y)}function Fs(e,t){return e.min===t.min&&e.max===t.max}function Is(e,t){return Fs(e.x,t.x)&&Fs(e.y,t.y)}function Ls(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rs(e,t){return Ls(e.x,t.x)&&Ls(e.y,t.y)}function zs(e){return ds(e.x)/ds(e.y)}function Bs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Vs=class{constructor(){this.members=[]}add(e){E(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(D(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(D(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function Hs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Us={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(R.test(e))e=parseFloat(e);else return e}return`${Hs(e,t.target.x)}% ${Hs(e,t.target.y)}%`}},Ws={borderRadius:Object.assign({},Us,{applyTo:Ma.slice()}),borderTopLeftRadius:Us,borderTopRightRadius:Us,borderBottomLeftRadius:Us,borderBottomRightRadius:Us,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=xt.parse(e);if(i.length>5)return r;let a=xt.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=z(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}};function Gs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<yo.length;e++){let t=yo[e],i=n[t];i&&(r+=`${t}(${i}deg) `),!e&&n.pathRotation&&(r+=`rotate(${n.pathRotation}deg) `)}}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function Ks(e){return[e(`x`),e(`y`)]}var qs=(e,t)=>e.depth-t.depth,Js=class{constructor(){this.children=[],this.isDirty=!1}add(e){E(this.children,e),this.isDirty=!0}remove(e){D(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qs),this.isDirty=!1,this.children.forEach(e)}},Ys={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xs=[`z`,`skew`,`skewZ`],Zs=1e3,Qs=0;function $s(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var ec=e=>e.instance&&yi.get(e.instance)?.demote()&&e.resetSkewAndRotation();function tc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=va(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,B,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&tc(r)}function nc(e){if(e)return e.options.allowProjection===!1?nc(e.parent):e.projection}function rc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Wo,{...Ws,...Wo}),class{static create(e,t,n){let{layoutId:r,layout:i,drag:a,dragConstraints:o,layoutScroll:s,layoutRoot:c,layoutAnchor:l,layoutCrossfade:u}=t,d=e.projection=new this(e.latestValues,t[`data-framer-portal-id`]?void 0:nc(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&qo(o),visualElement:e,animationType:typeof i==`string`?i:`both`,initialPromotionConfig:n,crossfade:u,layoutScroll:s,layoutRoot:c,layoutAnchor:l});let f=d.getStack()?.lead;f&&!d.root.isUpdateBlocked()&&(f.willUpdate(),f.scheduleCheckAfterUnmount())}constructor(e={},n=t?.()){this.id=Qs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oc),this.nodes.forEach(_c),this.nodes.forEach(vc),this.nodes.forEach(sc),Go.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Js)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ie),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){this.eventHandlers.get(e)?.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Va(t)&&!Jo(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;B.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=Ko(i,250),Ys.hasAnimatedSinceResize&&(Ys.hasAnimatedSinceResize=!1,this.nodes.forEach(gc)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||wc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Rs(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ji(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||gc(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(yc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;ec(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,ec(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(uc),this.nodes.forEach(lc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pc),this.nodes.forEach(mc),this.nodes.forEach(hc),this.nodes.forEach(ic),this.nodes.forEach(ac)):this.nodes.forEach(dc),this.clearAllSnapshots();let e=L.now();Te.delta=O(0,1e3/60,e-Te.timestamp),Te.timestamp=e,Te.isProcessing=!0,Kt.update.process(Te),Kt.preRender.process(Te),Kt.render.process(Te),Te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,U.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!ds(this.snapshot.measuredBox.x)&&!ds(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=Ms(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t?.notify(`LayoutMeasure`,this.layout.layoutBox,e?.layoutBox)}updateScroll(e=`measure`){let{scroll:t,instance:i}=this,{animationId:a}=this.root;if(this.options.layoutScroll&&i&&!(t&&t.animationId===a&&t.phase===e)){let o=r(i);this.scroll={animationId:a,phase:e,isRoot:o,offset:n(i),wasRoot:t?t.isRoot:o}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&ec(this);let t=this.projectionDelta&&!Ps(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||bo(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Os(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Ms();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Dc))){let{scroll:e}=this.root;e&&(jo(t.x,e.offset.x),jo(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Ms();if(as(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&as(t,e),jo(t.x,i.offset.x),jo(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||Ms();as(a,e);for(let e=i;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(jo(a.x,-n.scroll.offset.x),jo(a.y,-n.scroll.offset.y)),bo(n.latestValues)&&Po(a,n.latestValues,n.layout?.layoutBox)}return!r&&bo(this.latestValues)&&Po(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=Ms();as(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!bo(n.latestValues))continue;let r;n.instance&&(vo(n.latestValues)&&n.updateSnapshot(),r=Ms(),as(r,n.measurePageBox())),ws(t,n.latestValues,n.snapshot?.layoutBox,r)}return bo(this.latestValues)&&ws(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Te.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Ms(),this.targetWithTransforms=Ms()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gs(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):as(this.target,this.layout.layoutBox),Do(this.target,this.targetDelta)):as(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&(!a.resumingFrom==!this.resumingFrom||a.options.layoutRoot&&!a.resumingFrom)&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Go.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||vo(this.parent.latestValues)||So(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ms(),this.relativeTargetOrigin=Ms(),vs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),as(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Te.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;as(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ao(this.layoutCorrected,this.treeScale,this.path,t&&(e.relativeTarget&&!e.relativeParent.resumingFrom?e.relativeParent:!0)),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Ms());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(os(this.prevProjectionDelta.x,this.projectionDelta.x),os(this.prevProjectionDelta.y,this.projectionDelta.y)),ms(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Bs(this.projectionDelta.x,this.prevProjectionDelta.x)&&Bs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Go.countProjection?.(2)):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){this.options.visualElement?.scheduleRender(),e&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=As(),this.projectionDelta=As(),this.projectionDeltaWithTransform=As()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=As();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Ms(),c=r?.source!==this.layout?.source,l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Cc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);bc(o.x,e.x,n),bc(o.y,e.y,n),r&&(o.x.translate=r.x,o.y.translate=r.y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Sc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Is(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Ms(),as(f,this.relativeTarget)),c&&(this.animationValues=a,$o(a,i,this.latestValues,n,d,u)),r?.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Gt(this.pendingAnimation),void 0),this.pendingAnimation=B.update(()=>{Ys.hasAnimatedSinceResize=!0,this.motionValue||=Ki(0),this.motionValue.jump(0,!1),this.currentAnimation=Uo(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),Un(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(Zs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Ec(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||Ms(),Tc(i.x,t.x,e.x),Tc(i.y,t.y,e.y)}as(t,i),Po(t,r),ms(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Vs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?.transition,preserveFollowOpacity:n?.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){this.getStack()?.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let{latestValues:t}=e;if(!xo(t))return;let n={};for(let t=0;t<Xs.length;t++)$s(Xs[t],e,n,this.animationValues);for(let t=0;t<yo.length;t++)$s(yo[t],e,n,this.animationValues);e.render();for(let t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;let n=this.getLead();if(!this.isVisible&&n!==this){e.visibility=`hidden`;return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Yo(t?.pointerEvents)||``,e.transform=r?r(this.latestValues,``):`none`;return}if(!this.projectionDelta||!this.layout||!n.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,e.visibility=``,e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Yo(t?.pointerEvents)||``),this.hasProjected&&!bo(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=Gs(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=n.animationValues?n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:n===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Wo){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=Wo[t],c=a===`none`?i[t]:r(i[t],n);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=n===this?Yo(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(lc),this.root.sharedNodes.clear()}}}function ic(e){e.updateLayout(),fc(e)}function ac(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source,o=(r,a)=>{if(i===`size`)Ks(e=>{let t=ds(r[e]);r[e].min=a[e].min,r[e].max=r[e].min+t});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;is(r[e],a[e])}else Ec(i,t.layoutBox,n)&&Ks(t=>{let n=ds(a[t]);r[t].max=r[t].min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+n)})},s=a?t.measuredBox:t.layoutBox;o(s,n);let c=As();ms(c,n,t.layoutBox);let l=As();ms(l,a?e.applyTransform(r,!0):n,s);let u=!Ps(c),d=!1,f=e.getClosestProjectingParent();if((!e.resumeFrom||f?.options.layoutRoot&&e.resumeFrom.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:r,layout:i}=f;if(r&&i){let s=e.options.layoutAnchor||void 0,c=Ms();vs(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=Ms();vs(l,n,i.layoutBox,s),a&&o(c,l),Rs(c,l)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=c,e.relativeParent=f)}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else e.isLead()&&e.options.onExitComplete?.();e.options.transition=void 0}function oc(e){Go.countProjection?.(0),e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function sc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cc(e){e.clearSnapshot()}function lc(e){e.clearMeasurements()}function uc(e){e.isLayoutDirty=!0,e.updateLayout()}function dc(e){e.isLayoutDirty=!1}function fc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Ks(e=>jo(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function pc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function mc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function hc(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function gc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _c(e){e.resolveTargetDelta()}function vc(e){e.calcProjection()}function yc(e){e.resetSkewAndRotation()}function bc(e,t,n){e.translate=z(t.translate,0,n),e.scale=z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xc(e,t,n,r){e.min=z(t.min,n.min,r),e.max=z(t.max,n.max,r)}function Sc(e,t,n,r){xc(e.x,t.x,n.x,r),xc(e.y,t.y,n.y,r)}function Cc(e){return e.animationValues?.opacityExit!==void 0}var wc={duration:.45,ease:[.4,0,.1,1]};function Tc(e,t,n){e.max=ds(n)+(e.min=t.min)}function Ec(e,t,n){return e===`position`||e===`preserve-aspect`&&!fs(zs(t),zs(n),.2)}function Dc(e){return e!==e.root&&e.scroll?.wasRoot}function Oc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var kc=rc({attachResizeListener:(e,t)=>Oc(e,`resize`,t),measureScroll:Lo,checkIsScrollRoot:()=>!0}),Ac={current:void 0},jc=rc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ac.current){let e=new kc({});e.mount(window),e.setOptions({layoutScroll:!0}),Ac.current=e}return Ac.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Mc=new WeakMap;function Nc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Pc(e){return typeof e==`string`||Array.isArray(e)}var Fc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ic=[`initial`].concat(Fc);function Lc(e){if(Nc(e.animate))return!0;for(let t=0;t<Ic.length;t++)if(Pc(e[Ic[t]]))return!0;return!1}function Rc(e){return!!(Lc(e)||e.variants)}function zc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(ma(i))e.addValue(r,i);else if(ma(a))e.addValue(r,Ki(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ki(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Bc={current:null},Vc={current:!1},Hc=typeof window<`u`;function Uc(){if(Vc.current=!0,Hc){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Bc.current=e.matches;e.addEventListener(`change`,t),t()}else Bc.current=!1}}var Wc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Gc={};function Kc(e){Gc=e}function qc(){return Gc}var Jc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Lr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,B.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Lc(t),this.isVariantNode=Rc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&ma(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted&&!this.presenceContext?.keepValuesOnRemount)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Mc.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Vc.current||Uc(),this.shouldReduceMotion=Bc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),Gt(this.notifyUpdate),Gt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||=new Set).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.get(e)?.(),t.accelerate&&ai.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Xr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ae(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=yr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),yi.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Gc){let t=Gc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ms()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&yi.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Wc.length;t++){let n=Wc[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zc(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){let n=this.props.values?.[e];return n||(n=this.values.get(e),n===void 0&&t!==void 0&&(n=Ki(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n)}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(A(n)||te(n))?n=parseFloat(n):typeof n!=`number`&&!xt.test(n)&&xt.test(t)&&(n=ar(e,t)),this.setBaseTarget(e,ma(n)?n.get():n)),ma(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return(this.events[e]||(this.events[e]=new ie)).add(t)}notify(e,...t){this.events[e]?.notify(...t)}scheduleRenderMicrotask(){U.render(this.render)}},Yc=class extends Jc{constructor(){super(...arguments),this.KeyframeResolver=ja}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ma(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Xc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Zc(e,{layout:t,layoutId:n}){return yr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Wo[e]||e===`opacity`)}function Qc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(ma(r[t])||i&&ma(i[t])||Zc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function $c(e){return window.getComputedStyle(e)}var el=class extends Yc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Xc}mount(e){super.mount(e)}readValueFromInstance(e,t){if(yr.has(t))return this.projection?.isProjecting?hr(t):_r(e,t);{let n=$c(e),r=(Ae(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fo(e,t)}build(e,t,n){no(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Qc(e,t,n)}},tl=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function nl(e){return{point:{x:e.pageX,y:e.pageY}}}var rl=e=>t=>tl(t)&&e(t,nl(t));function il(e,t,n,r){return Oc(e,t,rl(n),r)}var al=new WeakMap,ol,sl=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Va(r)&&`getBBox`in r?r.getBBox()[t]:r[n],cl=sl(`inline`,`width`,`offsetWidth`),ll=sl(`block`,`height`,`offsetHeight`);function ul({target:e,borderBoxSize:t}){al.get(e)?.forEach(n=>{n(e,{get width(){return cl(e,t)},get height(){return ll(e,t)}})})}function dl(e){e.forEach(ul)}function fl(){typeof ResizeObserver<`u`&&(ol=new ResizeObserver(dl))}function pl(e,t){ol||fl();let n=Ga(e);return n.forEach(e=>{let n=al.get(e);n||(n=new Set,al.set(e,n)),n.add(t),ol?.observe(e)}),()=>{n.forEach(e=>{let n=al.get(e);n?.delete(t),n?.size||ol?.unobserve(e)})}}var ml=new Set,hl;function gl(){hl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ml.forEach(t=>t(e))},window.addEventListener(`resize`,hl)}function _l(e){return ml.add(e),hl||gl(),()=>{ml.delete(e),!ml.size&&typeof hl==`function`&&(window.removeEventListener(`resize`,hl),hl=void 0)}}function vl(e,t){return Ua(typeof e==`function`?_l(e):pl(e,t))}var yl=(e,t)=>Math.abs(e-t);function bl(e,t){let n=yl(e.x,t.x),r=yl(e.y,t.y);return Math.sqrt(n**2+r**2)}var xl=new Set([`auto`,`scroll`]),Sl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=wl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=El(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=bl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:L.now()});let{onStart:i,onMove:a}=this.handlers;t||(i?.(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=wl(t,this.transformPagePoint),this.hasPendingMove=!0,B.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=El(e.type===`pointercancel`?this.lastMoveEventInfo:wl(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!tl(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=wl(nl(e),this.transformPagePoint),{point:c}=s;this.history=[{...c,timestamp:L.now()}];let{onSessionStart:l}=t;l&&l(e,El(s,this.history));let u={passive:!0,capture:!0};this.removeListeners=M(il(this.contextWindow,`pointermove`,this.handlePointerMove,u),il(this.contextWindow,`pointerup`,this.handlePointerUp,u),il(this.contextWindow,`pointercancel`,this.handlePointerUp,u)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(xl.has(e.overflowX)||xl.has(e.overflowY))&&this.scrollPositions.set(t,Cl(t)),t=t.parentElement}this.scrollPositions.set(window,Cl(window)),this.removeScrollListeners=M(Oc(window,`scroll`,this.onElementScroll,{capture:!0}),Oc(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=Cl(e),i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),B.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),Gt(this.updatePoint)}},Cl=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function wl(e,t){return t?{point:t(e.point)}:e}function Tl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function El({point:e},t){return{point:e,delta:Tl(e,Ol(t)),offset:Tl(e,Dl(t)),velocity:kl(t,.1)}}function Dl(e){return e[0]}function Ol(e){return e[e.length-1]}function kl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ol(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ae(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>ae(t)*2&&(r=e[1]);let a=N(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Al=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function jl(e){return Al.has(e.tagName)||e.isContentEditable===!0}var Ml=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Nl(e){return Ml.has(e.tagName)||e.isContentEditable===!0}var Pl={x:!1,y:!1};function Fl(){return Pl.x||Pl.y}function Il(e){return e===`x`||e===`y`?Pl[e]?null:(Pl[e]=!0,()=>{Pl[e]=!1}):Pl.x||Pl.y?null:(Pl.x=Pl.y=!0,()=>{Pl.x=Pl.y=!1})}function Ll(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?z(n,e,r.max):Math.min(e,n)),e}function Rl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function zl(e,{top:t,left:n,bottom:r,right:i}){return{x:Rl(e.x,n,i),y:Rl(e.y,t,r)}}function Bl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Vl(e,t){return{x:Bl(e.x,t.x),y:Bl(e.y,t.y)}}function Hl(e,t){let n=.5,r=ds(e),i=ds(t);return i>r?n=re(t.min,t.max-r,e.min):r>i&&(n=re(e.min,e.max-i,t.min)),O(0,1,n)}function Ul(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Wl=.35;function Gl(e=Wl){return e===!1?e=0:e===!0&&(e=Wl),{x:Kl(e,`left`,`right`),y:Kl(e,`top`,`bottom`)}}function Kl(e,t,n){return{min:ql(e,t),max:ql(e,n)}}function ql(e,t){return typeof e==`number`?e:e[t]||0}function Jl(e){let t=``;for(let n of e.path){n.scroll=void 0,n.updateScroll();let{scroll:r}=n;n!==e.root&&r&&(t+=r.offset.x+`,`+r.offset.y+`,`)}return t}var Yl=new WeakMap,Xl=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ms(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=Il(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),Ks(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Me(t)&&(t=ia(t,this.visualElement.current)||0),R.test(t))t=parseFloat(t);else if(Ze.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=ds(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&B.update(()=>a(e,t),!1,!0),ga(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=nu(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,o),this.updateAxis(`y`,o),this.point&&this.point.move(),this.visualElement.render(),a&&B.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sl(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&B.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t?.setActive(`whileDrag`,!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,t){let{drag:n}=this.readProps();if(!t||!tu(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=Ll(i,a,this.elastic[e])),this.point?this.point[e]=i:r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{projection:n}=this.visualElement,r=n&&(n.layout||n.measure(!1)),i=this.constraints;Zl(e)?this.constraints&&this.scroll===Jl(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?zl(r.layoutBox,e):!1,this.elastic=Gl(t),i!==this.constraints&&!Zl(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ks(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ul(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Zl(e))return!1;let n=Ql(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=Jl(r);let i=Io(n,r.root,this.visualElement.getTransformPagePoint()),a=Vl(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(ho(a));this.hasMutatedConstraints=!!e,e&&(a=mo(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c={bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},l=i=>r&&!(this.point&&o)&&tu(i,t||n,this.currentDirection)?e[i]:0;if(this.point&&!o)return this.point.release({x:l(`x`),y:l(`y`)},c).then(s);let u=this.constraints||{},d=Ks(e=>{if(!tu(e,t||n,this.currentDirection))return;let r=u[e]||{};(o===!0||o===e)&&(r={min:0,max:0});let i={type:`inertia`,velocity:l(e),...c,...r};return this.startAxisValueAnimation(e,i)});return Promise.all(d).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ga(this.visualElement,e),n.start(na(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ks(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Ks(e=>{if(!tu(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-z(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Zl(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Ks(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Hl({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root?.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ks(t=>{let n=this.getAxisMotionValue(t);if(!tu(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(z(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Yl.set(this.visualElement,this);let e=this.visualElement.current,t=il(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Nl(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Zl(t)&&Ql(t);r&&(this.constraints=this.resolveRefConstraints(),n||=eu(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),B.read(r);let o=Oc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ks(t=>{if(!tu(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s(),n?.()}}getProps(){let e=this.readProps(),{dragElastic:t=Wl,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function Zl(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Ql=e=>`current`in e?e.current:e;function $l(e){let t=!0;return()=>{t?t=!1:e()}}function eu(e,t,n){let r=vl(e,$l(n)),i=vl(t,$l(n));return()=>{r(),i()}}function tu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function nu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function ru(e,t){let n=Ga(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Ua(()=>r.abort())]}function iu(e){return!(e.pointerType===`touch`||Fl())}function au(e,t,n={}){t=Wa(t);let[r,i,a]=ru(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!iu(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var W=(e,t)=>t?e===t||W(e,t.parentElement):!1,ou=new WeakSet;function su(e){return t=>{t.key===`Enter`&&e(t)}}function cu(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var lu=(e,t)=>{let n=!1,r=su(()=>{ou.has(e)||(n=!0,cu(e,`down`))}),i=su(()=>{n&&(n=!1,cu(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&cu(e,`cancel`)},{...t,once:!0})};function uu(e){return tl(e)&&!Fl()}var du=new WeakSet;function fu(e,t,n={}){t=Wa(t);let[r,i,a]=ru(e,n),o=e=>{let r=e.currentTarget;if(!uu(e)||du.has(e))return;ou.add(r),n.stopPropagation&&du.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ou.has(r)&&ou.delete(r),uu(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||W(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ba(e)&&(e.addEventListener(`focus`,()=>lu(e,i),i),!jl(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function pu(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=En(i,a,o);return t?s(r):s}var mu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},hu=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`]),gu=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function _u(e,t,n,r){Xc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(hu.has(n)?n:to(n),t.attrs[n])}function vu(e,t,n){let r=Qc(e,t,n);for(let n in e)if(n!==`children`&&(ma(e[n])||ma(t[n]))){let t=vr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var yu=class extends Yc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Ms}getBaseTargetFromProps(e,t){return yr.has(t)?super.getBaseTargetFromProps(e,t)??hr(t):e[t]}getDefaultValue(e){return yr.has(e)?this.latestValues[e]??hr(e):void 0}readValueFromInstance(e,t){if(yr.has(t)){let e=rr(t);return e&&e.default||0}if(oo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=hu.has(t)?t:to(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return vu(e,t,n)}build(e,t,n){so(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){_u(e,t,n,r)}mount(e){this.isSVGTag=gu(e.tagName),super.mount(e)}};function bu(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var xu=[...Fc].reverse(),Su=e=>e?.out===!0?e:e?.out;function Cu(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ca(e,t,n))),n=Tu(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,{initial:l}=o,u=r||i,d=[],f=(t=l)=>typeof t!=`boolean`&&sa(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom)||void 0,p=new Map,m={},h=1/0,g=e;do g=g.props.inherit!==!1&&g.parent;while(g&&!g.isControllingVariants);let _=u&&Su(f(l??(g&&g.props.initial))?.transition);if(xu.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?Pc(f)||f===!1?f:void 0:l,y=Pc(v),b=t===a?i.isActive:null,x=y&&l===void 0&&!(u&&c);if(i.protectedKeys={...m},!i.isActive&&b===null||!v&&!i.prevProp||Nc(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=wu(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},D;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=sa(e,n,ca(e,t))||{};E={...E,...a,...i},D=Su(r)||D}let{prevResolvedValues:O}=i;for(let t in{...O,...E}){if(t in m)continue;let n=E[t],r=O[t],a=Array.isArray(n)&&Array.isArray(r)?!bu(n,r)||S:n!==r,o;if(a&&n==null)p.has(t)||p.set(t,i.prevOut);else if(a||n!==void 0&&p.has(t)){C=!0,o=p.get(t)||_,p.delete(t)&&(w=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0;i.out[t]=o}if(i.prevProp=v,i.prevResolvedValues=E,i.prevOut=D,i.isActive&&(m={...m,...E}),C&&(!(x&&S)||w))for(let n of T){let r={type:t};if(typeof n==`string`&&u&&c&&s?.enteringChildren){let t=sa(s,n)?.transition?.delayChildren;r.delay=Vi(s.enteringChildren,e,t)}d.push({animation:n,options:r})}}),p.size){let t={},n=f(),r=n?.transition;p.forEach((i,a)=>{i&&(r={...r||e.getDefaultTransition(),[a]:i});let s=e.getValue(a);s&&(s.liveStyle=!0);let c=n&&!Array.isArray(l)?n[a]:void 0,u=e.getBaseTargetFromProps(o,a);t[a]=(c===void 0?u!==void 0&&!ma(u)?u:e.initialValues[a]===void 0?e.baseTarget[a]:void 0:c)??null}),r&&(t.transition=r),d.push({animation:t})}let v=u&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!v&&d.length?t(d):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Tu(),i=!0}}}function wu(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!bu(t,e):!1}function Tu(){let e={};for(let t of Fc)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var Eu=(0,_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Du(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ou(...e){return t=>{let n=!1,r=e.map(e=>{let r=Du(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Du(e[t],null)}}}}function ku(...e){return _.useCallback(Ou(...e),e)}var G=x(),Au=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},ju=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=Au(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=Au(e.offsetParent);return[t/i,n/a]},Mu=class extends _.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Ba(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ba(e)&&e.offsetWidth||0,r=Ba(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=ju(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function Nu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,_.useId)(),c=(0,_.useRef)(null),l=(0,_.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,_.useContext)(Eu),d=ku(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current,p=e=>{let{width:t,height:i,top:a,left:o,right:c,bottom:u,direction:d}=l.current,f=d===`rtl`,p=n===`left`?f?`right:${c}`:`left:${o}`:f?`left:${o}`:`right:${c}`,m=r===`bottom`?`bottom:${u}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return(0,_.useInsertionEffect)(()=>{let{width:e,height:n}=l.current,r=f();if(t||a===!1||!r||!e||!n)return;r.dataset.motionPopId=s;let o=r.ownerDocument,c=o.createElement(`style`);u&&(c.nonce=u);let d=i??o.head;d.appendChild(c),p(c.sheet);let m=0,h=0;return U.setup(()=>{let[e,t]=ju(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),U.read(()=>{let{sheet:e}=c;if(!e||!m&&!h)return;let t=l.current;t.left+=m,t.right-=m,t.top+=h,t.bottom-=h,e.deleteRule(0),p(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),d.contains(c)&&d.removeChild(c)}},[t]),(0,G.jsx)(Mu,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:_.cloneElement(e,{ref:d})})}var Pu=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=C(Fu),d=(0,_.useId)(),f=(0,_.useRef)(),p=(0,_.useRef)(n),m=(0,_.useRef)(r);w(()=>{p.current=n,m.current=r});let h=!0,g=(0,_.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,_.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),_.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,G.jsx)(Nu,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,G.jsx)(T.Provider,{value:g,children:e})};function Fu(){return new Map}function Iu(e=!0){let t=(0,_.useContext)(T);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,_.useId)();(0,_.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,_.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Lu(){return Ru((0,_.useContext)(T))}function Ru(e){return e===null||e.isPresent}var zu=e=>e.key||``;function Bu(e){let t=[];return _.Children.forEach(e,e=>{(0,_.isValidElement)(e)&&t.push(e)}),t}var Vu=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Iu(o),f=(0,_.useMemo)(()=>Bu(e),[e]),p=o&&!u?[]:f.map(zu),m=(0,_.useRef)(!0),h=C(()=>new Map),g=(0,_.useRef)(new Set),[v,y]=(0,_.useState)(f),[b,x]=(0,_.useState)(f);w(()=>{o&&!u&&!b.length&&d?.()},[u,o,b.length,d]);let T=(0,_.useRef)();(0,_.useEffect)(()=>()=>{let e=T.current;T.current=void 0,e?.()},[b]),w(()=>{m.current=!1;for(let e=0;e<b.length;e++){let t=zu(b[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[b,p.length,p.join(`-`)]);let E=[];if(f!==v){let e=[...f],t=0;for(let n of b){let r=p.indexOf(zu(n));r===-1?(e.splice(t++,0,n),E.push(n)):t=r+E.length+1}return E.every(e=>h.get(zu(e)))?e=f:a===`wait`&&(e=E),x(Bu(e)),y(f),null}let{forceRender:D}=(0,_.useContext)(S);return(0,G.jsx)(G.Fragment,{children:b.map(e=>{let _=zu(e),v=o&&!u?!1:f===b||p.includes(_);return(0,G.jsx)(Pu,{isPresent:v,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:v?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(D?.(),y([]),o&&d?.(),T.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Hu=(0,_.createContext)({strict:!1}),Uu={animation:[`variants`,...Fc],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`]},Wu=!1;function Gu(){if(Wu)return;let e={};for(let t in Uu)e[t]={isEnabled:e=>Uu[t].some(t=>!!e[t])};Kc(e),Wu=!0}function Ku(){return Gu(),qc()}function qu(e){let t=Ku();for(let n in e)t[n]={...t[n],...e[n]};Kc(t)}var Ju=(0,_.createContext)({});function Yu(e,t){if(Lc(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Pc(t)?t:void 0,animate:Pc(n)?n:void 0}}return e.inherit===!1?{}:t}function Xu(e){let{initial:t,animate:n}=Yu(e,(0,_.useContext)(Ju));return(0,_.useMemo)(()=>({initial:t,animate:n}),[Zu(t),Zu(n)])}function Zu(e){return Array.isArray(e)?e.join(` `):e}var Qu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $u(e,t,n){for(let r in t)!ma(t[r])&&!Zc(r,n)&&(e[r]=t[r])}function K({transformTemplate:e},t){return(0,_.useMemo)(()=>{let n=Qu();return no(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ed(e,t){let n=e.style||{},r={};return $u(r,n,e),Object.assign(r,K(e,t)),r}function q(e,t){let n={},r=ed(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var J=()=>({...Qu(),attrs:{}});function Y(e,t,n,r){let i=(0,_.useMemo)(()=>{let n=J();return so(n,t,gu(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return $u(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var td=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function nd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||td.has(e)}function rd(e,t){return e.startsWith(`on`)?!nd(e):t?.(e)??!nd(e)}function id(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||ma(e[a])||(rd(a,r)||n===!0&&nd(a)||!t&&!nd(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var ad=[`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 od(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ad.indexOf(e)>-1||/[A-Z]/u.test(e))}function sd(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??od(e)?Y:q)(t,r,i,e),l=id(t,typeof e==`string`,a,s),u=e===_.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,_.useMemo)(()=>ma(d)?d.get():d,[d]);return(0,_.createElement)(e,{...u,children:f})}function cd({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ld(n,r,i,e),renderState:t()}}function ld(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Yo(a[e]);let{initial:o,animate:s}=e,c=Lc(e),l=Rc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Nc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=oa(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var ud=e=>(t,n)=>{let r=(0,_.useContext)(Ju),i=(0,_.useContext)(T),a=()=>cd(e,t,r,i);return n?a():C(a)},dd=ud({scrapeMotionValuesFromProps:Qc,createRenderState:Qu}),fd=ud({scrapeMotionValuesFromProps:vu,createRenderState:J}),pd=Symbol.for(`motionComponentSymbol`);function md(e,t,n){let r=(0,_.useRef)(n);(0,_.useInsertionEffect)(()=>{r.current=n});let i=(0,_.useRef)(null);return(0,_.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var hd=(0,_.createContext)({});function gd(e,t,n,r,i,a){let{visualElement:o}=(0,_.useContext)(Ju),s=(0,_.useContext)(Hu),c=(0,_.useContext)(T),l=(0,_.useContext)(Eu),u=l.reducedMotion,d=l.skipAnimations,f=(0,_.useRef)(null),p=(0,_.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,_.useContext)(hd);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),(0,_.useInsertionEffect)(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[_a],v=(0,_.useRef)(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return w(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),w(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,_.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function _d(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&qu(r);let a=n?n===`svg`:od(e),o=a?fd:dd;function s(n,s){let c,l=vd(n);C(()=>!!Ac.current?.sharedNodes.get(l)?.lead&&n.initial)&&(n={...n,initial:!1});let u={...(0,_.useContext)(Eu),...n,layoutId:l},{isStatic:d,isValidProp:f}=u,p=Xu(n),m=o(n,d);if(!d&&typeof window<`u`){yd(u,r);let t=bd(u);p.visualElement=gd(e,m,u,i,t.ProjectionNode,a),(t.isEnabled||p.visualElement?.projection?.options.layoutId)&&(c=t.MeasureLayout)}return(0,G.jsxs)(Ju.Provider,{value:p,children:[c&&p.visualElement?(0,G.jsx)(c,{visualElement:p.visualElement,...u}):null,sd(e,n,md(m,p.visualElement,s),m,d,t,a,f)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,_.forwardRef)(s);return c[pd]=e,c}function vd({layoutId:e}){let t=(0,_.useContext)(S).id;return t&&e!==void 0?t+`-`+e:e}function yd(e,t){(0,_.useContext)(Hu).strict}function bd(e){let{drag:t,layout:n}=Ku();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function xd(e,t){if(typeof Proxy>`u`)return _d;let n=new Map,r=(n,r)=>_d(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,_d(a,void 0,e,t)),n.get(a))})}var Sd=(e,t)=>t.isSVG??od(e)?new yu(t):new el(t,{allowProjection:e!==_.Fragment}),Cd=class extends mu{constructor(e){super(e),e.animationState||=Cu(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Nc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},wd=0,Td={animation:{Feature:Cd},exit:{Feature:class extends mu{constructor(){super(...arguments),this.id=wd++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=sa(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},Ed=class extends mu{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Xl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Dd=e=>(t,n)=>{e&&B.update(()=>e(t,n),!1,!0)},Od=class extends mu{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Sl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Dd(e),onStart:Dd(t),onMove:Dd(n),onEnd:(e,t)=>{delete this.session,r&&B.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=il(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},kd=!1,Ad=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),jd=(e,t)=>{let{snapshot:n}=e,r=e.getStack();r?.remove(e);let i=r?.lead;if(r?.prevLead===e&&i.resumeFrom===e&&(i.resumeFrom=i.currentAnimation=e.resumingFrom=void 0),e.options.layoutId=t,!t)e.needsShow=!0;else return e.root.registerSharedNode(t,e),()=>{let{resumeFrom:t}=e;t?.isPresent!==!1&&e.getStack().members.includes(t)&&(t.hide(),e.resumeFrom=void 0,e.snapshot=n)}},Md=class extends _.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group?.add(i),r&&n?.register?.(i),kd&&i.root.didUpdate(),i.options.layoutId!==r&&jd(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...Ad(this.props),onExitComplete:()=>this.safeToRemove()})),Ys.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,layoutId:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,this.takeOver=e.layoutId===n?void 0:(o.willUpdate(),jd(o,n)),o.setOptions({...o.options,...Ad(this.props)}),kd=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||B.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),U.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;kd=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function Nd(e){let[t,n]=Iu(),r=(0,_.useContext)(S);return(0,G.jsx)(Md,{...e,layoutGroup:r,switchLayoutGroup:(0,_.useContext)(hd),isPresent:t,safeToRemove:n})}var Pd={pan:{Feature:Od},drag:{Feature:Ed,ProjectionNode:jc,MeasureLayout:Nd}};function Fd(e,t,n,r){let{props:i}=e,a=`while`+n;e.animationState&&i[a]&&e.animationState.setActive(a,r===`Start`);let o=i[`on`+n+r];o&&B.postRender(()=>o(t,nl(t)))}var Id=class extends mu{mount(){let{current:e}=this.node;e&&(this.unmount=au(e,(e,t)=>(Fd(this.node,t,`Hover`,`Start`),e=>Fd(this.node,e,`Hover`,`End`))))}unmount(){}},Ld=class extends mu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=M(Oc(this.node.current,`focus`,()=>this.onFocus()),Oc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Rd(e,t,n){e.current instanceof HTMLButtonElement&&e.current.disabled||Fd(e,t,`Tap`,n)}var zd=class extends mu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=fu(e,(e,t)=>(Rd(this.node,t,`Start`),(e,{success:t})=>Rd(this.node,e,t?``:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Bd=new WeakMap,Vd=new WeakMap,Hd=e=>{let t=Bd.get(e.target);t&&t(e)},Ud=e=>{e.forEach(Hd)};function Wd({root:e,...t}){let n=e||document;Vd.has(n)||Vd.set(n,{});let r=Vd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ud,{root:e,...t})),r[i]}function Gd(e,t,n){let r=Wd(t);return Bd.set(e,n),r.observe(e),()=>{Bd.delete(e),r.unobserve(e)}}var Kd={some:0,all:1},qd=class extends mu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Kd[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Gd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Jd(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Jd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Yd=xd(Object.assign({},Td,{inView:{Feature:qd},tap:{Feature:zd},focus:{Feature:Ld},hover:{Feature:Id}},Pd,{layout:{ProjectionNode:jc,MeasureLayout:Nd}}),Sd);function Xd(e){return(0,_.useEffect)(()=>()=>e(),[])}function Zd(e){let t=C(()=>Ki(e)),{isStatic:n}=(0,_.useContext)(Eu);if(n){let[,n]=(0,_.useState)(e);(0,_.useEffect)(()=>t.on(`change`,n),[])}return t}function Qd(e,t){let n=Zd(t()),r=()=>n.set(t());return r(),w(()=>{let t=()=>B.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Gt(r)}}),n}function $d(e){Wi.current=[],e();let t=Qd(Wi.current,e);return Wi.current=void 0,t}function ef(e,t,n,r){if(typeof e==`function`)return $d(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return nf(e,t,n,r);let i=typeof t==`function`?t:pu(t,n,r),a=Array.isArray(e)?tf(e,i):tf([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&!r?.mixer){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function tf(e,t){let n=C(()=>[]);return Qd(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function nf(e,t,n,r){let i=C(()=>Object.keys(n)),a=C(()=>({}));for(let o of i)a[o]=ef(e,t,n[o],r);return a}function rf(){!Vc.current&&Uc();let[e]=(0,_.useState)(Bc.current);return e}function af(){let e=rf(),{reducedMotion:t}=(0,_.useContext)(Eu);return t===`never`?!1:t===`always`||e}function of(e){return typeof e==`object`&&!Array.isArray(e)}function sf(e,t,n,r){return e==null?[]:typeof e==`string`&&of(t)?Ga(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function cf(e,t,n){return e*(t+1)+n*t}function lf(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function uf(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):lf(t,r)??e}function df(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(D(e,i),r--)}}function ff(e,t,n,r,i,a){df(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:z(i,a,r[o]),easing:xe(n,o)})}function pf(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function mf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var X=`easeInOut`,hf=20;function gf(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:uf(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=yf(e),{delay:l=0,times:u=On(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=Jr(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Sf(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=ae(b));let r=Zt(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Dn(u,T),c.length===1&&c.unshift(null),m&&m<hf){let e=b>0?g/b:0;b=cf(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?de(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:xe(f,e-1))}pf(u,m,e)}let E=w+b;ff(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(ma(g)){let e=_f(g,c);b(_,v,vf(`default`,e))}else{let e=sf(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=_f(r,c);for(let e in _)b(_[e],bf(v,e),vf(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};return m(e,0),a&&(a.duration=p,a.labels=u),c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(mf);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(re(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(X)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o;let{type:d,...f}=t;u.transition[i]={...f,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function _f(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function vf(e,t){return t[e]||(t[e]=[]),t[e]}function yf(e){return Array.isArray(e)?e:[e]}function bf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var xf=e=>typeof e==`number`,Sf=e=>e.every(xf);function Cf(e,t){return ma(e)||typeof e==`number`||typeof e==`string`&&!of(t)}function wf(e,t,n,r){let i=[];if(Cf(e,t))i.push(Uo(e,of(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=sf(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Vo(r,t,s,Mc.get(r))):i.push(...Ra(Ia(r)??H,r,t,s))}}return i}function Tf(e,t,n,r){let i=[];return gf(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Ki(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Cn},r).forEach(({keyframes:e,transition:t},n)=>{i.push(...wf(n,e,t))}),i}var Ef=0;function Df(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var Of=(e,t)=>t===void 0?e:{name:e,at:t};function kf(e){e.pause(),e.time=0,e.stop()}var Af=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=Ha.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new Bi(n),this.watch()):(this.invalidate(),this.flush());let{scope:r}=t;r&&(r.animations.push(this),this.finished.then(()=>D(r.animations,this)))}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+Ef++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+Ef++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=Math.abs(this.speed);return this.speed=t<this.time?-n:n,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(kf(this.group),void 0),this.isDirty=!1,this.parent=e}build(){this.isDirty=!1,this.isWrapped=!1;let e=this.group,t=0;e&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),e.cancel()):(t=e.animations.length?e.time:0,kf(e)),this.isRebuilding=!1);let{defaultTransition:n,onComplete:r,onUpdate:i,onRepeat:a,onReverseComplete:o,autoplay:s,scope:c,...l}=this.options,u={};c?.reduceMotion!==void 0&&(u.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(u.skipAnimations=c.skipAnimations),Object.assign(u,l);let d=new Map,f={},p=Ha.current;Ha.current=this.motionScope;let m;try{m=Tf(this.toSequence(d),{defaultTransition:n,...u},c,f)}finally{Ha.current=p}let h=f.labels,g=u.duration??f.duration,_=f.duration?g/f.duration:1;if(h.forEach((e,t)=>h.set(t,e*_)),this.markers=[],d.forEach((e,t)=>{e.time=h.get(t),h.delete(t),g=Math.max(g,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=h,this.totalDuration=g,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||i||a){let e=this.clock=Ki(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),m.unshift(this.clockAnimation=Uo(e,[0,g],{...u,duration:g,ease:`linear`}))}let v=this.group=new Bi(m);t=Math.min(t,g),this.isDone&&t<g&&this.newFinished(),this.scrollTimeline?this.detachScroll=v.attachTimeline(this.scrollTimeline):(v.speed=this.playbackSpeed,this.isPaused&&v.pause(),t&&(v.time=t)),this.repeatIndex=this.currentRepeat(),this.prevTime=t||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),Of(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?Of(n,r):r===void 0?n:Array.isArray(n)?Df(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:lf(e,this.labels)??this.time}currentRepeat(){let{repeat:e=0,repeatDelay:t=0,delay:n=0}=this.options,r=this.totalDuration+t,i=(this.clockAnimation?.time??0)-n;return r&&i>0?Math.min(e,Math.floor(i/r)):0}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat();if(a!==this.repeatIndex&&(this.repeatIndex=a,r?.(),i===`loop`)){let e=this.speed>0;if(this.cross(t,e?this.totalDuration:0))return;t=e?-1:1/0}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=e,!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options;(this.speed<0&&n||t)?.(),this.resolveFinished()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let e=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e&&this.finished.then(e)}};function jf(e){return Array.isArray(e)&&e.some(Array.isArray)}function Mf(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Ha.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(jf(e)){let n={...s,...i,scope:t};o&&(n.defaultTransition={...o,...n.defaultTransition}),c=new Af(e,n)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new Af([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},wf(e,i,l,t))}return c}return i}var Nf=Object.assign(Mf(),{addEffect:Pa,removeEffect:Fa});function Pf(){let e=C(()=>({current:null,animations:[]})),t=af()??void 0,{skipAnimations:n}=(0,_.useContext)(Eu);e.reduceMotion=t,e.skipAnimations=n;let r=(0,_.useMemo)(()=>Mf({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return Xd(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}var Ff=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},If=()=>new Ff;function Lf(){return C(If)}var Z=Yd;function Rf({target:e,base:t,width:n,height:r,route:i=``}){return[e.sha256,t.sha256,n,r,...i?[i]:[]].join(`|`)}function zf(e){let t=t=>e.filter(e=>e.kind===t).length;return{total:e.length,changed:t(`changed`),added:t(`added`),removed:t(`removed`)}}function Bf(e,t){return t===`all`?e:e.filter(e=>e.kind===t)}function Vf(e,t){return e===t}function Q({timeoutMs:e=8e3,onTimeout:t},{setTimeout:n=globalThis.setTimeout,clearTimeout:r=globalThis.clearTimeout}={}){let i=null,a=()=>{i!==null&&r(i),i=null};return{start(){a(),i=n(()=>{i=null,t()},e)},done:a,cancel:a}}function Hf({entries:e,comparison:t}){let n=e=>e.map(({key:e,kind:t,rect:n})=>[e,t,n.x,n.y,n.width,n.height]);return JSON.stringify([e.map(({key:e,kind:t,label:n,kindLabel:r,details:i})=>[e,t,n,r,i]),n(t.current),n(t.previous)])}function Uf(e,{waitMs:t=80,maxWaitMs:n=500}={},{setTimeout:r=globalThis.setTimeout,clearTimeout:i=globalThis.clearTimeout}={}){let a=null,o=null,s=()=>{a!==null&&i(a),o!==null&&i(o),a=null,o=null},c=()=>{s(),e()};return{schedule(){a!==null&&i(a),a=r(c,t),o===null&&(o=r(c,n))},cancel:s}}function Wf(e){return Number(e.id.slice(1))}function Gf(e,t){return e.findIndex(e=>e.id===t)}function Kf(e,t){let n=Gf(e,t);return n===-1?null:e[n+1]??null}function qf(e,t){let n=Gf(e,t);return n===-1?[]:e.slice(n+1)}function Jf(e,t,n){if(!n)return t;let r=Gf(e,n);return Gf(e,t)<r?t:e[r-1]?.id??t}function Yf(e,t,n){return qf(e,n).some(e=>e.id===t)?t:Kf(e,n)?.id??null}function Xf(e,t,n=-1,r=0){let i=-1;for(let n=0;n<e.length;n++)(i===-1||Math.abs(t-e[n])<Math.abs(t-e[i]))&&(i=n);return n>=0&&n<e.length&&Math.abs(t-e[n])<=Math.abs(t-e[i])+r?n:i}function Zf(e,t,n){return!(t>0)||!(n>0)?0:Math.min(n,Math.max(0,e/t*n))}function Qf(e,t,n,r=12){let i=[...e].reverse(),a=i.length,o=i.findIndex(e=>e.id===t),s=o===-1?a-1:o,c=Math.min(r,a),l=e=>Math.max(0,Math.min(s-Math.floor(e/2),a-e)),u=n?i.findIndex(e=>e.id===n):-1,d=u===-1?-1:Math.min(u,s),f=u===-1?-1:Math.max(u,s),p=l(c),m=Array.from({length:c},(e,t)=>p+t),h=-1;u!==-1&&u<p&&c>1&&(p=l(c-1),m=[u,...Array.from({length:c-1},(e,t)=>p+t)],h=0);let g=m.map(e=>{let t=i[e],n=`plain`;return e===s?n=`selected`:e===u?n=`base`:u!==-1&&e>d&&e<f&&(n=`range`),{id:t.id,number:Wf(t),role:n}}),_=m[m.length-1]+1;return{ticks:g,fadeStart:h===-1&&p>0,fadeEnd:_<a,gapAfter:h}}function $f(e,t){let n=t.map(Wf),r=Math.min(...n),i=Math.max(...n),a={ok:!1,hint:r===i?`Pick ${r}`:`Pick ${r} to ${i}`},o=String(e??``).trim();if(!/^\d+$/.test(o))return a;let s=Number(o);if(s<r||s>i)return a;let c=`v${s}`;return t.some(e=>e.id===c)?{ok:!0,id:c}:{ok:!1,hint:`No version ${s}`}}var ep=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`}),$=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`});function tp(e){return e.getFullYear()*1e4+e.getMonth()*100+e.getDate()}function np(e,t){let n=tp(t);if(tp(e)===n)return`Today`;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return tp(e)===tp(r)?`Yesterday`:(e.getFullYear()===t.getFullYear()?ep:$).format(e)}function rp(e,t){let n=[],r=[],i=new Map;for(let a of e){let e=a.savedAt?new Date(a.savedAt):null;if(!e||Number.isNaN(e.getTime())){r.push(a);continue}let o=tp(e),s=i.get(o);s||(s={label:np(e,t),versions:[]},i.set(o,s),n.push(s)),s.versions.push(a)}return r.length&&n.push({label:`Date unknown`,versions:r}),n}var ip=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`});function ap(e){if(!e)return null;let t=new Date(e);if(Number.isNaN(t.getTime()))return null;let n=Object.fromEntries(ip.formatToParts(t).map(e=>[e.type,e.value]));return`${n.month} ${n.day}, ${n.hour}:${n.minute}`}var op=[`changed`,`added`,`removed`],sp=[`75`,`100`];function cp(e,t){let n=new URLSearchParams(e),r=e=>t.some(t=>t.id===e),i=t[0],a=n.get(`version`),o=a&&r(a)?a:i.id,s=n.get(`mode`)===`compare`?`compare`:`explore`,c=null;if(s===`compare`){let e=n.get(`base`);e&&r(e)&&e!==o?Gf(t,e)<Gf(t,o)?[o,c]=[e,o]:c=e:c=Kf(t,o)?.id??null,c===null&&(s=`explore`)}let l={versionId:o,mode:s,baseId:c};n.get(`layout`)===`side`&&(l.layout=`side`),sp.includes(n.get(`zoom`))&&(l.zoom=n.get(`zoom`)),n.get(`hl`)===`1`&&(l.highlights=!0);let u=n.get(`filter`);op.includes(u)&&(l.changeFilter=u);let d=n.get(`change`);return d&&/^[1-9]\d*$/.test(d)&&(l.changeIndex=Number(d)-1),l}function lp(e,t){let n=new URLSearchParams;(e.versionId!==t[0].id||e.mode!==`explore`)&&(n.set(`version`,e.versionId),n.set(`mode`,e.mode),e.mode===`compare`&&e.baseId&&n.set(`base`,e.baseId)),e.layout===`side`&&n.set(`layout`,`side`),e.layout===`side`&&sp.includes(e.zoom)&&n.set(`zoom`,e.zoom),e.highlights&&n.set(`hl`,`1`),e.changeFilter&&e.changeFilter!==`all`&&n.set(`filter`,e.changeFilter),e.changeIndex!==null&&e.changeIndex!==void 0&&n.set(`change`,String(e.changeIndex+1));let r=n.toString();return r?`?${r}`:``}var up=[`fit`,`75`,`100`],dp=24;function fp(e,t){return e===`fit`?t:Math.max(t,Number(e)/100)}function pp(e,t,n){return Math.min(Math.max(0,t-n),Math.max(0,e))}function mp({pan:e,anchor:t,from:n,to:r,width:i,column:a}){return pp(t-(t-e)*n/r,i,a/r)}function hp({pan:e,rect:t,width:n,visible:r}){return t.x>=e&&t.x+t.width<=e+r?e:pp(t.width+48>r?t.x-dp:t.x+t.width/2-r/2,n,r)}function gp(e,t){let n=Math.max(0,up.indexOf(e));return up[Math.min(up.length-1,Math.max(0,n+t))]}var _p={versionId:``,mode:`explore`,baseId:null,layout:`wipe`,highlights:!1,changeIndex:null,changeFilter:`all`,panelOpen:!1,folders:{versions:!1,changes:!1},syncScroll:!0,zoom:`fit`,peek:!1,pick:0,retracted:!1};function vp(e,t,n){return n!==`ready`||e==null?e??null:e<t?e:null}function yp(e,t){return{..._p,folders:{..._p.folders},versionId:e[0].id,...cp(t,e)}}function bp(e,t){let n=t.mode===`compare`?t.baseId:Kf(e,t.versionId)?.id;return e.find(e=>e.id===n)??null}function xp(e,t,n){let r=Gf(e,t);return r!==-1&&r>Gf(e,n)}function Sp(e,t,n){if(Gf(e,n)===-1)return t;let r={...t,versionId:n,changeIndex:null};if(t.mode===`compare`&&(t.baseId===null||!xp(e,t.baseId,n))){let t=Kf(e,n);r.baseId=t?t.id:null,t||(r.mode=`explore`)}return r.mode===`compare`&&r.baseId===null&&(r.mode=`explore`),r}function Cp(e,t){return e.retracted===t?e:t?{...e,retracted:!0,panelOpen:!1}:{...e,retracted:!1}}function wp(e,t){return e.versionId===t[0].id&&e.mode===`explore`&&!e.highlights&&!e.panelOpen}function Tp(e,t,n){let r=Kf(e,e[0].id),i=r||n===`page`?n:`versions`;return{...t,versionId:e[0].id,mode:i===`compare`?`compare`:`explore`,baseId:i===`compare`?r.id:null,highlights:i===`highlight`,panelOpen:i===`versions`,folders:i===`versions`?{...t.folders,versions:!0}:t.folders,changeIndex:null,peek:!1,retracted:!1}}var Ep=e=>(t,n)=>{switch(n.type){case`openFromPage`:return Tp(e,t,n.view);case`selectVersion`:return Sp(e,t,n.id);case`stepVersion`:{let r=Gf(e,t.versionId),i=e[Math.min(e.length-1,Math.max(0,r-n.delta))];return i.id===t.versionId?t:Sp(e,t,i.id)}case`goLatest`:return Sp(e,t,e[0].id);case`setMode`:if(n.mode===`compare`){if(t.mode===`compare`)return t;let n=Kf(e,t.versionId);return n?{...t,mode:`compare`,baseId:n.id,changeIndex:null}:{...t,mode:`explore`,baseId:null,changeIndex:null}}return{...t,mode:`explore`,baseId:null,changeIndex:null};case`setBase`:return t.mode!==`compare`||!xp(e,n.id,t.versionId)?t:{...t,baseId:n.id,changeIndex:null};case`setLayout`:return{...t,layout:n.layout};case`setZoom`:return up.includes(n.zoom)?{...t,zoom:n.zoom}:t;case`toggleHighlights`:return{...t,highlights:!t.highlights};case`stepChange`:{if(!(n.total>0))return t;let{total:e,delta:r}=n,i=t.changeIndex===null?r>0?0:e-1:(t.changeIndex+r+e)%e;return{...t,changeIndex:i}}case`selectChange`:return{...t,changeIndex:n.index,pick:(t.pick??0)+1};case`clearChange`:return t.changeIndex===null?t:{...t,changeIndex:null};case`clampChange`:{let e=vp(t.changeIndex,n.total,n.status);return e===t.changeIndex?t:{...t,changeIndex:e}}case`setFilter`:return{...t,changeFilter:n.filter,changeIndex:null};case`togglePanel`:return{...t,panelOpen:!t.panelOpen};case`closePanel`:return{...t,panelOpen:!1};case`toggleFolder`:{let e=!t.folders[n.folder],r={...t.folders,[n.folder]:e};if(e&&n.phone)for(let e of Object.keys(r))e!==n.folder&&(r[e]=!1);return{...t,folders:r}}case`oneFolder`:return t.folders.versions&&t.folders.changes?{...t,folders:{...t.folders,versions:!1}}:t;case`toggleSync`:return{...t,syncScroll:!t.syncScroll};case`setPeek`:return t.peek===n.peek?t:{...t,peek:n.peek};case`setRetracted`:return Cp(t,n.retracted);case`toggleRetracted`:return Cp(t,!t.retracted);default:return t}};function Dp(e,t=`afterimage-retracted`){return{read(){try{return e().getItem(t)===`1`}catch{return!1}},write(n){try{let r=e();n?r.setItem(t,`1`):r.removeItem(t)}catch{}}}}function Op({history:e,location:t,delayMs:n=200,setTimeout:r=globalThis.setTimeout,clearTimeout:i=globalThis.clearTimeout}){let a=null,o=null;function s(){o!==null&&i(o),o=null}function c(){if(s(),a===null)return;let n=a;if(a=null,n!==t.search)try{e.replaceState(e.state,``,(n||t.pathname)+t.hash)}catch{}}return{write(e){a=e,o===null&&(o=r(c,n))},flush:c,cancel(){s(),a=null}}}var kp=Op({history:window.history,location:window.location}),Ap=[/^svelte-[a-z0-9]{5,7}$/,/^astro-[A-Za-z0-9]{8}$/,/^_[\w-]+_[a-z0-9]{5}_\d+$/,/^(?!_?[a-z]{6}_)_?[\w-]{5}[GWaq]_[\w-]+$/,/^css-[a-z0-9]{6,7}(?:-[\w-]+)?$/,/^_r_[0-9a-v]+_$/,/^_R_[0-9a-v]*(?:H[0-9a-v]+)?_$/,/^«(?:r[0-9a-v]+|R[0-9a-v]*(?:H[0-9a-v]+)?)»$/,/^:(?:r[0-9a-v]+|R[0-9a-v]*(?:H[0-9a-v]+)?):$/],jp=[/^data-astro-cid-[a-z0-9]+$/,/^data-svelte-h$/,/^data-v-[0-9a-f]{8}$/],Mp=e=>Ap.some(t=>t.test(e)),Np=e=>jp.some(t=>t.test(e)),Pp=`color.backgroundColor.backgroundImage.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderTopColor.borderRightColor.borderBottomColor.borderLeftColor.borderRadius.boxShadow.fontFamily.fontSize.fontWeight.lineHeight.letterSpacing.textAlign.paddingTop.paddingRight.paddingBottom.paddingLeft.marginTop.marginRight.marginBottom.marginLeft.gap.opacity.transform`.split(`.`),Fp=e=>e.replace(/\s+/g,` `).trim(),Ip=e=>e.replace(/\/versions\/v\d+\//g,`/versions/snapshot/`);function Lp(e){let t=Fp(e.getAttribute(`aria-label`)||e.labels?.[0]?.innerText||e.getAttribute(`alt`)||e.querySelector(`h1,h2,h3,legend`)?.innerText||e.innerText||e.textContent||``);return t?t.slice(0,100)+(t.length>100?`…`:``):{INPUT:`Input field`,IMG:`Image`,SVG:`Icon`,VIDEO:`Video`,CANVAS:`Drawing`,DIV:`Section`,ASIDE:`Summary`,BUTTON:`Button`}[e.tagName]||`Page element`}var Rp=e=>e.dataset.afterimageId,zp=e=>e.id&&!Mp(e.id)?e.id:``,Bp=e=>e.replace(/^#(.+)$/,(e,t)=>Mp(t)?`#`:e);function Vp(e){let t=e.cloneNode(!0),n=[...t.querySelectorAll(`*`)],r=new Map;for(let e of n){for(let{name:t}of[...e.attributes])Np(t)&&e.removeAttribute(t);for(let t of[...e.classList])Mp(t)&&e.classList.remove(t);e.hasAttribute(`class`)&&!e.classList.length&&e.removeAttribute(`class`),e.id&&Mp(e.id)&&(r.has(e.id)||r.set(e.id,`generated-${r.size}`),e.id=r.get(e.id))}for(let e of n)for(let t of[...e.attributes])t.value=t.value.replace(/#([^\s)"']+)/g,(e,t)=>r.has(t)?`#${r.get(t)}`:Mp(t)?`#`:e);return t.innerHTML}function Hp(e,t){if(Rp(e))return`stable:${Rp(e)}`;if(zp(e))return`id:${zp(e)}`;if(e.tagName===`BODY`)return`page`;if(e.tagName===`LABEL`&&e.htmlFor&&!Mp(e.htmlFor))return`label:${e.htmlFor}`;if(e.matches(`input,textarea,select`)&&e.name)return`field:${e.tagName}:${e.name}`;let n=[...e.parentElement.children].filter(t=>t.tagName===e.tagName),r=[...e.classList].find(e=>!/^(active|selected|hidden|open|v\d+)$/.test(e)&&!Mp(e)&&n.filter(t=>t.classList.contains(e)).length===1);return r?`${Up(e.parentElement,t)}/${e.tagName.toLowerCase()}.${r}`:`${Up(e.parentElement,t)}/${e.tagName.toLowerCase()}:${n.indexOf(e)}`}function Up(e,t){let n=t.get(e);return n===void 0&&(n=Hp(e,t),t.set(e,n)),n}function Wp(e,t=new Map){let n=e.parentElement;if(!n||n.tagName===`BODY`||n.tagName===`HTML`)return{x:0,y:0};let r=t.get(n);if(!r){let e=Wp(n,t);r={x:e.x+n.scrollLeft,y:e.y+n.scrollTop},t.set(n,r)}return r}function Gp(e){let t=e.defaultView,n=[],r=new Map,i=new Map;for(let a of e.body.querySelectorAll(`*`)){if(a.closest(`[data-afterimage-overlay],script,style,noscript,svg`)&&a.tagName.toLowerCase()!==`svg`||a.matches(`main,form,br,meta,link`))continue;let o=a.getBoundingClientRect(),s=t.getComputedStyle(a);if(!o.width||!o.height||s.display===`none`||s.visibility===`hidden`||s.opacity===`0`)continue;let c=Fp([...a.childNodes].filter(e=>e.nodeType===3).map(e=>e.textContent).join(` `)),l=s.backgroundColor!==`rgba(0, 0, 0, 0)`||parseFloat(s.borderTopWidth)>0;if(!c&&!zp(a)&&!Rp(a)&&!l&&!a.matches(`input,textarea,select,button,img,svg,video,canvas`))continue;let u=[],d=Wp(a,i);for(let t=a.parentElement;t&&t!==e.documentElement;t=t.parentElement)u.push(Up(t,r));let f=[`src`,`alt`,`href`,`type`,`placeholder`,`aria-label`].map(e=>[e,Ip(e===`href`?Bp(a.getAttribute(e)||``):a.getAttribute(e)||``)]);a.tagName.toLowerCase()===`svg`&&f.push([`drawing`,Vp(a)]);let p=Object.fromEntries(Pp.map(e=>[e,Ip(s[e])]));for(let e of[`Top`,`Right`,`Bottom`,`Left`])parseFloat(s[`border${e}Width`])===0&&(p[`border${e}Color`]=`transparent`);n.push({key:Up(a,r),ancestors:u,element:a,text:c,label:Lp(a),content:Fp(a.innerText||a.getAttribute(`placeholder`)||a.getAttribute(`alt`)||``),attrs:Object.fromEntries(f),attributes:JSON.stringify(f),styles:p,style:JSON.stringify(p),rect:{x:o.left+t.scrollX+d.x,y:o.top+t.scrollY+d.y,width:o.width,height:o.height}})}let a=t.getComputedStyle(e.body),o=Object.fromEntries([`backgroundColor`,`backgroundImage`].map(e=>[e,Ip(a[e])]));return n.push({key:`page`,label:`Page background`,content:``,styles:o,ancestors:[],element:e.body,page:!0,text:``,attributes:``,style:JSON.stringify(o),rect:{x:0,y:0,width:t.innerWidth,height:t.innerHeight}}),n}function Kp(e,t,n=!0){let r=new Map(t.map(e=>[e.key,e])),i=new Map(e.map(e=>[e.key,e])),a=[],o=[];for(let t of e){let e=r.get(t.key);if(!e){a.push({...t,kind:`added`,reasons:[`content`]});continue}let n=[];(t.text!==e.text||t.attributes!==e.attributes)&&n.push(`content`),t.style!==e.style&&n.push(`style`),!t.page&&[`x`,`y`,`width`,`height`].some(n=>Math.abs(t.rect[n]-e.rect[n])>2)&&n.push(`layout`),n.length&&(a.push({...t,kind:`changed`,reasons:n}),o.push({...e,kind:`changed`,reasons:n}))}for(let e of t)i.has(e.key)||o.push({...e,kind:`removed`,reasons:[`content`]});return n?qp({current:a,previous:o}):{current:a,previous:o}}function qp({current:e,previous:t}){let n=e=>{let t=new Map(e.filter(e=>!e.page).map(e=>[e.key,e.kind]));return e.filter(e=>!e.ancestors.some(n=>t.get(n)===e.kind))};return{current:n(e),previous:n(t)}}var Jp={color:`Text color`,backgroundColor:`Background color`,backgroundImage:`Background image`,fontFamily:`Typeface`,fontSize:`Text size`,fontWeight:`Text weight`,lineHeight:`Line spacing`,letterSpacing:`Letter spacing`,textAlign:`Text alignment`,borderRadius:`Corner rounding`,boxShadow:`Shadow`,gap:`Space between items`,opacity:`Opacity`,transform:`Transform`},Yp=e=>Jp[e]||e.replace(/([A-Z])/g,` $1`).replace(/^./,e=>e.toUpperCase()),Xp=e=>e?.styles||{};function Zp(e,t){let n=Kp(e,t,!1),r=qp(n),i=new Map(t.map(e=>[e.key,e])),a=new Map(e.map(e=>[e.key,e])),o=[...r.current,...r.previous.filter(e=>e.kind===`removed`)],s=new Map;for(let e of[...n.current,...n.previous.filter(e=>e.kind===`removed`)])for(let t of new Set([e.key,...e.ancestors]))s.has(t)||s.set(t,[]),s.get(t).push(e);let c=o.map(e=>{let t=i.get(e.key),n=a.get(e.key),r=[],o=s.get(e.key)??[];if(e.kind!==`changed`)r.push({label:e.kind===`added`?`Added to this version`:`Removed from this version`,before:t?.content||``,after:n?.content||``});else{for(let t of o){let n=i.get(t.key),o=a.get(t.key),s=t.key===e.key?``:(t.label||`Element`)+` · `;if(!n||!o)r.push({label:s+(n?`Removed`:`Added`),before:n?.content||``,after:o?.content||``});else{n.text!==o.text&&r.push({label:s+`Text`,before:n.text,after:o.text});for(let e of Object.keys(o.attrs||{}))n.attrs?.[e]!==o.attrs[e]&&r.push({label:s+({src:`Image source`,alt:`Image description`,href:`Link destination`,placeholder:`Input hint`,"aria-label":`Accessible label`,type:`Input type`,drawing:`Icon`}[e]||e),before:e===`drawing`?`Previous icon`:n.attrs?.[e]||``,after:e===`drawing`?`Updated icon`:o.attrs[e]});for(let[e,t]of Object.entries(Xp(o)))Xp(n)[e]!==t&&r.push({label:s+Yp(e),before:Xp(n)[e]||`None`,after:t,color:/Color$|^color$/.test(e)})}}if(t&&n&&!e.page){let e=t.rect,i=n.rect;(Math.abs(e.x-i.x)>2||Math.abs(e.y-i.y)>2)&&r.push({label:`Position on the page`,layout:!0,before:`${Math.round(e.x)}px from left, ${Math.round(e.y)}px from top`,after:`${Math.round(i.x)}px from left, ${Math.round(i.y)}px from top`}),(Math.abs(e.width-i.width)>2||Math.abs(e.height-i.height)>2)&&r.push({label:`Size`,layout:!0,before:`${Math.round(e.width)} × ${Math.round(e.height)}px`,after:`${Math.round(i.width)} × ${Math.round(i.height)}px`})}}let c=e.kind===`changed`&&o.every(e=>e.kind!==`changed`||e.reasons.every(e=>e===`layout`)),l=e.kind===`added`?`Added`:e.kind===`removed`?`Removed`:c?`Moved or resized`:o.some(e=>e.reasons.includes(`content`))?`Content changed`:`Appearance changed`;return{key:e.key,kind:e.kind,label:n?.label||t?.label||`Page element`,kindLabel:l,layoutOnly:c,before:t,after:n,details:r}}),l=c.filter(e=>!e.layoutOnly),u=l.length?l:c,d=new Set(u.map(e=>e.key));return u.forEach((e,t)=>{e.number=t+1}),{entries:u,comparison:{current:r.current.filter(e=>d.has(e.key)),previous:r.previous.filter(e=>d.has(e.key))}}}var Qp=`afterimage-count:`,$p=500,em=2;function tm(){try{return globalThis.localStorage??null}catch{return null}}function nm(e){try{let t=tm()?.getItem(Qp+e);if(!t)return null;let{summary:n,rules:r}=JSON.parse(t);return r===em&&n&&typeof n.total==`number`?n:null}catch{return null}}var rm=(e,t)=>!!(e&&t)&&[`total`,`changed`,`added`,`removed`].every(n=>e[n]===t[n]);function im(e,t){try{let n=tm();if(!n||rm(nm(e),t))return;n.setItem(Qp+e,JSON.stringify({summary:t,at:Date.now(),rules:em}));let r=[];for(let e=0;e<n.length;e++){let t=n.key(e);if(!t?.startsWith(Qp))continue;let i=0;try{i=JSON.parse(n.getItem(t)).at??0}catch{}r.push({name:t,at:i,order:e})}if(r.length<=$p)return;r.sort((e,t)=>e.at-t.at||e.order-t.order);for(let{name:e}of r.slice(0,r.length-$p))n.removeItem(e)}catch{}}function am(e){let t=e?.contentWindow;if(!t)return null;try{return t.document?t:null}catch{return null}}function om(e){try{let t=new URL(e);return t.origin+t.pathname+t.search}catch{return null}}function sm(e,t){let n=e.indexOf(`#`);return(n===-1?e:e.slice(0,n))+t}function cm(e,t){let n=om(e);return n!==null&&n===om(t)}function lm(e){return e.replace(/^versions\/[^/]+/,``).replace(/(^|\/)index\.html$/,`$1`)}function um(e,t,n=globalThis.location?.href){if(!t)return!1;let r=am(e);if(!r||r.document.readyState!==`complete`)return!1;if(r.__afterimageVersion!==void 0){if(r.__afterimageVersion!==t.id)return!1;let e=r.location.pathname+r.location.search;if(r.__afterimagePath===void 0)return e===lm(t.file);try{return e===r.__afterimagePath&&r.__afterimageFile===new URL(t.file,n).pathname}catch{return!1}}try{return cm(r.location.href,new URL(t.file,n).href)}catch{return!1}}function dm(e,t){let n=e?.contentWindow;n?n.location.replace(t):e&&(e.src=t)}function fm(e){try{e()}catch{}}var pm=0;function mm(e,t=performance.now()){pm=Math.max(pm,t+e)}function hm(e=performance.now()){return Math.max(0,pm-e)}var gm=80,_m=500,vm={status:`idle`,entries:[],comparison:null,summary:{total:0,changed:0,added:0,removed:0},signature:``};function ym(e){return e.every(({target:e})=>(e.nodeType===1?e:e.parentElement)?.closest(`[data-afterimage-overlay]`))}function bm({targetFrame:e,baseFrame:t,target:n,base:r,enabled:i}){let[a,o]=(0,_.useState)(vm),s=e.current,c=t.current,l=n?.sha256,u=r?.sha256,d=n?.file,f=r?.file;(0,_.useEffect)(()=>{if(!i||!n||!r){o(vm);return}if(o({...vm,status:`checking`}),!s||!c)return;let a=!0,l=0,u=null,d=[],f=Q({onTimeout:()=>{a&&o(e=>e.status===`ready`?e:{...vm,status:`failed`})}}),p=Uf(()=>x(),{waitMs:gm,maxWaitMs:_m}),m=()=>p.schedule(),h=()=>[e.current,t.current],g=()=>am(e.current)?.location.hash===am(t.current)?.location.hash,_=()=>um(e.current,n)&&um(t.current,r)&&g(),v=()=>{let t=am(e.current);return t?Rf({target:n,base:r,width:t.innerWidth,height:t.innerHeight,route:t.location.hash}):null};function y(){f.cancel(),p.cancel(),u=null,o({...vm,status:`failed`})}let b=0;async function x(){let[e,t]=h();if(!a||!_())return;let n=hm();if(n>0){clearTimeout(b),b=setTimeout(x,n);return}let r=++l;try{let n=v();if(await Promise.all([e.contentDocument.fonts.ready,t.contentDocument.fonts.ready]),!a||r!==l||!_())return;let i=Gp(e.contentDocument),s=t.contentDocument.documentElement,c=s.style.overflowY,d;try{s.style.overflowY=e.clientWidth>e.contentDocument.documentElement.clientWidth?`scroll`:`hidden`,d=Gp(t.contentDocument)}finally{s.style.overflowY=c}let p=Zp(i,d),h=v();if(h===null||!Vf(h,n)){m();return}let g=zf(p.entries),y=Hf(p);if(f.done(),im(n,g),y===u)return;u=y,o({status:`ready`,entries:p.entries,comparison:p.comparison,summary:g,signature:y})}catch(e){if(!a)return;f.cancel(),u=null,console.error(`Change comparison failed.`,e),o({...vm,status:`failed`})}}function S(){d.forEach(e=>e()),d=[];for(let e of h()){let t=am(e),n=t?.document.body;if(!t||!n)continue;let r=new MutationObserver(e=>{ym(e)||m()});r.observe(n,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),t.addEventListener(`resize`,m),d.push(()=>{r.disconnect(),fm(()=>t.removeEventListener(`resize`,m))})}}let C=t=>{S();let i=t?.currentTarget,a=i===e.current?n:r;i&&!um(i,a)?y():m()},w=h().filter(Boolean);for(let e of w)e.addEventListener(`load`,C);return f.start(),S(),m(),()=>{a=!1,clearTimeout(b),p.cancel(),f.cancel(),d.forEach(e=>e());for(let e of w)e.removeEventListener(`load`,C)}},[e,t,s,c,l,u,d,f,i]);let{status:p,entries:m,comparison:h,summary:g}=a;return{status:p,entries:m,comparison:h,summary:g}}function xm(e=``){let t=e,n=new Set;return{get:()=>t,set(e){if(e!==t){t=e;for(let t of n)t(e)}},subscribe(e){return n.add(e),()=>n.delete(e)}}}var Sm=xm(typeof location>`u`?``:location.hash);function Cm(){return(0,_.useSyncExternalStore)(Sm.subscribe,Sm.get)}function wm({targetRef:e,baseRef:t}){let n=e.current,r=t.current;(0,_.useEffect)(()=>{let n=[e,t].map(e=>e.current).filter(Boolean),r=[],i=e=>{for(let t of n){let n=am(t);n&&n.location.protocol!==`about:`&&n.location.hash!==e&&fm(()=>n.location.replace(sm(n.location.href,e)))}fm(()=>history.replaceState(history.state,``,sm(location.href,e)))};function a(){r.forEach(e=>e()),r=[];for(let e of n){let t=am(e);if(!t)continue;let n=()=>Sm.set(t.location.hash);t.addEventListener(`hashchange`,n),r.push(()=>fm(()=>t.removeEventListener(`hashchange`,n)))}}let o=()=>{a(),i(Sm.get())};for(let e of n)e.addEventListener(`load`,o);let s=Sm.subscribe(i);return a(),i(Sm.get()),()=>{s(),r.forEach(e=>e());for(let e of n)e.removeEventListener(`load`,o)}},[e,t,n,r])}var Tm=1;function Em(e){let t=e.document.scrollingElement??e.document.documentElement;return Math.max(0,t.scrollHeight-e.document.documentElement.clientHeight)}function Dm(e){let t=e.ownerDocument.defaultView.getComputedStyle(e);return/^(auto|scroll|overlay)$/.test(t.overflowY)&&e.scrollHeight>e.clientHeight}var Om=e=>[...e.querySelectorAll?.(`*`)??[]].filter(Dm);function km(e){let t=[];for(let n=e;n.parentElement&&n.tagName!==`BODY`;n=n.parentElement)t.unshift([n.tagName,[...n.parentElement.children].indexOf(n)]);return t}function Am(e,t){let n=t.body;for(let[t,r]of km(e))if(n=n?.children[r],n?.tagName!==t){n=null;break}if(n&&Dm(n))return n;let r=Om(e.ownerDocument).indexOf(e);return r===-1?null:Om(t)[r]??null}var jm=e=>Math.max(0,e.scrollHeight-e.clientHeight);function Mm(e,t){let n=[];for(let r of Om(e)){let e=Am(r,t);e&&(n.push([e,e.scrollTop]),e.scrollTop=Zf(r.scrollTop,jm(r),jm(e)))}return()=>{for(let[e,t]of n)e.scrollTop=t}}function Nm(e,t){let n=e=>Math.max(0,(e.document.scrollingElement??e.document.documentElement).scrollHeight-e.document.documentElement.clientHeight);e.scrollTo({top:Zf(t.scrollY,n(t),n(e)),behavior:`instant`}),Mm(t.document,e.document)}var Pm=e=>Om(e).map(e=>Math.round(e.scrollTop));function Fm(e,t){Array.isArray(t)&&Om(e).forEach((e,n)=>{Number.isFinite(t[n])&&(e.scrollTop=t[n])})}function Im(e,t,{enabled:n=!0}={}){if(!n||!e||!t)return()=>{};let r=new WeakMap,i=[],a=e=>{let t=am(e);return t?.document.documentElement?t:null},o=(e,t)=>{let n=a(e),i=a(t);if(!n||!i)return;let o=Zf(n.scrollY,Em(n),Em(i));Math.abs(i.scrollY-o)<Tm||(r.set(i,o),i.scrollTo({top:o,behavior:`instant`}))},s=(e,t)=>{let n=Am(e,t);if(!n)return;let i=Zf(e.scrollTop,jm(e),jm(n));Math.abs(n.scrollTop-i)<Tm||(r.set(n,i),n.scrollTop=i)},c=(e,t)=>{let n=a(e),r=a(t);if(n&&r)for(let e of Om(n.document))s(e,r.document)},l=(e,t)=>n=>{let i=n.target,o=a(e)?.document;if(!o||!i||i===o)return;let c=r.get(i);if(c!==void 0&&(r.delete(i),Math.abs(i.scrollTop-c)<Tm))return;let l=a(t);l&&s(i,l.document)},u=(e,t)=>()=>{let n=a(e);if(!n)return;let i=r.get(n);i!==void 0&&(r.delete(n),Math.abs(n.scrollY-i)<Tm)||o(e,t)},d=()=>{f();for(let[n,r]of[[e,t],[t,e]]){let e=a(n);if(!e)continue;let t=u(n,r);e.addEventListener(`scroll`,t,{passive:!0});let o=l(n,r);e.document.addEventListener?.(`scroll`,o,{capture:!0,passive:!0}),i.push(()=>{e.removeEventListener(`scroll`,t),e.document.removeEventListener?.(`scroll`,o,{capture:!0})})}};function f(){for(let e of i)fm(e);i=[]}let p=n=>()=>{d(),o(n===e?t:e,n),c(n===e?t:e,n)},m=p(e),h=p(t);return e.addEventListener(`load`,m),t.addEventListener(`load`,h),d(),o(e,t),c(e,t),()=>{f(),e.removeEventListener(`load`,m),t.removeEventListener(`load`,h)}}var Lm=1e4,Rm=40,zm=400,Bm=280,Vm=typeof window<`u`&&window.parent!==window;function Hm(e){let t=am(e.current),n=[];t&&fm(()=>{n=Pm(t.document)}),window.parent.postMessage({type:`afterimage:close`,route:Sm.get(),scrollY:t?.scrollY??0,panels:n},`*`)}function Um({state:e,dispatch:t,versions:n,targetRef:r}){let i=rf(),a=(0,_.useRef)(!1),o=(0,_.useRef)(!1);(0,_.useEffect)(()=>{if(!Vm)return;let e=0,i=0,s=null,c=()=>{clearTimeout(i),s!==null&&(t({type:`openFromPage`,view:s}),s=null)},l=l=>{let u=l.data;if(l.source!==window.parent)return;if(u?.type===`afterimage:shown`){c();return}if(u?.type!==`afterimage:open`)return;clearTimeout(e),clearTimeout(i),typeof u.route==`string`&&Sm.set(u.route),a.current=!0,o.current=!1,s=u.view,t({type:`openFromPage`,view:`page`});let d=Number(u.scrollY)||0,f=Date.now()+Lm,p=()=>{let t=am(r.current);um(r.current,n[0])&&t.location.hash===Sm.get()?(t.scrollTo(0,d),fm(()=>Fm(t.document,u.panels)),e=setTimeout(()=>{window.parent.postMessage({type:`afterimage:ready`},`*`),i=setTimeout(c,zm)},Rm)):Date.now()<f&&(e=setTimeout(p,Rm))};e=setTimeout(p,0)};return window.addEventListener(`message`,l),window.parent.postMessage({type:`afterimage:listening`},`*`),()=>{clearTimeout(e),clearTimeout(i),window.removeEventListener(`message`,l)}},[t,n,r]),(0,_.useEffect)(()=>{if(!Vm||!a.current)return;if(!wp(e,n)){o.current=!0;return}if(!o.current)return;let t=setTimeout(()=>{a.current=!1,o.current=!1,Hm(r)},i?0:Bm);return()=>clearTimeout(t)},[e,n,r,i])}function Wm(e){return(0,_.useSyncExternalStore)(t=>{let n=matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},()=>matchMedia(e).matches,()=>!1)}var Gm=`(max-width: 640px)`;function Km(){return Wm(Gm)}var qm=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]);function Jm(e){return e?e.isContentEditable||e.tagName===`TEXTAREA`||e.tagName===`SELECT`?!0:e.tagName===`INPUT`&&!qm.has(String(e.type??``).toLowerCase()):!1}var Ym=new Set([`[`,`]`,`j`,`k`]),Xm={"[":{type:`stepVersion`,delta:-1},"]":{type:`stepVersion`,delta:1},g:`focusVersion`,l:{type:`goLatest`},h:{type:`toggleHighlights`},j:{type:`stepChange`,delta:1},k:{type:`stepChange`,delta:-1},c:{type:`setMode`,mode:`compare`},v:{type:`togglePanel`},b:{type:`setPeek`,peek:!0},".":{type:`toggleRetracted`},"?":`help`,Escape:`escape`};function Zm(e){let t=e.key?.length===1?e.key.toLowerCase():e.key;if(e.type===`keyup`)return t===`b`?{type:`setPeek`,peek:!1}:null;let n=e.getModifierState?.(`AltGraph`)===!0;if(e.metaKey||(e.ctrlKey||e.altKey)&&!n||e.defaultPrevented||e.isComposing||Jm(e.target)||Jm(e.composedPath?.()[0])||e.repeat&&!Ym.has(t))return null;let r=Object.hasOwn(Xm,t)?Xm[t]:void 0;return r===void 0?null:typeof r==`string`?r:{...r}}var Qm={type:`setPeek`,peek:!1};function $m(e,{state:t,versions:n,entries:r,phone:i,helpOpen:a,hasField:o,focusInPanel:s=!1,framed:c=!1}){let l=(e=null,...t)=>({consumed:!0,dispatch:t,effect:e}),u={consumed:!1,dispatch:[],effect:null};if(a&&e!==`escape`&&e!==`help`&&e.type!==`setPeek`)return u;if(e===`help`)return l(`toggleHelp`);if(e===`escape`)return a?l(`closeHelp`):t.panelOpen?l(`closePanel`):t.mode===`compare`?l(`leaveCompare`,{type:`setMode`,mode:`explore`}):c?l(`leaveViewer`):u;let d=t.retracted?[{type:`setRetracted`,retracted:!1}]:[];if(e===`focusVersion`)return i?l(t.panelOpen?null:`openPanelByKeyboard`,...d):t.retracted?l(`focusFieldWhenBack`,...d):o?l(`focusField`):u;switch(e.type){case`stepChange`:{let n=Bf(r,t.changeFilter).length;return n===0?u:t.highlights?l(null,...d,{...e,total:n}):l(null,...d,{type:`toggleHighlights`},{...e,total:n})}case`goLatest`:return t.versionId===n[0].id?u:l(null,e);case`toggleHighlights`:return Kf(n,t.versionId)===null?u:t.retracted&&t.highlights?l(null,...d):l(null,...d,e);case`togglePanel`:return l(t.panelOpen&&s?`closePanel`:`togglePanel`,...d);case`toggleRetracted`:return c?u:l(null,e);default:return l(null,e)}}function eh(e,t){let n=e=>{let n=Zm(e);n!==null&&t(n,e)!==!1&&n!==`escape`&&e.type===`keydown`&&e.preventDefault()},r=()=>{t(Qm,null)},i=e.document;return e.addEventListener(`keydown`,n),e.addEventListener(`keyup`,n),e.addEventListener(`blur`,r),i?.addEventListener(`visibilitychange`,r),()=>{fm(()=>e.removeEventListener(`keydown`,n)),fm(()=>e.removeEventListener(`keyup`,n)),fm(()=>e.removeEventListener(`blur`,r)),fm(()=>i?.removeEventListener(`visibilitychange`,r))}}function th(e,t){let n=e.filter(Boolean).map(e=>{let n=null,r=()=>{n?.(),n=null;let r=am(e);if(r)try{n=eh(r,t)}catch{n=null}},i=()=>{r(),t(Qm,null)};return r(),e.addEventListener(`load`,i),()=>{e.removeEventListener(`load`,i),n?.(),n=null}});return()=>n.forEach(e=>e())}function nh(e,t=`afterimage-shortcut-tip`){let n=!1;return()=>{if(n)return!1;n=!0;try{let n=e();if(n.getItem(t))return!1;n.setItem(t,`1`)}catch{}return!0}}function rh(e){let t=(0,_.useRef)(e);(0,_.useEffect)(()=>{t.current=e});let n=(0,_.useCallback)(e=>{let{state:n,dispatch:r,versions:i,review:a,phone:o,targetRef:s,helpOpen:c,setHelpOpen:l,togglePanel:u,closePanel:d,fieldRef:f,handoffRef:p,noteDockFocus:m,focusFieldWhenBack:h}=t.current,g=!!document.activeElement?.closest?.(`.panel`),_=$m(e,{state:n,versions:i,entries:a.entries,phone:o,helpOpen:c,hasField:!!f.current,focusInPanel:g,framed:window.parent!==window});if(!_.consumed)return!1;switch(_.effect){case`closeHelp`:l(!1);break;case`toggleHelp`:l(!c);break;case`closePanel`:d({refocus:!0});break;case`leaveCompare`:p.current=!0;break;case`togglePanel`:u();break;case`openPanelByKeyboard`:u({detail:0});break;case`focusField`:f.current.focus({preventScroll:!0}),f.current.select();break;case`focusFieldWhenBack`:h.current=!0;break;case`leaveViewer`:Hm(s)}_.dispatch.some(e=>e.type===`setRetracted`||e.type===`toggleRetracted`)&&m();for(let e of _.dispatch)r(e);return!0},[]);(0,_.useEffect)(()=>eh(window,n),[n]);let{targetRef:r,baseRef:i}=e,{versionId:a,baseId:o,mode:s}=e.state;(0,_.useEffect)(()=>th([r.current,i.current],n),[n,r,i,a,o,s])}var ih={enter:{duration:.22,ease:[.22,1,.36,1]},exit:{duration:.17,ease:[.22,1,.36,1]},layout:{type:`spring`,duration:.25,bounce:0}},ah={duration:0},oh={enter:ah,exit:ah,layout:ah};function sh(){return rf()?oh:ih}var ch=180,lh=`cubic-bezier(0.22, 1, 0.36, 1)`,uh=30,dh=8e3;function fh(e,t){let n=-1,r=0,i=0,a=()=>{let o=0;fm(()=>{o=e.document.documentElement.scrollHeight+e.document.body.childElementCount}),r=o===n?r+1:0,n=o,r>=2||++i>=uh?t():e.requestAnimationFrame(a)};e.requestAnimationFrame(a)}function ph({url:e,from:t,title:n,visible:r,onCovered:i}){let a=(0,_.useRef)(null);return(0,G.jsx)(`iframe`,{ref:a,className:`frame frame-cover`,"data-visible":r,src:e,title:n,"aria-hidden":`true`,tabIndex:-1,inert:!0,onLoad:()=>{let e=a.current,n=am(e);n&&fh(n,()=>{let r=am(t.current);r&&fm(()=>Nm(n,r));let a=e.animate([{opacity:0},{opacity:1}],{duration:ch,easing:lh,fill:`forwards`});a.onfinish=()=>i(n)})}})}function mh({frameRef:e,version:t,role:n,visible:r,compare:i}){let a=rf(),o=(0,_.useRef)(sm(t.file,Sm.get())),s=(0,_.useRef)(t.file),[c,l]=(0,_.useState)([]),u=(0,_.useRef)(0),d=(0,_.useRef)({visible:r,reduced:a});d.current={visible:r,reduced:a},(0,_.useLayoutEffect)(()=>{if(s.current===t.file)return;s.current=t.file;let n=sm(new URL(t.file,location.href).href,Sm.get()),r=++u.current;!d.current.visible||d.current.reduced||!am(e.current)?(l([]),dm(e.current,n)):l(e=>[...e,{id:r,url:n}])},[e,t.file]);let f=(t,n)=>r=>{if(l(e=>e.filter(e=>e.id>=t)),t!==u.current)return;let i=e.current,a=0,o=()=>{clearTimeout(a),i.removeEventListener(`load`,s),t===u.current&&l([])},s=()=>{let e=am(i);!e||t!==u.current?o():fh(e,()=>{fm(()=>Nm(e,r)),e.requestAnimationFrame(o)})};i.addEventListener(`load`,s),a=setTimeout(o,dh),dm(i,n)},p=n===`base`?`${i?`Before`:`Previous version`}, ${t.label}`:`${i?`After`:`Prototype`}, ${t.label}`;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`iframe`,{ref:e,className:`frame`,"data-role":n,"data-visible":r,src:o.current,title:p,inert:!r,tabIndex:r?void 0:-1,"aria-hidden":!r||void 0}),c.map(t=>(0,G.jsx)(ph,{url:t.url,from:e,title:p,visible:r,onCovered:f(t.id,t.url)},t.id))]})}var hh=5,gh=17,_h=e=>Math.min(100,Math.max(0,e));function vh(){return(0,G.jsxs)(`svg`,{width:`10`,height:`16`,viewBox:`0 0 10 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{cx:`3`,cy:`4`,r:`1.1`}),(0,G.jsx)(`circle`,{cx:`7`,cy:`4`,r:`1.1`}),(0,G.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.1`}),(0,G.jsx)(`circle`,{cx:`7`,cy:`8`,r:`1.1`}),(0,G.jsx)(`circle`,{cx:`3`,cy:`12`,r:`1.1`}),(0,G.jsx)(`circle`,{cx:`7`,cy:`12`,r:`1.1`})]})}function yh({split:e,value:t,onChange:n,stageRef:r,stageWidth:i,beforeLabel:a,onDragging:o}){let s=sh(),[c,l]=(0,_.useState)(!1),u=(0,_.useRef)(null),d=ef(e,e=>`${e}%`),f=Zd(i);(0,_.useEffect)(()=>{f.set(i)},[f,i]);let p=ef([e,f],([e,t])=>{let n=e/100*t;return`translate(calc(-50% + ${t>34?Math.min(t-gh,Math.max(gh,n))-n:0}px), -50%)`}),m=e=>{let n=r.current.getBoundingClientRect();return n.width>0?_h((e-n.left)/n.width*100):t},h=e=>{l(e),o?.(e)},g=e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),u.current=e.pointerId,h(!0),n(m(e.clientX)))},v=e=>{u.current===e.pointerId&&n(m(e.clientX))},y=e=>{u.current===e.pointerId&&(u.current=null,h(!1))},b=e=>{let r={ArrowLeft:t-hh,ArrowRight:t+hh,Home:0,End:100}[e.key];r!==void 0&&(e.preventDefault(),n(_h(r)))},x=Math.round(t);return(0,G.jsxs)(Z.div,{className:`wipe-divider`,"data-dragging":c||void 0,style:{left:d},initial:{opacity:0},animate:{opacity:1,transition:s.enter},exit:{opacity:0,transition:s.exit},onPointerDown:g,onPointerMove:v,onPointerUp:y,onPointerCancel:y,onLostPointerCapture:y,children:[(0,G.jsx)(`span`,{className:`wipe-line`,"aria-hidden":`true`}),(0,G.jsx)(Z.span,{className:`wipe-grip`,style:{transform:p},role:`slider`,tabIndex:0,"aria-label":`Wipe divider`,"aria-orientation":`horizontal`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":x,"aria-valuetext":`${x}% ${a} Before`,onKeyDown:b,children:(0,G.jsx)(vh,{})})]})}function bh({version:e,kind:t,style:n}){let r=sh();return(0,G.jsxs)(Z.div,{className:`compare-label`,style:n,layout:`position`,transition:r.layout,initial:{opacity:0},animate:{opacity:1,transition:r.enter},exit:{opacity:0,transition:r.exit},children:[(0,G.jsx)(`span`,{className:`num`,children:e.id}),(0,G.jsx)(`span`,{className:`compare-label-kind`,children:t})]})}var xh=[[`fit`,`Fit`],[`75`,`75%`],[`100`,`100%`]];function Sh({syncOn:e,onToggleSync:t,zoom:n,onZoom:r}){let i=sh(),a=(0,_.useRef)({});return(0,G.jsxs)(Z.div,{className:`side-tools`,initial:{opacity:0},animate:{opacity:1,transition:i.enter},exit:{opacity:0,transition:i.exit},children:[(0,G.jsx)(`div`,{className:`zoom-toggle`,role:`radiogroup`,"aria-label":`Zoom`,onKeyDown:e=>{let t={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1}[e.key];if(!t)return;e.preventDefault();let i=xh.findIndex(([e])=>e===n),[o]=xh[Math.min(xh.length-1,Math.max(0,i+t))];r(o),a.current[o]?.focus({preventScroll:!0})},children:xh.map(([e,t])=>{let o=e===n;return(0,G.jsxs)(`button`,{ref:t=>{a.current[e]=t},type:`button`,role:`radio`,"aria-checked":o,tabIndex:o?0:-1,className:`zoom-opt`,"data-on":o||void 0,onClick:()=>r(e),children:[o&&(0,G.jsx)(Z.span,{layoutId:`side-zoom-indicator`,className:`zoom-indicator`,transition:i.layout}),(0,G.jsx)(`span`,{className:`zoom-opt-label`,children:t})]},e)})}),(0,G.jsxs)(`button`,{type:`button`,role:`switch`,"aria-checked":e,className:`sync-chip`,"data-on":e||void 0,onClick:t,children:[(0,G.jsx)(`span`,{className:`sync-dot`,"aria-hidden":`true`}),`Scroll synced`]})]})}function Ch({left:e,top:t,width:n,pan:r,visible:i,page:a,onPan:o,focusable:s}){let c=sh(),l=(0,_.useRef)(null),u=(0,_.useRef)(null),[d,f]=(0,_.useState)(!1),p=i/a*n,m=r/a*n,h=e=>(e-l.current.getBoundingClientRect().left-u.current)/n*a,g=e=>{if(e.button!==0)return;e.preventDefault();let t=e.clientX-l.current.getBoundingClientRect().left,n=t>=m&&t<=m+p;u.current=n?t-m:p/2,n||o(h(e.clientX)),e.currentTarget.setPointerCapture(e.pointerId),f(!0)},v=e=>{d&&o(h(e.clientX))},y=()=>f(!1),b=e=>{let t={ArrowLeft:-1,ArrowRight:1}[e.key];t&&(e.preventDefault(),o(r+t*i*.2)),e.key===`Home`&&(e.preventDefault(),o(0)),e.key===`End`&&(e.preventDefault(),o(a))},x=Math.max(1,a-i);return(0,G.jsxs)(Z.div,{ref:l,className:`pan-bar`,"data-dragging":d||void 0,style:{left:e,top:t,width:n},role:s?`scrollbar`:void 0,"aria-label":s?`Pan both sides`:void 0,"aria-orientation":s?`horizontal`:void 0,"aria-valuemin":s?0:void 0,"aria-valuemax":s?100:void 0,"aria-valuenow":s?Math.round(r/x*100):void 0,"aria-hidden":!s||void 0,tabIndex:s?0:void 0,onKeyDown:s?b:void 0,onPointerDown:g,onPointerMove:v,onPointerUp:y,onPointerCancel:y,initial:{opacity:0},animate:{opacity:1,transition:c.enter},exit:{opacity:0,transition:c.exit},children:[(0,G.jsx)(`span`,{className:`pan-track`}),(0,G.jsx)(`span`,{className:`pan-thumb`,style:{left:m,width:p}})]})}var wh={changed:`229 168 59`,added:`111 191 115`,removed:`224 112 95`},Th=e=>`rgb(${wh[e]??wh.changed})`,Eh=e=>`rgb(${wh[e]??wh.changed} / .13)`,Dh=`cubic-bezier(.22,1,.36,1)`,Oh=200,kh=160,Ah=`system-ui,-apple-system,'Segoe UI',sans-serif`,jh=`ui-monospace,'SF Mono','Cascadia Mono',Menlo,Consolas,monospace`,Mh=196,Nh=14,Ph=220,Fh=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,Ih=()=>Fh()?`instant`:`smooth`,Lh=`all:initial;box-sizing:border-box;color:inherit;font:inherit;`;function Rh(e,t,n){let r=e.createElement(t);return r.style.cssText=Lh+n,r}function zh(e){if(delete e.dataset.key,delete e.dataset.change,delete e.dataset.afterimageCard,e.inert=!0,Fh()){e.remove();return}let t=Number(e.ownerDocument.defaultView.getComputedStyle(e).opacity),n=e.animate([{opacity:Number.isNaN(t)?1:t},{opacity:0}],{duration:kh,easing:`ease-out`});n.onfinish=()=>e.remove()}function Bh(e){let t=e?.querySelector?.(`[data-afterimage-overlay]`);if(!t)return;if(delete t.dataset.afterimageOverlay,t.inert=!0,Fh()){t.remove();return}let n=t.animate([{opacity:1},{opacity:0}],{duration:kh,easing:`ease-out`});n.onfinish=()=>t.remove()}function Vh(e){let t=e.querySelector(`[data-afterimage-overlay]`);return t||(t=Rh(e,`div`,``),t.dataset.afterimageOverlay=``,t.style.cssText=Lh+`display:block;position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:2147483646;`,e.documentElement.append(t)),t}var Hh=new WeakMap;function Uh(e,t){let n=Hh.get(e);if(!n){n=[];for(let r=e.parentElement;r&&r.tagName!==`BODY`&&r.tagName!==`HTML`;r=r.parentElement){let e=t.getComputedStyle(r);(e.overflowX!==`visible`||e.overflowY!==`visible`)&&n.push(r)}Hh.set(e,n)}return n}var Wh=(e,t)=>({x:e.left+t.scrollX,y:e.top+t.scrollY,width:e.width,height:e.height});function Gh(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return{x:n,y:r,width:Math.max(0,Math.min(e.x+e.width,t.x+t.width)-n),height:Math.max(0,Math.min(e.y+e.height,t.y+t.height)-r)}}function Kh(e,t){let n=e.element;if(e.page||!n?.isConnected)return{rect:e.rect,clip:null};let r=Wh(n.getBoundingClientRect(),t),i=null;for(let e of Uh(n,t)){let n=Wh(e.getBoundingClientRect(),t);i=i?Gh(i,n):n}return{rect:r,clip:i}}function qh(e,t){let n=[],{top:r,height:i}=e.getBoundingClientRect(),a=r;for(let r of Uh(e,t)){if(!/^(auto|scroll|overlay)$/.test(t.getComputedStyle(r).overflowY)||r.scrollHeight<=r.clientHeight)continue;let e=r.getBoundingClientRect(),o=Math.max(24,(r.clientHeight-i)/2),s=Math.max(0,Math.min(r.scrollTop+a-e.top-o,r.scrollHeight-r.clientHeight));a-=s-r.scrollTop,n.push({target:r,top:s})}return n.push({target:t,top:Math.max(0,t.scrollY+a-Math.max(24,(t.innerHeight-i)/2))}),n}function Jh(e,t){let{x:n,y:r,width:i,height:a}=e.rect,o=Math.max(n,5),s=Math.min(n+i,t-5),c=Math.max(r,5);return{left:o,top:c,width:Math.max(0,s-o),height:Math.max(0,a-(c-r))}}function Yh(e,t,n){if(!t)return``;let r=-24*n,i=t.y-e.top,a=t.x-e.left,o=e.top+e.height-(t.y+t.height),s=e.left+e.width-(t.x+t.width);if(i>=e.height||o>=e.height||a>=e.width||s>=e.width)return`display:none;`;let c=e=>e>0?`${e}px`:`${r}px`;return`clip-path:inset(${c(i)} ${c(s)} ${c(o)} ${c(a)});`}function Xh(e,t,n,{number:r,active:i,dimmed:a,onPick:o,isNew:s,zoom:c}){let l=Fh(),u=!!n.page,d=t.querySelector(`:scope > [data-change][data-key="${CSS.escape(n.key)}"]`)??Rh(e,`div`,``);d.dataset.change=n.kind,d.dataset.key=n.key;let f=u?`position:fixed;left:6px;top:6px;right:6px;bottom:6px;outline-offset:0;`:(({left:e,top:t,width:n,height:r})=>`position:absolute;left:${e}px;top:${t}px;width:${n}px;height:${r}px;outline-offset:${3*c}px;`)(Jh(n,e.documentElement.clientWidth)),p=(i?2:1.5)*c;d.style.cssText=`all:initial;box-sizing:border-box;color:inherit;font:inherit;display:block;${f}${u?``:Yh(Jh(n,e.documentElement.clientWidth),n.clip,c)}border-radius:${4*c}px;pointer-events:none;outline:${p}px ${n.kind===`removed`?`dashed`:`solid`} ${Th(n.kind)};box-shadow:${i?`0 0 0 ${6*c}px ${Eh(n.kind)}`:`0 0 0 0 transparent`};opacity:${a?`.5`:`1`};`+(l?``:`transition:opacity 160ms ease-out,box-shadow 160ms ease-out,outline-width 160ms ease-out;`);let m=d.querySelector(`:scope > button`);m||(m=Rh(e,`button`,``),d.append(m)),m.type=`button`,m.textContent=r??``,m.setAttribute(`aria-label`,`Change ${r}`);let h=!u&&n.rect.x<12,g=!u&&n.rect.y<12,_=u||h?2:-10,v=u||g?2:-10;return m.style.cssText=`all:initial;box-sizing:border-box;color:inherit;font:inherit;display:block;position:absolute;left:${_}px;top:${v}px;scale:${c};transform-origin:${-_}px ${-v}px;min-width:18px;height:18px;padding:0 3px;border-radius:5px;text-align:center;background:${Th(n.kind)};color:#1b1b1b;font:600 12px/18px ${jh};font-variant-numeric:tabular-nums;cursor:pointer;pointer-events:auto;`,m.onclick=e=>{e.stopPropagation(),o?.(n.key)},d.isConnected||(t.append(d),!l&&s&&d.animate([{opacity:0},{opacity:a?.5:1}],{duration:Oh,easing:Dh})),d}var Zh=e=>/^(?:(?:rgba?|hsla?|oklch|oklab|color)\([^;{}()]*\)|#[0-9a-f]{3,8})$/i.test(String(e).trim());function Qh(e,t,{swatch:n,muted:r,strike:i}){let a=Rh(e,`div`,`display:flex;align-items:baseline;gap:6px;min-width:0;color:${r?`#8e8e8e`:`#ededed`};${i?`text-decoration:line-through;`:``}font:12px/1.35 ${Ah};`);if(n){let n=Rh(e,`span`,`display:block;flex:none;width:10px;height:10px;border-radius:3px;box-shadow:inset 0 0 0 1px #ffffff2e;align-self:center;`);n.style.background=String(t).trim(),a.append(n)}let o=Rh(e,`span`,`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;overflow-wrap:anywhere;${n?`font-family:${jh};font-size:12px;`:``}`);return o.textContent=t,a.append(o),a}function $h(e,t,n){t.replaceChildren();let{kindLabel:r,position:i}=n,a=Rh(e,`div`,`display:block;color:#8e8e8e;font:12px/1.35 ${Ah};margin-bottom:6px;`);a.append(e.createTextNode(`${r} · `));let o=t=>{let n=Rh(e,`span`,`font:12px/1.35 ${jh};font-variant-numeric:tabular-nums;`);return n.textContent=t,n};a.append(o(i.n),e.createTextNode(` of `),o(i.total)),t.append(a);let s=(Array.isArray(n.detail)?n.detail:[n.detail]).filter(Boolean).slice(0,3),c=s.length>1;for(let n of s){let r=Rh(e,`div`,`display:block;margin-top:6px;`);if(c||n.label){let t=Rh(e,`div`,`display:block;color:#ededed;font:600 12px/1.35 ${Ah};margin-bottom:2px;`);t.textContent=n.label,r.append(t)}let i=Rh(e,`div`,`display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;`),a=e=>!!n.color&&Zh(e),o=(t,n,r)=>{let o=Rh(e,`span`,`display:block;color:#8e8e8e;font:12px/1.35 ${Ah};`);o.textContent=t,i.append(o,Qh(e,n,{swatch:a(n),...r}))};n.before&&o(`was`,n.before,{muted:!0,strike:!!n.after}),n.after&&o(`now`,n.after,{}),r.append(i),t.append(r)}}function eg(e,t,n,r,i){if(n.page){let n=i&&i.max<e.documentElement.clientWidth;t.style.cssText+=n?`;position:fixed;left:${16*r}px;top:${16*r}px;right:auto;`:`;position:fixed;right:${16*r}px;top:${16*r}px;left:auto;transform-origin:100% 0;`;return}let a=e.documentElement,{left:o,top:s}=tg({rect:n.rect,cardWidth:Mh*r,cardHeight:t.offsetHeight*r,gap:Nh*r,room:Ph*r,edge:8*r,below:10*r,clientWidth:a.clientWidth,docHeight:Math.max(a.scrollHeight,e.defaultView.innerHeight),viewHeight:e.defaultView.innerHeight,zoom:r,bounds:i});t.style.left=`${o}px`,t.style.top=`${s}px`}function tg({rect:e,cardWidth:t,cardHeight:n,gap:r,room:i,edge:a,below:o,clientWidth:s,docHeight:c,viewHeight:l,zoom:u=1,bounds:d=null}){let{x:f,y:p,width:m,height:h}=e,g=Math.max(0,d?.min??0),_=Math.min(s,d?.max??s),v=e=>Math.max(a,Math.min(e,c-n-a)),y=e=>Math.max(g+a,Math.min(e,_-t-a)),b=p+Math.min(h,l-48)/2;return _-(f+m)>=i?{left:f+m+r,top:v(b-n/2)}:f-g>=i?{left:f-r-t,top:v(b-n/2)}:p+h+o+n<=c-a?{left:y(f),top:p+h+o}:p-o-n>=a?{left:y(f),top:p-o-n}:{left:y(f+12*u),top:v(p+12*u)}}function ng(e,t,n,r,i){let a=[...t.querySelectorAll(`:scope > [data-afterimage-card]`)].filter(e=>!e.inert),o=n&&a.find(e=>e.dataset.afterimageCard===n.key);for(let e of a)e!==o&&zh(e);if(!n||!r)return;let s=!o,c=o??Rh(e,`div`,``);c.dataset.afterimageCard=n.key,c.style.cssText=`all:initial;box-sizing:border-box;color:inherit;font:inherit;display:block;position:absolute;left:0;top:0;width:${Mh}px;padding:9px 11px;border-radius:10px;background:#1b1b1b;color:#ededed;pointer-events:none;box-shadow:0 0 0 1px #ffffff14,0 1px 2px #0003,0 8px 24px #0006;scale:${i};transform-origin:0 0;`,$h(e,c,n),c.isConnected||t.append(c);let l=r.clip?{...r,rect:Gh(r.rect,r.clip)}:r;r.page||l.rect.width!==0&&l.rect.height!==0||(c.style.display=`none`),eg(e,c,l,i,n.bounds??null),s&&!Fh()&&c.animate([{opacity:0,transform:`translateY(4px)`},{opacity:1,transform:`translateY(0)`}],{duration:Oh,easing:Dh})}function rg({x:e,y:t,moved:n,viewport:r,region:i,card:a,slop:o}){if(n>4||e>=r.width||t>=r.height)return!1;let s=(n,r)=>n&&e>=n.left-r&&e<=n.right+r&&t>=n.top-r&&t<=n.bottom+r;return!s(i,o)&&!s(a,0)}function ig(e,t,n,r=1){let i=e?.defaultView;if(!i)return()=>{};let a=null,o=e=>{a={x:e.clientX,y:e.clientY}},s=i=>{let o=a;if(a=null,i.detail===0)return;let s=e.querySelector(`[data-afterimage-overlay]`);if(!s||s.contains(i.target))return;let c=s.querySelector(`:scope > [data-change][data-key="${CSS.escape(t)}"]`),l=s.querySelector(`:scope > [data-afterimage-card="${CSS.escape(t)}"]`),u=c?.style.position===`fixed`,d=o?Math.hypot(i.clientX-o.x,i.clientY-o.y):0;rg({x:i.clientX,y:i.clientY,moved:d,viewport:{width:e.documentElement.clientWidth,height:e.documentElement.clientHeight},region:c&&!u?c.getBoundingClientRect():null,card:l?.getBoundingClientRect()??null,slop:8*r})&&n()};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,s,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,s,!0)}}function ag(e,t,n={}){let{activeKey:r=null,numbers:i=new Map,onPick:a,card:o=null,zoom:s=1}=n;if(!e?.documentElement||!t.length){Bh(e);return}let c=Vh(e),l=e.defaultView;if(!n.scrolled){c.style.display=`none`;let t=e.documentElement.scrollWidth,n=e.documentElement.scrollHeight;c.style.display=`block`,c.style.width=`${t}px`,c.style.height=`${n}px`,c.style.overflow=`clip`}c.redraw=()=>ag(e,t,{...n,scrolled:!0}),og(e);let u=new Set,d=new Set([...c.querySelectorAll(`:scope > [data-change]`)].map(e=>e.dataset.key));for(let n of t){let t={...n,...Kh(n,l)};u.add(t.key),Xh(e,c,t,{number:i.get(t.key),active:r===t.key,dimmed:r!==null&&r!==t.key,onPick:a,isNew:!d.has(t.key),zoom:s})}for(let e of[...c.querySelectorAll(`:scope > [data-change]`)])u.has(e.dataset.key)||zh(e);let f=o&&t.find(e=>e.key===o.key);ng(e,c,o,f&&{...f,...Kh(f,l)},s)}function og(e){if(e.afterimageFollowsPanels)return;e.afterimageFollowsPanels=!0;let t=0;e.addEventListener(`scroll`,n=>{n.target===e||t||(t=e.defaultView.requestAnimationFrame(()=>{t=0,e.querySelector(`[data-afterimage-overlay]`)?.redraw?.()}))},{capture:!0,passive:!0})}var sg=5,cg=95,lg=16,ug=e=>Math.min(cg,Math.max(sg,e));function dg({wipe:e,kind:t,rect:n,width:r,scrollX:i=0}){if(!(r>0)||!n)return e;let a=n.x-i,o=(a+n.width/2)/r*100,s=lg/r*100;return t===`removed`&&o>e?ug((a+n.width)/r*100+s):t===`added`&&o<e?ug(a/r*100-s):e}function fg({layout:e,wipe:t,width:n,onBase:r,peek:i=!1,scrollX:a=0,pan:o=0,visible:s=n}){if(e===`side`)return n>0&&s<n?{min:o,max:o+s}:null;if(e!==`wipe`||i||!(n>0))return null;let c=t/100*n+a;return r?{min:a,max:c}:{min:c,max:a+n}}var pg=10,mg=10,hg=38,gg=12,_g={duration:0};function vg(e){let t=e.details.filter(e=>!e.layout);return(t.length?t:e.details).slice(0,3)}function yg(e){let t=(e.document.scrollingElement??e.document.documentElement).scrollHeight-e.document.documentElement.clientHeight;return t>0?e.scrollY/t:0}function bg(e,t){let n=e.document.scrollingElement??e.document.documentElement,r=Math.max(0,n.scrollHeight-e.document.documentElement.clientHeight);e.scrollTo({top:yg(t)*r,behavior:`instant`})}function xg(e){let[t,n]=(0,_.useState)({width:0,height:0});return(0,_.useLayoutEffect)(()=>{let t=e.current,r=()=>{let{width:e,height:r}=t.getBoundingClientRect();n(t=>t.width===e&&t.height===r?t:{width:e,height:r})};r();let i=new ResizeObserver(r);return i.observe(t),()=>i.disconnect()},[e]),t}function Sg(e,{width:t,height:n},r,i,a){let o={x:0,y:0,width:t||`100%`,height:n||`100%`,borderRadius:0},s={x:0,scale:1,height:n||`100%`};if(e!==`side`||!(t>0))return{base:{col:o,box:s},target:{col:o,box:s},column:0,fit:1,scale:1,visible:t};let c=(t-20-mg)/2,l=c/t,u=fp(i,l),d=c/u,f=pp(a,t,d),p=n-r-pg,m=e=>({col:{x:e,y:r,width:c,height:p,borderRadius:8},box:{x:-f*u,scale:u,height:p/u}});return{base:m(pg),target:m(pg+c+mg),column:c,fit:l,scale:u,visible:d,pan:f}}function Cg({state:e,dispatch:t,versions:n,review:r,targetRef:i,baseRef:a,phone:o}){let s=rf(),c=sh(),l=(0,_.useRef)(null),u=xg(l),d=n.find(t=>t.id===e.versionId)??n[0],f=bp(n,e),{comparison:p,status:m}=r,h=(0,_.useMemo)(()=>Bf(r.entries,e.changeFilter),[r.entries,e.changeFilter]),g=e.highlights&&!e.retracted&&m===`ready`&&p!==null,v=g&&e.changeIndex!==null?h[e.changeIndex]??null:null,y=v?.kind===`removed`,b=e.mode===`compare`&&!!f,x=!!f&&(b||e.peek||y),S=!b&&x,C=b?o?`wipe`:e.layout:`single`,[w,T]=(0,_.useState)(0),E=Sg(C,u,hg,e.zoom,w),D=C===`side`&&E.visible<u.width,O=1/E.scale,k=(0,_.useRef)(C),A=(0,_.useRef)(e.zoom),ee=k.current!==C,te=(0,_.useRef)(!1),ne=ee||C===`side`&&A.current!==e.zoom||te.current;(0,_.useEffect)(()=>{k.current=C,A.current=e.zoom,te.current=!1});let j=ne?c.layout:_g;(0,_.useLayoutEffect)(()=>{ne&&c.layout.duration>0&&mm(c.layout.duration*1e3+60)});let M=(0,_.useRef)({});(0,_.useEffect)(()=>{M.current={base:E.base.box.height,target:E.target.box.height}});let re=e=>{let t=M.current[e],n=E[e].box.height,r=ne&&typeof t==`number`&&typeof n==`number`&&n<t;return{...j,height:{duration:0,delay:r?j.duration??0:0}}},ie=(0,_.useRef)({}),ae=(e,t)=>()=>{let n=ie.current[e];n&&n.toggleAttribute(`data-gliding`,t)},N=(0,_.useRef)(null);N.current={zoom:e.zoom,fit:E.fit,scale:E.scale,pan:E.pan??0,width:u.width,column:E.column,visible:E.visible,zoomed:D};let oe=(0,_.useCallback)((e,n)=>{let r=N.current;if(e===r.zoom||!(r.width>0))return;let i=fp(e,r.fit),a=n??(r.zoom===`fit`?0:r.pan+r.visible/2);T(mp({pan:r.pan,anchor:a,from:r.scale,to:i,width:r.width,column:r.column})),t({type:`setZoom`,zoom:e})},[t]),se=(0,_.useCallback)(e=>{let t=N.current;t.zoomed&&T(n=>pp(pp(n,t.width,t.visible)+e,t.width,t.visible))},[]),[ce,le]=(0,_.useState)(50),[ue,de]=(0,_.useState)(!1),fe=Zd(C===`wipe`?ce:100),pe=ef(fe,e=>`inset(0 ${100-e}% 0 0)`),me=C===`wipe`&&!e.peek?ce:100,he=(0,_.useRef)(null),ge=(0,_.useRef)(!1),P=(0,_.useRef)(null),F=ef(fe,e=>P.current??e);(0,_.useLayoutEffect)(()=>{he.current?.stop();let e=(ee||ge.current)&&c.layout.duration>0;ge.current=!1;let t=[k.current,C].sort().join();P.current=e&&ee&&t===`side,wipe`?ce:null,P.current===null&&(e?he.current=Nf(fe,me,c.layout):fe.jump(me))},[me]);let _e=e=>{P.current!==null&&typeof e.scale==`number`&&e.scale>0&&fe.set(Math.min(100,P.current/e.scale))},ve=()=>{},ye=()=>{P.current!==null&&(P.current=null,fe.jump(me))},be=(0,_.useRef)(ce);ue||(be.current=ce);let xe=be.current,I=v&&p?p.current.find(e=>e.key===v.key):null,Se=C===`wipe`?am(i.current)?.scrollX??0:0,Ce=e.peek?1/0:xe/100*u.width+Se,we=y||C===`wipe`&&v?.kind===`changed`&&!!I&&I.rect.x+I.rect.width/2<Ce,[Te,Ee]=(0,_.useState)(0),De=E.pan??0;(0,_.useEffect)(()=>{let e=setTimeout(()=>Ee(De),120);return()=>clearTimeout(e)},[De]);let L=fg({layout:C,wipe:xe,width:u.width,onBase:we,peek:e.peek,scrollX:Se,pan:Te,visible:E.visible}),Oe=L?.min??null,ke=L?.max??null,Ae=(0,_.useRef)(ce);Ae.current=ce;let je=(0,_.useRef)(null);(0,_.useEffect)(()=>{if(C!==`wipe`||!v||!p||ue)return;let t=[d.id,f?.id,e.changeFilter,v.key,e.pick].join(`|`);if(je.current===t)return;je.current=t;let n=y?p.previous.find(e=>e.key===v.key&&e.kind===`removed`):p.current.find(e=>e.key===v.key);if(!n||n.page)return;let r=am((y?a:i).current)?.scrollX??0,o=dg({wipe:Ae.current,kind:v.kind,rect:n.rect,width:u.width,scrollX:r});o!==Ae.current&&(ge.current=!0,le(o))},[C,v,p,ue,d,f,y,e.changeFilter,e.pick,u.width,a,i]);let Me=(0,_.useRef)(null);(0,_.useEffect)(()=>{if(!D||!v||!p)return;let t=[d.id,f?.id,e.changeFilter,v.key,e.pick,e.zoom].join(`|`);if(Me.current===t)return;Me.current=t;let n=y?p.previous.find(e=>e.key===v.key&&e.kind===`removed`):p.current.find(e=>e.key===v.key);if(!n||n.page)return;let r=N.current,i=hp({pan:r.pan,rect:n.rect,width:r.width,visible:r.visible});i!==r.pan&&(te.current=!0,T(i))},[D,v,p,d,f,y,e.changeFilter,e.pick,e.zoom]),(0,_.useEffect)(()=>{if(C!==`side`)return;let e=[i.current,a.current].filter(Boolean),t=0,n=0,r=e=>{let r=e.deltaMode===1?16:e.deltaMode===2?N.current.width:1;if(e.ctrlKey||e.metaKey){e.preventDefault();let i=performance.now();if(i<n||(t+=e.deltaY*r,Math.abs(t)<40))return;let a=gp(N.current.zoom,t<0?1:-1);t=0,n=i+300,oe(a,e.clientX);return}let i=e.shiftKey&&!e.deltaX?e.deltaY:e.deltaX;!N.current.zoomed||!i||!e.shiftKey&&Math.abs(e.deltaX)<=Math.abs(e.deltaY)||(e.preventDefault(),se(i*r/N.current.scale))},o=new Map,s=e=>{o.get(e)?.();let t=am(e);t?(t.addEventListener(`wheel`,r,{passive:!1}),o.set(e,()=>t.removeEventListener(`wheel`,r))):o.set(e,()=>{})},c=e=>s(e.currentTarget);for(let t of e)s(t),t.addEventListener(`load`,c);return()=>{for(let t of e)t.removeEventListener(`load`,c);for(let e of o.values())fm(e)}},[C,!!f,oe,se,i,a]);let Ne=b&&(C===`wipe`||e.syncScroll);(0,_.useEffect)(()=>{if(Ne)return Im(i.current,a.current)},[Ne,!!f,i,a]),(0,_.useEffect)(()=>{let n=[[i.current,d],[a.current,f]],r=new Set(h.map(e=>e.key)),o=new Map(h.map((e,t)=>[e.key,t+1])),s=e=>{let n=h.findIndex(t=>t.key===e);n!==-1&&t({type:`selectChange`,index:n})},c=t=>!v||!t?null:{key:v.key,kindLabel:v.kindLabel,position:{n:e.changeIndex+1,total:h.length},detail:vg(v),bounds:Oe===null?null:{min:Oe,max:ke}},l=e=>(e??[]).filter(e=>r.has(e.key)).map(({key:e,kind:t,rect:n,page:r,element:i})=>({key:e,kind:t,rect:n,page:r,element:i})),u=()=>{for(let[e,[t,r]]of n.entries()){let n=e===1,i=t?.contentDocument;i&&(!g||!um(t,r)?Bh(i):ag(i,l(n?p.previous:p.current),{activeKey:v?.key??null,numbers:o,onPick:s,card:c(n===we),zoom:O}))}};u();let m=n.map(([e])=>e).filter(Boolean);for(let e of m)e.addEventListener(`load`,u);return()=>{for(let e of m)e.removeEventListener(`load`,u)}},[g,p,h,v,e.changeIndex,d,f,we,Oe,ke,O,t,i,a]);let Pe=v?.key??null;(0,_.useEffect)(()=>{if(!Pe)return;let e=[i.current,a.current].filter(Boolean),n=()=>t({type:`clearChange`}),r=new Map,o=e=>{r.get(e)?.();let t=am(e);r.set(e,t?ig(t.document,Pe,n,O):()=>{})},s=e=>o(e.currentTarget);for(let t of e)o(t),t.addEventListener(`load`,s);return()=>{for(let t of e)t.removeEventListener(`load`,s);for(let e of r.values())fm(e)}},[Pe,O,t,i,a]);let Fe=e=>{Pe&&e.target===e.currentTarget&&t({type:`clearChange`})};(0,_.useEffect)(()=>()=>{Bh(i.current?.contentDocument),Bh(a.current?.contentDocument)},[i,a]),(0,_.useLayoutEffect)(()=>{if(!S)return;let e=am(a.current),t=am(i.current);if(!e||!t)return;let n=e.scrollY;bg(e,t);let r=()=>{};return fm(()=>{r=Mm(t.document,e.document)}),()=>fm(()=>{r(),e.scrollTo({top:n,behavior:`instant`})})},[S,a,i]);let Ie=(0,_.useRef)(null);(0,_.useEffect)(()=>{if(!v||!p){Ie.current=null;return}let t=[d.id,f?.id,e.changeFilter,v.key,e.pick].join(`|`);if(Ie.current===t)return;let n=(y?a:i).current;if(!um(n,y?f:d))return;let r=y?p.previous.find(e=>e.key===v.key&&e.kind===`removed`):p.current.find(e=>e.key===v.key);if(!r)return;Ie.current=t;let o=am(n);if(r.page){o.scrollTo({top:0,behavior:Ih()});return}if(r.element?.isConnected){for(let{target:e,top:t}of qh(r.element,o))e.scrollTo({top:t,behavior:Ih()});return}let s=Math.max(24,(o.innerHeight-r.rect.height)/2);o.scrollTo({top:Math.max(0,r.rect.y-s),behavior:Ih()})},[v,p,d,f,y,e.changeFilter,e.pick,a,i]);let Le={duration:s?0:.2,ease:[.22,1,.36,1]},Re={duration:s?0:.16,ease:`easeOut`},ze=C===`side`,Be=`calc(${ze?22:gg}px + var(--label-lift))`,Ve={left:(ze?pg:0)+gg,bottom:Be},He=C===`wipe`&&e.panelOpen&&!o,Ue=ze?{left:pg+E.column+mg+gg,bottom:Be}:{right:gg,bottom:Be},We=(e,t)=>(0,G.jsx)(Z.div,{className:`frame-col`,"data-role":e,initial:!1,animate:E[e].col,transition:j,children:(0,G.jsx)(Z.div,{ref:t=>{ie.current[e]=t},className:`frame-box`,style:{width:u.width||`100%`,clipPath:e===`base`?pe:void 0},initial:!1,animate:E[e].box,transition:re(e),onAnimationStart:ae(e,ne),onAnimationComplete:()=>{ae(e,!1)(),e===`base`&&ye()},onUpdate:e===`base`?_e:ve,children:t})},e),Ge=e=>T(pp(e,u.width,E.visible));return(0,G.jsxs)(`div`,{ref:l,className:`stage`,"data-layout":C,"data-dragging":ue||void 0,onClick:Fe,children:[We(`target`,(0,G.jsx)(mh,{frameRef:i,version:d,role:`target`,compare:b,visible:!0})),f&&We(`base`,(0,G.jsx)(mh,{frameRef:a,version:f,role:`base`,compare:b,visible:x})),(0,G.jsxs)(Vu,{children:[C===`wipe`&&(0,G.jsx)(yh,{split:F,value:ce,onChange:le,onDragging:de,stageRef:l,stageWidth:u.width,beforeLabel:f.id},`divider`),b&&(0,G.jsx)(bh,{version:f,kind:`Before`,style:Ve},`before`),b&&!He&&(0,G.jsx)(bh,{version:d,kind:`After`,style:Ue},`after`),ze&&(0,G.jsx)(Sh,{syncOn:e.syncScroll,onToggleSync:()=>t({type:`toggleSync`}),zoom:e.zoom,onZoom:e=>oe(e)},`side-tools`),D&&[`base`,`target`].map(e=>(0,G.jsx)(Ch,{left:E[e].col.x,top:29,width:E.column,pan:E.pan,visible:E.visible,page:u.width,onPan:Ge,focusable:e===`target`},`pan-${e}`))]}),(0,G.jsx)(Vu,{children:!b&&y&&f&&(0,G.jsx)(Z.div,{className:`stage-note`,initial:{opacity:0,y:s?0:-4},animate:{opacity:1,y:0,transition:Le},exit:{opacity:0,transition:Re},children:(0,G.jsxs)(`span`,{children:[`Showing\xA0`,(0,G.jsx)(`span`,{className:`num`,children:f.id}),`\xA0·\xA0removed in\xA0`,(0,G.jsx)(`span`,{className:`num`,children:d.id})]})},`removed-note`)})]})}function wg({versions:e,version:t,dispatch:n,inputId:r,choices:i=e,onPick:a,onStep:o,label:s=`Version number`,baseline:c,fieldRef:l}){let u=sh(),d=rf(),f=(0,_.useId)(),p=(0,_.useRef)(null),m=(0,_.useRef)(!1),[h,g]=Pf(),[v,y]=(0,_.useState)(!1),[b,x]=(0,_.useState)(null),[S,C]=(0,_.useState)(null),w=Wf(t),T=String(Wf(e[0])).length,E=Math.max(3,T);(0,_.useEffect)(()=>{let e=p.current;e&&document.activeElement===e&&e.select()},[w]);let D=()=>{x(null),C(null)},O=e=>{C(e),p.current?.select(),!d&&h.current&&g(h.current,{x:[0,-3,3,-2,2,0]},{duration:.24,ease:`easeOut`})},k=e=>{if(e.key===`Enter`){if(e.preventDefault(),b===null||b===String(w)){p.current.blur();return}let t=$f(b,i);if(!t.ok){O(t.hint);return}a?a(t.id):n({type:`selectVersion`,id:t.id}),p.current.blur()}else if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),p.current.blur();else if(e.key===`ArrowUp`||e.key===`ArrowDown`){e.preventDefault(),D();let t=e.key===`ArrowUp`?1:-1;o?o(t):n({type:`stepVersion`,delta:t})}},A=S??(v?`typing`:null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{ref:h,className:`version-field-wrap`,children:(0,G.jsx)(`input`,{ref:e=>{p.current=e,l&&(l.current=e)},id:r,className:`version-field num`,"data-invalid":S?!0:void 0,"data-baseline":c||void 0,style:{width:`calc(${E}ch + 12px)`},type:`text`,inputMode:`numeric`,enterKeyHint:`go`,autoComplete:`off`,spellCheck:!1,maxLength:E,"aria-label":s,"aria-invalid":S?!0:void 0,"aria-describedby":A?f:void 0,value:b??String(w),onChange:e=>{x(e.target.value.replace(/\D/g,``)),C(null)},onFocus:e=>{y(!0),m.current=!0,e.target.select()},onMouseUp:e=>{m.current&&=(e.preventDefault(),!1)},onBlur:()=>{y(!1),m.current=!1,D()},onKeyDown:k})}),(0,G.jsx)(Vu,{children:A&&(0,G.jsx)(Z.div,{id:f,className:`pill-hint`,"data-error":S?!0:void 0,role:`status`,initial:{opacity:0,y:d?0:4},animate:{opacity:1,y:0,transition:u.enter},exit:{opacity:0,y:d?0:2,transition:u.exit},children:S??(0,G.jsxs)(G.Fragment,{children:[`Enter to go `,(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),` `,(0,G.jsx)(`kbd`,{children:`↑`}),(0,G.jsx)(`kbd`,{children:`↓`}),` step`]})},`hint`)})]})}var Tg=5,Eg=2,Dg=4,Og=2;function kg({versions:e,state:t,dispatch:n}){let r=sh(),i=(0,_.useRef)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null),d=(0,_.useRef)(null),[f,p]=(0,_.useState)(null),m=e=>{d.current=e,u(e)},h=t.mode===`compare`,g=h?l??t.baseId:null,v=Qf(e,a??t.versionId,h?f??t.baseId:null),y=t=>Gf(e,t),b=e=>e===t.versionId?`selected`:e===g?`base`:g&&y(e)<y(g)&&y(e)>y(t.versionId)?`range`:`plain`,x=v.ticks.map(e=>({...e,role:b(e.id)})),S=x.map((e,t)=>t*Tg+(v.gapAfter!==-1&&t>v.gapAfter?Dg:0)),C=a!==null,w=(e,t)=>{let n=e-i.current.getBoundingClientRect().left-Eg/2,r=t?x.findIndex(e=>e.role===`base`):-1;return Xf(S,n,r,Og)},T=e=>x[w(e,!1)]?.id??null,E=r=>{let i=r&&h?Jf(e,r,t.baseId):r;i&&i!==t.versionId&&n({type:`selectVersion`,id:i})},D=e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),o(t.versionId),c(null);let n=x[w(e.clientX,h)];n?.role===`base`?(p(t.baseId),m(t.baseId)):E(n?.id)},O=n=>{C&&d.current!==null?m(Yf(e,T(n.clientX),t.versionId)??d.current):C?E(T(n.clientX)):n.pointerType===`mouse`&&c(T(n.clientX))},k=({commit:e})=>{let r=d.current;e&&r!==null&&r!==t.baseId&&n({type:`setBase`,id:r}),m(null),p(null),o(null)},A=e.length-1-Gf(e,t.versionId),ee=e.find(e=>e.id===t.versionId),te=C?l??t.versionId:s,ne=x.findIndex(e=>e.id===te),j=ne===-1?null:e.find(e=>e.id===te),M=ne===-1?0:S[ne]+Eg/2,re=v.fadeStart&&v.fadeEnd?`both`:v.fadeStart?`start`:v.fadeEnd?`end`:void 0;return(0,G.jsxs)(`div`,{className:`tick-strip`,"data-dragging":C||void 0,"data-range":h||void 0,onPointerDown:D,onPointerMove:O,onPointerUp:()=>k({commit:!0}),onPointerCancel:()=>k({commit:!1}),onLostPointerCapture:()=>k({commit:!1}),onPointerLeave:()=>c(null),children:[(0,G.jsx)(`input`,{className:`tick-input`,type:`range`,min:0,max:e.length-1,step:1,value:A,"aria-label":`Version timeline`,"aria-valuetext":`${ee.id}, ${ee.name}`,onChange:t=>E(e[e.length-1-Number(t.target.value)]?.id)}),(0,G.jsx)(`div`,{ref:i,className:`tick-track`,"data-fade":re,style:{width:(S[S.length-1]??0)+Eg},"aria-hidden":`true`,children:(0,G.jsx)(Vu,{initial:!1,mode:`popLayout`,children:x.map((e,t)=>(0,G.jsx)(Z.span,{className:`tick-slot`,style:{marginLeft:v.gapAfter!==-1&&t===v.gapAfter+1?Dg:0},layout:`position`,transition:r.layout,initial:{opacity:0},animate:{opacity:1,transition:r.enter},exit:{opacity:0,transition:r.exit},children:(0,G.jsx)(`span`,{className:`tick`,"data-role":e.role,"data-hover":e.id===s||void 0})},e.id))})}),(0,G.jsx)(Vu,{children:j&&(0,G.jsx)(Z.div,{className:`tick-tip-anchor`,initial:{opacity:0,x:M},animate:{opacity:1,x:M,transition:{opacity:r.enter,x:{...r.enter,duration:Math.min(r.enter.duration,.12)}}},exit:{opacity:0,transition:r.exit},"aria-hidden":`true`,children:(0,G.jsxs)(`div`,{className:`tick-tip`,children:[(0,G.jsx)(`span`,{className:`num`,children:j.id}),(0,G.jsx)(`span`,{className:`tick-tip-sep`,children:`·`}),(0,G.jsx)(`span`,{className:`tick-tip-name`,children:j.name})]})},`tip`)})]})}var Ag={changed:`changed`,added:`added`,removed:`removed`};function jg(e){return Ag[e]??``}function Mg({ready:e,changeIndex:t,total:n,filter:r}){if(!e)return`Highlights on. Turn highlights off`;let i=jg(r);return`Highlights on, change ${t===null?`none selected`:t+1} of ${n}${i?` ${i}`:``}. Turn highlights off`}function Ng({ref:e,className:t,children:n,...r}){let i=sh(),a=(0,_.useRef)(null),[o,s]=(0,_.useState)(null);(0,_.useLayoutEffect)(()=>{let e=a.current.offsetWidth;s(t=>t===e?t:e)}),(0,_.useLayoutEffect)(()=>{let e=a.current,t=new ResizeObserver(()=>s(e.offsetWidth));return t.observe(e),()=>t.disconnect()},[]);let c=(0,_.useRef)(null),l=e=>()=>{c.current&&(c.current.style.overflow=e?`hidden`:``)},u=t=>{c.current=t,typeof e==`function`?e(t):e&&(e.current=t)};return(0,G.jsx)(Z.div,{...r,ref:u,className:t,initial:!1,animate:{width:o??`auto`},transition:i.layout,onAnimationStart:l(!0),onAnimationComplete:l(!1),children:(0,G.jsx)(`div`,{ref:a,className:`auto-width-inner`,children:n})})}function Pg(){return(0,G.jsx)(`svg`,{className:`pill-icon`,width:`16`,height:`16`,viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M7 3H4a1 1 0 0 0-1 1v3m10-4h3a1 1 0 0 1 1 1v3M3 13v3a1 1 0 0 0 1 1h3m6 0h3a1 1 0 0 0 1-1v-3`})})}function Fg({direction:e}){return(0,G.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:e<0?`M9.5 4 5.5 8l4 4`:`m6.5 4 4 4-4 4`})})}function Ig({ref:e,children:t,...n}){let r=Lu(),[i,a]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{a(!r)},[r]),(0,G.jsx)(Z.div,{...n,ref:e,className:`seg-content`,inert:!r&&i||void 0,children:t})}var Lg=e=>String(e).length;function Rg({state:e,dispatch:t,review:n,disabled:r,phone:i}){let a=sh(),o=rf(),{status:s,summary:c}=n,l=s===`ready`,u=(0,_.useMemo)(()=>Bf(n.entries,e.changeFilter).length,[n.entries,e.changeFilter]),d=(0,_.useRef)(null),f=(0,_.useRef)(null);(0,_.useEffect)(()=>{l&&(d.current=c.total,f.current=u)},[l,c.total,u]);let p=(0,_.useRef)(null),m=(0,_.useRef)({}),h=(0,_.useRef)(!1),g=e=>t=>{t&&(m.current[e]=t)},v=e.highlights&&!r,y=()=>{h.current=!!p.current?.contains(document.activeElement),t({type:`toggleHighlights`})},b=e=>t({type:`stepChange`,delta:e,total:u}),x=`off`;v&&(x=s===`failed`?`failed`:l&&u===0?`none`:`steps`);let S=(0,_.useRef)(x);(0,_.useLayoutEffect)(()=>{if(S.current===x)return;S.current=x;let e=h.current||!!p.current?.contains(document.activeElement);h.current=!1,e&&m.current[x]?.focus({preventScroll:!0})},[x]);let C={initial:{opacity:0,y:o?0:6},animate:{opacity:1,y:0,transition:a.enter},exit:{opacity:0,y:o?0:-6,transition:a.exit}},w;if(x===`off`){let e=!r&&s!==`failed`,t=l?c.total:d.current??``,n=r?`Highlight changes, not available on the first version`:l?`Highlight changes, ${c.total} ${c.total===1?`change`:`changes`}`:`Highlight changes`;w=(0,G.jsx)(Ig,{...C,children:(0,G.jsxs)(Z.button,{ref:g(`off`),type:`button`,className:`pill-btn highlight-btn`,"aria-pressed":!1,"aria-label":n,disabled:r,onClick:y,initial:!1,animate:{opacity:r?.4:1},transition:a.enter,children:[i?(0,G.jsx)(Pg,{}):(0,G.jsx)(`span`,{children:`Highlight`}),e&&(0,G.jsx)(Z.span,{className:`pill-count num`,"data-zero":l&&c.total===0?!0:void 0,initial:!1,animate:{opacity:+!!l},transition:l?a.enter:a.exit,children:t})]})},`off`)}else if(x===`steps`){let t=l?u:f.current,n=`${Lg(t??0)}ch`,r=l&&e.changeIndex!==null?e.changeIndex+1:`–`,o=l&&u>0,s=jg(e.changeFilter);w=(0,G.jsxs)(Ig,{...C,children:[(0,G.jsxs)(`button`,{ref:g(`steps`),type:`button`,className:`pill-btn stepper-label`,"aria-pressed":!0,"aria-label":Mg({ready:l,changeIndex:e.changeIndex,total:u,filter:e.changeFilter}),onClick:y,children:[(0,G.jsx)(Pg,{}),(0,G.jsxs)(`span`,{className:`stepper-text`,"data-filter":s||void 0,children:[!i&&(0,G.jsx)(`span`,{className:`stepper-prefix`,children:`Change`}),(0,G.jsx)(`span`,{className:`num stepper-n`,style:{minWidth:n},"data-empty":r===`–`||void 0,children:r}),(0,G.jsx)(`span`,{className:`muted`,children:`of`}),(0,G.jsx)(Z.span,{className:`num muted stepper-total`,initial:!1,animate:{opacity:+!!l},transition:l?a.enter:a.exit,children:t??``}),s&&(i?(0,G.jsx)(`span`,{className:`stepper-filter-dot`,"data-kind":e.changeFilter,"aria-hidden":`true`}):(0,G.jsx)(`span`,{className:`muted stepper-filter`,children:s}))]})]}),(0,G.jsxs)(`span`,{className:`stepper-arrows`,children:[(0,G.jsx)(`button`,{type:`button`,className:`pill-step`,"aria-label":`Previous change`,disabled:!o,onClick:()=>b(-1),children:(0,G.jsx)(Fg,{direction:-1})}),(0,G.jsx)(`button`,{type:`button`,className:`pill-step`,"aria-label":`Next change`,disabled:!o,onClick:()=>b(1),children:(0,G.jsx)(Fg,{direction:1})})]})]},`steps`)}else w=(0,G.jsx)(Ig,{...C,children:(0,G.jsxs)(`button`,{ref:g(x),type:`button`,className:`pill-btn stepper-label`,"aria-pressed":!0,"aria-label":`${x===`none`?`No visible changes`:`Couldn't check changes`}. Turn highlights off`,onClick:y,children:[(0,G.jsx)(Pg,{}),(0,G.jsx)(`span`,{className:`muted`,children:x===`none`?i?`0`:`No visible changes`:i?`–`:`Couldn't check`})]})},x);return(0,G.jsx)(Ng,{ref:p,className:`pill-seg highlight-seg`,"data-on":v||void 0,children:(0,G.jsx)(Vu,{initial:!1,mode:`popLayout`,children:w})})}var zg=[[`wipe`,`Wipe`],[`side`,`Side by side`]];function Bg({layout:e,dispatch:t}){let n=sh(),r=(0,_.useRef)({}),i=n=>{n!==e&&t({type:`setLayout`,layout:n})};return(0,G.jsx)(`div`,{className:`layout-toggle`,role:`radiogroup`,"aria-label":`Compare layout`,onKeyDown:t=>{let n={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1}[t.key];if(!n)return;t.preventDefault();let[a]=zg[(zg.findIndex(([t])=>t===e)+n+zg.length)%zg.length];i(a),r.current[a]?.focus({preventScroll:!0})},children:zg.map(([t,a])=>{let o=t===e;return(0,G.jsxs)(`button`,{ref:e=>{r.current[t]=e},type:`button`,role:`radio`,"aria-checked":o,tabIndex:o?0:-1,className:`layout-opt`,"data-on":o||void 0,onClick:()=>i(t),children:[o&&(0,G.jsx)(Z.span,{layoutId:`compare-layout-indicator`,className:`layout-indicator`,transition:n.layout}),(0,G.jsx)(`span`,{className:`layout-opt-label`,children:a})]},t)})})}function Vg(){return(0,G.jsxs)(`svg`,{className:`pill-icon`,width:`16`,height:`16`,viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,"aria-hidden":`true`,children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`14`,height:`12`,rx:`2`}),(0,G.jsx)(`path`,{d:`M10 4v12`})]})}function Hg(){return(0,G.jsx)(`svg`,{className:`pill-icon`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`m4.5 6.5 3.5 3.5 3.5-3.5`})})}function Ug(){return(0,G.jsx)(`svg`,{className:`pill-icon`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`m4.5 4.5 7 7m0-7-7 7`})})}function Wg({state:e,dispatch:t,versions:n,review:r,phone:i,onOpenPanel:a,onRetract:o,versionRef:s,fieldRef:c,handoffRef:l,retractRef:u}){let d=sh(),f=(0,_.useId)(),p=(0,_.useId)(),m=n[0],h=n.find(t=>t.id===e.versionId)??m,g=h.id===m.id,v=Kf(n,h.id)===null,y=Wf(h),b=Wf(m),x=e.mode===`compare`?n.find(t=>t.id===e.baseId)??null:null,S=x!==null,C=qf(n,h.id),w=e=>{let n=C.findIndex(e=>e.id===x.id),r=C[Math.min(C.length-1,Math.max(0,n-e))];r&&r.id!==x.id&&t({type:`setBase`,id:r.id})},T=(0,_.useRef)(null),E=(0,_.useRef)(null),[D,O]=(0,_.useState)(!g);(0,_.useLayoutEffect)(()=>{let e=g?E.current:T.current,t=g?T.current:E.current;e&&t&&document.activeElement===e&&!t.disabled&&(t.inert=!1,t.focus({preventScroll:!0})),O(!g)},[g]);let k=(0,_.useRef)(null),A=(0,_.useRef)(!1),ee=l??A,te=e=>{ee.current=e.currentTarget===document.activeElement};(0,_.useLayoutEffect)(()=>{if(!ee.current)return;ee.current=!1;let e=S?k.current:g?T.current:E.current;e&&(e.inert=!1,e.focus({preventScroll:!0}))},[S]);let ne=(0,G.jsx)(`span`,{className:`pill-dot`,"data-latest":g||void 0,"aria-hidden":`true`}),j=S?Wf(x):null,M;return S&&i?M=(0,G.jsx)(`div`,{className:`pill-seg version-seg`,children:(0,G.jsxs)(`button`,{type:`button`,ref:s,className:`pill-btn version-btn`,"aria-expanded":e.panelOpen,"aria-label":`v${j} to v${y}. Show versions`,onClick:a,children:[(0,G.jsxs)(`span`,{className:`num`,children:[`v`,j]}),(0,G.jsx)(`span`,{className:`muted`,"aria-hidden":`true`,children:`→`}),(0,G.jsxs)(`span`,{className:`num`,children:[`v`,y]})]})}):S&&(M=(0,G.jsxs)(`div`,{className:`pill-seg version-seg compare-versions`,children:[(0,G.jsx)(wg,{versions:n,version:x,dispatch:t,inputId:p,choices:C,onPick:e=>t({type:`setBase`,id:e}),onStep:w,label:`Before, version number`,baseline:!0}),(0,G.jsx)(`button`,{type:`button`,ref:s,className:`pill-btn arrow-btn`,"aria-expanded":e.panelOpen,"aria-label":`v${j} to v${y}. Show versions`,onClick:a,children:(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`→`})}),(0,G.jsx)(wg,{versions:n,version:h,dispatch:t,inputId:f,label:`After, version number`,fieldRef:c})]})),(0,G.jsxs)(`div`,{className:`pill`,role:`group`,"aria-label":`Version history`,"data-compare":S||void 0,children:[(0,G.jsx)(Ng,{className:`pill-morph`,children:(0,G.jsx)(Z.div,{className:`morph-content`,initial:{opacity:0},animate:{opacity:1,transition:d.enter},children:M??(i?(0,G.jsx)(`div`,{className:`pill-seg version-seg`,children:(0,G.jsxs)(`button`,{type:`button`,ref:s,className:`pill-btn version-btn`,"aria-expanded":e.panelOpen,"aria-label":`v${y} of ${b}${g?`, latest`:``}. Show versions`,onClick:a,children:[ne,(0,G.jsxs)(`span`,{className:`num`,children:[`v`,y]})]})}):(0,G.jsxs)(`div`,{className:`pill-seg version-seg`,children:[(0,G.jsxs)(`button`,{type:`button`,ref:s,className:`pill-btn version-btn`,"aria-expanded":e.panelOpen,"aria-label":g?`Version, latest. Show versions`:`Version, older. Show versions`,onClick:a,children:[ne,(0,G.jsx)(`span`,{children:`Version`})]}),(0,G.jsx)(wg,{versions:n,version:h,dispatch:t,inputId:f,fieldRef:c}),(0,G.jsxs)(`label`,{className:`version-of`,htmlFor:f,children:[`of `,(0,G.jsx)(`span`,{className:`num`,children:b})]})]}))},S?`compare`:`single`)}),!i&&(0,G.jsx)(kg,{versions:n,state:e,dispatch:t}),(0,G.jsx)(`span`,{className:`pill-sep`,"aria-hidden":`true`}),(0,G.jsx)(Rg,{state:e,dispatch:t,review:r,disabled:v,phone:i}),(0,G.jsx)(Ng,{className:`pill-morph`,children:S?(0,G.jsxs)(Z.div,{className:`pill-seg compare-seg`,initial:{opacity:0},animate:{opacity:1,transition:d.enter},children:[!i&&(0,G.jsx)(Bg,{layout:e.layout,dispatch:t}),(0,G.jsx)(`button`,{type:`button`,ref:k,className:`pill-btn close-btn`,"aria-label":`Leave compare`,onClick:e=>{te(e),t({type:`setMode`,mode:`explore`})},children:(0,G.jsx)(Ug,{})})]}):(0,G.jsxs)(`div`,{className:`pill-seg swap-seg`,children:[(0,G.jsx)(Z.button,{type:`button`,ref:T,className:`pill-btn compare-btn`,"aria-label":i?`Compare`:void 0,disabled:v,inert:D||void 0,onClick:e=>{te(e),t({type:`setMode`,mode:`compare`})},initial:!1,animate:{opacity:g?v?.4:1:0},transition:g?d.enter:d.exit,children:i?(0,G.jsx)(Vg,{}):`Compare`}),(0,G.jsx)(Z.button,{type:`button`,ref:E,className:`pill-btn latest-btn`,"aria-label":`Go to latest`,inert:!D||void 0,onClick:()=>t({type:`goLatest`}),initial:!1,animate:{opacity:+!g},transition:g?d.exit:d.enter,children:i?`Latest`:`Go to latest`})]})}),!Vm&&(0,G.jsx)(`button`,{type:`button`,ref:u,className:`pill-btn retract-btn`,"aria-label":`Hide Afterimage`,onClick:o,children:(0,G.jsx)(Hg,{})})]})}function Gg({state:e,versions:t,chipRef:n,onShow:r}){let i=sh(),a=t[0],o=t.find(t=>t.id===e.versionId)??a,s=e.mode===`compare`?t.find(t=>t.id===e.baseId)??null:null,c=o.id===a.id,l=Wf(o),u=s?`v${Wf(s)} to v${l}`:`v${l} of ${Wf(a)}${c?`, latest`:``}`;return(0,G.jsxs)(Z.button,{type:`button`,ref:n,className:`pill chip`,"aria-label":`Show Afterimage. ${u}`,onClick:r,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1,transition:i.enter},children:[s?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`num`,children:[`v`,Wf(s)]}),(0,G.jsx)(`span`,{className:`muted`,"aria-hidden":`true`,children:`→`}),(0,G.jsxs)(`span`,{className:`num`,children:[`v`,l]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`pill-dot`,"data-latest":c||void 0,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`num`,children:[`v`,l]})]}),(0,G.jsxs)(`span`,{className:`pill-hint chip-hint`,"aria-hidden":`true`,children:[`Show Afterimage `,(0,G.jsx)(`kbd`,{children:`.`})]})]})}function Kg({run:e,onResult:t=()=>{},read:n=e=>nm(e.key),write:r=im}){let i=[],a=null,o=!1,s=new Set;function c(e){return s.has(e.key)||e.key===a||n(e)!==null}function l(e,n){s.add(e.key),a=null,n&&(r(e.key,n),o||t(e,n)),u()}function u(){if(!(o||a!==null))for(;i.length;){let t=i.shift();if(c(t))continue;a=t.key;let n;try{n=Promise.resolve(e(t))}catch(e){n=Promise.reject(e)}n.then(e=>l(t,e),()=>l(t,null));return}}return{want(e){if(o)return;let t=new Set;i=e.filter(e=>!t.has(e.key)&&(t.add(e.key),!0)),u()},cancel(){o=!0,i=[]}}}var qg=1e4,Jg=80,Yg=e=>new Promise(t=>setTimeout(t,e)),Xg=()=>new Promise(e=>{typeof requestIdleCallback==`function`?requestIdleCallback(()=>e(),{timeout:600}):setTimeout(e,0)});function Zg(){let e=document.createElement(`iframe`);return e.title=`Background change count`,e.tabIndex=-1,e.inert=!0,e.setAttribute(`aria-hidden`,`true`),e.dataset.afterimageBackground=``,e.style.cssText=`position:fixed;left:-100000px;top:0;border:0;pointer-events:none;`,document.body.append(e),{frame:e,id:null,route:``}}function Qg(e,t,n){return e.id===t.id&&e.route===n&&um(e.frame,t)?Promise.resolve():(e.id=null,e.route=n,new Promise((r,i)=>{let a=setTimeout(()=>{s(),i(Error(`${t.id} did not load in time.`))},qg),o=()=>{um(e.frame,t)&&(s(),e.id=t.id,r())},s=()=>{clearTimeout(a),e.frame.removeEventListener(`load`,o)};e.frame.addEventListener(`load`,o),dm(e.frame,sm(new URL(t.file,location.href).href,n))}))}async function $g(e,t){let{target:n,base:r,width:i,height:a,route:o=``}=t,s=e.find(e=>e.id===n.id&&e.route===o)??null,c=e.find(e=>e!==s&&e.id===r.id&&e.route===o)??null;s??=e.find(e=>e!==c),c??=e.find(e=>e!==s);for(let t of e)t.frame.style.width=`${i}px`,t.frame.style.height=`${a}px`;await Promise.all([Qg(s,n,o),Qg(c,r,o)]);let l=s.frame.contentDocument,u=c.frame.contentDocument;if(await Promise.all([l.fonts.ready,u.fonts.ready]),await Yg(Jg),await Xg(),s.id!==n.id||c.id!==r.id)throw Error(`A background frame navigated mid-comparison.`);let d=Gp(l),f=u.documentElement,p=f.style.overflowY,m;try{f.style.overflowY=s.frame.clientWidth>l.documentElement.clientWidth?`scroll`:`hidden`,m=Gp(u)}finally{f.style.overflowY=p}return zf(Zp(d,m).entries)}function e_(e){let[t,n]=(0,_.useState)(()=>new Map),r=(0,_.useRef)(null),i=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=null,t=!0,a=Kg({run:t=>(e??=[Zg(),Zg()],$g(e,t)),onResult:(e,r)=>{t&&`${e.width}x${e.height}`===i.current&&n(t=>new Map(t).set(e.target.id,{key:e.key,summary:r}))}});return r.current=a,()=>{t=!1,a.cancel(),e?.forEach(e=>e.frame.remove()),r.current=null}},[]);let a=e.map(e=>e.key).join(`,`);return(0,_.useEffect)(()=>{if(!e.length){r.current?.want([]);return}let t=`${e[0].width}x${e[0].height}`,a=i.current!==null&&i.current!==t;i.current=t;let o=[];for(let t of e){let e=nm(t.key);e&&o.push([t.target.id,{key:t.key,summary:e}])}(a||o.length)&&n(e=>{let t=a?new Map:new Map(e),n=a;for(let[e,r]of o)t.get(e)?.key!==r.key&&(t.set(e,r),n=!0);return n?t:e}),r.current?.want(e)},[a]),(0,_.useMemo)(()=>new Map([...t].map(([e,{summary:t}])=>[e,t])),[t])}function t_(e,t){let[n,r]=(0,_.useState)(!0),i=(0,_.useCallback)(()=>{let t=e.current;t&&r(t.scrollTop+t.clientHeight>=t.scrollHeight-2)},[e]);return(0,_.useLayoutEffect)(i,t),[n,i]}var n_=9,r_=120,i_=32;function a_(e,t){if(!t)return!0;let n=t.replace(/^v(?=\d)/,``);return/^\d+$/.test(n)&&String(Wf(e)).startsWith(n)?!0:e.name.toLowerCase().includes(t)}function o_(e){let t=ap(e.savedAt);return t?t.split(`, `)[1]:``}function s_(){return(0,G.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.25`}),(0,G.jsx)(`path`,{d:`m10.25 10.25 3 3`})]})}function c_({versions:e,state:t,dispatch:n,review:r,targetRef:i}){let a=rf(),[o,s]=(0,_.useState)(``),c=(0,_.useRef)(null),l=(0,_.useRef)(new Set),[u,d]=(0,_.useState)([]),f=o.trim().toLowerCase(),p=(0,_.useMemo)(()=>e.filter(e=>a_(e,f)),[e,f]),m=(0,_.useMemo)(()=>rp(p,new Date),[p]),h=e_(u),g=t.mode===`explore`,v=Cm();(0,_.useEffect)(()=>{let n=c.current;if(!n)return;let r=null,a=()=>{let n=am(i.current),r=n?.innerWidth||window.innerWidth,a=n?.innerHeight||window.innerHeight,o=[];for(let n of p){if(!l.current.has(n.id)||g&&n.id===t.versionId)continue;let i=Kf(e,n.id);i&&o.push({key:Rf({target:n,base:i,width:r,height:a,route:v}),target:n,base:i,width:r,height:a,route:v})}d(e=>e.map(e=>e.key).join()===o.map(e=>e.key).join()?e:o)},o=new IntersectionObserver(e=>{for(let t of e){let e=t.target.dataset.version;t.isIntersecting?l.current.add(e):l.current.delete(e)}clearTimeout(r),r=setTimeout(a,r_)},{root:n,rootMargin:`24px 0px`});l.current.clear();for(let e of n.querySelectorAll(`[data-version]`))o.observe(e);let s=()=>{clearTimeout(r),r=setTimeout(a,r_)};return window.addEventListener(`resize`,s),()=>{clearTimeout(r),o.disconnect(),window.removeEventListener(`resize`,s)}},[p,e,g,t.versionId,i,v]);let y=(0,_.useRef)(!1);(0,_.useLayoutEffect)(()=>{let e=c.current,n=e?.querySelector(`[data-version="${t.versionId}"]`);if(!n)return;let r=n.offsetTop,i=r+n.offsetHeight;if(!y.current){y.current=!0,e.scrollTop=r-(e.clientHeight-n.offsetHeight)/2;return}let o=null;r-32<e.scrollTop?o=r-32:i+i_>e.scrollTop+e.clientHeight&&(o=i+i_-e.clientHeight),o!==null&&e.scrollTo({top:o,behavior:a?`instant`:`smooth`})},[t.versionId,a]);let[b,x]=t_(c,[m]),S=e=>{e.key===`Escape`&&o?(e.preventDefault(),e.stopPropagation(),s(``)):e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur()):e.key===`Enter`&&p.length&&(e.preventDefault(),n({type:`selectVersion`,id:p[0].id}))},C=e=>g&&e.id===t.versionId?r.status===`ready`?r.summary:null:h.get(e.id)??null;return(0,G.jsxs)(`div`,{className:`versions`,children:[e.length>=n_&&(0,G.jsxs)(`label`,{className:`search`,children:[(0,G.jsx)(s_,{}),(0,G.jsx)(`input`,{className:`search-input`,type:`search`,placeholder:`Find a version`,"aria-label":`Find a version by number or name`,autoComplete:`off`,spellCheck:!1,enterKeyHint:`go`,value:o,onChange:e=>s(e.target.value),onKeyDown:S})]}),(0,G.jsxs)(`div`,{ref:c,className:`version-list`,"data-end":b||void 0,onScroll:x,children:[m.length===0&&(0,G.jsxs)(`p`,{className:`list-note`,children:[`No version matches “`,o.trim(),`”`]}),m.map(e=>(0,G.jsxs)(`section`,{className:`vgroup`,"aria-label":e.label,children:[(0,G.jsx)(`h3`,{className:`vgroup-label${/\d/.test(e.label)?` num`:``}`,children:e.label}),e.versions.map(e=>{let r=e.id===t.versionId,i=C(e);return(0,G.jsxs)(`button`,{type:`button`,className:`vrow`,"data-version":e.id,"aria-current":r||void 0,title:e.name,onClick:()=>{r||n({type:`selectVersion`,id:e.id})},children:[(0,G.jsx)(`span`,{className:`vrow-n num`,children:Wf(e)}),(0,G.jsx)(`span`,{className:`vrow-name`,children:e.name}),(0,G.jsx)(`span`,{className:`vrow-time num`,children:o_(e)}),(0,G.jsx)(`span`,{className:`vrow-count num`,"data-zero":i?.total===0||void 0,children:i&&(0,G.jsx)(`span`,{className:`vrow-count-in`,"aria-label":`${i.total} ${i.total===1?`change`:`changes`}`,children:i.total})})]},e.id)})]},e.label))]})]})}var l_=12,u_=[{id:`all`,label:`All`},{id:`changed`,label:`Changed`},{id:`added`,label:`Added`},{id:`removed`,label:`Removed`}],d_=e=>/^(#|rgba?\(|hsla?\(|oklch\()/i.test(String(e).trim());function f_(e){if(e.kind===`added`)return`Added · ${e.label}`;if(e.kind===`removed`)return`Removed · ${e.label}`;let t=e.details.find(e=>!e.layout)??e.details[0];return t?`${t.label} · ${e.label}`:e.label}function p_(e){let t=/^rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)(?:[,\s/]+([\d.]+%?))?\s*\)$/i.exec(String(e).trim());if(!t)return e;let n=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),r=t[4]===void 0?1:parseFloat(t[4])/(t[4].endsWith(`%`)?100:1);return Number.isNaN(r)&&(r=1),`#${n(t[1])}${n(t[2])}${n(t[3])}${r<1?n(r*255):``}`}function m_({text:e,muted:t}){let n=d_(e);return(0,G.jsxs)(`span`,{className:`crow-value${t?` is-before`:``}${n?` num`:``}`,title:n?e:void 0,children:[n&&(0,G.jsx)(`span`,{className:`crow-swatch`,style:{background:e},"aria-hidden":`true`}),n?p_(e):e]})}function h_({entry:e,baseLabel:t,targetLabel:n}){if(e.kind===`added`){let t=e.details[0]?.after||`New in ${n}`;return(0,G.jsx)(`span`,{className:`crow-diff`,children:(0,G.jsx)(m_,{text:t})})}if(e.kind===`removed`){let n=e.details[0]?.before;return(0,G.jsx)(`span`,{className:`crow-diff`,children:n?(0,G.jsx)(m_,{text:n,muted:!0}):(0,G.jsxs)(`span`,{className:`crow-value is-before`,children:[`Shown on `,(0,G.jsx)(`span`,{className:`num`,children:t})]})})}let r=e.details.find(e=>!e.layout)??e.details[0];return r?(0,G.jsxs)(`span`,{className:`crow-diff`,children:[r.before?(0,G.jsx)(m_,{text:r.before,muted:!0}):(0,G.jsx)(`span`,{className:`crow-value is-before`,children:`None`}),(0,G.jsx)(`span`,{className:`crow-arrow`,"aria-hidden":`true`,children:`→`}),r.after?(0,G.jsx)(m_,{text:r.after}):(0,G.jsx)(`span`,{className:`crow-value`,children:`None`})]}):(0,G.jsx)(`span`,{className:`crow-diff`,children:(0,G.jsx)(`span`,{className:`crow-value is-before`,children:e.kindLabel})})}var g_={changed:`Nothing changed in place`,added:`Nothing added`,removed:`Nothing removed`};function __({state:e,dispatch:t,review:n,baseLabel:r,targetLabel:i,phone:a,onClose:o}){let s=sh(),c=rf(),l=(0,_.useMemo)(()=>Bf(n.entries,e.changeFilter),[n.entries,e.changeFilter]),[u,d]=(0,_.useState)(l_),f=(0,_.useRef)(null),p=(0,_.useRef)(null);(0,_.useEffect)(()=>{d(l_)},[l]),(0,_.useLayoutEffect)(()=>{f.current&&(f.current.scrollTop=0)},[e.changeFilter]);let m=e.changeIndex,h=Math.min(l.length,Math.max(u,m===null?0:Math.ceil((m+1)/l_)*l_));(0,_.useLayoutEffect)(()=>{let e=f.current;if(!e||m===null)return;let t=e.querySelector(`[data-index="${m}"]`);if(!t)return;let n=t.offsetTop,r=n+t.offsetHeight,i=null;n-8<e.scrollTop?i=n-8:r+8>e.scrollTop+e.clientHeight&&(i=r+8-e.clientHeight),i!==null&&e.scrollTo({top:i,behavior:c?`instant`:`smooth`})},[m,l,c]),(0,_.useEffect)(()=>{p.current!==null&&(f.current?.querySelector(`[data-index="${p.current}"]`)?.focus(),p.current=null)},[h]);let g=n=>{e.highlights||t({type:`toggleHighlights`}),a&&o({refocus:!0}),t({type:`selectChange`,index:n})},[v,y]=t_(f,[h,n.status]),b=n.status===`checking`||n.status===`idle`,x=l.length-h;return(0,G.jsxs)(`div`,{className:`changes`,children:[(0,G.jsx)(`div`,{className:`filters`,role:`group`,"aria-label":`Show changes`,children:u_.map(n=>{let r=e.changeFilter===n.id;return(0,G.jsxs)(`button`,{type:`button`,className:`filter`,"aria-pressed":r,onClick:()=>{r||t({type:`setFilter`,filter:n.id})},children:[r&&(0,G.jsx)(Z.span,{layoutId:`filter-fill`,className:`filter-fill`,transition:s.layout}),(0,G.jsx)(`span`,{className:`filter-label`,children:n.label})]},n.id)})}),b?(0,G.jsx)(`p`,{className:`list-note`,children:`Checking changes…`}):l.length===0?(0,G.jsxs)(`p`,{className:`list-note`,children:[g_[e.changeFilter]??`No changes`,` since `,(0,G.jsx)(`span`,{className:`num`,children:r})]}):(0,G.jsxs)(`div`,{ref:f,className:`change-list`,role:`list`,"aria-label":`Changes`,"data-end":v||void 0,onScroll:y,children:[l.slice(0,h).map((e,t)=>(0,G.jsx)(`div`,{role:`listitem`,children:(0,G.jsxs)(`button`,{type:`button`,className:`crow`,"data-index":t,"data-kind":e.kind,"aria-current":t===m||void 0,onClick:()=>g(t),children:[(0,G.jsx)(`span`,{className:`crow-badge num`,"aria-label":`${e.kindLabel}, ${t+1}`,children:t+1}),(0,G.jsxs)(`span`,{className:`crow-text`,children:[(0,G.jsx)(`span`,{className:`crow-what`,children:f_(e)}),(0,G.jsx)(h_,{entry:e,baseLabel:r,targetLabel:i})]})]})},e.key+e.kind)),x>0&&(0,G.jsxs)(`button`,{type:`button`,className:`list-more`,onClick:()=>{p.current=h,d(h+l_)},children:[(0,G.jsx)(`span`,{className:`num`,children:Math.min(l_,x)}),` more`]})]})]})}var v_=1200;function y_(){return(0,G.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`path`,{d:`M6.75 9.25a2.75 2.75 0 0 0 3.9 0l2-2a2.75 2.75 0 0 0-3.9-3.9l-.6.6`}),(0,G.jsx)(`path`,{d:`M9.25 6.75a2.75 2.75 0 0 0-3.9 0l-2 2a2.75 2.75 0 0 0 3.9 3.9l.6-.6`})]})}function b_(){return(0,G.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`m3.5 8.5 3 3 6-7`})})}function x_(){return(0,G.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`m4.5 4.5 7 7m0-7-7 7`})})}function S_({open:e}){let t=sh();return(0,G.jsx)(Z.svg,{className:`row-chevron`,width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,initial:!1,animate:{rotate:e?90:0},transition:t.layout,children:(0,G.jsx)(`path`,{d:`m6.5 4 4 4-4 4`})})}async function C_(e){try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=`position:fixed;left:-9999px;top:0;opacity:0;`,document.body.append(t),t.select();let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return t.remove(),n}}function w_(){let e=sh(),[t,n]=(0,_.useState)(0);(0,_.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>n(0),v_);return()=>clearTimeout(e)},[t]);let r=async()=>{kp.flush(),await C_(location.href)&&n(Date.now())},i={initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1,transition:e.enter},exit:{opacity:0,scale:.7,transition:e.exit}};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`icon-btn`,"data-done":t?!0:void 0,"aria-label":`Copy link to this view`,onClick:r,children:(0,G.jsx)(Vu,{initial:!1,mode:`popLayout`,children:(0,G.jsx)(Z.span,{className:`icon-swap`,...i,children:t?(0,G.jsx)(b_,{}):(0,G.jsx)(y_,{})},t?`check`:`link`)})}),(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,children:t?`Link copied`:``})]})}function T_({children:e,className:t}){let n=sh(),r=(0,_.useRef)(null),[i,a]=(0,_.useState)(`auto`);return(0,_.useLayoutEffect)(()=>{let e=r.current,t=new ResizeObserver(()=>a(e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,G.jsx)(Z.div,{className:t,initial:!1,animate:{height:i},transition:n.layout,style:{overflow:`hidden`},children:(0,G.jsx)(`div`,{ref:r,children:e})})}function E_({notes:e}){let[t,n]=(0,_.useState)(!1),r=(0,_.useRef)(null),[i,a]=(0,_.useState)(!1),o=e[0],s=e.length-1;if((0,_.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>a(e.scrollHeight>e.clientHeight+1);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[o,t]),!o)return null;let c=s>0||i||t;return(0,G.jsxs)(T_,{className:`notes`,children:[(0,G.jsx)(`p`,{ref:r,className:`note`,"data-clamped":!t||void 0,children:o}),t&&e.slice(1).map((e,t)=>(0,G.jsx)(`p`,{className:`note`,children:e},t)),c&&(0,G.jsx)(`button`,{type:`button`,className:`text-btn`,"aria-expanded":t,onClick:()=>n(e=>!e),children:t?`Show less`:s>0?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`num`,children:s}),` more`]}):`More`})]})}function D_({children:e,label:t}){let n=sh();return(0,G.jsx)(Z.div,{className:`folder`,role:`region`,"aria-label":t,initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1,transition:{height:n.layout,opacity:n.enter}},exit:{height:0,opacity:0,transition:{height:{...n.layout,duration:n.layout.duration*.8},opacity:n.exit}},children:(0,G.jsx)(`div`,{className:`folder-inner`,children:e})})}function O_({on:e,onToggle:t,label:n,dim:r}){return(0,G.jsx)(`button`,{type:`button`,role:`switch`,className:`switch`,"aria-checked":e,"aria-label":n,"data-dim":r||void 0,onClick:t,children:(0,G.jsx)(`span`,{className:`switch-track`,children:(0,G.jsx)(`span`,{className:`switch-thumb`})})})}function k_({state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,autoFocus:o,tip:s,onClose:c}){let l=sh(),u=rf(),d=Lu(),f=Lf(),p=(0,_.useRef)(null),m=(0,_.useRef)(null),h=(0,_.useRef)(!1),g=n[0],v=n.find(t=>t.id===e.versionId)??g,y=v.id===g.id,b=Kf(n,v.id)===null,x=bp(n,e),S=Wf(v),C=Wf(g),w=Gf(n,v.id),T=ap(v.savedAt),E=T?y?T:T.split(`, `)[0]:null,D=(()=>{let e=Gf(n,v.id);return e>0?Wf(n[e-1]):S+1})(),{status:O,summary:k}=r,A=O===`ready`,ee=O===`failed`,te=e.folders.changes&&!b&&!ee&&!(A&&k.total===0),ne=e.folders.versions,j=e=>t({type:`toggleFolder`,folder:e,phone:i});(0,_.useEffect)(()=>{o&&p.current?.querySelector(`button, input`)?.focus({preventScroll:!0})},[o]),(0,_.useLayoutEffect)(()=>{y&&h.current&&m.current?.focus({preventScroll:!0}),h.current=!1},[y]);let M=x?`v${Wf(x)}`:``,re=`v${S}`,ie=e.mode===`compare`&&x!==null,ae=ie?(0,G.jsxs)(G.Fragment,{children:[`from `,(0,G.jsx)(`span`,{className:`num`,children:M}),` to `,(0,G.jsx)(`span`,{className:`num`,children:re})]}):(0,G.jsxs)(G.Fragment,{children:[`since `,(0,G.jsx)(`span`,{className:`num`,children:M})]}),N;if(b)N=(0,G.jsx)(`div`,{className:`row row-static`,children:(0,G.jsxs)(`span`,{className:`muted`,children:[`First version. Changes show up from `,(0,G.jsxs)(`span`,{className:`num`,children:[`v`,D]}),`.`]})});else if(ee)N=(0,G.jsx)(`div`,{className:`row row-static`,children:(0,G.jsx)(`span`,{className:`muted`,children:`Couldn't check changes. Reload to try again.`})});else{let n=A&&k.total===0,r=n?(0,G.jsxs)(`span`,{className:`muted`,children:[`No visible changes `,ae]}):A?(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`span`,{className:`amber num`,children:k.total}),` `,k.total===1?`change`:`changes`,` `,ae]}):(0,G.jsxs)(`span`,{className:`muted`,children:[`Checking changes `,ae,`…`]});N=(0,G.jsxs)(`div`,{className:`row row-split`,children:[n?(0,G.jsx)(`div`,{className:`row-main row-static-main`,children:r}):(0,G.jsxs)(`button`,{type:`button`,className:`row-main`,"aria-expanded":te,onClick:()=>j(`changes`),children:[r,(0,G.jsx)(S_,{open:te})]}),(0,G.jsx)(O_,{on:e.highlights,dim:n,label:`Highlight changes on the page`,onToggle:()=>t({type:`toggleHighlights`})})]})}let oe=i?{initial:{y:u?0:`100%`,opacity:+!u},animate:{y:0,opacity:1,transition:u?l.enter:{duration:.24,ease:[.32,.72,0,1]}},exit:{y:u?0:`100%`,opacity:+!u,transition:u?l.exit:{duration:.19,ease:[.32,.72,0,1]}},drag:`y`,dragControls:f,dragListener:!1,dragConstraints:{top:0,bottom:0},dragElastic:{top:.04,bottom:.9},onDragEnd:(e,t)=>{(t.offset.y>72||t.velocity.y>480)&&c({refocus:!1})}}:{initial:{opacity:0,y:u?0:8,scale:u?1:.97},animate:{opacity:1,y:0,scale:1,transition:l.enter},exit:{opacity:0,y:u?0:6,scale:u?1:.98,transition:l.exit}};return(0,G.jsxs)(Z.section,{ref:p,className:`panel`,"data-phone":i||void 0,role:`dialog`,"aria-label":ie?`Compare ${M} to ${re}`:`Version ${S}`,inert:!d||void 0,...oe,children:[i&&(0,G.jsx)(`div`,{className:`grab`,onPointerDown:e=>f.start(e),"aria-hidden":`true`,children:(0,G.jsx)(`span`,{className:`grab-bar`})}),(0,G.jsxs)(`div`,{className:`panel-scroll`,children:[(0,G.jsxs)(`header`,{className:`panel-head`,children:[(0,G.jsxs)(`div`,{className:`head-top`,children:[(0,G.jsx)(`h2`,{className:`panel-name`,title:v.name,children:v.name}),(0,G.jsxs)(`div`,{className:`head-icons`,children:[(0,G.jsx)(w_,{}),(0,G.jsx)(`button`,{type:`button`,className:`icon-btn`,"aria-label":`Close`,onClick:()=>c({refocus:!0}),children:(0,G.jsx)(x_,{})})]})]}),(0,G.jsxs)(`p`,{className:`panel-meta`,children:[ie?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`num`,children:M}),` → `,(0,G.jsx)(`span`,{className:`num`,children:re})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`num`,children:[`v`,S]}),!y&&(0,G.jsxs)(G.Fragment,{children:[` of `,(0,G.jsx)(`span`,{className:`num`,children:C})]})]}),E&&(0,G.jsxs)(G.Fragment,{children:[` · saved `,(0,G.jsx)(`span`,{className:`num`,children:E})]}),(0,G.jsx)(`span`,{className:`tag`,"data-latest":y||void 0,children:y?`Latest`:`Older`})]}),(0,G.jsx)(E_,{notes:v.notes??[]},v.id)]}),(0,G.jsxs)(`div`,{className:`rows`,children:[N,(0,G.jsx)(Vu,{initial:!1,children:te&&(0,G.jsx)(D_,{label:`Changes`,children:(0,G.jsx)(__,{phone:i,state:e,dispatch:t,review:r,baseLabel:M,targetLabel:re,onClose:c})},`changes`)}),!y&&(0,G.jsxs)(`div`,{className:`row row-split`,children:[(0,G.jsxs)(`span`,{className:`row-text`,children:[(0,G.jsx)(`span`,{className:`num`,children:w}),` newer `,w===1?`version`:`versions`]}),(0,G.jsx)(`button`,{type:`button`,className:`small-btn`,onClick:e=>{h.current=e.currentTarget===document.activeElement,t({type:`goLatest`})},children:`Go to latest`})]}),n.length>1&&(0,G.jsx)(`div`,{className:`row`,children:(0,G.jsxs)(`button`,{ref:m,type:`button`,className:`row-main`,"aria-expanded":ne,onClick:()=>j(`versions`),children:[(0,G.jsx)(`span`,{children:y?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`num`,children:n.length-1}),` earlier `,n.length-1==1?`version`:`versions`]}):(0,G.jsxs)(G.Fragment,{children:[`All `,(0,G.jsx)(`span`,{className:`num`,children:n.length}),` versions`]})}),(0,G.jsx)(S_,{open:ne})]})}),(0,G.jsx)(Vu,{initial:!1,children:ne&&n.length>1&&(0,G.jsx)(D_,{label:`Versions`,children:(0,G.jsx)(c_,{versions:n,state:e,dispatch:t,review:r,targetRef:a})},`versions`)})]})]}),s&&(0,G.jsxs)(`p`,{className:`panel-tip`,children:[`Tip:`,` `,(0,G.jsxs)(`span`,{className:`tip-item`,children:[(0,G.jsx)(`kbd`,{children:`[`}),(0,G.jsx)(`kbd`,{children:`]`}),` versions,`]}),` `,(0,G.jsxs)(`span`,{className:`tip-item`,children:[(0,G.jsx)(`kbd`,{children:`J`}),(0,G.jsx)(`kbd`,{children:`K`}),` changes,`]}),` `,(0,G.jsxs)(`span`,{className:`tip-item`,children:[(0,G.jsx)(`kbd`,{children:`?`}),` for all shortcuts`]})]})]})}var A_=[{name:`Versions`,rows:[{keys:[`[`,`]`],text:`previous / next version`},{keys:[`G`],text:`type a version number`},{keys:[`L`],text:`go to latest`}]},{name:`Changes`,rows:[{keys:[`H`],text:`highlights on/off`},{keys:[`J`,`K`],text:`next / previous change`}]},{name:`Compare`,rows:[{keys:[`B`],text:`hold to see the previous version (or the baseline, in Compare)`},{keys:[`C`],text:`compare`}]},{name:`Panel`,rows:[{keys:[`V`],text:`open / close panel`},{keys:[`.`],text:`hide / show Afterimage`},{keys:[`Esc`],text:`closes whatever is on top`},{keys:[`?`],text:`this list`}]}];function j_(){return(0,G.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`m4.5 4.5 7 7m0-7-7 7`})})}function M_({open:e,onClose:t}){let n=sh(),r=rf(),i=(0,_.useRef)(null);return(0,_.useEffect)(()=>{if(!e)return;let t=document.activeElement;return i.current?.focus({preventScroll:!0}),()=>{t?.isConnected&&t!==document.body&&t.focus({preventScroll:!0})}},[e]),(0,G.jsx)(Vu,{children:e&&(0,G.jsx)(Z.div,{className:`help-scrim`,onClick:e=>{e.target===e.currentTarget&&t()},initial:{opacity:0},animate:{opacity:1,transition:n.enter},exit:{opacity:0,transition:n.exit},children:(0,G.jsxs)(Z.section,{className:`help-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":`Keyboard shortcuts`,onKeyDown:e=>{e.key===`Tab`&&e.preventDefault()},initial:{opacity:0,y:r?0:8,scale:r?1:.97},animate:{opacity:1,y:0,scale:1,transition:n.enter},exit:{opacity:0,y:r?0:6,scale:r?1:.98,transition:n.exit},children:[(0,G.jsxs)(`header`,{className:`help-head`,children:[(0,G.jsx)(`h2`,{className:`help-title`,children:`Keyboard shortcuts`}),(0,G.jsx)(`button`,{ref:i,type:`button`,className:`help-close`,"aria-label":`Close`,onClick:t,children:(0,G.jsx)(j_,{})})]}),(0,G.jsx)(`div`,{className:`help-body`,children:A_.map(e=>(0,G.jsxs)(`section`,{className:`help-group`,"aria-label":e.name,children:[(0,G.jsx)(`h3`,{className:`help-group-name`,children:e.name}),(0,G.jsx)(`dl`,{className:`help-rows`,children:e.rows.map(e=>(0,G.jsxs)(`div`,{className:`help-row`,children:[(0,G.jsx)(`dt`,{className:`help-keys`,children:e.keys.map(e=>(0,G.jsx)(`kbd`,{children:e},e))}),(0,G.jsx)(`dd`,{className:`help-text`,children:e.text})]},e.keys.join(``)))})]},e.name))})]})},`help`)})}var N_=nh(()=>window.localStorage),P_=Dp(()=>window.localStorage);function F_({state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,baseRef:o}){let s=sh(),c=(0,_.useRef)(null),l=(0,_.useRef)(!1),u=(0,_.useCallback)(e=>{l.current=e?.detail===0,t({type:`togglePanel`})},[t]),d=(0,_.useCallback)(({refocus:e})=>{t({type:`closePanel`}),e&&c.current?.focus({preventScroll:!0})},[t]),f=e.panelOpen,p=(0,_.useRef)(null),m=(0,_.useRef)(!1),[h,g]=(0,_.useState)(!1),[v,y]=(0,_.useState)(!1);(0,_.useLayoutEffect)(()=>{!f||i?y(!1):N_()&&y(!0)},[f,i]);let b=e.retracted,x=(0,_.useRef)(null),S=(0,_.useRef)(null),C=(0,_.useRef)(!1),w=(0,_.useRef)(!1),T=(0,_.useCallback)(()=>{C.current=!!document.activeElement?.closest?.(`.pill-dock`)},[]),E=(0,_.useCallback)(e=>{T(),t({type:`setRetracted`,retracted:e})},[t,T]);(0,_.useLayoutEffect)(()=>{!b&&w.current&&p.current?(p.current.focus({preventScroll:!0}),p.current.select()):C.current&&(b?S:x).current?.focus({preventScroll:!0}),C.current=!1,w.current=!1},[b]),rh({state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,baseRef:o,helpOpen:h,setHelpOpen:g,togglePanel:u,closePanel:d,fieldRef:p,handoffRef:m,noteDockFocus:T,focusFieldWhenBack:w});let D=e.folders.versions&&e.folders.changes;return(0,_.useLayoutEffect)(()=>{i&&D&&t({type:`oneFolder`})},[i,D,t]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`pill-dock`,"data-phone":i||void 0,"data-open":f||void 0,"data-retracted":b||void 0,children:(0,G.jsxs)(Z.div,{className:`dock-body`,layout:`position`,transition:s.layout,children:[(0,G.jsx)(Vu,{children:f&&(0,G.jsx)(k_,{state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,autoFocus:l.current,tip:v,onClose:d},`panel`)}),b?(0,G.jsx)(Gg,{state:e,versions:n,chipRef:S,onShow:()=>E(!1)}):(0,G.jsx)(Wg,{state:e,dispatch:t,versions:n,review:r,phone:i,onOpenPanel:u,onRetract:()=>E(!0),versionRef:c,fieldRef:p,handoffRef:m,retractRef:x})]})}),(0,G.jsx)(M_,{open:h,onClose:()=>g(!1)})]})}function I_({versions:e}){let t=(0,_.useMemo)(()=>Ep(e),[e]),[n,r]=(0,_.useReducer)(t,location.search,t=>({...yp(e,t),retracted:!Vm&&P_.read()})),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=Km(),s=lp(n,e);(0,_.useEffect)(()=>{kp.write(s)},[s]),(0,_.useEffect)(()=>{Vm||P_.write(n.retracted)},[n.retracted]),(0,_.useEffect)(()=>{let e=()=>kp.flush();return window.addEventListener(`pagehide`,e),()=>{window.removeEventListener(`pagehide`,e),e()}},[]);let c=e.find(e=>e.id===n.versionId)??e[0],l=bp(e,n);wm({targetRef:i,baseRef:a}),Um({state:n,dispatch:r,versions:e,targetRef:i});let u=bm({targetFrame:i,baseFrame:a,target:c,base:l,enabled:l!=null}),d=(0,_.useMemo)(()=>Bf(u.entries,n.changeFilter).length,[u.entries,n.changeFilter]);return(0,_.useLayoutEffect)(()=>{r({type:`clampChange`,total:d,status:u.status})},[d,u.status,n.changeIndex]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Cg,{state:n,dispatch:r,versions:e,review:u,targetRef:i,baseRef:a,phone:o}),(0,G.jsx)(F_,{state:n,dispatch:r,versions:e,review:u,phone:o,targetRef:i,baseRef:a})]})}function L_({title:e}){return(0,G.jsxs)(`section`,{className:`load-error`,role:`alert`,children:[(0,G.jsx)(`h1`,{children:e}),(0,G.jsx)(`p`,{children:`Reload to try again.`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>location.reload(),children:`Reload`})]})}var R_=()=>(0,G.jsx)(L_,{title:`History couldn't load.`}),z_=class extends _.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){console.error(`The viewer hit an error.`,e)}render(){return this.state.failed?(0,G.jsx)(L_,{title:`Something went wrong.`}):this.props.children}};async function B_(){let e=await fetch(`versions.json`,{cache:`no-store`});if(!e.ok)throw Error(`History request failed with status ${e.status}.`);return y(await e.json())}var V_=3e3;async function H_(){if(`serviceWorker`in navigator)try{await navigator.serviceWorker.register(`/afterimage/sw.js`,{scope:`/afterimage/`,updateViaCache:`none`}),await Promise.race([navigator.serviceWorker.ready,new Promise(e=>setTimeout(e,V_))])}catch(e){console.warn(`The frame runtime did not start, so built apps may render without their files.`,e)}}var U_=document.getElementById(`root`),W_=(0,v.createRoot)(U_);Promise.all([B_(),H_()]).then(([e])=>W_.render((0,G.jsx)(_.StrictMode,{children:(0,G.jsx)(z_,{children:(0,G.jsx)(I_,{versions:e.versions})})})),e=>{console.error(`Could not load version history.`,e),W_.render((0,G.jsx)(_.StrictMode,{children:(0,G.jsx)(R_,{})}))});
|