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
|
@@ -1,9 +0,0 @@
|
|
|
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 oe(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(oe.bind(null,e))}var se={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=se,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=oe,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`),oe=Symbol.for(`react.memo`),se=Symbol.for(`react.lazy`),ce=Symbol.for(`react.activity`),le=Symbol.for(`react.legacy_hidden`),ue=Symbol.for(`react.memo_cache_sentinel`),de=Symbol.for(`react.view_transition`),fe=Symbol.for(`react.recoverable`),pe=Symbol.iterator;function me(e){return typeof e!=`object`||!e?null:(e=pe&&e[pe]||e[`@@iterator`],typeof e==`function`?e:null)}var he=Symbol.for(`react.client.reference`);function ge(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===he?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 ce:return`Activity`;case de: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 oe:return t=e.displayName||null,t===null?ge(e.type)||`Memo`:t;case se:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var _e=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},ye=[],be=-1;function xe(e){return{current:e}}function Se(e){0>be||(e.current=ye[be],ye[be]=null,be--)}function F(e,t){be++,ye[be]=e.current,e.current=t}var Ce=xe(null),we=xe(null),Te=xe(null),Ee=xe(null);function De(e,t){switch(F(Te,t),F(we,e),F(Ce,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}}Se(Ce),F(Ce,e)}function Oe(){Se(Ce),Se(we),Se(Te)}function I(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,F(Ee,e)),t=Ce.current;var n=dp(t,e.type);t!==n&&(F(we,e),F(Ce,n))}function ke(e){we.current===e&&(Se(Ce),Se(we)),Ee.current===e&&(Se(Ee),sh._currentValue=ve)}var Ae,je;function Me(e){if(Ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||``,je=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+Ae+e+je}var Ne=!1;function Pe(e,t){if(!e||Ne)return``;Ne=!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{Ne=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Me(n):``}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me(`Lazy`);case 13:return e.child!==t&&t!==null?Me(`Suspense Fallback`):Me(`Suspense`);case 19:return Me(`SuspenseList`);case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return Me(`Activity`);case 30:return Me(`ViewTransition`);default:return``}}function Ie(e){try{var t=``,n=null;do t+=Fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var Le=Object.prototype.hasOwnProperty,Re=t.unstable_scheduleCallback,ze=t.unstable_cancelCallback,Be=t.unstable_shouldYield,Ve=t.unstable_requestPaint,He=t.unstable_now,Ue=t.unstable_getCurrentPriorityLevel,We=t.unstable_ImmediatePriority,Ge=t.unstable_UserBlockingPriority,Ke=t.unstable_NormalPriority,qe=t.unstable_LowPriority,Je=t.unstable_IdlePriority,Ye=t.log,Xe=t.unstable_setDisableYieldValue,Ze=null,Qe=null;function L(e){if(typeof Ye==`function`&&Xe(e),Qe&&typeof Qe.setStrictMode==`function`)try{Qe.setStrictMode(Ze,e)}catch{}}var $e=Math.clz32?Math.clz32:nt,et=Math.log,tt=Math.LN2;function nt(e){return e>>>=0,e===0?32:31-(et(e)/tt|0)|0}var rt=256,it=262144,at=4194304;function ot(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 st(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=ot(n))):i=ot(o):i=ot(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ot(n))):i=ot(o)):i=ot(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 ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(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-$e(n),i=1<<r;t|=e[r],n&=~i}return t}function ut(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 dt(){var e=at;return at<<=1,!(at&62914560)&&(at=4194304),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mt(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-$e(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&&ht(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ht(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-$e(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function _t(e,t){var n=t&-t;return n=n&42?1:vt(n),(n&(e.suspendedLanes|t))===0?n:0}function vt(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 yt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function bt(){var e=P.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function xt(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var St=Math.random().toString(36).slice(2),Ct=`__reactFiber$`+St,wt=`__reactProps$`+St,Tt=`__reactContainer$`+St,R=`__reactEvents$`+St,Et=`__reactListeners$`+St,Dt=`__reactHandles$`+St,Ot=`__reactResources$`+St,kt=`__reactMarker$`+St,At=`__reactLoad$`+St;function jt(e){delete e[Ct],delete e[wt],delete e[Et],delete e[Dt]}function Mt(e){var t;if(t=e[Ct])return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[Ct])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Nt(e){if(e=e[Ct]||e[Tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ft(e){var t=e[Ot];return t||=e[Ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function It(e){e[kt]=!0}function Lt(e){e[At]=void 0}var Rt=new Set,zt={};function Bt(e,t){Vt(e,t),Vt(e+`Capture`,t)}function Vt(e,t){for(zt[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var Ht=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]*$`),Ut={},Wt={};function Gt(e){return Le.call(Wt,e)?!0:Le.call(Ut,e)?!1:Ht.test(e)?Wt[e]=!0:(Ut[e]=!0,!1)}var z=!1;function Kt(){var e=z;return z=!1,e}function qt(e,t,n){if(Gt(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 Jt(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 Yt(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 Xt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Qt(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 $t(e){if(!e._valueTracker){var t=Zt(e)?`checked`:`value`;e._valueTracker=Qt(e,t,``+e[t])}}function en(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Zt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var tn=/[\n"\\]/g;function nn(e){return e.replace(tn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function rn(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=``+Xt(t)):e.value!==``+Xt(t)&&(e.value=``+Xt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):on(e,Xt(n)):o===`number`&&e.value==t?on(e,Xt(e.value)):on(e,Xt(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=``+Xt(s):e.removeAttribute(`name`)}function an(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)){$t(e);return}n=n==null?``:``+Xt(n),t=t==null?n:``+Xt(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),$t(e)}function on(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function sn(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=``+Xt(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 cn(e,t,n){t!=null&&(t=``+Xt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Xt(n)}function ln(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(_e(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),$t(e)}function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dn=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 fn(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||dn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function pn(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]=``,z=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(fn(e,a,r),z=!0)}else for(var o in t)t.hasOwnProperty(o)&&fn(e,o,t[o])}function mn(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 hn=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`]]),gn=/^[\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 _n(e){return gn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function vn(){}var yn=null;function bn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,Sn=null;function Cn(e){var t=Nt(e);if(t&&(e=t.stateNode)){var n=e[wt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(rn(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="`+nn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[wt]||null;if(!a)throw Error(i(90));rn(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&&en(r)}break a;case`textarea`:cn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}}}var wn=!1;function Tn(e,t,n){if(wn)return e(t,n);wn=!0;try{return e(t)}finally{if(wn=!1,(xn!==null||Sn!==null)&&(Bd(),xn&&(t=xn,e=Sn,Sn=xn=null,Cn(t),e)))for(t=0;t<e.length;t++)Cn(e[t])}}function En(e,t){var n=e.stateNode;if(n===null)return null;var r=n[wt]||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 Dn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,On=!1;if(Dn)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){On=!0}}),window.addEventListener(`test`,kn,kn),window.removeEventListener(`test`,kn,kn)}catch{On=!1}var An=null,jn=null,Mn=null;function Nn(){if(Mn)return Mn;var e,t=jn,n=t.length,r,i=`value`in An?An.value:An.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 Mn=i.slice(e,1<r?1-r:void 0)}function Pn(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 Fn(){return!0}function In(){return!1}function Ln(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)?Fn:In,this.isPropagationStopped=In,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=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zn=Ln(Rn),Bn=D({},Rn,{view:0,detail:0}),Vn=Ln(Bn),Hn,Un,Wn,Gn=D({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,button:0,buttons:0,relatedTarget:function(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!==Wn&&(Wn&&e.type===`mousemove`?(Hn=e.screenX-Wn.screenX,Un=e.screenY-Wn.screenY):Un=Hn=0,Wn=e),Hn)},movementY:function(e){return`movementY`in e?e.movementY:Un}}),Kn=Ln(Gn),qn=Ln(D({},Gn,{dataTransfer:0})),Jn=Ln(D({},Bn,{relatedTarget:0})),Yn=Ln(D({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0})),Xn=Ln(D({},Rn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Zn=Ln(D({},Rn,{data:0})),Qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},$n={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`},er={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=er[e])?!!t[e]:!1}function nr(){return tr}var rr=Ln(D({},Bn,{key:function(e){if(e.key){var t=Qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?$n[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type===`keypress`?Pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ir=Ln(D({},Gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ar=Ln(D({},Rn,{submitter:0})),or=Ln(D({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr})),sr=Ln(D({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),cr=Ln(D({},Gn,{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})),lr=Ln(D({},Rn,{newState:0,oldState:0,source:0})),ur=[9,13,27,32],dr=Dn&&`CompositionEvent`in window,fr=null;Dn&&`documentMode`in document&&(fr=document.documentMode);var pr=Dn&&`TextEvent`in window&&!fr,mr=Dn&&(!dr||fr&&8<fr&&11>=fr),hr=` `,gr=!1;function _r(e,t){switch(e){case`keyup`:return ur.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function vr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var yr=!1;function br(e,t){switch(e){case`compositionend`:return vr(t);case`keypress`:return t.which===32?(gr=!0,hr):null;case`textInput`:return e=t.data,e===hr&&gr?null:e;default:return null}}function xr(e,t){if(yr)return e===`compositionend`||!dr&&_r(e,t)?(e=Nn(),Mn=jn=An=null,yr=!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 mr&&t.locale!==`ko`?null:t.data;default:return null}}var Sr={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 Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Sr[e.type]:t===`textarea`}function wr(e,t,n,r){xn?Sn?Sn.push(r):Sn=[r]:xn=r,t=Jf(t,`onChange`),0<t.length&&(n=new zn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Tr=null,Er=null;function Dr(e){Vf(e,0)}function Or(e){if(en(Pt(e)))return e}function kr(e,t){if(e===`change`)return t}var Ar=!1;if(Dn){var jr;if(Dn){var Mr=`oninput`in document;if(!Mr){var Nr=document.createElement(`div`);Nr.setAttribute(`oninput`,`return;`),Mr=typeof Nr.oninput==`function`}jr=Mr}else jr=!1;Ar=jr&&(!document.documentMode||9<document.documentMode)}function Pr(){Tr&&(Tr.detachEvent(`onpropertychange`,Fr),Er=Tr=null)}function Fr(e){if(e.propertyName===`value`&&Or(Er)){var t=[];wr(t,Er,e,bn(e)),Tn(Dr,t)}}function Ir(e,t,n){e===`focusin`?(Pr(),Tr=t,Er=n,Tr.attachEvent(`onpropertychange`,Fr)):e===`focusout`&&Pr()}function Lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Or(Er)}function Rr(e,t){if(e===`click`)return Or(t)}function zr(e,t){if(e===`input`||e===`change`)return Or(t)}function Br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Vr=typeof Object.is==`function`?Object.is:Br;function Hr(e,t){if(Vr(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(!Le.call(t,i)||!Vr(e[i],t[i]))return!1}return!0}function Ur(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 Wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var n=Wr(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=Wr(n)}}function Kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(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=Ur(e.document)}return t}function Jr(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 Yr=Dn&&`documentMode`in document&&11>=document.documentMode,Xr=null,Zr=null,Qr=null,$r=!1;function ei(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$r||Xr==null||Xr!==Ur(r)||(r=Xr,`selectionStart`in r&&Jr(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}),Qr&&Hr(Qr,r)||(Qr=r,r=Jf(Zr,`onSelect`),0<r.length&&(t=new zn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Xr)))}function ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ni={animationend:ti(`Animation`,`AnimationEnd`),animationiteration:ti(`Animation`,`AnimationIteration`),animationstart:ti(`Animation`,`AnimationStart`),transitionrun:ti(`Transition`,`TransitionRun`),transitionstart:ti(`Transition`,`TransitionStart`),transitioncancel:ti(`Transition`,`TransitionCancel`),transitionend:ti(`Transition`,`TransitionEnd`)},ri={},ii={};Dn&&(ii=document.createElement(`div`).style,`AnimationEvent`in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),`TransitionEvent`in window||delete ni.transitionend.transition);function ai(e){if(ri[e])return ri[e];if(!ni[e])return e;var t=ni[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ii)return ri[e]=t[n];return e}var oi=ai(`animationend`),si=ai(`animationiteration`),ci=ai(`animationstart`),li=ai(`transitionrun`),ui=ai(`transitionstart`),di=ai(`transitioncancel`),fi=ai(`transitionend`),pi=new Map,mi=`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(` `);mi.push(`scrollEnd`);function hi(e,t){pi.set(e,t),Bt(t,[e])}var gi=0;function _i(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=gi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function vi(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 yi(e,t){return e=vi(e),t=vi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var bi=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)},xi=[],Si=0,Ci=0;function wi(){for(var e=Si,t=Ci=Si=0;t<e;){var n=xi[t];xi[t++]=null;var r=xi[t];xi[t++]=null;var i=xi[t];xi[t++]=null;var a=xi[t];if(xi[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&&Oi(n,i,a)}}function Ti(e,t,n,r){xi[Si++]=e,xi[Si++]=t,xi[Si++]=n,xi[Si++]=r,Ci|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ei(e,t,n,r){return Ti(e,t,n,r),ki(e)}function Di(e,t){return Ti(e,null,null,t),ki(e)}function Oi(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-$e(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ki(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 Ai={};function ji(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 Mi(e,t,n,r){return new ji(e,t,n,r)}function Ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pi(e,t){var n=e.alternate;return n===null?(n=Mi(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 Fi(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 Ii(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ni(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,Ce.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ce:return e=Mi(31,n,t,a),e.elementType=ce,e.lanes=o,e;case ee:return Li(n.children,a,o,t);case te:s=8,a|=24;break;case ne:return e=Mi(12,n,t,a|2),e.elementType=ne,e.lanes=o,e;case ie:return e=Mi(13,n,t,a),e.elementType=ie,e.lanes=o,e;case ae:return e=Mi(19,n,t,a),e.elementType=ae,e.lanes=o,e;case le:case de:return e=a|32,e=Mi(30,n,t,e),e.elementType=de,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 oe:s=14;break a;case se:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Li(e,t,n,r){return e=Mi(7,e,r,t),e.lanes=n,e}function Ri(e,t,n){return e=Mi(6,e,null,t),e.lanes=n,e}function zi(e){var t=Mi(18,null,null,0);return t.stateNode=e,t}function Bi(e,t,n){return t=Mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vi=new WeakMap;function Hi(e,t){if(typeof e==`object`&&e){var n=Vi.get(e);return n===void 0?(t={value:e,source:t,stack:Ie(t)},Vi.set(e,t),t):n}return{value:e,source:t,stack:Ie(t)}}var Ui=[],Wi=0,Gi=null,Ki=0,qi=[],Ji=0,Yi=null,Xi=1,Zi=``;function Qi(e,t){Ui[Wi++]=Ki,Ui[Wi++]=Gi,Gi=e,Ki=t}function $i(e,t,n){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Yi=e;var r=Xi;e=Zi;var i=32-$e(r)-1;r&=~(1<<i),n+=1;var a=32-$e(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-$e(t)+i|n<<i|r,Zi=a+e}else Xi=1<<a|n<<i|r,Zi=e}function ea(e){e.return!==null&&(Qi(e,1),$i(e,1,0))}function ta(e){for(;e===Gi;)Gi=Ui[--Wi],Ui[Wi]=null,Ki=Ui[--Wi],Ui[Wi]=null;for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Zi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null}function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Xi=t.id,Zi=t.overflow,Yi=e}var ra=null,ia=null,B=!1,aa=null,oa=!1,sa=Error(i(519));function ca(e){throw ma(Hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),sa}function la(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ct]=e,t[wt]=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),an(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),ln(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=vn),t=!0):t=!1,t||ca(e,!0)}function ua(e){for(ra=e.return;ra;)switch(ra.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:ra=ra.return}}function da(e){if(e!==ra)return!1;if(!B)return ua(e),B=!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&&ia&&ca(e),ua(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=dm(e)}else t===27?(t=ia,Sp(e.type)?(e=um,um=null,ia=e):ia=t):ia=ra?lm(e.stateNode.nextSibling):null;return!0}function fa(){ia=ra=null,B=!1}function pa(){var e=aa;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),aa=null),e}function ma(e){aa===null?aa=[e]:aa.push(e)}var ha=xe(null),ga=null,_a=null;function va(e,t,n){F(ha,t._currentValue),t._currentValue=n}function ya(e){e._currentValue=ha.current,Se(ha)}function ba(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 xa(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),ba(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),ba(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),ba(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 Sa(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;Vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ee.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&&xa(t,e,n,r),t.flags|=262144,e!==null}function Ca(e){for(e=e.firstContext;e!==null;){if(!Vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){ga=e,_a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ta(e){return Da(ga,e)}function Ea(e,t){return ga===null&&wa(e),Da(e,t)}function Da(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_a===null){if(e===null)throw Error(i(308));_a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _a=_a.next=t;return n}var Oa=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()})}},ka=t.unstable_scheduleCallback,Aa=t.unstable_NormalPriority,ja={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ma(){return{controller:new Oa,data:new Map,refCount:0}}function Na(e){e.refCount--,e.refCount===0&&ka(Aa,function(){e.controller.abort()})}function Pa(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 Fa=null;function Ia(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var La=null,Ra=0,za=0,Ba=null;function Va(e,t){if(La===null){var n=La=[];Ra=0,za=Ff(),Ba={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ra++,t.then(Ha,Ha),t}function Ha(){if(--Ra===0&&(Fa=null,La!==null)){Ba!==null&&(Ba.status=`fulfilled`);var e=La;La=null,za=0,Ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ua(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 Wa=N.S;N.S=function(e,t){if(gd=He(),typeof t==`object`&&t&&typeof t.then==`function`&&Va(e,t),Fa!==null)for(var n=xf;n!==null;)Pa(n,Fa),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)Pa(r,n),r=r.next;if(za!==0){r=Fa,r===null&&(r=Fa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Wa!==null&&Wa(e,t)};var Ga=xe(null);function Ka(){var e=Ga.current;return e===null?K.pooledCache:e}function qa(e,t){t===null?F(Ga,Ga.current):F(Ga,t.pool)}function Ja(){var e=Ka();return e===null?null:{parent:ja._currentValue,pool:e}}var Ya=Error(i(460)),Xa=Error(i(474)),Za=Error(i(542)),Qa={then:function(){}};function $a(e){return e=e.status,e===`fulfilled`||e===`rejected`}function eo(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(vn,vn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,io(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(vn,vn);else{if(e=K,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,io(e),e}throw no=t,Ya}}function to(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(no=e,Ya):e}}var no=null;function ro(){if(no===null)throw Error(i(459));var e=no;return no=null,e}function io(e){if(e===Ya||e===Za)throw Error(i(483))}var ao=null,oo=0;function so(e){var t=oo;return oo+=1,ao===null&&(ao=[]),eo(ao,e,t)}function co(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function lo(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 uo(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=Pi(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=Ri(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),co(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===se&&to(i)===t.type)?(t=a(t,n.props),co(t,n),t.return=e,t):(t=Ii(n.type,n.key,n.props,null,e.mode,r),co(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=Bi(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=Li(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=Ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ii(t.type,t.key,t.props,null,e.mode,n),co(n,t),n.return=e,n;case A:return t=Bi(t,e.mode,n),t.return=e,t;case se:return t=to(t),f(e,t,n)}if(_e(t)||me(t))return t=Li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,so(t),n);if(t.$$typeof===M)return f(e,Ea(e,t),n);lo(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 se:return n=to(n),p(e,t,n,r)}if(_e(n)||me(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,so(n),r);if(n.$$typeof===M)return p(e,t,Ea(e,n),r);lo(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 se:return r=to(r),m(e,t,n,r,i)}if(_e(r)||me(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,so(r),i);if(r.$$typeof===M)return m(e,t,n,Ea(t,r),i);lo(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),B&&Qi(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 B&&Qi(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)}),B&&Qi(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),B&&Qi(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 B&&Qi(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)}),B&&Qi(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),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===se&&to(l)===r.type){n(e,r.sibling),c=a(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Li(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Ii(o.type,o.key,o.props,null,e.mode,c),co(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=Bi(o,e.mode,c),c.return=e,e=c}return s(e);case se:return o=to(o),_(e,r,o,c)}if(_e(o))return h(e,r,o,c);if(me(o)){if(l=me(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,so(o),c);if(o.$$typeof===M)return _(e,r,Ea(e,o),c);lo(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=Ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(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 _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ki(e),Oi(e,null,n),t}return Ti(e,r,t,n),ki(e)}function yo(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,gt(e,n)}}function bo(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 xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!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===za&&(xo=!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:mo=!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 wo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)wo(n[e],t)}var Eo=xe(null),Do=xe(0);function Oo(e,t){e=ad,F(Do,e),F(Eo,t),ad=e|t.baseLanes}function ko(){F(Do,ad),F(Eo,Eo.current)}function Ao(){ad=Do.current,Se(Eo),Se(Do)}var jo=xe(null),Mo=null;function No(e){var t=e.alternate;F(Ro,Ro.current&1),F(jo,e),Mo===null&&(t===null||Eo.current!==null||t.memoizedState!==null)&&(Mo=e)}function Po(e){F(Ro,Ro.current),F(jo,e),Mo===null&&(Mo=e)}function Fo(e){e.tag===22?(F(Ro,Ro.current),F(jo,e),Mo===null&&(Mo=e)):Io()}function Io(){F(Ro,Ro.current),F(jo,jo.current)}function Lo(e){Se(jo),Mo===e&&(Mo=null),Se(Ro)}var Ro=xe(0);function zo(e,t){F(jo,jo.current),F(Ro,t)}function Bo(e){Se(Ro),Se(jo),Mo===e&&(Mo=null)}function Vo(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 Ho=0,V=null,H=null,Uo=null,Wo=!1,Go=!1,Ko=!1,qo=0,Jo=0,Yo=null,Xo=0;function Zo(){throw Error(i(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function $o(e,t,n,r,i,a){return Ho=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?gc:_c,Ko=!1,a=n(r,i),Ko=!1,Go&&(a=ts(t,n,r,i)),es(e),a}function es(e){N.H=hc;var t=H!==null&&H.next!==null;if(Ho=0,Uo=H=V=null,Wo=!1,Jo=0,Yo=null,t)throw Error(i(300));e===null||Pc||(e=e.dependencies,e!==null&&Ca(e)&&(Pc=!0))}function ts(e,t,n,r){V=e;var a=0;do{if(Go&&(Yo=null),Jo=0,Go=!1,25<=a)throw Error(i(301));if(a+=1,Uo=H=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=vc,o=t(n,r)}while(Go);return o}function ns(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?ls(t):t,e=e.useState()[0],(H===null?null:H.memoizedState)!==e&&(V.flags|=1024),t}function rs(){var e=qo!==0;return qo=0,e}function is(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function as(e){if(Wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wo=!1}Ho=0,Uo=H=V=null,Go=!1,Jo=qo=0,Yo=null}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Uo===null?V.memoizedState=Uo=e:Uo=Uo.next=e,Uo}function ss(){if(H===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=H.next;var t=Uo===null?V.memoizedState:Uo.next;if(t!==null)Uo=t,H=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));H=e,e={memoizedState:H.memoizedState,baseState:H.baseState,baseQueue:H.baseQueue,queue:H.queue,next:null},Uo===null?V.memoizedState=Uo=e:Uo=Uo.next=e}return Uo}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=Jo;return Jo+=1,Yo===null&&(Yo=[]),e=eo(Yo,e,t),t=V,(Uo===null?t.memoizedState:Uo.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?gc:_c),e}function us(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ls(e);if(e.$$typeof===fe)return;if(e.$$typeof===M)return Ta(e)}throw Error(i(438,String(e)))}function ds(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.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=cs(),V.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]=ue;return t.index++,n}function fs(e,t){return typeof t==`function`?t(e):t}function ps(e){return ms(ss(),H,e)}function ms(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?(Ho&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===za&&(d=!0);else if((Ho&p)===p){u=u.next,p===za&&(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,V.lanes|=p,sd|=p;f=u.action,Ko&&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,V.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Vr(o,e.memoizedState)&&(Pc=!0,d&&(n=Ba,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 hs(e){var t=ss(),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);Vr(o,t.memoizedState)||(Pc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gs(e,t,n){var r=V,a=ss(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Vr((H||a).memoizedState,n);if(s&&(a.memoizedState=n,Pc=!0),a=a.queue,Vs(ys.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Uo!==null&&!!(Uo.memoizedState.tag&1),Is(e?9:8,{destroy:void 0},vs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,K===null)throw Error(i(349));o||Ho&127||_s(r,t,n)}return n}function _s(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=cs(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vs(e,t,n,r){t.value=n,t.getSnapshot=r,bs(t)&&xs(e)}function ys(e,t,n){return n(function(){bs(t)&&xs(e)})}function bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vr(e,n)}catch{return!0}}function xs(e){var t=Di(e,2);t!==null&&Fd(t,e,2)}function Ss(e){var t=os();if(typeof e==`function`){var n=e;if(e=n(),Ko){L(!0);try{n()}finally{L(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,ms(e,H,typeof r==`function`?r:fs)}function ws(e,t,n,r,a){if(fc(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)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};o.types=a===null?null:a.types,N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Es(e,t,s)}catch(n){Os(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Es(e,t,a)}catch(n){Os(e,t,n)}}function Es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ds(e,t,n)},function(n){return Os(e,t,n)}):Ds(e,t,n)}function Ds(e,t,n){t.status=`fulfilled`,t.value=n,ks(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ts(e,n)))}function Os(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ks(t),t=t.next;while(t!==r)}e.action=null}function ks(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function As(e,t){return t}function js(e,t){if(B){var n=K.formState;if(n!==null){a:{var r=V;if(B){if(ia){b:{for(var i=ia,a=oa;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){ia=lm(i.nextSibling),r=i.data===`F!`;break a}}ca(r)}r=!1}r&&(t=n[0])}}return n=os(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:t},n.queue=r,n=lc.bind(null,V,r),r.dispatch=n,r=Ss(!1),a=dc.bind(null,V,!1,r.queue),r=os(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ws.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ms(e){return Ns(ss(),H,e)}function Ns(e,t,n){if(t=ms(e,t,As)[0],e=ps(fs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ls(t)}catch(e){throw e===Ya?Za:e}else r=t;t=ss();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,Is(9,{destroy:void 0},Ps.bind(null,i,n),null)),[r,a,e]}function Ps(e,t){e.action=t}function Fs(e){var t=ss(),n=H;if(n!==null)return Ns(t,n,e);ss(),t=t.memoizedState,n=ss();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=cs(),V.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 Ls(){return ss().memoizedState}function Rs(e,t,n,r){var i=os();V.flags|=e,i.memoizedState=Is(1|t,{destroy:void 0},n,r===void 0?null:r)}function zs(e,t,n,r){var i=ss();r=r===void 0?null:r;var a=i.memoizedState.inst;H!==null&&r!==null&&Qo(r,H.memoizedState.deps)?i.memoizedState=Is(t,a,n,r):(V.flags|=e,i.memoizedState=Is(1|t,a,n,r))}function Bs(e,t){Rs(8390656,8,e,t)}function Vs(e,t){zs(2048,8,e,t)}function Hs(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=cs(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Us(e){var t=ss().memoizedState;return Hs({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ws(e,t){return zs(4,2,e,t)}function Gs(e,t){return zs(4,4,e,t)}function Ks(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 qs(e,t,n){n=n==null?null:n.concat([e]),zs(4,4,Ks.bind(null,t,e),n)}function Js(){}function Ys(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xs(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Qo(t,r[1]))return r[0];if(r=e(),Ko){L(!0);try{e()}finally{L(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Ho&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),V.lanes|=e,sd|=e,n)}function Qs(e,t,n,r){return Vr(n,t)?n:Eo.current===null?!(Ho&106)||Ho&1073741824&&!(J&261930)?(Pc=!0,e.memoizedState=n):(e=Nd(),V.lanes|=e,sd|=e,t):(e=Zs(e,n,r),Vr(e,t)||(Pc=!0),e)}function $s(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};s.types=o===null?null:o.types,N.T=s,dc(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Ua(c,r),Md(e)):uc(e,t,r,Md(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,ve,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},Md())}function ic(){return Ta(sh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=_o(n);var r=vo(t,e,n);r!==null&&(Fd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=Ei(e,t,n,r),n!==null&&(Fd(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,Md())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(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,Vr(s,o))return Ti(e,t,i,0),K===null&&wi(),!1}catch{}if(n=Ei(e,t,i,r),n!==null)return Fd(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=Ei(e,n,r,2),t!==null&&Fd(t,e,2)}function fc(e){var t=e.alternate;return e===V||t!==null&&t===V}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gt(e,n)}}var hc={readContext:Ta,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:Ta,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){L(!0);try{e()}finally{L(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){L(!0);try{n(t)}finally{L(!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=cc.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,V,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=os();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=K.identifierPrefix;if(B){var n=Zi,r=Xi;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ic,useFormState:js,useActionState:js,useOptimistic:function(e){var t=os();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:ds,useCacheRefresh:function(){return os().memoizedState=sc.bind(null,V)},useEffectEvent:function(e){var t=os(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:Ta,use:us,useCallback:Ys,useContext:Ta,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:ps,useRef:Ls,useState:function(){return ps(fs)},useDebugValue:Js,useDeferredValue:function(e,t){return Qs(ss(),H.memoizedState,e,t)},useTransition:function(){var e=ps(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){return Cs(ss(),H,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us},vc={readContext:Ta,use:us,useCallback:Ys,useContext:Ta,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:hs,useRef:Ls,useState:function(){return hs(fs)},useDebugValue:Js,useDeferredValue:function(e,t){var n=ss();return H===null?Zs(n,e,t):Qs(n,H.memoizedState,e,t)},useTransition:function(){var e=hs(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){var n=ss();return H===null?(n.baseState=e,[e,n.queue.dispatch]):Cs(n,H,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us};function yc(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 bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=_o(r);i.payload=t,n!=null&&(i.callback=n),t=vo(e,i,r),t!==null&&(Fd(t,e,r),yo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=_o(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=vo(e,i,r),t!==null&&(Fd(t,e,r),yo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=_o(n);r.tag=2,t!=null&&(r.callback=t),t=vo(e,r,n),t!==null&&(Fd(t,e,n),yo(t,e,n))}};function xc(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?!Hr(n,r)||!Hr(i,a):!0}function Sc(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&&bc.enqueueReplaceState(t,t.state,null)}function Cc(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 wc(e){bi(e)}function Tc(e){console.error(e)}function Ec(e){bi(e)}function Dc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Oc(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 kc(e,t,n){return n=_o(n),n.tag=3,n.payload={element:null},n.callback=function(){Dc(e,t)},n}function Ac(e){return e=_o(e),e.tag=3,e}function jc(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(){Oc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Oc(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 Mc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Sa(t,n,a,!0),n=jo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Mo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Qa?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===Qa?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(B)return t=jo.current,t===null?(r!==sa&&(t=Error(i(423),{cause:r}),ma(Hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Hi(r,n),a=kc(e.stateNode,r,a),bo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==sa&&(e=Error(i(422),{cause:r}),ma(Hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Hi(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=kc(n.stateNode,r,e),bo(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=Ac(a),jc(a,e,n,r),bo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Nc=Error(i(461)),Pc=!1;function Fc(e,t,n,r){t.child=e===null?po(t,null,n,r):fo(t,e.child,n,r)}function Ic(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 wa(t),r=$o(e,t,n,o,a,i),s=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(B&&s&&ea(t),t.flags|=1,Fc(e,t,r,i),t.child)}function Lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ni(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Rc(e,t,a,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!dl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Hr:n,n(o,r)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,e=Pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Hr(a,r)&&e.ref===t.ref){if(Pc=!1,t.pendingProps=r=a,dl(e,i))e.flags&131072&&(Pc=!0);else return t.lanes=e.lanes,ul(e,t,i)}}return Kc(e,t,n,r,i)}function zc(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 Vc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qa(t,a===null?null:a.cachePool),a===null?ko():Oo(t,a),Fo(t);else return r=t.lanes=536870912,Vc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&qa(t,null),ko(),Io()):(qa(t,a.cachePool),Oo(t,a),Io(),t.memoizedState=null);return Fc(e,t,i,n),t.child}function Bc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vc(e,t,n,r,i){var a=Ka();return a=a===null?null:{parent:ja._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&qa(t,null),ko(),Fo(t),e!==null&&Sa(e,t,r,!0),t.childLanes=i,null}function Hc(e,t){return t=tl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uc(e,t,n){return fo(t,e.child,null,n),e=Hc(t,t.pendingProps),e.flags|=2,Lo(t),t.memoizedState=null,e}function Wc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=Hc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Bc(null,e);if(Po(t),(e=ia)?(e=am(e,oa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=536870912,null}return Hc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Po(t),a){if(t.flags&256)t.flags&=-257,t=Uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Pc||Sa(e,t,n,!1),a=(n&e.childLanes)!==0,Pc||a){if(Eo.current===null){if(r=K,r!==null&&(s=_t(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Di(e,s),Fd(r,e,s),Nc;qd()}t=Uc(e,t,n)}else e=o.treeContext,ia=lm(s.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=Hc(t,r),t.flags|=134221824;return t}return e=Pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gc(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 Kc(e,t,n,r,i){return wa(t),n=$o(e,t,n,r,void 0,i),r=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(B&&r&&ea(t),t.flags|=1,Fc(e,t,n,i),t.child)}function qc(e,t,n,r,i,a){return wa(t),t.updateQueue=null,n=ts(t,r,n,i),es(e),r=rs(),e!==null&&!Pc?(is(e,t,a),ul(e,t,a)):(B&&r&&ea(t),t.flags|=1,Fc(e,t,n,a),t.child)}function Jc(e,t,n,r,i){if(wa(t),t.stateNode===null){var a=Ai,o=n.contextType;typeof o==`object`&&o&&(a=Ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=bc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ho(t),o=n.contextType,a.context=typeof o==`object`&&o?Ta(o):Ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(yc(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&&bc.enqueueReplaceState(a,a.state,null),Co(t,r,a,i),So(),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=Cc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ai,typeof u==`object`&&u&&(o=Ta(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)&&Sc(t,a,r,o),mo=!1;var f=t.memoizedState;a.state=f,Co(t,r,a,i),So(),l=t.memoizedState,s||f!==l||mo?(typeof d==`function`&&(yc(t,n,d,r),l=t.memoizedState),(c=mo||xc(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,go(e,t),o=t.memoizedProps,u=Cc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ai,typeof l==`object`&&l&&(c=Ta(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)&&Sc(t,a,r,c),mo=!1,f=t.memoizedState,a.state=f,Co(t,r,a,i),So();var p=t.memoizedState;o!==d||f!==p||mo||e!==null&&e.dependencies!==null&&Ca(e.dependencies)?(typeof s==`function`&&(yc(t,n,s,r),p=t.memoizedState),(u=mo||xc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ca(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,Gc(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=fo(t,e.child,null,i),t.child=fo(t,null,n,i)):Fc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ul(e,t,i),e}function Yc(e,t,n,r){return fa(),t.flags|=256,Fc(e,t,n,r),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:Ja()}}function Qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function $c(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ro.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(B){if(i?No(t):Io(),(e=ia)?(e=am(e,oa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Io(),i=t.mode,a=tl({mode:`hidden`,children:a},i),r=Li(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Zc(n),r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(null,r)):(No(t),el(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return rl(e,t,a,o,r,c,s,n)}return i?(Io(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Pi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Li(i,a,n,null),i.flags|=2):i=Pi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Bc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Zc(n):(a=i.cachePool,a===null?a=Ja():(s=ja._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(e.child,r)):(No(t),n=e.child,e=n.sibling,n=Pi(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 el(e,t){return t=tl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function tl(e,t){return e=Mi(22,e,null,t),e.lanes=0,e}function nl(e,t,n){return fo(t,e.child,null,n),e=el(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(No(t),t.flags&=-257,nl(e,t,c)):t.memoizedState===null?(Io(),o=a.fallback,s=t.mode,a=tl({mode:`visible`,children:a.children},s),o=Li(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,fo(t,e.child,null,c),a=t.child,a.memoizedState=Zc(c),a.childLanes=Qc(e,r,c),t.memoizedState=Xc,Bc(null,a)):(Io(),t.child=e.child,t.flags|=128,null);if(No(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,ma({value:a,source:null,stack:null})),nl(e,t,c)}if(Pc||Sa(e,t,c,!1),r=(c&e.childLanes)!==0,Pc||r){if(Eo.current!==null)return nl(e,t,c);if(r=K,r!==null&&(a=_t(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Di(e,a),Fd(r,e,a),Nc;return om(o)||qd(),nl(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ia=lm(o.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=el(t,a.children),t.flags|=134221824,t)}function il(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ba(e.return,t,n)}function al(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Vo(n)===null&&(t=e),e=e.sibling}return t}function ol(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 sl(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 cl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ro.current;if(t.flags&128)return zo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,zo(t,o),i===`backwards`&&e!==null?(sl(e),Fc(e,t,r,n),sl(e)):Fc(e,t,r,n),r=B?Ki:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&il(e,n,t);else if(e.tag===19)il(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=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,sl(t)),ol(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&&Vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ol(t,!0,n,null,a,r);break;case`together`:ol(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ol(t,!1,i,n,a,r)}return t.child}function ll(e,t,n){var r=t.pendingProps;return va(t,t.type,r.value),Fc(e,t,r.children,n),t.child}function ul(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Sa(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=Pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ca(e)))}function fl(e,t,n){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),va(t,ja,e.memoizedState.cache),fa();break;case 27:case 5:I(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Po(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return No(t),t.flags|=128,null;r=Sa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?$c(e,t,n):(No(t),e=ul(e,t,n),e===null?null:e.sibling)}No(t);break;case 19:if(t.flags&128)return cl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Sa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return cl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zo(t,Ro.current),r)break;return null;case 22:return t.lanes=0,zc(e,t,n,t.pendingProps);case 24:va(t,ja,e.memoizedState.cache)}return ul(e,t,n)}function pl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Pc=!0;else{if(!dl(e,n)&&!(t.flags&128))return Pc=!1,fl(e,t,n);Pc=!!(e.flags&131072)}}else Pc=!1,B&&t.flags&1048576&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=to(t.elementType),t.type=e,typeof e==`function`)Ni(e)?(r=Cc(e,r),t.tag=1,t=Jc(null,t,e,r,n)):(t.tag=0,t=Kc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===re){t.tag=11,t=Ic(null,t,e,r,n);break a}if(a===oe){t.tag=14,t=Lc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=ll(null,t,n);break a}}throw t=ge(e)||e,Error(i(306,t,``))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Cc(r,t.pendingProps),Jc(e,t,r,a,n);case 3:a:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,go(e,t),Co(t,r,null,n);var s=t.memoizedState;if(r=s.cache,va(t,ja,r),r!==o.cache&&xa(t,[ja],n,!0),So(),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=Yc(e,t,r,n);break a}if(r!==a){a=Hi(Error(i(424)),t),ma(a),t=Yc(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(ia=lm(e.firstChild),ra=t,B=!0,aa=null,oa=!0,n=po(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(fa(),r===a){t=ul(e,t,n);break a}Fc(e,t,r,n)}t=t.child}return t;case 26:return Gc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(t.stateNode=fp(t.type,t.pendingProps,Te.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return I(t),e===null&&B&&(r=t.stateNode=hm(t.type,t.pendingProps,Te.current),ra=t,oa=!0,a=ia,Sp(t.type)?(um=a,ia=lm(r.firstChild)):ia=a),Fc(e,t,t.pendingProps.children,n),Gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=ia)&&(r=rm(r,t.type,t.pendingProps,oa),r===null?a=!1:(t.stateNode=r,ra=t,ia=lm(r.firstChild),oa=!1,a=!0)),a||ca(t)),I(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=$o(e,t,ns,null,null,n),sh._currentValue=a),Gc(e,t),Fc(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=ia)&&(n=im(n,t.pendingProps,oa),n===null?e=!1:(t.stateNode=n,ra=t,ia=null,e=!0)),e||ca(t)),null;case 13:return $c(e,t,n);case 4:return De(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fo(t,null,r,n):Fc(e,t,r,n),t.child;case 11:return Ic(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Gc(e,t),Fc(e,t,r,n),t.child;case 8:return Fc(e,t,t.pendingProps.children,n),t.child;case 12:return Fc(e,t,t.pendingProps.children,n),t.child;case 10:return ll(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,wa(t),a=Ta(a),r=r(a),t.flags|=1,Fc(e,t,r,n),t.child;case 14:return Lc(e,t,t.type,t.pendingProps,n);case 15:return Rc(e,t,t.type,t.pendingProps,n);case 19:return cl(e,t,n);case 31:return Wc(e,t,n);case 22:return zc(e,t,n,t.pendingProps);case 24:return wa(t),r=Ta(ja),e===null?(a=Ka(),a===null&&(a=K,o=Ma(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ho(t),va(t,ja,a)):((e.lanes&n)!==0&&(go(e,t),Co(t,null,null,n),So()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,va(t,ja,r),r!==a.cache&&xa(t,[ja],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),va(t,ja,r))),Fc(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:B&&ea(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Gc(e,t),Fc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ml(e){e.flags|=4}function hl(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 no=Qa,Xa}}else e.flags&=-16777217}function gl(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 no=Qa,Xa}}function _l(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:dt(),e.lanes|=t,dd|=t)}function vl(e,t){if(!B)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 yl(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 bl(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yl(t),null;case 1:return yl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ya(ja),Oe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(da(t)?ml(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pa())),yl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ml(t),o===null?(yl(t),hl(t,a,null,r,n)):(yl(t),gl(t,o))):o?o===e.memoizedState?(yl(t),t.flags&=-16777217):(ml(t),yl(t),gl(t,o)):(e=e.memoizedProps,e!==r&&ml(t),yl(t),hl(t,a,e,r,n)),null;case 27:if(ke(t),n=Te.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return yl(t),t.subtreeFlags&=-33554433,null}e=Ce.current,da(t)?la(t,e):(e=hm(a,r,n),t.stateNode=e,ml(t))}return yl(t),t.subtreeFlags&=-33554433,null;case 5:if(ke(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return yl(t),t.subtreeFlags&=-33554433,null}if(o=Ce.current,da(t))la(t,o);else{var s=lp(Te.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[Ct]=t,o[wt]=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&&ml(t)}}return yl(t),t.subtreeFlags&=-33554433,hl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Te.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ra,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ca(t,!0)}else e=lp(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return yl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(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[Ct]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yl(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(i(558))}return yl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=da(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[Ct]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yl(t),a=!1}else a=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(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),_l(t,t.updateQueue),yl(t),null);case 4:return Oe(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,yl(t),null;case 10:return ya(t.type),yl(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return yl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)vl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,vl(r,!1),e=o.updateQueue,t.updateQueue=e,_l(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fi(n,e),n=n.sibling;return zo(t,Ro.current&1|2),B&&Qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&He()>_d&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_l(t,e),vl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!B)return yl(t),null}else 2*He()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,vl(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=He(),e.sibling=null,o=Ro.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||B?zo(t,o):(n=o,F(jo,t),F(Ro,n),Mo===null&&(Mo=t)),B&&Qi(t,r.treeForkCount),e}return yl(t),null;case 22:case 23:return Lo(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(yl(t),t.subtreeFlags&6&&(t.flags|=8192)):yl(t),n=t.updateQueue,n!==null&&_l(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&&Se(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),yl(t),null;case 25:return null;case 30:return t.flags|=33554432,yl(t),null}throw Error(i(156,t.tag))}function xl(e,t){switch(ta(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Oe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ke(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(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 Oe(),null;case 10:return ya(t.type),null;case 22:case 23:return Lo(t),Ao(),e!==null&&Se(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function Sl(e,t){switch(ta(t),t.tag){case 3:ya(ja),Oe();break;case 26:case 27:case 5:ke(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:ya(t.type);break;case 22:case 23:Lo(t),Ao(),e!==null&&Se(Ga);break;case 24:ya(ja)}}function Cl(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 wl(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 Tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){X(e,e.return,t)}}}function El(e,t,n){n.props=Cc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Dl(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=_i(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 Ol(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 kl(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 Al(e){for(var t=e.return;t!==null&&(Nl(t)&&em(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function jl(e){for(var t=e.return;t!==null&&(Nl(t)&&tm(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function Ml(e){return e.tag===5||e.tag===3||e.tag===27}function Nl(e){return e&&e.tag===7&&e.stateNode!==null}function Pl(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 Fl(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[wt]=t}catch(t){X(e,e.return,t)}}function Il(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Ll(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Il(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 Rl(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=vn)),kl(e,r),z=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),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,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),kl(e,r),z=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(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[Ct]=e,t[wt]=n}catch(t){X(e,e.return,t)}}var Vl=!1,Hl=null;function Ul(e){(e.tag===30||e.subtreeFlags&33554432)&&(Vl=!0)}var Wl=null;function Gl(){var e=Wl;return Wl=null,e}var Kl=0;function ql(e,t,n,r,i){return Kl=0,Jl(e.child,t,n,r,i)}function Jl(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);Vl=!0,Tp(o,Kl===0?t:t+`_`+Kl,n),Kl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Jl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Yl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Yl(e.child,t),e=e.sibling}function Xl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Xl(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=yi(t.default,t.share),t!==`none`&&(ql(e,n,t,null,!1)||Yl(e.child,!1))}e=e.sibling}}function Zl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=_i(r,n),a=yi(r.default,n.paired?r.share:r.enter);a===`none`?Xl(e):ql(e,i,a,null,!1)?(Xl(e),n.paired||t||Pd(e,r.onEnter)):Yl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e,t),e=e.sibling;else Xl(e)}function Ql(e){if(Hl!==null&&Hl.size!==0){var t=Hl;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=yi(n.default,n.share);if(a!==`none`&&(ql(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Yl(e.child,!1)),t.delete(r),t.size===0)break}}}Ql(e)}e=e.sibling}}}function $l(e){if(e.tag===30){var t=e.memoizedProps,n=_i(t,e.stateNode),r=Hl===null?void 0:Hl.get(n),i=yi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(ql(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Hl.delete(n),Pd(e,t.onShare)):Yl(e.child,!1)),Hl!==null&&Ql(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Hl!==null&&Ql(e)}function eu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=_i(t,e.stateNode);t=yi(t.default,t.update),e.flags&=-5,t!==`none`&&ql(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&eu(e);e=e.sibling}}function tu(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,Yl(e.child,!1))}tu(e)}e=e.sibling}}function nu(e){if(e.tag===30)e.stateNode.paired=null,Yl(e.child,!1),tu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)nu(e),e=e.sibling;else tu(e)}function ru(e){for(e=e.child;e!==null;)e.tag===30?Yl(e.child,!1):e.subtreeFlags&33554432&&ru(e),e=e.sibling}function iu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Kl<a.length){var l=a[Kl],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,Kl===0?n:n+`_`+Kl,i),s&&e.flags&4||(Wl===null&&(Wl=[]),Wl.push(c,Kl===0?r:r+`_`+Kl,t.memoizedProps)),Kl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:iu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function au(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=_i(n,r),a=yi(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;Kl=0,i=iu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&au(e,t);e=e.sibling}}var ou=!1,U=!1,su=!1,cu=!1,lu=typeof WeakSet==`function`?WeakSet:Set,uu=null,du=!1,fu=!1,pu=!1,mu=!1;function hu(e,t,n){if(e=e.containerInfo,sp=gh,e=qr(e),Jr(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,uu=t,t=n?9270:1024;uu!==null;){if(e=uu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&$l(r[a]);if(e.alternate===null&&e.flags&2)n&&Ul(e),gu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&$l(r),gu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ul(e),gu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,uu=r):(n&&eu(e),gu(n))}}Hl=null}function gu(e){for(;uu!==null;){var t=uu,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=Cc(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=_i(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=yi(a.default,a.update),a!==`none`&&ql(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,uu=r;break}uu=t.return}}function _u(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&Cl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Cc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}}r&64&&Tl(n),r&512&&Dl(n,n.return);break;case 3:if(Iu(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{To(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&Bl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Pl(n),r&512&&Dl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Eu(e,n);break;case 13:Iu(e,n),r&4&&Du(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||ou,!r){var a=t!==null&&t.memoizedState!==null||U;t=ou,i=U,ou=r,(U=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),ou=t,U=i}break;case 30:Iu(e,n),r&512&&Dl(n,n.return);break;case 7:r&512&&Dl(n,n.return);default:Iu(e,n)}}function vu(e,t){for(e=e.child;e!==null;)yu(e,t),e=e.sibling}function yu(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)}bu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,z=!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&&vu(e,t);break;default:vu(e,t)}}function bu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yu(n,r);break a;case 22:n.memoizedState===null&&bu(n,r);break a;default:bu(n,r)}}e=e.sibling}}function xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jt(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 Su=null,Cu=!1;function wu(e,t,n){for(n=n.child;n!==null;)Tu(e,t,n),n=n.sibling}function Tu(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount==`function`)try{Qe.onCommitFiberUnmount(Ze,n)}catch{}switch(n.tag){case 26:U||Ol(n,t),wu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!U&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:U||Ol(n,t),jl(n);var r=Su,i=Cu;Sp(n.type)&&(Su=n.stateNode,Cu=!1),wu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),Su=r,Cu=i;break;case 5:U||Ol(n,t),jl(n);case 6:if(n.tag===6&&jl(n),r=Su,i=Cu,Su=null,wu(e,t,n),Su=r,Cu=i,Su!==null){if(Cu)try{(Su.nodeType===9?Su.body:Su.nodeName===`HTML`?Su.ownerDocument.body:Su).removeChild(n.stateNode),z=!0}catch(e){X(n,t,e)}else try{Su.removeChild(n.stateNode),z=!0}catch(e){X(n,t,e)}}break;case 18:Su!==null&&(Cu?(e=Su,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(Su,n.stateNode));break;case 4:r=Su,i=Cu,Su=n.stateNode.containerInfo,Cu=!0,wu(e,t,n),Su=r,Cu=i;break;case 0:case 11:case 14:case 15:wl(2,n,t),U||wl(4,n,t),wu(e,t,n);break;case 1:U||(Ol(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&El(n,t,r)),wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:U=(r=U)||n.memoizedState!==null,wu(e,t,n),U=r;break;case 30:Ol(n,t),wu(e,t,n);break;case 7:U||Ol(n,t),wu(e,t,n);break;default:wu(e,t,n)}}function Eu(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 Du(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 Ou(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lu),t;default:throw Error(i(435,e.tag))}}function ku(e,t){var n=Ou(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function Au(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)){Su=l.stateNode,Cu=!1;break a}break;case 5:Su=l.stateNode,Cu=!1;break a;case 3:case 4:Su=l.stateNode.containerInfo,Cu=!0;break a}l=l.return}if(Su===null)throw Error(i(160));Tu(s,c,o),Su=null,Cu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var W=null;function ju(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}Au(t,e,n),Mu(e),a&4&&(wl(3,e,e.return),Cl(3,e),wl(5,e,e.return));break;case 1:Au(t,e,n),Mu(e),a&512&&(U||r===null||Ol(r,r.return)),a&64&&ou&&(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=W,Au(t,e,n),Mu(e),a&512&&(U||r===null||Ol(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(ou)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[kt]||r[Ct]||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[Ct]=e,It(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[Ct]=e,It(r),t=r}e.stateNode=t}}else ou||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Fl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||U||t.parentNode.removeChild(t)):a.count--,n===null?ou||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:Au(t,e,n),Mu(e),a&512&&(U||r===null||Ol(r,r.return)),r!==null&&a&4&&Fl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=su,su=!1,Au(t,e,n),su=o,Mu(e),a&512&&(U||r===null||Ol(r,r.return)),e.flags&32){t=e.stateNode;try{un(t,``),z=!0}catch(t){X(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Fl(e,t,r===null?t:r.memoizedProps)),a&1024&&(cu=!0);break;case 6:if(Au(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,z=!0}catch(t){X(e,e.return,t)}}break;case 3:if(z=!1,Wm=null,o=W,W=bm(t.containerInfo),Au(t,e,n),W=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){X(e,e.return,t)}cu&&(cu=!1,Nu(e)),z=!1;break;case 4:a=su,su=ou,r=Kt(),o=W,W=bm(e.stateNode.containerInfo),Au(t,e,n),Mu(e),W=o,z&&fu&&(pu=!0),z=r,su=a;break;case 12:Au(t,e,n),Mu(e);break;case 31:Au(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 13:Au(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=He()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=ou,l=U,u=su;ou=c||o,su=u||o,U=l||s,Au(t,e,n),U=l,su=u,ou=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||ou||U||(t=s||U,n=ou,r=U,ou=o||ou,U=t,Lu(e,2),ou=n,U=r),!o&&su||vu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ku(e,n))));break;case 19:Au(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 30:a&512&&(U||r===null||Ol(r,r.return)),a=Kt(),o=fu,s=(n&335544064)===n,c=e.memoizedProps,fu=s&&yi(c.default,c.update)!==`none`,Au(t,e,n),Mu(e),s&&r!==null&&z&&(e.flags|=4),fu=o,z=a;break;case 21:break;case 7:a&512&&(U||r===null||Ol(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Au(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Il(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Nl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ml(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;zl(e,Ll(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(un(l,``),n.flags&=-33),zl(e,Ll(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Rl(e,Ll(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 Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else au(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Zl(e,!1);else switch(e.tag){case 3:if(mu=du=!1,Gl(),Pu(t,e),!du&&!pu){if(e=Wl,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`})),mu=!0}Wl=null;break;case 5:Pu(t,e);break;case 4:r=du,du=!1,Pu(t,e),du&&(pu=!0),du=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Zl(e,!1));break;case 30:r=du,i=Gl(),du=!1,Pu(t,e),du&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=_i(a,o),o=_i(n.memoizedProps,o);var s=yi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Kl=0,t=iu(e,n,t,o,s,a,!0),Kl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Wl=i):i!==null&&(i.push.apply(i,Wl),Wl=i),du=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:wl(4,n,n.return),Lu(n,r);break;case 1:Ol(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&El(n,n.return,i),Lu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Ol(n,n.return),n.tag!==5&&n.tag!==27||jl(n),Lu(n,r);break;case 6:jl(n);break;case 26:Ol(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||U||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:Ol(n,n.return),Lu(n,r);break;case 7:Ol(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(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:Ru(i,a,n),Cl(4,a);break;case 1:if(Ru(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++)wo(l[i],c)}catch(e){X(r,r.return,e)}}s&&o&64&&Tl(a),Dl(a,a.return);break;case 27:n&2&&Bl(a);case 5:a.tag!==5&&a.tag!==27||Al(a),Ru(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(a,a.return);break;case 6:Al(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ou||Km(bm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Du(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Dl(a,a.return);break;case 30:Ru(i,a,n),Dl(a,a.return);break;case 7:Dl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(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&&Na(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Na(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&ru(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&nu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&Cl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&mu&&(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&&Na(a)));break;case 12:if(a&2048){Vu(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 Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(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&&nu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&nu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Yl(a.child,!0),Yl(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(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:Uu(a,o,s,c,i),Cl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(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:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,W,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=W;W=bm(e.stateNode.containerInfo),Ku(e,t,n),W=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Hl===null&&(Hl=new Map),Hl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(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 Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];uu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&wl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];uu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;uu!==null;){var n=uu;switch(n.tag){case 0:case 11:case 15:wl(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:Na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,uu=r;else a:for(n=e;uu!==null;){r=uu;var i=r.sibling,a=r.return;if(xu(r),r===n){uu=null;break a}if(i!==null){i.return=a,uu=i;break a}uu=a}}}var $u={getCacheForType:function(e){var t=Ta(ja),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ta(ja).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,G=0,K=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 G&2&&J!==0?J&-J:N.T===null?bt():Ff()}function Nd(){if(ud===0){if(!(J&536870912)||B){var e=it;it<<=1,!(it&3932160)&&(it=262144),ud=e}else ud=536870912}return e=jo.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(_i(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,J,ud,!1)),pt(e,n),G&2&&e===K||(e===K&&(!(G&2)&&(cd|=n),od===4&&zd(e,J,ud,!1)),Df(e))}function Id(e,t,n){if(G&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ct(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-He(),10<a)){if(zd(r,t,ud,!nd),st(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:vn},Hl=null,qu(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-He():(a&4194048)===a?gd-He():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(!Vr(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=lt(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-$e(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ht(e,n,t)}function Bd(){return G&6?!0:(Of(0,!1),!1)}function Vd(){if(q!==null){if(Y===0)var e=q.return;else e=q,_a=ga=null,as(e),ao=null,oo=0,e=q;for(;e!==null;)Sl(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(),K=e,q=n=Pi(e.current,null),J=t,Y=0,td=null,nd=!1,rd=ct(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=lt(e,t),wi(),n}function Ud(e,t){V=null,N.H=hc,t===Ya||t===Za?(t=ro(),Y=3):t===Xa?(t=ro(),Y=4):Y=t===Nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,q===null&&(od=1,Dc(e,Hi(t,e.current)))}function Wd(){var e=jo.current;return e===null?!0:(J&4194048)===J?Mo===null:(J&62914560)===J||J&536870912?e===Mo:!1}function Gd(){var e=N.H;return N.H=hc,e===null?hc:e}function Kd(){var e=N.A;return N.A=$u,e}function qd(){od=4,nd||(J&4194048)!==J&&jo.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||K===null||zd(K,J,ud,!1)}function Jd(e,t,n){var r=G;G|=2;var i=Gd(),a=Kd();(K!==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:jo.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++,_a=ga=null,G=r,N.H=i,N.A=a,q===null&&(K=null,J=0,wi()),o}function Yd(){for(;q!==null;)Qd(q)}function Xd(e,t){var n=G;G|=2;var r=Gd(),a=Kd();K!==e||J!==t?(vd=null,_d=He()+500,Hd(e,t)):rd=ct(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($a(o)){Y=0,td=null,$d(t);break}t=function(){Y!==2&&Y!==9||K!==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:$a(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 _a=ga=null,N.H=r,N.A=a,G=n,q===null?(K=null,J=0,wi(),od):0}function Zd(){for(;q!==null&&!Be();)Qd(q)}function Qd(e){var t=pl(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=qc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=qc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:as(t);var r=t;r===ra&&(B?(ua(r),r.tag===5&&r.stateNode!=null&&(ia=r.stateNode)):(ua(r),B=!0));default:Sl(n,t),t=q=Fi(t,ad),t=pl(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):q=t}function ef(e,t,n,r){_a=ga=null,as(t),ao=null,oo=0;var i=t.return;try{if(Mc(e,i,t,n,J)){od=1,Dc(e,Hi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;od=1,Dc(e,Hi(n,e.current)),q=null;return}t.flags&32768?(B||r===1?e=!0:rd||J&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=jo.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=bl(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=xl(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(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===K&&(q=K=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|=Ci,mt(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Ia(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Ke,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Vl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=N.T,N.T=null,i=P.p,P.p=2,a=G,G|=4;try{hu(e,t,n)}finally{G=a,P.p=i,N.T=r}}bd=1,Vl?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,Fu(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=N.T,N.T=null;var i=P.p;P.p=2;var a=G;G|=4;try{fu=pu=!1,ju(t,e,n),n=cp;var o=qr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Kr(s.ownerDocument.documentElement,s)){if(c!==null&&Jr(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 _=Gr(s,h),v=Gr(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{G=a,P.p=i,N.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=N.T,N.T=null;var r=P.p;P.p=2;var i=G;G|=4;try{_u(e,t.alternate,t)}finally{G=i,P.p=r,N.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,Ve();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),yt(r),n=n.stateNode,Qe&&typeof Qe.onCommitFiberRoot==`function`)try{Qe.onCommitFiberRoot(Ze,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=N.T,a=P.p,P.p=2,N.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{N.T=n,P.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,Na(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=yt(Cd),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,G&6)throw Error(i(331));var c=G;if(G|=4,Xu(o.current),Hu(o,o.current,s,n),G=c,Of(0,!1),Qe&&typeof Qe.onPostCommitFiberRoot==`function`)try{Qe.onPostCommitFiberRoot(Ze,o)}catch{}return!0}finally{P.p=a,N.T=r,df(e,t)}}function mf(e,t,n){t=Hi(n,t),t=kc(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(pt(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=Hi(n,e),n=Ac(2),r=vo(t,n,2),r!==null&&(jc(n,r,t,e),pt(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;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,K===e&&(J&n)===n&&(od===4||od===3&&(J&62914560)===J&&300>He()-hd?G&2?ld|=n:Hd(e,0):ld|=n,dd===J&&(dd=0)),Df(e)}function _f(e,t){t===0&&(t=dt()),e=Di(e,t),e!==null&&(pt(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 Re(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-$e(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=st(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ct(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=He(),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-$e(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=st(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&&ze(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ct(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ze(r),yt(n)){case 2:case 8:n=Ge;break;case 32:n=Ke;break;case 268435456:n=Je;break;default:n=Ke}return r=Mf.bind(null,e),n=Re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ze(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=st(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),jf(e,He()),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(){G&6?Re(We,kf):Af()})}function Ff(){if(Ef===0){var e=za;e===0&&(e=rt,rt<<=1,!(rt&261888)&&(rt=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:_n(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[wt]||null).action),o=r.submitter;o&&(t=(t=o[wt]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new zn(`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);tc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),tc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Z=0;Z<mi.length;Z++){var Rf=mi[Z];hi(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}hi(oi,`onAnimationEnd`),hi(si,`onAnimationIteration`),hi(ci,`onAnimationStart`),hi(`dblclick`,`onDoubleClick`),hi(`focusin`,`onFocus`),hi(`focusout`,`onBlur`),hi(li,`onTransitionRun`),hi(ui,`onTransitionStart`),hi(di,`onTransitionCancel`),hi(fi,`onTransitionEnd`),Vt(`onMouseEnter`,[`mouseout`,`mouseover`]),Vt(`onMouseLeave`,[`mouseout`,`mouseover`]),Vt(`onPointerEnter`,[`pointerout`,`pointerover`]),Vt(`onPointerLeave`,[`pointerout`,`pointerover`]),Bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Bt(`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){bi(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){bi(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[R];n===void 0&&(n=t[R]=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,Rt.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,!On||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=Mt(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}Tn(function(){var r=a,i=bn(n),s=[];a:{var c=pi.get(e);if(c!==void 0){var l=zn,u=e;switch(e){case`keypress`:if(Pn(n)===0)break a;case`keydown`:case`keyup`:l=rr;break;case`focusin`:u=`focus`,l=Jn;break;case`focusout`:u=`blur`,l=Jn;break;case`beforeblur`:case`afterblur`:l=Jn;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=Kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=qn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=or;break;case oi:case si:case ci:l=Yn;break;case fi:l=sr;break;case`scroll`:case`scrollend`:l=Vn;break;case`wheel`:l=cr;break;case`copy`:case`cut`:case`paste`:l=Xn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=ir;break;case`submit`:l=ar;break;case`toggle`:case`beforetoggle`:l=lr}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=En(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!==yn&&(u=n.relatedTarget||n.fromElement)&&(Mt(u)||u[Tt]))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?Mt(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=Kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ir,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Pt(c),h=l==null?u:Pt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Mt(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?Pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=kr;else if(Cr(c)){if(Ar)_=zr;else{_=Lr;var v=Ir}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&mn(r.elementType)&&(_=kr):_=Rr;if(_&&=_(e,r)){wr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Pt(r):window,e){case`focusin`:(Cr(v)||v.contentEditable===`true`)&&(Xr=v,Zr=r,Qr=null);break;case`focusout`:Qr=Zr=Xr=null;break;case`mousedown`:$r=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:$r=!1,ei(s,n,i);break;case`selectionchange`:if(Yr)break;case`keydown`:case`keyup`:ei(s,n,i)}var y;if(dr)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 yr?_r(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(mr&&n.locale!==`ko`&&(yr||b!==`onCompositionStart`?b===`onCompositionEnd`&&yr&&(y=Nn()):(An=i,jn=`value`in An?An.value:An.textContent,yr=!0)),v=Jf(r,b),0<v.length&&(b=new Zn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=vr(n),y!==null&&(b.data=y)))),(y=pr?br(e,n):xr(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new Zn(`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=En(e,n),i!=null&&r.unshift(qf(e,i,a)),i=En(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=En(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=En(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===``||un(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&un(e,``+r);else return;break;case`className`:Jt(e,`class`,r);break;case`tabIndex`:Jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Jt(e,n,r);break;case`style`:pn(e,r,o);return;case`data`:if(t!==`object`){Jt(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=_n(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=_n(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=vn);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=_n(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),qt(e,`popover`,r);break;case`xlinkActuate`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:qt(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=hn.get(n)||n,qt(e,n,r);else return}z=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:pn(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`)un(e,r);else if(typeof r==`number`||typeof r==`bigint`)un(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=vn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!zt.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[wt]||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}z=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):qt(e,n,r)}return}z=!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)}}an(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&&sn(e,!!r,n,!0):sn(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)}ln(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(mn(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&&(z=!0),o=m;break;case`name`:m!==f&&(z=!0),a=m;break;case`checked`:m!==f&&(z=!0),u=m;break;case`defaultChecked`:m!==f&&(z=!0),d=m;break;case`value`:m!==f&&(z=!0),s=m;break;case`defaultValue`:m!==f&&(z=!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)}}rn(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&&(z=!0),p=o;break;case`defaultValue`:o!==l&&(z=!0),c=o;break;case`multiple`:o!==l&&(z=!0),s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?sn(e,!!n,n?[]:``,!1):sn(e,!!n,t,!0)):sn(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&&(z=!0),p=a;break;case`defaultValue`:a!==o&&(z=!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)}cn(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&&(z=!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(mn(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[Ct]=r,n[wt]=t,np(n,e,t),It(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[kt]||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=Mt(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),jt(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[kt])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===vn&&(e.onclick=null),jt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(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=P.d;P.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=Nt(e);t!==null&&t.tag===5&&t.type===`form`?rc(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=nn(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),It(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="`+nn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nn(n.imageSizes)+`"]`)):i+=`[href="`+nn(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[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(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="`+nn(r)+`"][href="`+nn(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),It(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ft(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`);It(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=Ft(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`),It(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=Ft(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`),It(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=Te.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=Ft(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=Ft(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=Ft(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="`+nn(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[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),np(t,`link`,n),It(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="`+nn(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~="`+nn(n.href)+`"]`);if(r)return t.instance=r,It(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`),It(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,It(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),It(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,It(a),a):(r=n,(a=vm.get(o))&&(r=D({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(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[kt]||a[Ct]||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,It(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),It(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:ve,_currentValue2:ve,_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=ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.hiddenUpdates=ft(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=Mi(3,null,null,t),e.current=a,a.stateNode=e,t=Ma(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ho(a),e}function uh(e){return e?(e=Ai,e):Ai}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=_o(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=vo(e,r,t),n!==null&&(Fd(n,e,t),yo(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=Di(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=vt(t);var n=Di(e,t);n!==null&&Fd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,yh(e,t,n,r)}finally{P.p=a,N.T=i}}function vh(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,yh(e,t,n,r)}finally{P.p=a,N.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=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ot(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-$e(o);s.entanglements[1]|=c,o&=~c}Df(a),!(G&6)&&(_d=He()+500,Of(0,!1))}}break;case 31:case 13:s=Di(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=bn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=Mt(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(Ue()){case We:return 2;case Ge:return 8;case Ke:case qe:return 32;case Je: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=Nt(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=Mt(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,xt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,xt(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);yn=r,n.target.dispatchEvent(r),yn=null}else return t=Nt(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=Nt(n);a!==null&&(e.splice(t,3),t-=3,tc(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[wt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[wt]||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[Tt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=bt();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`));P.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:N,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Ze=Jh.inject(qh),Qe=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=wc,s=Tc,c=Ec;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[Tt]=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,oe=e=>e/1e3,se=(e,t)=>t?1e3/t*e:0,ce=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},le=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function ue(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=le(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(le(s+1e-7,e,n)-i-r)}return le(s,t,r)}}var de=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fe=e=>t=>1-e(1-t),pe=ue(.33,1.53,.69,.99),me=fe(pe),he=de(me),ge=e=>e>=1?1:(e*=2)<1?.5*me(e):.5*(2-2**(-10*(e-1))),_e=e=>1-Math.sin(Math.acos(e)),N=fe(_e),P=de(_e),ve=ue(.42,0,1,1),ye=ue(0,0,.58,1),be=ue(.42,0,.58,1),xe=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Se(e,t){return xe(e)?e[ce(0,e.length,t)]:e}var F=e=>Array.isArray(e)&&typeof e[0]==`number`,Ce={linear:j,easeIn:ve,easeInOut:be,easeOut:ye,circIn:_e,circInOut:P,circOut:N,backIn:me,backInOut:he,backOut:pe,anticipate:ge},we=e=>typeof e==`string`,Te=e=>{if(F(e)){let[t,n,r,i]=e;return ue(t,n,r,i)}return we(e)?Ce[e]:e},Ee={delta:0,timestamp:0,isProcessing:!1},De;function Oe(){De=void 0}var I={now:()=>(De===void 0&&I.set(Ee.isProcessing||k.useManualTiming?Ee.timestamp:performance.now()),De),set:e=>{De=e,queueMicrotask(Oe)}},ke=e=>Math.round(e*1e5)/1e5,Ae=e=>t=>typeof t==`string`&&t.startsWith(e),je=Ae(`--`),Me=Ae(`var(--`),Ne=e=>Me(e)?Pe.test(e.split(`/*`)[0].trim()):!1,Pe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fe(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ie={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Le={...Ie,transform:e=>O(0,1,e)},Re={...Ie,default:1},ze=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Be(e){return e==null}var Ve=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,He=(e,t)=>n=>!!(typeof n==`string`&&Ve.test(n)&&n.startsWith(e)||t&&!Be(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ue=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ze);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},We=e=>O(0,255,e),Ge={...Ie,transform:e=>Math.round(We(e))},Ke={test:He(`rgb`,`red`),parse:Ue(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ge.transform(e)+`, `+Ge.transform(t)+`, `+Ge.transform(n)+`, `+ke(Le.transform(r))+`)`},qe=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function Je(e){let t=e.length>5?2:1,n=qe(e,3,t);return{red:parseInt(qe(e,0,t),16),green:parseInt(qe(e,1,t),16),blue:parseInt(qe(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var Ye={test:He(`#`),parse:Je,transform:Ke.transform},Xe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ze=Xe(`deg`),Qe=Xe(`%`),L=Xe(`px`),$e=Xe(`vh`),et=Xe(`vw`),tt={...Qe,parse:e=>Qe.parse(e)/100,transform:e=>Qe.transform(e*100)},nt={test:He(`hsl`,`hue`),parse:Ue(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qe.transform(ke(t))+`, `+Qe.transform(ke(n))+`, `+ke(Le.transform(r))+`)`},rt={test:e=>Ke.test(e)||Ye.test(e)||nt.test(e),parse:e=>Ke.test(e)?Ke.parse(e):nt.test(e)?nt.parse(e):Ye.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ke.transform(e):nt.transform(e),getAnimatableNone:e=>{let t=rt.parse(e);return t.alpha=0,rt.transform(t)}},it=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,at=new RegExp(ze.source),ot=new RegExp(it.source,`i`);function st(e){return isNaN(e)&&typeof e==`string`&&(at.test(e)||ot.test(e))}var ct=`number`,lt=`color`,ut=`var`,dt=`var(`,ft="${}",pt=/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 mt(e){let t=e.toString();return at.test(t)||ot.test(t)}function ht(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(pt,e=>(rt.test(e)?(r.color.push(a),i.push(lt),n.push(rt.parse(e))):e.startsWith(dt)?(r.var.push(a),i.push(ut),n.push(e)):(r.number.push(a),i.push(ct),n.push(parseFloat(e))),++a,ft)).split(ft),indexes:r,types:i}}function gt(e){return ht(e).values}function _t({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===ct?ke(r[a]):e===lt?rt.transform(r[a]):r[a]}return i}}function vt(e){return _t(ht(e))}var yt=e=>typeof e==`number`?0:rt.test(e)?rt.getAnimatableNone(e):e,bt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:yt(e);function xt(e){let t=ht(e);return _t(t)(t.values.map((e,n)=>bt(e,t.split[n])))}var St={test:st,parse:gt,createTransformer:vt,getAnimatableNone:xt};function Ct(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 wt({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=Ct(s,r,e+1/3),a=Ct(s,r,e),o=Ct(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Tt(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,Et=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Dt=[Ye,Ke,nt],Ot=e=>Dt.find(t=>t.test(e));function kt(e){let t=Ot(e);if(!t)return!1;let n=t.parse(e);return t===nt&&(n=wt(n)),n}var At=(e,t)=>{let n=kt(e),r=kt(t);if(!n||!r)return Tt(e,t);let i={...n};return e=>(i.red=Et(n.red,r.red,e),i.green=Et(n.green,r.green,e),i.blue=Et(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),Ke.transform(i))},jt=new Set([`none`,`hidden`]);function Mt(e,t){return jt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nt(e,t){return n=>R(e,t,n)}function Pt(e){return typeof e==`number`?Nt:typeof e==`string`?Ne(e)?Tt:rt.test(e)?At:Rt:Array.isArray(e)?Ft:typeof e==`object`?rt.test(e)?At:It:Tt}function Ft(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Pt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function It(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Lt(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 Rt=(e,t)=>{let n=ht(e),r=ht(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?jt.has(e)&&!r.values.length||jt.has(t)&&!n.values.length?Mt(e,t):M(Ft(Lt(n,r),r.values),_t(r)):Tt(e,t)},zt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Bt(e,t){let n=zt.exec(e);if(!n)return;let r=zt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ke(R(a,o,e))+i}function Vt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return R(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Bt(e,t);if(n)return n}return Pt(e)(e,t)}var Ht=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ut(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 Wt=40;function Gt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Ht.reduce((e,t)=>(e[t]=Ut(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,Wt),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:Ht.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<Ht.length;t++)o[Ht[t]].cancel(e)},state:n,steps:o}}var{schedule:z,cancel:Kt,steps:qt}=Gt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0,Ee),Jt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>Kt(t),now:()=>Ee.isProcessing?Ee.timestamp:I.now()}},Yt=(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)})`},Xt=2e4;function Zt(e,t=50,n=Xt,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 Qt(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(Zt(o),Xt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:oe(s)}}var $t=100,en=10,tn=1,nn=800,rn=.3,an=.3,on=.01,sn=2,cn=.005,ln=.5,un=.01,dn=10,fn=.05,pn=e=>e<0?1/Math.max(1+e,fn):Math.max(1-e,fn);function mn(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 _n(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function hn(e,t){return e*Math.sqrt(1-t*t)}var gn=12;function _n(e,t,n){let r=n;for(let n=1;n<gn;n++)r-=e(r)/t(r);return r}var vn=.001;function yn({duration:e=nn,bounce:t=rn}){let n,r,i=pn(t);e=O(un,dn,oe(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=hn(t,i),o=Math.exp(-r);return vn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=hn(t*t,i);return(-n(t)+vn>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=_n(n,r,a),s=o*mn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:ae(e)}}var bn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function xn(e,t){if(bn(e,t))return e}function Sn(e){let t=xn(e.stiffness),n=xn(e.damping,!0),r=xn(e.mass),i={...e,stiffness:t??$t,damping:n??en,mass:r??tn,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=pn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*mn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,yn(i)),i.isResolvedFromDuration=!0;bn(i.stiffness)&&bn(i.damping,!0)||(i.stiffness=$t,i.damping=en)}return i}function Cn(e=an,t=rn){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}=Sn({...n}),f=e=>d?0:-oe(e),p=s/(2*Math.sqrt(o*c)),m=oe(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?on:sn),g.restDelta=n.restDelta||(e?cn:ln)};_();let v,y,b;if(p<1){let e=hn(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(Zt(S),Xt),t=Yt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var wn=Object.assign(Cn,{applyToOptions:e=>{let t=Qt(e,100,Cn);return e.ease=t.ease,e.duration=ae(t.duration),e.type=`keyframes`,e}});function Tn({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=wn({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 En(e,t,n){let r=[],i=k.mix||Vt,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 Dn(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=En(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 On(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=re(0,t,r);e.push(R(n,1,i))}}function kn(e){let t=[0];return On(t,e.length-1),t}function An(e,t){return e.map(e=>e*t)}function jn(e,t){return e.map(()=>t||be).splice(0,e.length-1)}function Mn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=xe(r)?r.map(Te):Te(r)||be,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||Vt)(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=Dn(An(n&&n.length===t.length?n:kn(t),e),t,{ease:Array.isArray(o)?o:jn(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var Nn=5;function Pn(e,t,n){let r=Math.max(t-Nn,0);return se(n-e(r),t-r)}function Fn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Pn(t=>e.next(t).value,t,e.next(t).value)}var In=e=>e!==null;function Ln(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(In),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Rn={decay:Tn,inertia:Tn,tween:Mn,keyframes:Mn,spring:wn};function zn(e){typeof e.type==`string`&&(e.type=Rn[e.type])}var Bn=40,Vn=(e,t)=>t-e>Bn&&!k.useManualTiming?t:e;function Hn(e,t){return{kind:e,animation:t,timestamp:I.now(),frameTimestamp:Ee.timestamp,frameIsProcessing:Ee.isProcessing}}function Un(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Hn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Wn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Hn(`layout-animation-start`,e),node:t})}catch{}}var Gn=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)}},Kn=e=>e/100,qn=e=>Math.round(e*1e4)/1e4,Jn=class extends Gn{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!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Un(this,this.options)}initAnimation(){let{options:e}=this;zn(e);let{type:t=Mn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Mn;this.mixKeyframes=void 0,s!==Mn&&typeof o[0]!=`number`&&(this.mixKeyframes=M(Kn,e.mixer?.(o[0],o[1])||Vt(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=Zt(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=Vn(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!==Tn&&(f.value=Ln(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??qn((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!==Tn?Ln(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 oe(this.calculatedDuration)}get iterationDuration(){return this.duration+oe(this.options.delay??0)}get time(){return oe(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 Fn(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(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=oe(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Jt,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(I.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)}},Yn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Xn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ze)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Yn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Zn=/\b([a-z-]*)\(.*?\)/gu,Qn={...St,getAnimatableNone:e=>{let t=e.match(Zn);return t?t.map(Xn).join(` `):e}},$n={...St,getAnimatableNone:e=>{let t=St.parse(e);return St.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},er={...Ie,transform:Math.round},tr={rotate:Ze,pathRotation:Ze,rotateX:Ze,rotateY:Ze,rotateZ:Ze,scale:Re,scaleX:Re,scaleY:Re,scaleZ:Re,skew:Ze,skewX:Ze,skewY:Ze,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Le,originX:tt,originY:tt,originZ:L},nr={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,...tr,zIndex:er,fillOpacity:Le,strokeOpacity:Le,numOctaves:er},rr={...nr,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:Qn,WebkitFilter:Qn,mask:$n,WebkitMask:$n},ir=e=>rr[e],ar=new Set([Qn,$n]);function or(e,t){let n=ir(e);return ar.has(n)||(n=St),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function sr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var cr=e=>e*180/Math.PI,lr=e=>dr(cr(Math.atan2(e[1],e[0]))),ur={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:lr,rotateZ:lr,skewX:e=>cr(Math.atan(e[1])),skewY:e=>cr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},dr=e=>(e%=360,e<0&&(e+=360),e),fr=lr,pr=e=>Math.hypot(e[0],e[1]),mr=e=>Math.hypot(e[4],e[5]),hr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pr,scaleY:mr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(pr(e)+mr(e))/2,rotateX:e=>dr(cr(Math.atan2(e[6],e[5]))),rotateY:e=>dr(cr(Math.atan2(-e[2],e[0]))),rotateZ:fr,rotate:fr,skewX:e=>cr(Math.atan(e[4])),skewY:e=>cr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gr(e){return+!!e.includes(`scale`)}function _r(e,t){if(!e||e===`none`)return gr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return gr(t);let r=(n[1]?hr:ur)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var vr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return _r(n,t)},yr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],br=new Set([...yr,`pathRotation`]),xr=e=>e===Ie||e===L,Sr=new Set([`x`,`y`,`z`]),Cr=yr.filter(e=>!Sr.has(e));function wr(e){let t=[];return Cr.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 Tr=new Set([`bottom`,`right`]);function Er(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 Dr=({transform:e})=>_r(e,`x`),Or=({transform:e})=>_r(e,`y`),kr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Er(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Er(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:Dr,y:Or,translateX:Dr,translateY:Or},Ar=new Set,jr=!1,Mr=!1,Nr=!1;function Pr(){if(Mr){let e=[],t=new Set,n=new Set;Ar.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Tr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=wr(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)})}Mr=!1,jr=!1,Ar.forEach(e=>e.complete(Nr)),Ar.clear()}function Fr(){Ar.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mr=!0)})}function Ir(){Nr=!0,Fr(),Pr(),Nr=!1}function Lr(e,t,n){if(typeof e==`string`){if(A(e)||te(e))return parseFloat(e);if(!St.test(e)&&St.test(n))return or(t,n)}return e??void 0}var Rr=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?(Ar.add(this),jr||(jr=!0,z.read(Fr),z.resolveKeyframes(Pr))):(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=Lr(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])}sr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ar.delete(this)}cancel(){this.state===`scheduled`&&(Ar.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},zr=e=>e.startsWith(`--`);function Br(e,t,n){zr(t)?e.style.setProperty(t,n):e.style[t]=n}var Vr={};function Hr(e,t){let n=ne(e);return()=>Vr[t]??n()}var Ur=Hr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Wr=Hr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Gr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Gr([0,.65,.55,1]),circOut:Gr([.55,0,1,.45]),backIn:Gr([.31,.01,.66,-.59]),backOut:Gr([.33,1.53,.69,.99])};function qr(e,t){if(e)return typeof e==`function`?Wr()?Yt(e,t):`ease-out`:F(e)?Gr(e):Array.isArray(e)?e.map(e=>qr(e,t)||Kr.easeOut):Kr[e]}function Jr(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=qr(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 Yr(e){return typeof e==`function`&&`applyToOptions`in e}function Xr({type:e,...t}){return Yr(e)&&Wr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Zr=class extends Gn{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=Xr(e);this.animation=Jr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ln(r,this.options,o,this.speed);this.updateMotionValue?.(e),Br(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Un(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 oe(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+oe(e)}get time(){return oe(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&&Ur()?(this.animation.timeline=e,t?.(this.animation),j):n(this)}},Qr={anticipate:ge,backInOut:he,circInOut:P};function $r(e){return e in Qr}function ei(e){typeof e.ease==`string`&&$r(e.ease)&&(e.ease=Qr[e.ease])}var ti=class extends Zr{constructor(e){ei(e),zn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(I.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 Jn({...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&&Br(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},ni=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(St.test(e)||e===`0`)&&!e.startsWith(`url(`));function ri(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 ii(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=ni(i,t),s=ni(a,t);return!o||!s?!1:ri(e)||(n===`spring`||Yr(n))&&r}function ai(e){e.duration=0,e.type=`keyframes`}var oi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),si=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ci(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&si.test(e[t]))return!0;return!1}var li=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),ui=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),di=()=>!k.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function fi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(oi.has(n)||ui.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 di()&&(oi.has(n)||ui.has(n)&&ci(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!li(e)}var pi=(e,t)=>t&&typeof e==`number`?t.transform(e):e,mi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},hi=yr.length,gi={},_i=(e,t,n=pi(t,tr[e]))=>(gi[e]||(gi[e]=(mi[e]||e)+`(`))+n+`)`,vi=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function yi(e,t,n){let r=``;for(let i=0;i<hi;i++){let a=yr[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=pi(o,nr[a]));vi(a,o)||(r+=_i(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=_i(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var bi=new WeakMap,xi=200,Si=.001,Ci=.1,wi=.001,Ti=100,Ei=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Di=(e,t)=>Math.abs(e-t)<=Si,Oi=(e,t)=>e-t,ki=(e,t,n)=>kn(Array(n+1)).map(n=>R(e,t,n)),Ai=e=>e.motionValue.owner,ji=e=>bi.get(e),Mi=({state:e})=>e===`idle`||e===`finished`,Ni=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Pi=({name:e,motionValue:t})=>e&&yr.includes(e)&&t?.owner?.current instanceof HTMLElement&&di()&&Wr();function Fi(e){let t=Ai(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Ni(t,`transform`)||`none`)===`none`&&!Ni(t,`pathRotation`)&&!t.projection?.isProjecting()&&!li(e)}var Ii=class extends Jn{constructor(e){let t=Ai(e).current,{driver:n=Jt}=e,r,i=Fi(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=ji(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=ji(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 ji(Ai(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(I.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=F(n)?Gr(n):Ei(n)&&Kr[n];if(o&&!i&&!r&&e.length===2&&t===Mn&&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||Mn)===Mn?u||kn(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=I.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Li(Ai(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(I.now())}get time(){return this.isAccelerated()?oe(O(0,this.totalDuration,this.at(I.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 Li(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?yr:a){let a=r.get(s),c=t===void 0?Ni(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&&vi(r,i)||(n+=_i(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=I.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(xi,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=ki(t,n,i).concat(r).sort(Oi),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)*Si>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)=>!Di(e,o&&s[t])))return}if(!s||s.every((e,t)=>Di(e,o(a[t]))))return`linear`;let l=[],u=(e,t=c(e))=>l.push(qn(t)+` `+qn(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`)?wi:Ci))),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=ki(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(Oi))e>c&&o(c,e,0),c=e;return i.sort(Oi)},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=yr.filter(t=>{if(r.has(t))return!0;let n=i[t]=Ni(e,t);return n!==void 0&&!vi(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,ji(t)===A&&bi.delete(t),A.isJS||v(),!0),k=()=>{let t=I.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]=Ni(e,n.name),o.has(n)||(c=!0))}),A.isFinishing=!1),l=!1,u||(n.forEach(e=>Mi(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<Ti)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,Ee.isProcessing?z.render(k,!1,!0):queueMicrotask(k)))},release(e){Mi(e)&&n.delete(e),O()||A.schedule(!0)},check(){if(!A.isJS){for(let t in i)if(Ni(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 bi.set(t,A),A}var Ri=class extends Gn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.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||Rr;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=I.now();let u=ii(e,i,a,o);u||((k.instantAnimations||!s)&&l?.(Ln(e,n,t)),e[0]=e[e.length-1],ai(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&fi(n),p=!f&&Pi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Vn(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new ti(n)}catch{m=new Jn(n)}}else m=p?new Ii(n):new Jn(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(),Ir()),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()}},zi=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 Bi(this.animations,`duration`)}get iterationDuration(){return Bi(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 Bi(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 Vi=class extends zi{then(e,t){return this.finished.finally(e).then(()=>{})}};function Hi(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 Ui=30,Wi=e=>!isNaN(parseFloat(e)),Gi={current:void 0},Ki=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.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=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Wi(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(){z.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=I.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(){Gi.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=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ui)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ui);return se(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 qi(e,t){return new Ki(e,t)}function Ji(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Yi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ji(n,e)}var Xi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Zi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qi={type:`keyframes`,duration:.8},$i={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ea=(e,{keyframes:t})=>t.length>2?Qi:br.has(e)?e.startsWith(`scale`)?Zi(t[1]):Xi:$i,ta=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function na(e){for(let t in e)if(!ta.has(t))return!0;return!1}var ra=(e,t,n,r={},i,a)=>o=>{let s=Yi(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};na(s)||Object.assign(u,ea(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)&&(ai(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ai(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Ln(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Jn(u):new Ri(u)},ia=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function B(e){let t=ia.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function aa(e,t,n=1){let[r,i]=B(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return A(e)?parseFloat(e):e}return Ne(i)?aa(i,t,n+1):i}function oa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function sa(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...oa(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function ca(e,t,n){return sa(e.getProps(),t,n,e)}var la=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,ua=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...yr]),da=e=>Array.isArray(e);function fa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qi(n))}function pa(e){return da(e)?e[e.length-1]||0:e}function ma(e,t){let{transitionEnd:n={},transition:r={},...i}=ca(e,t)||{};i={...i,...n};for(let t in i)fa(e,t,pa(i[t]))}var ha=e=>!!(e&&e.getVelocity);function ga(e){return!!(ha(e)&&e.add)}function _a(e,t){let n=e.getValue(`willChange`);if(ga(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var va=`data-framer-appear-id`;function ya(e){return e.props[va]}var ba=typeof window<`u`;function xa({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Sa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ji(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&&xa(f,t))continue;let o={delay:n,...Yi(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){z.update(()=>r.set(i));continue}let p=!1;if(ba&&window.MotionHandoffAnimation){let n=ya(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}_a(e,t);let m=l??e.shouldReduceMotion;r.start(ra(t,r,i,m&&ua.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&ma(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ca(e,t,n={}){let r=ca(e,t,la(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Sa(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(Ca(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Hi(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 wa(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ca(e,t,n))):typeof t==`string`?Ca(e,t,n):Promise.all(Sa(e,ca(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ta={test:e=>e===`auto`,parse:e=>e},Ea=e=>t=>t.test(e),Da=[Ie,L,Qe,Ze,et,$e,Ta],Oa=e=>Da.find(Ea(e));function ka(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||te(e)}var Aa=new Set([`auto`,`none`,`0`]);function ja(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Aa.has(t)&&mt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=or(n,i))}var Ma=class extends Rr{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(Fe(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(),Ne(r))){let i=aa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ua.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Oa(r),o=Oa(i);if(Fe(r)!==Fe(i)&&kr[n])this.needsMeasurement=!0;else if(a!==o){if(xr(a)&&xr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else kr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ka(e[t]))&&n.push(t);n.length&&ja(e,n,t)}measure(){let{element:e,name:t}=this;return kr[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()}},Na=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Pa=[];function Fa(e){Ia(e),Pa.unshift(e)}function Ia(e){D(Pa,e)}function La(e){return Pa.find(t=>t.test(e))}function Ra(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?z.update(()=>l.set(c)):(l.start(ra(o,l,c,s&&ua.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>z.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function za(e,t,n,r,i){return Ra(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Ba(i)??e.read(t,r,i)}a=qi(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Ba(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Va(e){return ee(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Ha(e){return ee(e)&&`ownerSVGElement`in e}var Ua={};function Wa(e){return Ua.current?.add(e),e}var Ga=e=>Ua.current?Ua.current.bind(e):e;function Ka(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Ua.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var qa=class{constructor(e=z.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 Ja(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new qa(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 Ya(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&&(vi(i,a)||(t+=(t&&` `)+_i(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+_i(`rotate`,i)),t||`none`}var Xa=new Set([`originX`,`originY`,`originZ`]),Za=(e,t)=>pi(e.get(t)?.get(),nr[t]),Qa=(e,t,n,r)=>{let i,a;if(br.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>yr.indexOf(e)-yr.indexOf(t)))}t.get(`transform`)||(!Va(e)&&!t.get(`transformBox`)&&Qa(e,t,`transformBox`,new Ki(`fill-box`)),t.set(`transform`,new Ki(`none`),()=>{bi.get(e)?.check(),e.style.transform=Ya(t)})),a=t.get(`transform`)}else Xa.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Ki(``),()=>{let n=Za(t,`originX`)??`50%`,r=Za(t,`originY`)??`50%`,i=Za(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=zr(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=pi(r.getCurrent(),nr[n])};return t.set(n,r,i,a)},$a=e=>Va(e)||Ha(e),eo=(e,t)=>{if(br.has(t))return vr(e,t);let n=getComputedStyle(e),r=zr(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},to=Ja(Qa,{test:$a,read:eo});function no(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function ro(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(br.has(e))o=!0;else if(je(e))i[e]=n;else{let t=pi(n,nr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=yi(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 io={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ao={offset:`strokeDashoffset`,array:`strokeDasharray`};function oo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?io:ao;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var so=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function co(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ro(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 so)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&&oo(d,i,a,o,!1)}function lo(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 uo=(e,t,n,r,i=n)=>{let a=lo(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=no(i));let o=nr[n]||nr[i],s=a?()=>{e[i]=pi(r.get(),nr[n])}:()=>{let t=pi(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function fo(e,t,n,r){return z.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 Ki(`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 po=Ja((e,t,n,r)=>n.startsWith(`path`)&&!br.has(n)?fo(e,t,n,r):n.startsWith(`attr`)?uo(e,t,n,r,mo(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(br.has(n)||Xa.has(n)||zr(n)||n in e.style?Qa:uo)(e,t,n,r),{test:Ha,read:(e,t)=>br.has(t)?nr[t]?.default||0:zr(t)||so.includes(t)?eo(e,t)||e.getAttribute(no(t))||0:(t=mo(t),e.getAttribute(no(t))??e.getAttribute(t)??void 0)});function mo(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function ho({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function go({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _o(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 vo(e){return e===void 0||e===1}function yo({scale:e,scaleX:t,scaleY:n}){return!vo(e)||!vo(t)||!vo(n)}var bo=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function xo(e){return yo(e)||Co(e)||So(e)}function So(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Co(e){return wo(e.x)||wo(e.y)}function wo(e){return e&&e!==`0%`}function To(e,t,n){return n+t*(e-n)}function Eo(e,t,n,r,i){return i!==void 0&&(e=To(e,i,r)),To(e,n,r)+t}function Do(e,t=0,n=1,r,i){e.min=Eo(e.min,t,n,r,i),e.max=Eo(e.max,t,n,r,i)}function Oo(e,{x:t,y:n}){Do(e.x,t.translate,t.scale,t.originPoint),Do(e.y,n.translate,n.scale,n.originPoint)}var ko=.999999999999,Ao=1.0000000000001;function jo(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&&(Mo(e.x,-a.scroll.offset.x),Mo(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Oo(e,o)),r&&(r.path?.[s]||r)!==a&&xo(a.latestValues)&&Fo(e,a.latestValues,a.layout?.layoutBox));t.x<Ao&&t.x>ko&&(t.x=1),t.y<Ao&&t.y>ko&&(t.y=1)}function Mo(e,t){e.min+=t,e.max+=t}function No(e,t,n,r,i=.5){Do(e,t,n,R(e.min,e.max,i),r)}function Po(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Fo(e,t,n){let r=n??e;No(e.x,Po(t.x,r.x),t.scaleX,t.scale,t.originX),No(e.y,Po(t.y,r.y),t.scaleY,t.scale,t.originY)}function Io(e,t){return ho(_o(e.getBoundingClientRect(),t))}function Lo(e,t,n){let r=Io(e,n),{scroll:i}=t;return i&&(Mo(r.x,i.offset.x),Mo(r.y,i.offset.y)),r}var Ro=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),zo={},Bo=e=>Ha(e)?po:to,Vo=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Ma}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 Io(this.current)}getProps(){return zo}};function Ho(e,t,n,r){if(Ua.current?.track(e),r)return Ra(e=>r.getValue(e,null),t,n,r);let i=Bo(e);return za(i,e,t,n,new Vo(i,e))}var V=Ja((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:H,cancel:Uo}=Gt(queueMicrotask,!1);function Wo(e,t,n){let r=ha(e)?e:qi(e);return r.start(ra(``,r,t,n)),r.animation}var Go={},Ko={value:null,addProjectionMetrics:null,countProjection:void 0};function qo(e,t){let n=I.now();e=Ga(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(Kt(r),e(a-t))};return z.setup(r,!0),Wa(()=>Kt(r))}function Jo(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Yo(e){return Ha(e)&&e.tagName===`svg`}function Xo(e){return ha(e)?e.get():e}var Zo=e=>typeof e==`number`?e:parseFloat(e),Qo=Na.length,$o=e=>typeof e==`number`||L.test(e);function es(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,ns(r)),e.opacityExit=R(t.opacity??1,0,rs(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;i<Qo;i++){let a=Na[i],o=ts(t,a),s=ts(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||$o(o)===$o(s)?(e[a]=Math.max(R(Zo(o),Zo(s),r),0),(Qe.test(s)||Qe.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<bo.length;i++){let a=bo[i];(t[a]||n[a])&&(e[a]=R(t[a]||0,n[a]||0,r))}}function ts(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ns=is(0,.5,N),rs=is(.5,.95,j);function is(e,t,n){return r=>r<e?0:r>t?1:n(re(e,t,r))}function as(e,t){e.min=t.min,e.max=t.max}function os(e,t){as(e.x,t.x),as(e.y,t.y)}function ss(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var cs=.9999,ls=1.0001,us=-.01,ds=.01;function fs(e){return e.max-e.min}function ps(e,t,n){return Math.abs(e-t)<=n}function ms(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=fs(n)/fs(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cs&&e.scale<=ls||isNaN(e.scale))&&(e.scale=1),(e.translate>=us&&e.translate<=ds||isNaN(e.translate))&&(e.translate=0)}function hs(e,t,n,r){ms(e.x,t.x,n.x,r?.originX),ms(e.y,t.y,n.y,r?.originY)}function gs(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+fs(t)}function _s(e,t,n,r){gs(e.x,t.x,n.x,r?.x),gs(e.y,t.y,n.y,r?.y)}function vs(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+fs(t)}function ys(e,t,n,r){vs(e.x,t.x,n.x,r?.x),vs(e.y,t.y,n.y,r?.y)}function bs(e,t,n,r,i){return e-=t,e=To(e,1/n,r),i!==void 0&&(e=To(e,1/i,r)),e}function xs(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qe.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=bs(e.min,t,n,s,i),e.max=bs(e.max,t,n,s,i)}function Ss(e,t,[n,r,i],a,o){xs(e,t[n],t[r],t[i],t.scale,a,o)}var Cs=[`x`,`scaleX`,`originX`],ws=[`y`,`scaleY`,`originY`];function Ts(e,t,n,r){Ss(e.x,t,Cs,n?.x,r?.x),Ss(e.y,t,ws,n?.y,r?.y)}var Es=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ds=Es(`applewebkit/`)&&!Es(`chrome/`)?Math.round:j;function Os(e){e.min=Ds(e.min),e.max=Ds(e.max)}function ks(e){Os(e.x),Os(e.y)}var As=()=>({translate:0,scale:1,origin:0,originPoint:0}),js=()=>({x:As(),y:As()}),Ms=()=>({min:0,max:0}),Ns=()=>({x:Ms(),y:Ms()});function Ps(e){return e.translate===0&&e.scale===1}function Fs(e){return Ps(e.x)&&Ps(e.y)}function Is(e,t){return e.min===t.min&&e.max===t.max}function Ls(e,t){return Is(e.x,t.x)&&Is(e.y,t.y)}function Rs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zs(e,t){return Rs(e.x,t.x)&&Rs(e.y,t.y)}function Bs(e){return fs(e.x)/fs(e.y)}function Vs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Hs=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 Us(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ws={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(L.test(e))e=parseFloat(e);else return e}return`${Us(e,t.target.x)}% ${Us(e,t.target.y)}%`}},Gs={borderRadius:Object.assign({},Ws,{applyTo:Na.slice()}),borderTopLeftRadius:Ws,borderTopRightRadius:Ws,borderBottomLeftRadius:Ws,borderBottomRightRadius:Ws,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=St.parse(e);if(i.length>5)return r;let a=St.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=R(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 Ks(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<bo.length;e++){let t=bo[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 qs(e){return[e(`x`),e(`y`)]}var Js=(e,t)=>e.depth-t.depth,Ys=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(Js),this.isDirty=!1,this.children.forEach(e)}},Xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zs=[`z`,`skew`,`skewZ`],Qs=1e3,$s=0;function ec(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var tc=e=>e.instance&&bi.get(e.instance)?.demote()&&e.resetSkewAndRotation();function nc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ya(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,z,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nc(r)}function rc(e){if(e)return e.options.allowProjection===!1?rc(e.parent):e.projection}function ic({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Go,{...Gs,...Go}),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:rc(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&Jo(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=$s++,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(sc),this.nodes.forEach(vc),this.nodes.forEach(yc),this.nodes.forEach(cc),Ko.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 Ys)}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=Ha(t)&&!Yo(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;z.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=qo(i,250),Xs.hasAnimatedSinceResize&&(Xs.hasAnimatedSinceResize=!1,this.nodes.forEach(_c)))})}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()||Tc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!zs(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={...Yi(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||_c(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,Kt(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(bc),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&&nc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;tc(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,tc(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(dc),this.nodes.forEach(uc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mc),this.nodes.forEach(hc),this.nodes.forEach(gc),this.nodes.forEach(ac),this.nodes.forEach(oc)):this.nodes.forEach(fc),this.clearAllSnapshots();let e=I.now();Ee.delta=O(0,1e3/60,e-Ee.timestamp),Ee.timestamp=e,Ee.isProcessing=!0,qt.update.process(Ee),qt.preRender.process(Ee),qt.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,H.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!fs(this.snapshot.measuredBox.x)&&!fs(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||=Ns(),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&&tc(this);let t=this.projectionDelta&&!Fs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||xo(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)),ks(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Ns();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Oc))){let{scroll:e}=this.root;e&&(Mo(t.x,e.offset.x),Mo(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Ns();if(os(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&&os(t,e),Mo(t.x,i.offset.x),Mo(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||Ns();os(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&&(Mo(a.x,-n.scroll.offset.x),Mo(a.y,-n.scroll.offset.y)),xo(n.latestValues)&&Fo(a,n.latestValues,n.layout?.layoutBox)}return!r&&xo(this.latestValues)&&Fo(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=Ns();os(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!xo(n.latestValues))continue;let r;n.instance&&(yo(n.latestValues)&&n.updateSnapshot(),r=Ns(),os(r,n.measurePageBox())),Ts(t,n.latestValues,n.snapshot?.layoutBox,r)}return xo(this.latestValues)&&Ts(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!==Ee.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=Ee.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=Ns(),this.targetWithTransforms=Ns()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_s(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):os(this.target,this.layout.layoutBox),Oo(this.target,this.targetDelta)):os(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),Ko.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||yo(this.parent.latestValues)||Co(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=Ns(),this.relativeTargetOrigin=Ns(),ys(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),os(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===Ee.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;os(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;jo(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=Ns());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ss(this.prevProjectionDelta.x,this.projectionDelta.x),ss(this.prevProjectionDelta.y,this.projectionDelta.y)),hs(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Vs(this.projectionDelta.x,this.prevProjectionDelta.x)&&Vs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ko.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=js(),this.projectionDelta=js(),this.projectionDeltaWithTransform=js()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=js();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Ns(),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(wc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);xc(o.x,e.x,n),xc(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&&(ys(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Cc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ls(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Ns(),os(f,this.relativeTarget)),c&&(this.animationValues=a,es(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&&=(Kt(this.pendingAnimation),void 0),this.pendingAnimation=z.update(()=>{Xs.hasAnimatedSinceResize=!0,this.motionValue||=qi(0),this.motionValue.jump(0,!1),this.currentAnimation=Wo(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()}}),Wn(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?.(Qs),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&&Dc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||Ns(),Ec(i.x,t.x,e.x),Ec(i.y,t.y,e.y)}os(t,i),Fo(t,r),hs(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hs),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(!So(t))return;let n={};for(let t=0;t<Zs.length;t++)ec(Zs[t],e,n,this.animationValues);for(let t=0;t<bo.length;t++)ec(bo[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=Xo(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=Xo(t?.pointerEvents)||``),this.hasProjected&&!xo(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=Ks(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 Go){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=Go[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?Xo(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(uc),this.root.sharedNodes.clear()}}}function ac(e){e.updateLayout(),pc(e)}function oc(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`)qs(e=>{let t=fs(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`;as(r[e],a[e])}else Dc(i,t.layoutBox,n)&&qs(t=>{let n=fs(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=js();hs(c,n,t.layoutBox);let l=js();hs(l,a?e.applyTransform(r,!0):n,s);let u=!Fs(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=Ns();ys(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=Ns();ys(l,n,i.layoutBox,s),a&&o(c,l),zs(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 sc(e){Ko.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 cc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lc(e){e.clearSnapshot()}function uc(e){e.clearMeasurements()}function dc(e){e.isLayoutDirty=!0,e.updateLayout()}function fc(e){e.isLayoutDirty=!1}function pc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;qs(e=>Mo(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function mc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function hc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function gc(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function _c(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vc(e){e.resolveTargetDelta()}function yc(e){e.calcProjection()}function bc(e){e.resetSkewAndRotation()}function xc(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Sc(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function Cc(e,t,n,r){Sc(e.x,t.x,n.x,r),Sc(e.y,t.y,n.y,r)}function wc(e){return e.animationValues?.opacityExit!==void 0}var Tc={duration:.45,ease:[.4,0,.1,1]};function Ec(e,t,n){e.max=fs(n)+(e.min=t.min)}function Dc(e,t,n){return e===`position`||e===`preserve-aspect`&&!ps(Bs(t),Bs(n),.2)}function Oc(e){return e!==e.root&&e.scroll?.wasRoot}function kc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ac=ic({attachResizeListener:(e,t)=>kc(e,`resize`,t),measureScroll:Ro,checkIsScrollRoot:()=>!0}),jc={current:void 0},Mc=ic({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){let e=new Ac({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Nc=new WeakMap;function Pc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Fc(e){return typeof e==`string`||Array.isArray(e)}var Ic=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Lc=[`initial`].concat(Ic);function Rc(e){if(Pc(e.animate))return!0;for(let t=0;t<Lc.length;t++)if(Fc(e[Lc[t]]))return!0;return!1}function zc(e){return!!(Rc(e)||e.variants)}function Bc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(ha(i))e.addValue(r,i);else if(ha(a))e.addValue(r,qi(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,qi(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Vc={current:null},Hc={current:!1},Uc=typeof window<`u`;function Wc(){if(Hc.current=!0,Uc){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Vc.current=e.matches;e.addEventListener(`change`,t),t()}else Vc.current=!1}}var Gc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Kc={};function qc(e){Kc=e}function Jc(){return Kc}var Yc=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=Rr,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=I.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,z.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=Rc(t),this.isVariantNode=zc(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&&ha(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,Nc.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:(Hc.current||Wc(),this.shouldReduceMotion=Vc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),Kt(this.notifyUpdate),Kt(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&&oi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Zr({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=br.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),bi.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 Kc){let t=Kc[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):Ns()}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)&&bi.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Gc.length;t++){let n=Gc[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Bc(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=qi(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`&&!St.test(n)&&St.test(t)&&(n=or(e,t)),this.setBaseTarget(e,ha(n)?n.get():n)),ha(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(){H.render(this.render)}},Xc=class extends Yc{constructor(){super(...arguments),this.KeyframeResolver=Ma}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;ha(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Zc(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 Qc(e,{layout:t,layoutId:n}){return br.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Go[e]||e===`opacity`)}function $c(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(ha(r[t])||i&&ha(i[t])||Qc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function el(e){return window.getComputedStyle(e)}var tl=class extends Xc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Zc}mount(e){super.mount(e)}readValueFromInstance(e,t){if(br.has(t))return this.projection?.isProjecting?gr(t):vr(e,t);{let n=el(e),r=(je(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Io(e,t)}build(e,t,n){ro(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $c(e,t,n)}},nl=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function rl(e){return{point:{x:e.pageX,y:e.pageY}}}var il=e=>t=>nl(t)&&e(t,rl(t));function al(e,t,n,r){return kc(e,t,il(n),r)}var ol=new WeakMap,sl,cl=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ha(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ll=cl(`inline`,`width`,`offsetWidth`),ul=cl(`block`,`height`,`offsetHeight`);function dl({target:e,borderBoxSize:t}){ol.get(e)?.forEach(n=>{n(e,{get width(){return ll(e,t)},get height(){return ul(e,t)}})})}function fl(e){e.forEach(dl)}function pl(){typeof ResizeObserver<`u`&&(sl=new ResizeObserver(fl))}function ml(e,t){sl||pl();let n=Ka(e);return n.forEach(e=>{let n=ol.get(e);n||(n=new Set,ol.set(e,n)),n.add(t),sl?.observe(e)}),()=>{n.forEach(e=>{let n=ol.get(e);n?.delete(t),n?.size||sl?.unobserve(e)})}}var hl=new Set,gl;function _l(){gl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};hl.forEach(t=>t(e))},window.addEventListener(`resize`,gl)}function vl(e){return hl.add(e),gl||_l(),()=>{hl.delete(e),!hl.size&&typeof gl==`function`&&(window.removeEventListener(`resize`,gl),gl=void 0)}}function yl(e,t){return Wa(typeof e==`function`?vl(e):ml(e,t))}var bl=(e,t)=>Math.abs(e-t);function xl(e,t){let n=bl(e.x,t.x),r=bl(e.y,t.y);return Math.sqrt(n**2+r**2)}var Sl=new Set([`auto`,`scroll`]),Cl=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=Tl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Dl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:I.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=Tl(t,this.transformPagePoint),this.hasPendingMove=!0,z.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=Dl(e.type===`pointercancel`?this.lastMoveEventInfo:Tl(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!nl(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Tl(rl(e),this.transformPagePoint),{point:c}=s;this.history=[{...c,timestamp:I.now()}];let{onSessionStart:l}=t;l&&l(e,Dl(s,this.history));let u={passive:!0,capture:!0};this.removeListeners=M(al(this.contextWindow,`pointermove`,this.handlePointerMove,u),al(this.contextWindow,`pointerup`,this.handlePointerUp,u),al(this.contextWindow,`pointercancel`,this.handlePointerUp,u)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Sl.has(e.overflowX)||Sl.has(e.overflowY))&&this.scrollPositions.set(t,wl(t)),t=t.parentElement}this.scrollPositions.set(window,wl(window)),this.removeScrollListeners=M(kc(window,`scroll`,this.onElementScroll,{capture:!0}),kc(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=wl(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),z.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),Kt(this.updatePoint)}},wl=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function Tl(e,t){return t?{point:t(e.point)}:e}function El(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dl({point:e},t){return{point:e,delta:El(e,kl(t)),offset:El(e,Ol(t)),velocity:Al(t,.1)}}function Ol(e){return e[0]}function kl(e){return e[e.length-1]}function Al(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=kl(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=oe(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 jl=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ml(e){return jl.has(e.tagName)||e.isContentEditable===!0}var Nl=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Pl(e){return Nl.has(e.tagName)||e.isContentEditable===!0}var Fl={x:!1,y:!1};function Il(){return Fl.x||Fl.y}function Ll(e){return e===`x`||e===`y`?Fl[e]?null:(Fl[e]=!0,()=>{Fl[e]=!1}):Fl.x||Fl.y?null:(Fl.x=Fl.y=!0,()=>{Fl.x=Fl.y=!1})}function Rl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?R(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?R(n,e,r.max):Math.min(e,n)),e}function zl(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 Bl(e,{top:t,left:n,bottom:r,right:i}){return{x:zl(e.x,n,i),y:zl(e.y,t,r)}}function Vl(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 Hl(e,t){return{x:Vl(e.x,t.x),y:Vl(e.y,t.y)}}function Ul(e,t){let n=.5,r=fs(e),i=fs(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 Wl(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 Gl=.35;function Kl(e=Gl){return e===!1?e=0:e===!0&&(e=Gl),{x:ql(e,`left`,`right`),y:ql(e,`top`,`bottom`)}}function ql(e,t,n){return{min:Jl(e,t),max:Jl(e,n)}}function Jl(e,t){return typeof e==`number`?e:e[t]||0}function Yl(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 Xl=new WeakMap,Zl=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=Ns(),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=Ll(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),qs(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Ne(t)&&(t=aa(t,this.visualElement.current)||0),L.test(t))t=parseFloat(t);else if(Qe.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=fs(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&z.update(()=>a(e,t),!1,!0),_a(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=ru(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&&z.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 Cl(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&&z.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||!nu(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=Rl(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;Ql(e)?this.constraints&&this.scroll===Yl(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?Bl(r.layoutBox,e):!1,this.elastic=Kl(t),i!==this.constraints&&!Ql(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&qs(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Wl(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Ql(e))return!1;let n=$l(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=Yl(r);let i=Lo(n,r.root,this.visualElement.getTransformPagePoint()),a=Hl(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(go(a));this.hasMutatedConstraints=!!e,e&&(a=ho(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)&&nu(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=qs(e=>{if(!nu(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 _a(this.visualElement,e),n.start(ra(e,n,0,t,this.visualElement,!1))}stopAnimation(){qs(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();qs(e=>{if(!nu(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-R(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ql(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};qs(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Ul({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(),qs(t=>{let n=this.getAxisMotionValue(t);if(!nu(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(R(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Xl.set(this.visualElement,this);let e=this.visualElement.current,t=al(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Pl(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Ql(t)&&$l(t);r&&(this.constraints=this.resolveRefConstraints(),n||=tu(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),z.read(r);let o=kc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(qs(t=>{if(!nu(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=Gl,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function Ql(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var $l=e=>`current`in e?e.current:e;function eu(e){let t=!0;return()=>{t?t=!1:e()}}function tu(e,t,n){let r=yl(e,eu(n)),i=yl(t,eu(n));return()=>{r(),i()}}function nu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ru(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function iu(e,t){let n=Ka(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Wa(()=>r.abort())]}function au(e){return!(e.pointerType===`touch`||Il())}function ou(e,t,n={}){t=Ga(t);let[r,i,a]=iu(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(!au(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 U=(e,t)=>t?e===t||U(e,t.parentElement):!1,su=new WeakSet;function cu(e){return t=>{t.key===`Enter`&&e(t)}}function lu(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var uu=(e,t)=>{let n=!1,r=cu(()=>{su.has(e)||(n=!0,lu(e,`down`))}),i=cu(()=>{n&&(n=!1,lu(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&lu(e,`cancel`)},{...t,once:!0})};function du(e){return nl(e)&&!Il()}var fu=new WeakSet;function pu(e,t,n={}){t=Ga(t);let[r,i,a]=iu(e,n),o=e=>{let r=e.currentTarget;if(!du(e)||fu.has(e))return;su.add(r),n.stopPropagation&&fu.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),su.has(r)&&su.delete(r),du(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||U(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),Va(e)&&(e.addEventListener(`focus`,()=>uu(e,i),i),!Ml(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function mu(...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=Dn(i,a,o);return t?s(r):s}var hu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},gu=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`]),_u=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vu(e,t,n,r){Zc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(gu.has(n)?n:no(n),t.attrs[n])}function yu(e,t,n){let r=$c(e,t,n);for(let n in e)if(n!==`children`&&(ha(e[n])||ha(t[n]))){let t=yr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bu=class extends Xc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Ns}getBaseTargetFromProps(e,t){return br.has(t)?super.getBaseTargetFromProps(e,t)??gr(t):e[t]}getDefaultValue(e){return br.has(e)?this.latestValues[e]??gr(e):void 0}readValueFromInstance(e,t){if(br.has(t)){let e=ir(t);return e&&e.default||0}if(so.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=gu.has(t)?t:no(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yu(e,t,n)}build(e,t,n){co(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vu(e,t,n,r)}mount(e){this.isSVGTag=_u(e.tagName),super.mount(e)}};function xu(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 Su=[...Ic].reverse(),Cu=e=>e?.out===!0?e:e?.out;function wu(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>wa(e,t,n))),n=Eu(),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`&&ca(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&&Cu(f(l??(g&&g.props.initial))?.transition);if(Su.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?Fc(f)||f===!1?f:void 0:l,y=Fc(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||Pc(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=Tu(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}=ca(e,n,la(e,t))||{};E={...E,...a,...i},D=Cu(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)?!xu(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=ca(s,n)?.transition?.delayChildren;r.delay=Hi(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&&!ha(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=Eu(),i=!0}}}function Tu(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!xu(t,e):!1}function Eu(){let e={};for(let t of Ic)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var Du=(0,_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Ou(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ku(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ou(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():Ou(e[t],null)}}}}function Au(...e){return _.useCallback(ku(...e),e)}var W=x(),ju=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},Mu=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]=ju(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=ju(e.offsetParent);return[t/i,n/a]},Nu=class extends _.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Va(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Va(e)&&e.offsetWidth||0,r=Va(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=Mu(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function Pu({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)(Du),d=Au(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 H.setup(()=>{let[e,t]=Mu(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),H.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,W.jsx)(Nu,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:_.cloneElement(e,{ref:d})})}var Fu=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=C(Iu),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,W.jsx)(Pu,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,W.jsx)(T.Provider,{value:g,children:e})};function Iu(){return new Map}function Lu(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 Ru(){return zu((0,_.useContext)(T))}function zu(e){return e===null||e.isPresent}var Bu=e=>e.key||``;function Vu(e){let t=[];return _.Children.forEach(e,e=>{(0,_.isValidElement)(e)&&t.push(e)}),t}var Hu=({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]=Lu(o),f=(0,_.useMemo)(()=>Vu(e),[e]),p=o&&!u?[]:f.map(Bu),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=Bu(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(Bu(n));r===-1?(e.splice(t++,0,n),E.push(n)):t=r+E.length+1}return E.every(e=>h.get(Bu(e)))?e=f:a===`wait`&&(e=E),x(Vu(e)),y(f),null}let{forceRender:D}=(0,_.useContext)(S);return(0,W.jsx)(W.Fragment,{children:b.map(e=>{let _=Bu(e),v=o&&!u?!1:f===b||p.includes(_);return(0,W.jsx)(Fu,{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},_)})})},Uu=(0,_.createContext)({strict:!1}),Wu={animation:[`variants`,...Ic],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`]},Gu=!1;function Ku(){if(Gu)return;let e={};for(let t in Wu)e[t]={isEnabled:e=>Wu[t].some(t=>!!e[t])};qc(e),Gu=!0}function qu(){return Ku(),Jc()}function Ju(e){let t=qu();for(let n in e)t[n]={...t[n],...e[n]};qc(t)}var Yu=(0,_.createContext)({});function Xu(e,t){if(Rc(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Fc(t)?t:void 0,animate:Fc(n)?n:void 0}}return e.inherit===!1?{}:t}function Zu(e){let{initial:t,animate:n}=Xu(e,(0,_.useContext)(Yu));return(0,_.useMemo)(()=>({initial:t,animate:n}),[Qu(t),Qu(n)])}function Qu(e){return Array.isArray(e)?e.join(` `):e}var $u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ed(e,t,n){for(let r in t)!ha(t[r])&&!Qc(r,n)&&(e[r]=t[r])}function G({transformTemplate:e},t){return(0,_.useMemo)(()=>{let n=$u();return ro(n,t,e),Object.assign({},n.vars,n.style)},[t])}function K(e,t){let n=e.style||{},r={};return ed(r,n,e),Object.assign(r,G(e,t)),r}function q(e,t){let n={},r=K(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=()=>({...$u(),attrs:{}});function Y(e,t,n,r){let i=(0,_.useMemo)(()=>{let n=J();return co(n,t,_u(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return ed(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`||ha(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)(()=>ha(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]=Xo(a[e]);let{initial:o,animate:s}=e,c=Rc(e),l=zc(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`&&!Pc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=sa(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)(Yu),i=(0,_.useContext)(T),a=()=>cd(e,t,r,i);return n?a():C(a)},dd=ud({scrapeMotionValuesFromProps:$c,createRenderState:$u}),fd=ud({scrapeMotionValuesFromProps:yu,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)(Yu),s=(0,_.useContext)(Uu),c=(0,_.useContext)(T),l=(0,_.useContext)(Du),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[va],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&&Ju(r);let a=n?n===`svg`:od(e),o=a?fd:dd;function s(n,s){let c,l=vd(n);C(()=>!!jc.current?.sharedNodes.get(l)?.lead&&n.initial)&&(n={...n,initial:!1});let u={...(0,_.useContext)(Du),...n,layoutId:l},{isStatic:d,isValidProp:f}=u,p=Zu(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,W.jsxs)(Yu.Provider,{value:p,children:[c&&p.visualElement?(0,W.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)(Uu).strict}function bd(e){let{drag:t,layout:n}=qu();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 bu(t):new tl(t,{allowProjection:e!==_.Fragment}),Cd=class extends hu{constructor(e){super(e),e.animationState||=wu(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Pc(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 hu{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}=ca(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 hu{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Zl(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&&z.update(()=>e(t,n),!1,!0)},Od=class extends hu{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Cl(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&&z.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=al(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()})),Xs.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()||z.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),H.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]=Lu(),r=(0,_.useContext)(S);return(0,W.jsx)(Md,{...e,layoutGroup:r,switchLayoutGroup:(0,_.useContext)(hd),isPresent:t,safeToRemove:n})}var Pd={pan:{Feature:Od},drag:{Feature:Ed,ProjectionNode:Mc,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&&z.postRender(()=>o(t,rl(t)))}var Id=class extends hu{mount(){let{current:e}=this.node;e&&(this.unmount=ou(e,(e,t)=>(Fd(this.node,t,`Hover`,`Start`),e=>Fd(this.node,e,`Hover`,`End`))))}unmount(){}},Ld=class extends hu{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(kc(this.node.current,`focus`,()=>this.onFocus()),kc(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 hu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=pu(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 hu{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:Mc,MeasureLayout:Nd}}),Sd);function Xd(e){return(0,_.useEffect)(()=>()=>e(),[])}function Zd(e){let t=C(()=>qi(e)),{isStatic:n}=(0,_.useContext)(Du);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=()=>z.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Kt(r)}}),n}function $d(e){Gi.current=[],e();let t=Qd(Gi.current,e);return Gi.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:mu(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(){!Hc.current&&Wc();let[e]=(0,_.useState)(Vc.current);return e}function af(){let e=rf(),{reducedMotion:t}=(0,_.useContext)(Du);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)?Ka(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:R(i,a,r[o]),easing:Se(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=kn(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=Yr(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=Qt(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&&On(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`?fe(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`:Se(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(ha(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 ha(e)||typeof e==`number`||typeof e==`string`&&!of(t)}function wf(e,t,n,r){let i=[];if(Cf(e,t))i.push(Wo(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(...Ho(r,t,s,Nc.get(r))):i.push(...za(La(r)??V,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=qi(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:wn},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=Ua.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 Vi(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=Ua.current;Ua.current=this.motionScope;let m;try{m=Tf(this.toSequence(d),{defaultTransition:n,...u},c,f)}finally{Ua.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=qi(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),m.unshift(this.clockAnimation=Wo(e,[0,g],{...u,duration:g,ease:`linear`}))}let v=this.group=new Vi(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=Ua.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:Fa,removeEffect:Ia});function Pf(){let e=C(()=>({current:null,animations:[]})),t=af()??void 0,{skipAnimations:n}=(0,_.useContext)(Du);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:`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=80,mm=500,hm={status:`idle`,entries:[],comparison:null,summary:{total:0,changed:0,added:0,removed:0},signature:``};function gm(e){return e.every(({target:e})=>(e.nodeType===1?e:e.parentElement)?.closest(`[data-afterimage-overlay]`))}function _m({targetFrame:e,baseFrame:t,target:n,base:r,enabled:i}){let[a,o]=(0,_.useState)(hm),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(hm);return}if(o({...hm,status:`checking`}),!s||!c)return;let a=!0,l=0,u=null,d=[],f=Q({onTimeout:()=>{a&&o(e=>e.status===`ready`?e:{...hm,status:`failed`})}}),p=Uf(()=>b(),{waitMs:pm,maxWaitMs:mm}),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({...hm,status:`failed`})}async function b(){let[e,t]=h();if(!a||!_())return;let n=++l;try{let r=v();if(await Promise.all([e.contentDocument.fonts.ready,t.contentDocument.fonts.ready]),!a||n!==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,r)){m();return}let g=zf(p.entries),y=Hf(p);if(f.done(),im(r,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({...hm,status:`failed`})}}function x(){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=>{gm(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 S=t=>{x();let i=t?.currentTarget,a=i===e.current?n:r;i&&!um(i,a)?y():m()},C=h().filter(Boolean);for(let e of C)e.addEventListener(`load`,S);return f.start(),x(),m(),()=>{a=!1,p.cancel(),f.cancel(),d.forEach(e=>e());for(let e of C)e.removeEventListener(`load`,S)}},[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 vm(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 ym=vm(typeof location>`u`?``:location.hash);function bm(){return(0,_.useSyncExternalStore)(ym.subscribe,ym.get)}function xm({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=()=>ym.set(t.location.hash);t.addEventListener(`hashchange`,n),r.push(()=>fm(()=>t.removeEventListener(`hashchange`,n)))}}let o=()=>{a(),i(ym.get())};for(let e of n)e.addEventListener(`load`,o);let s=ym.subscribe(i);return a(),i(ym.get()),()=>{s(),r.forEach(e=>e());for(let e of n)e.removeEventListener(`load`,o)}},[e,t,n,r])}var Sm=1e4,Cm=40,wm=typeof window<`u`&&window.parent!==window;function Tm(e){let t=am(e.current);window.parent.postMessage({type:`afterimage:close`,route:ym.get(),scrollY:t?.scrollY??0},`*`)}function Em({state:e,dispatch:t,versions:n,targetRef:r}){let i=(0,_.useRef)(!1),a=(0,_.useRef)(!1);(0,_.useEffect)(()=>{if(!wm)return;let e=0,o=o=>{let s=o.data;if(o.source!==window.parent||s?.type!==`afterimage:open`)return;clearTimeout(e),typeof s.route==`string`&&ym.set(s.route),i.current=!0,a.current=!1,t({type:`openFromPage`,view:s.view});let c=Number(s.scrollY)||0,l=Date.now()+Sm,u=()=>{let t=am(r.current);um(r.current,n[0])&&t.location.hash===ym.get()?(t.scrollTo(0,c),e=setTimeout(()=>window.parent.postMessage({type:`afterimage:ready`},`*`),Cm)):Date.now()<l&&(e=setTimeout(u,Cm))};e=setTimeout(u,0)};return window.addEventListener(`message`,o),window.parent.postMessage({type:`afterimage:listening`},`*`),()=>{clearTimeout(e),window.removeEventListener(`message`,o)}},[t,n,r]),(0,_.useEffect)(()=>{wm&&i.current&&(wp(e,n)?a.current&&(i.current=!1,a.current=!1,Tm(r)):a.current=!0)},[e,n,r])}function Dm(e){return(0,_.useSyncExternalStore)(t=>{let n=matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},()=>matchMedia(e).matches,()=>!1)}var Om=`(max-width: 640px)`;function km(){return Dm(Om)}var Am=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`&&!Am.has(String(e.type??``).toLowerCase()):!1}var Mm=new Set([`[`,`]`,`j`,`k`]),Nm={"[":{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 Pm(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&&!Mm.has(t))return null;let r=Object.hasOwn(Nm,t)?Nm[t]:void 0;return r===void 0?null:typeof r==`string`?r:{...r}}var Fm={type:`setPeek`,peek:!1};function Im(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 Lm(e,t){let n=e=>{let n=Pm(e);n!==null&&t(n,e)!==!1&&n!==`escape`&&e.type===`keydown`&&e.preventDefault()},r=()=>{t(Fm,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 Rm(e,t){let n=e.filter(Boolean).map(e=>{let n=null,r=()=>{n?.(),n=null;let r=am(e);if(r)try{n=Lm(r,t)}catch{n=null}},i=()=>{r(),t(Fm,null)};return r(),e.addEventListener(`load`,i),()=>{e.removeEventListener(`load`,i),n?.(),n=null}});return()=>n.forEach(e=>e())}function zm(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 Bm(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`),_=Im(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`:Tm(s)}_.dispatch.some(e=>e.type===`setRetracted`||e.type===`toggleRetracted`)&&m();for(let e of _.dispatch)r(e);return!0},[]);(0,_.useEffect)(()=>Lm(window,n),[n]);let{targetRef:r,baseRef:i}=e,{versionId:a,baseId:o,mode:s}=e.state;(0,_.useEffect)(()=>Rm([r.current,i.current],n),[n,r,i,a,o,s])}var Vm={enter:{duration:.22,ease:[.22,1,.36,1]},exit:{duration:.17,ease:[.22,1,.36,1]},layout:{type:`spring`,duration:.25,bounce:0}},Hm={duration:0},Um={enter:Hm,exit:Hm,layout:Hm};function Wm(){return rf()?Um:Vm}function Gm({frameRef:e,version:t,role:n,visible:r,compare:i}){let a=(0,_.useRef)(sm(t.file,ym.get())),o=(0,_.useRef)(t.file);(0,_.useLayoutEffect)(()=>{o.current!==t.file&&(o.current=t.file,dm(e.current,sm(new URL(t.file,location.href).href,ym.get())))},[e,t.file]);let s=n===`base`?`${i?`Before`:`Previous version`}, ${t.label}`:`${i?`After`:`Prototype`}, ${t.label}`;return(0,W.jsx)(`iframe`,{ref:e,className:`frame`,"data-role":n,"data-visible":r,src:a.current,title:s,inert:!r,tabIndex:r?void 0:-1,"aria-hidden":!r||void 0})}var Km=5,qm=17,Jm=e=>Math.min(100,Math.max(0,e));function Ym(){return(0,W.jsxs)(`svg`,{width:`10`,height:`16`,viewBox:`0 0 10 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{cx:`3`,cy:`4`,r:`1.1`}),(0,W.jsx)(`circle`,{cx:`7`,cy:`4`,r:`1.1`}),(0,W.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.1`}),(0,W.jsx)(`circle`,{cx:`7`,cy:`8`,r:`1.1`}),(0,W.jsx)(`circle`,{cx:`3`,cy:`12`,r:`1.1`}),(0,W.jsx)(`circle`,{cx:`7`,cy:`12`,r:`1.1`})]})}function Xm({split:e,value:t,onChange:n,stageRef:r,stageWidth:i,beforeLabel:a,onDragging:o}){let s=Wm(),[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-qm,Math.max(qm,n))-n:0}px), -50%)`}),m=e=>{let n=r.current.getBoundingClientRect();return n.width>0?Jm((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-Km,ArrowRight:t+Km,Home:0,End:100}[e.key];r!==void 0&&(e.preventDefault(),n(Jm(r)))},x=Math.round(t);return(0,W.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,W.jsx)(`span`,{className:`wipe-line`,"aria-hidden":`true`}),(0,W.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,W.jsx)(Ym,{})})]})}function Zm({version:e,kind:t,style:n}){let r=Wm();return(0,W.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,W.jsx)(`span`,{className:`num`,children:e.id}),(0,W.jsx)(`span`,{className:`compare-label-kind`,children:t})]})}var Qm=[[`fit`,`Fit`],[`75`,`75%`],[`100`,`100%`]];function $m({syncOn:e,onToggleSync:t,zoom:n,onZoom:r}){let i=Wm(),a=(0,_.useRef)({});return(0,W.jsxs)(Z.div,{className:`side-tools`,initial:{opacity:0},animate:{opacity:1,transition:i.enter},exit:{opacity:0,transition:i.exit},children:[(0,W.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=Qm.findIndex(([e])=>e===n),[o]=Qm[Math.min(Qm.length-1,Math.max(0,i+t))];r(o),a.current[o]?.focus({preventScroll:!0})},children:Qm.map(([e,t])=>{let o=e===n;return(0,W.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,W.jsx)(Z.span,{layoutId:`side-zoom-indicator`,className:`zoom-indicator`,transition:i.layout}),(0,W.jsx)(`span`,{className:`zoom-opt-label`,children:t})]},e)})}),(0,W.jsxs)(`button`,{type:`button`,role:`switch`,"aria-checked":e,className:`sync-chip`,"data-on":e||void 0,onClick:t,children:[(0,W.jsx)(`span`,{className:`sync-dot`,"aria-hidden":`true`}),`Scroll synced`]})]})}function eh({left:e,top:t,width:n,pan:r,visible:i,page:a,onPan:o,focusable:s}){let c=Wm(),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,W.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,W.jsx)(`span`,{className:`pan-track`}),(0,W.jsx)(`span`,{className:`pan-thumb`,style:{left:m,width:p}})]})}var th=1;function nh(e){let t=e.document.scrollingElement??e.document.documentElement;return Math.max(0,t.scrollHeight-e.document.documentElement.clientHeight)}function rh(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,nh(n),nh(i));Math.abs(i.scrollY-o)<th||(r.set(i,o),i.scrollTo({top:o,behavior:`instant`}))},s=(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)<th)||o(e,t)},c=()=>{for(let[e,t]of i)fm(()=>e.removeEventListener(`scroll`,t));i=[];for(let[n,r]of[[e,t],[t,e]]){let e=a(n);if(!e)continue;let t=s(n,r);e.addEventListener(`scroll`,t,{passive:!0}),i.push([e,t])}},l=n=>()=>{c(),o(n===e?t:e,n)},u=l(e),d=l(t);return e.addEventListener(`load`,u),t.addEventListener(`load`,d),c(),o(e,t),()=>{for(let[e,t]of i)fm(()=>e.removeEventListener(`scroll`,t));i=[],e.removeEventListener(`load`,u),t.removeEventListener(`load`,d)}}var ih={changed:`229 168 59`,added:`111 191 115`,removed:`224 112 95`},ah=e=>`rgb(${ih[e]??ih.changed})`,oh=e=>`rgb(${ih[e]??ih.changed} / .13)`,sh=`cubic-bezier(.22,1,.36,1)`,ch=200,lh=160,uh=`system-ui,-apple-system,'Segoe UI',sans-serif`,dh=`ui-monospace,'SF Mono','Cascadia Mono',Menlo,Consolas,monospace`,fh=196,ph=14,mh=220,hh=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,gh=()=>hh()?`instant`:`smooth`,_h=`all:initial;box-sizing:border-box;color:inherit;font:inherit;`;function vh(e,t,n){let r=e.createElement(t);return r.style.cssText=_h+n,r}function yh(e){if(delete e.dataset.key,delete e.dataset.change,delete e.dataset.afterimageCard,e.inert=!0,hh()){e.remove();return}let t=Number(e.ownerDocument.defaultView.getComputedStyle(e).opacity),n=e.animate([{opacity:Number.isNaN(t)?1:t},{opacity:0}],{duration:lh,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,hh()){t.remove();return}let n=t.animate([{opacity:1},{opacity:0}],{duration:lh,easing:`ease-out`});n.onfinish=()=>t.remove()}function xh(e){let t=e.querySelector(`[data-afterimage-overlay]`);return t||(t=vh(e,`div`,``),t.dataset.afterimageOverlay=``,t.style.cssText=_h+`display:block;position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:2147483646;`,e.documentElement.append(t)),t}var Sh=new WeakMap;function Ch(e,t){let n=Sh.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)}Sh.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 Th(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 Eh(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 Ch(n,t)){let n=wh(e.getBoundingClientRect(),t);i=i?Th(i,n):n}return{rect:r,clip:i}}function Dh(e,t){let n=[],{top:r,height:i}=e.getBoundingClientRect(),a=r;for(let r of Ch(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 Oh(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 kh(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 Ah(e,t,n,{number:r,active:i,dimmed:a,onPick:o,isNew:s,zoom:c}){let l=hh(),u=!!n.page,d=t.querySelector(`:scope > [data-change][data-key="${CSS.escape(n.key)}"]`)??vh(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;`)(Oh(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?``:kh(Oh(n,e.documentElement.clientWidth),n.clip,c)}border-radius:${4*c}px;pointer-events:none;outline:${p}px ${n.kind===`removed`?`dashed`:`solid`} ${ah(n.kind)};box-shadow:${i?`0 0 0 ${6*c}px ${oh(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=vh(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:${ah(n.kind)};color:#1b1b1b;font:600 12px/18px ${dh};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:ch,easing:sh})),d}var jh=e=>/^(?:(?:rgba?|hsla?|oklch|oklab|color)\([^;{}()]*\)|#[0-9a-f]{3,8})$/i.test(String(e).trim());function Mh(e,t,{swatch:n,muted:r,strike:i}){let a=vh(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 ${uh};`);if(n){let n=vh(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=vh(e,`span`,`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;overflow-wrap:anywhere;${n?`font-family:${dh};font-size:12px;`:``}`);return o.textContent=t,a.append(o),a}function Nh(e,t,n){t.replaceChildren();let{kindLabel:r,position:i}=n,a=vh(e,`div`,`display:block;color:#8e8e8e;font:12px/1.35 ${uh};margin-bottom:6px;`);a.append(e.createTextNode(`${r} · `));let o=t=>{let n=vh(e,`span`,`font:12px/1.35 ${dh};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=vh(e,`div`,`display:block;margin-top:6px;`);if(c||n.label){let t=vh(e,`div`,`display:block;color:#ededed;font:600 12px/1.35 ${uh};margin-bottom:2px;`);t.textContent=n.label,r.append(t)}let i=vh(e,`div`,`display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;`),a=e=>!!n.color&&jh(e),o=(t,n,r)=>{let o=vh(e,`span`,`display:block;color:#8e8e8e;font:12px/1.35 ${uh};`);o.textContent=t,i.append(o,Mh(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 Ph(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}=Fh({rect:n.rect,cardWidth:fh*r,cardHeight:t.offsetHeight*r,gap:ph*r,room:mh*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 Fh({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 Ih(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&&yh(e);if(!n||!r)return;let s=!o,c=o??vh(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:${fh}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;`,Nh(e,c,n),c.isConnected||t.append(c);let l=r.clip?{...r,rect:Th(r.rect,r.clip)}:r;r.page||l.rect.width!==0&&l.rect.height!==0||(c.style.display=`none`),Ph(e,c,l,i,n.bounds??null),s&&!hh()&&c.animate([{opacity:0,transform:`translateY(4px)`},{opacity:1,transform:`translateY(0)`}],{duration:ch,easing:sh})}function Lh({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 Rh(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;Lh({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 zh(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=xh(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=()=>zh(e,t,{...n,scrolled:!0}),Bh(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,...Eh(n,l)};u.add(t.key),Ah(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)||yh(e);let f=o&&t.find(e=>e.key===o.key);Ih(e,c,o,f&&{...f,...Eh(f,l)},s)}function Bh(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 Vh=5,Hh=95,Uh=16,Wh=e=>Math.min(Hh,Math.max(Vh,e));function Gh({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=Uh/r*100;return t===`removed`&&o>e?Wh((a+n.width)/r*100+s):t===`added`&&o<e?Wh(a/r*100-s):e}function Kh({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 qh=10,Jh=10,Yh=38,Xh=12,Zh={duration:0};function Qh(e){let t=e.details.filter(e=>!e.layout);return(t.length?t:e.details).slice(0,3)}function $h(e){let t=(e.document.scrollingElement??e.document.documentElement).scrollHeight-e.document.documentElement.clientHeight;return t>0?e.scrollY/t:0}function eg(e,t){let n=e.document.scrollingElement??e.document.documentElement,r=Math.max(0,n.scrollHeight-e.document.documentElement.clientHeight);e.scrollTo({top:$h(t)*r,behavior:`instant`})}function tg(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 ng(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-Jh)/2,l=c/t,u=fp(i,l),d=c/u,f=pp(a,t,d),p=n-r-qh,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(qh),target:m(qh+c+Jh),column:c,fit:l,scale:u,visible:d,pan:f}}function rg({state:e,dispatch:t,versions:n,review:r,targetRef:i,baseRef:a,phone:o}){let s=rf(),c=Wm(),l=(0,_.useRef)(null),u=tg(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=ng(C,u,Yh,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:Zh,M=(0,_.useRef)(null);M.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 re=(0,_.useCallback)((e,n)=>{let r=M.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]),ie=(0,_.useCallback)(e=>{let t=M.current;t.zoomed&&T(n=>pp(pp(n,t.width,t.visible)+e,t.width,t.visible))},[]),[ae,oe]=(0,_.useState)(50),[se,ce]=(0,_.useState)(!1),le=Zd(C===`wipe`?ae:100),ue=ef(le,e=>`inset(0 ${100-e}% 0 0)`),de=C===`wipe`&&!e.peek?ae:100,fe=(0,_.useRef)(null),pe=(0,_.useRef)(!1);(0,_.useLayoutEffect)(()=>{fe.current?.stop();let e=(ee||pe.current)&&c.layout.duration>0;pe.current=!1,e?fe.current=Nf(le,de,c.layout):le.jump(de)},[de]);let me=(0,_.useRef)(ae);se||(me.current=ae);let he=me.current,ge=v&&p?p.current.find(e=>e.key===v.key):null,_e=C===`wipe`?am(i.current)?.scrollX??0:0,N=e.peek?1/0:he/100*u.width+_e,P=y||C===`wipe`&&v?.kind===`changed`&&!!ge&&ge.rect.x+ge.rect.width/2<N,[ve,ye]=(0,_.useState)(0),be=E.pan??0;(0,_.useEffect)(()=>{let e=setTimeout(()=>ye(be),120);return()=>clearTimeout(e)},[be]);let xe=Kh({layout:C,wipe:he,width:u.width,onBase:P,peek:e.peek,scrollX:_e,pan:ve,visible:E.visible}),Se=xe?.min??null,F=xe?.max??null,Ce=(0,_.useRef)(ae);Ce.current=ae;let we=(0,_.useRef)(null);(0,_.useEffect)(()=>{if(C!==`wipe`||!v||!p||se)return;let t=[d.id,f?.id,e.changeFilter,v.key,e.pick].join(`|`);if(we.current===t)return;we.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=Gh({wipe:Ce.current,kind:v.kind,rect:n.rect,width:u.width,scrollX:r});o!==Ce.current&&(pe.current=!0,oe(o))},[C,v,p,se,d,f,y,e.changeFilter,e.pick,u.width,a,i]);let Te=(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(Te.current===t)return;Te.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=M.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?M.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(M.current.zoom,t<0?1:-1);t=0,n=i+300,re(a,e.clientX);return}let i=e.shiftKey&&!e.deltaX?e.deltaY:e.deltaX;!M.current.zoomed||!i||!e.shiftKey&&Math.abs(e.deltaX)<=Math.abs(e.deltaY)||(e.preventDefault(),ie(i*r/M.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,re,ie,i,a]);let Ee=b&&(C===`wipe`||e.syncScroll);(0,_.useEffect)(()=>{if(Ee)return rh(i.current,a.current)},[Ee,!!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:Qh(v),bounds:Se===null?null:{min:Se,max:F}},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):zh(i,l(n?p.previous:p.current),{activeKey:v?.key??null,numbers:o,onPick:s,card:c(n===P),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,P,Se,F,O,t,i,a]);let De=v?.key??null;(0,_.useEffect)(()=>{if(!De)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?Rh(t.document,De,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)}},[De,O,t,i,a]);let Oe=e=>{De&&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;return eg(e,t),()=>fm(()=>e.scrollTo({top:n,behavior:`instant`}))},[S,a,i]);let I=(0,_.useRef)(null);(0,_.useEffect)(()=>{if(!v||!p){I.current=null;return}let t=[d.id,f?.id,e.changeFilter,v.key,e.pick].join(`|`);if(I.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;I.current=t;let o=am(n);if(r.page){o.scrollTo({top:0,behavior:gh()});return}if(r.element?.isConnected){for(let{target:e,top:t}of Dh(r.element,o))e.scrollTo({top:t,behavior:gh()});return}let s=Math.max(24,(o.innerHeight-r.rect.height)/2);o.scrollTo({top:Math.max(0,r.rect.y-s),behavior:gh()})},[v,p,d,f,y,e.changeFilter,e.pick,a,i]);let ke={duration:s?0:.2,ease:[.22,1,.36,1]},Ae={duration:s?0:.16,ease:`easeOut`},je=C===`side`,Me=`calc(${je?22:Xh}px + var(--label-lift))`,Ne={left:(je?qh:0)+Xh,bottom:Me},Pe=C===`wipe`&&e.panelOpen&&!o,Fe=je?{left:qh+E.column+Jh+Xh,bottom:Me}:{right:Xh,bottom:Me},Ie=(e,t)=>(0,W.jsx)(Z.div,{className:`frame-col`,"data-role":e,initial:!1,animate:E[e].col,transition:j,children:(0,W.jsx)(Z.div,{className:`frame-box`,style:{width:u.width||`100%`,clipPath:e===`base`?ue:void 0},initial:!1,animate:E[e].box,transition:j,children:t})},e),Le=e=>T(pp(e,u.width,E.visible));return(0,W.jsxs)(`div`,{ref:l,className:`stage`,"data-layout":C,"data-dragging":se||void 0,onClick:Oe,children:[Ie(`target`,(0,W.jsx)(Gm,{frameRef:i,version:d,role:`target`,compare:b,visible:!0})),f&&Ie(`base`,(0,W.jsx)(Gm,{frameRef:a,version:f,role:`base`,compare:b,visible:x})),(0,W.jsxs)(Hu,{children:[C===`wipe`&&(0,W.jsx)(Xm,{split:le,value:ae,onChange:oe,onDragging:ce,stageRef:l,stageWidth:u.width,beforeLabel:f.id},`divider`),b&&(0,W.jsx)(Zm,{version:f,kind:`Before`,style:Ne},`before`),b&&!Pe&&(0,W.jsx)(Zm,{version:d,kind:`After`,style:Fe},`after`),je&&(0,W.jsx)($m,{syncOn:e.syncScroll,onToggleSync:()=>t({type:`toggleSync`}),zoom:e.zoom,onZoom:e=>re(e)},`side-tools`),D&&[`base`,`target`].map(e=>(0,W.jsx)(eh,{left:E[e].col.x,top:29,width:E.column,pan:E.pan,visible:E.visible,page:u.width,onPan:Le,focusable:e===`target`},`pan-${e}`))]}),(0,W.jsx)(Hu,{children:!b&&y&&f&&(0,W.jsx)(Z.div,{className:`stage-note`,initial:{opacity:0,y:s?0:-4},animate:{opacity:1,y:0,transition:ke},exit:{opacity:0,transition:Ae},children:(0,W.jsxs)(`span`,{children:[`Showing\xA0`,(0,W.jsx)(`span`,{className:`num`,children:f.id}),`\xA0·\xA0removed in\xA0`,(0,W.jsx)(`span`,{className:`num`,children:d.id})]})},`removed-note`)})]})}function ig({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=Wm(),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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{ref:h,className:`version-field-wrap`,children:(0,W.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,W.jsx)(Hu,{children:A&&(0,W.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,W.jsxs)(W.Fragment,{children:[`Enter to go `,(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),` `,(0,W.jsx)(`kbd`,{children:`↑`}),(0,W.jsx)(`kbd`,{children:`↓`}),` step`]})},`hint`)})]})}var ag=5,og=2,sg=4,cg=2;function lg({versions:e,state:t,dispatch:n}){let r=Wm(),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*ag+(v.gapAfter!==-1&&t>v.gapAfter?sg:0)),C=a!==null,w=(e,t)=>{let n=e-i.current.getBoundingClientRect().left-og/2,r=t?x.findIndex(e=>e.role===`base`):-1;return Xf(S,n,r,cg)},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]+og/2,re=v.fadeStart&&v.fadeEnd?`both`:v.fadeStart?`start`:v.fadeEnd?`end`:void 0;return(0,W.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,W.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,W.jsx)(`div`,{ref:i,className:`tick-track`,"data-fade":re,style:{width:(S[S.length-1]??0)+og},"aria-hidden":`true`,children:(0,W.jsx)(Hu,{initial:!1,mode:`popLayout`,children:x.map((e,t)=>(0,W.jsx)(Z.span,{className:`tick-slot`,style:{marginLeft:v.gapAfter!==-1&&t===v.gapAfter+1?sg:0},layout:`position`,transition:r.layout,initial:{opacity:0},animate:{opacity:1,transition:r.enter},exit:{opacity:0,transition:r.exit},children:(0,W.jsx)(`span`,{className:`tick`,"data-role":e.role,"data-hover":e.id===s||void 0})},e.id))})}),(0,W.jsx)(Hu,{children:j&&(0,W.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,W.jsxs)(`div`,{className:`tick-tip`,children:[(0,W.jsx)(`span`,{className:`num`,children:j.id}),(0,W.jsx)(`span`,{className:`tick-tip-sep`,children:`·`}),(0,W.jsx)(`span`,{className:`tick-tip-name`,children:j.name})]})},`tip`)})]})}var ug={changed:`changed`,added:`added`,removed:`removed`};function dg(e){return ug[e]??``}function fg({ready:e,changeIndex:t,total:n,filter:r}){if(!e)return`Highlights on. Turn highlights off`;let i=dg(r);return`Highlights on, change ${t===null?`none selected`:t+1} of ${n}${i?` ${i}`:``}. Turn highlights off`}function pg(){return(0,W.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,W.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 mg({direction:e}){return(0,W.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,W.jsx)(`path`,{d:e<0?`M9.5 4 5.5 8l4 4`:`m6.5 4 4 4-4 4`})})}function hg({ref:e,className:t,children:n,...r}){let i=Wm(),a=(0,_.useRef)(null),[o,s]=(0,_.useState)(null);return(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()},[]),(0,W.jsx)(Z.div,{...r,ref:e,className:t,initial:!1,animate:{width:o??`auto`},transition:i.layout,children:(0,W.jsx)(`div`,{ref:a,className:`auto-width-inner`,children:n})})}function gg({ref:e,children:t,...n}){let r=Ru(),[i,a]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{a(!r)},[r]),(0,W.jsx)(Z.div,{...n,ref:e,className:`seg-content`,inert:!r&&i||void 0,children:t})}var _g=e=>String(e).length;function vg({state:e,dispatch:t,review:n,disabled:r,phone:i}){let a=Wm(),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,W.jsx)(gg,{...C,children:(0,W.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,W.jsx)(pg,{}):(0,W.jsx)(`span`,{children:`Highlight`}),e&&(0,W.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=`${_g(t??0)}ch`,r=l&&e.changeIndex!==null?e.changeIndex+1:`–`,o=l&&u>0,s=dg(e.changeFilter);w=(0,W.jsxs)(gg,{...C,children:[(0,W.jsxs)(`button`,{ref:g(`steps`),type:`button`,className:`pill-btn stepper-label`,"aria-pressed":!0,"aria-label":fg({ready:l,changeIndex:e.changeIndex,total:u,filter:e.changeFilter}),onClick:y,children:[(0,W.jsx)(pg,{}),(0,W.jsxs)(`span`,{className:`stepper-text`,"data-filter":s||void 0,children:[!i&&(0,W.jsx)(`span`,{className:`stepper-prefix`,children:`Change`}),(0,W.jsx)(`span`,{className:`num stepper-n`,style:{minWidth:n},"data-empty":r===`–`||void 0,children:r}),(0,W.jsx)(`span`,{className:`muted`,children:`of`}),(0,W.jsx)(Z.span,{className:`num muted stepper-total`,initial:!1,animate:{opacity:+!!l},transition:l?a.enter:a.exit,children:t??``}),s&&(i?(0,W.jsx)(`span`,{className:`stepper-filter-dot`,"data-kind":e.changeFilter,"aria-hidden":`true`}):(0,W.jsx)(`span`,{className:`muted stepper-filter`,children:s}))]})]}),(0,W.jsxs)(`span`,{className:`stepper-arrows`,children:[(0,W.jsx)(`button`,{type:`button`,className:`pill-step`,"aria-label":`Previous change`,disabled:!o,onClick:()=>b(-1),children:(0,W.jsx)(mg,{direction:-1})}),(0,W.jsx)(`button`,{type:`button`,className:`pill-step`,"aria-label":`Next change`,disabled:!o,onClick:()=>b(1),children:(0,W.jsx)(mg,{direction:1})})]})]},`steps`)}else w=(0,W.jsx)(gg,{...C,children:(0,W.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,W.jsx)(pg,{}),(0,W.jsx)(`span`,{className:`muted`,children:x===`none`?i?`0`:`No visible changes`:i?`–`:`Couldn't check`})]})},x);return(0,W.jsx)(hg,{ref:p,className:`pill-seg highlight-seg`,"data-on":v||void 0,children:(0,W.jsx)(Hu,{initial:!1,mode:`popLayout`,children:w})})}var yg=[[`wipe`,`Wipe`],[`side`,`Side by side`]];function bg({layout:e,dispatch:t}){let n=Wm(),r=(0,_.useRef)({}),i=n=>{n!==e&&t({type:`setLayout`,layout:n})};return(0,W.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]=yg[(yg.findIndex(([t])=>t===e)+n+yg.length)%yg.length];i(a),r.current[a]?.focus({preventScroll:!0})},children:yg.map(([t,a])=>{let o=t===e;return(0,W.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,W.jsx)(Z.span,{layoutId:`compare-layout-indicator`,className:`layout-indicator`,transition:n.layout}),(0,W.jsx)(`span`,{className:`layout-opt-label`,children:a})]},t)})})}function xg(){return(0,W.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,W.jsx)(`rect`,{x:`3`,y:`4`,width:`14`,height:`12`,rx:`2`}),(0,W.jsx)(`path`,{d:`M10 4v12`})]})}function Sg(){return(0,W.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,W.jsx)(`path`,{d:`m4.5 6.5 3.5 3.5 3.5-3.5`})})}function Cg(){return(0,W.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,W.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=Wm(),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,W.jsx)(`span`,{className:`pill-dot`,"data-latest":g||void 0,"aria-hidden":`true`}),j=S?Wf(x):null,M;return S&&i?M=(0,W.jsx)(`div`,{className:`pill-seg version-seg`,children:(0,W.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,W.jsxs)(`span`,{className:`num`,children:[`v`,j]}),(0,W.jsx)(`span`,{className:`muted`,"aria-hidden":`true`,children:`→`}),(0,W.jsxs)(`span`,{className:`num`,children:[`v`,y]})]})}):S&&(M=(0,W.jsxs)(`div`,{className:`pill-seg version-seg compare-versions`,children:[(0,W.jsx)(ig,{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,W.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,W.jsx)(`span`,{"aria-hidden":`true`,children:`→`})}),(0,W.jsx)(ig,{versions:n,version:h,dispatch:t,inputId:f,label:`After, version number`,fieldRef:c})]})),(0,W.jsxs)(`div`,{className:`pill`,role:`group`,"aria-label":`Version history`,"data-compare":S||void 0,children:[M??(i?(0,W.jsx)(`div`,{className:`pill-seg version-seg`,children:(0,W.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,W.jsxs)(`span`,{className:`num`,children:[`v`,y]})]})}):(0,W.jsxs)(`div`,{className:`pill-seg version-seg`,children:[(0,W.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,W.jsx)(`span`,{children:`Version`})]}),(0,W.jsx)(ig,{versions:n,version:h,dispatch:t,inputId:f,fieldRef:c}),(0,W.jsxs)(`label`,{className:`version-of`,htmlFor:f,children:[`of `,(0,W.jsx)(`span`,{className:`num`,children:b})]})]})),!i&&(0,W.jsx)(lg,{versions:n,state:e,dispatch:t}),(0,W.jsx)(`span`,{className:`pill-sep`,"aria-hidden":`true`}),(0,W.jsx)(vg,{state:e,dispatch:t,review:r,disabled:v,phone:i}),S?(0,W.jsxs)(Z.div,{className:`pill-seg compare-seg`,initial:{opacity:0},animate:{opacity:1,transition:d.enter},children:[!i&&(0,W.jsx)(bg,{layout:e.layout,dispatch:t}),(0,W.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,W.jsx)(Cg,{})})]}):(0,W.jsxs)(`div`,{className:`pill-seg swap-seg`,children:[(0,W.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,W.jsx)(xg,{}):`Compare`}),(0,W.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`})]}),!wm&&(0,W.jsx)(`button`,{type:`button`,ref:u,className:`pill-btn retract-btn`,"aria-label":`Hide Afterimage`,onClick:o,children:(0,W.jsx)(Sg,{})})]})}function Tg({state:e,versions:t,chipRef:n,onShow:r}){let i=Wm(),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,W.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,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`span`,{className:`num`,children:[`v`,Wf(s)]}),(0,W.jsx)(`span`,{className:`muted`,"aria-hidden":`true`,children:`→`}),(0,W.jsxs)(`span`,{className:`num`,children:[`v`,l]})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`pill-dot`,"data-latest":c||void 0,"aria-hidden":`true`}),(0,W.jsxs)(`span`,{className:`num`,children:[`v`,l]})]}),(0,W.jsxs)(`span`,{className:`pill-hint chip-hint`,"aria-hidden":`true`,children:[`Show Afterimage `,(0,W.jsx)(`kbd`,{children:`.`})]})]})}function Eg({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 Dg=1e4,Og=80,kg=e=>new Promise(t=>setTimeout(t,e)),Ag=()=>new Promise(e=>{typeof requestIdleCallback==`function`?requestIdleCallback(()=>e(),{timeout:600}):setTimeout(e,0)});function jg(){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 Mg(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.`))},Dg),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 Ng(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([Mg(s,n,o),Mg(c,r,o)]);let l=s.frame.contentDocument,u=c.frame.contentDocument;if(await Promise.all([l.fonts.ready,u.fonts.ready]),await kg(Og),await Ag(),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 Pg(e){let[t,n]=(0,_.useState)(()=>new Map),r=(0,_.useRef)(null),i=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=null,t=!0,a=Eg({run:t=>(e??=[jg(),jg()],Ng(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 Fg(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 Ig=9,Lg=120,Rg=32;function zg(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 Bg(e){let t=ap(e.savedAt);return t?t.split(`, `)[1]:``}function Vg(){return(0,W.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,W.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.25`}),(0,W.jsx)(`path`,{d:`m10.25 10.25 3 3`})]})}function Hg({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=>zg(e,f)),[e,f]),m=(0,_.useMemo)(()=>rp(p,new Date),[p]),h=Pg(u),g=t.mode===`explore`,v=bm();(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,Lg)},{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,Lg)};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+Rg>e.scrollTop+e.clientHeight&&(o=i+Rg-e.clientHeight),o!==null&&e.scrollTo({top:o,behavior:a?`instant`:`smooth`})},[t.versionId,a]);let[b,x]=Fg(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,W.jsxs)(`div`,{className:`versions`,children:[e.length>=Ig&&(0,W.jsxs)(`label`,{className:`search`,children:[(0,W.jsx)(Vg,{}),(0,W.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,W.jsxs)(`div`,{ref:c,className:`version-list`,"data-end":b||void 0,onScroll:x,children:[m.length===0&&(0,W.jsxs)(`p`,{className:`list-note`,children:[`No version matches “`,o.trim(),`”`]}),m.map(e=>(0,W.jsxs)(`section`,{className:`vgroup`,"aria-label":e.label,children:[(0,W.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,W.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,W.jsx)(`span`,{className:`vrow-n num`,children:Wf(e)}),(0,W.jsx)(`span`,{className:`vrow-name`,children:e.name}),(0,W.jsx)(`span`,{className:`vrow-time num`,children:Bg(e)}),(0,W.jsx)(`span`,{className:`vrow-count num`,"data-zero":i?.total===0||void 0,children:i&&(0,W.jsx)(`span`,{className:`vrow-count-in`,"aria-label":`${i.total} ${i.total===1?`change`:`changes`}`,children:i.total})})]},e.id)})]},e.label))]})]})}var Ug=12,Wg=[{id:`all`,label:`All`},{id:`changed`,label:`Changed`},{id:`added`,label:`Added`},{id:`removed`,label:`Removed`}],Gg=e=>/^(#|rgba?\(|hsla?\(|oklch\()/i.test(String(e).trim());function Kg(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 qg(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 Jg({text:e,muted:t}){let n=Gg(e);return(0,W.jsxs)(`span`,{className:`crow-value${t?` is-before`:``}${n?` num`:``}`,title:n?e:void 0,children:[n&&(0,W.jsx)(`span`,{className:`crow-swatch`,style:{background:e},"aria-hidden":`true`}),n?qg(e):e]})}function Yg({entry:e,baseLabel:t,targetLabel:n}){if(e.kind===`added`){let t=e.details[0]?.after||`New in ${n}`;return(0,W.jsx)(`span`,{className:`crow-diff`,children:(0,W.jsx)(Jg,{text:t})})}if(e.kind===`removed`){let n=e.details[0]?.before;return(0,W.jsx)(`span`,{className:`crow-diff`,children:n?(0,W.jsx)(Jg,{text:n,muted:!0}):(0,W.jsxs)(`span`,{className:`crow-value is-before`,children:[`Shown on `,(0,W.jsx)(`span`,{className:`num`,children:t})]})})}let r=e.details.find(e=>!e.layout)??e.details[0];return r?(0,W.jsxs)(`span`,{className:`crow-diff`,children:[r.before?(0,W.jsx)(Jg,{text:r.before,muted:!0}):(0,W.jsx)(`span`,{className:`crow-value is-before`,children:`None`}),(0,W.jsx)(`span`,{className:`crow-arrow`,"aria-hidden":`true`,children:`→`}),r.after?(0,W.jsx)(Jg,{text:r.after}):(0,W.jsx)(`span`,{className:`crow-value`,children:`None`})]}):(0,W.jsx)(`span`,{className:`crow-diff`,children:(0,W.jsx)(`span`,{className:`crow-value is-before`,children:e.kindLabel})})}var Xg={changed:`Nothing changed in place`,added:`Nothing added`,removed:`Nothing removed`};function Zg({state:e,dispatch:t,review:n,baseLabel:r,targetLabel:i,phone:a,onClose:o}){let s=Wm(),c=rf(),l=(0,_.useMemo)(()=>Bf(n.entries,e.changeFilter),[n.entries,e.changeFilter]),[u,d]=(0,_.useState)(Ug),f=(0,_.useRef)(null),p=(0,_.useRef)(null);(0,_.useEffect)(()=>{d(Ug)},[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)/Ug)*Ug));(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]=Fg(f,[h,n.status]),b=n.status===`checking`||n.status===`idle`,x=l.length-h;return(0,W.jsxs)(`div`,{className:`changes`,children:[(0,W.jsx)(`div`,{className:`filters`,role:`group`,"aria-label":`Show changes`,children:Wg.map(n=>{let r=e.changeFilter===n.id;return(0,W.jsxs)(`button`,{type:`button`,className:`filter`,"aria-pressed":r,onClick:()=>{r||t({type:`setFilter`,filter:n.id})},children:[r&&(0,W.jsx)(Z.span,{layoutId:`filter-fill`,className:`filter-fill`,transition:s.layout}),(0,W.jsx)(`span`,{className:`filter-label`,children:n.label})]},n.id)})}),b?(0,W.jsx)(`p`,{className:`list-note`,children:`Checking changes…`}):l.length===0?(0,W.jsxs)(`p`,{className:`list-note`,children:[Xg[e.changeFilter]??`No changes`,` since `,(0,W.jsx)(`span`,{className:`num`,children:r})]}):(0,W.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,W.jsx)(`div`,{role:`listitem`,children:(0,W.jsxs)(`button`,{type:`button`,className:`crow`,"data-index":t,"data-kind":e.kind,"aria-current":t===m||void 0,onClick:()=>g(t),children:[(0,W.jsx)(`span`,{className:`crow-badge num`,"aria-label":`${e.kindLabel}, ${t+1}`,children:t+1}),(0,W.jsxs)(`span`,{className:`crow-text`,children:[(0,W.jsx)(`span`,{className:`crow-what`,children:Kg(e)}),(0,W.jsx)(Yg,{entry:e,baseLabel:r,targetLabel:i})]})]})},e.key+e.kind)),x>0&&(0,W.jsxs)(`button`,{type:`button`,className:`list-more`,onClick:()=>{p.current=h,d(h+Ug)},children:[(0,W.jsx)(`span`,{className:`num`,children:Math.min(Ug,x)}),` more`]})]})]})}var Qg=1200;function $g(){return(0,W.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,W.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,W.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 e_(){return(0,W.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,W.jsx)(`path`,{d:`m3.5 8.5 3 3 6-7`})})}function t_(){return(0,W.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,W.jsx)(`path`,{d:`m4.5 4.5 7 7m0-7-7 7`})})}function n_({open:e}){let t=Wm();return(0,W.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,W.jsx)(`path`,{d:`m6.5 4 4 4-4 4`})})}async function r_(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 i_(){let e=Wm(),[t,n]=(0,_.useState)(0);(0,_.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>n(0),Qg);return()=>clearTimeout(e)},[t]);let r=async()=>{kp.flush(),await r_(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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,className:`icon-btn`,"data-done":t?!0:void 0,"aria-label":`Copy link to this view`,onClick:r,children:(0,W.jsx)(Hu,{initial:!1,mode:`popLayout`,children:(0,W.jsx)(Z.span,{className:`icon-swap`,...i,children:t?(0,W.jsx)(e_,{}):(0,W.jsx)($g,{})},t?`check`:`link`)})}),(0,W.jsx)(`span`,{className:`sr-only`,role:`status`,children:t?`Link copied`:``})]})}function a_({children:e,className:t}){let n=Wm(),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,W.jsx)(Z.div,{className:t,initial:!1,animate:{height:i},transition:n.layout,style:{overflow:`hidden`},children:(0,W.jsx)(`div`,{ref:r,children:e})})}function o_({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,W.jsxs)(a_,{className:`notes`,children:[(0,W.jsx)(`p`,{ref:r,className:`note`,"data-clamped":!t||void 0,children:o}),t&&e.slice(1).map((e,t)=>(0,W.jsx)(`p`,{className:`note`,children:e},t)),c&&(0,W.jsx)(`button`,{type:`button`,className:`text-btn`,"aria-expanded":t,onClick:()=>n(e=>!e),children:t?`Show less`:s>0?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`num`,children:s}),` more`]}):`More`})]})}function s_({children:e,label:t}){let n=Wm();return(0,W.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,W.jsx)(`div`,{className:`folder-inner`,children:e})})}function c_({on:e,onToggle:t,label:n,dim:r}){return(0,W.jsx)(`button`,{type:`button`,role:`switch`,className:`switch`,"aria-checked":e,"aria-label":n,"data-dim":r||void 0,onClick:t,children:(0,W.jsx)(`span`,{className:`switch-track`,children:(0,W.jsx)(`span`,{className:`switch-thumb`})})})}function l_({state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,autoFocus:o,tip:s,onClose:c}){let l=Wm(),u=rf(),d=Ru(),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,W.jsxs)(W.Fragment,{children:[`from `,(0,W.jsx)(`span`,{className:`num`,children:M}),` to `,(0,W.jsx)(`span`,{className:`num`,children:re})]}):(0,W.jsxs)(W.Fragment,{children:[`since `,(0,W.jsx)(`span`,{className:`num`,children:M})]}),oe;if(b)oe=(0,W.jsx)(`div`,{className:`row row-static`,children:(0,W.jsxs)(`span`,{className:`muted`,children:[`First version. Changes show up from `,(0,W.jsxs)(`span`,{className:`num`,children:[`v`,D]}),`.`]})});else if(ee)oe=(0,W.jsx)(`div`,{className:`row row-static`,children:(0,W.jsx)(`span`,{className:`muted`,children:`Couldn't check changes. Reload to try again.`})});else{let n=A&&k.total===0,r=n?(0,W.jsxs)(`span`,{className:`muted`,children:[`No visible changes `,ae]}):A?(0,W.jsxs)(`span`,{children:[(0,W.jsx)(`span`,{className:`amber num`,children:k.total}),` `,k.total===1?`change`:`changes`,` `,ae]}):(0,W.jsxs)(`span`,{className:`muted`,children:[`Checking changes `,ae,`…`]});oe=(0,W.jsxs)(`div`,{className:`row row-split`,children:[n?(0,W.jsx)(`div`,{className:`row-main row-static-main`,children:r}):(0,W.jsxs)(`button`,{type:`button`,className:`row-main`,"aria-expanded":te,onClick:()=>j(`changes`),children:[r,(0,W.jsx)(n_,{open:te})]}),(0,W.jsx)(c_,{on:e.highlights,dim:n,label:`Highlight changes on the page`,onToggle:()=>t({type:`toggleHighlights`})})]})}let se=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,W.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,...se,children:[i&&(0,W.jsx)(`div`,{className:`grab`,onPointerDown:e=>f.start(e),"aria-hidden":`true`,children:(0,W.jsx)(`span`,{className:`grab-bar`})}),(0,W.jsxs)(`div`,{className:`panel-scroll`,children:[(0,W.jsxs)(`header`,{className:`panel-head`,children:[(0,W.jsxs)(`div`,{className:`head-top`,children:[(0,W.jsx)(`h2`,{className:`panel-name`,title:v.name,children:v.name}),(0,W.jsxs)(`div`,{className:`head-icons`,children:[(0,W.jsx)(i_,{}),(0,W.jsx)(`button`,{type:`button`,className:`icon-btn`,"aria-label":`Close`,onClick:()=>c({refocus:!0}),children:(0,W.jsx)(t_,{})})]})]}),(0,W.jsxs)(`p`,{className:`panel-meta`,children:[ie?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`num`,children:M}),` → `,(0,W.jsx)(`span`,{className:`num`,children:re})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`span`,{className:`num`,children:[`v`,S]}),!y&&(0,W.jsxs)(W.Fragment,{children:[` of `,(0,W.jsx)(`span`,{className:`num`,children:C})]})]}),E&&(0,W.jsxs)(W.Fragment,{children:[` · saved `,(0,W.jsx)(`span`,{className:`num`,children:E})]}),(0,W.jsx)(`span`,{className:`tag`,"data-latest":y||void 0,children:y?`Latest`:`Older`})]}),(0,W.jsx)(o_,{notes:v.notes??[]},v.id)]}),(0,W.jsxs)(`div`,{className:`rows`,children:[oe,(0,W.jsx)(Hu,{initial:!1,children:te&&(0,W.jsx)(s_,{label:`Changes`,children:(0,W.jsx)(Zg,{phone:i,state:e,dispatch:t,review:r,baseLabel:M,targetLabel:re,onClose:c})},`changes`)}),!y&&(0,W.jsxs)(`div`,{className:`row row-split`,children:[(0,W.jsxs)(`span`,{className:`row-text`,children:[(0,W.jsx)(`span`,{className:`num`,children:w}),` newer `,w===1?`version`:`versions`]}),(0,W.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,W.jsx)(`div`,{className:`row`,children:(0,W.jsxs)(`button`,{ref:m,type:`button`,className:`row-main`,"aria-expanded":ne,onClick:()=>j(`versions`),children:[(0,W.jsx)(`span`,{children:y?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`num`,children:n.length-1}),` earlier `,n.length-1==1?`version`:`versions`]}):(0,W.jsxs)(W.Fragment,{children:[`All `,(0,W.jsx)(`span`,{className:`num`,children:n.length}),` versions`]})}),(0,W.jsx)(n_,{open:ne})]})}),(0,W.jsx)(Hu,{initial:!1,children:ne&&n.length>1&&(0,W.jsx)(s_,{label:`Versions`,children:(0,W.jsx)(Hg,{versions:n,state:e,dispatch:t,review:r,targetRef:a})},`versions`)})]})]}),s&&(0,W.jsxs)(`p`,{className:`panel-tip`,children:[`Tip:`,` `,(0,W.jsxs)(`span`,{className:`tip-item`,children:[(0,W.jsx)(`kbd`,{children:`[`}),(0,W.jsx)(`kbd`,{children:`]`}),` versions,`]}),` `,(0,W.jsxs)(`span`,{className:`tip-item`,children:[(0,W.jsx)(`kbd`,{children:`J`}),(0,W.jsx)(`kbd`,{children:`K`}),` changes,`]}),` `,(0,W.jsxs)(`span`,{className:`tip-item`,children:[(0,W.jsx)(`kbd`,{children:`?`}),` for all shortcuts`]})]})]})}var u_=[{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 d_(){return(0,W.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,W.jsx)(`path`,{d:`m4.5 4.5 7 7m0-7-7 7`})})}function f_({open:e,onClose:t}){let n=Wm(),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,W.jsx)(Hu,{children:e&&(0,W.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,W.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,W.jsxs)(`header`,{className:`help-head`,children:[(0,W.jsx)(`h2`,{className:`help-title`,children:`Keyboard shortcuts`}),(0,W.jsx)(`button`,{ref:i,type:`button`,className:`help-close`,"aria-label":`Close`,onClick:t,children:(0,W.jsx)(d_,{})})]}),(0,W.jsx)(`div`,{className:`help-body`,children:u_.map(e=>(0,W.jsxs)(`section`,{className:`help-group`,"aria-label":e.name,children:[(0,W.jsx)(`h3`,{className:`help-group-name`,children:e.name}),(0,W.jsx)(`dl`,{className:`help-rows`,children:e.rows.map(e=>(0,W.jsxs)(`div`,{className:`help-row`,children:[(0,W.jsx)(`dt`,{className:`help-keys`,children:e.keys.map(e=>(0,W.jsx)(`kbd`,{children:e},e))}),(0,W.jsx)(`dd`,{className:`help-text`,children:e.text})]},e.keys.join(``)))})]},e.name))})]})},`help`)})}var p_=zm(()=>window.localStorage),m_=Dp(()=>window.localStorage);function h_({state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,baseRef:o}){let s=Wm(),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):p_()&&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]),Bm({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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{className:`pill-dock`,"data-phone":i||void 0,"data-open":f||void 0,"data-retracted":b||void 0,children:(0,W.jsxs)(Z.div,{className:`dock-body`,layout:`position`,transition:s.layout,children:[(0,W.jsx)(Hu,{children:f&&(0,W.jsx)(l_,{state:e,dispatch:t,versions:n,review:r,phone:i,targetRef:a,autoFocus:l.current,tip:v,onClose:d},`panel`)}),b?(0,W.jsx)(Tg,{state:e,versions:n,chipRef:S,onShow:()=>E(!1)}):(0,W.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,W.jsx)(f_,{open:h,onClose:()=>g(!1)})]})}function g_({versions:e}){let t=(0,_.useMemo)(()=>Ep(e),[e]),[n,r]=(0,_.useReducer)(t,location.search,t=>({...yp(e,t),retracted:!wm&&m_.read()})),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=km(),s=lp(n,e);(0,_.useEffect)(()=>{kp.write(s)},[s]),(0,_.useEffect)(()=>{wm||m_.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);xm({targetRef:i,baseRef:a}),Em({state:n,dispatch:r,versions:e,targetRef:i});let u=_m({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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(rg,{state:n,dispatch:r,versions:e,review:u,targetRef:i,baseRef:a,phone:o}),(0,W.jsx)(h_,{state:n,dispatch:r,versions:e,review:u,phone:o,targetRef:i,baseRef:a})]})}function __({title:e}){return(0,W.jsxs)(`section`,{className:`load-error`,role:`alert`,children:[(0,W.jsx)(`h1`,{children:e}),(0,W.jsx)(`p`,{children:`Reload to try again.`}),(0,W.jsx)(`button`,{type:`button`,onClick:()=>location.reload(),children:`Reload`})]})}var v_=()=>(0,W.jsx)(__,{title:`History couldn't load.`}),y_=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,W.jsx)(__,{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 x_=3e3;async function S_(){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,x_))])}catch(e){console.warn(`The frame runtime did not start, so built apps may render without their files.`,e)}}var C_=document.getElementById(`root`),w_=(0,v.createRoot)(C_);Promise.all([b_(),S_()]).then(([e])=>w_.render((0,W.jsx)(_.StrictMode,{children:(0,W.jsx)(y_,{children:(0,W.jsx)(g_,{versions:e.versions})})})),e=>{console.error(`Could not load version history.`,e),w_.render((0,W.jsx)(_.StrictMode,{children:(0,W.jsx)(v_,{})}))});
|